diff --git a/internal/ui/angular-ui/src/app/components/time-slot/time-slot.component.html b/internal/ui/angular-ui/src/app/components/time-slot/time-slot.component.html index 623c92a..1444141 100644 --- a/internal/ui/angular-ui/src/app/components/time-slot/time-slot.component.html +++ b/internal/ui/angular-ui/src/app/components/time-slot/time-slot.component.html @@ -5,7 +5,7 @@ {{ timeSlot()?.Start | date:"shortTime" }}
- @if (lastElement) { + @if (lastElement()) {
{{ timeSlot()?.End | date:"shortTime" }}
diff --git a/internal/ui/angular-ui/src/app/components/time-slot/time-slot.component.scss b/internal/ui/angular-ui/src/app/components/time-slot/time-slot.component.scss index 725300e..add54c8 100644 --- a/internal/ui/angular-ui/src/app/components/time-slot/time-slot.component.scss +++ b/internal/ui/angular-ui/src/app/components/time-slot/time-slot.component.scss @@ -1,5 +1,6 @@ .time-slot { - width: 20rem; + width: 25rem; + padding-left: 10rem; .time-slot-divider { --endpoint-width: 20px; @@ -33,7 +34,7 @@ width: 20px; align-items: center; .v-line { - height: calc(100% - var(--endpoint-height) * 1); + height: calc(100% - var(--endpoint-height)); width: 3px; background-color: rgba(87, 87, 87, 0.75); flex-grow: 0; diff --git a/internal/ui/angular-ui/src/app/components/time-slot/time-slot.component.ts b/internal/ui/angular-ui/src/app/components/time-slot/time-slot.component.ts index 73cd554..4383137 100644 --- a/internal/ui/angular-ui/src/app/components/time-slot/time-slot.component.ts +++ b/internal/ui/angular-ui/src/app/components/time-slot/time-slot.component.ts @@ -17,7 +17,7 @@ export class TimeSlotComponent { timeSlot = input(); scroll = input(1); - @Input() lastElement = false; + lastElement = input(false); heightPx = computed(() => { const ts = this.timeSlot(); @@ -25,7 +25,8 @@ export class TimeSlotComponent { const from = new Date(ts.Start); const to = new Date(ts.End); const durationInMinutes = (to.getTime() - from.getTime()) / (1000 * 60); - return Math.max(40, durationInMinutes * this.scroll()); + let height = durationInMinutes * this.scroll() + return Math.max(40, height); }); protected readonly last = last; diff --git a/internal/ui/angular-ui/src/app/components/timeline/timeline.component.html b/internal/ui/angular-ui/src/app/components/timeline/timeline.component.html index 0433caa..7549b1d 100644 --- a/internal/ui/angular-ui/src/app/components/timeline/timeline.component.html +++ b/internal/ui/angular-ui/src/app/components/timeline/timeline.component.html @@ -1,11 +1,9 @@ @let timeSlots = timeSlots$ | async; @if (timeSlots) { -
-
+
@for (timeSlot of timeSlots; track timeSlot.ID; let last = $last) { } -
} diff --git a/internal/ui/angular-ui/src/app/components/timeline/timeline.component.scss b/internal/ui/angular-ui/src/app/components/timeline/timeline.component.scss index 7e3f71f..cc4e25c 100644 --- a/internal/ui/angular-ui/src/app/components/timeline/timeline.component.scss +++ b/internal/ui/angular-ui/src/app/components/timeline/timeline.component.scss @@ -1,17 +1,6 @@ .timeline-container { - display: flex; - flex-direction: row; - justify-content: center; - margin-top: 3rem; - padding: 1rem; - border-radius: 15px; - // box-shadow: 0 0 15px rgba(0, 0, 0, 0.45); + padding: 2rem; + margin-top: 4rem; + overflow-y: scroll; max-height: 95vh; - - .line { - height: 100%; - width: 2px; - background-color: black; - border-radius: 1px; - } } diff --git a/internal/ui/angular-ui/src/app/components/timeline/timeline.component.ts b/internal/ui/angular-ui/src/app/components/timeline/timeline.component.ts index 306a759..3967ffc 100644 --- a/internal/ui/angular-ui/src/app/components/timeline/timeline.component.ts +++ b/internal/ui/angular-ui/src/app/components/timeline/timeline.component.ts @@ -1,9 +1,10 @@ import {Component, HostListener, input} from '@angular/core'; import {toObservable} from "@angular/core/rxjs-interop"; import {TimeSlotService} from "../../services/TimeSlot/time-slot.service"; -import {filter, switchMap} from "rxjs"; +import {catchError, filter, of, switchMap} from "rxjs"; import {AsyncPipe} from "@angular/common"; import {TimeSlotComponent} from "../time-slot/time-slot.component"; +import {TimeSlot} from "../../models/TimeSlot"; @Component({ selector: 'app-timeline', @@ -19,24 +20,20 @@ export class TimelineComponent { @HostListener('window:wheel', ['$event']) onWheel(event: WheelEvent) { if (event.deltaY > 0) { - this.scroll -= 1; + this.scroll -= .3; } else if (event.deltaY < 0) { - this.scroll += 1; + this.scroll += .3; } } scroll = 1; date = input() timeSlots$ = toObservable(this.date).pipe( filter(date => date !== undefined), - switchMap(date => this.timeSlotService.timeSlotsForDay$(date as Date)) + switchMap(date => this.timeSlotService.timeSlotsForDay$(date as Date)), + catchError(() => of([] as TimeSlot[]) ) ) constructor( private timeSlotService: TimeSlotService ) { } - - handleScroll($event: Event) { - console.log($event) - - } } diff --git a/internal/ui/web/index.html b/internal/ui/web/index.html index 40d1403..a98e650 100644 --- a/internal/ui/web/index.html +++ b/internal/ui/web/index.html @@ -9,5 +9,5 @@ - + diff --git a/internal/ui/web/main-E4ZHRT6B.js b/internal/ui/web/main-CUJIMF3V.js similarity index 53% rename from internal/ui/web/main-E4ZHRT6B.js rename to internal/ui/web/main-CUJIMF3V.js index 509d6c3..7efbd5a 100644 --- a/internal/ui/web/main-E4ZHRT6B.js +++ b/internal/ui/web/main-CUJIMF3V.js @@ -1,8 +1,8 @@ -var ng=Object.defineProperty,rg=Object.defineProperties;var og=Object.getOwnPropertyDescriptors;var Nu=Object.getOwnPropertySymbols;var ig=Object.prototype.hasOwnProperty,sg=Object.prototype.propertyIsEnumerable;var Au=(e,t,n)=>t in e?ng(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||={})ig.call(t,n)&&Au(e,n,t[n]);if(Nu)for(var n of Nu(t))sg.call(t,n)&&Au(e,n,t[n]);return e},z=(e,t)=>rg(e,og(t));var to=(e,t,n)=>new Promise((r,o)=>{var i=a=>{try{c(n.next(a))}catch(u){o(u)}},s=a=>{try{c(n.throw(a))}catch(u){o(u)}},c=a=>a.done?r(a.value):Promise.resolve(a.value).then(i,s);c((n=n.apply(e,t)).next())});function Ru(e,t){return Object.is(e,t)}var J=null,Kn=!1,no=1,nn=Symbol("SIGNAL");function A(e){let t=J;return J=e,t}function Ou(){return J}function ag(){return Kn}var rn={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 vs(e){if(Kn)throw new Error("");if(J===null)return;J.consumerOnSignalRead(e);let t=J.nextProducerIndex++;if(co(J),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function io(e){co(e);for(let t=0;t0}function co(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function ju(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Vu(e){return e.producerNode!==void 0}function $u(e){let t=Object.create(lg);t.computation=e;let n=()=>{if(Pu(t),vs(t),t.value===ro)throw t.error;return t.value};return n[nn]=t,n}var ps=Symbol("UNSET"),gs=Symbol("COMPUTING"),ro=Symbol("ERRORED"),lg=z(v({},rn),{value:ps,dirty:!0,error:null,equal:Ru,producerMustRecompute(e){return e.value===ps||e.value===gs},producerRecomputeValue(e){if(e.value===gs)throw new Error("Detected cycle in computations.");let t=e.value;e.value=gs;let n=Xn(e),r;try{r=e.computation()}catch(o){r=ro,e.error=o}finally{oo(e,n)}if(t!==ps&&t!==ro&&r!==ro&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function dg(){throw new Error}var Uu=dg;function fg(){Uu()}function Bu(e){Uu=e}var hg=null;function Hu(e,t){ug()||fg(),e.equal(e.value,t)||(e.value=t,pg(e))}var zu=z(v({},rn),{equal:Ru,value:void 0});function pg(e){e.version++,cg(),Fu(e),hg?.()}function Gu(e,t,n){let r=Object.create(gg);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let o=a=>{r.cleanupFn=a};function i(a){return a.fn===null&&a.schedule===null}function s(a){i(a)||(so(a),a.cleanupFn(),a.fn=null,a.schedule=null,a.cleanupFn=ms)}let c=()=>{if(r.fn===null)return;if(ag())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!io(r))return;r.hasRun=!0;let a=Xn(r);try{r.cleanupFn(),r.cleanupFn=ms,r.fn(o)}finally{oo(r,a)}};return r.ref={notify:()=>ku(r),run:c,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[nn]:r},r.ref}var ms=()=>{},gg=z(v({},rn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:ms});function M(e){return typeof e=="function"}function on(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var uo=on(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +var Xp=Object.defineProperty,eg=Object.defineProperties;var tg=Object.getOwnPropertyDescriptors;var Nu=Object.getOwnPropertySymbols;var ng=Object.prototype.hasOwnProperty,rg=Object.prototype.propertyIsEnumerable;var Au=(e,t,n)=>t in e?Xp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||={})ng.call(t,n)&&Au(e,n,t[n]);if(Nu)for(var n of Nu(t))rg.call(t,n)&&Au(e,n,t[n]);return e},z=(e,t)=>eg(e,tg(t));var to=(e,t,n)=>new Promise((r,o)=>{var i=a=>{try{c(n.next(a))}catch(u){o(u)}},s=a=>{try{c(n.throw(a))}catch(u){o(u)}},c=a=>a.done?r(a.value):Promise.resolve(a.value).then(i,s);c((n=n.apply(e,t)).next())});function Ru(e,t){return Object.is(e,t)}var J=null,Kn=!1,no=1,nn=Symbol("SIGNAL");function A(e){let t=J;return J=e,t}function Ou(){return J}function og(){return Kn}var rn={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 vs(e){if(Kn)throw new Error("");if(J===null)return;J.consumerOnSignalRead(e);let t=J.nextProducerIndex++;if(co(J),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function io(e){co(e);for(let t=0;t0}function co(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function ju(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Vu(e){return e.producerNode!==void 0}function $u(e){let t=Object.create(ag);t.computation=e;let n=()=>{if(Pu(t),vs(t),t.value===ro)throw t.error;return t.value};return n[nn]=t,n}var ps=Symbol("UNSET"),gs=Symbol("COMPUTING"),ro=Symbol("ERRORED"),ag=z(v({},rn),{value:ps,dirty:!0,error:null,equal:Ru,producerMustRecompute(e){return e.value===ps||e.value===gs},producerRecomputeValue(e){if(e.value===gs)throw new Error("Detected cycle in computations.");let t=e.value;e.value=gs;let n=Xn(e),r;try{r=e.computation()}catch(o){r=ro,e.error=o}finally{oo(e,n)}if(t!==ps&&t!==ro&&r!==ro&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function cg(){throw new Error}var Uu=cg;function ug(){Uu()}function Bu(e){Uu=e}var lg=null;function Hu(e,t){sg()||ug(),e.equal(e.value,t)||(e.value=t,dg(e))}var zu=z(v({},rn),{equal:Ru,value:void 0});function dg(e){e.version++,ig(),Fu(e),lg?.()}function Gu(e,t,n){let r=Object.create(fg);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let o=a=>{r.cleanupFn=a};function i(a){return a.fn===null&&a.schedule===null}function s(a){i(a)||(so(a),a.cleanupFn(),a.fn=null,a.schedule=null,a.cleanupFn=ms)}let c=()=>{if(r.fn===null)return;if(og())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!io(r))return;r.hasRun=!0;let a=Xn(r);try{r.cleanupFn(),r.cleanupFn=ms,r.fn(o)}finally{oo(r,a)}};return r.ref={notify:()=>ku(r),run:c,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[nn]:r},r.ref}var ms=()=>{},fg=z(v({},rn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:ms});function M(e){return typeof e=="function"}function on(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var uo=on(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=n});function er(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Y=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(M(r))try{r()}catch(i){t=i instanceof uo?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{qu(i)}catch(s){t=t??[],s instanceof uo?t=[...t,...s.errors]:t.push(s)}}if(t)throw new uo(t)}}add(t){var n;if(t&&t!==this)if(this.closed)qu(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&er(n,t)}remove(t){let{_finalizers:n}=this;n&&er(n,t),t instanceof e&&t._removeParent(this)}};Y.EMPTY=(()=>{let e=new Y;return e.closed=!0,e})();var ys=Y.EMPTY;function lo(e){return e instanceof Y||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function qu(e){M(e)?e():e.unsubscribe()}var Pe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var sn={setTimeout(e,t,...n){let{delegate:r}=sn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=sn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function fo(e){sn.setTimeout(()=>{let{onUnhandledError:t}=Pe;if(t)t(e);else throw e})}function tr(){}var Wu=Ds("C",void 0,void 0);function Zu(e){return Ds("E",void 0,e)}function Yu(e){return Ds("N",e,void 0)}function Ds(e,t,n){return{kind:e,value:t,error:n}}var kt=null;function an(e){if(Pe.useDeprecatedSynchronousErrorHandling){let t=!kt;if(t&&(kt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=kt;if(kt=null,n)throw r}}else e()}function Qu(e){Pe.useDeprecatedSynchronousErrorHandling&&kt&&(kt.errorThrown=!0,kt.error=e)}var Lt=class extends Y{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,lo(t)&&t.add(this)):this.destination=yg}static create(t,n,r){return new cn(t,n,r)}next(t){this.isStopped?Cs(Yu(t),this):this._next(t)}error(t){this.isStopped?Cs(Zu(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Cs(Wu,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},mg=Function.prototype.bind;function ws(e,t){return mg.call(e,t)}var Is=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ho(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ho(r)}else ho(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ho(n)}}},cn=class extends Lt{constructor(t,n,r){super();let o;if(M(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Pe.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ws(t.next,i),error:t.error&&ws(t.error,i),complete:t.complete&&ws(t.complete,i)}):o=t}this.destination=new Is(o)}};function ho(e){Pe.useDeprecatedSynchronousErrorHandling?Qu(e):fo(e)}function vg(e){throw e}function Cs(e,t){let{onStoppedNotification:n}=Pe;n&&sn.setTimeout(()=>n(e,t))}var yg={closed:!0,next:tr,error:vg,complete:tr};var un=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ee(e){return e}function Es(...e){return bs(e)}function bs(e){return e.length===0?Ee:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var F=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=wg(n)?n:new cn(n,r,o);return an(()=>{let{operator:s,source:c}=this;i.add(s?s.call(i,c):c?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Ku(r),new r((o,i)=>{let s=new cn({next:c=>{try{n(c)}catch(a){i(a),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[un](){return this}pipe(...n){return bs(n)(this)}toPromise(n){return n=Ku(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Ku(e){var t;return(t=e??Pe.Promise)!==null&&t!==void 0?t:Promise}function Dg(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function wg(e){return e&&e instanceof Lt||Dg(e)&&lo(e)}function Ms(e){return M(e?.lift)}function O(e){return t=>{if(Ms(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function P(e,t,n,r,o){return new Ss(e,t,n,r,o)}var Ss=class extends Lt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(c){try{n(c)}catch(a){t.error(a)}}:super._next,this._error=o?function(c){try{o(c)}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function ln(){return O((e,t)=>{let n=null;e._refCount++;let r=P(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var dn=class extends F{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Ms(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Y;let n=this.getSubject();t.add(this.source.subscribe(P(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Y.EMPTY)}return t}refCount(){return ln()(this)}};var Ju=on(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var re=(()=>{class e extends F{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new po(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Ju}next(n){an(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){an(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){an(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?ys:(this.currentObservers=null,i.push(n),new Y(()=>{this.currentObservers=null,er(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new F;return n.source=this,n}}return e.create=(t,n)=>new po(t,n),e})(),po=class extends re{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:ys}};var oe=class extends re{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Ts={now(){return(Ts.delegate||Date).now()},delegate:void 0};var nr=class extends re{constructor(t=1/0,n=1/0,r=Ts){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;se.complete());function Xu(e){return e&&M(e.schedule)}function el(e){return e[e.length-1]}function tl(e){return M(el(e))?e.pop():void 0}function yt(e){return Xu(el(e))?e.pop():void 0}function rl(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function c(l){try{u(r.next(l))}catch(d){s(d)}}function a(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(c,a)}u((r=r.apply(e,t||[])).next())})}function nl(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function jt(e){return this instanceof jt?(this.v=e,this):new jt(e)}function ol(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function c(f,g){r[f]&&(o[f]=function(m){return new Promise(function(y,T){i.push([f,m,y,T])>1||a(f,m)})},g&&(o[f]=g(o[f])))}function a(f,g){try{u(r[f](g))}catch(m){h(i[0][3],m)}}function u(f){f.value instanceof jt?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){a("next",f)}function d(f){a("throw",f)}function h(f,g){f(g),i.shift(),i.length&&a(i[0][0],i[0][1])}}function il(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof nl=="function"?nl(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(c,a){s=e[i](s),o(c,a,s.done,s.value)})}}function o(i,s,c,a){Promise.resolve(a).then(function(u){i({value:u,done:c})},s)}}var go=e=>e&&typeof e.length=="number"&&typeof e!="function";function mo(e){return M(e?.then)}function vo(e){return M(e[un])}function yo(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function Do(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Cg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var wo=Cg();function Co(e){return M(e?.[wo])}function Io(e){return ol(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield jt(n.read());if(o)return yield jt(void 0);yield yield jt(r)}}finally{n.releaseLock()}})}function Eo(e){return M(e?.getReader)}function ee(e){if(e instanceof F)return e;if(e!=null){if(vo(e))return Ig(e);if(go(e))return Eg(e);if(mo(e))return bg(e);if(yo(e))return sl(e);if(Co(e))return Mg(e);if(Eo(e))return Sg(e)}throw Do(e)}function Ig(e){return new F(t=>{let n=e[un]();if(M(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Eg(e){return new F(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,fo)})}function Mg(e){return new F(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function sl(e){return new F(t=>{Tg(e,t).catch(n=>t.error(n))})}function Sg(e){return sl(Io(e))}function Tg(e,t){var n,r,o,i;return rl(this,void 0,void 0,function*(){try{for(n=il(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function ye(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function bo(e,t=0){return O((n,r)=>{n.subscribe(P(r,o=>ye(r,e,()=>r.next(o),t),()=>ye(r,e,()=>r.complete(),t),o=>ye(r,e,()=>r.error(o),t)))})}function Mo(e,t=0){return O((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function al(e,t){return ee(e).pipe(Mo(t),bo(t))}function cl(e,t){return ee(e).pipe(Mo(t),bo(t))}function ul(e,t){return new F(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function ll(e,t){return new F(n=>{let r;return ye(n,t,()=>{r=e[wo](),ye(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>M(r?.return)&&r.return()})}function So(e,t){if(!e)throw new Error("Iterable cannot be null");return new F(n=>{ye(n,t,()=>{let r=e[Symbol.asyncIterator]();ye(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function dl(e,t){return So(Io(e),t)}function fl(e,t){if(e!=null){if(vo(e))return al(e,t);if(go(e))return ul(e,t);if(mo(e))return cl(e,t);if(yo(e))return So(e,t);if(Co(e))return ll(e,t);if(Eo(e))return dl(e,t)}throw Do(e)}function W(e,t){return t?fl(e,t):ee(e)}function b(...e){let t=yt(e);return W(e,t)}function fn(e,t){let n=M(e)?e:()=>e,r=o=>o.error(n());return new F(t?o=>t.schedule(r,0,o):r)}function _s(e){return!!e&&(e instanceof F||M(e.lift)&&M(e.subscribe))}var it=on(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function _(e,t){return O((n,r)=>{let o=0;n.subscribe(P(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:_g}=Array;function xg(e,t){return _g(t)?e(...t):e(t)}function hl(e){return _(t=>xg(e,t))}var{isArray:Ng}=Array,{getPrototypeOf:Ag,prototype:Rg,keys:Og}=Object;function pl(e){if(e.length===1){let t=e[0];if(Ng(t))return{args:t,keys:null};if(Pg(t)){let n=Og(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Pg(e){return e&&typeof e=="object"&&Ag(e)===Rg}function gl(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function To(...e){let t=yt(e),n=tl(e),{args:r,keys:o}=pl(e);if(r.length===0)return W([],t);let i=new F(Fg(r,t,o?s=>gl(o,s):Ee));return n?i.pipe(hl(n)):i}function Fg(e,t,n=Ee){return r=>{ml(t,()=>{let{length:o}=e,i=new Array(o),s=o,c=o;for(let a=0;a{let u=W(e[a],t),l=!1;u.subscribe(P(r,d=>{i[a]=d,l||(l=!0,c--),c||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function ml(e,t,n){e?ye(n,e,t):t()}function vl(e,t,n,r,o,i,s,c){let a=[],u=0,l=0,d=!1,h=()=>{d&&!a.length&&!u&&t.complete()},f=m=>u{i&&t.next(m),u++;let y=!1;ee(n(m,l++)).subscribe(P(t,T=>{o?.(T),i?f(T):t.next(T)},()=>{y=!0},void 0,()=>{if(y)try{for(u--;a.length&&ug(T)):g(T)}h()}catch(T){t.error(T)}}))};return e.subscribe(P(t,f,()=>{d=!0,h()})),()=>{c?.()}}function X(e,t,n=1/0){return M(t)?X((r,o)=>_((i,s)=>t(r,i,o,s))(ee(e(r,o))),n):(typeof t=="number"&&(n=t),O((r,o)=>vl(r,o,e,n)))}function xs(e=1/0){return X(Ee,e)}function yl(){return xs(1)}function hn(...e){return yl()(W(e,yt(e)))}function _o(e){return new F(t=>{ee(e()).subscribe(t)})}function ae(e,t){return O((n,r)=>{let o=0;n.subscribe(P(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Dt(e){return O((t,n)=>{let r=null,o=!1,i;r=t.subscribe(P(n,void 0,void 0,s=>{i=ee(e(s,Dt(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Dl(e,t,n,r,o){return(i,s)=>{let c=n,a=t,u=0;i.subscribe(P(s,l=>{let d=u++;a=c?e(a,l,d):(c=!0,l),r&&s.next(a)},o&&(()=>{c&&s.next(a),s.complete()})))}}function wt(e,t){return M(t)?X(e,t,1):X(e,1)}function Ct(e){return O((t,n)=>{let r=!1;t.subscribe(P(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function st(e){return e<=0?()=>be:O((t,n)=>{let r=0;t.subscribe(P(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Ns(e){return _(()=>e)}function xo(e=kg){return O((t,n)=>{let r=!1;t.subscribe(P(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function kg(){return new it}function Vt(e){return O((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Ge(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ae((o,i)=>e(o,i,r)):Ee,st(1),n?Ct(t):xo(()=>new it))}function pn(e){return e<=0?()=>be:O((t,n)=>{let r=[];t.subscribe(P(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function gn(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ae((o,i)=>e(o,i,r)):Ee,pn(1),n?Ct(t):xo(()=>new it))}function As(e,t){return O(Dl(e,t,arguments.length>=2,!0))}function Rs(...e){let t=yt(e);return O((n,r)=>{(t?hn(e,n,t):hn(e,n)).subscribe(r)})}function ce(e,t){return O((n,r)=>{let o=null,i=0,s=!1,c=()=>s&&!o&&r.complete();n.subscribe(P(r,a=>{o?.unsubscribe();let u=0,l=i++;ee(e(a,l)).subscribe(o=P(r,d=>r.next(t?t(a,d,l,u++):d),()=>{o=null,c()}))},()=>{s=!0,c()}))})}function Os(e){return O((t,n)=>{ee(e).subscribe(P(n,()=>n.complete(),tr)),!n.closed&&t.subscribe(n)})}function te(e,t,n){let r=M(e)||t||n?{next:e,error:t,complete:n}:e;return r?O((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let c=!0;o.subscribe(P(i,a=>{var u;(u=r.next)===null||u===void 0||u.call(r,a),i.next(a)},()=>{var a;c=!1,(a=r.complete)===null||a===void 0||a.call(r),i.complete()},a=>{var u;c=!1,(u=r.error)===null||u===void 0||u.call(r,a),i.error(a)},()=>{var a,u;c&&((a=r.unsubscribe)===null||a===void 0||a.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):Ee}var D=class extends Error{constructor(t,n){super(ii(t,n)),this.code=t}};function ii(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var rd=Symbol("InputSignalNode#UNSET"),Lg=z(v({},zu),{transformFn:void 0,applyValueToInputSignal(e,t){Hu(e,t)}});function od(e,t){let n=Object.create(Lg);n.value=e,n.transformFn=t?.transform;function r(){if(vs(n),n.value===rd)throw new D(-950,!1);return n.value}return r[nn]=n,r}function si(e){return{toString:e}.toString()}var No="__parameters__";function jg(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function id(e,t,n){return si(()=>{let r=jg(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return c.annotation=s,c;function c(a,u,l){let d=a.hasOwnProperty(No)?a[No]:Object.defineProperty(a,No,{value:[]})[No];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),a}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var rr=globalThis;function B(e){for(let t in e)if(e[t]===B)return t;throw Error("Could not find renamed property on target object.")}function Me(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(Me).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` -`);return n===-1?t:t.substring(0,n)}function wl(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Vg=B({__forward_ref__:B});function sd(e){return e.__forward_ref__=sd,e.toString=function(){return Me(this())},e}function xe(e){return ad(e)?e():e}function ad(e){return typeof e=="function"&&e.hasOwnProperty(Vg)&&e.__forward_ref__===sd}function w(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ai(e){return Cl(e,ud)||Cl(e,ld)}function cd(e){return ai(e)!==null}function Cl(e,t){return e.hasOwnProperty(t)?e[t]:null}function $g(e){let t=e&&(e[ud]||e[ld]);return t||null}function Il(e){return e&&(e.hasOwnProperty(El)||e.hasOwnProperty(Ug))?e[El]:null}var ud=B({\u0275prov:B}),El=B({\u0275inj:B}),ld=B({ngInjectableDef:B}),Ug=B({ngInjectorDef:B}),C=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=w({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function dd(e){return e&&!!e.\u0275providers}var Bg=B({\u0275cmp:B}),Hg=B({\u0275dir:B}),zg=B({\u0275pipe:B}),Gg=B({\u0275mod:B}),jo=B({\u0275fac:B}),sr=B({__NG_ELEMENT_ID__:B}),bl=B({__NG_ENV_ID__:B});function fd(e){return typeof e=="string"?e:e==null?"":String(e)}function qg(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():fd(e)}function Wg(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new D(-200,e)}function Pa(e,t){throw new D(-201,!1)}var N=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(N||{}),Hs;function hd(){return Hs}function De(e){let t=Hs;return Hs=e,t}function pd(e,t,n){let r=ai(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&N.Optional)return null;if(t!==void 0)return t;Pa(e,"Injector")}var Zg={},ar=Zg,zs="__NG_DI_FLAG__",Vo="ngTempTokenPath",Yg="ngTokenPath",Qg=/\n/gm,Kg="\u0275",Ml="__source",Dn;function Jg(){return Dn}function It(e){let t=Dn;return Dn=e,t}function Xg(e,t=N.Default){if(Dn===void 0)throw new D(-203,!1);return Dn===null?pd(e,void 0,t):Dn.get(e,t&N.Optional?null:void 0,t)}function I(e,t=N.Default){return(hd()||Xg)(xe(e),t)}function p(e,t=N.Default){return I(e,ci(t))}function ci(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Gs(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let c=t[s];i.push(s+":"+(typeof c=="string"?JSON.stringify(c):Me(c)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Qg,` - `)}`}var Fa=gd(id("Optional"),8);var md=gd(id("SkipSelf"),4);function Bt(e,t){let n=e.hasOwnProperty(jo);return n?e[jo]:null}function ka(e,t){e.forEach(n=>Array.isArray(n)?ka(n,t):t(n))}function vd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function $o(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var cr={},Cn=[],In=new C(""),yd=new C("",-1),Dd=new C(""),Uo=class{get(t,n=ar){if(n===ar){let r=new Error(`NullInjectorError: No provider for ${Me(t)}!`);throw r.name="NullInjectorError",r}return n}},wd=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(wd||{}),Ze=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ze||{}),Mt=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Mt||{});function rm(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function qs(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(Fe(r))return!1;s=!0}}}}return Fe(r)||s}function Fe(e){return(e&1)===0}function um(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+c+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Fe(s)&&(t+=Tl(i,o),o=""),r=s,i=i||!Fe(r);n++}return o!==""&&(t+=Tl(i,o)),t}function pm(e){return e.map(hm).join(",")}function gm(e){let t=[],n=[],r=1,o=2;for(;r{let t=Sd(e),n=z(v({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===wd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ze.Emulated,styles:e.styles||Cn,_:null,schemas:e.schemas||null,tView:null,id:""});Td(n);let r=e.dependencies;return n.directiveDefs=xl(r,!1),n.pipeDefs=xl(r,!0),n.id=ym(n),n})}function mm(e){return Ht(e)||Id(e)}function vm(e){return e!==null}function _l(e,t){if(e==null)return cr;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,c=Mt.None;Array.isArray(o)?(c=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=c!==Mt.None?[r,c]:r,t[i]=s):n[i]=r}return n}function ui(e){return si(()=>{let t=Sd(e);return Td(t),t})}function Va(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ht(e){return e[Bg]||null}function Id(e){return e[Hg]||null}function Ed(e){return e[zg]||null}function bd(e){let t=Ht(e)||Id(e)||Ed(e);return t!==null?t.standalone:!1}function Md(e,t){let n=e[Gg]||null;if(!n&&t===!0)throw new Error(`Type ${Me(e)} does not have '\u0275mod' property.`);return n}function Sd(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||cr,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Cn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:_l(e.inputs,t),outputs:_l(e.outputs),debugInfo:null}}function Td(e){e.features?.forEach(t=>t(e))}function xl(e,t){if(!e)return null;let n=t?Ed:mm;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(vm)}function ym(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function An(e){return{\u0275providers:e}}function Dm(...e){return{\u0275providers:_d(!0,e),\u0275fromNgModule:!0}}function _d(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return ka(t,s=>{let c=s;Ws(c,i,[],r)&&(o||=[],o.push(c))}),o!==void 0&&xd(o,i),n}function xd(e,t){for(let n=0;n{t(i,r)})}}function Ws(e,t,n,r){if(e=xe(e),!e)return!1;let o=null,i=Il(e),s=!i&&Ht(e);if(!i&&!s){let a=e.ngModule;if(i=Il(a),i)o=a;else return!1}else{if(s&&!s.standalone)return!1;o=e}let c=r.has(o);if(s){if(c)return!1;if(r.add(o),s.dependencies){let a=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of a)Ws(u,t,n,r)}}else if(i){if(i.imports!=null&&!c){r.add(o);let u;try{ka(i.imports,l=>{Ws(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&xd(u,t)}if(!c){let u=Bt(o)||(()=>new o);t({provide:o,useFactory:u,deps:Cn},o),t({provide:Dd,useValue:o,multi:!0},o),t({provide:In,useValue:()=>I(o),multi:!0},o)}let a=i.providers;if(a!=null&&!c){let u=e;$a(a,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function $a(e,t){for(let n of e)dd(n)&&(n=n.\u0275providers),Array.isArray(n)?$a(n,t):t(n)}var wm=B({provide:String,useValue:B});function Nd(e){return e!==null&&typeof e=="object"&&wm in e}function Cm(e){return!!(e&&e.useExisting)}function Im(e){return!!(e&&e.useFactory)}function Zs(e){return typeof e=="function"}var li=new C(""),Ro={},Em={},Ps;function Ua(){return Ps===void 0&&(Ps=new Uo),Ps}var we=class{},ur=class extends we{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Qs(t,s=>this.processProvider(s)),this.records.set(yd,mn(void 0,this)),o.has("environment")&&this.records.set(we,mn(void 0,this));let i=this.records.get(li);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Dd,Cn,N.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=A(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),A(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=It(this),r=De(void 0),o;try{return t()}finally{It(n),De(r)}}get(t,n=ar,r=N.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(bl))return t[bl](this);r=ci(r);let o,i=It(this),s=De(void 0);try{if(!(r&N.SkipSelf)){let a=this.records.get(t);if(a===void 0){let u=xm(t)&&ai(t);u&&this.injectableDefInScope(u)?a=mn(Ys(t),Ro):a=null,this.records.set(t,a)}if(a!=null)return this.hydrate(t,a)}let c=r&N.Self?Ua():this.parent;return n=r&N.Optional&&n===ar?null:n,c.get(t,n)}catch(c){if(c.name==="NullInjectorError"){if((c[Vo]=c[Vo]||[]).unshift(Me(t)),i)throw c;return tm(c,t,"R3InjectorError",this.source)}else throw c}finally{De(s),It(i)}}resolveInjectorInitializers(){let t=A(null),n=It(this),r=De(void 0),o;try{let i=this.get(In,Cn,N.Self);for(let s of i)s()}finally{It(n),De(r),A(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Me(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new D(205,!1)}processProvider(t){t=xe(t);let n=Zs(t)?t:xe(t&&t.provide),r=Mm(t);if(!Zs(t)&&t.multi===!0){let o=this.records.get(n);o||(o=mn(void 0,Ro,!0),o.factory=()=>Gs(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=A(null);try{return n.value===Ro&&(n.value=Em,n.value=n.factory()),typeof n.value=="object"&&n.value&&_m(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{A(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=xe(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Ys(e){let t=ai(e),n=t!==null?t.factory:Bt(e);if(n!==null)return n;if(e instanceof C)throw new D(204,!1);if(e instanceof Function)return bm(e);throw new D(204,!1)}function bm(e){if(e.length>0)throw new D(204,!1);let n=$g(e);return n!==null?()=>n.factory(e):()=>new e}function Mm(e){if(Nd(e))return mn(void 0,e.useValue);{let t=Sm(e);return mn(t,Ro)}}function Sm(e,t,n){let r;if(Zs(e)){let o=xe(e);return Bt(o)||Ys(o)}else if(Nd(e))r=()=>xe(e.useValue);else if(Im(e))r=()=>e.useFactory(...Gs(e.deps||[]));else if(Cm(e))r=()=>I(xe(e.useExisting));else{let o=xe(e&&(e.useClass||e.provide));if(Tm(e))r=()=>new o(...Gs(e.deps));else return Bt(o)||Ys(o)}return r}function mn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Tm(e){return!!e.deps}function _m(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function xm(e){return typeof e=="function"||typeof e=="object"&&e instanceof C}function Qs(e,t){for(let n of e)Array.isArray(n)?Qs(n,t):n&&dd(n)?Qs(n.\u0275providers,t):t(n)}function je(e,t){e instanceof ur&&e.assertNotDestroyed();let n,r=It(e),o=De(void 0);try{return t()}finally{It(r),De(o)}}function Ad(){return hd()!==void 0||Jg()!=null}function Ba(e){if(!Ad())throw new D(-203,!1)}function Nm(e){return typeof e=="function"}var ct=0,x=1,E=2,fe=3,ke=4,Ve=5,lr=6,Bo=7,ue=8,En=9,at=10,he=11,dr=12,Nl=13,Rn=14,Le=15,bn=16,vn=17,Mn=18,di=19,Rd=20,Et=21,Oo=22,Ne=23,le=25,Od=1;var zt=7,Ho=8,zo=9,de=10,Go=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Go||{});function bt(e){return Array.isArray(e)&&typeof e[Od]=="object"}function ut(e){return Array.isArray(e)&&e[Od]===!0}function Pd(e){return(e.flags&4)!==0}function fi(e){return e.componentOffset>-1}function Ha(e){return(e.flags&1)===1}function Dr(e){return!!e.template}function Ks(e){return(e[E]&512)!==0}var Js=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Fd(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function hi(){return kd}function kd(e){return e.type.prototype.ngOnChanges&&(e.setInput=Rm),Am}hi.ngInherit=!0;function Am(){let e=jd(this),t=e?.current;if(t){let n=e.previous;if(n===cr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Rm(e,t,n,r,o){let i=this.declaredInputs[r],s=jd(e)||Om(e,{previous:cr,current:null}),c=s.current||(s.current={}),a=s.previous,u=a[i];c[i]=new Js(u&&u.currentValue,n,a===cr),Fd(e,t,o,n)}var Ld="__ngSimpleChanges__";function jd(e){return e[Ld]||null}function Om(e,t){return e[Ld]=t}var Al=null;var qe=function(e,t,n){Al?.(e,t,n)},Pm="svg",Fm="math";function Ye(e){for(;Array.isArray(e);)e=e[ct];return e}function km(e,t){return Ye(t[e])}function $e(e,t){return Ye(t[e.index])}function za(e,t){return e.data[t]}function Ga(e,t){return e[t]}function Tt(e,t){let n=t[e];return bt(n)?n:n[ct]}function qa(e){return(e[E]&128)===128}function Lm(e){return ut(e[fe])}function Sn(e,t){return t==null?null:e[t]}function Vd(e){e[vn]=0}function $d(e){e[E]&1024||(e[E]|=1024,qa(e)&&gi(e))}function jm(e,t){for(;e>0;)t=t[Rn],e--;return t}function pi(e){return!!(e[E]&9216||e[Ne]?.dirty)}function Xs(e){e[at].changeDetectionScheduler?.notify(8),e[E]&64&&(e[E]|=1024),pi(e)&&gi(e)}function gi(e){e[at].changeDetectionScheduler?.notify(0);let t=Gt(e);for(;t!==null&&!(t[E]&8192||(t[E]|=8192,!qa(t)));)t=Gt(t)}function Ud(e,t){if((e[E]&256)===256)throw new D(911,!1);e[Et]===null&&(e[Et]=[]),e[Et].push(t)}function Vm(e,t){if(e[Et]===null)return;let n=e[Et].indexOf(t);n!==-1&&e[Et].splice(n,1)}function Gt(e){let t=e[fe];return ut(t)?t[fe]:t}var R={lFrame:Jd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Bd=!1;function $m(){return R.lFrame.elementDepthCount}function Um(){R.lFrame.elementDepthCount++}function Bm(){R.lFrame.elementDepthCount--}function Hd(){return R.bindingsEnabled}function Hm(){return R.skipHydrationRootTNode!==null}function zm(e){return R.skipHydrationRootTNode===e}function Gm(){R.skipHydrationRootTNode=null}function $(){return R.lFrame.lView}function Ue(){return R.lFrame.tView}function zd(e){return R.lFrame.contextLView=e,e[ue]}function Gd(e){return R.lFrame.contextLView=null,e}function Be(){let e=qd();for(;e!==null&&e.type===64;)e=e.parent;return e}function qd(){return R.lFrame.currentTNode}function qm(){let e=R.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function On(e,t){let n=R.lFrame;n.currentTNode=e,n.isParent=t}function Wd(){return R.lFrame.isParent}function Wm(){R.lFrame.isParent=!1}function Zm(){return R.lFrame.contextLView}function Zd(){return Bd}function Rl(e){Bd=e}function Wa(){let e=R.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ym(e){return R.lFrame.bindingIndex=e}function mi(){return R.lFrame.bindingIndex++}function Qm(){return R.lFrame.inI18n}function Km(e,t){let n=R.lFrame;n.bindingIndex=n.bindingRootIndex=e,ea(t)}function Jm(){return R.lFrame.currentDirectiveIndex}function ea(e){R.lFrame.currentDirectiveIndex=e}function Yd(e){R.lFrame.currentQueryIndex=e}function Xm(e){let t=e[x];return t.type===2?t.declTNode:t.type===1?e[Ve]:null}function Qd(e,t,n){if(n&N.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&N.Host);)if(o=Xm(i),o===null||(i=i[Rn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=R.lFrame=Kd();return r.currentTNode=t,r.lView=e,!0}function Za(e){let t=Kd(),n=e[x];R.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Kd(){let e=R.lFrame,t=e===null?null:e.child;return t===null?Jd(e):t}function Jd(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Xd(){let e=R.lFrame;return R.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var ef=Xd;function Ya(){let e=Xd();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ev(e){return(R.lFrame.contextLView=jm(e,R.lFrame.contextLView))[ue]}function wr(){return R.lFrame.selectedIndex}function qt(e){R.lFrame.selectedIndex=e}function tv(){let e=R.lFrame;return za(e.tView,e.selectedIndex)}function nv(){return R.lFrame.currentNamespace}var tf=!0;function Qa(){return tf}function Ka(e){tf=e}function rv(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=kd(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Ja(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[a]<0&&(e[vn]+=65536),(c>14>16&&(e[E]&3)===t&&(e[E]+=16384,Ol(c,i)):Ol(c,i)}var wn=-1,fr=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function iv(e){return e instanceof fr}function sv(e){return(e.flags&8)!==0}function av(e){return(e.flags&16)!==0}var ks={},ta=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ci(r);let o=this.injector.get(t,ks,r);return o!==ks||n===ks?o:this.parentInjector.get(t,n,r)}};function rf(e){return e!==wn}function qo(e){return e&32767}function cv(e){return e>>16}function Wo(e,t){let n=cv(e),r=t;for(;n>0;)r=r[Rn],n--;return r}var na=!0;function Zo(e){let t=na;return na=e,t}var uv=256,of=uv-1,sf=5,lv=0,We={};function dv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(sr)&&(r=n[sr]),r==null&&(r=n[sr]=lv++);let o=r&of,i=1<>sf)]|=i}function af(e,t){let n=cf(e,t);if(n!==-1)return n;let r=t[x];r.firstCreatePass&&(e.injectorIndex=t.length,Ls(r.data,e),Ls(t,null),Ls(r.blueprint,null));let o=Xa(e,t),i=e.injectorIndex;if(rf(o)){let s=qo(o),c=Wo(o,t),a=c[x].data;for(let u=0;u<8;u++)t[i+u]=c[s+u]|a[s+u]}return t[i+8]=o,i}function Ls(e,t){e.push(0,0,0,0,0,0,0,0,t)}function cf(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Xa(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=hf(o),r===null)return wn;if(n++,o=o[Rn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return wn}function fv(e,t,n){dv(e,t,n)}function uf(e,t,n){if(n&N.Optional||e!==void 0)return e;Pa(t,"NodeInjector")}function lf(e,t,n,r){if(n&N.Optional&&r===void 0&&(r=null),!(n&(N.Self|N.Host))){let o=e[En],i=De(void 0);try{return o?o.get(t,r,n&N.Optional):pd(t,r,n&N.Optional)}finally{De(i)}}return uf(r,t,n)}function df(e,t,n,r=N.Default,o){if(e!==null){if(t[E]&2048&&!(r&N.Self)){let s=vv(e,t,n,r,We);if(s!==We)return s}let i=ff(e,t,n,r,We);if(i!==We)return i}return lf(t,n,r,o)}function ff(e,t,n,r,o){let i=gv(n);if(typeof i=="function"){if(!Qd(t,e,r))return r&N.Host?uf(o,n,r):lf(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&N.Optional))Pa(n);else return s}finally{ef()}}else if(typeof i=="number"){let s=null,c=cf(e,t),a=wn,u=r&N.Host?t[Le][Ve]:null;for((c===-1||r&N.SkipSelf)&&(a=c===-1?Xa(e,t):t[c+8],a===wn||!Fl(r,!1)?c=-1:(s=t[x],c=qo(a),t=Wo(a,t)));c!==-1;){let l=t[x];if(Pl(i,c,l.data)){let d=hv(c,t,n,s,r,u);if(d!==We)return d}a=t[c+8],a!==wn&&Fl(r,t[x].data[c+8]===u)&&Pl(i,c,t)?(s=l,c=qo(a),t=Wo(a,t)):c=-1}}return o}function hv(e,t,n,r,o,i){let s=t[x],c=s.data[e+8],a=r==null?fi(c)&&na:r!=s&&(c.type&3)!==0,u=o&N.Host&&i===c,l=pv(c,s,n,a,u);return l!==null?hr(t,s,l,c):We}function pv(e,t,n,r,o){let i=e.providerIndexes,s=t.data,c=i&1048575,a=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?c:c+l,h=o?c+l:u;for(let f=d;f=a&&g.type===n)return f}if(o){let f=s[a];if(f&&Dr(f)&&f.type===n)return a}return null}function hr(e,t,n,r){let o=e[n],i=t.data;if(iv(o)){let s=o;s.resolving&&Wg(qg(i[n]));let c=Zo(s.canSeeViewProviders);s.resolving=!0;let a,u=s.injectImpl?De(s.injectImpl):null,l=Qd(e,r,N.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&rv(n,i[n],t)}finally{u!==null&&De(u),Zo(c),s.resolving=!1,ef()}}return o}function gv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(sr)?e[sr]:void 0;return typeof t=="number"?t>=0?t&of:mv:t}function Pl(e,t,n){let r=1<>sf)]&r)}function Fl(e,t){return!(e&N.Self)&&!(e&N.Host&&t)}var Ut=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return df(this._tNode,this._lView,t,ci(r),n)}};function mv(){return new Ut(Be(),$())}function ec(e){return si(()=>{let t=e.prototype.constructor,n=t[jo]||ra(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[jo]||ra(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function ra(e){return ad(e)?()=>{let t=ra(xe(e));return t&&t()}:Bt(e)}function vv(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[E]&2048&&!(s[E]&512);){let c=ff(i,s,n,r|N.Self,We);if(c!==We)return c;let a=i.parent;if(!a){let u=s[Rd];if(u){let l=u.get(n,We,r);if(l!==We)return l}a=hf(s),s=s[Rn]}i=a}return o}function hf(e){let t=e[x],n=t.type;return n===2?t.declTNode:n===1?e[Ve]:null}function kl(e,t=null,n=null,r){let o=pf(e,t,n,r);return o.resolveInjectorInitializers(),o}function pf(e,t=null,n=null,r,o=new Set){let i=[n||Cn,Dm(e)];return r=r||(typeof e=="object"?void 0:Me(e)),new ur(i,t||Ua(),r||null,o)}var Qe=class e{static{this.THROW_IF_NOT_FOUND=ar}static{this.NULL=new Uo}static create(t,n){if(Array.isArray(t))return kl({name:""},n,t,"");{let r=t.name??"";return kl({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=w({token:e,providedIn:"any",factory:()=>I(yd)})}static{this.__NG_ELEMENT_ID__=-1}};var yv=new C("");yv.__NG_ELEMENT_ID__=e=>{let t=Be();if(t===null)throw new D(204,!1);if(t.type&2)return t.value;if(e&N.Optional)return null;throw new D(204,!1)};var Dv="ngOriginalError";function js(e){return e[Dv]}var gf=!0,Cr=(()=>{class e{static{this.__NG_ELEMENT_ID__=wv}static{this.__NG_ENV_ID__=n=>n}}return e})(),oa=class extends Cr{constructor(t){super(),this._lView=t}onDestroy(t){return Ud(this._lView,t),()=>Vm(this._lView,t)}};function wv(){return new oa($())}var lt=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new oe(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}}return e})();var ia=class extends re{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Ad()&&(this.destroyRef=p(Cr,{optional:!0})??void 0,this.pendingTasks=p(lt,{optional:!0})??void 0)}emit(t){let n=A(null);try{super.next(t)}finally{A(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let a=t;o=a.next?.bind(a),i=a.error?.bind(a),s=a.complete?.bind(a)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let c=super.subscribe({next:o,error:i,complete:s});return t instanceof Y&&t.add(c),c}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},ie=ia;function Yo(...e){}function mf(e){let t,n;function r(){e=Yo;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Ll(e){return queueMicrotask(()=>e()),()=>{e=Yo}}var tc="isAngularZone",Qo=tc+"_ID",Cv=0,q=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ie(!1),this.onMicrotaskEmpty=new ie(!1),this.onStable=new ie(!1),this.onError=new ie(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=gf}=t;if(typeof Zone>"u")throw new D(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,bv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(tc)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new D(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new D(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Iv,Yo,Yo);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Iv={};function nc(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ev(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){mf(()=>{e.callbackScheduled=!1,sa(e),e.isCheckStableRunning=!0,nc(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),sa(e)}function bv(e){let t=()=>{Ev(e)},n=Cv++;e._inner=e._inner.fork({name:"angular",properties:{[tc]:!0,[Qo]:n,[Qo+n]:!0},onInvokeTask:(r,o,i,s,c,a)=>{if(Mv(a))return r.invokeTask(i,s,c,a);try{return jl(e),r.invokeTask(i,s,c,a)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Vl(e)}},onInvoke:(r,o,i,s,c,a,u)=>{try{return jl(e),r.invoke(i,s,c,a,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Sv(a)&&t(),Vl(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,sa(e),nc(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function sa(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function jl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Vl(e){e._nesting--,nc(e)}var aa=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ie,this.onMicrotaskEmpty=new ie,this.onStable=new ie,this.onError=new ie}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Mv(e){return vf(e,"__ignore_ng_zone__")}function Sv(e){return vf(e,"__scheduler_tick__")}function vf(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Ke=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&js(t);for(;n&&js(n);)n=js(n);return n||null}},Tv=new C("",{providedIn:"root",factory:()=>{let e=p(q),t=p(Ke);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function $l(e,t){return od(e,t)}function _v(e){return od(rd,e)}var Ir=($l.required=_v,$l);function xv(){return rc(Be(),$())}function rc(e,t){return new Er($e(e,t))}var Er=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=xv}}return e})();function yf(e){return(e.flags&128)===128}var Df=new Map,Nv=0;function Av(){return Nv++}function Rv(e){Df.set(e[di],e)}function ca(e){Df.delete(e[di])}var Ul="__ngContext__";function Wt(e,t){bt(t)?(e[Ul]=t[di],Rv(t)):e[Ul]=t}function wf(e){return If(e[dr])}function Cf(e){return If(e[ke])}function If(e){for(;e!==null&&!ut(e);)e=e[ke];return e}var ua;function Ef(e){ua=e}function Ov(){if(ua!==void 0)return ua;if(typeof document<"u")return document;throw new D(210,!1)}var oc=new C("",{providedIn:"root",factory:()=>Pv}),Pv="ng",ic=new C(""),_t=new C("",{providedIn:"platform",factory:()=>"unknown"});var sc=new C("",{providedIn:"root",factory:()=>Ov().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Fv="h",kv="b";var Lv=()=>null;function ac(e,t,n=!1){return Lv(e,t,n)}var bf=!1,jv=new C("",{providedIn:"root",factory:()=>bf});function Mf(e){return e.ownerDocument.defaultView}function Sf(e){return e instanceof Function?e():e}var xt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(xt||{}),Vv;function cc(e,t){return Vv(e,t)}function yn(e,t,n,r,o){if(r!=null){let i,s=!1;ut(r)?i=r:bt(r)&&(s=!0,r=r[ct]);let c=Ye(r);e===0&&n!==null?o==null?Nf(t,n,c):Ko(t,n,c,o||null,!0):e===1&&n!==null?Ko(t,n,c,o||null,!0):e===2?ey(t,c,s):e===3&&t.destroyNode(c),i!=null&&ny(t,e,i,n,o)}}function $v(e,t){return e.createText(t)}function Uv(e,t,n){e.setValue(t,n)}function Tf(e,t,n){return e.createElement(t,n)}function Bv(e,t){_f(e,t),t[ct]=null,t[Ve]=null}function Hv(e,t,n,r,o,i){r[ct]=o,r[Ve]=t,yi(e,r,n,1,o,i)}function _f(e,t){t[at].changeDetectionScheduler?.notify(9),yi(e,t,t[he],2,null,null)}function zv(e){let t=e[dr];if(!t)return Vs(e[x],e);for(;t;){let n=null;if(bt(t))n=t[dr];else{let r=t[de];r&&(n=r)}if(!n){for(;t&&!t[ke]&&t!==e;)bt(t)&&Vs(t[x],t),t=t[fe];t===null&&(t=e),bt(t)&&Vs(t[x],t),n=t&&t[ke]}t=n}}function Gv(e,t,n,r){let o=de+r,i=n.length;r>0&&(n[o-1][ke]=t),r0&&(e[n-1][ke]=r[ke]);let i=$o(e,de+t);Bv(r[x],r);let s=i[Mn];s!==null&&s.detachView(i[x]),r[fe]=null,r[ke]=null,r[E]&=-129}return r}function vi(e,t){if(!(t[E]&256)){let n=t[he];n.destroyNode&&yi(e,t,n,3,null,null),zv(t)}}function Vs(e,t){if(t[E]&256)return;let n=A(null);try{t[E]&=-129,t[E]|=256,t[Ne]&&so(t[Ne]),Wv(e,t),qv(e,t),t[x].type===1&&t[he].destroy();let r=t[bn];if(r!==null&&ut(t[fe])){r!==t[fe]&&uc(r,t);let o=t[Mn];o!==null&&o.detachView(e)}ca(t)}finally{A(n)}}function qv(e,t){let n=e.cleanup,r=t[Bo];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[Bo]=null);let o=t[Et];if(o!==null){t[Et]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===Ze.None||i===Ze.Emulated)return null}return $e(r,n)}}function Ko(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Nf(e,t,n){e.appendChild(t,n)}function Bl(e,t,n,r,o){r!==null?Ko(e,t,n,r,o):Nf(e,t,n)}function Af(e,t){return e.parentNode(t)}function Qv(e,t){return e.nextSibling(t)}function Kv(e,t,n){return Xv(e,t,n)}function Jv(e,t,n){return e.type&40?$e(e,n):null}var Xv=Jv,Hl;function lc(e,t,n,r){let o=Zv(e,r,t),i=t[he],s=r.parent||t[Ve],c=Kv(s,r,t);if(o!=null)if(Array.isArray(n))for(let a=0;ale&&Ff(e,t,le,!1),qe(s?2:0,o),n(r,o)}finally{qt(i),qe(s?3:1,o)}}function Vf(e,t,n){if(Pd(t)){let r=A(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function ly(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,c=0;return Hm()&&(c|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:c,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function zl(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let c,a=Mt.None;Array.isArray(s)?(c=s[0],a=s[1]):c=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}e===0?Gl(r,n,u,c,a):Gl(r,n,u,c)}return r}function Gl(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function dy(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,c=[],a=null,u=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function vy(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;fi(n)&&by(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||af(n,t),Wt(r,t);let s=n.initialInputs;for(let c=o;c{gi(e.lView)},consumerOnSignalRead(){this.lView[Ne]=this}});function jy(e){let t=e[Ne]??Object.create(Vy);return t.lView=e,t}var Vy=z(v({},rn),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Gt(e.lView);for(;t&&!Jf(t[x]);)t=Gt(t);t&&$d(t)},consumerOnSignalRead(){this.lView[Ne]=this}});function Jf(e){return e.type!==2}var $y=100;function Xf(e,t=!0,n=0){let r=e[at],o=r.rendererFactory,i=!1;i||o.begin?.();try{Uy(e,n)}catch(s){throw t&&Zf(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function Uy(e,t){let n=Zd();try{Rl(!0),ha(e,t);let r=0;for(;pi(e);){if(r===$y)throw new D(103,!1);r++,ha(e,1)}}finally{Rl(n)}}function By(e,t,n,r){let o=t[E];if((o&256)===256)return;let i=!1,s=!1;!i&&t[at].inlineEffectRunner?.flush(),Za(t);let c=!0,a=null,u=null;i||(Jf(e)?(u=Py(t),a=Xn(u)):Ou()===null?(c=!1,u=jy(t),a=Xn(u)):t[Ne]&&(so(t[Ne]),t[Ne]=null));try{Vd(t),Ym(e.bindingStartIndex),n!==null&&jf(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Po(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Fo(t,f,0,null),Fs(t,0)}if(s||Hy(t),eh(t,0),e.contentQueries!==null&&Wf(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Po(t,f)}else{let f=e.contentHooks;f!==null&&Fo(t,f,1),Fs(t,1)}oy(e,t);let d=e.components;d!==null&&nh(t,d,0);let h=e.viewQuery;if(h!==null&&fa(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Po(t,f)}else{let f=e.viewHooks;f!==null&&Fo(t,f,2),Fs(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Oo]){for(let f of t[Oo])f();t[Oo]=null}i||(t[E]&=-73)}catch(l){throw i||gi(t),l}finally{u!==null&&(oo(u,a),c&&ky(u)),Ya()}}function eh(e,t){for(let n=wf(e);n!==null;n=Cf(n))for(let r=de;r-1&&(pr(t,r),$o(n,r))}this._attachedToViewContainer=!1}vi(this._lView[x],this._lView)}onDestroy(t){Ud(this._lView,t)}markForCheck(){mc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[E]&=-129}reattach(){Xs(this._lView),this._lView[E]|=128}detectChanges(){this._lView[E]|=1024,Xf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Ks(this._lView),n=this._lView[bn];n!==null&&!t&&uc(n,this._lView),_f(this._lView[x],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=t;let n=Ks(this._lView),r=this._lView[bn];r!==null&&!n&&xf(r,this._lView),Xs(this._lView)}};var f_=new RegExp(`^(\\d+)*(${kv}|${Fv})*(.*)`);var Gy=()=>null;function mr(e,t){return Gy(e,t)}var _n=class{},Ii=new C("",{providedIn:"root",factory:()=>!1});var rh=new C(""),oh=new C(""),pa=class{},Xo=class{};function qy(e){let t=Error(`No component factory found for ${Me(e)}.`);return t[Wy]=e,t}var Wy="ngComponent";var ga=class{resolveComponentFactory(t){throw qy(t)}},xn=class{static{this.NULL=new ga}},Nn=class{},Ei=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>Zy()}}return e})();function Zy(){let e=$(),t=Be(),n=Tt(t.index,e);return(bt(n)?n:e)[he]}var Yy=(()=>{class e{static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>null})}}return e})();function ma(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Of(e,n,i.join(" "))}}function nD(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static{this.__NG_ELEMENT_ID__=oD}}return e})();function oD(){let e=Be();return sD(e,$())}var iD=bi,ih=class extends iD{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return rc(this._hostTNode,this._hostLView)}get injector(){return new Ut(this._hostTNode,this._hostLView)}get parentInjector(){let t=Xa(this._hostTNode,this._hostLView);if(rf(t)){let n=Wo(t,this._hostLView),r=qo(t),o=n[x].data[r+8];return new Ut(o,n)}else return new Ut(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Wl(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-de}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=mr(this._lContainer,t.ssrId),c=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(c,o,gr(this._hostTNode,s)),c}createComponent(t,n,r,o,i){let s=t&&!Nm(t),c;if(s)c=n;else{let g=n||{};c=g.index,r=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}let a=s?t:new vr(Ht(t)),u=r||this.parentInjector;if(!i&&a.ngModule==null){let m=(s?u:this.parentInjector).get(we,null);m&&(i=m)}let l=Ht(a.componentType??{}),d=mr(this._lContainer,l?.id??null),h=d?.firstChild??null,f=a.create(u,o,h,i);return this.insertImpl(f.hostView,c,gr(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Lm(o)){let c=this.indexOf(t);if(c!==-1)this.detach(c);else{let a=o[fe],u=new ih(a,a[Ve],a[fe]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Ci(s,o,i,r),t.attachToViewContainerRef(),vd($s(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Wl(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=pr(this._lContainer,n);r&&($o($s(this._lContainer),n),vi(r[x],r))}detach(t){let n=this._adjustIndex(t,-1),r=pr(this._lContainer,n);return r&&$o($s(this._lContainer),n)!=null?new Tn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Wl(e){return e[Ho]}function $s(e){return e[Ho]||(e[Ho]=[])}function sD(e,t){let n,r=t[e.index];return ut(r)?n=r:(n=qf(r,t,null,e),t[e.index]=n,wi(t,n)),cD(n,t,e,r),new ih(n,e,t)}function aD(e,t){let n=e[he],r=n.createComment(""),o=$e(t,e),i=Af(n,o);return Ko(n,i,r,Qv(n,o),!1),r}var cD=dD,uD=()=>!1;function lD(e,t,n){return uD(e,t,n)}function dD(e,t,n,r){if(e[zt])return;let o;n.type&8?o=Ye(r):o=aD(t,n),e[zt]=o}var Zl=new Set;function dt(e){Zl.has(e)||(Zl.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var St=class{},yr=class{};var ya=class extends St{constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ei(this);let i=Md(t);this._bootstrapComponents=Sf(i.bootstrap),this._r3Injector=pf(t,n,[{provide:St,useValue:this},{provide:xn,useValue:this.componentFactoryResolver},...r],Me(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Da=class extends yr{constructor(t){super(),this.moduleType=t}create(t){return new ya(this.moduleType,t,[])}};var ti=class extends St{constructor(t){super(),this.componentFactoryResolver=new ei(this),this.instance=null;let n=new ur([...t.providers,{provide:St,useValue:this},{provide:xn,useValue:this.componentFactoryResolver}],t.parent||Ua(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function vc(e,t,n=null){return new ti({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function sh(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function ah(e,t,n){return e[t]=n}function Zt(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function fD(e,t,n,r){let o=Zt(e,t,n);return Zt(e,t+1,r)||o}function hD(e){return(e.flags&32)===32}function pD(e,t,n,r,o,i,s,c,a){let u=t.consts,l=br(t,e,4,s||null,c||null);Hf(t,n,l,Sn(u,a)),Ja(t,l);let d=l.tView=fc(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function wa(e,t,n,r,o,i,s,c,a,u){let l=n+le,d=t.firstCreatePass?pD(l,t,e,r,o,i,s,c,a):t.data[l];On(d,!1);let h=gD(t,e,d,n);Qa()&&lc(t,e,h,d),Wt(h,e);let f=qf(h,e,h,d);return e[l]=f,wi(e,f),lD(f,d,e),Ha(d)&&$f(t,e,d),a!=null&&Uf(e,d,u),d}function Mr(e,t,n,r,o,i,s,c){let a=$(),u=Ue(),l=Sn(u.consts,i);return wa(a,u,e,t,n,r,o,l,s,c),Mr}var gD=mD;function mD(e,t,n,r){return Ka(!0),t[he].createComment("")}var ir=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(ir||{}),vD=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}}return e})(),Yl=class e{constructor(){this.ngZone=p(q),this.scheduler=p(_n),this.errorHandler=p(Ke,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[ir.EarlyRead,ir.Write,ir.MixedReadWrite,ir.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}};function yD(e,t,n,r){return Zt(e,mi(),n)?t+fd(n)+r:Pn}function Yt(e,t,n){let r=$(),o=mi();if(Zt(r,o,t)){let i=Ue(),s=tv();hy(i,s,r,e,t,r[he],n,!1)}return Yt}function Ql(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";hc(e,n,i[s],s,r)}var Ca=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Us(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function DD(e,t,n){let r,o,i=0,s=e.length-1,c=void 0;if(Array.isArray(t)){let a=t.length-1;for(;i<=s&&i<=a;){let u=e.at(i),l=t[i],d=Us(i,u,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let h=e.at(s),f=t[a],g=Us(s,h,a,f,n);if(g!==0){g<0&&e.updateValue(s,f),s--,a--;continue}let m=n(i,u),y=n(s,h),T=n(i,l);if(Object.is(T,y)){let U=n(a,f);Object.is(U,m)?(e.swap(i,s),e.updateValue(s,f),a--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new ni,o??=Jl(e,i,s,n),Ia(e,r,i,T))e.updateValue(i,l),i++,s++;else if(o.has(T))r.set(m,e.detach(i)),s--;else{let U=e.create(i,t[i]);e.attach(i,U),i++,s++}}for(;i<=a;)Kl(e,r,n,i,t[i]),i++}else if(t!=null){let a=t[Symbol.iterator](),u=a.next();for(;!u.done&&i<=s;){let l=e.at(i),d=u.value,h=Us(i,l,i,d,n);if(h!==0)h<0&&e.updateValue(i,d),i++,u=a.next();else{r??=new ni,o??=Jl(e,i,s,n);let f=n(i,d);if(Ia(e,r,i,f))e.updateValue(i,d),i++,s++,u=a.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,u=a.next();else{let g=n(i,l);r.set(g,e.detach(i)),s--}}}for(;!u.done;)Kl(e,r,n,e.length,u.value),u=a.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(a=>{e.destroy(a)})}function Ia(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Kl(e,t,n,r,o){if(Ia(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Jl(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var ni=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function Mi(e,t){dt("NgControlFlow");let n=$(),r=mi(),o=n[r]!==Pn?n[r]:-1,i=o!==-1?ri(n,le+o):void 0,s=0;if(Zt(n,r,e)){let c=A(null);try{if(i!==void 0&&Qf(i,s),e!==-1){let a=le+e,u=ri(n,a),l=Sa(n[x],a),d=mr(u,l.tView.ssrId),h=gc(n,l,t,{dehydratedView:d});Ci(u,h,s,gr(l,d))}}finally{A(c)}}else if(i!==void 0){let c=Yf(i,s);c!==void 0&&(c[ue]=t)}}var Ea=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-de}};var ba=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function ch(e,t,n,r,o,i,s,c,a,u,l,d,h){dt("NgControlFlow");let f=$(),g=Ue(),m=a!==void 0,y=$(),T=c?s.bind(y[Le][ue]):s,U=new ba(m,T);y[le+e]=U,wa(f,g,e+1,t,n,r,o,Sn(g.consts,i)),m&&wa(f,g,e+2,a,u,l,d,Sn(g.consts,h))}var Ma=class extends Ca{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-de}at(t){return this.getLView(t)[ue].$implicit}attach(t,n){let r=n[lr];this.needsIndexUpdate||=t!==this.length,Ci(this.lContainer,n,t,gr(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,wD(this.lContainer,t)}create(t,n){let r=mr(this.lContainer,this.templateTNode.tView.ssrId),o=gc(this.hostLView,this.templateTNode,new Ea(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){vi(t[x],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[ue].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(Ka(!0),Tf(r,o,nv()));function lh(){return $()}var $t=void 0;function bD(e){let t=e,n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var MD=["en",[["a","p"],["AM","PM"],$t],[["AM","PM"],$t,$t],[["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"]],$t,[["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"]],$t,[["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}",$t,"{1} 'at' {0}",$t],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",bD],Bs={};function Ae(e){let t=SD(e),n=Xl(t);if(n)return n;let r=t.split("-")[0];if(n=Xl(r),n)return n;if(r==="en")return MD;throw new D(701,!1)}function Xl(e){return e in Bs||(Bs[e]=rr.ng&&rr.ng.common&&rr.ng.common.locales&&rr.ng.common.locales[e]),Bs[e]}var Z=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Z||{});function SD(e){return e.toLowerCase().replace(/_/g,"-")}var oi="en-US";var TD=oi;function _D(e){typeof e=="string"&&(TD=e.toLowerCase().replace(/_/g,"-"))}var xD=(e,t,n)=>{};function et(e,t,n,r){let o=$(),i=Ue(),s=Be();return AD(i,o,o[he],s,e,t,r),et}function ND(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ia?c[a]:null}typeof s=="string"&&(i+=2)}return null}function AD(e,t,n,r,o,i,s){let c=Ha(r),u=e.firstCreatePass&&_y(e),l=t[ue],d=Ty(t),h=!0;if(r.type&3||s){let m=$e(r,t),y=s?s(m):m,T=d.length,U=s?ne=>s(Ye(ne[r.index])):r.index,k=null;if(!s&&c&&(k=ND(e,t,o,r.index)),k!==null){let ne=k.__ngLastListenerFn__||k;ne.__ngNextListenerFn__=i,k.__ngLastListenerFn__=i,h=!1}else{i=td(r,t,l,i),xD(m,o,i);let ne=n.listen(y,o,i);d.push(i,ne),u&&u.push(o,U,T,T+1)}}else i=td(r,t,l,i);let f=r.outputs,g;if(h&&f!==null&&(g=f[o])){let m=g.length;if(m)for(let y=0;y-1?Tt(e.index,t):t;mc(s,5);let c=ed(t,n,r,i),a=o.__ngNextListenerFn__;for(;a;)c=ed(t,n,a,i)&&c,a=a.__ngNextListenerFn__;return c}}function Fn(e=1){return ev(e)}function yc(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function kn(e,t=""){let n=$(),r=Ue(),o=e+le,i=r.firstCreatePass?br(r,o,1,t,null):r.data[o],s=RD(r,n,i,t,e);n[o]=s,Qa()&&lc(r,n,s,i),On(i,!1)}var RD=(e,t,n,r,o)=>(Ka(!0),$v(t[he],r));function Si(e){return Ti("",e,""),Si}function Ti(e,t,n){let r=$(),o=yD(r,e,t,n);return o!==Pn&&xy(r,wr(),o),Ti}var dh={};function Dc(e){let t=Ue(),n=$(),r=e+le,o=br(t,r,128,null,null);return On(o,!1),yc(t,n,r,dh),Dc}function fh(e){dt("NgLet");let t=Ue(),n=$(),r=wr();return yc(t,n,r,e),e}function hh(e){let t=Zm(),n=Ga(t,le+e);if(n===dh)throw new D(314,!1);return n}var OD=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=_d(!1,n.type),o=r.length>0?vc([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=w({token:e,providedIn:"environment",factory:()=>new e(I(we))})}}return e})();function tt(e){dt("NgStandalone"),e.getStandaloneInjector=t=>t.get(OD).getOrCreateStandaloneInjector(e)}function ph(e,t,n,r){return mh($(),Wa(),e,t,n,r)}function gh(e,t){let n=e[t];return n===Pn?void 0:n}function mh(e,t,n,r,o,i){let s=t+n;return Zt(e,s,o)?ah(e,s+1,i?r.call(i,o):r(o)):gh(e,s+1)}function PD(e,t,n,r,o,i,s){let c=t+n;return fD(e,c,o,i)?ah(e,c+2,s?r.call(s,o,i):r(o,i)):gh(e,c+2)}function Sr(e,t){let n=Ue(),r,o=e+le;n.firstCreatePass?(r=FD(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Bt(r.type,!0)),s,c=De(pe);try{let a=Zo(!1),u=i();return Zo(a),yc(n,$(),o,u),u}finally{De(c)}}function FD(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function vh(e,t,n){let r=e+le,o=$(),i=Ga(o,r);return yh(o,r)?mh(o,Wa(),t,i.transform,n,i):i.transform(n)}function wc(e,t,n,r){let o=e+le,i=$(),s=Ga(i,o);return yh(i,o)?PD(i,Wa(),t,s.transform,n,r,s):s.transform(n,r)}function yh(e,t){return e[x].data[t].pure}var _i=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var Dh=new C("");function Ln(e){return!!e&&typeof e.then=="function"}function Cc(e){return!!e&&typeof e.subscribe=="function"}var wh=new C(""),Ch=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=p(wh,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=o();if(Ln(i))n.push(i);else if(Cc(i)){let s=new Promise((c,a)=>{i.subscribe({complete:c,error:a})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),xi=new C("");function kD(){Bu(()=>{throw new D(600,!1)})}function LD(e){return e.isBoundToModule}var jD=10;function VD(e,t,n){try{let r=n();return Ln(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Nt=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(Tv),this.afterRenderManager=p(vD),this.zonelessEnabled=p(Ii),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new re,this.afterTick=new re,this.componentTypes=[],this.components=[],this.isStable=p(lt).hasPendingTasks.pipe(_(n=>!n)),this._injector=p(we)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Xo;if(!this._injector.get(Ch).done){let h=!o&&bd(n),f=!1;throw new D(405,f)}let s;o?s=n:s=this._injector.get(xn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let c=LD(s)?void 0:this._injector.get(St),a=r||s.selector,u=s.create(Qe.NULL,[],a,c),l=u.location.nativeElement,d=u.injector.get(Dh,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),ko(this.components,u),d?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new D(101,!1);let n=A(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,A(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Nn,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++pi(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;ko(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(xi,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ko(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new D(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ko(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function $D(e,t,n,r){if(!n&&!pi(e))return;Xf(e,t,n&&!r?0:1)}var Ta=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Ic=(()=>{class e{compileModuleSync(n){return new Da(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Md(n),i=Sf(o.declarations).reduce((s,c)=>{let a=Ht(c);return a&&s.push(new vr(a)),s},[]);return new Ta(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var UD=(()=>{class e{constructor(){this.zone=p(q),this.changeDetectionScheduler=p(_n),this.applicationRef=p(Nt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),BD=new C("",{factory:()=>!1});function Ih({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new q(z(v({},bh()),{scheduleInRootZone:n})),[{provide:q,useFactory:e},{provide:In,multi:!0,useFactory:()=>{let r=p(UD,{optional:!0});return()=>r.initialize()}},{provide:In,multi:!0,useFactory:()=>{let r=p(HD);return()=>{r.initialize()}}},t===!0?{provide:rh,useValue:!0}:[],{provide:oh,useValue:n??gf}]}function Eh(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=Ih({ngZoneFactory:()=>{let o=bh(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&dt("NgZone_CoalesceEvent"),new q(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return An([{provide:BD,useValue:!0},{provide:Ii,useValue:!1},r])}function bh(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var HD=(()=>{class e{constructor(){this.subscription=new Y,this.initialized=!1,this.zone=p(q),this.pendingTasks=p(lt)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{q.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{q.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var zD=(()=>{class e{constructor(){this.appRef=p(Nt),this.taskService=p(lt),this.ngZone=p(q),this.zonelessEnabled=p(Ii),this.disableScheduling=p(rh,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Y,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Qo):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(oh,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof aa||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?Ll:mf;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Qo+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Ll(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function GD(){return typeof $localize<"u"&&$localize.locale||oi}var Ni=new C("",{providedIn:"root",factory:()=>p(Ni,N.Optional|N.SkipSelf)||GD()});var _a=new C("");function Ao(e){return!e.moduleRef}function qD(e){let t=Ao(e)?e.r3Injector:e.moduleRef.injector,n=t.get(q);return n.run(()=>{Ao(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Ke,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Ao(e)){let i=()=>t.destroy(),s=e.platformInjector.get(_a);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(_a);s.add(i),e.moduleRef.onDestroy(()=>{ko(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return VD(r,n,()=>{let i=t.get(Ch);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Ni,oi);if(_D(s||oi),Ao(e)){let c=t.get(Nt);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return WD(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function WD(e,t){let n=e.injector.get(Nt);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new D(-403,!1);t.push(e)}var Lo=null;function ZD(e=[],t){return Qe.create({name:t,providers:[{provide:li,useValue:"platform"},{provide:_a,useValue:new Set([()=>Lo=null])},...e]})}function YD(e=[]){if(Lo)return Lo;let t=ZD(e);return Lo=t,kD(),QD(t),t}function QD(e){e.get(ic,null)?.forEach(n=>n())}var Qt=(()=>{class e{static{this.__NG_ELEMENT_ID__=KD}}return e})();function KD(e){return JD(Be(),$(),(e&16)===16)}function JD(e,t,n){if(fi(e)&&!n){let r=Tt(e.index,t);return new Tn(r,r)}else if(e.type&175){let r=t[Le];return new Tn(r,t)}return null}var xa=class{constructor(){}supports(t){return t instanceof Map||sh(t)}create(){return new Na}},Na=class{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(t){let n;for(n=this._mapHead;n!==null;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;n!==null;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;n!==null;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}diff(t){if(!t)t=new Map;else if(!(t instanceof Map||sh(t)))throw new D(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){let r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){let o=this._records.get(t);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new Aa(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}},Aa=class{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function nd(){return new Ec([new xa])}var Ec=(()=>{class e{static{this.\u0275prov=w({token:e,providedIn:"root",factory:nd})}constructor(n){this.factories=n}static create(n,r){if(r){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||nd()),deps:[[e,new md,new Fa]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new D(901,!1)}}return e})();function Mh(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=YD(r),i=[Ih({}),{provide:_n,useExisting:zD},...n||[]],s=new ti({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return qD({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function bc(e,t){dt("NgSignals");let n=$u(e);return t?.equal&&(n[nn].equal=t.equal),n}function jn(e){let t=A(null);try{return e()}finally{A(t)}}var XD=new C("",{providedIn:"root",factory:()=>p(ew)}),ew=(()=>{class e{static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>new Ra})}}return e})(),Ra=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=p(lt),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),this.taskId===null){let n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(t){let n=t.creationZone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},Oa=class{constructor(t,n,r,o,i,s){this.scheduler=t,this.effectFn=n,this.creationZone=r,this.injector=i,this.watcher=Gu(c=>this.runEffect(c),()=>this.schedule(),s),this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(Ke,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function Mc(e,t){dt("NgSignals"),!t?.injector&&Ba(Mc);let n=t?.injector??p(Qe),r=t?.manualCleanup!==!0?n.get(Cr):null,o=new Oa(n.get(XD),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),i=n.get(Qt,null,{optional:!0});return!i||!(i._lView[E]&8)?o.watcher.notify():(i._lView[Oo]??=[]).push(o.watcher.notify),o}var Nh=null;function Vn(){return Nh}function Ah(e){Nh??=e}var Vi=class{};var Ie=new C(""),Rh=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(sw),providedIn:"platform"})}}return e})();var sw=(()=>{class e extends Rh{constructor(){super(),this._doc=p(Ie),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Vn().getBaseHref(this._doc)}onPopState(n){let r=Vn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Vn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function Oh(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Sh(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function Kt(e){return e&&e[0]!=="?"?"?"+e:e}var Ui=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(Ph),providedIn:"root"})}}return e})(),aw=new C(""),Ph=(()=>{class e extends Ui{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??p(Ie).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 Oh(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Kt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Kt(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Kt(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(I(Rh),I(aw,8))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Tr=(()=>{class e{constructor(n){this._subject=new ie,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=lw(Sh(Th(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Kt(r))}normalize(n){return e.stripTrailingSlash(uw(this._basePath,Th(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Kt(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Kt(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}static{this.normalizeQueryParams=Kt}static{this.joinWithSlash=Oh}static{this.stripTrailingSlash=Sh}static{this.\u0275fac=function(r){return new(r||e)(I(Ui))}}static{this.\u0275prov=w({token:e,factory:()=>cw(),providedIn:"root"})}}return e})();function cw(){return new Tr(I(Ui))}function uw(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Th(e){return e.replace(/\/index.html$/,"")}function lw(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var me=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(me||{}),H=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(H||{}),Se=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(Se||{}),At={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function dw(e){return Ae(e)[Z.LocaleId]}function fw(e,t,n){let r=Ae(e),o=[r[Z.DayPeriodsFormat],r[Z.DayPeriodsStandalone]],i=Re(o,t);return Re(i,n)}function hw(e,t,n){let r=Ae(e),o=[r[Z.DaysFormat],r[Z.DaysStandalone]],i=Re(o,t);return Re(i,n)}function pw(e,t,n){let r=Ae(e),o=[r[Z.MonthsFormat],r[Z.MonthsStandalone]],i=Re(o,t);return Re(i,n)}function gw(e,t){let r=Ae(e)[Z.Eras];return Re(r,t)}function Ai(e,t){let n=Ae(e);return Re(n[Z.DateFormat],t)}function Ri(e,t){let n=Ae(e);return Re(n[Z.TimeFormat],t)}function Oi(e,t){let r=Ae(e)[Z.DateTimeFormat];return Re(r,t)}function Bi(e,t){let n=Ae(e),r=n[Z.NumberSymbols][t];if(typeof r>"u"){if(t===At.CurrencyDecimal)return n[Z.NumberSymbols][At.Decimal];if(t===At.CurrencyGroup)return n[Z.NumberSymbols][At.Group]}return r}function Fh(e){if(!e[Z.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[Z.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function mw(e){let t=Ae(e);return Fh(t),(t[Z.ExtraData][2]||[]).map(r=>typeof r=="string"?Sc(r):[Sc(r[0]),Sc(r[1])])}function vw(e,t,n){let r=Ae(e);Fh(r);let o=[r[Z.ExtraData][0],r[Z.ExtraData][1]],i=Re(o,t)||[];return Re(i,n)||[]}function Re(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function Sc(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var yw=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Pi={},Dw=/((?:[^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]*)/,pt=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(pt||{}),j=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(j||{}),L=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(L||{});function ww(e,t,n,r){let o=xw(e);t=ht(n,t)||t;let s=[],c;for(;t;)if(c=Dw.exec(t),c){s=s.concat(c.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let a=o.getTimezoneOffset();r&&(a=Lh(r,a),o=_w(o,r,!0));let u="";return s.forEach(l=>{let d=Sw(l);u+=d?d(o,n,a):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function $i(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function ht(e,t){let n=dw(e);if(Pi[n]??={},Pi[n][t])return Pi[n][t];let r="";switch(t){case"shortDate":r=Ai(e,Se.Short);break;case"mediumDate":r=Ai(e,Se.Medium);break;case"longDate":r=Ai(e,Se.Long);break;case"fullDate":r=Ai(e,Se.Full);break;case"shortTime":r=Ri(e,Se.Short);break;case"mediumTime":r=Ri(e,Se.Medium);break;case"longTime":r=Ri(e,Se.Long);break;case"fullTime":r=Ri(e,Se.Full);break;case"short":let o=ht(e,"shortTime"),i=ht(e,"shortDate");r=Fi(Oi(e,Se.Short),[o,i]);break;case"medium":let s=ht(e,"mediumTime"),c=ht(e,"mediumDate");r=Fi(Oi(e,Se.Medium),[s,c]);break;case"long":let a=ht(e,"longTime"),u=ht(e,"longDate");r=Fi(Oi(e,Se.Long),[a,u]);break;case"full":let l=ht(e,"fullTime"),d=ht(e,"fullDate");r=Fi(Oi(e,Se.Full),[l,d]);break}return r&&(Pi[n][t]=r),r}function Fi(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function He(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length0||c>-n)&&(c+=n),e===j.Hours)c===0&&n===-12&&(c=12);else if(e===j.FractionalSeconds)return Cw(c,t);let a=Bi(s,At.MinusSign);return He(c,t,a,r,o)}}function Iw(e,t){switch(e){case j.FullYear:return t.getFullYear();case j.Month:return t.getMonth();case j.Date:return t.getDate();case j.Hours:return t.getHours();case j.Minutes:return t.getMinutes();case j.Seconds:return t.getSeconds();case j.FractionalSeconds:return t.getMilliseconds();case j.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function G(e,t,n=me.Format,r=!1){return function(o,i){return Ew(o,i,e,t,n,r)}}function Ew(e,t,n,r,o,i){switch(n){case L.Months:return pw(t,o,r)[e.getMonth()];case L.Days:return hw(t,o,r)[e.getDay()];case L.DayPeriods:let s=e.getHours(),c=e.getMinutes();if(i){let u=mw(t),l=vw(t,o,r),d=u.findIndex(h=>{if(Array.isArray(h)){let[f,g]=h,m=s>=f.hours&&c>=f.minutes,y=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case pt.Short:return(o>=0?"+":"")+He(s,2,i)+He(Math.abs(o%60),2,i);case pt.ShortGMT:return"GMT"+(o>=0?"+":"")+He(s,1,i);case pt.Long:return"GMT"+(o>=0?"+":"")+He(s,2,i)+":"+He(Math.abs(o%60),2,i);case pt.Extended:return r===0?"Z":(o>=0?"+":"")+He(s,2,i)+":"+He(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}var bw=0,ji=4;function Mw(e){let t=$i(e,bw,1).getDay();return $i(e,0,1+(t<=ji?ji:ji+7)-t)}function kh(e){let t=e.getDay(),n=t===0?-3:ji-t;return $i(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Tc(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=kh(n),s=Mw(i.getFullYear()),c=i.getTime()-s.getTime();o=1+Math.round(c/6048e5)}return He(o,e,Bi(r,At.MinusSign))}}function Li(e,t=!1){return function(n,r){let i=kh(n).getFullYear();return He(i,e,Bi(r,At.MinusSign),t)}}var _c={};function Sw(e){if(_c[e])return _c[e];let t;switch(e){case"G":case"GG":case"GGG":t=G(L.Eras,H.Abbreviated);break;case"GGGG":t=G(L.Eras,H.Wide);break;case"GGGGG":t=G(L.Eras,H.Narrow);break;case"y":t=Q(j.FullYear,1,0,!1,!0);break;case"yy":t=Q(j.FullYear,2,0,!0,!0);break;case"yyy":t=Q(j.FullYear,3,0,!1,!0);break;case"yyyy":t=Q(j.FullYear,4,0,!1,!0);break;case"Y":t=Li(1);break;case"YY":t=Li(2,!0);break;case"YYY":t=Li(3);break;case"YYYY":t=Li(4);break;case"M":case"L":t=Q(j.Month,1,1);break;case"MM":case"LL":t=Q(j.Month,2,1);break;case"MMM":t=G(L.Months,H.Abbreviated);break;case"MMMM":t=G(L.Months,H.Wide);break;case"MMMMM":t=G(L.Months,H.Narrow);break;case"LLL":t=G(L.Months,H.Abbreviated,me.Standalone);break;case"LLLL":t=G(L.Months,H.Wide,me.Standalone);break;case"LLLLL":t=G(L.Months,H.Narrow,me.Standalone);break;case"w":t=Tc(1);break;case"ww":t=Tc(2);break;case"W":t=Tc(1,!0);break;case"d":t=Q(j.Date,1);break;case"dd":t=Q(j.Date,2);break;case"c":case"cc":t=Q(j.Day,1);break;case"ccc":t=G(L.Days,H.Abbreviated,me.Standalone);break;case"cccc":t=G(L.Days,H.Wide,me.Standalone);break;case"ccccc":t=G(L.Days,H.Narrow,me.Standalone);break;case"cccccc":t=G(L.Days,H.Short,me.Standalone);break;case"E":case"EE":case"EEE":t=G(L.Days,H.Abbreviated);break;case"EEEE":t=G(L.Days,H.Wide);break;case"EEEEE":t=G(L.Days,H.Narrow);break;case"EEEEEE":t=G(L.Days,H.Short);break;case"a":case"aa":case"aaa":t=G(L.DayPeriods,H.Abbreviated);break;case"aaaa":t=G(L.DayPeriods,H.Wide);break;case"aaaaa":t=G(L.DayPeriods,H.Narrow);break;case"b":case"bb":case"bbb":t=G(L.DayPeriods,H.Abbreviated,me.Standalone,!0);break;case"bbbb":t=G(L.DayPeriods,H.Wide,me.Standalone,!0);break;case"bbbbb":t=G(L.DayPeriods,H.Narrow,me.Standalone,!0);break;case"B":case"BB":case"BBB":t=G(L.DayPeriods,H.Abbreviated,me.Format,!0);break;case"BBBB":t=G(L.DayPeriods,H.Wide,me.Format,!0);break;case"BBBBB":t=G(L.DayPeriods,H.Narrow,me.Format,!0);break;case"h":t=Q(j.Hours,1,-12);break;case"hh":t=Q(j.Hours,2,-12);break;case"H":t=Q(j.Hours,1);break;case"HH":t=Q(j.Hours,2);break;case"m":t=Q(j.Minutes,1);break;case"mm":t=Q(j.Minutes,2);break;case"s":t=Q(j.Seconds,1);break;case"ss":t=Q(j.Seconds,2);break;case"S":t=Q(j.FractionalSeconds,1);break;case"SS":t=Q(j.FractionalSeconds,2);break;case"SSS":t=Q(j.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=ki(pt.Short);break;case"ZZZZZ":t=ki(pt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ki(pt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=ki(pt.Long);break;default:return null}return _c[e]=t,t}function Lh(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Tw(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function _w(e,t,n){let r=n?-1:1,o=e.getTimezoneOffset(),i=Lh(t,o);return Tw(e,r*(i-o))}function xw(e){if(_h(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(c=>+c);return $i(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(yw))return Nw(r)}let t=new Date(e);if(!_h(t))throw new Error(`Unable to convert "${e}" into a date`);return t}function Nw(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,c=Number(e[5]||0)-r,a=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,c,a,u),t}function _h(e){return e instanceof Date&&!isNaN(e.valueOf())}function Hi(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var jh=(()=>{class e{constructor(n,r,o){this._ngEl=n,this._differs=r,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){let[o,i]=n.split("."),s=o.indexOf("-")===-1?void 0:xt.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,i?`${r}${i}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static{this.\u0275fac=function(r){return new(r||e)(pe(Er),pe(Ec),pe(Ei))}}static{this.\u0275dir=ui({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return e})();function Vh(e,t){return new D(2100,!1)}var xc=class{createSubscription(t,n){return jn(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){jn(()=>t.unsubscribe())}},Nc=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},Aw=new Nc,Rw=new xc,$h=(()=>{class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(Ln(n))return Aw;if(Cc(n))return Rw;throw Vh(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(r){return new(r||e)(pe(Qt,16))}}static{this.\u0275pipe=Va({name:"async",type:e,pure:!1,standalone:!0})}}return e})();var Ow="mediumDate",Pw=new C(""),Fw=new C(""),Uh=(()=>{class e{constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??Ow,c=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return ww(n,s,i||this.locale,c)}catch(s){throw Vh(e,s.message)}}static{this.\u0275fac=function(r){return new(r||e)(pe(Ni,16),pe(Pw,24),pe(Fw,24))}}static{this.\u0275pipe=Va({name:"date",type:e,pure:!0,standalone:!0})}}return e})();var Bh="browser",kw="server";function zi(e){return e===kw}var $n=class{};var xr=class{},qi=class{},gt=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` -`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(c=>i.indexOf(c)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Pc=class{encodeKey(t){return Hh(t)}encodeValue(t){return Hh(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function jw(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,c]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],a=n.get(s)||[];a.push(c),n.set(s,a)}),n}var Vw=/%(\d[a-f0-9])/gi,$w={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Hh(e){return encodeURIComponent(e).replace(Vw,(t,n)=>$w[n]??t)}function Gi(e){return`${e}`}var Ot=class e{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Pc,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=jw(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Gi):[Gi(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Gi(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(Gi(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Fc=class{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function Uw(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function zh(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Gh(e){return typeof Blob<"u"&&e instanceof Blob}function qh(e){return typeof FormData<"u"&&e instanceof FormData}function Bw(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var _r=class e{constructor(t,n,r,o){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let i;if(Uw(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new gt,this.context??=new Fc,!this.params)this.params=new Ot,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let c=n.indexOf("?"),a=c===-1?"?":ch.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),l)),new e(n,r,s,{params:l,headers:u,context:d,reportProgress:a,responseType:o,withCredentials:c,transferCache:i})}},Pt=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Pt||{}),Nr=class{constructor(t,n=200,r="OK"){this.headers=t.headers||new gt,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},Wi=class e extends Nr{constructor(t={}){super(t),this.type=Pt.ResponseHeader}clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Ar=class e extends Nr{constructor(t={}){super(t),this.type=Pt.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Rt=class extends Nr{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},Qh=200,Hw=204;function Oc(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var Rr=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof _r)i=n;else{let a;o.headers instanceof gt?a=o.headers:a=new gt(o.headers);let u;o.params&&(o.params instanceof Ot?u=o.params:u=new Ot({fromObject:o.params})),i=new _r(n,r,o.body!==void 0?o.body:null,{headers:a,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=b(i).pipe(wt(a=>this.handler.handle(a)));if(n instanceof _r||o.observe==="events")return s;let c=s.pipe(ae(a=>a instanceof Ar));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return c.pipe(_(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return a.body}));case"blob":return c.pipe(_(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new Error("Response is not a Blob.");return a.body}));case"text":return c.pipe(_(a=>{if(a.body!==null&&typeof a.body!="string")throw new Error("Response is not a string.");return a.body}));case"json":default:return c.pipe(_(a=>a.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Ot().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Oc(o,r))}post(n,r,o={}){return this.request("POST",n,Oc(o,r))}put(n,r,o={}){return this.request("PUT",n,Oc(o,r))}static{this.\u0275fac=function(r){return new(r||e)(I(xr))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),zw=/^\)\]\}',?\n/,Gw="X-Request-URL";function Wh(e){if(e.url)return e.url;let t=Gw.toLocaleLowerCase();return e.headers.get(t)}var qw=(()=>{class e{constructor(){this.fetchImpl=p(kc,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n)),this.ngZone=p(q)}handle(n){return new F(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(Lc,i=>r.error(new Rt({error:i}))),()=>o.abort()})}doRequest(n,r,o){return to(this,null,function*(){let i=this.createRequestInit(n),s;try{let f=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,v({signal:r},i)));Ww(f),o.next({type:Pt.Sent}),s=yield f}catch(f){o.error(new Rt({error:f,status:f.status??0,statusText:f.statusText,url:n.urlWithParams,headers:f.headers}));return}let c=new gt(s.headers),a=s.statusText,u=Wh(s)??n.urlWithParams,l=s.status,d=null;if(n.reportProgress&&o.next(new Wi({headers:c,status:l,statusText:a,url:u})),s.body){let f=s.headers.get("content-length"),g=[],m=s.body.getReader(),y=0,T,U,k=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>to(this,null,function*(){for(;;){let{done:ve,value:K}=yield m.read();if(ve)break;if(g.push(K),y+=K.length,n.reportProgress){U=n.responseType==="text"?(U??"")+(T??=new TextDecoder).decode(K,{stream:!0}):void 0;let ot=()=>o.next({type:Pt.DownloadProgress,total:f?+f:void 0,loaded:y,partialText:U});k?k.run(ot):ot()}}}));let ne=this.concatChunks(g,y);try{let ve=s.headers.get("Content-Type")??"";d=this.parseBody(n,ne,ve)}catch(ve){o.error(new Rt({error:ve,headers:new gt(s.headers),status:s.status,statusText:s.statusText,url:Wh(s)??n.urlWithParams}));return}}l===0&&(l=d?Qh:0),l>=200&&l<300?(o.next(new Ar({body:d,headers:c,status:l,statusText:a,url:u})),o.complete()):o.error(new Rt({error:d,headers:c,status:l,statusText:a,url:u}))})}parseBody(n,r,o){switch(n.responseType){case"json":let i=new TextDecoder().decode(r).replace(zw,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let i=n.detectContentTypeHeader();i!==null&&(r["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),kc=class{};function Lc(){}function Ww(e){e.then(Lc,Lc)}function Zw(e,t){return t(e)}function Yw(e,t,n){return(r,o)=>je(n,()=>t(r,i=>e(i,o)))}var Kh=new C(""),Qw=new C(""),Kw=new C("",{providedIn:"root",factory:()=>!0});var Zh=(()=>{class e extends xr{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=p(lt),this.contributeToStability=p(Kw)}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Kh),...this.injector.get(Qw,[])]));this.chain=r.reduceRight((o,i)=>Yw(o,i,this.injector),Zw)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Vt(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||e)(I(qi),I(we))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})();var Jw=/^\)\]\}',?\n/;function Xw(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var Yh=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new D(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?W(r.\u0275loadImpl()):b(null)).pipe(ce(()=>new F(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((m,y)=>s.setRequestHeader(m,y.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let m=n.detectContentTypeHeader();m!==null&&s.setRequestHeader("Content-Type",m)}if(n.responseType){let m=n.responseType.toLowerCase();s.responseType=m!=="json"?m:"text"}let c=n.serializeBody(),a=null,u=()=>{if(a!==null)return a;let m=s.statusText||"OK",y=new gt(s.getAllResponseHeaders()),T=Xw(s)||n.url;return a=new Wi({headers:y,status:s.status,statusText:m,url:T}),a},l=()=>{let{headers:m,status:y,statusText:T,url:U}=u(),k=null;y!==Hw&&(k=typeof s.response>"u"?s.responseText:s.response),y===0&&(y=k?Qh:0);let ne=y>=200&&y<300;if(n.responseType==="json"&&typeof k=="string"){let ve=k;k=k.replace(Jw,"");try{k=k!==""?JSON.parse(k):null}catch(K){k=ve,ne&&(ne=!1,k={error:K,text:k})}}ne?(i.next(new Ar({body:k,headers:m,status:y,statusText:T,url:U||void 0})),i.complete()):i.error(new Rt({error:k,headers:m,status:y,statusText:T,url:U||void 0}))},d=m=>{let{url:y}=u(),T=new Rt({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:y||void 0});i.error(T)},h=!1,f=m=>{h||(i.next(u()),h=!0);let y={type:Pt.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),n.responseType==="text"&&s.responseText&&(y.partialText=s.responseText),i.next(y)},g=m=>{let y={type:Pt.UploadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),i.next(y)};return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",f),c!==null&&s.upload&&s.upload.addEventListener("progress",g)),s.send(c),i.next({type:Pt.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),c!==null&&s.upload&&s.upload.removeEventListener("progress",g)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||e)(I($n))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),Jh=new C(""),eC="XSRF-TOKEN",tC=new C("",{providedIn:"root",factory:()=>eC}),nC="X-XSRF-TOKEN",rC=new C("",{providedIn:"root",factory:()=>nC}),Zi=class{},oC=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Hi(n,this.cookieName),this.lastCookieString=n),this.lastToken}static{this.\u0275fac=function(r){return new(r||e)(I(Ie),I(_t),I(tC))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})();function iC(e,t){let n=e.url.toLowerCase();if(!p(Jh)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=p(Zi).getToken(),o=p(rC);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}function Xh(...e){let t=[Rr,Yh,Zh,{provide:xr,useExisting:Zh},{provide:qi,useFactory:()=>p(qw,{optional:!0})??p(Yh)},{provide:Kh,useValue:iC,multi:!0},{provide:Jh,useValue:!0},{provide:Zi,useClass:oC}];for(let n of e)t.push(...n.\u0275providers);return An(t)}var $c=class extends Vi{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Uc=class e extends $c{static makeCurrent(){Ah(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=sC();return n==null?null:aC(n)}resetBaseElement(){Or=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Hi(document.cookie,t)}},Or=null;function sC(){return Or=Or||document.querySelector("base"),Or?Or.getAttribute("href"):null}function aC(e){return new URL(e,document.baseURI).pathname}var cC=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),Bc=new C(""),op=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new D(5101,!1);return this._eventNameToPlugin.set(n,r),r}static{this.\u0275fac=function(r){return new(r||e)(I(Bc),I(q))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),Yi=class{constructor(t){this._doc=t}},jc="ng-app-id",ip=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=zi(i),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${jc}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){let o=this.styleRef;if(o.has(n)){let i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(jc),i;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(jc,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){let o=this.getStyleElement(n,r),i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(I(Ie),I(oc),I(sc,8),I(_t))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),Vc={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},zc=/%COMP%/g,sp="%COMP%",uC=`_nghost-${sp}`,lC=`_ngcontent-${sp}`,dC=!0,fC=new C("",{providedIn:"root",factory:()=>dC});function hC(e){return lC.replace(zc,e)}function pC(e){return uC.replace(zc,e)}function ap(e,t){return t.map(n=>n.replace(zc,e))}var tp=(()=>{class e{constructor(n,r,o,i,s,c,a,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=c,this.ngZone=a,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=zi(c),this.defaultRenderer=new Pr(n,s,a,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ze.ShadowDom&&(r=z(v({},r),{encapsulation:Ze.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Qi?o.applyToHost(n):o instanceof Fr&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,c=this.ngZone,a=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Ze.Emulated:i=new Qi(a,u,r,this.appId,l,s,c,d);break;case Ze.ShadowDom:return new Hc(a,u,n,r,s,c,this.nonce,d);default:i=new Fr(a,u,r,l,s,c,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(I(op),I(ip),I(oc),I(fC),I(Ie),I(_t),I(q),I(sc))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),Pr=class{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Vc[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(np(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(np(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new D(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Vc[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Vc[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(xt.DashCase|xt.Important)?t.style.setProperty(n,r,o&xt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&xt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=Vn().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function np(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Hc=class extends Pr{constructor(t,n,r,o,i,s,c,a){super(t,i,s,a),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=ap(o.id,o.styles);for(let l of u){let d=document.createElement("style");c&&d.setAttribute("nonce",c),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Fr=class extends Pr{constructor(t,n,r,o,i,s,c,a){super(t,i,s,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=a?ap(a,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Qi=class extends Fr{constructor(t,n,r,o,i,s,c,a){let u=o+"-"+r.id;super(t,n,r,i,s,c,a,u),this.contentAttr=hC(u),this.hostAttr=pC(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},gC=(()=>{class e extends Yi{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static{this.\u0275fac=function(r){return new(r||e)(I(Ie))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),rp=["alt","control","meta","shift"],mC={"\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"},vC={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},yC=(()=>{class e extends Yi{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Vn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),s="code."),rp.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let a={};return a.domEventName=o,a.fullKey=s,a}static matchEventFullKeyCode(n,r){let o=mC[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),rp.forEach(s=>{if(s!==o){let c=vC[s];c(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static{this.\u0275fac=function(r){return new(r||e)(I(Ie))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})();function cp(e,t){return Mh(v({rootComponent:e},DC(t)))}function DC(e){return{appProviders:[...bC,...e?.providers??[]],platformProviders:EC}}function wC(){Uc.makeCurrent()}function CC(){return new Ke}function IC(){return Ef(document),document}var EC=[{provide:_t,useValue:Bh},{provide:ic,useValue:wC,multi:!0},{provide:Ie,useFactory:IC,deps:[]}];var bC=[{provide:li,useValue:"root"},{provide:Ke,useFactory:CC,deps:[]},{provide:Bc,useClass:gC,multi:!0,deps:[Ie,q,_t]},{provide:Bc,useClass:yC,multi:!0,deps:[Ie]},tp,ip,op,{provide:Nn,useExisting:tp},{provide:$n,useClass:cC,deps:[]},[]];var up=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static{this.\u0275fac=function(r){return new(r||e)(I(Ie))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var S="primary",Jr=Symbol("RouteTitle"),Yc=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function qn(e){return new Yc(e)}function SC(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthr[i]===o)}else return e===t}function yp(e){return e.length>0?e[e.length-1]:null}function Ft(e){return _s(e)?e:Ln(e)?W(Promise.resolve(e)):b(e)}var _C={exact:wp,subset:Cp},Dp={exact:xC,subset:NC,ignored:()=>!0};function lp(e,t,n){return _C[n.paths](e.root,t.root,n.matrixParams)&&Dp[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function xC(e,t){return rt(e,t)}function wp(e,t,n){if(!Xt(e.segments,t.segments)||!Xi(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!wp(e.children[r],t.children[r],n))return!1;return!0}function NC(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>vp(e[n],t[n]))}function Cp(e,t,n){return Ip(e,t,t.segments,n)}function Ip(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!Xt(o,n)||t.hasChildren()||!Xi(o,n,r))}else if(e.segments.length===n.length){if(!Xt(e.segments,n)||!Xi(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!Cp(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!Xt(e.segments,o)||!Xi(e.segments,o,r)||!e.children[S]?!1:Ip(e.children[S],t,i,r)}}function Xi(e,t,n){return t.every((r,o)=>Dp[n](e[o].parameters,r.parameters))}var vt=class{constructor(t=new V([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=qn(this.queryParams),this._queryParamMap}toString(){return OC.serialize(this)}},V=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return es(this)}},Jt=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=qn(this.parameters),this._parameterMap}toString(){return bp(this)}};function AC(e,t){return Xt(e,t)&&e.every((n,r)=>rt(n.parameters,t[r].parameters))}function Xt(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function RC(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===S&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==S&&(n=n.concat(t(o,r)))}),n}var Iu=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>new Br,providedIn:"root"})}}return e})(),Br=class{parse(t){let n=new Jc(t);return new vt(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${kr(t.root,!0)}`,r=kC(t.queryParams),o=typeof t.fragment=="string"?`#${PC(t.fragment)}`:"";return`${n}${r}${o}`}},OC=new Br;function es(e){return e.segments.map(t=>bp(t)).join("/")}function kr(e,t){if(!e.hasChildren())return es(e);if(t){let n=e.children[S]?kr(e.children[S],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==S&&r.push(`${o}:${kr(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=RC(e,(r,o)=>o===S?[kr(e.children[S],!1)]:[`${o}:${kr(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[S]!=null?`${es(e)}/${n[0]}`:`${es(e)}/(${n.join("//")})`}}function Ep(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ki(e){return Ep(e).replace(/%3B/gi,";")}function PC(e){return encodeURI(e)}function Kc(e){return Ep(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ts(e){return decodeURIComponent(e)}function dp(e){return ts(e.replace(/\+/g,"%20"))}function bp(e){return`${Kc(e.path)}${FC(e.parameters)}`}function FC(e){return Object.entries(e).map(([t,n])=>`;${Kc(t)}=${Kc(n)}`).join("")}function kC(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Ki(n)}=${Ki(o)}`).join("&"):`${Ki(n)}=${Ki(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var LC=/^[^\/()?;#]+/;function Gc(e){let t=e.match(LC);return t?t[0]:""}var jC=/^[^\/()?;=#]+/;function VC(e){let t=e.match(jC);return t?t[0]:""}var $C=/^[^=?&#]+/;function UC(e){let t=e.match($C);return t?t[0]:""}var BC=/^[^&#]+/;function HC(e){let t=e.match(BC);return t?t[0]:""}var Jc=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new V([],{}):new V([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[S]=new V(t,n)),r}parseSegment(){let t=Gc(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new D(4009,!1);return this.capture(t),new Jt(ts(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=VC(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=Gc(this.remaining);o&&(r=o,this.capture(r))}t[ts(n)]=ts(r)}parseQueryParam(t){let n=UC(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=HC(this.remaining);s&&(r=s,this.capture(r))}let o=dp(n),i=dp(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Gc(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new D(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=S);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[S]:new V([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new D(4011,!1)}};function Mp(e){return e.segments.length>0?new V([],{[S]:e}):e}function Sp(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=Sp(o);if(r===S&&i.segments.length===0&&i.hasChildren())for(let[s,c]of Object.entries(i.children))t[s]=c;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new V(e.segments,t);return zC(n)}function zC(e){if(e.numberOfChildren===1&&e.children[S]){let t=e.children[S];return new V(e.segments.concat(t.segments),t.children)}return e}function Hr(e){return e instanceof vt}function GC(e,t,n=null,r=null){let o=Tp(e);return _p(o,t,n,r)}function Tp(e){let t;function n(i){let s={};for(let a of i.children){let u=n(a);s[a.outlet]=u}let c=new V(i.url,s);return i===e&&(t=c),c}let r=n(e.root),o=Mp(r);return t??o}function _p(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return qc(o,o,o,n,r);let i=qC(t);if(i.toRoot())return qc(o,o,new V([],{}),n,r);let s=WC(i,o,e),c=s.processChildren?Vr(s.segmentGroup,s.index,i.commands):Np(s.segmentGroup,s.index,i.commands);return qc(o,s.segmentGroup,c,n,r)}function ns(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function zr(e){return typeof e=="object"&&e!=null&&e.outlets}function qc(e,t,n,r,o){let i={};r&&Object.entries(r).forEach(([a,u])=>{i[a]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;e===t?s=n:s=xp(e,t,n);let c=Mp(Sp(s));return new vt(c,i,o)}function xp(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=xp(i,t,n)}),new V(e.segments,r)}var rs=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&ns(r[0]))throw new D(4003,!1);let o=r.find(zr);if(o&&o!==yp(r))throw new D(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function qC(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new rs(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let c={};return Object.entries(i.outlets).forEach(([a,u])=>{c[a]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:c}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((c,a)=>{a==0&&c==="."||(a==0&&c===""?n=!0:c===".."?t++:c!=""&&o.push(c))}),o):[...o,i]},[]);return new rs(n,t,r)}var Hn=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function WC(e,t,n){if(e.isAbsolute)return new Hn(t,!0,0);if(!n)return new Hn(t,!1,NaN);if(n.parent===null)return new Hn(n,!0,0);let r=ns(e.commands[0])?0:1,o=n.segments.length-1+r;return ZC(n,o,e.numberOfDoubleDots)}function ZC(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new D(4005,!1);o=r.segments.length}return new Hn(r,!1,o-i)}function YC(e){return zr(e[0])?e[0].outlets:{[S]:e}}function Np(e,t,n){if(e??=new V([],{}),e.segments.length===0&&e.hasChildren())return Vr(e,t,n);let r=QC(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndexi!==S)&&e.children[S]&&e.numberOfChildren===1&&e.children[S].segments.length===0){let i=Vr(e.children[S],t,n);return new V(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Np(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new V(e.segments,o)}}function QC(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;let s=e.segments[o],c=n[r];if(zr(c))break;let a=`${c}`,u=r0&&a===void 0)break;if(a&&u&&typeof u=="object"&&u.outlets===void 0){if(!hp(a,u,s))return i;r+=2}else{if(!hp(a,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function Xc(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Xc(new V([],{}),0,r))}),t}function fp(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function hp(e,t,n){return e==n.path&&rt(t,n.parameters)}var $r="imperative",se=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(se||{}),Oe=class{constructor(t,n){this.id=t,this.url=n}},Gr=class extends Oe{constructor(t,n,r="imperative",o=null){super(t,n),this.type=se.NavigationStart,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},en=class extends Oe{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=se.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},_e=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(_e||{}),eu=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(eu||{}),mt=class extends Oe{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=se.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},tn=class extends Oe{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=se.NavigationSkipped}},qr=class extends Oe{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=se.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},os=class extends Oe{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=se.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},tu=class extends Oe{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=se.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},nu=class extends Oe{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=se.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ru=class extends Oe{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=se.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ou=class extends Oe{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=se.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},iu=class{constructor(t){this.route=t,this.type=se.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},su=class{constructor(t){this.route=t,this.type=se.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},au=class{constructor(t){this.snapshot=t,this.type=se.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},cu=class{constructor(t){this.snapshot=t,this.type=se.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},uu=class{constructor(t){this.snapshot=t,this.type=se.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},lu=class{constructor(t){this.snapshot=t,this.type=se.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Wr=class{},Wn=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function JC(e,t){return e.providers&&!e._injector&&(e._injector=vc(e.providers,t,`Route: ${e.path}`)),e._injector??t}function ze(e){return e.outlet||S}function XC(e,t){let n=e.filter(r=>ze(r)===t);return n.push(...e.filter(r=>ze(r)!==t)),n}function Xr(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var du=class{get injector(){return Xr(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new ds(this.rootInjector),this.attachRef=null}},ds=(()=>{class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new du(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static{this.\u0275fac=function(r){return new(r||e)(I(we))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),is=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=fu(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=fu(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=hu(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return hu(t,this._root).map(n=>n.value)}};function fu(e,t){if(e===t.value)return t;for(let n of t.children){let r=fu(e,n);if(r)return r}return null}function hu(e,t){if(e===t.value)return[t];for(let n of t.children){let r=hu(e,n);if(r.length)return r.unshift(t),r}return[]}var Te=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Bn(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var ss=class extends is{constructor(t,n){super(t),this.snapshot=n,Eu(this,t)}toString(){return this.snapshot.toString()}};function Ap(e){let t=eI(e),n=new oe([new Jt("",{})]),r=new oe({}),o=new oe({}),i=new oe({}),s=new oe(""),c=new Zn(n,r,i,s,o,S,e,t.root);return c.snapshot=t.root,new ss(new Te(c,[]),t)}function eI(e){let t={},n={},r={},o="",i=new zn([],t,r,o,n,S,e,null,{});return new cs("",new Te(i,[]))}var Zn=class{constructor(t,n,r,o,i,s,c,a){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=c,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(_(u=>u[Jr]))??b(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(_(t=>qn(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(_(t=>qn(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function as(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:v(v({},t.params),e.params),data:v(v({},t.data),e.data),resolve:v(v(v(v({},e.data),t.data),o?.data),e._resolvedData)}:r={params:v({},e.params),data:v({},e.data),resolve:v(v({},e.data),e._resolvedData??{})},o&&Op(o)&&(r.resolve[Jr]=o.title),r}var zn=class{get title(){return this.data?.[Jr]}constructor(t,n,r,o,i,s,c,a,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=c,this.routeConfig=a,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=qn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=qn(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},cs=class extends is{constructor(t,n){super(n),this.url=t,Eu(this,n)}toString(){return Rp(this._root)}};function Eu(e,t){t.value._routerState=e,t.children.forEach(n=>Eu(e,n))}function Rp(e){let t=e.children.length>0?` { ${e.children.map(Rp).join(", ")} } `:"";return`${e.value}${t}`}function Wc(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,rt(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),rt(t.params,n.params)||e.paramsSubject.next(n.params),TC(t.url,n.url)||e.urlSubject.next(n.url),rt(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function pu(e,t){let n=rt(e.params,t.params)&&AC(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||pu(e.parent,t.parent))}function Op(e){return typeof e.title=="string"||e.title===null}var tI=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=S,this.activateEvents=new ie,this.deactivateEvents=new ie,this.attachEvents=new ie,this.detachEvents=new ie,this.parentContexts=p(ds),this.location=p(bi),this.changeDetector=p(Qt),this.inputBinder=p(bu,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new D(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new D(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new D(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new D(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,a=new gu(n,c,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:a,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=ui({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[hi]})}}return e})(),gu=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===Zn?this.route:t===ds?this.childContexts:this.parent.get(t,n)}},bu=new C("");function nI(e,t,n){let r=Zr(e,t._root,n?n._root:void 0);return new ss(r,t)}function Zr(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=rI(e,t,n);return new Te(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(c=>Zr(e,c)),s}}let r=oI(t.value),o=t.children.map(i=>Zr(e,i));return new Te(r,o)}}function rI(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Zr(e,r,o);return Zr(e,r)})}function oI(e){return new Zn(new oe(e.url),new oe(e.params),new oe(e.queryParams),new oe(e.fragment),new oe(e.data),e.outlet,e.component,e)}var Yr=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Pp="ngNavigationCancelingError";function us(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Hr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Fp(!1,_e.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function Fp(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Pp]=!0,n.cancellationCode=t,n}function iI(e){return kp(e)&&Hr(e.url)}function kp(e){return!!e&&e[Pp]}var sI=(e,t,n,r)=>_(o=>(new mu(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),mu=class{constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Wc(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=Bn(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Bn(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:c})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Bn(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=Bn(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new lu(i.value.snapshot))}),t.children.length&&this.forwardEvent(new cu(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(Wc(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let c=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(c.contexts),s.attachRef=c.componentRef,s.route=c.route.value,s.outlet&&s.outlet.attach(c.componentRef,c.route.value),Wc(c.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},ls=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Gn=class{constructor(t,n){this.component=t,this.route=n}};function aI(e,t,n){let r=e._root,o=t?t._root:null;return Lr(r,o,n,[r.value])}function cI(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Qn(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!cd(e)?e:t.get(e):r}function Lr(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Bn(t);return e.children.forEach(s=>{uI(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,c])=>Ur(c,n.getContext(s),o)),o}function uI(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,c=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let a=lI(s,i,i.routeConfig.runGuardsAndResolvers);a?o.canActivateChecks.push(new ls(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Lr(e,t,c?c.children:null,r,o):Lr(e,t,n,r,o),a&&c&&c.outlet&&c.outlet.isActivated&&o.canDeactivateChecks.push(new Gn(c.outlet.component,s))}else s&&Ur(t,c,o),o.canActivateChecks.push(new ls(r)),i.component?Lr(e,null,c?c.children:null,r,o):Lr(e,null,n,r,o);return o}function lI(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Xt(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Xt(e.url,t.url)||!rt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!pu(e,t)||!rt(e.queryParams,t.queryParams);case"paramsChange":default:return!pu(e,t)}}function Ur(e,t,n){let r=Bn(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?Ur(s,t.children.getContext(i),n):Ur(s,null,n):Ur(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Gn(t.outlet.component,o)):n.canDeactivateChecks.push(new Gn(null,o)):n.canDeactivateChecks.push(new Gn(null,o))}function eo(e){return typeof e=="function"}function dI(e){return typeof e=="boolean"}function fI(e){return e&&eo(e.canLoad)}function hI(e){return e&&eo(e.canActivate)}function pI(e){return e&&eo(e.canActivateChild)}function gI(e){return e&&eo(e.canDeactivate)}function mI(e){return e&&eo(e.canMatch)}function Lp(e){return e instanceof it||e?.name==="EmptyError"}var Ji=Symbol("INITIAL_VALUE");function Yn(){return ce(e=>To(e.map(t=>t.pipe(st(1),Rs(Ji)))).pipe(_(t=>{for(let n of t)if(n!==!0){if(n===Ji)return Ji;if(n===!1||vI(n))return n}return!0}),ae(t=>t!==Ji),st(1)))}function vI(e){return Hr(e)||e instanceof Yr}function yI(e,t){return X(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?b(z(v({},n),{guardsResult:!0})):DI(s,r,o,e).pipe(X(c=>c&&dI(c)?wI(r,i,e,t):b(c)),_(c=>z(v({},n),{guardsResult:c})))})}function DI(e,t,n,r){return W(e).pipe(X(o=>MI(o.component,o.route,n,t,r)),Ge(o=>o!==!0,!0))}function wI(e,t,n,r){return W(t).pipe(wt(o=>hn(II(o.route.parent,r),CI(o.route,r),bI(e,o.path,n),EI(e,o.route,n))),Ge(o=>o!==!0,!0))}function CI(e,t){return e!==null&&t&&t(new uu(e)),b(!0)}function II(e,t){return e!==null&&t&&t(new au(e)),b(!0)}function EI(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return b(!0);let o=r.map(i=>_o(()=>{let s=Xr(t)??n,c=Qn(i,s),a=hI(c)?c.canActivate(t,e):je(s,()=>c(t,e));return Ft(a).pipe(Ge())}));return b(o).pipe(Yn())}function bI(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>cI(s)).filter(s=>s!==null).map(s=>_o(()=>{let c=s.guards.map(a=>{let u=Xr(s.node)??n,l=Qn(a,u),d=pI(l)?l.canActivateChild(r,e):je(u,()=>l(r,e));return Ft(d).pipe(Ge())});return b(c).pipe(Yn())}));return b(i).pipe(Yn())}function MI(e,t,n,r,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return b(!0);let s=i.map(c=>{let a=Xr(t)??o,u=Qn(c,a),l=gI(u)?u.canDeactivate(e,t,n,r):je(a,()=>u(e,t,n,r));return Ft(l).pipe(Ge())});return b(s).pipe(Yn())}function SI(e,t,n,r){let o=t.canLoad;if(o===void 0||o.length===0)return b(!0);let i=o.map(s=>{let c=Qn(s,e),a=fI(c)?c.canLoad(t,n):je(e,()=>c(t,n));return Ft(a)});return b(i).pipe(Yn(),jp(r))}function jp(e){return Es(te(t=>{if(typeof t!="boolean")throw us(e,t)}),_(t=>t===!0))}function TI(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return b(!0);let i=o.map(s=>{let c=Qn(s,e),a=mI(c)?c.canMatch(t,n):je(e,()=>c(t,n));return Ft(a)});return b(i).pipe(Yn(),jp(r))}var Qr=class{constructor(t){this.segmentGroup=t||null}},Kr=class extends Error{constructor(t){super(),this.urlTree=t}};function Un(e){return fn(new Qr(e))}function _I(e){return fn(new D(4e3,!1))}function xI(e){return fn(Fp(!1,_e.GuardRejected))}var vu=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return b(r);if(o.numberOfChildren>1||!o.children[S])return _I(`${t.redirectTo}`);o=o.children[S]}}applyRedirectCommands(t,n,r,o,i){if(typeof n!="string"){let c=n,{queryParams:a,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:g,title:m}=o,y=je(i,()=>c({params:f,data:g,queryParams:a,fragment:u,routeConfig:l,url:d,outlet:h,title:m}));if(y instanceof vt)throw new Kr(y);n=y}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new Kr(s);return s}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new vt(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let c=i.substring(1);r[o]=n[c]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([c,a])=>{s[c]=this.createSegmentGroup(t,a,r,o)}),new V(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new D(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}},yu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function NI(e,t,n,r,o){let i=Vp(e,t,n);return i.matched?(r=JC(t,r),TI(r,t,n,o).pipe(_(s=>s===!0?i:v({},yu)))):b(i)}function Vp(e,t,n){if(t.path==="**")return AI(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?v({},yu):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||SC)(n,e,t);if(!o)return v({},yu);let i={};Object.entries(o.posParams??{}).forEach(([c,a])=>{i[c]=a.path});let s=o.consumed.length>0?v(v({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function AI(e){return{matched:!0,parameters:e.length>0?yp(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function pp(e,t,n,r){return n.length>0&&PI(e,n,r)?{segmentGroup:new V(t,OI(r,new V(n,e.children))),slicedSegments:[]}:n.length===0&&FI(e,n,r)?{segmentGroup:new V(e.segments,RI(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new V(e.segments,e.children),slicedSegments:n}}function RI(e,t,n,r){let o={};for(let i of n)if(fs(e,t,i)&&!r[ze(i)]){let s=new V([],{});o[ze(i)]=s}return v(v({},r),o)}function OI(e,t){let n={};n[S]=t;for(let r of e)if(r.path===""&&ze(r)!==S){let o=new V([],{});n[ze(r)]=o}return n}function PI(e,t,n){return n.some(r=>fs(e,t,r)&&ze(r)!==S)}function FI(e,t,n){return n.some(r=>fs(e,t,r))}function fs(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function kI(e,t,n){return t.length===0&&!e.children[n]}var Du=class{};function LI(e,t,n,r,o,i,s="emptyOnly"){return new wu(e,t,n,r,o,s,i).recognize()}var jI=31,wu=class{constructor(t,n,r,o,i,s,c){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=c,this.applyRedirects=new vu(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new D(4002,`'${t.segmentGroup}'`)}recognize(){let t=pp(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(_(({children:n,rootSnapshot:r})=>{let o=new Te(r,n),i=new cs("",o),s=GC(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(t){let n=new zn([],Object.freeze({}),Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),S,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,S,n).pipe(_(r=>({children:r,rootSnapshot:n})),Dt(r=>{if(r instanceof Kr)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Qr?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,o,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,i):this.processSegment(t,n,r,r.segments,o,!0,i).pipe(_(s=>s instanceof Te?[s]:[]))}processChildren(t,n,r,o){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return W(i).pipe(wt(s=>{let c=r.children[s],a=XC(n,s);return this.processSegmentGroup(t,a,c,s,o)}),As((s,c)=>(s.push(...c),s)),Ct(null),gn(),X(s=>{if(s===null)return Un(r);let c=$p(s);return VI(c),b(c)}))}processSegment(t,n,r,o,i,s,c){return W(n).pipe(wt(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,o,i,s,c).pipe(Dt(u=>{if(u instanceof Qr)return b(null);throw u}))),Ge(a=>!!a),Dt(a=>{if(Lp(a))return kI(r,o,i)?b(new Du):Un(r);throw a}))}processSegmentAgainstRoute(t,n,r,o,i,s,c,a){return ze(r)!==s&&(s===S||!fs(o,i,r))?Un(o):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,r,i,s,a):this.allowRedirects&&c?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,a):Un(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,c){let{matched:a,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=Vp(n,o,i);if(!a)return Un(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>jI&&(this.allowRedirects=!1));let f=new zn(i,u,Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,gp(o),ze(o),o.component??o._loadedComponent??null,o,mp(o)),g=as(f,c,this.paramsInheritanceStrategy);f.params=Object.freeze(g.params),f.data=Object.freeze(g.data);let m=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(o,m).pipe(X(y=>this.processSegment(t,r,n,y.concat(h),s,!1,c)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let c=NI(n,r,o,t,this.urlSerializer);return r.path==="**"&&(n.children={}),c.pipe(ce(a=>a.matched?(t=r._injector??t,this.getChildConfig(t,r,o).pipe(ce(({routes:u})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=a,g=new zn(h,d,Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,gp(r),ze(r),r.component??r._loadedComponent??null,r,mp(r)),m=as(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(m.params),g.data=Object.freeze(m.data);let{segmentGroup:y,slicedSegments:T}=pp(n,h,f,u);if(T.length===0&&y.hasChildren())return this.processChildren(l,u,y,g).pipe(_(k=>new Te(g,k)));if(u.length===0&&T.length===0)return b(new Te(g,[]));let U=ze(r)===i;return this.processSegment(l,u,y,T,U?S:i,!0,g).pipe(_(k=>new Te(g,k instanceof Te?[k]:[])))}))):Un(n)))}getChildConfig(t,n,r){return n.children?b({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?b({routes:n._loadedRoutes,injector:n._loadedInjector}):SI(t,n,r,this.urlSerializer).pipe(X(o=>o?this.configLoader.loadChildren(t,n).pipe(te(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):xI(n))):b({routes:[],injector:t})}};function VI(e){e.sort((t,n)=>t.value.outlet===S?-1:n.value.outlet===S?1:t.value.outlet.localeCompare(n.value.outlet))}function $I(e){let t=e.value.routeConfig;return t&&t.path===""}function $p(e){let t=[],n=new Set;for(let r of e){if(!$I(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=$p(r.children);t.push(new Te(r.value,o))}return t.filter(r=>!n.has(r))}function gp(e){return e.data||{}}function mp(e){return e.resolve||{}}function UI(e,t,n,r,o,i){return X(s=>LI(e,t,n,r,s.extractedUrl,o,i).pipe(_(({state:c,tree:a})=>z(v({},s),{targetSnapshot:c,urlAfterRedirects:a}))))}function BI(e,t){return X(n=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return b(n);let i=new Set(o.map(a=>a.route)),s=new Set;for(let a of i)if(!s.has(a))for(let u of Up(a))s.add(u);let c=0;return W(s).pipe(wt(a=>i.has(a)?HI(a,r,e,t):(a.data=as(a,a.parent,e).resolve,b(void 0))),te(()=>c++),pn(1),X(a=>c===s.size?b(n):be))})}function Up(e){let t=e.children.map(n=>Up(n)).flat();return[e,...t]}function HI(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!Op(o)&&(i[Jr]=o.title),zI(i,e,t,r).pipe(_(s=>(e._resolvedData=s,e.data=as(e,e.parent,n).resolve,null)))}function zI(e,t,n,r){let o=Qc(e);if(o.length===0)return b({});let i={};return W(o).pipe(X(s=>GI(e[s],t,n,r).pipe(Ge(),te(c=>{if(c instanceof Yr)throw us(new Br,c);i[s]=c}))),pn(1),Ns(i),Dt(s=>Lp(s)?be:fn(s)))}function GI(e,t,n,r){let o=Xr(t)??r,i=Qn(e,o),s=i.resolve?i.resolve(t,n):je(o,()=>i(t,n));return Ft(s)}function Zc(e){return ce(t=>{let n=e(t);return n?W(n).pipe(_(()=>t)):b(t)})}var Bp=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===S);return r}getResolvedTitleForRoute(n){return n.data[Jr]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(qI),providedIn:"root"})}}return e})(),qI=(()=>{class e extends Bp{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(I(up))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Mu=new C("",{providedIn:"root",factory:()=>({})}),WI=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Je({type:e,selectors:[["ng-component"]],standalone:!0,features:[tt],decls:1,vars:0,template:function(r,o){r&1&&ft(0,"router-outlet")},dependencies:[tI],encapsulation:2})}}return e})();function Su(e){let t=e.children&&e.children.map(Su),n=t?z(v({},e),{children:t}):v({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==S&&(n.component=WI),n}var Tu=new C(""),ZI=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(Ic)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return b(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=Ft(n.loadComponent()).pipe(_(Hp),te(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Vt(()=>{this.componentLoaders.delete(n)})),o=new dn(r,()=>new re).pipe(ln());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return b({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=YI(r,this.compiler,n,this.onLoadEndListener).pipe(Vt(()=>{this.childrenLoaders.delete(r)})),s=new dn(i,()=>new re).pipe(ln());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function YI(e,t,n,r){return Ft(e.loadChildren()).pipe(_(Hp),X(o=>o instanceof yr||Array.isArray(o)?b(o):W(t.compileModuleAsync(o))),_(o=>{r&&r(e);let i,s,c=!1;return Array.isArray(o)?(s=o,c=!0):(i=o.create(n).injector,s=i.get(Tu,[],{optional:!0,self:!0}).flat()),{routes:s.map(Su),injector:i}}))}function QI(e){return e&&typeof e=="object"&&"default"in e}function Hp(e){return QI(e)?e.default:e}var _u=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(KI),providedIn:"root"})}}return e})(),KI=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),JI=new C("");var XI=new C(""),eE=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new re,this.transitionAbortSubject=new re,this.configLoader=p(ZI),this.environmentInjector=p(we),this.urlSerializer=p(Iu),this.rootContexts=p(ds),this.location=p(Tr),this.inputBindingEnabled=p(bu,{optional:!0})!==null,this.titleStrategy=p(Bp),this.options=p(Mu,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(_u),this.createViewTransition=p(JI,{optional:!0}),this.navigationErrorHandler=p(XI,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>b(void 0),this.rootComponentType=null;let n=o=>this.events.next(new iu(o)),r=o=>this.events.next(new su(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(z(v(v({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new oe({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:$r,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ae(i=>i.id!==0),_(i=>z(v({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),ce(i=>{let s=!1,c=!1;return b(i).pipe(ce(a=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",_e.SupersededByNewNavigation),be;this.currentTransition=i,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?z(v({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=a.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&l!=="reload"){let d="";return this.events.next(new tn(a.id,this.urlSerializer.serialize(a.rawUrl),d,eu.IgnoredSameUrlNavigation)),a.resolve(!1),be}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return b(a).pipe(ce(d=>{let h=this.transitions?.getValue();return this.events.next(new Gr(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?be:Promise.resolve(d)}),UI(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),te(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=z(v({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new os(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:g,extras:m}=a,y=new Gr(d,this.urlSerializer.serialize(h),f,g);this.events.next(y);let T=Ap(this.rootComponentType).snapshot;return this.currentTransition=i=z(v({},a),{targetSnapshot:T,urlAfterRedirects:h,extras:z(v({},m),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,b(i)}else{let d="";return this.events.next(new tn(a.id,this.urlSerializer.serialize(a.extractedUrl),d,eu.IgnoredByUrlHandlingStrategy)),a.resolve(!1),be}}),te(a=>{let u=new tu(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),_(a=>(this.currentTransition=i=z(v({},a),{guards:aI(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),i)),yI(this.environmentInjector,a=>this.events.next(a)),te(a=>{if(i.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw us(this.urlSerializer,a.guardsResult);let u=new nu(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(u)}),ae(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",_e.GuardRejected),!1)),Zc(a=>{if(a.guards.canActivateChecks.length)return b(a).pipe(te(u=>{let l=new ru(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),ce(u=>{let l=!1;return b(u).pipe(BI(this.paramsInheritanceStrategy,this.environmentInjector),te({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(u,"",_e.NoDataFromResolver)}}))}),te(u=>{let l=new ou(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}))}),Zc(a=>{let u=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(te(h=>{l.component=h}),_(()=>{})));for(let h of l.children)d.push(...u(h));return d};return To(u(a.targetSnapshot.root)).pipe(Ct(null),st(1))}),Zc(()=>this.afterPreactivation()),ce(()=>{let{currentSnapshot:a,targetSnapshot:u}=i,l=this.createViewTransition?.(this.environmentInjector,a.root,u.root);return l?W(l).pipe(_(()=>i)):b(i)}),_(a=>{let u=nI(n.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=i=z(v({},a),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,i}),te(()=>{this.events.next(new Wr)}),sI(this.rootContexts,n.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),st(1),te({next:a=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new en(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{s=!0}}),Os(this.transitionAbortSubject.pipe(te(a=>{throw a}))),Vt(()=>{!s&&!c&&this.cancelNavigationTransition(i,"",_e.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),Dt(a=>{if(c=!0,kp(a))this.events.next(new mt(i.id,this.urlSerializer.serialize(i.extractedUrl),a.message,a.cancellationCode)),iI(a)?this.events.next(new Wn(a.url,a.navigationBehaviorOptions)):i.resolve(!1);else{let u=new qr(i.id,this.urlSerializer.serialize(i.extractedUrl),a,i.targetSnapshot??void 0);try{let l=je(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof Yr){let{message:d,cancellationCode:h}=us(this.urlSerializer,l);this.events.next(new mt(i.id,this.urlSerializer.serialize(i.extractedUrl),d,h)),this.events.next(new Wn(l.redirectTo,l.navigationBehaviorOptions))}else{this.events.next(u);let d=n.errorHandler(a);i.resolve(!!d)}}catch(l){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(l)}}return be}))}))}cancelNavigationTransition(n,r,o){let i=new mt(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function tE(e){return e!==$r}var nE=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(rE),providedIn:"root"})}}return e})(),Cu=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},rE=(()=>{class e extends Cu{static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=ec(e)))(o||e)}})()}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),zp=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(oE),providedIn:"root"})}}return e})(),oE=(()=>{class e extends zp{constructor(){super(...arguments),this.location=p(Tr),this.urlSerializer=p(Iu),this.options=p(Mu,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(_u),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new vt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ap(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof Gr)this.stateMemento=this.createStateMemento();else if(n instanceof tn)this.rawUrlTree=r.initialUrl;else if(n instanceof os){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??o,r)}}else n instanceof Wr?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof mt&&(n.code===_e.GuardRejected||n.code===_e.NoDataFromResolver)?this.restoreHistory(r):n instanceof qr?this.restoreHistory(r,!0):n instanceof en&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=n instanceof vt?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let i=this.browserPageId,s=v(v({},r.extras.state),this.generateNgRouterState(r.id,i));this.location.replaceState(o,"",s)}else{let i=v(v({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",i)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.currentUrlTree===n.finalUrl&&i===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=ec(e)))(o||e)}})()}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),jr=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(jr||{});function iE(e,t){e.events.pipe(ae(n=>n instanceof en||n instanceof mt||n instanceof qr||n instanceof tn),_(n=>n instanceof en||n instanceof tn?jr.COMPLETE:(n instanceof mt?n.code===_e.Redirect||n.code===_e.SupersededByNewNavigation:!1)?jr.REDIRECTING:jr.FAILED),ae(n=>n!==jr.REDIRECTING),st(1)).subscribe(()=>{t()})}function sE(e){throw e}var aE={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},cE={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Gp=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=p(_i),this.stateManager=p(zp),this.options=p(Mu,{optional:!0})||{},this.pendingTasks=p(lt),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(eE),this.urlSerializer=p(Iu),this.location=p(Tr),this.urlHandlingStrategy=p(_u),this._events=new re,this.errorHandler=this.options.errorHandler||sE,this.navigated=!1,this.routeReuseStrategy=p(nE),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(Tu,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(bu,{optional:!0}),this.eventsSubscription=new Y,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof mt&&r.code!==_e.Redirect&&r.code!==_e.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof en)this.navigated=!0;else if(r instanceof Wn){let s=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),a=v({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||tE(o.source)},s);this.scheduleNavigation(c,$r,null,a,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}lE(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),$r,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){let i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let a=v({},o);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(i.state=a)}let c=this.parseUrl(n);this.scheduleNavigation(c,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Su),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:c,preserveFragment:a}=r,u=a?this.currentUrlTree.fragment:s,l=null;switch(c??this.options.defaultQueryParamsHandling){case"merge":l=v(v({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let h=o?o.snapshot:this.routerState.snapshot.root;d=Tp(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return _p(d,n,l,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Hr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,$r,null,r)}navigate(n,r={skipLocationChange:!1}){return uE(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=v({},aE):r===!1?o=v({},cE):o=r,Hr(n))return lp(this.currentUrlTree,n,o);let i=this.parseUrl(n);return lp(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let c,a,u;s?(c=s.resolve,a=s.reject,u=s.promise):u=new Promise((d,h)=>{c=d,a=h});let l=this.pendingTasks.add();return iE(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:c,reject:a,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function uE(e){for(let t=0;tn.\u0275providers)])}function fE(e){return e.routerState.root}function hE(){let e=p(Qe);return t=>{let n=e.get(Nt);if(t!==n.components[0])return;let r=e.get(Gp),o=e.get(pE);e.get(gE)===1&&r.initialNavigation(),e.get(mE,null,N.Optional)?.setUpPreloading(),e.get(dE,null,N.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var pE=new C("",{factory:()=>new re}),gE=new C("",{providedIn:"root",factory:()=>1});var mE=new C("");var Wp=[];var Zp={providers:[Eh({eventCoalescing:!0}),qp(Wp),Xh()]};var Yp=(()=>{class e{constructor(n){this.http=n}quitTt(){this.http.get("http://localhost:8888/quit",{responseType:"text"}).subscribe(()=>{window.close()})}static{this.\u0275fac=function(r){return new(r||e)(I(Rr))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Qp=(()=>{class e{constructor(n){this.ttService=n,this.now=new Date,this.selectedDate=new ie}handleChange(n){this.selectedDate.emit(n.target.valueAsDate||new Date)}handleQuit(){this.ttService.quitTt()}static{this.\u0275fac=function(r){return new(r||e)(pe(Yp))}}static{this.\u0275cmp=Je({type:e,selectors:[["app-navbar"]],outputs:{selectedDate:"selectedDate"},standalone:!0,features:[tt],decls:4,vars:0,consts:[["type","date",3,"change"],["id","quit-button",3,"click"]],template:function(r,o){r&1&&(Ce(0,"nav")(1,"input",0),et("change",function(s){return o.handleChange(s)}),ge(),Ce(2,"button",1),et("click",function(){return o.handleQuit()}),kn(3,"Quit"),ge()())},styles:["nav[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;gap:3rem;height:5vh;padding:5px}input[type=date][_ngcontent-%COMP%]{background-color:#0080ff;height:3.5rem;padding:15px;font-family:Roboto Mono,monospace;color:#fff;font-size:18px;border:none;outline:none;border-radius:5px}#quit-button[_ngcontent-%COMP%]{padding:13px 40px;height:45px;border-radius:10px;border:0;background-color:#ff3856;letter-spacing:1.5px;font-size:15px;transition:all .3s ease;box-shadow:#c92e46 0 10px;color:#fff;cursor:pointer}#quit-button[_ngcontent-%COMP%]:hover{box-shadow:#c92e46 0 7px}#quit-button[_ngcontent-%COMP%]:active{background-color:#ff3856;box-shadow:#c92e46 0 0;transform:translateY(5px);transition:.2s}"]})}}return e})();function xu(e,t){!t?.injector&&Ba(xu);let n=t?.injector??p(Qe),r=new nr(1),o=Mc(()=>{let i;try{i=e()}catch(s){jn(()=>r.error(s));return}jn(()=>r.next(i))},{injector:n,manualCleanup:!0});return n.get(Cr).onDestroy(()=>{o.destroy(),r.complete()}),r.asObservable()}var yE=e=>({height:e});function DE(e,t){if(e&1&&(Ce(0,"div",3)(1,"span",4),kn(2),Sr(3,"date"),ge()()),e&2){let n,r=Fn();Xe(2),Si(wc(3,1,(n=r.timeSlot())==null?null:n.End,"shortTime"))}}var Kp=(()=>{class e{constructor(){this.timeSlot=Ir(),this.scroll=Ir(1),this.lastElement=!1,this.heightPx=bc(()=>{let n=this.timeSlot();if(!n)return 40;let r=new Date(n.Start),i=(new Date(n.End).getTime()-r.getTime())/(1e3*60);return Math.max(40,i*this.scroll())}),this.last=gn}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Je({type:e,selectors:[["app-time-slot"]],inputs:{timeSlot:[1,"timeSlot"],scroll:[1,"scroll"],lastElement:"lastElement"},standalone:!0,features:[tt],decls:12,vars:9,consts:[[1,"time-slot",3,"ngStyle"],[1,"time-slot-divider"],[1,"line"],[1,"endpoint"],[1,"mr","d"],[1,"v-line"],[1,"content-container"],[1,"content"]],template:function(r,o){if(r&1&&(Ce(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4),kn(5),Sr(6,"date"),ge()(),ft(7,"div",5),Mr(8,DE,4,4,"div",3),ge(),Ce(9,"div",6)(10,"div",7),kn(11),ge()()()()),r&2){let i,s;Yt("ngStyle",ph(7,yE,o.heightPx()+"px")),Xe(5),Si(wc(6,4,(i=o.timeSlot())==null?null:i.Start,"shortTime")),Xe(3),Mi(o.lastElement?8:-1),Xe(3),Ti(" ",(s=o.timeSlot())==null?null:s.Text," ")}},dependencies:[jh,Uh],styles:[".time-slot[_ngcontent-%COMP%]{width:20rem}.time-slot[_ngcontent-%COMP%] .time-slot-divider[_ngcontent-%COMP%]{--endpoint-width: 20px;--endpoint-height: 10px;display:flex;height:100%}.time-slot[_ngcontent-%COMP%] .time-slot-divider[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%]{display:flex;height:100%;width:calc(100% - var(--endpoint-width));align-items:end}.time-slot[_ngcontent-%COMP%] .time-slot-divider[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:3px;text-align:center;height:calc(100% - var(--endpoint-height));width:100%;background-color:#3c9fc887;overflow:hidden}.time-slot[_ngcontent-%COMP%] .time-slot-divider[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:20px;align-items:center}.time-slot[_ngcontent-%COMP%] .time-slot-divider[_ngcontent-%COMP%] .line[_ngcontent-%COMP%] .v-line[_ngcontent-%COMP%]{height:calc(100% - var(--endpoint-height) * 1);width:3px;background-color:#575757bf;flex-grow:0;flex-shrink:0}.time-slot[_ngcontent-%COMP%] .time-slot-divider[_ngcontent-%COMP%] .line[_ngcontent-%COMP%] .endpoint[_ngcontent-%COMP%]{height:var(--endpoint-height);width:var(--endpoint-width);background-color:#000;flex-grow:0;flex-shrink:0}.d[_ngcontent-%COMP%]{display:block;width:7rem}.mr[_ngcontent-%COMP%]{position:relative;right:7rem}"]})}}return e})();var Jp=(()=>{class e{constructor(n){this.http=n}timeSlotsForDay$(n){return this.http.get(`http://localhost:8888/tt/${n.getTime()}`)}static{this.\u0275fac=function(r){return new(r||e)(I(Rr))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var CE=(e,t)=>t.ID;function IE(e,t){if(e&1&&ft(0,"app-time-slot",3),e&2){let n=t.$implicit,r=t.$index,o=t.$count,i=Fn(2);Yt("timeSlot",n)("scroll",i.scroll)("lastElement",r===o-1)}}function EE(e,t){if(e&1){let n=lh();Ce(0,"div",1),et("scroll",function(o){zd(n);let i=Fn();return Gd(i.handleScroll(o))}),Ce(1,"div",2),ch(2,IE,1,3,"app-time-slot",3,CE),ge()()}if(e&2){Fn();let n=hh(0);Xe(2),uh(n)}}var Xp=(()=>{class e{onWheel(n){n.deltaY>0?this.scroll-=1:n.deltaY<0&&(this.scroll+=1)}constructor(n){this.timeSlotService=n,this.scroll=1,this.date=Ir(),this.timeSlots$=xu(this.date).pipe(ae(r=>r!==void 0),ce(r=>this.timeSlotService.timeSlotsForDay$(r)))}handleScroll(n){console.log(n)}static{this.\u0275fac=function(r){return new(r||e)(pe(Jp))}}static{this.\u0275cmp=Je({type:e,selectors:[["app-timeline"]],hostBindings:function(r,o){r&1&&et("wheel",function(s){return o.onWheel(s)},!1,Mf)},inputs:{date:[1,"date"]},standalone:!0,features:[tt],decls:3,vars:4,consts:[[1,"timeline-container"],[1,"timeline-container",3,"scroll"],[1,"time-slot-container"],[3,"timeSlot","scroll","lastElement"]],template:function(r,o){if(r&1&&(Dc(0),Sr(1,"async"),Mr(2,EE,4,0,"div",0)),r&2){let i=fh(vh(1,1,o.timeSlots$));Xe(2),Mi(i?2:-1)}},dependencies:[$h,Kp],styles:[".timeline-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;margin-top:3rem;padding:1rem;border-radius:15px;max-height:95vh}.timeline-container[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{height:100%;width:2px;background-color:#000;border-radius:1px}"]})}}return e})();var eg=(()=>{class e{constructor(){this.title="angular-ui",this.selectedDate=new Date}handleDateSelected(n){this.selectedDate=n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Je({type:e,selectors:[["app-root"]],standalone:!0,features:[tt],decls:3,vars:1,consts:[[1,"home-container"],[3,"selectedDate"],[3,"date"]],template:function(r,o){r&1&&(Ce(0,"div",0)(1,"app-navbar",1),et("selectedDate",function(s){return o.handleDateSelected(s)}),ge(),ft(2,"app-timeline",2),ge()),r&2&&(Xe(2),Yt("date",o.selectedDate))},dependencies:[Qp,Xp],styles:[".home-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%}"]})}}return e})();cp(eg,Zp).catch(e=>console.error(e)); + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function er(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Y=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(M(r))try{r()}catch(i){t=i instanceof uo?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{qu(i)}catch(s){t=t??[],s instanceof uo?t=[...t,...s.errors]:t.push(s)}}if(t)throw new uo(t)}}add(t){var n;if(t&&t!==this)if(this.closed)qu(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&er(n,t)}remove(t){let{_finalizers:n}=this;n&&er(n,t),t instanceof e&&t._removeParent(this)}};Y.EMPTY=(()=>{let e=new Y;return e.closed=!0,e})();var ys=Y.EMPTY;function lo(e){return e instanceof Y||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function qu(e){M(e)?e():e.unsubscribe()}var Pe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var sn={setTimeout(e,t,...n){let{delegate:r}=sn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=sn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function fo(e){sn.setTimeout(()=>{let{onUnhandledError:t}=Pe;if(t)t(e);else throw e})}function tr(){}var Wu=Ds("C",void 0,void 0);function Zu(e){return Ds("E",void 0,e)}function Yu(e){return Ds("N",e,void 0)}function Ds(e,t,n){return{kind:e,value:t,error:n}}var kt=null;function an(e){if(Pe.useDeprecatedSynchronousErrorHandling){let t=!kt;if(t&&(kt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=kt;if(kt=null,n)throw r}}else e()}function Qu(e){Pe.useDeprecatedSynchronousErrorHandling&&kt&&(kt.errorThrown=!0,kt.error=e)}var Lt=class extends Y{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,lo(t)&&t.add(this)):this.destination=gg}static create(t,n,r){return new cn(t,n,r)}next(t){this.isStopped?Is(Yu(t),this):this._next(t)}error(t){this.isStopped?Is(Zu(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Is(Wu,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},hg=Function.prototype.bind;function ws(e,t){return hg.call(e,t)}var Cs=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ho(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ho(r)}else ho(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ho(n)}}},cn=class extends Lt{constructor(t,n,r){super();let o;if(M(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Pe.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ws(t.next,i),error:t.error&&ws(t.error,i),complete:t.complete&&ws(t.complete,i)}):o=t}this.destination=new Cs(o)}};function ho(e){Pe.useDeprecatedSynchronousErrorHandling?Qu(e):fo(e)}function pg(e){throw e}function Is(e,t){let{onStoppedNotification:n}=Pe;n&&sn.setTimeout(()=>n(e,t))}var gg={closed:!0,next:tr,error:pg,complete:tr};var un=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ce(e){return e}function Es(...e){return bs(e)}function bs(e){return e.length===0?Ce:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var F=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=vg(n)?n:new cn(n,r,o);return an(()=>{let{operator:s,source:c}=this;i.add(s?s.call(i,c):c?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Ku(r),new r((o,i)=>{let s=new cn({next:c=>{try{n(c)}catch(a){i(a),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[un](){return this}pipe(...n){return bs(n)(this)}toPromise(n){return n=Ku(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Ku(e){var t;return(t=e??Pe.Promise)!==null&&t!==void 0?t:Promise}function mg(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function vg(e){return e&&e instanceof Lt||mg(e)&&lo(e)}function Ms(e){return M(e?.lift)}function R(e){return t=>{if(Ms(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function O(e,t,n,r,o){return new Ss(e,t,n,r,o)}var Ss=class extends Lt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(c){try{n(c)}catch(a){t.error(a)}}:super._next,this._error=o?function(c){try{o(c)}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function ln(){return R((e,t)=>{let n=null;e._refCount++;let r=O(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var dn=class extends F{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Ms(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Y;let n=this.getSubject();t.add(this.source.subscribe(O(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Y.EMPTY)}return t}refCount(){return ln()(this)}};var Ju=on(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var re=(()=>{class e extends F{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new po(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Ju}next(n){an(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){an(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){an(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?ys:(this.currentObservers=null,i.push(n),new Y(()=>{this.currentObservers=null,er(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new F;return n.source=this,n}}return e.create=(t,n)=>new po(t,n),e})(),po=class extends re{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:ys}};var oe=class extends re{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Ts={now(){return(Ts.delegate||Date).now()},delegate:void 0};var nr=class extends re{constructor(t=1/0,n=1/0,r=Ts){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;se.complete());function Xu(e){return e&&M(e.schedule)}function el(e){return e[e.length-1]}function tl(e){return M(el(e))?e.pop():void 0}function Dt(e){return Xu(el(e))?e.pop():void 0}function rl(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function c(l){try{u(r.next(l))}catch(d){s(d)}}function a(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(c,a)}u((r=r.apply(e,t||[])).next())})}function nl(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function jt(e){return this instanceof jt?(this.v=e,this):new jt(e)}function ol(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function c(f,g){r[f]&&(o[f]=function(m){return new Promise(function(y,T){i.push([f,m,y,T])>1||a(f,m)})},g&&(o[f]=g(o[f])))}function a(f,g){try{u(r[f](g))}catch(m){h(i[0][3],m)}}function u(f){f.value instanceof jt?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){a("next",f)}function d(f){a("throw",f)}function h(f,g){f(g),i.shift(),i.length&&a(i[0][0],i[0][1])}}function il(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof nl=="function"?nl(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(c,a){s=e[i](s),o(c,a,s.done,s.value)})}}function o(i,s,c,a){Promise.resolve(a).then(function(u){i({value:u,done:c})},s)}}var go=e=>e&&typeof e.length=="number"&&typeof e!="function";function mo(e){return M(e?.then)}function vo(e){return M(e[un])}function yo(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function Do(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function yg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var wo=yg();function Io(e){return M(e?.[wo])}function Co(e){return ol(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield jt(n.read());if(o)return yield jt(void 0);yield yield jt(r)}}finally{n.releaseLock()}})}function Eo(e){return M(e?.getReader)}function ee(e){if(e instanceof F)return e;if(e!=null){if(vo(e))return Dg(e);if(go(e))return wg(e);if(mo(e))return Ig(e);if(yo(e))return sl(e);if(Io(e))return Cg(e);if(Eo(e))return Eg(e)}throw Do(e)}function Dg(e){return new F(t=>{let n=e[un]();if(M(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function wg(e){return new F(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,fo)})}function Cg(e){return new F(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function sl(e){return new F(t=>{bg(e,t).catch(n=>t.error(n))})}function Eg(e){return sl(Co(e))}function bg(e,t){var n,r,o,i;return rl(this,void 0,void 0,function*(){try{for(n=il(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function ye(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function bo(e,t=0){return R((n,r)=>{n.subscribe(O(r,o=>ye(r,e,()=>r.next(o),t),()=>ye(r,e,()=>r.complete(),t),o=>ye(r,e,()=>r.error(o),t)))})}function Mo(e,t=0){return R((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function al(e,t){return ee(e).pipe(Mo(t),bo(t))}function cl(e,t){return ee(e).pipe(Mo(t),bo(t))}function ul(e,t){return new F(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function ll(e,t){return new F(n=>{let r;return ye(n,t,()=>{r=e[wo](),ye(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>M(r?.return)&&r.return()})}function So(e,t){if(!e)throw new Error("Iterable cannot be null");return new F(n=>{ye(n,t,()=>{let r=e[Symbol.asyncIterator]();ye(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function dl(e,t){return So(Co(e),t)}function fl(e,t){if(e!=null){if(vo(e))return al(e,t);if(go(e))return ul(e,t);if(mo(e))return cl(e,t);if(yo(e))return So(e,t);if(Io(e))return ll(e,t);if(Eo(e))return dl(e,t)}throw Do(e)}function W(e,t){return t?fl(e,t):ee(e)}function C(...e){let t=Dt(e);return W(e,t)}function fn(e,t){let n=M(e)?e:()=>e,r=o=>o.error(n());return new F(t?o=>t.schedule(r,0,o):r)}function _s(e){return!!e&&(e instanceof F||M(e.lift)&&M(e.subscribe))}var it=on(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function _(e,t){return R((n,r)=>{let o=0;n.subscribe(O(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Mg}=Array;function Sg(e,t){return Mg(t)?e(...t):e(t)}function hl(e){return _(t=>Sg(e,t))}var{isArray:Tg}=Array,{getPrototypeOf:_g,prototype:xg,keys:Ng}=Object;function pl(e){if(e.length===1){let t=e[0];if(Tg(t))return{args:t,keys:null};if(Ag(t)){let n=Ng(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Ag(e){return e&&typeof e=="object"&&_g(e)===xg}function gl(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function To(...e){let t=Dt(e),n=tl(e),{args:r,keys:o}=pl(e);if(r.length===0)return W([],t);let i=new F(Rg(r,t,o?s=>gl(o,s):Ce));return n?i.pipe(hl(n)):i}function Rg(e,t,n=Ce){return r=>{ml(t,()=>{let{length:o}=e,i=new Array(o),s=o,c=o;for(let a=0;a{let u=W(e[a],t),l=!1;u.subscribe(O(r,d=>{i[a]=d,l||(l=!0,c--),c||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function ml(e,t,n){e?ye(n,e,t):t()}function vl(e,t,n,r,o,i,s,c){let a=[],u=0,l=0,d=!1,h=()=>{d&&!a.length&&!u&&t.complete()},f=m=>u{i&&t.next(m),u++;let y=!1;ee(n(m,l++)).subscribe(O(t,T=>{o?.(T),i?f(T):t.next(T)},()=>{y=!0},void 0,()=>{if(y)try{for(u--;a.length&&ug(T)):g(T)}h()}catch(T){t.error(T)}}))};return e.subscribe(O(t,f,()=>{d=!0,h()})),()=>{c?.()}}function X(e,t,n=1/0){return M(t)?X((r,o)=>_((i,s)=>t(r,i,o,s))(ee(e(r,o))),n):(typeof t=="number"&&(n=t),R((r,o)=>vl(r,o,e,n)))}function xs(e=1/0){return X(Ce,e)}function yl(){return xs(1)}function hn(...e){return yl()(W(e,Dt(e)))}function _o(e){return new F(t=>{ee(e()).subscribe(t)})}function ae(e,t){return R((n,r)=>{let o=0;n.subscribe(O(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Fe(e){return R((t,n)=>{let r=null,o=!1,i;r=t.subscribe(O(n,void 0,void 0,s=>{i=ee(e(s,Fe(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Dl(e,t,n,r,o){return(i,s)=>{let c=n,a=t,u=0;i.subscribe(O(s,l=>{let d=u++;a=c?e(a,l,d):(c=!0,l),r&&s.next(a)},o&&(()=>{c&&s.next(a),s.complete()})))}}function wt(e,t){return M(t)?X(e,t,1):X(e,1)}function It(e){return R((t,n)=>{let r=!1;t.subscribe(O(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function st(e){return e<=0?()=>Ee:R((t,n)=>{let r=0;t.subscribe(O(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Ns(e){return _(()=>e)}function xo(e=Og){return R((t,n)=>{let r=!1;t.subscribe(O(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Og(){return new it}function Vt(e){return R((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function qe(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ae((o,i)=>e(o,i,r)):Ce,st(1),n?It(t):xo(()=>new it))}function pn(e){return e<=0?()=>Ee:R((t,n)=>{let r=[];t.subscribe(O(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function gn(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ae((o,i)=>e(o,i,r)):Ce,pn(1),n?It(t):xo(()=>new it))}function As(e,t){return R(Dl(e,t,arguments.length>=2,!0))}function Rs(...e){let t=Dt(e);return R((n,r)=>{(t?hn(e,n,t):hn(e,n)).subscribe(r)})}function ce(e,t){return R((n,r)=>{let o=null,i=0,s=!1,c=()=>s&&!o&&r.complete();n.subscribe(O(r,a=>{o?.unsubscribe();let u=0,l=i++;ee(e(a,l)).subscribe(o=O(r,d=>r.next(t?t(a,d,l,u++):d),()=>{o=null,c()}))},()=>{s=!0,c()}))})}function Os(e){return R((t,n)=>{ee(e).subscribe(O(n,()=>n.complete(),tr)),!n.closed&&t.subscribe(n)})}function te(e,t,n){let r=M(e)||t||n?{next:e,error:t,complete:n}:e;return r?R((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let c=!0;o.subscribe(O(i,a=>{var u;(u=r.next)===null||u===void 0||u.call(r,a),i.next(a)},()=>{var a;c=!1,(a=r.complete)===null||a===void 0||a.call(r),i.complete()},a=>{var u;c=!1,(u=r.error)===null||u===void 0||u.call(r,a),i.error(a)},()=>{var a,u;c&&((a=r.unsubscribe)===null||a===void 0||a.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):Ce}var D=class extends Error{constructor(t,n){super(ii(t,n)),this.code=t}};function ii(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var rd=Symbol("InputSignalNode#UNSET"),Pg=z(v({},zu),{transformFn:void 0,applyValueToInputSignal(e,t){Hu(e,t)}});function od(e,t){let n=Object.create(Pg);n.value=e,n.transformFn=t?.transform;function r(){if(vs(n),n.value===rd)throw new D(-950,!1);return n.value}return r[nn]=n,r}function si(e){return{toString:e}.toString()}var No="__parameters__";function Fg(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function id(e,t,n){return si(()=>{let r=Fg(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return c.annotation=s,c;function c(a,u,l){let d=a.hasOwnProperty(No)?a[No]:Object.defineProperty(a,No,{value:[]})[No];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),a}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var rr=globalThis;function U(e){for(let t in e)if(e[t]===U)return t;throw Error("Could not find renamed property on target object.")}function be(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(be).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` +`);return n===-1?t:t.substring(0,n)}function wl(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var kg=U({__forward_ref__:U});function sd(e){return e.__forward_ref__=sd,e.toString=function(){return be(this())},e}function xe(e){return ad(e)?e():e}function ad(e){return typeof e=="function"&&e.hasOwnProperty(kg)&&e.__forward_ref__===sd}function w(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ai(e){return Il(e,ud)||Il(e,ld)}function cd(e){return ai(e)!==null}function Il(e,t){return e.hasOwnProperty(t)?e[t]:null}function Lg(e){let t=e&&(e[ud]||e[ld]);return t||null}function Cl(e){return e&&(e.hasOwnProperty(El)||e.hasOwnProperty(jg))?e[El]:null}var ud=U({\u0275prov:U}),El=U({\u0275inj:U}),ld=U({ngInjectableDef:U}),jg=U({ngInjectorDef:U}),I=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=w({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function dd(e){return e&&!!e.\u0275providers}var Vg=U({\u0275cmp:U}),$g=U({\u0275dir:U}),Ug=U({\u0275pipe:U}),Bg=U({\u0275mod:U}),jo=U({\u0275fac:U}),sr=U({__NG_ELEMENT_ID__:U}),bl=U({__NG_ENV_ID__:U});function fd(e){return typeof e=="string"?e:e==null?"":String(e)}function Hg(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():fd(e)}function zg(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new D(-200,e)}function Pa(e,t){throw new D(-201,!1)}var N=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(N||{}),Hs;function hd(){return Hs}function De(e){let t=Hs;return Hs=e,t}function pd(e,t,n){let r=ai(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&N.Optional)return null;if(t!==void 0)return t;Pa(e,"Injector")}var Gg={},ar=Gg,zs="__NG_DI_FLAG__",Vo="ngTempTokenPath",qg="ngTokenPath",Wg=/\n/gm,Zg="\u0275",Ml="__source",Dn;function Yg(){return Dn}function Ct(e){let t=Dn;return Dn=e,t}function Qg(e,t=N.Default){if(Dn===void 0)throw new D(-203,!1);return Dn===null?pd(e,void 0,t):Dn.get(e,t&N.Optional?null:void 0,t)}function E(e,t=N.Default){return(hd()||Qg)(xe(e),t)}function p(e,t=N.Default){return E(e,ci(t))}function ci(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Gs(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let c=t[s];i.push(s+":"+(typeof c=="string"?JSON.stringify(c):be(c)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Wg,` + `)}`}var Fa=gd(id("Optional"),8);var md=gd(id("SkipSelf"),4);function Bt(e,t){let n=e.hasOwnProperty(jo);return n?e[jo]:null}function ka(e,t){e.forEach(n=>Array.isArray(n)?ka(n,t):t(n))}function vd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function $o(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var cr={},In=[],Cn=new I(""),yd=new I("",-1),Dd=new I(""),Uo=class{get(t,n=ar){if(n===ar){let r=new Error(`NullInjectorError: No provider for ${be(t)}!`);throw r.name="NullInjectorError",r}return n}},wd=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(wd||{}),Ye=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ye||{}),Mt=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Mt||{});function em(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function qs(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(ke(r))return!1;s=!0}}}}return ke(r)||s}function ke(e){return(e&1)===0}function sm(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+c+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!ke(s)&&(t+=Tl(i,o),o=""),r=s,i=i||!ke(r);n++}return o!==""&&(t+=Tl(i,o)),t}function dm(e){return e.map(lm).join(",")}function fm(e){let t=[],n=[],r=1,o=2;for(;r{let t=Sd(e),n=z(v({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===wd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ye.Emulated,styles:e.styles||In,_:null,schemas:e.schemas||null,tView:null,id:""});Td(n);let r=e.dependencies;return n.directiveDefs=xl(r,!1),n.pipeDefs=xl(r,!0),n.id=gm(n),n})}function hm(e){return Ht(e)||Cd(e)}function pm(e){return e!==null}function _l(e,t){if(e==null)return cr;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,c=Mt.None;Array.isArray(o)?(c=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=c!==Mt.None?[r,c]:r,t[i]=s):n[i]=r}return n}function ui(e){return si(()=>{let t=Sd(e);return Td(t),t})}function Va(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ht(e){return e[Vg]||null}function Cd(e){return e[$g]||null}function Ed(e){return e[Ug]||null}function bd(e){let t=Ht(e)||Cd(e)||Ed(e);return t!==null?t.standalone:!1}function Md(e,t){let n=e[Bg]||null;if(!n&&t===!0)throw new Error(`Type ${be(e)} does not have '\u0275mod' property.`);return n}function Sd(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||cr,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||In,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:_l(e.inputs,t),outputs:_l(e.outputs),debugInfo:null}}function Td(e){e.features?.forEach(t=>t(e))}function xl(e,t){if(!e)return null;let n=t?Ed:hm;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(pm)}function gm(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function An(e){return{\u0275providers:e}}function mm(...e){return{\u0275providers:_d(!0,e),\u0275fromNgModule:!0}}function _d(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return ka(t,s=>{let c=s;Ws(c,i,[],r)&&(o||=[],o.push(c))}),o!==void 0&&xd(o,i),n}function xd(e,t){for(let n=0;n{t(i,r)})}}function Ws(e,t,n,r){if(e=xe(e),!e)return!1;let o=null,i=Cl(e),s=!i&&Ht(e);if(!i&&!s){let a=e.ngModule;if(i=Cl(a),i)o=a;else return!1}else{if(s&&!s.standalone)return!1;o=e}let c=r.has(o);if(s){if(c)return!1;if(r.add(o),s.dependencies){let a=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of a)Ws(u,t,n,r)}}else if(i){if(i.imports!=null&&!c){r.add(o);let u;try{ka(i.imports,l=>{Ws(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&xd(u,t)}if(!c){let u=Bt(o)||(()=>new o);t({provide:o,useFactory:u,deps:In},o),t({provide:Dd,useValue:o,multi:!0},o),t({provide:Cn,useValue:()=>E(o),multi:!0},o)}let a=i.providers;if(a!=null&&!c){let u=e;$a(a,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function $a(e,t){for(let n of e)dd(n)&&(n=n.\u0275providers),Array.isArray(n)?$a(n,t):t(n)}var vm=U({provide:String,useValue:U});function Nd(e){return e!==null&&typeof e=="object"&&vm in e}function ym(e){return!!(e&&e.useExisting)}function Dm(e){return!!(e&&e.useFactory)}function Zs(e){return typeof e=="function"}var li=new I(""),Ro={},wm={},Ps;function Ua(){return Ps===void 0&&(Ps=new Uo),Ps}var we=class{},ur=class extends we{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Qs(t,s=>this.processProvider(s)),this.records.set(yd,mn(void 0,this)),o.has("environment")&&this.records.set(we,mn(void 0,this));let i=this.records.get(li);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Dd,In,N.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=A(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),A(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=Ct(this),r=De(void 0),o;try{return t()}finally{Ct(n),De(r)}}get(t,n=ar,r=N.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(bl))return t[bl](this);r=ci(r);let o,i=Ct(this),s=De(void 0);try{if(!(r&N.SkipSelf)){let a=this.records.get(t);if(a===void 0){let u=Sm(t)&&ai(t);u&&this.injectableDefInScope(u)?a=mn(Ys(t),Ro):a=null,this.records.set(t,a)}if(a!=null)return this.hydrate(t,a)}let c=r&N.Self?Ua():this.parent;return n=r&N.Optional&&n===ar?null:n,c.get(t,n)}catch(c){if(c.name==="NullInjectorError"){if((c[Vo]=c[Vo]||[]).unshift(be(t)),i)throw c;return Jg(c,t,"R3InjectorError",this.source)}else throw c}finally{De(s),Ct(i)}}resolveInjectorInitializers(){let t=A(null),n=Ct(this),r=De(void 0),o;try{let i=this.get(Cn,In,N.Self);for(let s of i)s()}finally{Ct(n),De(r),A(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(be(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new D(205,!1)}processProvider(t){t=xe(t);let n=Zs(t)?t:xe(t&&t.provide),r=Cm(t);if(!Zs(t)&&t.multi===!0){let o=this.records.get(n);o||(o=mn(void 0,Ro,!0),o.factory=()=>Gs(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=A(null);try{return n.value===Ro&&(n.value=wm,n.value=n.factory()),typeof n.value=="object"&&n.value&&Mm(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{A(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=xe(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Ys(e){let t=ai(e),n=t!==null?t.factory:Bt(e);if(n!==null)return n;if(e instanceof I)throw new D(204,!1);if(e instanceof Function)return Im(e);throw new D(204,!1)}function Im(e){if(e.length>0)throw new D(204,!1);let n=Lg(e);return n!==null?()=>n.factory(e):()=>new e}function Cm(e){if(Nd(e))return mn(void 0,e.useValue);{let t=Em(e);return mn(t,Ro)}}function Em(e,t,n){let r;if(Zs(e)){let o=xe(e);return Bt(o)||Ys(o)}else if(Nd(e))r=()=>xe(e.useValue);else if(Dm(e))r=()=>e.useFactory(...Gs(e.deps||[]));else if(ym(e))r=()=>E(xe(e.useExisting));else{let o=xe(e&&(e.useClass||e.provide));if(bm(e))r=()=>new o(...Gs(e.deps));else return Bt(o)||Ys(o)}return r}function mn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function bm(e){return!!e.deps}function Mm(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Sm(e){return typeof e=="function"||typeof e=="object"&&e instanceof I}function Qs(e,t){for(let n of e)Array.isArray(n)?Qs(n,t):n&&dd(n)?Qs(n.\u0275providers,t):t(n)}function Ve(e,t){e instanceof ur&&e.assertNotDestroyed();let n,r=Ct(e),o=De(void 0);try{return t()}finally{Ct(r),De(o)}}function Ad(){return hd()!==void 0||Yg()!=null}function Ba(e){if(!Ad())throw new D(-203,!1)}function Tm(e){return typeof e=="function"}var ct=0,x=1,b=2,fe=3,Le=4,$e=5,lr=6,Bo=7,le=8,En=9,at=10,he=11,dr=12,Nl=13,Rn=14,je=15,bn=16,vn=17,Mn=18,di=19,Rd=20,Et=21,Oo=22,Ne=23,ue=25,Od=1;var zt=7,Ho=8,zo=9,de=10,Go=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Go||{});function bt(e){return Array.isArray(e)&&typeof e[Od]=="object"}function ut(e){return Array.isArray(e)&&e[Od]===!0}function Pd(e){return(e.flags&4)!==0}function fi(e){return e.componentOffset>-1}function Ha(e){return(e.flags&1)===1}function Dr(e){return!!e.template}function Ks(e){return(e[b]&512)!==0}var Js=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Fd(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function hi(){return kd}function kd(e){return e.type.prototype.ngOnChanges&&(e.setInput=xm),_m}hi.ngInherit=!0;function _m(){let e=jd(this),t=e?.current;if(t){let n=e.previous;if(n===cr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function xm(e,t,n,r,o){let i=this.declaredInputs[r],s=jd(e)||Nm(e,{previous:cr,current:null}),c=s.current||(s.current={}),a=s.previous,u=a[i];c[i]=new Js(u&&u.currentValue,n,a===cr),Fd(e,t,o,n)}var Ld="__ngSimpleChanges__";function jd(e){return e[Ld]||null}function Nm(e,t){return e[Ld]=t}var Al=null;var We=function(e,t,n){Al?.(e,t,n)},Am="svg",Rm="math";function Qe(e){for(;Array.isArray(e);)e=e[ct];return e}function Om(e,t){return Qe(t[e])}function Ue(e,t){return Qe(t[e.index])}function za(e,t){return e.data[t]}function Ga(e,t){return e[t]}function Tt(e,t){let n=t[e];return bt(n)?n:n[ct]}function qa(e){return(e[b]&128)===128}function Pm(e){return ut(e[fe])}function Sn(e,t){return t==null?null:e[t]}function Vd(e){e[vn]=0}function $d(e){e[b]&1024||(e[b]|=1024,qa(e)&&gi(e))}function Fm(e,t){for(;e>0;)t=t[Rn],e--;return t}function pi(e){return!!(e[b]&9216||e[Ne]?.dirty)}function Xs(e){e[at].changeDetectionScheduler?.notify(8),e[b]&64&&(e[b]|=1024),pi(e)&&gi(e)}function gi(e){e[at].changeDetectionScheduler?.notify(0);let t=Gt(e);for(;t!==null&&!(t[b]&8192||(t[b]|=8192,!qa(t)));)t=Gt(t)}function Ud(e,t){if((e[b]&256)===256)throw new D(911,!1);e[Et]===null&&(e[Et]=[]),e[Et].push(t)}function km(e,t){if(e[Et]===null)return;let n=e[Et].indexOf(t);n!==-1&&e[Et].splice(n,1)}function Gt(e){let t=e[fe];return ut(t)?t[fe]:t}var P={lFrame:Qd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Bd=!1;function Lm(){return P.lFrame.elementDepthCount}function jm(){P.lFrame.elementDepthCount++}function Vm(){P.lFrame.elementDepthCount--}function Hd(){return P.bindingsEnabled}function $m(){return P.skipHydrationRootTNode!==null}function Um(e){return P.skipHydrationRootTNode===e}function Bm(){P.skipHydrationRootTNode=null}function B(){return P.lFrame.lView}function Be(){return P.lFrame.tView}function He(){let e=zd();for(;e!==null&&e.type===64;)e=e.parent;return e}function zd(){return P.lFrame.currentTNode}function Hm(){let e=P.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function On(e,t){let n=P.lFrame;n.currentTNode=e,n.isParent=t}function Gd(){return P.lFrame.isParent}function zm(){P.lFrame.isParent=!1}function Gm(){return P.lFrame.contextLView}function qd(){return Bd}function Rl(e){Bd=e}function Wa(){let e=P.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function qm(e){return P.lFrame.bindingIndex=e}function mi(){return P.lFrame.bindingIndex++}function Wm(){return P.lFrame.inI18n}function Zm(e,t){let n=P.lFrame;n.bindingIndex=n.bindingRootIndex=e,ea(t)}function Ym(){return P.lFrame.currentDirectiveIndex}function ea(e){P.lFrame.currentDirectiveIndex=e}function Wd(e){P.lFrame.currentQueryIndex=e}function Qm(e){let t=e[x];return t.type===2?t.declTNode:t.type===1?e[$e]:null}function Zd(e,t,n){if(n&N.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&N.Host);)if(o=Qm(i),o===null||(i=i[Rn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=P.lFrame=Yd();return r.currentTNode=t,r.lView=e,!0}function Za(e){let t=Yd(),n=e[x];P.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Yd(){let e=P.lFrame,t=e===null?null:e.child;return t===null?Qd(e):t}function Qd(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Kd(){let e=P.lFrame;return P.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Jd=Kd;function Ya(){let e=Kd();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Km(e){return(P.lFrame.contextLView=Fm(e,P.lFrame.contextLView))[le]}function wr(){return P.lFrame.selectedIndex}function qt(e){P.lFrame.selectedIndex=e}function Jm(){let e=P.lFrame;return za(e.tView,e.selectedIndex)}function Xm(){return P.lFrame.currentNamespace}var Xd=!0;function Qa(){return Xd}function Ka(e){Xd=e}function ev(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=kd(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Ja(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[a]<0&&(e[vn]+=65536),(c>14>16&&(e[b]&3)===t&&(e[b]+=16384,Ol(c,i)):Ol(c,i)}var wn=-1,fr=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function nv(e){return e instanceof fr}function rv(e){return(e.flags&8)!==0}function ov(e){return(e.flags&16)!==0}var ks={},ta=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ci(r);let o=this.injector.get(t,ks,r);return o!==ks||n===ks?o:this.parentInjector.get(t,n,r)}};function tf(e){return e!==wn}function qo(e){return e&32767}function iv(e){return e>>16}function Wo(e,t){let n=iv(e),r=t;for(;n>0;)r=r[Rn],n--;return r}var na=!0;function Zo(e){let t=na;return na=e,t}var sv=256,nf=sv-1,rf=5,av=0,Ze={};function cv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(sr)&&(r=n[sr]),r==null&&(r=n[sr]=av++);let o=r&nf,i=1<>rf)]|=i}function of(e,t){let n=sf(e,t);if(n!==-1)return n;let r=t[x];r.firstCreatePass&&(e.injectorIndex=t.length,Ls(r.data,e),Ls(t,null),Ls(r.blueprint,null));let o=Xa(e,t),i=e.injectorIndex;if(tf(o)){let s=qo(o),c=Wo(o,t),a=c[x].data;for(let u=0;u<8;u++)t[i+u]=c[s+u]|a[s+u]}return t[i+8]=o,i}function Ls(e,t){e.push(0,0,0,0,0,0,0,0,t)}function sf(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Xa(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=df(o),r===null)return wn;if(n++,o=o[Rn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return wn}function uv(e,t,n){cv(e,t,n)}function af(e,t,n){if(n&N.Optional||e!==void 0)return e;Pa(t,"NodeInjector")}function cf(e,t,n,r){if(n&N.Optional&&r===void 0&&(r=null),!(n&(N.Self|N.Host))){let o=e[En],i=De(void 0);try{return o?o.get(t,r,n&N.Optional):pd(t,r,n&N.Optional)}finally{De(i)}}return af(r,t,n)}function uf(e,t,n,r=N.Default,o){if(e!==null){if(t[b]&2048&&!(r&N.Self)){let s=pv(e,t,n,r,Ze);if(s!==Ze)return s}let i=lf(e,t,n,r,Ze);if(i!==Ze)return i}return cf(t,n,r,o)}function lf(e,t,n,r,o){let i=fv(n);if(typeof i=="function"){if(!Zd(t,e,r))return r&N.Host?af(o,n,r):cf(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&N.Optional))Pa(n);else return s}finally{Jd()}}else if(typeof i=="number"){let s=null,c=sf(e,t),a=wn,u=r&N.Host?t[je][$e]:null;for((c===-1||r&N.SkipSelf)&&(a=c===-1?Xa(e,t):t[c+8],a===wn||!Fl(r,!1)?c=-1:(s=t[x],c=qo(a),t=Wo(a,t)));c!==-1;){let l=t[x];if(Pl(i,c,l.data)){let d=lv(c,t,n,s,r,u);if(d!==Ze)return d}a=t[c+8],a!==wn&&Fl(r,t[x].data[c+8]===u)&&Pl(i,c,t)?(s=l,c=qo(a),t=Wo(a,t)):c=-1}}return o}function lv(e,t,n,r,o,i){let s=t[x],c=s.data[e+8],a=r==null?fi(c)&&na:r!=s&&(c.type&3)!==0,u=o&N.Host&&i===c,l=dv(c,s,n,a,u);return l!==null?hr(t,s,l,c):Ze}function dv(e,t,n,r,o){let i=e.providerIndexes,s=t.data,c=i&1048575,a=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?c:c+l,h=o?c+l:u;for(let f=d;f=a&&g.type===n)return f}if(o){let f=s[a];if(f&&Dr(f)&&f.type===n)return a}return null}function hr(e,t,n,r){let o=e[n],i=t.data;if(nv(o)){let s=o;s.resolving&&zg(Hg(i[n]));let c=Zo(s.canSeeViewProviders);s.resolving=!0;let a,u=s.injectImpl?De(s.injectImpl):null,l=Zd(e,r,N.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&ev(n,i[n],t)}finally{u!==null&&De(u),Zo(c),s.resolving=!1,Jd()}}return o}function fv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(sr)?e[sr]:void 0;return typeof t=="number"?t>=0?t&nf:hv:t}function Pl(e,t,n){let r=1<>rf)]&r)}function Fl(e,t){return!(e&N.Self)&&!(e&N.Host&&t)}var Ut=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return uf(this._tNode,this._lView,t,ci(r),n)}};function hv(){return new Ut(He(),B())}function ec(e){return si(()=>{let t=e.prototype.constructor,n=t[jo]||ra(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[jo]||ra(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function ra(e){return ad(e)?()=>{let t=ra(xe(e));return t&&t()}:Bt(e)}function pv(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[b]&2048&&!(s[b]&512);){let c=lf(i,s,n,r|N.Self,Ze);if(c!==Ze)return c;let a=i.parent;if(!a){let u=s[Rd];if(u){let l=u.get(n,Ze,r);if(l!==Ze)return l}a=df(s),s=s[Rn]}i=a}return o}function df(e){let t=e[x],n=t.type;return n===2?t.declTNode:n===1?e[$e]:null}function kl(e,t=null,n=null,r){let o=ff(e,t,n,r);return o.resolveInjectorInitializers(),o}function ff(e,t=null,n=null,r,o=new Set){let i=[n||In,mm(e)];return r=r||(typeof e=="object"?void 0:be(e)),new ur(i,t||Ua(),r||null,o)}var Ke=class e{static{this.THROW_IF_NOT_FOUND=ar}static{this.NULL=new Uo}static create(t,n){if(Array.isArray(t))return kl({name:""},n,t,"");{let r=t.name??"";return kl({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=w({token:e,providedIn:"any",factory:()=>E(yd)})}static{this.__NG_ELEMENT_ID__=-1}};var gv=new I("");gv.__NG_ELEMENT_ID__=e=>{let t=He();if(t===null)throw new D(204,!1);if(t.type&2)return t.value;if(e&N.Optional)return null;throw new D(204,!1)};var mv="ngOriginalError";function js(e){return e[mv]}var hf=!0,Ir=(()=>{class e{static{this.__NG_ELEMENT_ID__=vv}static{this.__NG_ENV_ID__=n=>n}}return e})(),oa=class extends Ir{constructor(t){super(),this._lView=t}onDestroy(t){return Ud(this._lView,t),()=>km(this._lView,t)}};function vv(){return new oa(B())}var lt=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new oe(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}}return e})();var ia=class extends re{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Ad()&&(this.destroyRef=p(Ir,{optional:!0})??void 0,this.pendingTasks=p(lt,{optional:!0})??void 0)}emit(t){let n=A(null);try{super.next(t)}finally{A(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let a=t;o=a.next?.bind(a),i=a.error?.bind(a),s=a.complete?.bind(a)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let c=super.subscribe({next:o,error:i,complete:s});return t instanceof Y&&t.add(c),c}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},ie=ia;function Yo(...e){}function pf(e){let t,n;function r(){e=Yo;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Ll(e){return queueMicrotask(()=>e()),()=>{e=Yo}}var tc="isAngularZone",Qo=tc+"_ID",yv=0,q=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ie(!1),this.onMicrotaskEmpty=new ie(!1),this.onStable=new ie(!1),this.onError=new ie(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=hf}=t;if(typeof Zone>"u")throw new D(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Iv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(tc)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new D(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new D(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Dv,Yo,Yo);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Dv={};function nc(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function wv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){pf(()=>{e.callbackScheduled=!1,sa(e),e.isCheckStableRunning=!0,nc(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),sa(e)}function Iv(e){let t=()=>{wv(e)},n=yv++;e._inner=e._inner.fork({name:"angular",properties:{[tc]:!0,[Qo]:n,[Qo+n]:!0},onInvokeTask:(r,o,i,s,c,a)=>{if(Cv(a))return r.invokeTask(i,s,c,a);try{return jl(e),r.invokeTask(i,s,c,a)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Vl(e)}},onInvoke:(r,o,i,s,c,a,u)=>{try{return jl(e),r.invoke(i,s,c,a,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Ev(a)&&t(),Vl(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,sa(e),nc(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function sa(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function jl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Vl(e){e._nesting--,nc(e)}var aa=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ie,this.onMicrotaskEmpty=new ie,this.onStable=new ie,this.onError=new ie}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Cv(e){return gf(e,"__ignore_ng_zone__")}function Ev(e){return gf(e,"__scheduler_tick__")}function gf(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Je=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&js(t);for(;n&&js(n);)n=js(n);return n||null}},bv=new I("",{providedIn:"root",factory:()=>{let e=p(q),t=p(Je);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function $l(e,t){return od(e,t)}function Mv(e){return od(rd,e)}var Pn=($l.required=Mv,$l);function Sv(){return rc(He(),B())}function rc(e,t){return new Cr(Ue(e,t))}var Cr=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=Sv}}return e})();function mf(e){return(e.flags&128)===128}var vf=new Map,Tv=0;function _v(){return Tv++}function xv(e){vf.set(e[di],e)}function ca(e){vf.delete(e[di])}var Ul="__ngContext__";function Wt(e,t){bt(t)?(e[Ul]=t[di],xv(t)):e[Ul]=t}function yf(e){return wf(e[dr])}function Df(e){return wf(e[Le])}function wf(e){for(;e!==null&&!ut(e);)e=e[Le];return e}var ua;function If(e){ua=e}function Nv(){if(ua!==void 0)return ua;if(typeof document<"u")return document;throw new D(210,!1)}var oc=new I("",{providedIn:"root",factory:()=>Av}),Av="ng",ic=new I(""),_t=new I("",{providedIn:"platform",factory:()=>"unknown"});var sc=new I("",{providedIn:"root",factory:()=>Nv().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Rv="h",Ov="b";var Pv=()=>null;function ac(e,t,n=!1){return Pv(e,t,n)}var Cf=!1,Fv=new I("",{providedIn:"root",factory:()=>Cf});function Ef(e){return e.ownerDocument.defaultView}function bf(e){return e instanceof Function?e():e}var xt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(xt||{}),kv;function cc(e,t){return kv(e,t)}function yn(e,t,n,r,o){if(r!=null){let i,s=!1;ut(r)?i=r:bt(r)&&(s=!0,r=r[ct]);let c=Qe(r);e===0&&n!==null?o==null?_f(t,n,c):Ko(t,n,c,o||null,!0):e===1&&n!==null?Ko(t,n,c,o||null,!0):e===2?Kv(t,c,s):e===3&&t.destroyNode(c),i!=null&&Xv(t,e,i,n,o)}}function Lv(e,t){return e.createText(t)}function jv(e,t,n){e.setValue(t,n)}function Mf(e,t,n){return e.createElement(t,n)}function Vv(e,t){Sf(e,t),t[ct]=null,t[$e]=null}function $v(e,t,n,r,o,i){r[ct]=o,r[$e]=t,yi(e,r,n,1,o,i)}function Sf(e,t){t[at].changeDetectionScheduler?.notify(9),yi(e,t,t[he],2,null,null)}function Uv(e){let t=e[dr];if(!t)return Vs(e[x],e);for(;t;){let n=null;if(bt(t))n=t[dr];else{let r=t[de];r&&(n=r)}if(!n){for(;t&&!t[Le]&&t!==e;)bt(t)&&Vs(t[x],t),t=t[fe];t===null&&(t=e),bt(t)&&Vs(t[x],t),n=t&&t[Le]}t=n}}function Bv(e,t,n,r){let o=de+r,i=n.length;r>0&&(n[o-1][Le]=t),r0&&(e[n-1][Le]=r[Le]);let i=$o(e,de+t);Vv(r[x],r);let s=i[Mn];s!==null&&s.detachView(i[x]),r[fe]=null,r[Le]=null,r[b]&=-129}return r}function vi(e,t){if(!(t[b]&256)){let n=t[he];n.destroyNode&&yi(e,t,n,3,null,null),Uv(t)}}function Vs(e,t){if(t[b]&256)return;let n=A(null);try{t[b]&=-129,t[b]|=256,t[Ne]&&so(t[Ne]),zv(e,t),Hv(e,t),t[x].type===1&&t[he].destroy();let r=t[bn];if(r!==null&&ut(t[fe])){r!==t[fe]&&uc(r,t);let o=t[Mn];o!==null&&o.detachView(e)}ca(t)}finally{A(n)}}function Hv(e,t){let n=e.cleanup,r=t[Bo];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[Bo]=null);let o=t[Et];if(o!==null){t[Et]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===Ye.None||i===Ye.Emulated)return null}return Ue(r,n)}}function Ko(e,t,n,r,o){e.insertBefore(t,n,r,o)}function _f(e,t,n){e.appendChild(t,n)}function Bl(e,t,n,r,o){r!==null?Ko(e,t,n,r,o):_f(e,t,n)}function xf(e,t){return e.parentNode(t)}function Wv(e,t){return e.nextSibling(t)}function Zv(e,t,n){return Qv(e,t,n)}function Yv(e,t,n){return e.type&40?Ue(e,n):null}var Qv=Yv,Hl;function lc(e,t,n,r){let o=Gv(e,r,t),i=t[he],s=r.parent||t[$e],c=Zv(s,r,t);if(o!=null)if(Array.isArray(n))for(let a=0;aue&&Of(e,t,ue,!1),We(s?2:0,o),n(r,o)}finally{qt(i),We(s?3:1,o)}}function Lf(e,t,n){if(Pd(t)){let r=A(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function ay(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,c=0;return $m()&&(c|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:c,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function zl(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let c,a=Mt.None;Array.isArray(s)?(c=s[0],a=s[1]):c=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}e===0?Gl(r,n,u,c,a):Gl(r,n,u,c)}return r}function Gl(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function cy(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,c=[],a=null,u=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function py(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;fi(n)&&Iy(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||of(n,t),Wt(r,t);let s=n.initialInputs;for(let c=o;c{gi(e.lView)},consumerOnSignalRead(){this.lView[Ne]=this}});function Fy(e){let t=e[Ne]??Object.create(ky);return t.lView=e,t}var ky=z(v({},rn),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Gt(e.lView);for(;t&&!Qf(t[x]);)t=Gt(t);t&&$d(t)},consumerOnSignalRead(){this.lView[Ne]=this}});function Qf(e){return e.type!==2}var Ly=100;function Kf(e,t=!0,n=0){let r=e[at],o=r.rendererFactory,i=!1;i||o.begin?.();try{jy(e,n)}catch(s){throw t&&qf(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function jy(e,t){let n=qd();try{Rl(!0),ha(e,t);let r=0;for(;pi(e);){if(r===Ly)throw new D(103,!1);r++,ha(e,1)}}finally{Rl(n)}}function Vy(e,t,n,r){let o=t[b];if((o&256)===256)return;let i=!1,s=!1;!i&&t[at].inlineEffectRunner?.flush(),Za(t);let c=!0,a=null,u=null;i||(Qf(e)?(u=Ay(t),a=Xn(u)):Ou()===null?(c=!1,u=Fy(t),a=Xn(u)):t[Ne]&&(so(t[Ne]),t[Ne]=null));try{Vd(t),qm(e.bindingStartIndex),n!==null&&kf(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Po(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Fo(t,f,0,null),Fs(t,0)}if(s||$y(t),Jf(t,0),e.contentQueries!==null&&Gf(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Po(t,f)}else{let f=e.contentHooks;f!==null&&Fo(t,f,1),Fs(t,1)}ty(e,t);let d=e.components;d!==null&&eh(t,d,0);let h=e.viewQuery;if(h!==null&&fa(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Po(t,f)}else{let f=e.viewHooks;f!==null&&Fo(t,f,2),Fs(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Oo]){for(let f of t[Oo])f();t[Oo]=null}i||(t[b]&=-73)}catch(l){throw i||gi(t),l}finally{u!==null&&(oo(u,a),c&&Oy(u)),Ya()}}function Jf(e,t){for(let n=yf(e);n!==null;n=Df(n))for(let r=de;r-1&&(pr(t,r),$o(n,r))}this._attachedToViewContainer=!1}vi(this._lView[x],this._lView)}onDestroy(t){Ud(this._lView,t)}markForCheck(){mc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[b]&=-129}reattach(){Xs(this._lView),this._lView[b]|=128}detectChanges(){this._lView[b]|=1024,Kf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Ks(this._lView),n=this._lView[bn];n!==null&&!t&&uc(n,this._lView),Sf(this._lView[x],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=t;let n=Ks(this._lView),r=this._lView[bn];r!==null&&!n&&Tf(r,this._lView),Xs(this._lView)}};var l_=new RegExp(`^(\\d+)*(${Ov}|${Rv})*(.*)`);var By=()=>null;function mr(e,t){return By(e,t)}var _n=class{},Ci=new I("",{providedIn:"root",factory:()=>!1});var th=new I(""),nh=new I(""),pa=class{},Xo=class{};function Hy(e){let t=Error(`No component factory found for ${be(e)}.`);return t[zy]=e,t}var zy="ngComponent";var ga=class{resolveComponentFactory(t){throw Hy(t)}},xn=class{static{this.NULL=new ga}},Nn=class{},Ei=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>Gy()}}return e})();function Gy(){let e=B(),t=He(),n=Tt(t.index,e);return(bt(n)?n:e)[he]}var qy=(()=>{class e{static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>null})}}return e})();function ma(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Af(e,n,i.join(" "))}}function Xy(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static{this.__NG_ELEMENT_ID__=tD}}return e})();function tD(){let e=He();return rD(e,B())}var nD=bi,rh=class extends nD{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return rc(this._hostTNode,this._hostLView)}get injector(){return new Ut(this._hostTNode,this._hostLView)}get parentInjector(){let t=Xa(this._hostTNode,this._hostLView);if(tf(t)){let n=Wo(t,this._hostLView),r=qo(t),o=n[x].data[r+8];return new Ut(o,n)}else return new Ut(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Wl(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-de}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=mr(this._lContainer,t.ssrId),c=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(c,o,gr(this._hostTNode,s)),c}createComponent(t,n,r,o,i){let s=t&&!Tm(t),c;if(s)c=n;else{let g=n||{};c=g.index,r=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}let a=s?t:new vr(Ht(t)),u=r||this.parentInjector;if(!i&&a.ngModule==null){let m=(s?u:this.parentInjector).get(we,null);m&&(i=m)}let l=Ht(a.componentType??{}),d=mr(this._lContainer,l?.id??null),h=d?.firstChild??null,f=a.create(u,o,h,i);return this.insertImpl(f.hostView,c,gr(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Pm(o)){let c=this.indexOf(t);if(c!==-1)this.detach(c);else{let a=o[fe],u=new rh(a,a[$e],a[fe]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Ii(s,o,i,r),t.attachToViewContainerRef(),vd($s(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Wl(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=pr(this._lContainer,n);r&&($o($s(this._lContainer),n),vi(r[x],r))}detach(t){let n=this._adjustIndex(t,-1),r=pr(this._lContainer,n);return r&&$o($s(this._lContainer),n)!=null?new Tn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Wl(e){return e[Ho]}function $s(e){return e[Ho]||(e[Ho]=[])}function rD(e,t){let n,r=t[e.index];return ut(r)?n=r:(n=zf(r,t,null,e),t[e.index]=n,wi(t,n)),iD(n,t,e,r),new rh(n,e,t)}function oD(e,t){let n=e[he],r=n.createComment(""),o=Ue(t,e),i=xf(n,o);return Ko(n,i,r,Wv(n,o),!1),r}var iD=cD,sD=()=>!1;function aD(e,t,n){return sD(e,t,n)}function cD(e,t,n,r){if(e[zt])return;let o;n.type&8?o=Qe(r):o=oD(t,n),e[zt]=o}var Zl=new Set;function dt(e){Zl.has(e)||(Zl.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var St=class{},yr=class{};var ya=class extends St{constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ei(this);let i=Md(t);this._bootstrapComponents=bf(i.bootstrap),this._r3Injector=ff(t,n,[{provide:St,useValue:this},{provide:xn,useValue:this.componentFactoryResolver},...r],be(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Da=class extends yr{constructor(t){super(),this.moduleType=t}create(t){return new ya(this.moduleType,t,[])}};var ti=class extends St{constructor(t){super(),this.componentFactoryResolver=new ei(this),this.instance=null;let n=new ur([...t.providers,{provide:St,useValue:this},{provide:xn,useValue:this.componentFactoryResolver}],t.parent||Ua(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function vc(e,t,n=null){return new ti({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function oh(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function ih(e,t,n){return e[t]=n}function Zt(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function uD(e,t,n,r){let o=Zt(e,t,n);return Zt(e,t+1,r)||o}function lD(e){return(e.flags&32)===32}function dD(e,t,n,r,o,i,s,c,a){let u=t.consts,l=Er(t,e,4,s||null,c||null);Uf(t,n,l,Sn(u,a)),Ja(t,l);let d=l.tView=fc(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function wa(e,t,n,r,o,i,s,c,a,u){let l=n+ue,d=t.firstCreatePass?dD(l,t,e,r,o,i,s,c,a):t.data[l];On(d,!1);let h=fD(t,e,d,n);Qa()&&lc(t,e,h,d),Wt(h,e);let f=zf(h,e,h,d);return e[l]=f,wi(e,f),aD(f,d,e),Ha(d)&&jf(t,e,d),a!=null&&Vf(e,d,u),d}function br(e,t,n,r,o,i,s,c){let a=B(),u=Be(),l=Sn(u.consts,i);return wa(a,u,e,t,n,r,o,l,s,c),br}var fD=hD;function hD(e,t,n,r){return Ka(!0),t[he].createComment("")}var ir=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(ir||{}),pD=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}}return e})(),Yl=class e{constructor(){this.ngZone=p(q),this.scheduler=p(_n),this.errorHandler=p(Je,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[ir.EarlyRead,ir.Write,ir.MixedReadWrite,ir.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}};function gD(e,t,n,r){return Zt(e,mi(),n)?t+fd(n)+r:Fn}function Yt(e,t,n){let r=B(),o=mi();if(Zt(r,o,t)){let i=Be(),s=Jm();ly(i,s,r,e,t,r[he],n,!1)}return Yt}function Ql(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";hc(e,n,i[s],s,r)}var Ia=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Us(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function mD(e,t,n){let r,o,i=0,s=e.length-1,c=void 0;if(Array.isArray(t)){let a=t.length-1;for(;i<=s&&i<=a;){let u=e.at(i),l=t[i],d=Us(i,u,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let h=e.at(s),f=t[a],g=Us(s,h,a,f,n);if(g!==0){g<0&&e.updateValue(s,f),s--,a--;continue}let m=n(i,u),y=n(s,h),T=n(i,l);if(Object.is(T,y)){let $=n(a,f);Object.is($,m)?(e.swap(i,s),e.updateValue(s,f),a--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new ni,o??=Jl(e,i,s,n),Ca(e,r,i,T))e.updateValue(i,l),i++,s++;else if(o.has(T))r.set(m,e.detach(i)),s--;else{let $=e.create(i,t[i]);e.attach(i,$),i++,s++}}for(;i<=a;)Kl(e,r,n,i,t[i]),i++}else if(t!=null){let a=t[Symbol.iterator](),u=a.next();for(;!u.done&&i<=s;){let l=e.at(i),d=u.value,h=Us(i,l,i,d,n);if(h!==0)h<0&&e.updateValue(i,d),i++,u=a.next();else{r??=new ni,o??=Jl(e,i,s,n);let f=n(i,d);if(Ca(e,r,i,f))e.updateValue(i,d),i++,s++,u=a.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,u=a.next();else{let g=n(i,l);r.set(g,e.detach(i)),s--}}}for(;!u.done;)Kl(e,r,n,e.length,u.value),u=a.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(a=>{e.destroy(a)})}function Ca(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Kl(e,t,n,r,o){if(Ca(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Jl(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var ni=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function Mi(e,t){dt("NgControlFlow");let n=B(),r=mi(),o=n[r]!==Fn?n[r]:-1,i=o!==-1?ri(n,ue+o):void 0,s=0;if(Zt(n,r,e)){let c=A(null);try{if(i!==void 0&&Zf(i,s),e!==-1){let a=ue+e,u=ri(n,a),l=Sa(n[x],a),d=mr(u,l.tView.ssrId),h=gc(n,l,t,{dehydratedView:d});Ii(u,h,s,gr(l,d))}}finally{A(c)}}else if(i!==void 0){let c=Wf(i,s);c!==void 0&&(c[le]=t)}}var Ea=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-de}};var ba=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function sh(e,t,n,r,o,i,s,c,a,u,l,d,h){dt("NgControlFlow");let f=B(),g=Be(),m=a!==void 0,y=B(),T=c?s.bind(y[je][le]):s,$=new ba(m,T);y[ue+e]=$,wa(f,g,e+1,t,n,r,o,Sn(g.consts,i)),m&&wa(f,g,e+2,a,u,l,d,Sn(g.consts,h))}var Ma=class extends Ia{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-de}at(t){return this.getLView(t)[le].$implicit}attach(t,n){let r=n[lr];this.needsIndexUpdate||=t!==this.length,Ii(this.lContainer,n,t,gr(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,vD(this.lContainer,t)}create(t,n){let r=mr(this.lContainer,this.templateTNode.tView.ssrId),o=gc(this.hostLView,this.templateTNode,new Ea(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){vi(t[x],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[le].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(Ka(!0),Mf(r,o,Xm()));var $t=void 0;function ID(e){let t=e,n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var CD=["en",[["a","p"],["AM","PM"],$t],[["AM","PM"],$t,$t],[["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"]],$t,[["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"]],$t,[["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}",$t,"{1} 'at' {0}",$t],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",ID],Bs={};function Ae(e){let t=ED(e),n=Xl(t);if(n)return n;let r=t.split("-")[0];if(n=Xl(r),n)return n;if(r==="en")return CD;throw new D(701,!1)}function Xl(e){return e in Bs||(Bs[e]=rr.ng&&rr.ng.common&&rr.ng.common.locales&&rr.ng.common.locales[e]),Bs[e]}var Z=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Z||{});function ED(e){return e.toLowerCase().replace(/_/g,"-")}var oi="en-US";var bD=oi;function MD(e){typeof e=="string"&&(bD=e.toLowerCase().replace(/_/g,"-"))}var SD=(e,t,n)=>{};function ht(e,t,n,r){let o=B(),i=Be(),s=He();return _D(i,o,o[he],s,e,t,r),ht}function TD(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ia?c[a]:null}typeof s=="string"&&(i+=2)}return null}function _D(e,t,n,r,o,i,s){let c=Ha(r),u=e.firstCreatePass&&My(e),l=t[le],d=by(t),h=!0;if(r.type&3||s){let m=Ue(r,t),y=s?s(m):m,T=d.length,$=s?ne=>s(Qe(ne[r.index])):r.index,k=null;if(!s&&c&&(k=TD(e,t,o,r.index)),k!==null){let ne=k.__ngLastListenerFn__||k;ne.__ngNextListenerFn__=i,k.__ngLastListenerFn__=i,h=!1}else{i=td(r,t,l,i),SD(m,o,i);let ne=n.listen(y,o,i);d.push(i,ne),u&&u.push(o,$,T,T+1)}}else i=td(r,t,l,i);let f=r.outputs,g;if(h&&f!==null&&(g=f[o])){let m=g.length;if(m)for(let y=0;y-1?Tt(e.index,t):t;mc(s,5);let c=ed(t,n,r,i),a=o.__ngNextListenerFn__;for(;a;)c=ed(t,n,a,i)&&c,a=a.__ngNextListenerFn__;return c}}function Mr(e=1){return Km(e)}function yc(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function kn(e,t=""){let n=B(),r=Be(),o=e+ue,i=r.firstCreatePass?Er(r,o,1,t,null):r.data[o],s=xD(r,n,i,t,e);n[o]=s,Qa()&&lc(r,n,s,i),On(i,!1)}var xD=(e,t,n,r,o)=>(Ka(!0),Lv(t[he],r));function Si(e){return Ti("",e,""),Si}function Ti(e,t,n){let r=B(),o=gD(r,e,t,n);return o!==Fn&&Sy(r,wr(),o),Ti}var ch={};function Dc(e){let t=Be(),n=B(),r=e+ue,o=Er(t,r,128,null,null);return On(o,!1),yc(t,n,r,ch),Dc}function uh(e){dt("NgLet");let t=Be(),n=B(),r=wr();return yc(t,n,r,e),e}function lh(e){let t=Gm(),n=Ga(t,ue+e);if(n===ch)throw new D(314,!1);return n}var ND=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=_d(!1,n.type),o=r.length>0?vc([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=w({token:e,providedIn:"environment",factory:()=>new e(E(we))})}}return e})();function tt(e){dt("NgStandalone"),e.getStandaloneInjector=t=>t.get(ND).getOrCreateStandaloneInjector(e)}function dh(e,t,n,r){return hh(B(),Wa(),e,t,n,r)}function fh(e,t){let n=e[t];return n===Fn?void 0:n}function hh(e,t,n,r,o,i){let s=t+n;return Zt(e,s,o)?ih(e,s+1,i?r.call(i,o):r(o)):fh(e,s+1)}function AD(e,t,n,r,o,i,s){let c=t+n;return uD(e,c,o,i)?ih(e,c+2,s?r.call(s,o,i):r(o,i)):fh(e,c+2)}function Sr(e,t){let n=Be(),r,o=e+ue;n.firstCreatePass?(r=RD(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Bt(r.type,!0)),s,c=De(pe);try{let a=Zo(!1),u=i();return Zo(a),yc(n,B(),o,u),u}finally{De(c)}}function RD(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function ph(e,t,n){let r=e+ue,o=B(),i=Ga(o,r);return gh(o,r)?hh(o,Wa(),t,i.transform,n,i):i.transform(n)}function wc(e,t,n,r){let o=e+ue,i=B(),s=Ga(i,o);return gh(i,o)?AD(i,Wa(),t,s.transform,n,r,s):s.transform(n,r)}function gh(e,t){return e[x].data[t].pure}var _i=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var mh=new I("");function Ln(e){return!!e&&typeof e.then=="function"}function Ic(e){return!!e&&typeof e.subscribe=="function"}var vh=new I(""),yh=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=p(vh,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=o();if(Ln(i))n.push(i);else if(Ic(i)){let s=new Promise((c,a)=>{i.subscribe({complete:c,error:a})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),xi=new I("");function OD(){Bu(()=>{throw new D(600,!1)})}function PD(e){return e.isBoundToModule}var FD=10;function kD(e,t,n){try{let r=n();return Ln(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Nt=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(bv),this.afterRenderManager=p(pD),this.zonelessEnabled=p(Ci),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new re,this.afterTick=new re,this.componentTypes=[],this.components=[],this.isStable=p(lt).hasPendingTasks.pipe(_(n=>!n)),this._injector=p(we)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Xo;if(!this._injector.get(yh).done){let h=!o&&bd(n),f=!1;throw new D(405,f)}let s;o?s=n:s=this._injector.get(xn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let c=PD(s)?void 0:this._injector.get(St),a=r||s.selector,u=s.create(Ke.NULL,[],a,c),l=u.location.nativeElement,d=u.injector.get(mh,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),ko(this.components,u),d?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new D(101,!1);let n=A(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,A(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Nn,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++pi(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;ko(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(xi,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ko(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new D(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ko(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function LD(e,t,n,r){if(!n&&!pi(e))return;Kf(e,t,n&&!r?0:1)}var Ta=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Cc=(()=>{class e{compileModuleSync(n){return new Da(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Md(n),i=bf(o.declarations).reduce((s,c)=>{let a=Ht(c);return a&&s.push(new vr(a)),s},[]);return new Ta(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var jD=(()=>{class e{constructor(){this.zone=p(q),this.changeDetectionScheduler=p(_n),this.applicationRef=p(Nt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),VD=new I("",{factory:()=>!1});function Dh({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new q(z(v({},Ih()),{scheduleInRootZone:n})),[{provide:q,useFactory:e},{provide:Cn,multi:!0,useFactory:()=>{let r=p(jD,{optional:!0});return()=>r.initialize()}},{provide:Cn,multi:!0,useFactory:()=>{let r=p($D);return()=>{r.initialize()}}},t===!0?{provide:th,useValue:!0}:[],{provide:nh,useValue:n??hf}]}function wh(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=Dh({ngZoneFactory:()=>{let o=Ih(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&dt("NgZone_CoalesceEvent"),new q(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return An([{provide:VD,useValue:!0},{provide:Ci,useValue:!1},r])}function Ih(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var $D=(()=>{class e{constructor(){this.subscription=new Y,this.initialized=!1,this.zone=p(q),this.pendingTasks=p(lt)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{q.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{q.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var UD=(()=>{class e{constructor(){this.appRef=p(Nt),this.taskService=p(lt),this.ngZone=p(q),this.zonelessEnabled=p(Ci),this.disableScheduling=p(th,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Y,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Qo):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(nh,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof aa||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?Ll:pf;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Qo+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Ll(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function BD(){return typeof $localize<"u"&&$localize.locale||oi}var Ni=new I("",{providedIn:"root",factory:()=>p(Ni,N.Optional|N.SkipSelf)||BD()});var _a=new I("");function Ao(e){return!e.moduleRef}function HD(e){let t=Ao(e)?e.r3Injector:e.moduleRef.injector,n=t.get(q);return n.run(()=>{Ao(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Je,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Ao(e)){let i=()=>t.destroy(),s=e.platformInjector.get(_a);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(_a);s.add(i),e.moduleRef.onDestroy(()=>{ko(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return kD(r,n,()=>{let i=t.get(yh);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Ni,oi);if(MD(s||oi),Ao(e)){let c=t.get(Nt);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return zD(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function zD(e,t){let n=e.injector.get(Nt);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new D(-403,!1);t.push(e)}var Lo=null;function GD(e=[],t){return Ke.create({name:t,providers:[{provide:li,useValue:"platform"},{provide:_a,useValue:new Set([()=>Lo=null])},...e]})}function qD(e=[]){if(Lo)return Lo;let t=GD(e);return Lo=t,OD(),WD(t),t}function WD(e){e.get(ic,null)?.forEach(n=>n())}var Qt=(()=>{class e{static{this.__NG_ELEMENT_ID__=ZD}}return e})();function ZD(e){return YD(He(),B(),(e&16)===16)}function YD(e,t,n){if(fi(e)&&!n){let r=Tt(e.index,t);return new Tn(r,r)}else if(e.type&175){let r=t[je];return new Tn(r,t)}return null}var xa=class{constructor(){}supports(t){return t instanceof Map||oh(t)}create(){return new Na}},Na=class{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(t){let n;for(n=this._mapHead;n!==null;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;n!==null;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;n!==null;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}diff(t){if(!t)t=new Map;else if(!(t instanceof Map||oh(t)))throw new D(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){let r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){let o=this._records.get(t);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new Aa(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}},Aa=class{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function nd(){return new Ec([new xa])}var Ec=(()=>{class e{static{this.\u0275prov=w({token:e,providedIn:"root",factory:nd})}constructor(n){this.factories=n}static create(n,r){if(r){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||nd()),deps:[[e,new md,new Fa]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new D(901,!1)}}return e})();function Ch(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=qD(r),i=[Dh({}),{provide:_n,useExisting:UD},...n||[]],s=new ti({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return HD({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function bc(e,t){dt("NgSignals");let n=$u(e);return t?.equal&&(n[nn].equal=t.equal),n}function jn(e){let t=A(null);try{return e()}finally{A(t)}}var QD=new I("",{providedIn:"root",factory:()=>p(KD)}),KD=(()=>{class e{static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>new Ra})}}return e})(),Ra=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=p(lt),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),this.taskId===null){let n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(t){let n=t.creationZone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},Oa=class{constructor(t,n,r,o,i,s){this.scheduler=t,this.effectFn=n,this.creationZone=r,this.injector=i,this.watcher=Gu(c=>this.runEffect(c),()=>this.schedule(),s),this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(Je,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function Mc(e,t){dt("NgSignals"),!t?.injector&&Ba(Mc);let n=t?.injector??p(Ke),r=t?.manualCleanup!==!0?n.get(Ir):null,o=new Oa(n.get(QD),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),i=n.get(Qt,null,{optional:!0});return!i||!(i._lView[b]&8)?o.watcher.notify():(i._lView[Oo]??=[]).push(o.watcher.notify),o}var Th=null;function Vn(){return Th}function _h(e){Th??=e}var Vi=class{};var Ie=new I(""),xh=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(rw),providedIn:"platform"})}}return e})();var rw=(()=>{class e extends xh{constructor(){super(),this._doc=p(Ie),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Vn().getBaseHref(this._doc)}onPopState(n){let r=Vn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Vn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function Nh(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Eh(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function Kt(e){return e&&e[0]!=="?"?"?"+e:e}var Ui=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(Ah),providedIn:"root"})}}return e})(),ow=new I(""),Ah=(()=>{class e extends Ui{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??p(Ie).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 Nh(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Kt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Kt(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Kt(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(E(xh),E(ow,8))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Tr=(()=>{class e{constructor(n){this._subject=new ie,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=aw(Eh(bh(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Kt(r))}normalize(n){return e.stripTrailingSlash(sw(this._basePath,bh(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Kt(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Kt(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}static{this.normalizeQueryParams=Kt}static{this.joinWithSlash=Nh}static{this.stripTrailingSlash=Eh}static{this.\u0275fac=function(r){return new(r||e)(E(Ui))}}static{this.\u0275prov=w({token:e,factory:()=>iw(),providedIn:"root"})}}return e})();function iw(){return new Tr(E(Ui))}function sw(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function bh(e){return e.replace(/\/index.html$/,"")}function aw(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var me=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(me||{}),H=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(H||{}),Se=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(Se||{}),At={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function cw(e){return Ae(e)[Z.LocaleId]}function uw(e,t,n){let r=Ae(e),o=[r[Z.DayPeriodsFormat],r[Z.DayPeriodsStandalone]],i=Re(o,t);return Re(i,n)}function lw(e,t,n){let r=Ae(e),o=[r[Z.DaysFormat],r[Z.DaysStandalone]],i=Re(o,t);return Re(i,n)}function dw(e,t,n){let r=Ae(e),o=[r[Z.MonthsFormat],r[Z.MonthsStandalone]],i=Re(o,t);return Re(i,n)}function fw(e,t){let r=Ae(e)[Z.Eras];return Re(r,t)}function Ai(e,t){let n=Ae(e);return Re(n[Z.DateFormat],t)}function Ri(e,t){let n=Ae(e);return Re(n[Z.TimeFormat],t)}function Oi(e,t){let r=Ae(e)[Z.DateTimeFormat];return Re(r,t)}function Bi(e,t){let n=Ae(e),r=n[Z.NumberSymbols][t];if(typeof r>"u"){if(t===At.CurrencyDecimal)return n[Z.NumberSymbols][At.Decimal];if(t===At.CurrencyGroup)return n[Z.NumberSymbols][At.Group]}return r}function Rh(e){if(!e[Z.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[Z.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function hw(e){let t=Ae(e);return Rh(t),(t[Z.ExtraData][2]||[]).map(r=>typeof r=="string"?Sc(r):[Sc(r[0]),Sc(r[1])])}function pw(e,t,n){let r=Ae(e);Rh(r);let o=[r[Z.ExtraData][0],r[Z.ExtraData][1]],i=Re(o,t)||[];return Re(i,n)||[]}function Re(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function Sc(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var gw=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Pi={},mw=/((?:[^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]*)/,gt=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(gt||{}),j=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(j||{}),L=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(L||{});function vw(e,t,n,r){let o=Sw(e);t=pt(n,t)||t;let s=[],c;for(;t;)if(c=mw.exec(t),c){s=s.concat(c.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let a=o.getTimezoneOffset();r&&(a=Ph(r,a),o=Mw(o,r,!0));let u="";return s.forEach(l=>{let d=Ew(l);u+=d?d(o,n,a):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function $i(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function pt(e,t){let n=cw(e);if(Pi[n]??={},Pi[n][t])return Pi[n][t];let r="";switch(t){case"shortDate":r=Ai(e,Se.Short);break;case"mediumDate":r=Ai(e,Se.Medium);break;case"longDate":r=Ai(e,Se.Long);break;case"fullDate":r=Ai(e,Se.Full);break;case"shortTime":r=Ri(e,Se.Short);break;case"mediumTime":r=Ri(e,Se.Medium);break;case"longTime":r=Ri(e,Se.Long);break;case"fullTime":r=Ri(e,Se.Full);break;case"short":let o=pt(e,"shortTime"),i=pt(e,"shortDate");r=Fi(Oi(e,Se.Short),[o,i]);break;case"medium":let s=pt(e,"mediumTime"),c=pt(e,"mediumDate");r=Fi(Oi(e,Se.Medium),[s,c]);break;case"long":let a=pt(e,"longTime"),u=pt(e,"longDate");r=Fi(Oi(e,Se.Long),[a,u]);break;case"full":let l=pt(e,"fullTime"),d=pt(e,"fullDate");r=Fi(Oi(e,Se.Full),[l,d]);break}return r&&(Pi[n][t]=r),r}function Fi(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function ze(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length0||c>-n)&&(c+=n),e===j.Hours)c===0&&n===-12&&(c=12);else if(e===j.FractionalSeconds)return yw(c,t);let a=Bi(s,At.MinusSign);return ze(c,t,a,r,o)}}function Dw(e,t){switch(e){case j.FullYear:return t.getFullYear();case j.Month:return t.getMonth();case j.Date:return t.getDate();case j.Hours:return t.getHours();case j.Minutes:return t.getMinutes();case j.Seconds:return t.getSeconds();case j.FractionalSeconds:return t.getMilliseconds();case j.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function G(e,t,n=me.Format,r=!1){return function(o,i){return ww(o,i,e,t,n,r)}}function ww(e,t,n,r,o,i){switch(n){case L.Months:return dw(t,o,r)[e.getMonth()];case L.Days:return lw(t,o,r)[e.getDay()];case L.DayPeriods:let s=e.getHours(),c=e.getMinutes();if(i){let u=hw(t),l=pw(t,o,r),d=u.findIndex(h=>{if(Array.isArray(h)){let[f,g]=h,m=s>=f.hours&&c>=f.minutes,y=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case gt.Short:return(o>=0?"+":"")+ze(s,2,i)+ze(Math.abs(o%60),2,i);case gt.ShortGMT:return"GMT"+(o>=0?"+":"")+ze(s,1,i);case gt.Long:return"GMT"+(o>=0?"+":"")+ze(s,2,i)+":"+ze(Math.abs(o%60),2,i);case gt.Extended:return r===0?"Z":(o>=0?"+":"")+ze(s,2,i)+":"+ze(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}var Iw=0,ji=4;function Cw(e){let t=$i(e,Iw,1).getDay();return $i(e,0,1+(t<=ji?ji:ji+7)-t)}function Oh(e){let t=e.getDay(),n=t===0?-3:ji-t;return $i(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Tc(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=Oh(n),s=Cw(i.getFullYear()),c=i.getTime()-s.getTime();o=1+Math.round(c/6048e5)}return ze(o,e,Bi(r,At.MinusSign))}}function Li(e,t=!1){return function(n,r){let i=Oh(n).getFullYear();return ze(i,e,Bi(r,At.MinusSign),t)}}var _c={};function Ew(e){if(_c[e])return _c[e];let t;switch(e){case"G":case"GG":case"GGG":t=G(L.Eras,H.Abbreviated);break;case"GGGG":t=G(L.Eras,H.Wide);break;case"GGGGG":t=G(L.Eras,H.Narrow);break;case"y":t=Q(j.FullYear,1,0,!1,!0);break;case"yy":t=Q(j.FullYear,2,0,!0,!0);break;case"yyy":t=Q(j.FullYear,3,0,!1,!0);break;case"yyyy":t=Q(j.FullYear,4,0,!1,!0);break;case"Y":t=Li(1);break;case"YY":t=Li(2,!0);break;case"YYY":t=Li(3);break;case"YYYY":t=Li(4);break;case"M":case"L":t=Q(j.Month,1,1);break;case"MM":case"LL":t=Q(j.Month,2,1);break;case"MMM":t=G(L.Months,H.Abbreviated);break;case"MMMM":t=G(L.Months,H.Wide);break;case"MMMMM":t=G(L.Months,H.Narrow);break;case"LLL":t=G(L.Months,H.Abbreviated,me.Standalone);break;case"LLLL":t=G(L.Months,H.Wide,me.Standalone);break;case"LLLLL":t=G(L.Months,H.Narrow,me.Standalone);break;case"w":t=Tc(1);break;case"ww":t=Tc(2);break;case"W":t=Tc(1,!0);break;case"d":t=Q(j.Date,1);break;case"dd":t=Q(j.Date,2);break;case"c":case"cc":t=Q(j.Day,1);break;case"ccc":t=G(L.Days,H.Abbreviated,me.Standalone);break;case"cccc":t=G(L.Days,H.Wide,me.Standalone);break;case"ccccc":t=G(L.Days,H.Narrow,me.Standalone);break;case"cccccc":t=G(L.Days,H.Short,me.Standalone);break;case"E":case"EE":case"EEE":t=G(L.Days,H.Abbreviated);break;case"EEEE":t=G(L.Days,H.Wide);break;case"EEEEE":t=G(L.Days,H.Narrow);break;case"EEEEEE":t=G(L.Days,H.Short);break;case"a":case"aa":case"aaa":t=G(L.DayPeriods,H.Abbreviated);break;case"aaaa":t=G(L.DayPeriods,H.Wide);break;case"aaaaa":t=G(L.DayPeriods,H.Narrow);break;case"b":case"bb":case"bbb":t=G(L.DayPeriods,H.Abbreviated,me.Standalone,!0);break;case"bbbb":t=G(L.DayPeriods,H.Wide,me.Standalone,!0);break;case"bbbbb":t=G(L.DayPeriods,H.Narrow,me.Standalone,!0);break;case"B":case"BB":case"BBB":t=G(L.DayPeriods,H.Abbreviated,me.Format,!0);break;case"BBBB":t=G(L.DayPeriods,H.Wide,me.Format,!0);break;case"BBBBB":t=G(L.DayPeriods,H.Narrow,me.Format,!0);break;case"h":t=Q(j.Hours,1,-12);break;case"hh":t=Q(j.Hours,2,-12);break;case"H":t=Q(j.Hours,1);break;case"HH":t=Q(j.Hours,2);break;case"m":t=Q(j.Minutes,1);break;case"mm":t=Q(j.Minutes,2);break;case"s":t=Q(j.Seconds,1);break;case"ss":t=Q(j.Seconds,2);break;case"S":t=Q(j.FractionalSeconds,1);break;case"SS":t=Q(j.FractionalSeconds,2);break;case"SSS":t=Q(j.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=ki(gt.Short);break;case"ZZZZZ":t=ki(gt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ki(gt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=ki(gt.Long);break;default:return null}return _c[e]=t,t}function Ph(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function bw(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Mw(e,t,n){let r=n?-1:1,o=e.getTimezoneOffset(),i=Ph(t,o);return bw(e,r*(i-o))}function Sw(e){if(Mh(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(c=>+c);return $i(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(gw))return Tw(r)}let t=new Date(e);if(!Mh(t))throw new Error(`Unable to convert "${e}" into a date`);return t}function Tw(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,c=Number(e[5]||0)-r,a=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,c,a,u),t}function Mh(e){return e instanceof Date&&!isNaN(e.valueOf())}function Hi(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Fh=(()=>{class e{constructor(n,r,o){this._ngEl=n,this._differs=r,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){let[o,i]=n.split("."),s=o.indexOf("-")===-1?void 0:xt.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,i?`${r}${i}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static{this.\u0275fac=function(r){return new(r||e)(pe(Cr),pe(Ec),pe(Ei))}}static{this.\u0275dir=ui({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return e})();function kh(e,t){return new D(2100,!1)}var xc=class{createSubscription(t,n){return jn(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){jn(()=>t.unsubscribe())}},Nc=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},_w=new Nc,xw=new xc,Lh=(()=>{class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(Ln(n))return _w;if(Ic(n))return xw;throw kh(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(r){return new(r||e)(pe(Qt,16))}}static{this.\u0275pipe=Va({name:"async",type:e,pure:!1,standalone:!0})}}return e})();var Nw="mediumDate",Aw=new I(""),Rw=new I(""),jh=(()=>{class e{constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??Nw,c=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return vw(n,s,i||this.locale,c)}catch(s){throw kh(e,s.message)}}static{this.\u0275fac=function(r){return new(r||e)(pe(Ni,16),pe(Aw,24),pe(Rw,24))}}static{this.\u0275pipe=Va({name:"date",type:e,pure:!0,standalone:!0})}}return e})();var Vh="browser",Ow="server";function zi(e){return e===Ow}var $n=class{};var xr=class{},qi=class{},mt=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` +`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(c=>i.indexOf(c)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Pc=class{encodeKey(t){return $h(t)}encodeValue(t){return $h(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Fw(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,c]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],a=n.get(s)||[];a.push(c),n.set(s,a)}),n}var kw=/%(\d[a-f0-9])/gi,Lw={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function $h(e){return encodeURIComponent(e).replace(kw,(t,n)=>Lw[n]??t)}function Gi(e){return`${e}`}var Ot=class e{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Pc,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Fw(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Gi):[Gi(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Gi(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(Gi(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Fc=class{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function jw(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Uh(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Bh(e){return typeof Blob<"u"&&e instanceof Blob}function Hh(e){return typeof FormData<"u"&&e instanceof FormData}function Vw(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var _r=class e{constructor(t,n,r,o){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let i;if(jw(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new mt,this.context??=new Fc,!this.params)this.params=new Ot,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let c=n.indexOf("?"),a=c===-1?"?":ch.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),l)),new e(n,r,s,{params:l,headers:u,context:d,reportProgress:a,responseType:o,withCredentials:c,transferCache:i})}},Pt=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Pt||{}),Nr=class{constructor(t,n=200,r="OK"){this.headers=t.headers||new mt,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},Wi=class e extends Nr{constructor(t={}){super(t),this.type=Pt.ResponseHeader}clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Ar=class e extends Nr{constructor(t={}){super(t),this.type=Pt.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Rt=class extends Nr{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},Wh=200,$w=204;function Oc(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var Rr=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof _r)i=n;else{let a;o.headers instanceof mt?a=o.headers:a=new mt(o.headers);let u;o.params&&(o.params instanceof Ot?u=o.params:u=new Ot({fromObject:o.params})),i=new _r(n,r,o.body!==void 0?o.body:null,{headers:a,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=C(i).pipe(wt(a=>this.handler.handle(a)));if(n instanceof _r||o.observe==="events")return s;let c=s.pipe(ae(a=>a instanceof Ar));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return c.pipe(_(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return a.body}));case"blob":return c.pipe(_(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new Error("Response is not a Blob.");return a.body}));case"text":return c.pipe(_(a=>{if(a.body!==null&&typeof a.body!="string")throw new Error("Response is not a string.");return a.body}));case"json":default:return c.pipe(_(a=>a.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Ot().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Oc(o,r))}post(n,r,o={}){return this.request("POST",n,Oc(o,r))}put(n,r,o={}){return this.request("PUT",n,Oc(o,r))}static{this.\u0275fac=function(r){return new(r||e)(E(xr))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),Uw=/^\)\]\}',?\n/,Bw="X-Request-URL";function zh(e){if(e.url)return e.url;let t=Bw.toLocaleLowerCase();return e.headers.get(t)}var Hw=(()=>{class e{constructor(){this.fetchImpl=p(kc,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n)),this.ngZone=p(q)}handle(n){return new F(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(Lc,i=>r.error(new Rt({error:i}))),()=>o.abort()})}doRequest(n,r,o){return to(this,null,function*(){let i=this.createRequestInit(n),s;try{let f=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,v({signal:r},i)));zw(f),o.next({type:Pt.Sent}),s=yield f}catch(f){o.error(new Rt({error:f,status:f.status??0,statusText:f.statusText,url:n.urlWithParams,headers:f.headers}));return}let c=new mt(s.headers),a=s.statusText,u=zh(s)??n.urlWithParams,l=s.status,d=null;if(n.reportProgress&&o.next(new Wi({headers:c,status:l,statusText:a,url:u})),s.body){let f=s.headers.get("content-length"),g=[],m=s.body.getReader(),y=0,T,$,k=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>to(this,null,function*(){for(;;){let{done:ve,value:K}=yield m.read();if(ve)break;if(g.push(K),y+=K.length,n.reportProgress){$=n.responseType==="text"?($??"")+(T??=new TextDecoder).decode(K,{stream:!0}):void 0;let ot=()=>o.next({type:Pt.DownloadProgress,total:f?+f:void 0,loaded:y,partialText:$});k?k.run(ot):ot()}}}));let ne=this.concatChunks(g,y);try{let ve=s.headers.get("Content-Type")??"";d=this.parseBody(n,ne,ve)}catch(ve){o.error(new Rt({error:ve,headers:new mt(s.headers),status:s.status,statusText:s.statusText,url:zh(s)??n.urlWithParams}));return}}l===0&&(l=d?Wh:0),l>=200&&l<300?(o.next(new Ar({body:d,headers:c,status:l,statusText:a,url:u})),o.complete()):o.error(new Rt({error:d,headers:c,status:l,statusText:a,url:u}))})}parseBody(n,r,o){switch(n.responseType){case"json":let i=new TextDecoder().decode(r).replace(Uw,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let i=n.detectContentTypeHeader();i!==null&&(r["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),kc=class{};function Lc(){}function zw(e){e.then(Lc,Lc)}function Gw(e,t){return t(e)}function qw(e,t,n){return(r,o)=>Ve(n,()=>t(r,i=>e(i,o)))}var Zh=new I(""),Ww=new I(""),Zw=new I("",{providedIn:"root",factory:()=>!0});var Gh=(()=>{class e extends xr{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=p(lt),this.contributeToStability=p(Zw)}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Zh),...this.injector.get(Ww,[])]));this.chain=r.reduceRight((o,i)=>qw(o,i,this.injector),Gw)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Vt(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||e)(E(qi),E(we))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})();var Yw=/^\)\]\}',?\n/;function Qw(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var qh=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new D(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?W(r.\u0275loadImpl()):C(null)).pipe(ce(()=>new F(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((m,y)=>s.setRequestHeader(m,y.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let m=n.detectContentTypeHeader();m!==null&&s.setRequestHeader("Content-Type",m)}if(n.responseType){let m=n.responseType.toLowerCase();s.responseType=m!=="json"?m:"text"}let c=n.serializeBody(),a=null,u=()=>{if(a!==null)return a;let m=s.statusText||"OK",y=new mt(s.getAllResponseHeaders()),T=Qw(s)||n.url;return a=new Wi({headers:y,status:s.status,statusText:m,url:T}),a},l=()=>{let{headers:m,status:y,statusText:T,url:$}=u(),k=null;y!==$w&&(k=typeof s.response>"u"?s.responseText:s.response),y===0&&(y=k?Wh:0);let ne=y>=200&&y<300;if(n.responseType==="json"&&typeof k=="string"){let ve=k;k=k.replace(Yw,"");try{k=k!==""?JSON.parse(k):null}catch(K){k=ve,ne&&(ne=!1,k={error:K,text:k})}}ne?(i.next(new Ar({body:k,headers:m,status:y,statusText:T,url:$||void 0})),i.complete()):i.error(new Rt({error:k,headers:m,status:y,statusText:T,url:$||void 0}))},d=m=>{let{url:y}=u(),T=new Rt({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:y||void 0});i.error(T)},h=!1,f=m=>{h||(i.next(u()),h=!0);let y={type:Pt.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),n.responseType==="text"&&s.responseText&&(y.partialText=s.responseText),i.next(y)},g=m=>{let y={type:Pt.UploadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),i.next(y)};return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",f),c!==null&&s.upload&&s.upload.addEventListener("progress",g)),s.send(c),i.next({type:Pt.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),c!==null&&s.upload&&s.upload.removeEventListener("progress",g)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||e)(E($n))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),Yh=new I(""),Kw="XSRF-TOKEN",Jw=new I("",{providedIn:"root",factory:()=>Kw}),Xw="X-XSRF-TOKEN",eI=new I("",{providedIn:"root",factory:()=>Xw}),Zi=class{},tI=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Hi(n,this.cookieName),this.lastCookieString=n),this.lastToken}static{this.\u0275fac=function(r){return new(r||e)(E(Ie),E(_t),E(Jw))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})();function nI(e,t){let n=e.url.toLowerCase();if(!p(Yh)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=p(Zi).getToken(),o=p(eI);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}function Qh(...e){let t=[Rr,qh,Gh,{provide:xr,useExisting:Gh},{provide:qi,useFactory:()=>p(Hw,{optional:!0})??p(qh)},{provide:Zh,useValue:nI,multi:!0},{provide:Yh,useValue:!0},{provide:Zi,useClass:tI}];for(let n of e)t.push(...n.\u0275providers);return An(t)}var $c=class extends Vi{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Uc=class e extends $c{static makeCurrent(){_h(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=rI();return n==null?null:oI(n)}resetBaseElement(){Or=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Hi(document.cookie,t)}},Or=null;function rI(){return Or=Or||document.querySelector("base"),Or?Or.getAttribute("href"):null}function oI(e){return new URL(e,document.baseURI).pathname}var iI=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),Bc=new I(""),tp=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new D(5101,!1);return this._eventNameToPlugin.set(n,r),r}static{this.\u0275fac=function(r){return new(r||e)(E(Bc),E(q))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),Yi=class{constructor(t){this._doc=t}},jc="ng-app-id",np=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=zi(i),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${jc}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){let o=this.styleRef;if(o.has(n)){let i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(jc),i;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(jc,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){let o=this.getStyleElement(n,r),i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(E(Ie),E(oc),E(sc,8),E(_t))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),Vc={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},zc=/%COMP%/g,rp="%COMP%",sI=`_nghost-${rp}`,aI=`_ngcontent-${rp}`,cI=!0,uI=new I("",{providedIn:"root",factory:()=>cI});function lI(e){return aI.replace(zc,e)}function dI(e){return sI.replace(zc,e)}function op(e,t){return t.map(n=>n.replace(zc,e))}var Jh=(()=>{class e{constructor(n,r,o,i,s,c,a,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=c,this.ngZone=a,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=zi(c),this.defaultRenderer=new Pr(n,s,a,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ye.ShadowDom&&(r=z(v({},r),{encapsulation:Ye.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Qi?o.applyToHost(n):o instanceof Fr&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,c=this.ngZone,a=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Ye.Emulated:i=new Qi(a,u,r,this.appId,l,s,c,d);break;case Ye.ShadowDom:return new Hc(a,u,n,r,s,c,this.nonce,d);default:i=new Fr(a,u,r,l,s,c,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(E(tp),E(np),E(oc),E(uI),E(Ie),E(_t),E(q),E(sc))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),Pr=class{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Vc[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Xh(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Xh(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new D(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Vc[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Vc[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(xt.DashCase|xt.Important)?t.style.setProperty(n,r,o&xt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&xt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=Vn().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Xh(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Hc=class extends Pr{constructor(t,n,r,o,i,s,c,a){super(t,i,s,a),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=op(o.id,o.styles);for(let l of u){let d=document.createElement("style");c&&d.setAttribute("nonce",c),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Fr=class extends Pr{constructor(t,n,r,o,i,s,c,a){super(t,i,s,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=a?op(a,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Qi=class extends Fr{constructor(t,n,r,o,i,s,c,a){let u=o+"-"+r.id;super(t,n,r,i,s,c,a,u),this.contentAttr=lI(u),this.hostAttr=dI(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},fI=(()=>{class e extends Yi{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static{this.\u0275fac=function(r){return new(r||e)(E(Ie))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),ep=["alt","control","meta","shift"],hI={"\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"},pI={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},gI=(()=>{class e extends Yi{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Vn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),s="code."),ep.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let a={};return a.domEventName=o,a.fullKey=s,a}static matchEventFullKeyCode(n,r){let o=hI[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),ep.forEach(s=>{if(s!==o){let c=pI[s];c(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static{this.\u0275fac=function(r){return new(r||e)(E(Ie))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})();function ip(e,t){return Ch(v({rootComponent:e},mI(t)))}function mI(e){return{appProviders:[...II,...e?.providers??[]],platformProviders:wI}}function vI(){Uc.makeCurrent()}function yI(){return new Je}function DI(){return If(document),document}var wI=[{provide:_t,useValue:Vh},{provide:ic,useValue:vI,multi:!0},{provide:Ie,useFactory:DI,deps:[]}];var II=[{provide:li,useValue:"root"},{provide:Je,useFactory:yI,deps:[]},{provide:Bc,useClass:fI,multi:!0,deps:[Ie,q,_t]},{provide:Bc,useClass:gI,multi:!0,deps:[Ie]},Jh,np,tp,{provide:Nn,useExisting:Jh},{provide:$n,useClass:iI,deps:[]},[]];var sp=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static{this.\u0275fac=function(r){return new(r||e)(E(Ie))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var S="primary",Jr=Symbol("RouteTitle"),Yc=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function qn(e){return new Yc(e)}function EI(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthr[i]===o)}else return e===t}function gp(e){return e.length>0?e[e.length-1]:null}function Ft(e){return _s(e)?e:Ln(e)?W(Promise.resolve(e)):C(e)}var MI={exact:vp,subset:yp},mp={exact:SI,subset:TI,ignored:()=>!0};function ap(e,t,n){return MI[n.paths](e.root,t.root,n.matrixParams)&&mp[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function SI(e,t){return rt(e,t)}function vp(e,t,n){if(!Xt(e.segments,t.segments)||!Xi(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!vp(e.children[r],t.children[r],n))return!1;return!0}function TI(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>pp(e[n],t[n]))}function yp(e,t,n){return Dp(e,t,t.segments,n)}function Dp(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!Xt(o,n)||t.hasChildren()||!Xi(o,n,r))}else if(e.segments.length===n.length){if(!Xt(e.segments,n)||!Xi(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!yp(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!Xt(e.segments,o)||!Xi(e.segments,o,r)||!e.children[S]?!1:Dp(e.children[S],t,i,r)}}function Xi(e,t,n){return t.every((r,o)=>mp[n](e[o].parameters,r.parameters))}var yt=class{constructor(t=new V([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=qn(this.queryParams),this._queryParamMap}toString(){return NI.serialize(this)}},V=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return es(this)}},Jt=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=qn(this.parameters),this._parameterMap}toString(){return Ip(this)}};function _I(e,t){return Xt(e,t)&&e.every((n,r)=>rt(n.parameters,t[r].parameters))}function Xt(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function xI(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===S&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==S&&(n=n.concat(t(o,r)))}),n}var Cu=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>new Br,providedIn:"root"})}}return e})(),Br=class{parse(t){let n=new Jc(t);return new yt(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${kr(t.root,!0)}`,r=OI(t.queryParams),o=typeof t.fragment=="string"?`#${AI(t.fragment)}`:"";return`${n}${r}${o}`}},NI=new Br;function es(e){return e.segments.map(t=>Ip(t)).join("/")}function kr(e,t){if(!e.hasChildren())return es(e);if(t){let n=e.children[S]?kr(e.children[S],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==S&&r.push(`${o}:${kr(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=xI(e,(r,o)=>o===S?[kr(e.children[S],!1)]:[`${o}:${kr(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[S]!=null?`${es(e)}/${n[0]}`:`${es(e)}/(${n.join("//")})`}}function wp(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ki(e){return wp(e).replace(/%3B/gi,";")}function AI(e){return encodeURI(e)}function Kc(e){return wp(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ts(e){return decodeURIComponent(e)}function cp(e){return ts(e.replace(/\+/g,"%20"))}function Ip(e){return`${Kc(e.path)}${RI(e.parameters)}`}function RI(e){return Object.entries(e).map(([t,n])=>`;${Kc(t)}=${Kc(n)}`).join("")}function OI(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Ki(n)}=${Ki(o)}`).join("&"):`${Ki(n)}=${Ki(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var PI=/^[^\/()?;#]+/;function Gc(e){let t=e.match(PI);return t?t[0]:""}var FI=/^[^\/()?;=#]+/;function kI(e){let t=e.match(FI);return t?t[0]:""}var LI=/^[^=?&#]+/;function jI(e){let t=e.match(LI);return t?t[0]:""}var VI=/^[^&#]+/;function $I(e){let t=e.match(VI);return t?t[0]:""}var Jc=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new V([],{}):new V([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[S]=new V(t,n)),r}parseSegment(){let t=Gc(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new D(4009,!1);return this.capture(t),new Jt(ts(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=kI(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=Gc(this.remaining);o&&(r=o,this.capture(r))}t[ts(n)]=ts(r)}parseQueryParam(t){let n=jI(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=$I(this.remaining);s&&(r=s,this.capture(r))}let o=cp(n),i=cp(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Gc(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new D(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=S);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[S]:new V([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new D(4011,!1)}};function Cp(e){return e.segments.length>0?new V([],{[S]:e}):e}function Ep(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=Ep(o);if(r===S&&i.segments.length===0&&i.hasChildren())for(let[s,c]of Object.entries(i.children))t[s]=c;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new V(e.segments,t);return UI(n)}function UI(e){if(e.numberOfChildren===1&&e.children[S]){let t=e.children[S];return new V(e.segments.concat(t.segments),t.children)}return e}function Hr(e){return e instanceof yt}function BI(e,t,n=null,r=null){let o=bp(e);return Mp(o,t,n,r)}function bp(e){let t;function n(i){let s={};for(let a of i.children){let u=n(a);s[a.outlet]=u}let c=new V(i.url,s);return i===e&&(t=c),c}let r=n(e.root),o=Cp(r);return t??o}function Mp(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return qc(o,o,o,n,r);let i=HI(t);if(i.toRoot())return qc(o,o,new V([],{}),n,r);let s=zI(i,o,e),c=s.processChildren?Vr(s.segmentGroup,s.index,i.commands):Tp(s.segmentGroup,s.index,i.commands);return qc(o,s.segmentGroup,c,n,r)}function ns(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function zr(e){return typeof e=="object"&&e!=null&&e.outlets}function qc(e,t,n,r,o){let i={};r&&Object.entries(r).forEach(([a,u])=>{i[a]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;e===t?s=n:s=Sp(e,t,n);let c=Cp(Ep(s));return new yt(c,i,o)}function Sp(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=Sp(i,t,n)}),new V(e.segments,r)}var rs=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&ns(r[0]))throw new D(4003,!1);let o=r.find(zr);if(o&&o!==gp(r))throw new D(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function HI(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new rs(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let c={};return Object.entries(i.outlets).forEach(([a,u])=>{c[a]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:c}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((c,a)=>{a==0&&c==="."||(a==0&&c===""?n=!0:c===".."?t++:c!=""&&o.push(c))}),o):[...o,i]},[]);return new rs(n,t,r)}var Hn=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function zI(e,t,n){if(e.isAbsolute)return new Hn(t,!0,0);if(!n)return new Hn(t,!1,NaN);if(n.parent===null)return new Hn(n,!0,0);let r=ns(e.commands[0])?0:1,o=n.segments.length-1+r;return GI(n,o,e.numberOfDoubleDots)}function GI(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new D(4005,!1);o=r.segments.length}return new Hn(r,!1,o-i)}function qI(e){return zr(e[0])?e[0].outlets:{[S]:e}}function Tp(e,t,n){if(e??=new V([],{}),e.segments.length===0&&e.hasChildren())return Vr(e,t,n);let r=WI(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndexi!==S)&&e.children[S]&&e.numberOfChildren===1&&e.children[S].segments.length===0){let i=Vr(e.children[S],t,n);return new V(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Tp(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new V(e.segments,o)}}function WI(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;let s=e.segments[o],c=n[r];if(zr(c))break;let a=`${c}`,u=r0&&a===void 0)break;if(a&&u&&typeof u=="object"&&u.outlets===void 0){if(!lp(a,u,s))return i;r+=2}else{if(!lp(a,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function Xc(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Xc(new V([],{}),0,r))}),t}function up(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function lp(e,t,n){return e==n.path&&rt(t,n.parameters)}var $r="imperative",se=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(se||{}),Oe=class{constructor(t,n){this.id=t,this.url=n}},Gr=class extends Oe{constructor(t,n,r="imperative",o=null){super(t,n),this.type=se.NavigationStart,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},en=class extends Oe{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=se.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},_e=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(_e||{}),eu=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(eu||{}),vt=class extends Oe{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=se.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},tn=class extends Oe{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=se.NavigationSkipped}},qr=class extends Oe{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=se.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},os=class extends Oe{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=se.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},tu=class extends Oe{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=se.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},nu=class extends Oe{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=se.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ru=class extends Oe{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=se.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ou=class extends Oe{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=se.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},iu=class{constructor(t){this.route=t,this.type=se.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},su=class{constructor(t){this.route=t,this.type=se.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},au=class{constructor(t){this.snapshot=t,this.type=se.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},cu=class{constructor(t){this.snapshot=t,this.type=se.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},uu=class{constructor(t){this.snapshot=t,this.type=se.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},lu=class{constructor(t){this.snapshot=t,this.type=se.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Wr=class{},Wn=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function YI(e,t){return e.providers&&!e._injector&&(e._injector=vc(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Ge(e){return e.outlet||S}function QI(e,t){let n=e.filter(r=>Ge(r)===t);return n.push(...e.filter(r=>Ge(r)!==t)),n}function Xr(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var du=class{get injector(){return Xr(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new ds(this.rootInjector),this.attachRef=null}},ds=(()=>{class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new du(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static{this.\u0275fac=function(r){return new(r||e)(E(we))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),is=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=fu(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=fu(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=hu(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return hu(t,this._root).map(n=>n.value)}};function fu(e,t){if(e===t.value)return t;for(let n of t.children){let r=fu(e,n);if(r)return r}return null}function hu(e,t){if(e===t.value)return[t];for(let n of t.children){let r=hu(e,n);if(r.length)return r.unshift(t),r}return[]}var Te=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Bn(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var ss=class extends is{constructor(t,n){super(t),this.snapshot=n,Eu(this,t)}toString(){return this.snapshot.toString()}};function _p(e){let t=KI(e),n=new oe([new Jt("",{})]),r=new oe({}),o=new oe({}),i=new oe({}),s=new oe(""),c=new Zn(n,r,i,s,o,S,e,t.root);return c.snapshot=t.root,new ss(new Te(c,[]),t)}function KI(e){let t={},n={},r={},o="",i=new zn([],t,r,o,n,S,e,null,{});return new cs("",new Te(i,[]))}var Zn=class{constructor(t,n,r,o,i,s,c,a){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=c,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(_(u=>u[Jr]))??C(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(_(t=>qn(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(_(t=>qn(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function as(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:v(v({},t.params),e.params),data:v(v({},t.data),e.data),resolve:v(v(v(v({},e.data),t.data),o?.data),e._resolvedData)}:r={params:v({},e.params),data:v({},e.data),resolve:v(v({},e.data),e._resolvedData??{})},o&&Np(o)&&(r.resolve[Jr]=o.title),r}var zn=class{get title(){return this.data?.[Jr]}constructor(t,n,r,o,i,s,c,a,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=c,this.routeConfig=a,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=qn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=qn(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},cs=class extends is{constructor(t,n){super(n),this.url=t,Eu(this,n)}toString(){return xp(this._root)}};function Eu(e,t){t.value._routerState=e,t.children.forEach(n=>Eu(e,n))}function xp(e){let t=e.children.length>0?` { ${e.children.map(xp).join(", ")} } `:"";return`${e.value}${t}`}function Wc(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,rt(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),rt(t.params,n.params)||e.paramsSubject.next(n.params),bI(t.url,n.url)||e.urlSubject.next(n.url),rt(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function pu(e,t){let n=rt(e.params,t.params)&&_I(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||pu(e.parent,t.parent))}function Np(e){return typeof e.title=="string"||e.title===null}var JI=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=S,this.activateEvents=new ie,this.deactivateEvents=new ie,this.attachEvents=new ie,this.detachEvents=new ie,this.parentContexts=p(ds),this.location=p(bi),this.changeDetector=p(Qt),this.inputBinder=p(bu,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new D(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new D(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new D(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new D(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,a=new gu(n,c,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:a,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=ui({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[hi]})}}return e})(),gu=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===Zn?this.route:t===ds?this.childContexts:this.parent.get(t,n)}},bu=new I("");function XI(e,t,n){let r=Zr(e,t._root,n?n._root:void 0);return new ss(r,t)}function Zr(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=eC(e,t,n);return new Te(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(c=>Zr(e,c)),s}}let r=tC(t.value),o=t.children.map(i=>Zr(e,i));return new Te(r,o)}}function eC(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Zr(e,r,o);return Zr(e,r)})}function tC(e){return new Zn(new oe(e.url),new oe(e.params),new oe(e.queryParams),new oe(e.fragment),new oe(e.data),e.outlet,e.component,e)}var Yr=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Ap="ngNavigationCancelingError";function us(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Hr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Rp(!1,_e.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function Rp(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Ap]=!0,n.cancellationCode=t,n}function nC(e){return Op(e)&&Hr(e.url)}function Op(e){return!!e&&e[Ap]}var rC=(e,t,n,r)=>_(o=>(new mu(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),mu=class{constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Wc(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=Bn(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Bn(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:c})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Bn(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=Bn(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new lu(i.value.snapshot))}),t.children.length&&this.forwardEvent(new cu(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(Wc(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let c=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(c.contexts),s.attachRef=c.componentRef,s.route=c.route.value,s.outlet&&s.outlet.attach(c.componentRef,c.route.value),Wc(c.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},ls=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Gn=class{constructor(t,n){this.component=t,this.route=n}};function oC(e,t,n){let r=e._root,o=t?t._root:null;return Lr(r,o,n,[r.value])}function iC(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Qn(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!cd(e)?e:t.get(e):r}function Lr(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Bn(t);return e.children.forEach(s=>{sC(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,c])=>Ur(c,n.getContext(s),o)),o}function sC(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,c=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let a=aC(s,i,i.routeConfig.runGuardsAndResolvers);a?o.canActivateChecks.push(new ls(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Lr(e,t,c?c.children:null,r,o):Lr(e,t,n,r,o),a&&c&&c.outlet&&c.outlet.isActivated&&o.canDeactivateChecks.push(new Gn(c.outlet.component,s))}else s&&Ur(t,c,o),o.canActivateChecks.push(new ls(r)),i.component?Lr(e,null,c?c.children:null,r,o):Lr(e,null,n,r,o);return o}function aC(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Xt(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Xt(e.url,t.url)||!rt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!pu(e,t)||!rt(e.queryParams,t.queryParams);case"paramsChange":default:return!pu(e,t)}}function Ur(e,t,n){let r=Bn(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?Ur(s,t.children.getContext(i),n):Ur(s,null,n):Ur(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Gn(t.outlet.component,o)):n.canDeactivateChecks.push(new Gn(null,o)):n.canDeactivateChecks.push(new Gn(null,o))}function eo(e){return typeof e=="function"}function cC(e){return typeof e=="boolean"}function uC(e){return e&&eo(e.canLoad)}function lC(e){return e&&eo(e.canActivate)}function dC(e){return e&&eo(e.canActivateChild)}function fC(e){return e&&eo(e.canDeactivate)}function hC(e){return e&&eo(e.canMatch)}function Pp(e){return e instanceof it||e?.name==="EmptyError"}var Ji=Symbol("INITIAL_VALUE");function Yn(){return ce(e=>To(e.map(t=>t.pipe(st(1),Rs(Ji)))).pipe(_(t=>{for(let n of t)if(n!==!0){if(n===Ji)return Ji;if(n===!1||pC(n))return n}return!0}),ae(t=>t!==Ji),st(1)))}function pC(e){return Hr(e)||e instanceof Yr}function gC(e,t){return X(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?C(z(v({},n),{guardsResult:!0})):mC(s,r,o,e).pipe(X(c=>c&&cC(c)?vC(r,i,e,t):C(c)),_(c=>z(v({},n),{guardsResult:c})))})}function mC(e,t,n,r){return W(e).pipe(X(o=>CC(o.component,o.route,n,t,r)),qe(o=>o!==!0,!0))}function vC(e,t,n,r){return W(t).pipe(wt(o=>hn(DC(o.route.parent,r),yC(o.route,r),IC(e,o.path,n),wC(e,o.route,n))),qe(o=>o!==!0,!0))}function yC(e,t){return e!==null&&t&&t(new uu(e)),C(!0)}function DC(e,t){return e!==null&&t&&t(new au(e)),C(!0)}function wC(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return C(!0);let o=r.map(i=>_o(()=>{let s=Xr(t)??n,c=Qn(i,s),a=lC(c)?c.canActivate(t,e):Ve(s,()=>c(t,e));return Ft(a).pipe(qe())}));return C(o).pipe(Yn())}function IC(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>iC(s)).filter(s=>s!==null).map(s=>_o(()=>{let c=s.guards.map(a=>{let u=Xr(s.node)??n,l=Qn(a,u),d=dC(l)?l.canActivateChild(r,e):Ve(u,()=>l(r,e));return Ft(d).pipe(qe())});return C(c).pipe(Yn())}));return C(i).pipe(Yn())}function CC(e,t,n,r,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return C(!0);let s=i.map(c=>{let a=Xr(t)??o,u=Qn(c,a),l=fC(u)?u.canDeactivate(e,t,n,r):Ve(a,()=>u(e,t,n,r));return Ft(l).pipe(qe())});return C(s).pipe(Yn())}function EC(e,t,n,r){let o=t.canLoad;if(o===void 0||o.length===0)return C(!0);let i=o.map(s=>{let c=Qn(s,e),a=uC(c)?c.canLoad(t,n):Ve(e,()=>c(t,n));return Ft(a)});return C(i).pipe(Yn(),Fp(r))}function Fp(e){return Es(te(t=>{if(typeof t!="boolean")throw us(e,t)}),_(t=>t===!0))}function bC(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return C(!0);let i=o.map(s=>{let c=Qn(s,e),a=hC(c)?c.canMatch(t,n):Ve(e,()=>c(t,n));return Ft(a)});return C(i).pipe(Yn(),Fp(r))}var Qr=class{constructor(t){this.segmentGroup=t||null}},Kr=class extends Error{constructor(t){super(),this.urlTree=t}};function Un(e){return fn(new Qr(e))}function MC(e){return fn(new D(4e3,!1))}function SC(e){return fn(Rp(!1,_e.GuardRejected))}var vu=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return C(r);if(o.numberOfChildren>1||!o.children[S])return MC(`${t.redirectTo}`);o=o.children[S]}}applyRedirectCommands(t,n,r,o,i){if(typeof n!="string"){let c=n,{queryParams:a,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:g,title:m}=o,y=Ve(i,()=>c({params:f,data:g,queryParams:a,fragment:u,routeConfig:l,url:d,outlet:h,title:m}));if(y instanceof yt)throw new Kr(y);n=y}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new Kr(s);return s}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new yt(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let c=i.substring(1);r[o]=n[c]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([c,a])=>{s[c]=this.createSegmentGroup(t,a,r,o)}),new V(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new D(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}},yu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function TC(e,t,n,r,o){let i=kp(e,t,n);return i.matched?(r=YI(t,r),bC(r,t,n,o).pipe(_(s=>s===!0?i:v({},yu)))):C(i)}function kp(e,t,n){if(t.path==="**")return _C(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?v({},yu):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||EI)(n,e,t);if(!o)return v({},yu);let i={};Object.entries(o.posParams??{}).forEach(([c,a])=>{i[c]=a.path});let s=o.consumed.length>0?v(v({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function _C(e){return{matched:!0,parameters:e.length>0?gp(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function dp(e,t,n,r){return n.length>0&&AC(e,n,r)?{segmentGroup:new V(t,NC(r,new V(n,e.children))),slicedSegments:[]}:n.length===0&&RC(e,n,r)?{segmentGroup:new V(e.segments,xC(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new V(e.segments,e.children),slicedSegments:n}}function xC(e,t,n,r){let o={};for(let i of n)if(fs(e,t,i)&&!r[Ge(i)]){let s=new V([],{});o[Ge(i)]=s}return v(v({},r),o)}function NC(e,t){let n={};n[S]=t;for(let r of e)if(r.path===""&&Ge(r)!==S){let o=new V([],{});n[Ge(r)]=o}return n}function AC(e,t,n){return n.some(r=>fs(e,t,r)&&Ge(r)!==S)}function RC(e,t,n){return n.some(r=>fs(e,t,r))}function fs(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function OC(e,t,n){return t.length===0&&!e.children[n]}var Du=class{};function PC(e,t,n,r,o,i,s="emptyOnly"){return new wu(e,t,n,r,o,s,i).recognize()}var FC=31,wu=class{constructor(t,n,r,o,i,s,c){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=c,this.applyRedirects=new vu(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new D(4002,`'${t.segmentGroup}'`)}recognize(){let t=dp(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(_(({children:n,rootSnapshot:r})=>{let o=new Te(r,n),i=new cs("",o),s=BI(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(t){let n=new zn([],Object.freeze({}),Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),S,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,S,n).pipe(_(r=>({children:r,rootSnapshot:n})),Fe(r=>{if(r instanceof Kr)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Qr?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,o,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,i):this.processSegment(t,n,r,r.segments,o,!0,i).pipe(_(s=>s instanceof Te?[s]:[]))}processChildren(t,n,r,o){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return W(i).pipe(wt(s=>{let c=r.children[s],a=QI(n,s);return this.processSegmentGroup(t,a,c,s,o)}),As((s,c)=>(s.push(...c),s)),It(null),gn(),X(s=>{if(s===null)return Un(r);let c=Lp(s);return kC(c),C(c)}))}processSegment(t,n,r,o,i,s,c){return W(n).pipe(wt(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,o,i,s,c).pipe(Fe(u=>{if(u instanceof Qr)return C(null);throw u}))),qe(a=>!!a),Fe(a=>{if(Pp(a))return OC(r,o,i)?C(new Du):Un(r);throw a}))}processSegmentAgainstRoute(t,n,r,o,i,s,c,a){return Ge(r)!==s&&(s===S||!fs(o,i,r))?Un(o):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,r,i,s,a):this.allowRedirects&&c?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,a):Un(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,c){let{matched:a,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=kp(n,o,i);if(!a)return Un(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>FC&&(this.allowRedirects=!1));let f=new zn(i,u,Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,fp(o),Ge(o),o.component??o._loadedComponent??null,o,hp(o)),g=as(f,c,this.paramsInheritanceStrategy);f.params=Object.freeze(g.params),f.data=Object.freeze(g.data);let m=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(o,m).pipe(X(y=>this.processSegment(t,r,n,y.concat(h),s,!1,c)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let c=TC(n,r,o,t,this.urlSerializer);return r.path==="**"&&(n.children={}),c.pipe(ce(a=>a.matched?(t=r._injector??t,this.getChildConfig(t,r,o).pipe(ce(({routes:u})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=a,g=new zn(h,d,Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,fp(r),Ge(r),r.component??r._loadedComponent??null,r,hp(r)),m=as(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(m.params),g.data=Object.freeze(m.data);let{segmentGroup:y,slicedSegments:T}=dp(n,h,f,u);if(T.length===0&&y.hasChildren())return this.processChildren(l,u,y,g).pipe(_(k=>new Te(g,k)));if(u.length===0&&T.length===0)return C(new Te(g,[]));let $=Ge(r)===i;return this.processSegment(l,u,y,T,$?S:i,!0,g).pipe(_(k=>new Te(g,k instanceof Te?[k]:[])))}))):Un(n)))}getChildConfig(t,n,r){return n.children?C({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?C({routes:n._loadedRoutes,injector:n._loadedInjector}):EC(t,n,r,this.urlSerializer).pipe(X(o=>o?this.configLoader.loadChildren(t,n).pipe(te(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):SC(n))):C({routes:[],injector:t})}};function kC(e){e.sort((t,n)=>t.value.outlet===S?-1:n.value.outlet===S?1:t.value.outlet.localeCompare(n.value.outlet))}function LC(e){let t=e.value.routeConfig;return t&&t.path===""}function Lp(e){let t=[],n=new Set;for(let r of e){if(!LC(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=Lp(r.children);t.push(new Te(r.value,o))}return t.filter(r=>!n.has(r))}function fp(e){return e.data||{}}function hp(e){return e.resolve||{}}function jC(e,t,n,r,o,i){return X(s=>PC(e,t,n,r,s.extractedUrl,o,i).pipe(_(({state:c,tree:a})=>z(v({},s),{targetSnapshot:c,urlAfterRedirects:a}))))}function VC(e,t){return X(n=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return C(n);let i=new Set(o.map(a=>a.route)),s=new Set;for(let a of i)if(!s.has(a))for(let u of jp(a))s.add(u);let c=0;return W(s).pipe(wt(a=>i.has(a)?$C(a,r,e,t):(a.data=as(a,a.parent,e).resolve,C(void 0))),te(()=>c++),pn(1),X(a=>c===s.size?C(n):Ee))})}function jp(e){let t=e.children.map(n=>jp(n)).flat();return[e,...t]}function $C(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!Np(o)&&(i[Jr]=o.title),UC(i,e,t,r).pipe(_(s=>(e._resolvedData=s,e.data=as(e,e.parent,n).resolve,null)))}function UC(e,t,n,r){let o=Qc(e);if(o.length===0)return C({});let i={};return W(o).pipe(X(s=>BC(e[s],t,n,r).pipe(qe(),te(c=>{if(c instanceof Yr)throw us(new Br,c);i[s]=c}))),pn(1),Ns(i),Fe(s=>Pp(s)?Ee:fn(s)))}function BC(e,t,n,r){let o=Xr(t)??r,i=Qn(e,o),s=i.resolve?i.resolve(t,n):Ve(o,()=>i(t,n));return Ft(s)}function Zc(e){return ce(t=>{let n=e(t);return n?W(n).pipe(_(()=>t)):C(t)})}var Vp=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===S);return r}getResolvedTitleForRoute(n){return n.data[Jr]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(HC),providedIn:"root"})}}return e})(),HC=(()=>{class e extends Vp{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(E(sp))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Mu=new I("",{providedIn:"root",factory:()=>({})}),zC=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Xe({type:e,selectors:[["ng-component"]],standalone:!0,features:[tt],decls:1,vars:0,template:function(r,o){r&1&&ft(0,"router-outlet")},dependencies:[JI],encapsulation:2})}}return e})();function Su(e){let t=e.children&&e.children.map(Su),n=t?z(v({},e),{children:t}):v({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==S&&(n.component=zC),n}var Tu=new I(""),GC=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(Cc)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return C(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=Ft(n.loadComponent()).pipe(_($p),te(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Vt(()=>{this.componentLoaders.delete(n)})),o=new dn(r,()=>new re).pipe(ln());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return C({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=qC(r,this.compiler,n,this.onLoadEndListener).pipe(Vt(()=>{this.childrenLoaders.delete(r)})),s=new dn(i,()=>new re).pipe(ln());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function qC(e,t,n,r){return Ft(e.loadChildren()).pipe(_($p),X(o=>o instanceof yr||Array.isArray(o)?C(o):W(t.compileModuleAsync(o))),_(o=>{r&&r(e);let i,s,c=!1;return Array.isArray(o)?(s=o,c=!0):(i=o.create(n).injector,s=i.get(Tu,[],{optional:!0,self:!0}).flat()),{routes:s.map(Su),injector:i}}))}function WC(e){return e&&typeof e=="object"&&"default"in e}function $p(e){return WC(e)?e.default:e}var _u=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(ZC),providedIn:"root"})}}return e})(),ZC=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),YC=new I("");var QC=new I(""),KC=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new re,this.transitionAbortSubject=new re,this.configLoader=p(GC),this.environmentInjector=p(we),this.urlSerializer=p(Cu),this.rootContexts=p(ds),this.location=p(Tr),this.inputBindingEnabled=p(bu,{optional:!0})!==null,this.titleStrategy=p(Vp),this.options=p(Mu,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(_u),this.createViewTransition=p(YC,{optional:!0}),this.navigationErrorHandler=p(QC,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>C(void 0),this.rootComponentType=null;let n=o=>this.events.next(new iu(o)),r=o=>this.events.next(new su(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(z(v(v({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new oe({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:$r,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ae(i=>i.id!==0),_(i=>z(v({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),ce(i=>{let s=!1,c=!1;return C(i).pipe(ce(a=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",_e.SupersededByNewNavigation),Ee;this.currentTransition=i,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?z(v({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=a.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&l!=="reload"){let d="";return this.events.next(new tn(a.id,this.urlSerializer.serialize(a.rawUrl),d,eu.IgnoredSameUrlNavigation)),a.resolve(!1),Ee}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return C(a).pipe(ce(d=>{let h=this.transitions?.getValue();return this.events.next(new Gr(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?Ee:Promise.resolve(d)}),jC(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),te(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=z(v({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new os(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:g,extras:m}=a,y=new Gr(d,this.urlSerializer.serialize(h),f,g);this.events.next(y);let T=_p(this.rootComponentType).snapshot;return this.currentTransition=i=z(v({},a),{targetSnapshot:T,urlAfterRedirects:h,extras:z(v({},m),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,C(i)}else{let d="";return this.events.next(new tn(a.id,this.urlSerializer.serialize(a.extractedUrl),d,eu.IgnoredByUrlHandlingStrategy)),a.resolve(!1),Ee}}),te(a=>{let u=new tu(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),_(a=>(this.currentTransition=i=z(v({},a),{guards:oC(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),i)),gC(this.environmentInjector,a=>this.events.next(a)),te(a=>{if(i.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw us(this.urlSerializer,a.guardsResult);let u=new nu(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(u)}),ae(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",_e.GuardRejected),!1)),Zc(a=>{if(a.guards.canActivateChecks.length)return C(a).pipe(te(u=>{let l=new ru(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),ce(u=>{let l=!1;return C(u).pipe(VC(this.paramsInheritanceStrategy,this.environmentInjector),te({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(u,"",_e.NoDataFromResolver)}}))}),te(u=>{let l=new ou(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}))}),Zc(a=>{let u=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(te(h=>{l.component=h}),_(()=>{})));for(let h of l.children)d.push(...u(h));return d};return To(u(a.targetSnapshot.root)).pipe(It(null),st(1))}),Zc(()=>this.afterPreactivation()),ce(()=>{let{currentSnapshot:a,targetSnapshot:u}=i,l=this.createViewTransition?.(this.environmentInjector,a.root,u.root);return l?W(l).pipe(_(()=>i)):C(i)}),_(a=>{let u=XI(n.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=i=z(v({},a),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,i}),te(()=>{this.events.next(new Wr)}),rC(this.rootContexts,n.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),st(1),te({next:a=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new en(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{s=!0}}),Os(this.transitionAbortSubject.pipe(te(a=>{throw a}))),Vt(()=>{!s&&!c&&this.cancelNavigationTransition(i,"",_e.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),Fe(a=>{if(c=!0,Op(a))this.events.next(new vt(i.id,this.urlSerializer.serialize(i.extractedUrl),a.message,a.cancellationCode)),nC(a)?this.events.next(new Wn(a.url,a.navigationBehaviorOptions)):i.resolve(!1);else{let u=new qr(i.id,this.urlSerializer.serialize(i.extractedUrl),a,i.targetSnapshot??void 0);try{let l=Ve(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof Yr){let{message:d,cancellationCode:h}=us(this.urlSerializer,l);this.events.next(new vt(i.id,this.urlSerializer.serialize(i.extractedUrl),d,h)),this.events.next(new Wn(l.redirectTo,l.navigationBehaviorOptions))}else{this.events.next(u);let d=n.errorHandler(a);i.resolve(!!d)}}catch(l){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(l)}}return Ee}))}))}cancelNavigationTransition(n,r,o){let i=new vt(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function JC(e){return e!==$r}var XC=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(eE),providedIn:"root"})}}return e})(),Iu=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},eE=(()=>{class e extends Iu{static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=ec(e)))(o||e)}})()}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Up=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(tE),providedIn:"root"})}}return e})(),tE=(()=>{class e extends Up{constructor(){super(...arguments),this.location=p(Tr),this.urlSerializer=p(Cu),this.options=p(Mu,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(_u),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new yt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=_p(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof Gr)this.stateMemento=this.createStateMemento();else if(n instanceof tn)this.rawUrlTree=r.initialUrl;else if(n instanceof os){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??o,r)}}else n instanceof Wr?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof vt&&(n.code===_e.GuardRejected||n.code===_e.NoDataFromResolver)?this.restoreHistory(r):n instanceof qr?this.restoreHistory(r,!0):n instanceof en&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=n instanceof yt?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let i=this.browserPageId,s=v(v({},r.extras.state),this.generateNgRouterState(r.id,i));this.location.replaceState(o,"",s)}else{let i=v(v({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",i)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.currentUrlTree===n.finalUrl&&i===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=ec(e)))(o||e)}})()}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),jr=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(jr||{});function nE(e,t){e.events.pipe(ae(n=>n instanceof en||n instanceof vt||n instanceof qr||n instanceof tn),_(n=>n instanceof en||n instanceof tn?jr.COMPLETE:(n instanceof vt?n.code===_e.Redirect||n.code===_e.SupersededByNewNavigation:!1)?jr.REDIRECTING:jr.FAILED),ae(n=>n!==jr.REDIRECTING),st(1)).subscribe(()=>{t()})}function rE(e){throw e}var oE={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},iE={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Bp=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=p(_i),this.stateManager=p(Up),this.options=p(Mu,{optional:!0})||{},this.pendingTasks=p(lt),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(KC),this.urlSerializer=p(Cu),this.location=p(Tr),this.urlHandlingStrategy=p(_u),this._events=new re,this.errorHandler=this.options.errorHandler||rE,this.navigated=!1,this.routeReuseStrategy=p(XC),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(Tu,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(bu,{optional:!0}),this.eventsSubscription=new Y,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof vt&&r.code!==_e.Redirect&&r.code!==_e.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof en)this.navigated=!0;else if(r instanceof Wn){let s=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),a=v({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||JC(o.source)},s);this.scheduleNavigation(c,$r,null,a,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}aE(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),$r,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){let i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let a=v({},o);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(i.state=a)}let c=this.parseUrl(n);this.scheduleNavigation(c,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Su),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:c,preserveFragment:a}=r,u=a?this.currentUrlTree.fragment:s,l=null;switch(c??this.options.defaultQueryParamsHandling){case"merge":l=v(v({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let h=o?o.snapshot:this.routerState.snapshot.root;d=bp(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return Mp(d,n,l,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Hr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,$r,null,r)}navigate(n,r={skipLocationChange:!1}){return sE(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=v({},oE):r===!1?o=v({},iE):o=r,Hr(n))return ap(this.currentUrlTree,n,o);let i=this.parseUrl(n);return ap(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let c,a,u;s?(c=s.resolve,a=s.reject,u=s.promise):u=new Promise((d,h)=>{c=d,a=h});let l=this.pendingTasks.add();return nE(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:c,reject:a,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function sE(e){for(let t=0;tn.\u0275providers)])}function uE(e){return e.routerState.root}function lE(){let e=p(Ke);return t=>{let n=e.get(Nt);if(t!==n.components[0])return;let r=e.get(Bp),o=e.get(dE);e.get(fE)===1&&r.initialNavigation(),e.get(hE,null,N.Optional)?.setUpPreloading(),e.get(cE,null,N.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var dE=new I("",{factory:()=>new re}),fE=new I("",{providedIn:"root",factory:()=>1});var hE=new I("");var zp=[];var Gp={providers:[wh({eventCoalescing:!0}),Hp(zp),Qh()]};var qp=(()=>{class e{constructor(n){this.http=n}quitTt(){this.http.get("http://localhost:8888/quit",{responseType:"text"}).subscribe(()=>{window.close()})}static{this.\u0275fac=function(r){return new(r||e)(E(Rr))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Wp=(()=>{class e{constructor(n){this.ttService=n,this.now=new Date,this.selectedDate=new ie}handleChange(n){this.selectedDate.emit(n.target.valueAsDate||new Date)}handleQuit(){this.ttService.quitTt()}static{this.\u0275fac=function(r){return new(r||e)(pe(qp))}}static{this.\u0275cmp=Xe({type:e,selectors:[["app-navbar"]],outputs:{selectedDate:"selectedDate"},standalone:!0,features:[tt],decls:4,vars:0,consts:[["type","date",3,"change"],["id","quit-button",3,"click"]],template:function(r,o){r&1&&(Me(0,"nav")(1,"input",0),ht("change",function(s){return o.handleChange(s)}),ge(),Me(2,"button",1),ht("click",function(){return o.handleQuit()}),kn(3,"Quit"),ge()())},styles:["nav[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;gap:3rem;height:5vh;padding:5px}input[type=date][_ngcontent-%COMP%]{background-color:#0080ff;height:3.5rem;padding:15px;font-family:Roboto Mono,monospace;color:#fff;font-size:18px;border:none;outline:none;border-radius:5px}#quit-button[_ngcontent-%COMP%]{padding:13px 40px;height:45px;border-radius:10px;border:0;background-color:#ff3856;letter-spacing:1.5px;font-size:15px;transition:all .3s ease;box-shadow:#c92e46 0 10px;color:#fff;cursor:pointer}#quit-button[_ngcontent-%COMP%]:hover{box-shadow:#c92e46 0 7px}#quit-button[_ngcontent-%COMP%]:active{background-color:#ff3856;box-shadow:#c92e46 0 0;transform:translateY(5px);transition:.2s}"]})}}return e})();function xu(e,t){!t?.injector&&Ba(xu);let n=t?.injector??p(Ke),r=new nr(1),o=Mc(()=>{let i;try{i=e()}catch(s){jn(()=>r.error(s));return}jn(()=>r.next(i))},{injector:n,manualCleanup:!0});return n.get(Ir).onDestroy(()=>{o.destroy(),r.complete()}),r.asObservable()}var gE=e=>({height:e});function mE(e,t){if(e&1&&(Me(0,"div",3)(1,"span",4),kn(2),Sr(3,"date"),ge()()),e&2){let n,r=Mr();et(2),Si(wc(3,1,(n=r.timeSlot())==null?null:n.End,"shortTime"))}}var Zp=(()=>{class e{constructor(){this.timeSlot=Pn(),this.scroll=Pn(1),this.lastElement=Pn(!1),this.heightPx=bc(()=>{let n=this.timeSlot();if(!n)return 40;let r=new Date(n.Start),s=(new Date(n.End).getTime()-r.getTime())/(1e3*60)*this.scroll();return Math.max(40,s)}),this.last=gn}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Xe({type:e,selectors:[["app-time-slot"]],inputs:{timeSlot:[1,"timeSlot"],scroll:[1,"scroll"],lastElement:[1,"lastElement"]},standalone:!0,features:[tt],decls:12,vars:9,consts:[[1,"time-slot",3,"ngStyle"],[1,"time-slot-divider"],[1,"line"],[1,"endpoint"],[1,"mr","d"],[1,"v-line"],[1,"content-container"],[1,"content"]],template:function(r,o){if(r&1&&(Me(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4),kn(5),Sr(6,"date"),ge()(),ft(7,"div",5),br(8,mE,4,4,"div",3),ge(),Me(9,"div",6)(10,"div",7),kn(11),ge()()()()),r&2){let i,s;Yt("ngStyle",dh(7,gE,o.heightPx()+"px")),et(5),Si(wc(6,4,(i=o.timeSlot())==null?null:i.Start,"shortTime")),et(3),Mi(o.lastElement()?8:-1),et(3),Ti(" ",(s=o.timeSlot())==null?null:s.Text," ")}},dependencies:[Fh,jh],styles:[".time-slot[_ngcontent-%COMP%]{width:25rem;padding-left:10rem}.time-slot[_ngcontent-%COMP%] .time-slot-divider[_ngcontent-%COMP%]{--endpoint-width: 20px;--endpoint-height: 10px;display:flex;height:100%}.time-slot[_ngcontent-%COMP%] .time-slot-divider[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%]{display:flex;height:100%;width:calc(100% - var(--endpoint-width));align-items:end}.time-slot[_ngcontent-%COMP%] .time-slot-divider[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:3px;text-align:center;height:calc(100% - var(--endpoint-height));width:100%;background-color:#3c9fc887;overflow:hidden}.time-slot[_ngcontent-%COMP%] .time-slot-divider[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:20px;align-items:center}.time-slot[_ngcontent-%COMP%] .time-slot-divider[_ngcontent-%COMP%] .line[_ngcontent-%COMP%] .v-line[_ngcontent-%COMP%]{height:calc(100% - var(--endpoint-height));width:3px;background-color:#575757bf;flex-grow:0;flex-shrink:0}.time-slot[_ngcontent-%COMP%] .time-slot-divider[_ngcontent-%COMP%] .line[_ngcontent-%COMP%] .endpoint[_ngcontent-%COMP%]{height:var(--endpoint-height);width:var(--endpoint-width);background-color:#000;flex-grow:0;flex-shrink:0}.d[_ngcontent-%COMP%]{display:block;width:7rem}.mr[_ngcontent-%COMP%]{position:relative;right:7rem}"]})}}return e})();var Yp=(()=>{class e{constructor(n){this.http=n}timeSlotsForDay$(n){return this.http.get(`http://localhost:8888/tt/${n.getTime()}`)}static{this.\u0275fac=function(r){return new(r||e)(E(Rr))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var yE=(e,t)=>t.ID;function DE(e,t){if(e&1&&ft(0,"app-time-slot",1),e&2){let n=t.$implicit,r=t.$index,o=t.$count,i=Mr(2);Yt("timeSlot",n)("scroll",i.scroll)("lastElement",r===o-1)}}function wE(e,t){if(e&1&&(Me(0,"div",0),sh(1,DE,1,3,"app-time-slot",1,yE),ge()),e&2){Mr();let n=lh(0);et(),ah(n)}}var Qp=(()=>{class e{onWheel(n){n.deltaY>0?this.scroll-=.3:n.deltaY<0&&(this.scroll+=.3)}constructor(n){this.timeSlotService=n,this.scroll=1,this.date=Pn(),this.timeSlots$=xu(this.date).pipe(ae(r=>r!==void 0),ce(r=>this.timeSlotService.timeSlotsForDay$(r)),Fe(()=>C([])))}static{this.\u0275fac=function(r){return new(r||e)(pe(Yp))}}static{this.\u0275cmp=Xe({type:e,selectors:[["app-timeline"]],hostBindings:function(r,o){r&1&&ht("wheel",function(s){return o.onWheel(s)},!1,Ef)},inputs:{date:[1,"date"]},standalone:!0,features:[tt],decls:3,vars:4,consts:[[1,"timeline-container"],[3,"timeSlot","scroll","lastElement"]],template:function(r,o){if(r&1&&(Dc(0),Sr(1,"async"),br(2,wE,3,0,"div",0)),r&2){let i=uh(ph(1,1,o.timeSlots$));et(2),Mi(i?2:-1)}},dependencies:[Lh,Zp],styles:[".timeline-container[_ngcontent-%COMP%]{padding:2rem;margin-top:4rem;overflow-y:scroll;max-height:95vh}"]})}}return e})();var Kp=(()=>{class e{constructor(){this.title="angular-ui",this.selectedDate=new Date}handleDateSelected(n){this.selectedDate=n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Xe({type:e,selectors:[["app-root"]],standalone:!0,features:[tt],decls:3,vars:1,consts:[[1,"home-container"],[3,"selectedDate"],[3,"date"]],template:function(r,o){r&1&&(Me(0,"div",0)(1,"app-navbar",1),ht("selectedDate",function(s){return o.handleDateSelected(s)}),ge(),ft(2,"app-timeline",2),ge()),r&2&&(et(2),Yt("date",o.selectedDate))},dependencies:[Wp,Qp],styles:[".home-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%}"]})}}return e})();ip(Kp,Gp).catch(e=>console.error(e)); diff --git a/internal/ui/web/main-U2TA75LH.js b/internal/ui/web/main-U2TA75LH.js deleted file mode 100644 index b60f6d4..0000000 --- a/internal/ui/web/main-U2TA75LH.js +++ /dev/null @@ -1,8 +0,0 @@ -var ng=Object.defineProperty,rg=Object.defineProperties;var og=Object.getOwnPropertyDescriptors;var Nu=Object.getOwnPropertySymbols;var ig=Object.prototype.hasOwnProperty,sg=Object.prototype.propertyIsEnumerable;var Au=(e,t,n)=>t in e?ng(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||={})ig.call(t,n)&&Au(e,n,t[n]);if(Nu)for(var n of Nu(t))sg.call(t,n)&&Au(e,n,t[n]);return e},z=(e,t)=>rg(e,og(t));var to=(e,t,n)=>new Promise((r,o)=>{var i=a=>{try{c(n.next(a))}catch(u){o(u)}},s=a=>{try{c(n.throw(a))}catch(u){o(u)}},c=a=>a.done?r(a.value):Promise.resolve(a.value).then(i,s);c((n=n.apply(e,t)).next())});function Ru(e,t){return Object.is(e,t)}var J=null,Kn=!1,no=1,nn=Symbol("SIGNAL");function A(e){let t=J;return J=e,t}function Ou(){return J}function ag(){return Kn}var rn={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 vs(e){if(Kn)throw new Error("");if(J===null)return;J.consumerOnSignalRead(e);let t=J.nextProducerIndex++;if(co(J),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function io(e){co(e);for(let t=0;t0}function co(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function ju(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Vu(e){return e.producerNode!==void 0}function $u(e){let t=Object.create(lg);t.computation=e;let n=()=>{if(Pu(t),vs(t),t.value===ro)throw t.error;return t.value};return n[nn]=t,n}var ps=Symbol("UNSET"),gs=Symbol("COMPUTING"),ro=Symbol("ERRORED"),lg=z(v({},rn),{value:ps,dirty:!0,error:null,equal:Ru,producerMustRecompute(e){return e.value===ps||e.value===gs},producerRecomputeValue(e){if(e.value===gs)throw new Error("Detected cycle in computations.");let t=e.value;e.value=gs;let n=Xn(e),r;try{r=e.computation()}catch(o){r=ro,e.error=o}finally{oo(e,n)}if(t!==ps&&t!==ro&&r!==ro&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function dg(){throw new Error}var Uu=dg;function fg(){Uu()}function Bu(e){Uu=e}var hg=null;function Hu(e,t){ug()||fg(),e.equal(e.value,t)||(e.value=t,pg(e))}var zu=z(v({},rn),{equal:Ru,value:void 0});function pg(e){e.version++,cg(),Fu(e),hg?.()}function Gu(e,t,n){let r=Object.create(gg);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let o=a=>{r.cleanupFn=a};function i(a){return a.fn===null&&a.schedule===null}function s(a){i(a)||(so(a),a.cleanupFn(),a.fn=null,a.schedule=null,a.cleanupFn=ms)}let c=()=>{if(r.fn===null)return;if(ag())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!io(r))return;r.hasRun=!0;let a=Xn(r);try{r.cleanupFn(),r.cleanupFn=ms,r.fn(o)}finally{oo(r,a)}};return r.ref={notify:()=>ku(r),run:c,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[nn]:r},r.ref}var ms=()=>{},gg=z(v({},rn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:ms});function M(e){return typeof e=="function"}function on(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var uo=on(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: -${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=n});function er(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Y=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(M(r))try{r()}catch(i){t=i instanceof uo?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{qu(i)}catch(s){t=t??[],s instanceof uo?t=[...t,...s.errors]:t.push(s)}}if(t)throw new uo(t)}}add(t){var n;if(t&&t!==this)if(this.closed)qu(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&er(n,t)}remove(t){let{_finalizers:n}=this;n&&er(n,t),t instanceof e&&t._removeParent(this)}};Y.EMPTY=(()=>{let e=new Y;return e.closed=!0,e})();var ys=Y.EMPTY;function lo(e){return e instanceof Y||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function qu(e){M(e)?e():e.unsubscribe()}var Pe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var sn={setTimeout(e,t,...n){let{delegate:r}=sn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=sn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function fo(e){sn.setTimeout(()=>{let{onUnhandledError:t}=Pe;if(t)t(e);else throw e})}function tr(){}var Wu=Ds("C",void 0,void 0);function Zu(e){return Ds("E",void 0,e)}function Yu(e){return Ds("N",e,void 0)}function Ds(e,t,n){return{kind:e,value:t,error:n}}var kt=null;function an(e){if(Pe.useDeprecatedSynchronousErrorHandling){let t=!kt;if(t&&(kt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=kt;if(kt=null,n)throw r}}else e()}function Qu(e){Pe.useDeprecatedSynchronousErrorHandling&&kt&&(kt.errorThrown=!0,kt.error=e)}var Lt=class extends Y{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,lo(t)&&t.add(this)):this.destination=yg}static create(t,n,r){return new cn(t,n,r)}next(t){this.isStopped?Cs(Yu(t),this):this._next(t)}error(t){this.isStopped?Cs(Zu(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Cs(Wu,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},mg=Function.prototype.bind;function ws(e,t){return mg.call(e,t)}var Is=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ho(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ho(r)}else ho(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ho(n)}}},cn=class extends Lt{constructor(t,n,r){super();let o;if(M(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Pe.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ws(t.next,i),error:t.error&&ws(t.error,i),complete:t.complete&&ws(t.complete,i)}):o=t}this.destination=new Is(o)}};function ho(e){Pe.useDeprecatedSynchronousErrorHandling?Qu(e):fo(e)}function vg(e){throw e}function Cs(e,t){let{onStoppedNotification:n}=Pe;n&&sn.setTimeout(()=>n(e,t))}var yg={closed:!0,next:tr,error:vg,complete:tr};var un=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ee(e){return e}function Es(...e){return bs(e)}function bs(e){return e.length===0?Ee:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var F=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=wg(n)?n:new cn(n,r,o);return an(()=>{let{operator:s,source:c}=this;i.add(s?s.call(i,c):c?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Ku(r),new r((o,i)=>{let s=new cn({next:c=>{try{n(c)}catch(a){i(a),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[un](){return this}pipe(...n){return bs(n)(this)}toPromise(n){return n=Ku(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Ku(e){var t;return(t=e??Pe.Promise)!==null&&t!==void 0?t:Promise}function Dg(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function wg(e){return e&&e instanceof Lt||Dg(e)&&lo(e)}function Ms(e){return M(e?.lift)}function O(e){return t=>{if(Ms(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function P(e,t,n,r,o){return new Ss(e,t,n,r,o)}var Ss=class extends Lt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(c){try{n(c)}catch(a){t.error(a)}}:super._next,this._error=o?function(c){try{o(c)}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function ln(){return O((e,t)=>{let n=null;e._refCount++;let r=P(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var dn=class extends F{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Ms(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Y;let n=this.getSubject();t.add(this.source.subscribe(P(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Y.EMPTY)}return t}refCount(){return ln()(this)}};var Ju=on(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var re=(()=>{class e extends F{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new po(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Ju}next(n){an(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){an(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){an(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?ys:(this.currentObservers=null,i.push(n),new Y(()=>{this.currentObservers=null,er(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new F;return n.source=this,n}}return e.create=(t,n)=>new po(t,n),e})(),po=class extends re{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:ys}};var oe=class extends re{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Ts={now(){return(Ts.delegate||Date).now()},delegate:void 0};var nr=class extends re{constructor(t=1/0,n=1/0,r=Ts){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;se.complete());function Xu(e){return e&&M(e.schedule)}function el(e){return e[e.length-1]}function tl(e){return M(el(e))?e.pop():void 0}function yt(e){return Xu(el(e))?e.pop():void 0}function rl(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function c(l){try{u(r.next(l))}catch(d){s(d)}}function a(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(c,a)}u((r=r.apply(e,t||[])).next())})}function nl(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function jt(e){return this instanceof jt?(this.v=e,this):new jt(e)}function ol(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function c(f,g){r[f]&&(o[f]=function(m){return new Promise(function(y,T){i.push([f,m,y,T])>1||a(f,m)})},g&&(o[f]=g(o[f])))}function a(f,g){try{u(r[f](g))}catch(m){h(i[0][3],m)}}function u(f){f.value instanceof jt?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){a("next",f)}function d(f){a("throw",f)}function h(f,g){f(g),i.shift(),i.length&&a(i[0][0],i[0][1])}}function il(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof nl=="function"?nl(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(c,a){s=e[i](s),o(c,a,s.done,s.value)})}}function o(i,s,c,a){Promise.resolve(a).then(function(u){i({value:u,done:c})},s)}}var go=e=>e&&typeof e.length=="number"&&typeof e!="function";function mo(e){return M(e?.then)}function vo(e){return M(e[un])}function yo(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function Do(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Cg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var wo=Cg();function Co(e){return M(e?.[wo])}function Io(e){return ol(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield jt(n.read());if(o)return yield jt(void 0);yield yield jt(r)}}finally{n.releaseLock()}})}function Eo(e){return M(e?.getReader)}function ee(e){if(e instanceof F)return e;if(e!=null){if(vo(e))return Ig(e);if(go(e))return Eg(e);if(mo(e))return bg(e);if(yo(e))return sl(e);if(Co(e))return Mg(e);if(Eo(e))return Sg(e)}throw Do(e)}function Ig(e){return new F(t=>{let n=e[un]();if(M(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Eg(e){return new F(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,fo)})}function Mg(e){return new F(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function sl(e){return new F(t=>{Tg(e,t).catch(n=>t.error(n))})}function Sg(e){return sl(Io(e))}function Tg(e,t){var n,r,o,i;return rl(this,void 0,void 0,function*(){try{for(n=il(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function ye(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function bo(e,t=0){return O((n,r)=>{n.subscribe(P(r,o=>ye(r,e,()=>r.next(o),t),()=>ye(r,e,()=>r.complete(),t),o=>ye(r,e,()=>r.error(o),t)))})}function Mo(e,t=0){return O((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function al(e,t){return ee(e).pipe(Mo(t),bo(t))}function cl(e,t){return ee(e).pipe(Mo(t),bo(t))}function ul(e,t){return new F(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function ll(e,t){return new F(n=>{let r;return ye(n,t,()=>{r=e[wo](),ye(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>M(r?.return)&&r.return()})}function So(e,t){if(!e)throw new Error("Iterable cannot be null");return new F(n=>{ye(n,t,()=>{let r=e[Symbol.asyncIterator]();ye(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function dl(e,t){return So(Io(e),t)}function fl(e,t){if(e!=null){if(vo(e))return al(e,t);if(go(e))return ul(e,t);if(mo(e))return cl(e,t);if(yo(e))return So(e,t);if(Co(e))return ll(e,t);if(Eo(e))return dl(e,t)}throw Do(e)}function W(e,t){return t?fl(e,t):ee(e)}function b(...e){let t=yt(e);return W(e,t)}function fn(e,t){let n=M(e)?e:()=>e,r=o=>o.error(n());return new F(t?o=>t.schedule(r,0,o):r)}function _s(e){return!!e&&(e instanceof F||M(e.lift)&&M(e.subscribe))}var it=on(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function _(e,t){return O((n,r)=>{let o=0;n.subscribe(P(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:_g}=Array;function xg(e,t){return _g(t)?e(...t):e(t)}function hl(e){return _(t=>xg(e,t))}var{isArray:Ng}=Array,{getPrototypeOf:Ag,prototype:Rg,keys:Og}=Object;function pl(e){if(e.length===1){let t=e[0];if(Ng(t))return{args:t,keys:null};if(Pg(t)){let n=Og(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Pg(e){return e&&typeof e=="object"&&Ag(e)===Rg}function gl(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function To(...e){let t=yt(e),n=tl(e),{args:r,keys:o}=pl(e);if(r.length===0)return W([],t);let i=new F(Fg(r,t,o?s=>gl(o,s):Ee));return n?i.pipe(hl(n)):i}function Fg(e,t,n=Ee){return r=>{ml(t,()=>{let{length:o}=e,i=new Array(o),s=o,c=o;for(let a=0;a{let u=W(e[a],t),l=!1;u.subscribe(P(r,d=>{i[a]=d,l||(l=!0,c--),c||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function ml(e,t,n){e?ye(n,e,t):t()}function vl(e,t,n,r,o,i,s,c){let a=[],u=0,l=0,d=!1,h=()=>{d&&!a.length&&!u&&t.complete()},f=m=>u{i&&t.next(m),u++;let y=!1;ee(n(m,l++)).subscribe(P(t,T=>{o?.(T),i?f(T):t.next(T)},()=>{y=!0},void 0,()=>{if(y)try{for(u--;a.length&&ug(T)):g(T)}h()}catch(T){t.error(T)}}))};return e.subscribe(P(t,f,()=>{d=!0,h()})),()=>{c?.()}}function X(e,t,n=1/0){return M(t)?X((r,o)=>_((i,s)=>t(r,i,o,s))(ee(e(r,o))),n):(typeof t=="number"&&(n=t),O((r,o)=>vl(r,o,e,n)))}function xs(e=1/0){return X(Ee,e)}function yl(){return xs(1)}function hn(...e){return yl()(W(e,yt(e)))}function _o(e){return new F(t=>{ee(e()).subscribe(t)})}function ae(e,t){return O((n,r)=>{let o=0;n.subscribe(P(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Dt(e){return O((t,n)=>{let r=null,o=!1,i;r=t.subscribe(P(n,void 0,void 0,s=>{i=ee(e(s,Dt(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Dl(e,t,n,r,o){return(i,s)=>{let c=n,a=t,u=0;i.subscribe(P(s,l=>{let d=u++;a=c?e(a,l,d):(c=!0,l),r&&s.next(a)},o&&(()=>{c&&s.next(a),s.complete()})))}}function wt(e,t){return M(t)?X(e,t,1):X(e,1)}function Ct(e){return O((t,n)=>{let r=!1;t.subscribe(P(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function st(e){return e<=0?()=>be:O((t,n)=>{let r=0;t.subscribe(P(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Ns(e){return _(()=>e)}function xo(e=kg){return O((t,n)=>{let r=!1;t.subscribe(P(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function kg(){return new it}function Vt(e){return O((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Ge(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ae((o,i)=>e(o,i,r)):Ee,st(1),n?Ct(t):xo(()=>new it))}function pn(e){return e<=0?()=>be:O((t,n)=>{let r=[];t.subscribe(P(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function gn(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ae((o,i)=>e(o,i,r)):Ee,pn(1),n?Ct(t):xo(()=>new it))}function As(e,t){return O(Dl(e,t,arguments.length>=2,!0))}function Rs(...e){let t=yt(e);return O((n,r)=>{(t?hn(e,n,t):hn(e,n)).subscribe(r)})}function ce(e,t){return O((n,r)=>{let o=null,i=0,s=!1,c=()=>s&&!o&&r.complete();n.subscribe(P(r,a=>{o?.unsubscribe();let u=0,l=i++;ee(e(a,l)).subscribe(o=P(r,d=>r.next(t?t(a,d,l,u++):d),()=>{o=null,c()}))},()=>{s=!0,c()}))})}function Os(e){return O((t,n)=>{ee(e).subscribe(P(n,()=>n.complete(),tr)),!n.closed&&t.subscribe(n)})}function te(e,t,n){let r=M(e)||t||n?{next:e,error:t,complete:n}:e;return r?O((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let c=!0;o.subscribe(P(i,a=>{var u;(u=r.next)===null||u===void 0||u.call(r,a),i.next(a)},()=>{var a;c=!1,(a=r.complete)===null||a===void 0||a.call(r),i.complete()},a=>{var u;c=!1,(u=r.error)===null||u===void 0||u.call(r,a),i.error(a)},()=>{var a,u;c&&((a=r.unsubscribe)===null||a===void 0||a.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):Ee}var D=class extends Error{constructor(t,n){super(ii(t,n)),this.code=t}};function ii(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var rd=Symbol("InputSignalNode#UNSET"),Lg=z(v({},zu),{transformFn:void 0,applyValueToInputSignal(e,t){Hu(e,t)}});function od(e,t){let n=Object.create(Lg);n.value=e,n.transformFn=t?.transform;function r(){if(vs(n),n.value===rd)throw new D(-950,!1);return n.value}return r[nn]=n,r}function si(e){return{toString:e}.toString()}var No="__parameters__";function jg(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function id(e,t,n){return si(()=>{let r=jg(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return c.annotation=s,c;function c(a,u,l){let d=a.hasOwnProperty(No)?a[No]:Object.defineProperty(a,No,{value:[]})[No];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),a}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var rr=globalThis;function B(e){for(let t in e)if(e[t]===B)return t;throw Error("Could not find renamed property on target object.")}function Me(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(Me).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` -`);return n===-1?t:t.substring(0,n)}function wl(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Vg=B({__forward_ref__:B});function sd(e){return e.__forward_ref__=sd,e.toString=function(){return Me(this())},e}function xe(e){return ad(e)?e():e}function ad(e){return typeof e=="function"&&e.hasOwnProperty(Vg)&&e.__forward_ref__===sd}function w(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ai(e){return Cl(e,ud)||Cl(e,ld)}function cd(e){return ai(e)!==null}function Cl(e,t){return e.hasOwnProperty(t)?e[t]:null}function $g(e){let t=e&&(e[ud]||e[ld]);return t||null}function Il(e){return e&&(e.hasOwnProperty(El)||e.hasOwnProperty(Ug))?e[El]:null}var ud=B({\u0275prov:B}),El=B({\u0275inj:B}),ld=B({ngInjectableDef:B}),Ug=B({ngInjectorDef:B}),C=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=w({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function dd(e){return e&&!!e.\u0275providers}var Bg=B({\u0275cmp:B}),Hg=B({\u0275dir:B}),zg=B({\u0275pipe:B}),Gg=B({\u0275mod:B}),jo=B({\u0275fac:B}),sr=B({__NG_ELEMENT_ID__:B}),bl=B({__NG_ENV_ID__:B});function fd(e){return typeof e=="string"?e:e==null?"":String(e)}function qg(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():fd(e)}function Wg(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new D(-200,e)}function Pa(e,t){throw new D(-201,!1)}var N=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(N||{}),Hs;function hd(){return Hs}function De(e){let t=Hs;return Hs=e,t}function pd(e,t,n){let r=ai(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&N.Optional)return null;if(t!==void 0)return t;Pa(e,"Injector")}var Zg={},ar=Zg,zs="__NG_DI_FLAG__",Vo="ngTempTokenPath",Yg="ngTokenPath",Qg=/\n/gm,Kg="\u0275",Ml="__source",Dn;function Jg(){return Dn}function It(e){let t=Dn;return Dn=e,t}function Xg(e,t=N.Default){if(Dn===void 0)throw new D(-203,!1);return Dn===null?pd(e,void 0,t):Dn.get(e,t&N.Optional?null:void 0,t)}function I(e,t=N.Default){return(hd()||Xg)(xe(e),t)}function p(e,t=N.Default){return I(e,ci(t))}function ci(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Gs(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let c=t[s];i.push(s+":"+(typeof c=="string"?JSON.stringify(c):Me(c)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Qg,` - `)}`}var Fa=gd(id("Optional"),8);var md=gd(id("SkipSelf"),4);function Bt(e,t){let n=e.hasOwnProperty(jo);return n?e[jo]:null}function ka(e,t){e.forEach(n=>Array.isArray(n)?ka(n,t):t(n))}function vd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function $o(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var cr={},Cn=[],In=new C(""),yd=new C("",-1),Dd=new C(""),Uo=class{get(t,n=ar){if(n===ar){let r=new Error(`NullInjectorError: No provider for ${Me(t)}!`);throw r.name="NullInjectorError",r}return n}},wd=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(wd||{}),Ze=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ze||{}),Mt=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Mt||{});function rm(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function qs(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(Fe(r))return!1;s=!0}}}}return Fe(r)||s}function Fe(e){return(e&1)===0}function um(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+c+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Fe(s)&&(t+=Tl(i,o),o=""),r=s,i=i||!Fe(r);n++}return o!==""&&(t+=Tl(i,o)),t}function pm(e){return e.map(hm).join(",")}function gm(e){let t=[],n=[],r=1,o=2;for(;r{let t=Sd(e),n=z(v({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===wd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ze.Emulated,styles:e.styles||Cn,_:null,schemas:e.schemas||null,tView:null,id:""});Td(n);let r=e.dependencies;return n.directiveDefs=xl(r,!1),n.pipeDefs=xl(r,!0),n.id=ym(n),n})}function mm(e){return Ht(e)||Id(e)}function vm(e){return e!==null}function _l(e,t){if(e==null)return cr;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,c=Mt.None;Array.isArray(o)?(c=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=c!==Mt.None?[r,c]:r,t[i]=s):n[i]=r}return n}function ui(e){return si(()=>{let t=Sd(e);return Td(t),t})}function Va(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ht(e){return e[Bg]||null}function Id(e){return e[Hg]||null}function Ed(e){return e[zg]||null}function bd(e){let t=Ht(e)||Id(e)||Ed(e);return t!==null?t.standalone:!1}function Md(e,t){let n=e[Gg]||null;if(!n&&t===!0)throw new Error(`Type ${Me(e)} does not have '\u0275mod' property.`);return n}function Sd(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||cr,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Cn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:_l(e.inputs,t),outputs:_l(e.outputs),debugInfo:null}}function Td(e){e.features?.forEach(t=>t(e))}function xl(e,t){if(!e)return null;let n=t?Ed:mm;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(vm)}function ym(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function An(e){return{\u0275providers:e}}function Dm(...e){return{\u0275providers:_d(!0,e),\u0275fromNgModule:!0}}function _d(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return ka(t,s=>{let c=s;Ws(c,i,[],r)&&(o||=[],o.push(c))}),o!==void 0&&xd(o,i),n}function xd(e,t){for(let n=0;n{t(i,r)})}}function Ws(e,t,n,r){if(e=xe(e),!e)return!1;let o=null,i=Il(e),s=!i&&Ht(e);if(!i&&!s){let a=e.ngModule;if(i=Il(a),i)o=a;else return!1}else{if(s&&!s.standalone)return!1;o=e}let c=r.has(o);if(s){if(c)return!1;if(r.add(o),s.dependencies){let a=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of a)Ws(u,t,n,r)}}else if(i){if(i.imports!=null&&!c){r.add(o);let u;try{ka(i.imports,l=>{Ws(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&xd(u,t)}if(!c){let u=Bt(o)||(()=>new o);t({provide:o,useFactory:u,deps:Cn},o),t({provide:Dd,useValue:o,multi:!0},o),t({provide:In,useValue:()=>I(o),multi:!0},o)}let a=i.providers;if(a!=null&&!c){let u=e;$a(a,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function $a(e,t){for(let n of e)dd(n)&&(n=n.\u0275providers),Array.isArray(n)?$a(n,t):t(n)}var wm=B({provide:String,useValue:B});function Nd(e){return e!==null&&typeof e=="object"&&wm in e}function Cm(e){return!!(e&&e.useExisting)}function Im(e){return!!(e&&e.useFactory)}function Zs(e){return typeof e=="function"}var li=new C(""),Ro={},Em={},Ps;function Ua(){return Ps===void 0&&(Ps=new Uo),Ps}var we=class{},ur=class extends we{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Qs(t,s=>this.processProvider(s)),this.records.set(yd,mn(void 0,this)),o.has("environment")&&this.records.set(we,mn(void 0,this));let i=this.records.get(li);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Dd,Cn,N.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=A(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),A(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=It(this),r=De(void 0),o;try{return t()}finally{It(n),De(r)}}get(t,n=ar,r=N.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(bl))return t[bl](this);r=ci(r);let o,i=It(this),s=De(void 0);try{if(!(r&N.SkipSelf)){let a=this.records.get(t);if(a===void 0){let u=xm(t)&&ai(t);u&&this.injectableDefInScope(u)?a=mn(Ys(t),Ro):a=null,this.records.set(t,a)}if(a!=null)return this.hydrate(t,a)}let c=r&N.Self?Ua():this.parent;return n=r&N.Optional&&n===ar?null:n,c.get(t,n)}catch(c){if(c.name==="NullInjectorError"){if((c[Vo]=c[Vo]||[]).unshift(Me(t)),i)throw c;return tm(c,t,"R3InjectorError",this.source)}else throw c}finally{De(s),It(i)}}resolveInjectorInitializers(){let t=A(null),n=It(this),r=De(void 0),o;try{let i=this.get(In,Cn,N.Self);for(let s of i)s()}finally{It(n),De(r),A(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Me(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new D(205,!1)}processProvider(t){t=xe(t);let n=Zs(t)?t:xe(t&&t.provide),r=Mm(t);if(!Zs(t)&&t.multi===!0){let o=this.records.get(n);o||(o=mn(void 0,Ro,!0),o.factory=()=>Gs(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=A(null);try{return n.value===Ro&&(n.value=Em,n.value=n.factory()),typeof n.value=="object"&&n.value&&_m(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{A(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=xe(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Ys(e){let t=ai(e),n=t!==null?t.factory:Bt(e);if(n!==null)return n;if(e instanceof C)throw new D(204,!1);if(e instanceof Function)return bm(e);throw new D(204,!1)}function bm(e){if(e.length>0)throw new D(204,!1);let n=$g(e);return n!==null?()=>n.factory(e):()=>new e}function Mm(e){if(Nd(e))return mn(void 0,e.useValue);{let t=Sm(e);return mn(t,Ro)}}function Sm(e,t,n){let r;if(Zs(e)){let o=xe(e);return Bt(o)||Ys(o)}else if(Nd(e))r=()=>xe(e.useValue);else if(Im(e))r=()=>e.useFactory(...Gs(e.deps||[]));else if(Cm(e))r=()=>I(xe(e.useExisting));else{let o=xe(e&&(e.useClass||e.provide));if(Tm(e))r=()=>new o(...Gs(e.deps));else return Bt(o)||Ys(o)}return r}function mn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Tm(e){return!!e.deps}function _m(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function xm(e){return typeof e=="function"||typeof e=="object"&&e instanceof C}function Qs(e,t){for(let n of e)Array.isArray(n)?Qs(n,t):n&&dd(n)?Qs(n.\u0275providers,t):t(n)}function je(e,t){e instanceof ur&&e.assertNotDestroyed();let n,r=It(e),o=De(void 0);try{return t()}finally{It(r),De(o)}}function Ad(){return hd()!==void 0||Jg()!=null}function Ba(e){if(!Ad())throw new D(-203,!1)}function Nm(e){return typeof e=="function"}var ct=0,x=1,E=2,fe=3,ke=4,Ve=5,lr=6,Bo=7,ue=8,En=9,at=10,he=11,dr=12,Nl=13,Rn=14,Le=15,bn=16,vn=17,Mn=18,di=19,Rd=20,Et=21,Oo=22,Ne=23,le=25,Od=1;var zt=7,Ho=8,zo=9,de=10,Go=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Go||{});function bt(e){return Array.isArray(e)&&typeof e[Od]=="object"}function ut(e){return Array.isArray(e)&&e[Od]===!0}function Pd(e){return(e.flags&4)!==0}function fi(e){return e.componentOffset>-1}function Ha(e){return(e.flags&1)===1}function Dr(e){return!!e.template}function Ks(e){return(e[E]&512)!==0}var Js=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Fd(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function hi(){return kd}function kd(e){return e.type.prototype.ngOnChanges&&(e.setInput=Rm),Am}hi.ngInherit=!0;function Am(){let e=jd(this),t=e?.current;if(t){let n=e.previous;if(n===cr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Rm(e,t,n,r,o){let i=this.declaredInputs[r],s=jd(e)||Om(e,{previous:cr,current:null}),c=s.current||(s.current={}),a=s.previous,u=a[i];c[i]=new Js(u&&u.currentValue,n,a===cr),Fd(e,t,o,n)}var Ld="__ngSimpleChanges__";function jd(e){return e[Ld]||null}function Om(e,t){return e[Ld]=t}var Al=null;var qe=function(e,t,n){Al?.(e,t,n)},Pm="svg",Fm="math";function Ye(e){for(;Array.isArray(e);)e=e[ct];return e}function km(e,t){return Ye(t[e])}function $e(e,t){return Ye(t[e.index])}function za(e,t){return e.data[t]}function Ga(e,t){return e[t]}function Tt(e,t){let n=t[e];return bt(n)?n:n[ct]}function qa(e){return(e[E]&128)===128}function Lm(e){return ut(e[fe])}function Sn(e,t){return t==null?null:e[t]}function Vd(e){e[vn]=0}function $d(e){e[E]&1024||(e[E]|=1024,qa(e)&&gi(e))}function jm(e,t){for(;e>0;)t=t[Rn],e--;return t}function pi(e){return!!(e[E]&9216||e[Ne]?.dirty)}function Xs(e){e[at].changeDetectionScheduler?.notify(8),e[E]&64&&(e[E]|=1024),pi(e)&&gi(e)}function gi(e){e[at].changeDetectionScheduler?.notify(0);let t=Gt(e);for(;t!==null&&!(t[E]&8192||(t[E]|=8192,!qa(t)));)t=Gt(t)}function Ud(e,t){if((e[E]&256)===256)throw new D(911,!1);e[Et]===null&&(e[Et]=[]),e[Et].push(t)}function Vm(e,t){if(e[Et]===null)return;let n=e[Et].indexOf(t);n!==-1&&e[Et].splice(n,1)}function Gt(e){let t=e[fe];return ut(t)?t[fe]:t}var R={lFrame:Jd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Bd=!1;function $m(){return R.lFrame.elementDepthCount}function Um(){R.lFrame.elementDepthCount++}function Bm(){R.lFrame.elementDepthCount--}function Hd(){return R.bindingsEnabled}function Hm(){return R.skipHydrationRootTNode!==null}function zm(e){return R.skipHydrationRootTNode===e}function Gm(){R.skipHydrationRootTNode=null}function $(){return R.lFrame.lView}function Ue(){return R.lFrame.tView}function zd(e){return R.lFrame.contextLView=e,e[ue]}function Gd(e){return R.lFrame.contextLView=null,e}function Be(){let e=qd();for(;e!==null&&e.type===64;)e=e.parent;return e}function qd(){return R.lFrame.currentTNode}function qm(){let e=R.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function On(e,t){let n=R.lFrame;n.currentTNode=e,n.isParent=t}function Wd(){return R.lFrame.isParent}function Wm(){R.lFrame.isParent=!1}function Zm(){return R.lFrame.contextLView}function Zd(){return Bd}function Rl(e){Bd=e}function Wa(){let e=R.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ym(e){return R.lFrame.bindingIndex=e}function mi(){return R.lFrame.bindingIndex++}function Qm(){return R.lFrame.inI18n}function Km(e,t){let n=R.lFrame;n.bindingIndex=n.bindingRootIndex=e,ea(t)}function Jm(){return R.lFrame.currentDirectiveIndex}function ea(e){R.lFrame.currentDirectiveIndex=e}function Yd(e){R.lFrame.currentQueryIndex=e}function Xm(e){let t=e[x];return t.type===2?t.declTNode:t.type===1?e[Ve]:null}function Qd(e,t,n){if(n&N.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&N.Host);)if(o=Xm(i),o===null||(i=i[Rn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=R.lFrame=Kd();return r.currentTNode=t,r.lView=e,!0}function Za(e){let t=Kd(),n=e[x];R.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Kd(){let e=R.lFrame,t=e===null?null:e.child;return t===null?Jd(e):t}function Jd(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Xd(){let e=R.lFrame;return R.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var ef=Xd;function Ya(){let e=Xd();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ev(e){return(R.lFrame.contextLView=jm(e,R.lFrame.contextLView))[ue]}function wr(){return R.lFrame.selectedIndex}function qt(e){R.lFrame.selectedIndex=e}function tv(){let e=R.lFrame;return za(e.tView,e.selectedIndex)}function nv(){return R.lFrame.currentNamespace}var tf=!0;function Qa(){return tf}function Ka(e){tf=e}function rv(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=kd(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Ja(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[a]<0&&(e[vn]+=65536),(c>14>16&&(e[E]&3)===t&&(e[E]+=16384,Ol(c,i)):Ol(c,i)}var wn=-1,fr=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function iv(e){return e instanceof fr}function sv(e){return(e.flags&8)!==0}function av(e){return(e.flags&16)!==0}var ks={},ta=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ci(r);let o=this.injector.get(t,ks,r);return o!==ks||n===ks?o:this.parentInjector.get(t,n,r)}};function rf(e){return e!==wn}function qo(e){return e&32767}function cv(e){return e>>16}function Wo(e,t){let n=cv(e),r=t;for(;n>0;)r=r[Rn],n--;return r}var na=!0;function Zo(e){let t=na;return na=e,t}var uv=256,of=uv-1,sf=5,lv=0,We={};function dv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(sr)&&(r=n[sr]),r==null&&(r=n[sr]=lv++);let o=r&of,i=1<>sf)]|=i}function af(e,t){let n=cf(e,t);if(n!==-1)return n;let r=t[x];r.firstCreatePass&&(e.injectorIndex=t.length,Ls(r.data,e),Ls(t,null),Ls(r.blueprint,null));let o=Xa(e,t),i=e.injectorIndex;if(rf(o)){let s=qo(o),c=Wo(o,t),a=c[x].data;for(let u=0;u<8;u++)t[i+u]=c[s+u]|a[s+u]}return t[i+8]=o,i}function Ls(e,t){e.push(0,0,0,0,0,0,0,0,t)}function cf(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Xa(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=hf(o),r===null)return wn;if(n++,o=o[Rn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return wn}function fv(e,t,n){dv(e,t,n)}function uf(e,t,n){if(n&N.Optional||e!==void 0)return e;Pa(t,"NodeInjector")}function lf(e,t,n,r){if(n&N.Optional&&r===void 0&&(r=null),!(n&(N.Self|N.Host))){let o=e[En],i=De(void 0);try{return o?o.get(t,r,n&N.Optional):pd(t,r,n&N.Optional)}finally{De(i)}}return uf(r,t,n)}function df(e,t,n,r=N.Default,o){if(e!==null){if(t[E]&2048&&!(r&N.Self)){let s=vv(e,t,n,r,We);if(s!==We)return s}let i=ff(e,t,n,r,We);if(i!==We)return i}return lf(t,n,r,o)}function ff(e,t,n,r,o){let i=gv(n);if(typeof i=="function"){if(!Qd(t,e,r))return r&N.Host?uf(o,n,r):lf(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&N.Optional))Pa(n);else return s}finally{ef()}}else if(typeof i=="number"){let s=null,c=cf(e,t),a=wn,u=r&N.Host?t[Le][Ve]:null;for((c===-1||r&N.SkipSelf)&&(a=c===-1?Xa(e,t):t[c+8],a===wn||!Fl(r,!1)?c=-1:(s=t[x],c=qo(a),t=Wo(a,t)));c!==-1;){let l=t[x];if(Pl(i,c,l.data)){let d=hv(c,t,n,s,r,u);if(d!==We)return d}a=t[c+8],a!==wn&&Fl(r,t[x].data[c+8]===u)&&Pl(i,c,t)?(s=l,c=qo(a),t=Wo(a,t)):c=-1}}return o}function hv(e,t,n,r,o,i){let s=t[x],c=s.data[e+8],a=r==null?fi(c)&&na:r!=s&&(c.type&3)!==0,u=o&N.Host&&i===c,l=pv(c,s,n,a,u);return l!==null?hr(t,s,l,c):We}function pv(e,t,n,r,o){let i=e.providerIndexes,s=t.data,c=i&1048575,a=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?c:c+l,h=o?c+l:u;for(let f=d;f=a&&g.type===n)return f}if(o){let f=s[a];if(f&&Dr(f)&&f.type===n)return a}return null}function hr(e,t,n,r){let o=e[n],i=t.data;if(iv(o)){let s=o;s.resolving&&Wg(qg(i[n]));let c=Zo(s.canSeeViewProviders);s.resolving=!0;let a,u=s.injectImpl?De(s.injectImpl):null,l=Qd(e,r,N.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&rv(n,i[n],t)}finally{u!==null&&De(u),Zo(c),s.resolving=!1,ef()}}return o}function gv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(sr)?e[sr]:void 0;return typeof t=="number"?t>=0?t&of:mv:t}function Pl(e,t,n){let r=1<>sf)]&r)}function Fl(e,t){return!(e&N.Self)&&!(e&N.Host&&t)}var Ut=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return df(this._tNode,this._lView,t,ci(r),n)}};function mv(){return new Ut(Be(),$())}function ec(e){return si(()=>{let t=e.prototype.constructor,n=t[jo]||ra(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[jo]||ra(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function ra(e){return ad(e)?()=>{let t=ra(xe(e));return t&&t()}:Bt(e)}function vv(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[E]&2048&&!(s[E]&512);){let c=ff(i,s,n,r|N.Self,We);if(c!==We)return c;let a=i.parent;if(!a){let u=s[Rd];if(u){let l=u.get(n,We,r);if(l!==We)return l}a=hf(s),s=s[Rn]}i=a}return o}function hf(e){let t=e[x],n=t.type;return n===2?t.declTNode:n===1?e[Ve]:null}function kl(e,t=null,n=null,r){let o=pf(e,t,n,r);return o.resolveInjectorInitializers(),o}function pf(e,t=null,n=null,r,o=new Set){let i=[n||Cn,Dm(e)];return r=r||(typeof e=="object"?void 0:Me(e)),new ur(i,t||Ua(),r||null,o)}var Qe=class e{static{this.THROW_IF_NOT_FOUND=ar}static{this.NULL=new Uo}static create(t,n){if(Array.isArray(t))return kl({name:""},n,t,"");{let r=t.name??"";return kl({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=w({token:e,providedIn:"any",factory:()=>I(yd)})}static{this.__NG_ELEMENT_ID__=-1}};var yv=new C("");yv.__NG_ELEMENT_ID__=e=>{let t=Be();if(t===null)throw new D(204,!1);if(t.type&2)return t.value;if(e&N.Optional)return null;throw new D(204,!1)};var Dv="ngOriginalError";function js(e){return e[Dv]}var gf=!0,Cr=(()=>{class e{static{this.__NG_ELEMENT_ID__=wv}static{this.__NG_ENV_ID__=n=>n}}return e})(),oa=class extends Cr{constructor(t){super(),this._lView=t}onDestroy(t){return Ud(this._lView,t),()=>Vm(this._lView,t)}};function wv(){return new oa($())}var lt=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new oe(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}}return e})();var ia=class extends re{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Ad()&&(this.destroyRef=p(Cr,{optional:!0})??void 0,this.pendingTasks=p(lt,{optional:!0})??void 0)}emit(t){let n=A(null);try{super.next(t)}finally{A(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let a=t;o=a.next?.bind(a),i=a.error?.bind(a),s=a.complete?.bind(a)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let c=super.subscribe({next:o,error:i,complete:s});return t instanceof Y&&t.add(c),c}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},ie=ia;function Yo(...e){}function mf(e){let t,n;function r(){e=Yo;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Ll(e){return queueMicrotask(()=>e()),()=>{e=Yo}}var tc="isAngularZone",Qo=tc+"_ID",Cv=0,q=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ie(!1),this.onMicrotaskEmpty=new ie(!1),this.onStable=new ie(!1),this.onError=new ie(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=gf}=t;if(typeof Zone>"u")throw new D(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,bv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(tc)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new D(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new D(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Iv,Yo,Yo);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Iv={};function nc(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ev(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){mf(()=>{e.callbackScheduled=!1,sa(e),e.isCheckStableRunning=!0,nc(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),sa(e)}function bv(e){let t=()=>{Ev(e)},n=Cv++;e._inner=e._inner.fork({name:"angular",properties:{[tc]:!0,[Qo]:n,[Qo+n]:!0},onInvokeTask:(r,o,i,s,c,a)=>{if(Mv(a))return r.invokeTask(i,s,c,a);try{return jl(e),r.invokeTask(i,s,c,a)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Vl(e)}},onInvoke:(r,o,i,s,c,a,u)=>{try{return jl(e),r.invoke(i,s,c,a,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Sv(a)&&t(),Vl(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,sa(e),nc(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function sa(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function jl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Vl(e){e._nesting--,nc(e)}var aa=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ie,this.onMicrotaskEmpty=new ie,this.onStable=new ie,this.onError=new ie}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Mv(e){return vf(e,"__ignore_ng_zone__")}function Sv(e){return vf(e,"__scheduler_tick__")}function vf(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Ke=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&js(t);for(;n&&js(n);)n=js(n);return n||null}},Tv=new C("",{providedIn:"root",factory:()=>{let e=p(q),t=p(Ke);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function $l(e,t){return od(e,t)}function _v(e){return od(rd,e)}var Ir=($l.required=_v,$l);function xv(){return rc(Be(),$())}function rc(e,t){return new Er($e(e,t))}var Er=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=xv}}return e})();function yf(e){return(e.flags&128)===128}var Df=new Map,Nv=0;function Av(){return Nv++}function Rv(e){Df.set(e[di],e)}function ca(e){Df.delete(e[di])}var Ul="__ngContext__";function Wt(e,t){bt(t)?(e[Ul]=t[di],Rv(t)):e[Ul]=t}function wf(e){return If(e[dr])}function Cf(e){return If(e[ke])}function If(e){for(;e!==null&&!ut(e);)e=e[ke];return e}var ua;function Ef(e){ua=e}function Ov(){if(ua!==void 0)return ua;if(typeof document<"u")return document;throw new D(210,!1)}var oc=new C("",{providedIn:"root",factory:()=>Pv}),Pv="ng",ic=new C(""),_t=new C("",{providedIn:"platform",factory:()=>"unknown"});var sc=new C("",{providedIn:"root",factory:()=>Ov().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Fv="h",kv="b";var Lv=()=>null;function ac(e,t,n=!1){return Lv(e,t,n)}var bf=!1,jv=new C("",{providedIn:"root",factory:()=>bf});function Mf(e){return e.ownerDocument.defaultView}function Sf(e){return e instanceof Function?e():e}var xt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(xt||{}),Vv;function cc(e,t){return Vv(e,t)}function yn(e,t,n,r,o){if(r!=null){let i,s=!1;ut(r)?i=r:bt(r)&&(s=!0,r=r[ct]);let c=Ye(r);e===0&&n!==null?o==null?Nf(t,n,c):Ko(t,n,c,o||null,!0):e===1&&n!==null?Ko(t,n,c,o||null,!0):e===2?ey(t,c,s):e===3&&t.destroyNode(c),i!=null&&ny(t,e,i,n,o)}}function $v(e,t){return e.createText(t)}function Uv(e,t,n){e.setValue(t,n)}function Tf(e,t,n){return e.createElement(t,n)}function Bv(e,t){_f(e,t),t[ct]=null,t[Ve]=null}function Hv(e,t,n,r,o,i){r[ct]=o,r[Ve]=t,yi(e,r,n,1,o,i)}function _f(e,t){t[at].changeDetectionScheduler?.notify(9),yi(e,t,t[he],2,null,null)}function zv(e){let t=e[dr];if(!t)return Vs(e[x],e);for(;t;){let n=null;if(bt(t))n=t[dr];else{let r=t[de];r&&(n=r)}if(!n){for(;t&&!t[ke]&&t!==e;)bt(t)&&Vs(t[x],t),t=t[fe];t===null&&(t=e),bt(t)&&Vs(t[x],t),n=t&&t[ke]}t=n}}function Gv(e,t,n,r){let o=de+r,i=n.length;r>0&&(n[o-1][ke]=t),r0&&(e[n-1][ke]=r[ke]);let i=$o(e,de+t);Bv(r[x],r);let s=i[Mn];s!==null&&s.detachView(i[x]),r[fe]=null,r[ke]=null,r[E]&=-129}return r}function vi(e,t){if(!(t[E]&256)){let n=t[he];n.destroyNode&&yi(e,t,n,3,null,null),zv(t)}}function Vs(e,t){if(t[E]&256)return;let n=A(null);try{t[E]&=-129,t[E]|=256,t[Ne]&&so(t[Ne]),Wv(e,t),qv(e,t),t[x].type===1&&t[he].destroy();let r=t[bn];if(r!==null&&ut(t[fe])){r!==t[fe]&&uc(r,t);let o=t[Mn];o!==null&&o.detachView(e)}ca(t)}finally{A(n)}}function qv(e,t){let n=e.cleanup,r=t[Bo];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[Bo]=null);let o=t[Et];if(o!==null){t[Et]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===Ze.None||i===Ze.Emulated)return null}return $e(r,n)}}function Ko(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Nf(e,t,n){e.appendChild(t,n)}function Bl(e,t,n,r,o){r!==null?Ko(e,t,n,r,o):Nf(e,t,n)}function Af(e,t){return e.parentNode(t)}function Qv(e,t){return e.nextSibling(t)}function Kv(e,t,n){return Xv(e,t,n)}function Jv(e,t,n){return e.type&40?$e(e,n):null}var Xv=Jv,Hl;function lc(e,t,n,r){let o=Zv(e,r,t),i=t[he],s=r.parent||t[Ve],c=Kv(s,r,t);if(o!=null)if(Array.isArray(n))for(let a=0;ale&&Ff(e,t,le,!1),qe(s?2:0,o),n(r,o)}finally{qt(i),qe(s?3:1,o)}}function Vf(e,t,n){if(Pd(t)){let r=A(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function ly(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,c=0;return Hm()&&(c|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:c,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function zl(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let c,a=Mt.None;Array.isArray(s)?(c=s[0],a=s[1]):c=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}e===0?Gl(r,n,u,c,a):Gl(r,n,u,c)}return r}function Gl(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function dy(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,c=[],a=null,u=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function vy(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;fi(n)&&by(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||af(n,t),Wt(r,t);let s=n.initialInputs;for(let c=o;c{gi(e.lView)},consumerOnSignalRead(){this.lView[Ne]=this}});function jy(e){let t=e[Ne]??Object.create(Vy);return t.lView=e,t}var Vy=z(v({},rn),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Gt(e.lView);for(;t&&!Jf(t[x]);)t=Gt(t);t&&$d(t)},consumerOnSignalRead(){this.lView[Ne]=this}});function Jf(e){return e.type!==2}var $y=100;function Xf(e,t=!0,n=0){let r=e[at],o=r.rendererFactory,i=!1;i||o.begin?.();try{Uy(e,n)}catch(s){throw t&&Zf(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function Uy(e,t){let n=Zd();try{Rl(!0),ha(e,t);let r=0;for(;pi(e);){if(r===$y)throw new D(103,!1);r++,ha(e,1)}}finally{Rl(n)}}function By(e,t,n,r){let o=t[E];if((o&256)===256)return;let i=!1,s=!1;!i&&t[at].inlineEffectRunner?.flush(),Za(t);let c=!0,a=null,u=null;i||(Jf(e)?(u=Py(t),a=Xn(u)):Ou()===null?(c=!1,u=jy(t),a=Xn(u)):t[Ne]&&(so(t[Ne]),t[Ne]=null));try{Vd(t),Ym(e.bindingStartIndex),n!==null&&jf(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Po(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Fo(t,f,0,null),Fs(t,0)}if(s||Hy(t),eh(t,0),e.contentQueries!==null&&Wf(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Po(t,f)}else{let f=e.contentHooks;f!==null&&Fo(t,f,1),Fs(t,1)}oy(e,t);let d=e.components;d!==null&&nh(t,d,0);let h=e.viewQuery;if(h!==null&&fa(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Po(t,f)}else{let f=e.viewHooks;f!==null&&Fo(t,f,2),Fs(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Oo]){for(let f of t[Oo])f();t[Oo]=null}i||(t[E]&=-73)}catch(l){throw i||gi(t),l}finally{u!==null&&(oo(u,a),c&&ky(u)),Ya()}}function eh(e,t){for(let n=wf(e);n!==null;n=Cf(n))for(let r=de;r-1&&(pr(t,r),$o(n,r))}this._attachedToViewContainer=!1}vi(this._lView[x],this._lView)}onDestroy(t){Ud(this._lView,t)}markForCheck(){mc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[E]&=-129}reattach(){Xs(this._lView),this._lView[E]|=128}detectChanges(){this._lView[E]|=1024,Xf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Ks(this._lView),n=this._lView[bn];n!==null&&!t&&uc(n,this._lView),_f(this._lView[x],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=t;let n=Ks(this._lView),r=this._lView[bn];r!==null&&!n&&xf(r,this._lView),Xs(this._lView)}};var f_=new RegExp(`^(\\d+)*(${kv}|${Fv})*(.*)`);var Gy=()=>null;function mr(e,t){return Gy(e,t)}var _n=class{},Ii=new C("",{providedIn:"root",factory:()=>!1});var rh=new C(""),oh=new C(""),pa=class{},Xo=class{};function qy(e){let t=Error(`No component factory found for ${Me(e)}.`);return t[Wy]=e,t}var Wy="ngComponent";var ga=class{resolveComponentFactory(t){throw qy(t)}},xn=class{static{this.NULL=new ga}},Nn=class{},Ei=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>Zy()}}return e})();function Zy(){let e=$(),t=Be(),n=Tt(t.index,e);return(bt(n)?n:e)[he]}var Yy=(()=>{class e{static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>null})}}return e})();function ma(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Of(e,n,i.join(" "))}}function nD(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static{this.__NG_ELEMENT_ID__=oD}}return e})();function oD(){let e=Be();return sD(e,$())}var iD=bi,ih=class extends iD{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return rc(this._hostTNode,this._hostLView)}get injector(){return new Ut(this._hostTNode,this._hostLView)}get parentInjector(){let t=Xa(this._hostTNode,this._hostLView);if(rf(t)){let n=Wo(t,this._hostLView),r=qo(t),o=n[x].data[r+8];return new Ut(o,n)}else return new Ut(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Wl(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-de}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=mr(this._lContainer,t.ssrId),c=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(c,o,gr(this._hostTNode,s)),c}createComponent(t,n,r,o,i){let s=t&&!Nm(t),c;if(s)c=n;else{let g=n||{};c=g.index,r=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}let a=s?t:new vr(Ht(t)),u=r||this.parentInjector;if(!i&&a.ngModule==null){let m=(s?u:this.parentInjector).get(we,null);m&&(i=m)}let l=Ht(a.componentType??{}),d=mr(this._lContainer,l?.id??null),h=d?.firstChild??null,f=a.create(u,o,h,i);return this.insertImpl(f.hostView,c,gr(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Lm(o)){let c=this.indexOf(t);if(c!==-1)this.detach(c);else{let a=o[fe],u=new ih(a,a[Ve],a[fe]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Ci(s,o,i,r),t.attachToViewContainerRef(),vd($s(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Wl(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=pr(this._lContainer,n);r&&($o($s(this._lContainer),n),vi(r[x],r))}detach(t){let n=this._adjustIndex(t,-1),r=pr(this._lContainer,n);return r&&$o($s(this._lContainer),n)!=null?new Tn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Wl(e){return e[Ho]}function $s(e){return e[Ho]||(e[Ho]=[])}function sD(e,t){let n,r=t[e.index];return ut(r)?n=r:(n=qf(r,t,null,e),t[e.index]=n,wi(t,n)),cD(n,t,e,r),new ih(n,e,t)}function aD(e,t){let n=e[he],r=n.createComment(""),o=$e(t,e),i=Af(n,o);return Ko(n,i,r,Qv(n,o),!1),r}var cD=dD,uD=()=>!1;function lD(e,t,n){return uD(e,t,n)}function dD(e,t,n,r){if(e[zt])return;let o;n.type&8?o=Ye(r):o=aD(t,n),e[zt]=o}var Zl=new Set;function dt(e){Zl.has(e)||(Zl.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var St=class{},yr=class{};var ya=class extends St{constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ei(this);let i=Md(t);this._bootstrapComponents=Sf(i.bootstrap),this._r3Injector=pf(t,n,[{provide:St,useValue:this},{provide:xn,useValue:this.componentFactoryResolver},...r],Me(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Da=class extends yr{constructor(t){super(),this.moduleType=t}create(t){return new ya(this.moduleType,t,[])}};var ti=class extends St{constructor(t){super(),this.componentFactoryResolver=new ei(this),this.instance=null;let n=new ur([...t.providers,{provide:St,useValue:this},{provide:xn,useValue:this.componentFactoryResolver}],t.parent||Ua(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function vc(e,t,n=null){return new ti({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function sh(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function ah(e,t,n){return e[t]=n}function Zt(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function fD(e,t,n,r){let o=Zt(e,t,n);return Zt(e,t+1,r)||o}function hD(e){return(e.flags&32)===32}function pD(e,t,n,r,o,i,s,c,a){let u=t.consts,l=br(t,e,4,s||null,c||null);Hf(t,n,l,Sn(u,a)),Ja(t,l);let d=l.tView=fc(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function wa(e,t,n,r,o,i,s,c,a,u){let l=n+le,d=t.firstCreatePass?pD(l,t,e,r,o,i,s,c,a):t.data[l];On(d,!1);let h=gD(t,e,d,n);Qa()&&lc(t,e,h,d),Wt(h,e);let f=qf(h,e,h,d);return e[l]=f,wi(e,f),lD(f,d,e),Ha(d)&&$f(t,e,d),a!=null&&Uf(e,d,u),d}function Mr(e,t,n,r,o,i,s,c){let a=$(),u=Ue(),l=Sn(u.consts,i);return wa(a,u,e,t,n,r,o,l,s,c),Mr}var gD=mD;function mD(e,t,n,r){return Ka(!0),t[he].createComment("")}var ir=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(ir||{}),vD=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}}return e})(),Yl=class e{constructor(){this.ngZone=p(q),this.scheduler=p(_n),this.errorHandler=p(Ke,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[ir.EarlyRead,ir.Write,ir.MixedReadWrite,ir.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}};function yD(e,t,n,r){return Zt(e,mi(),n)?t+fd(n)+r:Pn}function Yt(e,t,n){let r=$(),o=mi();if(Zt(r,o,t)){let i=Ue(),s=tv();hy(i,s,r,e,t,r[he],n,!1)}return Yt}function Ql(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";hc(e,n,i[s],s,r)}var Ca=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Us(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function DD(e,t,n){let r,o,i=0,s=e.length-1,c=void 0;if(Array.isArray(t)){let a=t.length-1;for(;i<=s&&i<=a;){let u=e.at(i),l=t[i],d=Us(i,u,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let h=e.at(s),f=t[a],g=Us(s,h,a,f,n);if(g!==0){g<0&&e.updateValue(s,f),s--,a--;continue}let m=n(i,u),y=n(s,h),T=n(i,l);if(Object.is(T,y)){let U=n(a,f);Object.is(U,m)?(e.swap(i,s),e.updateValue(s,f),a--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new ni,o??=Jl(e,i,s,n),Ia(e,r,i,T))e.updateValue(i,l),i++,s++;else if(o.has(T))r.set(m,e.detach(i)),s--;else{let U=e.create(i,t[i]);e.attach(i,U),i++,s++}}for(;i<=a;)Kl(e,r,n,i,t[i]),i++}else if(t!=null){let a=t[Symbol.iterator](),u=a.next();for(;!u.done&&i<=s;){let l=e.at(i),d=u.value,h=Us(i,l,i,d,n);if(h!==0)h<0&&e.updateValue(i,d),i++,u=a.next();else{r??=new ni,o??=Jl(e,i,s,n);let f=n(i,d);if(Ia(e,r,i,f))e.updateValue(i,d),i++,s++,u=a.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,u=a.next();else{let g=n(i,l);r.set(g,e.detach(i)),s--}}}for(;!u.done;)Kl(e,r,n,e.length,u.value),u=a.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(a=>{e.destroy(a)})}function Ia(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Kl(e,t,n,r,o){if(Ia(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Jl(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var ni=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function Mi(e,t){dt("NgControlFlow");let n=$(),r=mi(),o=n[r]!==Pn?n[r]:-1,i=o!==-1?ri(n,le+o):void 0,s=0;if(Zt(n,r,e)){let c=A(null);try{if(i!==void 0&&Qf(i,s),e!==-1){let a=le+e,u=ri(n,a),l=Sa(n[x],a),d=mr(u,l.tView.ssrId),h=gc(n,l,t,{dehydratedView:d});Ci(u,h,s,gr(l,d))}}finally{A(c)}}else if(i!==void 0){let c=Yf(i,s);c!==void 0&&(c[ue]=t)}}var Ea=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-de}};var ba=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function ch(e,t,n,r,o,i,s,c,a,u,l,d,h){dt("NgControlFlow");let f=$(),g=Ue(),m=a!==void 0,y=$(),T=c?s.bind(y[Le][ue]):s,U=new ba(m,T);y[le+e]=U,wa(f,g,e+1,t,n,r,o,Sn(g.consts,i)),m&&wa(f,g,e+2,a,u,l,d,Sn(g.consts,h))}var Ma=class extends Ca{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-de}at(t){return this.getLView(t)[ue].$implicit}attach(t,n){let r=n[lr];this.needsIndexUpdate||=t!==this.length,Ci(this.lContainer,n,t,gr(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,wD(this.lContainer,t)}create(t,n){let r=mr(this.lContainer,this.templateTNode.tView.ssrId),o=gc(this.hostLView,this.templateTNode,new Ea(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){vi(t[x],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[ue].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(Ka(!0),Tf(r,o,nv()));function lh(){return $()}var $t=void 0;function bD(e){let t=e,n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var MD=["en",[["a","p"],["AM","PM"],$t],[["AM","PM"],$t,$t],[["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"]],$t,[["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"]],$t,[["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}",$t,"{1} 'at' {0}",$t],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",bD],Bs={};function Ae(e){let t=SD(e),n=Xl(t);if(n)return n;let r=t.split("-")[0];if(n=Xl(r),n)return n;if(r==="en")return MD;throw new D(701,!1)}function Xl(e){return e in Bs||(Bs[e]=rr.ng&&rr.ng.common&&rr.ng.common.locales&&rr.ng.common.locales[e]),Bs[e]}var Z=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Z||{});function SD(e){return e.toLowerCase().replace(/_/g,"-")}var oi="en-US";var TD=oi;function _D(e){typeof e=="string"&&(TD=e.toLowerCase().replace(/_/g,"-"))}var xD=(e,t,n)=>{};function et(e,t,n,r){let o=$(),i=Ue(),s=Be();return AD(i,o,o[he],s,e,t,r),et}function ND(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ia?c[a]:null}typeof s=="string"&&(i+=2)}return null}function AD(e,t,n,r,o,i,s){let c=Ha(r),u=e.firstCreatePass&&_y(e),l=t[ue],d=Ty(t),h=!0;if(r.type&3||s){let m=$e(r,t),y=s?s(m):m,T=d.length,U=s?ne=>s(Ye(ne[r.index])):r.index,k=null;if(!s&&c&&(k=ND(e,t,o,r.index)),k!==null){let ne=k.__ngLastListenerFn__||k;ne.__ngNextListenerFn__=i,k.__ngLastListenerFn__=i,h=!1}else{i=td(r,t,l,i),xD(m,o,i);let ne=n.listen(y,o,i);d.push(i,ne),u&&u.push(o,U,T,T+1)}}else i=td(r,t,l,i);let f=r.outputs,g;if(h&&f!==null&&(g=f[o])){let m=g.length;if(m)for(let y=0;y-1?Tt(e.index,t):t;mc(s,5);let c=ed(t,n,r,i),a=o.__ngNextListenerFn__;for(;a;)c=ed(t,n,a,i)&&c,a=a.__ngNextListenerFn__;return c}}function Fn(e=1){return ev(e)}function yc(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function kn(e,t=""){let n=$(),r=Ue(),o=e+le,i=r.firstCreatePass?br(r,o,1,t,null):r.data[o],s=RD(r,n,i,t,e);n[o]=s,Qa()&&lc(r,n,s,i),On(i,!1)}var RD=(e,t,n,r,o)=>(Ka(!0),$v(t[he],r));function Si(e){return Ti("",e,""),Si}function Ti(e,t,n){let r=$(),o=yD(r,e,t,n);return o!==Pn&&xy(r,wr(),o),Ti}var dh={};function Dc(e){let t=Ue(),n=$(),r=e+le,o=br(t,r,128,null,null);return On(o,!1),yc(t,n,r,dh),Dc}function fh(e){dt("NgLet");let t=Ue(),n=$(),r=wr();return yc(t,n,r,e),e}function hh(e){let t=Zm(),n=Ga(t,le+e);if(n===dh)throw new D(314,!1);return n}var OD=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=_d(!1,n.type),o=r.length>0?vc([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=w({token:e,providedIn:"environment",factory:()=>new e(I(we))})}}return e})();function tt(e){dt("NgStandalone"),e.getStandaloneInjector=t=>t.get(OD).getOrCreateStandaloneInjector(e)}function ph(e,t,n,r){return mh($(),Wa(),e,t,n,r)}function gh(e,t){let n=e[t];return n===Pn?void 0:n}function mh(e,t,n,r,o,i){let s=t+n;return Zt(e,s,o)?ah(e,s+1,i?r.call(i,o):r(o)):gh(e,s+1)}function PD(e,t,n,r,o,i,s){let c=t+n;return fD(e,c,o,i)?ah(e,c+2,s?r.call(s,o,i):r(o,i)):gh(e,c+2)}function Sr(e,t){let n=Ue(),r,o=e+le;n.firstCreatePass?(r=FD(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Bt(r.type,!0)),s,c=De(pe);try{let a=Zo(!1),u=i();return Zo(a),yc(n,$(),o,u),u}finally{De(c)}}function FD(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function vh(e,t,n){let r=e+le,o=$(),i=Ga(o,r);return yh(o,r)?mh(o,Wa(),t,i.transform,n,i):i.transform(n)}function wc(e,t,n,r){let o=e+le,i=$(),s=Ga(i,o);return yh(i,o)?PD(i,Wa(),t,s.transform,n,r,s):s.transform(n,r)}function yh(e,t){return e[x].data[t].pure}var _i=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var Dh=new C("");function Ln(e){return!!e&&typeof e.then=="function"}function Cc(e){return!!e&&typeof e.subscribe=="function"}var wh=new C(""),Ch=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=p(wh,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=o();if(Ln(i))n.push(i);else if(Cc(i)){let s=new Promise((c,a)=>{i.subscribe({complete:c,error:a})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),xi=new C("");function kD(){Bu(()=>{throw new D(600,!1)})}function LD(e){return e.isBoundToModule}var jD=10;function VD(e,t,n){try{let r=n();return Ln(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Nt=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(Tv),this.afterRenderManager=p(vD),this.zonelessEnabled=p(Ii),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new re,this.afterTick=new re,this.componentTypes=[],this.components=[],this.isStable=p(lt).hasPendingTasks.pipe(_(n=>!n)),this._injector=p(we)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Xo;if(!this._injector.get(Ch).done){let h=!o&&bd(n),f=!1;throw new D(405,f)}let s;o?s=n:s=this._injector.get(xn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let c=LD(s)?void 0:this._injector.get(St),a=r||s.selector,u=s.create(Qe.NULL,[],a,c),l=u.location.nativeElement,d=u.injector.get(Dh,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),ko(this.components,u),d?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new D(101,!1);let n=A(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,A(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Nn,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++pi(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;ko(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(xi,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ko(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new D(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ko(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function $D(e,t,n,r){if(!n&&!pi(e))return;Xf(e,t,n&&!r?0:1)}var Ta=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Ic=(()=>{class e{compileModuleSync(n){return new Da(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Md(n),i=Sf(o.declarations).reduce((s,c)=>{let a=Ht(c);return a&&s.push(new vr(a)),s},[]);return new Ta(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var UD=(()=>{class e{constructor(){this.zone=p(q),this.changeDetectionScheduler=p(_n),this.applicationRef=p(Nt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),BD=new C("",{factory:()=>!1});function Ih({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new q(z(v({},bh()),{scheduleInRootZone:n})),[{provide:q,useFactory:e},{provide:In,multi:!0,useFactory:()=>{let r=p(UD,{optional:!0});return()=>r.initialize()}},{provide:In,multi:!0,useFactory:()=>{let r=p(HD);return()=>{r.initialize()}}},t===!0?{provide:rh,useValue:!0}:[],{provide:oh,useValue:n??gf}]}function Eh(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=Ih({ngZoneFactory:()=>{let o=bh(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&dt("NgZone_CoalesceEvent"),new q(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return An([{provide:BD,useValue:!0},{provide:Ii,useValue:!1},r])}function bh(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var HD=(()=>{class e{constructor(){this.subscription=new Y,this.initialized=!1,this.zone=p(q),this.pendingTasks=p(lt)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{q.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{q.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var zD=(()=>{class e{constructor(){this.appRef=p(Nt),this.taskService=p(lt),this.ngZone=p(q),this.zonelessEnabled=p(Ii),this.disableScheduling=p(rh,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Y,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Qo):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(oh,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof aa||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?Ll:mf;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Qo+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Ll(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function GD(){return typeof $localize<"u"&&$localize.locale||oi}var Ni=new C("",{providedIn:"root",factory:()=>p(Ni,N.Optional|N.SkipSelf)||GD()});var _a=new C("");function Ao(e){return!e.moduleRef}function qD(e){let t=Ao(e)?e.r3Injector:e.moduleRef.injector,n=t.get(q);return n.run(()=>{Ao(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Ke,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Ao(e)){let i=()=>t.destroy(),s=e.platformInjector.get(_a);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(_a);s.add(i),e.moduleRef.onDestroy(()=>{ko(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return VD(r,n,()=>{let i=t.get(Ch);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Ni,oi);if(_D(s||oi),Ao(e)){let c=t.get(Nt);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return WD(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function WD(e,t){let n=e.injector.get(Nt);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new D(-403,!1);t.push(e)}var Lo=null;function ZD(e=[],t){return Qe.create({name:t,providers:[{provide:li,useValue:"platform"},{provide:_a,useValue:new Set([()=>Lo=null])},...e]})}function YD(e=[]){if(Lo)return Lo;let t=ZD(e);return Lo=t,kD(),QD(t),t}function QD(e){e.get(ic,null)?.forEach(n=>n())}var Qt=(()=>{class e{static{this.__NG_ELEMENT_ID__=KD}}return e})();function KD(e){return JD(Be(),$(),(e&16)===16)}function JD(e,t,n){if(fi(e)&&!n){let r=Tt(e.index,t);return new Tn(r,r)}else if(e.type&175){let r=t[Le];return new Tn(r,t)}return null}var xa=class{constructor(){}supports(t){return t instanceof Map||sh(t)}create(){return new Na}},Na=class{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(t){let n;for(n=this._mapHead;n!==null;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;n!==null;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;n!==null;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}diff(t){if(!t)t=new Map;else if(!(t instanceof Map||sh(t)))throw new D(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){let r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){let o=this._records.get(t);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new Aa(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}},Aa=class{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function nd(){return new Ec([new xa])}var Ec=(()=>{class e{static{this.\u0275prov=w({token:e,providedIn:"root",factory:nd})}constructor(n){this.factories=n}static create(n,r){if(r){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||nd()),deps:[[e,new md,new Fa]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new D(901,!1)}}return e})();function Mh(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=YD(r),i=[Ih({}),{provide:_n,useExisting:zD},...n||[]],s=new ti({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return qD({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function bc(e,t){dt("NgSignals");let n=$u(e);return t?.equal&&(n[nn].equal=t.equal),n}function jn(e){let t=A(null);try{return e()}finally{A(t)}}var XD=new C("",{providedIn:"root",factory:()=>p(ew)}),ew=(()=>{class e{static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>new Ra})}}return e})(),Ra=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=p(lt),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),this.taskId===null){let n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(t){let n=t.creationZone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},Oa=class{constructor(t,n,r,o,i,s){this.scheduler=t,this.effectFn=n,this.creationZone=r,this.injector=i,this.watcher=Gu(c=>this.runEffect(c),()=>this.schedule(),s),this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(Ke,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function Mc(e,t){dt("NgSignals"),!t?.injector&&Ba(Mc);let n=t?.injector??p(Qe),r=t?.manualCleanup!==!0?n.get(Cr):null,o=new Oa(n.get(XD),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),i=n.get(Qt,null,{optional:!0});return!i||!(i._lView[E]&8)?o.watcher.notify():(i._lView[Oo]??=[]).push(o.watcher.notify),o}var Nh=null;function Vn(){return Nh}function Ah(e){Nh??=e}var Vi=class{};var Ie=new C(""),Rh=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(sw),providedIn:"platform"})}}return e})();var sw=(()=>{class e extends Rh{constructor(){super(),this._doc=p(Ie),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Vn().getBaseHref(this._doc)}onPopState(n){let r=Vn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Vn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function Oh(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Sh(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function Kt(e){return e&&e[0]!=="?"?"?"+e:e}var Ui=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(Ph),providedIn:"root"})}}return e})(),aw=new C(""),Ph=(()=>{class e extends Ui{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??p(Ie).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 Oh(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Kt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Kt(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Kt(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(I(Rh),I(aw,8))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Tr=(()=>{class e{constructor(n){this._subject=new ie,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=lw(Sh(Th(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Kt(r))}normalize(n){return e.stripTrailingSlash(uw(this._basePath,Th(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Kt(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Kt(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}static{this.normalizeQueryParams=Kt}static{this.joinWithSlash=Oh}static{this.stripTrailingSlash=Sh}static{this.\u0275fac=function(r){return new(r||e)(I(Ui))}}static{this.\u0275prov=w({token:e,factory:()=>cw(),providedIn:"root"})}}return e})();function cw(){return new Tr(I(Ui))}function uw(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Th(e){return e.replace(/\/index.html$/,"")}function lw(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var me=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(me||{}),H=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(H||{}),Se=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(Se||{}),At={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function dw(e){return Ae(e)[Z.LocaleId]}function fw(e,t,n){let r=Ae(e),o=[r[Z.DayPeriodsFormat],r[Z.DayPeriodsStandalone]],i=Re(o,t);return Re(i,n)}function hw(e,t,n){let r=Ae(e),o=[r[Z.DaysFormat],r[Z.DaysStandalone]],i=Re(o,t);return Re(i,n)}function pw(e,t,n){let r=Ae(e),o=[r[Z.MonthsFormat],r[Z.MonthsStandalone]],i=Re(o,t);return Re(i,n)}function gw(e,t){let r=Ae(e)[Z.Eras];return Re(r,t)}function Ai(e,t){let n=Ae(e);return Re(n[Z.DateFormat],t)}function Ri(e,t){let n=Ae(e);return Re(n[Z.TimeFormat],t)}function Oi(e,t){let r=Ae(e)[Z.DateTimeFormat];return Re(r,t)}function Bi(e,t){let n=Ae(e),r=n[Z.NumberSymbols][t];if(typeof r>"u"){if(t===At.CurrencyDecimal)return n[Z.NumberSymbols][At.Decimal];if(t===At.CurrencyGroup)return n[Z.NumberSymbols][At.Group]}return r}function Fh(e){if(!e[Z.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[Z.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function mw(e){let t=Ae(e);return Fh(t),(t[Z.ExtraData][2]||[]).map(r=>typeof r=="string"?Sc(r):[Sc(r[0]),Sc(r[1])])}function vw(e,t,n){let r=Ae(e);Fh(r);let o=[r[Z.ExtraData][0],r[Z.ExtraData][1]],i=Re(o,t)||[];return Re(i,n)||[]}function Re(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function Sc(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var yw=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Pi={},Dw=/((?:[^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]*)/,pt=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(pt||{}),j=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(j||{}),L=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(L||{});function ww(e,t,n,r){let o=xw(e);t=ht(n,t)||t;let s=[],c;for(;t;)if(c=Dw.exec(t),c){s=s.concat(c.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let a=o.getTimezoneOffset();r&&(a=Lh(r,a),o=_w(o,r,!0));let u="";return s.forEach(l=>{let d=Sw(l);u+=d?d(o,n,a):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function $i(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function ht(e,t){let n=dw(e);if(Pi[n]??={},Pi[n][t])return Pi[n][t];let r="";switch(t){case"shortDate":r=Ai(e,Se.Short);break;case"mediumDate":r=Ai(e,Se.Medium);break;case"longDate":r=Ai(e,Se.Long);break;case"fullDate":r=Ai(e,Se.Full);break;case"shortTime":r=Ri(e,Se.Short);break;case"mediumTime":r=Ri(e,Se.Medium);break;case"longTime":r=Ri(e,Se.Long);break;case"fullTime":r=Ri(e,Se.Full);break;case"short":let o=ht(e,"shortTime"),i=ht(e,"shortDate");r=Fi(Oi(e,Se.Short),[o,i]);break;case"medium":let s=ht(e,"mediumTime"),c=ht(e,"mediumDate");r=Fi(Oi(e,Se.Medium),[s,c]);break;case"long":let a=ht(e,"longTime"),u=ht(e,"longDate");r=Fi(Oi(e,Se.Long),[a,u]);break;case"full":let l=ht(e,"fullTime"),d=ht(e,"fullDate");r=Fi(Oi(e,Se.Full),[l,d]);break}return r&&(Pi[n][t]=r),r}function Fi(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function He(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length0||c>-n)&&(c+=n),e===j.Hours)c===0&&n===-12&&(c=12);else if(e===j.FractionalSeconds)return Cw(c,t);let a=Bi(s,At.MinusSign);return He(c,t,a,r,o)}}function Iw(e,t){switch(e){case j.FullYear:return t.getFullYear();case j.Month:return t.getMonth();case j.Date:return t.getDate();case j.Hours:return t.getHours();case j.Minutes:return t.getMinutes();case j.Seconds:return t.getSeconds();case j.FractionalSeconds:return t.getMilliseconds();case j.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function G(e,t,n=me.Format,r=!1){return function(o,i){return Ew(o,i,e,t,n,r)}}function Ew(e,t,n,r,o,i){switch(n){case L.Months:return pw(t,o,r)[e.getMonth()];case L.Days:return hw(t,o,r)[e.getDay()];case L.DayPeriods:let s=e.getHours(),c=e.getMinutes();if(i){let u=mw(t),l=vw(t,o,r),d=u.findIndex(h=>{if(Array.isArray(h)){let[f,g]=h,m=s>=f.hours&&c>=f.minutes,y=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case pt.Short:return(o>=0?"+":"")+He(s,2,i)+He(Math.abs(o%60),2,i);case pt.ShortGMT:return"GMT"+(o>=0?"+":"")+He(s,1,i);case pt.Long:return"GMT"+(o>=0?"+":"")+He(s,2,i)+":"+He(Math.abs(o%60),2,i);case pt.Extended:return r===0?"Z":(o>=0?"+":"")+He(s,2,i)+":"+He(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}var bw=0,ji=4;function Mw(e){let t=$i(e,bw,1).getDay();return $i(e,0,1+(t<=ji?ji:ji+7)-t)}function kh(e){let t=e.getDay(),n=t===0?-3:ji-t;return $i(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Tc(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=kh(n),s=Mw(i.getFullYear()),c=i.getTime()-s.getTime();o=1+Math.round(c/6048e5)}return He(o,e,Bi(r,At.MinusSign))}}function Li(e,t=!1){return function(n,r){let i=kh(n).getFullYear();return He(i,e,Bi(r,At.MinusSign),t)}}var _c={};function Sw(e){if(_c[e])return _c[e];let t;switch(e){case"G":case"GG":case"GGG":t=G(L.Eras,H.Abbreviated);break;case"GGGG":t=G(L.Eras,H.Wide);break;case"GGGGG":t=G(L.Eras,H.Narrow);break;case"y":t=Q(j.FullYear,1,0,!1,!0);break;case"yy":t=Q(j.FullYear,2,0,!0,!0);break;case"yyy":t=Q(j.FullYear,3,0,!1,!0);break;case"yyyy":t=Q(j.FullYear,4,0,!1,!0);break;case"Y":t=Li(1);break;case"YY":t=Li(2,!0);break;case"YYY":t=Li(3);break;case"YYYY":t=Li(4);break;case"M":case"L":t=Q(j.Month,1,1);break;case"MM":case"LL":t=Q(j.Month,2,1);break;case"MMM":t=G(L.Months,H.Abbreviated);break;case"MMMM":t=G(L.Months,H.Wide);break;case"MMMMM":t=G(L.Months,H.Narrow);break;case"LLL":t=G(L.Months,H.Abbreviated,me.Standalone);break;case"LLLL":t=G(L.Months,H.Wide,me.Standalone);break;case"LLLLL":t=G(L.Months,H.Narrow,me.Standalone);break;case"w":t=Tc(1);break;case"ww":t=Tc(2);break;case"W":t=Tc(1,!0);break;case"d":t=Q(j.Date,1);break;case"dd":t=Q(j.Date,2);break;case"c":case"cc":t=Q(j.Day,1);break;case"ccc":t=G(L.Days,H.Abbreviated,me.Standalone);break;case"cccc":t=G(L.Days,H.Wide,me.Standalone);break;case"ccccc":t=G(L.Days,H.Narrow,me.Standalone);break;case"cccccc":t=G(L.Days,H.Short,me.Standalone);break;case"E":case"EE":case"EEE":t=G(L.Days,H.Abbreviated);break;case"EEEE":t=G(L.Days,H.Wide);break;case"EEEEE":t=G(L.Days,H.Narrow);break;case"EEEEEE":t=G(L.Days,H.Short);break;case"a":case"aa":case"aaa":t=G(L.DayPeriods,H.Abbreviated);break;case"aaaa":t=G(L.DayPeriods,H.Wide);break;case"aaaaa":t=G(L.DayPeriods,H.Narrow);break;case"b":case"bb":case"bbb":t=G(L.DayPeriods,H.Abbreviated,me.Standalone,!0);break;case"bbbb":t=G(L.DayPeriods,H.Wide,me.Standalone,!0);break;case"bbbbb":t=G(L.DayPeriods,H.Narrow,me.Standalone,!0);break;case"B":case"BB":case"BBB":t=G(L.DayPeriods,H.Abbreviated,me.Format,!0);break;case"BBBB":t=G(L.DayPeriods,H.Wide,me.Format,!0);break;case"BBBBB":t=G(L.DayPeriods,H.Narrow,me.Format,!0);break;case"h":t=Q(j.Hours,1,-12);break;case"hh":t=Q(j.Hours,2,-12);break;case"H":t=Q(j.Hours,1);break;case"HH":t=Q(j.Hours,2);break;case"m":t=Q(j.Minutes,1);break;case"mm":t=Q(j.Minutes,2);break;case"s":t=Q(j.Seconds,1);break;case"ss":t=Q(j.Seconds,2);break;case"S":t=Q(j.FractionalSeconds,1);break;case"SS":t=Q(j.FractionalSeconds,2);break;case"SSS":t=Q(j.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=ki(pt.Short);break;case"ZZZZZ":t=ki(pt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ki(pt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=ki(pt.Long);break;default:return null}return _c[e]=t,t}function Lh(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Tw(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function _w(e,t,n){let r=n?-1:1,o=e.getTimezoneOffset(),i=Lh(t,o);return Tw(e,r*(i-o))}function xw(e){if(_h(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(c=>+c);return $i(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(yw))return Nw(r)}let t=new Date(e);if(!_h(t))throw new Error(`Unable to convert "${e}" into a date`);return t}function Nw(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,c=Number(e[5]||0)-r,a=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,c,a,u),t}function _h(e){return e instanceof Date&&!isNaN(e.valueOf())}function Hi(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var jh=(()=>{class e{constructor(n,r,o){this._ngEl=n,this._differs=r,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){let[o,i]=n.split("."),s=o.indexOf("-")===-1?void 0:xt.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,i?`${r}${i}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static{this.\u0275fac=function(r){return new(r||e)(pe(Er),pe(Ec),pe(Ei))}}static{this.\u0275dir=ui({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return e})();function Vh(e,t){return new D(2100,!1)}var xc=class{createSubscription(t,n){return jn(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){jn(()=>t.unsubscribe())}},Nc=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},Aw=new Nc,Rw=new xc,$h=(()=>{class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(Ln(n))return Aw;if(Cc(n))return Rw;throw Vh(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(r){return new(r||e)(pe(Qt,16))}}static{this.\u0275pipe=Va({name:"async",type:e,pure:!1,standalone:!0})}}return e})();var Ow="mediumDate",Pw=new C(""),Fw=new C(""),Uh=(()=>{class e{constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??Ow,c=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return ww(n,s,i||this.locale,c)}catch(s){throw Vh(e,s.message)}}static{this.\u0275fac=function(r){return new(r||e)(pe(Ni,16),pe(Pw,24),pe(Fw,24))}}static{this.\u0275pipe=Va({name:"date",type:e,pure:!0,standalone:!0})}}return e})();var Bh="browser",kw="server";function zi(e){return e===kw}var $n=class{};var xr=class{},qi=class{},gt=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` -`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(c=>i.indexOf(c)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Pc=class{encodeKey(t){return Hh(t)}encodeValue(t){return Hh(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function jw(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,c]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],a=n.get(s)||[];a.push(c),n.set(s,a)}),n}var Vw=/%(\d[a-f0-9])/gi,$w={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Hh(e){return encodeURIComponent(e).replace(Vw,(t,n)=>$w[n]??t)}function Gi(e){return`${e}`}var Ot=class e{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Pc,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=jw(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Gi):[Gi(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Gi(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(Gi(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Fc=class{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function Uw(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function zh(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Gh(e){return typeof Blob<"u"&&e instanceof Blob}function qh(e){return typeof FormData<"u"&&e instanceof FormData}function Bw(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var _r=class e{constructor(t,n,r,o){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let i;if(Uw(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new gt,this.context??=new Fc,!this.params)this.params=new Ot,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let c=n.indexOf("?"),a=c===-1?"?":ch.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),l)),new e(n,r,s,{params:l,headers:u,context:d,reportProgress:a,responseType:o,withCredentials:c,transferCache:i})}},Pt=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Pt||{}),Nr=class{constructor(t,n=200,r="OK"){this.headers=t.headers||new gt,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},Wi=class e extends Nr{constructor(t={}){super(t),this.type=Pt.ResponseHeader}clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Ar=class e extends Nr{constructor(t={}){super(t),this.type=Pt.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Rt=class extends Nr{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},Qh=200,Hw=204;function Oc(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var Rr=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof _r)i=n;else{let a;o.headers instanceof gt?a=o.headers:a=new gt(o.headers);let u;o.params&&(o.params instanceof Ot?u=o.params:u=new Ot({fromObject:o.params})),i=new _r(n,r,o.body!==void 0?o.body:null,{headers:a,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=b(i).pipe(wt(a=>this.handler.handle(a)));if(n instanceof _r||o.observe==="events")return s;let c=s.pipe(ae(a=>a instanceof Ar));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return c.pipe(_(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return a.body}));case"blob":return c.pipe(_(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new Error("Response is not a Blob.");return a.body}));case"text":return c.pipe(_(a=>{if(a.body!==null&&typeof a.body!="string")throw new Error("Response is not a string.");return a.body}));case"json":default:return c.pipe(_(a=>a.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Ot().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Oc(o,r))}post(n,r,o={}){return this.request("POST",n,Oc(o,r))}put(n,r,o={}){return this.request("PUT",n,Oc(o,r))}static{this.\u0275fac=function(r){return new(r||e)(I(xr))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),zw=/^\)\]\}',?\n/,Gw="X-Request-URL";function Wh(e){if(e.url)return e.url;let t=Gw.toLocaleLowerCase();return e.headers.get(t)}var qw=(()=>{class e{constructor(){this.fetchImpl=p(kc,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n)),this.ngZone=p(q)}handle(n){return new F(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(Lc,i=>r.error(new Rt({error:i}))),()=>o.abort()})}doRequest(n,r,o){return to(this,null,function*(){let i=this.createRequestInit(n),s;try{let f=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,v({signal:r},i)));Ww(f),o.next({type:Pt.Sent}),s=yield f}catch(f){o.error(new Rt({error:f,status:f.status??0,statusText:f.statusText,url:n.urlWithParams,headers:f.headers}));return}let c=new gt(s.headers),a=s.statusText,u=Wh(s)??n.urlWithParams,l=s.status,d=null;if(n.reportProgress&&o.next(new Wi({headers:c,status:l,statusText:a,url:u})),s.body){let f=s.headers.get("content-length"),g=[],m=s.body.getReader(),y=0,T,U,k=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>to(this,null,function*(){for(;;){let{done:ve,value:K}=yield m.read();if(ve)break;if(g.push(K),y+=K.length,n.reportProgress){U=n.responseType==="text"?(U??"")+(T??=new TextDecoder).decode(K,{stream:!0}):void 0;let ot=()=>o.next({type:Pt.DownloadProgress,total:f?+f:void 0,loaded:y,partialText:U});k?k.run(ot):ot()}}}));let ne=this.concatChunks(g,y);try{let ve=s.headers.get("Content-Type")??"";d=this.parseBody(n,ne,ve)}catch(ve){o.error(new Rt({error:ve,headers:new gt(s.headers),status:s.status,statusText:s.statusText,url:Wh(s)??n.urlWithParams}));return}}l===0&&(l=d?Qh:0),l>=200&&l<300?(o.next(new Ar({body:d,headers:c,status:l,statusText:a,url:u})),o.complete()):o.error(new Rt({error:d,headers:c,status:l,statusText:a,url:u}))})}parseBody(n,r,o){switch(n.responseType){case"json":let i=new TextDecoder().decode(r).replace(zw,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let i=n.detectContentTypeHeader();i!==null&&(r["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),kc=class{};function Lc(){}function Ww(e){e.then(Lc,Lc)}function Zw(e,t){return t(e)}function Yw(e,t,n){return(r,o)=>je(n,()=>t(r,i=>e(i,o)))}var Kh=new C(""),Qw=new C(""),Kw=new C("",{providedIn:"root",factory:()=>!0});var Zh=(()=>{class e extends xr{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=p(lt),this.contributeToStability=p(Kw)}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Kh),...this.injector.get(Qw,[])]));this.chain=r.reduceRight((o,i)=>Yw(o,i,this.injector),Zw)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Vt(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||e)(I(qi),I(we))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})();var Jw=/^\)\]\}',?\n/;function Xw(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var Yh=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new D(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?W(r.\u0275loadImpl()):b(null)).pipe(ce(()=>new F(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((m,y)=>s.setRequestHeader(m,y.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let m=n.detectContentTypeHeader();m!==null&&s.setRequestHeader("Content-Type",m)}if(n.responseType){let m=n.responseType.toLowerCase();s.responseType=m!=="json"?m:"text"}let c=n.serializeBody(),a=null,u=()=>{if(a!==null)return a;let m=s.statusText||"OK",y=new gt(s.getAllResponseHeaders()),T=Xw(s)||n.url;return a=new Wi({headers:y,status:s.status,statusText:m,url:T}),a},l=()=>{let{headers:m,status:y,statusText:T,url:U}=u(),k=null;y!==Hw&&(k=typeof s.response>"u"?s.responseText:s.response),y===0&&(y=k?Qh:0);let ne=y>=200&&y<300;if(n.responseType==="json"&&typeof k=="string"){let ve=k;k=k.replace(Jw,"");try{k=k!==""?JSON.parse(k):null}catch(K){k=ve,ne&&(ne=!1,k={error:K,text:k})}}ne?(i.next(new Ar({body:k,headers:m,status:y,statusText:T,url:U||void 0})),i.complete()):i.error(new Rt({error:k,headers:m,status:y,statusText:T,url:U||void 0}))},d=m=>{let{url:y}=u(),T=new Rt({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:y||void 0});i.error(T)},h=!1,f=m=>{h||(i.next(u()),h=!0);let y={type:Pt.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),n.responseType==="text"&&s.responseText&&(y.partialText=s.responseText),i.next(y)},g=m=>{let y={type:Pt.UploadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),i.next(y)};return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",f),c!==null&&s.upload&&s.upload.addEventListener("progress",g)),s.send(c),i.next({type:Pt.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),c!==null&&s.upload&&s.upload.removeEventListener("progress",g)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||e)(I($n))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),Jh=new C(""),eC="XSRF-TOKEN",tC=new C("",{providedIn:"root",factory:()=>eC}),nC="X-XSRF-TOKEN",rC=new C("",{providedIn:"root",factory:()=>nC}),Zi=class{},oC=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Hi(n,this.cookieName),this.lastCookieString=n),this.lastToken}static{this.\u0275fac=function(r){return new(r||e)(I(Ie),I(_t),I(tC))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})();function iC(e,t){let n=e.url.toLowerCase();if(!p(Jh)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=p(Zi).getToken(),o=p(rC);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}function Xh(...e){let t=[Rr,Yh,Zh,{provide:xr,useExisting:Zh},{provide:qi,useFactory:()=>p(qw,{optional:!0})??p(Yh)},{provide:Kh,useValue:iC,multi:!0},{provide:Jh,useValue:!0},{provide:Zi,useClass:oC}];for(let n of e)t.push(...n.\u0275providers);return An(t)}var $c=class extends Vi{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Uc=class e extends $c{static makeCurrent(){Ah(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=sC();return n==null?null:aC(n)}resetBaseElement(){Or=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Hi(document.cookie,t)}},Or=null;function sC(){return Or=Or||document.querySelector("base"),Or?Or.getAttribute("href"):null}function aC(e){return new URL(e,document.baseURI).pathname}var cC=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),Bc=new C(""),op=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new D(5101,!1);return this._eventNameToPlugin.set(n,r),r}static{this.\u0275fac=function(r){return new(r||e)(I(Bc),I(q))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),Yi=class{constructor(t){this._doc=t}},jc="ng-app-id",ip=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=zi(i),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${jc}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){let o=this.styleRef;if(o.has(n)){let i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(jc),i;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(jc,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){let o=this.getStyleElement(n,r),i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(I(Ie),I(oc),I(sc,8),I(_t))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),Vc={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},zc=/%COMP%/g,sp="%COMP%",uC=`_nghost-${sp}`,lC=`_ngcontent-${sp}`,dC=!0,fC=new C("",{providedIn:"root",factory:()=>dC});function hC(e){return lC.replace(zc,e)}function pC(e){return uC.replace(zc,e)}function ap(e,t){return t.map(n=>n.replace(zc,e))}var tp=(()=>{class e{constructor(n,r,o,i,s,c,a,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=c,this.ngZone=a,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=zi(c),this.defaultRenderer=new Pr(n,s,a,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ze.ShadowDom&&(r=z(v({},r),{encapsulation:Ze.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Qi?o.applyToHost(n):o instanceof Fr&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,c=this.ngZone,a=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Ze.Emulated:i=new Qi(a,u,r,this.appId,l,s,c,d);break;case Ze.ShadowDom:return new Hc(a,u,n,r,s,c,this.nonce,d);default:i=new Fr(a,u,r,l,s,c,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(I(op),I(ip),I(oc),I(fC),I(Ie),I(_t),I(q),I(sc))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),Pr=class{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Vc[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(np(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(np(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new D(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Vc[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Vc[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(xt.DashCase|xt.Important)?t.style.setProperty(n,r,o&xt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&xt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=Vn().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function np(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Hc=class extends Pr{constructor(t,n,r,o,i,s,c,a){super(t,i,s,a),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=ap(o.id,o.styles);for(let l of u){let d=document.createElement("style");c&&d.setAttribute("nonce",c),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Fr=class extends Pr{constructor(t,n,r,o,i,s,c,a){super(t,i,s,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=a?ap(a,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Qi=class extends Fr{constructor(t,n,r,o,i,s,c,a){let u=o+"-"+r.id;super(t,n,r,i,s,c,a,u),this.contentAttr=hC(u),this.hostAttr=pC(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},gC=(()=>{class e extends Yi{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static{this.\u0275fac=function(r){return new(r||e)(I(Ie))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),rp=["alt","control","meta","shift"],mC={"\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"},vC={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},yC=(()=>{class e extends Yi{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Vn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),s="code."),rp.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let a={};return a.domEventName=o,a.fullKey=s,a}static matchEventFullKeyCode(n,r){let o=mC[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),rp.forEach(s=>{if(s!==o){let c=vC[s];c(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static{this.\u0275fac=function(r){return new(r||e)(I(Ie))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})();function cp(e,t){return Mh(v({rootComponent:e},DC(t)))}function DC(e){return{appProviders:[...bC,...e?.providers??[]],platformProviders:EC}}function wC(){Uc.makeCurrent()}function CC(){return new Ke}function IC(){return Ef(document),document}var EC=[{provide:_t,useValue:Bh},{provide:ic,useValue:wC,multi:!0},{provide:Ie,useFactory:IC,deps:[]}];var bC=[{provide:li,useValue:"root"},{provide:Ke,useFactory:CC,deps:[]},{provide:Bc,useClass:gC,multi:!0,deps:[Ie,q,_t]},{provide:Bc,useClass:yC,multi:!0,deps:[Ie]},tp,ip,op,{provide:Nn,useExisting:tp},{provide:$n,useClass:cC,deps:[]},[]];var up=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static{this.\u0275fac=function(r){return new(r||e)(I(Ie))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var S="primary",Jr=Symbol("RouteTitle"),Yc=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function qn(e){return new Yc(e)}function SC(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthr[i]===o)}else return e===t}function yp(e){return e.length>0?e[e.length-1]:null}function Ft(e){return _s(e)?e:Ln(e)?W(Promise.resolve(e)):b(e)}var _C={exact:wp,subset:Cp},Dp={exact:xC,subset:NC,ignored:()=>!0};function lp(e,t,n){return _C[n.paths](e.root,t.root,n.matrixParams)&&Dp[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function xC(e,t){return rt(e,t)}function wp(e,t,n){if(!Xt(e.segments,t.segments)||!Xi(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!wp(e.children[r],t.children[r],n))return!1;return!0}function NC(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>vp(e[n],t[n]))}function Cp(e,t,n){return Ip(e,t,t.segments,n)}function Ip(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!Xt(o,n)||t.hasChildren()||!Xi(o,n,r))}else if(e.segments.length===n.length){if(!Xt(e.segments,n)||!Xi(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!Cp(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!Xt(e.segments,o)||!Xi(e.segments,o,r)||!e.children[S]?!1:Ip(e.children[S],t,i,r)}}function Xi(e,t,n){return t.every((r,o)=>Dp[n](e[o].parameters,r.parameters))}var vt=class{constructor(t=new V([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=qn(this.queryParams),this._queryParamMap}toString(){return OC.serialize(this)}},V=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return es(this)}},Jt=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=qn(this.parameters),this._parameterMap}toString(){return bp(this)}};function AC(e,t){return Xt(e,t)&&e.every((n,r)=>rt(n.parameters,t[r].parameters))}function Xt(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function RC(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===S&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==S&&(n=n.concat(t(o,r)))}),n}var Iu=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>new Br,providedIn:"root"})}}return e})(),Br=class{parse(t){let n=new Jc(t);return new vt(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${kr(t.root,!0)}`,r=kC(t.queryParams),o=typeof t.fragment=="string"?`#${PC(t.fragment)}`:"";return`${n}${r}${o}`}},OC=new Br;function es(e){return e.segments.map(t=>bp(t)).join("/")}function kr(e,t){if(!e.hasChildren())return es(e);if(t){let n=e.children[S]?kr(e.children[S],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==S&&r.push(`${o}:${kr(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=RC(e,(r,o)=>o===S?[kr(e.children[S],!1)]:[`${o}:${kr(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[S]!=null?`${es(e)}/${n[0]}`:`${es(e)}/(${n.join("//")})`}}function Ep(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ki(e){return Ep(e).replace(/%3B/gi,";")}function PC(e){return encodeURI(e)}function Kc(e){return Ep(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ts(e){return decodeURIComponent(e)}function dp(e){return ts(e.replace(/\+/g,"%20"))}function bp(e){return`${Kc(e.path)}${FC(e.parameters)}`}function FC(e){return Object.entries(e).map(([t,n])=>`;${Kc(t)}=${Kc(n)}`).join("")}function kC(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Ki(n)}=${Ki(o)}`).join("&"):`${Ki(n)}=${Ki(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var LC=/^[^\/()?;#]+/;function Gc(e){let t=e.match(LC);return t?t[0]:""}var jC=/^[^\/()?;=#]+/;function VC(e){let t=e.match(jC);return t?t[0]:""}var $C=/^[^=?&#]+/;function UC(e){let t=e.match($C);return t?t[0]:""}var BC=/^[^&#]+/;function HC(e){let t=e.match(BC);return t?t[0]:""}var Jc=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new V([],{}):new V([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[S]=new V(t,n)),r}parseSegment(){let t=Gc(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new D(4009,!1);return this.capture(t),new Jt(ts(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=VC(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=Gc(this.remaining);o&&(r=o,this.capture(r))}t[ts(n)]=ts(r)}parseQueryParam(t){let n=UC(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=HC(this.remaining);s&&(r=s,this.capture(r))}let o=dp(n),i=dp(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Gc(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new D(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=S);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[S]:new V([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new D(4011,!1)}};function Mp(e){return e.segments.length>0?new V([],{[S]:e}):e}function Sp(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=Sp(o);if(r===S&&i.segments.length===0&&i.hasChildren())for(let[s,c]of Object.entries(i.children))t[s]=c;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new V(e.segments,t);return zC(n)}function zC(e){if(e.numberOfChildren===1&&e.children[S]){let t=e.children[S];return new V(e.segments.concat(t.segments),t.children)}return e}function Hr(e){return e instanceof vt}function GC(e,t,n=null,r=null){let o=Tp(e);return _p(o,t,n,r)}function Tp(e){let t;function n(i){let s={};for(let a of i.children){let u=n(a);s[a.outlet]=u}let c=new V(i.url,s);return i===e&&(t=c),c}let r=n(e.root),o=Mp(r);return t??o}function _p(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return qc(o,o,o,n,r);let i=qC(t);if(i.toRoot())return qc(o,o,new V([],{}),n,r);let s=WC(i,o,e),c=s.processChildren?Vr(s.segmentGroup,s.index,i.commands):Np(s.segmentGroup,s.index,i.commands);return qc(o,s.segmentGroup,c,n,r)}function ns(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function zr(e){return typeof e=="object"&&e!=null&&e.outlets}function qc(e,t,n,r,o){let i={};r&&Object.entries(r).forEach(([a,u])=>{i[a]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;e===t?s=n:s=xp(e,t,n);let c=Mp(Sp(s));return new vt(c,i,o)}function xp(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=xp(i,t,n)}),new V(e.segments,r)}var rs=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&ns(r[0]))throw new D(4003,!1);let o=r.find(zr);if(o&&o!==yp(r))throw new D(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function qC(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new rs(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let c={};return Object.entries(i.outlets).forEach(([a,u])=>{c[a]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:c}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((c,a)=>{a==0&&c==="."||(a==0&&c===""?n=!0:c===".."?t++:c!=""&&o.push(c))}),o):[...o,i]},[]);return new rs(n,t,r)}var Hn=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function WC(e,t,n){if(e.isAbsolute)return new Hn(t,!0,0);if(!n)return new Hn(t,!1,NaN);if(n.parent===null)return new Hn(n,!0,0);let r=ns(e.commands[0])?0:1,o=n.segments.length-1+r;return ZC(n,o,e.numberOfDoubleDots)}function ZC(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new D(4005,!1);o=r.segments.length}return new Hn(r,!1,o-i)}function YC(e){return zr(e[0])?e[0].outlets:{[S]:e}}function Np(e,t,n){if(e??=new V([],{}),e.segments.length===0&&e.hasChildren())return Vr(e,t,n);let r=QC(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndexi!==S)&&e.children[S]&&e.numberOfChildren===1&&e.children[S].segments.length===0){let i=Vr(e.children[S],t,n);return new V(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Np(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new V(e.segments,o)}}function QC(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;let s=e.segments[o],c=n[r];if(zr(c))break;let a=`${c}`,u=r0&&a===void 0)break;if(a&&u&&typeof u=="object"&&u.outlets===void 0){if(!hp(a,u,s))return i;r+=2}else{if(!hp(a,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function Xc(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Xc(new V([],{}),0,r))}),t}function fp(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function hp(e,t,n){return e==n.path&&rt(t,n.parameters)}var $r="imperative",se=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(se||{}),Oe=class{constructor(t,n){this.id=t,this.url=n}},Gr=class extends Oe{constructor(t,n,r="imperative",o=null){super(t,n),this.type=se.NavigationStart,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},en=class extends Oe{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=se.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},_e=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(_e||{}),eu=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(eu||{}),mt=class extends Oe{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=se.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},tn=class extends Oe{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=se.NavigationSkipped}},qr=class extends Oe{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=se.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},os=class extends Oe{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=se.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},tu=class extends Oe{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=se.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},nu=class extends Oe{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=se.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ru=class extends Oe{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=se.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ou=class extends Oe{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=se.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},iu=class{constructor(t){this.route=t,this.type=se.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},su=class{constructor(t){this.route=t,this.type=se.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},au=class{constructor(t){this.snapshot=t,this.type=se.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},cu=class{constructor(t){this.snapshot=t,this.type=se.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},uu=class{constructor(t){this.snapshot=t,this.type=se.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},lu=class{constructor(t){this.snapshot=t,this.type=se.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Wr=class{},Wn=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function JC(e,t){return e.providers&&!e._injector&&(e._injector=vc(e.providers,t,`Route: ${e.path}`)),e._injector??t}function ze(e){return e.outlet||S}function XC(e,t){let n=e.filter(r=>ze(r)===t);return n.push(...e.filter(r=>ze(r)!==t)),n}function Xr(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var du=class{get injector(){return Xr(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new ds(this.rootInjector),this.attachRef=null}},ds=(()=>{class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new du(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static{this.\u0275fac=function(r){return new(r||e)(I(we))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),is=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=fu(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=fu(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=hu(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return hu(t,this._root).map(n=>n.value)}};function fu(e,t){if(e===t.value)return t;for(let n of t.children){let r=fu(e,n);if(r)return r}return null}function hu(e,t){if(e===t.value)return[t];for(let n of t.children){let r=hu(e,n);if(r.length)return r.unshift(t),r}return[]}var Te=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Bn(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var ss=class extends is{constructor(t,n){super(t),this.snapshot=n,Eu(this,t)}toString(){return this.snapshot.toString()}};function Ap(e){let t=eI(e),n=new oe([new Jt("",{})]),r=new oe({}),o=new oe({}),i=new oe({}),s=new oe(""),c=new Zn(n,r,i,s,o,S,e,t.root);return c.snapshot=t.root,new ss(new Te(c,[]),t)}function eI(e){let t={},n={},r={},o="",i=new zn([],t,r,o,n,S,e,null,{});return new cs("",new Te(i,[]))}var Zn=class{constructor(t,n,r,o,i,s,c,a){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=c,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(_(u=>u[Jr]))??b(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(_(t=>qn(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(_(t=>qn(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function as(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:v(v({},t.params),e.params),data:v(v({},t.data),e.data),resolve:v(v(v(v({},e.data),t.data),o?.data),e._resolvedData)}:r={params:v({},e.params),data:v({},e.data),resolve:v(v({},e.data),e._resolvedData??{})},o&&Op(o)&&(r.resolve[Jr]=o.title),r}var zn=class{get title(){return this.data?.[Jr]}constructor(t,n,r,o,i,s,c,a,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=c,this.routeConfig=a,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=qn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=qn(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},cs=class extends is{constructor(t,n){super(n),this.url=t,Eu(this,n)}toString(){return Rp(this._root)}};function Eu(e,t){t.value._routerState=e,t.children.forEach(n=>Eu(e,n))}function Rp(e){let t=e.children.length>0?` { ${e.children.map(Rp).join(", ")} } `:"";return`${e.value}${t}`}function Wc(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,rt(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),rt(t.params,n.params)||e.paramsSubject.next(n.params),TC(t.url,n.url)||e.urlSubject.next(n.url),rt(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function pu(e,t){let n=rt(e.params,t.params)&&AC(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||pu(e.parent,t.parent))}function Op(e){return typeof e.title=="string"||e.title===null}var tI=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=S,this.activateEvents=new ie,this.deactivateEvents=new ie,this.attachEvents=new ie,this.detachEvents=new ie,this.parentContexts=p(ds),this.location=p(bi),this.changeDetector=p(Qt),this.inputBinder=p(bu,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new D(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new D(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new D(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new D(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,a=new gu(n,c,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:a,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=ui({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[hi]})}}return e})(),gu=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===Zn?this.route:t===ds?this.childContexts:this.parent.get(t,n)}},bu=new C("");function nI(e,t,n){let r=Zr(e,t._root,n?n._root:void 0);return new ss(r,t)}function Zr(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=rI(e,t,n);return new Te(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(c=>Zr(e,c)),s}}let r=oI(t.value),o=t.children.map(i=>Zr(e,i));return new Te(r,o)}}function rI(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Zr(e,r,o);return Zr(e,r)})}function oI(e){return new Zn(new oe(e.url),new oe(e.params),new oe(e.queryParams),new oe(e.fragment),new oe(e.data),e.outlet,e.component,e)}var Yr=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Pp="ngNavigationCancelingError";function us(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Hr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Fp(!1,_e.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function Fp(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Pp]=!0,n.cancellationCode=t,n}function iI(e){return kp(e)&&Hr(e.url)}function kp(e){return!!e&&e[Pp]}var sI=(e,t,n,r)=>_(o=>(new mu(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),mu=class{constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Wc(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=Bn(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Bn(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:c})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Bn(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=Bn(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new lu(i.value.snapshot))}),t.children.length&&this.forwardEvent(new cu(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(Wc(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let c=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(c.contexts),s.attachRef=c.componentRef,s.route=c.route.value,s.outlet&&s.outlet.attach(c.componentRef,c.route.value),Wc(c.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},ls=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Gn=class{constructor(t,n){this.component=t,this.route=n}};function aI(e,t,n){let r=e._root,o=t?t._root:null;return Lr(r,o,n,[r.value])}function cI(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Qn(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!cd(e)?e:t.get(e):r}function Lr(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Bn(t);return e.children.forEach(s=>{uI(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,c])=>Ur(c,n.getContext(s),o)),o}function uI(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,c=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let a=lI(s,i,i.routeConfig.runGuardsAndResolvers);a?o.canActivateChecks.push(new ls(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Lr(e,t,c?c.children:null,r,o):Lr(e,t,n,r,o),a&&c&&c.outlet&&c.outlet.isActivated&&o.canDeactivateChecks.push(new Gn(c.outlet.component,s))}else s&&Ur(t,c,o),o.canActivateChecks.push(new ls(r)),i.component?Lr(e,null,c?c.children:null,r,o):Lr(e,null,n,r,o);return o}function lI(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Xt(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Xt(e.url,t.url)||!rt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!pu(e,t)||!rt(e.queryParams,t.queryParams);case"paramsChange":default:return!pu(e,t)}}function Ur(e,t,n){let r=Bn(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?Ur(s,t.children.getContext(i),n):Ur(s,null,n):Ur(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Gn(t.outlet.component,o)):n.canDeactivateChecks.push(new Gn(null,o)):n.canDeactivateChecks.push(new Gn(null,o))}function eo(e){return typeof e=="function"}function dI(e){return typeof e=="boolean"}function fI(e){return e&&eo(e.canLoad)}function hI(e){return e&&eo(e.canActivate)}function pI(e){return e&&eo(e.canActivateChild)}function gI(e){return e&&eo(e.canDeactivate)}function mI(e){return e&&eo(e.canMatch)}function Lp(e){return e instanceof it||e?.name==="EmptyError"}var Ji=Symbol("INITIAL_VALUE");function Yn(){return ce(e=>To(e.map(t=>t.pipe(st(1),Rs(Ji)))).pipe(_(t=>{for(let n of t)if(n!==!0){if(n===Ji)return Ji;if(n===!1||vI(n))return n}return!0}),ae(t=>t!==Ji),st(1)))}function vI(e){return Hr(e)||e instanceof Yr}function yI(e,t){return X(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?b(z(v({},n),{guardsResult:!0})):DI(s,r,o,e).pipe(X(c=>c&&dI(c)?wI(r,i,e,t):b(c)),_(c=>z(v({},n),{guardsResult:c})))})}function DI(e,t,n,r){return W(e).pipe(X(o=>MI(o.component,o.route,n,t,r)),Ge(o=>o!==!0,!0))}function wI(e,t,n,r){return W(t).pipe(wt(o=>hn(II(o.route.parent,r),CI(o.route,r),bI(e,o.path,n),EI(e,o.route,n))),Ge(o=>o!==!0,!0))}function CI(e,t){return e!==null&&t&&t(new uu(e)),b(!0)}function II(e,t){return e!==null&&t&&t(new au(e)),b(!0)}function EI(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return b(!0);let o=r.map(i=>_o(()=>{let s=Xr(t)??n,c=Qn(i,s),a=hI(c)?c.canActivate(t,e):je(s,()=>c(t,e));return Ft(a).pipe(Ge())}));return b(o).pipe(Yn())}function bI(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>cI(s)).filter(s=>s!==null).map(s=>_o(()=>{let c=s.guards.map(a=>{let u=Xr(s.node)??n,l=Qn(a,u),d=pI(l)?l.canActivateChild(r,e):je(u,()=>l(r,e));return Ft(d).pipe(Ge())});return b(c).pipe(Yn())}));return b(i).pipe(Yn())}function MI(e,t,n,r,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return b(!0);let s=i.map(c=>{let a=Xr(t)??o,u=Qn(c,a),l=gI(u)?u.canDeactivate(e,t,n,r):je(a,()=>u(e,t,n,r));return Ft(l).pipe(Ge())});return b(s).pipe(Yn())}function SI(e,t,n,r){let o=t.canLoad;if(o===void 0||o.length===0)return b(!0);let i=o.map(s=>{let c=Qn(s,e),a=fI(c)?c.canLoad(t,n):je(e,()=>c(t,n));return Ft(a)});return b(i).pipe(Yn(),jp(r))}function jp(e){return Es(te(t=>{if(typeof t!="boolean")throw us(e,t)}),_(t=>t===!0))}function TI(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return b(!0);let i=o.map(s=>{let c=Qn(s,e),a=mI(c)?c.canMatch(t,n):je(e,()=>c(t,n));return Ft(a)});return b(i).pipe(Yn(),jp(r))}var Qr=class{constructor(t){this.segmentGroup=t||null}},Kr=class extends Error{constructor(t){super(),this.urlTree=t}};function Un(e){return fn(new Qr(e))}function _I(e){return fn(new D(4e3,!1))}function xI(e){return fn(Fp(!1,_e.GuardRejected))}var vu=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return b(r);if(o.numberOfChildren>1||!o.children[S])return _I(`${t.redirectTo}`);o=o.children[S]}}applyRedirectCommands(t,n,r,o,i){if(typeof n!="string"){let c=n,{queryParams:a,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:g,title:m}=o,y=je(i,()=>c({params:f,data:g,queryParams:a,fragment:u,routeConfig:l,url:d,outlet:h,title:m}));if(y instanceof vt)throw new Kr(y);n=y}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new Kr(s);return s}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new vt(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let c=i.substring(1);r[o]=n[c]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([c,a])=>{s[c]=this.createSegmentGroup(t,a,r,o)}),new V(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new D(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}},yu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function NI(e,t,n,r,o){let i=Vp(e,t,n);return i.matched?(r=JC(t,r),TI(r,t,n,o).pipe(_(s=>s===!0?i:v({},yu)))):b(i)}function Vp(e,t,n){if(t.path==="**")return AI(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?v({},yu):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||SC)(n,e,t);if(!o)return v({},yu);let i={};Object.entries(o.posParams??{}).forEach(([c,a])=>{i[c]=a.path});let s=o.consumed.length>0?v(v({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function AI(e){return{matched:!0,parameters:e.length>0?yp(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function pp(e,t,n,r){return n.length>0&&PI(e,n,r)?{segmentGroup:new V(t,OI(r,new V(n,e.children))),slicedSegments:[]}:n.length===0&&FI(e,n,r)?{segmentGroup:new V(e.segments,RI(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new V(e.segments,e.children),slicedSegments:n}}function RI(e,t,n,r){let o={};for(let i of n)if(fs(e,t,i)&&!r[ze(i)]){let s=new V([],{});o[ze(i)]=s}return v(v({},r),o)}function OI(e,t){let n={};n[S]=t;for(let r of e)if(r.path===""&&ze(r)!==S){let o=new V([],{});n[ze(r)]=o}return n}function PI(e,t,n){return n.some(r=>fs(e,t,r)&&ze(r)!==S)}function FI(e,t,n){return n.some(r=>fs(e,t,r))}function fs(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function kI(e,t,n){return t.length===0&&!e.children[n]}var Du=class{};function LI(e,t,n,r,o,i,s="emptyOnly"){return new wu(e,t,n,r,o,s,i).recognize()}var jI=31,wu=class{constructor(t,n,r,o,i,s,c){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=c,this.applyRedirects=new vu(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new D(4002,`'${t.segmentGroup}'`)}recognize(){let t=pp(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(_(({children:n,rootSnapshot:r})=>{let o=new Te(r,n),i=new cs("",o),s=GC(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(t){let n=new zn([],Object.freeze({}),Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),S,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,S,n).pipe(_(r=>({children:r,rootSnapshot:n})),Dt(r=>{if(r instanceof Kr)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Qr?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,o,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,i):this.processSegment(t,n,r,r.segments,o,!0,i).pipe(_(s=>s instanceof Te?[s]:[]))}processChildren(t,n,r,o){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return W(i).pipe(wt(s=>{let c=r.children[s],a=XC(n,s);return this.processSegmentGroup(t,a,c,s,o)}),As((s,c)=>(s.push(...c),s)),Ct(null),gn(),X(s=>{if(s===null)return Un(r);let c=$p(s);return VI(c),b(c)}))}processSegment(t,n,r,o,i,s,c){return W(n).pipe(wt(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,o,i,s,c).pipe(Dt(u=>{if(u instanceof Qr)return b(null);throw u}))),Ge(a=>!!a),Dt(a=>{if(Lp(a))return kI(r,o,i)?b(new Du):Un(r);throw a}))}processSegmentAgainstRoute(t,n,r,o,i,s,c,a){return ze(r)!==s&&(s===S||!fs(o,i,r))?Un(o):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,r,i,s,a):this.allowRedirects&&c?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,a):Un(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,c){let{matched:a,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=Vp(n,o,i);if(!a)return Un(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>jI&&(this.allowRedirects=!1));let f=new zn(i,u,Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,gp(o),ze(o),o.component??o._loadedComponent??null,o,mp(o)),g=as(f,c,this.paramsInheritanceStrategy);f.params=Object.freeze(g.params),f.data=Object.freeze(g.data);let m=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(o,m).pipe(X(y=>this.processSegment(t,r,n,y.concat(h),s,!1,c)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let c=NI(n,r,o,t,this.urlSerializer);return r.path==="**"&&(n.children={}),c.pipe(ce(a=>a.matched?(t=r._injector??t,this.getChildConfig(t,r,o).pipe(ce(({routes:u})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=a,g=new zn(h,d,Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,gp(r),ze(r),r.component??r._loadedComponent??null,r,mp(r)),m=as(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(m.params),g.data=Object.freeze(m.data);let{segmentGroup:y,slicedSegments:T}=pp(n,h,f,u);if(T.length===0&&y.hasChildren())return this.processChildren(l,u,y,g).pipe(_(k=>new Te(g,k)));if(u.length===0&&T.length===0)return b(new Te(g,[]));let U=ze(r)===i;return this.processSegment(l,u,y,T,U?S:i,!0,g).pipe(_(k=>new Te(g,k instanceof Te?[k]:[])))}))):Un(n)))}getChildConfig(t,n,r){return n.children?b({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?b({routes:n._loadedRoutes,injector:n._loadedInjector}):SI(t,n,r,this.urlSerializer).pipe(X(o=>o?this.configLoader.loadChildren(t,n).pipe(te(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):xI(n))):b({routes:[],injector:t})}};function VI(e){e.sort((t,n)=>t.value.outlet===S?-1:n.value.outlet===S?1:t.value.outlet.localeCompare(n.value.outlet))}function $I(e){let t=e.value.routeConfig;return t&&t.path===""}function $p(e){let t=[],n=new Set;for(let r of e){if(!$I(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=$p(r.children);t.push(new Te(r.value,o))}return t.filter(r=>!n.has(r))}function gp(e){return e.data||{}}function mp(e){return e.resolve||{}}function UI(e,t,n,r,o,i){return X(s=>LI(e,t,n,r,s.extractedUrl,o,i).pipe(_(({state:c,tree:a})=>z(v({},s),{targetSnapshot:c,urlAfterRedirects:a}))))}function BI(e,t){return X(n=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return b(n);let i=new Set(o.map(a=>a.route)),s=new Set;for(let a of i)if(!s.has(a))for(let u of Up(a))s.add(u);let c=0;return W(s).pipe(wt(a=>i.has(a)?HI(a,r,e,t):(a.data=as(a,a.parent,e).resolve,b(void 0))),te(()=>c++),pn(1),X(a=>c===s.size?b(n):be))})}function Up(e){let t=e.children.map(n=>Up(n)).flat();return[e,...t]}function HI(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!Op(o)&&(i[Jr]=o.title),zI(i,e,t,r).pipe(_(s=>(e._resolvedData=s,e.data=as(e,e.parent,n).resolve,null)))}function zI(e,t,n,r){let o=Qc(e);if(o.length===0)return b({});let i={};return W(o).pipe(X(s=>GI(e[s],t,n,r).pipe(Ge(),te(c=>{if(c instanceof Yr)throw us(new Br,c);i[s]=c}))),pn(1),Ns(i),Dt(s=>Lp(s)?be:fn(s)))}function GI(e,t,n,r){let o=Xr(t)??r,i=Qn(e,o),s=i.resolve?i.resolve(t,n):je(o,()=>i(t,n));return Ft(s)}function Zc(e){return ce(t=>{let n=e(t);return n?W(n).pipe(_(()=>t)):b(t)})}var Bp=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===S);return r}getResolvedTitleForRoute(n){return n.data[Jr]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(qI),providedIn:"root"})}}return e})(),qI=(()=>{class e extends Bp{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(I(up))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Mu=new C("",{providedIn:"root",factory:()=>({})}),WI=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Je({type:e,selectors:[["ng-component"]],standalone:!0,features:[tt],decls:1,vars:0,template:function(r,o){r&1&&ft(0,"router-outlet")},dependencies:[tI],encapsulation:2})}}return e})();function Su(e){let t=e.children&&e.children.map(Su),n=t?z(v({},e),{children:t}):v({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==S&&(n.component=WI),n}var Tu=new C(""),ZI=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(Ic)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return b(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=Ft(n.loadComponent()).pipe(_(Hp),te(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Vt(()=>{this.componentLoaders.delete(n)})),o=new dn(r,()=>new re).pipe(ln());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return b({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=YI(r,this.compiler,n,this.onLoadEndListener).pipe(Vt(()=>{this.childrenLoaders.delete(r)})),s=new dn(i,()=>new re).pipe(ln());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function YI(e,t,n,r){return Ft(e.loadChildren()).pipe(_(Hp),X(o=>o instanceof yr||Array.isArray(o)?b(o):W(t.compileModuleAsync(o))),_(o=>{r&&r(e);let i,s,c=!1;return Array.isArray(o)?(s=o,c=!0):(i=o.create(n).injector,s=i.get(Tu,[],{optional:!0,self:!0}).flat()),{routes:s.map(Su),injector:i}}))}function QI(e){return e&&typeof e=="object"&&"default"in e}function Hp(e){return QI(e)?e.default:e}var _u=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(KI),providedIn:"root"})}}return e})(),KI=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),JI=new C("");var XI=new C(""),eE=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new re,this.transitionAbortSubject=new re,this.configLoader=p(ZI),this.environmentInjector=p(we),this.urlSerializer=p(Iu),this.rootContexts=p(ds),this.location=p(Tr),this.inputBindingEnabled=p(bu,{optional:!0})!==null,this.titleStrategy=p(Bp),this.options=p(Mu,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(_u),this.createViewTransition=p(JI,{optional:!0}),this.navigationErrorHandler=p(XI,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>b(void 0),this.rootComponentType=null;let n=o=>this.events.next(new iu(o)),r=o=>this.events.next(new su(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(z(v(v({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new oe({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:$r,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ae(i=>i.id!==0),_(i=>z(v({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),ce(i=>{let s=!1,c=!1;return b(i).pipe(ce(a=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",_e.SupersededByNewNavigation),be;this.currentTransition=i,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?z(v({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=a.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&l!=="reload"){let d="";return this.events.next(new tn(a.id,this.urlSerializer.serialize(a.rawUrl),d,eu.IgnoredSameUrlNavigation)),a.resolve(!1),be}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return b(a).pipe(ce(d=>{let h=this.transitions?.getValue();return this.events.next(new Gr(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?be:Promise.resolve(d)}),UI(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),te(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=z(v({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new os(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:g,extras:m}=a,y=new Gr(d,this.urlSerializer.serialize(h),f,g);this.events.next(y);let T=Ap(this.rootComponentType).snapshot;return this.currentTransition=i=z(v({},a),{targetSnapshot:T,urlAfterRedirects:h,extras:z(v({},m),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,b(i)}else{let d="";return this.events.next(new tn(a.id,this.urlSerializer.serialize(a.extractedUrl),d,eu.IgnoredByUrlHandlingStrategy)),a.resolve(!1),be}}),te(a=>{let u=new tu(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),_(a=>(this.currentTransition=i=z(v({},a),{guards:aI(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),i)),yI(this.environmentInjector,a=>this.events.next(a)),te(a=>{if(i.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw us(this.urlSerializer,a.guardsResult);let u=new nu(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(u)}),ae(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",_e.GuardRejected),!1)),Zc(a=>{if(a.guards.canActivateChecks.length)return b(a).pipe(te(u=>{let l=new ru(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),ce(u=>{let l=!1;return b(u).pipe(BI(this.paramsInheritanceStrategy,this.environmentInjector),te({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(u,"",_e.NoDataFromResolver)}}))}),te(u=>{let l=new ou(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}))}),Zc(a=>{let u=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(te(h=>{l.component=h}),_(()=>{})));for(let h of l.children)d.push(...u(h));return d};return To(u(a.targetSnapshot.root)).pipe(Ct(null),st(1))}),Zc(()=>this.afterPreactivation()),ce(()=>{let{currentSnapshot:a,targetSnapshot:u}=i,l=this.createViewTransition?.(this.environmentInjector,a.root,u.root);return l?W(l).pipe(_(()=>i)):b(i)}),_(a=>{let u=nI(n.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=i=z(v({},a),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,i}),te(()=>{this.events.next(new Wr)}),sI(this.rootContexts,n.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),st(1),te({next:a=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new en(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{s=!0}}),Os(this.transitionAbortSubject.pipe(te(a=>{throw a}))),Vt(()=>{!s&&!c&&this.cancelNavigationTransition(i,"",_e.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),Dt(a=>{if(c=!0,kp(a))this.events.next(new mt(i.id,this.urlSerializer.serialize(i.extractedUrl),a.message,a.cancellationCode)),iI(a)?this.events.next(new Wn(a.url,a.navigationBehaviorOptions)):i.resolve(!1);else{let u=new qr(i.id,this.urlSerializer.serialize(i.extractedUrl),a,i.targetSnapshot??void 0);try{let l=je(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof Yr){let{message:d,cancellationCode:h}=us(this.urlSerializer,l);this.events.next(new mt(i.id,this.urlSerializer.serialize(i.extractedUrl),d,h)),this.events.next(new Wn(l.redirectTo,l.navigationBehaviorOptions))}else{this.events.next(u);let d=n.errorHandler(a);i.resolve(!!d)}}catch(l){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(l)}}return be}))}))}cancelNavigationTransition(n,r,o){let i=new mt(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function tE(e){return e!==$r}var nE=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(rE),providedIn:"root"})}}return e})(),Cu=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},rE=(()=>{class e extends Cu{static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=ec(e)))(o||e)}})()}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),zp=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(oE),providedIn:"root"})}}return e})(),oE=(()=>{class e extends zp{constructor(){super(...arguments),this.location=p(Tr),this.urlSerializer=p(Iu),this.options=p(Mu,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(_u),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new vt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ap(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof Gr)this.stateMemento=this.createStateMemento();else if(n instanceof tn)this.rawUrlTree=r.initialUrl;else if(n instanceof os){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??o,r)}}else n instanceof Wr?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof mt&&(n.code===_e.GuardRejected||n.code===_e.NoDataFromResolver)?this.restoreHistory(r):n instanceof qr?this.restoreHistory(r,!0):n instanceof en&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=n instanceof vt?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let i=this.browserPageId,s=v(v({},r.extras.state),this.generateNgRouterState(r.id,i));this.location.replaceState(o,"",s)}else{let i=v(v({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",i)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.currentUrlTree===n.finalUrl&&i===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=ec(e)))(o||e)}})()}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),jr=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(jr||{});function iE(e,t){e.events.pipe(ae(n=>n instanceof en||n instanceof mt||n instanceof qr||n instanceof tn),_(n=>n instanceof en||n instanceof tn?jr.COMPLETE:(n instanceof mt?n.code===_e.Redirect||n.code===_e.SupersededByNewNavigation:!1)?jr.REDIRECTING:jr.FAILED),ae(n=>n!==jr.REDIRECTING),st(1)).subscribe(()=>{t()})}function sE(e){throw e}var aE={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},cE={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Gp=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=p(_i),this.stateManager=p(zp),this.options=p(Mu,{optional:!0})||{},this.pendingTasks=p(lt),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(eE),this.urlSerializer=p(Iu),this.location=p(Tr),this.urlHandlingStrategy=p(_u),this._events=new re,this.errorHandler=this.options.errorHandler||sE,this.navigated=!1,this.routeReuseStrategy=p(nE),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(Tu,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(bu,{optional:!0}),this.eventsSubscription=new Y,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof mt&&r.code!==_e.Redirect&&r.code!==_e.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof en)this.navigated=!0;else if(r instanceof Wn){let s=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),a=v({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||tE(o.source)},s);this.scheduleNavigation(c,$r,null,a,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}lE(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),$r,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){let i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let a=v({},o);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(i.state=a)}let c=this.parseUrl(n);this.scheduleNavigation(c,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Su),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:c,preserveFragment:a}=r,u=a?this.currentUrlTree.fragment:s,l=null;switch(c??this.options.defaultQueryParamsHandling){case"merge":l=v(v({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let h=o?o.snapshot:this.routerState.snapshot.root;d=Tp(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return _p(d,n,l,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Hr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,$r,null,r)}navigate(n,r={skipLocationChange:!1}){return uE(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=v({},aE):r===!1?o=v({},cE):o=r,Hr(n))return lp(this.currentUrlTree,n,o);let i=this.parseUrl(n);return lp(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let c,a,u;s?(c=s.resolve,a=s.reject,u=s.promise):u=new Promise((d,h)=>{c=d,a=h});let l=this.pendingTasks.add();return iE(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:c,reject:a,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function uE(e){for(let t=0;tn.\u0275providers)])}function fE(e){return e.routerState.root}function hE(){let e=p(Qe);return t=>{let n=e.get(Nt);if(t!==n.components[0])return;let r=e.get(Gp),o=e.get(pE);e.get(gE)===1&&r.initialNavigation(),e.get(mE,null,N.Optional)?.setUpPreloading(),e.get(dE,null,N.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var pE=new C("",{factory:()=>new re}),gE=new C("",{providedIn:"root",factory:()=>1});var mE=new C("");var Wp=[];var Zp={providers:[Eh({eventCoalescing:!0}),qp(Wp),Xh()]};var Yp=(()=>{class e{constructor(n){this.http=n}quitTt(){this.http.get("http://localhost:8888/quit").subscribe(()=>{window.close()})}static{this.\u0275fac=function(r){return new(r||e)(I(Rr))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Qp=(()=>{class e{constructor(n){this.ttService=n,this.selectedDate=new ie}handleChange(n){this.selectedDate.emit(n.target.valueAsDate||new Date)}handleQuit(){this.ttService.quitTt()}static{this.\u0275fac=function(r){return new(r||e)(pe(Yp))}}static{this.\u0275cmp=Je({type:e,selectors:[["app-navbar"]],outputs:{selectedDate:"selectedDate"},standalone:!0,features:[tt],decls:4,vars:0,consts:[["type","date",3,"change"],["id","quit-button",3,"click"]],template:function(r,o){r&1&&(Ce(0,"nav")(1,"input",0),et("change",function(s){return o.handleChange(s)}),ge(),Ce(2,"button",1),et("click",function(){return o.handleQuit()}),kn(3,"Quit"),ge()())},styles:["nav[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;gap:3rem;height:5vh;padding:5px}input[type=date][_ngcontent-%COMP%]{background-color:#0080ff;padding:15px;font-family:Roboto Mono,monospace;color:#fff;font-size:18px;border:none;outline:none;border-radius:5px}#quit-button[_ngcontent-%COMP%]{padding:13px 40px;height:45px;border-radius:10px;border:0;background-color:#ff3856;letter-spacing:1.5px;font-size:15px;transition:all .3s ease;box-shadow:#c92e46 0 10px;color:#fff;cursor:pointer}#quit-button[_ngcontent-%COMP%]:hover{box-shadow:#c92e46 0 7px}#quit-button[_ngcontent-%COMP%]:active{background-color:#ff3856;box-shadow:#c92e46 0 0;transform:translateY(5px);transition:.2s}"]})}}return e})();function xu(e,t){!t?.injector&&Ba(xu);let n=t?.injector??p(Qe),r=new nr(1),o=Mc(()=>{let i;try{i=e()}catch(s){jn(()=>r.error(s));return}jn(()=>r.next(i))},{injector:n,manualCleanup:!0});return n.get(Cr).onDestroy(()=>{o.destroy(),r.complete()}),r.asObservable()}var yE=e=>({height:e});function DE(e,t){if(e&1&&(Ce(0,"div",3)(1,"span",4),kn(2),Sr(3,"date"),ge()()),e&2){let n,r=Fn();Xe(2),Si(wc(3,1,(n=r.timeSlot())==null?null:n.End,"shortTime"))}}var Kp=(()=>{class e{constructor(){this.timeSlot=Ir(),this.scroll=Ir(1),this.lastElement=!1,this.heightPx=bc(()=>{let n=this.timeSlot();if(!n)return 40;let r=new Date(n.Start),i=(new Date(n.End).getTime()-r.getTime())/(1e3*60);return Math.max(40,i*this.scroll())}),this.last=gn}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Je({type:e,selectors:[["app-time-slot"]],inputs:{timeSlot:[1,"timeSlot"],scroll:[1,"scroll"],lastElement:"lastElement"},standalone:!0,features:[tt],decls:12,vars:9,consts:[[1,"time-slot",3,"ngStyle"],[1,"time-slot-divider"],[1,"line"],[1,"endpoint"],[1,"mr","d"],[1,"v-line"],[1,"content-container"],[1,"content"]],template:function(r,o){if(r&1&&(Ce(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4),kn(5),Sr(6,"date"),ge()(),ft(7,"div",5),Mr(8,DE,4,4,"div",3),ge(),Ce(9,"div",6)(10,"div",7),kn(11),ge()()()()),r&2){let i,s;Yt("ngStyle",ph(7,yE,o.heightPx()+"px")),Xe(5),Si(wc(6,4,(i=o.timeSlot())==null?null:i.Start,"shortTime")),Xe(3),Mi(o.lastElement?8:-1),Xe(3),Ti(" ",(s=o.timeSlot())==null?null:s.Text," ")}},dependencies:[jh,Uh],styles:[".time-slot[_ngcontent-%COMP%]{width:20rem}.time-slot[_ngcontent-%COMP%] .time-slot-divider[_ngcontent-%COMP%]{--endpoint-width: 20px;--endpoint-height: 10px;display:flex;height:100%}.time-slot[_ngcontent-%COMP%] .time-slot-divider[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%]{display:flex;height:100%;width:calc(100% - var(--endpoint-width));align-items:end}.time-slot[_ngcontent-%COMP%] .time-slot-divider[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:3px;text-align:center;height:calc(100% - var(--endpoint-height));width:100%;background-color:#3c9fc887;overflow:hidden}.time-slot[_ngcontent-%COMP%] .time-slot-divider[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:20px;align-items:center}.time-slot[_ngcontent-%COMP%] .time-slot-divider[_ngcontent-%COMP%] .line[_ngcontent-%COMP%] .v-line[_ngcontent-%COMP%]{height:calc(100% - var(--endpoint-height) * 1);width:3px;background-color:#575757bf;flex-grow:0;flex-shrink:0}.time-slot[_ngcontent-%COMP%] .time-slot-divider[_ngcontent-%COMP%] .line[_ngcontent-%COMP%] .endpoint[_ngcontent-%COMP%]{height:var(--endpoint-height);width:var(--endpoint-width);background-color:#000;flex-grow:0;flex-shrink:0}.d[_ngcontent-%COMP%]{display:block;width:7rem}.mr[_ngcontent-%COMP%]{position:relative;right:7rem}"]})}}return e})();var Jp=(()=>{class e{constructor(n){this.http=n}timeSlotsForDay$(n){return this.http.get(`http://localhost:8888/tt/${n.getTime()}`)}static{this.\u0275fac=function(r){return new(r||e)(I(Rr))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var CE=(e,t)=>t.ID;function IE(e,t){if(e&1&&ft(0,"app-time-slot",3),e&2){let n=t.$implicit,r=t.$index,o=t.$count,i=Fn(2);Yt("timeSlot",n)("scroll",i.scroll)("lastElement",r===o-1)}}function EE(e,t){if(e&1){let n=lh();Ce(0,"div",1),et("scroll",function(o){zd(n);let i=Fn();return Gd(i.handleScroll(o))}),Ce(1,"div",2),ch(2,IE,1,3,"app-time-slot",3,CE),ge()()}if(e&2){Fn();let n=hh(0);Xe(2),uh(n)}}var Xp=(()=>{class e{onWheel(n){n.deltaY>0?this.scroll-=1:n.deltaY<0&&(this.scroll+=1)}constructor(n){this.timeSlotService=n,this.scroll=1,this.date=Ir(),this.timeSlots$=xu(this.date).pipe(ae(r=>r!==void 0),ce(r=>this.timeSlotService.timeSlotsForDay$(r)))}handleScroll(n){console.log(n)}static{this.\u0275fac=function(r){return new(r||e)(pe(Jp))}}static{this.\u0275cmp=Je({type:e,selectors:[["app-timeline"]],hostBindings:function(r,o){r&1&&et("wheel",function(s){return o.onWheel(s)},!1,Mf)},inputs:{date:[1,"date"]},standalone:!0,features:[tt],decls:3,vars:4,consts:[[1,"timeline-container"],[1,"timeline-container",3,"scroll"],[1,"time-slot-container"],[3,"timeSlot","scroll","lastElement"]],template:function(r,o){if(r&1&&(Dc(0),Sr(1,"async"),Mr(2,EE,4,0,"div",0)),r&2){let i=fh(vh(1,1,o.timeSlots$));Xe(2),Mi(i?2:-1)}},dependencies:[$h,Kp],styles:[".timeline-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;margin-top:3rem;padding:1rem;border-radius:15px;max-height:95vh}.timeline-container[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{height:100%;width:2px;background-color:#000;border-radius:1px}"]})}}return e})();var eg=(()=>{class e{constructor(){this.title="angular-ui",this.selectedDate=new Date}handleDateSelected(n){this.selectedDate=n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Je({type:e,selectors:[["app-root"]],standalone:!0,features:[tt],decls:3,vars:1,consts:[[1,"home-container"],[3,"selectedDate"],[3,"date"]],template:function(r,o){r&1&&(Ce(0,"div",0)(1,"app-navbar",1),et("selectedDate",function(s){return o.handleDateSelected(s)}),ge(),ft(2,"app-timeline",2),ge()),r&2&&(Xe(2),Yt("date",o.selectedDate))},dependencies:[Qp,Xp],styles:[".home-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%}"]})}}return e})();cp(eg,Zp).catch(e=>console.error(e));