diff --git a/3rdpartylicenses.txt b/3rdpartylicenses.txt
index 1733476..df372eb 100644
--- a/3rdpartylicenses.txt
+++ b/3rdpartylicenses.txt
@@ -1,26 +1,28 @@
-@angular/common
-MIT
-@angular/core
-MIT
+--------------------------------------------------------------------------------
+Package: @angular/common
+License: "MIT"
-@angular/forms
-MIT
-@angular/platform-browser
-MIT
+--------------------------------------------------------------------------------
+Package: @angular/forms
+License: "MIT"
-@angular/router
-MIT
-angular-date-value-accessor
-MIT
+--------------------------------------------------------------------------------
+Package: angular-date-value-accessor
+License: "MIT"
-book-monkey5-styles
-MIT
-rxjs
-Apache-2.0
+--------------------------------------------------------------------------------
+Package: @angular/core
+License: "MIT"
+
+
+--------------------------------------------------------------------------------
+Package: rxjs
+License: "Apache-2.0"
+
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
@@ -224,24 +226,36 @@ Apache-2.0
limitations under the License.
+--------------------------------------------------------------------------------
+Package: tslib
+License: "0BSD"
+
+Copyright (c) Microsoft Corporation.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+--------------------------------------------------------------------------------
+Package: @angular/platform-browser
+License: "MIT"
-tslib
-0BSD
-Copyright (c) Microsoft Corporation.
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted.
+--------------------------------------------------------------------------------
+Package: @angular/router
+License: "MIT"
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-PERFORMANCE OF THIS SOFTWARE.
-zone.js
-MIT
+--------------------------------------------------------------------------------
+Package: zone.js
+License: "MIT"
+
The MIT License
Copyright (c) 2010-2023 Google LLC. https://angular.io/license
@@ -263,3 +277,10 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
+
+--------------------------------------------------------------------------------
+Package: book-monkey5-styles
+License: "MIT"
+
+
+--------------------------------------------------------------------------------
diff --git a/404.html b/404.html
deleted file mode 100644
index 61d1fd1..0000000
--- a/404.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
- BookMonkey
-
-
-
-
-
-
- Loading ...
-
-
-
diff --git a/881.34f2f4532b8f4bfe.js b/881.34f2f4532b8f4bfe.js
deleted file mode 100644
index a7bb024..0000000
--- a/881.34f2f4532b8f4bfe.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkbook_monkey=self.webpackChunkbook_monkey||[]).push([[881],{4881:(N,u,r)=>{r.r(u),r.d(u,{BooksModule:()=>F});var c=r(6814),l=r(2413),t=r(6689),m=r(5008);let f=(()=>{class o{constructor(){this.confirm=new t.vpe}onClick(){window.confirm(this.confirmText)&&this.confirm.emit()}static#t=this.\u0275fac=function(n){return new(n||o)};static#o=this.\u0275dir=t.lG2({type:o,selectors:[["","bmConfirm",""]],hostBindings:function(n,s){1&n&&t.NdJ("click",function(){return s.onClick()})},inputs:{confirmText:["bmConfirm","confirmText"]},outputs:{confirm:"confirm"}})}return o})();var g=r(8645),_=r(9773),b=r(9346);let h=(()=>{class o{constructor(i,n,s){this.template=i,this.viewContainer=n,this.authService=s,this.destroy$=new g.x,this.authService.isAuthenticated$.pipe((0,_.R)(this.destroy$)).subscribe(a=>{a?this.viewContainer.createEmbeddedView(this.template):this.viewContainer.clear()})}ngOnDestroy(){this.destroy$.next()}static#t=this.\u0275fac=function(n){return new(n||o)(t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(b.e))};static#o=this.\u0275dir=t.lG2({type:o,selectors:[["","bmLoggedinOnly",""]]})}return o})(),p=(()=>{class o{transform(i){return i?`${i.substring(0,3)}-${i.substring(3)}`:""}static#t=this.\u0275fac=function(n){return new(n||o)};static#o=this.\u0275pipe=t.Yjl({name:"isbn",type:o,pure:!0})}return o})();function k(o,e){if(1&o&&(t.TgZ(0,"p",9),t._uU(1),t.qZA()),2&o){const i=t.oxw().ngIf;t.xp6(1),t.Oqu(i.subtitle)}}function d(o,e){if(1&o&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&o){const i=e.$implicit;t.xp6(1),t.Oqu(i)}}function v(o,e){if(1&o&&(t.TgZ(0,"div")(1,"h2"),t._uU(2,"Published"),t.qZA(),t._uU(3),t.ALo(4,"date"),t.qZA()),2&o){const i=t.oxw().ngIf;t.xp6(3),t.hij(" ",t.xi3(4,1,i.published,"longDate")," ")}}function Z(o,e){if(1&o&&t._UZ(0,"img",10),2&o){const i=t.oxw().ngIf;t.Q6J("src",i.thumbnailUrl,t.LSH)}}const x=function(o){return["/admin/edit",o]};function T(o,e){if(1&o){const i=t.EpF();t.ynx(0),t.TgZ(1,"button",11),t.NdJ("confirm",function(){t.CHM(i);const s=t.oxw().ngIf,a=t.oxw();return t.KtG(a.removeBook(s.isbn))}),t._uU(2," Remove book "),t.qZA(),t.TgZ(3,"a",12),t._uU(4," Edit book "),t.qZA(),t.BQk()}if(2&o){const i=t.oxw().ngIf;t.xp6(3),t.Q6J("routerLink",t.VKq(1,x,i.isbn))}}function C(o,e){if(1&o&&(t.TgZ(0,"div",1)(1,"h1"),t._uU(2),t.qZA(),t.YNc(3,k,2,1,"p",2),t.TgZ(4,"div",3)(5,"div")(6,"h2"),t._uU(7,"Authors"),t.qZA(),t.TgZ(8,"ul"),t.YNc(9,d,2,1,"li",4),t.qZA()(),t.TgZ(10,"div")(11,"h2"),t._uU(12,"ISBN"),t.qZA(),t._uU(13),t.ALo(14,"isbn"),t.qZA(),t.YNc(15,v,5,4,"div",5),t.qZA(),t.TgZ(16,"h2"),t._uU(17,"Description"),t.qZA(),t.TgZ(18,"p"),t._uU(19),t.qZA(),t.YNc(20,Z,1,1,"img",6),t.TgZ(21,"a",7),t._uU(22,"Back to list"),t.qZA(),t.YNc(23,T,5,3,"ng-container",8),t.qZA()),2&o){const i=e.ngIf;t.xp6(2),t.Oqu(i.title),t.xp6(1),t.Q6J("ngIf",i.subtitle),t.xp6(6),t.Q6J("ngForOf",i.authors),t.xp6(4),t.hij(" ",t.lcZ(14,7,i.isbn)," "),t.xp6(2),t.Q6J("ngIf",i.published),t.xp6(4),t.Oqu(i.description),t.xp6(1),t.Q6J("ngIf",i.thumbnailUrl)}}let B=(()=>{class o{constructor(i,n,s){this.service=i,this.route=n,this.router=s;const a=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(a)}removeBook(i){this.service.remove(i).subscribe(()=>{this.router.navigateByUrl("/books")})}static#t=this.\u0275fac=function(n){return new(n||o)(t.Y36(m.T),t.Y36(l.gz),t.Y36(l.F0))};static#o=this.\u0275cmp=t.Xpm({type:o,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(n,s){1&n&&(t.YNc(0,C,24,9,"div",0),t.ALo(1,"async")),2&n&&t.Q6J("ngIf",t.lcZ(1,1,s.book$))},dependencies:[c.sg,c.O5,l.rH,f,h,c.Ov,c.uU,p]})}return o})();function A(o,e){if(1&o&&t._UZ(0,"img",6),2&o){const i=t.oxw(2);t.Q6J("src",i.book.thumbnailUrl,t.LSH)}}function I(o,e){if(1&o&&(t.TgZ(0,"p",7),t._uU(1),t.qZA()),2&o){const i=t.oxw(2);t.xp6(1),t.hij(" ",i.book.subtitle," ")}}function y(o,e){if(1&o&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&o){const i=e.$implicit;t.xp6(1),t.hij(" ",i," ")}}function U(o,e){if(1&o&&(t.TgZ(0,"a",1),t.YNc(1,A,1,1,"img",2),t.TgZ(2,"h2"),t._uU(3),t.qZA(),t.YNc(4,I,2,1,"p",3),t.TgZ(5,"ul",4),t.YNc(6,y,2,1,"li",5),t.qZA(),t.TgZ(7,"div"),t._uU(8),t.ALo(9,"isbn"),t.qZA()()),2&o){const i=t.oxw();t.Q6J("routerLink",i.book.isbn),t.xp6(1),t.Q6J("ngIf",i.book.thumbnailUrl),t.xp6(2),t.Oqu(i.book.title),t.xp6(1),t.Q6J("ngIf",i.book.subtitle),t.xp6(2),t.Q6J("ngForOf",i.book.authors),t.xp6(2),t.hij("ISBN ",t.lcZ(9,6,i.book.isbn),"")}}let L=(()=>{class o{static#t=this.\u0275fac=function(n){return new(n||o)};static#o=this.\u0275cmp=t.Xpm({type:o,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(n,s){1&n&&t.YNc(0,U,10,8,"a",0),2&n&&t.Q6J("ngIf",s.book)},dependencies:[c.sg,c.O5,l.rH,p]})}return o})();function q(o,e){if(1&o&&(t.TgZ(0,"li"),t._UZ(1,"bm-book-list-item",4),t.qZA()),2&o){const i=e.$implicit;t.xp6(1),t.Q6J("book",i)}}function J(o,e){1&o&&(t.TgZ(0,"li"),t._uU(1," No books available. "),t.qZA())}function Y(o,e){if(1&o&&(t.TgZ(0,"ul",1),t.YNc(1,q,2,1,"li",2),t.YNc(2,J,2,0,"li",3),t.qZA()),2&o){const i=e.ngIf;t.xp6(1),t.Q6J("ngForOf",i),t.xp6(1),t.Q6J("ngIf",!i.length)}}const w=[{path:"",component:(()=>{class o{constructor(i){this.service=i,this.books$=this.service.getAll()}static#t=this.\u0275fac=function(n){return new(n||o)(t.Y36(m.T))};static#o=this.\u0275cmp=t.Xpm({type:o,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(n,s){1&n&&(t.TgZ(0,"h1"),t._uU(1,"Books"),t.qZA(),t.YNc(2,Y,3,2,"ul",0),t.ALo(3,"async")),2&n&&(t.xp6(2),t.Q6J("ngIf",t.lcZ(3,1,s.books$)))},dependencies:[c.sg,c.O5,L,c.Ov]})}return o})()},{path:":isbn",component:B}];let O=(()=>{class o{static#t=this.\u0275fac=function(n){return new(n||o)};static#o=this.\u0275mod=t.oAB({type:o});static#i=this.\u0275inj=t.cJS({imports:[l.Bz.forChild(w),l.Bz]})}return o})(),F=(()=>{class o{static#t=this.\u0275fac=function(n){return new(n||o)};static#o=this.\u0275mod=t.oAB({type:o});static#i=this.\u0275inj=t.cJS({imports:[c.ez,O]})}return o})()}}]);
\ No newline at end of file
diff --git a/98.f7b31c25c9a1e221.js b/98.f7b31c25c9a1e221.js
deleted file mode 100644
index 663162a..0000000
--- a/98.f7b31c25c9a1e221.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkbook_monkey=self.webpackChunkbook_monkey||[]).push([[98],{5098:(Ln,he,l)=>{l.r(he),l.d(he,{AdminModule:()=>Pn});var _=l(6814),o=l(6689),vt=l(7715),Vt=l(5592),Ct=l(7453),Dt=l(4829),At=l(4564),bt=l(8251),Mt=l(7400),Et=l(2714),q=l(7398);let fe=(()=>{class t{constructor(e,r){this._renderer=e,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(r){return new(r||t)(o.Y36(o.Qsj),o.Y36(o.SBq))};static#t=this.\u0275dir=o.lG2({type:t})}return t})(),y=(()=>{class t extends fe{static#e=this.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}();static#t=this.\u0275dir=o.lG2({type:t,features:[o.qOj]})}return t})();const h=new o.OlP("NgValueAccessor"),Ot={provide:h,useExisting:(0,o.Gpc)(()=>S),multi:!0},Nt=new o.OlP("CompositionEventMode");let S=(()=>{class t extends fe{constructor(e,r,i){super(e,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function St(){const t=(0,_.q)()?(0,_.q)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static#e=this.\u0275fac=function(r){return new(r||t)(o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(Nt,8))};static#t=this.\u0275dir=o.lG2({type:t,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(r,i){1&r&&o.NdJ("input",function(a){return i._handleInput(a.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(a){return i._compositionEnd(a.target.value)})},features:[o._Bn([Ot]),o.qOj]})}return t})();function p(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function me(t){return null!=t&&"number"==typeof t.length}const u=new o.OlP("NgValidators"),m=new o.OlP("NgAsyncValidators"),Bt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ge{static min(n){return function _e(t){return n=>{if(p(n.value)||p(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(p(n.value)||p(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return function ve(t){return p(t.value)?{required:!0}:null}(n)}static requiredTrue(n){return function Ve(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function Ce(t){return p(t.value)||Bt.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function De(t){return n=>p(n.value)||!me(n.value)?null:n.value.lengthme(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function be(t){if(!t)return N;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),r=>{if(p(r.value))return null;const i=r.value;return n.test(i)?null:{pattern:{requiredPattern:e,actualValue:i}}}}(n)}static nullValidator(n){return null}static compose(n){return Se(n)}static composeAsync(n){return Ne(n)}}function N(t){return null}function Me(t){return null!=t}function Ee(t){return(0,o.QGY)(t)?(0,vt.D)(t):t}function Fe(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function we(t,n){return n.map(e=>e(t))}function Oe(t){return t.map(n=>function It(t){return!t.validate}(n)?n:e=>n.validate(e))}function Se(t){if(!t)return null;const n=t.filter(Me);return 0==n.length?null:function(e){return Fe(we(e,n))}}function Y(t){return null!=t?Se(Oe(t)):null}function Ne(t){if(!t)return null;const n=t.filter(Me);return 0==n.length?null:function(e){return function Ft(...t){const n=(0,At.jO)(t),{args:e,keys:r}=(0,Ct.D)(t),i=new Vt.y(s=>{const{length:a}=e;if(!a)return void s.complete();const d=new Array(a);let V=a,A=a;for(let j=0;j{de||(de=!0,A--),d[j]=Rn},()=>V--,void 0,()=>{(!V||!de)&&(A||s.next(r?(0,Et.n)(r,d):d),s.complete())}))}});return n?i.pipe((0,Mt.Z)(n)):i}(we(e,n).map(Ee)).pipe((0,q.U)(Fe))}}function $(t){return null!=t?Ne(Oe(t)):null}function Be(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function Ie(t){return t._rawValidators}function Ge(t){return t._rawAsyncValidators}function Z(t){return t?Array.isArray(t)?t:[t]:[]}function B(t,n){return Array.isArray(t)?t.includes(n):t===n}function Te(t,n){const e=Z(n);return Z(t).forEach(i=>{B(e,i)||e.push(i)}),e}function ke(t,n){return Z(n).filter(e=>!B(t,e))}class xe{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Y(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=$(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class c extends xe{get formDirective(){return null}get path(){return null}}class g extends xe{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ue{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let He=(()=>{class t extends Ue{constructor(e){super(e)}static#e=this.\u0275fac=function(r){return new(r||t)(o.Y36(g,2))};static#t=this.\u0275dir=o.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){2&r&&o.ekj("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[o.qOj]})}return t})(),Pe=(()=>{class t extends Ue{constructor(e){super(e)}static#e=this.\u0275fac=function(r){return new(r||t)(o.Y36(c,10))};static#t=this.\u0275dir=o.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){2&r&&o.ekj("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[o.qOj]})}return t})();const b="VALID",G="INVALID",C="PENDING",M="DISABLED";function J(t){return(T(t)?t.validators:t)||null}function Q(t,n){return(T(n)?n.asyncValidators:t)||null}function T(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function Le(t,n,e){const r=t.controls;if(!(n?Object.keys(r):r).length)throw new o.vHH(1e3,"");if(!r[e])throw new o.vHH(1001,"")}function je(t,n,e){t._forEachChild((r,i)=>{if(void 0===e[i])throw new o.vHH(1002,"")})}class X{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===b}get invalid(){return this.status===G}get pending(){return this.status==C}get disabled(){return this.status===M}get enabled(){return this.status!==M}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Te(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Te(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(ke(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(ke(n,this._rawAsyncValidators))}hasValidator(n){return B(this._rawValidators,n)}hasAsyncValidator(n){return B(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=C,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=M,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=b,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===b||this.status===C)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?M:b}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=C,this._hasOwnPendingAsyncValidator=!0;const e=Ee(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((r,i)=>r&&r._find(i),this)}getError(n,e){const r=e?this.get(e):this;return r&&r.errors?r.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new o.vpe,this.statusChanges=new o.vpe}_calculateStatus(){return this._allControlsDisabled()?M:this.errors?G:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(C)?C:this._anyControlsHaveStatus(G)?G:b}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){T(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function xt(t){return Array.isArray(t)?Y(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function Ut(t){return Array.isArray(t)?$(t):t||null}(this._rawAsyncValidators)}}class k extends X{constructor(n,e,r){super(J(e),Q(r,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,r={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){je(this,0,n),Object.keys(n).forEach(r=>{Le(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(r=>{const i=this.controls[r];i&&i.patchValue(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((r,i)=>{r.reset(n?n[i]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,r)=>(n[r]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,r)=>!!r._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const r=this.controls[e];r&&n(r,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,r]of Object.entries(this.controls))if(this.contains(e)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,r,i)=>((r.enabled||this.disabled)&&(e[i]=r.value),e))}_reduceChildren(n,e){let r=n;return this._forEachChild((i,s)=>{r=e(r,i,s)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}const D=new o.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>x}),x="always";function U(t,n){return[...n.path,t]}function E(t,n,e=x){K(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function Rt(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&qe(t,n)})}(t,n),function jt(t,n){const e=(r,i)=>{n.valueAccessor.writeValue(r),i&&n.viewToModelUpdate(r)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function Lt(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&qe(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function Pt(t,n){if(n.valueAccessor.setDisabledState){const e=r=>{n.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function H(t,n,e=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),R(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function P(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function K(t,n){const e=Ie(t);null!==n.validator?t.setValidators(Be(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const r=Ge(t);null!==n.asyncValidator?t.setAsyncValidators(Be(r,n.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const i=()=>t.updateValueAndValidity();P(n._rawValidators,i),P(n._rawAsyncValidators,i)}function R(t,n){let e=!1;if(null!==t){if(null!==n.validator){const i=Ie(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(a=>a!==n.validator);s.length!==i.length&&(e=!0,t.setValidators(s))}}if(null!==n.asyncValidator){const i=Ge(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(a=>a!==n.asyncValidator);s.length!==i.length&&(e=!0,t.setAsyncValidators(s))}}}const r=()=>{};return P(n._rawValidators,r),P(n._rawAsyncValidators,r),e}function qe(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Ze(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function We(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const f=class extends X{constructor(n=null,e,r){super(J(e),Q(r,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),T(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=We(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){Ze(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){Ze(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){We(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let ze=(()=>{class t extends c{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return U(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}();static#t=this.\u0275dir=o.lG2({type:t,features:[o.qOj]})}return t})(),Ke=(()=>{class t{static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275dir=o.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return t})(),tt=(()=>{class t{static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275mod=o.oAB({type:t});static#n=this.\u0275inj=o.cJS({})}return t})();const oe=new o.OlP("NgModelWithFormControlWarning"),rn={provide:c,useExisting:(0,o.Gpc)(()=>w)};let w=(()=>{class t extends c{constructor(e,r,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new o.vpe,this._setValidators(e),this._setAsyncValidators(r)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(R(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const r=this.form.get(e.path);return E(r,e,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),r}getControl(e){return this.form.get(e.path)}removeControl(e){H(e.control||null,e,!1),function Zt(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,r){this.form.get(e.path).setValue(r)}onSubmit(e){return this.submitted=!0,function $e(t,n){t._syncPendingControls(),n.forEach(e=>{const r=e.control;"submit"===r.updateOn&&r._pendingChange&&(e.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const r=e.control,i=this.form.get(e.path);r!==i&&(H(r||null,e),(t=>t instanceof f)(i)&&(E(i,e,this.callSetDisabledState),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const r=this.form.get(e.path);(function Ye(t,n){K(t,n)})(r,e),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const r=this.form.get(e.path);r&&function qt(t,n){return R(t,n)}(r,e)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){K(this.form,this),this._oldForm&&R(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(r){return new(r||t)(o.Y36(u,10),o.Y36(m,10),o.Y36(D,8))};static#t=this.\u0275dir=o.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(r,i){1&r&&o.NdJ("submit",function(a){return i.onSubmit(a)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[o._Bn([rn]),o.qOj,o.TTD]})}return t})();const on={provide:c,useExisting:(0,o.Gpc)(()=>ie)};let ie=(()=>{class t extends ze{constructor(e,r,i){super(),this.name=null,this._parent=e,this._setValidators(r),this._setAsyncValidators(i)}_checkParentType(){it(this._parent)}static#e=this.\u0275fac=function(r){return new(r||t)(o.Y36(c,13),o.Y36(u,10),o.Y36(m,10))};static#t=this.\u0275dir=o.lG2({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[o._Bn([on]),o.qOj]})}return t})();const sn={provide:c,useExisting:(0,o.Gpc)(()=>L)};let L=(()=>{class t extends c{constructor(e,r,i){super(),this.name=null,this._parent=e,this._setValidators(r),this._setAsyncValidators(i)}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 U(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){it(this._parent)}static#e=this.\u0275fac=function(r){return new(r||t)(o.Y36(c,13),o.Y36(u,10),o.Y36(m,10))};static#t=this.\u0275dir=o.lG2({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[o._Bn([sn]),o.qOj]})}return t})();function it(t){return!(t instanceof ie||t instanceof w||t instanceof L)}const an={provide:g,useExisting:(0,o.Gpc)(()=>se)};let se=(()=>{class t extends g{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,r,i,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new o.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=function ne(t,n){if(!n)return null;let e,r,i;return Array.isArray(n),n.forEach(s=>{s.constructor===S?e=s:function $t(t){return Object.getPrototypeOf(t.constructor)===y}(s)?r=s:i=s}),i||r||e||null}(0,s)}ngOnChanges(e){this._added||this._setUpControl(),function te(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return U(null==this.name?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#t=this.\u0275fac=function(r){return new(r||t)(o.Y36(c,13),o.Y36(u,10),o.Y36(m,10),o.Y36(h,10),o.Y36(oe,8))};static#n=this.\u0275dir=o.lG2({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[o._Bn([an]),o.qOj,o.TTD]})}return t})(),Dn=(()=>{class t{static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275mod=o.oAB({type:t});static#n=this.\u0275inj=o.cJS({imports:[tt]})}return t})();class _t extends X{constructor(n,e,r){super(J(e),Q(r,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,r={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,e={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,r={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){je(this,0,n),n.forEach((r,i)=>{Le(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((r,i)=>{r.reset(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,r)=>!!r._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,r)=>{n(e,r)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}let bn=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:oe,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:D,useValue:e.callSetDisabledState??x}]}}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275mod=o.oAB({type:t});static#n=this.\u0275inj=o.cJS({imports:[Dn]})}return t})();var O=l(2413),ce=l(5008);let Mn=(()=>{class t{constructor(e){this.service=e}isbnExists(){return e=>this.service.check(e.value).pipe((0,q.U)(r=>r?{isbnexists:!0}:null))}static#e=this.\u0275fac=function(r){return new(r||t)(o.LFG(ce.T))};static#t=this.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const En=function(t){if(!t.value||"string"!=typeof t.value)return null;const e=t.value.replace(/-/g,"").length;return 10===e||13===e?null:{isbnformat:!0}},Fn=function(t){return!(t=>t instanceof _t)(t)||t.controls.some(n=>!!n.value)?null:{atleastonevalue:!0}};let wn=(()=>{class t{constructor(e,r){this.renderer=e,this.elementRef=r,this.onInput=i=>{const s=i?new Date(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()):null,a=s?s.toISOString():null;this.onChange(a)},this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){const r=e?new Date(e):null,i=r?new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate())):null;this.renderer.setProperty(this.elementRef.nativeElement,"valueAsDate",i)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.renderer.setProperty(this.elementRef.nativeElement,"disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Qsj),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(e,r){1&e&&o.NdJ("input",function(s){return r.onInput(s.target.valueAsDate)})("blur",function(){return r.onTouched()})},standalone:!0,features:[o._Bn([{provide:h,useExisting:(0,o.Gpc)(()=>t),multi:!0}])]}),t})();function On(t,n){if(1&t&&(o.TgZ(0,"p",1),o._uU(1),o.qZA()),2&t){const e=n.$implicit;o.xp6(1),o.hij(" ",e,"\n")}}let Sn=(()=>{class t{constructor(e){this.form=e,this.messages={}}get errors(){if(!this.controlName)return[];const e=this.form.control.get(this.controlName);return e&&e.errors&&e.touched?Object.keys(e.errors).map(r=>this.messages[r]):[]}static#e=this.\u0275fac=function(r){return new(r||t)(o.Y36(w))};static#t=this.\u0275cmp=o.Xpm({type:t,selectors:[["bm-form-errors"]],inputs:{controlName:"controlName",messages:"messages"},decls:1,vars:1,consts:[["class","error",4,"ngFor","ngForOf"],[1,"error"]],template:function(r,i){1&r&&o.YNc(0,On,2,1,"p",0),2&r&&o.Q6J("ngForOf",i.errors)},dependencies:[_.sg]})}return t})();function Nn(t,n){if(1&t&&o._UZ(0,"input",20),2&t){const e=n.index;o.Q6J("formControlName",e),o.uIk("aria-label","Author "+e)}}const Bn=function(){return{required:"Title is required"}},In=function(){return{required:"ISBN is required",isbnformat:"ISBN must have 10 or 13 chars",isbnexists:"ISBN already exists"}},Gn=function(){return{atleastonevalue:"At least one author required"}};let yt=(()=>{class t{constructor(){this.submitBook=new o.vpe,this.form=new k({title:new f("",{nonNullable:!0,validators:ge.required}),subtitle:new f("",{nonNullable:!0}),isbn:new f("",{nonNullable:!0,validators:[ge.required,En],asyncValidators:(0,o.f3M)(Mn).isbnExists()}),description:new f("",{nonNullable:!0}),published:new f("",{nonNullable:!0}),authors:this.buildAuthorsArray([""]),thumbnailUrl:new f("",{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){const r=this.form.controls.isbn;e?r.disable():r.enable()}buildAuthorsArray(e){return new _t(e.map(r=>new f(r,{nonNullable:!0})),Fn)}get authors(){return this.form.controls.authors}addAuthorControl(){this.authors.push(new f("",{nonNullable:!0}))}submitForm(){const e=this.form.getRawValue(),r=e.authors.filter(s=>!!s),i={...e,authors:r};this.submitBook.emit(i)}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275cmp=o.Xpm({type:t,selectors:[["bm-book-form"]],inputs:{book:"book"},outputs:{submitBook:"submitBook"},features:[o.TTD],decls:30,vars:9,consts:[[3,"formGroup","ngSubmit"],["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(r,i){1&r&&(o.TgZ(0,"form",0),o.NdJ("ngSubmit",function(){return i.submitForm()}),o.TgZ(1,"label",1),o._uU(2,"Title"),o.qZA(),o._UZ(3,"input",2)(4,"bm-form-errors",3),o.TgZ(5,"label",4),o._uU(6,"Subtitle"),o.qZA(),o._UZ(7,"input",5),o.TgZ(8,"label",6),o._uU(9,"ISBN"),o.qZA(),o._UZ(10,"input",7)(11,"bm-form-errors",8),o.TgZ(12,"label"),o._uU(13,"Authors"),o.qZA(),o.TgZ(14,"button",9),o.NdJ("click",function(){return i.addAuthorControl()}),o._uU(15," + Author "),o.qZA(),o.TgZ(16,"fieldset",10),o.YNc(17,Nn,1,2,"input",11),o.qZA(),o._UZ(18,"bm-form-errors",12),o.TgZ(19,"label",13),o._uU(20,"Description"),o.qZA(),o._UZ(21,"textarea",14),o.TgZ(22,"label",15),o._uU(23,"Published"),o.qZA(),o._UZ(24,"input",16),o.TgZ(25,"label",17),o._uU(26,"Thumbnail URL"),o.qZA(),o._UZ(27,"input",18),o.TgZ(28,"button",19),o._uU(29," Save "),o.qZA()()),2&r&&(o.Q6J("formGroup",i.form),o.xp6(4),o.Q6J("messages",o.DdM(6,Bn)),o.xp6(7),o.Q6J("messages",o.DdM(7,In)),o.xp6(6),o.Q6J("ngForOf",i.authors.controls),o.xp6(1),o.Q6J("messages",o.DdM(8,Gn)),o.xp6(10),o.Q6J("disabled",i.form.invalid))},dependencies:[_.sg,Ke,S,He,Pe,w,se,L,wn,Sn]})}return t})(),Tn=(()=>{class t{constructor(e,r){this.service=e,this.router=r}create(e){this.service.create(e).subscribe(r=>{this.router.navigate(["/books",r.isbn])})}static#e=this.\u0275fac=function(r){return new(r||t)(o.Y36(ce.T),o.Y36(O.F0))};static#t=this.\u0275cmp=o.Xpm({type:t,selectors:[["bm-book-create"]],decls:3,vars:0,consts:[[3,"submitBook"]],template:function(r,i){1&r&&(o.TgZ(0,"h1"),o._uU(1,"Create Book"),o.qZA(),o.TgZ(2,"bm-book-form",0),o.NdJ("submitBook",function(a){return i.create(a)}),o.qZA())},dependencies:[yt]})}return t})();var kn=l(4664);function xn(t,n){if(1&t){const e=o.EpF();o.TgZ(0,"bm-book-form",1),o.NdJ("submitBook",function(i){o.CHM(e);const s=o.oxw();return o.KtG(s.update(i))}),o.qZA()}2&t&&o.Q6J("book",n.ngIf)}const Un=[{path:"",redirectTo:"create",pathMatch:"full"},{path:"create",component:Tn},{path:"edit/:isbn",component:(()=>{class t{constructor(e,r,i){this.service=e,this.route=r,this.router=i,this.book$=this.route.paramMap.pipe((0,q.U)(s=>s.get("isbn")),(0,kn.w)(s=>this.service.getSingle(s)))}update(e){this.service.update(e).subscribe(r=>{this.router.navigate(["/books",r.isbn])})}static#e=this.\u0275fac=function(r){return new(r||t)(o.Y36(ce.T),o.Y36(O.gz),o.Y36(O.F0))};static#t=this.\u0275cmp=o.Xpm({type:t,selectors:[["bm-book-edit"]],decls:4,vars:3,consts:[[3,"book","submitBook",4,"ngIf"],[3,"book","submitBook"]],template:function(r,i){1&r&&(o.TgZ(0,"h1"),o._uU(1,"Edit Book"),o.qZA(),o.YNc(2,xn,1,1,"bm-book-form",0),o.ALo(3,"async")),2&r&&(o.xp6(2),o.Q6J("ngIf",o.lcZ(3,1,i.book$)))},dependencies:[_.O5,yt,_.Ov]})}return t})()}];let Hn=(()=>{class t{static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275mod=o.oAB({type:t});static#n=this.\u0275inj=o.cJS({imports:[O.Bz.forChild(Un),O.Bz]})}return t})(),Pn=(()=>{class t{static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275mod=o.oAB({type:t});static#n=this.\u0275inj=o.cJS({imports:[_.ez,Hn,bn]})}return t})()}}]);
\ No newline at end of file
diff --git a/browser/chunk-CTMD4SQN.js b/browser/chunk-CTMD4SQN.js
new file mode 100644
index 0000000..3bc7a4a
--- /dev/null
+++ b/browser/chunk-CTMD4SQN.js
@@ -0,0 +1,2 @@
+import{$ as E,A as we,B as de,D as B,E as j,F as g,G as s,H as S,I as v,J as he,K as h,L as fe,N as O,O as l,P as u,Q as D,T as Ie,U as Se,V as f,W as Ne,Y as c,_ as Oe,a as m,aa as q,b,ca as ke,da as xe,e as be,f as N,g as Ae,ha as pe,ja as z,k as Me,ka as Pe,la as Te,n as A,na as Be,o as W,p as ue,q as C,r as I,s as Ee,sa as je,t as ce,u as M,ua as Y,v as V,w as d,xa as me,y as T,ya as k,z as Fe}from"./chunk-LH4AV5V3.js";var qe=(()=>{let e=class e{constructor(i,r){this._renderer=i,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(i,r){this._renderer.setProperty(this._elementRef.nativeElement,i,r)}registerOnTouched(i){this.onTouched=i}registerOnChange(i){this.onChange=i}setDisabledState(i){this.setProperty("disabled",i)}};e.\u0275fac=function(r){return new(r||e)(s(j),s(B))},e.\u0275dir=d({type:e});let t=e;return t})(),St=(()=>{let e=class e extends qe{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=de(e)))(o||e)}})(),e.\u0275dir=d({type:e,features:[v]});let t=e;return t})(),ie=new I("NgValueAccessor");var Nt={provide:ie,useExisting:A(()=>ne),multi:!0};function Ot(){let t=pe()?pe().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var kt=new I("CompositionEventMode"),ne=(()=>{let e=class e extends qe{constructor(i,r,o){super(i,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Ot())}writeValue(i){let r=i??"";this.setProperty("value",r)}_handleInput(i){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(i)}_compositionStart(){this._composing=!0}_compositionEnd(i){this._composing=!1,this._compositionMode&&this.onChange(i)}};e.\u0275fac=function(r){return new(r||e)(s(j),s(B),s(kt,8))},e.\u0275dir=d({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&f("input",function(_){return o._handleInput(_.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(_){return o._compositionEnd(_.target.value)})},features:[E([Nt]),v]});let t=e;return t})();function F(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function ze(t){return t!=null&&typeof t.length=="number"}var re=new I("NgValidators"),oe=new I("NgAsyncValidators"),xt=/^(?=.{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])?)*$/,U=class{static min(e){return Pt(e)}static max(e){return Tt(e)}static required(e){return Bt(e)}static requiredTrue(e){return jt(e)}static email(e){return Gt(e)}static minLength(e){return Rt(e)}static maxLength(e){return Ut(e)}static pattern(e){return Ht(e)}static nullValidator(e){return Ye(e)}static compose(e){return et(e)}static composeAsync(e){return it(e)}};function Pt(t){return e=>{if(F(e.value)||F(t))return null;let n=parseFloat(e.value);return!isNaN(n)&&n{if(F(e.value)||F(t))return null;let n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}function Bt(t){return F(t.value)?{required:!0}:null}function jt(t){return t.value===!0?null:{required:!0}}function Gt(t){return F(t.value)||xt.test(t.value)?null:{email:!0}}function Rt(t){return e=>F(e.value)||!ze(e.value)?null:e.value.lengthze(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function Ht(t){if(!t)return Ye;let e,n;return typeof t=="string"?(n="",t.charAt(0)!=="^"&&(n+="^"),n+=t,t.charAt(t.length-1)!=="$"&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),i=>{if(F(i.value))return null;let r=i.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}function Ye(t){return null}function Ze(t){return t!=null}function Xe(t){return Se(t)?be(t):t}function Ke(t){let e={};return t.forEach(n=>{e=n!=null?m(m({},e),n):e}),Object.keys(e).length===0?null:e}function Je(t,e){return e.map(n=>n(t))}function Lt(t){return!t.validate}function Qe(t){return t.map(e=>Lt(e)?e:n=>e.validate(n))}function et(t){if(!t)return null;let e=t.filter(Ze);return e.length==0?null:function(n){return Ke(Je(n,e))}}function tt(t){return t!=null?et(Qe(t)):null}function it(t){if(!t)return null;let e=t.filter(Ze);return e.length==0?null:function(n){let i=Je(n,e).map(Xe);return Ae(i).pipe(N(Ke))}}function nt(t){return t!=null?it(Qe(t)):null}function Ge(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function rt(t){return t._rawValidators}function ot(t){return t._rawAsyncValidators}function ge(t){return t?Array.isArray(t)?t:[t]:[]}function X(t,e){return Array.isArray(t)?t.includes(e):t===e}function Re(t,e){let n=ge(e);return ge(t).forEach(r=>{X(n,r)||n.push(r)}),n}function Ue(t,e){return ge(e).filter(n=>!X(t,n))}var K=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=tt(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=nt(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,n){return this.control?this.control.hasError(e,n):!1}getError(e,n){return this.control?this.control.getError(e,n):null}},p=class extends K{get formDirective(){return null}get path(){return null}},H=class extends K{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},J=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},$t={"[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"},Ui=b(m({},$t),{"[class.ng-submitted]":"isSubmitted"}),st=(()=>{let e=class e extends J{constructor(i){super(i)}};e.\u0275fac=function(r){return new(r||e)(s(H,2))},e.\u0275dir=d({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&fe("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[v]});let t=e;return t})(),at=(()=>{let e=class e extends J{constructor(i){super(i)}};e.\u0275fac=function(r){return new(r||e)(s(p,10))},e.\u0275dir=d({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&fe("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[v]});let t=e;return t})();var G="VALID",Z="INVALID",x="PENDING",R="DISABLED";function ve(t){return(se(t)?t.validators:t)||null}function Wt(t){return Array.isArray(t)?tt(t):t||null}function ye(t,e){return(se(e)?e.asyncValidators:t)||null}function qt(t){return Array.isArray(t)?nt(t):t||null}function se(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function lt(t,e,n){let i=t.controls;if(!(e?Object.keys(i):i).length)throw new W(1e3,"");if(!i[n])throw new W(1001,"")}function ut(t,e,n){t._forEachChild((i,r)=>{if(n[r]===void 0)throw new W(1002,"")})}var L=class{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(n)}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 valid(){return this.status===G}get invalid(){return this.status===Z}get pending(){return this.status==x}get disabled(){return this.status===R}get enabled(){return this.status!==R}get dirty(){return!this.pristine}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(Re(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Re(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Ue(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Ue(e,this._rawAsyncValidators))}hasValidator(e){return X(this._rawValidators,e)}hasAsyncValidator(e){return X(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=x,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=R,this.errors=null,this._forEachChild(i=>{i.disable(b(m({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(b(m({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=G,this._forEachChild(i=>{i.enable(b(m({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(b(m({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===G||this.status===x)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?R:G}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=x,this._hasOwnPendingAsyncValidator=!0;let n=Xe(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(n.emitEvent!==!1)}get(e){let n=e;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((i,r)=>i&&i._find(r),this)}getError(e,n){let i=n?this.get(n):this;return i&&i.errors?i.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new S,this.statusChanges=new S}_calculateStatus(){return this._allControlsDisabled()?R:this.errors?Z:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(x)?x:this._anyControlsHaveStatus(Z)?Z:G}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){se(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let n=this._parent&&this._parent.dirty;return!e&&!!n&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=Wt(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=qt(this._rawAsyncValidators)}},Q=class extends L{constructor(e,n,i){super(ve(n),ye(i,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,i={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){ut(this,!0,e),Object.keys(e).forEach(i=>{lt(this,!0,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(Object.keys(e).forEach(i=>{let r=this.controls[i];r&&r.patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((i,r)=>{i.reset(e?e[r]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,i)=>(e[i]=n.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,i)=>i._syncPendingControls()?!0:n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(n=>{let i=this.controls[n];i&&e(i,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[n,i]of Object.entries(this.controls))if(this.contains(n)&&e(i))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(n,i,r)=>((i.enabled||this.disabled)&&(n[r]=i.value),n))}_reduceChildren(e,n){let i=e;return this._forEachChild((r,o)=>{i=n(i,r,o)}),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 ct=new I("CallSetDisabledState",{providedIn:"root",factory:()=>_e}),_e="always";function Ce(t,e){return[...e.path,t]}function He(t,e,n=_e){Ve(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||n==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),Yt(t,e),Xt(t,e),Zt(t,e),zt(t,e)}function Le(t,e,n=!0){let i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),te(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function ee(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function zt(t,e){if(e.valueAccessor.setDisabledState){let n=i=>{e.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}function Ve(t,e){let n=rt(t);e.validator!==null?t.setValidators(Ge(n,e.validator)):typeof n=="function"&&t.setValidators([n]);let i=ot(t);e.asyncValidator!==null?t.setAsyncValidators(Ge(i,e.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();ee(e._rawValidators,r),ee(e._rawAsyncValidators,r)}function te(t,e){let n=!1;if(t!==null){if(e.validator!==null){let r=rt(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==e.validator);o.length!==r.length&&(n=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let r=ot(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==e.asyncValidator);o.length!==r.length&&(n=!0,t.setAsyncValidators(o))}}}let i=()=>{};return ee(e._rawValidators,i),ee(e._rawAsyncValidators,i),n}function Yt(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&dt(t,e)})}function Zt(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&dt(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function dt(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Xt(t,e){let n=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}function Kt(t,e){t==null,Ve(t,e)}function Jt(t,e){return te(t,e)}function Qt(t,e){if(!t.hasOwnProperty("model"))return!1;let n=t.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function ei(t){return Object.getPrototypeOf(t.constructor)===St}function ti(t,e){t._syncPendingControls(),e.forEach(n=>{let i=n.control;i.updateOn==="submit"&&i._pendingChange&&(n.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function ii(t,e){if(!e)return null;Array.isArray(e);let n,i,r;return e.forEach(o=>{o.constructor===ne?n=o:ei(o)?i=o:r=o}),r||i||n||null}function ni(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function $e(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function We(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var y=class extends L{constructor(e=null,n,i){super(ve(n),ye(i,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),se(n)&&(n.nonNullable||n.initialValueIsDefault)&&(We(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){$e(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){$e(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){We(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 ri=t=>t instanceof y,oi=(()=>{let e=class e extends p{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Ce(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=de(e)))(o||e)}})(),e.\u0275dir=d({type:e,features:[v]});let t=e;return t})();var ht=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=d({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var si=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=V({type:e}),e.\u0275inj=C({});let t=e;return t})();var ft=new I("NgModelWithFormControlWarning");var ai={provide:p,useExisting:A(()=>P)},P=(()=>{let e=class e extends p{constructor(i,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new S,this._setValidators(i),this._setAsyncValidators(r)}ngOnChanges(i){this._checkFormPresent(),i.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(te(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(i){let r=this.form.get(i.path);return He(r,i,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(i),r}getControl(i){return this.form.get(i.path)}removeControl(i){Le(i.control||null,i,!1),ni(this.directives,i)}addFormGroup(i){this._setUpFormContainer(i)}removeFormGroup(i){this._cleanUpFormContainer(i)}getFormGroup(i){return this.form.get(i.path)}addFormArray(i){this._setUpFormContainer(i)}removeFormArray(i){this._cleanUpFormContainer(i)}getFormArray(i){return this.form.get(i.path)}updateModel(i,r){this.form.get(i.path).setValue(r)}onSubmit(i){return this.submitted=!0,ti(this.form,this.directives),this.ngSubmit.emit(i),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this.submitted=!1}_updateDomValue(){this.directives.forEach(i=>{let r=i.control,o=this.form.get(i.path);r!==o&&(Le(r||null,i),ri(o)&&(He(o,i,this.callSetDisabledState),i.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(i){let r=this.form.get(i.path);Kt(r,i),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(i){if(this.form){let r=this.form.get(i.path);r&&Jt(r,i)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ve(this.form,this),this._oldForm&&te(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(s(re,10),s(oe,10),s(ct,8))},e.\u0275dir=d({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&f("submit",function(_){return o.onSubmit(_)})("reset",function(){return o.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[E([ai]),v,T]});let t=e;return t})(),li={provide:p,useExisting:A(()=>pt)},pt=(()=>{let e=class e extends oi{constructor(i,r,o){super(),this.name=null,this._parent=i,this._setValidators(r),this._setAsyncValidators(o)}_checkParentType(){mt(this._parent)}};e.\u0275fac=function(r){return new(r||e)(s(p,13),s(re,10),s(oe,10))},e.\u0275dir=d({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[E([li]),v]});let t=e;return t})(),ui={provide:p,useExisting:A(()=>ae)},ae=(()=>{let e=class e extends p{constructor(i,r,o){super(),this.name=null,this._parent=i,this._setValidators(r),this._setAsyncValidators(o)}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 Ce(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){mt(this._parent)}};e.\u0275fac=function(r){return new(r||e)(s(p,13),s(re,10),s(oe,10))},e.\u0275dir=d({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[E([ui]),v]});let t=e;return t})();function mt(t){return!(t instanceof pt)&&!(t instanceof P)&&!(t instanceof ae)}var ci={provide:H,useExisting:A(()=>De)},De=(()=>{let e=class e extends H{set isDisabled(i){}constructor(i,r,o,a,_){super(),this._ngModelWarningConfig=_,this._added=!1,this.name=null,this.update=new S,this._ngModelWarningSent=!1,this._parent=i,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=ii(this,a)}ngOnChanges(i){this._added||this._setUpControl(),Qt(i,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}get path(){return Ce(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}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(s(p,13),s(re,10),s(oe,10),s(ie,10),s(ft,8))},e.\u0275dir=d({type:e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[E([ci]),v,T]});let t=e;return t})();var di=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=V({type:e}),e.\u0275inj=C({imports:[si]});let t=e;return t})(),$=class extends L{constructor(e,n,i){super(ve(n),ye(i,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,n={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(e,n,i={}){this.controls.splice(e,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(e,n={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(e,n,i={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),n&&(this.controls.splice(r,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,n={}){ut(this,!1,e),e.forEach((i,r)=>{lt(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(e.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e=[],n={}){this._forEachChild((i,r)=>{i.reset(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(n=>n._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((n,i)=>i._syncPendingControls()?!0:n,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((n,i)=>{e(n,i)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(n=>n.enabled&&e(n))}_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 gt=t=>t instanceof $;var vt=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:ft,useValue:i.warnOnNgModelWithFormControl??"always"},{provide:ct,useValue:i.callSetDisabledState??_e}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=V({type:e}),e.\u0275inj=C({imports:[di]});let t=e;return t})();var _t=(()=>{class t{constructor(n,i){this.renderer=n,this.elementRef=i,this.onInput=r=>{let o=r?new Date(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()):null,a=o?o.toISOString():null;this.onChange(a)},this.onChange=()=>{},this.onTouched=()=>{}}writeValue(n){let i=n?new Date(n):null,r=i?new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate())):null;this.renderer.setProperty(this.elementRef.nativeElement,"valueAsDate",r)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}setDisabledState(n){this.renderer.setProperty(this.elementRef.nativeElement,"disabled",n)}}return t.\u0275fac=function(n){return new(n||t)(s(j),s(B))},t.\u0275dir=d({type:t,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(n,i){n&1&&f("input",function(o){return i.onInput(o.target.valueAsDate)})("blur",function(){return i.onTouched()})},standalone:!0,features:[E([{provide:ie,useExisting:A(()=>t),multi:!0}])]}),t})();var Vt=(()=>{let e=class e{constructor(i){this.service=i}isbnExists(){return i=>this.service.check(i.value).pipe(N(r=>r?{isbnexists:!0}:null))}};e.\u0275fac=function(r){return new(r||e)(Ee(k))},e.\u0275prov=ue({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Dt=function(t){if(!t.value||typeof t.value!="string")return null;let n=t.value.replace(/-/g,"").length;return n===10||n===13?null:{isbnformat:!0}},bt=function(t){return!gt(t)||t.controls.some(e=>!!e.value)?null:{atleastonevalue:!0}};function fi(t,e){if(t&1&&(l(0,"p",1),c(1),u()),t&2){let n=e.$implicit;g(1),Oe(" ",n,`
+`)}}var Mt=(()=>{let e=class e{constructor(i){this.form=i,this.messages={}}get errors(){if(!this.controlName)return[];let i=this.form.control.get(this.controlName);return!i||!i.errors||!i.touched?[]:Object.keys(i.errors).map(r=>this.messages[r])}};e.\u0275fac=function(r){return new(r||e)(s(P))},e.\u0275cmp=M({type:e,selectors:[["bm-form-errors"]],inputs:{controlName:"controlName",messages:"messages"},decls:1,vars:1,consts:[["class","error",4,"ngFor","ngForOf"],[1,"error"]],template:function(r,o){r&1&&O(0,fi,2,1,"p",0),r&2&&h("ngForOf",o.errors)},dependencies:[z]});let t=e;return t})();function mi(t,e){if(t&1&&D(0,"input",20),t&2){let n=e.index;h("formControlName",n),he("aria-label","Author "+n)}}var gi=()=>({required:"Title is required"}),vi=()=>({required:"ISBN is required",isbnformat:"ISBN must have 10 or 13 chars",isbnexists:"ISBN already exists"}),yi=()=>({atleastonevalue:"At least one author required"}),le=(()=>{let e=class e{constructor(){this.submitBook=new S,this.form=new Q({title:new y("",{nonNullable:!0,validators:U.required}),subtitle:new y("",{nonNullable:!0}),isbn:new y("",{nonNullable:!0,validators:[U.required,Dt],asyncValidators:ce(Vt).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(i){this.form.patchValue(i),this.form.setControl("authors",this.buildAuthorsArray(i.authors))}setEditMode(i){let r=this.form.controls.isbn;i?r.disable():r.enable()}buildAuthorsArray(i){return new $(i.map(r=>new y(r,{nonNullable:!0})),bt)}get authors(){return this.form.controls.authors}addAuthorControl(){this.authors.push(new y("",{nonNullable:!0}))}submitForm(){let i=this.form.getRawValue(),r=i.authors.filter(a=>!!a),o=b(m({},i),{authors:r});this.submitBook.emit(o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=M({type:e,selectors:[["bm-book-form"]],inputs:{book:"book"},outputs:{submitBook:"submitBook"},features:[T],decls:30,vars:9,consts:[[3,"formGroup","ngSubmit"],["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(r,o){r&1&&(l(0,"form",0),f("ngSubmit",function(){return o.submitForm()}),l(1,"label",1),c(2,"Title"),u(),D(3,"input",2)(4,"bm-form-errors",3),l(5,"label",4),c(6,"Subtitle"),u(),D(7,"input",5),l(8,"label",6),c(9,"ISBN"),u(),D(10,"input",7)(11,"bm-form-errors",8),l(12,"label"),c(13,"Authors"),u(),l(14,"button",9),f("click",function(){return o.addAuthorControl()}),c(15," + Author "),u(),l(16,"fieldset",10),O(17,mi,1,2,"input",11),u(),D(18,"bm-form-errors",12),l(19,"label",13),c(20,"Description"),u(),D(21,"textarea",14),l(22,"label",15),c(23,"Published"),u(),D(24,"input",16),l(25,"label",17),c(26,"Thumbnail URL"),u(),D(27,"input",18),l(28,"button",19),c(29," Save "),u()()),r&2&&(h("formGroup",o.form),g(4),h("messages",q(6,gi)),g(7),h("messages",q(7,vi)),g(6),h("ngForOf",o.authors.controls),g(1),h("messages",q(8,yi)),g(10),h("disabled",o.form.invalid))},dependencies:[z,ht,ne,st,at,P,De,ae,_t,Mt]});let t=e;return t})();var Ft=(()=>{let e=class e{constructor(i,r){this.service=i,this.router=r}create(i){this.service.create(i).subscribe(r=>{this.router.navigate(["/books",r.isbn])})}};e.\u0275fac=function(r){return new(r||e)(s(k),s(Y))},e.\u0275cmp=M({type:e,selectors:[["bm-book-create"]],decls:3,vars:0,consts:[[3,"submitBook"]],template:function(r,o){r&1&&(l(0,"h1"),c(1,"Create Book"),u(),l(2,"bm-book-form",0),f("submitBook",function(_){return o.create(_)}),u())},dependencies:[le]});let t=e;return t})();function Ci(t,e){if(t&1){let n=Ie();l(0,"bm-book-form",1),f("submitBook",function(r){Fe(n);let o=Ne();return we(o.update(r))}),u()}if(t&2){let n=e.ngIf;h("book",n)}}var wt=(()=>{let e=class e{constructor(i,r,o){this.service=i,this.route=r,this.router=o,this.book$=this.route.paramMap.pipe(N(a=>a.get("isbn")),Me(a=>this.service.getSingle(a)))}update(i){this.service.update(i).subscribe(r=>{this.router.navigate(["/books",r.isbn])})}};e.\u0275fac=function(r){return new(r||e)(s(k),s(je),s(Y))},e.\u0275cmp=M({type:e,selectors:[["bm-book-edit"]],decls:4,vars:3,consts:[[3,"book","submitBook",4,"ngIf"],[3,"book","submitBook"]],template:function(r,o){r&1&&(l(0,"h1"),c(1,"Edit Book"),u(),O(2,Ci,1,1,"bm-book-form",0),ke(3,"async")),r&2&&(g(2),h("ngIf",xe(3,1,o.book$)))},dependencies:[Pe,le,Te]});let t=e;return t})();var Vi=[{path:"",redirectTo:"create",pathMatch:"full"},{path:"create",component:Ft},{path:"edit/:isbn",component:wt}],It=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=V({type:e}),e.\u0275inj=C({imports:[me.forChild(Vi),me]});let t=e;return t})();var En=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=V({type:e}),e.\u0275inj=C({imports:[Be,It,vt]});let t=e;return t})();export{En as AdminModule};
diff --git a/browser/chunk-KHUABC3J.js b/browser/chunk-KHUABC3J.js
new file mode 100644
index 0000000..b2e41d5
--- /dev/null
+++ b/browser/chunk-KHUABC3J.js
@@ -0,0 +1 @@
+import{a as X}from"./chunk-LLWC3US5.js";import{A as P,C as E,F as r,G as d,H as R,K as c,M as U,N as p,O as m,P as n,Q as x,R as A,S as V,T as H,V as D,W as f,Y as a,Z as v,_ as b,ba as z,c as N,ca as u,da as g,ea as q,fa as G,ja as _,ka as I,l as $,la as L,ma as J,na as K,q as y,sa as Q,u as k,ua as W,v as B,va as w,w as S,x as j,xa as O,ya as F,z as M}from"./chunk-LH4AV5V3.js";var Y=(()=>{let t=class t{constructor(){this.confirm=new R}onClick(){window.confirm(this.confirmText)&&this.confirm.emit()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=S({type:t,selectors:[["","bmConfirm",""]],hostBindings:function(o,l){o&1&&D("click",function(){return l.onClick()})},inputs:{confirmText:["bmConfirm","confirmText"]},outputs:{confirm:"confirm"}});let e=t;return e})();var Z=(()=>{let t=class t{constructor(s,o,l){this.template=s,this.viewContainer=o,this.authService=l,this.destroy$=new N,this.authService.isAuthenticated$.pipe($(this.destroy$)).subscribe(C=>{C?this.viewContainer.createEmbeddedView(this.template):this.viewContainer.clear()})}ngOnDestroy(){this.destroy$.next()}};t.\u0275fac=function(o){return new(o||t)(d(G),d(U),d(X))},t.\u0275dir=S({type:t,selectors:[["","bmLoggedinOnly",""]]});let e=t;return e})();var T=(()=>{let t=class t{transform(s){return s?`${s.substring(0,3)}-${s.substring(3)}`:""}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=j({name:"isbn",type:t,pure:!0});let e=t;return e})();function pt(e,t){if(e&1&&(m(0,"p",9),a(1),n()),e&2){let i=f().ngIf;r(1),v(i.subtitle)}}function lt(e,t){if(e&1&&(m(0,"li"),a(1),n()),e&2){let i=t.$implicit;r(1),v(i)}}function ft(e,t){if(e&1&&(m(0,"div")(1,"h2"),a(2,"Published"),n(),a(3),u(4,"date"),n()),e&2){let i=f().ngIf;r(3),b(" ",q(4,1,i.published,"longDate")," ")}}function dt(e,t){if(e&1&&x(0,"img",10),e&2){let i=f().ngIf;c("src",i.thumbnailUrl,E)}}var ut=e=>["/admin/edit",e];function vt(e,t){if(e&1){let i=H();A(0),m(1,"button",11),D("confirm",function(){M(i);let o=f().ngIf,l=f();return P(l.removeBook(o.isbn))}),a(2," Remove book "),n(),m(3,"a",12),a(4," Edit book "),n(),V()}if(e&2){let i=f().ngIf;r(3),c("routerLink",z(1,ut,i.isbn))}}function bt(e,t){if(e&1&&(m(0,"div",1)(1,"h1"),a(2),n(),p(3,pt,2,1,"p",2),m(4,"div",3)(5,"div")(6,"h2"),a(7,"Authors"),n(),m(8,"ul"),p(9,lt,2,1,"li",4),n()(),m(10,"div")(11,"h2"),a(12,"ISBN"),n(),a(13),u(14,"isbn"),n(),p(15,ft,5,4,"div",5),n(),m(16,"h2"),a(17,"Description"),n(),m(18,"p"),a(19),n(),p(20,dt,1,1,"img",6),m(21,"a",7),a(22,"Back to list"),n(),p(23,vt,5,3,"ng-container",8),n()),e&2){let i=t.ngIf;r(2),v(i.title),r(1),c("ngIf",i.subtitle),r(6),c("ngForOf",i.authors),r(4),b(" ",g(14,7,i.isbn)," "),r(2),c("ngIf",i.published),r(4),v(i.description),r(1),c("ngIf",i.thumbnailUrl)}}var it=(()=>{let t=class t{constructor(s,o,l){this.service=s,this.route=o,this.router=l;let C=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(C)}removeBook(s){this.service.remove(s).subscribe(()=>{this.router.navigateByUrl("/books")})}};t.\u0275fac=function(o){return new(o||t)(d(F),d(Q),d(W))},t.\u0275cmp=k({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(o,l){o&1&&(p(0,bt,24,9,"div",0),u(1,"async")),o&2&&c("ngIf",g(1,1,l.book$))},dependencies:[_,I,w,Y,Z,L,J,T]});let e=t;return e})();function gt(e,t){if(e&1&&x(0,"img",6),e&2){let i=f(2);c("src",i.book.thumbnailUrl,E)}}function ht(e,t){if(e&1&&(m(0,"p",7),a(1),n()),e&2){let i=f(2);r(1),b(" ",i.book.subtitle," ")}}function kt(e,t){if(e&1&&(m(0,"li"),a(1),n()),e&2){let i=t.$implicit;r(1),b(" ",i," ")}}function xt(e,t){if(e&1&&(m(0,"a",1),p(1,gt,1,1,"img",2),m(2,"h2"),a(3),n(),p(4,ht,2,1,"p",3),m(5,"ul",4),p(6,kt,2,1,"li",5),n(),m(7,"div"),a(8),u(9,"isbn"),n()()),e&2){let i=f();c("routerLink",i.book.isbn),r(1),c("ngIf",i.book.thumbnailUrl),r(2),v(i.book.title),r(1),c("ngIf",i.book.subtitle),r(2),c("ngForOf",i.book.authors),r(2),b("ISBN ",g(9,6,i.book.isbn),"")}}var ot=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=k({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(o,l){o&1&&p(0,xt,10,8,"a",0),o&2&&c("ngIf",l.book)},dependencies:[_,I,w,T]});let e=t;return e})();function It(e,t){if(e&1&&(m(0,"li"),x(1,"bm-book-list-item",4),n()),e&2){let i=t.$implicit;r(1),c("book",i)}}function Ct(e,t){e&1&&(m(0,"li"),a(1," No books available. "),n())}function yt(e,t){if(e&1&&(m(0,"ul",1),p(1,It,2,1,"li",2)(2,Ct,2,0,"li",3),n()),e&2){let i=t.ngIf;r(1),c("ngForOf",i),r(1),c("ngIf",!i.length)}}var nt=(()=>{let t=class t{constructor(s){this.service=s,this.books$=this.service.getAll()}};t.\u0275fac=function(o){return new(o||t)(d(F))},t.\u0275cmp=k({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(o,l){o&1&&(m(0,"h1"),a(1,"Books"),n(),p(2,yt,3,2,"ul",0),u(3,"async")),o&2&&(r(2),c("ngIf",g(3,1,l.books$)))},dependencies:[_,I,ot,L]});let e=t;return e})();var Bt=[{path:"",component:nt},{path:":isbn",component:it}],rt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=B({type:t}),t.\u0275inj=y({imports:[O.forChild(Bt),O]});let e=t;return e})();var Zt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=B({type:t}),t.\u0275inj=y({imports:[K,rt]});let e=t;return e})();export{Zt as BooksModule};
diff --git a/browser/chunk-LH4AV5V3.js b/browser/chunk-LH4AV5V3.js
new file mode 100644
index 0000000..21c67c1
--- /dev/null
+++ b/browser/chunk-LH4AV5V3.js
@@ -0,0 +1,8 @@
+var dg=Object.defineProperty,fg=Object.defineProperties;var hg=Object.getOwnPropertyDescriptors;var Kc=Object.getOwnPropertySymbols;var pg=Object.prototype.hasOwnProperty,gg=Object.prototype.propertyIsEnumerable;var Jc=(t,e,r)=>e in t?dg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,y=(t,e)=>{for(var r in e||={})pg.call(e,r)&&Jc(t,r,e[r]);if(Kc)for(var r of Kc(e))gg.call(e,r)&&Jc(t,r,e[r]);return t},Y=(t,e)=>fg(t,hg(e));var Xc=null;var Ds=1;function de(t){let e=Xc;return Xc=t,e}var el={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 mg(t){if(!(Es(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Ds)){if(!t.producerMustRecompute(t)&&!ws(t)){t.dirty=!1,t.lastCleanEpoch=Ds;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Ds}}function tl(t){return t&&(t.nextProducerIndex=0),de(t)}function nl(t,e){if(de(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Es(t))for(let r=t.nextProducerIndex;rt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function ws(t){Yr(t);for(let e=0;e0}function Yr(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function vg(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function yg(){throw new Error}var Dg=yg;function ol(t){Dg=t}function M(t){return typeof t=="function"}function on(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Qr=on(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription:
+${r.map((n,o)=>`${o+1}) ${n.toString()}`).join(`
+ `)}`:"",this.name="UnsubscriptionError",this.errors=r});function Pt(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Q=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let i of r)i.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(M(n))try{n()}catch(i){e=i instanceof Qr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{il(i)}catch(s){e=e??[],s instanceof Qr?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Qr(e)}}add(e){var r;if(e&&e!==this)if(this.closed)il(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&Pt(r,e)}remove(e){let{_finalizers:r}=this;r&&Pt(r,e),e instanceof t&&e._removeParent(this)}};Q.EMPTY=(()=>{let t=new Q;return t.closed=!0,t})();var Is=Q.EMPTY;function Kr(t){return t instanceof Q||t&&"closed"in t&&M(t.remove)&&M(t.add)&&M(t.unsubscribe)}function il(t){M(t)?t():t.unsubscribe()}var Oe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var sn={setTimeout(t,e,...r){let{delegate:n}=sn;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=sn;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Jr(t){sn.setTimeout(()=>{let{onUnhandledError:e}=Oe;if(e)e(t);else throw t})}function Qn(){}var sl=(()=>bs("C",void 0,void 0))();function al(t){return bs("E",void 0,t)}function ul(t){return bs("N",t,void 0)}function bs(t,e,r){return{kind:t,value:e,error:r}}var Ft=null;function an(t){if(Oe.useDeprecatedSynchronousErrorHandling){let e=!Ft;if(e&&(Ft={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=Ft;if(Ft=null,r)throw n}}else t()}function cl(t){Oe.useDeprecatedSynchronousErrorHandling&&Ft&&(Ft.errorThrown=!0,Ft.error=t)}var kt=class extends Q{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Kr(e)&&e.add(this)):this.destination=Eg}static create(e,r,n){return new et(e,r,n)}next(e){this.isStopped?Ss(ul(e),this):this._next(e)}error(e){this.isStopped?Ss(al(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Ss(sl,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},wg=Function.prototype.bind;function Ms(t,e){return wg.call(t,e)}var Ts=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){Xr(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){Xr(n)}else Xr(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){Xr(r)}}},et=class extends kt{constructor(e,r,n){super();let o;if(M(e)||!e)o={next:e??void 0,error:r??void 0,complete:n??void 0};else{let i;this&&Oe.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&Ms(e.next,i),error:e.error&&Ms(e.error,i),complete:e.complete&&Ms(e.complete,i)}):o=e}this.destination=new Ts(o)}};function Xr(t){Oe.useDeprecatedSynchronousErrorHandling?cl(t):Jr(t)}function Cg(t){throw t}function Ss(t,e){let{onStoppedNotification:r}=Oe;r&&sn.setTimeout(()=>r(t,e))}var Eg={closed:!0,next:Qn,error:Cg,complete:Qn};var un=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")();function fe(t){return t}function xs(...t){return _s(t)}function _s(t){return t.length===0?fe:t.length===1?t[0]:function(r){return t.reduce((n,o)=>o(n),r)}}var P=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,o){let i=bg(r)?r:new et(r,n,o);return an(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=ll(n),new n((o,i)=>{let s=new et({next:a=>{try{r(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[un](){return this}pipe(...r){return _s(r)(this)}toPromise(r){return r=ll(r),new r((n,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>n(i))})}}return t.create=e=>new t(e),t})();function ll(t){var e;return(e=t??Oe.Promise)!==null&&e!==void 0?e:Promise}function Ig(t){return t&&M(t.next)&&M(t.error)&&M(t.complete)}function bg(t){return t&&t instanceof kt||Ig(t)&&Kr(t)}function As(t){return M(t?.lift)}function x(t){return e=>{if(As(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function _(t,e,r,n,o){return new Ns(t,e,r,n,o)}var Ns=class extends kt{constructor(e,r,n,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(u){e.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){e.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function cn(){return x((t,e)=>{let r=null;t._refCount++;let n=_(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let o=t._connection,i=r;r=null,o&&(!i||o===i)&&o.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var ln=class extends P{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,As(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new Q;let r=this.getSubject();e.add(this.source.subscribe(_(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=Q.EMPTY)}return e}refCount(){return cn()(this)}};var dl=on(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ue=(()=>{class t extends P{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new eo(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new dl}next(r){an(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){an(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){an(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:o,observers:i}=this;return n||o?Is:(this.currentObservers=null,i.push(r),new Q(()=>{this.currentObservers=null,Pt(i,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:o,isStopped:i}=this;n?r.error(o):i&&r.complete()}asObservable(){let r=new P;return r.source=this,r}}return t.create=(e,r)=>new eo(e,r),t})(),eo=class extends ue{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Is}};var oe=class extends ue{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var Rs={now(){return(Rs.delegate||Date).now()},delegate:void 0};var to=class extends Q{constructor(e,r){super()}schedule(e,r=0){return this}};var Kn={setInterval(t,e,...r){let{delegate:n}=Kn;return n?.setInterval?n.setInterval(t,e,...r):setInterval(t,e,...r)},clearInterval(t){let{delegate:e}=Kn;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var no=class extends to{constructor(e,r){super(e,r),this.scheduler=e,this.work=r,this.pending=!1}schedule(e,r=0){var n;if(this.closed)return this;this.state=e;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,r)),this.pending=!0,this.delay=r,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(i,this.id,r),this}requestAsyncId(e,r,n=0){return Kn.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,r,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&Kn.clearInterval(r)}execute(e,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,r){let n=!1,o;try{this.work(e)}catch(i){n=!0,o=i||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:e,scheduler:r}=this,{actions:n}=r;this.work=this.state=this.scheduler=null,this.pending=!1,Pt(n,this),e!=null&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null,super.unsubscribe()}}};var dn=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,n){return new this.schedulerActionCtor(this,e).schedule(n,r)}};dn.now=Rs.now;var ro=class extends dn{constructor(e,r=dn.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,n){for(;e=r.shift();)e.unsubscribe();throw n}}};var fl=new ro(no);var ye=new P(t=>t.complete());function hl(t){return t&&M(t.schedule)}function Os(t){return t[t.length-1]}function oo(t){return M(Os(t))?t.pop():void 0}function Be(t){return hl(Os(t))?t.pop():void 0}function pl(t,e){return typeof Os(t)=="number"?t.pop():e}function ml(t,e,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(l){try{c(n.next(l))}catch(d){s(d)}}function u(l){try{c(n.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):o(l.value).then(a,u)}c((n=n.apply(t,e||[])).next())})}function gl(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Lt(t){return this instanceof Lt?(this.v=t,this):new Lt(t)}function vl(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){n[f]&&(o[f]=function(h){return new Promise(function(g,S){i.push([f,h,g,S])>1||a(f,h)})})}function a(f,h){try{u(n[f](h))}catch(g){d(i[0][3],g)}}function u(f){f.value instanceof Lt?Promise.resolve(f.value.v).then(c,l):d(i[0][2],f)}function c(f){a("next",f)}function l(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}function yl(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof gl=="function"?gl(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(s){return new Promise(function(a,u){s=t[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}var io=t=>t&&typeof t.length=="number"&&typeof t!="function";function so(t){return M(t?.then)}function ao(t){return M(t[un])}function uo(t){return Symbol.asyncIterator&&M(t?.[Symbol.asyncIterator])}function co(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Mg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var lo=Mg();function fo(t){return M(t?.[lo])}function ho(t){return vl(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:o}=yield Lt(r.read());if(o)return yield Lt(void 0);yield yield Lt(n)}}finally{r.releaseLock()}})}function po(t){return M(t?.getReader)}function z(t){if(t instanceof P)return t;if(t!=null){if(ao(t))return Sg(t);if(io(t))return Tg(t);if(so(t))return xg(t);if(uo(t))return Dl(t);if(fo(t))return _g(t);if(po(t))return Ag(t)}throw co(t)}function Sg(t){return new P(e=>{let r=t[un]();if(M(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Tg(t){return new P(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,Jr)})}function _g(t){return new P(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function Dl(t){return new P(e=>{Ng(t,e).catch(r=>e.error(r))})}function Ag(t){return Dl(ho(t))}function Ng(t,e){var r,n,o,i;return ml(this,void 0,void 0,function*(){try{for(r=yl(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){o={error:s}}finally{try{n&&!n.done&&(i=r.return)&&(yield i.call(r))}finally{if(o)throw o.error}}e.complete()})}function De(t,e,r,n=0,o=!1){let i=e.schedule(function(){r(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(i),!o)return i}function go(t,e=0){return x((r,n)=>{r.subscribe(_(n,o=>De(n,t,()=>n.next(o),e),()=>De(n,t,()=>n.complete(),e),o=>De(n,t,()=>n.error(o),e)))})}function mo(t,e=0){return x((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function wl(t,e){return z(t).pipe(mo(e),go(e))}function Cl(t,e){return z(t).pipe(mo(e),go(e))}function El(t,e){return new P(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function Il(t,e){return new P(r=>{let n;return De(r,e,()=>{n=t[lo](),De(r,e,()=>{let o,i;try{({value:o,done:i}=n.next())}catch(s){r.error(s);return}i?r.complete():r.next(o)},0,!0)}),()=>M(n?.return)&&n.return()})}function vo(t,e){if(!t)throw new Error("Iterable cannot be null");return new P(r=>{De(r,e,()=>{let n=t[Symbol.asyncIterator]();De(r,e,()=>{n.next().then(o=>{o.done?r.complete():r.next(o.value)})},0,!0)})})}function bl(t,e){return vo(ho(t),e)}function Ml(t,e){if(t!=null){if(ao(t))return wl(t,e);if(io(t))return El(t,e);if(so(t))return Cl(t,e);if(uo(t))return vo(t,e);if(fo(t))return Il(t,e);if(po(t))return bl(t,e)}throw co(t)}function B(t,e){return e?Ml(t,e):z(t)}function D(...t){let e=Be(t);return B(t,e)}function fn(t,e){let r=M(t)?t:()=>t,n=o=>o.error(r());return new P(e?o=>e.schedule(n,0,o):n)}function Ps(t){return!!t&&(t instanceof P||M(t.lift)&&M(t.subscribe))}var tt=on(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function R(t,e){return x((r,n)=>{let o=0;r.subscribe(_(n,i=>{n.next(t.call(e,i,o++))}))})}var{isArray:Rg}=Array;function Og(t,e){return Rg(e)?t(...e):t(e)}function yo(t){return R(e=>Og(t,e))}var{isArray:Pg}=Array,{getPrototypeOf:Fg,prototype:kg,keys:Lg}=Object;function Do(t){if(t.length===1){let e=t[0];if(Pg(e))return{args:e,keys:null};if(jg(e)){let r=Lg(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function jg(t){return t&&typeof t=="object"&&Fg(t)===kg}function wo(t,e){return t.reduce((r,n,o)=>(r[n]=e[o],r),{})}function Jn(...t){let e=Be(t),r=oo(t),{args:n,keys:o}=Do(t);if(n.length===0)return B([],e);let i=new P(Vg(n,e,o?s=>wo(o,s):fe));return r?i.pipe(yo(r)):i}function Vg(t,e,r=fe){return n=>{Sl(e,()=>{let{length:o}=t,i=new Array(o),s=o,a=o;for(let u=0;u{let c=B(t[u],e),l=!1;c.subscribe(_(n,d=>{i[u]=d,l||(l=!0,a--),a||n.next(r(i.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Sl(t,e,r){t?De(r,t,e):e()}function Tl(t,e,r,n,o,i,s,a){let u=[],c=0,l=0,d=!1,f=()=>{d&&!u.length&&!c&&e.complete()},h=S=>c{i&&e.next(S),c++;let I=!1;z(r(S,l++)).subscribe(_(e,w=>{o?.(w),i?h(w):e.next(w)},()=>{I=!0},void 0,()=>{if(I)try{for(c--;u.length&&cg(w)):g(w)}f()}catch(w){e.error(w)}}))};return t.subscribe(_(e,h,()=>{d=!0,f()})),()=>{a?.()}}function K(t,e,r=1/0){return M(e)?K((n,o)=>R((i,s)=>e(n,i,o,s))(z(t(n,o))),r):(typeof e=="number"&&(r=e),x((n,o)=>Tl(n,o,t,r)))}function He(t=1/0){return K(fe,t)}function xl(){return He(1)}function hn(...t){return xl()(B(t,Be(t)))}function Co(t){return new P(e=>{z(t()).subscribe(e)})}function $g(...t){let e=oo(t),{args:r,keys:n}=Do(t),o=new P(i=>{let{length:s}=r;if(!s){i.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=f},()=>u--,void 0,()=>{(!u||!d)&&(c||i.next(n?wo(n,a):a),i.complete())}))}});return e?o.pipe(yo(e)):o}function Fs(...t){let e=Be(t),r=pl(t,1/0),n=t;return n.length?n.length===1?z(n[0]):He(r)(B(n,e)):ye}function he(t,e){return x((r,n)=>{let o=0;r.subscribe(_(n,i=>t.call(e,i,o++)&&n.next(i)))})}function Se(t){return x((e,r)=>{let n=null,o=!1,i;n=e.subscribe(_(r,void 0,void 0,s=>{i=z(t(s,Se(t)(e))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function _l(t,e,r,n,o){return(i,s)=>{let a=r,u=e,c=0;i.subscribe(_(s,l=>{let d=c++;u=a?t(u,l,d):(a=!0,l),n&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function nt(t,e){return M(e)?K(t,e,1):K(t,1)}function Ug(t,e=fl){return x((r,n)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let c=i;i=null,n.next(c)}};function u(){let c=s+t,l=e.now();if(l{i=c,s=e.now(),o||(o=e.schedule(u,t),n.add(o))},()=>{a(),n.complete()},void 0,()=>{i=o=null}))})}function vt(t){return x((e,r)=>{let n=!1;e.subscribe(_(r,o=>{n=!0,r.next(o)},()=>{n||r.next(t),r.complete()}))})}function rt(t){return t<=0?()=>ye:x((e,r)=>{let n=0;e.subscribe(_(r,o=>{++n<=t&&(r.next(o),t<=n&&r.complete())}))})}function ks(t){return R(()=>t)}function Eo(t,e=fe){return t=t??Bg,x((r,n)=>{let o,i=!0;r.subscribe(_(n,s=>{let a=e(s);(i||!t(o,a))&&(i=!1,o=a,n.next(s))}))})}function Bg(t,e){return t===e}function Io(t=Hg){return x((e,r)=>{let n=!1;e.subscribe(_(r,o=>{n=!0,r.next(o)},()=>n?r.complete():r.error(t())))})}function Hg(){return new tt}function yt(t){return x((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function ze(t,e){let r=arguments.length>=2;return n=>n.pipe(t?he((o,i)=>t(o,i,n)):fe,rt(1),r?vt(e):Io(()=>new tt))}function pn(t){return t<=0?()=>ye:x((e,r)=>{let n=[];e.subscribe(_(r,o=>{n.push(o),t{for(let o of n)r.next(o);r.complete()},void 0,()=>{n=null}))})}function Ls(t,e){let r=arguments.length>=2;return n=>n.pipe(t?he((o,i)=>t(o,i,n)):fe,pn(1),r?vt(e):Io(()=>new tt))}function js(t,e){return x(_l(t,e,arguments.length>=2,!0))}function bo(t={}){let{connector:e=()=>new ue,resetOnError:r=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return i=>{let s,a,u,c=0,l=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=u=void 0,l=d=!1},g=()=>{let S=s;h(),S?.unsubscribe()};return x((S,I)=>{c++,!d&&!l&&f();let w=u=u??e();I.add(()=>{c--,c===0&&!d&&!l&&(a=Vs(g,o))}),w.subscribe(I),!s&&c>0&&(s=new et({next:Z=>w.next(Z),error:Z=>{d=!0,f(),a=Vs(h,r,Z),w.error(Z)},complete:()=>{l=!0,f(),a=Vs(h,n),w.complete()}}),z(S).subscribe(s))})(i)}}function Vs(t,e,...r){if(e===!0){t();return}if(e===!1)return;let n=new et({next:()=>{n.unsubscribe(),t()}});return z(e(...r)).subscribe(n)}function $s(...t){let e=Be(t);return x((r,n)=>{(e?hn(t,r,e):hn(t,r)).subscribe(n)})}function ie(t,e){return x((r,n)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&n.complete();r.subscribe(_(n,u=>{o?.unsubscribe();let c=0,l=i++;z(t(u,l)).subscribe(o=_(n,d=>n.next(e?e(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Mo(t){return x((e,r)=>{z(t).subscribe(_(r,()=>r.complete(),Qn)),!r.closed&&e.subscribe(r)})}function J(t,e,r){let n=M(t)||e||r?{next:t,error:e,complete:r}:t;return n?x((o,i)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;o.subscribe(_(i,u=>{var c;(c=n.next)===null||c===void 0||c.call(n,u),i.next(u)},()=>{var u;a=!1,(u=n.complete)===null||u===void 0||u.call(n),i.complete()},u=>{var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,u),i.error(u)},()=>{var u,c;a&&((u=n.unsubscribe)===null||u===void 0||u.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):fe}function $(t){for(let e in t)if(t[e]===$)return e;throw Error("Could not find renamed property on target object.")}function So(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function ce(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(ce).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(`
+`);return r===-1?e:e.substring(0,r)}function Al(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var zg=$({__forward_ref__:$});function gd(t){return t.__forward_ref__=gd,t.toString=function(){return ce(this())},t}function pe(t){return md(t)?t():t}function md(t){return typeof t=="function"&&t.hasOwnProperty(zg)&&t.__forward_ref__===gd}function vd(t){return t&&!!t.\u0275providers}var yd="https://g.co/ng/security#xss",v=class extends Error{constructor(e,r){super(ii(e,r)),this.code=e}};function ii(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}var Wg=$({\u0275cmp:$}),Gg=$({\u0275dir:$}),qg=$({\u0275pipe:$}),Zg=$({\u0275mod:$}),jo=$({\u0275fac:$}),Xn=$({__NG_ELEMENT_ID__:$}),Nl=$({__NG_ENV_ID__:$});function si(t){return typeof t=="string"?t:t==null?"":String(t)}function Yg(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():si(t)}function Qg(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new v(-200,`Circular dependency in DI detected for ${t}${r}`)}function Ga(t,e){let r=e?` in ${e}`:"";throw new v(-201,!1)}function Kg(t,e){t==null&&Jg(e,t,null,"!=")}function Jg(t,e,r,n){throw new Error(`ASSERTION ERROR: ${t}`+(n==null?"":` [Expected=> ${r} ${n} ${e} <=Actual]`))}function C(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function it(t){return{providers:t.providers||[],imports:t.imports||[]}}function ai(t){return Rl(t,wd)||Rl(t,Cd)}function Dd(t){return ai(t)!==null}function Rl(t,e){return t.hasOwnProperty(e)?t[e]:null}function Xg(t){let e=t&&(t[wd]||t[Cd]);return e||null}function Ol(t){return t&&(t.hasOwnProperty(Pl)||t.hasOwnProperty(em))?t[Pl]:null}var wd=$({\u0275prov:$}),Pl=$({\u0275inj:$}),Cd=$({ngInjectableDef:$}),em=$({ngInjectorDef:$}),O=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(O||{}),ta;function Ed(){return ta}function we(t){let e=ta;return ta=t,e}function Id(t,e,r){let n=ai(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&O.Optional)return null;if(e!==void 0)return e;Ga(ce(t),"Injector")}var te=globalThis;var E=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=C({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};var tm={},nr=tm,na="__NG_DI_FLAG__",Vo="ngTempTokenPath",nm="ngTokenPath",rm=/\n/gm,om="\u0275",Fl="__source",Dn;function im(){return Dn}function Dt(t){let e=Dn;return Dn=t,e}function sm(t,e=O.Default){if(Dn===void 0)throw new v(-203,!1);return Dn===null?Id(t,void 0,e):Dn.get(t,e&O.Optional?null:void 0,e)}function m(t,e=O.Default){return(Ed()||sm)(pe(t),e)}function p(t,e=O.Default){return m(t,ui(e))}function ui(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function ra(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):ce(a)))}o=`{${i.join(", ")}}`}return`${r}${n?"("+n+")":""}[${o}]: ${t.replace(rm,`
+ `)}`}function lr(t){return{toString:t}.toString()}var Md=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Md||{}),Ze=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Ze||{}),Cn={},Te=[];function Sd(t,e,r){let n=t.length;for(;;){let o=t.indexOf(e,r);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let i=e.length;if(o+i===n||t.charCodeAt(o+i)<=32)return o}r=o+1}}function oa(t,e,r){let n=0;for(;ne){s=i-1;break}}}for(;ii?f="":f=o[d+1].toLowerCase();let h=n&8?f:null;if(h&&Sd(h,c,0)!==-1||n&2&&c!==f){if(Pe(n))return!1;s=!0}}}}return Pe(n)||s}function Pe(t){return(t&1)===0}function pm(t,e,r,n){if(e===null)return-1;let o=0;if(n||!r){let i=!1;for(;o-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?o+="."+s:n&4&&(o+=" "+s);else o!==""&&!Pe(s)&&(e+=Ll(i,o),o=""),n=s,i=i||!Pe(n);r++}return o!==""&&(e+=Ll(i,o)),e}function Dm(t){return t.map(ym).join(",")}function wm(t){let e=[],r=[],n=1,o=2;for(;n{let e=Fd(t),r=Y(y({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Md.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ze.Emulated,styles:t.styles||Te,_:null,schemas:t.schemas||null,tView:null,id:""});kd(r);let n=t.dependencies;return r.directiveDefs=Vl(n,!1),r.pipeDefs=Vl(n,!0),r.id=Im(r),r})}function Cm(t){return Et(t)||Nd(t)}function Em(t){return t!==null}function st(t){return lr(()=>({type:t.type,bootstrap:t.bootstrap||Te,declarations:t.declarations||Te,imports:t.imports||Te,exports:t.exports||Te,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function jl(t,e){if(t==null)return Cn;let r={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),r[o]=n,e&&(e[o]=i)}return r}function Qt(t){return lr(()=>{let e=Fd(t);return kd(e),e})}function qa(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Et(t){return t[Wg]||null}function Nd(t){return t[Gg]||null}function Rd(t){return t[qg]||null}function Od(t){let e=Et(t)||Nd(t)||Rd(t);return e!==null?e.standalone:!1}function Pd(t,e){let r=t[Zg]||null;if(!r&&e===!0)throw new Error(`Type ${ce(t)} does not have '\u0275mod' property.`);return r}function Fd(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Cn,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Te,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:jl(t.inputs,e),outputs:jl(t.outputs),debugInfo:null}}function kd(t){t.features?.forEach(e=>e(t))}function Vl(t,e){if(!t)return null;let r=e?Rd:Cm;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(Em)}function Im(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let o of r)e=Math.imul(31,e)+o.charCodeAt(0)<<0;return e+=2147483647+1,"c"+e}var at=0,A=1,b=2,X=3,Fe=4,Le=5,ia=6,or=7,xe=8,En=9,In=10,ne=11,ir=12,$l=13,Nn=14,Ye=15,dr=16,gn=17,qe=18,ci=19,Ld=20,wt=21,Us=22,$t=23,Ie=25,jd=1;var Ut=7,$o=8,bn=9,Ee=10,Mn=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t[t.HasChildViewsToRefresh=4]="HasChildViewsToRefresh",t}(Mn||{});function Ct(t){return Array.isArray(t)&&typeof t[jd]=="object"}function ke(t){return Array.isArray(t)&&t[jd]===!0}function Za(t){return(t.flags&4)!==0}function li(t){return t.componentOffset>-1}function di(t){return(t.flags&1)===1}function It(t){return!!t.template}function bm(t){return(t[b]&512)!==0}function Bt(t,e){let r=t.hasOwnProperty(jo);return r?t[jo]:null}var sa=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Rn(){return Vd}function Vd(t){return t.type.prototype.ngOnChanges&&(t.setInput=Sm),Mm}Rn.ngInherit=!0;function Mm(){let t=Ud(this),e=t?.current;if(e){let r=t.previous;if(r===Cn)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function Sm(t,e,r,n){let o=this.declaredInputs[r],i=Ud(t)||Tm(t,{previous:Cn,current:null}),s=i.current||(i.current={}),a=i.previous,u=a[o];s[o]=new sa(u&&u.currentValue,e,a===Cn),t[n]=e}var $d="__ngSimpleChanges__";function Ud(t){return t[$d]||null}function Tm(t,e){return t[$d]=e}var Ul=null;var We=function(t,e,r){Ul?.(t,e,r)},xm="svg",_m="math";function Qe(t){for(;Array.isArray(t);)t=t[at];return t}function Bd(t,e){return Qe(e[t])}function _e(t,e){return Qe(e[t.index])}function Hd(t,e){return t.data[e]}function Ya(t,e){return t[e]}function St(t,e){let r=e[t];return Ct(r)?r:r[at]}function Am(t){return(t[b]&4)===4}function Qa(t){return(t[b]&128)===128}function Nm(t){return ke(t[X])}function Sn(t,e){return e==null?null:t[e]}function zd(t){t[gn]=0}function Rm(t){t[b]&1024||(t[b]|=1024,Qa(t)&&fi(t))}function Om(t,e){for(;t>0;)e=e[Nn],t--;return e}function Wd(t){t[b]&9216&&fi(t)}function fi(t){let e=t[X];for(;e!==null&&!(ke(e)&&e[b]&Mn.HasChildViewsToRefresh||Ct(e)&&e[b]&8192);){if(ke(e))e[b]|=Mn.HasChildViewsToRefresh;else if(e[b]|=8192,!Qa(e))break;e=e[X]}}function Gd(t,e){if((t[b]&256)===256)throw new v(911,!1);t[wt]===null&&(t[wt]=[]),t[wt].push(e)}function Pm(t,e){if(t[wt]===null)return;let r=t[wt].indexOf(e);r!==-1&&t[wt].splice(r,1)}var N={lFrame:Xd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Fm(){return N.lFrame.elementDepthCount}function km(){N.lFrame.elementDepthCount++}function Lm(){N.lFrame.elementDepthCount--}function qd(){return N.bindingsEnabled}function jm(){return N.skipHydrationRootTNode!==null}function Vm(t){return N.skipHydrationRootTNode===t}function $m(){N.skipHydrationRootTNode=null}function F(){return N.lFrame.lView}function le(){return N.lFrame.tView}function UA(t){return N.lFrame.contextLView=t,t[xe]}function BA(t){return N.lFrame.contextLView=null,t}function me(){let t=Zd();for(;t!==null&&t.type===64;)t=t.parent;return t}function Zd(){return N.lFrame.currentTNode}function Um(){let t=N.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Kt(t,e){let r=N.lFrame;r.currentTNode=t,r.isParent=e}function Ka(){return N.lFrame.isParent}function Yd(){N.lFrame.isParent=!1}function Bm(){return N.lFrame.contextLView}function hi(){let t=N.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Hm(t){return N.lFrame.bindingIndex=t}function Ja(){return N.lFrame.bindingIndex++}function zm(t){let e=N.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function Wm(){return N.lFrame.inI18n}function Gm(t,e){let r=N.lFrame;r.bindingIndex=r.bindingRootIndex=t,aa(e)}function qm(){return N.lFrame.currentDirectiveIndex}function aa(t){N.lFrame.currentDirectiveIndex=t}function Zm(t){let e=N.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Qd(){return N.lFrame.currentQueryIndex}function Xa(t){N.lFrame.currentQueryIndex=t}function Ym(t){let e=t[A];return e.type===2?e.declTNode:e.type===1?t[Le]:null}function Kd(t,e,r){if(r&O.SkipSelf){let o=e,i=t;for(;o=o.parent,o===null&&!(r&O.Host);)if(o=Ym(i),o===null||(i=i[Nn],o.type&10))break;if(o===null)return!1;e=o,t=i}let n=N.lFrame=Jd();return n.currentTNode=e,n.lView=t,!0}function eu(t){let e=Jd(),r=t[A];N.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function Jd(){let t=N.lFrame,e=t===null?null:t.child;return e===null?Xd(t):e}function Xd(t){let e={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:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function ef(){let t=N.lFrame;return N.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var tf=ef;function tu(){let t=ef();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Qm(t){return(N.lFrame.contextLView=Om(t,N.lFrame.contextLView))[xe]}function On(){return N.lFrame.selectedIndex}function Ht(t){N.lFrame.selectedIndex=t}function nf(){let t=N.lFrame;return Hd(t.tView,t.selectedIndex)}function Km(){return N.lFrame.currentNamespace}var rf=!0;function pi(){return rf}function gi(t){rf=t}function Jm(t,e,r){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(n){let s=Vd(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}o&&(r.preOrderHooks??=[]).push(0-t,o),i&&((r.preOrderHooks??=[]).push(t,i),(r.preOrderCheckHooks??=[]).push(t,i))}function mi(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[u]<0&&(t[gn]+=65536),(a>14>16&&(t[b]&3)===e&&(t[b]+=16384,Bl(a,i)):Bl(a,i)}var wn=-1,zt=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function ev(t){return t instanceof zt}function tv(t){return(t.flags&8)!==0}function nv(t){return(t.flags&16)!==0}function sf(t){return t!==wn}function Uo(t){let e=t&32767;return t&32767}function rv(t){return t>>16}function Bo(t,e){let r=rv(t),n=e;for(;r>0;)n=n[Nn],r--;return n}var ua=!0;function Ho(t){let e=ua;return ua=t,e}var ov=256,af=ov-1,uf=5,iv=0,Ge={};function sv(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(Xn)&&(n=r[Xn]),n==null&&(n=r[Xn]=iv++);let o=n&af,i=1<>uf)]|=i}function zo(t,e){let r=cf(t,e);if(r!==-1)return r;let n=e[A];n.firstCreatePass&&(t.injectorIndex=e.length,Hs(n.data,t),Hs(e,null),Hs(n.blueprint,null));let o=nu(t,e),i=t.injectorIndex;if(sf(o)){let s=Uo(o),a=Bo(o,e),u=a[A].data;for(let c=0;c<8;c++)e[i+c]=a[s+c]|u[s+c]}return e[i+8]=o,i}function Hs(t,e){t.push(0,0,0,0,0,0,0,0,e)}function cf(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function nu(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,o=e;for(;o!==null;){if(n=pf(o),n===null)return wn;if(r++,o=o[Nn],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return wn}function ca(t,e,r){sv(t,e,r)}function av(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,o=0;for(;o>20,d=n?a:a+l,f=o?a+l:c;for(let h=d;h=u&&g.type===r)return h}if(o){let h=s[u];if(h&&It(h)&&h.type===r)return u}return null}function Wt(t,e,r,n){let o=t[r],i=e.data;if(ev(o)){let s=o;s.resolving&&Qg(Yg(i[r]));let a=Ho(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?we(s.injectImpl):null,l=Kd(t,n,O.Default);try{o=t[r]=s.factory(void 0,i,t,n),e.firstCreatePass&&r>=n.directiveStart&&Jm(r,i[r],e)}finally{c!==null&&we(c),Ho(a),s.resolving=!1,tf()}}return o}function cv(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Xn)?t[Xn]:void 0;return typeof e=="number"?e>=0?e&af:lv:e}function Hl(t,e,r){let n=1<>uf)]&n)}function zl(t,e){return!(t&O.Self)&&!(t&O.Host&&e)}var Vt=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return ff(this._tNode,this._lView,e,ui(n),r)}};function lv(){return new Vt(me(),F())}function ru(t){return lr(()=>{let e=t.prototype.constructor,r=e[jo]||la(e),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let i=o[jo]||la(o);if(i&&i!==r)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function la(t){return md(t)?()=>{let e=la(pe(t));return e&&e()}:Bt(t)}function dv(t,e,r,n,o){let i=t,s=e;for(;i!==null&&s!==null&&s[b]&2048&&!(s[b]&512);){let a=hf(i,s,r,n|O.Self,Ge);if(a!==Ge)return a;let u=i.parent;if(!u){let c=s[Ld];if(c){let l=c.get(r,Ge,n);if(l!==Ge)return l}u=pf(s),s=s[Nn]}i=u}return o}function pf(t){let e=t[A],r=e.type;return r===2?e.declTNode:r===1?t[Le]:null}function ou(t){return av(me(),t)}var To="__parameters__";function fv(t){return function(...r){if(t){let n=t(...r);for(let o in n)this[o]=n[o]}}}function gf(t,e,r){return lr(()=>{let n=fv(e);function o(...i){if(this instanceof o)return n.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(To)?u[To]:Object.defineProperty(u,To,{value:[]})[To];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return r&&(o.prototype=Object.create(r.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}function hv(t){let e=te.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function pv(t){return typeof t=="function"}function gv(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?iu(r,e):e(r))}function mf(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function Wo(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function vv(t,e){let r=[];for(let n=0;ne;){let i=o-2;t[o]=t[i],o--}t[e]=r,t[e+1]=n}}function Dv(t,e,r){let n=fr(t,e);return n>=0?t[n|1]=r:(n=~n,yv(t,n,e,r)),n}function zs(t,e){let r=fr(t,e);if(r>=0)return t[r|1]}function fr(t,e){return wv(t,e,1)}function wv(t,e,r){let n=0,o=t.length>>r;for(;o!==n;){let i=n+(o-n>>1),s=t[i<e?o=i:n=i+1}return~(o<{let s=[];o.templateUrl&&s.push(n(o.templateUrl).then(c=>{o.template=c}));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 c=o.styles.length,l=o.styleUrls;o.styleUrls.forEach((d,f)=>{a.push(""),s.push(n(d).then(h=>{a[c+f]=h,l.splice(l.indexOf(d),1),l.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&s.push(n(o.styleUrl).then(c=>{a.push(c),o.styleUrl=void 0}));let u=Promise.all(s).then(()=>Sv(i));e.push(u)}),Iv(),Promise.all(e).then(()=>{})}var Go=new Map,Ev=new Set;function Iv(){let t=Go;return Go=new Map,t}function bv(){return Go.size===0}function Mv(t){return typeof t=="string"?t:t.text()}function Sv(t){Ev.delete(t)}var hr=new E("ENVIRONMENT_INITIALIZER"),vf=new E("INJECTOR",-1),yf=new E("INJECTOR_DEF_TYPES"),qo=class{get(e,r=nr){if(r===nr){let n=new Error(`NullInjectorError: No provider for ${ce(e)}!`);throw n.name="NullInjectorError",n}return r}};function yi(t){return{\u0275providers:t}}function Tv(...t){return{\u0275providers:Df(!0,t),\u0275fromNgModule:!0}}function Df(t,...e){let r=[],n=new Set,o,i=s=>{r.push(s)};return iu(e,s=>{let a=s;da(a,i,[],n)&&(o||=[],o.push(a))}),o!==void 0&&wf(o,i),r}function wf(t,e){for(let r=0;r{e(i,n)})}}function da(t,e,r,n){if(t=pe(t),!t)return!1;let o=null,i=Ol(t),s=!i&&Et(t);if(!i&&!s){let u=t.ngModule;if(i=Ol(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=t}let a=n.has(o);if(s){if(a)return!1;if(n.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)da(c,e,r,n)}}else if(i){if(i.imports!=null&&!a){n.add(o);let c;try{iu(i.imports,l=>{da(l,e,r,n)&&(c||=[],c.push(l))})}finally{}c!==void 0&&wf(c,e)}if(!a){let c=Bt(o)||(()=>new o);e({provide:o,useFactory:c,deps:Te},o),e({provide:yf,useValue:o,multi:!0},o),e({provide:hr,useValue:()=>m(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=t;au(u,l=>{e(l,c)})}}else return!1;return o!==t&&t.providers!==void 0}function au(t,e){for(let r of t)vd(r)&&(r=r.\u0275providers),Array.isArray(r)?au(r,e):e(r)}var xv=$({provide:String,useValue:$});function Cf(t){return t!==null&&typeof t=="object"&&xv in t}function _v(t){return!!(t&&t.useExisting)}function Av(t){return!!(t&&t.useFactory)}function Tn(t){return typeof t=="function"}function Nv(t){return!!t.useClass}var Di=new E("Set Injector scope."),Fo={},Rv={},Ws;function uu(){return Ws===void 0&&(Ws=new qo),Ws}var ge=class{},sr=class extends ge{get destroyed(){return this._destroyed}constructor(e,r,n,o){super(),this.parent=r,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ha(e,s=>this.processProvider(s)),this.records.set(vf,mn(void 0,this)),o.has("environment")&&this.records.set(ge,mn(void 0,this));let i=this.records.get(Di);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(yf,Te,O.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of e)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=Dt(this),n=we(void 0),o;try{return e()}finally{Dt(r),we(n)}}get(e,r=nr,n=O.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Nl))return e[Nl](this);n=ui(n);let o,i=Dt(this),s=we(void 0);try{if(!(n&O.SkipSelf)){let u=this.records.get(e);if(u===void 0){let c=Lv(e)&&ai(e);c&&this.injectableDefInScope(c)?u=mn(fa(e),Fo):u=null,this.records.set(e,u)}if(u!=null)return this.hydrate(e,u)}let a=n&O.Self?uu():this.parent;return r=n&O.Optional&&r===nr?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[Vo]=a[Vo]||[]).unshift(ce(e)),i)throw a;return um(a,e,"R3InjectorError",this.source)}else throw a}finally{we(s),Dt(i)}}resolveInjectorInitializers(){let e=Dt(this),r=we(void 0),n;try{let o=this.get(hr,Te,O.Self);for(let i of o)i()}finally{Dt(e),we(r)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(ce(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new v(205,!1)}processProvider(e){e=pe(e);let r=Tn(e)?e:pe(e&&e.provide),n=Pv(e);if(!Tn(e)&&e.multi===!0){let o=this.records.get(r);o||(o=mn(void 0,Fo,!0),o.factory=()=>ra(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}else{let o=this.records.get(r)}this.records.set(r,n)}hydrate(e,r){return r.value===Fo&&(r.value=Rv,r.value=r.factory()),typeof r.value=="object"&&r.value&&kv(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}injectableDefInScope(e){if(!e.providedIn)return!1;let r=pe(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function fa(t){let e=ai(t),r=e!==null?e.factory:Bt(t);if(r!==null)return r;if(t instanceof E)throw new v(204,!1);if(t instanceof Function)return Ov(t);throw new v(204,!1)}function Ov(t){let e=t.length;if(e>0){let n=vv(e,"?");throw new v(204,!1)}let r=Xg(t);return r!==null?()=>r.factory(t):()=>new t}function Pv(t){if(Cf(t))return mn(void 0,t.useValue);{let e=Ef(t);return mn(e,Fo)}}function Ef(t,e,r){let n;if(Tn(t)){let o=pe(t);return Bt(o)||fa(o)}else if(Cf(t))n=()=>pe(t.useValue);else if(Av(t))n=()=>t.useFactory(...ra(t.deps||[]));else if(_v(t))n=()=>m(pe(t.useExisting));else{let o=pe(t&&(t.useClass||t.provide));if(Fv(t))n=()=>new o(...ra(t.deps));else return Bt(o)||fa(o)}return n}function mn(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function Fv(t){return!!t.deps}function kv(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Lv(t){return typeof t=="function"||typeof t=="object"&&t instanceof E}function ha(t,e){for(let r of t)Array.isArray(r)?ha(r,e):r&&vd(r)?ha(r.\u0275providers,e):e(r)}function If(t,e){t instanceof sr&&t.assertNotDestroyed();let r,n=Dt(t),o=we(void 0);try{return e()}finally{Dt(n),we(o)}}function jv(t){if(!Ed()&&!im())throw new v(-203,!1)}function Wl(t,e=null,r=null,n){let o=bf(t,e,r,n);return o.resolveInjectorInitializers(),o}function bf(t,e=null,r=null,n,o=new Set){let i=[r||Te,Tv(t)];return n=n||(typeof t=="object"?void 0:ce(t)),new sr(i,e||uu(),n||null,o)}var je=(()=>{let e=class e{static create(n,o){if(Array.isArray(n))return Wl({name:""},o,n,"");{let i=n.name??"";return Wl({name:i},n.parent,n.providers,i)}}};e.THROW_IF_NOT_FOUND=nr,e.NULL=new qo,e.\u0275prov=C({token:e,providedIn:"any",factory:()=>m(vf)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})();var pa;function Mf(t){pa=t}function Vv(){if(pa!==void 0)return pa;if(typeof document<"u")return document;throw new v(210,!1)}var wi=new E("AppId",{providedIn:"root",factory:()=>$v}),$v="ng",cu=new E("Platform Initializer"),ut=new E("Platform ID",{providedIn:"platform",factory:()=>"unknown"});var lu=new E("CSP nonce",{providedIn:"root",factory:()=>Vv().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function Sf(t){return t instanceof Function?t():t}function Uv(t){return(t??p(je)).get(ut)==="browser"}function Tf(t){return(t.flags&128)===128}var ot=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(ot||{}),Bv=/^>|^->||--!>|)/g,zv="\u200B$1\u200B";function Wv(t){return t.replace(Bv,e=>e.replace(Hv,zv))}var xf=new Map,Gv=0;function qv(){return Gv++}function Zv(t){xf.set(t[ci],t)}function Yv(t){xf.delete(t[ci])}var Gl="__ngContext__";function bt(t,e){Ct(e)?(t[Gl]=e[ci],Zv(e)):t[Gl]=e}var Qv;function du(t,e){return Qv(t,e)}function fu(t){let e=t[X];return ke(e)?e[X]:e}function _f(t){return Nf(t[ir])}function Af(t){return Nf(t[Fe])}function Nf(t){for(;t!==null&&!ke(t);)t=t[Fe];return t}function vn(t,e,r,n,o){if(n!=null){let i,s=!1;ke(n)?i=n:Ct(n)&&(s=!0,n=n[at]);let a=Qe(n);t===0&&r!==null?o==null?Ff(e,r,a):Zo(e,r,a,o||null,!0):t===1&&r!==null?Zo(e,r,a,o||null,!0):t===2?gy(e,a,s):t===3&&e.destroyNode(a),i!=null&&vy(e,t,i,r,o)}}function Kv(t,e){return t.createText(e)}function Jv(t,e,r){t.setValue(e,r)}function Xv(t,e){return t.createComment(Wv(e))}function Rf(t,e,r){return t.createElement(e,r)}function ey(t,e){let r=e[ne];pr(t,e,r,2,null,null),e[at]=null,e[Le]=null}function ty(t,e,r,n,o,i){n[at]=o,n[Le]=e,pr(t,n,r,1,o,i)}function ny(t,e){pr(t,e,e[ne],2,null,null)}function ry(t){let e=t[ir];if(!e)return Gs(t[A],t);for(;e;){let r=null;if(Ct(e))r=e[ir];else{let n=e[Ee];n&&(r=n)}if(!r){for(;e&&!e[Fe]&&e!==t;)Ct(e)&&Gs(e[A],e),e=e[X];e===null&&(e=t),Ct(e)&&Gs(e[A],e),r=e&&e[Fe]}e=r}}function oy(t,e,r,n){let o=Ee+n,i=r.length;n>0&&(r[o-1][Fe]=e),n0&&(t[r-1][Fe]=n[Fe]);let i=Wo(t,Ee+e);ey(n[A],n);let s=i[qe];s!==null&&s.detachView(i[A]),n[X]=null,n[Fe]=null,n[b]&=-129}return n}function Pf(t,e){if(!(e[b]&256)){let r=e[ne];e[$t]&&rl(e[$t]),r.destroyNode&&pr(t,e,r,3,null,null),ry(e)}}function Gs(t,e){if(!(e[b]&256)){e[b]&=-129,e[b]|=256,ay(t,e),sy(t,e),e[A].type===1&&e[ne].destroy();let r=e[dr];if(r!==null&&ke(e[X])){r!==e[X]&&Of(r,e);let n=e[qe];n!==null&&n.detachView(t)}Yv(e)}}function sy(t,e){let r=t.cleanup,n=e[or];if(r!==null)for(let i=0;i=0?n[s]():n[-s].unsubscribe(),i+=2}else{let s=n[r[i+1]];r[i].call(s)}n!==null&&(e[or]=null);let o=e[wt];if(o!==null){e[wt]=null;for(let i=0;i-1){let{encapsulation:i}=t.data[n.directiveStart+o];if(i===Ze.None||i===Ze.Emulated)return null}return _e(n,r)}}function Zo(t,e,r,n,o){t.insertBefore(e,r,n,o)}function Ff(t,e,r){t.appendChild(e,r)}function ql(t,e,r,n,o){n!==null?Zo(t,e,r,n,o):Ff(t,e,r)}function ly(t,e,r,n){t.removeChild(e,r,n)}function hu(t,e){return t.parentNode(e)}function dy(t,e){return t.nextSibling(e)}function fy(t,e,r){return py(t,e,r)}function hy(t,e,r){return t.type&40?_e(t,r):null}var py=hy,Zl;function Ci(t,e,r,n){let o=uy(t,n,e),i=e[ne],s=n.parent||e[Le],a=fy(s,n,e);if(o!=null)if(Array.isArray(r))for(let u=0;ut,createScript:t=>t,createScriptURL:t=>t})}catch{}return xo}function Yl(t){return wy()?.createScriptURL(t)||t}var Yo=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${yd})`}};function gr(t){return t instanceof Yo?t.changingThisBreaksApplicationSecurity:t}function gu(t,e){let r=Cy(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${yd})`)}return r===e}function Cy(t){return t instanceof Yo&&t.getTypeName()||null}var Ey=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Vf(t){return t=String(t),t.match(Ey)?t:"unsafe:"+t}var Ei=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ei||{});function Iy(t){let e=Uf();return e?e.sanitize(Ei.URL,t)||"":gu(t,"URL")?gr(t):Vf(si(t))}function by(t){let e=Uf();if(e)return Yl(e.sanitize(Ei.RESOURCE_URL,t)||"");if(gu(t,"ResourceURL"))return Yl(gr(t));throw new v(904,!1)}function My(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?by:Iy}function $f(t,e,r){return My(e,r)(t)}function Uf(){let t=F();return t&&t[In].sanitizer}var Sy="h",Ty="b";var xy=(t,e,r)=>null;function mu(t,e,r=!1){return xy(t,e,r)}var va=class{},Qo=class{};function _y(t){let e=Error(`No component factory found for ${ce(t)}.`);return e[Ay]=t,e}var Ay="ngComponent";var ya=class{resolveComponentFactory(e){throw _y(e)}},Ii=(()=>{let e=class e{};e.NULL=new ya;let t=e;return t})();function Ny(){return Pn(me(),F())}function Pn(t,e){return new ct(_e(t,e))}var ct=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=Ny;let t=e;return t})();function Ry(t){return t instanceof ct?t.nativeElement:t}var ar=class{},mr=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>Oy();let t=e;return t})();function Oy(){let t=F(),e=me(),r=St(e.index,t);return(Ct(r)?r:t)[ne]}var Py=(()=>{let e=class e{};e.\u0275prov=C({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),xn=class{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}},Fy=new xn("17.0.4"),qs={};function vu(t){let e=de(null);try{return t()}finally{de(e)}}function Bf(t){return Ly(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function ky(t,e){if(Array.isArray(t))for(let r=0;re,wa=class{constructor(e){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=e||jy}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,o=0,i=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(o,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,o),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,o)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,o++}),this.length=o;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,o){let i;return e===null?i=this._itTail:(i=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,i,o)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,o),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,i,o)):e=this._addAfter(new Ca(r,n),i,o)),e}_verifyReinsertion(e,r,n,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return i!==null?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}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(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let o=e._prevRemoved,i=e._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let o=r===null?this._itHead:r._next;return e._next=o,e._prev=r,o===null?this._itTail=e:o._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Ko),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Ko),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Ca=class{constructor(e,r){this.item=e,this.trackById=r,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}},Ea=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},Ko=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new Ea,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,o=this.map.get(n);return o?o.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Ql(t,e,r){let n=t.previousIndex;if(n===null)return n;let o=0;return r&&n{let e=class e{constructor(n){this.factories=n}static create(n,o){if(o!=null){let i=o.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:o=>e.create(n,o||Kl()),deps:[[e,new su,new vi]]}}find(n){let o=this.factories.find(i=>i.supports(n));if(o!=null)return o;throw new v(901,!1)}};e.\u0275prov=C({token:e,providedIn:"root",factory:Kl});let t=e;return t})();function Jo(t,e,r,n,o=!1){for(;r!==null;){let i=e[r.index];i!==null&&n.push(Qe(i)),ke(i)&&Vy(i,n);let s=r.type;if(s&8)Jo(t,e,r.child,n);else if(s&32){let a=du(r,e),u;for(;u=a();)n.push(u)}else if(s&16){let a=kf(e,r);if(Array.isArray(a))n.push(...a);else{let u=fu(e[Ye]);Jo(u[A],u,a,n,!0)}}r=o?r.projectionNext:r.next}return n}function Vy(t,e){for(let r=Ee;r{fi(t.lView)},consumerOnSignalRead(){this.lView[$t]=this}}),zy="ngOriginalError";function Zs(t){return t[zy]}var Ke=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&Zs(e);for(;r&&Zs(r);)r=Zs(r);return r||null}};var zf=!1,Wy=new E("",{providedIn:"root",factory:()=>zf});var Tt={};function HA(t){Wf(le(),F(),On()+t,!1)}function Wf(t,e,r,n){if(!n)if((e[b]&3)===3){let i=t.preOrderCheckHooks;i!==null&&Ro(e,i,r)}else{let i=t.preOrderHooks;i!==null&&Oo(e,i,0,r)}Ht(r)}function W(t,e=O.Default){let r=F();if(r===null)return m(t,e);let n=me();return ff(n,r,pe(t),e)}function Gf(){let t="invalid";throw new Error(t)}function Gy(t,e){let r=t.hostBindingOpCodes;if(r!==null)try{for(let n=0;nIe&&Wf(t,e,Ie,!1),We(s?2:0,o),r(n,o)}finally{Ht(i),We(s?3:1,o)}}function Du(t,e,r){if(Za(e)){let n=de(null);try{let o=e.directiveStart,i=e.directiveEnd;for(let s=o;snull;function Jy(t,e,r,n){let o=th(e);o.push(r),t.firstCreatePass&&nh(t).push(n,o.length-1)}function Xy(t,e,r,n,o,i){let s=e?e.injectorIndex:-1,a=0;return jm()&&(a|=128),{type:r,index:n,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:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Jl(t,e,r,n){for(let o in t)if(t.hasOwnProperty(o)){r=r===null?{}:r;let i=t[o];n===null?Xl(r,e,o,i):n.hasOwnProperty(o)&&Xl(r,e,n[o],i)}return r}function Xl(t,e,r,n){t.hasOwnProperty(r)?t[r].push(e,n):t[r]=[e,n]}function eD(t,e,r){let n=e.directiveStart,o=e.directiveEnd,i=t.data,s=e.attrs,a=[],u=null,c=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function sD(t,e,r,n){let o=r.directiveStart,i=r.directiveEnd;li(r)&&hD(e,r,t.data[o+r.componentOffset]),t.firstCreatePass||zo(r,e),bt(n,e);let s=r.initialInputs;for(let a=o;a-1&&(ga(e,n),Wo(r,n))}this._attachedToViewContainer=!1}Pf(this._lView[A],this._lView)}onDestroy(e){Gd(this._lView,e)}markForCheck(){Mu(this._cdRefInjectingView||this._lView)}detach(){this._lView[b]&=-129}reattach(){Wd(this._lView),this._lView[b]|=128}detectChanges(){wD(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new v(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,ny(this._lView[A],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new v(902,!1);this._appRef=e}},Fn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=MD;let t=e;return t})();function MD(t){return SD(me(),F(),(t&16)===16)}function SD(t,e,r){if(li(t)&&!r){let n=St(t.index,e);return new Gt(n,n)}else if(t.type&47){let n=e[Ye];return new Gt(n,e)}return null}var ch=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=TD,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),Ma=class extends ch{constructor(e){super(),this._lView=e}onDestroy(e){return Gd(this._lView,e),()=>Pm(this._lView,e)}};function TD(){return new Ma(F())}var ed=new Set;function Si(t){ed.has(t)||(ed.add(t),performance?.mark?.("mark_use_counter",{detail:{feature:t}}))}var Sa=class extends ue{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,r,n){let o=e,i=r||(()=>null),s=n;if(e&&typeof e=="object"){let u=e;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=Ys(i),o&&(o=Ys(o)),s&&(s=Ys(s)));let a=super.subscribe({next:o,error:i,complete:s});return e instanceof Q&&e.add(a),a}};function Ys(t){return e=>{setTimeout(t,void 0,e)}}var se=Sa;function td(...t){}function xD(){let t=typeof te.requestAnimationFrame=="function",e=te[t?"requestAnimationFrame":"setTimeout"],r=te[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&r){let n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);let o=r[Zone.__symbol__("OriginalDelegate")];o&&(r=o)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:r}}var V=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new se(!1),this.onMicrotaskEmpty=new se(!1),this.onStable=new se(!1),this.onError=new se(!1),typeof Zone>"u")throw new v(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!n&&r,o.shouldCoalesceRunChangeDetection=n,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=xD().nativeRequestAnimationFrame,ND(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new v(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new v(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,_D,td,td);try{return i.runTask(s,r,n)}finally{i.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},_D={};function Su(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function AD(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(te,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Ta(t),t.isCheckStableRunning=!0,Su(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Ta(t))}function ND(t){let e=()=>{AD(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,o,i,s,a)=>{if(RD(a))return r.invokeTask(o,i,s,a);try{return nd(t),r.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),rd(t)}},onInvoke:(r,n,o,i,s,a,u)=>{try{return nd(t),r.invoke(o,i,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&e(),rd(t)}},onHasTask:(r,n,o,i)=>{r.hasTask(o,i),n===o&&(i.change=="microTask"?(t._hasPendingMicrotasks=i.microTask,Ta(t),Su(t)):i.change=="macroTask"&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(r,n,o,i)=>(r.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}function Ta(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function nd(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function rd(t){t._nesting--,Su(t)}var xa=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new se,this.onMicrotaskEmpty=new se,this.onStable=new se,this.onError=new se}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,o){return e.apply(r,n)}},lh=new E("",{providedIn:"root",factory:dh});function dh(){let t=p(V),e=!0,r=new P(o=>{e=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{o.next(e),o.complete()})}),n=new P(o=>{let i;t.runOutsideAngular(()=>{i=t.onStable.subscribe(()=>{V.assertNotInAngularZone(),queueMicrotask(()=>{!e&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(e=!0,o.next(!0))})})});let s=t.onUnstable.subscribe(()=>{V.assertInAngularZone(),e&&(e=!1,t.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}});return Fs(r,n.pipe(bo()))}function RD(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}var yn=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(yn||{}),OD={destroy(){}};function Tu(t,e){!e&&jv(Tu);let r=e?.injector??p(je);if(!Uv(r))return OD;Si("NgAfterNextRender");let n=r.get(fh),o=n.handler??=new Aa,i=e?.phase??yn.MixedReadWrite,s=()=>{o.unregister(u),a()},a=r.get(ch).onDestroy(s),u=new _a(r,i,()=>{s(),t()});return o.register(u),{destroy:s}}var _a=class{constructor(e,r,n){this.phase=r,this.callbackFn=n,this.zone=e.get(V),this.errorHandler=e.get(Ke,null,{optional:!0})}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},Aa=class{constructor(){this.executingCallbacks=!1,this.buckets={[yn.EarlyRead]:new Set,[yn.Write]:new Set,[yn.MixedReadWrite]:new Set,[yn.Read]:new Set},this.deferredCallbacks=new Set}validateBegin(){if(this.executingCallbacks)throw new v(102,!1)}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let r of e)r.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},fh=(()=>{let e=class e{constructor(){this.renderDepth=0,this.handler=null,this.internalCallbacks=[]}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){if(this.renderDepth--,this.renderDepth===0){for(let n of this.internalCallbacks)n();this.internalCallbacks.length=0,this.handler?.execute()}}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=C({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function PD(t,e){let r=St(e,t),n=r[A];FD(n,r);let o=r[at];o!==null&&r[ia]===null&&(r[ia]=mu(o,r[En])),xu(n,r,r[xe])}function FD(t,e){for(let r=e.length;r0&&Lf(t,r,i.join(" "))}}function HD(t,e,r){let n=t.projection=[];for(let o=0;o=0;n--){let o=t[n];o.hostVars=e+=o.hostVars,o.hostAttrs=rr(o.hostAttrs,r=rr(r,o.hostAttrs))}}function _o(t){return t===Cn?{}:t===Te?[]:t}function ZD(t,e){let r=t.viewQuery;r?t.viewQuery=(n,o)=>{e(n,o),r(n,o)}:t.viewQuery=e}function YD(t,e){let r=t.contentQueries;r?t.contentQueries=(n,o,i)=>{e(n,o,i),r(n,o,i)}:t.contentQueries=e}function QD(t,e){let r=t.hostBindings;r?t.hostBindings=(n,o)=>{e(n,o),r(n,o)}:t.hostBindings=e}function _u(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let o=e[n];Array.isArray(o)&&o[2]&&(r[n]=o[2])}t.inputTransforms=r}function Au(t,e,r){return t[e]=r}function KD(t,e){return t[e]}function qt(t,e,r){let n=t[e];return Object.is(n,r)?!1:(t[e]=r,!0)}function JD(t,e,r,n){let o=qt(t,e,r);return qt(t,e+1,n)||o}function Nu(t,e,r,n){let o=F(),i=Ja();if(qt(o,i,e)){let s=le(),a=nf();pD(a,o,t,e,r,n)}return Nu}function XD(t,e,r,n){return qt(t,Ja(),r)?e+si(r)+n:Tt}function Ao(t,e){return t<<17|e<<2}function Zt(t){return t>>17&32767}function ew(t){return(t&2)==2}function tw(t,e){return t&131071|e<<17}function Oa(t){return t|2}function An(t){return(t&131068)>>2}function Qs(t,e){return t&-131069|e<<2}function nw(t){return(t&1)===1}function Pa(t){return t|1}function rw(t,e,r,n,o,i){let s=i?e.classBindings:e.styleBindings,a=Zt(s),u=An(s);t[n]=r;let c=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||fr(d,l)>0)&&(c=!0)}else l=r;if(o)if(u!==0){let f=Zt(t[a+1]);t[n+1]=Ao(f,a),f!==0&&(t[f+1]=Qs(t[f+1],n)),t[a+1]=tw(t[a+1],n)}else t[n+1]=Ao(a,0),a!==0&&(t[a+1]=Qs(t[a+1],n)),a=n;else t[n+1]=Ao(u,0),a===0?a=n:t[u+1]=Qs(t[u+1],n),u=n;c&&(t[n+1]=Oa(t[n+1])),id(t,l,n,!0,i),id(t,l,n,!1,i),ow(e,l,t,n,i),s=Ao(a,u),i?e.classBindings=s:e.styleBindings=s}function ow(t,e,r,n,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&fr(i,e)>=0&&(r[n+1]=Pa(r[n+1]))}function id(t,e,r,n,o){let i=t[r+1],s=e===null,a=n?Zt(i):An(i),u=!1;for(;a!==0&&(u===!1||s);){let c=t[a],l=t[a+1];iw(c,e)&&(u=!0,t[a+1]=n?Pa(l):Oa(l)),a=n?Zt(l):An(l)}u&&(t[r+1]=n?Oa(i):Pa(i))}function iw(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?fr(t,e)>=0:!1}function sw(t,e,r){let n=F(),o=Ja();if(qt(n,o,e)){let i=le(),s=nf();nD(i,s,n,t,e,n[ne],r,!1)}return sw}function sd(t,e,r,n,o){let i=e.inputs,s=o?"class":"style";bu(t,r,i[s],s,n)}function aw(t,e){return uw(t,e,null,!0),aw}function uw(t,e,r,n){let o=F(),i=le(),s=zm(2);if(i.firstUpdatePass&&lw(i,t,s,n),e!==Tt&&qt(o,s,e)){let a=i.data[On()];gw(i,a,o,o[ne],t,o[s+1]=mw(e,r),n,s)}}function cw(t,e){return e>=t.expandoStartIndex}function lw(t,e,r,n){let o=t.data;if(o[r+1]===null){let i=o[On()],s=cw(t,r);vw(i,n)&&e===null&&!s&&(e=!1),e=dw(o,i,e,n),rw(o,i,e,r,s,n)}}function dw(t,e,r,n){let o=Zm(t),i=n?e.residualClasses:e.residualStyles;if(o===null)(n?e.classBindings:e.styleBindings)===0&&(r=Ks(null,t,e,r,n),r=ur(r,e.attrs,n),i=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(r=Ks(o,t,e,r,n),i===null){let u=fw(t,e,n);u!==void 0&&Array.isArray(u)&&(u=Ks(null,t,e,u[1],n),u=ur(u,e.attrs,n),hw(t,e,n,u))}else i=pw(t,e,n)}return i!==void 0&&(n?e.residualClasses=i:e.residualStyles=i),r}function fw(t,e,r){let n=r?e.classBindings:e.styleBindings;if(An(n)!==0)return t[Zt(n)]}function hw(t,e,r,n){let o=r?e.classBindings:e.styleBindings;t[Zt(o)]=n}function pw(t,e,r){let n,o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0;){let u=t[o],c=Array.isArray(u),l=c?u[1]:u,d=l===null,f=r[o+1];f===Tt&&(f=d?Te:void 0);let h=d?zs(f,n):l===n?f:void 0;if(c&&!ti(h)&&(h=zs(u,n)),ti(h)&&(a=h,s))return a;let g=t[o+1];o=s?Zt(g):An(g)}if(e!==null){let u=i?e.residualClasses:e.residualStyles;u!=null&&(a=zs(u,n))}return a}function ti(t){return t!==void 0}function mw(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=ce(gr(t)))),t}function vw(t,e){return(t.flags&(e?8:16))!==0}var zA=new RegExp(`^(\\d+)*(${Ty}|${Sy})*(.*)`);var yw=(t,e)=>null;function ud(t,e){return yw(t,e)}function Dw(t,e,r,n){let o=e.tView,s=t[b]&4096?4096:16,a=bi(t,o,r,s,null,e,null,null,null,n?.injector??null,n?.dehydratedView??null),u=t[e.index];a[dr]=u;let c=t[qe];return c!==null&&(a[qe]=c.createEmbeddedView(o)),xu(o,a,r),a}function cd(t,e){return!e||Tf(t)}function ww(t,e,r,n=!0){let o=e[A];if(oy(o,e,t,r),n){let i=ma(r,t),s=e[ne],a=hu(s,t[Ut]);a!==null&&ty(o,t[Le],s,e,a,i)}}var xt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Cw;let t=e;return t})();function Cw(){let t=me();return ph(t,F())}var Ew=xt,hh=class extends Ew{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return Pn(this._hostTNode,this._hostLView)}get injector(){return new Vt(this._hostTNode,this._hostLView)}get parentInjector(){let e=nu(this._hostTNode,this._hostLView);if(sf(e)){let r=Bo(e,this._hostLView),n=Uo(e),o=r[A].data[n+8];return new Vt(o,r)}else return new Vt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=ld(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Ee}createEmbeddedView(e,r,n){let o,i;typeof n=="number"?o=n:n!=null&&(o=n.index,i=n.injector);let s=ud(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},i,s);return this.insertImpl(a,o,cd(this._hostTNode,s)),a}createComponent(e,r,n,o,i){let s=e&&!pv(e),a;if(s)a=r;else{let g=r||{};a=g.index,n=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}let u=s?e:new _n(Et(e)),c=n||this.parentInjector;if(!i&&u.ngModule==null){let S=(s?c:this.parentInjector).get(ge,null);S&&(i=S)}let l=Et(u.componentType??{}),d=ud(this._lContainer,l?.id??null),f=d?.firstChild??null,h=u.create(c,o,f,i);return this.insertImpl(h.hostView,a,cd(this._hostTNode,d)),h}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let o=e._lView;if(Nm(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let u=o[X],c=new hh(u,u[Le],u[X]);c.detach(c.indexOf(e))}}let i=this._adjustIndex(r),s=this._lContainer;return ww(s,o,i,n),e.attachToViewContainerRef(),mf(Js(s),i,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=ld(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=ga(this._lContainer,r);n&&(Wo(Js(this._lContainer),r),Pf(n[A],n))}detach(e){let r=this._adjustIndex(e,-1),n=ga(this._lContainer,r);return n&&Wo(Js(this._lContainer),r)!=null?new Gt(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function ld(t){return t[$o]}function Js(t){return t[$o]||(t[$o]=[])}function ph(t,e){let r,n=e[t.index];return ke(n)?r=n:(r=Xf(n,e,null,t),e[t.index]=r,Mi(e,r)),bw(r,e,t,n),new hh(r,t,e)}function Iw(t,e){let r=t[ne],n=r.createComment(""),o=_e(e,t),i=hu(r,o);return Zo(r,i,n,dy(r,o),!1),n}var bw=Tw,Mw=(t,e,r)=>!1;function Sw(t,e,r){return Mw(t,e,r)}function Tw(t,e,r,n){if(t[Ut])return;let o;r.type&8?o=Qe(n):o=Iw(e,r),t[Ut]=o}function xw(t,e,r,n,o,i,s,a,u){let c=e.consts,l=vr(e,t,4,s||null,Sn(c,a));Iu(e,r,l,Sn(c,u)),mi(e,l);let d=l.tView=Eu(2,l,n,o,i,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c,null);return e.queries!==null&&(e.queries.template(e,l),d.queries=e.queries.embeddedTView(l)),l}function _w(t,e,r,n,o,i,s,a){let u=F(),c=le(),l=t+Ie,d=c.firstCreatePass?xw(l,c,u,e,r,n,o,i,s):c.data[l];Kt(d,!1);let f=Aw(c,u,d,t);pi()&&Ci(c,u,f,d),bt(f,u);let h=Xf(f,u,f,d);return u[l]=h,Mi(u,h),Sw(h,d,u),di(d)&&wu(c,u,d),s!=null&&Cu(u,d,a),_w}var Aw=Nw;function Nw(t,e,r,n){return gi(!0),e[ne].createComment("")}function Rw(t,e,r,n,o,i){let s=e.consts,a=Sn(s,o),u=vr(e,t,2,n,a);return Iu(e,r,u,Sn(s,i)),u.attrs!==null&&Xo(u,u.attrs,!1),u.mergedAttrs!==null&&Xo(u,u.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,u),u}function gh(t,e,r,n){let o=F(),i=le(),s=Ie+t,a=o[ne],u=i.firstCreatePass?Rw(s,i,o,e,r,n):i.data[s],c=Ow(i,o,u,a,e,t);o[s]=c;let l=di(u);return Kt(u,!0),jf(a,c,u),(u.flags&32)!==32&&pi()&&Ci(i,o,c,u),Fm()===0&&bt(c,o),km(),l&&(wu(i,o,u),Du(i,u,o)),n!==null&&Cu(o,u),gh}function mh(){let t=me();Ka()?Yd():(t=t.parent,Kt(t,!1));let e=t;Vm(e)&&$m(),Lm();let r=le();return r.firstCreatePass&&(mi(r,t),Za(t)&&r.queries.elementEnd(t)),e.classesWithoutHost!=null&&tv(e)&&sd(r,e,F(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&nv(e)&&sd(r,e,F(),e.stylesWithoutHost,!1),mh}function Ru(t,e,r,n){return gh(t,e,r,n),mh(),Ru}var Ow=(t,e,r,n,o,i)=>(gi(!0),Rf(n,o,Km()));function Pw(t,e,r,n,o){let i=e.consts,s=Sn(i,n),a=vr(e,t,8,"ng-container",s);s!==null&&Xo(a,s,!0);let u=Sn(i,o);return Iu(e,r,a,u),e.queries!==null&&e.queries.elementStart(e,a),a}function Fw(t,e,r){let n=F(),o=le(),i=t+Ie,s=o.firstCreatePass?Pw(i,o,n,e,r):o.data[i];Kt(s,!0);let a=Lw(o,n,s,t);return n[i]=a,pi()&&Ci(o,n,a,s),bt(a,n),di(s)&&(wu(o,n,s),Du(o,s,n)),r!=null&&Cu(n,s),Fw}function kw(){let t=me(),e=le();return Ka()?Yd():(t=t.parent,Kt(t,!1)),e.firstCreatePass&&(mi(e,t),Za(t)&&e.queries.elementEnd(t)),kw}var Lw=(t,e,r,n)=>(gi(!0),Xv(e[ne],""));function GA(){return F()}var jt=void 0;function jw(t){let e=t,r=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return r===1&&n===0?1:5}var Vw=["en",[["a","p"],["AM","PM"],jt],[["AM","PM"],jt,jt],[["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"]],jt,[["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"]],jt,[["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}",jt,"{1} 'at' {0}",jt],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",jw],er={};function vh(t,e,r){typeof e!="string"&&(r=e,e=t[q.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),er[e]=t,r&&(er[e][q.ExtraData]=r)}function Ae(t){let e=$w(t),r=dd(e);if(r)return r;let n=e.split("-")[0];if(r=dd(n),r)return r;if(n==="en")return Vw;throw new v(701,!1)}function dd(t){return t in er||(er[t]=te.ng&&te.ng.common&&te.ng.common.locales&&te.ng.common.locales[t]),er[t]}var q=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(q||{});function $w(t){return t.toLowerCase().replace(/_/g,"-")}var ni="en-US";var Uw=ni;function Bw(t){Kg(t,"Expected localeId to be defined"),typeof t=="string"&&(Uw=t.toLowerCase().replace(/_/g,"-"))}function kn(t){return!!t&&typeof t.then=="function"}function Ou(t){return!!t&&typeof t.subscribe=="function"}function Pu(t,e,r,n){let o=F(),i=le(),s=me();return zw(i,o,o[ne],s,t,e,n),Pu}function Hw(t,e,r,n){let o=t.cleanup;if(o!=null)for(let i=0;iu?a[u]:null}typeof s=="string"&&(i+=2)}return null}function zw(t,e,r,n,o,i,s){let a=di(n),c=t.firstCreatePass&&nh(t),l=e[xe],d=th(e),f=!0;if(n.type&3||s){let S=_e(n,e),I=s?s(S):S,w=d.length,Z=s?G=>s(Qe(G[n.index])):n.index,re=null;if(!s&&a&&(re=Hw(t,e,o,n.index)),re!==null){let G=re.__ngLastListenerFn__||re;G.__ngNextListenerFn__=i,re.__ngLastListenerFn__=i,f=!1}else{i=hd(n,e,l,i,!1);let G=r.listen(I,o,i);d.push(i,G),c&&c.push(o,Z,w,w+1)}}else i=hd(n,e,l,i,!1);let h=n.outputs,g;if(f&&h!==null&&(g=h[o])){let S=g.length;if(S)for(let I=0;I-1?St(t.index,e):e;Mu(a);let u=fd(e,r,n,s),c=i.__ngNextListenerFn__;for(;c;)u=fd(e,r,c,s)&&u,c=c.__ngNextListenerFn__;return o&&u===!1&&s.preventDefault(),u}}function qA(t=1){return Qm(t)}function Ww(t,e,r,n){r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function ZA(t){let e=Bm();return Ya(e,Ie+t)}function YA(t,e=""){let r=F(),n=le(),o=t+Ie,i=n.firstCreatePass?vr(n,o,1,e,null):n.data[o],s=Gw(n,r,i,e,t);r[o]=s,pi()&&Ci(n,r,s,i),Kt(i,!1)}var Gw=(t,e,r,n,o)=>(gi(!0),Kv(e[ne],n));function qw(t){return yh("",t,""),qw}function yh(t,e,r){let n=F(),o=XD(n,t,e,r);return o!==Tt&&yD(n,On(),o),yh}function Zw(t,e,r){let n=le();if(n.firstCreatePass){let o=It(t);Fa(r,n.data,n.blueprint,o,!0),Fa(e,n.data,n.blueprint,o,!1)}}function Fa(t,e,r,n,o){if(t=pe(t),Array.isArray(t))for(let i=0;i>20;if(Tn(t)||!t.multi){let h=new zt(c,o,W),g=ea(u,e,o?l:l+f,d);g===-1?(ca(zo(a,s),i,u),Xs(i,t,e.length),e.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),r.push(h),s.push(h)):(r[g]=h,s[g]=h)}else{let h=ea(u,e,l+f,d),g=ea(u,e,l,l+f),S=h>=0&&r[h],I=g>=0&&r[g];if(o&&!I||!o&&!S){ca(zo(a,s),i,u);let w=Kw(o?Qw:Yw,r.length,o,n,c);!o&&I&&(r[g].providerFactory=w),Xs(i,t,e.length,0),e.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),r.push(w),s.push(w)}else{let w=Dh(r[o?g:h],c,!o&&n);Xs(i,t,h>-1?h:g,w)}!o&&n&&I&&r[g].componentProviders++}}}function Xs(t,e,r,n){let o=Tn(e),i=Nv(e);if(o||i){let u=(i?pe(e.useClass):e).prototype.ngOnDestroy;if(u){let c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let l=c.indexOf(r);l===-1?c.push(r,[n,u]):c[l+1].push(n,u)}else c.push(r,u)}}}function Dh(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function ea(t,e,r,n){for(let o=r;o{r.providersResolver=(n,o)=>Zw(n,o?o(t):t,e)}}var Mt=class{},cr=class{};var ri=class extends Mt{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ei(this);let o=Pd(e);this._bootstrapComponents=Sf(o.bootstrap),this._r3Injector=bf(e,r,[{provide:Mt,useValue:this},{provide:Ii,useValue:this.componentFactoryResolver},...n],ce(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},oi=class extends cr{constructor(e){super(),this.moduleType=e}create(e){return new ri(this.moduleType,e,[])}};function Jw(t,e,r){return new ri(t,e,r)}var La=class extends Mt{constructor(e){super(),this.componentFactoryResolver=new ei(this),this.instance=null;let r=new sr([...e.providers,{provide:Mt,useValue:this},{provide:Ii,useValue:this.componentFactoryResolver}],e.parent||uu(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Ti(t,e,r=null){return new La({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}var Xw=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let o=Df(!1,n.type),i=o.length>0?Ti([o],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=C({token:e,providedIn:"environment",factory:()=>new e(m(ge))});let t=e;return t})();function wh(t){Si("NgStandalone"),t.getStandaloneInjector=e=>e.get(Xw).getOrCreateStandaloneInjector(t)}function KA(t,e,r){let n=hi()+t,o=F();return o[n]===Tt?Au(o,n,r?e.call(r):e()):KD(o,n)}function JA(t,e,r,n){return Eh(F(),hi(),t,e,r,n)}function Ch(t,e){let r=t[e];return r===Tt?void 0:r}function Eh(t,e,r,n,o,i){let s=e+r;return qt(t,s,o)?Au(t,s+1,i?n.call(i,o):n(o)):Ch(t,s+1)}function eC(t,e,r,n,o,i,s){let a=e+r;return JD(t,a,o,i)?Au(t,a+2,s?n.call(s,o,i):n(o,i)):Ch(t,a+2)}function XA(t,e){let r=le(),n,o=t+Ie;r.firstCreatePass?(n=tC(e,r.pipeRegistry),r.data[o]=n,n.onDestroy&&(r.destroyHooks??=[]).push(o,n.onDestroy)):n=r.data[o];let i=n.factory||(n.factory=Bt(n.type,!0)),s,a=we(W);try{let u=Ho(!1),c=i();return Ho(u),Ww(r,F(),o,c),c}finally{we(a)}}function tC(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function eN(t,e,r){let n=t+Ie,o=F(),i=Ya(o,n);return Ih(o,n)?Eh(o,hi(),e,i.transform,r,i):i.transform(r)}function tN(t,e,r,n){let o=t+Ie,i=F(),s=Ya(i,o);return Ih(i,o)?eC(i,hi(),e,s.transform,r,n,s):s.transform(r,n)}function Ih(t,e){return t[A].data[e].pure}function nC(){return this._results[Symbol.iterator]()}var ja=class t{get changes(){return this._changes||(this._changes=new se)}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=nC)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let n=mv(e);(this._changesDetected=!gv(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}},Yt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=iC;let t=e;return t})(),rC=Yt,oC=class extends rC{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let o=Dw(this._declarationLView,this._declarationTContainer,e,{injector:r,dehydratedView:n});return new Gt(o)}};function iC(){return Fu(me(),F())}function Fu(t,e){return t.type&4?new oC(e,t,Pn(t,e)):null}var Va=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},$a=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,o=[];for(let i=0;i0)n.push(s[a/2]);else{let c=i[a+1],l=e[-u];for(let d=Ee;d{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,o)=>{this.resolve=n,this.reject=o}),this.appInits=p(xi,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let s=i();if(kn(s))n.push(s);else if(Ou(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});n.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{o()}).catch(i=>{this.reject(i)}),n.length===0&&o(),this.initialized=!0}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),_i=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function gC(){return typeof $localize<"u"&&$localize.locale||ni}var Ai=new E("LocaleId",{providedIn:"root",factory:()=>p(Ai,O.Optional|O.SkipSelf)||gC()});var Ln=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new oe(!1)}add(){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.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Wa=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},Ni=(()=>{let e=class e{compileModuleSync(n){return new oi(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let o=this.compileModuleSync(n),i=Pd(n),s=Sf(i.declarations).reduce((a,u)=>{let c=Et(u);return c&&a.push(new _n(c)),a},[]);return new Wa(o,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),mC=new E("compilerOptions");var ku=new E(""),yr=new E(""),Ri=(()=>{let e=class e{constructor(n,o,i){this._ngZone=n,this.registry=o,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Lu||(vC(i),i.addToWindow(o)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{V.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&this._pendingCount===0&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>o.updateCb&&o.updateCb(n)?(clearTimeout(o.timeoutId),!1):!0),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,o,i){let s=-1;o&&o>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n(this._didWork,this.getPendingTasks())},o)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:i})}whenStable(n,o,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,o,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,o,i){return[]}};e.\u0275fac=function(o){return new(o||e)(m(V),m(Oi),m(yr))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),Oi=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,o){this._applications.set(n,o)}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,o=!0){return Lu?.findTestabilityInTree(this,n,o)??null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function vC(t){Lu=t}var Lu,tr=null,Ah=new E("AllowMultipleToken"),Nh=new E("PlatformDestroyListeners"),Pi=new E("appBootstrapListener");function yC(t,e,r){let n=new oi(r);return Promise.resolve(n)}function DC(){ol(()=>{throw new v(600,!1)})}function wC(t){return t.isBoundToModule}function CC(t){if(tr&&!tr.get(Ah,!1))throw new v(400,!1);DC(),tr=t;let e=t.get(Oh);return EC(t),e}function EC(t){t.get(cu,null)?.forEach(r=>r())}function ju(t,e,r=[]){let n=`Platform: ${e}`,o=new E(n);return(i=[])=>{let s=Rh();if(!s||s.injector.get(Ah,!1)){let a=[...r,...i,{provide:o,useValue:!0}];t?t(a):CC(bC(a,n))}return IC(o)}}function IC(t){let e=Rh();if(!e)throw new v(401,!1);return e}function bC(t=[],e){return je.create({name:e,providers:[{provide:Di,useValue:"platform"},{provide:Nh,useValue:new Set([()=>tr=null])},...t]})}function Rh(){return tr?.get(Oh)??null}var Oh=(()=>{let e=class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,o){let i=SC(o?.ngZone,MC({eventCoalescing:o?.ngZoneEventCoalescing,runCoalescing:o?.ngZoneRunCoalescing}));return i.run(()=>{let s=Jw(n.moduleType,this.injector,AC(()=>i)),a=s.injector.get(Ke,null);return i.runOutsideAngular(()=>{let u=i.onError.subscribe({next:c=>{a.handleError(c)}});s.onDestroy(()=>{Lo(this._modules,s),u.unsubscribe()})}),TC(a,i,()=>{let u=s.injector.get(_h);return u.runInitializers(),u.donePromise.then(()=>{let c=s.injector.get(Ai,ni);return Bw(c||ni),this._moduleDoBootstrap(s),s})})})}bootstrapModule(n,o=[]){let i=Ph({},o);return yC(this.injector,i,n).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(n){let o=n.injector.get(Jt);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>o.bootstrap(i));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(o);else throw new v(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new v(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());let n=this._injector.get(Nh,null);n&&(n.forEach(o=>o()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(o){return new(o||e)(m(je))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function MC(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}function SC(t="zone.js",e){return t==="noop"?new xa:t==="zone.js"?new V(e):t}function TC(t,e,r){try{let n=r();return kn(n)?n.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function Ph(t,e){return Array.isArray(e)?e.reduce(Ph,t):y(y({},t),e)}var Jt=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(Fh),this.zoneIsStable=p(lh),this.componentTypes=[],this.components=[],this.isStable=p(Ln).hasPendingTasks.pipe(ie(n=>n?D(!1):this.zoneIsStable),Eo(),bo()),this._injector=p(ge)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,o){let i=n instanceof Qo;if(!this._injector.get(_h).done){let g="Cannot bootstrap as there are still asynchronous initializers running."+(!i&&Od(n)?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.");throw new v(405,!1)}let a;i?a=n:a=this._injector.get(Ii).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let u=wC(a)?void 0:this._injector.get(Mt),c=o||a.selector,l=a.create(je.NULL,[],c,u),d=l.location.nativeElement,f=l.injector.get(ku,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Lo(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new v(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){let o=n;this._views.push(o),o.attachToAppRef(this)}detachView(n){let o=n;Lo(this._views,o),o.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let o=this._injector.get(Pi,[]);[...this._bootstrapListeners,...o].forEach(i=>i(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),()=>Lo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new v(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Lo(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function pd(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var Fh=new E("",{providedIn:"root",factory:()=>p(Ke).handleError.bind(void 0)});function xC(){let t=p(V),e=p(Ke);return r=>t.runOutsideAngular(()=>e.handleError(r))}var _C=(()=>{let e=class e{constructor(){this.zone=p(V),this.applicationRef=p(Jt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function AC(t){return[{provide:V,useFactory:t},{provide:hr,multi:!0,useFactory:()=>{let e=p(_C,{optional:!0});return()=>e.initialize()}},{provide:Fh,useFactory:xC},{provide:lh,useFactory:dh}]}var kh=ju(null,"core",[]),Lh=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(o){return new(o||e)(m(Jt))},e.\u0275mod=st({type:e}),e.\u0275inj=it({});let t=e;return t})();function Dr(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function jh(t){let e=Et(t);if(!e)return null;let r=new _n(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var Bu=null;function Xt(){return Bu}function zh(t){Bu||(Bu=t)}var Bi=class{},ae=new E("DocumentToken"),Zu=(()=>{let e=class e{historyGo(n){throw new Error("Not implemented")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:()=>(()=>p(NC))(),providedIn:"platform"});let t=e;return t})(),Wh=new E("Location Initialized"),NC=(()=>{let e=class e extends Zu{constructor(){super(),this._doc=p(ae),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Xt().getBaseHref(this._doc)}onPopState(n){let o=Xt().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",n,!1),()=>o.removeEventListener("popstate",n)}onHashChange(n){let o=Xt().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",n,!1),()=>o.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,o,i){this._history.pushState(n,o,i)}replaceState(n,o,i){this._history.replaceState(n,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:()=>(()=>new e)(),providedIn:"platform"});let t=e;return t})();function Yu(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function Vh(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function dt(t){return t&&t[0]!=="?"?"?"+t:t}var pt=(()=>{let e=class e{historyGo(n){throw new Error("Not implemented")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:()=>(()=>p(Qu))(),providedIn:"root"});let t=e;return t})(),Gh=new E("appBaseHref"),Qu=(()=>{let e=class e extends pt{constructor(n,o){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??p(ae).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 Yu(this._baseHref,n)}path(n=!1){let o=this._platformLocation.pathname+dt(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${o}${i}`:o}pushState(n,o,i,s){let a=this.prepareExternalUrl(i+dt(s));this._platformLocation.pushState(n,o,a)}replaceState(n,o,i,s){let a=this.prepareExternalUrl(i+dt(s));this._platformLocation.replaceState(n,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(o){return new(o||e)(m(Zu),m(Gh,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),qh=(()=>{let e=class e extends pt{constructor(n,o){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],o!=null&&(this._baseHref=o)}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 o=this._platformLocation.hash;return o==null&&(o="#"),o.length>0?o.substring(1):o}prepareExternalUrl(n){let o=Yu(this._baseHref,n);return o.length>0?"#"+o:o}pushState(n,o,i,s){let a=this.prepareExternalUrl(i+dt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,o,a)}replaceState(n,o,i,s){let a=this.prepareExternalUrl(i+dt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(o){return new(o||e)(m(Zu),m(Gh,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),Vn=(()=>{let e=class e{constructor(n){this._subject=new se,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let o=this._locationStrategy.getBaseHref();this._basePath=PC(Vh($h(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,o=""){return this.path()==this.normalize(n+dt(o))}normalize(n){return e.stripTrailingSlash(OC(this._basePath,$h(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,o="",i=null){this._locationStrategy.pushState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+dt(o)),i)}replaceState(n,o="",i=null){this._locationStrategy.replaceState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+dt(o)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)})),()=>{let o=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",o){this._urlChangeListeners.forEach(i=>i(n,o))}subscribe(n,o,i){return this._subject.subscribe({next:n,error:o,complete:i})}};e.normalizeQueryParams=dt,e.joinWithSlash=Yu,e.stripTrailingSlash=Vh,e.\u0275fac=function(o){return new(o||e)(m(pt))},e.\u0275prov=C({token:e,factory:()=>RC(),providedIn:"root"});let t=e;return t})();function RC(){return new Vn(m(pt))}function OC(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function $h(t){return t.replace(/\/index.html$/,"")}function PC(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}var ve=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(ve||{}),U=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(U||{}),be=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(be||{}),ft=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t.Infinity=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}(ft||{});function FC(t){return Ae(t)[q.LocaleId]}function kC(t,e,r){let n=Ae(t),o=[n[q.DayPeriodsFormat],n[q.DayPeriodsStandalone]],i=Ne(o,e);return Ne(i,r)}function LC(t,e,r){let n=Ae(t),o=[n[q.DaysFormat],n[q.DaysStandalone]],i=Ne(o,e);return Ne(i,r)}function jC(t,e,r){let n=Ae(t),o=[n[q.MonthsFormat],n[q.MonthsStandalone]],i=Ne(o,e);return Ne(i,r)}function VC(t,e){let n=Ae(t)[q.Eras];return Ne(n,e)}function Fi(t,e){let r=Ae(t);return Ne(r[q.DateFormat],e)}function ki(t,e){let r=Ae(t);return Ne(r[q.TimeFormat],e)}function Li(t,e){let n=Ae(t)[q.DateTimeFormat];return Ne(n,e)}function zi(t,e){let r=Ae(t),n=r[q.NumberSymbols][e];if(typeof n>"u"){if(e===ft.CurrencyDecimal)return r[q.NumberSymbols][ft.Decimal];if(e===ft.CurrencyGroup)return r[q.NumberSymbols][ft.Group]}return n}function Zh(t){if(!t[q.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[q.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function $C(t){let e=Ae(t);return Zh(e),(e[q.ExtraData][2]||[]).map(n=>typeof n=="string"?Vu(n):[Vu(n[0]),Vu(n[1])])}function UC(t,e,r){let n=Ae(t);Zh(n);let o=[n[q.ExtraData][0],n[q.ExtraData][1]],i=Ne(o,e)||[];return Ne(i,r)||[]}function Ne(t,e){for(let r=e;r>-1;r--)if(typeof t[r]<"u")return t[r];throw new Error("Locale data API: locale data undefined")}function Vu(t){let[e,r]=t.split(":");return{hours:+e,minutes:+r}}var BC=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Cr={},HC=/((?:[^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]*)/,ht=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(ht||{}),L=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(L||{}),k=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(k||{});function zC(t,e,r,n){let o=XC(t);e=lt(r,e)||e;let s=[],a;for(;e;)if(a=HC.exec(e),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;e=l}else{s.push(e);break}let u=o.getTimezoneOffset();n&&(u=Qh(n,u),o=JC(o,n,!0));let c="";return s.forEach(l=>{let d=QC(l);c+=d?d(o,r,u):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Hi(t,e,r){let n=new Date(0);return n.setFullYear(t,e,r),n.setHours(0,0,0),n}function lt(t,e){let r=FC(t);if(Cr[r]=Cr[r]||{},Cr[r][e])return Cr[r][e];let n="";switch(e){case"shortDate":n=Fi(t,be.Short);break;case"mediumDate":n=Fi(t,be.Medium);break;case"longDate":n=Fi(t,be.Long);break;case"fullDate":n=Fi(t,be.Full);break;case"shortTime":n=ki(t,be.Short);break;case"mediumTime":n=ki(t,be.Medium);break;case"longTime":n=ki(t,be.Long);break;case"fullTime":n=ki(t,be.Full);break;case"short":let o=lt(t,"shortTime"),i=lt(t,"shortDate");n=ji(Li(t,be.Short),[o,i]);break;case"medium":let s=lt(t,"mediumTime"),a=lt(t,"mediumDate");n=ji(Li(t,be.Medium),[s,a]);break;case"long":let u=lt(t,"longTime"),c=lt(t,"longDate");n=ji(Li(t,be.Long),[u,c]);break;case"full":let l=lt(t,"fullTime"),d=lt(t,"fullDate");n=ji(Li(t,be.Full),[l,d]);break}return n&&(Cr[r][e]=n),n}function ji(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(r,n){return e!=null&&n in e?e[n]:r})),t}function Ve(t,e,r="-",n,o){let i="";(t<0||o&&t<=0)&&(o?t=-t+1:(t=-t,i=r));let s=String(t);for(;s.length0||a>-r)&&(a+=r),t===L.Hours)a===0&&r===-12&&(a=12);else if(t===L.FractionalSeconds)return WC(a,e);let u=zi(s,ft.MinusSign);return Ve(a,e,u,n,o)}}function GC(t,e){switch(t){case L.FullYear:return e.getFullYear();case L.Month:return e.getMonth();case L.Date:return e.getDate();case L.Hours:return e.getHours();case L.Minutes:return e.getMinutes();case L.Seconds:return e.getSeconds();case L.FractionalSeconds:return e.getMilliseconds();case L.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function H(t,e,r=ve.Format,n=!1){return function(o,i){return qC(o,i,t,e,r,n)}}function qC(t,e,r,n,o,i){switch(r){case k.Months:return jC(e,o,n)[t.getMonth()];case k.Days:return LC(e,o,n)[t.getDay()];case k.DayPeriods:let s=t.getHours(),a=t.getMinutes();if(i){let c=$C(e),l=UC(e,o,n),d=c.findIndex(f=>{if(Array.isArray(f)){let[h,g]=f,S=s>=h.hours&&a>=h.minutes,I=s0?Math.floor(o/60):Math.ceil(o/60);switch(t){case ht.Short:return(o>=0?"+":"")+Ve(s,2,i)+Ve(Math.abs(o%60),2,i);case ht.ShortGMT:return"GMT"+(o>=0?"+":"")+Ve(s,1,i);case ht.Long:return"GMT"+(o>=0?"+":"")+Ve(s,2,i)+":"+Ve(Math.abs(o%60),2,i);case ht.Extended:return n===0?"Z":(o>=0?"+":"")+Ve(s,2,i)+":"+Ve(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${t}"`)}}}var ZC=0,Ui=4;function YC(t){let e=Hi(t,ZC,1).getDay();return Hi(t,0,1+(e<=Ui?Ui:Ui+7)-e)}function Yh(t){return Hi(t.getFullYear(),t.getMonth(),t.getDate()+(Ui-t.getDay()))}function $u(t,e=!1){return function(r,n){let o;if(e){let i=new Date(r.getFullYear(),r.getMonth(),1).getDay()-1,s=r.getDate();o=1+Math.floor((s+i)/7)}else{let i=Yh(r),s=YC(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Ve(o,t,zi(n,ft.MinusSign))}}function $i(t,e=!1){return function(r,n){let i=Yh(r).getFullYear();return Ve(i,t,zi(n,ft.MinusSign),e)}}var Uu={};function QC(t){if(Uu[t])return Uu[t];let e;switch(t){case"G":case"GG":case"GGG":e=H(k.Eras,U.Abbreviated);break;case"GGGG":e=H(k.Eras,U.Wide);break;case"GGGGG":e=H(k.Eras,U.Narrow);break;case"y":e=ee(L.FullYear,1,0,!1,!0);break;case"yy":e=ee(L.FullYear,2,0,!0,!0);break;case"yyy":e=ee(L.FullYear,3,0,!1,!0);break;case"yyyy":e=ee(L.FullYear,4,0,!1,!0);break;case"Y":e=$i(1);break;case"YY":e=$i(2,!0);break;case"YYY":e=$i(3);break;case"YYYY":e=$i(4);break;case"M":case"L":e=ee(L.Month,1,1);break;case"MM":case"LL":e=ee(L.Month,2,1);break;case"MMM":e=H(k.Months,U.Abbreviated);break;case"MMMM":e=H(k.Months,U.Wide);break;case"MMMMM":e=H(k.Months,U.Narrow);break;case"LLL":e=H(k.Months,U.Abbreviated,ve.Standalone);break;case"LLLL":e=H(k.Months,U.Wide,ve.Standalone);break;case"LLLLL":e=H(k.Months,U.Narrow,ve.Standalone);break;case"w":e=$u(1);break;case"ww":e=$u(2);break;case"W":e=$u(1,!0);break;case"d":e=ee(L.Date,1);break;case"dd":e=ee(L.Date,2);break;case"c":case"cc":e=ee(L.Day,1);break;case"ccc":e=H(k.Days,U.Abbreviated,ve.Standalone);break;case"cccc":e=H(k.Days,U.Wide,ve.Standalone);break;case"ccccc":e=H(k.Days,U.Narrow,ve.Standalone);break;case"cccccc":e=H(k.Days,U.Short,ve.Standalone);break;case"E":case"EE":case"EEE":e=H(k.Days,U.Abbreviated);break;case"EEEE":e=H(k.Days,U.Wide);break;case"EEEEE":e=H(k.Days,U.Narrow);break;case"EEEEEE":e=H(k.Days,U.Short);break;case"a":case"aa":case"aaa":e=H(k.DayPeriods,U.Abbreviated);break;case"aaaa":e=H(k.DayPeriods,U.Wide);break;case"aaaaa":e=H(k.DayPeriods,U.Narrow);break;case"b":case"bb":case"bbb":e=H(k.DayPeriods,U.Abbreviated,ve.Standalone,!0);break;case"bbbb":e=H(k.DayPeriods,U.Wide,ve.Standalone,!0);break;case"bbbbb":e=H(k.DayPeriods,U.Narrow,ve.Standalone,!0);break;case"B":case"BB":case"BBB":e=H(k.DayPeriods,U.Abbreviated,ve.Format,!0);break;case"BBBB":e=H(k.DayPeriods,U.Wide,ve.Format,!0);break;case"BBBBB":e=H(k.DayPeriods,U.Narrow,ve.Format,!0);break;case"h":e=ee(L.Hours,1,-12);break;case"hh":e=ee(L.Hours,2,-12);break;case"H":e=ee(L.Hours,1);break;case"HH":e=ee(L.Hours,2);break;case"m":e=ee(L.Minutes,1);break;case"mm":e=ee(L.Minutes,2);break;case"s":e=ee(L.Seconds,1);break;case"ss":e=ee(L.Seconds,2);break;case"S":e=ee(L.FractionalSeconds,1);break;case"SS":e=ee(L.FractionalSeconds,2);break;case"SSS":e=ee(L.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Vi(ht.Short);break;case"ZZZZZ":e=Vi(ht.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Vi(ht.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Vi(ht.Long);break;default:return null}return Uu[t]=e,e}function Qh(t,e){t=t.replace(/:/g,"");let r=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(r)?e:r}function KC(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function JC(t,e,r){let n=r?-1:1,o=t.getTimezoneOffset(),i=Qh(e,o);return KC(t,n*(i-o))}function XC(t){if(Uh(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[o,i=1,s=1]=t.split("-").map(a=>+a);return Hi(o,i-1,s)}let r=parseFloat(t);if(!isNaN(t-r))return new Date(r);let n;if(n=t.match(BC))return eE(n)}let e=new Date(t);if(!Uh(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function eE(t){let e=new Date(0),r=0,n=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=Number(t[9]+t[10]),n=Number(t[9]+t[11])),o.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-r,a=Number(t[5]||0)-n,u=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return i.call(e,s,a,u,c),e}function Uh(t){return t instanceof Date&&!isNaN(t.valueOf())}function IN(t,e,r){return vh(t,e,r)}function Wi(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[o,i]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}var Hu=class{constructor(e,r,n,o){this.$implicit=e,this.ngForOf=r,this.index=n,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}},bN=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,o,i){this._viewContainer=n,this._template=o,this._differs=i,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(!1)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 o=this._viewContainer;n.forEachOperation((i,s,a)=>{if(i.previousIndex==null)o.createEmbeddedView(this._template,new Hu(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(s===null?void 0:s);else if(s!==null){let u=o.get(s);o.move(u,a),Bh(u,i)}});for(let i=0,s=o.length;i{let s=o.get(i.currentIndex);Bh(s,i)})}static ngTemplateContextGuard(n,o){return!0}};e.\u0275fac=function(o){return new(o||e)(W(xt),W(Yt),W(yu))},e.\u0275dir=Qt({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function Bh(t,e){t.context.$implicit=e.item}var MN=(()=>{let e=class e{constructor(n,o){this._viewContainer=n,this._context=new zu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Hh("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Hh("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,o){return!0}};e.\u0275fac=function(o){return new(o||e)(W(xt),W(Yt))},e.\u0275dir=Qt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),zu=class{constructor(){this.$implicit=null,this.ngIf=null}};function Hh(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${ce(e)}'.`)}function Kh(t,e){return new v(2100,!1)}var Wu=class{createSubscription(e,r){return vu(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){vu(()=>e.unsubscribe())}},Gu=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},tE=new Gu,nE=new Wu,SN=(()=>{let e=class e{constructor(n){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){return this._obj?n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue:(n&&this._subscribe(n),this._latestValue)}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,o=>this._updateLatestValue(n,o))}_selectStrategy(n){if(kn(n))return tE;if(Ou(n))return nE;throw Kh(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,o){n===this._obj&&(this._latestValue=o,this._ref.markForCheck())}};e.\u0275fac=function(o){return new(o||e)(W(Fn,16))},e.\u0275pipe=qa({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var rE="mediumDate",oE=new E("DATE_PIPE_DEFAULT_TIMEZONE"),iE=new E("DATE_PIPE_DEFAULT_OPTIONS"),TN=(()=>{let e=class e{constructor(n,o,i){this.locale=n,this.defaultTimezone=o,this.defaultOptions=i}transform(n,o,i,s){if(n==null||n===""||n!==n)return null;try{let a=o??this.defaultOptions?.dateFormat??rE,u=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return zC(n,a,s||this.locale,u)}catch(a){throw Kh(e,a.message)}}};e.\u0275fac=function(o){return new(o||e)(W(Ai,16),W(oE,24),W(iE,24))},e.\u0275pipe=qa({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();var Jh=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=st({type:e}),e.\u0275inj=it({});let t=e;return t})(),Xh="browser",sE="server";function Ku(t){return t===sE}var ep=(()=>{let e=class e{};e.\u0275prov=C({token:e,providedIn:"root",factory:()=>new qu(m(ae),window)});let t=e;return t})(),qu=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;let r=aE(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.supportsScrolling()&&(this.window.history.scrollRestoration=e)}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,o=r.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],o-i[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}};function aE(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=n.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(e)||i.querySelector(`[name="${e}"]`);if(s)return s}o=n.nextNode()}}return null}var jn=class{};var Ir=class{},qi=class{},en=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
+`).forEach(r=>{let n=r.indexOf(":");if(n>0){let o=r.slice(0,n),i=o.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let o=(e.op==="a"?this.headers.get(r):void 0)||[];o.push(...n),this.headers.set(r,o);break;case"d":let i=e.value;if(!i)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(i=>i.toString()),o=e.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var Xu=class{encodeKey(e){return np(e)}encodeValue(e){return np(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function lE(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,i)),e.decodeValue(o.slice(i+1))],u=r.get(s)||[];u.push(a),r.set(s,u)}),r}var dE=/%(\d[a-f0-9])/gi,fE={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function np(t){return encodeURIComponent(t).replace(dE,(e,r)=>fE[r]??e)}function Gi(t){return`${t}`}var _t=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Xu,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=lE(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],o=Array.isArray(n)?n.map(Gi):[Gi(n)];this.map.set(r,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let o=e[n];Array.isArray(o)?o.forEach(i=>{r.push({param:n,value:i,op:"a"})}):r.push({param:n,value:o,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(Gi(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],o=n.indexOf(Gi(e.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var ec=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function hE(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function rp(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function op(t){return typeof Blob<"u"&&t instanceof Blob}function ip(t){return typeof FormData<"u"&&t instanceof FormData}function pE(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Er=class t{constructor(e,r,n,o){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let i;if(hE(this.method)||o?(this.body=n!==void 0?n:null,i=o):i=n,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||(this.headers=new en),this.context||(this.context=new ec),!this.params)this.params=new _t,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),u=a===-1?"?":ad.set(f,e.setHeaders[f]),u)),e.setParams&&(c=Object.keys(e.setParams).reduce((d,f)=>d.set(f,e.setParams[f]),c)),new t(r,n,i,{params:c,headers:u,context:l,reportProgress:a,responseType:o,withCredentials:s})}},$n=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}($n||{}),br=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new en,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},tc=class t extends br{constructor(e={}){super(e),this.type=$n.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Zi=class t extends br{constructor(e={}){super(e),this.type=$n.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Yi=class extends br{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}};function Ju(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var nc=(()=>{let e=class e{constructor(n){this.handler=n}request(n,o,i={}){let s;if(n instanceof Er)s=n;else{let c;i.headers instanceof en?c=i.headers:c=new en(i.headers);let l;i.params&&(i.params instanceof _t?l=i.params:l=new _t({fromObject:i.params})),s=new Er(n,o,i.body!==void 0?i.body:null,{headers:c,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let a=D(s).pipe(nt(c=>this.handler.handle(c)));if(n instanceof Er||i.observe==="events")return a;let u=a.pipe(he(c=>c instanceof Zi));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return u.pipe(R(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return u.pipe(R(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return u.pipe(R(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return u.pipe(R(c=>c.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(n,o={}){return this.request("DELETE",n,o)}get(n,o={}){return this.request("GET",n,o)}head(n,o={}){return this.request("HEAD",n,o)}jsonp(n,o){return this.request("JSONP",n,{params:new _t().append(o,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,o={}){return this.request("OPTIONS",n,o)}patch(n,o,i={}){return this.request("PATCH",n,Ju(i,o))}post(n,o,i={}){return this.request("POST",n,Ju(i,o))}put(n,o,i={}){return this.request("PUT",n,Ju(i,o))}};e.\u0275fac=function(o){return new(o||e)(m(Ir))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();function cp(t,e){return e(t)}function gE(t,e){return(r,n)=>e.intercept(r,{handle:o=>t(o,n)})}function mE(t,e,r){return(n,o)=>r.runInContext(()=>e(n,i=>t(i,o)))}var vE=new E(""),rc=new E(""),yE=new E(""),DE=new E("");function wE(){let t=null;return(e,r)=>{t===null&&(t=(p(vE,{optional:!0})??[]).reduceRight(gE,cp));let n=p(Ln),o=n.add();return t(e,r).pipe(yt(()=>n.remove(o)))}}var sp=(()=>{let e=class e extends Ir{constructor(n,o){super(),this.backend=n,this.injector=o,this.chain=null,this.pendingTasks=p(Ln);let i=p(DE,{optional:!0});this.backend=i??n}handle(n){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(rc),...this.injector.get(yE,[])]));this.chain=i.reduceRight((s,a)=>mE(s,a,this.injector),cp)}let o=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(yt(()=>this.pendingTasks.remove(o)))}};e.\u0275fac=function(o){return new(o||e)(m(qi),m(ge))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();var CE=/^\)\]\}',?\n/;function EE(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var ap=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new v(-2800,!1);let o=this.xhrFactory;return(o.\u0275loadImpl?B(o.\u0275loadImpl()):D(null)).pipe(ie(()=>new P(s=>{let a=o.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((I,w)=>a.setRequestHeader(I,w.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let I=n.detectContentTypeHeader();I!==null&&a.setRequestHeader("Content-Type",I)}if(n.responseType){let I=n.responseType.toLowerCase();a.responseType=I!=="json"?I:"text"}let u=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let I=a.statusText||"OK",w=new en(a.getAllResponseHeaders()),Z=EE(a)||n.url;return c=new tc({headers:w,status:a.status,statusText:I,url:Z}),c},d=()=>{let{headers:I,status:w,statusText:Z,url:re}=l(),G=null;w!==204&&(G=typeof a.response>"u"?a.responseText:a.response),w===0&&(w=G?200:0);let Ue=w>=200&&w<300;if(n.responseType==="json"&&typeof G=="string"){let Ce=G;G=G.replace(CE,"");try{G=G!==""?JSON.parse(G):null}catch(mt){G=Ce,Ue&&(Ue=!1,G={error:mt,text:G})}}Ue?(s.next(new Zi({body:G,headers:I,status:w,statusText:Z,url:re||void 0})),s.complete()):s.error(new Yi({error:G,headers:I,status:w,statusText:Z,url:re||void 0}))},f=I=>{let{url:w}=l(),Z=new Yi({error:I,status:a.status||0,statusText:a.statusText||"Unknown Error",url:w||void 0});s.error(Z)},h=!1,g=I=>{h||(s.next(l()),h=!0);let w={type:$n.DownloadProgress,loaded:I.loaded};I.lengthComputable&&(w.total=I.total),n.responseType==="text"&&a.responseText&&(w.partialText=a.responseText),s.next(w)},S=I=>{let w={type:$n.UploadProgress,loaded:I.loaded};I.lengthComputable&&(w.total=I.total),s.next(w)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",g),u!==null&&a.upload&&a.upload.addEventListener("progress",S)),a.send(u),s.next({type:$n.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",g),u!==null&&a.upload&&a.upload.removeEventListener("progress",S)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(o){return new(o||e)(m(jn))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),lp=new E("XSRF_ENABLED"),IE="XSRF-TOKEN",bE=new E("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>IE}),ME="X-XSRF-TOKEN",SE=new E("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>ME}),Qi=class{},TE=(()=>{let e=class e{constructor(n,o,i){this.doc=n,this.platform=o,this.cookieName=i,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=Wi(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(o){return new(o||e)(m(ae),m(ut),m(bE))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();function xE(t,e){let r=t.url.toLowerCase();if(!p(lp)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=p(Qi).getToken(),o=p(SE);return n!=null&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,n)})),e(t)}var dp=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(dp||{});function _E(t,e){return{\u0275kind:t,\u0275providers:e}}function AE(...t){let e=[nc,ap,sp,{provide:Ir,useExisting:sp},{provide:qi,useExisting:ap},{provide:rc,useValue:xE,multi:!0},{provide:lp,useValue:!0},{provide:Qi,useClass:TE}];for(let r of t)e.push(...r.\u0275providers);return yi(e)}var up=new E("LEGACY_INTERCEPTOR_FN");function NE(){return _E(dp.LegacyInterceptors,[{provide:up,useFactory:wE},{provide:rc,useExisting:up,multi:!0}])}var BN=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=st({type:e}),e.\u0275inj=it({providers:[AE(NE())]});let t=e;return t})();var sc=class extends Bi{constructor(){super(...arguments),this.supportsDOMEvents=!0}},ac=class t extends sc{static makeCurrent(){zh(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=OE();return r==null?null:PE(r)}resetBaseElement(){Mr=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Wi(document.cookie,e)}},Mr=null;function OE(){return Mr=Mr||document.querySelector("base"),Mr?Mr.getAttribute("href"):null}var Ki;function PE(t){Ki=Ki||document.createElement("a"),Ki.setAttribute("href",t);let e=Ki.pathname;return e.charAt(0)==="/"?e:`/${e}`}var uc=class{addToWindow(e){te.getAngularTestability=(n,o=!0)=>{let i=e.findTestabilityInTree(n,o);if(i==null)throw new v(5103,!1);return i},te.getAllAngularTestabilities=()=>e.getAllTestabilities(),te.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let o=te.getAllAngularTestabilities(),i=o.length,s=!1,a=function(u){s=s||u,i--,i==0&&n(s)};o.forEach(u=>{u.whenStable(a)})};te.frameworkStabilizers||(te.frameworkStabilizers=[]),te.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let o=e.getTestability(r);return o??(n?Xt().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},FE=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),cc=new E("EventManagerPlugins"),gp=(()=>{let e=class e{constructor(n,o){this._zone=o,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,o,i){return this._findPluginFor(o).addEventListener(n,o,i)}getZone(){return this._zone}_findPluginFor(n){let o=this._eventNameToPlugin.get(n);if(o)return o;if(o=this._plugins.find(s=>s.supports(n)),!o)throw new v(5101,!1);return this._eventNameToPlugin.set(n,o),o}};e.\u0275fac=function(o){return new(o||e)(m(cc),m(V))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),Ji=class{constructor(e){this._doc=e}},oc="ng-app-id",mp=(()=>{let e=class e{constructor(n,o,i,s={}){this.doc=n,this.appId=o,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Ku(s),this.resetHostNodes()}addStyles(n){for(let o of n)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(n){for(let o of n)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(o=>o.remove()),n.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let o of this.getAllStyles())this.addStyleToHost(n,o)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let o of this.hostNodes)this.addStyleToHost(o,n)}onStyleRemoved(n){let o=this.styleRef;o.get(n)?.elements?.forEach(i=>i.remove()),o.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${oc}="${this.appId}"]`);if(n?.length){let o=new Map;return n.forEach(i=>{i.textContent!=null&&o.set(i.textContent,i)}),o}return null}changeUsageCount(n,o){let i=this.styleRef;if(i.has(n)){let s=i.get(n);return s.usage+=o,s.usage}return i.set(n,{usage:o,elements:[]}),o}getStyleElement(n,o){let i=this.styleNodesInDOM,s=i?.get(o);if(s?.parentNode===n)return i.delete(o),s.removeAttribute(oc),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(oc,this.appId),n.appendChild(a),a}}addStyleToHost(n,o){let i=this.getStyleElement(n,o),s=this.styleRef,a=s.get(o)?.elements;a?a.push(i):s.set(o,{elements:[i],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(o){return new(o||e)(m(ae),m(wi),m(lu,8),m(ut))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),ic={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},dc=/%COMP%/g,vp="%COMP%",kE=`_nghost-${vp}`,LE=`_ngcontent-${vp}`,jE=!0,VE=new E("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>jE});function $E(t){return LE.replace(dc,t)}function UE(t){return kE.replace(dc,t)}function yp(t,e){return e.map(r=>r.replace(dc,t))}var fp=(()=>{let e=class e{constructor(n,o,i,s,a,u,c,l=null){this.eventManager=n,this.sharedStylesHost=o,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Ku(u),this.defaultRenderer=new Sr(n,a,c,this.platformIsServer)}createRenderer(n,o){if(!n||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===Ze.ShadowDom&&(o=Y(y({},o),{encapsulation:Ze.Emulated}));let i=this.getOrCreateRenderer(n,o);return i instanceof Xi?i.applyToHost(n):i instanceof Tr&&i.applyStyles(),i}getOrCreateRenderer(n,o){let i=this.rendererByCompId,s=i.get(o.id);if(!s){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(o.encapsulation){case Ze.Emulated:s=new Xi(c,l,o,this.appId,d,a,u,f);break;case Ze.ShadowDom:return new lc(c,l,n,o,a,u,this.nonce,f);default:s=new Tr(c,l,o,d,a,u,f);break}i.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(o){return new(o||e)(m(gp),m(mp),m(wi),m(VE),m(ae),m(ut),m(V),m(lu))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),Sr=class{constructor(e,r,n,o){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(ic[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(hp(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(hp(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new v(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,o){if(o){r=o+":"+r;let i=ic[o];i?e.setAttributeNS(i,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let o=ic[n];o?e.removeAttributeNS(o,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,o){o&(ot.DashCase|ot.Important)?e.style.setProperty(r,n,o&ot.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&ot.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=Xt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function hp(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var lc=class extends Sr{constructor(e,r,n,o,i,s,a,u){super(e,i,s,u),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=yp(o.id,o.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Tr=class extends Sr{constructor(e,r,n,o,i,s,a,u){super(e,i,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=o,this.styles=u?yp(u,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Xi=class extends Tr{constructor(e,r,n,o,i,s,a,u){let c=o+"-"+n.id;super(e,r,n,i,s,a,u,c),this.contentAttr=$E(c),this.hostAttr=UE(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},BE=(()=>{let e=class e extends Ji{constructor(n){super(n)}supports(n){return!0}addEventListener(n,o,i){return n.addEventListener(o,i,!1),()=>this.removeEventListener(n,o,i)}removeEventListener(n,o,i){return n.removeEventListener(o,i)}};e.\u0275fac=function(o){return new(o||e)(m(ae))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),pp=["alt","control","meta","shift"],HE={"\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"},zE={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},WE=(()=>{let e=class e extends Ji{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,o,i){let s=e.parseEventName(o),a=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Xt().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let o=n.toLowerCase().split("."),i=o.shift();if(o.length===0||!(i==="keydown"||i==="keyup"))return null;let s=e._normalizeKey(o.pop()),a="",u=o.indexOf("code");if(u>-1&&(o.splice(u,1),a="code."),pp.forEach(l=>{let d=o.indexOf(l);d>-1&&(o.splice(d,1),a+=l+".")}),a+=s,o.length!=0||s.length===0)return null;let c={};return c.domEventName=i,c.fullKey=a,c}static matchEventFullKeyCode(n,o){let i=HE[n.key]||n.key,s="";return o.indexOf("code.")>-1&&(i=n.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),pp.forEach(a=>{if(a!==i){let u=zE[a];u(n)&&(s+=a+".")}}),s+=i,s===o)}static eventCallback(n,o,i){return s=>{e.matchEventFullKeyCode(s,n)&&i.runGuarded(()=>o(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(o){return new(o||e)(m(ae))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();function GE(){ac.makeCurrent()}function qE(){return new Ke}function ZE(){return Mf(document),document}var YE=[{provide:ut,useValue:Xh},{provide:cu,useValue:GE,multi:!0},{provide:ae,useFactory:ZE,deps:[]}],sR=ju(kh,"browser",YE),QE=new E(""),KE=[{provide:yr,useClass:uc,deps:[]},{provide:ku,useClass:Ri,deps:[V,Oi,yr]},{provide:Ri,useClass:Ri,deps:[V,Oi,yr]}],JE=[{provide:Di,useValue:"root"},{provide:Ke,useFactory:qE,deps:[]},{provide:cc,useClass:BE,multi:!0,deps:[ae,V,ut]},{provide:cc,useClass:WE,multi:!0,deps:[ae]},fp,mp,gp,{provide:ar,useExisting:fp},{provide:jn,useClass:FE,deps:[]},[]],aR=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:wi,useValue:n.appId}]}}};e.\u0275fac=function(o){return new(o||e)(m(QE,12))},e.\u0275mod=st({type:e}),e.\u0275inj=it({providers:[...JE,...KE],imports:[Jh,Lh]});let t=e;return t})();function XE(){return new fc(m(ae))}var fc=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(o){return new(o||e)(m(ae))},e.\u0275prov=C({token:e,factory:function(o){let i=null;return o?i=new o:i=XE(),i},providedIn:"root"});let t=e;return t})();var T="primary",Br=Symbol("RouteTitle"),vc=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function Wn(t){return new vc(t)}function tI(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[i]===o)}else return t===e}function Ap(t){return t.length>0?t[t.length-1]:null}function Ot(t){return Ps(t)?t:kn(t)?B(Promise.resolve(t)):D(t)}var rI={exact:Rp,subset:Op},Np={exact:oI,subset:iI,ignored:()=>!0};function Dp(t,e,r){return rI[r.paths](t.root,e.root,r.matrixParams)&&Np[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function oI(t,e){return Je(t,e)}function Rp(t,e,r){if(!nn(t.segments,e.segments)||!ns(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!Rp(t.children[n],e.children[n],r))return!1;return!0}function iI(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>_p(t[r],e[r]))}function Op(t,e,r){return Pp(t,e,e.segments,r)}function Pp(t,e,r,n){if(t.segments.length>r.length){let o=t.segments.slice(0,r.length);return!(!nn(o,r)||e.hasChildren()||!ns(o,r,n))}else if(t.segments.length===r.length){if(!nn(t.segments,r)||!ns(t.segments,r,n))return!1;for(let o in e.children)if(!t.children[o]||!Op(t.children[o],e.children[o],n))return!1;return!0}else{let o=r.slice(0,t.segments.length),i=r.slice(t.segments.length);return!nn(t.segments,o)||!ns(t.segments,o,n)||!t.children[T]?!1:Pp(t.children[T],e,i,n)}}function ns(t,e,r){return e.every((n,o)=>Np[r](t[o].parameters,n.parameters))}var At=class{constructor(e=new j([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Wn(this.queryParams)),this._queryParamMap}toString(){return uI.serialize(this)}},j=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return rs(this)}},tn=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap||(this._parameterMap=Wn(this.parameters)),this._parameterMap}toString(){return kp(this)}};function sI(t,e){return nn(t,e)&&t.every((r,n)=>Je(r.parameters,e[n].parameters))}function nn(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function aI(t,e){let r=[];return Object.entries(t.children).forEach(([n,o])=>{n===T&&(r=r.concat(e(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==T&&(r=r.concat(e(o,n)))}),r}var Hr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:()=>(()=>new Pr)(),providedIn:"root"});let t=e;return t})(),Pr=class{parse(e){let r=new wc(e);return new At(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${xr(e.root,!0)}`,n=dI(e.queryParams),o=typeof e.fragment=="string"?`#${cI(e.fragment)}`:"";return`${r}${n}${o}`}},uI=new Pr;function rs(t){return t.segments.map(e=>kp(e)).join("/")}function xr(t,e){if(!t.hasChildren())return rs(t);if(e){let r=t.children[T]?xr(t.children[T],!1):"",n=[];return Object.entries(t.children).forEach(([o,i])=>{o!==T&&n.push(`${o}:${xr(i,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=aI(t,(n,o)=>o===T?[xr(t.children[T],!1)]:[`${o}:${xr(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[T]!=null?`${rs(t)}/${r[0]}`:`${rs(t)}/(${r.join("//")})`}}function Fp(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function es(t){return Fp(t).replace(/%3B/gi,";")}function cI(t){return encodeURI(t)}function Dc(t){return Fp(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function os(t){return decodeURIComponent(t)}function wp(t){return os(t.replace(/\+/g,"%20"))}function kp(t){return`${Dc(t.path)}${lI(t.parameters)}`}function lI(t){return Object.keys(t).map(e=>`;${Dc(e)}=${Dc(t[e])}`).join("")}function dI(t){let e=Object.keys(t).map(r=>{let n=t[r];return Array.isArray(n)?n.map(o=>`${es(r)}=${es(o)}`).join("&"):`${es(r)}=${es(n)}`}).filter(r=>!!r);return e.length?`?${e.join("&")}`:""}var fI=/^[^\/()?;#]+/;function hc(t){let e=t.match(fI);return e?e[0]:""}var hI=/^[^\/()?;=#]+/;function pI(t){let e=t.match(hI);return e?e[0]:""}var gI=/^[^=?]+/;function mI(t){let e=t.match(gI);return e?e[0]:""}var vI=/^[^]+/;function yI(t){let e=t.match(vI);return e?e[0]:""}var wc=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new j([],{}):new j([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[T]=new j(e,r)),n}parseSegment(){let e=hc(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new v(4009,!1);return this.capture(e),new tn(os(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=pI(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let o=hc(this.remaining);o&&(n=o,this.capture(n))}e[os(r)]=os(n)}parseQueryParam(e){let r=mI(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=yI(this.remaining);s&&(n=s,this.capture(n))}let o=wp(r),i=wp(n);if(e.hasOwnProperty(o)){let s=e[o];Array.isArray(s)||(s=[s],e[o]=s),s.push(i)}else e[o]=i}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=hc(this.remaining),o=this.remaining[n.length];if(o!=="/"&&o!==")"&&o!==";")throw new v(4010,!1);let i;n.indexOf(":")>-1?(i=n.slice(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=T);let s=this.parseChildren();r[i]=Object.keys(s).length===1?s[T]:new j([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new v(4011,!1)}};function Lp(t){return t.segments.length>0?new j([],{[T]:t}):t}function jp(t){let e={};for(let n of Object.keys(t.children)){let o=t.children[n],i=jp(o);if(n===T&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))e[s]=a;else(i.segments.length>0||i.hasChildren())&&(e[n]=i)}let r=new j(t.segments,e);return DI(r)}function DI(t){if(t.numberOfChildren===1&&t.children[T]){let e=t.children[T];return new j(t.segments.concat(e.segments),e.children)}return t}function Gn(t){return t instanceof At}function wI(t,e,r=null,n=null){let o=Vp(t);return $p(o,e,r,n)}function Vp(t){let e;function r(i){let s={};for(let u of i.children){let c=r(u);s[u.outlet]=c}let a=new j(i.url,s);return i===t&&(e=a),a}let n=r(t.root),o=Lp(n);return e??o}function $p(t,e,r,n){let o=t;for(;o.parent;)o=o.parent;if(e.length===0)return pc(o,o,o,r,n);let i=CI(e);if(i.toRoot())return pc(o,o,new j([],{}),r,n);let s=EI(i,o,t),a=s.processChildren?Nr(s.segmentGroup,s.index,i.commands):Bp(s.segmentGroup,s.index,i.commands);return pc(o,s.segmentGroup,a,r,n)}function is(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Fr(t){return typeof t=="object"&&t!=null&&t.outlets}function pc(t,e,r,n,o){let i={};n&&Object.entries(n).forEach(([u,c])=>{i[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;t===e?s=r:s=Up(t,e,r);let a=Lp(jp(s));return new At(a,i,o)}function Up(t,e,r){let n={};return Object.entries(t.children).forEach(([o,i])=>{i===e?n[o]=r:n[o]=Up(i,e,r)}),new j(t.segments,n)}var ss=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&is(n[0]))throw new v(4003,!1);let o=n.find(Fr);if(o&&o!==Ap(n))throw new v(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function CI(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ss(!0,0,t);let e=0,r=!1,n=t.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?r=!0:a===".."?e++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new ss(r,e,n)}var Hn=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function EI(t,e,r){if(t.isAbsolute)return new Hn(e,!0,0);if(!r)return new Hn(e,!1,NaN);if(r.parent===null)return new Hn(r,!0,0);let n=is(t.commands[0])?0:1,o=r.segments.length-1+n;return II(r,o,t.numberOfDoubleDots)}function II(t,e,r){let n=t,o=e,i=r;for(;i>o;){if(i-=o,n=n.parent,!n)throw new v(4005,!1);o=n.segments.length}return new Hn(n,!1,o-i)}function bI(t){return Fr(t[0])?t[0].outlets:{[T]:t}}function Bp(t,e,r){if(t||(t=new j([],{})),t.segments.length===0&&t.hasChildren())return Nr(t,e,r);let n=MI(t,e,r),o=r.slice(n.commandIndex);if(n.match&&n.pathIndexi!==T)&&t.children[T]&&t.numberOfChildren===1&&t.children[T].segments.length===0){let i=Nr(t.children[T],e,r);return new j(t.segments,i.children)}return Object.entries(n).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Bp(t.children[i],e,s))}),Object.entries(t.children).forEach(([i,s])=>{n[i]===void 0&&(o[i]=s)}),new j(t.segments,o)}}function MI(t,e,r){let n=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};for(;o=r.length)return i;let s=t.segments[o],a=r[n];if(Fr(a))break;let u=`${a}`,c=n0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Ep(u,c,s))return i;n+=2}else{if(!Ep(u,{},s))return i;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function Cc(t,e,r){let n=t.segments.slice(0,e),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=Cc(new j([],{}),0,n))}),e}function Cp(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function Ep(t,e,r){return t==r.path&&Je(e,r.parameters)}var Rr="imperative",Re=class{constructor(e,r){this.id=e,this.url=r}},qn=class extends Re{constructor(e,r,n="imperative",o=null){super(e,r),this.type=0,this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},$e=class extends Re{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Nt=class extends Re{constructor(e,r,n,o){super(e,r),this.reason=n,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Rt=class extends Re{constructor(e,r,n,o){super(e,r),this.reason=n,this.code=o,this.type=16}},kr=class extends Re{constructor(e,r,n,o){super(e,r),this.error=n,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},as=class extends Re{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ec=class extends Re{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ic=class extends Re{constructor(e,r,n,o,i){super(e,r),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},bc=class extends Re{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mc=class extends Re{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Sc=class{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Tc=class{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},xc=class{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_c=class{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ac=class{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Nc=class{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},us=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=15}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},Lr=class{},jr=class{constructor(e){this.url=e}};var Rc=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new zr,this.attachRef=null}},zr=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,o){let i=this.getOrCreateContext(n);i.outlet=o,this.contexts.set(n,i)}onChildOutletDestroyed(n){let o=this.getContext(n);o&&(o.outlet=null,o.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let o=this.getContext(n);return o||(o=new Rc,this.contexts.set(n,o)),o}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),cs=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=Oc(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=Oc(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=Pc(e,this._root);return r.length<2?[]:r[r.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return Pc(e,this._root).map(r=>r.value)}};function Oc(t,e){if(t===e.value)return e;for(let r of e.children){let n=Oc(t,r);if(n)return n}return null}function Pc(t,e){if(t===e.value)return[e];for(let r of e.children){let n=Pc(t,r);if(n.length)return n.unshift(e),n}return[]}var Me=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function Bn(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var ls=class extends cs{constructor(e,r){super(e),this.snapshot=r,zc(this,e)}toString(){return this.snapshot.toString()}};function Hp(t,e){let r=TI(t,e),n=new oe([new tn("",{})]),o=new oe({}),i=new oe({}),s=new oe({}),a=new oe(""),u=new rn(n,o,s,a,i,T,e,r.root);return u.snapshot=r.root,new ls(new Me(u,[]),r)}function TI(t,e){let r={},n={},o={},i="",s=new Vr([],r,o,i,n,T,e,null,{});return new ds("",new Me(s,[]))}var rn=class{constructor(e,r,n,o,i,s,a,u){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(R(c=>c[Br]))??D(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(R(e=>Wn(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(R(e=>Wn(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Hc(t,e,r="emptyOnly"){let n,{routeConfig:o}=t;return e!==null&&(r==="always"||o?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:y(y({},e.params),t.params),data:y(y({},e.data),t.data),resolve:y(y(y(y({},t.data),e.data),o?.data),t._resolvedData)}:n={params:t.params,data:t.data,resolve:y(y({},t.data),t._resolvedData??{})},o&&Wp(o)&&(n.resolve[Br]=o.title),n}var Vr=class{get title(){return this.data?.[Br]}constructor(e,r,n,o,i,s,a,u,c){this.url=e,this.params=r,this.queryParams=n,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Wn(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Wn(this.queryParams)),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},ds=class extends cs{constructor(e,r){super(r),this.url=e,zc(this,r)}toString(){return zp(this._root)}};function zc(t,e){e.value._routerState=t,e.children.forEach(r=>zc(t,r))}function zp(t){let e=t.children.length>0?` { ${t.children.map(zp).join(", ")} } `:"";return`${t.value}${e}`}function gc(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,Je(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),Je(e.params,r.params)||t.paramsSubject.next(r.params),nI(e.url,r.url)||t.urlSubject.next(r.url),Je(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Fc(t,e){let r=Je(t.params,e.params)&&sI(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Fc(t.parent,e.parent))}function Wp(t){return typeof t.title=="string"||t.title===null}var xI=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=T,this.activateEvents=new se,this.deactivateEvents=new se,this.attachEvents=new se,this.detachEvents=new se,this.parentContexts=p(zr),this.location=p(xt),this.changeDetector=p(Fn),this.environmentInjector=p(ge),this.inputBinder=p(ms,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:o,previousValue:i}=n.name;if(o)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(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 v(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new v(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new v(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,o){this.activated=n,this._activatedRoute=o,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,o){if(this.isActivated)throw new v(4013,!1);this._activatedRoute=n;let i=this.location,a=n.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,c=new kc(n,u,i.injector);this.activated=i.createComponent(a,{index:i.length,injector:c,environmentInjector:o??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=Qt({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Rn]});let t=e;return t})(),kc=class{constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===rn?this.route:e===zr?this.childContexts:this.parent.get(e,r)}},ms=new E(""),Ip=(()=>{let e=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:o}=n,i=Jn([o.queryParams,o.params,o.data]).pipe(ie(([s,a,u],c)=>(u=y(y(y({},s),a),u),c===0?D(u):Promise.resolve(u)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==o||o.component===null){this.unsubscribeFromRouteData(n);return}let a=jh(o.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:u}of a.inputs)n.activatedComponentRef.setInput(u,s[u])});this.outletDataSubscriptions.set(n,i)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();function _I(t,e,r){let n=$r(t,e._root,r?r._root:void 0);return new ls(n,e)}function $r(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let o=AI(t,e,r);return new Me(n,o)}else{if(t.shouldAttach(e.value)){let i=t.retrieve(e.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>$r(t,a)),s}}let n=NI(e.value),o=e.children.map(i=>$r(t,i));return new Me(n,o)}}function AI(t,e,r){return e.children.map(n=>{for(let o of r.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return $r(t,n,o);return $r(t,n)})}function NI(t){return new rn(new oe(t.url),new oe(t.params),new oe(t.queryParams),new oe(t.fragment),new oe(t.data),t.outlet,t.component,t)}var Gp="ngNavigationCancelingError";function qp(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=Gn(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,o=Zp(!1,0,e);return o.url=r,o.navigationBehaviorOptions=n,o}function Zp(t,e,r){let n=new Error("NavigationCancelingError: "+(t||""));return n[Gp]=!0,n.cancellationCode=e,r&&(n.url=r),n}function RI(t){return Yp(t)&&Gn(t.url)}function Yp(t){return t&&t[Gp]}var OI=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=Ad({type:e,selectors:[["ng-component"]],standalone:!0,features:[wh],decls:1,vars:0,template:function(o,i){o&1&&Ru(0,"router-outlet")},dependencies:[xI],encapsulation:2});let t=e;return t})();function PI(t,e){return t.providers&&!t._injector&&(t._injector=Ti(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Wc(t){let e=t.children&&t.children.map(Wc),r=e?Y(y({},t),{children:e}):y({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==T&&(r.component=OI),r}function Xe(t){return t.outlet||T}function FI(t,e){let r=t.filter(n=>Xe(n)===e);return r.push(...t.filter(n=>Xe(n)!==e)),r}function Wr(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var kI=(t,e,r,n)=>R(o=>(new Lc(e,o.targetRouterState,o.currentRouterState,r,n).activate(t),o)),Lc=class{constructor(e,r,n,o,i){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=i}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),gc(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let o=Bn(r);e.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],n),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,n)})}deactivateRoutes(e,r,n){let o=e.value,i=r?r.value:null;if(o===i)if(o.component){let s=n.getContext(o.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else i&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),o=n&&e.value.component?n.children:r,i=Bn(e);for(let s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),o=n&&e.value.component?n.children:r,i=Bn(e);for(let s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let o=Bn(r);e.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],n),this.forwardEvent(new Nc(i.value.snapshot))}),e.children.length&&this.forwardEvent(new _c(e.value.snapshot))}activateRoutes(e,r,n){let o=e.value,i=r?r.value:null;if(gc(o),o===i)if(o.component){let s=n.getOrCreateContext(o.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(o.component){let s=n.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),gc(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=Wr(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},fs=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},zn=class{constructor(e,r){this.component=e,this.route=r}};function LI(t,e,r){let n=t._root,o=e?e._root:null;return _r(n,o,r,[n.value])}function jI(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Yn(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!Dd(t)?t:e.get(t):n}function _r(t,e,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Bn(e);return t.children.forEach(s=>{VI(s,i[s.value.outlet],r,n.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Or(a,r.getContext(s),o)),o}function VI(t,e,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let u=$I(s,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new fs(n)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?_r(t,e,a?a.children:null,n,o):_r(t,e,r,n,o),u&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new zn(a.outlet.component,s))}else s&&Or(e,a,o),o.canActivateChecks.push(new fs(n)),i.component?_r(t,null,a?a.children:null,n,o):_r(t,null,r,n,o);return o}function $I(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!nn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!nn(t.url,e.url)||!Je(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Fc(t,e)||!Je(t.queryParams,e.queryParams);case"paramsChange":default:return!Fc(t,e)}}function Or(t,e,r){let n=Bn(t),o=t.value;Object.entries(n).forEach(([i,s])=>{o.component?e?Or(s,e.children.getContext(i),r):Or(s,null,r):Or(s,e,r)}),o.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new zn(e.outlet.component,o)):r.canDeactivateChecks.push(new zn(null,o)):r.canDeactivateChecks.push(new zn(null,o))}function Gr(t){return typeof t=="function"}function UI(t){return typeof t=="boolean"}function BI(t){return t&&Gr(t.canLoad)}function HI(t){return t&&Gr(t.canActivate)}function zI(t){return t&&Gr(t.canActivateChild)}function WI(t){return t&&Gr(t.canDeactivate)}function GI(t){return t&&Gr(t.canMatch)}function Qp(t){return t instanceof tt||t?.name==="EmptyError"}var ts=Symbol("INITIAL_VALUE");function Zn(){return ie(t=>Jn(t.map(e=>e.pipe(rt(1),$s(ts)))).pipe(R(e=>{for(let r of e)if(r!==!0){if(r===ts)return ts;if(r===!1||r instanceof At)return r}return!0}),he(e=>e!==ts),rt(1)))}function qI(t,e){return K(r=>{let{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=r;return s.length===0&&i.length===0?D(Y(y({},r),{guardsResult:!0})):ZI(s,n,o,t).pipe(K(a=>a&&UI(a)?YI(n,i,t,e):D(a)),R(a=>Y(y({},r),{guardsResult:a})))})}function ZI(t,e,r,n){return B(t).pipe(K(o=>eb(o.component,o.route,r,e,n)),ze(o=>o!==!0,!0))}function YI(t,e,r,n){return B(e).pipe(nt(o=>hn(KI(o.route.parent,n),QI(o.route,n),XI(t,o.path,r),JI(t,o.route,r))),ze(o=>o!==!0,!0))}function QI(t,e){return t!==null&&e&&e(new Ac(t)),D(!0)}function KI(t,e){return t!==null&&e&&e(new xc(t)),D(!0)}function JI(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return D(!0);let o=n.map(i=>Co(()=>{let s=Wr(e)??r,a=Yn(i,s),u=HI(a)?a.canActivate(e,t):s.runInContext(()=>a(e,t));return Ot(u).pipe(ze())}));return D(o).pipe(Zn())}function XI(t,e,r){let n=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(s=>jI(s)).filter(s=>s!==null).map(s=>Co(()=>{let a=s.guards.map(u=>{let c=Wr(s.node)??r,l=Yn(u,c),d=zI(l)?l.canActivateChild(n,t):c.runInContext(()=>l(n,t));return Ot(d).pipe(ze())});return D(a).pipe(Zn())}));return D(i).pipe(Zn())}function eb(t,e,r,n,o){let i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!i||i.length===0)return D(!0);let s=i.map(a=>{let u=Wr(e)??o,c=Yn(a,u),l=WI(c)?c.canDeactivate(t,e,r,n):u.runInContext(()=>c(t,e,r,n));return Ot(l).pipe(ze())});return D(s).pipe(Zn())}function tb(t,e,r,n){let o=e.canLoad;if(o===void 0||o.length===0)return D(!0);let i=o.map(s=>{let a=Yn(s,t),u=BI(a)?a.canLoad(e,r):t.runInContext(()=>a(e,r));return Ot(u)});return D(i).pipe(Zn(),Kp(n))}function Kp(t){return xs(J(e=>{if(Gn(e))throw qp(t,e)}),R(e=>e===!0))}function nb(t,e,r,n){let o=e.canMatch;if(!o||o.length===0)return D(!0);let i=o.map(s=>{let a=Yn(s,t),u=GI(a)?a.canMatch(e,r):t.runInContext(()=>a(e,r));return Ot(u)});return D(i).pipe(Zn(),Kp(n))}var Ur=class{constructor(e){this.segmentGroup=e||null}},hs=class extends Error{constructor(e){super(),this.urlTree=e}};function Un(t){return fn(new Ur(t))}function rb(t){return fn(new v(4e3,!1))}function ob(t){return fn(Zp(!1,3))}var jc=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}noMatchError(e){return new v(4002,!1)}lineralizeSegments(e,r){let n=[],o=r.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return D(n);if(o.numberOfChildren>1||!o.children[T])return rb(e.redirectTo);o=o.children[T]}}applyRedirectCommands(e,r,n){let o=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r.startsWith("/"))throw new hs(o);return o}applyRedirectCreateUrlTree(e,r,n,o){let i=this.createSegmentGroup(e,r.root,n,o);return new At(i,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([o,i])=>{if(typeof i=="string"&&i.startsWith(":")){let a=i.substring(1);n[o]=r[a]}else n[o]=i}),n}createSegmentGroup(e,r,n,o){let i=this.createSegments(e,r.segments,n,o),s={};return Object.entries(r.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(e,u,n,o)}),new j(i,s)}createSegments(e,r,n,o){return r.map(i=>i.path.startsWith(":")?this.findPosParam(e,i,o):this.findOrReturn(i,n))}findPosParam(e,r,n){let o=n[r.path.substring(1)];if(!o)throw new v(4001,!1);return o}findOrReturn(e,r){let n=0;for(let o of r){if(o.path===e.path)return r.splice(n),o;n++}return e}},Vc={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ib(t,e,r,n,o){let i=Gc(t,e,r);return i.matched?(n=PI(e,n),nb(n,e,r,o).pipe(R(s=>s===!0?i:y({},Vc)))):D(i)}function Gc(t,e,r){if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?y({},Vc):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let o=(e.matcher||tI)(r,t,e);if(!o)return y({},Vc);let i={};Object.entries(o.posParams??{}).forEach(([a,u])=>{i[a]=u.path});let s=o.consumed.length>0?y(y({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:r.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function bp(t,e,r,n){return r.length>0&&ub(t,r,n)?{segmentGroup:new j(e,ab(n,new j(r,t.children))),slicedSegments:[]}:r.length===0&&cb(t,r,n)?{segmentGroup:new j(t.segments,sb(t,e,r,n,t.children)),slicedSegments:r}:{segmentGroup:new j(t.segments,t.children),slicedSegments:r}}function sb(t,e,r,n,o){let i={};for(let s of n)if(vs(t,r,s)&&!o[Xe(s)]){let a=new j([],{});i[Xe(s)]=a}return y(y({},o),i)}function ab(t,e){let r={};r[T]=e;for(let n of t)if(n.path===""&&Xe(n)!==T){let o=new j([],{});r[Xe(n)]=o}return r}function ub(t,e,r){return r.some(n=>vs(t,e,n)&&Xe(n)!==T)}function cb(t,e,r){return r.some(n=>vs(t,e,n))}function vs(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function lb(t,e,r,n){return Xe(t)!==n&&(n===T||!vs(e,r,t))?!1:t.path==="**"?!0:Gc(e,t,r).matched}function db(t,e,r){return e.length===0&&!t.children[r]}var $c=class{};function fb(t,e,r,n,o,i,s="emptyOnly"){return new Uc(t,e,r,n,o,s,i).recognize()}var hb=31,Uc=class{constructor(e,r,n,o,i,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new jc(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new v(4002,!1)}recognize(){let e=bp(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(R(r=>{let n=new Vr([],Object.freeze({}),Object.freeze(y({},this.urlTree.queryParams)),this.urlTree.fragment,{},T,this.rootComponentType,null,{}),o=new Me(n,r),i=new ds("",o),s=wI(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root,null),{state:i,tree:s}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,T).pipe(Se(n=>{if(n instanceof hs)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Ur?this.noMatchError(n):n}))}inheritParamsAndData(e,r){let n=e.value,o=Hc(n,r,this.paramsInheritanceStrategy);n.params=Object.freeze(o.params),n.data=Object.freeze(o.data),e.children.forEach(i=>this.inheritParamsAndData(i,n))}processSegmentGroup(e,r,n,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n):this.processSegment(e,r,n,n.segments,o,!0).pipe(R(i=>i instanceof Me?[i]:[]))}processChildren(e,r,n){let o=[];for(let i of Object.keys(n.children))i==="primary"?o.unshift(i):o.push(i);return B(o).pipe(nt(i=>{let s=n.children[i],a=FI(r,i);return this.processSegmentGroup(e,a,s,i)}),js((i,s)=>(i.push(...s),i)),vt(null),Ls(),K(i=>{if(i===null)return Un(n);let s=Jp(i);return pb(s),D(s)}))}processSegment(e,r,n,o,i,s){return B(r).pipe(nt(a=>this.processSegmentAgainstRoute(a._injector??e,r,a,n,o,i,s).pipe(Se(u=>{if(u instanceof Ur)return D(null);throw u}))),ze(a=>!!a),Se(a=>{if(Qp(a))return db(n,o,i)?D(new $c):Un(n);throw a}))}processSegmentAgainstRoute(e,r,n,o,i,s,a){return lb(n,o,i,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,o,n,i,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,o,r,n,i,s):Un(o):Un(o)}expandSegmentAgainstRouteUsingRedirect(e,r,n,o,i,s){let{matched:a,consumedSegments:u,positionalParamSegments:c,remainingSegments:l}=o.path==="**"?Mp(i):Gc(r,o,i);if(!a)return Un(r);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>hb&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(u,o.redirectTo,c);return this.applyRedirects.lineralizeSegments(o,d).pipe(K(f=>this.processSegment(e,n,r,f.concat(l),s,!1)))}matchSegmentAgainstRoute(e,r,n,o,i){let s;return n.path==="**"?(s=D(Mp(o)),r.children={}):s=ib(r,n,o,e,this.urlSerializer),s.pipe(ie(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,o).pipe(ie(({routes:u})=>{let c=n._loadedInjector??e,{consumedSegments:l,remainingSegments:d,parameters:f}=a,h=new Vr(l,f,Object.freeze(y({},this.urlTree.queryParams)),this.urlTree.fragment,mb(n),Xe(n),n.component??n._loadedComponent??null,n,vb(n)),{segmentGroup:g,slicedSegments:S}=bp(r,l,d,u);if(S.length===0&&g.hasChildren())return this.processChildren(c,u,g).pipe(R(w=>w===null?null:new Me(h,w)));if(u.length===0&&S.length===0)return D(new Me(h,[]));let I=Xe(n)===i;return this.processSegment(c,u,g,S,I?T:i,!0).pipe(R(w=>new Me(h,w instanceof Me?[w]:[])))}))):Un(r)))}getChildConfig(e,r,n){return r.children?D({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?D({routes:r._loadedRoutes,injector:r._loadedInjector}):tb(e,r,n,this.urlSerializer).pipe(K(o=>o?this.configLoader.loadChildren(e,r).pipe(J(i=>{r._loadedRoutes=i.routes,r._loadedInjector=i.injector})):ob(r))):D({routes:[],injector:e})}};function pb(t){t.sort((e,r)=>e.value.outlet===T?-1:r.value.outlet===T?1:e.value.outlet.localeCompare(r.value.outlet))}function gb(t){let e=t.value.routeConfig;return e&&e.path===""}function Jp(t){let e=[],r=new Set;for(let n of t){if(!gb(n)){e.push(n);continue}let o=e.find(i=>n.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...n.children),r.add(o)):e.push(n)}for(let n of r){let o=Jp(n.children);e.push(new Me(n.value,o))}return e.filter(n=>!r.has(n))}function mb(t){return t.data||{}}function vb(t){return t.resolve||{}}function Mp(t){return{matched:!0,parameters:t.length>0?Ap(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function yb(t,e,r,n,o,i){return K(s=>fb(t,e,r,n,s.extractedUrl,o,i).pipe(R(({state:a,tree:u})=>Y(y({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function Db(t,e){return K(r=>{let{targetSnapshot:n,guards:{canActivateChecks:o}}=r;if(!o.length)return D(r);let i=o.map(c=>c.route),s=new Set(i),a=Xp(i[0].parent).slice(1),u=0;return B(a).pipe(nt(c=>s.has(c)?wb(c,n,t,e):(c.data=Hc(c,c.parent,t).resolve,D(void 0))),J(()=>u++),pn(1),K(c=>u===a.length?D(r):ye))})}function Xp(t){let e=t.children.map(r=>Xp(r)).flat();return[t,...e]}function wb(t,e,r,n){let o=t.routeConfig,i=t._resolve;return o?.title!==void 0&&!Wp(o)&&(i[Br]=o.title),Cb(i,t,e,n).pipe(R(s=>(t._resolvedData=s,t.data=Hc(t,t.parent,r).resolve,null)))}function Cb(t,e,r,n){let o=yc(t);if(o.length===0)return D({});let i={};return B(o).pipe(K(s=>Eb(t[s],e,r,n).pipe(ze(),J(a=>{i[s]=a}))),pn(1),ks(i),Se(s=>Qp(s)?ye:fn(s)))}function Eb(t,e,r,n){let o=Wr(e)??n,i=Yn(t,o),s=i.resolve?i.resolve(e,r):o.runInContext(()=>i(e,r));return Ot(s)}function mc(t){return ie(e=>{let r=t(e);return r?B(r).pipe(R(()=>e)):D(e)})}var eg=(()=>{let e=class e{buildTitle(n){let o,i=n.root;for(;i!==void 0;)o=this.getResolvedTitleForRoute(i)??o,i=i.children.find(s=>s.outlet===T);return o}getResolvedTitleForRoute(n){return n.data[Br]}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:()=>(()=>p(Ib))(),providedIn:"root"});let t=e;return t})(),Ib=(()=>{let e=class e extends eg{constructor(n){super(),this.title=n}updateTitle(n){let o=this.buildTitle(n);o!==void 0&&this.title.setTitle(o)}};e.\u0275fac=function(o){return new(o||e)(m(fc))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),qr=new E("",{providedIn:"root",factory:()=>({})}),ps=new E("ROUTES"),qc=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(Ni)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return D(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=Ot(n.loadComponent()).pipe(R(tg),J(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),yt(()=>{this.componentLoaders.delete(n)})),i=new ln(o,()=>new ue).pipe(cn());return this.componentLoaders.set(n,i),i}loadChildren(n,o){if(this.childrenLoaders.get(o))return this.childrenLoaders.get(o);if(o._loadedRoutes)return D({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);let s=bb(o,this.compiler,n,this.onLoadEndListener).pipe(yt(()=>{this.childrenLoaders.delete(o)})),a=new ln(s,()=>new ue).pipe(cn());return this.childrenLoaders.set(o,a),a}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function bb(t,e,r,n){return Ot(t.loadChildren()).pipe(R(tg),K(o=>o instanceof cr||Array.isArray(o)?D(o):B(e.compileModuleAsync(o))),R(o=>{n&&n(t);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(r).injector,s=i.get(ps,[],{optional:!0,self:!0}).flat()),{routes:s.map(Wc),injector:i}}))}function Mb(t){return t&&typeof t=="object"&&"default"in t}function tg(t){return Mb(t)?t.default:t}var Zc=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:()=>(()=>p(Sb))(),providedIn:"root"});let t=e;return t})(),Sb=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,o){return n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ng=new E(""),rg=new E("");function Tb(t,e,r){let n=t.get(rg),o=t.get(ae);return t.get(V).runOutsideAngular(()=>{if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,Promise.resolve();let i,s=new Promise(c=>{i=c}),a=o.startViewTransition(()=>(i(),xb(t))),{onViewTransitionCreated:u}=n;return u&&If(t,()=>u({transition:a,from:e,to:r})),s})}function xb(t){return new Promise(e=>{Tu(e,{injector:t})})}var Yc=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ue,this.transitionAbortSubject=new ue,this.configLoader=p(qc),this.environmentInjector=p(ge),this.urlSerializer=p(Hr),this.rootContexts=p(zr),this.location=p(Vn),this.inputBindingEnabled=p(ms,{optional:!0})!==null,this.titleStrategy=p(eg),this.options=p(qr,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(Zc),this.createViewTransition=p(ng,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>D(void 0),this.rootComponentType=null;let n=i=>this.events.next(new Sc(i)),o=i=>this.events.next(new Tc(i));this.configLoader.onLoadEndListener=o,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let o=++this.navigationId;this.transitions?.next(Y(y(y({},this.transitions.value),n),{id:o}))}setupNavigations(n,o,i){return this.transitions=new oe({id:0,currentUrlTree:o,currentRawUrl:o,extractedUrl:this.urlHandlingStrategy.extract(o),urlAfterRedirects:this.urlHandlingStrategy.extract(o),rawUrl:o,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Rr,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(he(s=>s.id!==0),R(s=>Y(y({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),ie(s=>{this.currentTransition=s;let a=!1,u=!1;return D(s).pipe(J(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?Y(y({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ie(c=>{let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let f="";return this.events.next(new Rt(c.id,this.urlSerializer.serialize(c.rawUrl),f,0)),c.resolve(null),ye}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return D(c).pipe(ie(f=>{let h=this.transitions?.getValue();return this.events.next(new qn(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?ye:Promise.resolve(f)}),yb(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),J(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=Y(y({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new as(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:h,source:g,restoredState:S,extras:I}=c,w=new qn(f,this.urlSerializer.serialize(h),g,S);this.events.next(w);let Z=Hp(h,this.rootComponentType).snapshot;return this.currentTransition=s=Y(y({},c),{targetSnapshot:Z,urlAfterRedirects:h,extras:Y(y({},I),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,D(s)}else{let f="";return this.events.next(new Rt(c.id,this.urlSerializer.serialize(c.extractedUrl),f,1)),c.resolve(null),ye}}),J(c=>{let l=new Ec(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),R(c=>(this.currentTransition=s=Y(y({},c),{guards:LI(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),qI(this.environmentInjector,c=>this.events.next(c)),J(c=>{if(s.guardsResult=c.guardsResult,Gn(c.guardsResult))throw qp(this.urlSerializer,c.guardsResult);let l=new Ic(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),he(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",3),!1)),mc(c=>{if(c.guards.canActivateChecks.length)return D(c).pipe(J(l=>{let d=new bc(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),ie(l=>{let d=!1;return D(l).pipe(Db(this.paramsInheritanceStrategy,this.environmentInjector),J({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",2)}}))}),J(l=>{let d=new Mc(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),mc(c=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(J(h=>{d.component=h}),R(()=>{})));for(let h of d.children)f.push(...l(h));return f};return Jn(l(c.targetSnapshot.root)).pipe(vt(),rt(1))}),mc(()=>this.afterPreactivation()),ie(()=>{let{currentSnapshot:c,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?B(d).pipe(R(()=>s)):D(s)}),R(c=>{let l=_I(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=Y(y({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),J(()=>{this.events.next(new Lr)}),kI(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),rt(1),J({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new $e(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),Mo(this.transitionAbortSubject.pipe(J(c=>{throw c}))),yt(()=>{if(!a&&!u){let c="";this.cancelNavigationTransition(s,c,1)}this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),Se(c=>{if(u=!0,Yp(c))this.events.next(new Nt(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),RI(c)?this.events.next(new jr(c.url)):s.resolve(!1);else{this.events.next(new kr(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(c))}catch(l){s.reject(l)}}return ye}))}))}cancelNavigationTransition(n,o,i){let s=new Nt(n.id,this.urlSerializer.serialize(n.extractedUrl),o,i);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function _b(t){return t!==Rr}var Ab=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:()=>(()=>p(Nb))(),providedIn:"root"});let t=e;return t})(),Bc=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},Nb=(()=>{let e=class e extends Bc{};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=ru(e)))(i||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),og=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:()=>(()=>p(Rb))(),providedIn:"root"});let t=e;return t})(),Rb=(()=>{let e=class e extends og{constructor(){super(...arguments),this.location=p(Vn),this.urlSerializer=p(Hr),this.options=p(qr,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(Zc),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new At,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Hp(this.currentUrlTree,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(o=>{o.type==="popstate"&&n(o.url,o.state)})}handleRouterEvent(n,o){if(n instanceof qn)this.stateMemento=this.createStateMemento();else if(n instanceof Rt)this.rawUrlTree=o.initialUrl;else if(n instanceof as){if(this.urlUpdateStrategy==="eager"&&!o.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl);this.setBrowserUrl(i,o)}}else n instanceof Lr?(this.currentUrlTree=o.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl),this.routerState=o.targetRouterState,this.urlUpdateStrategy==="deferred"&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o))):n instanceof Nt&&(n.code===3||n.code===2)?this.restoreHistory(o):n instanceof kr?this.restoreHistory(o,!0):n instanceof $e&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,o){let i=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(i)||o.extras.replaceUrl){let s=this.browserPageId,a=y(y({},o.extras.state),this.generateNgRouterState(o.id,s));this.location.replaceState(i,"",a)}else{let s=y(y({},o.extras.state),this.generateNgRouterState(o.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(n,o=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(o&&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,o){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:o}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=ru(e)))(i||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ar=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Ar||{});function ig(t,e){t.events.pipe(he(r=>r instanceof $e||r instanceof Nt||r instanceof kr||r instanceof Rt),R(r=>r instanceof $e||r instanceof Rt?Ar.COMPLETE:(r instanceof Nt?r.code===0||r.code===1:!1)?Ar.REDIRECTING:Ar.FAILED),he(r=>r!==Ar.REDIRECTING),rt(1)).subscribe(()=>{e()})}function Ob(t){throw t}var Pb={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Fb={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},gt=(()=>{let e=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.isNgZoneEnabled=!1,this.console=p(_i),this.stateManager=p(og),this.options=p(qr,{optional:!0})||{},this.pendingTasks=p(Ln),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(Yc),this.urlSerializer=p(Hr),this.location=p(Vn),this.urlHandlingStrategy=p(Zc),this._events=new ue,this.errorHandler=this.options.errorHandler||Ob,this.navigated=!1,this.routeReuseStrategy=p(Ab),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(ps,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(ms,{optional:!0}),this.eventsSubscription=new Q,this.isNgZoneEnabled=p(V)instanceof V&&V.isInAngularZone(),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(o=>{try{let i=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(o,s),o instanceof Nt&&o.code!==0&&o.code!==1)this.navigated=!0;else if(o instanceof $e)this.navigated=!0;else if(o instanceof jr){let a=this.urlHandlingStrategy.merge(o.url,i.currentRawUrl),u={skipLocationChange:i.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||_b(i.source)};this.scheduleNavigation(a,Rr,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Lb(o)&&this._events.next(o)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});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),Rr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,o)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",o)},0)}))}navigateToSyncWithBrowser(n,o,i){let s={replaceUrl:!0},a=i?.navigationId?i:null;if(i){let c=y({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let u=this.parseUrl(n);this.scheduleNavigation(u,o,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Wc),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,o={}){let{relativeTo:i,queryParams:s,fragment:a,queryParamsHandling:u,preserveFragment:c}=o,l=c?this.currentUrlTree.fragment:a,d=null;switch(u){case"merge":d=y(y({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=i?i.snapshot:this.routerState.snapshot.root;f=Vp(h)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),f=this.currentUrlTree.root}return $p(f,n,d,l??null)}navigateByUrl(n,o={skipLocationChange:!1}){let i=Gn(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,Rr,null,o)}navigate(n,o={skipLocationChange:!1}){return kb(n),this.navigateByUrl(this.createUrlTree(n,o),o)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,o){let i;if(o===!0?i=y({},Pb):o===!1?i=y({},Fb):i=o,Gn(n))return Dp(this.currentUrlTree,n,i);let s=this.parseUrl(n);return Dp(this.currentUrlTree,s,i)}removeEmptyProps(n){return Object.keys(n).reduce((o,i)=>{let s=n[i];return s!=null&&(o[i]=s),o},{})}scheduleNavigation(n,o,i,s,a){if(this.disposed)return Promise.resolve(!1);let u,c,l;a?(u=a.resolve,c=a.reject,l=a.promise):l=new Promise((f,h)=>{u=f,c=h});let d=this.pendingTasks.add();return ig(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:o,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:u,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function kb(t){for(let e=0;e{let e=class e{constructor(n,o,i,s,a,u){this.router=n,this.route=o,this.tabIndexAttribute=i,this.renderer=s,this.el=a,this.locationStrategy=u,this.href=null,this.commands=null,this.onChanges=new ue,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof $e&&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.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,o,i,s,a){if(this.urlTree===null||this.isAnchorElement&&(n!==0||o||i||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state};return this.router.navigateByUrl(this.urlTree,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=this.urlTree!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;let n=this.href===null?null:$f(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,o){let i=this.renderer,s=this.el.nativeElement;o!==null?i.setAttribute(s,n,o):i.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(o){return new(o||e)(W(gt),W(rn),ou("tabindex"),W(mr),W(ct),W(pt))},e.\u0275dir=Qt({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(o,i){o&1&&Pu("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),o&2&&Nu("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",Dr],skipLocationChange:["skipLocationChange","skipLocationChange",Dr],replaceUrl:["replaceUrl","replaceUrl",Dr],routerLink:"routerLink"},standalone:!0,features:[_u,Rn]});let t=e;return t})(),MR=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,o,i,s,a){this.router=n,this.element=o,this.renderer=i,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new se,this.routerEventsSubscription=n.events.subscribe(u=>{u instanceof $e&&this.update()})}ngAfterContentInit(){D(this.links.changes,D(null)).pipe(He()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(o=>!!o).map(o=>o.onChanges);this.linkInputChangesSubscription=B(n).pipe(He()).subscribe(o=>{this._isActive!==this.isLinkActive(this.router)(o)&&this.update()})}set routerLinkActive(n){let o=Array.isArray(n)?n:n.split(" ");this.classes=o.filter(i=>!!i)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(o=>{n?this.renderer.addClass(this.element.nativeElement,o):this.renderer.removeClass(this.element.nativeElement,o)}),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.isActiveChange.emit(n))})}isLinkActive(n){let o=jb(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>i.urlTree?n.isActive(i.urlTree,o):!1}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(o){return new(o||e)(W(gt),W(ct),W(mr),W(Fn),W(Sp,8))},e.\u0275dir=Qt({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(o,i,s){if(o&1&&Sh(s,Sp,5),o&2){let a;Mh(a=Th())&&(i.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Rn]});let t=e;return t})();function jb(t){return!!t.paths}var gs=class{};var Vb=(()=>{let e=class e{constructor(n,o,i,s,a){this.router=n,this.injector=i,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(he(n=>n instanceof $e),nt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,o){let i=[];for(let s of o){s.providers&&!s._injector&&(s._injector=Ti(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,u=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&i.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&i.push(this.processRoutes(u,s.children??s._loadedRoutes))}return B(i).pipe(He())}preloadConfig(n,o){return this.preloadingStrategy.preload(o,()=>{let i;o.loadChildren&&o.canLoad===void 0?i=this.loader.loadChildren(n,o):i=D(null);let s=i.pipe(K(a=>a===null?D(void 0):(o._loadedRoutes=a.routes,o._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(o.loadComponent&&!o._loadedComponent){let a=this.loader.loadComponent(o);return B([s,a]).pipe(He())}else return s})}};e.\u0275fac=function(o){return new(o||e)(m(gt),m(Ni),m(ge),m(gs),m(qc))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),sg=new E(""),$b=(()=>{let e=class e{constructor(n,o,i,s,a={}){this.urlSerializer=n,this.transitions=o,this.viewportScroller=i,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.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 qn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof $e?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Rt&&n.code===0&&(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 us&&(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,o){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new us(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,o))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(o){Gf()},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();function Ub(t){return t.routerState.root}function Zr(t,e){return{\u0275kind:t,\u0275providers:e}}function Bb(){let t=p(je);return e=>{let r=t.get(Jt);if(e!==r.components[0])return;let n=t.get(gt),o=t.get(ag);t.get(Qc)===1&&n.initialNavigation(),t.get(ug,null,O.Optional)?.setUpPreloading(),t.get(sg,null,O.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var ag=new E("",{factory:()=>new ue}),Qc=new E("",{providedIn:"root",factory:()=>1});function Hb(){return Zr(2,[{provide:Qc,useValue:0},{provide:xi,multi:!0,deps:[je],useFactory:e=>{let r=e.get(Wh,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let o=e.get(gt),i=e.get(ag);ig(o,()=>{n(!0)}),e.get(Yc).afterPreactivation=()=>(n(!0),i.closed?D(void 0):i),o.initialNavigation()}))}}])}function zb(){return Zr(3,[{provide:xi,multi:!0,useFactory:()=>{let e=p(gt);return()=>{e.setUpLocationChangeListener()}}},{provide:Qc,useValue:2}])}var ug=new E("");function Wb(t){return Zr(0,[{provide:ug,useExisting:Vb},{provide:gs,useExisting:t}])}function Gb(){return Zr(8,[Ip,{provide:ms,useExisting:Ip}])}function qb(t){let e=[{provide:ng,useValue:Tb},{provide:rg,useValue:y({skipNextTransition:!!t?.skipInitialTransition},t)}];return Zr(9,e)}var Tp=new E("ROUTER_FORROOT_GUARD"),Zb=[Vn,{provide:Hr,useClass:Pr},gt,zr,{provide:rn,useFactory:Ub,deps:[gt]},qc,[]],SR=(()=>{let e=class e{constructor(n){}static forRoot(n,o){return{ngModule:e,providers:[Zb,[],{provide:ps,multi:!0,useValue:n},{provide:Tp,useFactory:Jb,deps:[[gt,new vi,new su]]},{provide:qr,useValue:o||{}},o?.useHash?Qb():Kb(),Yb(),o?.preloadingStrategy?Wb(o.preloadingStrategy).\u0275providers:[],o?.initialNavigation?Xb(o):[],o?.bindToComponentInputs?Gb().\u0275providers:[],o?.enableViewTransitions?qb().\u0275providers:[],e0()]}}static forChild(n){return{ngModule:e,providers:[{provide:ps,multi:!0,useValue:n}]}}};e.\u0275fac=function(o){return new(o||e)(m(Tp,8))},e.\u0275mod=st({type:e}),e.\u0275inj=it({});let t=e;return t})();function Yb(){return{provide:sg,useFactory:()=>{let t=p(ep),e=p(V),r=p(qr),n=p(Yc),o=p(Hr);return r.scrollOffset&&t.setOffset(r.scrollOffset),new $b(o,n,t,e,r)}}}function Qb(){return{provide:pt,useClass:qh}}function Kb(){return{provide:pt,useClass:Qu}}function Jb(t){return"guarded"}function Xb(t){return[t.initialNavigation==="disabled"?zb().\u0275providers:[],t.initialNavigation==="enabledBlocking"?Hb().\u0275providers:[]]}var xp=new E("");function e0(){return[{provide:xp,useFactory:Bb},{provide:Pi,multi:!0,useExisting:xp}]}var AR=(()=>{let e=class e{constructor(n){this.http=n,this.apiUrl="https://api5.angular-buch.com"}getAll(){return this.http.get(`${this.apiUrl}/books`).pipe(Se(n=>(console.error(n),D([]))))}getSingle(n){return this.http.get(`${this.apiUrl}/books/${n}`)}remove(n){return this.http.delete(`${this.apiUrl}/books/${n}`)}getAllSearch(n){return this.http.get(`${this.apiUrl}/books/search/${n}`).pipe(Se(o=>(console.error(o),D([]))))}create(n){return this.http.post(`${this.apiUrl}/books`,n)}update(n){return this.http.put(`${this.apiUrl}/books/${n.isbn}`,n)}check(n){return this.http.get(`${this.apiUrl}/books/${n}/check`)}};e.\u0275fac=function(o){return new(o||e)(m(nc))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();export{y as a,Y as b,ue as c,oe as d,B as e,R as f,$g as g,he as h,Ug as i,Eo as j,ie as k,Mo as l,J as m,gd as n,v as o,C as p,it as q,E as r,m as s,p as t,Ad as u,st as v,Qt as w,qa as x,Rn as y,UA as z,BA as A,ru as B,Iy as C,ct as D,mr as E,HA as F,W as G,se as H,GD as I,Nu as J,sw as K,aw as L,xt as M,_w as N,gh as O,mh as P,Ru as Q,Fw as R,kw as S,GA as T,kn as U,Pu as V,qA as W,ZA as X,YA as Y,qw as Z,yh as _,QA as $,KA as aa,JA as ba,XA as ca,eN as da,tN as ea,Yt as fa,Ai as ga,Xt as ha,IN as ia,bN as ja,MN as ka,SN as la,TN as ma,Jh as na,vE as oa,BN as pa,sR as qa,aR as ra,rn as sa,xI as ta,gt as ua,Sp as va,MR as wa,SR as xa,AR as ya};
diff --git a/browser/chunk-LLWC3US5.js b/browser/chunk-LLWC3US5.js
new file mode 100644
index 0000000..5c708f8
--- /dev/null
+++ b/browser/chunk-LLWC3US5.js
@@ -0,0 +1 @@
+import{d as i,p as s}from"./chunk-LH4AV5V3.js";var c=(()=>{let t=class t{constructor(){this._isAuthenticated$=new i(!0),this.isAuthenticated$=this._isAuthenticated$.asObservable()}get isAuthenticated(){return this._isAuthenticated$.value}login(){this._isAuthenticated$.next(!0)}logout(){this._isAuthenticated$.next(!1)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();export{c as a};
diff --git a/browser/favicon.ico b/browser/favicon.ico
new file mode 100644
index 0000000..57614f9
Binary files /dev/null and b/browser/favicon.ico differ
diff --git a/index.html b/browser/index.html
similarity index 58%
rename from index.html
rename to browser/index.html
index 61d1fd1..0ab3149 100644
--- a/index.html
+++ b/browser/index.html
@@ -6,10 +6,11 @@
-
+
Loading ...
-
+