diff --git a/404.html b/404.html index cb211ee..a50e309 100644 --- a/404.html +++ b/404.html @@ -11,5 +11,5 @@
Loading ...
- + diff --git a/chunk-DQUMYO3P.js b/chunk-AQK6WKX2.js similarity index 84% rename from chunk-DQUMYO3P.js rename to chunk-AQK6WKX2.js index 2715c88..7f54fb8 100644 --- a/chunk-DQUMYO3P.js +++ b/chunk-AQK6WKX2.js @@ -1 +1 @@ -import{d as e,p as i}from"./chunk-O2QHHITW.js";var a=class t{_isAuthenticated$=new e(!0);isAuthenticated$=this._isAuthenticated$.asObservable();get isAuthenticated(){return this._isAuthenticated$.value}login(){this._isAuthenticated$.next(!0)}logout(){this._isAuthenticated$.next(!1)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=i({token:t,factory:t.\u0275fac,providedIn:"root"})};export{a}; +import{d as e,p as i}from"./chunk-JALBVKIC.js";var a=class t{_isAuthenticated$=new e(!0);isAuthenticated$=this._isAuthenticated$.asObservable();get isAuthenticated(){return this._isAuthenticated$.value}login(){this._isAuthenticated$.next(!0)}logout(){this._isAuthenticated$.next(!1)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=i({token:t,factory:t.\u0275fac,providedIn:"root"})};export{a}; diff --git a/chunk-JALBVKIC.js b/chunk-JALBVKIC.js new file mode 100644 index 0000000..9fc611c --- /dev/null +++ b/chunk-JALBVKIC.js @@ -0,0 +1,8 @@ +var nm=Object.defineProperty,rm=Object.defineProperties;var om=Object.getOwnPropertyDescriptors;var bl=Object.getOwnPropertySymbols;var im=Object.prototype.hasOwnProperty,sm=Object.prototype.propertyIsEnumerable;var Ml=(e,t,n)=>t in e?nm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||={})im.call(t,n)&&Ml(e,n,t[n]);if(bl)for(var n of bl(t))sm.call(t,n)&&Ml(e,n,t[n]);return e},G=(e,t)=>rm(e,om(t));var so=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(u){o(u)}},s=c=>{try{a(n.throw(c))}catch(u){o(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});function Sl(e,t){return Object.is(e,t)}var te=null,ao=!1,co=1,bt=Symbol("SIGNAL");function k(e){let t=te;return te=e,t}function Tl(){return te}var fr={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 zs(e){if(ao)throw new Error("");if(te===null)return;te.consumerOnSignalRead(e);let t=te.nextProducerIndex++;if(ho(te),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function qs(e){ho(e);for(let t=0;t0}function ho(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Rl(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Ol(e){return e.producerNode!==void 0}function Pl(e){let t=Object.create(um);t.computation=e;let n=()=>{if(_l(t),zs(t),t.value===uo)throw t.error;return t.value};return n[bt]=t,n}var Bs=Symbol("UNSET"),Hs=Symbol("COMPUTING"),uo=Symbol("ERRORED"),um=G(m({},fr),{value:Bs,dirty:!0,error:null,equal:Sl,producerMustRecompute(e){return e.value===Bs||e.value===Hs},producerRecomputeValue(e){if(e.value===Hs)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Hs;let n=lo(e),r;try{r=e.computation()}catch(o){r=uo,e.error=o}finally{Gs(e,n)}if(t!==Bs&&t!==uo&&r!==uo&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function lm(){throw new Error}var kl=lm;function Fl(){kl()}function Ll(e){kl=e}var dm=null;function jl(e){let t=Object.create(Ul);t.value=e;let n=()=>(zs(t),t.value);return n[bt]=t,n}function Zs(e,t){Nl()||Fl(),e.equal(e.value,t)||(e.value=t,fm(e))}function Vl(e,t){Nl()||Fl(),Zs(e,t(e.value))}var Ul=G(m({},fr),{equal:Sl,value:void 0});function fm(e){e.version++,am(),xl(e),dm?.()}function M(e){return typeof e=="function"}function yn(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 po=yn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function qt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Z=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 po?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{$l(i)}catch(s){t=t??[],s instanceof po?t=[...t,...s.errors]:t.push(s)}}if(t)throw new po(t)}}add(t){var n;if(t&&t!==this)if(this.closed)$l(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&qt(n,t)}remove(t){let{_finalizers:n}=this;n&&qt(n,t),t instanceof e&&t._removeParent(this)}};Z.EMPTY=(()=>{let e=new Z;return e.closed=!0,e})();var Ys=Z.EMPTY;function go(e){return e instanceof Z||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function $l(e){M(e)?e():e.unsubscribe()}var Ve={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Dn={setTimeout(e,t,...n){let{delegate:r}=Dn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Dn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function mo(e){Dn.setTimeout(()=>{let{onUnhandledError:t}=Ve;if(t)t(e);else throw e})}function hr(){}var Bl=Qs("C",void 0,void 0);function Hl(e){return Qs("E",void 0,e)}function zl(e){return Qs("N",e,void 0)}function Qs(e,t,n){return{kind:e,value:t,error:n}}var Wt=null;function wn(e){if(Ve.useDeprecatedSynchronousErrorHandling){let t=!Wt;if(t&&(Wt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Wt;if(Wt=null,n)throw r}}else e()}function Gl(e){Ve.useDeprecatedSynchronousErrorHandling&&Wt&&(Wt.errorThrown=!0,Wt.error=e)}var Zt=class extends Z{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,go(t)&&t.add(this)):this.destination=gm}static create(t,n,r){return new In(t,n,r)}next(t){this.isStopped?Js(zl(t),this):this._next(t)}error(t){this.isStopped?Js(Hl(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Js(Bl,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()}}},hm=Function.prototype.bind;function Ks(e,t){return hm.call(e,t)}var Xs=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){vo(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){vo(r)}else vo(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){vo(n)}}},In=class extends Zt{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&&Ve.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Ks(t.next,i),error:t.error&&Ks(t.error,i),complete:t.complete&&Ks(t.complete,i)}):o=t}this.destination=new Xs(o)}};function vo(e){Ve.useDeprecatedSynchronousErrorHandling?Gl(e):mo(e)}function pm(e){throw e}function Js(e,t){let{onStoppedNotification:n}=Ve;n&&Dn.setTimeout(()=>n(e,t))}var gm={closed:!0,next:hr,error:pm,complete:hr};var En=typeof Symbol=="function"&&Symbol.observable||"@@observable";function he(e){return e}function ea(...e){return ta(e)}function ta(e){return e.length===0?he:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var P=(()=>{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=vm(n)?n:new In(n,r,o);return wn(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=ql(r),new r((o,i)=>{let s=new In({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[En](){return this}pipe(...n){return ta(n)(this)}toPromise(n){return n=ql(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 ql(e){var t;return(t=e??Ve.Promise)!==null&&t!==void 0?t:Promise}function mm(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function vm(e){return e&&e instanceof Zt||mm(e)&&go(e)}function na(e){return M(e?.lift)}function O(e){return t=>{if(na(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function N(e,t,n,r,o){return new ra(e,t,n,r,o)}var ra=class extends Zt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function Cn(){return O((e,t)=>{let n=null;e._refCount++;let r=N(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var bn=class extends P{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,na(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 Z;let n=this.getSubject();t.add(this.source.subscribe(N(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Z.EMPTY)}return t}refCount(){return Cn()(this)}};var Wl=yn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ce=(()=>{class e extends P{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new yo(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Wl}next(n){wn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){wn(()=>{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(){wn(()=>{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 Z(()=>{this.currentObservers=null,qt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new P;return n.source=this,n}}return e.create=(t,n)=>new yo(t,n),e})(),yo=class extends ce{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 se=class extends ce{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 oa={now(){return(oa.delegate||Date).now()},delegate:void 0};var Do=class extends Z{constructor(t,n){super()}schedule(t,n=0){return this}};var pr={setInterval(e,t,...n){let{delegate:r}=pr;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=pr;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var wo=class extends Do{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return pr.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&pr.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,qt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Mn=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Mn.now=oa.now;var Io=class extends Mn{constructor(t,n=Mn.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Zl=new Io(wo);var be=new P(e=>e.complete());function Yl(e){return e&&M(e.schedule)}function Ql(e){return e[e.length-1]}function Eo(e){return M(Ql(e))?e.pop():void 0}function Mt(e){return Yl(Ql(e))?e.pop():void 0}function Jl(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function Kl(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 Yt(e){return this instanceof Yt?(this.v=e,this):new Yt(e)}function Xl(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){r[f]&&(o[f]=function(v){return new Promise(function(E,x){i.push([f,v,E,x])>1||c(f,v)})},g&&(o[f]=g(o[f])))}function c(f,g){try{u(r[f](g))}catch(v){h(i[0][3],v)}}function u(f){f.value instanceof Yt?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,g){f(g),i.shift(),i.length&&c(i[0][0],i[0][1])}}function ed(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 Kl=="function"?Kl(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var Co=e=>e&&typeof e.length=="number"&&typeof e!="function";function bo(e){return M(e?.then)}function Mo(e){return M(e[En])}function So(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function To(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 ym(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var _o=ym();function xo(e){return M(e?.[_o])}function No(e){return Xl(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Yt(n.read());if(o)return yield Yt(void 0);yield yield Yt(r)}}finally{n.releaseLock()}})}function Ao(e){return M(e?.getReader)}function K(e){if(e instanceof P)return e;if(e!=null){if(Mo(e))return Dm(e);if(Co(e))return wm(e);if(bo(e))return Im(e);if(So(e))return td(e);if(xo(e))return Em(e);if(Ao(e))return Cm(e)}throw To(e)}function Dm(e){return new P(t=>{let n=e[En]();if(M(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function wm(e){return new P(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,mo)})}function Em(e){return new P(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function td(e){return new P(t=>{bm(e,t).catch(n=>t.error(n))})}function Cm(e){return td(No(e))}function bm(e,t){var n,r,o,i;return Jl(this,void 0,void 0,function*(){try{for(n=ed(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 Ee(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 Ro(e,t=0){return O((n,r)=>{n.subscribe(N(r,o=>Ee(r,e,()=>r.next(o),t),()=>Ee(r,e,()=>r.complete(),t),o=>Ee(r,e,()=>r.error(o),t)))})}function Oo(e,t=0){return O((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function nd(e,t){return K(e).pipe(Oo(t),Ro(t))}function rd(e,t){return K(e).pipe(Oo(t),Ro(t))}function od(e,t){return new P(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function id(e,t){return new P(n=>{let r;return Ee(n,t,()=>{r=e[_o](),Ee(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 Po(e,t){if(!e)throw new Error("Iterable cannot be null");return new P(n=>{Ee(n,t,()=>{let r=e[Symbol.asyncIterator]();Ee(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function sd(e,t){return Po(No(e),t)}function ad(e,t){if(e!=null){if(Mo(e))return nd(e,t);if(Co(e))return od(e,t);if(bo(e))return rd(e,t);if(So(e))return Po(e,t);if(xo(e))return id(e,t);if(Ao(e))return sd(e,t)}throw To(e)}function W(e,t){return t?ad(e,t):K(e)}function C(...e){let t=Mt(e);return W(e,t)}function Sn(e,t){let n=M(e)?e:()=>e,r=o=>o.error(n());return new P(t?o=>t.schedule(r,0,o):r)}function ia(e){return!!e&&(e instanceof P||M(e.lift)&&M(e.subscribe))}var rt=yn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function S(e,t){return O((n,r)=>{let o=0;n.subscribe(N(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Mm}=Array;function Sm(e,t){return Mm(t)?e(...t):e(t)}function ko(e){return S(t=>Sm(e,t))}var{isArray:Tm}=Array,{getPrototypeOf:_m,prototype:xm,keys:Nm}=Object;function Fo(e){if(e.length===1){let t=e[0];if(Tm(t))return{args:t,keys:null};if(Am(t)){let n=Nm(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Am(e){return e&&typeof e=="object"&&_m(e)===xm}function Lo(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function gr(...e){let t=Mt(e),n=Eo(e),{args:r,keys:o}=Fo(e);if(r.length===0)return W([],t);let i=new P(Rm(r,t,o?s=>Lo(o,s):he));return n?i.pipe(ko(n)):i}function Rm(e,t,n=he){return r=>{cd(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c{let u=W(e[c],t),l=!1;u.subscribe(N(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function cd(e,t,n){e?Ee(n,e,t):t()}function ud(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&t.complete()},f=v=>u{i&&t.next(v),u++;let E=!1;K(n(v,l++)).subscribe(N(t,x=>{o?.(x),i?f(x):t.next(x)},()=>{E=!0},void 0,()=>{if(E)try{for(u--;c.length&&ug(x)):g(x)}h()}catch(x){t.error(x)}}))};return e.subscribe(N(t,f,()=>{d=!0,h()})),()=>{a?.()}}function J(e,t,n=1/0){return M(t)?J((r,o)=>S((i,s)=>t(r,i,o,s))(K(e(r,o))),n):(typeof t=="number"&&(n=t),O((r,o)=>ud(r,o,e,n)))}function St(e=1/0){return J(he,e)}function ld(){return St(1)}function Tn(...e){return ld()(W(e,Mt(e)))}function jo(e){return new P(t=>{K(e()).subscribe(t)})}function Om(...e){let t=Eo(e),{args:n,keys:r}=Fo(e),o=new P(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?Lo(r,a):a),i.complete())}))}});return t?o.pipe(ko(t)):o}function pe(e,t){return O((n,r)=>{let o=0;n.subscribe(N(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Ne(e){return O((t,n)=>{let r=null,o=!1,i;r=t.subscribe(N(n,void 0,void 0,s=>{i=K(e(s,Ne(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function dd(e,t,n,r,o){return(i,s)=>{let a=n,c=t,u=0;i.subscribe(N(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function ot(e,t){return M(t)?J(e,t,1):J(e,1)}function Pm(e,t=Zl){return O((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u)}};function c(){let u=s+e,l=t.now();if(l{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Tt(e){return O((t,n)=>{let r=!1;t.subscribe(N(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function it(e){return e<=0?()=>be:O((t,n)=>{let r=0;t.subscribe(N(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function sa(e){return S(()=>e)}function km(e,t=he){return e=e??Fm,O((n,r)=>{let o,i=!0;n.subscribe(N(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function Fm(e,t){return e===t}function Vo(e=Lm){return O((t,n)=>{let r=!1;t.subscribe(N(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Lm(){return new rt}function _t(e){return O((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function We(e,t){let n=arguments.length>=2;return r=>r.pipe(e?pe((o,i)=>e(o,i,r)):he,it(1),n?Tt(t):Vo(()=>new rt))}function _n(e){return e<=0?()=>be:O((t,n)=>{let r=[];t.subscribe(N(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function aa(e,t){let n=arguments.length>=2;return r=>r.pipe(e?pe((o,i)=>e(o,i,r)):he,_n(1),n?Tt(t):Vo(()=>new rt))}function ca(e,t){return O(dd(e,t,arguments.length>=2,!0))}function ua(...e){let t=Mt(e);return O((n,r)=>{(t?Tn(e,n,t):Tn(e,n)).subscribe(r)})}function ge(e,t){return O((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(N(r,c=>{o?.unsubscribe();let u=0,l=i++;K(e(c,l)).subscribe(o=N(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Uo(e){return O((t,n)=>{K(e).subscribe(N(n,()=>n.complete(),hr)),!n.closed&&t.subscribe(n)})}function ne(e,t,n){let r=M(e)||t||n?{next:e,error:t,complete:n}:e;return r?O((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(N(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):he}var Jd="https://g.co/ng/security#xss",D=class extends Error{constructor(t,n){super(Si(t,n)),this.code=t}};function Si(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function Mr(e){return{toString:e}.toString()}var $o="__parameters__";function jm(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Xd(e,t,n){return Mr(()=>{let r=jm(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty($o)?c[$o]:Object.defineProperty(c,$o,{value:[]})[$o];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var me=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 Vm(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ye(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(ye).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 fd(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Um=B({__forward_ref__:B});function ef(e){return e.__forward_ref__=ef,e.toString=function(){return ye(this())},e}function ve(e){return tf(e)?e():e}function tf(e){return typeof e=="function"&&e.hasOwnProperty(Um)&&e.__forward_ref__===ef}function y(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ut(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ti(e){return hd(e,rf)||hd(e,of)}function nf(e){return Ti(e)!==null}function hd(e,t){return e.hasOwnProperty(t)?e[t]:null}function $m(e){let t=e&&(e[rf]||e[of]);return t||null}function pd(e){return e&&(e.hasOwnProperty(gd)||e.hasOwnProperty(Bm))?e[gd]:null}var rf=B({\u0275prov:B}),gd=B({\u0275inj:B}),of=B({ngInjectableDef:B}),Bm=B({ngInjectorDef:B}),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=y({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function sf(e){return e&&!!e.\u0275providers}var Hm=B({\u0275cmp:B}),zm=B({\u0275dir:B}),Gm=B({\u0275pipe:B}),qm=B({\u0275mod:B}),Jo=B({\u0275fac:B}),vr=B({__NG_ELEMENT_ID__:B}),md=B({__NG_ENV_ID__:B});function _i(e){return typeof e=="string"?e:e==null?"":String(e)}function Wm(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():_i(e)}function Zm(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new D(-200,e)}function vc(e,t){throw new D(-201,!1)}var A=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}(A||{}),ba;function af(){return ba}function Ce(e){let t=ba;return ba=e,t}function cf(e,t,n){let r=Ti(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&A.Optional)return null;if(t!==void 0)return t;vc(e,"Injector")}var Ym={},Dr=Ym,Ma="__NG_DI_FLAG__",Xo="ngTempTokenPath",Qm="ngTokenPath",Km=/\n/gm,Jm="\u0275",vd="__source",On;function Xm(){return On}function xt(e){let t=On;return On=e,t}function ev(e,t=A.Default){if(On===void 0)throw new D(-203,!1);return On===null?cf(e,void 0,t):On.get(e,t&A.Optional?null:void 0,t)}function w(e,t=A.Default){return(af()||ev)(ve(e),t)}function p(e,t=A.Default){return w(e,xi(t))}function xi(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Sa(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):ye(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Km,` + `)}`}var Ni=uf(Xd("Optional"),8);var yc=uf(Xd("SkipSelf"),4);function Jt(e,t){let n=e.hasOwnProperty(Jo);return n?e[Jo]:null}function ov(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?Dc(n,t):t(n))}function lf(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ei(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function sv(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function av(e,t,n){let r=Sr(e,t);return r>=0?e[r|1]=n:(r=~r,sv(e,r,t,n)),r}function la(e,t){let n=Sr(e,t);if(n>=0)return e[n|1]}function Sr(e,t){return cv(e,t,1)}function cv(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(Ue(r))return!1;s=!0}}}}return Ue(r)||s}function Ue(e){return(e&1)===0}function pv(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Ue(s)&&(t+=Dd(i,o),o=""),r=s,i=i||!Ue(r);n++}return o!==""&&(t+=Dd(i,o)),t}function Dv(e){return e.map(yv).join(",")}function wv(e){let t=[],n=[],r=1,o=2;for(;r{let t=If(e),n=G(m({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===hf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Qe.Emulated,styles:e.styles||Ae,_:null,schemas:e.schemas||null,tView:null,id:""});Ef(n);let r=e.dependencies;return n.directiveDefs=Id(r,!1),n.pipeDefs=Id(r,!0),n.id=Cv(n),n})}function Iv(e){return Ot(e)||vf(e)}function Ev(e){return e!==null}function lt(e){return Mr(()=>({type:e.type,bootstrap:e.bootstrap||Ae,declarations:e.declarations||Ae,imports:e.imports||Ae,exports:e.exports||Ae,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function wd(e,t){if(e==null)return kn;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Rt.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Rt.None?[r,a]:r,t[i]=s):n[i]=r}return n}function ln(e){return Mr(()=>{let t=If(e);return Ef(t),t})}function Ic(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 Ot(e){return e[Hm]||null}function vf(e){return e[zm]||null}function yf(e){return e[Gm]||null}function Df(e){let t=Ot(e)||vf(e)||yf(e);return t!==null?t.standalone:!1}function wf(e,t){let n=e[qm]||null;if(!n&&t===!0)throw new Error(`Type ${ye(e)} does not have '\u0275mod' property.`);return n}function If(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||kn,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Ae,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:wd(e.inputs,t),outputs:wd(e.outputs),debugInfo:null}}function Ef(e){e.features?.forEach(t=>t(e))}function Id(e,t){if(!e)return null;let n=t?yf:Iv;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Ev)}function Cv(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 Ai(e){return{\u0275providers:e}}function bv(...e){return{\u0275providers:Cf(!0,e),\u0275fromNgModule:!0}}function Cf(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Dc(t,s=>{let a=s;_a(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&bf(o,i),n}function bf(e,t){for(let n=0;n{t(i,r)})}}function _a(e,t,n,r){if(e=ve(e),!e)return!1;let o=null,i=pd(e),s=!i&&Ot(e);if(!i&&!s){let c=e.ngModule;if(i=pd(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)_a(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{Dc(i.imports,l=>{_a(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&bf(u,t)}if(!a){let u=Jt(o)||(()=>new o);t({provide:o,useFactory:u,deps:Ae},o),t({provide:ff,useValue:o,multi:!0},o),t({provide:Fn,useValue:()=>w(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Ec(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Ec(e,t){for(let n of e)sf(n)&&(n=n.\u0275providers),Array.isArray(n)?Ec(n,t):t(n)}var Mv=B({provide:String,useValue:B});function Mf(e){return e!==null&&typeof e=="object"&&Mv in e}function Sv(e){return!!(e&&e.useExisting)}function Tv(e){return!!(e&&e.useFactory)}function Ln(e){return typeof e=="function"}function _v(e){return!!e.useClass}var Ri=new I(""),Wo={},xv={},da;function Cc(){return da===void 0&&(da=new ti),da}var De=class{},Ir=class extends De{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,Na(t,s=>this.processProvider(s)),this.records.set(df,xn(void 0,this)),o.has("environment")&&this.records.set(De,xn(void 0,this));let i=this.records.get(Ri);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ff,Ae,A.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=k(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(),k(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=xt(this),r=Ce(void 0),o;try{return t()}finally{xt(n),Ce(r)}}get(t,n=Dr,r=A.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(md))return t[md](this);r=xi(r);let o,i=xt(this),s=Ce(void 0);try{if(!(r&A.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=Pv(t)&&Ti(t);u&&this.injectableDefInScope(u)?c=xn(xa(t),Wo):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&A.Self?Cc():this.parent;return n=r&A.Optional&&n===Dr?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Xo]=a[Xo]||[]).unshift(ye(t)),i)throw a;return nv(a,t,"R3InjectorError",this.source)}else throw a}finally{Ce(s),xt(i)}}resolveInjectorInitializers(){let t=k(null),n=xt(this),r=Ce(void 0),o;try{let i=this.get(Fn,Ae,A.Self);for(let s of i)s()}finally{xt(n),Ce(r),k(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(ye(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new D(205,!1)}processProvider(t){t=ve(t);let n=Ln(t)?t:ve(t&&t.provide),r=Av(t);if(!Ln(t)&&t.multi===!0){let o=this.records.get(n);o||(o=xn(void 0,Wo,!0),o.factory=()=>Sa(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=k(null);try{return n.value===Wo&&(n.value=xv,n.value=n.factory()),typeof n.value=="object"&&n.value&&Ov(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{k(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ve(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function xa(e){let t=Ti(e),n=t!==null?t.factory:Jt(e);if(n!==null)return n;if(e instanceof I)throw new D(204,!1);if(e instanceof Function)return Nv(e);throw new D(204,!1)}function Nv(e){if(e.length>0)throw new D(204,!1);let n=$m(e);return n!==null?()=>n.factory(e):()=>new e}function Av(e){if(Mf(e))return xn(void 0,e.useValue);{let t=Sf(e);return xn(t,Wo)}}function Sf(e,t,n){let r;if(Ln(e)){let o=ve(e);return Jt(o)||xa(o)}else if(Mf(e))r=()=>ve(e.useValue);else if(Tv(e))r=()=>e.useFactory(...Sa(e.deps||[]));else if(Sv(e))r=()=>w(ve(e.useExisting));else{let o=ve(e&&(e.useClass||e.provide));if(Rv(e))r=()=>new o(...Sa(e.deps));else return Jt(o)||xa(o)}return r}function xn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Rv(e){return!!e.deps}function Ov(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Pv(e){return typeof e=="function"||typeof e=="object"&&e instanceof I}function Na(e,t){for(let n of e)Array.isArray(n)?Na(n,t):n&&sf(n)?Na(n.\u0275providers,t):t(n)}function Pe(e,t){e instanceof Ir&&e.assertNotDestroyed();let n,r=xt(e),o=Ce(void 0);try{return t()}finally{xt(r),Ce(o)}}function Tf(){return af()!==void 0||Xm()!=null}function kv(e){if(!Tf())throw new D(-203,!1)}function Fv(e){let t=me.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Lv(e){return typeof e=="function"}var dt=0,T=1,b=2,ue=3,$e=4,He=5,ni=6,ri=7,Be=8,jn=9,Ke=10,re=11,Er=12,Ed=13,qn=14,Je=15,Xt=16,Nn=17,st=18,Oi=19,_f=20,Nt=21,fa=22,Re=23,Se=25,xf=1;var en=7,oi=8,Vn=9,Me=10,ii=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(ii||{});function At(e){return Array.isArray(e)&&typeof e[xf]=="object"}function ft(e){return Array.isArray(e)&&e[xf]===!0}function bc(e){return(e.flags&4)!==0}function Pi(e){return e.componentOffset>-1}function ki(e){return(e.flags&1)===1}function Pt(e){return!!e.template}function Aa(e){return(e[b]&512)!==0}var Ra=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Nf(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Wn(){return Af}function Af(e){return e.type.prototype.ngOnChanges&&(e.setInput=Vv),jv}Wn.ngInherit=!0;function jv(){let e=Of(this),t=e?.current;if(t){let n=e.previous;if(n===kn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Vv(e,t,n,r,o){let i=this.declaredInputs[r],s=Of(e)||Uv(e,{previous:kn,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Ra(u&&u.currentValue,n,c===kn),Nf(e,t,o,n)}var Rf="__ngSimpleChanges__";function Of(e){return e[Rf]||null}function Uv(e,t){return e[Rf]=t}var Cd=null;var Ze=function(e,t,n){Cd?.(e,t,n)},$v="svg",Bv="math";function Xe(e){for(;Array.isArray(e);)e=e[dt];return e}function Pf(e,t){return Xe(t[e])}function ke(e,t){return Xe(t[e.index])}function kf(e,t){return e.data[t]}function Mc(e,t){return e[t]}function Lt(e,t){let n=t[e];return At(n)?n:n[dt]}function Hv(e){return(e[b]&4)===4}function Sc(e){return(e[b]&128)===128}function zv(e){return ft(e[ue])}function Un(e,t){return t==null?null:e[t]}function Ff(e){e[Nn]=0}function Lf(e){e[b]&1024||(e[b]|=1024,Sc(e)&&Li(e))}function Gv(e,t){for(;e>0;)t=t[qn],e--;return t}function Fi(e){return!!(e[b]&9216||e[Re]?.dirty)}function Oa(e){e[Ke].changeDetectionScheduler?.notify(8),e[b]&64&&(e[b]|=1024),Fi(e)&&Li(e)}function Li(e){e[Ke].changeDetectionScheduler?.notify(0);let t=tn(e);for(;t!==null&&!(t[b]&8192||(t[b]|=8192,!Sc(t)));)t=tn(t)}function jf(e,t){if((e[b]&256)===256)throw new D(911,!1);e[Nt]===null&&(e[Nt]=[]),e[Nt].push(t)}function qv(e,t){if(e[Nt]===null)return;let n=e[Nt].indexOf(t);n!==-1&&e[Nt].splice(n,1)}function tn(e){let t=e[ue];return ft(t)?t[ue]:t}var R={lFrame:Wf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Vf=!1;function Wv(){return R.lFrame.elementDepthCount}function Zv(){R.lFrame.elementDepthCount++}function Yv(){R.lFrame.elementDepthCount--}function Uf(){return R.bindingsEnabled}function Qv(){return R.skipHydrationRootTNode!==null}function Kv(e){return R.skipHydrationRootTNode===e}function Jv(){R.skipHydrationRootTNode=null}function L(){return R.lFrame.lView}function le(){return R.lFrame.tView}function _A(e){return R.lFrame.contextLView=e,e[Be]}function xA(e){return R.lFrame.contextLView=null,e}function de(){let e=$f();for(;e!==null&&e.type===64;)e=e.parent;return e}function $f(){return R.lFrame.currentTNode}function Xv(){let e=R.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function dn(e,t){let n=R.lFrame;n.currentTNode=e,n.isParent=t}function Tc(){return R.lFrame.isParent}function Bf(){R.lFrame.isParent=!1}function ey(){return R.lFrame.contextLView}function Hf(){return Vf}function bd(e){Vf=e}function ji(){let e=R.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function ty(e){return R.lFrame.bindingIndex=e}function _c(){return R.lFrame.bindingIndex++}function ny(e){let t=R.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function ry(){return R.lFrame.inI18n}function oy(e,t){let n=R.lFrame;n.bindingIndex=n.bindingRootIndex=e,Pa(t)}function iy(){return R.lFrame.currentDirectiveIndex}function Pa(e){R.lFrame.currentDirectiveIndex=e}function sy(e){let t=R.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function zf(){return R.lFrame.currentQueryIndex}function xc(e){R.lFrame.currentQueryIndex=e}function ay(e){let t=e[T];return t.type===2?t.declTNode:t.type===1?e[He]:null}function Gf(e,t,n){if(n&A.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&A.Host);)if(o=ay(i),o===null||(i=i[qn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=R.lFrame=qf();return r.currentTNode=t,r.lView=e,!0}function Nc(e){let t=qf(),n=e[T];R.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function qf(){let e=R.lFrame,t=e===null?null:e.child;return t===null?Wf(e):t}function Wf(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 Zf(){let e=R.lFrame;return R.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Yf=Zf;function Ac(){let e=Zf();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 cy(e){return(R.lFrame.contextLView=Gv(e,R.lFrame.contextLView))[Be]}function Zn(){return R.lFrame.selectedIndex}function nn(e){R.lFrame.selectedIndex=e}function Qf(){let e=R.lFrame;return kf(e.tView,e.selectedIndex)}function uy(){return R.lFrame.currentNamespace}var Kf=!0;function Vi(){return Kf}function Ui(e){Kf=e}function ly(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Af(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 $i(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[Nn]+=65536),(a>14>16&&(e[b]&3)===t&&(e[b]+=16384,Md(a,i)):Md(a,i)}var Pn=-1,rn=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function fy(e){return e instanceof rn}function hy(e){return(e.flags&8)!==0}function py(e){return(e.flags&16)!==0}var pa={},ka=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=xi(r);let o=this.injector.get(t,pa,r);return o!==pa||n===pa?o:this.parentInjector.get(t,n,r)}};function Xf(e){return e!==Pn}function si(e){return e&32767}function gy(e){return e>>16}function ai(e,t){let n=gy(e),r=t;for(;n>0;)r=r[qn],n--;return r}var Fa=!0;function ci(e){let t=Fa;return Fa=e,t}var my=256,eh=my-1,th=5,vy=0,Ye={};function yy(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(vr)&&(r=n[vr]),r==null&&(r=n[vr]=vy++);let o=r&eh,i=1<>th)]|=i}function ui(e,t){let n=nh(e,t);if(n!==-1)return n;let r=t[T];r.firstCreatePass&&(e.injectorIndex=t.length,ga(r.data,e),ga(t,null),ga(r.blueprint,null));let o=Rc(e,t),i=e.injectorIndex;if(Xf(o)){let s=si(o),a=ai(o,t),c=a[T].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function ga(e,t){e.push(0,0,0,0,0,0,0,0,t)}function nh(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Rc(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=ah(o),r===null)return Pn;if(n++,o=o[qn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Pn}function La(e,t,n){yy(e,t,n)}function Dy(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+l,h=o?a+l:u;for(let f=d;f=c&&g.type===n)return f}if(o){let f=s[c];if(f&&Pt(f)&&f.type===n)return c}return null}function on(e,t,n,r){let o=e[n],i=t.data;if(fy(o)){let s=o;s.resolving&&Zm(Wm(i[n]));let a=ci(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?Ce(s.injectImpl):null,l=Gf(e,r,A.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&ly(n,i[n],t)}finally{u!==null&&Ce(u),ci(a),s.resolving=!1,Yf()}}return o}function Iy(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(vr)?e[vr]:void 0;return typeof t=="number"?t>=0?t&eh:Ey:t}function Sd(e,t,n){let r=1<>th)]&r)}function Td(e,t){return!(e&A.Self)&&!(e&A.Host&&t)}var Kt=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return ih(this._tNode,this._lView,t,xi(r),n)}};function Ey(){return new Kt(de(),L())}function Oc(e){return Mr(()=>{let t=e.prototype.constructor,n=t[Jo]||ja(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Jo]||ja(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function ja(e){return tf(e)?()=>{let t=ja(ve(e));return t&&t()}:Jt(e)}function Cy(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[b]&2048&&!(s[b]&512);){let a=sh(i,s,n,r|A.Self,Ye);if(a!==Ye)return a;let c=i.parent;if(!c){let u=s[_f];if(u){let l=u.get(n,Ye,r);if(l!==Ye)return l}c=ah(s),s=s[qn]}i=c}return o}function ah(e){let t=e[T],n=t.type;return n===2?t.declTNode:n===1?e[He]:null}function Pc(e){return Dy(de(),e)}function _d(e,t=null,n=null,r){let o=ch(e,t,n,r);return o.resolveInjectorInitializers(),o}function ch(e,t=null,n=null,r,o=new Set){let i=[n||Ae,bv(e)];return r=r||(typeof e=="object"?void 0:ye(e)),new Ir(i,t||Cc(),r||null,o)}var Oe=class e{static{this.THROW_IF_NOT_FOUND=Dr}static{this.NULL=new ti}static create(t,n){if(Array.isArray(t))return _d({name:""},n,t,"");{let r=t.name??"";return _d({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=y({token:e,providedIn:"any",factory:()=>w(df)})}static{this.__NG_ELEMENT_ID__=-1}};var by=new I("");by.__NG_ELEMENT_ID__=e=>{let t=de();if(t===null)throw new D(204,!1);if(t.type&2)return t.value;if(e&A.Optional)return null;throw new D(204,!1)};var My="ngOriginalError";function ma(e){return e[My]}var uh=!0,kc=(()=>{class e{static{this.__NG_ELEMENT_ID__=Sy}static{this.__NG_ENV_ID__=n=>n}}return e})(),Va=class extends kc{constructor(t){super(),this._lView=t}onDestroy(t){return jf(this._lView,t),()=>qv(this._lView,t)}};function Sy(){return new Va(L())}var ht=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new se(!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=y({token:e,providedIn:"root",factory:()=>new e})}}return e})();var Ua=class extends ce{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Tf()&&(this.destroyRef=p(kc,{optional:!0})??void 0,this.pendingTasks=p(ht,{optional:!0})??void 0)}emit(t){let n=k(null);try{super.next(t)}finally{k(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof Z&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},ae=Ua;function li(...e){}function lh(e){let t,n;function r(){e=li;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 xd(e){return queueMicrotask(()=>e()),()=>{e=li}}var Fc="isAngularZone",di=Fc+"_ID",Ty=0,$=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ae(!1),this.onMicrotaskEmpty=new ae(!1),this.onStable=new ae(!1),this.onError=new ae(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=uh}=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,Ny(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Fc)===!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,_y,li,li);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)}},_y={};function Lc(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 xy(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){lh(()=>{e.callbackScheduled=!1,$a(e),e.isCheckStableRunning=!0,Lc(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),$a(e)}function Ny(e){let t=()=>{xy(e)},n=Ty++;e._inner=e._inner.fork({name:"angular",properties:{[Fc]:!0,[di]:n,[di+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Ay(c))return r.invokeTask(i,s,a,c);try{return Nd(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ad(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Nd(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Ry(c)&&t(),Ad(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,$a(e),Lc(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 $a(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Nd(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ad(e){e._nesting--,Lc(e)}var fi=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ae,this.onMicrotaskEmpty=new ae,this.onStable=new ae,this.onError=new ae}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 Ay(e){return dh(e,"__ignore_ng_zone__")}function Ry(e){return dh(e,"__scheduler_tick__")}function dh(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}function Oy(e="zone.js",t){return e==="noop"?new fi:e==="zone.js"?new $(t):e}var at=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&&ma(t);for(;n&&ma(n);)n=ma(n);return n||null}},Py=new I("",{providedIn:"root",factory:()=>{let e=p($),t=p(at);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function ky(){return Yn(de(),L())}function Yn(e,t){return new pt(ke(e,t))}var pt=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=ky}}return e})();function Fy(e){return e instanceof pt?e.nativeElement:e}function Ly(){return this._results[Symbol.iterator]()}var Ba=class e{get changes(){return this._changes??=new ae}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=Ly)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=iv(t);(this._changesDetected=!ov(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function fh(e){return(e.flags&128)===128}var hh=new Map,jy=0;function Vy(){return jy++}function Uy(e){hh.set(e[Oi],e)}function Ha(e){hh.delete(e[Oi])}var Rd="__ngContext__";function kt(e,t){At(t)?(e[Rd]=t[Oi],Uy(t)):e[Rd]=t}function ph(e){return mh(e[Er])}function gh(e){return mh(e[$e])}function mh(e){for(;e!==null&&!ft(e);)e=e[$e];return e}var za;function vh(e){za=e}function $y(){if(za!==void 0)return za;if(typeof document<"u")return document;throw new D(210,!1)}var Bi=new I("",{providedIn:"root",factory:()=>By}),By="ng",jc=new I(""),et=new I("",{providedIn:"platform",factory:()=>"unknown"});var Vc=new I("",{providedIn:"root",factory:()=>$y().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Hy="h",zy="b";var Gy=()=>null;function Uc(e,t,n=!1){return Gy(e,t,n)}var yh=!1,qy=new I("",{providedIn:"root",factory:()=>yh});var Bo;function Wy(){if(Bo===void 0&&(Bo=null,me.trustedTypes))try{Bo=me.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Bo}function Od(e){return Wy()?.createScriptURL(e)||e}var hi=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Jd})`}};function Tr(e){return e instanceof hi?e.changingThisBreaksApplicationSecurity:e}function $c(e,t){let n=Zy(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Jd})`)}return n===t}function Zy(e){return e instanceof hi&&e.getTypeName()||null}var Yy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Dh(e){return e=String(e),e.match(Yy)?e:"unsafe:"+e}var Hi=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Hi||{});function Qy(e){let t=Ih();return t?t.sanitize(Hi.URL,e)||"":$c(e,"URL")?Tr(e):Dh(_i(e))}function Ky(e){let t=Ih();if(t)return Od(t.sanitize(Hi.RESOURCE_URL,e)||"");if($c(e,"ResourceURL"))return Od(Tr(e));throw new D(904,!1)}function Jy(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?Ky:Qy}function wh(e,t,n){return Jy(t,n)(e)}function Ih(){let e=L();return e&&e[Ke].sanitizer}var Xy=/^>|^->||--!>|)/g,tD="\u200B$1\u200B";function nD(e){return e.replace(Xy,t=>t.replace(eD,tD))}function Eh(e){return e instanceof Function?e():e}function rD(e){return(e??p(Oe)).get(et)==="browser"}var ct=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(ct||{}),oD;function Bc(e,t){return oD(e,t)}function An(e,t,n,r,o){if(r!=null){let i,s=!1;ft(r)?i=r:At(r)&&(s=!0,r=r[dt]);let a=Xe(r);e===0&&n!==null?o==null?Th(t,n,a):pi(t,n,a,o||null,!0):e===1&&n!==null?pi(t,n,a,o||null,!0):e===2?wD(t,a,s):e===3&&t.destroyNode(a),i!=null&&ED(t,e,i,n,o)}}function iD(e,t){return e.createText(t)}function sD(e,t,n){e.setValue(t,n)}function aD(e,t){return e.createComment(nD(t))}function Ch(e,t,n){return e.createElement(t,n)}function cD(e,t){bh(e,t),t[dt]=null,t[He]=null}function uD(e,t,n,r,o,i){r[dt]=o,r[He]=t,Gi(e,r,n,1,o,i)}function bh(e,t){t[Ke].changeDetectionScheduler?.notify(9),Gi(e,t,t[re],2,null,null)}function lD(e){let t=e[Er];if(!t)return va(e[T],e);for(;t;){let n=null;if(At(t))n=t[Er];else{let r=t[Me];r&&(n=r)}if(!n){for(;t&&!t[$e]&&t!==e;)At(t)&&va(t[T],t),t=t[ue];t===null&&(t=e),At(t)&&va(t[T],t),n=t&&t[$e]}t=n}}function dD(e,t,n,r){let o=Me+r,i=n.length;r>0&&(n[o-1][$e]=t),r0&&(e[n-1][$e]=r[$e]);let i=ei(e,Me+t);cD(r[T],r);let s=i[st];s!==null&&s.detachView(i[T]),r[ue]=null,r[$e]=null,r[b]&=-129}return r}function Sh(e,t){if(!(t[b]&256)){let n=t[re];n.destroyNode&&Gi(e,t,n,3,null,null),lD(t)}}function va(e,t){if(t[b]&256)return;let n=k(null);try{t[b]&=-129,t[b]|=256,t[Re]&&Ws(t[Re]),hD(e,t),fD(e,t),t[T].type===1&&t[re].destroy();let r=t[Xt];if(r!==null&&ft(t[ue])){r!==t[ue]&&Hc(r,t);let o=t[st];o!==null&&o.detachView(e)}Ha(t)}finally{k(n)}}function fD(e,t){let n=e.cleanup,r=t[ri];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[ri]=null);let o=t[Nt];if(o!==null){t[Nt]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===Qe.None||i===Qe.Emulated)return null}return ke(r,n)}}function pi(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Th(e,t,n){e.appendChild(t,n)}function Pd(e,t,n,r,o){r!==null?pi(e,t,n,r,o):Th(e,t,n)}function _h(e,t){return e.parentNode(t)}function mD(e,t){return e.nextSibling(t)}function vD(e,t,n){return DD(e,t,n)}function yD(e,t,n){return e.type&40?ke(e,n):null}var DD=yD,kd;function zi(e,t,n,r){let o=pD(e,r,t),i=t[re],s=r.parent||t[He],a=vD(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;cSe&&Rh(e,t,Se,!1),Ze(s?2:0,o),n(r,o)}finally{nn(i),Ze(s?3:1,o)}}function Gc(e,t,n){if(bc(t)){let r=k(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function AD(e,t,n,r){let o=Bh(t);o.push(n),e.firstCreatePass&&Hh(e).push(r,o.length-1)}function RD(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Qv()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Fd(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,c=Rt.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}e===0?Ld(r,n,u,a,c):Ld(r,n,u,a)}return r}function Ld(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 OD(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],c=null,u=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function VD(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;Pi(n)&&qD(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||ui(n,t),kt(r,t);let s=n.initialInputs;for(let a=o;a{Li(e.lView)},consumerOnSignalRead(){this.lView[Re]=this}});function cw(e){let t=e[Re]??Object.create(uw);return t.lView=e,t}var uw=G(m({},fr),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=tn(e.lView);for(;t&&!qh(t[T]);)t=tn(t);t&&Lf(t)},consumerOnSignalRead(){this.lView[Re]=this}});function qh(e){return e.type!==2}var lw=100;function Wh(e,t=!0,n=0){let r=e[Ke],o=r.rendererFactory,i=!1;i||o.begin?.();try{dw(e,n)}catch(s){throw t&&zh(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function dw(e,t){let n=Hf();try{bd(!0),Ya(e,t);let r=0;for(;Fi(e);){if(r===lw)throw new D(103,!1);r++,Ya(e,1)}}finally{bd(n)}}function fw(e,t,n,r){let o=t[b];if((o&256)===256)return;let i=!1,s=!1;!i&&t[Ke].inlineEffectRunner?.flush(),Nc(t);let a=!0,c=null,u=null;i||(qh(e)?(u=ow(t),c=lo(u)):Tl()===null?(a=!1,u=cw(t),c=lo(u)):t[Re]&&(Ws(t[Re]),t[Re]=null));try{Ff(t),ty(e.bindingStartIndex),n!==null&&Fh(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Zo(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Yo(t,f,0,null),ha(t,0)}if(s||hw(t),Zh(t,0),e.contentQueries!==null&&$h(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Zo(t,f)}else{let f=e.contentHooks;f!==null&&Yo(t,f,1),ha(t,1)}MD(e,t);let d=e.components;d!==null&&Qh(t,d,0);let h=e.viewQuery;if(h!==null&&Za(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Zo(t,f)}else{let f=e.viewHooks;f!==null&&Yo(t,f,2),ha(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[fa]){for(let f of t[fa])f();t[fa]=null}i||(t[b]&=-73)}catch(l){throw i||Li(t),l}finally{u!==null&&(Gs(u,c),a&&sw(u)),Ac()}}function Zh(e,t){for(let n=ph(e);n!==null;n=gh(n))for(let r=Me;r-1&&(Ga(t,r),ei(n,r))}this._attachedToViewContainer=!1}Sh(this._lView[T],this._lView)}onDestroy(t){jf(this._lView,t)}markForCheck(){Jc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[b]&=-129}reattach(){Oa(this._lView),this._lView[b]|=128}detectChanges(){this._lView[b]|=1024,Wh(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Aa(this._lView),n=this._lView[Xt];n!==null&&!t&&Hc(n,this._lView),bh(this._lView[T],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=t;let n=Aa(this._lView),r=this._lView[Xt];r!==null&&!n&&Mh(r,this._lView),Oa(this._lView)}},an=(()=>{class e{static{this.__NG_ELEMENT_ID__=vw}}return e})(),gw=an,mw=class extends gw{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=tw(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new sn(o)}};function vw(){return Xc(de(),L())}function Xc(e,t){return e.type&4?new mw(t,e,Yn(e,t)):null}var RA=new RegExp(`^(\\d+)*(${zy}|${Hy})*(.*)`);var yw=()=>null;function Vd(e,t){return yw(e,t)}var $n=class{},eu=new I("",{providedIn:"root",factory:()=>!1});var Kh=new I(""),Jh=new I(""),Qa=class{},mi=class{};function Dw(e){let t=Error(`No component factory found for ${ye(e)}.`);return t[ww]=e,t}var ww="ngComponent";var Ka=class{resolveComponentFactory(t){throw Dw(t)}},Bn=class{static{this.NULL=new Ka}},Hn=class{},xr=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>Iw()}}return e})();function Iw(){let e=L(),t=de(),n=Lt(t.index,e);return(At(n)?n:e)[re]}var Ew=(()=>{class e{static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>null})}}return e})();function vi(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Nh(e,n,i.join(" "))}}function xw(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static{this.__NG_ELEMENT_ID__=Aw}}return e})();function Aw(){let e=de();return ep(e,L())}var Rw=Vt,Xh=class extends Rw{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Yn(this._hostTNode,this._hostLView)}get injector(){return new Kt(this._hostTNode,this._hostLView)}get parentInjector(){let t=Rc(this._hostTNode,this._hostLView);if(Xf(t)){let n=ai(t,this._hostLView),r=si(t),o=n[T].data[r+8];return new Kt(o,n)}else return new Kt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=$d(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Me}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Vd(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,jd(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!Lv(t),a;if(s)a=n;else{let g=n||{};a=g.index,r=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}let c=s?t:new zn(Ot(t)),u=r||this.parentInjector;if(!i&&c.ngModule==null){let v=(s?u:this.parentInjector).get(De,null);v&&(i=v)}let l=Ot(c.componentType??{}),d=Vd(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,o,h,i);return this.insertImpl(f.hostView,a,jd(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(zv(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[ue],u=new Xh(c,c[He],c[ue]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return nw(s,o,i,r),t.attachToViewContainerRef(),lf(ya(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=$d(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Ga(this._lContainer,n);r&&(ei(ya(this._lContainer),n),Sh(r[T],r))}detach(t){let n=this._adjustIndex(t,-1),r=Ga(this._lContainer,n);return r&&ei(ya(this._lContainer),n)!=null?new sn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function $d(e){return e[oi]}function ya(e){return e[oi]||(e[oi]=[])}function ep(e,t){let n,r=t[e.index];return ft(r)?n=r:(n=Uh(r,t,null,e),t[e.index]=n,Wi(t,n)),Pw(n,t,e,r),new Xh(n,e,t)}function Ow(e,t){let n=e[re],r=n.createComment(""),o=ke(t,e),i=_h(n,o);return pi(n,i,r,mD(n,o),!1),r}var Pw=Lw,kw=()=>!1;function Fw(e,t,n){return kw(e,t,n)}function Lw(e,t,n,r){if(e[en])return;let o;n.type&8?o=Xe(r):o=Ow(t,n),e[en]=o}var Xa=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},ec=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let u=i[a+1],l=t[-c];for(let d=Me;dt.trim())}function qw(e,t,n){e.queries===null&&(e.queries=new nc),e.queries.track(new rc(t,n))}function Ww(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function tu(e,t){return e.queries.getByIndex(t)}function Zw(e,t){let n=e[T],r=tu(n,t);return r.crossesNgTemplate?oc(n,e,t,[]):tp(n,e,r,t)}var Bd=new Set;function Qn(e){Bd.has(e)||(Bd.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function PA(e,t){Qn("NgSignals");let n=jl(e),r=n[bt];return t?.equal&&(r.equal=t.equal),n.set=o=>Zs(r,o),n.update=o=>Vl(r,o),n.asReadonly=Yw.bind(n),n}function Yw(){let e=this[bt];if(e.readonlyFn===void 0){let t=()=>this();t[bt]=e,e.readonlyFn=t}return e.readonlyFn}function Qw(e){let t=[],n=new Map;function r(o){let i=n.get(o);if(!i){let s=e(o);n.set(o,i=s.then(eI))}return i}return Di.forEach((o,i)=>{let s=[];o.templateUrl&&s.push(r(o.templateUrl).then(u=>{o.template=u}));let a=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=a,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let u=o.styles.length,l=o.styleUrls;o.styleUrls.forEach((d,h)=>{a.push(""),s.push(r(d).then(f=>{a[u+h]=f,l.splice(l.indexOf(d),1),l.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&s.push(r(o.styleUrl).then(u=>{a.push(u),o.styleUrl=void 0}));let c=Promise.all(s).then(()=>tI(i));t.push(c)}),Jw(),Promise.all(t).then(()=>{})}var Di=new Map,Kw=new Set;function Jw(){let e=Di;return Di=new Map,e}function Xw(){return Di.size===0}function eI(e){return typeof e=="string"?e:e.text()}function tI(e){Kw.delete(e)}function nI(e){return Object.getPrototypeOf(e.prototype).constructor}function rI(e){let t=nI(e.type),n=!0,r=[e];for(;t;){let o;if(Pt(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new D(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Ho(e.inputs),s.inputTransforms=Ho(e.inputTransforms),s.declaredInputs=Ho(e.declaredInputs),s.outputs=Ho(e.outputs);let a=o.hostBindings;a&&cI(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&sI(e,c),u&&aI(e,u),oI(e,o),Vm(e.outputs,o.outputs),Pt(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=wr(o.hostAttrs,n=wr(n,o.hostAttrs))}}function Ho(e){return e===kn?{}:e===Ae?[]:e}function sI(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function aI(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function cI(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function nu(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)&&o[3]&&(n[r]=o[3])}e.inputTransforms=n}var Ft=class{},Cr=class{};var wi=class extends Ft{constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new yi(this);let i=wf(t);this._bootstrapComponents=Eh(i.bootstrap),this._r3Injector=ch(t,n,[{provide:Ft,useValue:this},{provide:Bn,useValue:this.componentFactoryResolver},...r],ye(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)}},Ii=class extends Cr{constructor(t){super(),this.moduleType=t}create(t){return new wi(this.moduleType,t,[])}};function uI(e,t,n){return new wi(e,t,n,!1)}var ic=class extends Ft{constructor(t){super(),this.componentFactoryResolver=new yi(this),this.instance=null;let n=new Ir([...t.providers,{provide:Ft,useValue:this},{provide:Bn,useValue:this.componentFactoryResolver}],t.parent||Cc(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Zi(e,t,n=null){return new ic({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function np(e){return dI(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function lI(e,t){if(Array.isArray(e))for(let n=0;n{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>new e})}}return e})(),sc=class e{constructor(){this.ngZone=p($),this.scheduler=p($n),this.errorHandler=p(at,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[Rn.EarlyRead,Rn.Write,Rn.MixedReadWrite,Rn.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=y({token:e,providedIn:"root",factory:()=>new e})}},ac=class{constructor(t,n,r,o){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function ou(e,t){!t?.injector&&kv(ou);let n=t?.injector??p(Oe);return rD(n)?(Qn("NgAfterNextRender"),II(e,n,t,!0)):EI}function wI(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function II(e,t,n,r){let o=t.get(rp);o.impl??=t.get(sc);let i=n?.phase??Rn.MixedReadWrite,s=n?.manualCleanup!==!0?t.get(kc):null,a=new ac(o.impl,wI(e,i),r,s);return o.impl.register(a),a}var EI={destroy(){}};function iu(e,t,n,r){let o=L(),i=_c();if(cn(o,i,t)){let s=le(),a=Qf();WD(a,o,e,t,n,r)}return iu}function CI(e,t,n,r){return cn(e,_c(),n)?t+_i(n)+r:jt}function zo(e,t){return e<<17|t<<2}function un(e){return e>>17&32767}function bI(e){return(e&2)==2}function MI(e,t){return e&131071|t<<17}function cc(e){return e|2}function Gn(e){return(e&131068)>>2}function Da(e,t){return e&-131069|t<<2}function SI(e){return(e&1)===1}function uc(e){return e|1}function TI(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=un(s),c=Gn(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Sr(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let h=un(e[a+1]);e[r+1]=zo(h,a),h!==0&&(e[h+1]=Da(e[h+1],r)),e[a+1]=MI(e[a+1],r)}else e[r+1]=zo(a,0),a!==0&&(e[a+1]=Da(e[a+1],r)),a=r;else e[r+1]=zo(c,0),a===0?a=r:e[c+1]=Da(e[c+1],r),c=r;u&&(e[r+1]=cc(e[r+1])),Hd(e,l,r,!0),Hd(e,l,r,!1),_I(t,l,e,r,i),s=zo(a,c),i?t.classBindings=s:t.styleBindings=s}function _I(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Sr(i,t)>=0&&(n[r+1]=uc(n[r+1]))}function Hd(e,t,n,r){let o=e[n+1],i=t===null,s=r?un(o):Gn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];xI(c,t)&&(a=!0,e[s+1]=r?uc(u):cc(u)),s=r?un(u):Gn(u)}a&&(e[n+1]=r?cc(o):uc(o))}function xI(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Sr(e,t)>=0:!1}function NI(e,t,n){let r=L(),o=_c();if(cn(r,o,t)){let i=le(),s=Qf();kD(i,s,r,e,t,r[re],n,!1)}return NI}function zd(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";Qc(e,n,i[s],s,r)}function AI(e,t){return RI(e,t,null,!0),AI}function RI(e,t,n,r){let o=L(),i=le(),s=ny(2);if(i.firstUpdatePass&&PI(i,e,s,r),t!==jt&&cn(o,s,t)){let a=i.data[Zn()];VI(i,a,o,o[re],e,o[s+1]=UI(t,n),r,s)}}function OI(e,t){return t>=e.expandoStartIndex}function PI(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Zn()],s=OI(e,n);$I(i,r)&&t===null&&!s&&(t=!1),t=kI(o,i,t,r),TI(o,i,t,n,s,r)}}function kI(e,t,n,r){let o=sy(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=wa(null,e,t,n,r),n=br(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=wa(o,e,t,n,r),i===null){let c=FI(e,t,r);c!==void 0&&Array.isArray(c)&&(c=wa(null,e,t,c[1],r),c=br(c,t.attrs,r),LI(e,t,r,c))}else i=jI(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function FI(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Gn(r)!==0)return e[un(r)]}function LI(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[un(o)]=r}function jI(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=n[o+1];h===jt&&(h=d?Ae:void 0);let f=d?la(h,r):l===r?h:void 0;if(u&&!Ei(f)&&(f=la(c,r)),Ei(f)&&(a=f,s))return a;let g=e[o+1];o=s?un(g):Gn(g)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=la(c,r))}return a}function Ei(e){return e!==void 0}function UI(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ye(Tr(e)))),e}function $I(e,t){return(e.flags&(t?8:16))!==0}function BI(e,t,n,r,o,i){let s=t.consts,a=Un(s,o),c=_r(t,e,2,r,a);return Yc(t,n,c,Un(s,i)),c.attrs!==null&&vi(c,c.attrs,!1),c.mergedAttrs!==null&&vi(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function op(e,t,n,r){let o=L(),i=le(),s=Se+e,a=o[re],c=i.firstCreatePass?BI(s,i,o,t,n,r):i.data[s],u=HI(i,o,c,a,t,e);o[s]=u;let l=ki(c);return dn(c,!0),Ah(a,u,c),!pI(c)&&Vi()&&zi(i,o,u,c),Wv()===0&&kt(u,o),Zv(),l&&(qc(i,o,c),Gc(i,c,o)),r!==null&&Wc(o,c),op}function ip(){let e=de();Tc()?Bf():(e=e.parent,dn(e,!1));let t=e;Kv(t)&&Jv(),Yv();let n=le();return n.firstCreatePass&&($i(n,e),bc(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&hy(t)&&zd(n,t,L(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&py(t)&&zd(n,t,L(),t.stylesWithoutHost,!1),ip}function su(e,t,n,r){return op(e,t,n,r),ip(),su}var HI=(e,t,n,r,o,i)=>(Ui(!0),Ch(r,o,uy()));function zI(e,t,n,r,o){let i=t.consts,s=Un(i,r),a=_r(t,e,8,"ng-container",s);s!==null&&vi(a,s,!0);let c=Un(i,o);return Yc(t,n,a,c),t.queries!==null&&t.queries.elementStart(t,a),a}function GI(e,t,n){let r=L(),o=le(),i=e+Se,s=o.firstCreatePass?zI(i,o,r,t,n):o.data[i];dn(s,!0);let a=WI(o,r,s,e);return r[i]=a,Vi()&&zi(o,r,a,s),kt(a,r),ki(s)&&(qc(o,r,s),Gc(o,s,r)),n!=null&&Wc(r,s),GI}function qI(){let e=de(),t=le();return Tc()?Bf():(e=e.parent,dn(e,!1)),t.firstCreatePass&&($i(t,e),bc(e)&&t.queries.elementEnd(e)),qI}var WI=(e,t,n,r)=>(Ui(!0),aD(t[re],""));function kA(){return L()}var Qt=void 0;function ZI(e){let t=e,n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var YI=["en",[["a","p"],["AM","PM"],Qt],[["AM","PM"],Qt,Qt],[["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"]],Qt,[["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"]],Qt,[["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}",Qt,"{1} 'at' {0}",Qt],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",ZI],Ia={};function Fe(e){let t=QI(e),n=qd(t);if(n)return n;let r=t.split("-")[0];if(n=qd(r),n)return n;if(r==="en")return YI;throw new D(701,!1)}function qd(e){return e in Ia||(Ia[e]=me.ng&&me.ng.common&&me.ng.common.locales&&me.ng.common.locales[e]),Ia[e]}var Q=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}(Q||{});function QI(e){return e.toLowerCase().replace(/_/g,"-")}var Ci="en-US";var KI=Ci;function JI(e){typeof e=="string"&&(KI=e.toLowerCase().replace(/_/g,"-"))}var XI=(e,t,n)=>{};function au(e,t,n,r){let o=L(),i=le(),s=de();return tE(i,o,o[re],s,e,t,r),au}function eE(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function tE(e,t,n,r,o,i,s){let a=ki(r),u=e.firstCreatePass&&Hh(e),l=t[Be],d=Bh(t),h=!0;if(r.type&3||s){let v=ke(r,t),E=s?s(v):v,x=d.length,Y=s?ie=>s(Xe(ie[r.index])):r.index,F=null;if(!s&&a&&(F=eE(e,t,o,r.index)),F!==null){let ie=F.__ngLastListenerFn__||F;ie.__ngNextListenerFn__=i,F.__ngLastListenerFn__=i,h=!1}else{i=Zd(r,t,l,i),XI(v,o,i);let ie=n.listen(E,o,i);d.push(i,ie),u&&u.push(o,Y,x,x+1)}}else i=Zd(r,t,l,i);let f=r.outputs,g;if(h&&f!==null&&(g=f[o])){let v=g.length;if(v)for(let E=0;E-1?Lt(e.index,t):t;Jc(s,5);let a=Wd(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=Wd(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function FA(e=1){return cy(e)}function sp(e,t,n,r){zw(e,t,n,r)}function ap(e){let t=L(),n=le(),r=zf();xc(r+1);let o=tu(n,r);if(e.dirty&&Hv(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=Zw(t,r);e.reset(i,Fy),e.notifyOnChanges()}return!0}return!1}function cp(){return Bw(L(),zf())}function nE(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function LA(e){let t=ey();return Mc(t,Se+e)}function jA(e,t=""){let n=L(),r=le(),o=e+Se,i=r.firstCreatePass?_r(r,o,1,t,null):r.data[o],s=rE(r,n,i,t,e);n[o]=s,Vi()&&zi(r,n,s,i),dn(i,!1)}var rE=(e,t,n,r,o)=>(Ui(!0),iD(t[re],r));function oE(e){return up("",e,""),oE}function up(e,t,n){let r=L(),o=CI(r,e,t,n);return o!==jt&&KD(r,Zn(),o),up}function iE(e,t,n){let r=le();if(r.firstCreatePass){let o=Pt(e);lc(n,r.data,r.blueprint,o,!0),lc(t,r.data,r.blueprint,o,!1)}}function lc(e,t,n,r,o){if(e=ve(e),Array.isArray(e))for(let i=0;i>20;if(Ln(e)||!e.multi){let f=new rn(u,o,q),g=Ca(c,t,o?l:l+h,d);g===-1?(La(ui(a,s),i,c),Ea(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[g]=f,s[g]=f)}else{let f=Ca(c,t,l+h,d),g=Ca(c,t,l,l+h),v=f>=0&&n[f],E=g>=0&&n[g];if(o&&!E||!o&&!v){La(ui(a,s),i,c);let x=cE(o?aE:sE,n.length,o,r,u);!o&&E&&(n[g].providerFactory=x),Ea(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(x),s.push(x)}else{let x=lp(n[o?g:f],u,!o&&r);Ea(i,e,f>-1?f:g,x)}!o&&r&&E&&n[g].componentProviders++}}}function Ea(e,t,n,r){let o=Ln(t),i=_v(t);if(o||i){let c=(i?ve(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function lp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ca(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>iE(r,o?o(e):e,t)}}var uE=(()=>{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=Cf(!1,n.type),o=r.length>0?Zi([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=y({token:e,providedIn:"environment",factory:()=>new e(w(De))})}}return e})();function dp(e){Qn("NgStandalone"),e.getStandaloneInjector=t=>t.get(uE).getOrCreateStandaloneInjector(e)}function UA(e,t,n){let r=ji()+e,o=L();return o[r]===jt?ru(o,r,n?t.call(n):t()):fI(o,r)}function $A(e,t,n,r){return hp(L(),ji(),e,t,n,r)}function fp(e,t){let n=e[t];return n===jt?void 0:n}function hp(e,t,n,r,o,i){let s=t+n;return cn(e,s,o)?ru(e,s+1,i?r.call(i,o):r(o)):fp(e,s+1)}function lE(e,t,n,r,o,i,s){let a=t+n;return hI(e,a,o,i)?ru(e,a+2,s?r.call(s,o,i):r(o,i)):fp(e,a+2)}function BA(e,t){let n=le(),r,o=e+Se;n.firstCreatePass?(r=dE(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=Jt(r.type,!0)),s,a=Ce(q);try{let c=ci(!1),u=i();return ci(c),nE(n,L(),o,u),u}finally{Ce(a)}}function dE(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function HA(e,t,n){let r=e+Se,o=L(),i=Mc(o,r);return pp(o,r)?hp(o,ji(),t,i.transform,n,i):i.transform(n)}function zA(e,t,n,r){let o=e+Se,i=L(),s=Mc(i,o);return pp(i,o)?lE(i,ji(),t,s.transform,n,r,s):s.transform(n,r)}function pp(e,t){return e[T].data[t].pure}var Go=null;function fE(e){Go!==null&&(e.defaultEncapsulation!==Go.defaultEncapsulation||e.preserveWhitespaces!==Go.preserveWhitespaces)||(Go=e)}var Yi=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var cu=new I(""),Nr=new I(""),Qi=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,uu||(hE(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{$.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n()},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}static{this.\u0275fac=function(r){return new(r||e)(w($),w(Ki),w(Nr))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),Ki=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return uu?.findTestabilityInTree(this,n,r)??null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();function hE(e){uu=e}var uu;function Kn(e){return!!e&&typeof e.then=="function"}function lu(e){return!!e&&typeof e.subscribe=="function"}var Ji=new I(""),gp=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=p(Ji,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=o();if(Kn(i))n.push(i);else if(lu(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Xi=new I("");function pE(){Ll(()=>{throw new D(600,!1)})}function gE(e){return e.isBoundToModule}var mE=10;function vE(e,t,n){try{let r=n();return Kn(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}function mp(e,t){return Array.isArray(t)?t.reduce(mp,e):m(m({},e),t)}var gt=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(Py),this.afterRenderManager=p(rp),this.zonelessEnabled=p(eu),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new ce,this.afterTick=new ce,this.componentTypes=[],this.components=[],this.isStable=p(ht).hasPendingTasks.pipe(S(n=>!n)),this._injector=p(De)}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 mi;if(!this._injector.get(gp).done){let h=!o&&Df(n),f=!1;throw new D(405,f)}let s;o?s=n:s=this._injector.get(Bn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=gE(s)?void 0:this._injector.get(Ft),c=r||s.selector,u=s.create(Oe.NULL,[],c,a),l=u.location.nativeElement,d=u.injector.get(cu,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=k(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,k(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Hn,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++Fi(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=y({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 yE(e,t,n,r){if(!n&&!Fi(e))return;Wh(e,t,n&&!r?0:1)}var fc=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},es=(()=>{class e{compileModuleSync(n){return new Ii(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=wf(n),i=Eh(o.declarations).reduce((s,a)=>{let c=Ot(a);return c&&s.push(new zn(c)),s},[]);return new fc(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=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),DE=new I("");function wE(e,t,n){let r=new Ii(n);return Promise.resolve(r)}function Yd(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var IE=(()=>{class e{constructor(){this.zone=p($),this.changeDetectionScheduler=p($n),this.applicationRef=p(gt)}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=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function EE({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new $(G(m({},vp()),{scheduleInRootZone:n})),[{provide:$,useFactory:e},{provide:Fn,multi:!0,useFactory:()=>{let r=p(IE,{optional:!0});return()=>r.initialize()}},{provide:Fn,multi:!0,useFactory:()=>{let r=p(CE);return()=>{r.initialize()}}},t===!0?{provide:Kh,useValue:!0}:[],{provide:Jh,useValue:n??uh}]}function vp(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var CE=(()=>{class e{constructor(){this.subscription=new Z,this.initialized=!1,this.zone=p($),this.pendingTasks=p(ht)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{$.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{$.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var bE=(()=>{class e{constructor(){this.appRef=p(gt),this.taskService=p(ht),this.ngZone=p($),this.zonelessEnabled=p(eu),this.disableScheduling=p(Kh,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Z,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(di):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(Jh,{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 fi||!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?xd:lh;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(di+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,xd(()=>{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=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ME(){return typeof $localize<"u"&&$localize.locale||Ci}var ts=new I("",{providedIn:"root",factory:()=>p(ts,A.Optional|A.SkipSelf)||ME()});var bi=new I("");function qo(e){return!e.moduleRef}function SE(e){let t=qo(e)?e.r3Injector:e.moduleRef.injector,n=t.get($);return n.run(()=>{qo(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(at,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),qo(e)){let i=()=>t.destroy(),s=e.platformInjector.get(bi);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(bi);s.add(i),e.moduleRef.onDestroy(()=>{Ko(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return vE(r,n,()=>{let i=t.get(gp);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(ts,Ci);if(JI(s||Ci),qo(e)){let a=t.get(gt);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return TE(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function TE(e,t){let n=e.injector.get(gt);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 yp=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){let o=r?.scheduleInRootZone,i=()=>Oy(r?.ngZone,G(m({},vp({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),s=r?.ignoreChangesOutsideZone,a=[EE({ngZoneFactory:i,ignoreChangesOutsideZone:s}),{provide:$n,useExisting:bE}],c=uI(n.moduleType,this.injector,a);return SE({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(n,r=[]){let o=mp({},r);return wE(this.injector,o,n).then(i=>this.bootstrapModuleFactory(i,o))}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new D(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let n=this._injector.get(bi,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(r){return new(r||e)(w(Oe))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})(),yr=null,Dp=new I("");function _E(e){if(yr&&!yr.get(Dp,!1))throw new D(400,!1);pE(),yr=e;let t=e.get(yp);return AE(e),t}function du(e,t,n=[]){let r=`Platform: ${t}`,o=new I(r);return(i=[])=>{let s=wp();if(!s||s.injector.get(Dp,!1)){let a=[...n,...i,{provide:o,useValue:!0}];e?e(a):_E(xE(a,r))}return NE(o)}}function xE(e=[],t){return Oe.create({name:t,providers:[{provide:Ri,useValue:"platform"},{provide:bi,useValue:new Set([()=>yr=null])},...e]})}function NE(e){let t=wp();if(!t)throw new D(401,!1);return t}function wp(){return yr?.get(yp)??null}function AE(e){e.get(jc,null)?.forEach(n=>n())}var fn=(()=>{class e{static{this.__NG_ELEMENT_ID__=RE}}return e})();function RE(e){return OE(de(),L(),(e&16)===16)}function OE(e,t,n){if(Pi(e)&&!n){let r=Lt(e.index,t);return new sn(r,r)}else if(e.type&175){let r=t[Je];return new sn(r,t)}return null}var hc=class{constructor(){}supports(t){return np(t)}create(t){return new pc(t)}},PE=(e,t)=>t,pc=class{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||PE}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new gc(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Mi),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Mi),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},gc=class{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},mc=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Mi=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new mc,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Qd(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{class e{static{this.\u0275prov=y({token:e,providedIn:"root",factory:Kd})}constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Kd()),deps:[[e,new yc,new Ni]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new D(901,!1)}}return e})();var Ip=du(null,"core",[]),Ep=(()=>{class e{constructor(n){}static{this.\u0275fac=function(r){return new(r||e)(w(gt))}}static{this.\u0275mod=lt({type:e})}static{this.\u0275inj=ut({})}}return e})();function Ar(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function GA(e,t){Qn("NgSignals");let n=Pl(e);return t?.equal&&(n[bt].equal=t.equal),n}function hu(e){let t=k(null);try{return e()}finally{k(t)}}function Cp(e){let t=Ot(e);if(!t)return null;let n=new zn(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Np=null;function hn(){return Np}function Ap(e){Np??=e}var ls=class{};var fe=new I(""),Cu=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(FE),providedIn:"platform"})}}return e})(),Rp=new I(""),FE=(()=>{class e extends Cu{constructor(){super(),this._doc=p(fe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return hn().getBaseHref(this._doc)}onPopState(n){let r=hn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=hn().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=y({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function bu(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 bp(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 vt(e){return e&&e[0]!=="?"?"?"+e:e}var Dt=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(Mu),providedIn:"root"})}}return e})(),Op=new I(""),Mu=(()=>{class e extends Dt{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??p(fe).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 bu(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+vt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+vt(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+vt(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)(w(Cu),w(Op,8))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Pp=(()=>{class e extends Dt{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=bu(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+vt(i));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+vt(i));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(w(Cu),w(Op,8))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),Xn=(()=>{class e{constructor(n){this._subject=new ae,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=VE(bp(Mp(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+vt(r))}normalize(n){return e.stripTrailingSlash(jE(this._basePath,Mp(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+vt(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+vt(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=vt}static{this.joinWithSlash=bu}static{this.stripTrailingSlash=bp}static{this.\u0275fac=function(r){return new(r||e)(w(Dt))}}static{this.\u0275prov=y({token:e,factory:()=>LE(),providedIn:"root"})}}return e})();function LE(){return new Xn(w(Dt))}function jE(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Mp(e){return e.replace(/\/index.html$/,"")}function VE(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var we=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(we||{}),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||{}),Te=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(Te||{}),Ut={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 UE(e){return Fe(e)[Q.LocaleId]}function $E(e,t,n){let r=Fe(e),o=[r[Q.DayPeriodsFormat],r[Q.DayPeriodsStandalone]],i=Le(o,t);return Le(i,n)}function BE(e,t,n){let r=Fe(e),o=[r[Q.DaysFormat],r[Q.DaysStandalone]],i=Le(o,t);return Le(i,n)}function HE(e,t,n){let r=Fe(e),o=[r[Q.MonthsFormat],r[Q.MonthsStandalone]],i=Le(o,t);return Le(i,n)}function zE(e,t){let r=Fe(e)[Q.Eras];return Le(r,t)}function ns(e,t){let n=Fe(e);return Le(n[Q.DateFormat],t)}function rs(e,t){let n=Fe(e);return Le(n[Q.TimeFormat],t)}function os(e,t){let r=Fe(e)[Q.DateTimeFormat];return Le(r,t)}function fs(e,t){let n=Fe(e),r=n[Q.NumberSymbols][t];if(typeof r>"u"){if(t===Ut.CurrencyDecimal)return n[Q.NumberSymbols][Ut.Decimal];if(t===Ut.CurrencyGroup)return n[Q.NumberSymbols][Ut.Group]}return r}function kp(e){if(!e[Q.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[Q.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function GE(e){let t=Fe(e);return kp(t),(t[Q.ExtraData][2]||[]).map(r=>typeof r=="string"?pu(r):[pu(r[0]),pu(r[1])])}function qE(e,t,n){let r=Fe(e);kp(r);let o=[r[Q.ExtraData][0],r[Q.ExtraData][1]],i=Le(o,t)||[];return Le(i,n)||[]}function Le(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 pu(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var WE=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,is={},ZE=/((?:[^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]*)/,yt=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(yt||{}),V=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(V||{}),j=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(j||{});function YE(e,t,n,r){let o=oC(e);t=mt(n,t)||t;let s=[],a;for(;t;)if(a=ZE.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=Lp(r,c),o=rC(o,r,!0));let u="";return s.forEach(l=>{let d=tC(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function ds(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function mt(e,t){let n=UE(e);if(is[n]??={},is[n][t])return is[n][t];let r="";switch(t){case"shortDate":r=ns(e,Te.Short);break;case"mediumDate":r=ns(e,Te.Medium);break;case"longDate":r=ns(e,Te.Long);break;case"fullDate":r=ns(e,Te.Full);break;case"shortTime":r=rs(e,Te.Short);break;case"mediumTime":r=rs(e,Te.Medium);break;case"longTime":r=rs(e,Te.Long);break;case"fullTime":r=rs(e,Te.Full);break;case"short":let o=mt(e,"shortTime"),i=mt(e,"shortDate");r=ss(os(e,Te.Short),[o,i]);break;case"medium":let s=mt(e,"mediumTime"),a=mt(e,"mediumDate");r=ss(os(e,Te.Medium),[s,a]);break;case"long":let c=mt(e,"longTime"),u=mt(e,"longDate");r=ss(os(e,Te.Long),[c,u]);break;case"full":let l=mt(e,"fullTime"),d=mt(e,"fullDate");r=ss(os(e,Te.Full),[l,d]);break}return r&&(is[n][t]=r),r}function ss(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function 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||a>-n)&&(a+=n),e===V.Hours)a===0&&n===-12&&(a=12);else if(e===V.FractionalSeconds)return QE(a,t);let c=fs(s,Ut.MinusSign);return ze(a,t,c,r,o)}}function KE(e,t){switch(e){case V.FullYear:return t.getFullYear();case V.Month:return t.getMonth();case V.Date:return t.getDate();case V.Hours:return t.getHours();case V.Minutes:return t.getMinutes();case V.Seconds:return t.getSeconds();case V.FractionalSeconds:return t.getMilliseconds();case V.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function z(e,t,n=we.Format,r=!1){return function(o,i){return JE(o,i,e,t,n,r)}}function JE(e,t,n,r,o,i){switch(n){case j.Months:return HE(t,o,r)[e.getMonth()];case j.Days:return BE(t,o,r)[e.getDay()];case j.DayPeriods:let s=e.getHours(),a=e.getMinutes();if(i){let u=GE(t),l=qE(t,o,r),d=u.findIndex(h=>{if(Array.isArray(h)){let[f,g]=h,v=s>=f.hours&&a>=f.minutes,E=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case yt.Short:return(o>=0?"+":"")+ze(s,2,i)+ze(Math.abs(o%60),2,i);case yt.ShortGMT:return"GMT"+(o>=0?"+":"")+ze(s,1,i);case yt.Long:return"GMT"+(o>=0?"+":"")+ze(s,2,i)+":"+ze(Math.abs(o%60),2,i);case yt.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 XE=0,us=4;function eC(e){let t=ds(e,XE,1).getDay();return ds(e,0,1+(t<=us?us:us+7)-t)}function Fp(e){let t=e.getDay(),n=t===0?-3:us-t;return ds(e.getFullYear(),e.getMonth(),e.getDate()+n)}function gu(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=Fp(n),s=eC(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return ze(o,e,fs(r,Ut.MinusSign))}}function cs(e,t=!1){return function(n,r){let i=Fp(n).getFullYear();return ze(i,e,fs(r,Ut.MinusSign),t)}}var mu={};function tC(e){if(mu[e])return mu[e];let t;switch(e){case"G":case"GG":case"GGG":t=z(j.Eras,H.Abbreviated);break;case"GGGG":t=z(j.Eras,H.Wide);break;case"GGGGG":t=z(j.Eras,H.Narrow);break;case"y":t=X(V.FullYear,1,0,!1,!0);break;case"yy":t=X(V.FullYear,2,0,!0,!0);break;case"yyy":t=X(V.FullYear,3,0,!1,!0);break;case"yyyy":t=X(V.FullYear,4,0,!1,!0);break;case"Y":t=cs(1);break;case"YY":t=cs(2,!0);break;case"YYY":t=cs(3);break;case"YYYY":t=cs(4);break;case"M":case"L":t=X(V.Month,1,1);break;case"MM":case"LL":t=X(V.Month,2,1);break;case"MMM":t=z(j.Months,H.Abbreviated);break;case"MMMM":t=z(j.Months,H.Wide);break;case"MMMMM":t=z(j.Months,H.Narrow);break;case"LLL":t=z(j.Months,H.Abbreviated,we.Standalone);break;case"LLLL":t=z(j.Months,H.Wide,we.Standalone);break;case"LLLLL":t=z(j.Months,H.Narrow,we.Standalone);break;case"w":t=gu(1);break;case"ww":t=gu(2);break;case"W":t=gu(1,!0);break;case"d":t=X(V.Date,1);break;case"dd":t=X(V.Date,2);break;case"c":case"cc":t=X(V.Day,1);break;case"ccc":t=z(j.Days,H.Abbreviated,we.Standalone);break;case"cccc":t=z(j.Days,H.Wide,we.Standalone);break;case"ccccc":t=z(j.Days,H.Narrow,we.Standalone);break;case"cccccc":t=z(j.Days,H.Short,we.Standalone);break;case"E":case"EE":case"EEE":t=z(j.Days,H.Abbreviated);break;case"EEEE":t=z(j.Days,H.Wide);break;case"EEEEE":t=z(j.Days,H.Narrow);break;case"EEEEEE":t=z(j.Days,H.Short);break;case"a":case"aa":case"aaa":t=z(j.DayPeriods,H.Abbreviated);break;case"aaaa":t=z(j.DayPeriods,H.Wide);break;case"aaaaa":t=z(j.DayPeriods,H.Narrow);break;case"b":case"bb":case"bbb":t=z(j.DayPeriods,H.Abbreviated,we.Standalone,!0);break;case"bbbb":t=z(j.DayPeriods,H.Wide,we.Standalone,!0);break;case"bbbbb":t=z(j.DayPeriods,H.Narrow,we.Standalone,!0);break;case"B":case"BB":case"BBB":t=z(j.DayPeriods,H.Abbreviated,we.Format,!0);break;case"BBBB":t=z(j.DayPeriods,H.Wide,we.Format,!0);break;case"BBBBB":t=z(j.DayPeriods,H.Narrow,we.Format,!0);break;case"h":t=X(V.Hours,1,-12);break;case"hh":t=X(V.Hours,2,-12);break;case"H":t=X(V.Hours,1);break;case"HH":t=X(V.Hours,2);break;case"m":t=X(V.Minutes,1);break;case"mm":t=X(V.Minutes,2);break;case"s":t=X(V.Seconds,1);break;case"ss":t=X(V.Seconds,2);break;case"S":t=X(V.FractionalSeconds,1);break;case"SS":t=X(V.FractionalSeconds,2);break;case"SSS":t=X(V.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=as(yt.Short);break;case"ZZZZZ":t=as(yt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=as(yt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=as(yt.Long);break;default:return null}return mu[e]=t,t}function Lp(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function nC(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function rC(e,t,n){let r=n?-1:1,o=e.getTimezoneOffset(),i=Lp(t,o);return nC(e,r*(i-o))}function oC(e){if(Sp(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return ds(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(WE))return iC(r)}let t=new Date(e);if(!Sp(t))throw new Error(`Unable to convert "${e}" into a date`);return t}function iC(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function Sp(e){return e instanceof Date&&!isNaN(e.valueOf())}function hs(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 vu=class{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},pR=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new vu(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),Tp(a,o)}});for(let o=0,i=r.length;o{let i=r.get(o.currentIndex);Tp(i,o)})}static ngTemplateContextGuard(n,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(q(Vt),q(an),q(fu))}}static{this.\u0275dir=ln({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return e})();function Tp(e,t){e.context.$implicit=t.item}var gR=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new yu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){_p("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){_p("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(q(Vt),q(an))}}static{this.\u0275dir=ln({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})(),yu=class{constructor(){this.$implicit=null,this.ngIf=null}};function _p(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${ye(t)}'.`)}function jp(e,t){return new D(2100,!1)}var Du=class{createSubscription(t,n){return hu(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){hu(()=>t.unsubscribe())}},wu=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},sC=new wu,aC=new Du,mR=(()=>{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(Kn(n))return sC;if(lu(n))return aC;throw jp(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(r){return new(r||e)(q(fn,16))}}static{this.\u0275pipe=Ic({name:"async",type:e,pure:!1,standalone:!0})}}return e})();var cC="mediumDate",uC=new I(""),lC=new I(""),vR=(()=>{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??cC,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return YE(n,s,i||this.locale,a)}catch(s){throw jp(e,s.message)}}static{this.\u0275fac=function(r){return new(r||e)(q(ts,16),q(uC,24),q(lC,24))}}static{this.\u0275pipe=Ic({name:"date",type:e,pure:!0,standalone:!0})}}return e})();var Vp=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=lt({type:e})}static{this.\u0275inj=ut({})}}return e})(),Su="browser",dC="server";function fC(e){return e===Su}function ps(e){return e===dC}var Up=(()=>{class e{static{this.\u0275prov=y({token:e,providedIn:"root",factory:()=>fC(p(et))?new Iu(p(fe),window):new Eu})}}return e})(),Iu=class{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let n=hC(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}};function hC(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}var Eu=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},Jn=class{};var Pr=class{},ms=class{},wt=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` +`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var _u=class{encodeKey(t){return Bp(t)}encodeValue(t){return Bp(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function pC(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var gC=/%(\d[a-f0-9])/gi,mC={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Bp(e){return encodeURIComponent(e).replace(gC,(t,n)=>mC[n]??t)}function gs(e){return`${e}`}var Bt=class e{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new _u,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=pC(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(gs):[gs(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(gs(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(gs(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 xu=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 vC(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Hp(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function zp(e){return typeof Blob<"u"&&e instanceof Blob}function Gp(e){return typeof FormData<"u"&&e instanceof FormData}function yC(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Or=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(vC(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 wt,this.context??=new xu,!this.params)this.params=new Bt,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":ah.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),l)),new e(n,r,s,{params:l,headers:u,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}},Ht=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}(Ht||{}),kr=class{constructor(t,n=200,r="OK"){this.headers=t.headers||new wt,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}},vs=class e extends kr{constructor(t={}){super(t),this.type=Ht.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})}},Fr=class e extends kr{constructor(t={}){super(t),this.type=Ht.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})}},$t=class extends kr{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}},Qp=200,DC=204;function Tu(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 Ru=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Or)i=n;else{let c;o.headers instanceof wt?c=o.headers:c=new wt(o.headers);let u;o.params&&(o.params instanceof Bt?u=o.params:u=new Bt({fromObject:o.params})),i=new Or(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=C(i).pipe(ot(c=>this.handler.handle(c)));if(n instanceof Or||o.observe==="events")return s;let a=s.pipe(pe(c=>c instanceof Fr));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(S(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(S(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(S(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return a.pipe(S(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Bt().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,Tu(o,r))}post(n,r,o={}){return this.request("POST",n,Tu(o,r))}put(n,r,o={}){return this.request("PUT",n,Tu(o,r))}static{this.\u0275fac=function(r){return new(r||e)(w(Pr))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),wC=/^\)\]\}',?\n/,IC="X-Request-URL";function qp(e){if(e.url)return e.url;let t=IC.toLocaleLowerCase();return e.headers.get(t)}var EC=(()=>{class e{constructor(){this.fetchImpl=p(Nu,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n)),this.ngZone=p($)}handle(n){return new P(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(Au,i=>r.error(new $t({error:i}))),()=>o.abort()})}doRequest(n,r,o){return so(this,null,function*(){let i=this.createRequestInit(n),s;try{let f=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,m({signal:r},i)));CC(f),o.next({type:Ht.Sent}),s=yield f}catch(f){o.error(new $t({error:f,status:f.status??0,statusText:f.statusText,url:n.urlWithParams,headers:f.headers}));return}let a=new wt(s.headers),c=s.statusText,u=qp(s)??n.urlWithParams,l=s.status,d=null;if(n.reportProgress&&o.next(new vs({headers:a,status:l,statusText:c,url:u})),s.body){let f=s.headers.get("content-length"),g=[],v=s.body.getReader(),E=0,x,Y,F=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>so(this,null,function*(){for(;;){let{done:Ie,value:ee}=yield v.read();if(Ie)break;if(g.push(ee),E+=ee.length,n.reportProgress){Y=n.responseType==="text"?(Y??"")+(x??=new TextDecoder).decode(ee,{stream:!0}):void 0;let nt=()=>o.next({type:Ht.DownloadProgress,total:f?+f:void 0,loaded:E,partialText:Y});F?F.run(nt):nt()}}}));let ie=this.concatChunks(g,E);try{let Ie=s.headers.get("Content-Type")??"";d=this.parseBody(n,ie,Ie)}catch(Ie){o.error(new $t({error:Ie,headers:new wt(s.headers),status:s.status,statusText:s.statusText,url:qp(s)??n.urlWithParams}));return}}l===0&&(l=d?Qp:0),l>=200&&l<300?(o.next(new Fr({body:d,headers:a,status:l,statusText:c,url:u})),o.complete()):o.error(new $t({error:d,headers:a,status:l,statusText:c,url:u}))})}parseBody(n,r,o){switch(n.responseType){case"json":let i=new TextDecoder().decode(r).replace(wC,"");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=y({token:e,factory:e.\u0275fac})}}return e})(),Nu=class{};function Au(){}function CC(e){e.then(Au,Au)}function Kp(e,t){return t(e)}function bC(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function MC(e,t,n){return(r,o)=>Pe(n,()=>t(r,i=>e(i,o)))}var SC=new I(""),Ou=new I(""),TC=new I(""),Jp=new I("",{providedIn:"root",factory:()=>!0});function _C(){let e=null;return(t,n)=>{e===null&&(e=(p(SC,{optional:!0})??[]).reduceRight(bC,Kp));let r=p(ht);if(p(Jp)){let i=r.add();return e(t,n).pipe(_t(()=>r.remove(i)))}else return e(t,n)}}var Wp=(()=>{class e extends Pr{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=p(ht),this.contributeToStability=p(Jp)}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Ou),...this.injector.get(TC,[])]));this.chain=r.reduceRight((o,i)=>MC(o,i,this.injector),Kp)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(_t(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||e)(w(ms),w(De))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();var xC=/^\)\]\}',?\n/;function NC(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var Zp=(()=>{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(ge(()=>new P(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((v,E)=>s.setRequestHeader(v,E.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let v=n.detectContentTypeHeader();v!==null&&s.setRequestHeader("Content-Type",v)}if(n.responseType){let v=n.responseType.toLowerCase();s.responseType=v!=="json"?v:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let v=s.statusText||"OK",E=new wt(s.getAllResponseHeaders()),x=NC(s)||n.url;return c=new vs({headers:E,status:s.status,statusText:v,url:x}),c},l=()=>{let{headers:v,status:E,statusText:x,url:Y}=u(),F=null;E!==DC&&(F=typeof s.response>"u"?s.responseText:s.response),E===0&&(E=F?Qp:0);let ie=E>=200&&E<300;if(n.responseType==="json"&&typeof F=="string"){let Ie=F;F=F.replace(xC,"");try{F=F!==""?JSON.parse(F):null}catch(ee){F=Ie,ie&&(ie=!1,F={error:ee,text:F})}}ie?(i.next(new Fr({body:F,headers:v,status:E,statusText:x,url:Y||void 0})),i.complete()):i.error(new $t({error:F,headers:v,status:E,statusText:x,url:Y||void 0}))},d=v=>{let{url:E}=u(),x=new $t({error:v,status:s.status||0,statusText:s.statusText||"Unknown Error",url:E||void 0});i.error(x)},h=!1,f=v=>{h||(i.next(u()),h=!0);let E={type:Ht.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(E.total=v.total),n.responseType==="text"&&s.responseText&&(E.partialText=s.responseText),i.next(E)},g=v=>{let E={type:Ht.UploadProgress,loaded:v.loaded};v.lengthComputable&&(E.total=v.total),i.next(E)};return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",f),a!==null&&s.upload&&s.upload.addEventListener("progress",g)),s.send(a),i.next({type:Ht.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),a!==null&&s.upload&&s.upload.removeEventListener("progress",g)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||e)(w(Jn))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),Xp=new I(""),AC="XSRF-TOKEN",RC=new I("",{providedIn:"root",factory:()=>AC}),OC="X-XSRF-TOKEN",PC=new I("",{providedIn:"root",factory:()=>OC}),ys=class{},kC=(()=>{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=hs(n,this.cookieName),this.lastCookieString=n),this.lastToken}static{this.\u0275fac=function(r){return new(r||e)(w(fe),w(et),w(RC))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();function FC(e,t){let n=e.url.toLowerCase();if(!p(Xp)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=p(ys).getToken(),o=p(PC);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var eg=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(eg||{});function LC(e,t){return{\u0275kind:e,\u0275providers:t}}function jC(...e){let t=[Ru,Zp,Wp,{provide:Pr,useExisting:Wp},{provide:ms,useFactory:()=>p(EC,{optional:!0})??p(Zp)},{provide:Ou,useValue:FC,multi:!0},{provide:Xp,useValue:!0},{provide:ys,useClass:kC}];for(let n of e)t.push(...n.\u0275providers);return Ai(t)}var Yp=new I("");function VC(){return LC(eg.LegacyInterceptors,[{provide:Yp,useFactory:_C},{provide:Ou,useExisting:Yp,multi:!0}])}var AR=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=lt({type:e})}static{this.\u0275inj=ut({providers:[jC(VC())]})}}return e})();var Fu=class extends ls{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Lu=class e extends Fu{static makeCurrent(){Ap(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=$C();return n==null?null:BC(n)}resetBaseElement(){Lr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return hs(document.cookie,t)}},Lr=null;function $C(){return Lr=Lr||document.querySelector("base"),Lr?Lr.getAttribute("href"):null}function BC(e){return new URL(e,document.baseURI).pathname}var ju=class{addToWindow(t){me.getAngularTestability=(r,o=!0)=>{let i=t.findTestabilityInTree(r,o);if(i==null)throw new D(5103,!1);return i},me.getAllAngularTestabilities=()=>t.getAllTestabilities(),me.getAllAngularRootElements=()=>t.getAllRootElements();let n=r=>{let o=me.getAllAngularTestabilities(),i=o.length,s=function(){i--,i==0&&r()};o.forEach(a=>{a.whenStable(s)})};me.frameworkStabilizers||(me.frameworkStabilizers=[]),me.frameworkStabilizers.push(n)}findTestabilityInTree(t,n,r){if(n==null)return null;let o=t.getTestability(n);return o??(r?hn().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},HC=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),Vu=new I(""),og=(()=>{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)(w(Vu),w($))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),Ds=class{constructor(t){this._doc=t}},Pu="ng-app-id",ig=(()=>{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=ps(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[${Pu}="${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(Pu),i;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Pu,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)(w(fe),w(Bi),w(Vc,8),w(et))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),ku={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"},$u=/%COMP%/g,sg="%COMP%",zC=`_nghost-${sg}`,GC=`_ngcontent-${sg}`,qC=!0,WC=new I("",{providedIn:"root",factory:()=>qC});function ZC(e){return GC.replace($u,e)}function YC(e){return zC.replace($u,e)}function ag(e,t){return t.map(n=>n.replace($u,e))}var tg=(()=>{class e{constructor(n,r,o,i,s,a,c,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=ps(a),this.defaultRenderer=new jr(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Qe.ShadowDom&&(r=G(m({},r),{encapsulation:Qe.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof ws?o.applyToHost(n):o instanceof Vr&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Qe.Emulated:i=new ws(c,u,r,this.appId,l,s,a,d);break;case Qe.ShadowDom:return new Uu(c,u,n,r,s,a,this.nonce,d);default:i=new Vr(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(w(og),w(ig),w(Bi),w(WC),w(fe),w(et),w($),w(Vc))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),jr=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(ku[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(ng(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(ng(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=ku[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=ku[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&(ct.DashCase|ct.Important)?t.style.setProperty(n,r,o&ct.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ct.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=hn().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 ng(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Uu=class extends jr{constructor(t,n,r,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=ag(o.id,o.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Vr=class extends jr{constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?ag(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ws=class extends Vr{constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=ZC(u),this.hostAttr=YC(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}},QC=(()=>{class e extends Ds{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)(w(fe))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})(),rg=["alt","control","meta","shift"],KC={"\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"},JC={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},XC=(()=>{class e extends Ds{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(()=>hn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),rg.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=KC[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"),rg.forEach(s=>{if(s!==o){let a=JC[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static{this.\u0275fac=function(r){return new(r||e)(w(fe))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();function eb(){Lu.makeCurrent()}function tb(){return new at}function nb(){return vh(document),document}var rb=[{provide:et,useValue:Su},{provide:jc,useValue:eb,multi:!0},{provide:fe,useFactory:nb,deps:[]}],KR=du(Ip,"browser",rb),ob=new I(""),ib=[{provide:Nr,useClass:ju,deps:[]},{provide:cu,useClass:Qi,deps:[$,Ki,Nr]},{provide:Qi,useClass:Qi,deps:[$,Ki,Nr]}],sb=[{provide:Ri,useValue:"root"},{provide:at,useFactory:tb,deps:[]},{provide:Vu,useClass:QC,multi:!0,deps:[fe,$,et]},{provide:Vu,useClass:XC,multi:!0,deps:[fe]},tg,ig,og,{provide:Hn,useExisting:tg},{provide:Jn,useClass:HC,deps:[]},[]],JR=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Bi,useValue:n.appId}]}}static{this.\u0275fac=function(r){return new(r||e)(w(ob,12))}}static{this.\u0275mod=lt({type:e})}static{this.\u0275inj=ut({providers:[...sb,...ib],imports:[Vp,Ep]})}}return e})();var cg=(()=>{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)(w(fe))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var _="primary",Xr=Symbol("RouteTitle"),qu=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 ir(e){return new qu(e)}function cb(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 Ig(e){return e.length>0?e[e.length-1]:null}function Gt(e){return ia(e)?e:Kn(e)?W(Promise.resolve(e)):C(e)}var lb={exact:Cg,subset:bg},Eg={exact:db,subset:fb,ignored:()=>!0};function ug(e,t,n){return lb[n.paths](e.root,t.root,n.matrixParams)&&Eg[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function db(e,t){return tt(e,t)}function Cg(e,t,n){if(!gn(e.segments,t.segments)||!Cs(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Cg(e.children[r],t.children[r],n))return!1;return!0}function fb(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>wg(e[n],t[n]))}function bg(e,t,n){return Mg(e,t,t.segments,n)}function Mg(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!gn(o,n)||t.hasChildren()||!Cs(o,n,r))}else if(e.segments.length===n.length){if(!gn(e.segments,n)||!Cs(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!bg(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!gn(e.segments,o)||!Cs(e.segments,o,r)||!e.children[_]?!1:Mg(e.children[_],t,i,r)}}function Cs(e,t,n){return t.every((r,o)=>Eg[n](e[o].parameters,r.parameters))}var Et=class{constructor(t=new U([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=ir(this.queryParams),this._queryParamMap}toString(){return gb.serialize(this)}},U=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bs(this)}},pn=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=ir(this.parameters),this._parameterMap}toString(){return Tg(this)}};function hb(e,t){return gn(e,t)&&e.every((n,r)=>tt(n.parameters,t[r].parameters))}function gn(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function pb(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===_&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==_&&(n=n.concat(t(o,r)))}),n}var eo=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>new sr,providedIn:"root"})}}return e})(),sr=class{parse(t){let n=new Yu(t);return new Et(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Ur(t.root,!0)}`,r=yb(t.queryParams),o=typeof t.fragment=="string"?`#${mb(t.fragment)}`:"";return`${n}${r}${o}`}},gb=new sr;function bs(e){return e.segments.map(t=>Tg(t)).join("/")}function Ur(e,t){if(!e.hasChildren())return bs(e);if(t){let n=e.children[_]?Ur(e.children[_],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==_&&r.push(`${o}:${Ur(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=pb(e,(r,o)=>o===_?[Ur(e.children[_],!1)]:[`${o}:${Ur(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[_]!=null?`${bs(e)}/${n[0]}`:`${bs(e)}/(${n.join("//")})`}}function Sg(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Is(e){return Sg(e).replace(/%3B/gi,";")}function mb(e){return encodeURI(e)}function Zu(e){return Sg(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ms(e){return decodeURIComponent(e)}function lg(e){return Ms(e.replace(/\+/g,"%20"))}function Tg(e){return`${Zu(e.path)}${vb(e.parameters)}`}function vb(e){return Object.entries(e).map(([t,n])=>`;${Zu(t)}=${Zu(n)}`).join("")}function yb(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Is(n)}=${Is(o)}`).join("&"):`${Is(n)}=${Is(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var Db=/^[^\/()?;#]+/;function Bu(e){let t=e.match(Db);return t?t[0]:""}var wb=/^[^\/()?;=#]+/;function Ib(e){let t=e.match(wb);return t?t[0]:""}var Eb=/^[^=?&#]+/;function Cb(e){let t=e.match(Eb);return t?t[0]:""}var bb=/^[^&#]+/;function Mb(e){let t=e.match(bb);return t?t[0]:""}var Yu=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new U([],{}):new U([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[_]=new U(t,n)),r}parseSegment(){let t=Bu(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new D(4009,!1);return this.capture(t),new pn(Ms(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=Ib(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=Bu(this.remaining);o&&(r=o,this.capture(r))}t[Ms(n)]=Ms(r)}parseQueryParam(t){let n=Cb(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=Mb(this.remaining);s&&(r=s,this.capture(r))}let o=lg(n),i=lg(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=Bu(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=_);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[_]:new U([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new D(4011,!1)}};function _g(e){return e.segments.length>0?new U([],{[_]:e}):e}function xg(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=xg(o);if(r===_&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new U(e.segments,t);return Sb(n)}function Sb(e){if(e.numberOfChildren===1&&e.children[_]){let t=e.children[_];return new U(e.segments.concat(t.segments),t.children)}return e}function mn(e){return e instanceof Et}function Tb(e,t,n=null,r=null){let o=Ng(e);return Ag(o,t,n,r)}function Ng(e){let t;function n(i){let s={};for(let c of i.children){let u=n(c);s[c.outlet]=u}let a=new U(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=_g(r);return t??o}function Ag(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return Hu(o,o,o,n,r);let i=_b(t);if(i.toRoot())return Hu(o,o,new U([],{}),n,r);let s=xb(i,o,e),a=s.processChildren?Hr(s.segmentGroup,s.index,i.commands):Og(s.segmentGroup,s.index,i.commands);return Hu(o,s.segmentGroup,a,n,r)}function Ss(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function qr(e){return typeof e=="object"&&e!=null&&e.outlets}function Hu(e,t,n,r,o){let i={};r&&Object.entries(r).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;e===t?s=n:s=Rg(e,t,n);let a=_g(xg(s));return new Et(a,i,o)}function Rg(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=Rg(i,t,n)}),new U(e.segments,r)}var Ts=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Ss(r[0]))throw new D(4003,!1);let o=r.find(qr);if(o&&o!==Ig(r))throw new D(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function _b(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Ts(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new Ts(n,t,r)}var nr=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function xb(e,t,n){if(e.isAbsolute)return new nr(t,!0,0);if(!n)return new nr(t,!1,NaN);if(n.parent===null)return new nr(n,!0,0);let r=Ss(e.commands[0])?0:1,o=n.segments.length-1+r;return Nb(n,o,e.numberOfDoubleDots)}function Nb(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 nr(r,!1,o-i)}function Ab(e){return qr(e[0])?e[0].outlets:{[_]:e}}function Og(e,t,n){if(e??=new U([],{}),e.segments.length===0&&e.hasChildren())return Hr(e,t,n);let r=Rb(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndexi!==_)&&e.children[_]&&e.numberOfChildren===1&&e.children[_].segments.length===0){let i=Hr(e.children[_],t,n);return new U(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Og(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new U(e.segments,o)}}function Rb(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;let s=e.segments[o],a=n[r];if(qr(a))break;let c=`${a}`,u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!fg(c,u,s))return i;r+=2}else{if(!fg(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function Qu(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Qu(new U([],{}),0,r))}),t}function dg(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function fg(e,t,n){return e==n.path&&tt(t,n.parameters)}var zr="imperative",oe=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}(oe||{}),je=class{constructor(t,n){this.id=t,this.url=n}},ar=class extends je{constructor(t,n,r="imperative",o=null){super(t,n),this.type=oe.NavigationStart,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},qe=class extends je{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=oe.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},xe=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(xe||{}),_s=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(_s||{}),It=class extends je{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=oe.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},zt=class extends je{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=oe.NavigationSkipped}},Wr=class extends je{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=oe.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},xs=class extends je{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=oe.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ku=class extends je{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=oe.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ju=class extends je{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=oe.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Xu=class extends je{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=oe.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},el=class extends je{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=oe.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},tl=class{constructor(t){this.route=t,this.type=oe.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},nl=class{constructor(t){this.route=t,this.type=oe.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},rl=class{constructor(t){this.snapshot=t,this.type=oe.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ol=class{constructor(t){this.snapshot=t,this.type=oe.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},il=class{constructor(t){this.snapshot=t,this.type=oe.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},sl=class{constructor(t){this.snapshot=t,this.type=oe.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ns=class{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=oe.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},Zr=class{},cr=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function Pb(e,t){return e.providers&&!e._injector&&(e._injector=Zi(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Ge(e){return e.outlet||_}function kb(e,t){let n=e.filter(r=>Ge(r)===t);return n.push(...e.filter(r=>Ge(r)!==t)),n}function to(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 al=class{get injector(){return to(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new no(this.rootInjector),this.attachRef=null}},no=(()=>{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 al(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)(w(De))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),As=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=cl(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=cl(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=ul(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return ul(t,this._root).map(n=>n.value)}};function cl(e,t){if(e===t.value)return t;for(let n of t.children){let r=cl(e,n);if(r)return r}return null}function ul(e,t){if(e===t.value)return[t];for(let n of t.children){let r=ul(e,n);if(r.length)return r.unshift(t),r}return[]}var _e=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function tr(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Rs=class extends As{constructor(t,n){super(t),this.snapshot=n,yl(this,t)}toString(){return this.snapshot.toString()}};function Pg(e){let t=Fb(e),n=new se([new pn("",{})]),r=new se({}),o=new se({}),i=new se({}),s=new se(""),a=new vn(n,r,i,s,o,_,e,t.root);return a.snapshot=t.root,new Rs(new _e(a,[]),t)}function Fb(e){let t={},n={},r={},o="",i=new rr([],t,r,o,n,_,e,null,{});return new Ps("",new _e(i,[]))}var vn=class{constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(S(u=>u[Xr]))??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(S(t=>ir(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(S(t=>ir(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Os(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:m(m({},t.params),e.params),data:m(m({},t.data),e.data),resolve:m(m(m(m({},e.data),t.data),o?.data),e._resolvedData)}:r={params:m({},e.params),data:m({},e.data),resolve:m(m({},e.data),e._resolvedData??{})},o&&Fg(o)&&(r.resolve[Xr]=o.title),r}var rr=class{get title(){return this.data?.[Xr]}constructor(t,n,r,o,i,s,a,c,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ir(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ir(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}')`}},Ps=class extends As{constructor(t,n){super(n),this.url=t,yl(this,n)}toString(){return kg(this._root)}};function yl(e,t){t.value._routerState=e,t.children.forEach(n=>yl(e,n))}function kg(e){let t=e.children.length>0?` { ${e.children.map(kg).join(", ")} } `:"";return`${e.value}${t}`}function zu(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,tt(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),tt(t.params,n.params)||e.paramsSubject.next(n.params),ub(t.url,n.url)||e.urlSubject.next(n.url),tt(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function ll(e,t){let n=tt(e.params,t.params)&&hb(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||ll(e.parent,t.parent))}function Fg(e){return typeof e.title=="string"||e.title===null}var Lb=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=_,this.activateEvents=new ae,this.deactivateEvents=new ae,this.attachEvents=new ae,this.detachEvents=new ae,this.parentContexts=p(no),this.location=p(Vt),this.changeDetector=p(fn),this.inputBinder=p(Vs,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new D(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new D(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new D(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new D(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new dl(n,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=ln({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Wn]})}}return e})(),dl=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===vn?this.route:t===no?this.childContexts:this.parent.get(t,n)}},Vs=new I(""),hg=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:r}=n,o=gr([r.queryParams,r.params,r.data]).pipe(ge(([i,s,a],c)=>(a=m(m(m({},i),s),a),c===0?C(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let s=Cp(r.component);if(!s){this.unsubscribeFromRouteData(n);return}for(let{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,i[a])});this.outletDataSubscriptions.set(n,o)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();function jb(e,t,n){let r=Yr(e,t._root,n?n._root:void 0);return new Rs(r,t)}function Yr(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=Vb(e,t,n);return new _e(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Yr(e,a)),s}}let r=Ub(t.value),o=t.children.map(i=>Yr(e,i));return new _e(r,o)}}function Vb(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Yr(e,r,o);return Yr(e,r)})}function Ub(e){return new vn(new se(e.url),new se(e.params),new se(e.queryParams),new se(e.fragment),new se(e.data),e.outlet,e.component,e)}var Qr=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Lg="ngNavigationCancelingError";function ks(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=mn(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=jg(!1,xe.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function jg(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Lg]=!0,n.cancellationCode=t,n}function $b(e){return Vg(e)&&mn(e.url)}function Vg(e){return!!e&&e[Lg]}var Bb=(e,t,n,r)=>S(o=>(new fl(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),fl=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),zu(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=tr(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=tr(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=tr(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=tr(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new sl(i.value.snapshot))}),t.children.length&&this.forwardEvent(new ol(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(zu(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),zu(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},Fs=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},or=class{constructor(t,n){this.component=t,this.route=n}};function Hb(e,t,n){let r=e._root,o=t?t._root:null;return $r(r,o,n,[r.value])}function zb(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function lr(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!nf(e)?e:t.get(e):r}function $r(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=tr(t);return e.children.forEach(s=>{Gb(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Gr(a,n.getContext(s),o)),o}function Gb(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=qb(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Fs(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?$r(e,t,a?a.children:null,r,o):$r(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new or(a.outlet.component,s))}else s&&Gr(t,a,o),o.canActivateChecks.push(new Fs(r)),i.component?$r(e,null,a?a.children:null,r,o):$r(e,null,n,r,o);return o}function qb(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!gn(e.url,t.url);case"pathParamsOrQueryParamsChange":return!gn(e.url,t.url)||!tt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ll(e,t)||!tt(e.queryParams,t.queryParams);case"paramsChange":default:return!ll(e,t)}}function Gr(e,t,n){let r=tr(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?Gr(s,t.children.getContext(i),n):Gr(s,null,n):Gr(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new or(t.outlet.component,o)):n.canDeactivateChecks.push(new or(null,o)):n.canDeactivateChecks.push(new or(null,o))}function ro(e){return typeof e=="function"}function Wb(e){return typeof e=="boolean"}function Zb(e){return e&&ro(e.canLoad)}function Yb(e){return e&&ro(e.canActivate)}function Qb(e){return e&&ro(e.canActivateChild)}function Kb(e){return e&&ro(e.canDeactivate)}function Jb(e){return e&&ro(e.canMatch)}function Ug(e){return e instanceof rt||e?.name==="EmptyError"}var Es=Symbol("INITIAL_VALUE");function ur(){return ge(e=>gr(e.map(t=>t.pipe(it(1),ua(Es)))).pipe(S(t=>{for(let n of t)if(n!==!0){if(n===Es)return Es;if(n===!1||Xb(n))return n}return!0}),pe(t=>t!==Es),it(1)))}function Xb(e){return mn(e)||e instanceof Qr}function eM(e,t){return J(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?C(G(m({},n),{guardsResult:!0})):tM(s,r,o,e).pipe(J(a=>a&&Wb(a)?nM(r,i,e,t):C(a)),S(a=>G(m({},n),{guardsResult:a})))})}function tM(e,t,n,r){return W(e).pipe(J(o=>aM(o.component,o.route,n,t,r)),We(o=>o!==!0,!0))}function nM(e,t,n,r){return W(t).pipe(ot(o=>Tn(oM(o.route.parent,r),rM(o.route,r),sM(e,o.path,n),iM(e,o.route,n))),We(o=>o!==!0,!0))}function rM(e,t){return e!==null&&t&&t(new il(e)),C(!0)}function oM(e,t){return e!==null&&t&&t(new rl(e)),C(!0)}function iM(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return C(!0);let o=r.map(i=>jo(()=>{let s=to(t)??n,a=lr(i,s),c=Yb(a)?a.canActivate(t,e):Pe(s,()=>a(t,e));return Gt(c).pipe(We())}));return C(o).pipe(ur())}function sM(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>zb(s)).filter(s=>s!==null).map(s=>jo(()=>{let a=s.guards.map(c=>{let u=to(s.node)??n,l=lr(c,u),d=Qb(l)?l.canActivateChild(r,e):Pe(u,()=>l(r,e));return Gt(d).pipe(We())});return C(a).pipe(ur())}));return C(i).pipe(ur())}function aM(e,t,n,r,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return C(!0);let s=i.map(a=>{let c=to(t)??o,u=lr(a,c),l=Kb(u)?u.canDeactivate(e,t,n,r):Pe(c,()=>u(e,t,n,r));return Gt(l).pipe(We())});return C(s).pipe(ur())}function cM(e,t,n,r){let o=t.canLoad;if(o===void 0||o.length===0)return C(!0);let i=o.map(s=>{let a=lr(s,e),c=Zb(a)?a.canLoad(t,n):Pe(e,()=>a(t,n));return Gt(c)});return C(i).pipe(ur(),$g(r))}function $g(e){return ea(ne(t=>{if(typeof t!="boolean")throw ks(e,t)}),S(t=>t===!0))}function uM(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return C(!0);let i=o.map(s=>{let a=lr(s,e),c=Jb(a)?a.canMatch(t,n):Pe(e,()=>a(t,n));return Gt(c)});return C(i).pipe(ur(),$g(r))}var Kr=class{constructor(t){this.segmentGroup=t||null}},Jr=class extends Error{constructor(t){super(),this.urlTree=t}};function er(e){return Sn(new Kr(e))}function lM(e){return Sn(new D(4e3,!1))}function dM(e){return Sn(jg(!1,xe.GuardRejected))}var hl=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[_])return lM(`${t.redirectTo}`);o=o.children[_]}}applyRedirectCommands(t,n,r,o,i){if(typeof n!="string"){let a=n,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:g,title:v}=o,E=Pe(i,()=>a({params:f,data:g,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:v}));if(E instanceof Et)throw new Jr(E);n=E}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new Jr(s);return s}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new Et(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new U(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new D(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}},pl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function fM(e,t,n,r,o){let i=Bg(e,t,n);return i.matched?(r=Pb(t,r),uM(r,t,n,o).pipe(S(s=>s===!0?i:m({},pl)))):C(i)}function Bg(e,t,n){if(t.path==="**")return hM(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?m({},pl):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||cb)(n,e,t);if(!o)return m({},pl);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?m(m({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function hM(e){return{matched:!0,parameters:e.length>0?Ig(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function pg(e,t,n,r){return n.length>0&&mM(e,n,r)?{segmentGroup:new U(t,gM(r,new U(n,e.children))),slicedSegments:[]}:n.length===0&&vM(e,n,r)?{segmentGroup:new U(e.segments,pM(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new U(e.segments,e.children),slicedSegments:n}}function pM(e,t,n,r){let o={};for(let i of n)if(Us(e,t,i)&&!r[Ge(i)]){let s=new U([],{});o[Ge(i)]=s}return m(m({},r),o)}function gM(e,t){let n={};n[_]=t;for(let r of e)if(r.path===""&&Ge(r)!==_){let o=new U([],{});n[Ge(r)]=o}return n}function mM(e,t,n){return n.some(r=>Us(e,t,r)&&Ge(r)!==_)}function vM(e,t,n){return n.some(r=>Us(e,t,r))}function Us(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function yM(e,t,n){return t.length===0&&!e.children[n]}var gl=class{};function DM(e,t,n,r,o,i,s="emptyOnly"){return new ml(e,t,n,r,o,s,i).recognize()}var wM=31,ml=class{constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new hl(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new D(4002,`'${t.segmentGroup}'`)}recognize(){let t=pg(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(S(({children:n,rootSnapshot:r})=>{let o=new _e(r,n),i=new Ps("",o),s=Tb(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 rr([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),_,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,_,n).pipe(S(r=>({children:r,rootSnapshot:n})),Ne(r=>{if(r instanceof Jr)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Kr?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=>s instanceof _e?[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(ot(s=>{let a=r.children[s],c=kb(n,s);return this.processSegmentGroup(t,c,a,s,o)}),ca((s,a)=>(s.push(...a),s)),Tt(null),aa(),J(s=>{if(s===null)return er(r);let a=Hg(s);return IM(a),C(a)}))}processSegment(t,n,r,o,i,s,a){return W(n).pipe(ot(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a).pipe(Ne(u=>{if(u instanceof Kr)return C(null);throw u}))),We(c=>!!c),Ne(c=>{if(Ug(c))return yM(r,o,i)?C(new gl):er(r);throw c}))}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return Ge(r)!==s&&(s===_||!Us(o,i,r))?er(o):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,r,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c):er(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=Bg(n,o,i);if(!c)return er(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>wM&&(this.allowRedirects=!1));let f=new rr(i,u,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,gg(o),Ge(o),o.component??o._loadedComponent??null,o,mg(o)),g=Os(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(g.params),f.data=Object.freeze(g.data);let v=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(o,v).pipe(J(E=>this.processSegment(t,r,n,E.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a=fM(n,r,o,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(ge(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,o).pipe(ge(({routes:u})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=c,g=new rr(h,d,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,gg(r),Ge(r),r.component??r._loadedComponent??null,r,mg(r)),v=Os(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(v.params),g.data=Object.freeze(v.data);let{segmentGroup:E,slicedSegments:x}=pg(n,h,f,u);if(x.length===0&&E.hasChildren())return this.processChildren(l,u,E,g).pipe(S(F=>new _e(g,F)));if(u.length===0&&x.length===0)return C(new _e(g,[]));let Y=Ge(r)===i;return this.processSegment(l,u,E,x,Y?_:i,!0,g).pipe(S(F=>new _e(g,F instanceof _e?[F]:[])))}))):er(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}):cM(t,n,r,this.urlSerializer).pipe(J(o=>o?this.configLoader.loadChildren(t,n).pipe(ne(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):dM(n))):C({routes:[],injector:t})}};function IM(e){e.sort((t,n)=>t.value.outlet===_?-1:n.value.outlet===_?1:t.value.outlet.localeCompare(n.value.outlet))}function EM(e){let t=e.value.routeConfig;return t&&t.path===""}function Hg(e){let t=[],n=new Set;for(let r of e){if(!EM(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=Hg(r.children);t.push(new _e(r.value,o))}return t.filter(r=>!n.has(r))}function gg(e){return e.data||{}}function mg(e){return e.resolve||{}}function CM(e,t,n,r,o,i){return J(s=>DM(e,t,n,r,s.extractedUrl,o,i).pipe(S(({state:a,tree:c})=>G(m({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function bM(e,t){return J(n=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return C(n);let i=new Set(o.map(c=>c.route)),s=new Set;for(let c of i)if(!s.has(c))for(let u of zg(c))s.add(u);let a=0;return W(s).pipe(ot(c=>i.has(c)?MM(c,r,e,t):(c.data=Os(c,c.parent,e).resolve,C(void 0))),ne(()=>a++),_n(1),J(c=>a===s.size?C(n):be))})}function zg(e){let t=e.children.map(n=>zg(n)).flat();return[e,...t]}function MM(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!Fg(o)&&(i[Xr]=o.title),SM(i,e,t,r).pipe(S(s=>(e._resolvedData=s,e.data=Os(e,e.parent,n).resolve,null)))}function SM(e,t,n,r){let o=Wu(e);if(o.length===0)return C({});let i={};return W(o).pipe(J(s=>TM(e[s],t,n,r).pipe(We(),ne(a=>{if(a instanceof Qr)throw ks(new sr,a);i[s]=a}))),_n(1),sa(i),Ne(s=>Ug(s)?be:Sn(s)))}function TM(e,t,n,r){let o=to(t)??r,i=lr(e,o),s=i.resolve?i.resolve(t,n):Pe(o,()=>i(t,n));return Gt(s)}function Gu(e){return ge(t=>{let n=e(t);return n?W(n).pipe(S(()=>t)):C(t)})}var Gg=(()=>{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===_);return r}getResolvedTitleForRoute(n){return n.data[Xr]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(_M),providedIn:"root"})}}return e})(),_M=(()=>{class e extends Gg{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)(w(cg))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),oo=new I("",{providedIn:"root",factory:()=>({})}),xM=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=mf({type:e,selectors:[["ng-component"]],standalone:!0,features:[dp],decls:1,vars:0,template:function(r,o){r&1&&su(0,"router-outlet")},dependencies:[Lb],encapsulation:2})}}return e})();function Dl(e){let t=e.children&&e.children.map(Dl),n=t?G(m({},e),{children:t}):m({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==_&&(n.component=xM),n}var Ls=new I(""),wl=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(es)}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=Gt(n.loadComponent()).pipe(S(qg),ne(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),_t(()=>{this.componentLoaders.delete(n)})),o=new bn(r,()=>new ce).pipe(Cn());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=NM(r,this.compiler,n,this.onLoadEndListener).pipe(_t(()=>{this.childrenLoaders.delete(r)})),s=new bn(i,()=>new ce).pipe(Cn());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function NM(e,t,n,r){return Gt(e.loadChildren()).pipe(S(qg),J(o=>o instanceof Cr||Array.isArray(o)?C(o):W(t.compileModuleAsync(o))),S(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(n).injector,s=i.get(Ls,[],{optional:!0,self:!0}).flat()),{routes:s.map(Dl),injector:i}}))}function AM(e){return e&&typeof e=="object"&&"default"in e}function qg(e){return AM(e)?e.default:e}var Il=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(RM),providedIn:"root"})}}return e})(),RM=(()=>{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=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Wg=new I(""),Zg=new I("");function OM(e,t,n){let r=e.get(Zg),o=e.get(fe);return e.get($).runOutsideAngular(()=>{if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let i,s=new Promise(u=>{i=u}),a=o.startViewTransition(()=>(i(),PM(e))),{onViewTransitionCreated:c}=r;return c&&Pe(e,()=>c({transition:a,from:t,to:n})),s})}function PM(e){return new Promise(t=>{ou({read:()=>setTimeout(t)},{injector:e})})}var kM=new I(""),El=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ce,this.transitionAbortSubject=new ce,this.configLoader=p(wl),this.environmentInjector=p(De),this.urlSerializer=p(eo),this.rootContexts=p(no),this.location=p(Xn),this.inputBindingEnabled=p(Vs,{optional:!0})!==null,this.titleStrategy=p(Gg),this.options=p(oo,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(Il),this.createViewTransition=p(Wg,{optional:!0}),this.navigationErrorHandler=p(kM,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>C(void 0),this.rootComponentType=null;let n=o=>this.events.next(new tl(o)),r=o=>this.events.next(new nl(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(G(m(m({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new se({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:zr,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(pe(i=>i.id!==0),S(i=>G(m({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),ge(i=>{let s=!1,a=!1;return C(i).pipe(ge(c=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",xe.SupersededByNewNavigation),be;this.currentTransition=i,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?G(m({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&l!=="reload"){let d="";return this.events.next(new zt(c.id,this.urlSerializer.serialize(c.rawUrl),d,_s.IgnoredSameUrlNavigation)),c.resolve(!1),be}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return C(c).pipe(ge(d=>{let h=this.transitions?.getValue();return this.events.next(new ar(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?be:Promise.resolve(d)}),CM(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ne(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=G(m({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new xs(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:g,extras:v}=c,E=new ar(d,this.urlSerializer.serialize(h),f,g);this.events.next(E);let x=Pg(this.rootComponentType).snapshot;return this.currentTransition=i=G(m({},c),{targetSnapshot:x,urlAfterRedirects:h,extras:G(m({},v),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,C(i)}else{let d="";return this.events.next(new zt(c.id,this.urlSerializer.serialize(c.extractedUrl),d,_s.IgnoredByUrlHandlingStrategy)),c.resolve(!1),be}}),ne(c=>{let u=new Ku(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),S(c=>(this.currentTransition=i=G(m({},c),{guards:Hb(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),i)),eM(this.environmentInjector,c=>this.events.next(c)),ne(c=>{if(i.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw ks(this.urlSerializer,c.guardsResult);let u=new Ju(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),pe(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",xe.GuardRejected),!1)),Gu(c=>{if(c.guards.canActivateChecks.length)return C(c).pipe(ne(u=>{let l=new Xu(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),ge(u=>{let l=!1;return C(u).pipe(bM(this.paramsInheritanceStrategy,this.environmentInjector),ne({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(u,"",xe.NoDataFromResolver)}}))}),ne(u=>{let l=new el(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}))}),Gu(c=>{let u=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(ne(h=>{l.component=h}),S(()=>{})));for(let h of l.children)d.push(...u(h));return d};return gr(u(c.targetSnapshot.root)).pipe(Tt(null),it(1))}),Gu(()=>this.afterPreactivation()),ge(()=>{let{currentSnapshot:c,targetSnapshot:u}=i,l=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return l?W(l).pipe(S(()=>i)):C(i)}),S(c=>{let u=jb(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=i=G(m({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,i}),ne(()=>{this.events.next(new Zr)}),Bb(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),it(1),ne({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new qe(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Uo(this.transitionAbortSubject.pipe(ne(c=>{throw c}))),_t(()=>{!s&&!a&&this.cancelNavigationTransition(i,"",xe.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ne(c=>{if(a=!0,Vg(c))this.events.next(new It(i.id,this.urlSerializer.serialize(i.extractedUrl),c.message,c.cancellationCode)),$b(c)?this.events.next(new cr(c.url,c.navigationBehaviorOptions)):i.resolve(!1);else{let u=new Wr(i.id,this.urlSerializer.serialize(i.extractedUrl),c,i.targetSnapshot??void 0);try{let l=Pe(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof Qr){let{message:d,cancellationCode:h}=ks(this.urlSerializer,l);this.events.next(new It(i.id,this.urlSerializer.serialize(i.extractedUrl),d,h)),this.events.next(new cr(l.redirectTo,l.navigationBehaviorOptions))}else{this.events.next(u);let d=n.errorHandler(c);i.resolve(!!d)}}catch(l){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(l)}}return be}))}))}cancelNavigationTransition(n,r,o){let i=new It(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=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function FM(e){return e!==zr}var LM=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(jM),providedIn:"root"})}}return e})(),vl=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},jM=(()=>{class e extends vl{static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Oc(e)))(o||e)}})()}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Yg=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:()=>p(VM),providedIn:"root"})}}return e})(),VM=(()=>{class e extends Yg{constructor(){super(...arguments),this.location=p(Xn),this.urlSerializer=p(eo),this.options=p(oo,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(Il),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Et,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Pg(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 ar)this.stateMemento=this.createStateMemento();else if(n instanceof zt)this.rawUrlTree=r.initialUrl;else if(n instanceof xs){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 Zr?(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 It&&(n.code===xe.GuardRejected||n.code===xe.NoDataFromResolver)?this.restoreHistory(r):n instanceof Wr?this.restoreHistory(r,!0):n instanceof qe&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=n instanceof Et?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let i=this.browserPageId,s=m(m({},r.extras.state),this.generateNgRouterState(r.id,i));this.location.replaceState(o,"",s)}else{let i=m(m({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",i)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.currentUrlTree===n.finalUrl&&i===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Oc(e)))(o||e)}})()}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Br=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Br||{});function Qg(e,t){e.events.pipe(pe(n=>n instanceof qe||n instanceof It||n instanceof Wr||n instanceof zt),S(n=>n instanceof qe||n instanceof zt?Br.COMPLETE:(n instanceof It?n.code===xe.Redirect||n.code===xe.SupersededByNewNavigation:!1)?Br.REDIRECTING:Br.FAILED),pe(n=>n!==Br.REDIRECTING),it(1)).subscribe(()=>{t()})}function UM(e){throw e}var $M={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},BM={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ct=(()=>{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(Yi),this.stateManager=p(Yg),this.options=p(oo,{optional:!0})||{},this.pendingTasks=p(ht),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(El),this.urlSerializer=p(eo),this.location=p(Xn),this.urlHandlingStrategy=p(Il),this._events=new ce,this.errorHandler=this.options.errorHandler||UM,this.navigated=!1,this.routeReuseStrategy=p(LM),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(Ls,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(Vs,{optional:!0}),this.eventsSubscription=new Z,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 It&&r.code!==xe.Redirect&&r.code!==xe.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof qe)this.navigated=!0;else if(r instanceof cr){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=m({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||FM(o.source)},s);this.scheduleNavigation(a,zr,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}zM(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),zr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){let i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let c=m({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(i.state=c)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Dl),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=m(m({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let h=o?o.snapshot:this.routerState.snapshot.root;d=Ng(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return Ag(d,n,l,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=mn(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,zr,null,r)}navigate(n,r={skipLocationChange:!1}){return HM(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=m({},$M):r===!1?o=m({},BM):o=r,mn(n))return ug(this.currentUrlTree,n,o);let i=this.parseUrl(n);return ug(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((d,h)=>{a=d,c=h});let l=this.pendingTasks.add();return Qg(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function HM(e){for(let t=0;t{class e{constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this.href=null,this.onChanges=new ce,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof qe&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(mn(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,o,i,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(n!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:wh(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,n,r):o.removeAttribute(i,n)}get urlTree(){return this.routerLinkInput===null?null:mn(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(r){return new(r||e)(q(Ct),q(vn),Pc("tabindex"),q(xr),q(pt),q(Dt))}}static{this.\u0275dir=ln({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&au("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&iu("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ar],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ar],replaceUrl:[2,"replaceUrl","replaceUrl",Ar],routerLink:"routerLink"},standalone:!0,features:[nu,Wn]})}}return e})(),mO=(()=>{class e{get isActive(){return this._isActive}constructor(n,r,o,i,s){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ae,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof qe&&this.update()})}ngAfterContentInit(){C(this.links.changes,C(null)).pipe(St()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=W(n).pipe(St()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){let r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let r=GM(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let i=o.urlTree;return i?n.isActive(i,r):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}static{this.\u0275fac=function(r){return new(r||e)(q(Ct),q(pt),q(xr),q(fn),q(vg,8))}}static{this.\u0275dir=ln({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,i){if(r&1&&sp(i,vg,5),r&2){let s;ap(s=cp())&&(o.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Wn]})}}return e})();function GM(e){return!!e.paths}var js=class{};var qM=(()=>{class e{constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(pe(n=>n instanceof qe),ot(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let o=[];for(let i of r){i.providers&&!i._injector&&(i._injector=Zi(i.providers,n,`Route: ${i.path}`));let s=i._injector??n,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&i.canLoad===void 0||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return W(o).pipe(St())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;r.loadChildren&&r.canLoad===void 0?o=this.loader.loadChildren(n,r):o=C(null);let i=o.pipe(J(s=>s===null?C(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return W([i,s]).pipe(St())}else return i})}static{this.\u0275fac=function(r){return new(r||e)(w(Ct),w(es),w(De),w(js),w(wl))}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Kg=new I(""),WM=(()=>{class e{constructor(n,r,o,i,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof ar?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof qe?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof zt&&n.code===_s.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Ns&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Ns(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(r){Oh()}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac})}}return e})();function ZM(e){return e.routerState.root}function io(e,t){return{\u0275kind:e,\u0275providers:t}}function YM(){let e=p(Oe);return t=>{let n=e.get(gt);if(t!==n.components[0])return;let r=e.get(Ct),o=e.get(Jg);e.get(Cl)===1&&r.initialNavigation(),e.get(Xg,null,A.Optional)?.setUpPreloading(),e.get(Kg,null,A.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var Jg=new I("",{factory:()=>new ce}),Cl=new I("",{providedIn:"root",factory:()=>1});function QM(){return io(2,[{provide:Cl,useValue:0},{provide:Ji,multi:!0,deps:[Oe],useFactory:t=>{let n=t.get(Rp,Promise.resolve());return()=>n.then(()=>new Promise(r=>{let o=t.get(Ct),i=t.get(Jg);Qg(o,()=>{r(!0)}),t.get(El).afterPreactivation=()=>(r(!0),i.closed?C(void 0):i),o.initialNavigation()}))}}])}function KM(){return io(3,[{provide:Ji,multi:!0,useFactory:()=>{let t=p(Ct);return()=>{t.setUpLocationChangeListener()}}},{provide:Cl,useValue:2}])}var Xg=new I("");function JM(e){return io(0,[{provide:Xg,useExisting:qM},{provide:js,useExisting:e}])}function XM(){return io(8,[hg,{provide:Vs,useExisting:hg}])}function eS(e){let t=[{provide:Wg,useValue:OM},{provide:Zg,useValue:m({skipNextTransition:!!e?.skipInitialTransition},e)}];return io(9,t)}var yg=new I("ROUTER_FORROOT_GUARD"),tS=[Xn,{provide:eo,useClass:sr},Ct,no,{provide:vn,useFactory:ZM,deps:[Ct]},wl,[]],vO=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[tS,[],{provide:Ls,multi:!0,useValue:n},{provide:yg,useFactory:iS,deps:[[Ct,new Ni,new yc]]},{provide:oo,useValue:r||{}},r?.useHash?rS():oS(),nS(),r?.preloadingStrategy?JM(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?sS(r):[],r?.bindToComponentInputs?XM().\u0275providers:[],r?.enableViewTransitions?eS().\u0275providers:[],aS()]}}static forChild(n){return{ngModule:e,providers:[{provide:Ls,multi:!0,useValue:n}]}}static{this.\u0275fac=function(r){return new(r||e)(w(yg,8))}}static{this.\u0275mod=lt({type:e})}static{this.\u0275inj=ut({})}}return e})();function nS(){return{provide:Kg,useFactory:()=>{let e=p(Up),t=p($),n=p(oo),r=p(El),o=p(eo);return n.scrollOffset&&e.setOffset(n.scrollOffset),new WM(o,r,e,t,n)}}}function rS(){return{provide:Dt,useClass:Pp}}function oS(){return{provide:Dt,useClass:Mu}}function iS(e){return"guarded"}function sS(e){return[e.initialNavigation==="disabled"?KM().\u0275providers:[],e.initialNavigation==="enabledBlocking"?QM().\u0275providers:[]]}var Dg=new I("");function aS(){return[{provide:Dg,useFactory:YM},{provide:Xi,multi:!0,useExisting:Dg}]}var em=class e{constructor(t){this.http=t}apiUrl="https://api5.angular-buch.com";getAll(){return this.http.get(`${this.apiUrl}/books`).pipe(Ne(t=>(console.error(t),C([]))))}getSingle(t){return this.http.get(`${this.apiUrl}/books/${t}`)}remove(t){return this.http.delete(`${this.apiUrl}/books/${t}`)}getAllSearch(t){return this.http.get(`${this.apiUrl}/books/search/${t}`).pipe(Ne(n=>(console.error(n),C([]))))}create(t){return this.http.post(`${this.apiUrl}/books`,t)}update(t){return this.http.put(`${this.apiUrl}/books/${t.isbn}`,t)}check(t){return this.http.get(`${this.apiUrl}/books/${t}/check`)}static \u0275fac=function(n){return new(n||e)(w(Ru))};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})};export{m as a,G as b,ce as c,se as d,W as e,S as f,Om as g,pe as h,Pm as i,km as j,ge as k,Uo as l,ne as m,D as n,ef as o,y as p,ut as q,I as r,w as s,p as t,mf as u,lt as v,ln as w,Ic as x,Wn as y,_A as z,xA as A,Oc as B,ae as C,pt as D,Qy as E,NA as F,q as G,an as H,xr as I,Vt as J,PA as K,rI as L,vI as M,iu as N,NI as O,AI as P,op as Q,ip as R,su as S,GI as T,qI as U,kA as V,au as W,FA as X,LA as Y,jA as Z,oE as _,up as $,VA as aa,dp as ba,UA as ca,$A as da,BA as ea,HA as fa,zA as ga,Kn as ha,GA as ia,hu as ja,hn as ka,pR as la,gR as ma,mR as na,vR as oa,Vp as pa,SC as qa,AR as ra,KR as sa,JR as ta,vn as ua,Lb as va,Ct as wa,vg as xa,mO as ya,vO as za,em as Aa}; diff --git a/chunk-O2QHHITW.js b/chunk-O2QHHITW.js deleted file mode 100644 index a1818c5..0000000 --- a/chunk-O2QHHITW.js +++ /dev/null @@ -1,8 +0,0 @@ -var im=Object.defineProperty,sm=Object.defineProperties;var am=Object.getOwnPropertyDescriptors;var Sl=Object.getOwnPropertySymbols;var cm=Object.prototype.hasOwnProperty,um=Object.prototype.propertyIsEnumerable;var Tl=(t,e,r)=>e in t?im(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,m=(t,e)=>{for(var r in e||={})cm.call(e,r)&&Tl(t,r,e[r]);if(Sl)for(var r of Sl(e))um.call(e,r)&&Tl(t,r,e[r]);return t},q=(t,e)=>sm(t,am(e));var lo=(t,e,r)=>new Promise((n,o)=>{var i=c=>{try{a(r.next(c))}catch(u){o(u)}},s=c=>{try{a(r.throw(c))}catch(u){o(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,s);a((r=r.apply(t,e)).next())});function xl(t,e){return Object.is(t,e)}var ne=null,fo=!1,ho=1,Mt=Symbol("SIGNAL");function k(t){let e=ne;return ne=t,e}function Nl(){return ne}var pr={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 Gs(t){if(fo)throw new Error("");if(ne===null)return;ne.consumerOnSignalRead(t);let e=ne.nextProducerIndex++;if(vo(ne),et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Ws(t){vo(t);for(let e=0;e0}function vo(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Pl(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function kl(t){return t.producerNode!==void 0}function Fl(t){let e=Object.create(fm);e.computation=t;let r=()=>{if(_l(e),Gs(e),e.value===po)throw e.error;return e.value};return r[Mt]=e,r}var Hs=Symbol("UNSET"),zs=Symbol("COMPUTING"),po=Symbol("ERRORED"),fm=q(m({},pr),{value:Hs,dirty:!0,error:null,equal:xl,producerMustRecompute(t){return t.value===Hs||t.value===zs},producerRecomputeValue(t){if(t.value===zs)throw new Error("Detected cycle in computations.");let e=t.value;t.value=zs;let r=go(t),n;try{n=t.computation()}catch(o){n=po,t.error=o}finally{qs(t,r)}if(e!==Hs&&e!==po&&n!==po&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}});function hm(){throw new Error}var Ll=hm;function jl(){Ll()}function Vl(t){Ll=t}var pm=null;function $l(t){let e=Object.create(Bl);e.value=t;let r=()=>(Gs(e),e.value);return r[Mt]=e,r}function Ys(t,e){Rl()||jl(),t.equal(t.value,e)||(t.value=e,gm(t))}function Ul(t,e){Rl()||jl(),Ys(t,e(t.value))}var Bl=q(m({},pr),{equal:xl,value:void 0});function gm(t){t.version++,lm(),Al(t),pm?.()}function S(t){return typeof t=="function"}function En(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var yo=En(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: -${r.map((n,o)=>`${o+1}) ${n.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=r});function Wt(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Y=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let i of r)i.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(S(n))try{n()}catch(i){e=i instanceof yo?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Hl(i)}catch(s){e=e??[],s instanceof yo?e=[...e,...s.errors]:e.push(s)}}if(e)throw new yo(e)}}add(e){var r;if(e&&e!==this)if(this.closed)Hl(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&Wt(r,e)}remove(e){let{_finalizers:r}=this;r&&Wt(r,e),e instanceof t&&e._removeParent(this)}};Y.EMPTY=(()=>{let t=new Y;return t.closed=!0,t})();var Qs=Y.EMPTY;function Do(t){return t instanceof Y||t&&"closed"in t&&S(t.remove)&&S(t.add)&&S(t.unsubscribe)}function Hl(t){S(t)?t():t.unsubscribe()}var Ue={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var In={setTimeout(t,e,...r){let{delegate:n}=In;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=In;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function wo(t){In.setTimeout(()=>{let{onUnhandledError:e}=Ue;if(e)e(t);else throw t})}function gr(){}var zl=Ks("C",void 0,void 0);function Gl(t){return Ks("E",void 0,t)}function ql(t){return Ks("N",t,void 0)}function Ks(t,e,r){return{kind:t,value:e,error:r}}var Zt=null;function Cn(t){if(Ue.useDeprecatedSynchronousErrorHandling){let e=!Zt;if(e&&(Zt={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=Zt;if(Zt=null,r)throw n}}else t()}function Wl(t){Ue.useDeprecatedSynchronousErrorHandling&&Zt&&(Zt.errorThrown=!0,Zt.error=t)}var Yt=class extends Y{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Do(e)&&e.add(this)):this.destination=ym}static create(e,r,n){return new bn(e,r,n)}next(e){this.isStopped?Xs(ql(e),this):this._next(e)}error(e){this.isStopped?Xs(Gl(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Xs(zl,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},mm=Function.prototype.bind;function Js(t,e){return mm.call(t,e)}var ea=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){Eo(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){Eo(n)}else Eo(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){Eo(r)}}},bn=class extends Yt{constructor(e,r,n){super();let o;if(S(e)||!e)o={next:e??void 0,error:r??void 0,complete:n??void 0};else{let i;this&&Ue.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&Js(e.next,i),error:e.error&&Js(e.error,i),complete:e.complete&&Js(e.complete,i)}):o=e}this.destination=new ea(o)}};function Eo(t){Ue.useDeprecatedSynchronousErrorHandling?Wl(t):wo(t)}function vm(t){throw t}function Xs(t,e){let{onStoppedNotification:r}=Ue;r&&In.setTimeout(()=>r(t,e))}var ym={closed:!0,next:gr,error:vm,complete:gr};var Mn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function he(t){return t}function ta(...t){return na(t)}function na(t){return t.length===0?he:t.length===1?t[0]:function(r){return t.reduce((n,o)=>o(n),r)}}var P=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,o){let i=wm(r)?r:new bn(r,n,o);return Cn(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=Zl(n),new n((o,i)=>{let s=new bn({next:a=>{try{r(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[Mn](){return this}pipe(...r){return na(r)(this)}toPromise(r){return r=Zl(r),new r((n,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>n(i))})}}return t.create=e=>new t(e),t})();function Zl(t){var e;return(e=t??Ue.Promise)!==null&&e!==void 0?e:Promise}function Dm(t){return t&&S(t.next)&&S(t.error)&&S(t.complete)}function wm(t){return t&&t instanceof Yt||Dm(t)&&Do(t)}function ra(t){return S(t?.lift)}function O(t){return e=>{if(ra(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function _(t,e,r,n,o){return new oa(t,e,r,n,o)}var oa=class extends Yt{constructor(e,r,n,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(c){e.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Sn(){return O((t,e)=>{let r=null;t._refCount++;let n=_(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let o=t._connection,i=r;r=null,o&&(!i||o===i)&&o.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var Tn=class extends P{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,ra(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new Y;let r=this.getSubject();e.add(this.source.subscribe(_(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=Y.EMPTY)}return e}refCount(){return Sn()(this)}};var Yl=En(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ue=(()=>{class t extends P{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Io(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new Yl}next(r){Cn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){Cn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){Cn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:o,observers:i}=this;return n||o?Qs:(this.currentObservers=null,i.push(r),new Y(()=>{this.currentObservers=null,Wt(i,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:o,isStopped:i}=this;n?r.error(o):i&&r.complete()}asObservable(){let r=new P;return r.source=this,r}}return t.create=(e,r)=>new Io(e,r),t})(),Io=class extends ue{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Qs}};var se=class extends ue{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var ia={now(){return(ia.delegate||Date).now()},delegate:void 0};var Co=class extends Y{constructor(e,r){super()}schedule(e,r=0){return this}};var mr={setInterval(t,e,...r){let{delegate:n}=mr;return n?.setInterval?n.setInterval(t,e,...r):setInterval(t,e,...r)},clearInterval(t){let{delegate:e}=mr;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var bo=class extends Co{constructor(e,r){super(e,r),this.scheduler=e,this.work=r,this.pending=!1}schedule(e,r=0){var n;if(this.closed)return this;this.state=e;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,r)),this.pending=!0,this.delay=r,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(i,this.id,r),this}requestAsyncId(e,r,n=0){return mr.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,r,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&mr.clearInterval(r)}execute(e,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,r){let n=!1,o;try{this.work(e)}catch(i){n=!0,o=i||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:e,scheduler:r}=this,{actions:n}=r;this.work=this.state=this.scheduler=null,this.pending=!1,Wt(n,this),e!=null&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null,super.unsubscribe()}}};var xn=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,n){return new this.schedulerActionCtor(this,e).schedule(n,r)}};xn.now=ia.now;var Mo=class extends xn{constructor(e,r=xn.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,n){for(;e=r.shift();)e.unsubscribe();throw n}}};var Ql=new Mo(bo);var be=new P(t=>t.complete());function Kl(t){return t&&S(t.schedule)}function Jl(t){return t[t.length-1]}function So(t){return S(Jl(t))?t.pop():void 0}function St(t){return Kl(Jl(t))?t.pop():void 0}function ed(t,e,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(l){try{u(n.next(l))}catch(d){s(d)}}function c(l){try{u(n.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((n=n.apply(t,e||[])).next())})}function Xl(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Qt(t){return this instanceof Qt?(this.v=t,this):new Qt(t)}function td(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){n[f]&&(o[f]=function(b){return new Promise(function(v,I){i.push([f,b,v,I])>1||c(f,b)})},g&&(o[f]=g(o[f])))}function c(f,g){try{u(n[f](g))}catch(b){h(i[0][3],b)}}function u(f){f.value instanceof Qt?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,g){f(g),i.shift(),i.length&&c(i[0][0],i[0][1])}}function nd(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Xl=="function"?Xl(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(s){return new Promise(function(a,c){s=t[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var To=t=>t&&typeof t.length=="number"&&typeof t!="function";function xo(t){return S(t?.then)}function No(t){return S(t[Mn])}function _o(t){return Symbol.asyncIterator&&S(t?.[Symbol.asyncIterator])}function Ao(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Em(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ro=Em();function Oo(t){return S(t?.[Ro])}function Po(t){return td(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:o}=yield Qt(r.read());if(o)return yield Qt(void 0);yield yield Qt(n)}}finally{r.releaseLock()}})}function ko(t){return S(t?.getReader)}function J(t){if(t instanceof P)return t;if(t!=null){if(No(t))return Im(t);if(To(t))return Cm(t);if(xo(t))return bm(t);if(_o(t))return rd(t);if(Oo(t))return Mm(t);if(ko(t))return Sm(t)}throw Ao(t)}function Im(t){return new P(e=>{let r=t[Mn]();if(S(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Cm(t){return new P(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,wo)})}function Mm(t){return new P(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function rd(t){return new P(e=>{Tm(t,e).catch(r=>e.error(r))})}function Sm(t){return rd(Po(t))}function Tm(t,e){var r,n,o,i;return ed(this,void 0,void 0,function*(){try{for(r=nd(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){o={error:s}}finally{try{n&&!n.done&&(i=r.return)&&(yield i.call(r))}finally{if(o)throw o.error}}e.complete()})}function Ee(t,e,r,n=0,o=!1){let i=e.schedule(function(){r(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(i),!o)return i}function Fo(t,e=0){return O((r,n)=>{r.subscribe(_(n,o=>Ee(n,t,()=>n.next(o),e),()=>Ee(n,t,()=>n.complete(),e),o=>Ee(n,t,()=>n.error(o),e)))})}function Lo(t,e=0){return O((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function od(t,e){return J(t).pipe(Lo(e),Fo(e))}function id(t,e){return J(t).pipe(Lo(e),Fo(e))}function sd(t,e){return new P(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function ad(t,e){return new P(r=>{let n;return Ee(r,e,()=>{n=t[Ro](),Ee(r,e,()=>{let o,i;try{({value:o,done:i}=n.next())}catch(s){r.error(s);return}i?r.complete():r.next(o)},0,!0)}),()=>S(n?.return)&&n.return()})}function jo(t,e){if(!t)throw new Error("Iterable cannot be null");return new P(r=>{Ee(r,e,()=>{let n=t[Symbol.asyncIterator]();Ee(r,e,()=>{n.next().then(o=>{o.done?r.complete():r.next(o.value)})},0,!0)})})}function cd(t,e){return jo(Po(t),e)}function ud(t,e){if(t!=null){if(No(t))return od(t,e);if(To(t))return sd(t,e);if(xo(t))return id(t,e);if(_o(t))return jo(t,e);if(Oo(t))return ad(t,e);if(ko(t))return cd(t,e)}throw Ao(t)}function Z(t,e){return e?ud(t,e):J(t)}function C(...t){let e=St(t);return Z(t,e)}function Nn(t,e){let r=S(t)?t:()=>t,n=o=>o.error(r());return new P(e?o=>e.schedule(n,0,o):n)}function sa(t){return!!t&&(t instanceof P||S(t.lift)&&S(t.subscribe))}var ot=En(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function T(t,e){return O((r,n)=>{let o=0;r.subscribe(_(n,i=>{n.next(t.call(e,i,o++))}))})}var{isArray:xm}=Array;function Nm(t,e){return xm(e)?t(...e):t(e)}function Vo(t){return T(e=>Nm(t,e))}var{isArray:_m}=Array,{getPrototypeOf:Am,prototype:Rm,keys:Om}=Object;function $o(t){if(t.length===1){let e=t[0];if(_m(e))return{args:e,keys:null};if(Pm(e)){let r=Om(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function Pm(t){return t&&typeof t=="object"&&Am(t)===Rm}function Uo(t,e){return t.reduce((r,n,o)=>(r[n]=e[o],r),{})}function vr(...t){let e=St(t),r=So(t),{args:n,keys:o}=$o(t);if(n.length===0)return Z([],e);let i=new P(km(n,e,o?s=>Uo(o,s):he));return r?i.pipe(Vo(r)):i}function km(t,e,r=he){return n=>{ld(e,()=>{let{length:o}=t,i=new Array(o),s=o,a=o;for(let c=0;c{let u=Z(t[c],e),l=!1;u.subscribe(_(n,d=>{i[c]=d,l||(l=!0,a--),a||n.next(r(i.slice()))},()=>{--s||n.complete()}))},n)},n)}}function ld(t,e,r){t?Ee(r,t,e):e()}function dd(t,e,r,n,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&e.complete()},f=b=>u{i&&e.next(b),u++;let v=!1;J(r(b,l++)).subscribe(_(e,I=>{o?.(I),i?f(I):e.next(I)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;c.length&&ug(I)):g(I)}h()}catch(I){e.error(I)}}))};return t.subscribe(_(e,f,()=>{d=!0,h()})),()=>{a?.()}}function X(t,e,r=1/0){return S(e)?X((n,o)=>T((i,s)=>e(n,i,o,s))(J(t(n,o))),r):(typeof e=="number"&&(r=e),O((n,o)=>dd(n,o,t,r)))}function Tt(t=1/0){return X(he,t)}function fd(){return Tt(1)}function _n(...t){return fd()(Z(t,St(t)))}function Bo(t){return new P(e=>{J(t()).subscribe(e)})}function Fm(...t){let e=So(t),{args:r,keys:n}=$o(t),o=new P(i=>{let{length:s}=r;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(n?Uo(n,a):a),i.complete())}))}});return e?o.pipe(Vo(e)):o}function pe(t,e){return O((r,n)=>{let o=0;r.subscribe(_(n,i=>t.call(e,i,o++)&&n.next(i)))})}function Oe(t){return O((e,r)=>{let n=null,o=!1,i;n=e.subscribe(_(r,void 0,void 0,s=>{i=J(t(s,Oe(t)(e))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function hd(t,e,r,n,o){return(i,s)=>{let a=r,c=e,u=0;i.subscribe(_(s,l=>{let d=u++;c=a?t(c,l,d):(a=!0,l),n&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function it(t,e){return S(e)?X(t,e,1):X(t,1)}function Lm(t,e=Ql){return O((r,n)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,n.next(u)}};function c(){let u=s+t,l=e.now();if(l{i=u,s=e.now(),o||(o=e.schedule(c,t),n.add(o))},()=>{a(),n.complete()},void 0,()=>{i=o=null}))})}function xt(t){return O((e,r)=>{let n=!1;e.subscribe(_(r,o=>{n=!0,r.next(o)},()=>{n||r.next(t),r.complete()}))})}function st(t){return t<=0?()=>be:O((e,r)=>{let n=0;e.subscribe(_(r,o=>{++n<=t&&(r.next(o),t<=n&&r.complete())}))})}function aa(t){return T(()=>t)}function jm(t,e=he){return t=t??Vm,O((r,n)=>{let o,i=!0;r.subscribe(_(n,s=>{let a=e(s);(i||!t(o,a))&&(i=!1,o=a,n.next(s))}))})}function Vm(t,e){return t===e}function Ho(t=$m){return O((e,r)=>{let n=!1;e.subscribe(_(r,o=>{n=!0,r.next(o)},()=>n?r.complete():r.error(t())))})}function $m(){return new ot}function Nt(t){return O((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function Ye(t,e){let r=arguments.length>=2;return n=>n.pipe(t?pe((o,i)=>t(o,i,n)):he,st(1),r?xt(e):Ho(()=>new ot))}function An(t){return t<=0?()=>be:O((e,r)=>{let n=[];e.subscribe(_(r,o=>{n.push(o),t{for(let o of n)r.next(o);r.complete()},void 0,()=>{n=null}))})}function ca(t,e){let r=arguments.length>=2;return n=>n.pipe(t?pe((o,i)=>t(o,i,n)):he,An(1),r?xt(e):Ho(()=>new ot))}function ua(t,e){return O(hd(t,e,arguments.length>=2,!0))}function la(...t){let e=St(t);return O((r,n)=>{(e?_n(t,r,e):_n(t,r)).subscribe(n)})}function ge(t,e){return O((r,n)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&n.complete();r.subscribe(_(n,c=>{o?.unsubscribe();let u=0,l=i++;J(t(c,l)).subscribe(o=_(n,d=>n.next(e?e(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function zo(t){return O((e,r)=>{J(t).subscribe(_(r,()=>r.complete(),gr)),!r.closed&&e.subscribe(r)})}function re(t,e,r){let n=S(t)||e||r?{next:t,error:e,complete:r}:t;return n?O((o,i)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;o.subscribe(_(i,c=>{var u;(u=n.next)===null||u===void 0||u.call(n,c),i.next(c)},()=>{var c;a=!1,(c=n.complete)===null||c===void 0||c.call(n),i.complete()},c=>{var u;a=!1,(u=n.error)===null||u===void 0||u.call(n,c),i.error(c)},()=>{var c,u;a&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):he}var ef="https://g.co/ng/security#xss",E=class extends Error{constructor(e,r){super(Ni(e,r)),this.code=e}};function Ni(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function xr(t){return{toString:t}.toString()}var Go="__parameters__";function Um(t){return function(...r){if(t){let n=t(...r);for(let o in n)this[o]=n[o]}}}function tf(t,e,r){return xr(()=>{let n=Um(e);function o(...i){if(this instanceof o)return n.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(Go)?c[Go]:Object.defineProperty(c,Go,{value:[]})[Go];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return r&&(o.prototype=Object.create(r.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var me=globalThis;function B(t){for(let e in t)if(t[e]===B)return e;throw Error("Could not find renamed property on target object.")}function Bm(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function ye(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(ye).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` -`);return r===-1?e:e.substring(0,r)}function pd(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var Hm=B({__forward_ref__:B});function nf(t){return t.__forward_ref__=nf,t.toString=function(){return ye(this())},t}function ve(t){return rf(t)?t():t}function rf(t){return typeof t=="function"&&t.hasOwnProperty(Hm)&&t.__forward_ref__===nf}function w(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function lt(t){return{providers:t.providers||[],imports:t.imports||[]}}function _i(t){return gd(t,sf)||gd(t,af)}function of(t){return _i(t)!==null}function gd(t,e){return t.hasOwnProperty(e)?t[e]:null}function zm(t){let e=t&&(t[sf]||t[af]);return e||null}function md(t){return t&&(t.hasOwnProperty(vd)||t.hasOwnProperty(Gm))?t[vd]:null}var sf=B({\u0275prov:B}),vd=B({\u0275inj:B}),af=B({ngInjectableDef:B}),Gm=B({ngInjectorDef:B}),D=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=w({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function cf(t){return t&&!!t.\u0275providers}var qm=B({\u0275cmp:B}),Wm=B({\u0275dir:B}),Zm=B({\u0275pipe:B}),Ym=B({\u0275mod:B}),ni=B({\u0275fac:B}),Dr=B({__NG_ELEMENT_ID__:B}),yd=B({__NG_ENV_ID__:B});function Ai(t){return typeof t=="string"?t:t==null?"":String(t)}function Qm(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Ai(t)}function Km(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new E(-200,t)}function vc(t,e){throw new E(-201,!1)}var A=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(A||{}),Ma;function uf(){return Ma}function Ie(t){let e=Ma;return Ma=t,e}function lf(t,e,r){let n=_i(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&A.Optional)return null;if(e!==void 0)return e;vc(t,"Injector")}var Jm={},Er=Jm,Sa="__NG_DI_FLAG__",ri="ngTempTokenPath",Xm="ngTokenPath",ev=/\n/gm,tv="\u0275",Dd="__source",kn;function nv(){return kn}function _t(t){let e=kn;return kn=t,e}function rv(t,e=A.Default){if(kn===void 0)throw new E(-203,!1);return kn===null?lf(t,void 0,e):kn.get(t,e&A.Optional?null:void 0,e)}function y(t,e=A.Default){return(uf()||rv)(ve(t),e)}function p(t,e=A.Default){return y(t,Ri(e))}function Ri(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Ta(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):ye(a)))}o=`{${i.join(", ")}}`}return`${r}${n?"("+n+")":""}[${o}]: ${t.replace(ev,` - `)}`}var Oi=df(tf("Optional"),8);var yc=df(tf("SkipSelf"),4);function en(t,e){let r=t.hasOwnProperty(ni);return r?t[ni]:null}function av(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?Dc(r,e):e(r))}function ff(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function oi(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function uv(t,e,r,n){let o=t.length;if(o==e)t.push(r,n);else if(o===1)t.push(n,t[0]),t[0]=r;else{for(o--,t.push(t[o-1],t[o]);o>e;){let i=o-2;t[o]=t[i],o--}t[e]=r,t[e+1]=n}}function lv(t,e,r){let n=Nr(t,e);return n>=0?t[n|1]=r:(n=~n,uv(t,n,e,r)),n}function da(t,e){let r=Nr(t,e);if(r>=0)return t[r|1]}function Nr(t,e){return dv(t,e,1)}function dv(t,e,r){let n=0,o=t.length>>r;for(;o!==n;){let i=n+(o-n>>1),s=t[i<e?o=i:n=i+1}return~(o<e){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),n&2&&u!==d){if(Be(n))return!1;s=!0}}}}return Be(n)||s}function Be(t){return(t&1)===0}function vv(t,e,r,n){if(e===null)return-1;let o=0;if(n||!r){let i=!1;for(;o-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?o+="."+s:n&4&&(o+=" "+s);else o!==""&&!Be(s)&&(e+=Ed(i,o),o=""),n=s,i=i||!Be(n);r++}return o!==""&&(e+=Ed(i,o)),e}function Iv(t){return t.map(Ev).join(",")}function Cv(t){let e=[],r=[],n=1,o=2;for(;n{let e=Cf(t),r=q(m({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===gf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Je.Emulated,styles:t.styles||Pe,_:null,schemas:t.schemas||null,tView:null,id:""});bf(r);let n=t.dependencies;return r.directiveDefs=Cd(n,!1),r.pipeDefs=Cd(n,!0),r.id=Sv(r),r})}function bv(t){return Pt(t)||Df(t)}function Mv(t){return t!==null}function dt(t){return xr(()=>({type:t.type,bootstrap:t.bootstrap||Pe,declarations:t.declarations||Pe,imports:t.imports||Pe,exports:t.exports||Pe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Id(t,e){if(t==null)return Ln;let r={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],i,s,a=Ot.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),e?(r[i]=a!==Ot.None?[n,a]:n,e[i]=s):r[i]=n}return r}function fn(t){return xr(()=>{let e=Cf(t);return bf(e),e})}function Ec(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Pt(t){return t[qm]||null}function Df(t){return t[Wm]||null}function wf(t){return t[Zm]||null}function Ef(t){let e=Pt(t)||Df(t)||wf(t);return e!==null?e.standalone:!1}function If(t,e){let r=t[Ym]||null;if(!r&&e===!0)throw new Error(`Type ${ye(t)} does not have '\u0275mod' property.`);return r}function Cf(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Ln,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Pe,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Id(t.inputs,e),outputs:Id(t.outputs),debugInfo:null}}function bf(t){t.features?.forEach(e=>e(t))}function Cd(t,e){if(!t)return null;let r=e?wf:bv;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(Mv)}function Sv(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let o of r)e=Math.imul(31,e)+o.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Pi(t){return{\u0275providers:t}}function Tv(...t){return{\u0275providers:Mf(!0,t),\u0275fromNgModule:!0}}function Mf(t,...e){let r=[],n=new Set,o,i=s=>{r.push(s)};return Dc(e,s=>{let a=s;Na(a,i,[],n)&&(o||=[],o.push(a))}),o!==void 0&&Sf(o,i),r}function Sf(t,e){for(let r=0;r{e(i,n)})}}function Na(t,e,r,n){if(t=ve(t),!t)return!1;let o=null,i=md(t),s=!i&&Pt(t);if(!i&&!s){let c=t.ngModule;if(i=md(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=t}let a=n.has(o);if(s){if(a)return!1;if(n.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Na(u,e,r,n)}}else if(i){if(i.imports!=null&&!a){n.add(o);let u;try{Dc(i.imports,l=>{Na(l,e,r,n)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Sf(u,e)}if(!a){let u=en(o)||(()=>new o);e({provide:o,useFactory:u,deps:Pe},o),e({provide:pf,useValue:o,multi:!0},o),e({provide:jn,useValue:()=>y(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=t;Ic(c,l=>{e(l,u)})}}else return!1;return o!==t&&t.providers!==void 0}function Ic(t,e){for(let r of t)cf(r)&&(r=r.\u0275providers),Array.isArray(r)?Ic(r,e):e(r)}var xv=B({provide:String,useValue:B});function Tf(t){return t!==null&&typeof t=="object"&&xv in t}function Nv(t){return!!(t&&t.useExisting)}function _v(t){return!!(t&&t.useFactory)}function Vn(t){return typeof t=="function"}function Av(t){return!!t.useClass}var ki=new D(""),Ko={},Rv={},fa;function Cc(){return fa===void 0&&(fa=new ii),fa}var De=class{},Cr=class extends De{get destroyed(){return this._destroyed}constructor(e,r,n,o){super(),this.parent=r,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Aa(e,s=>this.processProvider(s)),this.records.set(hf,Rn(void 0,this)),o.has("environment")&&this.records.set(De,Rn(void 0,this));let i=this.records.get(ki);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(pf,Pe,A.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=k(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),k(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=_t(this),n=Ie(void 0),o;try{return e()}finally{_t(r),Ie(n)}}get(e,r=Er,n=A.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(yd))return e[yd](this);n=Ri(n);let o,i=_t(this),s=Ie(void 0);try{if(!(n&A.SkipSelf)){let c=this.records.get(e);if(c===void 0){let u=Lv(e)&&_i(e);u&&this.injectableDefInScope(u)?c=Rn(_a(e),Ko):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=n&A.Self?Cc():this.parent;return r=n&A.Optional&&r===Er?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[ri]=a[ri]||[]).unshift(ye(e)),i)throw a;return iv(a,e,"R3InjectorError",this.source)}else throw a}finally{Ie(s),_t(i)}}resolveInjectorInitializers(){let e=k(null),r=_t(this),n=Ie(void 0),o;try{let i=this.get(jn,Pe,A.Self);for(let s of i)s()}finally{_t(r),Ie(n),k(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(ye(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new E(205,!1)}processProvider(e){e=ve(e);let r=Vn(e)?e:ve(e&&e.provide),n=Pv(e);if(!Vn(e)&&e.multi===!0){let o=this.records.get(r);o||(o=Rn(void 0,Ko,!0),o.factory=()=>Ta(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=k(null);try{return r.value===Ko&&(r.value=Rv,r.value=r.factory()),typeof r.value=="object"&&r.value&&Fv(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{k(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=ve(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function _a(t){let e=_i(t),r=e!==null?e.factory:en(t);if(r!==null)return r;if(t instanceof D)throw new E(204,!1);if(t instanceof Function)return Ov(t);throw new E(204,!1)}function Ov(t){if(t.length>0)throw new E(204,!1);let r=zm(t);return r!==null?()=>r.factory(t):()=>new t}function Pv(t){if(Tf(t))return Rn(void 0,t.useValue);{let e=xf(t);return Rn(e,Ko)}}function xf(t,e,r){let n;if(Vn(t)){let o=ve(t);return en(o)||_a(o)}else if(Tf(t))n=()=>ve(t.useValue);else if(_v(t))n=()=>t.useFactory(...Ta(t.deps||[]));else if(Nv(t))n=()=>y(ve(t.useExisting));else{let o=ve(t&&(t.useClass||t.provide));if(kv(t))n=()=>new o(...Ta(t.deps));else return en(o)||_a(o)}return n}function Rn(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function kv(t){return!!t.deps}function Fv(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Lv(t){return typeof t=="function"||typeof t=="object"&&t instanceof D}function Aa(t,e){for(let r of t)Array.isArray(r)?Aa(r,e):r&&cf(r)?Aa(r.\u0275providers,e):e(r)}function Te(t,e){t instanceof Cr&&t.assertNotDestroyed();let r,n=_t(t),o=Ie(void 0);try{return e()}finally{_t(n),Ie(o)}}function Nf(){return uf()!==void 0||nv()!=null}function jv(t){if(!Nf())throw new E(-203,!1)}function Vv(t){let e=me.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function $v(t){return typeof t=="function"}var ft=0,x=1,M=2,le=3,He=4,Ge=5,si=6,ai=7,ze=8,$n=9,Xe=10,oe=11,br=12,bd=13,Zn=14,et=15,tn=16,On=17,at=18,Fi=19,_f=20,At=21,ha=22,ke=23,Se=25,Af=1;var nn=7,ci=8,Un=9,Me=10,ui=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(ui||{});function Rt(t){return Array.isArray(t)&&typeof t[Af]=="object"}function ht(t){return Array.isArray(t)&&t[Af]===!0}function bc(t){return(t.flags&4)!==0}function Li(t){return t.componentOffset>-1}function ji(t){return(t.flags&1)===1}function kt(t){return!!t.template}function Ra(t){return(t[M]&512)!==0}var Oa=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Rf(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function Yn(){return Of}function Of(t){return t.type.prototype.ngOnChanges&&(t.setInput=Bv),Uv}Yn.ngInherit=!0;function Uv(){let t=kf(this),e=t?.current;if(e){let r=t.previous;if(r===Ln)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function Bv(t,e,r,n,o){let i=this.declaredInputs[n],s=kf(t)||Hv(t,{previous:Ln,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Oa(u&&u.currentValue,r,c===Ln),Rf(t,e,o,r)}var Pf="__ngSimpleChanges__";function kf(t){return t[Pf]||null}function Hv(t,e){return t[Pf]=e}var Md=null;var Qe=function(t,e,r){Md?.(t,e,r)},zv="svg",Gv="math";function tt(t){for(;Array.isArray(t);)t=t[ft];return t}function Ff(t,e){return tt(e[t])}function Le(t,e){return tt(e[t.index])}function Lf(t,e){return t.data[e]}function Mc(t,e){return t[e]}function jt(t,e){let r=e[t];return Rt(r)?r:r[ft]}function qv(t){return(t[M]&4)===4}function Sc(t){return(t[M]&128)===128}function Wv(t){return ht(t[le])}function Bn(t,e){return e==null?null:t[e]}function jf(t){t[On]=0}function Vf(t){t[M]&1024||(t[M]|=1024,Sc(t)&&Vi(t))}function Zv(t,e){for(;t>0;)e=e[Zn],t--;return e}function Mr(t){return!!(t[M]&9216||t[ke]?.dirty)}function Pa(t){t[Xe].changeDetectionScheduler?.notify(7),t[M]&64&&(t[M]|=1024),Mr(t)&&Vi(t)}function Vi(t){t[Xe].changeDetectionScheduler?.notify(0);let e=rn(t);for(;e!==null&&!(e[M]&8192||(e[M]|=8192,!Sc(e)));)e=rn(e)}function $f(t,e){if((t[M]&256)===256)throw new E(911,!1);t[At]===null&&(t[At]=[]),t[At].push(e)}function Yv(t,e){if(t[At]===null)return;let r=t[At].indexOf(e);r!==-1&&t[At].splice(r,1)}function rn(t){let e=t[le];return ht(e)?e[le]:e}var R={lFrame:Yf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Uf=!1;function Qv(){return R.lFrame.elementDepthCount}function Kv(){R.lFrame.elementDepthCount++}function Jv(){R.lFrame.elementDepthCount--}function Bf(){return R.bindingsEnabled}function Xv(){return R.skipHydrationRootTNode!==null}function ey(t){return R.skipHydrationRootTNode===t}function ty(){R.skipHydrationRootTNode=null}function F(){return R.lFrame.lView}function de(){return R.lFrame.tView}function PA(t){return R.lFrame.contextLView=t,t[ze]}function kA(t){return R.lFrame.contextLView=null,t}function fe(){let t=Hf();for(;t!==null&&t.type===64;)t=t.parent;return t}function Hf(){return R.lFrame.currentTNode}function ny(){let t=R.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function hn(t,e){let r=R.lFrame;r.currentTNode=t,r.isParent=e}function Tc(){return R.lFrame.isParent}function zf(){R.lFrame.isParent=!1}function ry(){return R.lFrame.contextLView}function Gf(){return Uf}function Sd(t){Uf=t}function $i(){let t=R.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function oy(t){return R.lFrame.bindingIndex=t}function xc(){return R.lFrame.bindingIndex++}function iy(t){let e=R.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function sy(){return R.lFrame.inI18n}function ay(t,e){let r=R.lFrame;r.bindingIndex=r.bindingRootIndex=t,ka(e)}function cy(){return R.lFrame.currentDirectiveIndex}function ka(t){R.lFrame.currentDirectiveIndex=t}function uy(t){let e=R.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function qf(){return R.lFrame.currentQueryIndex}function Nc(t){R.lFrame.currentQueryIndex=t}function ly(t){let e=t[x];return e.type===2?e.declTNode:e.type===1?t[Ge]:null}function Wf(t,e,r){if(r&A.SkipSelf){let o=e,i=t;for(;o=o.parent,o===null&&!(r&A.Host);)if(o=ly(i),o===null||(i=i[Zn],o.type&10))break;if(o===null)return!1;e=o,t=i}let n=R.lFrame=Zf();return n.currentTNode=e,n.lView=t,!0}function _c(t){let e=Zf(),r=t[x];R.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function Zf(){let t=R.lFrame,e=t===null?null:t.child;return e===null?Yf(t):e}function Yf(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Qf(){let t=R.lFrame;return R.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Kf=Qf;function Ac(){let t=Qf();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function dy(t){return(R.lFrame.contextLView=Zv(t,R.lFrame.contextLView))[ze]}function Qn(){return R.lFrame.selectedIndex}function on(t){R.lFrame.selectedIndex=t}function Jf(){let t=R.lFrame;return Lf(t.tView,t.selectedIndex)}function fy(){return R.lFrame.currentNamespace}var Xf=!0;function Ui(){return Xf}function Bi(t){Xf=t}function hy(t,e,r){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(n){let s=Of(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}o&&(r.preOrderHooks??=[]).push(0-t,o),i&&((r.preOrderHooks??=[]).push(t,i),(r.preOrderCheckHooks??=[]).push(t,i))}function Hi(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[c]<0&&(t[On]+=65536),(a>14>16&&(t[M]&3)===e&&(t[M]+=16384,Td(a,i)):Td(a,i)}var Fn=-1,sn=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function gy(t){return t instanceof sn}function my(t){return(t.flags&8)!==0}function vy(t){return(t.flags&16)!==0}var ga={},Fa=class{constructor(e,r){this.injector=e,this.parentInjector=r}get(e,r,n){n=Ri(n);let o=this.injector.get(e,ga,n);return o!==ga||r===ga?o:this.parentInjector.get(e,r,n)}};function th(t){return t!==Fn}function li(t){return t&32767}function yy(t){return t>>16}function di(t,e){let r=yy(t),n=e;for(;r>0;)n=n[Zn],r--;return n}var La=!0;function fi(t){let e=La;return La=t,e}var Dy=256,nh=Dy-1,rh=5,wy=0,Ke={};function Ey(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(Dr)&&(n=r[Dr]),n==null&&(n=r[Dr]=wy++);let o=n&nh,i=1<>rh)]|=i}function hi(t,e){let r=oh(t,e);if(r!==-1)return r;let n=e[x];n.firstCreatePass&&(t.injectorIndex=e.length,ma(n.data,t),ma(e,null),ma(n.blueprint,null));let o=Rc(t,e),i=t.injectorIndex;if(th(o)){let s=li(o),a=di(o,e),c=a[x].data;for(let u=0;u<8;u++)e[i+u]=a[s+u]|c[s+u]}return e[i+8]=o,i}function ma(t,e){t.push(0,0,0,0,0,0,0,0,e)}function oh(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Rc(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,o=e;for(;o!==null;){if(n=uh(o),n===null)return Fn;if(r++,o=o[Zn],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return Fn}function ja(t,e,r){Ey(t,e,r)}function Iy(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,o=0;for(;o>20,d=n?a:a+l,h=o?a+l:u;for(let f=d;f=c&&g.type===r)return f}if(o){let f=s[c];if(f&&kt(f)&&f.type===r)return c}return null}function an(t,e,r,n){let o=t[r],i=e.data;if(gy(o)){let s=o;s.resolving&&Km(Qm(i[r]));let a=fi(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?Ie(s.injectImpl):null,l=Wf(t,n,A.Default);try{o=t[r]=s.factory(void 0,i,t,n),e.firstCreatePass&&r>=n.directiveStart&&hy(r,i[r],e)}finally{u!==null&&Ie(u),fi(a),s.resolving=!1,Kf()}}return o}function by(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Dr)?t[Dr]:void 0;return typeof e=="number"?e>=0?e&nh:My:e}function xd(t,e,r){let n=1<>rh)]&n)}function Nd(t,e){return!(t&A.Self)&&!(t&A.Host&&e)}var Xt=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return ah(this._tNode,this._lView,e,Ri(n),r)}};function My(){return new Xt(fe(),F())}function Oc(t){return xr(()=>{let e=t.prototype.constructor,r=e[ni]||Va(e),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let i=o[ni]||Va(o);if(i&&i!==r)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Va(t){return rf(t)?()=>{let e=Va(ve(t));return e&&e()}:en(t)}function Sy(t,e,r,n,o){let i=t,s=e;for(;i!==null&&s!==null&&s[M]&2048&&!(s[M]&512);){let a=ch(i,s,r,n|A.Self,Ke);if(a!==Ke)return a;let c=i.parent;if(!c){let u=s[_f];if(u){let l=u.get(r,Ke,n);if(l!==Ke)return l}c=uh(s),s=s[Zn]}i=c}return o}function uh(t){let e=t[x],r=e.type;return r===2?e.declTNode:r===1?t[Ge]:null}function Pc(t){return Iy(fe(),t)}function _d(t,e=null,r=null,n){let o=lh(t,e,r,n);return o.resolveInjectorInitializers(),o}function lh(t,e=null,r=null,n,o=new Set){let i=[r||Pe,Tv(t)];return n=n||(typeof t=="object"?void 0:ye(t)),new Cr(i,e||Cc(),n||null,o)}var Jt=class Jt{static create(e,r){if(Array.isArray(e))return _d({name:""},r,e,"");{let n=e.name??"";return _d({name:n},e.parent,e.providers,n)}}};Jt.THROW_IF_NOT_FOUND=Er,Jt.NULL=new ii,Jt.\u0275prov=w({token:Jt,providedIn:"any",factory:()=>y(hf)}),Jt.__NG_ELEMENT_ID__=-1;var Fe=Jt;var Ty=new D("");Ty.__NG_ELEMENT_ID__=t=>{let e=fe();if(e===null)throw new E(204,!1);if(e.type&2)return e.value;if(t&A.Optional)return null;throw new E(204,!1)};var xy="ngOriginalError";function va(t){return t[xy]}var dh=!0,kc=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Ny,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),$a=class extends kc{constructor(e){super(),this._lView=e}onDestroy(e){return $f(this._lView,e),()=>Yv(this._lView,e)}};function Ny(){return new $a(F())}var pt=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new se(!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)}};e.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var Ua=class extends ue{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,Nf()&&(this.destroyRef=p(kc,{optional:!0})??void 0,this.pendingTasks=p(pt,{optional:!0})??void 0)}emit(e){let r=k(null);try{super.next(e)}finally{k(r)}}subscribe(e,r,n){let o=e,i=r||(()=>null),s=n;if(e&&typeof e=="object"){let c=e;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return e instanceof Y&&e.add(a),a}wrapInTimeout(e){return r=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(r),n!==void 0&&this.pendingTasks?.remove(n)})}}},ae=Ua;function pi(...t){}function fh(t){let e,r;function n(){t=pi;try{r!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(r),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(r=requestAnimationFrame(()=>{t(),n()})),()=>n()}function Ad(t){return queueMicrotask(()=>t()),()=>{t=pi}}var Fc="isAngularZone",gi=Fc+"_ID",_y=0,$=class t{constructor(e){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ae(!1),this.onMicrotaskEmpty=new ae(!1),this.onStable=new ae(!1),this.onError=new ae(!1);let{enableLongStackTrace:r=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=dh}=e;if(typeof Zone>"u")throw new E(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)),r&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&n,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Oy(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Fc)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new E(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new E(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,Ay,pi,pi);try{return i.runTask(s,r,n)}finally{i.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},Ay={};function Lc(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Ry(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){fh(()=>{t.callbackScheduled=!1,Ba(t),t.isCheckStableRunning=!0,Lc(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),Ba(t)}function Oy(t){let e=()=>{Ry(t)},r=_y++;t._inner=t._inner.fork({name:"angular",properties:{[Fc]:!0,[gi]:r,[gi+r]:!0},onInvokeTask:(n,o,i,s,a,c)=>{if(Py(c))return n.invokeTask(i,s,a,c);try{return Rd(t),n.invokeTask(i,s,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Od(t)}},onInvoke:(n,o,i,s,a,c,u)=>{try{return Rd(t),n.invoke(i,s,a,c,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!ky(c)&&e(),Od(t)}},onHasTask:(n,o,i,s)=>{n.hasTask(i,s),o===i&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Ba(t),Lc(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,o,i,s)=>(n.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function Ba(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Rd(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Od(t){t._nesting--,Lc(t)}var mi=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ae,this.onMicrotaskEmpty=new ae,this.onStable=new ae,this.onError=new ae}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,o){return e.apply(r,n)}};function Py(t){return hh(t,"__ignore_ng_zone__")}function ky(t){return hh(t,"__scheduler_tick__")}function hh(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function Fy(t="zone.js",e){return t==="noop"?new mi:t==="zone.js"?new $(e):t}var ct=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&va(e);for(;r&&va(r);)r=va(r);return r||null}},Ly=new D("",{providedIn:"root",factory:()=>{let t=p($),e=p(ct);return r=>t.runOutsideAngular(()=>e.handleError(r))}});function jy(){return Kn(fe(),F())}function Kn(t,e){return new gt(Le(t,e))}var gt=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=jy;let t=e;return t})();function Vy(t){return t instanceof gt?t.nativeElement:t}function $y(){return this._results[Symbol.iterator]()}var Ha=class t{get changes(){return this._changes??=new ae}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=$y)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let n=cv(e);(this._changesDetected=!av(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function ph(t){return(t.flags&128)===128}var gh=new Map,Uy=0;function By(){return Uy++}function Hy(t){gh.set(t[Fi],t)}function zy(t){gh.delete(t[Fi])}var Pd="__ngContext__";function Ft(t,e){Rt(e)?(t[Pd]=e[Fi],Hy(e)):t[Pd]=e}function mh(t){return yh(t[br])}function vh(t){return yh(t[He])}function yh(t){for(;t!==null&&!ht(t);)t=t[He];return t}var za;function Dh(t){za=t}function Gy(){if(za!==void 0)return za;if(typeof document<"u")return document;throw new E(210,!1)}var zi=new D("",{providedIn:"root",factory:()=>qy}),qy="ng",jc=new D(""),nt=new D("",{providedIn:"platform",factory:()=>"unknown"});var Vc=new D("",{providedIn:"root",factory:()=>Gy().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Wy="h",Zy="b";var Yy=()=>null;function $c(t,e,r=!1){return Yy(t,e,r)}var wh=!1,Qy=new D("",{providedIn:"root",factory:()=>wh});var qo;function Ky(){if(qo===void 0&&(qo=null,me.trustedTypes))try{qo=me.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return qo}function kd(t){return Ky()?.createScriptURL(t)||t}var vi=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ef})`}};function _r(t){return t instanceof vi?t.changingThisBreaksApplicationSecurity:t}function Uc(t,e){let r=Jy(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${ef})`)}return r===e}function Jy(t){return t instanceof vi&&t.getTypeName()||null}var Xy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Eh(t){return t=String(t),t.match(Xy)?t:"unsafe:"+t}var Gi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Gi||{});function eD(t){let e=Ch();return e?e.sanitize(Gi.URL,t)||"":Uc(t,"URL")?_r(t):Eh(Ai(t))}function tD(t){let e=Ch();if(e)return kd(e.sanitize(Gi.RESOURCE_URL,t)||"");if(Uc(t,"ResourceURL"))return kd(_r(t));throw new E(904,!1)}function nD(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?tD:eD}function Ih(t,e,r){return nD(e,r)(t)}function Ch(){let t=F();return t&&t[Xe].sanitizer}var rD=/^>|^->||--!>|)/g,iD="\u200B$1\u200B";function sD(t){return t.replace(rD,e=>e.replace(oD,iD))}function bh(t){return t instanceof Function?t():t}function aD(t){return(t??p(Fe)).get(nt)==="browser"}var ut=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(ut||{}),cD;function Bc(t,e){return cD(t,e)}function Pn(t,e,r,n,o){if(n!=null){let i,s=!1;ht(n)?i=n:Rt(n)&&(s=!0,n=n[ft]);let a=tt(n);t===0&&r!==null?o==null?Nh(e,r,a):yi(e,r,a,o||null,!0):t===1&&r!==null?yi(e,r,a,o||null,!0):t===2?bD(e,a,s):t===3&&e.destroyNode(a),i!=null&&SD(e,t,i,r,o)}}function uD(t,e){return t.createText(e)}function lD(t,e,r){t.setValue(e,r)}function dD(t,e){return t.createComment(sD(e))}function Mh(t,e,r){return t.createElement(e,r)}function fD(t,e){Sh(t,e),e[ft]=null,e[Ge]=null}function hD(t,e,r,n,o,i){n[ft]=o,n[Ge]=e,Wi(t,n,r,1,o,i)}function Sh(t,e){e[Xe].changeDetectionScheduler?.notify(8),Wi(t,e,e[oe],2,null,null)}function pD(t){let e=t[br];if(!e)return ya(t[x],t);for(;e;){let r=null;if(Rt(e))r=e[br];else{let n=e[Me];n&&(r=n)}if(!r){for(;e&&!e[He]&&e!==t;)Rt(e)&&ya(e[x],e),e=e[le];e===null&&(e=t),Rt(e)&&ya(e[x],e),r=e&&e[He]}e=r}}function gD(t,e,r,n){let o=Me+n,i=r.length;n>0&&(r[o-1][He]=e),n0&&(t[r-1][He]=n[He]);let i=oi(t,Me+e);fD(n[x],n);let s=i[at];s!==null&&s.detachView(i[x]),n[le]=null,n[He]=null,n[M]&=-129}return n}function xh(t,e){if(!(e[M]&256)){let r=e[oe];r.destroyNode&&Wi(t,e,r,3,null,null),pD(e)}}function ya(t,e){if(e[M]&256)return;let r=k(null);try{e[M]&=-129,e[M]|=256,e[ke]&&Zs(e[ke]),vD(t,e),mD(t,e),e[x].type===1&&e[oe].destroy();let n=e[tn];if(n!==null&&ht(e[le])){n!==e[le]&&Hc(n,e);let o=e[at];o!==null&&o.detachView(t)}zy(e)}finally{k(r)}}function mD(t,e){let r=t.cleanup,n=e[ai];if(r!==null)for(let i=0;i=0?n[s]():n[-s].unsubscribe(),i+=2}else{let s=n[r[i+1]];r[i].call(s)}n!==null&&(e[ai]=null);let o=e[At];if(o!==null){e[At]=null;for(let i=0;i-1){let{encapsulation:i}=t.data[n.directiveStart+o];if(i===Je.None||i===Je.Emulated)return null}return Le(n,r)}}function yi(t,e,r,n,o){t.insertBefore(e,r,n,o)}function Nh(t,e,r){t.appendChild(e,r)}function Fd(t,e,r,n,o){n!==null?yi(t,e,r,n,o):Nh(t,e,r)}function _h(t,e){return t.parentNode(e)}function wD(t,e){return t.nextSibling(e)}function ED(t,e,r){return CD(t,e,r)}function ID(t,e,r){return t.type&40?Le(t,r):null}var CD=ID,Ld;function qi(t,e,r,n){let o=yD(t,n,e),i=e[oe],s=n.parent||e[Ge],a=ED(s,n,e);if(o!=null)if(Array.isArray(r))for(let c=0;cSe&&Ph(t,e,Se,!1),Qe(s?2:0,o),r(n,o)}finally{on(i),Qe(s?3:1,o)}}function Gc(t,e,r){if(bc(e)){let n=k(null);try{let o=e.directiveStart,i=e.directiveEnd;for(let s=o;snull;function kD(t,e,r,n){let o=zh(e);o.push(r),t.firstCreatePass&&Gh(t).push(n,o.length-1)}function FD(t,e,r,n,o,i){let s=e?e.injectorIndex:-1,a=0;return Xv()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function jd(t,e,r,n,o){for(let i in e){if(!e.hasOwnProperty(i))continue;let s=e[i];if(s===void 0)continue;n??={};let a,c=Ot.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}t===0?Vd(n,r,u,a,c):Vd(n,r,u,a)}return n}function Vd(t,e,r,n,o){let i;t.hasOwnProperty(r)?(i=t[r]).push(e,n):i=t[r]=[e,n],o!==void 0&&i.push(o)}function LD(t,e,r){let n=e.directiveStart,o=e.directiveEnd,i=t.data,s=e.attrs,a=[],c=null,u=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function HD(t,e,r,n){let o=r.directiveStart,i=r.directiveEnd;Li(r)&&QD(e,r,t.data[o+r.componentOffset]),t.firstCreatePass||hi(r,e),Ft(n,e);let s=r.initialInputs;for(let a=o;a{Vi(t.lView)},consumerOnSignalRead(){this.lView[ke]=this}});function fw(t){let e=t[ke]??Object.create(hw);return e.lView=t,e}var hw=q(m({},pr),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=rn(t.lView);for(;e&&!Zh(e[x]);)e=rn(e);e&&Vf(e)},consumerOnSignalRead(){this.lView[ke]=this}});function Zh(t){return t.type!==2}var pw=100;function Yh(t,e=!0,r=0){let n=t[Xe],o=n.rendererFactory,i=!1;i||o.begin?.();try{gw(t,r)}catch(s){throw e&&qh(t,s),s}finally{i||(o.end?.(),n.inlineEffectRunner?.flush())}}function gw(t,e){let r=Gf();try{Sd(!0),Ya(t,e);let n=0;for(;Mr(t);){if(n===pw)throw new E(103,!1);n++,Ya(t,1)}}finally{Sd(r)}}function mw(t,e,r,n){let o=e[M];if((o&256)===256)return;let i=!1,s=!1;!i&&e[Xe].inlineEffectRunner?.flush(),_c(e);let a=!0,c=null,u=null;i||(Zh(t)?(u=cw(e),c=go(u)):Nl()===null?(a=!1,u=fw(e),c=go(u)):e[ke]&&(Zs(e[ke]),e[ke]=null));try{jf(e),oy(t.bindingStartIndex),r!==null&&jh(t,e,r,2,n);let l=(o&3)===3;if(!i)if(l){let f=t.preOrderCheckHooks;f!==null&&Jo(e,f,null)}else{let f=t.preOrderHooks;f!==null&&Xo(e,f,0,null),pa(e,0)}if(s||vw(e),Qh(e,0),t.contentQueries!==null&&Hh(t,e),!i)if(l){let f=t.contentCheckHooks;f!==null&&Jo(e,f)}else{let f=t.contentHooks;f!==null&&Xo(e,f,1),pa(e,1)}ND(t,e);let d=t.components;d!==null&&Jh(e,d,0);let h=t.viewQuery;if(h!==null&&Za(2,h,n),!i)if(l){let f=t.viewCheckHooks;f!==null&&Jo(e,f)}else{let f=t.viewHooks;f!==null&&Xo(e,f,2),pa(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[ha]){for(let f of e[ha])f();e[ha]=null}i||(e[M]&=-73)}catch(l){throw i||Vi(e),l}finally{u!==null&&(qs(u,c),a&&lw(u)),Ac()}}function Qh(t,e){for(let r=mh(t);r!==null;r=vh(r))for(let n=Me;n-1&&(Ga(e,n),oi(r,n))}this._attachedToViewContainer=!1}xh(this._lView[x],this._lView)}onDestroy(e){$f(this._lView,e)}markForCheck(){Jc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[M]&=-129}reattach(){Pa(this._lView),this._lView[M]|=128}detectChanges(){this._lView[M]|=1024,Yh(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new E(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Ra(this._lView),r=this._lView[tn];r!==null&&!e&&Hc(r,this._lView),Sh(this._lView[x],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new E(902,!1);this._appRef=e;let r=Ra(this._lView),n=this._lView[tn];n!==null&&!r&&Th(n,this._lView),Pa(this._lView)}},un=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Ew;let t=e;return t})(),Dw=un,ww=class extends Dw{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let o=iw(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new cn(o)}};function Ew(){return Xc(fe(),F())}function Xc(t,e){return t.type&4?new ww(e,t,Kn(t,e)):null}var jA=new RegExp(`^(\\d+)*(${Zy}|${Wy})*(.*)`);var Iw=()=>null;function Ud(t,e){return Iw(t,e)}var Hn=class{},Xh=new D("",{providedIn:"root",factory:()=>!1});var ep=new D(""),tp=new D(""),Qa=class{},wi=class{};function Cw(t){let e=Error(`No component factory found for ${ye(t)}.`);return e[bw]=t,e}var bw="ngComponent";var Ka=class{resolveComponentFactory(e){throw Cw(e)}},gu=class gu{};gu.NULL=new Ka;var zn=gu,Gn=class{},Rr=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>Mw();let t=e;return t})();function Mw(){let t=F(),e=fe(),r=jt(e.index,t);return(Rt(r)?r:t)[oe]}var Sw=(()=>{let e=class e{};e.\u0275prov=w({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var Bd=new Set;function Jn(t){Bd.has(t)||(Bd.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var Ce=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Ce||{}),Tw={destroy(){}};function eu(t,e){!e&&jv(eu);let r=e?.injector??p(Fe);return aD(r)?(Jn("NgAfterNextRender"),Nw(t,r,!0,e?.phase??Ce.MixedReadWrite)):Tw}function xw(t,e){if(t instanceof Function)switch(e){case Ce.EarlyRead:return{earlyRead:t};case Ce.Write:return{write:t};case Ce.MixedReadWrite:return{mixedReadWrite:t};case Ce.Read:return{read:t}}return t}function Nw(t,e,r,n){let o=xw(t,n),i=e.get(tu),s=i.handler??=new Xa,a=[],c=[],u=()=>{for(let f of c)s.unregister(f);l()},l=e.get(kc).onDestroy(u),d=0,h=(f,g)=>{if(!g)return;let b=r?(...I)=>(d--,d<1&&u(),g(...I)):g,v=Te(e,()=>new Ja(f,a,b));s.register(v),c.push(v),d++};return h(Ce.EarlyRead,o.earlyRead),h(Ce.Write,o.write),h(Ce.MixedReadWrite,o.mixedReadWrite),h(Ce.Read,o.read),{destroy:u}}var Ja=class{constructor(e,r,n){this.phase=e,this.pipelinedArgs=r,this.callbackFn=n,this.zone=p($),this.errorHandler=p(ct,{optional:!0}),p(Hn,{optional:!0})?.notify(6)}invoke(){try{let e=this.zone.runOutsideAngular(()=>this.callbackFn.apply(null,this.pipelinedArgs));this.pipelinedArgs.splice(0,this.pipelinedArgs.length,e)}catch(e){this.errorHandler?.handleError(e)}}},Xa=class{constructor(){this.executingCallbacks=!1,this.buckets={[Ce.EarlyRead]:new Set,[Ce.Write]:new Set,[Ce.MixedReadWrite]:new Set,[Ce.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let r of e)r.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},tu=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of n)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function Ei(t,e,r){let n=r?t.styles:null,o=r?t.classes:null,i=0;if(e!==null)for(let s=0;s0&&Rh(t,r,i.join(" "))}}function Fw(t,e,r){let n=t.projection=[];for(let o=0;o{let e=class e{};e.__NG_ELEMENT_ID__=jw;let t=e;return t})();function jw(){let t=fe();return rp(t,F())}var Vw=$t,np=class extends Vw{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return Kn(this._hostTNode,this._hostLView)}get injector(){return new Xt(this._hostTNode,this._hostLView)}get parentInjector(){let e=Rc(this._hostTNode,this._hostLView);if(th(e)){let r=di(e,this._hostLView),n=li(e),o=r[x].data[n+8];return new Xt(o,r)}else return new Xt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=zd(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Me}createEmbeddedView(e,r,n){let o,i;typeof n=="number"?o=n:n!=null&&(o=n.index,i=n.injector);let s=Ud(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},i,s);return this.insertImpl(a,o,$d(this._hostTNode,s)),a}createComponent(e,r,n,o,i){let s=e&&!$v(e),a;if(s)a=r;else{let g=r||{};a=g.index,n=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}let c=s?e:new qn(Pt(e)),u=n||this.parentInjector;if(!i&&c.ngModule==null){let b=(s?u:this.parentInjector).get(De,null);b&&(i=b)}let l=Pt(c.componentType??{}),d=Ud(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,o,h,i);return this.insertImpl(f.hostView,a,$d(this._hostTNode,d)),f}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let o=e._lView;if(Wv(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=o[le],u=new np(c,c[Ge],c[le]);u.detach(u.indexOf(e))}}let i=this._adjustIndex(r),s=this._lContainer;return sw(s,o,i,n),e.attachToViewContainerRef(),ff(Da(s),i,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=zd(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Ga(this._lContainer,r);n&&(oi(Da(this._lContainer),r),xh(n[x],n))}detach(e){let r=this._adjustIndex(e,-1),n=Ga(this._lContainer,r);return n&&oi(Da(this._lContainer),r)!=null?new cn(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function zd(t){return t[ci]}function Da(t){return t[ci]||(t[ci]=[])}function rp(t,e){let r,n=e[t.index];return ht(n)?r=n:(r=Bh(n,e,null,t),e[t.index]=r,Yi(e,r)),Uw(r,e,t,n),new np(r,t,e)}function $w(t,e){let r=t[oe],n=r.createComment(""),o=Le(e,t),i=_h(r,o);return yi(r,i,n,wD(r,o),!1),n}var Uw=zw,Bw=()=>!1;function Hw(t,e,r){return Bw(t,e,r)}function zw(t,e,r,n){if(t[nn])return;let o;r.type&8?o=tt(n):o=$w(e,r),t[nn]=o}var tc=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},nc=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,o=[];for(let i=0;i0)n.push(s[a/2]);else{let u=i[a+1],l=e[-c];for(let d=Me;de.trim())}function Xw(t,e,r){t.queries===null&&(t.queries=new oc),t.queries.track(new ic(e,r))}function eE(t,e){let r=t.contentQueries||(t.contentQueries=[]),n=r.length?r[r.length-1]:-1;e!==n&&r.push(t.queries.length-1,e)}function nu(t,e){return t.queries.getByIndex(e)}function tE(t,e){let r=t[x],n=nu(r,e);return n.crossesNgTemplate?sc(r,t,e,[]):op(r,t,n,e)}function $A(t,e){Jn("NgSignals");let r=$l(t),n=r[Mt];return e?.equal&&(n.equal=e.equal),r.set=o=>Ys(n,o),r.update=o=>Ul(n,o),r.asReadonly=nE.bind(r),r}function nE(){let t=this[Mt];if(t.readonlyFn===void 0){let e=()=>this();e[Mt]=t,t.readonlyFn=e}return t.readonlyFn}function rE(t){let e=[],r=new Map;function n(o){let i=r.get(o);if(!i){let s=t(o);r.set(o,i=s.then(aE))}return i}return Ci.forEach((o,i)=>{let s=[];o.templateUrl&&s.push(n(o.templateUrl).then(u=>{o.template=u}));let a=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=a,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let u=o.styles.length,l=o.styleUrls;o.styleUrls.forEach((d,h)=>{a.push(""),s.push(n(d).then(f=>{a[u+h]=f,l.splice(l.indexOf(d),1),l.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&s.push(n(o.styleUrl).then(u=>{a.push(u),o.styleUrl=void 0}));let c=Promise.all(s).then(()=>cE(i));e.push(c)}),iE(),Promise.all(e).then(()=>{})}var Ci=new Map,oE=new Set;function iE(){let t=Ci;return Ci=new Map,t}function sE(){return Ci.size===0}function aE(t){return typeof t=="string"?t:t.text()}function cE(t){oE.delete(t)}function uE(t){return Object.getPrototypeOf(t.prototype).constructor}function lE(t){let e=uE(t.type),r=!0,n=[t];for(;e;){let o;if(kt(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new E(903,!1);o=e.\u0275dir}if(o){if(r){n.push(o);let s=t;s.inputs=Wo(t.inputs),s.inputTransforms=Wo(t.inputTransforms),s.declaredInputs=Wo(t.declaredInputs),s.outputs=Wo(t.outputs);let a=o.hostBindings;a&&gE(t,a);let c=o.viewQuery,u=o.contentQueries;if(c&&hE(t,c),u&&pE(t,u),dE(t,o),Bm(t.outputs,o.outputs),kt(o)&&o.data.animation){let l=t.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;n--){let o=t[n];o.hostVars=e+=o.hostVars,o.hostAttrs=Ir(o.hostAttrs,r=Ir(r,o.hostAttrs))}}function Wo(t){return t===Ln?{}:t===Pe?[]:t}function hE(t,e){let r=t.viewQuery;r?t.viewQuery=(n,o)=>{e(n,o),r(n,o)}:t.viewQuery=e}function pE(t,e){let r=t.contentQueries;r?t.contentQueries=(n,o,i)=>{e(n,o,i),r(n,o,i)}:t.contentQueries=e}function gE(t,e){let r=t.hostBindings;r?t.hostBindings=(n,o)=>{e(n,o),r(n,o)}:t.hostBindings=e}function ru(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let o=e[n];Array.isArray(o)&&o[3]&&(r[n]=o[3])}t.inputTransforms=r}var Lt=class{},Sr=class{};var bi=class extends Lt{constructor(e,r,n,o=!0){super(),this.ngModuleType=e,this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ii(this);let i=If(e);this._bootstrapComponents=bh(i.bootstrap),this._r3Injector=lh(e,r,[{provide:Lt,useValue:this},{provide:zn,useValue:this.componentFactoryResolver},...n],ye(e),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Mi=class extends Sr{constructor(e){super(),this.moduleType=e}create(e){return new bi(this.moduleType,e,[])}};function mE(t,e,r){return new bi(t,e,r,!1)}var ac=class extends Lt{constructor(e){super(),this.componentFactoryResolver=new Ii(this),this.instance=null;let r=new Cr([...e.providers,{provide:Lt,useValue:this},{provide:zn,useValue:this.componentFactoryResolver}],e.parent||Cc(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Qi(t,e,r=null){return new ac({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function ip(t){return yE(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function vE(t,e){if(Array.isArray(t))for(let r=0;r>17&32767}function xE(t){return(t&2)==2}function NE(t,e){return t&131071|e<<17}function cc(t){return t|2}function Wn(t){return(t&131068)>>2}function wa(t,e){return t&-131069|e<<2}function _E(t){return(t&1)===1}function uc(t){return t|1}function AE(t,e,r,n,o,i){let s=i?e.classBindings:e.styleBindings,a=dn(s),c=Wn(s);t[n]=r;let u=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||Nr(d,l)>0)&&(u=!0)}else l=r;if(o)if(c!==0){let h=dn(t[a+1]);t[n+1]=Zo(h,a),h!==0&&(t[h+1]=wa(t[h+1],n)),t[a+1]=NE(t[a+1],n)}else t[n+1]=Zo(a,0),a!==0&&(t[a+1]=wa(t[a+1],n)),a=n;else t[n+1]=Zo(c,0),a===0?a=n:t[c+1]=wa(t[c+1],n),c=n;u&&(t[n+1]=cc(t[n+1])),Gd(t,l,n,!0),Gd(t,l,n,!1),RE(e,l,t,n,i),s=Zo(a,c),i?e.classBindings=s:e.styleBindings=s}function RE(t,e,r,n,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&Nr(i,e)>=0&&(r[n+1]=uc(r[n+1]))}function Gd(t,e,r,n){let o=t[r+1],i=e===null,s=n?dn(o):Wn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=t[s],u=t[s+1];OE(c,e)&&(a=!0,t[s+1]=n?uc(u):cc(u)),s=n?dn(u):Wn(u)}a&&(t[r+1]=n?cc(o):uc(o))}function OE(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Nr(t,e)>=0:!1}function PE(t,e,r){let n=F(),o=xc();if(ln(n,o,e)){let i=de(),s=Jf();VD(i,s,n,t,e,n[oe],r,!1)}return PE}function qd(t,e,r,n,o){let i=e.inputs,s=o?"class":"style";Qc(t,r,i[s],s,n)}function kE(t,e){return FE(t,e,null,!0),kE}function FE(t,e,r,n){let o=F(),i=de(),s=iy(2);if(i.firstUpdatePass&&jE(i,t,s,n),e!==Vt&&ln(o,s,e)){let a=i.data[Qn()];HE(i,a,o,o[oe],t,o[s+1]=zE(e,r),n,s)}}function LE(t,e){return e>=t.expandoStartIndex}function jE(t,e,r,n){let o=t.data;if(o[r+1]===null){let i=o[Qn()],s=LE(t,r);GE(i,n)&&e===null&&!s&&(e=!1),e=VE(o,i,e,n),AE(o,i,e,r,s,n)}}function VE(t,e,r,n){let o=uy(t),i=n?e.residualClasses:e.residualStyles;if(o===null)(n?e.classBindings:e.styleBindings)===0&&(r=Ea(null,t,e,r,n),r=Tr(r,e.attrs,n),i=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(r=Ea(o,t,e,r,n),i===null){let c=$E(t,e,n);c!==void 0&&Array.isArray(c)&&(c=Ea(null,t,e,c[1],n),c=Tr(c,e.attrs,n),UE(t,e,n,c))}else i=BE(t,e,n)}return i!==void 0&&(n?e.residualClasses=i:e.residualStyles=i),r}function $E(t,e,r){let n=r?e.classBindings:e.styleBindings;if(Wn(n)!==0)return t[dn(n)]}function UE(t,e,r,n){let o=r?e.classBindings:e.styleBindings;t[dn(o)]=n}function BE(t,e,r){let n,o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0;){let c=t[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=r[o+1];h===Vt&&(h=d?Pe:void 0);let f=d?da(h,n):l===n?h:void 0;if(u&&!Si(f)&&(f=da(c,n)),Si(f)&&(a=f,s))return a;let g=t[o+1];o=s?dn(g):Wn(g)}if(e!==null){let c=i?e.residualClasses:e.residualStyles;c!=null&&(a=da(c,n))}return a}function Si(t){return t!==void 0}function zE(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=ye(_r(t)))),t}function GE(t,e){return(t.flags&(e?8:16))!==0}function qE(t,e,r,n,o,i){let s=e.consts,a=Bn(s,o),c=Ar(e,t,2,n,a);return Yc(e,r,c,Bn(s,i)),c.attrs!==null&&Ei(c,c.attrs,!1),c.mergedAttrs!==null&&Ei(c,c.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,c),c}function sp(t,e,r,n){let o=F(),i=de(),s=Se+t,a=o[oe],c=i.firstCreatePass?qE(s,i,o,e,r,n):i.data[s],u=WE(i,o,c,a,e,t);o[s]=u;let l=ji(c);return hn(c,!0),Oh(a,u,c),!EE(c)&&Ui()&&qi(i,o,u,c),Qv()===0&&Ft(u,o),Kv(),l&&(qc(i,o,c),Gc(i,c,o)),n!==null&&Wc(o,c),sp}function ap(){let t=fe();Tc()?zf():(t=t.parent,hn(t,!1));let e=t;ey(e)&&ty(),Jv();let r=de();return r.firstCreatePass&&(Hi(r,t),bc(t)&&r.queries.elementEnd(t)),e.classesWithoutHost!=null&&my(e)&&qd(r,e,F(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&vy(e)&&qd(r,e,F(),e.stylesWithoutHost,!1),ap}function su(t,e,r,n){return sp(t,e,r,n),ap(),su}var WE=(t,e,r,n,o,i)=>(Bi(!0),Mh(n,o,fy()));function ZE(t,e,r,n,o){let i=e.consts,s=Bn(i,n),a=Ar(e,t,8,"ng-container",s);s!==null&&Ei(a,s,!0);let c=Bn(i,o);return Yc(e,r,a,c),e.queries!==null&&e.queries.elementStart(e,a),a}function YE(t,e,r){let n=F(),o=de(),i=t+Se,s=o.firstCreatePass?ZE(i,o,n,e,r):o.data[i];hn(s,!0);let a=KE(o,n,s,t);return n[i]=a,Ui()&&qi(o,n,a,s),Ft(a,n),ji(s)&&(qc(o,n,s),Gc(o,s,n)),r!=null&&Wc(n,s),YE}function QE(){let t=fe(),e=de();return Tc()?zf():(t=t.parent,hn(t,!1)),e.firstCreatePass&&(Hi(e,t),bc(t)&&e.queries.elementEnd(t)),QE}var KE=(t,e,r,n)=>(Bi(!0),dD(e[oe],""));function UA(){return F()}var Kt=void 0;function JE(t){let e=t,r=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return r===1&&n===0?1:5}var XE=["en",[["a","p"],["AM","PM"],Kt],[["AM","PM"],Kt,Kt],[["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"]],Kt,[["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"]],Kt,[["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}",Kt,"{1} 'at' {0}",Kt],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",JE],Ia={};function je(t){let e=eI(t),r=Zd(e);if(r)return r;let n=e.split("-")[0];if(r=Zd(n),r)return r;if(n==="en")return XE;throw new E(701,!1)}function Zd(t){return t in Ia||(Ia[t]=me.ng&&me.ng.common&&me.ng.common.locales&&me.ng.common.locales[t]),Ia[t]}var Q=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(Q||{});function eI(t){return t.toLowerCase().replace(/_/g,"-")}var Ti="en-US";var tI=Ti;function nI(t){typeof t=="string"&&(tI=t.toLowerCase().replace(/_/g,"-"))}var rI=(t,e,r)=>{};function au(t,e,r,n){let o=F(),i=de(),s=fe();return iI(i,o,o[oe],s,t,e,n),au}function oI(t,e,r,n){let o=t.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function iI(t,e,r,n,o,i,s){let a=ji(n),u=t.firstCreatePass&&Gh(t),l=e[ze],d=zh(e),h=!0;if(n.type&3||s){let b=Le(n,e),v=s?s(b):b,I=d.length,K=s?U=>s(tt(U[n.index])):n.index,z=null;if(!s&&a&&(z=oI(t,e,o,n.index)),z!==null){let U=z.__ngLastListenerFn__||z;U.__ngNextListenerFn__=i,z.__ngLastListenerFn__=i,h=!1}else{i=Qd(n,e,l,i),rI(b,o,i);let U=r.listen(v,o,i);d.push(i,U),u&&u.push(o,K,I,I+1)}}else i=Qd(n,e,l,i);let f=n.outputs,g;if(h&&f!==null&&(g=f[o])){let b=g.length;if(b)for(let v=0;v-1?jt(t.index,e):e;Jc(s,5);let a=Yd(e,r,n,i),c=o.__ngNextListenerFn__;for(;c;)a=Yd(e,r,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function BA(t=1){return dy(t)}function cp(t,e,r,n){Kw(t,e,r,n)}function up(t){let e=F(),r=de(),n=qf();Nc(n+1);let o=nu(r,n);if(t.dirty&&qv(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let i=tE(e,n);t.reset(i,Vy),t.notifyOnChanges()}return!0}return!1}function lp(){return Yw(F(),qf())}function sI(t,e,r,n){r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function HA(t){let e=ry();return Mc(e,Se+t)}function zA(t,e=""){let r=F(),n=de(),o=t+Se,i=n.firstCreatePass?Ar(n,o,1,e,null):n.data[o],s=aI(n,r,i,e,t);r[o]=s,Ui()&&qi(n,r,s,i),hn(i,!1)}var aI=(t,e,r,n,o)=>(Bi(!0),uD(e[oe],n));function cI(t){return dp("",t,""),cI}function dp(t,e,r){let n=F(),o=TE(n,t,e,r);return o!==Vt&&tw(n,Qn(),o),dp}function uI(t,e,r){let n=de();if(n.firstCreatePass){let o=kt(t);lc(r,n.data,n.blueprint,o,!0),lc(e,n.data,n.blueprint,o,!1)}}function lc(t,e,r,n,o){if(t=ve(t),Array.isArray(t))for(let i=0;i>20;if(Vn(t)||!t.multi){let f=new sn(u,o,W),g=ba(c,e,o?l:l+h,d);g===-1?(ja(hi(a,s),i,c),Ca(i,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),r.push(f),s.push(f)):(r[g]=f,s[g]=f)}else{let f=ba(c,e,l+h,d),g=ba(c,e,l,l+h),b=f>=0&&r[f],v=g>=0&&r[g];if(o&&!v||!o&&!b){ja(hi(a,s),i,c);let I=fI(o?dI:lI,r.length,o,n,u);!o&&v&&(r[g].providerFactory=I),Ca(i,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),r.push(I),s.push(I)}else{let I=fp(r[o?g:f],u,!o&&n);Ca(i,t,f>-1?f:g,I)}!o&&n&&v&&r[g].componentProviders++}}}function Ca(t,e,r,n){let o=Vn(e),i=Av(e);if(o||i){let c=(i?ve(e.useClass):e).prototype.ngOnDestroy;if(c){let u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let l=u.indexOf(r);l===-1?u.push(r,[n,c]):u[l+1].push(n,c)}else u.push(r,c)}}}function fp(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function ba(t,e,r,n){for(let o=r;o{r.providersResolver=(n,o)=>uI(n,o?o(t):t,e)}}var hI=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let o=Mf(!1,n.type),i=o.length>0?Qi([o],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=w({token:e,providedIn:"environment",factory:()=>new e(y(De))});let t=e;return t})();function hp(t){Jn("NgStandalone"),t.getStandaloneInjector=e=>e.get(hI).getOrCreateStandaloneInjector(t)}function qA(t,e,r){let n=$i()+t,o=F();return o[n]===Vt?ou(o,n,r?e.call(r):e()):DE(o,n)}function WA(t,e,r,n){return gp(F(),$i(),t,e,r,n)}function pp(t,e){let r=t[e];return r===Vt?void 0:r}function gp(t,e,r,n,o,i){let s=e+r;return ln(t,s,o)?ou(t,s+1,i?n.call(i,o):n(o)):pp(t,s+1)}function pI(t,e,r,n,o,i,s){let a=e+r;return wE(t,a,o,i)?ou(t,a+2,s?n.call(s,o,i):n(o,i)):pp(t,a+2)}function ZA(t,e){let r=de(),n,o=t+Se;r.firstCreatePass?(n=gI(e,r.pipeRegistry),r.data[o]=n,n.onDestroy&&(r.destroyHooks??=[]).push(o,n.onDestroy)):n=r.data[o];let i=n.factory||(n.factory=en(n.type,!0)),s,a=Ie(W);try{let c=fi(!1),u=i();return fi(c),sI(r,F(),o,u),u}finally{Ie(a)}}function gI(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function YA(t,e,r){let n=t+Se,o=F(),i=Mc(o,n);return mp(o,n)?gp(o,$i(),e,i.transform,r,i):i.transform(r)}function QA(t,e,r,n){let o=t+Se,i=F(),s=Mc(i,o);return mp(i,o)?pI(i,$i(),e,s.transform,r,n,s):s.transform(r,n)}function mp(t,e){return t[x].data[e].pure}var Yo=null;function mI(t){Yo!==null&&(t.defaultEncapsulation!==Yo.defaultEncapsulation||t.preserveWhitespaces!==Yo.preserveWhitespaces)||(Yo=t)}var Ki=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var cu=new D(""),Or=new D(""),Ji=(()=>{let e=class e{constructor(n,o,i){this._ngZone=n,this.registry=o,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,uu||(vI(i),i.addToWindow(o)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{$.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>o.updateCb&&o.updateCb(n)?(clearTimeout(o.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,o,i){let s=-1;o&&o>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},o)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:i})}whenStable(n,o,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,o,i),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,o,i){return[]}};e.\u0275fac=function(o){return new(o||e)(y($),y(Xi),y(Or))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Xi=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,o){this._applications.set(n,o)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,o=!0){return uu?.findTestabilityInTree(this,n,o)??null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function vI(t){uu=t}var uu;function Xn(t){return!!t&&typeof t.then=="function"}function lu(t){return!!t&&typeof t.subscribe=="function"}var es=new D(""),vp=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,o)=>{this.resolve=n,this.reject=o}),this.appInits=p(es,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let s=i();if(Xn(s))n.push(s);else if(lu(s)){let a=new Promise((c,u)=>{s.subscribe({complete:c,error:u})});n.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{o()}).catch(i=>{this.reject(i)}),n.length===0&&o(),this.initialized=!0}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ts=new D("");function yI(){Vl(()=>{throw new E(600,!1)})}function DI(t){return t.isBoundToModule}var wI=10;function EI(t,e,r){try{let n=r();return Xn(n)?n.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function yp(t,e){return Array.isArray(e)?e.reduce(yp,t):m(m({},t),e)}var mt=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(Ly),this.afterRenderEffectManager=p(tu),this.zonelessEnabled=p(Xh),this.externalTestViews=new Set,this.beforeRender=new ue,this.afterTick=new ue,this.componentTypes=[],this.components=[],this.isStable=p(pt).hasPendingTasks.pipe(T(n=>!n)),this._injector=p(De)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(o=>{n=this.isStable.subscribe({next:i=>{i&&o()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,o){let i=n instanceof wi;if(!this._injector.get(vp).done){let f=!i&&Ef(n),g=!1;throw new E(405,g)}let a;i?a=n:a=this._injector.get(zn).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=DI(a)?void 0:this._injector.get(Lt),u=o||a.selector,l=a.create(Fe.NULL,[],u,c),d=l.location.nativeElement,h=l.injector.get(cu,null);return h?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),ti(this.components,l),h?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new E(101,!1);let o=k(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,k(o),this.afterTick.next()}}detectChangesInAttachedViews(n){let o=null;this._injector.destroyed||(o=this._injector.get(Gn,null,{optional:!0}));let i=0,s=this.afterRenderEffectManager;for(;iMr(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>Mr(c))))break}}attachView(n){let o=n;this._views.push(o),o.attachToAppRef(this)}detachView(n){let o=n;ti(this._views,o),o.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let o=this._injector.get(ts,[]);[...this._bootstrapListeners,...o].forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ti(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new E(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ti(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function II(t,e,r,n){if(!r&&!Mr(t))return;Yh(t,e,r&&!n?0:1)}var fc=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},ns=(()=>{let e=class e{compileModuleSync(n){return new Mi(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let o=this.compileModuleSync(n),i=If(n),s=bh(i.declarations).reduce((a,c)=>{let u=Pt(c);return u&&a.push(new qn(u)),a},[]);return new fc(o,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),CI=new D("");function bI(t,e,r){let n=new Mi(r);return Promise.resolve(n)}function Kd(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var MI=(()=>{let e=class e{constructor(){this.zone=p($),this.changeDetectionScheduler=p(Hn),this.applicationRef=p(mt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function SI({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:r}){return t??=()=>new $(q(m({},Dp()),{scheduleInRootZone:r})),[{provide:$,useFactory:t},{provide:jn,multi:!0,useFactory:()=>{let n=p(MI,{optional:!0});return()=>n.initialize()}},{provide:jn,multi:!0,useFactory:()=>{let n=p(TI);return()=>{n.initialize()}}},e===!0?{provide:ep,useValue:!0}:[],{provide:tp,useValue:r??dh}]}function Dp(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var TI=(()=>{let e=class e{constructor(){this.subscription=new Y,this.initialized=!1,this.zone=p($),this.pendingTasks=p(pt)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{$.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{$.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var xI=(()=>{let e=class e{constructor(){this.appRef=p(mt),this.taskService=p(pt),this.ngZone=p($),this.zonelessEnabled=p(Xh),this.disableScheduling=p(ep,{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(gi):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(tp,{optional:!0})??!1),this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,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 mi||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let o=this.useMicrotaskScheduler?Ad:fh;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick(this.shouldRefreshViews))):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick(this.shouldRefreshViews)))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(gi+this.angularZoneId))}tick(n){if(this.runningTick||this.appRef.destroyed)return;let o=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(o),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Ad(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(o)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function NI(){return typeof $localize<"u"&&$localize.locale||Ti}var rs=new D("",{providedIn:"root",factory:()=>p(rs,A.Optional|A.SkipSelf)||NI()});var du=new D("");function Qo(t){return!!t.platformInjector}function _I(t){let e=Qo(t)?t.r3Injector:t.moduleRef.injector,r=e.get($);return r.run(()=>{Qo(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=e.get(ct,null),o;if(r.runOutsideAngular(()=>{o=r.onError.subscribe({next:i=>{n.handleError(i)}})}),Qo(t)){let i=()=>e.destroy(),s=t.platformInjector.get(du);s.add(i),e.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else t.moduleRef.onDestroy(()=>{ti(t.allPlatformModules,t.moduleRef),o.unsubscribe()});return EI(n,r,()=>{let i=e.get(vp);return i.runInitializers(),i.donePromise.then(()=>{let s=e.get(rs,Ti);if(nI(s||Ti),Qo(t)){let a=e.get(mt);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return AI(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function AI(t,e){let r=t.injector.get(mt);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>r.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(r);else throw new E(-403,!1);e.push(t)}var wp=(()=>{let e=class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,o){let i=o?.scheduleInRootZone,s=()=>Fy(o?.ngZone,q(m({},Dp({eventCoalescing:o?.ngZoneEventCoalescing,runCoalescing:o?.ngZoneRunCoalescing})),{scheduleInRootZone:i})),a=o?.ignoreChangesOutsideZone,c=[SI({ngZoneFactory:s,ignoreChangesOutsideZone:a}),{provide:Hn,useExisting:xI}],u=mE(n.moduleType,this.injector,c);return _I({moduleRef:u,allPlatformModules:this._modules})}bootstrapModule(n,o=[]){let i=yp({},o);return bI(this.injector,i,n).then(s=>this.bootstrapModuleFactory(s,i))}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new E(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());let n=this._injector.get(du,null);n&&(n.forEach(o=>o()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(o){return new(o||e)(y(Fe))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),wr=null,Ep=new D("");function RI(t){if(wr&&!wr.get(Ep,!1))throw new E(400,!1);yI(),wr=t;let e=t.get(wp);return kI(t),e}function fu(t,e,r=[]){let n=`Platform: ${e}`,o=new D(n);return(i=[])=>{let s=Ip();if(!s||s.injector.get(Ep,!1)){let a=[...r,...i,{provide:o,useValue:!0}];t?t(a):RI(OI(a,n))}return PI(o)}}function OI(t=[],e){return Fe.create({name:e,providers:[{provide:ki,useValue:"platform"},{provide:du,useValue:new Set([()=>wr=null])},...t]})}function PI(t){let e=Ip();if(!e)throw new E(401,!1);return e}function Ip(){return wr?.get(wp)??null}function kI(t){t.get(jc,null)?.forEach(r=>r())}var pn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=FI;let t=e;return t})();function FI(t){return LI(fe(),F(),(t&16)===16)}function LI(t,e,r){if(Li(t)&&!r){let n=jt(t.index,e);return new cn(n,n)}else if(t.type&175){let n=e[et];return new cn(n,e)}return null}var hc=class{constructor(){}supports(e){return ip(e)}create(e){return new pc(e)}},jI=(t,e)=>e,pc=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||jI}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,o=0,i=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(o,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,o),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,o)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,o++}),this.length=o;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,o){let i;return e===null?i=this._itTail:(i=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,i,o)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,o),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,i,o)):e=this._addAfter(new gc(r,n),i,o)),e}_verifyReinsertion(e,r,n,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return i!==null?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let o=e._prevRemoved,i=e._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let o=r===null?this._itHead:r._next;return e._next=o,e._prev=r,o===null?this._itTail=e:o._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new xi),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new xi),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},gc=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},mc=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},xi=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new mc,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,o=this.map.get(n);return o?o.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Jd(t,e,r){let n=t.previousIndex;if(n===null)return n;let o=0;return r&&n{let e=class e{constructor(n){this.factories=n}static create(n,o){if(o!=null){let i=o.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:o=>e.create(n,o||Xd()),deps:[[e,new yc,new Oi]]}}find(n){let o=this.factories.find(i=>i.supports(n));if(o!=null)return o;throw new E(901,!1)}};e.\u0275prov=w({token:e,providedIn:"root",factory:Xd});let t=e;return t})();var Cp=fu(null,"core",[]),bp=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(o){return new(o||e)(y(mt))},e.\u0275mod=dt({type:e}),e.\u0275inj=lt({});let t=e;return t})();var Mp=new D("");function Pr(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function KA(t,e){Jn("NgSignals");let r=Fl(t);return e?.equal&&(r[Mt].equal=e.equal),r}function pu(t){let e=k(null);try{return t()}finally{k(e)}}function Sp(t){let e=Pt(t);if(!e)return null;let r=new qn(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var Op=null;function gn(){return Op}function Pp(t){Op??=t}var fs=class{};var ce=new D(""),Mu=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:()=>p($I),providedIn:"platform"});let t=e;return t})(),kp=new D(""),$I=(()=>{let e=class e extends Mu{constructor(){super(),this._doc=p(ce),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return gn().getBaseHref(this._doc)}onPopState(n){let o=gn().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",n,!1),()=>o.removeEventListener("popstate",n)}onHashChange(n){let o=gn().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",n,!1),()=>o.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,o,i){this._history.pushState(n,o,i)}replaceState(n,o,i){this._history.replaceState(n,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Su(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function Tp(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function yt(t){return t&&t[0]!=="?"?"?"+t:t}var wt=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:()=>p(Tu),providedIn:"root"});let t=e;return t})(),Fp=new D(""),Tu=(()=>{let e=class e extends wt{constructor(n,o){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??p(ce).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 Su(this._baseHref,n)}path(n=!1){let o=this._platformLocation.pathname+yt(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${o}${i}`:o}pushState(n,o,i,s){let a=this.prepareExternalUrl(i+yt(s));this._platformLocation.pushState(n,o,a)}replaceState(n,o,i,s){let a=this.prepareExternalUrl(i+yt(s));this._platformLocation.replaceState(n,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(o){return new(o||e)(y(Mu),y(Fp,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Lp=(()=>{let e=class e extends wt{constructor(n,o){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],o!=null&&(this._baseHref=o)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let o=this._platformLocation.hash??"#";return o.length>0?o.substring(1):o}prepareExternalUrl(n){let o=Su(this._baseHref,n);return o.length>0?"#"+o:o}pushState(n,o,i,s){let a=this.prepareExternalUrl(i+yt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,o,a)}replaceState(n,o,i,s){let a=this.prepareExternalUrl(i+yt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(o){return new(o||e)(y(Mu),y(Fp,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),tr=(()=>{let e=class e{constructor(n){this._subject=new ae,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let o=this._locationStrategy.getBaseHref();this._basePath=HI(Tp(xp(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,o=""){return this.path()==this.normalize(n+yt(o))}normalize(n){return e.stripTrailingSlash(BI(this._basePath,xp(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,o="",i=null){this._locationStrategy.pushState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+yt(o)),i)}replaceState(n,o="",i=null){this._locationStrategy.replaceState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+yt(o)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",o){this._urlChangeListeners.forEach(i=>i(n,o))}subscribe(n,o,i){return this._subject.subscribe({next:n,error:o,complete:i})}};e.normalizeQueryParams=yt,e.joinWithSlash=Su,e.stripTrailingSlash=Tp,e.\u0275fac=function(o){return new(o||e)(y(wt))},e.\u0275prov=w({token:e,factory:()=>UI(),providedIn:"root"});let t=e;return t})();function UI(){return new tr(y(wt))}function BI(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function xp(t){return t.replace(/\/index.html$/,"")}function HI(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}var we=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(we||{}),H=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(H||{}),xe=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(xe||{}),Ut={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 zI(t){return je(t)[Q.LocaleId]}function GI(t,e,r){let n=je(t),o=[n[Q.DayPeriodsFormat],n[Q.DayPeriodsStandalone]],i=Ve(o,e);return Ve(i,r)}function qI(t,e,r){let n=je(t),o=[n[Q.DaysFormat],n[Q.DaysStandalone]],i=Ve(o,e);return Ve(i,r)}function WI(t,e,r){let n=je(t),o=[n[Q.MonthsFormat],n[Q.MonthsStandalone]],i=Ve(o,e);return Ve(i,r)}function ZI(t,e){let n=je(t)[Q.Eras];return Ve(n,e)}function os(t,e){let r=je(t);return Ve(r[Q.DateFormat],e)}function is(t,e){let r=je(t);return Ve(r[Q.TimeFormat],e)}function ss(t,e){let n=je(t)[Q.DateTimeFormat];return Ve(n,e)}function ps(t,e){let r=je(t),n=r[Q.NumberSymbols][e];if(typeof n>"u"){if(e===Ut.CurrencyDecimal)return r[Q.NumberSymbols][Ut.Decimal];if(e===Ut.CurrencyGroup)return r[Q.NumberSymbols][Ut.Group]}return n}function jp(t){if(!t[Q.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Q.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function YI(t){let e=je(t);return jp(e),(e[Q.ExtraData][2]||[]).map(n=>typeof n=="string"?mu(n):[mu(n[0]),mu(n[1])])}function QI(t,e,r){let n=je(t);jp(n);let o=[n[Q.ExtraData][0],n[Q.ExtraData][1]],i=Ve(o,e)||[];return Ve(i,r)||[]}function Ve(t,e){for(let r=e;r>-1;r--)if(typeof t[r]<"u")return t[r];throw new Error("Locale data API: locale data undefined")}function mu(t){let[e,r]=t.split(":");return{hours:+e,minutes:+r}}var KI=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,as={},JI=/((?:[^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]*)/,Dt=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Dt||{}),j=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(j||{}),L=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(L||{});function XI(t,e,r,n){let o=cC(t);e=vt(r,e)||e;let s=[],a;for(;e;)if(a=JI.exec(e),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;e=l}else{s.push(e);break}let c=o.getTimezoneOffset();n&&(c=$p(n,c),o=aC(o,n,!0));let u="";return s.forEach(l=>{let d=iC(l);u+=d?d(o,r,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function hs(t,e,r){let n=new Date(0);return n.setFullYear(t,e,r),n.setHours(0,0,0),n}function vt(t,e){let r=zI(t);if(as[r]??={},as[r][e])return as[r][e];let n="";switch(e){case"shortDate":n=os(t,xe.Short);break;case"mediumDate":n=os(t,xe.Medium);break;case"longDate":n=os(t,xe.Long);break;case"fullDate":n=os(t,xe.Full);break;case"shortTime":n=is(t,xe.Short);break;case"mediumTime":n=is(t,xe.Medium);break;case"longTime":n=is(t,xe.Long);break;case"fullTime":n=is(t,xe.Full);break;case"short":let o=vt(t,"shortTime"),i=vt(t,"shortDate");n=cs(ss(t,xe.Short),[o,i]);break;case"medium":let s=vt(t,"mediumTime"),a=vt(t,"mediumDate");n=cs(ss(t,xe.Medium),[s,a]);break;case"long":let c=vt(t,"longTime"),u=vt(t,"longDate");n=cs(ss(t,xe.Long),[c,u]);break;case"full":let l=vt(t,"fullTime"),d=vt(t,"fullDate");n=cs(ss(t,xe.Full),[l,d]);break}return n&&(as[r][e]=n),n}function cs(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(r,n){return e!=null&&n in e?e[n]:r})),t}function qe(t,e,r="-",n,o){let i="";(t<0||o&&t<=0)&&(o?t=-t+1:(t=-t,i=r));let s=String(t);for(;s.length0||a>-r)&&(a+=r),t===j.Hours)a===0&&r===-12&&(a=12);else if(t===j.FractionalSeconds)return eC(a,e);let c=ps(s,Ut.MinusSign);return qe(a,e,c,n,o)}}function tC(t,e){switch(t){case j.FullYear:return e.getFullYear();case j.Month:return e.getMonth();case j.Date:return e.getDate();case j.Hours:return e.getHours();case j.Minutes:return e.getMinutes();case j.Seconds:return e.getSeconds();case j.FractionalSeconds:return e.getMilliseconds();case j.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function G(t,e,r=we.Format,n=!1){return function(o,i){return nC(o,i,t,e,r,n)}}function nC(t,e,r,n,o,i){switch(r){case L.Months:return WI(e,o,n)[t.getMonth()];case L.Days:return qI(e,o,n)[t.getDay()];case L.DayPeriods:let s=t.getHours(),a=t.getMinutes();if(i){let u=YI(e),l=QI(e,o,n),d=u.findIndex(h=>{if(Array.isArray(h)){let[f,g]=h,b=s>=f.hours&&a>=f.minutes,v=s0?Math.floor(o/60):Math.ceil(o/60);switch(t){case Dt.Short:return(o>=0?"+":"")+qe(s,2,i)+qe(Math.abs(o%60),2,i);case Dt.ShortGMT:return"GMT"+(o>=0?"+":"")+qe(s,1,i);case Dt.Long:return"GMT"+(o>=0?"+":"")+qe(s,2,i)+":"+qe(Math.abs(o%60),2,i);case Dt.Extended:return n===0?"Z":(o>=0?"+":"")+qe(s,2,i)+":"+qe(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${t}"`)}}}var rC=0,ds=4;function oC(t){let e=hs(t,rC,1).getDay();return hs(t,0,1+(e<=ds?ds:ds+7)-e)}function Vp(t){let e=t.getDay(),r=e===0?-3:ds-e;return hs(t.getFullYear(),t.getMonth(),t.getDate()+r)}function vu(t,e=!1){return function(r,n){let o;if(e){let i=new Date(r.getFullYear(),r.getMonth(),1).getDay()-1,s=r.getDate();o=1+Math.floor((s+i)/7)}else{let i=Vp(r),s=oC(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return qe(o,t,ps(n,Ut.MinusSign))}}function ls(t,e=!1){return function(r,n){let i=Vp(r).getFullYear();return qe(i,t,ps(n,Ut.MinusSign),e)}}var yu={};function iC(t){if(yu[t])return yu[t];let e;switch(t){case"G":case"GG":case"GGG":e=G(L.Eras,H.Abbreviated);break;case"GGGG":e=G(L.Eras,H.Wide);break;case"GGGGG":e=G(L.Eras,H.Narrow);break;case"y":e=ee(j.FullYear,1,0,!1,!0);break;case"yy":e=ee(j.FullYear,2,0,!0,!0);break;case"yyy":e=ee(j.FullYear,3,0,!1,!0);break;case"yyyy":e=ee(j.FullYear,4,0,!1,!0);break;case"Y":e=ls(1);break;case"YY":e=ls(2,!0);break;case"YYY":e=ls(3);break;case"YYYY":e=ls(4);break;case"M":case"L":e=ee(j.Month,1,1);break;case"MM":case"LL":e=ee(j.Month,2,1);break;case"MMM":e=G(L.Months,H.Abbreviated);break;case"MMMM":e=G(L.Months,H.Wide);break;case"MMMMM":e=G(L.Months,H.Narrow);break;case"LLL":e=G(L.Months,H.Abbreviated,we.Standalone);break;case"LLLL":e=G(L.Months,H.Wide,we.Standalone);break;case"LLLLL":e=G(L.Months,H.Narrow,we.Standalone);break;case"w":e=vu(1);break;case"ww":e=vu(2);break;case"W":e=vu(1,!0);break;case"d":e=ee(j.Date,1);break;case"dd":e=ee(j.Date,2);break;case"c":case"cc":e=ee(j.Day,1);break;case"ccc":e=G(L.Days,H.Abbreviated,we.Standalone);break;case"cccc":e=G(L.Days,H.Wide,we.Standalone);break;case"ccccc":e=G(L.Days,H.Narrow,we.Standalone);break;case"cccccc":e=G(L.Days,H.Short,we.Standalone);break;case"E":case"EE":case"EEE":e=G(L.Days,H.Abbreviated);break;case"EEEE":e=G(L.Days,H.Wide);break;case"EEEEE":e=G(L.Days,H.Narrow);break;case"EEEEEE":e=G(L.Days,H.Short);break;case"a":case"aa":case"aaa":e=G(L.DayPeriods,H.Abbreviated);break;case"aaaa":e=G(L.DayPeriods,H.Wide);break;case"aaaaa":e=G(L.DayPeriods,H.Narrow);break;case"b":case"bb":case"bbb":e=G(L.DayPeriods,H.Abbreviated,we.Standalone,!0);break;case"bbbb":e=G(L.DayPeriods,H.Wide,we.Standalone,!0);break;case"bbbbb":e=G(L.DayPeriods,H.Narrow,we.Standalone,!0);break;case"B":case"BB":case"BBB":e=G(L.DayPeriods,H.Abbreviated,we.Format,!0);break;case"BBBB":e=G(L.DayPeriods,H.Wide,we.Format,!0);break;case"BBBBB":e=G(L.DayPeriods,H.Narrow,we.Format,!0);break;case"h":e=ee(j.Hours,1,-12);break;case"hh":e=ee(j.Hours,2,-12);break;case"H":e=ee(j.Hours,1);break;case"HH":e=ee(j.Hours,2);break;case"m":e=ee(j.Minutes,1);break;case"mm":e=ee(j.Minutes,2);break;case"s":e=ee(j.Seconds,1);break;case"ss":e=ee(j.Seconds,2);break;case"S":e=ee(j.FractionalSeconds,1);break;case"SS":e=ee(j.FractionalSeconds,2);break;case"SSS":e=ee(j.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=us(Dt.Short);break;case"ZZZZZ":e=us(Dt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=us(Dt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=us(Dt.Long);break;default:return null}return yu[t]=e,e}function $p(t,e){t=t.replace(/:/g,"");let r=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(r)?e:r}function sC(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function aC(t,e,r){let n=r?-1:1,o=t.getTimezoneOffset(),i=$p(e,o);return sC(t,n*(i-o))}function cC(t){if(Np(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[o,i=1,s=1]=t.split("-").map(a=>+a);return hs(o,i-1,s)}let r=parseFloat(t);if(!isNaN(t-r))return new Date(r);let n;if(n=t.match(KI))return uC(n)}let e=new Date(t);if(!Np(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function uC(t){let e=new Date(0),r=0,n=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=Number(t[9]+t[10]),n=Number(t[9]+t[11])),o.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-r,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return i.call(e,s,a,c,u),e}function Np(t){return t instanceof Date&&!isNaN(t.valueOf())}function gs(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[o,i]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}var Du=class{constructor(e,r,n,o){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},wR=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,o,i){this._viewContainer=n,this._template=o,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let o=this._viewContainer;n.forEachOperation((i,s,a)=>{if(i.previousIndex==null)o.createEmbeddedView(this._template,new Du(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(s===null?void 0:s);else if(s!==null){let c=o.get(s);o.move(c,a),_p(c,i)}});for(let i=0,s=o.length;i{let s=o.get(i.currentIndex);_p(s,i)})}static ngTemplateContextGuard(n,o){return!0}};e.\u0275fac=function(o){return new(o||e)(W($t),W(un),W(hu))},e.\u0275dir=fn({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function _p(t,e){t.context.$implicit=e.item}var ER=(()=>{let e=class e{constructor(n,o){this._viewContainer=n,this._context=new wu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Ap("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Ap("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,o){return!0}};e.\u0275fac=function(o){return new(o||e)(W($t),W(un))},e.\u0275dir=fn({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),wu=class{constructor(){this.$implicit=null,this.ngIf=null}};function Ap(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${ye(e)}'.`)}function Up(t,e){return new E(2100,!1)}var Eu=class{createSubscription(e,r){return pu(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){pu(()=>e.unsubscribe())}},Iu=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},lC=new Iu,dC=new Eu,IR=(()=>{let e=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,o=>this._updateLatestValue(n,o))}_selectStrategy(n){if(Xn(n))return lC;if(lu(n))return dC;throw Up(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,o){n===this._obj&&(this._latestValue=o,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(o){return new(o||e)(W(pn,16))},e.\u0275pipe=Ec({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var fC="mediumDate",hC=new D(""),pC=new D(""),CR=(()=>{let e=class e{constructor(n,o,i){this.locale=n,this.defaultTimezone=o,this.defaultOptions=i}transform(n,o,i,s){if(n==null||n===""||n!==n)return null;try{let a=o??this.defaultOptions?.dateFormat??fC,c=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return XI(n,a,s||this.locale,c)}catch(a){throw Up(e,a.message)}}};e.\u0275fac=function(o){return new(o||e)(W(rs,16),W(hC,24),W(pC,24))},e.\u0275pipe=Ec({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();var Bp=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=dt({type:e}),e.\u0275inj=lt({});let t=e;return t})(),xu="browser",gC="server";function mC(t){return t===xu}function ms(t){return t===gC}var Hp=(()=>{let e=class e{};e.\u0275prov=w({token:e,providedIn:"root",factory:()=>mC(p(nt))?new Cu(p(ce),window):new bu});let t=e;return t})(),Cu=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=vC(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,o=r.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],o-i[1])}};function vC(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=n.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(e)||i.querySelector(`[name="${e}"]`);if(s)return s}o=n.nextNode()}}return null}var bu=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},er=class{};var Lr=class{},ys=class{},Et=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(r=>{let n=r.indexOf(":");if(n>0){let o=r.slice(0,n),i=o.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let o=(e.op==="a"?this.headers.get(r):void 0)||[];o.push(...n),this.headers.set(r,o);break;case"d":let i=e.value;if(!i)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(i=>i.toString()),o=e.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var _u=class{encodeKey(e){return Gp(e)}encodeValue(e){return Gp(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function yC(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,i)),e.decodeValue(o.slice(i+1))],c=r.get(s)||[];c.push(a),r.set(s,c)}),r}var DC=/%(\d[a-f0-9])/gi,wC={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Gp(t){return encodeURIComponent(t).replace(DC,(e,r)=>wC[r]??e)}function vs(t){return`${t}`}var Ht=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new _u,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=yC(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],o=Array.isArray(n)?n.map(vs):[vs(n)];this.map.set(r,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let o=e[n];Array.isArray(o)?o.forEach(i=>{r.push({param:n,value:i,op:"a"})}):r.push({param:n,value:o,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(vs(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],o=n.indexOf(vs(e.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Au=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function EC(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function qp(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Wp(t){return typeof Blob<"u"&&t instanceof Blob}function Zp(t){return typeof FormData<"u"&&t instanceof FormData}function IC(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Fr=class t{constructor(e,r,n,o){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let i;if(EC(this.method)||o?(this.body=n!==void 0?n:null,i=o):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new Et,this.context??=new Au,!this.params)this.params=new Ht,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),c=a===-1?"?":ah.set(f,e.setHeaders[f]),u)),e.setParams&&(l=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),l)),new t(r,n,s,{params:l,headers:u,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}},zt=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(zt||{}),jr=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new Et,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Ds=class t extends jr{constructor(e={}){super(e),this.type=zt.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Vr=class t extends jr{constructor(e={}){super(e),this.type=zt.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Bt=class extends jr{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Xp=200,CC=204;function Nu(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Pu=(()=>{let e=class e{constructor(n){this.handler=n}request(n,o,i={}){let s;if(n instanceof Fr)s=n;else{let u;i.headers instanceof Et?u=i.headers:u=new Et(i.headers);let l;i.params&&(i.params instanceof Ht?l=i.params:l=new Ht({fromObject:i.params})),s=new Fr(n,o,i.body!==void 0?i.body:null,{headers:u,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let a=C(s).pipe(it(u=>this.handler.handle(u)));if(n instanceof Fr||i.observe==="events")return a;let c=a.pipe(pe(u=>u instanceof Vr));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(T(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(T(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(T(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return c.pipe(T(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(n,o={}){return this.request("DELETE",n,o)}get(n,o={}){return this.request("GET",n,o)}head(n,o={}){return this.request("HEAD",n,o)}jsonp(n,o){return this.request("JSONP",n,{params:new Ht().append(o,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,o={}){return this.request("OPTIONS",n,o)}patch(n,o,i={}){return this.request("PATCH",n,Nu(i,o))}post(n,o,i={}){return this.request("POST",n,Nu(i,o))}put(n,o,i={}){return this.request("PUT",n,Nu(i,o))}};e.\u0275fac=function(o){return new(o||e)(y(Lr))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),bC=/^\)\]\}',?\n/,MC="X-Request-URL";function Yp(t){if(t.url)return t.url;let e=MC.toLocaleLowerCase();return t.headers.get(e)}var SC=(()=>{let e=class e{constructor(){this.fetchImpl=p(Ru,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=p($)}handle(n){return new P(o=>{let i=new AbortController;return this.doRequest(n,i.signal,o).then(Ou,s=>o.error(new Bt({error:s}))),()=>i.abort()})}doRequest(n,o,i){return lo(this,null,function*(){let s=this.createRequestInit(n),a;try{let g=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,m({signal:o},s)));TC(g),i.next({type:zt.Sent}),a=yield g}catch(g){i.error(new Bt({error:g,status:g.status??0,statusText:g.statusText,url:n.urlWithParams,headers:g.headers}));return}let c=new Et(a.headers),u=a.statusText,l=Yp(a)??n.urlWithParams,d=a.status,h=null;if(n.reportProgress&&i.next(new Ds({headers:c,status:d,statusText:u,url:l})),a.body){let g=a.headers.get("content-length"),b=[],v=a.body.getReader(),I=0,K,z,U=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>lo(this,null,function*(){for(;;){let{done:te,value:Re}=yield v.read();if(te)break;if(b.push(Re),I+=Re.length,n.reportProgress){z=n.responseType==="text"?(z??"")+(K??=new TextDecoder).decode(Re,{stream:!0}):void 0;let wn=()=>i.next({type:zt.DownloadProgress,total:g?+g:void 0,loaded:I,partialText:z});U?U.run(wn):wn()}}}));let Ae=this.concatChunks(b,I);try{let te=a.headers.get("Content-Type")??"";h=this.parseBody(n,Ae,te)}catch(te){i.error(new Bt({error:te,headers:new Et(a.headers),status:a.status,statusText:a.statusText,url:Yp(a)??n.urlWithParams}));return}}d===0&&(d=h?Xp:0),d>=200&&d<300?(i.next(new Vr({body:h,headers:c,status:d,statusText:u,url:l})),i.complete()):i.error(new Bt({error:h,headers:c,status:d,statusText:u,url:l}))})}parseBody(n,o,i){switch(n.responseType){case"json":let s=new TextDecoder().decode(o).replace(bC,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(o);case"blob":return new Blob([o],{type:i});case"arraybuffer":return o.buffer}}createRequestInit(n){let o={},i=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>o[s]=a.join(",")),n.headers.has("Accept")||(o.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let s=n.detectContentTypeHeader();s!==null&&(o["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:o,credentials:i}}concatChunks(n,o){let i=new Uint8Array(o),s=0;for(let a of n)i.set(a,s),s+=a.length;return i}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Ru=class{};function Ou(){}function TC(t){t.then(Ou,Ou)}function eg(t,e){return e(t)}function xC(t,e){return(r,n)=>e.intercept(r,{handle:o=>t(o,n)})}function NC(t,e,r){return(n,o)=>Te(r,()=>e(n,i=>t(i,o)))}var _C=new D(""),ku=new D(""),AC=new D(""),tg=new D("",{providedIn:"root",factory:()=>!0});function RC(){let t=null;return(e,r)=>{t===null&&(t=(p(_C,{optional:!0})??[]).reduceRight(xC,eg));let n=p(pt);if(p(tg)){let i=n.add();return t(e,r).pipe(Nt(()=>n.remove(i)))}else return t(e,r)}}var Qp=(()=>{let e=class e extends Lr{constructor(n,o){super(),this.backend=n,this.injector=o,this.chain=null,this.pendingTasks=p(pt),this.contributeToStability=p(tg)}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(ku),...this.injector.get(AC,[])]));this.chain=o.reduceRight((i,s)=>NC(i,s,this.injector),eg)}if(this.contributeToStability){let o=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(Nt(()=>this.pendingTasks.remove(o)))}else return this.chain(n,o=>this.backend.handle(o))}};e.\u0275fac=function(o){return new(o||e)(y(ys),y(De))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();var OC=/^\)\]\}',?\n/;function PC(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var Kp=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new E(-2800,!1);let o=this.xhrFactory;return(o.\u0275loadImpl?Z(o.\u0275loadImpl()):C(null)).pipe(ge(()=>new P(s=>{let a=o.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((v,I)=>a.setRequestHeader(v,I.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let v=n.detectContentTypeHeader();v!==null&&a.setRequestHeader("Content-Type",v)}if(n.responseType){let v=n.responseType.toLowerCase();a.responseType=v!=="json"?v:"text"}let c=n.serializeBody(),u=null,l=()=>{if(u!==null)return u;let v=a.statusText||"OK",I=new Et(a.getAllResponseHeaders()),K=PC(a)||n.url;return u=new Ds({headers:I,status:a.status,statusText:v,url:K}),u},d=()=>{let{headers:v,status:I,statusText:K,url:z}=l(),U=null;I!==CC&&(U=typeof a.response>"u"?a.responseText:a.response),I===0&&(I=U?Xp:0);let Ae=I>=200&&I<300;if(n.responseType==="json"&&typeof U=="string"){let te=U;U=U.replace(OC,"");try{U=U!==""?JSON.parse(U):null}catch(Re){U=te,Ae&&(Ae=!1,U={error:Re,text:U})}}Ae?(s.next(new Vr({body:U,headers:v,status:I,statusText:K,url:z||void 0})),s.complete()):s.error(new Bt({error:U,headers:v,status:I,statusText:K,url:z||void 0}))},h=v=>{let{url:I}=l(),K=new Bt({error:v,status:a.status||0,statusText:a.statusText||"Unknown Error",url:I||void 0});s.error(K)},f=!1,g=v=>{f||(s.next(l()),f=!0);let I={type:zt.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(I.total=v.total),n.responseType==="text"&&a.responseText&&(I.partialText=a.responseText),s.next(I)},b=v=>{let I={type:zt.UploadProgress,loaded:v.loaded};v.lengthComputable&&(I.total=v.total),s.next(I)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),n.reportProgress&&(a.addEventListener("progress",g),c!==null&&a.upload&&a.upload.addEventListener("progress",b)),a.send(c),s.next({type:zt.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),n.reportProgress&&(a.removeEventListener("progress",g),c!==null&&a.upload&&a.upload.removeEventListener("progress",b)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(o){return new(o||e)(y(er))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),ng=new D(""),kC="XSRF-TOKEN",FC=new D("",{providedIn:"root",factory:()=>kC}),LC="X-XSRF-TOKEN",jC=new D("",{providedIn:"root",factory:()=>LC}),ws=class{},VC=(()=>{let e=class e{constructor(n,o,i){this.doc=n,this.platform=o,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=gs(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(o){return new(o||e)(y(ce),y(nt),y(FC))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function $C(t,e){let r=t.url.toLowerCase();if(!p(ng)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=p(ws).getToken(),o=p(jC);return n!=null&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,n)})),e(t)}var rg=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(rg||{});function UC(t,e){return{\u0275kind:t,\u0275providers:e}}function BC(...t){let e=[Pu,Kp,Qp,{provide:Lr,useExisting:Qp},{provide:ys,useFactory:()=>p(SC,{optional:!0})??p(Kp)},{provide:ku,useValue:$C,multi:!0},{provide:ng,useValue:!0},{provide:ws,useClass:VC}];for(let r of t)e.push(...r.\u0275providers);return Pi(e)}var Jp=new D("");function HC(){return UC(rg.LegacyInterceptors,[{provide:Jp,useFactory:RC},{provide:ku,useExisting:Jp,multi:!0}])}var LR=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=dt({type:e}),e.\u0275inj=lt({providers:[BC(HC())]});let t=e;return t})();var ju=class extends fs{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Vu=class t extends ju{static makeCurrent(){Pp(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.remove()}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=GC();return r==null?null:qC(r)}resetBaseElement(){$r=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return gs(document.cookie,e)}},$r=null;function GC(){return $r=$r||document.querySelector("base"),$r?$r.getAttribute("href"):null}function qC(t){return new URL(t,document.baseURI).pathname}var $u=class{addToWindow(e){me.getAngularTestability=(n,o=!0)=>{let i=e.findTestabilityInTree(n,o);if(i==null)throw new E(5103,!1);return i},me.getAllAngularTestabilities=()=>e.getAllTestabilities(),me.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let o=me.getAllAngularTestabilities(),i=o.length,s=function(){i--,i==0&&n()};o.forEach(a=>{a.whenStable(s)})};me.frameworkStabilizers||(me.frameworkStabilizers=[]),me.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let o=e.getTestability(r);return o??(n?gn().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},WC=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Es=new D(""),ag=(()=>{let e=class e{constructor(n,o){this._zone=o,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,o,i){return this._findPluginFor(o).addEventListener(n,o,i)}getZone(){return this._zone}_findPluginFor(n){let o=this._eventNameToPlugin.get(n);if(o)return o;if(o=this._plugins.find(s=>s.supports(n)),!o)throw new E(5101,!1);return this._eventNameToPlugin.set(n,o),o}};e.\u0275fac=function(o){return new(o||e)(y(Es),y($))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Ur=class{constructor(e){this._doc=e}},Fu="ng-app-id",cg=(()=>{let e=class e{constructor(n,o,i,s={}){this.doc=n,this.appId=o,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=ms(s),this.resetHostNodes()}addStyles(n){for(let o of n)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(n){for(let o of n)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(o=>o.remove()),n.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let o of this.getAllStyles())this.addStyleToHost(n,o)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let o of this.hostNodes)this.addStyleToHost(o,n)}onStyleRemoved(n){let o=this.styleRef;o.get(n)?.elements?.forEach(i=>i.remove()),o.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Fu}="${this.appId}"]`);if(n?.length){let o=new Map;return n.forEach(i=>{i.textContent!=null&&o.set(i.textContent,i)}),o}return null}changeUsageCount(n,o){let i=this.styleRef;if(i.has(n)){let s=i.get(n);return s.usage+=o,s.usage}return i.set(n,{usage:o,elements:[]}),o}getStyleElement(n,o){let i=this.styleNodesInDOM,s=i?.get(o);if(s?.parentNode===n)return i.delete(o),s.removeAttribute(Fu),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(Fu,this.appId),n.appendChild(a),a}}addStyleToHost(n,o){let i=this.getStyleElement(n,o),s=this.styleRef,a=s.get(o)?.elements;a?a.push(i):s.set(o,{elements:[i],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(o){return new(o||e)(y(ce),y(zi),y(Vc,8),y(nt))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Lu={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"},Bu=/%COMP%/g,ug="%COMP%",ZC=`_nghost-${ug}`,YC=`_ngcontent-${ug}`,QC=!0,KC=new D("",{providedIn:"root",factory:()=>QC});function JC(t){return YC.replace(Bu,t)}function XC(t){return ZC.replace(Bu,t)}function lg(t,e){return e.map(r=>r.replace(Bu,t))}var og=(()=>{let e=class e{constructor(n,o,i,s,a,c,u,l=null){this.eventManager=n,this.sharedStylesHost=o,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=ms(c),this.defaultRenderer=new Br(n,a,u,this.platformIsServer)}createRenderer(n,o){if(!n||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===Je.ShadowDom&&(o=q(m({},o),{encapsulation:Je.Emulated}));let i=this.getOrCreateRenderer(n,o);return i instanceof Is?i.applyToHost(n):i instanceof Hr&&i.applyStyles(),i}getOrCreateRenderer(n,o){let i=this.rendererByCompId,s=i.get(o.id);if(!s){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(o.encapsulation){case Je.Emulated:s=new Is(u,l,o,this.appId,d,a,c,h);break;case Je.ShadowDom:return new Uu(u,l,n,o,a,c,this.nonce,h);default:s=new Hr(u,l,o,d,a,c,h);break}i.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(o){return new(o||e)(y(ag),y(cg),y(zi),y(KC),y(ce),y(nt),y($),y(Vc))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Br=class{constructor(e,r,n,o){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Lu[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(ig(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(ig(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){r.remove()}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new E(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,o){if(o){r=o+":"+r;let i=Lu[o];i?e.setAttributeNS(i,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let o=Lu[n];o?e.removeAttributeNS(o,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,o){o&(ut.DashCase|ut.Important)?e.style.setProperty(r,n,o&ut.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&ut.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=gn().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function ig(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Uu=class extends Br{constructor(e,r,n,o,i,s,a,c){super(e,i,s,c),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=lg(o.id,o.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(null,r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Hr=class extends Br{constructor(e,r,n,o,i,s,a,c){super(e,i,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=o,this.styles=c?lg(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Is=class extends Hr{constructor(e,r,n,o,i,s,a,c){let u=o+"-"+n.id;super(e,r,n,i,s,a,c,u),this.contentAttr=JC(u),this.hostAttr=XC(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},eb=(()=>{let e=class e extends Ur{constructor(n){super(n)}supports(n){return!0}addEventListener(n,o,i){return n.addEventListener(o,i,!1),()=>this.removeEventListener(n,o,i)}removeEventListener(n,o,i){return n.removeEventListener(o,i)}};e.\u0275fac=function(o){return new(o||e)(y(ce))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),tb=(()=>{let e=class e extends Ur{constructor(n){super(n),this.delegate=p(Mp,{optional:!0})}supports(n){return this.delegate?this.delegate.supports(n):!1}addEventListener(n,o,i){return this.delegate.addEventListener(n,o,i)}removeEventListener(n,o,i){return this.delegate.removeEventListener(n,o,i)}};e.\u0275fac=function(o){return new(o||e)(y(ce))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),sg=["alt","control","meta","shift"],nb={"\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"},rb={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},ob=(()=>{let e=class e extends Ur{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,o,i){let s=e.parseEventName(o),a=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>gn().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let o=n.toLowerCase().split("."),i=o.shift();if(o.length===0||!(i==="keydown"||i==="keyup"))return null;let s=e._normalizeKey(o.pop()),a="",c=o.indexOf("code");if(c>-1&&(o.splice(c,1),a="code."),sg.forEach(l=>{let d=o.indexOf(l);d>-1&&(o.splice(d,1),a+=l+".")}),a+=s,o.length!=0||s.length===0)return null;let u={};return u.domEventName=i,u.fullKey=a,u}static matchEventFullKeyCode(n,o){let i=nb[n.key]||n.key,s="";return o.indexOf("code.")>-1&&(i=n.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),sg.forEach(a=>{if(a!==i){let c=rb[a];c(n)&&(s+=a+".")}}),s+=i,s===o)}static eventCallback(n,o,i){return s=>{e.matchEventFullKeyCode(s,n)&&i.runGuarded(()=>o(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(o){return new(o||e)(y(ce))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function ib(){Vu.makeCurrent()}function sb(){return new ct}function ab(){return Dh(document),document}var cb=[{provide:nt,useValue:xu},{provide:jc,useValue:ib,multi:!0},{provide:ce,useFactory:ab,deps:[]}],rO=fu(Cp,"browser",cb),ub=new D(""),lb=[{provide:Or,useClass:$u,deps:[]},{provide:cu,useClass:Ji,deps:[$,Xi,Or]},{provide:Ji,useClass:Ji,deps:[$,Xi,Or]}],db=[{provide:ki,useValue:"root"},{provide:ct,useFactory:sb,deps:[]},{provide:Es,useClass:eb,multi:!0,deps:[ce,$,nt]},{provide:Es,useClass:ob,multi:!0,deps:[ce]},{provide:Es,useClass:tb,multi:!0},og,cg,ag,{provide:Gn,useExisting:og},{provide:er,useClass:WC,deps:[]},[]],oO=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:zi,useValue:n.appId}]}}};e.\u0275fac=function(o){return new(o||e)(y(ub,12))},e.\u0275mod=dt({type:e}),e.\u0275inj=lt({providers:[...db,...lb],imports:[Bp,bp]});let t=e;return t})();var dg=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(o){return new(o||e)(y(ce))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var N="primary",ro=Symbol("RouteTitle"),Wu=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function ar(t){return new Wu(t)}function hb(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[i]===o)}else return t===e}function bg(t){return t.length>0?t[t.length-1]:null}function qt(t){return sa(t)?t:Xn(t)?Z(Promise.resolve(t)):C(t)}var gb={exact:Sg,subset:Tg},Mg={exact:mb,subset:vb,ignored:()=>!0};function fg(t,e,r){return gb[r.paths](t.root,e.root,r.matrixParams)&&Mg[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function mb(t,e){return rt(t,e)}function Sg(t,e,r){if(!vn(t.segments,e.segments)||!Ms(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!Sg(t.children[n],e.children[n],r))return!1;return!0}function vb(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>Cg(t[r],e[r]))}function Tg(t,e,r){return xg(t,e,e.segments,r)}function xg(t,e,r,n){if(t.segments.length>r.length){let o=t.segments.slice(0,r.length);return!(!vn(o,r)||e.hasChildren()||!Ms(o,r,n))}else if(t.segments.length===r.length){if(!vn(t.segments,r)||!Ms(t.segments,r,n))return!1;for(let o in e.children)if(!t.children[o]||!Tg(t.children[o],e.children[o],n))return!1;return!0}else{let o=r.slice(0,t.segments.length),i=r.slice(t.segments.length);return!vn(t.segments,o)||!Ms(t.segments,o,n)||!t.children[N]?!1:xg(t.children[N],e,i,n)}}function Ms(t,e,r){return e.every((n,o)=>Mg[r](t[o].parameters,n.parameters))}var Ct=class{constructor(e=new V([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ar(this.queryParams),this._queryParamMap}toString(){return wb.serialize(this)}},V=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ss(this)}},mn=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=ar(this.parameters),this._parameterMap}toString(){return _g(this)}};function yb(t,e){return vn(t,e)&&t.every((r,n)=>rt(r.parameters,e[n].parameters))}function vn(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function Db(t,e){let r=[];return Object.entries(t.children).forEach(([n,o])=>{n===N&&(r=r.concat(e(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==N&&(r=r.concat(e(o,n)))}),r}var oo=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:()=>new cr,providedIn:"root"});let t=e;return t})(),cr=class{parse(e){let r=new Qu(e);return new Ct(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${zr(e.root,!0)}`,n=Cb(e.queryParams),o=typeof e.fragment=="string"?`#${Eb(e.fragment)}`:"";return`${r}${n}${o}`}},wb=new cr;function Ss(t){return t.segments.map(e=>_g(e)).join("/")}function zr(t,e){if(!t.hasChildren())return Ss(t);if(e){let r=t.children[N]?zr(t.children[N],!1):"",n=[];return Object.entries(t.children).forEach(([o,i])=>{o!==N&&n.push(`${o}:${zr(i,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=Db(t,(n,o)=>o===N?[zr(t.children[N],!1)]:[`${o}:${zr(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[N]!=null?`${Ss(t)}/${r[0]}`:`${Ss(t)}/(${r.join("//")})`}}function Ng(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Cs(t){return Ng(t).replace(/%3B/gi,";")}function Eb(t){return encodeURI(t)}function Yu(t){return Ng(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ts(t){return decodeURIComponent(t)}function hg(t){return Ts(t.replace(/\+/g,"%20"))}function _g(t){return`${Yu(t.path)}${Ib(t.parameters)}`}function Ib(t){return Object.entries(t).map(([e,r])=>`;${Yu(e)}=${Yu(r)}`).join("")}function Cb(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(o=>`${Cs(r)}=${Cs(o)}`).join("&"):`${Cs(r)}=${Cs(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var bb=/^[^\/()?;#]+/;function Hu(t){let e=t.match(bb);return e?e[0]:""}var Mb=/^[^\/()?;=#]+/;function Sb(t){let e=t.match(Mb);return e?e[0]:""}var Tb=/^[^=?&#]+/;function xb(t){let e=t.match(Tb);return e?e[0]:""}var Nb=/^[^&#]+/;function _b(t){let e=t.match(Nb);return e?e[0]:""}var Qu=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new V([],{}):new V([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[N]=new V(e,r)),n}parseSegment(){let e=Hu(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new E(4009,!1);return this.capture(e),new mn(Ts(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=Sb(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let o=Hu(this.remaining);o&&(n=o,this.capture(n))}e[Ts(r)]=Ts(n)}parseQueryParam(e){let r=xb(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=_b(this.remaining);s&&(n=s,this.capture(n))}let o=hg(r),i=hg(n);if(e.hasOwnProperty(o)){let s=e[o];Array.isArray(s)||(s=[s],e[o]=s),s.push(i)}else e[o]=i}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Hu(this.remaining),o=this.remaining[n.length];if(o!=="/"&&o!==")"&&o!==";")throw new E(4010,!1);let i;n.indexOf(":")>-1?(i=n.slice(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=N);let s=this.parseChildren();r[i]=Object.keys(s).length===1?s[N]:new V([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new E(4011,!1)}};function Ag(t){return t.segments.length>0?new V([],{[N]:t}):t}function Rg(t){let e={};for(let[n,o]of Object.entries(t.children)){let i=Rg(o);if(n===N&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))e[s]=a;else(i.segments.length>0||i.hasChildren())&&(e[n]=i)}let r=new V(t.segments,e);return Ab(r)}function Ab(t){if(t.numberOfChildren===1&&t.children[N]){let e=t.children[N];return new V(t.segments.concat(e.segments),e.children)}return t}function yn(t){return t instanceof Ct}function Rb(t,e,r=null,n=null){let o=Og(t);return Pg(o,e,r,n)}function Og(t){let e;function r(i){let s={};for(let c of i.children){let u=r(c);s[c.outlet]=u}let a=new V(i.url,s);return i===t&&(e=a),a}let n=r(t.root),o=Ag(n);return e??o}function Pg(t,e,r,n){let o=t;for(;o.parent;)o=o.parent;if(e.length===0)return zu(o,o,o,r,n);let i=Ob(e);if(i.toRoot())return zu(o,o,new V([],{}),r,n);let s=Pb(i,o,t),a=s.processChildren?Wr(s.segmentGroup,s.index,i.commands):Fg(s.segmentGroup,s.index,i.commands);return zu(o,s.segmentGroup,a,r,n)}function xs(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Qr(t){return typeof t=="object"&&t!=null&&t.outlets}function zu(t,e,r,n,o){let i={};n&&Object.entries(n).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;t===e?s=r:s=kg(t,e,r);let a=Ag(Rg(s));return new Ct(a,i,o)}function kg(t,e,r){let n={};return Object.entries(t.children).forEach(([o,i])=>{i===e?n[o]=r:n[o]=kg(i,e,r)}),new V(t.segments,n)}var Ns=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&xs(n[0]))throw new E(4003,!1);let o=n.find(Qr);if(o&&o!==bg(n))throw new E(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Ob(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Ns(!0,0,t);let e=0,r=!1,n=t.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?r=!0:a===".."?e++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new Ns(r,e,n)}var or=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function Pb(t,e,r){if(t.isAbsolute)return new or(e,!0,0);if(!r)return new or(e,!1,NaN);if(r.parent===null)return new or(r,!0,0);let n=xs(t.commands[0])?0:1,o=r.segments.length-1+n;return kb(r,o,t.numberOfDoubleDots)}function kb(t,e,r){let n=t,o=e,i=r;for(;i>o;){if(i-=o,n=n.parent,!n)throw new E(4005,!1);o=n.segments.length}return new or(n,!1,o-i)}function Fb(t){return Qr(t[0])?t[0].outlets:{[N]:t}}function Fg(t,e,r){if(t??=new V([],{}),t.segments.length===0&&t.hasChildren())return Wr(t,e,r);let n=Lb(t,e,r),o=r.slice(n.commandIndex);if(n.match&&n.pathIndexi!==N)&&t.children[N]&&t.numberOfChildren===1&&t.children[N].segments.length===0){let i=Wr(t.children[N],e,r);return new V(t.segments,i.children)}return Object.entries(n).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Fg(t.children[i],e,s))}),Object.entries(t.children).forEach(([i,s])=>{n[i]===void 0&&(o[i]=s)}),new V(t.segments,o)}}function Lb(t,e,r){let n=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};for(;o=r.length)return i;let s=t.segments[o],a=r[n];if(Qr(a))break;let c=`${a}`,u=n0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!gg(c,u,s))return i;n+=2}else{if(!gg(c,{},s))return i;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function Ku(t,e,r){let n=t.segments.slice(0,e),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=Ku(new V([],{}),0,n))}),e}function pg(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function gg(t,e,r){return t==r.path&&rt(e,r.parameters)}var Zr="imperative",ie=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(ie||{}),$e=class{constructor(e,r){this.id=e,this.url=r}},ur=class extends $e{constructor(e,r,n="imperative",o=null){super(e,r),this.type=ie.NavigationStart,this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ze=class extends $e{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=ie.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},_e=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(_e||{}),_s=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(_s||{}),It=class extends $e{constructor(e,r,n,o){super(e,r),this.reason=n,this.code=o,this.type=ie.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Gt=class extends $e{constructor(e,r,n,o){super(e,r),this.reason=n,this.code=o,this.type=ie.NavigationSkipped}},Kr=class extends $e{constructor(e,r,n,o){super(e,r),this.error=n,this.target=o,this.type=ie.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},As=class extends $e{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=ie.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ju=class extends $e{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=ie.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Xu=class extends $e{constructor(e,r,n,o,i){super(e,r),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=i,this.type=ie.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},el=class extends $e{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=ie.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},tl=class extends $e{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=ie.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},nl=class{constructor(e){this.route=e,this.type=ie.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},rl=class{constructor(e){this.route=e,this.type=ie.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ol=class{constructor(e){this.snapshot=e,this.type=ie.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},il=class{constructor(e){this.snapshot=e,this.type=ie.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},sl=class{constructor(e){this.snapshot=e,this.type=ie.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},al=class{constructor(e){this.snapshot=e,this.type=ie.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rs=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=ie.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},Jr=class{},lr=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};function Vb(t,e){return t.providers&&!t._injector&&(t._injector=Qi(t.providers,e,`Route: ${t.path}`)),t._injector??e}function We(t){return t.outlet||N}function $b(t,e){let r=t.filter(n=>We(n)===e);return r.push(...t.filter(n=>We(n)!==e)),r}function io(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var cl=class{get injector(){return io(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new so(this.rootInjector),this.attachRef=null}},so=(()=>{let e=class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,o){let i=this.getOrCreateContext(n);i.outlet=o,this.contexts.set(n,i)}onChildOutletDestroyed(n){let o=this.getContext(n);o&&(o.outlet=null,o.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let o=this.getContext(n);return o||(o=new cl(this.rootInjector),this.contexts.set(n,o)),o}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(o){return new(o||e)(y(De))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Os=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=ul(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=ul(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=ll(e,this._root);return r.length<2?[]:r[r.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return ll(e,this._root).map(r=>r.value)}};function ul(t,e){if(t===e.value)return e;for(let r of e.children){let n=ul(t,r);if(n)return n}return null}function ll(t,e){if(t===e.value)return[e];for(let r of e.children){let n=ll(t,r);if(n.length)return n.unshift(e),n}return[]}var Ne=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function rr(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var Ps=class extends Os{constructor(e,r){super(e),this.snapshot=r,Dl(this,e)}toString(){return this.snapshot.toString()}};function Lg(t){let e=Ub(t),r=new se([new mn("",{})]),n=new se({}),o=new se({}),i=new se({}),s=new se(""),a=new Dn(r,n,i,s,o,N,t,e.root);return a.snapshot=e.root,new Ps(new Ne(a,[]),e)}function Ub(t){let e={},r={},n={},o="",i=new ir([],e,n,o,r,N,t,null,{});return new Fs("",new Ne(i,[]))}var Dn=class{constructor(e,r,n,o,i,s,a,c){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(T(u=>u[ro]))??C(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(T(e=>ar(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(T(e=>ar(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function ks(t,e,r="emptyOnly"){let n,{routeConfig:o}=t;return e!==null&&(r==="always"||o?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:m(m({},e.params),t.params),data:m(m({},e.data),t.data),resolve:m(m(m(m({},t.data),e.data),o?.data),t._resolvedData)}:n={params:m({},t.params),data:m({},t.data),resolve:m(m({},t.data),t._resolvedData??{})},o&&Vg(o)&&(n.resolve[ro]=o.title),n}var ir=class{get title(){return this.data?.[ro]}constructor(e,r,n,o,i,s,a,c,u){this.url=e,this.params=r,this.queryParams=n,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ar(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ar(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Fs=class extends Os{constructor(e,r){super(r),this.url=e,Dl(this,r)}toString(){return jg(this._root)}};function Dl(t,e){e.value._routerState=t,e.children.forEach(r=>Dl(t,r))}function jg(t){let e=t.children.length>0?` { ${t.children.map(jg).join(", ")} } `:"";return`${t.value}${e}`}function Gu(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,rt(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),rt(e.params,r.params)||t.paramsSubject.next(r.params),pb(e.url,r.url)||t.urlSubject.next(r.url),rt(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function dl(t,e){let r=rt(t.params,e.params)&&yb(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||dl(t.parent,e.parent))}function Vg(t){return typeof t.title=="string"||t.title===null}var Bb=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=N,this.activateEvents=new ae,this.deactivateEvents=new ae,this.attachEvents=new ae,this.detachEvents=new ae,this.parentContexts=p(so),this.location=p($t),this.changeDetector=p(pn),this.inputBinder=p(Us,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:o,previousValue:i}=n.name;if(o)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new E(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new E(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new E(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,o){this.activated=n,this._activatedRoute=o,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,o){if(this.isActivated)throw new E(4013,!1);this._activatedRoute=n;let i=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new fl(n,c,i.injector);this.activated=i.createComponent(a,{index:i.length,injector:u,environmentInjector:o}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=fn({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Yn]});let t=e;return t})(),fl=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===Dn?this.route:e===so?this.childContexts:this.parent.get(e,r)}},Us=new D(""),mg=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:o}=n,i=vr([o.queryParams,o.params,o.data]).pipe(ge(([s,a,c],u)=>(c=m(m(m({},s),a),c),u===0?C(c):Promise.resolve(c)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==o||o.component===null){this.unsubscribeFromRouteData(n);return}let a=Sp(o.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:c}of a.inputs)n.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(n,i)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function Hb(t,e,r){let n=Xr(t,e._root,r?r._root:void 0);return new Ps(n,e)}function Xr(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let o=zb(t,e,r);return new Ne(n,o)}else{if(t.shouldAttach(e.value)){let i=t.retrieve(e.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>Xr(t,a)),s}}let n=Gb(e.value),o=e.children.map(i=>Xr(t,i));return new Ne(n,o)}}function zb(t,e,r){return e.children.map(n=>{for(let o of r.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return Xr(t,n,o);return Xr(t,n)})}function Gb(t){return new Dn(new se(t.url),new se(t.params),new se(t.queryParams),new se(t.fragment),new se(t.data),t.outlet,t.component,t)}var eo=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},$g="ngNavigationCancelingError";function Ls(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=yn(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,o=Ug(!1,_e.Redirect);return o.url=r,o.navigationBehaviorOptions=n,o}function Ug(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[$g]=!0,r.cancellationCode=e,r}function qb(t){return Bg(t)&&yn(t.url)}function Bg(t){return!!t&&t[$g]}var Wb=(t,e,r,n)=>T(o=>(new hl(e,o.targetRouterState,o.currentRouterState,r,n).activate(t),o)),hl=class{constructor(e,r,n,o,i){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=i}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),Gu(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let o=rr(r);e.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],n),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,n)})}deactivateRoutes(e,r,n){let o=e.value,i=r?r.value:null;if(o===i)if(o.component){let s=n.getContext(o.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else i&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),o=n&&e.value.component?n.children:r,i=rr(e);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),o=n&&e.value.component?n.children:r,i=rr(e);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let o=rr(r);e.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],n),this.forwardEvent(new al(i.value.snapshot))}),e.children.length&&this.forwardEvent(new il(e.value.snapshot))}activateRoutes(e,r,n){let o=e.value,i=r?r.value:null;if(Gu(o),o===i)if(o.component){let s=n.getOrCreateContext(o.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(o.component){let s=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Gu(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,n)}},js=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},sr=class{constructor(e,r){this.component=e,this.route=r}};function Zb(t,e,r){let n=t._root,o=e?e._root:null;return Gr(n,o,r,[n.value])}function Yb(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function fr(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!of(t)?t:e.get(t):n}function Gr(t,e,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=rr(e);return t.children.forEach(s=>{Qb(s,i[s.value.outlet],r,n.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Yr(a,r.getContext(s),o)),o}function Qb(t,e,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=Kb(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new js(n)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Gr(t,e,a?a.children:null,n,o):Gr(t,e,r,n,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new sr(a.outlet.component,s))}else s&&Yr(e,a,o),o.canActivateChecks.push(new js(n)),i.component?Gr(t,null,a?a.children:null,n,o):Gr(t,null,r,n,o);return o}function Kb(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!vn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!vn(t.url,e.url)||!rt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!dl(t,e)||!rt(t.queryParams,e.queryParams);case"paramsChange":default:return!dl(t,e)}}function Yr(t,e,r){let n=rr(t),o=t.value;Object.entries(n).forEach(([i,s])=>{o.component?e?Yr(s,e.children.getContext(i),r):Yr(s,null,r):Yr(s,e,r)}),o.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new sr(e.outlet.component,o)):r.canDeactivateChecks.push(new sr(null,o)):r.canDeactivateChecks.push(new sr(null,o))}function ao(t){return typeof t=="function"}function Jb(t){return typeof t=="boolean"}function Xb(t){return t&&ao(t.canLoad)}function eM(t){return t&&ao(t.canActivate)}function tM(t){return t&&ao(t.canActivateChild)}function nM(t){return t&&ao(t.canDeactivate)}function rM(t){return t&&ao(t.canMatch)}function Hg(t){return t instanceof ot||t?.name==="EmptyError"}var bs=Symbol("INITIAL_VALUE");function dr(){return ge(t=>vr(t.map(e=>e.pipe(st(1),la(bs)))).pipe(T(e=>{for(let r of e)if(r!==!0){if(r===bs)return bs;if(r===!1||oM(r))return r}return!0}),pe(e=>e!==bs),st(1)))}function oM(t){return yn(t)||t instanceof eo}function iM(t,e){return X(r=>{let{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=r;return s.length===0&&i.length===0?C(q(m({},r),{guardsResult:!0})):sM(s,n,o,t).pipe(X(a=>a&&Jb(a)?aM(n,i,t,e):C(a)),T(a=>q(m({},r),{guardsResult:a})))})}function sM(t,e,r,n){return Z(t).pipe(X(o=>fM(o.component,o.route,r,e,n)),Ye(o=>o!==!0,!0))}function aM(t,e,r,n){return Z(e).pipe(it(o=>_n(uM(o.route.parent,n),cM(o.route,n),dM(t,o.path,r),lM(t,o.route,r))),Ye(o=>o!==!0,!0))}function cM(t,e){return t!==null&&e&&e(new sl(t)),C(!0)}function uM(t,e){return t!==null&&e&&e(new ol(t)),C(!0)}function lM(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return C(!0);let o=n.map(i=>Bo(()=>{let s=io(e)??r,a=fr(i,s),c=eM(a)?a.canActivate(e,t):Te(s,()=>a(e,t));return qt(c).pipe(Ye())}));return C(o).pipe(dr())}function dM(t,e,r){let n=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(s=>Yb(s)).filter(s=>s!==null).map(s=>Bo(()=>{let a=s.guards.map(c=>{let u=io(s.node)??r,l=fr(c,u),d=tM(l)?l.canActivateChild(n,t):Te(u,()=>l(n,t));return qt(d).pipe(Ye())});return C(a).pipe(dr())}));return C(i).pipe(dr())}function fM(t,e,r,n,o){let i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!i||i.length===0)return C(!0);let s=i.map(a=>{let c=io(e)??o,u=fr(a,c),l=nM(u)?u.canDeactivate(t,e,r,n):Te(c,()=>u(t,e,r,n));return qt(l).pipe(Ye())});return C(s).pipe(dr())}function hM(t,e,r,n){let o=e.canLoad;if(o===void 0||o.length===0)return C(!0);let i=o.map(s=>{let a=fr(s,t),c=Xb(a)?a.canLoad(e,r):Te(t,()=>a(e,r));return qt(c)});return C(i).pipe(dr(),zg(n))}function zg(t){return ta(re(e=>{if(typeof e!="boolean")throw Ls(t,e)}),T(e=>e===!0))}function pM(t,e,r,n){let o=e.canMatch;if(!o||o.length===0)return C(!0);let i=o.map(s=>{let a=fr(s,t),c=rM(a)?a.canMatch(e,r):Te(t,()=>a(e,r));return qt(c)});return C(i).pipe(dr(),zg(n))}var to=class{constructor(e){this.segmentGroup=e||null}},no=class extends Error{constructor(e){super(),this.urlTree=e}};function nr(t){return Nn(new to(t))}function gM(t){return Nn(new E(4e3,!1))}function mM(t){return Nn(Ug(!1,_e.GuardRejected))}var pl=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],o=r.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return C(n);if(o.numberOfChildren>1||!o.children[N])return gM(`${e.redirectTo}`);o=o.children[N]}}applyRedirectCommands(e,r,n,o,i){if(typeof r!="string"){let a=r,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:g,title:b}=o,v=Te(i,()=>a({params:f,data:g,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:b}));if(v instanceof Ct)throw new no(v);r=v}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r[0]==="/")throw new no(s);return s}applyRedirectCreateUrlTree(e,r,n,o){let i=this.createSegmentGroup(e,r.root,n,o);return new Ct(i,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);n[o]=r[a]}else n[o]=i}),n}createSegmentGroup(e,r,n,o){let i=this.createSegments(e,r.segments,n,o),s={};return Object.entries(r.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,n,o)}),new V(i,s)}createSegments(e,r,n,o){return r.map(i=>i.path[0]===":"?this.findPosParam(e,i,o):this.findOrReturn(i,n))}findPosParam(e,r,n){let o=n[r.path.substring(1)];if(!o)throw new E(4001,!1);return o}findOrReturn(e,r){let n=0;for(let o of r){if(o.path===e.path)return r.splice(n),o;n++}return e}},gl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function vM(t,e,r,n,o){let i=wl(t,e,r);return i.matched?(n=Vb(e,n),pM(n,e,r,o).pipe(T(s=>s===!0?i:m({},gl)))):C(i)}function wl(t,e,r){if(e.path==="**")return yM(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?m({},gl):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let o=(e.matcher||hb)(r,t,e);if(!o)return m({},gl);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?m(m({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:r.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function yM(t){return{matched:!0,parameters:t.length>0?bg(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function vg(t,e,r,n){return r.length>0&&EM(t,r,n)?{segmentGroup:new V(e,wM(n,new V(r,t.children))),slicedSegments:[]}:r.length===0&&IM(t,r,n)?{segmentGroup:new V(t.segments,DM(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new V(t.segments,t.children),slicedSegments:r}}function DM(t,e,r,n){let o={};for(let i of r)if(Bs(t,e,i)&&!n[We(i)]){let s=new V([],{});o[We(i)]=s}return m(m({},n),o)}function wM(t,e){let r={};r[N]=e;for(let n of t)if(n.path===""&&We(n)!==N){let o=new V([],{});r[We(n)]=o}return r}function EM(t,e,r){return r.some(n=>Bs(t,e,n)&&We(n)!==N)}function IM(t,e,r){return r.some(n=>Bs(t,e,n))}function Bs(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function CM(t,e,r,n){return We(t)!==n&&(n===N||!Bs(e,r,t))?!1:wl(e,t,r).matched}function bM(t,e,r){return e.length===0&&!t.children[r]}var ml=class{};function MM(t,e,r,n,o,i,s="emptyOnly"){return new vl(t,e,r,n,o,s,i).recognize()}var SM=31,vl=class{constructor(e,r,n,o,i,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new pl(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new E(4002,`'${e.segmentGroup}'`)}recognize(){let e=vg(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(T(({children:r,rootSnapshot:n})=>{let o=new Ne(n,r),i=new Fs("",o),s=Rb(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(e){let r=new ir([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),N,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,N,r).pipe(T(n=>({children:n,rootSnapshot:r})),Oe(n=>{if(n instanceof no)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof to?this.noMatchError(n):n}))}processSegmentGroup(e,r,n,o,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n,i):this.processSegment(e,r,n,n.segments,o,!0,i).pipe(T(s=>s instanceof Ne?[s]:[]))}processChildren(e,r,n,o){let i=[];for(let s of Object.keys(n.children))s==="primary"?i.unshift(s):i.push(s);return Z(i).pipe(it(s=>{let a=n.children[s],c=$b(r,s);return this.processSegmentGroup(e,c,a,s,o)}),ua((s,a)=>(s.push(...a),s)),xt(null),ca(),X(s=>{if(s===null)return nr(n);let a=Gg(s);return TM(a),C(a)}))}processSegment(e,r,n,o,i,s,a){return Z(r).pipe(it(c=>this.processSegmentAgainstRoute(c._injector??e,r,c,n,o,i,s,a).pipe(Oe(u=>{if(u instanceof to)return C(null);throw u}))),Ye(c=>!!c),Oe(c=>{if(Hg(c))return bM(n,o,i)?C(new ml):nr(n);throw c}))}processSegmentAgainstRoute(e,r,n,o,i,s,a,c){return CM(n,o,i,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,o,n,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,o,r,n,i,s,c):nr(o):nr(o)}expandSegmentAgainstRouteUsingRedirect(e,r,n,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=wl(r,o,i);if(!c)return nr(r);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>SM&&(this.allowRedirects=!1));let f=new ir(i,u,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,yg(o),We(o),o.component??o._loadedComponent??null,o,Dg(o)),g=ks(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(g.params),f.data=Object.freeze(g.data);let b=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,e);return this.applyRedirects.lineralizeSegments(o,b).pipe(X(v=>this.processSegment(e,n,r,v.concat(h),s,!1,a)))}matchSegmentAgainstRoute(e,r,n,o,i,s){let a=vM(r,n,o,e,this.urlSerializer);return n.path==="**"&&(r.children={}),a.pipe(ge(c=>c.matched?(e=n._injector??e,this.getChildConfig(e,n,o).pipe(ge(({routes:u})=>{let l=n._loadedInjector??e,{parameters:d,consumedSegments:h,remainingSegments:f}=c,g=new ir(h,d,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,yg(n),We(n),n.component??n._loadedComponent??null,n,Dg(n)),b=ks(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(b.params),g.data=Object.freeze(b.data);let{segmentGroup:v,slicedSegments:I}=vg(r,h,f,u);if(I.length===0&&v.hasChildren())return this.processChildren(l,u,v,g).pipe(T(z=>new Ne(g,z)));if(u.length===0&&I.length===0)return C(new Ne(g,[]));let K=We(n)===i;return this.processSegment(l,u,v,I,K?N:i,!0,g).pipe(T(z=>new Ne(g,z instanceof Ne?[z]:[])))}))):nr(r)))}getChildConfig(e,r,n){return r.children?C({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?C({routes:r._loadedRoutes,injector:r._loadedInjector}):hM(e,r,n,this.urlSerializer).pipe(X(o=>o?this.configLoader.loadChildren(e,r).pipe(re(i=>{r._loadedRoutes=i.routes,r._loadedInjector=i.injector})):mM(r))):C({routes:[],injector:e})}};function TM(t){t.sort((e,r)=>e.value.outlet===N?-1:r.value.outlet===N?1:e.value.outlet.localeCompare(r.value.outlet))}function xM(t){let e=t.value.routeConfig;return e&&e.path===""}function Gg(t){let e=[],r=new Set;for(let n of t){if(!xM(n)){e.push(n);continue}let o=e.find(i=>n.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...n.children),r.add(o)):e.push(n)}for(let n of r){let o=Gg(n.children);e.push(new Ne(n.value,o))}return e.filter(n=>!r.has(n))}function yg(t){return t.data||{}}function Dg(t){return t.resolve||{}}function NM(t,e,r,n,o,i){return X(s=>MM(t,e,r,n,s.extractedUrl,o,i).pipe(T(({state:a,tree:c})=>q(m({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function _M(t,e){return X(r=>{let{targetSnapshot:n,guards:{canActivateChecks:o}}=r;if(!o.length)return C(r);let i=new Set(o.map(c=>c.route)),s=new Set;for(let c of i)if(!s.has(c))for(let u of qg(c))s.add(u);let a=0;return Z(s).pipe(it(c=>i.has(c)?AM(c,n,t,e):(c.data=ks(c,c.parent,t).resolve,C(void 0))),re(()=>a++),An(1),X(c=>a===s.size?C(r):be))})}function qg(t){let e=t.children.map(r=>qg(r)).flat();return[t,...e]}function AM(t,e,r,n){let o=t.routeConfig,i=t._resolve;return o?.title!==void 0&&!Vg(o)&&(i[ro]=o.title),RM(i,t,e,n).pipe(T(s=>(t._resolvedData=s,t.data=ks(t,t.parent,r).resolve,null)))}function RM(t,e,r,n){let o=Zu(t);if(o.length===0)return C({});let i={};return Z(o).pipe(X(s=>OM(t[s],e,r,n).pipe(Ye(),re(a=>{if(a instanceof eo)throw Ls(new cr,a);i[s]=a}))),An(1),aa(i),Oe(s=>Hg(s)?be:Nn(s)))}function OM(t,e,r,n){let o=io(e)??n,i=fr(t,o),s=i.resolve?i.resolve(e,r):Te(o,()=>i(e,r));return qt(s)}function qu(t){return ge(e=>{let r=t(e);return r?Z(r).pipe(T(()=>e)):C(e)})}var Wg=(()=>{let e=class e{buildTitle(n){let o,i=n.root;for(;i!==void 0;)o=this.getResolvedTitleForRoute(i)??o,i=i.children.find(s=>s.outlet===N);return o}getResolvedTitleForRoute(n){return n.data[ro]}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:()=>p(PM),providedIn:"root"});let t=e;return t})(),PM=(()=>{let e=class e extends Wg{constructor(n){super(),this.title=n}updateTitle(n){let o=this.buildTitle(n);o!==void 0&&this.title.setTitle(o)}};e.\u0275fac=function(o){return new(o||e)(y(dg))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),co=new D("",{providedIn:"root",factory:()=>({})}),kM=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=yf({type:e,selectors:[["ng-component"]],standalone:!0,features:[hp],decls:1,vars:0,template:function(o,i){o&1&&su(0,"router-outlet")},dependencies:[Bb],encapsulation:2});let t=e;return t})();function El(t){let e=t.children&&t.children.map(El),r=e?q(m({},t),{children:e}):m({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==N&&(r.component=kM),r}var Vs=new D(""),Il=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(ns)}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 o=qt(n.loadComponent()).pipe(T(Zg),re(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Nt(()=>{this.componentLoaders.delete(n)})),i=new Tn(o,()=>new ue).pipe(Sn());return this.componentLoaders.set(n,i),i}loadChildren(n,o){if(this.childrenLoaders.get(o))return this.childrenLoaders.get(o);if(o._loadedRoutes)return C({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);let s=FM(o,this.compiler,n,this.onLoadEndListener).pipe(Nt(()=>{this.childrenLoaders.delete(o)})),a=new Tn(s,()=>new ue).pipe(Sn());return this.childrenLoaders.set(o,a),a}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function FM(t,e,r,n){return qt(t.loadChildren()).pipe(T(Zg),X(o=>o instanceof Sr||Array.isArray(o)?C(o):Z(e.compileModuleAsync(o))),T(o=>{n&&n(t);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(r).injector,s=i.get(Vs,[],{optional:!0,self:!0}).flat()),{routes:s.map(El),injector:i}}))}function LM(t){return t&&typeof t=="object"&&"default"in t}function Zg(t){return LM(t)?t.default:t}var Cl=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:()=>p(jM),providedIn:"root"});let t=e;return t})(),jM=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,o){return n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Yg=new D(""),Qg=new D("");function VM(t,e,r){let n=t.get(Qg),o=t.get(ce);return t.get($).runOutsideAngular(()=>{if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let i,s=new Promise(u=>{i=u}),a=o.startViewTransition(()=>(i(),$M(t))),{onViewTransitionCreated:c}=n;return c&&Te(t,()=>c({transition:a,from:e,to:r})),s})}function $M(t){return new Promise(e=>{eu({read:()=>setTimeout(e)},{injector:t})})}var UM=new D(""),bl=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ue,this.transitionAbortSubject=new ue,this.configLoader=p(Il),this.environmentInjector=p(De),this.urlSerializer=p(oo),this.rootContexts=p(so),this.location=p(tr),this.inputBindingEnabled=p(Us,{optional:!0})!==null,this.titleStrategy=p(Wg),this.options=p(co,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(Cl),this.createViewTransition=p(Yg,{optional:!0}),this.navigationErrorHandler=p(UM,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>C(void 0),this.rootComponentType=null;let n=i=>this.events.next(new nl(i)),o=i=>this.events.next(new rl(i));this.configLoader.onLoadEndListener=o,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let o=++this.navigationId;this.transitions?.next(q(m(m({},this.transitions.value),n),{id:o}))}setupNavigations(n,o,i){return this.transitions=new se({id:0,currentUrlTree:o,currentRawUrl:o,extractedUrl:this.urlHandlingStrategy.extract(o),urlAfterRedirects:this.urlHandlingStrategy.extract(o),rawUrl:o,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Zr,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(pe(s=>s.id!==0),T(s=>q(m({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),ge(s=>{let a=!1,c=!1;return C(s).pipe(ge(u=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",_e.SupersededByNewNavigation),be;this.currentTransition=s,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?q(m({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let h="";return this.events.next(new Gt(u.id,this.urlSerializer.serialize(u.rawUrl),h,_s.IgnoredSameUrlNavigation)),u.resolve(!1),be}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return C(u).pipe(ge(h=>{let f=this.transitions?.getValue();return this.events.next(new ur(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?be:Promise.resolve(h)}),NM(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),re(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=q(m({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let f=new As(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:h,extractedUrl:f,source:g,restoredState:b,extras:v}=u,I=new ur(h,this.urlSerializer.serialize(f),g,b);this.events.next(I);let K=Lg(this.rootComponentType).snapshot;return this.currentTransition=s=q(m({},u),{targetSnapshot:K,urlAfterRedirects:f,extras:q(m({},v),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,C(s)}else{let h="";return this.events.next(new Gt(u.id,this.urlSerializer.serialize(u.extractedUrl),h,_s.IgnoredByUrlHandlingStrategy)),u.resolve(!1),be}}),re(u=>{let l=new Ju(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),T(u=>(this.currentTransition=s=q(m({},u),{guards:Zb(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),iM(this.environmentInjector,u=>this.events.next(u)),re(u=>{if(s.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw Ls(this.urlSerializer,u.guardsResult);let l=new Xu(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),pe(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",_e.GuardRejected),!1)),qu(u=>{if(u.guards.canActivateChecks.length)return C(u).pipe(re(l=>{let d=new el(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),ge(l=>{let d=!1;return C(l).pipe(_M(this.paramsInheritanceStrategy,this.environmentInjector),re({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",_e.NoDataFromResolver)}}))}),re(l=>{let d=new tl(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),qu(u=>{let l=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(re(f=>{d.component=f}),T(()=>{})));for(let f of d.children)h.push(...l(f));return h};return vr(l(u.targetSnapshot.root)).pipe(xt(null),st(1))}),qu(()=>this.afterPreactivation()),ge(()=>{let{currentSnapshot:u,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return d?Z(d).pipe(T(()=>s)):C(s)}),T(u=>{let l=Hb(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=q(m({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),re(()=>{this.events.next(new Jr)}),Wb(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),st(1),re({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ze(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),zo(this.transitionAbortSubject.pipe(re(u=>{throw u}))),Nt(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",_e.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),Oe(u=>{if(c=!0,Bg(u))this.events.next(new It(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),qb(u)?this.events.next(new lr(u.url,u.navigationBehaviorOptions)):s.resolve(!1);else{let l=new Kr(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0);try{let d=Te(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof eo){let{message:h,cancellationCode:f}=Ls(this.urlSerializer,d);this.events.next(new It(s.id,this.urlSerializer.serialize(s.extractedUrl),h,f)),this.events.next(new lr(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(l);let h=n.errorHandler(u);s.resolve(!!h)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return be}))}))}cancelNavigationTransition(n,o,i){let s=new It(n.id,this.urlSerializer.serialize(n.extractedUrl),o,i);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),o=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==o?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function BM(t){return t!==Zr}var HM=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:()=>p(zM),providedIn:"root"});let t=e;return t})(),yl=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},zM=(()=>{let e=class e extends yl{};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=Oc(e)))(i||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Kg=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:()=>p(GM),providedIn:"root"});let t=e;return t})(),GM=(()=>{let e=class e extends Kg{constructor(){super(...arguments),this.location=p(tr),this.urlSerializer=p(oo),this.options=p(co,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(Cl),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ct,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Lg(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(o=>{o.type==="popstate"&&n(o.url,o.state)})}handleRouterEvent(n,o){if(n instanceof ur)this.stateMemento=this.createStateMemento();else if(n instanceof Gt)this.rawUrlTree=o.initialUrl;else if(n instanceof As){if(this.urlUpdateStrategy==="eager"&&!o.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl);this.setBrowserUrl(o.targetBrowserUrl??i,o)}}else n instanceof Jr?(this.currentUrlTree=o.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl),this.routerState=o.targetRouterState,this.urlUpdateStrategy==="deferred"&&!o.extras.skipLocationChange&&this.setBrowserUrl(o.targetBrowserUrl??this.rawUrlTree,o)):n instanceof It&&(n.code===_e.GuardRejected||n.code===_e.NoDataFromResolver)?this.restoreHistory(o):n instanceof Kr?this.restoreHistory(o,!0):n instanceof Ze&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,o){let i=n instanceof Ct?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(i)||o.extras.replaceUrl){let s=this.browserPageId,a=m(m({},o.extras.state),this.generateNgRouterState(o.id,s));this.location.replaceState(i,"",a)}else{let s=m(m({},o.extras.state),this.generateNgRouterState(o.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(n,o=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(o&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,o){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:o}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=Oc(e)))(i||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),qr=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(qr||{});function Jg(t,e){t.events.pipe(pe(r=>r instanceof Ze||r instanceof It||r instanceof Kr||r instanceof Gt),T(r=>r instanceof Ze||r instanceof Gt?qr.COMPLETE:(r instanceof It?r.code===_e.Redirect||r.code===_e.SupersededByNewNavigation:!1)?qr.REDIRECTING:qr.FAILED),pe(r=>r!==qr.REDIRECTING),st(1)).subscribe(()=>{e()})}function qM(t){throw t}var WM={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ZM={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},bt=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=p(Ki),this.stateManager=p(Kg),this.options=p(co,{optional:!0})||{},this.pendingTasks=p(pt),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(bl),this.urlSerializer=p(oo),this.location=p(tr),this.urlHandlingStrategy=p(Cl),this._events=new ue,this.errorHandler=this.options.errorHandler||qM,this.navigated=!1,this.routeReuseStrategy=p(HM),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(Vs,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(Us,{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(o=>{try{let i=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(o,s),o instanceof It&&o.code!==_e.Redirect&&o.code!==_e.SupersededByNewNavigation)this.navigated=!0;else if(o instanceof Ze)this.navigated=!0;else if(o instanceof lr){let a=o.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(o.url,i.currentRawUrl),u=m({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||BM(i.source)},a);this.scheduleNavigation(c,Zr,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}QM(o)&&this._events.next(o)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Zr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,o)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",o)},0)})}navigateToSyncWithBrowser(n,o,i){let s={replaceUrl:!0},a=i?.navigationId?i:null;if(i){let u=m({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(s.state=u)}let c=this.parseUrl(n);this.scheduleNavigation(c,o,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(El),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,o={}){let{relativeTo:i,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:u}=o,l=u?this.currentUrlTree.fragment:a,d=null;switch(c??this.options.defaultQueryParamsHandling){case"merge":d=m(m({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let f=i?i.snapshot:this.routerState.snapshot.root;h=Og(f)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),h=this.currentUrlTree.root}return Pg(h,n,d,l??null)}navigateByUrl(n,o={skipLocationChange:!1}){let i=yn(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,Zr,null,o)}navigate(n,o={skipLocationChange:!1}){return YM(n),this.navigateByUrl(this.createUrlTree(n,o),o)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,o){let i;if(o===!0?i=m({},WM):o===!1?i=m({},ZM):i=o,yn(n))return fg(this.currentUrlTree,n,i);let s=this.parseUrl(n);return fg(this.currentUrlTree,s,i)}removeEmptyProps(n){return Object.entries(n).reduce((o,[i,s])=>(s!=null&&(o[i]=s),o),{})}scheduleNavigation(n,o,i,s,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((h,f)=>{c=h,u=f});let d=this.pendingTasks.add();return Jg(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:o,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(h=>Promise.reject(h))}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function YM(t){for(let e=0;e{let e=class e{constructor(n,o,i,s,a,c){this.router=n,this.route=o,this.tabIndexAttribute=i,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.onChanges=new ue,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let u=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof Ze&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(yn(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,o,i,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(n!==0||o||i||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let o=this.href===null?null:Ih(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",o)}applyAttributeValue(n,o){let i=this.renderer,s=this.el.nativeElement;o!==null?i.setAttribute(s,n,o):i.removeAttribute(s,n)}get urlTree(){return this.routerLinkInput===null?null:yn(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(o){return new(o||e)(W(bt),W(Dn),Pc("tabindex"),W(Rr),W(gt),W(wt))},e.\u0275dir=fn({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(o,i){o&1&&au("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),o&2&&iu("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Pr],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Pr],replaceUrl:[2,"replaceUrl","replaceUrl",Pr],routerLink:"routerLink"},standalone:!0,features:[ru,Yn]});let t=e;return t})(),IO=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,o,i,s,a){this.router=n,this.element=o,this.renderer=i,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ae,this.routerEventsSubscription=n.events.subscribe(c=>{c instanceof Ze&&this.update()})}ngAfterContentInit(){C(this.links.changes,C(null)).pipe(Tt()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(o=>!!o).map(o=>o.onChanges);this.linkInputChangesSubscription=Z(n).pipe(Tt()).subscribe(o=>{this._isActive!==this.isLinkActive(this.router)(o)&&this.update()})}set routerLinkActive(n){let o=Array.isArray(n)?n:n.split(" ");this.classes=o.filter(i=>!!i)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(o=>{n?this.renderer.addClass(this.element.nativeElement,o):this.renderer.removeClass(this.element.nativeElement,o)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let o=KM(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let s=i.urlTree;return s?n.isActive(s,o):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(o){return new(o||e)(W(bt),W(gt),W(Rr),W(pn),W(wg,8))},e.\u0275dir=fn({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(o,i,s){if(o&1&&cp(s,wg,5),o&2){let a;up(a=lp())&&(i.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Yn]});let t=e;return t})();function KM(t){return!!t.paths}var $s=class{};var JM=(()=>{let e=class e{constructor(n,o,i,s,a){this.router=n,this.injector=i,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(pe(n=>n instanceof Ze),it(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,o){let i=[];for(let s of o){s.providers&&!s._injector&&(s._injector=Qi(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,c=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&i.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&i.push(this.processRoutes(c,s.children??s._loadedRoutes))}return Z(i).pipe(Tt())}preloadConfig(n,o){return this.preloadingStrategy.preload(o,()=>{let i;o.loadChildren&&o.canLoad===void 0?i=this.loader.loadChildren(n,o):i=C(null);let s=i.pipe(X(a=>a===null?C(void 0):(o._loadedRoutes=a.routes,o._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(o.loadComponent&&!o._loadedComponent){let a=this.loader.loadComponent(o);return Z([s,a]).pipe(Tt())}else return s})}};e.\u0275fac=function(o){return new(o||e)(y(bt),y(ns),y(De),y($s),y(Il))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Xg=new D(""),XM=(()=>{let e=class e{constructor(n,o,i,s,a={}){this.urlSerializer=n,this.transitions=o,this.viewportScroller=i,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof ur?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Ze?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Gt&&n.code===_s.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Rs&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,o){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Rs(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,o))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(o){kh()},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function e0(t){return t.routerState.root}function uo(t,e){return{\u0275kind:t,\u0275providers:e}}function t0(){let t=p(Fe);return e=>{let r=t.get(mt);if(e!==r.components[0])return;let n=t.get(bt),o=t.get(em);t.get(Ml)===1&&n.initialNavigation(),t.get(tm,null,A.Optional)?.setUpPreloading(),t.get(Xg,null,A.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var em=new D("",{factory:()=>new ue}),Ml=new D("",{providedIn:"root",factory:()=>1});function n0(){return uo(2,[{provide:Ml,useValue:0},{provide:es,multi:!0,deps:[Fe],useFactory:e=>{let r=e.get(kp,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let o=e.get(bt),i=e.get(em);Jg(o,()=>{n(!0)}),e.get(bl).afterPreactivation=()=>(n(!0),i.closed?C(void 0):i),o.initialNavigation()}))}}])}function r0(){return uo(3,[{provide:es,multi:!0,useFactory:()=>{let e=p(bt);return()=>{e.setUpLocationChangeListener()}}},{provide:Ml,useValue:2}])}var tm=new D("");function o0(t){return uo(0,[{provide:tm,useExisting:JM},{provide:$s,useExisting:t}])}function i0(){return uo(8,[mg,{provide:Us,useExisting:mg}])}function s0(t){let e=[{provide:Yg,useValue:VM},{provide:Qg,useValue:m({skipNextTransition:!!t?.skipInitialTransition},t)}];return uo(9,e)}var Eg=new D("ROUTER_FORROOT_GUARD"),a0=[tr,{provide:oo,useClass:cr},bt,so,{provide:Dn,useFactory:e0,deps:[bt]},Il,[]],CO=(()=>{let e=class e{constructor(n){}static forRoot(n,o){return{ngModule:e,providers:[a0,[],{provide:Vs,multi:!0,useValue:n},{provide:Eg,useFactory:d0,deps:[[bt,new Oi,new yc]]},{provide:co,useValue:o||{}},o?.useHash?u0():l0(),c0(),o?.preloadingStrategy?o0(o.preloadingStrategy).\u0275providers:[],o?.initialNavigation?f0(o):[],o?.bindToComponentInputs?i0().\u0275providers:[],o?.enableViewTransitions?s0().\u0275providers:[],h0()]}}static forChild(n){return{ngModule:e,providers:[{provide:Vs,multi:!0,useValue:n}]}}};e.\u0275fac=function(o){return new(o||e)(y(Eg,8))},e.\u0275mod=dt({type:e}),e.\u0275inj=lt({});let t=e;return t})();function c0(){return{provide:Xg,useFactory:()=>{let t=p(Hp),e=p($),r=p(co),n=p(bl),o=p(oo);return r.scrollOffset&&t.setOffset(r.scrollOffset),new XM(o,n,t,e,r)}}}function u0(){return{provide:wt,useClass:Lp}}function l0(){return{provide:wt,useClass:Tu}}function d0(t){return"guarded"}function f0(t){return[t.initialNavigation==="disabled"?r0().\u0275providers:[],t.initialNavigation==="enabledBlocking"?n0().\u0275providers:[]]}var Ig=new D("");function h0(){return[{provide:Ig,useFactory:t0},{provide:ts,multi:!0,useExisting:Ig}]}var nm=class t{constructor(e){this.http=e}apiUrl="https://api5.angular-buch.com";getAll(){return this.http.get(`${this.apiUrl}/books`).pipe(Oe(e=>(console.error(e),C([]))))}getSingle(e){return this.http.get(`${this.apiUrl}/books/${e}`)}remove(e){return this.http.delete(`${this.apiUrl}/books/${e}`)}getAllSearch(e){return this.http.get(`${this.apiUrl}/books/search/${e}`).pipe(Oe(r=>(console.error(r),C([]))))}create(e){return this.http.post(`${this.apiUrl}/books`,e)}update(e){return this.http.put(`${this.apiUrl}/books/${e.isbn}`,e)}check(e){return this.http.get(`${this.apiUrl}/books/${e}/check`)}static \u0275fac=function(r){return new(r||t)(y(Pu))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})};export{m as a,q as b,ue as c,se as d,Z as e,T as f,Fm as g,pe as h,Lm as i,jm as j,ge as k,zo as l,re as m,E as n,nf as o,w as p,lt as q,D as r,y as s,p as t,yf as u,dt as v,fn as w,Ec as x,Yn as y,PA as z,kA as A,Oc as B,ae as C,gt as D,eD as E,FA as F,W as G,un as H,Rr as I,$t as J,$A as K,lE as L,bE as M,iu as N,PE as O,kE as P,sp as Q,ap as R,su as S,YE as T,QE as U,UA as V,au as W,BA as X,HA as Y,zA as Z,cI as _,dp as $,GA as aa,hp as ba,qA as ca,WA as da,ZA as ea,YA as fa,QA as ga,Xn as ha,KA as ia,pu as ja,gn as ka,wR as la,ER as ma,IR as na,CR as oa,Bp as pa,_C as qa,LR as ra,rO as sa,oO as ta,Dn as ua,Bb as va,bt as wa,wg as xa,IO as ya,CO as za,nm as Aa}; diff --git a/chunk-PJ4GGY2K.js b/chunk-OW6VXUGH.js similarity index 97% rename from chunk-PJ4GGY2K.js rename to chunk-OW6VXUGH.js index 9d9267d..c5c51af 100644 --- a/chunk-PJ4GGY2K.js +++ b/chunk-OW6VXUGH.js @@ -1 +1 @@ -import{a as X}from"./chunk-DQUMYO3P.js";import{$ as u,A as U,Aa as L,C as j,E as S,F as n,G as c,H as M,J as V,M as s,O as m,Q as r,R as o,S as _,T as H,U as z,V as K,W as y,X as p,Z as a,_ as d,ba as g,c as N,da as q,ea as f,fa as b,ga as G,l as $,la as x,ma as C,na as D,oa as J,u as k,ua as Q,w as h,wa as W,x as P,xa as E,z as A}from"./chunk-O2QHHITW.js";var I=class t{transform(i){return i?`${i.substring(0,3)}-${i.substring(3)}`:""}static \u0275fac=function(e){return new(e||t)};static \u0275pipe=P({name:"isbn",type:t,pure:!0,standalone:!0})};var T=class t{constructor(i,e,l){this.template=i;this.viewContainer=e;this.authService=l;this.authService.isAuthenticated$.pipe($(this.destroy$)).subscribe(v=>{v?this.viewContainer.createEmbeddedView(this.template):this.viewContainer.clear()})}destroy$=new N;ngOnDestroy(){this.destroy$.next()}static \u0275fac=function(e){return new(e||t)(c(M),c(V),c(X))};static \u0275dir=h({type:t,selectors:[["","bmLoggedinOnly",""]],standalone:!0})};var w=class t{confirmText;confirm=new j;onClick(){window.confirm(this.confirmText)&&this.confirm.emit()}static \u0275fac=function(e){return new(e||t)};static \u0275dir=h({type:t,selectors:[["","bmConfirm",""]],hostBindings:function(e,l){e&1&&y("click",function(){return l.onClick()})},inputs:{confirmText:[0,"bmConfirm","confirmText"]},outputs:{confirm:"confirm"},standalone:!0})};var te=t=>["/admin/edit",t];function ie(t,i){if(t&1&&(r(0,"p",9),a(1),o()),t&2){let e=p().ngIf;n(),d(e.subtitle)}}function oe(t,i){if(t&1&&(r(0,"li"),a(1),o()),t&2){let e=i.$implicit;n(),d(e)}}function ne(t,i){if(t&1&&(r(0,"div")(1,"h2"),a(2,"Published"),o(),a(3),f(4,"date"),o()),t&2){let e=p().ngIf;n(3),u(" ",G(4,1,e.published,"longDate")," ")}}function re(t,i){if(t&1&&_(0,"img",10),t&2){let e=p().ngIf;m("src",e.thumbnailUrl,S)}}function ae(t,i){if(t&1){let e=K();H(0),r(1,"button",11),y("confirm",function(){A(e);let v=p().ngIf,Z=p();return U(Z.removeBook(v.isbn))}),a(2," Remove book "),o(),r(3,"a",12),a(4," Edit book "),o(),z()}if(t&2){let e=p().ngIf;n(3),m("routerLink",q(1,te,e.isbn))}}function me(t,i){if(t&1&&(r(0,"div",1)(1,"h1"),a(2),o(),s(3,ie,2,1,"p",2),r(4,"div",3)(5,"div")(6,"h2"),a(7,"Authors"),o(),r(8,"ul"),s(9,oe,2,1,"li",4),o()(),r(10,"div")(11,"h2"),a(12,"ISBN"),o(),a(13),f(14,"isbn"),o(),s(15,ne,5,4,"div",5),o(),r(16,"h2"),a(17,"Description"),o(),r(18,"p"),a(19),o(),s(20,re,1,1,"img",6),r(21,"a",7),a(22,"Back to list"),o(),s(23,ae,5,3,"ng-container",8),o()),t&2){let e=i.ngIf;n(2),d(e.title),n(),m("ngIf",e.subtitle),n(6),m("ngForOf",e.authors),n(4),u(" ",b(14,7,e.isbn)," "),n(2),m("ngIf",e.published),n(4),d(e.description),n(),m("ngIf",e.thumbnailUrl)}}var F=class t{constructor(i,e,l){this.service=i;this.route=e;this.router=l;let v=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(v)}book$;removeBook(i){this.service.remove(i).subscribe(()=>{this.router.navigateByUrl("/books")})}static \u0275fac=function(e){return new(e||t)(c(L),c(Q),c(W))};static \u0275cmp=k({type:t,selectors:[["bm-book-details"]],standalone:!0,features:[g],decls:2,vars:3,consts:[["class","details",4,"ngIf"],[1,"details"],["role","doc-subtitle",4,"ngIf"],[1,"header"],[4,"ngFor","ngForOf"],[4,"ngIf"],["alt","Cover",3,"src",4,"ngIf"],["routerLink","..",1,"button","arrow-left"],[4,"bmLoggedinOnly"],["role","doc-subtitle"],["alt","Cover",3,"src"],["bmConfirm","Remove book?",1,"red",3,"confirm"],[1,"button",3,"routerLink"]],template:function(e,l){e&1&&(s(0,me,24,9,"div",0),f(1,"async")),e&2&&m("ngIf",b(1,1,l.book$))},dependencies:[C,x,J,D,E,I,T,w]})};function se(t,i){if(t&1&&_(0,"img",6),t&2){let e=p(2);m("src",e.book.thumbnailUrl,S)}}function pe(t,i){if(t&1&&(r(0,"p",7),a(1),o()),t&2){let e=p(2);n(),u(" ",e.book.subtitle," ")}}function le(t,i){if(t&1&&(r(0,"li"),a(1),o()),t&2){let e=i.$implicit;n(),u(" ",e," ")}}function ce(t,i){if(t&1&&(r(0,"a",1),s(1,se,1,1,"img",2),r(2,"h2"),a(3),o(),s(4,pe,2,1,"p",3),r(5,"ul",4),s(6,le,2,1,"li",5),o(),r(7,"div"),a(8),f(9,"isbn"),o()()),t&2){let e=p();m("routerLink",e.book.isbn),n(),m("ngIf",e.book.thumbnailUrl),n(2),d(e.book.title),n(),m("ngIf",e.book.subtitle),n(2),m("ngForOf",e.book.authors),n(2),u("ISBN ",b(9,6,e.book.isbn),"")}}var O=class t{book;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=k({type:t,selectors:[["bm-book-list-item"]],inputs:{book:"book"},standalone:!0,features:[g],decls:1,vars:1,consts:[["class","list-item",3,"routerLink",4,"ngIf"],[1,"list-item",3,"routerLink"],["alt","Cover",3,"src",4,"ngIf"],["role","doc-subtitle",4,"ngIf"],[1,"comma-list"],[4,"ngFor","ngForOf"],["alt","Cover",3,"src"],["role","doc-subtitle"]],template:function(e,l){e&1&&s(0,ce,10,8,"a",0),e&2&&m("ngIf",l.book)},dependencies:[C,x,E,I]})};function fe(t,i){if(t&1&&(r(0,"li"),_(1,"bm-book-list-item",4),o()),t&2){let e=i.$implicit;n(),m("book",e)}}function de(t,i){t&1&&(r(0,"li"),a(1," No books available. "),o())}function ue(t,i){if(t&1&&(r(0,"ul",1),s(1,fe,2,1,"li",2)(2,de,2,0,"li",3),o()),t&2){let e=i.ngIf;n(),m("ngForOf",e),n(),m("ngIf",!e.length)}}var R=class t{constructor(i){this.service=i;this.books$=this.service.getAll()}books$;static \u0275fac=function(e){return new(e||t)(c(L))};static \u0275cmp=k({type:t,selectors:[["bm-book-list"]],standalone:!0,features:[g],decls:4,vars:3,consts:[["class","book-list",4,"ngIf"],[1,"book-list"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"book"]],template:function(e,l){e&1&&(r(0,"h1"),a(1,"Books"),o(),s(2,ue,3,2,"ul",0),f(3,"async")),e&2&&(n(2),m("ngIf",b(3,1,l.books$)))},dependencies:[C,x,D,O]})};var He=[{path:"",component:R},{path:":isbn",component:F}];export{He as BOOKS_ROUTES}; +import{a as X}from"./chunk-AQK6WKX2.js";import{$ as u,A as U,Aa as L,C as j,E as S,F as n,G as c,H as M,J as V,M as s,O as m,Q as r,R as o,S as _,T as H,U as z,V as K,W as y,X as p,Z as a,_ as d,ba as g,c as N,da as q,ea as f,fa as b,ga as G,l as $,la as x,ma as C,na as D,oa as J,u as k,ua as Q,w as h,wa as W,x as P,xa as E,z as A}from"./chunk-JALBVKIC.js";var I=class t{transform(i){return i?`${i.substring(0,3)}-${i.substring(3)}`:""}static \u0275fac=function(e){return new(e||t)};static \u0275pipe=P({name:"isbn",type:t,pure:!0,standalone:!0})};var T=class t{constructor(i,e,l){this.template=i;this.viewContainer=e;this.authService=l;this.authService.isAuthenticated$.pipe($(this.destroy$)).subscribe(v=>{v?this.viewContainer.createEmbeddedView(this.template):this.viewContainer.clear()})}destroy$=new N;ngOnDestroy(){this.destroy$.next()}static \u0275fac=function(e){return new(e||t)(c(M),c(V),c(X))};static \u0275dir=h({type:t,selectors:[["","bmLoggedinOnly",""]],standalone:!0})};var w=class t{confirmText;confirm=new j;onClick(){window.confirm(this.confirmText)&&this.confirm.emit()}static \u0275fac=function(e){return new(e||t)};static \u0275dir=h({type:t,selectors:[["","bmConfirm",""]],hostBindings:function(e,l){e&1&&y("click",function(){return l.onClick()})},inputs:{confirmText:[0,"bmConfirm","confirmText"]},outputs:{confirm:"confirm"},standalone:!0})};var te=t=>["/admin/edit",t];function ie(t,i){if(t&1&&(r(0,"p",9),a(1),o()),t&2){let e=p().ngIf;n(),d(e.subtitle)}}function oe(t,i){if(t&1&&(r(0,"li"),a(1),o()),t&2){let e=i.$implicit;n(),d(e)}}function ne(t,i){if(t&1&&(r(0,"div")(1,"h2"),a(2,"Published"),o(),a(3),f(4,"date"),o()),t&2){let e=p().ngIf;n(3),u(" ",G(4,1,e.published,"longDate")," ")}}function re(t,i){if(t&1&&_(0,"img",10),t&2){let e=p().ngIf;m("src",e.thumbnailUrl,S)}}function ae(t,i){if(t&1){let e=K();H(0),r(1,"button",11),y("confirm",function(){A(e);let v=p().ngIf,Z=p();return U(Z.removeBook(v.isbn))}),a(2," Remove book "),o(),r(3,"a",12),a(4," Edit book "),o(),z()}if(t&2){let e=p().ngIf;n(3),m("routerLink",q(1,te,e.isbn))}}function me(t,i){if(t&1&&(r(0,"div",1)(1,"h1"),a(2),o(),s(3,ie,2,1,"p",2),r(4,"div",3)(5,"div")(6,"h2"),a(7,"Authors"),o(),r(8,"ul"),s(9,oe,2,1,"li",4),o()(),r(10,"div")(11,"h2"),a(12,"ISBN"),o(),a(13),f(14,"isbn"),o(),s(15,ne,5,4,"div",5),o(),r(16,"h2"),a(17,"Description"),o(),r(18,"p"),a(19),o(),s(20,re,1,1,"img",6),r(21,"a",7),a(22,"Back to list"),o(),s(23,ae,5,3,"ng-container",8),o()),t&2){let e=i.ngIf;n(2),d(e.title),n(),m("ngIf",e.subtitle),n(6),m("ngForOf",e.authors),n(4),u(" ",b(14,7,e.isbn)," "),n(2),m("ngIf",e.published),n(4),d(e.description),n(),m("ngIf",e.thumbnailUrl)}}var F=class t{constructor(i,e,l){this.service=i;this.route=e;this.router=l;let v=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(v)}book$;removeBook(i){this.service.remove(i).subscribe(()=>{this.router.navigateByUrl("/books")})}static \u0275fac=function(e){return new(e||t)(c(L),c(Q),c(W))};static \u0275cmp=k({type:t,selectors:[["bm-book-details"]],standalone:!0,features:[g],decls:2,vars:3,consts:[["class","details",4,"ngIf"],[1,"details"],["role","doc-subtitle",4,"ngIf"],[1,"header"],[4,"ngFor","ngForOf"],[4,"ngIf"],["alt","Cover",3,"src",4,"ngIf"],["routerLink","..",1,"button","arrow-left"],[4,"bmLoggedinOnly"],["role","doc-subtitle"],["alt","Cover",3,"src"],["bmConfirm","Remove book?",1,"red",3,"confirm"],[1,"button",3,"routerLink"]],template:function(e,l){e&1&&(s(0,me,24,9,"div",0),f(1,"async")),e&2&&m("ngIf",b(1,1,l.book$))},dependencies:[C,x,J,D,E,I,T,w]})};function se(t,i){if(t&1&&_(0,"img",6),t&2){let e=p(2);m("src",e.book.thumbnailUrl,S)}}function pe(t,i){if(t&1&&(r(0,"p",7),a(1),o()),t&2){let e=p(2);n(),u(" ",e.book.subtitle," ")}}function le(t,i){if(t&1&&(r(0,"li"),a(1),o()),t&2){let e=i.$implicit;n(),u(" ",e," ")}}function ce(t,i){if(t&1&&(r(0,"a",1),s(1,se,1,1,"img",2),r(2,"h2"),a(3),o(),s(4,pe,2,1,"p",3),r(5,"ul",4),s(6,le,2,1,"li",5),o(),r(7,"div"),a(8),f(9,"isbn"),o()()),t&2){let e=p();m("routerLink",e.book.isbn),n(),m("ngIf",e.book.thumbnailUrl),n(2),d(e.book.title),n(),m("ngIf",e.book.subtitle),n(2),m("ngForOf",e.book.authors),n(2),u("ISBN ",b(9,6,e.book.isbn),"")}}var O=class t{book;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=k({type:t,selectors:[["bm-book-list-item"]],inputs:{book:"book"},standalone:!0,features:[g],decls:1,vars:1,consts:[["class","list-item",3,"routerLink",4,"ngIf"],[1,"list-item",3,"routerLink"],["alt","Cover",3,"src",4,"ngIf"],["role","doc-subtitle",4,"ngIf"],[1,"comma-list"],[4,"ngFor","ngForOf"],["alt","Cover",3,"src"],["role","doc-subtitle"]],template:function(e,l){e&1&&s(0,ce,10,8,"a",0),e&2&&m("ngIf",l.book)},dependencies:[C,x,E,I]})};function fe(t,i){if(t&1&&(r(0,"li"),_(1,"bm-book-list-item",4),o()),t&2){let e=i.$implicit;n(),m("book",e)}}function de(t,i){t&1&&(r(0,"li"),a(1," No books available. "),o())}function ue(t,i){if(t&1&&(r(0,"ul",1),s(1,fe,2,1,"li",2)(2,de,2,0,"li",3),o()),t&2){let e=i.ngIf;n(),m("ngForOf",e),n(),m("ngIf",!e.length)}}var R=class t{constructor(i){this.service=i;this.books$=this.service.getAll()}books$;static \u0275fac=function(e){return new(e||t)(c(L))};static \u0275cmp=k({type:t,selectors:[["bm-book-list"]],standalone:!0,features:[g],decls:4,vars:3,consts:[["class","book-list",4,"ngIf"],[1,"book-list"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"book"]],template:function(e,l){e&1&&(r(0,"h1"),a(1,"Books"),o(),s(2,ue,3,2,"ul",0),f(3,"async")),e&2&&(n(2),m("ngIf",b(3,1,l.books$)))},dependencies:[C,x,D,O]})};var He=[{path:"",component:R},{path:":isbn",component:F}];export{He as BOOKS_ROUTES}; diff --git a/chunk-TNXW7IZL.js b/chunk-TNXW7IZL.js deleted file mode 100644 index 8ca5f31..0000000 --- a/chunk-TNXW7IZL.js +++ /dev/null @@ -1,2 +0,0 @@ -import{$ as Ye,A as We,Aa as B,B as Ae,C as k,D as U,F as v,G as s,I as H,K as L,L as y,M as x,N as Me,O as f,P as Ee,Q as a,R as l,S as C,V as qe,W as p,X as ze,Z as u,a as c,aa as M,b as m,c as je,ca as ee,e as Ge,ea as Ze,f as O,fa as Xe,g as Ue,ha as Ke,ia as $,ja as E,k as He,ka as Fe,la as te,ma as Je,n as Q,na as Qe,o as b,p as De,pa as et,q as D,r as N,s as Le,t as Ve,u as V,ua as tt,v as A,w as d,wa as ie,y as G,z as $e,za as we}from"./chunk-O2QHHITW.js";var ut=(()=>{let e=class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(r){return new(r||e)(s(H),s(U))},e.\u0275dir=d({type:e});let t=e;return t})(),Lt=(()=>{let e=class e extends ut{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Ae(e)))(o||e)}})(),e.\u0275dir=d({type:e,features:[y]});let t=e;return t})(),de=new N("");var $t={provide:de,useExisting:b(()=>he),multi:!0};function Wt(){let t=Fe()?Fe().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var qt=new N(""),he=(()=>{let e=class e extends ut{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Wt())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(r){return new(r||e)(s(H),s(U),s(qt,8))},e.\u0275dir=d({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&p("input",function(S){return o._handleInput(S.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(S){return o._compositionEnd(S.target.value)})},features:[M([$t]),y]});let t=e;return t})();function F(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function ct(t){return t!=null&&typeof t.length=="number"}var fe=new N(""),me=new N(""),zt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Z=class{static min(e){return Yt(e)}static max(e){return Zt(e)}static required(e){return Xt(e)}static requiredTrue(e){return Kt(e)}static email(e){return Jt(e)}static minLength(e){return Qt(e)}static maxLength(e){return ei(e)}static pattern(e){return ti(e)}static nullValidator(e){return dt(e)}static compose(e){return vt(e)}static composeAsync(e){return _t(e)}};function Yt(t){return e=>{if(F(e.value)||F(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i{if(F(e.value)||F(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}function Xt(t){return F(t.value)?{required:!0}:null}function Kt(t){return t.value===!0?null:{required:!0}}function Jt(t){return F(t.value)||zt.test(t.value)?null:{email:!0}}function Qt(t){return e=>F(e.value)||!ct(e.value)?null:e.value.lengthct(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function ti(t){if(!t)return dt;let e,i;return typeof t=="string"?(i="",t.charAt(0)!=="^"&&(i+="^"),i+=t,t.charAt(t.length-1)!=="$"&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),n=>{if(F(n.value))return null;let r=n.value;return e.test(r)?null:{pattern:{requiredPattern:i,actualValue:r}}}}function dt(t){return null}function ht(t){return t!=null}function ft(t){return Ke(t)?Ge(t):t}function mt(t){let e={};return t.forEach(i=>{e=i!=null?c(c({},e),i):e}),Object.keys(e).length===0?null:e}function pt(t,e){return e.map(i=>i(t))}function ii(t){return!t.validate}function gt(t){return t.map(e=>ii(e)?e:i=>e.validate(i))}function vt(t){if(!t)return null;let e=t.filter(ht);return e.length==0?null:function(i){return mt(pt(i,e))}}function yt(t){return t!=null?vt(gt(t)):null}function _t(t){if(!t)return null;let e=t.filter(ht);return e.length==0?null:function(i){let n=pt(i,e).map(ft);return Ue(n).pipe(O(mt))}}function Ct(t){return t!=null?_t(gt(t)):null}function it(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function bt(t){return t._rawValidators}function Dt(t){return t._rawAsyncValidators}function Ie(t){return t?Array.isArray(t)?t:[t]:[]}function re(t,e){return Array.isArray(t)?t.includes(e):t===e}function nt(t,e){let i=Ie(e);return Ie(t).forEach(r=>{re(i,r)||i.push(r)}),i}function rt(t,e){return Ie(e).filter(i=>!re(t,i))}var oe=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=yt(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Ct(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,i){return this.control?this.control.hasError(e,i):!1}getError(e,i){return this.control?this.control.getError(e,i):null}},g=class extends oe{get formDirective(){return null}get path(){return null}},X=class extends oe{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},se=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},ni={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Qi=m(c({},ni),{"[class.ng-submitted]":"isSubmitted"}),Vt=(()=>{let e=class e extends se{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(s(X,2))},e.\u0275dir=d({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Ee("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[y]});let t=e;return t})(),At=(()=>{let e=class e extends se{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(s(g,10))},e.\u0275dir=d({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&Ee("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[y]});let t=e;return t})();var W="VALID",ne="INVALID",P="PENDING",q="DISABLED",w=class{},ae=class extends w{constructor(e,i){super(),this.value=e,this.source=i}},z=class extends w{constructor(e,i){super(),this.pristine=e,this.source=i}},Y=class extends w{constructor(e,i){super(),this.touched=e,this.source=i}},T=class extends w{constructor(e,i){super(),this.status=e,this.source=i}},Se=class extends w{constructor(e){super(),this.source=e}},Ne=class extends w{constructor(e){super(),this.source=e}};function ke(t){return(pe(t)?t.validators:t)||null}function ri(t){return Array.isArray(t)?yt(t):t||null}function Oe(t,e){return(pe(e)?e.asyncValidators:t)||null}function oi(t){return Array.isArray(t)?Ct(t):t||null}function pe(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function Mt(t,e,i){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new Q(1e3,"");if(!n[i])throw new Q(1001,"")}function Et(t,e,i){t._forEachChild((n,r)=>{if(i[r]===void 0)throw new Q(1002,"")})}var K=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=$(()=>this.statusReactive()),this.statusReactive=L(void 0),this._pristine=$(()=>this.pristineReactive()),this.pristineReactive=L(!0),this._touched=$(()=>this.touchedReactive()),this.touchedReactive=L(!1),this._events=new je,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return E(this.statusReactive)}set status(e){E(()=>this.statusReactive.set(e))}get valid(){return this.status===W}get invalid(){return this.status===ne}get pending(){return this.status==P}get disabled(){return this.status===q}get enabled(){return this.status!==q}get pristine(){return E(this.pristineReactive)}set pristine(e){E(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return E(this.touchedReactive)}set touched(e){E(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(nt(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(nt(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(rt(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(rt(e,this._rawAsyncValidators))}hasValidator(e){return re(this._rawValidators,e)}hasAsyncValidator(e){return re(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let i=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(m(c({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new Y(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(i=>i.markAllAsTouched(e))}markAsUntouched(e={}){let i=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),i&&e.emitEvent!==!1&&this._events.next(new Y(!1,n))}markAsDirty(e={}){let i=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(m(c({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new z(!1,n))}markAsPristine(e={}){let i=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),i&&e.emitEvent!==!1&&this._events.next(new z(!0,n))}markAsPending(e={}){this.status=P;let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new T(this.status,i)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(m(c({},e),{sourceControl:i}))}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=q,this.errors=null,this._forEachChild(r=>{r.disable(m(c({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ae(this.value,n)),this._events.next(new T(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(m(c({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=W,this._forEachChild(n=>{n.enable(m(c({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(m(c({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,i){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},i),this._parent._updateTouched({},i))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===W||this.status===P)&&this._runAsyncValidator(n,e.emitEvent)}let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ae(this.value,i)),this._events.next(new T(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(m(c({},e),{sourceControl:i}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?q:W}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,i){if(this.asyncValidator){this.status=P,this._hasOwnPendingAsyncValidator={emitEvent:i!==!1};let n=ft(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:i,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,i={}){this.errors=e,this._updateControlsErrors(i.emitEvent!==!1,this,i.shouldHaveEmitted)}get(e){let i=e;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((n,r)=>n&&n._find(r),this)}getError(e,i){let n=i?this.get(i):this;return n&&n.errors?n.errors[e]:null}hasError(e,i){return!!this.getError(e,i)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,i,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new T(this.status,i)),this._parent&&this._parent._updateControlsErrors(e,i,n)}_initObservables(){this.valueChanges=new k,this.statusChanges=new k}_calculateStatus(){return this._allControlsDisabled()?q:this.errors?ne:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(P)?P:this._anyControlsHaveStatus(ne)?ne:W}_anyControlsHaveStatus(e){return this._anyControls(i=>i.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,i){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),r&&this._events.next(new z(this.pristine,i))}_updateTouched(e={},i){this.touched=this._anyControlsTouched(),this._events.next(new Y(this.touched,i)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){pe(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let i=this._parent&&this._parent.dirty;return!e&&!!i&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=ri(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=oi(this._rawAsyncValidators)}},le=class extends K{constructor(e,i,n){super(ke(i),Oe(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,i){return this.controls[e]?this.controls[e]:(this.controls[e]=i,i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange),i)}addControl(e,i,n={}){this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}setControl(e,i,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],i&&this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,i={}){Et(this,!0,e),Object.keys(e).forEach(n=>{Mt(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(Object.keys(e).forEach(n=>{let r=this.controls[n];r&&r.patchValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e={},i={}){this._forEachChild((n,r)=>{n.reset(e?e[r]:null,{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i,this),this._updateTouched(i,this),this.updateValueAndValidity(i)}getRawValue(){return this._reduceChildren({},(e,i,n)=>(e[n]=i.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(i,n)=>n._syncPendingControls()?!0:i);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(i=>{let n=this.controls[i];n&&e(n,i)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[i,n]of Object.entries(this.controls))if(this.contains(i)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(i,n,r)=>((n.enabled||this.disabled)&&(i[r]=n.value),i))}_reduceChildren(e,i){let n=e;return this._forEachChild((r,o)=>{n=i(n,r,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Ft=new N("CallSetDisabledState",{providedIn:"root",factory:()=>xe}),xe="always";function Be(t,e){return[...e.path,t]}function ot(t,e,i=xe){Pe(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),ai(t,e),ui(t,e),li(t,e),si(t,e)}function st(t,e,i=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),ce(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function ue(t,e){t.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function si(t,e){if(e.valueAccessor.setDisabledState){let i=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}function Pe(t,e){let i=bt(t);e.validator!==null?t.setValidators(it(i,e.validator)):typeof i=="function"&&t.setValidators([i]);let n=Dt(t);e.asyncValidator!==null?t.setAsyncValidators(it(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();ue(e._rawValidators,r),ue(e._rawAsyncValidators,r)}function ce(t,e){let i=!1;if(t!==null){if(e.validator!==null){let r=bt(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(h=>h!==e.validator);o.length!==r.length&&(i=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let r=Dt(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(h=>h!==e.asyncValidator);o.length!==r.length&&(i=!0,t.setAsyncValidators(o))}}}let n=()=>{};return ue(e._rawValidators,n),ue(e._rawAsyncValidators,n),i}function ai(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&wt(t,e)})}function li(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&wt(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function wt(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ui(t,e){let i=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}function ci(t,e){t==null,Pe(t,e)}function di(t,e){return ce(t,e)}function hi(t,e){if(!t.hasOwnProperty("model"))return!1;let i=t.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function fi(t){return Object.getPrototypeOf(t.constructor)===Lt}function mi(t,e){t._syncPendingControls(),e.forEach(i=>{let n=i.control;n.updateOn==="submit"&&n._pendingChange&&(i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function pi(t,e){if(!e)return null;Array.isArray(e);let i,n,r;return e.forEach(o=>{o.constructor===he?i=o:fi(o)?n=o:r=o}),r||n||i||null}function gi(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function at(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function lt(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var _=class extends K{constructor(e=null,i,n){super(ke(i),Oe(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),pe(i)&&(i.nonNullable||i.initialValueIsDefault)&&(lt(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,i={}){this.value=this._pendingValue=e,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(e,i={}){this.setValue(e,i)}reset(e=this.defaultValue,i={}){this._applyFormState(e),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){at(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){at(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){lt(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var vi=t=>t instanceof _,yi=(()=>{let e=class e extends g{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Be(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Ae(e)))(o||e)}})(),e.\u0275dir=d({type:e,features:[y]});let t=e;return t})();var It=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=d({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var St=new N("");var _i={provide:g,useExisting:b(()=>R)},R=(()=>{let e=class e extends g{get submitted(){return E(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}constructor(n,r,o){super(),this.callSetDisabledState=o,this._submitted=$(()=>this._submittedReactive()),this._submittedReactive=L(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new k,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ce(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let r=this.form.get(n.path);return ot(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){st(n.control||null,n,!1),gi(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this._submittedReactive.set(!0),mi(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new Se(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new Ne(this.form))}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,o=this.form.get(n.path);r!==o&&(st(r||null,n),vi(o)&&(ot(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);ci(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&di(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Pe(this.form,this),this._oldForm&&ce(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(s(fe,10),s(me,10),s(Ft,8))},e.\u0275dir=d({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&p("submit",function(S){return o.onSubmit(S)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[M([_i]),y,G]});let t=e;return t})(),Ci={provide:g,useExisting:b(()=>Nt)},Nt=(()=>{let e=class e extends yi{constructor(n,r,o){super(),this.name=null,this._parent=n,this._setValidators(r),this._setAsyncValidators(o)}_checkParentType(){kt(this._parent)}};e.\u0275fac=function(r){return new(r||e)(s(g,13),s(fe,10),s(me,10))},e.\u0275dir=d({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[M([Ci]),y]});let t=e;return t})(),bi={provide:g,useExisting:b(()=>ge)},ge=(()=>{let e=class e extends g{constructor(n,r,o){super(),this.name=null,this._parent=n,this._setValidators(r),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Be(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){kt(this._parent)}};e.\u0275fac=function(r){return new(r||e)(s(g,13),s(fe,10),s(me,10))},e.\u0275dir=d({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[M([bi]),y]});let t=e;return t})();function kt(t){return!(t instanceof Nt)&&!(t instanceof R)&&!(t instanceof ge)}var Di={provide:X,useExisting:b(()=>Te)},Te=(()=>{let e=class e extends X{set isDisabled(n){}constructor(n,r,o,h,S){super(),this._ngModelWarningConfig=S,this._added=!1,this.name=null,this.update=new k,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=pi(this,h)}ngOnChanges(n){this._added||this._setUpControl(),hi(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return Be(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(s(g,13),s(fe,10),s(me,10),s(de,10),s(St,8))},e.\u0275dir=d({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[M([Di]),y,G]});let t=e;return t})();var Vi=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=A({type:e}),e.\u0275inj=D({});let t=e;return t})(),J=class extends K{constructor(e,i,n){super(ke(i),Oe(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,i={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}insert(e,i,n={}){this.controls.splice(e,0,i),this._registerControl(i),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,i={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:i.emitEvent})}setControl(e,i,n={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),i&&(this.controls.splice(r,0,i),this._registerControl(i)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,i={}){Et(this,!1,e),e.forEach((n,r)=>{Mt(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(e.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e=[],i={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i,this),this._updateTouched(i,this),this.updateValueAndValidity(i)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(i=>i._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((i,n)=>n._syncPendingControls()?!0:i,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((i,n)=>{e(i,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(i=>i.enabled&&e(i))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};var Ot=t=>t instanceof J;var xt=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:St,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Ft,useValue:n.callSetDisabledState??xe}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=A({type:e}),e.\u0275inj=D({imports:[Vi]});let t=e;return t})();var ve=class t{constructor(e){this.service=e}isbnExists(){return e=>this.service.check(e.value).pipe(O(i=>i?{isbnexists:!0}:null))}static \u0275fac=function(i){return new(i||t)(Le(B))};static \u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"})};var Tt=function(t){if(!t.value||typeof t.value!="string")return null;let i=t.value.replace(/-/g,"").length;return i===10||i===13?null:{isbnformat:!0}},Rt=function(t){return!Ot(t)||t.controls.some(e=>!!e.value)?null:{atleastonevalue:!0}};var jt=(()=>{class t{constructor(i,n){this.renderer=i,this.elementRef=n,this.onInput=r=>{let o=r?new Date(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()):null,h=o?o.toISOString():null;this.onChange(h)},this.onChange=()=>{},this.onTouched=()=>{}}writeValue(i){let n=i?new Date(i):null,r=n?new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())):null;this.renderer.setProperty(this.elementRef.nativeElement,"valueAsDate",r)}registerOnChange(i){this.onChange=i}registerOnTouched(i){this.onTouched=i}setDisabledState(i){this.renderer.setProperty(this.elementRef.nativeElement,"disabled",i)}}return t.\u0275fac=function(i){return new(i||t)(s(H),s(U))},t.\u0275dir=d({type:t,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(i,n){i&1&&p("input",function(o){return n.onInput(o.target.valueAsDate)})("blur",function(){return n.onTouched()})},standalone:!0,features:[M([{provide:de,useExisting:b(()=>t),multi:!0}])]}),t})();function Mi(t,e){if(t&1&&(a(0,"p",1),u(1),l()),t&2){let i=e.$implicit;v(),Ye(" ",i,` -`)}}var ye=class t{constructor(e){this.form=e}controlName;messages={};get errors(){if(!this.controlName)return[];let e=this.form.control.get(this.controlName);return!e||!e.errors||!e.touched?[]:Object.keys(e.errors).map(i=>this.messages[i])}static \u0275fac=function(i){return new(i||t)(s(R))};static \u0275cmp=V({type:t,selectors:[["bm-form-errors"]],inputs:{controlName:"controlName",messages:"messages"},decls:1,vars:1,consts:[["class","error",4,"ngFor","ngForOf"],[1,"error"]],template:function(i,n){i&1&&x(0,Mi,2,1,"p",0),i&2&&f("ngForOf",n.errors)},dependencies:[te]})};var Fi=()=>({required:"Title is required"}),wi=()=>({required:"ISBN is required",isbnformat:"ISBN must have 10 or 13 chars",isbnexists:"ISBN already exists"}),Ii=()=>({atleastonevalue:"At least one author required"});function Si(t,e){if(t&1&&C(0,"input",20),t&2){let i=e.index;f("formControlName",i),Me("aria-label","Author "+i)}}var j=class t{book;submitBook=new k;form=new le({title:new _("",{nonNullable:!0,validators:Z.required}),subtitle:new _("",{nonNullable:!0}),isbn:new _("",{nonNullable:!0,validators:[Z.required,Tt],asyncValidators:Ve(ve).isbnExists()}),description:new _("",{nonNullable:!0}),published:new _("",{nonNullable:!0}),authors:this.buildAuthorsArray([""]),thumbnailUrl:new _("",{nonNullable:!0})});ngOnChanges(){this.book?(this.setFormValues(this.book),this.setEditMode(!0)):this.setEditMode(!1)}setFormValues(e){this.form.patchValue(e),this.form.setControl("authors",this.buildAuthorsArray(e.authors))}setEditMode(e){let i=this.form.controls.isbn;e?i.disable():i.enable()}buildAuthorsArray(e){return new J(e.map(i=>new _(i,{nonNullable:!0})),Rt)}get authors(){return this.form.controls.authors}addAuthorControl(){this.authors.push(new _("",{nonNullable:!0}))}submitForm(){let e=this.form.getRawValue(),i=e.authors.filter(r=>!!r),n=m(c({},e),{authors:i});this.submitBook.emit(n)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["bm-book-form"]],inputs:{book:"book"},outputs:{submitBook:"submitBook"},features:[G],decls:30,vars:9,consts:[[3,"ngSubmit","formGroup"],["for","title"],["id","title","formControlName","title"],["controlName","title",3,"messages"],["for","subtitle"],["id","subtitle","formControlName","subtitle"],["for","isbn"],["id","isbn","formControlName","isbn"],["controlName","isbn",3,"messages"],["type","button",1,"add",3,"click"],["formArrayName","authors"],[3,"formControlName",4,"ngFor","ngForOf"],["controlName","authors",3,"messages"],["for","description"],["id","description","formControlName","description"],["for","published"],["type","date","useValueAsLocalIso","","id","published","formControlName","published"],["for","thumbnailUrl"],["type","url","id","thumbnailUrl","formControlName","thumbnailUrl"],["type","submit",3,"disabled"],[3,"formControlName"]],template:function(i,n){i&1&&(a(0,"form",0),p("ngSubmit",function(){return n.submitForm()}),a(1,"label",1),u(2,"Title"),l(),C(3,"input",2)(4,"bm-form-errors",3),a(5,"label",4),u(6,"Subtitle"),l(),C(7,"input",5),a(8,"label",6),u(9,"ISBN"),l(),C(10,"input",7)(11,"bm-form-errors",8),a(12,"label"),u(13,"Authors"),l(),a(14,"button",9),p("click",function(){return n.addAuthorControl()}),u(15," + Author "),l(),a(16,"fieldset",10),x(17,Si,1,2,"input",11),l(),C(18,"bm-form-errors",12),a(19,"label",13),u(20,"Description"),l(),C(21,"textarea",14),a(22,"label",15),u(23,"Published"),l(),C(24,"input",16),a(25,"label",17),u(26,"Thumbnail URL"),l(),C(27,"input",18),a(28,"button",19),u(29," Save "),l()()),i&2&&(f("formGroup",n.form),v(4),f("messages",ee(6,Fi)),v(7),f("messages",ee(7,wi)),v(6),f("ngForOf",n.authors.controls),v(),f("messages",ee(8,Ii)),v(10),f("disabled",n.form.invalid))},dependencies:[te,It,he,Vt,At,R,Te,ge,jt,ye]})};var _e=class t{constructor(e,i){this.service=e;this.router=i}create(e){this.service.create(e).subscribe(i=>{this.router.navigate(["/books",i.isbn])})}static \u0275fac=function(i){return new(i||t)(s(B),s(ie))};static \u0275cmp=V({type:t,selectors:[["bm-book-create"]],decls:3,vars:0,consts:[[3,"submitBook"]],template:function(i,n){i&1&&(a(0,"h1"),u(1,"Create Book"),l(),a(2,"bm-book-form",0),p("submitBook",function(o){return n.create(o)}),l())},dependencies:[j]})};function ki(t,e){if(t&1){let i=qe();a(0,"bm-book-form",1),p("submitBook",function(r){$e(i);let o=ze();return We(o.update(r))}),l()}if(t&2){let i=e.ngIf;f("book",i)}}var Ce=class t{constructor(e,i,n){this.service=e;this.route=i;this.router=n;this.book$=this.route.paramMap.pipe(O(r=>r.get("isbn")),He(r=>this.service.getSingle(r)))}book$;update(e){this.service.update(e).subscribe(i=>{this.router.navigate(["/books",i.isbn])})}static \u0275fac=function(i){return new(i||t)(s(B),s(tt),s(ie))};static \u0275cmp=V({type:t,selectors:[["bm-book-edit"]],decls:4,vars:3,consts:[[3,"book","submitBook",4,"ngIf"],[3,"submitBook","book"]],template:function(i,n){i&1&&(a(0,"h1"),u(1,"Edit Book"),l(),x(2,ki,1,1,"bm-book-form",0),Ze(3,"async")),i&2&&(v(2),f("ngIf",Xe(3,1,n.book$)))},dependencies:[Je,j,Qe]})};var Oi=[{path:"",redirectTo:"create",pathMatch:"full"},{path:"create",component:_e},{path:"edit/:isbn",component:Ce}],be=class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=A({type:t});static \u0275inj=D({imports:[we.forChild(Oi),we]})};var Ht=class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=A({type:t});static \u0275inj=D({imports:[et,be,xt]})};export{Ht as AdminModule}; diff --git a/chunk-UDBV22H5.js b/chunk-UDBV22H5.js new file mode 100644 index 0000000..2084ceb --- /dev/null +++ b/chunk-UDBV22H5.js @@ -0,0 +1,2 @@ +import{$ as ze,A as $e,Aa as x,B as De,C as N,D as G,F as v,G as o,I as U,K as H,L as _,M as O,N as Ae,O as f,P as Me,Q as a,R as l,S as C,V as We,W as p,X as qe,Z as u,a as c,aa as M,b as m,c as Te,ca as Q,e as je,ea as Ye,f as k,fa as Ze,g as Ge,ha as Xe,ia as L,ja as F,k as Ue,ka as Fe,la as ee,ma as Ke,n as J,na as Je,o as V,p as Ve,pa as Qe,q as b,r as S,s as He,t as be,u as D,ua as et,v as A,w as d,wa as te,y as j,z as Le,za as Ee}from"./chunk-JALBVKIC.js";var lt=(()=>{class i{constructor(t,n){this._renderer=t,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static{this.\u0275fac=function(n){return new(n||i)(o(U),o(G))}}static{this.\u0275dir=d({type:i})}}return i})(),Ht=(()=>{class i extends lt{static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=De(i)))(r||i)}})()}static{this.\u0275dir=d({type:i,features:[_]})}}return i})(),ce=new S("");var Lt={provide:ce,useExisting:V(()=>de),multi:!0};function $t(){let i=Fe()?Fe().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var Wt=new S(""),de=(()=>{class i extends lt{constructor(t,n,r){super(t,n),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!$t())}writeValue(t){let n=t??"";this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static{this.\u0275fac=function(n){return new(n||i)(o(U),o(G),o(Wt,8))}}static{this.\u0275dir=d({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){n&1&&p("input",function(h){return r._handleInput(h.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(h){return r._compositionEnd(h.target.value)})},features:[M([Lt]),_]})}}return i})();function E(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function ut(i){return i!=null&&typeof i.length=="number"}var he=new S(""),fe=new S(""),qt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Y=class{static min(e){return zt(e)}static max(e){return Yt(e)}static required(e){return Zt(e)}static requiredTrue(e){return Xt(e)}static email(e){return Kt(e)}static minLength(e){return Jt(e)}static maxLength(e){return Qt(e)}static pattern(e){return ei(e)}static nullValidator(e){return ct(e)}static compose(e){return gt(e)}static composeAsync(e){return _t(e)}};function zt(i){return e=>{if(E(e.value)||E(i))return null;let t=parseFloat(e.value);return!isNaN(t)&&t{if(E(e.value)||E(i))return null;let t=parseFloat(e.value);return!isNaN(t)&&t>i?{max:{max:i,actual:e.value}}:null}}function Zt(i){return E(i.value)?{required:!0}:null}function Xt(i){return i.value===!0?null:{required:!0}}function Kt(i){return E(i.value)||qt.test(i.value)?null:{email:!0}}function Jt(i){return e=>E(e.value)||!ut(e.value)?null:e.value.lengthut(e.value)&&e.value.length>i?{maxlength:{requiredLength:i,actualLength:e.value.length}}:null}function ei(i){if(!i)return ct;let e,t;return typeof i=="string"?(t="",i.charAt(0)!=="^"&&(t+="^"),t+=i,i.charAt(i.length-1)!=="$"&&(t+="$"),e=new RegExp(t)):(t=i.toString(),e=i),n=>{if(E(n.value))return null;let r=n.value;return e.test(r)?null:{pattern:{requiredPattern:t,actualValue:r}}}}function ct(i){return null}function dt(i){return i!=null}function ht(i){return Xe(i)?je(i):i}function ft(i){let e={};return i.forEach(t=>{e=t!=null?c(c({},e),t):e}),Object.keys(e).length===0?null:e}function mt(i,e){return e.map(t=>t(i))}function ti(i){return!i.validate}function pt(i){return i.map(e=>ti(e)?e:t=>e.validate(t))}function gt(i){if(!i)return null;let e=i.filter(dt);return e.length==0?null:function(t){return ft(mt(t,e))}}function vt(i){return i!=null?gt(pt(i)):null}function _t(i){if(!i)return null;let e=i.filter(dt);return e.length==0?null:function(t){let n=mt(t,e).map(ht);return Ge(n).pipe(k(ft))}}function yt(i){return i!=null?_t(pt(i)):null}function tt(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function Ct(i){return i._rawValidators}function Vt(i){return i._rawAsyncValidators}function we(i){return i?Array.isArray(i)?i:[i]:[]}function ne(i,e){return Array.isArray(i)?i.includes(e):i===e}function it(i,e){let t=we(e);return we(i).forEach(r=>{ne(t,r)||t.push(r)}),t}function nt(i,e){return we(e).filter(t=>!ne(i,t))}var re=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=vt(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=yt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},g=class extends re{get formDirective(){return null}get path(){return null}},Z=class extends re{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},oe=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},ii={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Ji=m(c({},ii),{"[class.ng-submitted]":"isSubmitted"}),bt=(()=>{class i extends oe{constructor(t){super(t)}static{this.\u0275fac=function(n){return new(n||i)(o(Z,2))}}static{this.\u0275dir=d({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&Me("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[_]})}}return i})(),Dt=(()=>{class i extends oe{constructor(t){super(t)}static{this.\u0275fac=function(n){return new(n||i)(o(g,10))}}static{this.\u0275dir=d({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&Me("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[_]})}}return i})();var $="VALID",ie="INVALID",B="PENDING",W="DISABLED",w=class{},se=class extends w{constructor(e,t){super(),this.value=e,this.source=t}},q=class extends w{constructor(e,t){super(),this.pristine=e,this.source=t}},z=class extends w{constructor(e,t){super(),this.touched=e,this.source=t}},P=class extends w{constructor(e,t){super(),this.status=e,this.source=t}},Ie=class extends w{constructor(e){super(),this.source=e}},Se=class extends w{constructor(e){super(),this.source=e}};function Ne(i){return(me(i)?i.validators:i)||null}function ni(i){return Array.isArray(i)?vt(i):i||null}function ke(i,e){return(me(e)?e.asyncValidators:i)||null}function ri(i){return Array.isArray(i)?yt(i):i||null}function me(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function At(i,e,t){let n=i.controls;if(!(e?Object.keys(n):n).length)throw new J(1e3,"");if(!n[t])throw new J(1001,"")}function Mt(i,e,t){i._forEachChild((n,r)=>{if(t[r]===void 0)throw new J(1002,"")})}var X=class{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=L(()=>this.statusReactive()),this.statusReactive=H(void 0),this._pristine=L(()=>this.pristineReactive()),this.pristineReactive=H(!0),this._touched=L(()=>this.touchedReactive()),this.touchedReactive=H(!1),this._events=new Te,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return F(this.statusReactive)}set status(e){F(()=>this.statusReactive.set(e))}get valid(){return this.status===$}get invalid(){return this.status===ie}get pending(){return this.status==B}get disabled(){return this.status===W}get enabled(){return this.status!==W}get pristine(){return F(this.pristineReactive)}set pristine(e){F(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return F(this.touchedReactive)}set touched(e){F(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(it(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(it(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(nt(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(nt(e,this._rawAsyncValidators))}hasValidator(e){return ne(this._rawValidators,e)}hasAsyncValidator(e){return ne(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let t=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(m(c({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new z(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),t&&e.emitEvent!==!1&&this._events.next(new z(!1,n))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(m(c({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new q(!1,n))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),t&&e.emitEvent!==!1&&this._events.next(new q(!0,n))}markAsPending(e={}){this.status=B;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new P(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(m(c({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=W,this.errors=null,this._forEachChild(r=>{r.disable(m(c({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new se(this.value,n)),this._events.next(new P(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(m(c({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=$,this._forEachChild(n=>{n.enable(m(c({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(m(c({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===$||this.status===B)&&this._runAsyncValidator(n,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new se(this.value,t)),this._events.next(new P(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(m(c({},e),{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?W:$}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=B,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1};let n=ht(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((n,r)=>n&&n._find(r),this)}getError(e,t){let n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new P(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,n)}_initObservables(){this.valueChanges=new N,this.statusChanges=new N}_calculateStatus(){return this._allControlsDisabled()?W:this.errors?ie:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(B)?B:this._anyControlsHaveStatus(ie)?ie:$}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),r&&this._events.next(new q(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new z(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){me(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=ni(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=ri(this._rawAsyncValidators)}},ae=class extends X{constructor(e,t,n){super(Ne(t),ke(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,n={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){Mt(this,!0,e),Object.keys(e).forEach(n=>{At(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(Object.keys(e).forEach(n=>{let r=this.controls[n];r&&r.patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,r)=>{n.reset(e?e[r]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,n)=>n._syncPendingControls()?!0:t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{let n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[t,n]of Object.entries(this.controls))if(this.contains(t)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(t,n,r)=>((n.enabled||this.disabled)&&(t[r]=n.value),t))}_reduceChildren(e,t){let n=e;return this._forEachChild((r,s)=>{n=t(n,r,s)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Ft=new S("CallSetDisabledState",{providedIn:"root",factory:()=>Oe}),Oe="always";function xe(i,e){return[...e.path,i]}function rt(i,e,t=Oe){Be(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||t==="always")&&e.valueAccessor.setDisabledState?.(i.disabled),si(i,e),li(i,e),ai(i,e),oi(i,e)}function ot(i,e,t=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),ue(i,e),i&&(e._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function le(i,e){i.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function oi(i,e){if(e.valueAccessor.setDisabledState){let t=n=>{e.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(t),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(t)})}}function Be(i,e){let t=Ct(i);e.validator!==null?i.setValidators(tt(t,e.validator)):typeof t=="function"&&i.setValidators([t]);let n=Vt(i);e.asyncValidator!==null?i.setAsyncValidators(tt(n,e.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let r=()=>i.updateValueAndValidity();le(e._rawValidators,r),le(e._rawAsyncValidators,r)}function ue(i,e){let t=!1;if(i!==null){if(e.validator!==null){let r=Ct(i);if(Array.isArray(r)&&r.length>0){let s=r.filter(h=>h!==e.validator);s.length!==r.length&&(t=!0,i.setValidators(s))}}if(e.asyncValidator!==null){let r=Vt(i);if(Array.isArray(r)&&r.length>0){let s=r.filter(h=>h!==e.asyncValidator);s.length!==r.length&&(t=!0,i.setAsyncValidators(s))}}}let n=()=>{};return le(e._rawValidators,n),le(e._rawAsyncValidators,n),t}function si(i,e){e.valueAccessor.registerOnChange(t=>{i._pendingValue=t,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&Et(i,e)})}function ai(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&Et(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function Et(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function li(i,e){let t=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};i.registerOnChange(t),e._registerOnDestroy(()=>{i._unregisterOnChange(t)})}function ui(i,e){i==null,Be(i,e)}function ci(i,e){return ue(i,e)}function di(i,e){if(!i.hasOwnProperty("model"))return!1;let t=i.model;return t.isFirstChange()?!0:!Object.is(e,t.currentValue)}function hi(i){return Object.getPrototypeOf(i.constructor)===Ht}function fi(i,e){i._syncPendingControls(),e.forEach(t=>{let n=t.control;n.updateOn==="submit"&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function mi(i,e){if(!e)return null;Array.isArray(e);let t,n,r;return e.forEach(s=>{s.constructor===de?t=s:hi(s)?n=s:r=s}),r||n||t||null}function pi(i,e){let t=i.indexOf(e);t>-1&&i.splice(t,1)}function st(i,e){let t=i.indexOf(e);t>-1&&i.splice(t,1)}function at(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var y=class extends X{constructor(e=null,t,n){super(Ne(t),ke(n,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),me(t)&&(t.nonNullable||t.initialValueIsDefault)&&(at(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){st(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){st(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){at(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var gi=i=>i instanceof y,vi=(()=>{class i extends g{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return xe(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=De(i)))(r||i)}})()}static{this.\u0275dir=d({type:i,features:[_]})}}return i})();var wt=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=d({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return i})();var It=new S("");var _i={provide:g,useExisting:V(()=>R)},R=(()=>{class i extends g{get submitted(){return F(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}constructor(t,n,r){super(),this.callSetDisabledState=r,this._submitted=L(()=>this._submittedReactive()),this._submittedReactive=H(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new N,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ue(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let n=this.form.get(t.path);return rt(n,t,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){ot(t.control||null,t,!1),pi(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,n){this.form.get(t.path).setValue(n)}onSubmit(t){return this._submittedReactive.set(!0),fi(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new Ie(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this._submittedReactive.set(!1),this.form._events.next(new Se(this.form))}_updateDomValue(){this.directives.forEach(t=>{let n=t.control,r=this.form.get(t.path);n!==r&&(ot(n||null,t),gi(r)&&(rt(r,t,this.callSetDisabledState),t.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let n=this.form.get(t.path);ui(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let n=this.form.get(t.path);n&&ci(n,t)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Be(this.form,this),this._oldForm&&ue(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(n){return new(n||i)(o(he,10),o(fe,10),o(Ft,8))}}static{this.\u0275dir=d({type:i,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&p("submit",function(h){return r.onSubmit(h)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[M([_i]),_,j]})}}return i})(),yi={provide:g,useExisting:V(()=>St)},St=(()=>{class i extends vi{constructor(t,n,r){super(),this.name=null,this._parent=t,this._setValidators(n),this._setAsyncValidators(r)}_checkParentType(){Nt(this._parent)}static{this.\u0275fac=function(n){return new(n||i)(o(g,13),o(he,10),o(fe,10))}}static{this.\u0275dir=d({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[M([yi]),_]})}}return i})(),Ci={provide:g,useExisting:V(()=>pe)},pe=(()=>{class i extends g{constructor(t,n,r){super(),this.name=null,this._parent=t,this._setValidators(n),this._setAsyncValidators(r)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return xe(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){Nt(this._parent)}static{this.\u0275fac=function(n){return new(n||i)(o(g,13),o(he,10),o(fe,10))}}static{this.\u0275dir=d({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[M([Ci]),_]})}}return i})();function Nt(i){return!(i instanceof St)&&!(i instanceof R)&&!(i instanceof pe)}var Vi={provide:Z,useExisting:V(()=>Pe)},Pe=(()=>{class i extends Z{set isDisabled(t){}static{this._ngModelWarningSentOnce=!1}constructor(t,n,r,s,h){super(),this._ngModelWarningConfig=h,this._added=!1,this.name=null,this.update=new N,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=mi(this,s)}ngOnChanges(t){this._added||this._setUpControl(),di(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return xe(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(n){return new(n||i)(o(g,13),o(he,10),o(fe,10),o(ce,10),o(It,8))}}static{this.\u0275dir=d({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[M([Vi]),_,j]})}}return i})();var bi=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=A({type:i})}static{this.\u0275inj=b({})}}return i})(),K=class extends X{constructor(e,t,n){super(Ne(t),ke(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,n={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,t={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,n={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),t&&(this.controls.splice(r,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){Mt(this,!1,e),e.forEach((n,r)=>{At(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(e.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((t,n)=>n._syncPendingControls()?!0:t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};var kt=i=>i instanceof K;var Ot=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:It,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Ft,useValue:t.callSetDisabledState??Oe}]}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=A({type:i})}static{this.\u0275inj=b({imports:[bi]})}}return i})();var ge=class i{constructor(e){this.service=e}isbnExists(){return e=>this.service.check(e.value).pipe(k(t=>t?{isbnexists:!0}:null))}static \u0275fac=function(t){return new(t||i)(He(x))};static \u0275prov=Ve({token:i,factory:i.\u0275fac,providedIn:"root"})};var Pt=function(i){if(!i.value||typeof i.value!="string")return null;let t=i.value.replace(/-/g,"").length;return t===10||t===13?null:{isbnformat:!0}},Rt=function(i){return!kt(i)||i.controls.some(e=>!!e.value)?null:{atleastonevalue:!0}};var Tt=(()=>{class i{constructor(t,n){this.renderer=t,this.elementRef=n,this.onInput=r=>{let s=r?new Date(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()):null,h=s?s.toISOString():null;this.onChange(h)},this.onChange=()=>{},this.onTouched=()=>{}}writeValue(t){let n=t?new Date(t):null,r=n?new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())):null;this.renderer.setProperty(this.elementRef.nativeElement,"valueAsDate",r)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.renderer.setProperty(this.elementRef.nativeElement,"disabled",t)}}return i.\u0275fac=function(t){return new(t||i)(o(U),o(G))},i.\u0275dir=d({type:i,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(t,n){t&1&&p("input",function(s){return n.onInput(s.target.valueAsDate)})("blur",function(){return n.onTouched()})},standalone:!0,features:[M([{provide:ce,useExisting:V(()=>i),multi:!0}])]}),i})();function Ai(i,e){if(i&1&&(a(0,"p",1),u(1),l()),i&2){let t=e.$implicit;v(),ze(" ",t,` +`)}}var ve=class i{constructor(e){this.form=e}controlName;messages={};get errors(){if(!this.controlName)return[];let e=this.form.control.get(this.controlName);return!e||!e.errors||!e.touched?[]:Object.keys(e.errors).map(t=>this.messages[t])}static \u0275fac=function(t){return new(t||i)(o(R))};static \u0275cmp=D({type:i,selectors:[["bm-form-errors"]],inputs:{controlName:"controlName",messages:"messages"},decls:1,vars:1,consts:[["class","error",4,"ngFor","ngForOf"],[1,"error"]],template:function(t,n){t&1&&O(0,Ai,2,1,"p",0),t&2&&f("ngForOf",n.errors)},dependencies:[ee]})};var Fi=()=>({required:"Title is required"}),Ei=()=>({required:"ISBN is required",isbnformat:"ISBN must have 10 or 13 chars",isbnexists:"ISBN already exists"}),wi=()=>({atleastonevalue:"At least one author required"});function Ii(i,e){if(i&1&&C(0,"input",20),i&2){let t=e.index;f("formControlName",t),Ae("aria-label","Author "+t)}}var T=class i{book;submitBook=new N;form=new ae({title:new y("",{nonNullable:!0,validators:Y.required}),subtitle:new y("",{nonNullable:!0}),isbn:new y("",{nonNullable:!0,validators:[Y.required,Pt],asyncValidators:be(ge).isbnExists()}),description:new y("",{nonNullable:!0}),published:new y("",{nonNullable:!0}),authors:this.buildAuthorsArray([""]),thumbnailUrl:new y("",{nonNullable:!0})});ngOnChanges(){this.book?(this.setFormValues(this.book),this.setEditMode(!0)):this.setEditMode(!1)}setFormValues(e){this.form.patchValue(e),this.form.setControl("authors",this.buildAuthorsArray(e.authors))}setEditMode(e){let t=this.form.controls.isbn;e?t.disable():t.enable()}buildAuthorsArray(e){return new K(e.map(t=>new y(t,{nonNullable:!0})),Rt)}get authors(){return this.form.controls.authors}addAuthorControl(){this.authors.push(new y("",{nonNullable:!0}))}submitForm(){let e=this.form.getRawValue(),t=e.authors.filter(r=>!!r),n=m(c({},e),{authors:t});this.submitBook.emit(n)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=D({type:i,selectors:[["bm-book-form"]],inputs:{book:"book"},outputs:{submitBook:"submitBook"},features:[j],decls:30,vars:9,consts:[[3,"ngSubmit","formGroup"],["for","title"],["id","title","formControlName","title"],["controlName","title",3,"messages"],["for","subtitle"],["id","subtitle","formControlName","subtitle"],["for","isbn"],["id","isbn","formControlName","isbn"],["controlName","isbn",3,"messages"],["type","button",1,"add",3,"click"],["formArrayName","authors"],[3,"formControlName",4,"ngFor","ngForOf"],["controlName","authors",3,"messages"],["for","description"],["id","description","formControlName","description"],["for","published"],["type","date","useValueAsLocalIso","","id","published","formControlName","published"],["for","thumbnailUrl"],["type","url","id","thumbnailUrl","formControlName","thumbnailUrl"],["type","submit",3,"disabled"],[3,"formControlName"]],template:function(t,n){t&1&&(a(0,"form",0),p("ngSubmit",function(){return n.submitForm()}),a(1,"label",1),u(2,"Title"),l(),C(3,"input",2)(4,"bm-form-errors",3),a(5,"label",4),u(6,"Subtitle"),l(),C(7,"input",5),a(8,"label",6),u(9,"ISBN"),l(),C(10,"input",7)(11,"bm-form-errors",8),a(12,"label"),u(13,"Authors"),l(),a(14,"button",9),p("click",function(){return n.addAuthorControl()}),u(15," + Author "),l(),a(16,"fieldset",10),O(17,Ii,1,2,"input",11),l(),C(18,"bm-form-errors",12),a(19,"label",13),u(20,"Description"),l(),C(21,"textarea",14),a(22,"label",15),u(23,"Published"),l(),C(24,"input",16),a(25,"label",17),u(26,"Thumbnail URL"),l(),C(27,"input",18),a(28,"button",19),u(29," Save "),l()()),t&2&&(f("formGroup",n.form),v(4),f("messages",Q(6,Fi)),v(7),f("messages",Q(7,Ei)),v(6),f("ngForOf",n.authors.controls),v(),f("messages",Q(8,wi)),v(10),f("disabled",n.form.invalid))},dependencies:[ee,wt,de,bt,Dt,R,Pe,pe,Tt,ve]})};var _e=class i{constructor(e,t){this.service=e;this.router=t}create(e){this.service.create(e).subscribe(t=>{this.router.navigate(["/books",t.isbn])})}static \u0275fac=function(t){return new(t||i)(o(x),o(te))};static \u0275cmp=D({type:i,selectors:[["bm-book-create"]],decls:3,vars:0,consts:[[3,"submitBook"]],template:function(t,n){t&1&&(a(0,"h1"),u(1,"Create Book"),l(),a(2,"bm-book-form",0),p("submitBook",function(s){return n.create(s)}),l())},dependencies:[T]})};function Ni(i,e){if(i&1){let t=We();a(0,"bm-book-form",1),p("submitBook",function(r){Le(t);let s=qe();return $e(s.update(r))}),l()}if(i&2){let t=e.ngIf;f("book",t)}}var ye=class i{constructor(e,t,n){this.service=e;this.route=t;this.router=n;this.book$=this.route.paramMap.pipe(k(r=>r.get("isbn")),Ue(r=>this.service.getSingle(r)))}book$;update(e){this.service.update(e).subscribe(t=>{this.router.navigate(["/books",t.isbn])})}static \u0275fac=function(t){return new(t||i)(o(x),o(et),o(te))};static \u0275cmp=D({type:i,selectors:[["bm-book-edit"]],decls:4,vars:3,consts:[[3,"book","submitBook",4,"ngIf"],[3,"submitBook","book"]],template:function(t,n){t&1&&(a(0,"h1"),u(1,"Edit Book"),l(),O(2,Ni,1,1,"bm-book-form",0),Ye(3,"async")),t&2&&(v(2),f("ngIf",Ze(3,1,n.book$)))},dependencies:[Ke,T,Je]})};var ki=[{path:"",redirectTo:"create",pathMatch:"full"},{path:"create",component:_e},{path:"edit/:isbn",component:ye}],Ce=class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=A({type:i});static \u0275inj=b({imports:[Ee.forChild(ki),Ee]})};var Ut=class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=A({type:i});static \u0275inj=b({imports:[Qe,Ce,Ot]})};export{Ut as AdminModule}; diff --git a/index.html b/index.html index cb211ee..a50e309 100644 --- a/index.html +++ b/index.html @@ -11,5 +11,5 @@
Loading ...
- + diff --git a/main-QTOJXUCV.js b/main-A5VZXKWG.js similarity index 92% rename from main-QTOJXUCV.js rename to main-A5VZXKWG.js index 3852add..643f0a7 100644 --- a/main-QTOJXUCV.js +++ b/main-A5VZXKWG.js @@ -1,2 +1,2 @@ -import{a as u}from"./chunk-DQUMYO3P.js";import{$ as W,A as d,Aa as oe,F as p,G as b,M as h,O as c,P as $,Q as o,R as n,S as A,V as v,W as g,X as N,Y as P,Z as r,_ as U,c as R,da as G,ea as q,fa as z,h as F,i as O,j,k as B,la as K,m as L,ma as k,na as Z,p as D,q as C,qa as J,ra as Q,s as V,sa as X,t as M,ta as Y,u as s,v as S,va as ee,wa as te,xa as l,ya as ie,z as f,za as T}from"./chunk-O2QHHITW.js";var me=e=>["/books",e];function se(e,i){if(e&1&&(o(0,"li")(1,"a",6),r(2),o(3,"p",7),r(4),n()()()),e&2){let t=i.$implicit;p(),c("routerLink",G(3,me,t.isbn)),p(),W(" ",t.title," "),p(2),U(t.subtitle)}}function le(e,i){e&1&&(o(0,"li"),r(1,"No results"),n())}function ue(e,i){if(e&1&&(o(0,"ul",3),h(1,se,5,5,"li",4)(2,le,2,0,"li",5),n()),e&2){let t=i.ngIf;p(),c("ngForOf",t),p(),c("ngIf",!t.length)}}var x=class e{constructor(i){this.service=i;this.results$=this.input$.pipe(F(t=>t.length>=3),O(500),j(),L(()=>this.isLoading=!0),B(t=>this.service.getAllSearch(t)),L(()=>this.isLoading=!1))}input$=new R;isLoading=!1;results$;static \u0275fac=function(t){return new(t||e)(b(oe))};static \u0275cmp=s({type:e,selectors:[["bm-search"]],decls:4,vars:5,consts:[["searchInput",""],["type","search","autocomplete","off","aria-label","Search",3,"input"],["class","search-results",4,"ngIf"],[1,"search-results"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"routerLink"],["role","doc-subtitle"]],template:function(t,a){if(t&1){let m=v();o(0,"input",1,0),g("input",function(){f(m);let pe=P(1);return d(a.input$.next(pe.value))}),n(),h(2,ue,3,2,"ul",2),q(3,"async")}t&2&&($("loading",a.isLoading),p(2),c("ngIf",z(3,3,a.results$)))},dependencies:[K,k,l,Z]})};var I=class e{static \u0275fac=function(t){return new(t||e)};static \u0275cmp=s({type:e,selectors:[["bm-home"]],decls:7,vars:0,consts:[["routerLink","/books",1,"button","red"]],template:function(t,a){t&1&&(o(0,"h1"),r(1,"Home"),n(),o(2,"a",0),r(3,` Show book list -`),n(),o(4,"h2"),r(5,"Search"),n(),A(6,"bm-search"))},dependencies:[l,x]})};var ae=()=>{let e=M(u),i=M(te);return e.isAuthenticated?!0:(window.alert("Not logged in!"),i.parseUrl("/home"))};var de=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:I},{path:"books",loadChildren:()=>import("./chunk-PJ4GGY2K.js").then(e=>e.BOOKS_ROUTES)},{path:"admin",loadChildren:()=>import("./chunk-TNXW7IZL.js").then(e=>e.AdminModule),canActivate:[ae]}],w=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=S({type:e});static \u0275inj=C({imports:[T.forRoot(de),T]})};function ve(e,i){if(e&1){let t=v();o(0,"button",6),g("click",function(){f(t);let m=N();return d(m.auth.login())}),r(1,"Login"),n()}}function ge(e,i){if(e&1){let t=v();o(0,"button",7),g("click",function(){f(t);let m=N();return d(m.auth.logout())}),r(1,"Logout"),n()}}var y=class e{constructor(i){this.auth=i}static \u0275fac=function(t){return new(t||e)(b(u))};static \u0275cmp=s({type:e,selectors:[["bm-root"]],decls:12,vars:2,consts:[["routerLink","/home","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/books","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/admin","routerLinkActive","active","ariaCurrentWhenActive","page"],[1,"actions"],["class","green",3,"click",4,"ngIf"],["class","red",3,"click",4,"ngIf"],[1,"green",3,"click"],[1,"red",3,"click"]],template:function(t,a){t&1&&(o(0,"nav")(1,"a",0),r(2,"Home"),n(),o(3,"a",1),r(4,"Books"),n(),o(5,"a",2),r(6,"Administration"),n(),o(7,"div",3),h(8,ve,2,0,"button",4)(9,ge,2,0,"button",5),n()(),o(10,"main"),A(11,"router-outlet"),n()),t&2&&(p(8),c("ngIf",!a.auth.isAuthenticated),p(),c("ngIf",a.auth.isAuthenticated))},dependencies:[k,ee,l,ie]})};var E=class e{constructor(i){this.authService=i}intercept(i,t){let a="1234567890";if(this.authService.isAuthenticated){let m=i.clone({setHeaders:{Authorization:`Bearer ${a}`}});return t.handle(m)}else return t.handle(i)}static \u0275fac=function(t){return new(t||e)(V(u))};static \u0275prov=D({token:e,factory:e.\u0275fac})};var H=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=S({type:e,bootstrap:[y]});static \u0275inj=C({providers:[{provide:J,useClass:E,multi:!0}],imports:[Y,w,Q]})};X().bootstrapModule(H,{ngZoneEventCoalescing:!0}).catch(e=>console.error(e)); +import{a as u}from"./chunk-AQK6WKX2.js";import{$ as W,A as d,Aa as oe,F as p,G as b,M as h,O as c,P as $,Q as o,R as n,S as A,V as v,W as g,X as N,Y as P,Z as r,_ as U,c as R,da as G,ea as q,fa as z,h as F,i as O,j,k as B,la as K,m as L,ma as k,na as Z,p as D,q as C,qa as J,ra as Q,s as V,sa as X,t as M,ta as Y,u as s,v as S,va as ee,wa as te,xa as l,ya as ie,z as f,za as T}from"./chunk-JALBVKIC.js";var me=e=>["/books",e];function se(e,i){if(e&1&&(o(0,"li")(1,"a",6),r(2),o(3,"p",7),r(4),n()()()),e&2){let t=i.$implicit;p(),c("routerLink",G(3,me,t.isbn)),p(),W(" ",t.title," "),p(2),U(t.subtitle)}}function le(e,i){e&1&&(o(0,"li"),r(1,"No results"),n())}function ue(e,i){if(e&1&&(o(0,"ul",3),h(1,se,5,5,"li",4)(2,le,2,0,"li",5),n()),e&2){let t=i.ngIf;p(),c("ngForOf",t),p(),c("ngIf",!t.length)}}var x=class e{constructor(i){this.service=i;this.results$=this.input$.pipe(F(t=>t.length>=3),O(500),j(),L(()=>this.isLoading=!0),B(t=>this.service.getAllSearch(t)),L(()=>this.isLoading=!1))}input$=new R;isLoading=!1;results$;static \u0275fac=function(t){return new(t||e)(b(oe))};static \u0275cmp=s({type:e,selectors:[["bm-search"]],decls:4,vars:5,consts:[["searchInput",""],["type","search","autocomplete","off","aria-label","Search",3,"input"],["class","search-results",4,"ngIf"],[1,"search-results"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"routerLink"],["role","doc-subtitle"]],template:function(t,a){if(t&1){let m=v();o(0,"input",1,0),g("input",function(){f(m);let pe=P(1);return d(a.input$.next(pe.value))}),n(),h(2,ue,3,2,"ul",2),q(3,"async")}t&2&&($("loading",a.isLoading),p(2),c("ngIf",z(3,3,a.results$)))},dependencies:[K,k,l,Z]})};var I=class e{static \u0275fac=function(t){return new(t||e)};static \u0275cmp=s({type:e,selectors:[["bm-home"]],decls:7,vars:0,consts:[["routerLink","/books",1,"button","red"]],template:function(t,a){t&1&&(o(0,"h1"),r(1,"Home"),n(),o(2,"a",0),r(3,` Show book list +`),n(),o(4,"h2"),r(5,"Search"),n(),A(6,"bm-search"))},dependencies:[l,x]})};var ae=()=>{let e=M(u),i=M(te);return e.isAuthenticated?!0:(window.alert("Not logged in!"),i.parseUrl("/home"))};var de=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:I},{path:"books",loadChildren:()=>import("./chunk-OW6VXUGH.js").then(e=>e.BOOKS_ROUTES)},{path:"admin",loadChildren:()=>import("./chunk-UDBV22H5.js").then(e=>e.AdminModule),canActivate:[ae]}],w=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=S({type:e});static \u0275inj=C({imports:[T.forRoot(de),T]})};function ve(e,i){if(e&1){let t=v();o(0,"button",6),g("click",function(){f(t);let m=N();return d(m.auth.login())}),r(1,"Login"),n()}}function ge(e,i){if(e&1){let t=v();o(0,"button",7),g("click",function(){f(t);let m=N();return d(m.auth.logout())}),r(1,"Logout"),n()}}var y=class e{constructor(i){this.auth=i}static \u0275fac=function(t){return new(t||e)(b(u))};static \u0275cmp=s({type:e,selectors:[["bm-root"]],decls:12,vars:2,consts:[["routerLink","/home","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/books","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/admin","routerLinkActive","active","ariaCurrentWhenActive","page"],[1,"actions"],["class","green",3,"click",4,"ngIf"],["class","red",3,"click",4,"ngIf"],[1,"green",3,"click"],[1,"red",3,"click"]],template:function(t,a){t&1&&(o(0,"nav")(1,"a",0),r(2,"Home"),n(),o(3,"a",1),r(4,"Books"),n(),o(5,"a",2),r(6,"Administration"),n(),o(7,"div",3),h(8,ve,2,0,"button",4)(9,ge,2,0,"button",5),n()(),o(10,"main"),A(11,"router-outlet"),n()),t&2&&(p(8),c("ngIf",!a.auth.isAuthenticated),p(),c("ngIf",a.auth.isAuthenticated))},dependencies:[k,ee,l,ie]})};var E=class e{constructor(i){this.authService=i}intercept(i,t){let a="1234567890";if(this.authService.isAuthenticated){let m=i.clone({setHeaders:{Authorization:`Bearer ${a}`}});return t.handle(m)}else return t.handle(i)}static \u0275fac=function(t){return new(t||e)(V(u))};static \u0275prov=D({token:e,factory:e.\u0275fac})};var H=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=S({type:e,bootstrap:[y]});static \u0275inj=C({providers:[{provide:J,useClass:E,multi:!0}],imports:[Y,w,Q]})};X().bootstrapModule(H,{ngZoneEventCoalescing:!0}).catch(e=>console.error(e)); diff --git a/polyfills-FFHMD2TL.js b/polyfills-FFHMD2TL.js new file mode 100644 index 0000000..b01b791 --- /dev/null +++ b/polyfills-FFHMD2TL.js @@ -0,0 +1,2 @@ +var ce=globalThis;function te(e){return(ce.__Zone_symbol_prefix||"__zone_symbol__")+e}function dt(){let e=ce.performance;function n(M){e&&e.mark&&e.mark(M)}function a(M,s){e&&e.measure&&e.measure(M,s)}n("Zone");class t{static{this.__symbol__=te}static assertZonePatched(){if(ce.Promise!==S.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let s=t.current;for(;s.parent;)s=s.parent;return s}static get current(){return b.zone}static get currentTask(){return D}static __load_patch(s,i,o=!1){if(S.hasOwnProperty(s)){let g=ce[te("forceDuplicateZoneCheck")]===!0;if(!o&&g)throw Error("Already loaded patch: "+s)}else if(!ce["__Zone_disable_"+s]){let g="Zone:"+s;n(g),S[s]=i(ce,t,w),a(g,g)}}get parent(){return this._parent}get name(){return this._name}constructor(s,i){this._parent=s,this._name=i?i.name||"unnamed":"",this._properties=i&&i.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,i)}get(s){let i=this.getZoneWith(s);if(i)return i._properties[s]}getZoneWith(s){let i=this;for(;i;){if(i._properties.hasOwnProperty(s))return i;i=i._parent}return null}fork(s){if(!s)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,s)}wrap(s,i){if(typeof s!="function")throw new Error("Expecting function got: "+s);let o=this._zoneDelegate.intercept(this,s,i),g=this;return function(){return g.runGuarded(o,this,arguments,i)}}run(s,i,o,g){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,s,i,o,g)}finally{b=b.parent}}runGuarded(s,i=null,o,g){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,s,i,o,g)}catch(V){if(this._zoneDelegate.handleError(this,V))throw V}}finally{b=b.parent}}runTask(s,i,o){if(s.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(s.zone||J).name+"; Execution: "+this.name+")");let g=s,{type:V,data:{isPeriodic:ee=!1,isRefreshable:Z=!1}={}}=s;if(s.state===q&&(V===z||V===y))return;let he=s.state!=A;he&&g._transitionTo(A,d);let _e=D;D=g,b={parent:b,zone:this};try{V==y&&s.data&&!ee&&!Z&&(s.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,g,i,o)}catch(Q){if(this._zoneDelegate.handleError(this,Q))throw Q}}finally{let Q=s.state;if(Q!==q&&Q!==X)if(V==z||ee||Z&&Q===k)he&&g._transitionTo(d,A,k);else{let Ee=g._zoneDelegates;this._updateTaskCount(g,-1),he&&g._transitionTo(q,A,q),Z&&(g._zoneDelegates=Ee)}b=b.parent,D=_e}}scheduleTask(s){if(s.zone&&s.zone!==this){let o=this;for(;o;){if(o===s.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${s.zone.name}`);o=o.parent}}s._transitionTo(k,q);let i=[];s._zoneDelegates=i,s._zone=this;try{s=this._zoneDelegate.scheduleTask(this,s)}catch(o){throw s._transitionTo(X,k,q),this._zoneDelegate.handleError(this,o),o}return s._zoneDelegates===i&&this._updateTaskCount(s,1),s.state==k&&s._transitionTo(d,k),s}scheduleMicroTask(s,i,o,g){return this.scheduleTask(new E(G,s,i,o,g,void 0))}scheduleMacroTask(s,i,o,g,V){return this.scheduleTask(new E(y,s,i,o,g,V))}scheduleEventTask(s,i,o,g,V){return this.scheduleTask(new E(z,s,i,o,g,V))}cancelTask(s){if(s.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(s.zone||J).name+"; Execution: "+this.name+")");if(!(s.state!==d&&s.state!==A)){s._transitionTo(x,d,A);try{this._zoneDelegate.cancelTask(this,s)}catch(i){throw s._transitionTo(X,x),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(s,-1),s._transitionTo(q,x),s.runCount=-1,s}}_updateTaskCount(s,i){let o=s._zoneDelegates;i==-1&&(s._zoneDelegates=null);for(let g=0;gM.hasTask(i,o),onScheduleTask:(M,s,i,o)=>M.scheduleTask(i,o),onInvokeTask:(M,s,i,o,g,V)=>M.invokeTask(i,o,g,V),onCancelTask:(M,s,i,o)=>M.cancelTask(i,o)};class f{get zone(){return this._zone}constructor(s,i,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=s,this._parentDelegate=i,this._forkZS=o&&(o&&o.onFork?o:i._forkZS),this._forkDlgt=o&&(o.onFork?i:i._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:i._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:i._interceptZS),this._interceptDlgt=o&&(o.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:i._invokeZS),this._invokeDlgt=o&&(o.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:i._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:i._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:i._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:i._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let g=o&&o.onHasTask,V=i&&i._hasTaskZS;(g||V)&&(this._hasTaskZS=g?o:c,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(s,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,s,i):new t(s,i)}intercept(s,i,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,s,i,o):i}invoke(s,i,o,g,V){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,s,i,o,g,V):i.apply(o,g)}handleError(s,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,s,i):!0}scheduleTask(s,i){let o=i;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,s,i),o||(o=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==G)U(i);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(s,i,o,g){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,s,i,o,g):i.callback.apply(o,g)}cancelTask(s,i){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,s,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");o=i.cancelFn(i)}return o}hasTask(s,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,s,i)}catch(o){this.handleError(s,o)}}_updateTaskCount(s,i){let o=this._taskCounts,g=o[s],V=o[s]=g+i;if(V<0)throw new Error("More tasks executed then were scheduled.");if(g==0||V==0){let ee={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:s};this.hasTask(this._zone,ee)}}}class E{constructor(s,i,o,g,V,ee){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=s,this.source=i,this.data=g,this.scheduleFn=V,this.cancelFn=ee,!o)throw new Error("callback is not defined");this.callback=o;let Z=this;s===z&&g&&g.useG?this.invoke=E.invokeTask:this.invoke=function(){return E.invokeTask.call(ce,Z,this,arguments)}}static invokeTask(s,i,o){s||(s=this),K++;try{return s.runCount++,s.zone.runTask(s,i,o)}finally{K==1&&$(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(q,k)}_transitionTo(s,i,o){if(this._state===i||this._state===o)this._state=s,s==q&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${s}', expecting state '${i}'${o?" or '"+o+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let T=te("setTimeout"),p=te("Promise"),C=te("then"),_=[],P=!1,I;function H(M){if(I||ce[p]&&(I=ce[p].resolve(0)),I){let s=I[C];s||(s=I.then),s.call(I,M)}else ce[T](M,0)}function U(M){K===0&&_.length===0&&H($),M&&_.push(M)}function $(){if(!P){for(P=!0;_.length;){let M=_;_=[];for(let s=0;sb,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:U,showUncaughtError:()=>!t[te("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:H},b={parent:null,zone:new t(null,null)},D=null,K=0;function W(){}return a("Zone","Zone"),t}function _t(){let e=globalThis,n=e[te("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(n||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=dt(),e.Zone}var be=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,Et=Object.create,Tt=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=te(He),Ie=te(xe),ae="true",le="false",Pe=te("");function Ve(e,n){return Zone.current.wrap(e,n)}function Ge(e,n,a,t,c){return Zone.current.scheduleMacroTask(e,n,a,t,c)}var j=te,De=typeof window<"u",pe=De?window:void 0,Y=De&&pe||globalThis,gt="removeAttribute";function Fe(e,n){for(let a=e.length-1;a>=0;a--)typeof e[a]=="function"&&(e[a]=Ve(e[a],n+"_"+a));return e}function yt(e,n){let a=e.constructor.name;for(let t=0;t{let p=function(){return T.apply(this,Fe(arguments,a+"."+c))};return fe(p,T),p})(f)}}}function tt(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var nt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Se=!("nw"in Y)&&typeof Y.process<"u"&&Y.process.toString()==="[object process]",Be=!Se&&!nt&&!!(De&&pe.HTMLElement),rt=typeof Y.process<"u"&&Y.process.toString()==="[object process]"&&!nt&&!!(De&&pe.HTMLElement),Ce={},mt=j("enable_beforeunload"),Ye=function(e){if(e=e||Y.event,!e)return;let n=Ce[e.type];n||(n=Ce[e.type]=j("ON_PROPERTY"+e.type));let a=this||e.target||Y,t=a[n],c;if(Be&&a===pe&&e.type==="error"){let f=e;c=t&&t.call(this,f.message,f.filename,f.lineno,f.colno,f.error),c===!0&&e.preventDefault()}else c=t&&t.apply(this,arguments),e.type==="beforeunload"&&Y[mt]&&typeof c=="string"?e.returnValue=c:c!=null&&!c&&e.preventDefault();return c};function $e(e,n,a){let t=be(e,n);if(!t&&a&&be(a,n)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let c=j("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete t.writable,delete t.value;let f=t.get,E=t.set,T=n.slice(2),p=Ce[T];p||(p=Ce[T]=j("ON_PROPERTY"+T)),t.set=function(C){let _=this;if(!_&&e===Y&&(_=Y),!_)return;typeof _[p]=="function"&&_.removeEventListener(T,Ye),E&&E.call(_,null),_[p]=C,typeof C=="function"&&_.addEventListener(T,Ye,!1)},t.get=function(){let C=this;if(!C&&e===Y&&(C=Y),!C)return null;let _=C[p];if(_)return _;if(f){let P=f.call(this);if(P)return t.set.call(this,P),typeof C[gt]=="function"&&C.removeAttribute(n),P}return null},Ae(e,n,t),e[c]=!0}function ot(e,n,a){if(n)for(let t=0;tfunction(E,T){let p=a(E,T);return p.cbIdx>=0&&typeof T[p.cbIdx]=="function"?Ge(p.name,T[p.cbIdx],p,c):f.apply(E,T)})}function fe(e,n){e[j("OriginalDelegate")]=n}var Je=!1,Me=!1;function kt(){try{let e=pe.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function vt(){if(Je)return Me;Je=!0;try{let e=pe.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}function Ke(e){return typeof e=="function"}function Qe(e){return typeof e=="number"}var me=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){me=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{me=!1}var bt={useG:!0},ne={},st={},it=new RegExp("^"+Pe+"(\\w+)(true|false)$"),ct=j("propagationStopped");function at(e,n){let a=(n?n(e):e)+le,t=(n?n(e):e)+ae,c=Pe+a,f=Pe+t;ne[e]={},ne[e][le]=c,ne[e][ae]=f}function Pt(e,n,a,t){let c=t&&t.add||He,f=t&&t.rm||xe,E=t&&t.listeners||"eventListeners",T=t&&t.rmAll||"removeAllListeners",p=j(c),C="."+c+":",_="prependListener",P="."+_+":",I=function(k,d,A){if(k.isRemoved)return;let x=k.callback;typeof x=="object"&&x.handleEvent&&(k.callback=y=>x.handleEvent(y),k.originalDelegate=x);let X;try{k.invoke(k,d,[A])}catch(y){X=y}let G=k.options;if(G&&typeof G=="object"&&G.once){let y=k.originalDelegate?k.originalDelegate:k.callback;d[f].call(d,A.type,y,G)}return X};function H(k,d,A){if(d=d||e.event,!d)return;let x=k||d.target||e,X=x[ne[d.type][A?ae:le]];if(X){let G=[];if(X.length===1){let y=I(X[0],x,d);y&&G.push(y)}else{let y=X.slice();for(let z=0;z{throw z})}}}let U=function(k){return H(this,k,!1)},$=function(k){return H(this,k,!0)};function J(k,d){if(!k)return!1;let A=!0;d&&d.useG!==void 0&&(A=d.useG);let x=d&&d.vh,X=!0;d&&d.chkDup!==void 0&&(X=d.chkDup);let G=!1;d&&d.rt!==void 0&&(G=d.rt);let y=k;for(;y&&!y.hasOwnProperty(c);)y=je(y);if(!y&&k[c]&&(y=k),!y||y[p])return!1;let z=d&&d.eventNameToString,S={},w=y[p]=y[c],b=y[j(f)]=y[f],D=y[j(E)]=y[E],K=y[j(T)]=y[T],W;d&&d.prepend&&(W=y[j(d.prepend)]=y[d.prepend]);function M(r,u){return!me&&typeof r=="object"&&r?!!r.capture:!me||!u?r:typeof r=="boolean"?{capture:r,passive:!0}:r?typeof r=="object"&&r.passive!==!1?{...r,passive:!0}:r:{passive:!0}}let s=function(r){if(!S.isExisting)return w.call(S.target,S.eventName,S.capture?$:U,S.options)},i=function(r){if(!r.isRemoved){let u=ne[r.eventName],v;u&&(v=u[r.capture?ae:le]);let R=v&&r.target[v];if(R){for(let m=0;mre.zone.cancelTask(re);r.call(Te,"abort",ie,{once:!0}),re.removeAbortListener=()=>Te.removeEventListener("abort",ie)}if(S.target=null,ke&&(ke.taskData=null),Ue&&(S.options.once=!0),!me&&typeof re.options=="boolean"||(re.options=se),re.target=N,re.capture=Oe,re.eventName=L,B&&(re.originalDelegate=F),O?ge.unshift(re):ge.push(re),m)return N}};return y[c]=l(w,C,ee,Z,G),W&&(y[_]=l(W,P,g,Z,G,!0)),y[f]=function(){let r=this||e,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let v=arguments[2],R=v?typeof v=="boolean"?!0:v.capture:!1,m=arguments[1];if(!m)return b.apply(this,arguments);if(x&&!x(b,m,r,arguments))return;let O=ne[u],N;O&&(N=O[R?ae:le]);let L=N&&r[N];if(L)for(let F=0;Ffunction(c,f){c[ct]=!0,t&&t.apply(c,f)})}function Rt(e,n){n.patchMethod(e,"queueMicrotask",a=>function(t,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var Re=j("zoneTask");function ye(e,n,a,t){let c=null,f=null;n+=t,a+=t;let E={};function T(C){let _=C.data;_.args[0]=function(){return C.invoke.apply(this,arguments)};let P=c.apply(e,_.args);return Qe(P)?_.handleId=P:(_.handle=P,_.isRefreshable=Ke(P.refresh)),C}function p(C){let{handle:_,handleId:P}=C.data;return f.call(e,_??P)}c=ue(e,n,C=>function(_,P){if(Ke(P[0])){let I={isRefreshable:!1,isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?P[1]||0:void 0,args:P},H=P[0];P[0]=function(){try{return H.apply(this,arguments)}finally{let{handle:A,handleId:x,isPeriodic:X,isRefreshable:G}=I;!X&&!G&&(x?delete E[x]:A&&(A[Re]=null))}};let U=Ge(n,P[0],I,T,p);if(!U)return U;let{handleId:$,handle:J,isRefreshable:q,isPeriodic:k}=U.data;if($)E[$]=U;else if(J&&(J[Re]=U,q&&!k)){let d=J.refresh;J.refresh=function(){let{zone:A,state:x}=U;return x==="notScheduled"?(U._state="scheduled",A._updateTaskCount(U,1)):x==="running"&&(U._state="scheduling"),d.call(this)}}return J??$??U}else return C.apply(e,P)}),f=ue(e,a,C=>function(_,P){let I=P[0],H;Qe(I)?(H=E[I],delete E[I]):(H=I?.[Re],H?I[Re]=null:H=I),H?.type?H.cancelFn&&H.zone.cancelTask(H):C.apply(e,P)})}function Ct(e,n){let{isBrowser:a,isMix:t}=n.getGlobalObjects();if(!a&&!t||!e.customElements||!("customElements"in e))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",c)}function Dt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:t,TRUE_STR:c,FALSE_STR:f,ZONE_SYMBOL_PREFIX:E}=n.getGlobalObjects();for(let p=0;pf.target===e);if(!t||t.length===0)return n;let c=t[0].ignoreProperties;return n.filter(f=>c.indexOf(f)===-1)}function et(e,n,a,t){if(!e)return;let c=ut(e,n,a);ot(e,c,t)}function Ze(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Ot(e,n){if(Se&&!rt||Zone[e.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,t=[];if(Be){let c=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=kt()?[{target:c,ignoreProperties:["error"]}]:[];et(c,Ze(c),a&&a.concat(f),je(c))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{let a=n[e.__symbol__("legacyPatch")];a&&a()}),e.__load_patch("timers",n=>{let a="set",t="clear";ye(n,a,t,"Timeout"),ye(n,a,t,"Interval"),ye(n,a,t,"Immediate")}),e.__load_patch("requestAnimationFrame",n=>{ye(n,"request","cancel","AnimationFrame"),ye(n,"mozRequest","mozCancel","AnimationFrame"),ye(n,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(n,a)=>{let t=["alert","prompt","confirm"];for(let c=0;cfunction(C,_){return a.current.run(E,n,_,p)})}}),e.__load_patch("EventTarget",(n,a,t)=>{St(n,t),Dt(n,t);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&t.patchEventTarget(n,t,[c.prototype])}),e.__load_patch("MutationObserver",(n,a,t)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(n,a,t)=>{ve("IntersectionObserver")}),e.__load_patch("FileReader",(n,a,t)=>{ve("FileReader")}),e.__load_patch("on_property",(n,a,t)=>{Ot(t,n)}),e.__load_patch("customElements",(n,a,t)=>{Ct(n,t)}),e.__load_patch("XHR",(n,a)=>{C(n);let t=j("xhrTask"),c=j("xhrSync"),f=j("xhrListener"),E=j("xhrScheduled"),T=j("xhrURL"),p=j("xhrErrorBeforeScheduled");function C(_){let P=_.XMLHttpRequest;if(!P)return;let I=P.prototype;function H(w){return w[t]}let U=I[Le],$=I[Ie];if(!U){let w=_.XMLHttpRequestEventTarget;if(w){let b=w.prototype;U=b[Le],$=b[Ie]}}let J="readystatechange",q="scheduled";function k(w){let b=w.data,D=b.target;D[E]=!1,D[p]=!1;let K=D[f];U||(U=D[Le],$=D[Ie]),K&&$.call(D,J,K);let W=D[f]=()=>{if(D.readyState===D.DONE)if(!b.aborted&&D[E]&&w.state===q){let s=D[a.__symbol__("loadfalse")];if(D.status!==0&&s&&s.length>0){let i=w.invoke;w.invoke=function(){let o=D[a.__symbol__("loadfalse")];for(let g=0;gfunction(w,b){return w[c]=b[2]==!1,w[T]=b[1],x.apply(w,b)}),X="XMLHttpRequest.send",G=j("fetchTaskAborting"),y=j("fetchTaskScheduling"),z=ue(I,"send",()=>function(w,b){if(a.current[y]===!0||w[c])return z.apply(w,b);{let D={target:w,url:w[T],isPeriodic:!1,args:b,aborted:!1},K=Ge(X,d,D,k,A);w&&w[p]===!0&&!D.aborted&&K.state===q&&K.invoke()}}),S=ue(I,"abort",()=>function(w,b){let D=H(w);if(D&&typeof D.type=="string"){if(D.cancelFn==null||D.data&&D.data.aborted)return;D.zone.cancelTask(D)}else if(a.current[G]===!0)return S.apply(w,b)})}}),e.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&yt(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(n,a)=>{function t(c){return function(f){lt(n,c).forEach(T=>{let p=n.PromiseRejectionEvent;if(p){let C=new p(c,{promise:f.promise,reason:f.rejection});T.invoke(C)}})}}n.PromiseRejectionEvent&&(a[j("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),a[j("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(n,a,t)=>{Rt(n,t)})}function Lt(e){e.__load_patch("ZoneAwarePromise",(n,a,t)=>{let c=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function E(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let T=t.symbol,p=[],C=n[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,_=T("Promise"),P=T("then"),I="__creationTrace__";t.onUnhandledError=h=>{if(t.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},t.microtaskDrainDone=()=>{for(;p.length;){let h=p.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){U(l)}}};let H=T("unhandledPromiseRejectionHandler");function U(h){t.onUnhandledError(h);try{let l=a[H];typeof l=="function"&&l.call(this,h)}catch{}}function $(h){return h&&h.then}function J(h){return h}function q(h){return Z.reject(h)}let k=T("state"),d=T("value"),A=T("finally"),x=T("parentPromiseValue"),X=T("parentPromiseState"),G="Promise.then",y=null,z=!0,S=!1,w=0;function b(h,l){return r=>{try{M(h,l,r)}catch(u){M(h,!1,u)}}}let D=function(){let h=!1;return function(r){return function(){h||(h=!0,r.apply(null,arguments))}}},K="Promise resolved with itself",W=T("currentTaskTrace");function M(h,l,r){let u=D();if(h===r)throw new TypeError(K);if(h[k]===y){let v=null;try{(typeof r=="object"||typeof r=="function")&&(v=r&&r.then)}catch(R){return u(()=>{M(h,!1,R)})(),h}if(l!==S&&r instanceof Z&&r.hasOwnProperty(k)&&r.hasOwnProperty(d)&&r[k]!==y)i(r),M(h,r[k],r[d]);else if(l!==S&&typeof v=="function")try{v.call(r,u(b(h,l)),u(b(h,!1)))}catch(R){u(()=>{M(h,!1,R)})()}else{h[k]=l;let R=h[d];if(h[d]=r,h[A]===A&&l===z&&(h[k]=h[X],h[d]=h[x]),l===S&&r instanceof Error){let m=a.currentTask&&a.currentTask.data&&a.currentTask.data[I];m&&f(r,W,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{let O=h[d],N=!!r&&A===r[A];N&&(r[x]=O,r[X]=R);let L=l.run(m,void 0,N&&m!==q&&m!==J?[]:[O]);M(r,!0,L)}catch(O){M(r,!1,O)}},r)}let g="function ZoneAwarePromise() { [native code] }",V=function(){},ee=n.AggregateError;class Z{static toString(){return g}static resolve(l){return l instanceof Z?l:M(new this(null),z,l)}static reject(l){return M(new this(null),S,l)}static withResolvers(){let l={};return l.promise=new Z((r,u)=>{l.resolve=r,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new ee([],"All promises were rejected"));let r=[],u=0;try{for(let m of l)u++,r.push(Z.resolve(m))}catch{return Promise.reject(new ee([],"All promises were rejected"))}if(u===0)return Promise.reject(new ee([],"All promises were rejected"));let v=!1,R=[];return new Z((m,O)=>{for(let N=0;N{v||(v=!0,m(L))},L=>{R.push(L),u--,u===0&&(v=!0,O(new ee(R,"All promises were rejected")))})})}static race(l){let r,u,v=new this((O,N)=>{r=O,u=N});function R(O){r(O)}function m(O){u(O)}for(let O of l)$(O)||(O=this.resolve(O)),O.then(R,m);return v}static all(l){return Z.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof Z?this:Z).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,r){let u,v,R=new this((L,F)=>{u=L,v=F}),m=2,O=0,N=[];for(let L of l){$(L)||(L=this.resolve(L));let F=O;try{L.then(B=>{N[F]=r?r.thenCallback(B):B,m--,m===0&&u(N)},B=>{r?(N[F]=r.errorCallback(B),m--,m===0&&u(N)):v(B)})}catch(B){v(B)}m++,O++}return m-=2,m===0&&u(N),R}constructor(l){let r=this;if(!(r instanceof Z))throw new Error("Must be an instanceof Promise.");r[k]=y,r[d]=[];try{let u=D();l&&l(u(b(r,z)),u(b(r,S)))}catch(u){M(r,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return Z}then(l,r){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||Z);let v=new u(V),R=a.current;return this[k]==y?this[d].push(R,v,l,r):o(this,R,v,l,r),v}catch(l){return this.then(null,l)}finally(l){let r=this.constructor?.[Symbol.species];(!r||typeof r!="function")&&(r=Z);let u=new r(V);u[A]=A;let v=a.current;return this[k]==y?this[d].push(v,u,l,l):o(this,v,u,l,l),u}}Z.resolve=Z.resolve,Z.reject=Z.reject,Z.race=Z.race,Z.all=Z.all;let he=n[_]=n.Promise;n.Promise=Z;let _e=T("thenPatched");function Q(h){let l=h.prototype,r=c(l,"then");if(r&&(r.writable===!1||!r.configurable))return;let u=l.then;l[P]=u,h.prototype.then=function(v,R){return new Z((O,N)=>{u.call(this,O,N)}).then(v,R)},h[_e]=!0}t.patchThen=Q;function Ee(h){return function(l,r){let u=h.apply(l,r);if(u instanceof Z)return u;let v=u.constructor;return v[_e]||Q(v),u}}return he&&(Q(he),ue(n,"fetch",h=>Ee(h))),Promise[a.__symbol__("uncaughtPromiseErrors")]=p,Z})}function It(e){e.__load_patch("toString",n=>{let a=Function.prototype.toString,t=j("OriginalDelegate"),c=j("Promise"),f=j("Error"),E=function(){if(typeof this=="function"){let _=this[t];if(_)return typeof _=="function"?a.call(_):Object.prototype.toString.call(_);if(this===Promise){let P=n[c];if(P)return a.call(P)}if(this===Error){let P=n[f];if(P)return a.call(P)}}return a.call(this)};E[t]=a,Function.prototype.toString=E;let T=Object.prototype.toString,p="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?p:T.call(this)}})}function Mt(e,n,a,t,c){let f=Zone.__symbol__(t);if(n[f])return;let E=n[f]=n[t];n[t]=function(T,p,C){return p&&p.prototype&&c.forEach(function(_){let P=`${a}.${t}::`+_,I=p.prototype;try{if(I.hasOwnProperty(_)){let H=e.ObjectGetOwnPropertyDescriptor(I,_);H&&H.value?(H.value=e.wrapWithCurrentZone(H.value,P),e._redefineProperty(p.prototype,_,H)):I[_]&&(I[_]=e.wrapWithCurrentZone(I[_],P))}else I[_]&&(I[_]=e.wrapWithCurrentZone(I[_],P))}catch{}}),E.call(n,T,p,C)},e.attachOriginToPatched(n[t],E)}function Zt(e){e.__load_patch("util",(n,a,t)=>{let c=Ze(n);t.patchOnProperties=ot,t.patchMethod=ue,t.bindArguments=Fe,t.patchMacroTask=pt;let f=a.__symbol__("BLACK_LISTED_EVENTS"),E=a.__symbol__("UNPATCHED_EVENTS");n[E]&&(n[f]=n[E]),n[f]&&(a[f]=a[E]=n[f]),t.patchEventPrototype=wt,t.patchEventTarget=Pt,t.isIEOrEdge=vt,t.ObjectDefineProperty=Ae,t.ObjectGetOwnPropertyDescriptor=be,t.ObjectCreate=Et,t.ArraySlice=Tt,t.patchClass=ve,t.wrapWithCurrentZone=Ve,t.filterProperties=ut,t.attachOriginToPatched=fe,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Mt,t.getGlobalObjects=()=>({globalSources:st,zoneSymbolEventNames:ne,eventNames:c,isBrowser:Be,isMix:rt,isNode:Se,TRUE_STR:ae,FALSE_STR:le,ZONE_SYMBOL_PREFIX:Pe,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function At(e){Lt(e),It(e),Zt(e)}var ft=_t();At(ft);Nt(ft); diff --git a/polyfills-SCHOHYNV.js b/polyfills-SCHOHYNV.js deleted file mode 100644 index de84613..0000000 --- a/polyfills-SCHOHYNV.js +++ /dev/null @@ -1,2 +0,0 @@ -var ae=globalThis;function ee(e){return(ae.__Zone_symbol_prefix||"__zone_symbol__")+e}function dt(){let e=ae.performance;function n(j){e&&e.mark&&e.mark(j)}function a(j,i){e&&e.measure&&e.measure(j,i)}n("Zone");let Y=class Y{static assertZonePatched(){if(ae.Promise!==S.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let i=Y.current;for(;i.parent;)i=i.parent;return i}static get current(){return b.zone}static get currentTask(){return D}static __load_patch(i,s,o=!1){if(S.hasOwnProperty(i)){let p=ae[ee("forceDuplicateZoneCheck")]===!0;if(!o&&p)throw Error("Already loaded patch: "+i)}else if(!ae["__Zone_disable_"+i]){let p="Zone:"+i;n(p),S[i]=s(ae,Y,w),a(p,p)}}get parent(){return this._parent}get name(){return this._name}constructor(i,s){this._parent=i,this._name=s?s.name||"unnamed":"",this._properties=s&&s.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,s)}get(i){let s=this.getZoneWith(i);if(s)return s._properties[i]}getZoneWith(i){let s=this;for(;s;){if(s._properties.hasOwnProperty(i))return s;s=s._parent}return null}fork(i){if(!i)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,i)}wrap(i,s){if(typeof i!="function")throw new Error("Expecting function got: "+i);let o=this._zoneDelegate.intercept(this,i,s),p=this;return function(){return p.runGuarded(o,this,arguments,s)}}run(i,s,o,p){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,i,s,o,p)}finally{b=b.parent}}runGuarded(i,s=null,o,p){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,i,s,o,p)}catch(H){if(this._zoneDelegate.handleError(this,H))throw H}}finally{b=b.parent}}runTask(i,s,o){if(i.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(i.zone||K).name+"; Execution: "+this.name+")");let p=i,{type:H,data:{isPeriodic:M=!1,isRefreshable:se=!1}={}}=i;if(i.state===q&&(H===z||H===g))return;let le=i.state!=Z;le&&p._transitionTo(Z,d);let ue=D;D=p,b={parent:b,zone:this};try{H==g&&i.data&&!M&&!se&&(i.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,p,s,o)}catch(ne){if(this._zoneDelegate.handleError(this,ne))throw ne}}finally{let ne=i.state;if(ne!==q&&ne!==X)if(H==z||M||se&&ne===k)le&&p._transitionTo(d,Z,k);else{let h=p._zoneDelegates;this._updateTaskCount(p,-1),le&&p._transitionTo(q,Z,q),se&&(p._zoneDelegates=h)}b=b.parent,D=ue}}scheduleTask(i){if(i.zone&&i.zone!==this){let o=this;for(;o;){if(o===i.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${i.zone.name}`);o=o.parent}}i._transitionTo(k,q);let s=[];i._zoneDelegates=s,i._zone=this;try{i=this._zoneDelegate.scheduleTask(this,i)}catch(o){throw i._transitionTo(X,k,q),this._zoneDelegate.handleError(this,o),o}return i._zoneDelegates===s&&this._updateTaskCount(i,1),i.state==k&&i._transitionTo(d,k),i}scheduleMicroTask(i,s,o,p){return this.scheduleTask(new E(G,i,s,o,p,void 0))}scheduleMacroTask(i,s,o,p,H){return this.scheduleTask(new E(g,i,s,o,p,H))}scheduleEventTask(i,s,o,p,H){return this.scheduleTask(new E(z,i,s,o,p,H))}cancelTask(i){if(i.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(i.zone||K).name+"; Execution: "+this.name+")");if(!(i.state!==d&&i.state!==Z)){i._transitionTo(V,d,Z);try{this._zoneDelegate.cancelTask(this,i)}catch(s){throw i._transitionTo(X,V),this._zoneDelegate.handleError(this,s),s}return this._updateTaskCount(i,-1),i._transitionTo(q,V),i.runCount=-1,i}}_updateTaskCount(i,s){let o=i._zoneDelegates;s==-1&&(i._zoneDelegates=null);for(let p=0;pj.hasTask(s,o),onScheduleTask:(j,i,s,o)=>j.scheduleTask(s,o),onInvokeTask:(j,i,s,o,p,H)=>j.invokeTask(s,o,p,H),onCancelTask:(j,i,s,o)=>j.cancelTask(s,o)};class f{get zone(){return this._zone}constructor(i,s,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=i,this._parentDelegate=s,this._forkZS=o&&(o&&o.onFork?o:s._forkZS),this._forkDlgt=o&&(o.onFork?s:s._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:s._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:s._interceptZS),this._interceptDlgt=o&&(o.onIntercept?s:s._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:s._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:s._invokeZS),this._invokeDlgt=o&&(o.onInvoke?s:s._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:s._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:s._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?s:s._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:s._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:s._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?s:s._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:s._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:s._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?s:s._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:s._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:s._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?s:s._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:s._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let p=o&&o.onHasTask,H=s&&s._hasTaskZS;(p||H)&&(this._hasTaskZS=p?o:c,this._hasTaskDlgt=s,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=s,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=s,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=s,this._cancelTaskCurrZone=this._zone))}fork(i,s){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,i,s):new t(i,s)}intercept(i,s,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,i,s,o):s}invoke(i,s,o,p,H){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,i,s,o,p,H):s.apply(o,p)}handleError(i,s){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,i,s):!0}scheduleTask(i,s){let o=s;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,i,s),o||(o=s);else if(s.scheduleFn)s.scheduleFn(s);else if(s.type==G)U(s);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(i,s,o,p){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,i,s,o,p):s.callback.apply(o,p)}cancelTask(i,s){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,i,s);else{if(!s.cancelFn)throw Error("Task is not cancelable");o=s.cancelFn(s)}return o}hasTask(i,s){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,i,s)}catch(o){this.handleError(i,o)}}_updateTaskCount(i,s){let o=this._taskCounts,p=o[i],H=o[i]=p+s;if(H<0)throw new Error("More tasks executed then were scheduled.");if(p==0||H==0){let M={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:i};this.hasTask(this._zone,M)}}}class E{constructor(i,s,o,p,H,M){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=i,this.source=s,this.data=p,this.scheduleFn=H,this.cancelFn=M,!o)throw new Error("callback is not defined");this.callback=o;let se=this;i===z&&p&&p.useG?this.invoke=E.invokeTask:this.invoke=function(){return E.invokeTask.call(ae,se,this,arguments)}}static invokeTask(i,s,o){i||(i=this),Q++;try{return i.runCount++,i.zone.runTask(i,s,o)}finally{Q==1&&J(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(q,k)}_transitionTo(i,s,o){if(this._state===s||this._state===o)this._state=i,i==q&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${i}', expecting state '${s}'${o?" or '"+o+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let T=ee("setTimeout"),m=ee("Promise"),C=ee("then"),_=[],P=!1,I;function x(j){if(I||ae[m]&&(I=ae[m].resolve(0)),I){let i=I[C];i||(i=I.then),i.call(I,j)}else ae[T](j,0)}function U(j){Q===0&&_.length===0&&x(J),j&&_.push(j)}function J(){if(!P){for(P=!0;_.length;){let j=_;_=[];for(let i=0;ib,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:U,showUncaughtError:()=>!t[ee("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:x},b={parent:null,zone:new t(null,null)},D=null,Q=0;function W(){}return a("Zone","Zone"),t}function _t(){let e=globalThis,n=e[ee("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(n||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=dt(),e.Zone}var be=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,Et=Object.create,Tt=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=ee(He),Ie=ee(xe),fe="true",he="false",Pe=ee("");function Ve(e,n){return Zone.current.wrap(e,n)}function Ge(e,n,a,t,c){return Zone.current.scheduleMacroTask(e,n,a,t,c)}var A=ee,De=typeof window<"u",pe=De?window:void 0,$=De&&pe||globalThis,gt="removeAttribute";function Fe(e,n){for(let a=e.length-1;a>=0;a--)typeof e[a]=="function"&&(e[a]=Ve(e[a],n+"_"+a));return e}function yt(e,n){let a=e.constructor.name;for(let t=0;t{let m=function(){return T.apply(this,Fe(arguments,a+"."+c))};return _e(m,T),m})(f)}}}function tt(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var nt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Se=!("nw"in $)&&typeof $.process<"u"&&$.process.toString()==="[object process]",Be=!Se&&!nt&&!!(De&&pe.HTMLElement),rt=typeof $.process<"u"&&$.process.toString()==="[object process]"&&!nt&&!!(De&&pe.HTMLElement),Ce={},mt=A("enable_beforeunload"),Ye=function(e){if(e=e||$.event,!e)return;let n=Ce[e.type];n||(n=Ce[e.type]=A("ON_PROPERTY"+e.type));let a=this||e.target||$,t=a[n],c;if(Be&&a===pe&&e.type==="error"){let f=e;c=t&&t.call(this,f.message,f.filename,f.lineno,f.colno,f.error),c===!0&&e.preventDefault()}else c=t&&t.apply(this,arguments),e.type==="beforeunload"&&$[mt]&&typeof c=="string"?e.returnValue=c:c!=null&&!c&&e.preventDefault();return c};function $e(e,n,a){let t=be(e,n);if(!t&&a&&be(a,n)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let c=A("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete t.writable,delete t.value;let f=t.get,E=t.set,T=n.slice(2),m=Ce[T];m||(m=Ce[T]=A("ON_PROPERTY"+T)),t.set=function(C){let _=this;if(!_&&e===$&&(_=$),!_)return;typeof _[m]=="function"&&_.removeEventListener(T,Ye),E&&E.call(_,null),_[m]=C,typeof C=="function"&&_.addEventListener(T,Ye,!1)},t.get=function(){let C=this;if(!C&&e===$&&(C=$),!C)return null;let _=C[m];if(_)return _;if(f){let P=f.call(this);if(P)return t.set.call(this,P),typeof C[gt]=="function"&&C.removeAttribute(n),P}return null},Ae(e,n,t),e[c]=!0}function ot(e,n,a){if(n)for(let t=0;tfunction(E,T){let m=a(E,T);return m.cbIdx>=0&&typeof T[m.cbIdx]=="function"?Ge(m.name,T[m.cbIdx],m,c):f.apply(E,T)})}function _e(e,n){e[A("OriginalDelegate")]=n}var Je=!1,Me=!1;function kt(){try{let e=pe.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function vt(){if(Je)return Me;Je=!0;try{let e=pe.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}function Ke(e){return typeof e=="function"}function Qe(e){return typeof e=="number"}var me=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){me=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{me=!1}var bt={useG:!0},te={},st={},it=new RegExp("^"+Pe+"(\\w+)(true|false)$"),ct=A("propagationStopped");function at(e,n){let a=(n?n(e):e)+he,t=(n?n(e):e)+fe,c=Pe+a,f=Pe+t;te[e]={},te[e][he]=c,te[e][fe]=f}function Pt(e,n,a,t){let c=t&&t.add||He,f=t&&t.rm||xe,E=t&&t.listeners||"eventListeners",T=t&&t.rmAll||"removeAllListeners",m=A(c),C="."+c+":",_="prependListener",P="."+_+":",I=function(k,d,Z){if(k.isRemoved)return;let V=k.callback;typeof V=="object"&&V.handleEvent&&(k.callback=g=>V.handleEvent(g),k.originalDelegate=V);let X;try{k.invoke(k,d,[Z])}catch(g){X=g}let G=k.options;if(G&&typeof G=="object"&&G.once){let g=k.originalDelegate?k.originalDelegate:k.callback;d[f].call(d,Z.type,g,G)}return X};function x(k,d,Z){if(d=d||e.event,!d)return;let V=k||d.target||e,X=V[te[d.type][Z?fe:he]];if(X){let G=[];if(X.length===1){let g=I(X[0],V,d);g&&G.push(g)}else{let g=X.slice();for(let z=0;z{throw z})}}}let U=function(k){return x(this,k,!1)},J=function(k){return x(this,k,!0)};function K(k,d){if(!k)return!1;let Z=!0;d&&d.useG!==void 0&&(Z=d.useG);let V=d&&d.vh,X=!0;d&&d.chkDup!==void 0&&(X=d.chkDup);let G=!1;d&&d.rt!==void 0&&(G=d.rt);let g=k;for(;g&&!g.hasOwnProperty(c);)g=je(g);if(!g&&k[c]&&(g=k),!g||g[m])return!1;let z=d&&d.eventNameToString,S={},w=g[m]=g[c],b=g[A(f)]=g[f],D=g[A(E)]=g[E],Q=g[A(T)]=g[T],W;d&&d.prepend&&(W=g[A(d.prepend)]=g[d.prepend]);function Y(r,u){return!me&&typeof r=="object"&&r?!!r.capture:!me||!u?r:typeof r=="boolean"?{capture:r,passive:!0}:r?typeof r=="object"&&r.passive!==!1?{...r,passive:!0}:r:{passive:!0}}let j=function(r){if(!S.isExisting)return w.call(S.target,S.eventName,S.capture?J:U,S.options)},i=function(r){if(!r.isRemoved){let u=te[r.eventName],v;u&&(v=u[r.capture?fe:he]);let R=v&&r.target[v];if(R){for(let y=0;yre.zone.cancelTask(re);r.call(Te,"abort",ce,{once:!0}),re.removeAbortListener=()=>Te.removeEventListener("abort",ce)}if(S.target=null,ke&&(ke.taskData=null),Ue&&(S.options.once=!0),!me&&typeof re.options=="boolean"||(re.options=ie),re.target=N,re.capture=Oe,re.eventName=L,B&&(re.originalDelegate=F),O?ge.unshift(re):ge.push(re),y)return N}};return g[c]=l(w,C,H,M,G),W&&(g[_]=l(W,P,o,M,G,!0)),g[f]=function(){let r=this||e,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let v=arguments[2],R=v?typeof v=="boolean"?!0:v.capture:!1,y=arguments[1];if(!y)return b.apply(this,arguments);if(V&&!V(b,y,r,arguments))return;let O=te[u],N;O&&(N=O[R?fe:he]);let L=N&&r[N];if(L)for(let F=0;Ffunction(c,f){c[ct]=!0,t&&t.apply(c,f)})}function Rt(e,n){n.patchMethod(e,"queueMicrotask",a=>function(t,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var Re=A("zoneTask");function ye(e,n,a,t){let c=null,f=null;n+=t,a+=t;let E={};function T(C){let _=C.data;_.args[0]=function(){return C.invoke.apply(this,arguments)};let P=c.apply(e,_.args);return Qe(P)?_.handleId=P:(_.handle=P,_.isRefreshable=Ke(P.refresh)),C}function m(C){let{handle:_,handleId:P}=C.data;return f.call(e,_??P)}c=de(e,n,C=>function(_,P){if(Ke(P[0])){let I={isRefreshable:!1,isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?P[1]||0:void 0,args:P},x=P[0];P[0]=function(){try{return x.apply(this,arguments)}finally{let{handle:Z,handleId:V,isPeriodic:X,isRefreshable:G}=I;!X&&!G&&(V?delete E[V]:Z&&(Z[Re]=null))}};let U=Ge(n,P[0],I,T,m);if(!U)return U;let{handleId:J,handle:K,isRefreshable:q,isPeriodic:k}=U.data;if(J)E[J]=U;else if(K&&(K[Re]=U,q&&!k)){let d=K.refresh;K.refresh=function(){let{zone:Z,state:V}=U;return V==="notScheduled"?(U._state="scheduled",Z._updateTaskCount(U,1)):V==="running"&&(U._state="scheduling"),d.call(this)}}return K??J??U}else return C.apply(e,P)}),f=de(e,a,C=>function(_,P){let I=P[0],x;Qe(I)?(x=E[I],delete E[I]):(x=I?.[Re],x?I[Re]=null:x=I),x?.type?x.cancelFn&&x.zone.cancelTask(x):C.apply(e,P)})}function Ct(e,n){let{isBrowser:a,isMix:t}=n.getGlobalObjects();if(!a&&!t||!e.customElements||!("customElements"in e))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",c)}function Dt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:t,TRUE_STR:c,FALSE_STR:f,ZONE_SYMBOL_PREFIX:E}=n.getGlobalObjects();for(let m=0;mf.target===e);if(!t||t.length===0)return n;let c=t[0].ignoreProperties;return n.filter(f=>c.indexOf(f)===-1)}function et(e,n,a,t){if(!e)return;let c=ut(e,n,a);ot(e,c,t)}function Ze(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Ot(e,n){if(Se&&!rt||Zone[e.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,t=[];if(Be){let c=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=kt()?[{target:c,ignoreProperties:["error"]}]:[];et(c,Ze(c),a&&a.concat(f),je(c))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{let a=n[e.__symbol__("legacyPatch")];a&&a()}),e.__load_patch("timers",n=>{let a="set",t="clear";ye(n,a,t,"Timeout"),ye(n,a,t,"Interval"),ye(n,a,t,"Immediate")}),e.__load_patch("requestAnimationFrame",n=>{ye(n,"request","cancel","AnimationFrame"),ye(n,"mozRequest","mozCancel","AnimationFrame"),ye(n,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(n,a)=>{let t=["alert","prompt","confirm"];for(let c=0;cfunction(C,_){return a.current.run(E,n,_,m)})}}),e.__load_patch("EventTarget",(n,a,t)=>{St(n,t),Dt(n,t);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&t.patchEventTarget(n,t,[c.prototype])}),e.__load_patch("MutationObserver",(n,a,t)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(n,a,t)=>{ve("IntersectionObserver")}),e.__load_patch("FileReader",(n,a,t)=>{ve("FileReader")}),e.__load_patch("on_property",(n,a,t)=>{Ot(t,n)}),e.__load_patch("customElements",(n,a,t)=>{Ct(n,t)}),e.__load_patch("XHR",(n,a)=>{C(n);let t=A("xhrTask"),c=A("xhrSync"),f=A("xhrListener"),E=A("xhrScheduled"),T=A("xhrURL"),m=A("xhrErrorBeforeScheduled");function C(_){let P=_.XMLHttpRequest;if(!P)return;let I=P.prototype;function x(w){return w[t]}let U=I[Le],J=I[Ie];if(!U){let w=_.XMLHttpRequestEventTarget;if(w){let b=w.prototype;U=b[Le],J=b[Ie]}}let K="readystatechange",q="scheduled";function k(w){let b=w.data,D=b.target;D[E]=!1,D[m]=!1;let Q=D[f];U||(U=D[Le],J=D[Ie]),Q&&J.call(D,K,Q);let W=D[f]=()=>{if(D.readyState===D.DONE)if(!b.aborted&&D[E]&&w.state===q){let j=D[a.__symbol__("loadfalse")];if(D.status!==0&&j&&j.length>0){let i=w.invoke;w.invoke=function(){let s=D[a.__symbol__("loadfalse")];for(let o=0;ofunction(w,b){return w[c]=b[2]==!1,w[T]=b[1],V.apply(w,b)}),X="XMLHttpRequest.send",G=A("fetchTaskAborting"),g=A("fetchTaskScheduling"),z=de(I,"send",()=>function(w,b){if(a.current[g]===!0||w[c])return z.apply(w,b);{let D={target:w,url:w[T],isPeriodic:!1,args:b,aborted:!1},Q=Ge(X,d,D,k,Z);w&&w[m]===!0&&!D.aborted&&Q.state===q&&Q.invoke()}}),S=de(I,"abort",()=>function(w,b){let D=x(w);if(D&&typeof D.type=="string"){if(D.cancelFn==null||D.data&&D.data.aborted)return;D.zone.cancelTask(D)}else if(a.current[G]===!0)return S.apply(w,b)})}}),e.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&yt(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(n,a)=>{function t(c){return function(f){lt(n,c).forEach(T=>{let m=n.PromiseRejectionEvent;if(m){let C=new m(c,{promise:f.promise,reason:f.rejection});T.invoke(C)}})}}n.PromiseRejectionEvent&&(a[A("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),a[A("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(n,a,t)=>{Rt(n,t)})}function Lt(e){e.__load_patch("ZoneAwarePromise",(n,a,t)=>{let c=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function E(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let T=t.symbol,m=[],C=n[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,_=T("Promise"),P=T("then"),I="__creationTrace__";t.onUnhandledError=h=>{if(t.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},t.microtaskDrainDone=()=>{for(;m.length;){let h=m.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){U(l)}}};let x=T("unhandledPromiseRejectionHandler");function U(h){t.onUnhandledError(h);try{let l=a[x];typeof l=="function"&&l.call(this,h)}catch{}}function J(h){return h&&h.then}function K(h){return h}function q(h){return M.reject(h)}let k=T("state"),d=T("value"),Z=T("finally"),V=T("parentPromiseValue"),X=T("parentPromiseState"),G="Promise.then",g=null,z=!0,S=!1,w=0;function b(h,l){return r=>{try{Y(h,l,r)}catch(u){Y(h,!1,u)}}}let D=function(){let h=!1;return function(r){return function(){h||(h=!0,r.apply(null,arguments))}}},Q="Promise resolved with itself",W=T("currentTaskTrace");function Y(h,l,r){let u=D();if(h===r)throw new TypeError(Q);if(h[k]===g){let v=null;try{(typeof r=="object"||typeof r=="function")&&(v=r&&r.then)}catch(R){return u(()=>{Y(h,!1,R)})(),h}if(l!==S&&r instanceof M&&r.hasOwnProperty(k)&&r.hasOwnProperty(d)&&r[k]!==g)i(r),Y(h,r[k],r[d]);else if(l!==S&&typeof v=="function")try{v.call(r,u(b(h,l)),u(b(h,!1)))}catch(R){u(()=>{Y(h,!1,R)})()}else{h[k]=l;let R=h[d];if(h[d]=r,h[Z]===Z&&l===z&&(h[k]=h[X],h[d]=h[V]),l===S&&r instanceof Error){let y=a.currentTask&&a.currentTask.data&&a.currentTask.data[I];y&&f(r,W,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y{try{let O=h[d],N=!!r&&Z===r[Z];N&&(r[V]=O,r[X]=R);let L=l.run(y,void 0,N&&y!==q&&y!==K?[]:[O]);Y(r,!0,L)}catch(O){Y(r,!1,O)}},r)}let o="function ZoneAwarePromise() { [native code] }",p=function(){},H=n.AggregateError;class M{static toString(){return o}static resolve(l){return l instanceof M?l:Y(new this(null),z,l)}static reject(l){return Y(new this(null),S,l)}static withResolvers(){let l={};return l.promise=new M((r,u)=>{l.resolve=r,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new H([],"All promises were rejected"));let r=[],u=0;try{for(let y of l)u++,r.push(M.resolve(y))}catch{return Promise.reject(new H([],"All promises were rejected"))}if(u===0)return Promise.reject(new H([],"All promises were rejected"));let v=!1,R=[];return new M((y,O)=>{for(let N=0;N{v||(v=!0,y(L))},L=>{R.push(L),u--,u===0&&(v=!0,O(new H(R,"All promises were rejected")))})})}static race(l){let r,u,v=new this((O,N)=>{r=O,u=N});function R(O){r(O)}function y(O){u(O)}for(let O of l)J(O)||(O=this.resolve(O)),O.then(R,y);return v}static all(l){return M.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof M?this:M).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,r){let u,v,R=new this((L,F)=>{u=L,v=F}),y=2,O=0,N=[];for(let L of l){J(L)||(L=this.resolve(L));let F=O;try{L.then(B=>{N[F]=r?r.thenCallback(B):B,y--,y===0&&u(N)},B=>{r?(N[F]=r.errorCallback(B),y--,y===0&&u(N)):v(B)})}catch(B){v(B)}y++,O++}return y-=2,y===0&&u(N),R}constructor(l){let r=this;if(!(r instanceof M))throw new Error("Must be an instanceof Promise.");r[k]=g,r[d]=[];try{let u=D();l&&l(u(b(r,z)),u(b(r,S)))}catch(u){Y(r,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return M}then(l,r){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||M);let v=new u(p),R=a.current;return this[k]==g?this[d].push(R,v,l,r):s(this,R,v,l,r),v}catch(l){return this.then(null,l)}finally(l){let r=this.constructor?.[Symbol.species];(!r||typeof r!="function")&&(r=M);let u=new r(p);u[Z]=Z;let v=a.current;return this[k]==g?this[d].push(v,u,l,l):s(this,v,u,l,l),u}}M.resolve=M.resolve,M.reject=M.reject,M.race=M.race,M.all=M.all;let se=n[_]=n.Promise;n.Promise=M;let le=T("thenPatched");function ue(h){let l=h.prototype,r=c(l,"then");if(r&&(r.writable===!1||!r.configurable))return;let u=l.then;l[P]=u,h.prototype.then=function(v,R){return new M((O,N)=>{u.call(this,O,N)}).then(v,R)},h[le]=!0}t.patchThen=ue;function ne(h){return function(l,r){let u=h.apply(l,r);if(u instanceof M)return u;let v=u.constructor;return v[le]||ue(v),u}}return se&&(ue(se),de(n,"fetch",h=>ne(h))),Promise[a.__symbol__("uncaughtPromiseErrors")]=m,M})}function It(e){e.__load_patch("toString",n=>{let a=Function.prototype.toString,t=A("OriginalDelegate"),c=A("Promise"),f=A("Error"),E=function(){if(typeof this=="function"){let _=this[t];if(_)return typeof _=="function"?a.call(_):Object.prototype.toString.call(_);if(this===Promise){let P=n[c];if(P)return a.call(P)}if(this===Error){let P=n[f];if(P)return a.call(P)}}return a.call(this)};E[t]=a,Function.prototype.toString=E;let T=Object.prototype.toString,m="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?m:T.call(this)}})}function Mt(e,n,a,t,c){let f=Zone.__symbol__(t);if(n[f])return;let E=n[f]=n[t];n[t]=function(T,m,C){return m&&m.prototype&&c.forEach(function(_){let P=`${a}.${t}::`+_,I=m.prototype;try{if(I.hasOwnProperty(_)){let x=e.ObjectGetOwnPropertyDescriptor(I,_);x&&x.value?(x.value=e.wrapWithCurrentZone(x.value,P),e._redefineProperty(m.prototype,_,x)):I[_]&&(I[_]=e.wrapWithCurrentZone(I[_],P))}else I[_]&&(I[_]=e.wrapWithCurrentZone(I[_],P))}catch{}}),E.call(n,T,m,C)},e.attachOriginToPatched(n[t],E)}function Zt(e){e.__load_patch("util",(n,a,t)=>{let c=Ze(n);t.patchOnProperties=ot,t.patchMethod=de,t.bindArguments=Fe,t.patchMacroTask=pt;let f=a.__symbol__("BLACK_LISTED_EVENTS"),E=a.__symbol__("UNPATCHED_EVENTS");n[E]&&(n[f]=n[E]),n[f]&&(a[f]=a[E]=n[f]),t.patchEventPrototype=wt,t.patchEventTarget=Pt,t.isIEOrEdge=vt,t.ObjectDefineProperty=Ae,t.ObjectGetOwnPropertyDescriptor=be,t.ObjectCreate=Et,t.ArraySlice=Tt,t.patchClass=ve,t.wrapWithCurrentZone=Ve,t.filterProperties=ut,t.attachOriginToPatched=_e,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Mt,t.getGlobalObjects=()=>({globalSources:st,zoneSymbolEventNames:te,eventNames:c,isBrowser:Be,isMix:rt,isNode:Se,TRUE_STR:fe,FALSE_STR:he,ZONE_SYMBOL_PREFIX:Pe,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function At(e){Lt(e),It(e),Zt(e)}var ft=_t();At(ft);Nt(ft);