From 3fc49ccc057224aad43e85e771a0808f46e50fba Mon Sep 17 00:00:00 2001 From: The Buildbot Date: Sun, 3 Nov 2024 09:47:32 +0000 Subject: [PATCH] Auto-generated commit Triggered by commit: https://github.com/angular-schule/demo-linked-signal/commit/ef9f87dc86bded90ef9ce8063d2be4a1a06f7ece --- 404.html | 2 +- index.html | 2 +- main-DT7EJBWU.js | 10 ---------- main-GZUVWUQA.js | 10 ++++++++++ 4 files changed, 12 insertions(+), 12 deletions(-) delete mode 100644 main-DT7EJBWU.js create mode 100644 main-GZUVWUQA.js diff --git a/404.html b/404.html index 91c81a8..5c7c51d 100644 --- a/404.html +++ b/404.html @@ -9,5 +9,5 @@ - + diff --git a/index.html b/index.html index 91c81a8..5c7c51d 100644 --- a/index.html +++ b/index.html @@ -9,5 +9,5 @@ - + diff --git a/main-DT7EJBWU.js b/main-DT7EJBWU.js deleted file mode 100644 index 96f9d57..0000000 --- a/main-DT7EJBWU.js +++ /dev/null @@ -1,10 +0,0 @@ -var Ig=Object.defineProperty,bg=Object.defineProperties;var _g=Object.getOwnPropertyDescriptors;var Ku=Object.getOwnPropertySymbols;var Mg=Object.prototype.hasOwnProperty,Sg=Object.prototype.propertyIsEnumerable;var Xu=(e,t,n)=>t in e?Ig(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||={})Mg.call(t,n)&&Xu(e,n,t[n]);if(Ku)for(var n of Ku(t))Sg.call(t,n)&&Xu(e,n,t[n]);return e},A=(e,t)=>bg(e,_g(t));var er=(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 lo(e,t){return Object.is(e,t)}var J=null,co=!1,xs=1,fe=Symbol("SIGNAL");function R(e){let t=J;return J=e,t}function el(){return J}var rn={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function rr(e){if(co)throw new Error("");if(J===null)return;J.consumerOnSignalRead(e);let t=J.nextProducerIndex++;if(po(J),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Rs(e){po(e);for(let t=0;t0}function po(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function ol(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function il(e){return e.producerNode!==void 0}function sl(e){let t=Object.create(Ng);t.computation=e;let n=()=>{if(on(t),rr(t),t.value===uo)throw t.error;return t.value};return n[fe]=t,n}var As=Symbol("UNSET"),Ns=Symbol("COMPUTING"),uo=Symbol("ERRORED"),Ng=A(m({},rn),{value:As,dirty:!0,error:null,equal:lo,producerMustRecompute(e){return e.value===As||e.value===Ns},producerRecomputeValue(e){if(e.value===Ns)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Ns;let n=or(e),r;try{r=e.computation()}catch(o){r=uo,e.error=o}finally{fo(e,n)}if(t!==As&&t!==uo&&r!==uo&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function xg(){throw new Error}var al=xg;function cl(){al()}function ul(e){al=e}var Rg=null;function ll(e){let t=Object.create(Fs);t.value=e;let n=()=>(rr(t),t.value);return n[fe]=t,n}function ir(e,t){nl()||cl(),e.equal(e.value,t)||(e.value=t,Og(e))}function ks(e,t){nl()||cl(),ir(e,t(e.value))}var Fs=A(m({},rn),{equal:lo,value:void 0});function Og(e){e.version++,Tg(),tl(e),Rg?.()}function _(e){return typeof e=="function"}function sn(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 go=sn(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 sr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var W=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(_(r))try{r()}catch(i){t=i instanceof go?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{dl(i)}catch(s){t=t??[],s instanceof go?t=[...t,...s.errors]:t.push(s)}}if(t)throw new go(t)}}add(t){var n;if(t&&t!==this)if(this.closed)dl(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)&&sr(n,t)}remove(t){let{_finalizers:n}=this;n&&sr(n,t),t instanceof e&&t._removeParent(this)}};W.EMPTY=(()=>{let e=new W;return e.closed=!0,e})();var Ps=W.EMPTY;function mo(e){return e instanceof W||e&&"closed"in e&&_(e.remove)&&_(e.add)&&_(e.unsubscribe)}function dl(e){_(e)?e():e.unsubscribe()}var Oe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var an={setTimeout(e,t,...n){let{delegate:r}=an;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=an;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function yo(e){an.setTimeout(()=>{let{onUnhandledError:t}=Oe;if(t)t(e);else throw e})}function ar(){}var fl=Ls("C",void 0,void 0);function hl(e){return Ls("E",void 0,e)}function pl(e){return Ls("N",e,void 0)}function Ls(e,t,n){return{kind:e,value:t,error:n}}var Ot=null;function cn(e){if(Oe.useDeprecatedSynchronousErrorHandling){let t=!Ot;if(t&&(Ot={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Ot;if(Ot=null,n)throw r}}else e()}function gl(e){Oe.useDeprecatedSynchronousErrorHandling&&Ot&&(Ot.errorThrown=!0,Ot.error=e)}var kt=class extends W{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,mo(t)&&t.add(this)):this.destination=Pg}static create(t,n,r){return new un(t,n,r)}next(t){this.isStopped?js(pl(t),this):this._next(t)}error(t){this.isStopped?js(hl(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?js(fl,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()}}},kg=Function.prototype.bind;function Vs(e,t){return kg.call(e,t)}var Bs=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)}}},un=class extends kt{constructor(t,n,r){super();let o;if(_(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Oe.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Vs(t.next,i),error:t.error&&Vs(t.error,i),complete:t.complete&&Vs(t.complete,i)}):o=t}this.destination=new Bs(o)}};function vo(e){Oe.useDeprecatedSynchronousErrorHandling?gl(e):yo(e)}function Fg(e){throw e}function js(e,t){let{onStoppedNotification:n}=Oe;n&&an.setTimeout(()=>n(e,t))}var Pg={closed:!0,next:ar,error:Fg,complete:ar};var ln=typeof Symbol=="function"&&Symbol.observable||"@@observable";function De(e){return e}function Us(...e){return Hs(e)}function Hs(e){return e.length===0?De:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var F=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Vg(n)?n:new un(n,r,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(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=ml(r),new r((o,i)=>{let s=new un({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)}[ln](){return this}pipe(...n){return Hs(n)(this)}toPromise(n){return n=ml(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 ml(e){var t;return(t=e??Oe.Promise)!==null&&t!==void 0?t:Promise}function Lg(e){return e&&_(e.next)&&_(e.error)&&_(e.complete)}function Vg(e){return e&&e instanceof kt||Lg(e)&&mo(e)}function $s(e){return _(e?.lift)}function P(e){return t=>{if($s(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function O(e,t,n,r,o){return new zs(e,t,n,r,o)}var zs=class extends kt{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 dn(){return P((e,t)=>{let n=null;e._refCount++;let r=O(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var fn=class extends F{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,$s(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 W;let n=this.getSubject();t.add(this.source.subscribe(O(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=W.EMPTY)}return t}refCount(){return dn()(this)}};var yl=sn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var X=(()=>{class e extends F{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Do(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new yl}next(n){cn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){cn(()=>{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(){cn(()=>{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?Ps:(this.currentObservers=null,i.push(n),new W(()=>{this.currentObservers=null,sr(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new F;return n.source=this,n}}return e.create=(t,n)=>new Do(t,n),e})(),Do=class extends X{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:Ps}};var oe=class extends X{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 Ce=new F(e=>e.complete());function vl(e){return e&&_(e.schedule)}function Dl(e){return e[e.length-1]}function Co(e){return _(Dl(e))?e.pop():void 0}function dt(e){return vl(Dl(e))?e.pop():void 0}function wl(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 Cl(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 Ft(e){return this instanceof Ft?(this.v=e,this):new Ft(e)}function El(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){r[f]&&(o[f]=function(y){return new Promise(function(v,I){i.push([f,y,v,I])>1||c(f,y)})},g&&(o[f]=g(o[f])))}function c(f,g){try{u(r[f](g))}catch(y){h(i[0][3],y)}}function u(f){f.value instanceof Ft?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 Il(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Cl=="function"?Cl(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 wo=e=>e&&typeof e.length=="number"&&typeof e!="function";function Eo(e){return _(e?.then)}function Io(e){return _(e[ln])}function bo(e){return Symbol.asyncIterator&&_(e?.[Symbol.asyncIterator])}function _o(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function jg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Mo=jg();function So(e){return _(e?.[Mo])}function To(e){return El(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Ft(n.read());if(o)return yield Ft(void 0);yield yield Ft(r)}}finally{n.releaseLock()}})}function Ao(e){return _(e?.getReader)}function Q(e){if(e instanceof F)return e;if(e!=null){if(Io(e))return Bg(e);if(wo(e))return Ug(e);if(Eo(e))return Hg(e);if(bo(e))return bl(e);if(So(e))return $g(e);if(Ao(e))return zg(e)}throw _o(e)}function Bg(e){return new F(t=>{let n=e[ln]();if(_(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ug(e){return new F(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,yo)})}function $g(e){return new F(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function bl(e){return new F(t=>{Gg(e,t).catch(n=>t.error(n))})}function zg(e){return bl(To(e))}function Gg(e,t){var n,r,o,i;return wl(this,void 0,void 0,function*(){try{for(n=Il(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function he(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 No(e,t=0){return P((n,r)=>{n.subscribe(O(r,o=>he(r,e,()=>r.next(o),t),()=>he(r,e,()=>r.complete(),t),o=>he(r,e,()=>r.error(o),t)))})}function xo(e,t=0){return P((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function _l(e,t){return Q(e).pipe(xo(t),No(t))}function Ml(e,t){return Q(e).pipe(xo(t),No(t))}function Sl(e,t){return new F(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Tl(e,t){return new F(n=>{let r;return he(n,t,()=>{r=e[Mo](),he(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)}),()=>_(r?.return)&&r.return()})}function Ro(e,t){if(!e)throw new Error("Iterable cannot be null");return new F(n=>{he(n,t,()=>{let r=e[Symbol.asyncIterator]();he(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Al(e,t){return Ro(To(e),t)}function Nl(e,t){if(e!=null){if(Io(e))return _l(e,t);if(wo(e))return Sl(e,t);if(Eo(e))return Ml(e,t);if(bo(e))return Ro(e,t);if(So(e))return Tl(e,t);if(Ao(e))return Al(e,t)}throw _o(e)}function $(e,t){return t?Nl(e,t):Q(e)}function b(...e){let t=dt(e);return $(e,t)}function hn(e,t){let n=_(e)?e:()=>e,r=o=>o.error(n());return new F(t?o=>t.schedule(r,0,o):r)}function Gs(e){return!!e&&(e instanceof F||_(e.lift)&&_(e.subscribe))}var Ke=sn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function S(e,t){return P((n,r)=>{let o=0;n.subscribe(O(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:qg}=Array;function Wg(e,t){return qg(t)?e(...t):e(t)}function Oo(e){return S(t=>Wg(e,t))}var{isArray:Qg}=Array,{getPrototypeOf:Zg,prototype:Jg,keys:Yg}=Object;function ko(e){if(e.length===1){let t=e[0];if(Qg(t))return{args:t,keys:null};if(Kg(t)){let n=Yg(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Kg(e){return e&&typeof e=="object"&&Zg(e)===Jg}function Fo(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Po(...e){let t=dt(e),n=Co(e),{args:r,keys:o}=ko(e);if(r.length===0)return $([],t);let i=new F(Xg(r,t,o?s=>Fo(o,s):De));return n?i.pipe(Oo(n)):i}function Xg(e,t,n=De){return r=>{xl(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c{let u=$(e[c],t),l=!1;u.subscribe(O(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function xl(e,t,n){e?he(n,e,t):t()}function Rl(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&t.complete()},f=y=>u{i&&t.next(y),u++;let v=!1;Q(n(y,l++)).subscribe(O(t,I=>{o?.(I),i?f(I):t.next(I)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;c.length&&ug(I)):g(I)}h()}catch(I){t.error(I)}}))};return e.subscribe(O(t,f,()=>{d=!0,h()})),()=>{a?.()}}function Y(e,t,n=1/0){return _(t)?Y((r,o)=>S((i,s)=>t(r,i,o,s))(Q(e(r,o))),n):(typeof t=="number"&&(n=t),P((r,o)=>Rl(r,o,e,n)))}function qs(e=1/0){return Y(De,e)}function Ol(){return qs(1)}function pn(...e){return Ol()($(e,dt(e)))}function Lo(e){return new F(t=>{Q(e()).subscribe(t)})}function Ws(...e){let t=Co(e),{args:n,keys:r}=ko(e),o=new F(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?Fo(r,a):a),i.complete())}))}});return t?o.pipe(Oo(t)):o}function we(e,t){return P((n,r)=>{let o=0;n.subscribe(O(r,i=>e.call(t,i,o++)&&r.next(i)))})}function ft(e){return P((t,n)=>{let r=null,o=!1,i;r=t.subscribe(O(n,void 0,void 0,s=>{i=Q(e(s,ft(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function kl(e,t,n,r,o){return(i,s)=>{let a=n,c=t,u=0;i.subscribe(O(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 ht(e,t){return _(t)?Y(e,t,1):Y(e,1)}function pt(e){return P((t,n)=>{let r=!1;t.subscribe(O(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Xe(e){return e<=0?()=>Ce:P((t,n)=>{let r=0;t.subscribe(O(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Qs(e){return S(()=>e)}function Vo(e=em){return P((t,n)=>{let r=!1;t.subscribe(O(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function em(){return new Ke}function Pt(e){return P((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function He(e,t){let n=arguments.length>=2;return r=>r.pipe(e?we((o,i)=>e(o,i,r)):De,Xe(1),n?pt(t):Vo(()=>new Ke))}function gn(e){return e<=0?()=>Ce:P((t,n)=>{let r=[];t.subscribe(O(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Zs(e,t){let n=arguments.length>=2;return r=>r.pipe(e?we((o,i)=>e(o,i,r)):De,gn(1),n?pt(t):Vo(()=>new Ke))}function Js(e,t){return P(kl(e,t,arguments.length>=2,!0))}function Ys(...e){let t=dt(e);return P((n,r)=>{(t?pn(e,n,t):pn(e,n)).subscribe(r)})}function Ee(e,t){return P((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(O(r,c=>{o?.unsubscribe();let u=0,l=i++;Q(e(c,l)).subscribe(o=O(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Ks(e){return P((t,n)=>{Q(e).subscribe(O(n,()=>n.complete(),ar)),!n.closed&&t.subscribe(n)})}function ee(e,t,n){let r=_(e)||t||n?{next:e,error:t,complete:n}:e;return r?P((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(O(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)}))}):De}var Ed="https://g.co/ng/security#xss",D=class extends Error{code;constructor(t,n){super(Ci(t,n)),this.code=t}};function Ci(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var Id=Symbol("InputSignalNode#UNSET"),tm=A(m({},Fs),{transformFn:void 0,applyValueToInputSignal(e,t){ir(e,t)}});function bd(e,t){let n=Object.create(tm);n.value=e,n.transformFn=t?.transform;function r(){if(rr(n),n.value===Id)throw new D(-950,!1);return n.value}return r[fe]=n,r}function wi(e){return{toString:e}.toString()}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 nm(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function pe(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(pe).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 Fl(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var rm=B({__forward_ref__:B});function Er(e){return e.__forward_ref__=Er,e.toString=function(){return pe(this())},e}function ae(e){return _d(e)?e():e}function _d(e){return typeof e=="function"&&e.hasOwnProperty(rm)&&e.__forward_ref__===Er}function w(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Gt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ei(e){return Pl(e,Sd)||Pl(e,Td)}function Md(e){return Ei(e)!==null}function Pl(e,t){return e.hasOwnProperty(t)?e[t]:null}function om(e){let t=e&&(e[Sd]||e[Td]);return t||null}function Ll(e){return e&&(e.hasOwnProperty(Vl)||e.hasOwnProperty(im))?e[Vl]:null}var Sd=B({\u0275prov:B}),Vl=B({\u0275inj:B}),Td=B({ngInjectableDef:B}),im=B({ngInjectorDef:B}),C=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=w({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ad(e){return e&&!!e.\u0275providers}var sm=B({\u0275cmp:B}),am=B({\u0275dir:B}),cm=B({\u0275pipe:B}),um=B({\u0275mod:B}),Zo=B({\u0275fac:B}),lr=B({__NG_ELEMENT_ID__:B}),jl=B({__NG_ENV_ID__:B});function rc(e){return typeof e=="string"?e:e==null?"":String(e)}function lm(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():rc(e)}function dm(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new D(-200,e)}function oc(e,t){throw new D(-201,!1)}var N=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(N||{}),ha;function Nd(){return ha}function Te(e){let t=ha;return ha=e,t}function xd(e,t,n){let r=Ei(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&N.Optional)return null;if(t!==void 0)return t;oc(e,"Injector")}var fm={},dr=fm,hm="__NG_DI_FLAG__",Jo="ngTempTokenPath",pm="ngTokenPath",gm=/\n/gm,mm="\u0275",Bl="__source",Dn;function ym(){return Dn}function gt(e){let t=Dn;return Dn=e,t}function vm(e,t=N.Default){if(Dn===void 0)throw new D(-203,!1);return Dn===null?xd(e,void 0,t):Dn.get(e,t&N.Optional?null:void 0,t)}function M(e,t=N.Default){return(Nd()||vm)(ae(e),t)}function p(e,t=N.Default){return M(e,Ii(t))}function Ii(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function pa(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):pe(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(gm,` - `)}`}function wn(e,t){let n=e.hasOwnProperty(Zo);return n?e[Zo]:null}function ic(e,t){e.forEach(n=>Array.isArray(n)?ic(n,t):t(n))}function Rd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Yo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Em(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 Im(e,t,n){let r=Ir(e,t);return r>=0?e[r|1]=n:(r=~r,Em(e,r,t,n)),r}function Xs(e,t){let n=Ir(e,t);if(n>=0)return e[n|1]}function Ir(e,t){return bm(e,t,1)}function bm(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<{n.push(s)};return ic(t,s=>{let a=s;ga(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Bd(o,i),n}function Bd(e,t){for(let n=0;n{t(i,r)})}}function ga(e,t,n,r){if(e=ae(e),!e)return!1;let o=null,i=Ll(e),s=!i&&Vt(e);if(!i&&!s){let c=e.ngModule;if(i=Ll(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)ga(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{ic(i.imports,l=>{ga(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Bd(u,t)}if(!a){let u=wn(o)||(()=>new o);t({provide:o,useFactory:u,deps:Ae},o),t({provide:kd,useValue:o,multi:!0},o),t({provide:In,useValue:()=>M(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;sc(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function sc(e,t){for(let n of e)Ad(n)&&(n=n.\u0275providers),Array.isArray(n)?sc(n,t):t(n)}var Mm=B({provide:String,useValue:B});function Ud(e){return e!==null&&typeof e=="object"&&Mm in e}function Sm(e){return!!(e&&e.useExisting)}function Tm(e){return!!(e&&e.useFactory)}function bn(e){return typeof e=="function"}function Am(e){return!!e.useClass}var bi=new C(""),$o={},Nm={},ea;function ac(){return ea===void 0&&(ea=new Ko),ea}var ge=class{},fr=class extends ge{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,ya(t,s=>this.processProvider(s)),this.records.set(Od,mn(void 0,this)),o.has("environment")&&this.records.set(ge,mn(void 0,this));let i=this.records.get(bi);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(kd,Ae,N.Self))}destroy(){cr(this),this._destroyed=!0;let t=R(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(),R(t)}}onDestroy(t){return cr(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){cr(this);let n=gt(this),r=Te(void 0),o;try{return t()}finally{gt(n),Te(r)}}get(t,n=dr,r=N.Default){if(cr(this),t.hasOwnProperty(jl))return t[jl](this);r=Ii(r);let o,i=gt(this),s=Te(void 0);try{if(!(r&N.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=Fm(t)&&Ei(t);u&&this.injectableDefInScope(u)?c=mn(ma(t),$o):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&N.Self?ac():this.parent;return n=r&N.Optional&&n===dr?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Jo]=a[Jo]||[]).unshift(pe(t)),i)throw a;return Cm(a,t,"R3InjectorError",this.source)}else throw a}finally{Te(s),gt(i)}}resolveInjectorInitializers(){let t=R(null),n=gt(this),r=Te(void 0),o;try{let i=this.get(In,Ae,N.Self);for(let s of i)s()}finally{gt(n),Te(r),R(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(pe(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=ae(t);let n=bn(t)?t:ae(t&&t.provide),r=Rm(t);if(!bn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=mn(void 0,$o,!0),o.factory=()=>pa(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=R(null);try{return n.value===$o&&(n.value=Nm,n.value=n.factory()),typeof n.value=="object"&&n.value&&km(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{R(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ae(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 ma(e){let t=Ei(e),n=t!==null?t.factory:wn(e);if(n!==null)return n;if(e instanceof C)throw new D(204,!1);if(e instanceof Function)return xm(e);throw new D(204,!1)}function xm(e){if(e.length>0)throw new D(204,!1);let n=om(e);return n!==null?()=>n.factory(e):()=>new e}function Rm(e){if(Ud(e))return mn(void 0,e.useValue);{let t=Hd(e);return mn(t,$o)}}function Hd(e,t,n){let r;if(bn(e)){let o=ae(e);return wn(o)||ma(o)}else if(Ud(e))r=()=>ae(e.useValue);else if(Tm(e))r=()=>e.useFactory(...pa(e.deps||[]));else if(Sm(e))r=()=>M(ae(e.useExisting));else{let o=ae(e&&(e.useClass||e.provide));if(Om(e))r=()=>new o(...pa(e.deps));else return wn(o)||ma(o)}return r}function cr(e){if(e.destroyed)throw new D(205,!1)}function mn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Om(e){return!!e.deps}function km(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Fm(e){return typeof e=="function"||typeof e=="object"&&e instanceof C}function ya(e,t){for(let n of e)Array.isArray(n)?ya(n,t):n&&Ad(n)?ya(n.\u0275providers,t):t(n)}function be(e,t){e instanceof fr&&cr(e);let n,r=gt(e),o=Te(void 0);try{return t()}finally{gt(r),Te(o)}}function $d(){return Nd()!==void 0||ym()!=null}function zd(e){if(!$d())throw new D(-203,!1)}function Pm(e){return typeof e=="function"}var rt=0,x=1,E=2,le=3,Fe=4,Le=5,hr=6,Xo=7,ce=8,_n=9,et=10,K=11,pr=12,Ul=13,kn=14,Pe=15,Mn=16,yn=17,Sn=18,_i=19,Gd=20,mt=21,ta=22,ei=23,Ie=24,Ge=25,qd=1;var jt=7,ti=8,ni=9,ue=10,ri=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(ri||{});function yt(e){return Array.isArray(e)&&typeof e[qd]=="object"}function ot(e){return Array.isArray(e)&&e[qd]===!0}function Wd(e){return(e.flags&4)!==0}function Mi(e){return e.componentOffset>-1}function cc(e){return(e.flags&1)===1}function vt(e){return!!e.template}function va(e){return(e[E]&512)!==0}var Da=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Qd(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var br=(()=>{let e=()=>Zd;return e.ngInherit=!0,e})();function Zd(e){return e.type.prototype.ngOnChanges&&(e.setInput=Vm),Lm}function Lm(){let e=Yd(this),t=e?.current;if(t){let n=e.previous;if(n===En)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Vm(e,t,n,r,o){let i=this.declaredInputs[r],s=Yd(e)||jm(e,{previous:En,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Da(u&&u.currentValue,n,c===En),Qd(e,t,o,n)}var Jd="__ngSimpleChanges__";function Yd(e){return e[Jd]||null}function jm(e,t){return e[Jd]=t}var Hl=null;var $e=function(e,t,n){Hl?.(e,t,n)},Bm="svg",Um="math";function qe(e){for(;Array.isArray(e);)e=e[rt];return e}function Kd(e,t){return qe(t[e])}function Ve(e,t){return qe(t[e.index])}function uc(e,t){return e.data[t]}function wt(e,t){let n=t[e];return yt(n)?n:n[rt]}function lc(e){return(e[E]&128)===128}function Hm(e){return ot(e[le])}function gr(e,t){return t==null?null:e[t]}function Xd(e){e[yn]=0}function dc(e){e[E]&1024||(e[E]|=1024,lc(e)&&Ti(e))}function $m(e,t){for(;e>0;)t=t[kn],e--;return t}function Si(e){return!!(e[E]&9216||e[Ie]?.dirty)}function Ca(e){e[et].changeDetectionScheduler?.notify(9),e[E]&64&&(e[E]|=1024),Si(e)&&Ti(e)}function Ti(e){e[et].changeDetectionScheduler?.notify(0);let t=Bt(e);for(;t!==null&&!(t[E]&8192||(t[E]|=8192,!lc(t)));)t=Bt(t)}function ef(e,t){if((e[E]&256)===256)throw new D(911,!1);e[mt]===null&&(e[mt]=[]),e[mt].push(t)}function zm(e,t){if(e[mt]===null)return;let n=e[mt].indexOf(t);n!==-1&&e[mt].splice(n,1)}function Bt(e){let t=e[le];return ot(t)?t[le]:t}var k={lFrame:uf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var wa=!1;function Gm(){return k.lFrame.elementDepthCount}function qm(){k.lFrame.elementDepthCount++}function Wm(){k.lFrame.elementDepthCount--}function tf(){return k.bindingsEnabled}function Qm(){return k.skipHydrationRootTNode!==null}function Zm(e){return k.skipHydrationRootTNode===e}function Jm(){k.skipHydrationRootTNode=null}function U(){return k.lFrame.lView}function me(){return k.lFrame.tView}function _r(e){return k.lFrame.contextLView=e,e[ce]}function Mr(e){return k.lFrame.contextLView=null,e}function _e(){let e=nf();for(;e!==null&&e.type===64;)e=e.parent;return e}function nf(){return k.lFrame.currentTNode}function Ym(){let e=k.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Fn(e,t){let n=k.lFrame;n.currentTNode=e,n.isParent=t}function rf(){return k.lFrame.isParent}function Km(){k.lFrame.isParent=!1}function of(){return wa}function $l(e){let t=wa;return wa=e,t}function Xm(e){return k.lFrame.bindingIndex=e}function Ai(){return k.lFrame.bindingIndex++}function ey(e){let t=k.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function ty(){return k.lFrame.inI18n}function ny(e,t){let n=k.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ea(t)}function ry(){return k.lFrame.currentDirectiveIndex}function Ea(e){k.lFrame.currentDirectiveIndex=e}function oy(e){let t=k.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function sf(e){k.lFrame.currentQueryIndex=e}function iy(e){let t=e[x];return t.type===2?t.declTNode:t.type===1?e[Le]:null}function af(e,t,n){if(n&N.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&N.Host);)if(o=iy(i),o===null||(i=i[kn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=k.lFrame=cf();return r.currentTNode=t,r.lView=e,!0}function fc(e){let t=cf(),n=e[x];k.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function cf(){let e=k.lFrame,t=e===null?null:e.child;return t===null?uf(e):t}function uf(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 lf(){let e=k.lFrame;return k.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var df=lf;function hc(){let e=lf();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 sy(e){return(k.lFrame.contextLView=$m(e,k.lFrame.contextLView))[ce]}function qt(){return k.lFrame.selectedIndex}function Ut(e){k.lFrame.selectedIndex=e}function pc(){let e=k.lFrame;return uc(e.tView,e.selectedIndex)}function ay(){return k.lFrame.currentNamespace}var ff=!0;function gc(){return ff}function mc(e){ff=e}function cy(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Zd(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 yc(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[yn]+=65536),(a>14>16&&(e[E]&3)===t&&(e[E]+=16384,zl(a,i)):zl(a,i)}var Cn=-1,Ht=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function ly(e){return e instanceof Ht}function dy(e){return(e.flags&8)!==0}function fy(e){return(e.flags&16)!==0}function Ia(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}function ii(e,t){let n=gy(e),r=t;for(;n>0;)r=r[kn],n--;return r}var _a=!0;function ql(e){let t=_a;return _a=e,t}var my=256,gf=my-1,mf=5,yy=0,ze={};function vy(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(lr)&&(r=n[lr]),r==null&&(r=n[lr]=yy++);let o=r&gf,i=1<>mf)]|=i}function si(e,t){let n=yf(e,t);if(n!==-1)return n;let r=t[x];r.firstCreatePass&&(e.injectorIndex=t.length,oa(r.data,e),oa(t,null),oa(r.blueprint,null));let o=vc(e,t),i=e.injectorIndex;if(pf(o)){let s=oi(o),a=ii(o,t),c=a[x].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function oa(e,t){e.push(0,0,0,0,0,0,0,0,t)}function yf(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function vc(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=Ef(o),r===null)return Cn;if(n++,o=o[kn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Cn}function Ma(e,t,n){vy(e,t,n)}function vf(e,t,n){if(n&N.Optional||e!==void 0)return e;oc(t,"NodeInjector")}function Df(e,t,n,r){if(n&N.Optional&&r===void 0&&(r=null),!(n&(N.Self|N.Host))){let o=e[_n],i=Te(void 0);try{return o?o.get(t,r,n&N.Optional):xd(t,r,n&N.Optional)}finally{Te(i)}}return vf(r,t,n)}function Cf(e,t,n,r=N.Default,o){if(e!==null){if(t[E]&2048&&!(r&N.Self)){let s=Iy(e,t,n,r,ze);if(s!==ze)return s}let i=wf(e,t,n,r,ze);if(i!==ze)return i}return Df(t,n,r,o)}function wf(e,t,n,r,o){let i=wy(n);if(typeof i=="function"){if(!af(t,e,r))return r&N.Host?vf(o,n,r):Df(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&N.Optional))oc(n);else return s}finally{df()}}else if(typeof i=="number"){let s=null,a=yf(e,t),c=Cn,u=r&N.Host?t[Pe][Le]:null;for((a===-1||r&N.SkipSelf)&&(c=a===-1?vc(e,t):t[a+8],c===Cn||!Ql(r,!1)?a=-1:(s=t[x],a=oi(c),t=ii(c,t)));a!==-1;){let l=t[x];if(Wl(i,a,l.data)){let d=Dy(a,t,n,s,r,u);if(d!==ze)return d}c=t[a+8],c!==Cn&&Ql(r,t[x].data[a+8]===u)&&Wl(i,a,t)?(s=l,a=oi(c),t=ii(c,t)):a=-1}}return o}function Dy(e,t,n,r,o,i){let s=t[x],a=s.data[e+8],c=r==null?Mi(a)&&_a:r!=s&&(a.type&3)!==0,u=o&N.Host&&i===a,l=Cy(a,s,n,c,u);return l!==null?Tn(t,s,l,a):ze}function Cy(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>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&&vt(f)&&f.type===n)return c}return null}function Tn(e,t,n,r){let o=e[n],i=t.data;if(ly(o)){let s=o;s.resolving&&dm(lm(i[n]));let a=ql(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?Te(s.injectImpl):null,l=af(e,r,N.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&cy(n,i[n],t)}finally{u!==null&&Te(u),ql(a),s.resolving=!1,df()}}return o}function wy(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(lr)?e[lr]:void 0;return typeof t=="number"?t>=0?t&gf:Ey:t}function Wl(e,t,n){let r=1<>mf)]&r)}function Ql(e,t){return!(e&N.Self)&&!(e&N.Host&&t)}var Lt=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Cf(this._tNode,this._lView,t,Ii(r),n)}};function Ey(){return new Lt(_e(),U())}function Sr(e){return wi(()=>{let t=e.prototype.constructor,n=t[Zo]||Sa(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Zo]||Sa(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Sa(e){return _d(e)?()=>{let t=Sa(ae(e));return t&&t()}:wn(e)}function Iy(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[E]&2048&&!(s[E]&512);){let a=wf(i,s,n,r|N.Self,ze);if(a!==ze)return a;let c=i.parent;if(!c){let u=s[Gd];if(u){let l=u.get(n,ze,r);if(l!==ze)return l}c=Ef(s),s=s[kn]}i=c}return o}function Ef(e){let t=e[x],n=t.type;return n===2?t.declTNode:n===1?e[Le]:null}function Zl(e,t=null,n=null,r){let o=If(e,t,n,r);return o.resolveInjectorInitializers(),o}function If(e,t=null,n=null,r,o=new Set){let i=[n||Ae,_m(e)];return r=r||(typeof e=="object"?void 0:pe(e)),new fr(i,t||ac(),r||null,o)}var We=class e{static THROW_IF_NOT_FOUND=dr;static NULL=new Ko;static create(t,n){if(Array.isArray(t))return Zl({name:""},n,t,"");{let r=t.name??"";return Zl({name:r},t.parent,t.providers,r)}}static \u0275prov=w({token:e,providedIn:"any",factory:()=>M(Od)});static __NG_ELEMENT_ID__=-1};var by=new C("");by.__NG_ELEMENT_ID__=e=>{let t=_e();if(t===null)throw new D(204,!1);if(t.type&2)return t.value;if(e&N.Optional)return null;throw new D(204,!1)};var bf=!1,Pn=(()=>{class e{static __NG_ELEMENT_ID__=_y;static __NG_ENV_ID__=n=>n}return e})(),Ta=class extends Pn{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return ef(this._lView,t),()=>zm(this._lView,t)}};function _y(){return new Ta(U())}var yr=class{},Ni=new C("",{providedIn:"root",factory:()=>!1});var _f=new C(""),Mf=new C(""),Et=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new oe(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}return e})();var Aa=class extends X{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,$d()&&(this.destroyRef=p(Pn,{optional:!0})??void 0,this.pendingTasks=p(Et,{optional:!0})??void 0)}emit(t){let n=R(null);try{super.next(t)}finally{R(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 W&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},ie=Aa;function ai(...e){}function Sf(e){let t,n;function r(){e=ai;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 Jl(e){return queueMicrotask(()=>e()),()=>{e=ai}}var Dc="isAngularZone",ci=Dc+"_ID",My=0,q=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new ie(!1);onMicrotaskEmpty=new ie(!1);onStable=new ie(!1);onError=new ie(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=bf}=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,Ay(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Dc)===!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,Sy,ai,ai);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)}},Sy={};function Cc(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 Ty(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Sf(()=>{e.callbackScheduled=!1,Na(e),e.isCheckStableRunning=!0,Cc(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Na(e)}function Ay(e){let t=()=>{Ty(e)},n=My++;e._inner=e._inner.fork({name:"angular",properties:{[Dc]:!0,[ci]:n,[ci+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Ny(c))return r.invokeTask(i,s,a,c);try{return Yl(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Kl(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Yl(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!xy(c)&&t(),Kl(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Na(e),Cc(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 Na(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Yl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Kl(e){e._nesting--,Cc(e)}var xa=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new ie;onMicrotaskEmpty=new ie;onStable=new ie;onError=new ie;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Ny(e){return Tf(e,"__ignore_ng_zone__")}function xy(e){return Tf(e,"__scheduler_tick__")}function Tf(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var tt=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Ry=new C("",{providedIn:"root",factory:()=>{let e=p(q),t=p(tt);return n=>e.runOutsideAngular(()=>t.handleError(n))}}),Ra=class{destroyed=!1;listeners=null;errorHandler=p(tt,{optional:!0});destroyRef=p(Pn);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new D(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed)throw new D(953,!1);if(this.listeners===null)return;let n=R(null);try{for(let r of this.listeners)try{r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{R(n)}}};function Af(e){return new Ra}function Xl(e,t){return bd(e,t)}function Oy(e){return bd(Id,e)}var Ln=(Xl.required=Oy,Xl);function ky(){return wc(_e(),U())}function wc(e,t){return new Wt(Ve(e,t))}var Wt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=ky}return e})();function Nf(e){return(e.flags&128)===128}var xf=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(xf||{}),Rf=new Map,Fy=0;function Py(){return Fy++}function Ly(e){Rf.set(e[_i],e)}function Oa(e){Rf.delete(e[_i])}var ed="__ngContext__";function $t(e,t){yt(t)?(e[ed]=t[_i],Ly(t)):e[ed]=t}function Of(e){return Ff(e[pr])}function kf(e){return Ff(e[Fe])}function Ff(e){for(;e!==null&&!ot(e);)e=e[Fe];return e}var ka;function Pf(e){ka=e}function Vy(){if(ka!==void 0)return ka;if(typeof document<"u")return document;throw new D(210,!1)}var Ec=new C("",{providedIn:"root",factory:()=>jy}),jy="ng",Ic=new C(""),It=new C("",{providedIn:"platform",factory:()=>"unknown"});var bc=new C("",{providedIn:"root",factory:()=>Vy().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var By="h",Uy="b";var Lf=!1,Hy=new C("",{providedIn:"root",factory:()=>Lf});var $y=()=>null;function _c(e,t,n=!1){return $y(e,t,n)}var Qe=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Qe||{});var ui=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ed})`}};function xi(e){return e instanceof ui?e.changingThisBreaksApplicationSecurity:e}function Vf(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 ${Ed})`)}return n===t}function zy(e){return e instanceof ui&&e.getTypeName()||null}var Gy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function jf(e){return e=String(e),e.match(Gy)?e:"unsafe:"+e}var Mc=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}(Mc||{});function Bf(e){let t=qy();return t?t.sanitize(Mc.URL,e)||"":Vf(e,"URL")?xi(e):jf(rc(e))}function qy(){let e=U();return e&&e[et].sanitizer}function Uf(e){return e instanceof Function?e():e}var Dt=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Dt||{}),nt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(nt||{}),Wy;function Sc(e,t){return Wy(e,t)}function vn(e,t,n,r,o){if(r!=null){let i,s=!1;ot(r)?i=r:yt(r)&&(s=!0,r=r[rt]);let a=qe(r);e===0&&n!==null?o==null?Gf(t,n,a):li(t,n,a,o||null,!0):e===1&&n!==null?li(t,n,a,o||null,!0):e===2?cv(t,a,s):e===3&&t.destroyNode(a),i!=null&&lv(t,e,i,n,o)}}function Qy(e,t){return e.createText(t)}function Zy(e,t,n){e.setValue(t,n)}function Hf(e,t,n){return e.createElement(t,n)}function Jy(e,t){$f(e,t),t[rt]=null,t[Le]=null}function Yy(e,t,n,r,o,i){r[rt]=o,r[Le]=t,Oi(e,r,n,1,o,i)}function $f(e,t){t[et].changeDetectionScheduler?.notify(10),Oi(e,t,t[K],2,null,null)}function Ky(e){let t=e[pr];if(!t)return ia(e[x],e);for(;t;){let n=null;if(yt(t))n=t[pr];else{let r=t[ue];r&&(n=r)}if(!n){for(;t&&!t[Fe]&&t!==e;)yt(t)&&ia(t[x],t),t=t[le];t===null&&(t=e),yt(t)&&ia(t[x],t),n=t&&t[Fe]}t=n}}function Xy(e,t,n,r){let o=ue+r,i=n.length;r>0&&(n[o-1][Fe]=t),r0&&(e[n-1][Fe]=r[Fe]);let i=Yo(e,ue+t);Jy(r[x],r);let s=i[Sn];s!==null&&s.detachView(i[x]),r[le]=null,r[Fe]=null,r[E]&=-129}return r}function Ri(e,t){if(!(t[E]&256)){let n=t[K];n.destroyNode&&Oi(e,t,n,3,null,null),Ky(t)}}function ia(e,t){if(t[E]&256)return;let n=R(null);try{t[E]&=-129,t[E]|=256,t[Ie]&&Os(t[Ie]),tv(e,t),ev(e,t),t[x].type===1&&t[K].destroy();let r=t[Mn];if(r!==null&&ot(t[le])){r!==t[le]&&Tc(r,t);let o=t[Sn];o!==null&&o.detachView(e)}Oa(t)}finally{R(n)}}function ev(e,t){let n=e.cleanup,r=t[Xo];if(n!==null)for(let s=0;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Xo]=null);let o=t[mt];if(o!==null){t[mt]=null;for(let s=0;s-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===Qe.None||i===Qe.Emulated)return null}return Ve(r,n)}}function li(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Gf(e,t,n){e.appendChild(t,n)}function td(e,t,n,r,o){r!==null?li(e,t,n,r,o):Gf(e,t,n)}function qf(e,t){return e.parentNode(t)}function ov(e,t){return e.nextSibling(t)}function iv(e,t,n){return av(e,t,n)}function sv(e,t,n){return e.type&40?Ve(e,n):null}var av=sv,nd;function Ac(e,t,n,r){let o=nv(e,r,t),i=t[K],s=r.parent||t[Le],a=iv(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(ke(r))return!1;s=!0}}}}return ke(r)||s}function ke(e){return(e&1)===0}function yv(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!==""&&!ke(s)&&(t+=rd(i,o),o=""),r=s,i=i||!ke(r);n++}return o!==""&&(t+=rd(i,o)),t}function Ev(e){return e.map(wv).join(",")}function Iv(e){let t=[],n=[],r=1,o=2;for(;rGe&&Yf(e,t,Ge,!1),$e(s?2:0,o),n(r,o)}finally{Ut(i),$e(s?3:1,o)}}function th(e,t,n){if(Wd(t)){let r=R(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function Nv(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Qm()&&(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 od(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=Dt.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?id(r,n,u,a,c):id(r,n,u,a)}return r}function id(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 xv(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 Pv(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;Mi(n)&&$v(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||si(n,t),$t(r,t);let s=n.initialInputs;for(let a=o;a{Ti(e.lView)},consumerOnSignalRead(){this.lView[Ie]=this}});function iD(e){let t=e[Ie]??Object.create(sD);return t.lView=e,t}var sD=A(m({},rn),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Bt(e.lView);for(;t&&!ph(t[x]);)t=Bt(t);t&&dc(t)},consumerOnSignalRead(){this.lView[Ie]=this}});function ph(e){return e.type!==2}function gh(e){if(e[ei]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[ei])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[E]&8192)}}var aD=100;function mh(e,t=!0,n=0){let o=e[et].rendererFactory,i=!1;i||o.begin?.();try{cD(e,n)}catch(s){throw t&&dh(e,s),s}finally{i||o.end?.()}}function cD(e,t){let n=of();try{$l(!0),Va(e,t);let r=0;for(;Si(e);){if(r===aD)throw new D(103,!1);r++,Va(e,1)}}finally{$l(n)}}function uD(e,t,n,r){let o=t[E];if((o&256)===256)return;let i=!1,s=!1;fc(t);let a=!0,c=null,u=null;i||(ph(e)?(u=tD(t),c=or(u)):el()===null?(a=!1,u=iD(t),c=or(u)):t[Ie]&&(Os(t[Ie]),t[Ie]=null));try{Xd(t),Xm(e.bindingStartIndex),n!==null&&eh(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&&Go(t,f,0,null),na(t,0)}if(s||lD(t),gh(t),yh(t,0),e.contentQueries!==null&&lh(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&zo(t,f)}else{let f=e.contentHooks;f!==null&&Go(t,f,1),na(t,1)}bv(e,t);let d=e.components;d!==null&&Dh(t,d,0);let h=e.viewQuery;if(h!==null&&La(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&zo(t,f)}else{let f=e.viewHooks;f!==null&&Go(t,f,2),na(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[ta]){for(let f of t[ta])f();t[ta]=null}i||(t[E]&=-73)}catch(l){throw i||Ti(t),l}finally{u!==null&&(fo(u,c),a&&rD(u)),hc()}}function yh(e,t){for(let n=Of(e);n!==null;n=kf(n))for(let r=ue;r-1&&(vr(t,r),Yo(n,r))}this._attachedToViewContainer=!1}Ri(this._lView[x],this._lView)}onDestroy(t){ef(this._lView,t)}markForCheck(){Lc(this._cdRefInjectingView||this._lView,4)}markForRefresh(){dc(this._cdRefInjectingView||this._lView)}detach(){this._lView[E]&=-129}reattach(){Ca(this._lView),this._lView[E]|=128}detectChanges(){this._lView[E]|=1024,mh(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=va(this._lView),n=this._lView[Mn];n!==null&&!t&&Tc(n,this._lView),$f(this._lView[x],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=t;let n=va(this._lView),r=this._lView[Mn];r!==null&&!n&&zf(r,this._lView),Ca(this._lView)}};var cA=new RegExp(`^(\\d+)*(${Uy}|${By})*(.*)`);var fD=()=>null;function hi(e,t){return fD(e,t)}var ja=class{},pi=class{},Ba=class{resolveComponentFactory(t){throw Error(`No component factory found for ${pe(t)}.`)}},Nn=class{static NULL=new Ba},xn=class{},Vn=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>hD()}return e})();function hD(){let e=U(),t=_e(),n=wt(t.index,e);return(yt(n)?n:e)[K]}var pD=(()=>{class e{static \u0275prov=w({token:e,providedIn:"root",factory:()=>null})}return e})();function Ua(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Qf(e,n,i.join(" "))}}function wD(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static __NG_ELEMENT_ID__=ID}return e})();function ID(){let e=_e();return _D(e,U())}var bD=Pi,Ch=class extends bD{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return wc(this._hostTNode,this._hostLView)}get injector(){return new Lt(this._hostTNode,this._hostLView)}get parentInjector(){let t=vc(this._hostTNode,this._hostLView);if(pf(t)){let n=ii(t,this._hostLView),r=oi(t),o=n[x].data[r+8];return new Lt(o,n)}else return new Lt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=ad(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ue}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=hi(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,di(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!Pm(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 Dr(Vt(t)),u=r||this.parentInjector;if(!i&&c.ngModule==null){let y=(s?u:this.parentInjector).get(ge,null);y&&(i=y)}let l=Vt(c.componentType??{}),d=hi(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,o,h,i);return this.insertImpl(f.hostView,a,di(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Hm(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[le],u=new Ch(c,c[Le],c[le]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Pc(s,o,i,r),t.attachToViewContainerRef(),Rd(sa(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=ad(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=vr(this._lContainer,n);r&&(Yo(sa(this._lContainer),n),Ri(r[x],r))}detach(t){let n=this._adjustIndex(t,-1),r=vr(this._lContainer,n);return r&&Yo(sa(this._lContainer),n)!=null?new An(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function ad(e){return e[ti]}function sa(e){return e[ti]||(e[ti]=[])}function _D(e,t){let n,r=t[e.index];return ot(r)?n=r:(n=uh(r,t,null,e),t[e.index]=n,Fi(t,n)),SD(n,t,e,r),new Ch(n,e,t)}function MD(e,t){let n=e[K],r=n.createComment(""),o=Ve(t,e),i=qf(n,o);return li(n,i,r,ov(n,o),!1),r}var SD=ND,TD=()=>!1;function AD(e,t,n){return TD(e,t,n)}function ND(e,t,n,r){if(e[jt])return;let o;n.type&8?o=qe(r):o=MD(t,n),e[jt]=o}var cd=new Set;function bt(e){cd.has(e)||(cd.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function xD(e){return typeof e=="function"&&e[fe]!==void 0}function je(e,t){bt("NgSignals");let n=ll(e),r=n[fe];return t?.equal&&(r.equal=t.equal),n.set=o=>ir(r,o),n.update=o=>ks(r,o),n.asReadonly=wh.bind(n),n}function wh(){let e=this[fe];if(e.readonlyFn===void 0){let t=()=>this();t[fe]=e,e.readonlyFn=t}return e.readonlyFn}function Eh(e){return xD(e)&&typeof e.set=="function"}var RD=!0,Ct=class{},Cr=class{};var $a=class extends Ct{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new gi(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=Fd(t);this._bootstrapComponents=Uf(i.bootstrap),this._r3Injector=If(t,n,[{provide:Ct,useValue:this},{provide:Nn,useValue:this.componentFactoryResolver},...r],pe(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)}},za=class extends Cr{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new $a(this.moduleType,t,[])}};var mi=class extends Ct{injector;componentFactoryResolver=new gi(this);instance=null;constructor(t){super();let n=new fr([...t.providers,{provide:Ct,useValue:this},{provide:Nn,useValue:this.componentFactoryResolver}],t.parent||ac(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Vc(e,t,n=null){return new mi({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var OD=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=jd(!1,n.type),o=r.length>0?Vc([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=w({token:e,providedIn:"environment",factory:()=>new e(M(ge))})}return e})();function Ne(e){return wi(()=>{let t=Ih(e),n=A(m({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===xf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(OD).getOrCreateStandaloneInjector(n):null,getExternalStyles: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:""});t.standalone&&bt("NgStandalone"),bh(n);let r=e.dependencies;return n.directiveDefs=ld(r,!1),n.pipeDefs=ld(r,!0),n.id=PD(n),n})}function kD(e){return Vt(e)||Pd(e)}function FD(e){return e!==null}function Zt(e){return wi(()=>({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 ud(e,t){if(e==null)return En;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Dt.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Dt.None?[r,a]:r,t[i]=s):n[i]=r}return n}function it(e){return wi(()=>{let t=Ih(e);return bh(t),t})}function Ih(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||En,exportAs:e.exportAs||null,standalone:e.standalone??RD,signals:e.signals===!0,selectors:e.selectors||Ae,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ud(e.inputs,t),outputs:ud(e.outputs),debugInfo:null}}function bh(e){e.features?.forEach(t=>t(e))}function ld(e,t){if(!e)return null;let n=t?Ld:kD;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(FD)}function PD(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 LD(e){return Object.getPrototypeOf(e.prototype).constructor}function jn(e){let t=LD(e.type),n=!0,r=[e];for(;t;){let o;if(vt(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=jo(e.inputs),s.inputTransforms=jo(e.inputTransforms),s.declaredInputs=jo(e.declaredInputs),s.outputs=jo(e.outputs);let a=o.hostBindings;a&&HD(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&BD(e,c),u&&UD(e,u),VD(e,o),nm(e.outputs,o.outputs),vt(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=mr(o.hostAttrs,n=mr(n,o.hostAttrs))}}function jo(e){return e===En?{}:e===Ae?[]:e}function BD(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function UD(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function HD(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function Ar(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function $D(e){return(e.flags&32)===32}function zD(e,t,n,r,o,i,s,a,c){let u=t.consts,l=Tr(t,e,4,s||null,a||null);ih(t,n,l,gr(u,c)),yc(t,l);let d=l.tView=Rc(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function dd(e,t,n,r,o,i,s,a,c,u){let l=n+Ge,d=t.firstCreatePass?zD(l,t,e,r,o,i,s,a,c):t.data[l];Fn(d,!1);let h=GD(t,e,d,n);gc()&&Ac(t,e,h,d),$t(h,e);let f=uh(h,e,h,d);return e[l]=f,Fi(e,f),AD(f,d,e),cc(d)&&nh(t,e,d),c!=null&&rh(e,d,u),d}var GD=qD;function qD(e,t,n,r){return mc(!0),t[K].createComment("")}var WD=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}return e})();var Li=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var _h=new C("");function Jt(e){return!!e&&typeof e.then=="function"}function Mh(e){return!!e&&typeof e.subscribe=="function"}var Sh=new C("");var Th=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=p(Sh,{optional:!0})??[];injector=p(We);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=be(this.injector,o);if(Jt(i))n.push(i);else if(Mh(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),QD=(()=>{class e{static \u0275prov=w({token:e,providedIn:"root",factory:()=>new Ga})}return e})(),Ga=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},Vi=new C("");function ZD(){ul(()=>{throw new D(600,!1)})}function JD(e){return e.isBoundToModule}var YD=10;function KD(e,t,n){try{let r=n();return Jt(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var _t=(()=>{class e{_bootstrapListeners=[];_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(Ry);afterRenderManager=p(WD);zonelessEnabled=p(Ni);rootEffectScheduler=p(QD);dirtyFlags=0;deferredDirtyFlags=0;externalTestViews=new Set;afterTick=new X;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=p(Et).hasPendingTasks.pipe(S(n=>!n));whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=p(ge);get injector(){return this._injector}bootstrap(n,r){let o=n instanceof pi;if(!this._injector.get(Th).done){let h=!o&&Vd(n),f=!1;throw new D(405,f)}let s;o?s=n:s=this._injector.get(Nn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=JD(s)?void 0:this._injector.get(Ct),c=r||s.selector,u=s.create(We.NULL,[],c,a),l=u.location.nativeElement,d=u.injector.get(_h,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),qo(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=R(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,R(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(xn,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++Si(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;qo(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Vi,[]);[...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),()=>qo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new D(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function qo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function XD(e,t,n,r){if(!n&&!Si(e))return;mh(e,t,n&&!r?0:1)}function Ah(e,t,n,r){return Ar(e,Ai(),n)?t+rc(n)+r:Qt}function Bo(e,t){return e<<17|t<<2}function zt(e){return e>>17&32767}function eC(e){return(e&2)==2}function tC(e,t){return e&131071|t<<17}function qa(e){return e|2}function Rn(e){return(e&131068)>>2}function aa(e,t){return e&-131069|t<<2}function nC(e){return(e&1)===1}function Wa(e){return e|1}function rC(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=zt(s),c=Rn(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Ir(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let h=zt(e[a+1]);e[r+1]=Bo(h,a),h!==0&&(e[h+1]=aa(e[h+1],r)),e[a+1]=tC(e[a+1],r)}else e[r+1]=Bo(a,0),a!==0&&(e[a+1]=aa(e[a+1],r)),a=r;else e[r+1]=Bo(c,0),a===0?a=r:e[c+1]=aa(e[c+1],r),c=r;u&&(e[r+1]=qa(e[r+1])),fd(e,l,r,!0),fd(e,l,r,!1),oC(t,l,e,r,i),s=Bo(a,c),i?t.classBindings=s:t.styleBindings=s}function oC(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Ir(i,t)>=0&&(n[r+1]=Wa(n[r+1]))}function fd(e,t,n,r){let o=e[n+1],i=t===null,s=r?zt(o):Rn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];iC(c,t)&&(a=!0,e[s+1]=r?Wa(u):qa(u)),s=r?zt(u):Rn(u)}a&&(e[n+1]=r?qa(o):Wa(o))}function iC(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Ir(e,t)>=0:!1}function Mt(e,t,n){let r=U(),o=Ai();if(Ar(r,o,t)){let i=me(),s=pc();Oc(i,s,r,e,t,r[K],n,!1)}return Mt}function hd(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";kc(e,n,i[s],s,r)}function jc(e,t){return sC(e,t,null,!0),jc}function sC(e,t,n,r){let o=U(),i=me(),s=ey(2);if(i.firstUpdatePass&&cC(i,e,s,r),t!==Qt&&Ar(o,s,t)){let a=i.data[qt()];hC(i,a,o,o[K],e,o[s+1]=pC(t,n),r,s)}}function aC(e,t){return t>=e.expandoStartIndex}function cC(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[qt()],s=aC(e,n);gC(i,r)&&t===null&&!s&&(t=!1),t=uC(o,i,t,r),rC(o,i,t,n,s,r)}}function uC(e,t,n,r){let o=oy(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=ca(null,e,t,n,r),n=wr(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=ca(o,e,t,n,r),i===null){let c=lC(e,t,r);c!==void 0&&Array.isArray(c)&&(c=ca(null,e,t,c[1],r),c=wr(c,t.attrs,r),dC(e,t,r,c))}else i=fC(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function lC(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Rn(r)!==0)return e[zt(r)]}function dC(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[zt(o)]=r}function fC(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===Qt&&(h=d?Ae:void 0);let f=d?Xs(h,r):l===r?h:void 0;if(u&&!yi(f)&&(f=Xs(c,r)),yi(f)&&(a=f,s))return a;let g=e[o+1];o=s?zt(g):Rn(g)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Xs(c,r))}return a}function yi(e){return e!==void 0}function pC(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=pe(xi(e)))),e}function gC(e,t){return(e.flags&(t?8:16))!==0}var Qa=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function ua(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function mC(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let u=e.at(i),l=t[i],d=ua(i,u,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let h=e.at(s),f=t[c],g=ua(s,h,c,f,n);if(g!==0){g<0&&e.updateValue(s,f),s--,c--;continue}let y=n(i,u),v=n(s,h),I=n(i,l);if(Object.is(I,v)){let j=n(c,f);Object.is(j,y)?(e.swap(i,s),e.updateValue(s,f),c--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new vi,o??=md(e,i,s,n),Za(e,r,i,I))e.updateValue(i,l),i++,s++;else if(o.has(I))r.set(y,e.detach(i)),s--;else{let j=e.create(i,t[i]);e.attach(i,j),i++,s++}}for(;i<=c;)gd(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),u=c.next();for(;!u.done&&i<=s;){let l=e.at(i),d=u.value,h=ua(i,l,i,d,n);if(h!==0)h<0&&e.updateValue(i,d),i++,u=c.next();else{r??=new vi,o??=md(e,i,s,n);let f=n(i,d);if(Za(e,r,i,f))e.updateValue(i,d),i++,s++,u=c.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,u=c.next();else{let g=n(i,l);r.set(g,e.detach(i)),s--}}}for(;!u.done;)gd(e,r,n,e.length,u.value),u=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function Za(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function gd(e,t,n,r,o){if(Za(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function md(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var vi=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};var Ja=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ue}};var Ya=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Nh(e,t,n,r,o,i,s,a,c,u,l,d,h){bt("NgControlFlow");let f=U(),g=me(),y=c!==void 0,v=U(),I=a?s.bind(v[Pe][ce]):s,j=new Ya(y,I);v[Ge+e]=j,dd(f,g,e+1,t,n,r,o,gr(g.consts,i)),y&&dd(f,g,e+2,c,u,l,d,gr(g.consts,h))}var Ka=class extends Qa{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-ue}at(t){return this.getLView(t)[ce].$implicit}attach(t,n){let r=n[hr];this.needsIndexUpdate||=t!==this.length,Pc(this.lContainer,n,t,di(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,yC(this.lContainer,t)}create(t,n){let r=hi(this.lContainer,this.templateTNode.tView.ssrId),o=fh(this.hostLView,this.templateTNode,new Ja(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){Ri(t[x],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[ce].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(mc(!0),Hf(r,o,ay()));function ji(){return U()}var Di="en-US";var wC=Di;function EC(e){typeof e=="string"&&(wC=e.toLowerCase().replace(/_/g,"-"))}var IC=(e,t,n)=>{};function ye(e,t,n,r){let o=U(),i=me(),s=_e();return Rh(i,o,o[K],s,e,t,r),ye}function bC(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 Rh(e,t,n,r,o,i,s){let a=cc(r),u=e.firstCreatePass&&Wv(e),l=t[ce],d=qv(t),h=!0;if(r.type&3||s){let y=Ve(r,t),v=s?s(y):y,I=d.length,j=s?re=>s(qe(re[r.index])):r.index,L=null;if(!s&&a&&(L=bC(e,t,o,r.index)),L!==null){let re=L.__ngLastListenerFn__||L;re.__ngNextListenerFn__=i,L.__ngLastListenerFn__=i,h=!1}else{i=Cd(r,t,l,i),IC(y,o,i);let re=n.listen(v,o,i);d.push(i,re),u&&u.push(o,j,I,I+1)}}else i=Cd(r,t,l,i);let f=r.outputs,g;if(h&&f!==null&&(g=f[o])){let y=g.length;if(y)for(let v=0;v-1?wt(e.index,t):t;Lc(s,5);let a=Dd(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=Dd(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function Oh(e=1){return sy(e)}function Bc(e,t,n,r,o){let i=U(),s=Ah(i,t,n,r);if(s!==Qt){let a=me(),c=pc();Oc(a,c,i,e,s,i[K],o,!1)}return Bc}function _C(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function G(e,t=""){let n=U(),r=me(),o=e+Ge,i=r.firstCreatePass?Tr(r,o,1,t,null):r.data[o],s=MC(r,n,i,t,e);n[o]=s,gc()&&Ac(r,n,s,i),Fn(i,!1)}var MC=(e,t,n,r,o)=>(mc(!0),Qy(t[K],r));function Bi(e){return xe("",e,""),Bi}function xe(e,t,n){let r=U(),o=Ah(r,e,t,n);return o!==Qt&&Qv(r,qt(),o),xe}function Uc(e,t,n){Eh(t)&&(t=t());let r=U(),o=Ai();if(Ar(r,o,t)){let i=me(),s=pc();Oc(i,s,r,e,t,r[K],n,!1)}return Uc}function kh(e,t){let n=Eh(e);return n&&e.set(t),n}function Hc(e,t){let n=U(),r=me(),o=_e();return Rh(r,n,n[K],o,e,t),Hc}var SC={};function $c(e){let t=me(),n=U(),r=e+Ge,o=Tr(t,r,128,null,null);return Fn(o,!1),_C(t,n,r,SC),$c}function TC(e,t,n){let r=me();if(r.firstCreatePass){let o=vt(e);Xa(n,r.data,r.blueprint,o,!0),Xa(t,r.data,r.blueprint,o,!1)}}function Xa(e,t,n,r,o){if(e=ae(e),Array.isArray(e))for(let i=0;i>20;if(bn(e)||!e.multi){let f=new Ht(u,o,ne),g=da(c,t,o?l:l+h,d);g===-1?(Ma(si(a,s),i,c),la(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=da(c,t,l+h,d),g=da(c,t,l,l+h),y=f>=0&&n[f],v=g>=0&&n[g];if(o&&!v||!o&&!y){Ma(si(a,s),i,c);let I=xC(o?NC:AC,n.length,o,r,u);!o&&v&&(n[g].providerFactory=I),la(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(I),s.push(I)}else{let I=Fh(n[o?g:f],u,!o&&r);la(i,e,f>-1?f:g,I)}!o&&r&&v&&n[g].componentProviders++}}}function la(e,t,n,r){let o=bn(t),i=Am(t);if(o||i){let c=(i?ae(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 Fh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function da(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>TC(r,o?o(e):e,t)}}var tc=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Gc=(()=>{class e{compileModuleSync(n){return new za(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Fd(n),i=Uf(o.declarations).reduce((s,a)=>{let c=Vt(a);return c&&s.push(new Dr(c)),s},[]);return new tc(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var RC=(()=>{class e{zone=p(q);changeDetectionScheduler=p(yr);applicationRef=p(_t);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),OC=new C("",{factory:()=>!1});function Ph({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new q(A(m({},Vh()),{scheduleInRootZone:n})),[{provide:q,useFactory:e},{provide:In,multi:!0,useFactory:()=>{let r=p(RC,{optional:!0});return()=>r.initialize()}},{provide:In,multi:!0,useFactory:()=>{let r=p(kC);return()=>{r.initialize()}}},t===!0?{provide:_f,useValue:!0}:[],{provide:Mf,useValue:n??bf}]}function Lh(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=Ph({ngZoneFactory:()=>{let o=Vh(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&bt("NgZone_CoalesceEvent"),new q(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return On([{provide:OC,useValue:!0},{provide:Ni,useValue:!1},r])}function Vh(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var kC=(()=>{class e{subscription=new W;initialized=!1;zone=p(q);pendingTasks=p(Et);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{q.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{q.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var FC=(()=>{class e{appRef=p(_t);taskService=p(Et);ngZone=p(q);zonelessEnabled=p(Ni);disableScheduling=p(_f,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new W;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(ci):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(Mf,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof xa||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 8:{this.appRef.deferredDirtyFlags|=8;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 13:{this.appRef.dirtyFlags|=16,r=!0;break}case 14:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{r=!0;break}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Jl:Sf;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(ci+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Jl(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function PC(){return typeof $localize<"u"&&$localize.locale||Di}var qc=new C("",{providedIn:"root",factory:()=>p(qc,N.Optional|N.SkipSelf)||PC()});var nc=new C("");function Uo(e){return!e.moduleRef}function LC(e){let t=Uo(e)?e.r3Injector:e.moduleRef.injector,n=t.get(q);return n.run(()=>{Uo(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(tt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Uo(e)){let i=()=>t.destroy(),s=e.platformInjector.get(nc);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(nc);s.add(i),e.moduleRef.onDestroy(()=>{qo(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return KD(r,n,()=>{let i=t.get(Th);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(qc,Di);if(EC(s||Di),Uo(e)){let a=t.get(_t);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return VC(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function VC(e,t){let n=e.injector.get(_t);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 Wo=null;function jC(e=[],t){return We.create({name:t,providers:[{provide:bi,useValue:"platform"},{provide:nc,useValue:new Set([()=>Wo=null])},...e]})}function BC(e=[]){if(Wo)return Wo;let t=jC(e);return Wo=t,ZD(),UC(t),t}function UC(e){let t=e.get(Ic,null);be(e,()=>{t?.forEach(n=>n())})}var Yt=(()=>{class e{static __NG_ELEMENT_ID__=HC}return e})();function HC(e){return $C(_e(),U(),(e&16)===16)}function $C(e,t,n){if(Mi(e)&&!n){let r=wt(e.index,t);return new An(r,r)}else if(e.type&175){let r=t[Pe];return new An(r,t)}return null}function jh(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=BC(r),i=[Ph({}),{provide:yr,useExisting:FC},...n||[]],s=new mi({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return LC({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function Ui(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function St(e,t){bt("NgSignals");let n=sl(e);return t?.equal&&(n[fe].equal=t.equal),n}var zC=e=>e;function GC(e){let n=()=>{if(on(e),rr(e),e.value===Qo)throw e.error;return e.value};return n[fe]=e,n.set=r=>{on(e),ir(e,r),tr(e)},n.update=r=>{on(e),ks(e,r),tr(e)},n.asReadonly=wh.bind(n),n}function Tt(e,t){bt("NgSignals");let n=typeof e=="function",r=Object.create(qC);r.source=n?e:e.source,n||(r.computation=e.computation);let o=n?t?.equal:e.equal;return o&&(r.equal=o),GC(r)}var Ho=Symbol("UNSET"),fa=Symbol("COMPUTING"),Qo=Symbol("ERRORED"),qC=A(m({},rn),{value:Ho,dirty:!0,error:null,equal:lo,computation:zC,producerMustRecompute(e){return e.value===Ho||e.value===fa},producerRecomputeValue(e){if(e.value===fa)throw new Error("Detected cycle in computations.");let t=e.value;e.value=fa;let n=or(e),r;try{let o=e.source(),i=t===Ho||t===Qo?void 0:{source:e.sourceValue,value:t};r=e.computation(o,i),e.sourceValue=o}catch(o){r=Qo,e.error=o}finally{fo(e,n)}if(t!==Ho&&r!==Qo&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function st(e){let t=R(null);try{return e()}finally{R(t)}}var wd=class{[fe];constructor(t){this[fe]=t}destroy(){this[fe].destroy()}};var Hh=null;function at(){return Hh}function $h(e){Hh??=e}var Hi=class{};var ve=new C(""),zh=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>p(JC),providedIn:"platform"})}return e})();var JC=(()=>{class e extends zh{_location;_history;_doc=p(ve);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return at().getBaseHref(this._doc)}onPopState(n){let r=at().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=at().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Gh(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 Bh(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function Kt(e){return e&&e[0]!=="?"?"?"+e:e}var $i=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>p(qh),providedIn:"root"})}return e})(),YC=new C(""),qh=(()=>{class e extends $i{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??p(ve).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 Gh(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Kt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Kt(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Kt(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(M(zh),M(YC,8))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Nr=(()=>{class e{_subject=new X;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=ew(Bh(Uh(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Kt(r))}normalize(n){return e.stripTrailingSlash(XC(this._basePath,Uh(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Kt(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Kt(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=Kt;static joinWithSlash=Gh;static stripTrailingSlash=Bh;static \u0275fac=function(r){return new(r||e)(M($i))};static \u0275prov=w({token:e,factory:()=>KC(),providedIn:"root"})}return e})();function KC(){return new Nr(M($i))}function XC(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Uh(e){return e.replace(/\/index.html$/,"")}function ew(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function zi(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 Wh="browser",tw="server";function Gi(e){return e===tw}var Bn=class{};var Rr=class{},Wi=class{},ct=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` -`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Zc=class{encodeKey(t){return Qh(t)}encodeValue(t){return Qh(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function rw(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 ow=/%(\d[a-f0-9])/gi,iw={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Qh(e){return encodeURIComponent(e).replace(ow,(t,n)=>iw[n]??t)}function qi(e){return`${e}`}var Nt=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Zc,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=rw(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(qi):[qi(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(qi(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(qi(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 Jc=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function sw(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Zh(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Jh(e){return typeof Blob<"u"&&e instanceof Blob}function Yh(e){return typeof FormData<"u"&&e instanceof FormData}function aw(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var xr=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(sw(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 ct,this.context??=new Jc,!this.params)this.params=new Nt,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})}},xt=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}(xt||{}),Or=class{headers;status;statusText;url;ok;type;constructor(t,n=200,r="OK"){this.headers=t.headers||new ct,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}},Qi=class e extends Or{constructor(t={}){super(t)}type=xt.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})}},kr=class e extends Or{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=xt.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},At=class extends Or{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},tp=200,cw=204;function Qc(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 Xc=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof xr)i=n;else{let c;o.headers instanceof ct?c=o.headers:c=new ct(o.headers);let u;o.params&&(o.params instanceof Nt?u=o.params:u=new Nt({fromObject:o.params})),i=new xr(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=b(i).pipe(ht(c=>this.handler.handle(c)));if(n instanceof xr||o.observe==="events")return s;let a=s.pipe(we(c=>c instanceof kr));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 Nt().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,Qc(o,r))}post(n,r,o={}){return this.request("POST",n,Qc(o,r))}put(n,r,o={}){return this.request("PUT",n,Qc(o,r))}static \u0275fac=function(r){return new(r||e)(M(Rr))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),uw=/^\)\]\}',?\n/,lw="X-Request-URL";function Kh(e){if(e.url)return e.url;let t=lw.toLocaleLowerCase();return e.headers.get(t)}var dw=(()=>{class e{fetchImpl=p(Yc,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=p(q);handle(n){return new F(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(Kc,i=>r.error(new At({error:i}))),()=>o.abort()})}doRequest(n,r,o){return er(this,null,function*(){let i=this.createRequestInit(n),s;try{let f=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,m({signal:r},i)));fw(f),o.next({type:xt.Sent}),s=yield f}catch(f){o.error(new At({error:f,status:f.status??0,statusText:f.statusText,url:n.urlWithParams,headers:f.headers}));return}let a=new ct(s.headers),c=s.statusText,u=Kh(s)??n.urlWithParams,l=s.status,d=null;if(n.reportProgress&&o.next(new Qi({headers:a,status:l,statusText:c,url:u})),s.body){let f=s.headers.get("content-length"),g=[],y=s.body.getReader(),v=0,I,j,L=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>er(this,null,function*(){for(;;){let{done:de,value:Z}=yield y.read();if(de)break;if(g.push(Z),v+=Z.length,n.reportProgress){j=n.responseType==="text"?(j??"")+(I??=new TextDecoder).decode(Z,{stream:!0}):void 0;let Ye=()=>o.next({type:xt.DownloadProgress,total:f?+f:void 0,loaded:v,partialText:j});L?L.run(Ye):Ye()}}}));let re=this.concatChunks(g,v);try{let de=s.headers.get("Content-Type")??"";d=this.parseBody(n,re,de)}catch(de){o.error(new At({error:de,headers:new ct(s.headers),status:s.status,statusText:s.statusText,url:Kh(s)??n.urlWithParams}));return}}l===0&&(l=d?tp:0),l>=200&&l<300?(o.next(new kr({body:d,headers:a,status:l,statusText:c,url:u})),o.complete()):o.error(new At({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(uw,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let i=n.detectContentTypeHeader();i!==null&&(r["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),Yc=class{};function Kc(){}function fw(e){e.then(Kc,Kc)}function hw(e,t){return t(e)}function pw(e,t,n){return(r,o)=>be(n,()=>t(r,i=>e(i,o)))}var np=new C(""),gw=new C(""),mw=new C("",{providedIn:"root",factory:()=>!0});var Xh=(()=>{class e extends Rr{backend;injector;chain=null;pendingTasks=p(Et);contributeToStability=p(mw);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(np),...this.injector.get(gw,[])]));this.chain=r.reduceRight((o,i)=>pw(o,i,this.injector),hw)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Pt(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(M(Wi),M(ge))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})();var yw=/^\)\]\}',?\n/;function vw(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var ep=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new D(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?$(r.\u0275loadImpl()):b(null)).pipe(Ee(()=>new F(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((y,v)=>s.setRequestHeader(y,v.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let y=n.detectContentTypeHeader();y!==null&&s.setRequestHeader("Content-Type",y)}if(n.responseType){let y=n.responseType.toLowerCase();s.responseType=y!=="json"?y:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let y=s.statusText||"OK",v=new ct(s.getAllResponseHeaders()),I=vw(s)||n.url;return c=new Qi({headers:v,status:s.status,statusText:y,url:I}),c},l=()=>{let{headers:y,status:v,statusText:I,url:j}=u(),L=null;v!==cw&&(L=typeof s.response>"u"?s.responseText:s.response),v===0&&(v=L?tp:0);let re=v>=200&&v<300;if(n.responseType==="json"&&typeof L=="string"){let de=L;L=L.replace(yw,"");try{L=L!==""?JSON.parse(L):null}catch(Z){L=de,re&&(re=!1,L={error:Z,text:L})}}re?(i.next(new kr({body:L,headers:y,status:v,statusText:I,url:j||void 0})),i.complete()):i.error(new At({error:L,headers:y,status:v,statusText:I,url:j||void 0}))},d=y=>{let{url:v}=u(),I=new At({error:y,status:s.status||0,statusText:s.statusText||"Unknown Error",url:v||void 0});i.error(I)},h=!1,f=y=>{h||(i.next(u()),h=!0);let v={type:xt.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(v.total=y.total),n.responseType==="text"&&s.responseText&&(v.partialText=s.responseText),i.next(v)},g=y=>{let v={type:xt.UploadProgress,loaded:y.loaded};y.lengthComputable&&(v.total=y.total),i.next(v)};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:xt.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),a!==null&&s.upload&&s.upload.removeEventListener("progress",g)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(M(Bn))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),rp=new C(""),Dw="XSRF-TOKEN",Cw=new C("",{providedIn:"root",factory:()=>Dw}),ww="X-XSRF-TOKEN",Ew=new C("",{providedIn:"root",factory:()=>ww}),Zi=class{},Iw=(()=>{class e{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=zi(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(M(ve),M(It),M(Cw))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})();function bw(e,t){let n=e.url.toLowerCase();if(!p(rp)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=p(Zi).getToken(),o=p(Ew);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}function op(...e){let t=[Xc,ep,Xh,{provide:Rr,useExisting:Xh},{provide:Wi,useFactory:()=>p(dw,{optional:!0})??p(ep)},{provide:np,useValue:bw,multi:!0},{provide:rp,useValue:!0},{provide:Zi,useClass:Iw}];for(let n of e)t.push(...n.\u0275providers);return On(t)}var tu=class extends Hi{supportsDOMEvents=!0},nu=class e extends tu{static makeCurrent(){$h(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=Mw();return n==null?null:Sw(n)}resetBaseElement(){Fr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return zi(document.cookie,t)}},Fr=null;function Mw(){return Fr=Fr||document.querySelector("base"),Fr?Fr.getAttribute("href"):null}function Sw(e){return new URL(e,document.baseURI).pathname}var Tw=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),ru=new C(""),dp=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new D(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(M(ru),M(q))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),Ji=class{_doc;constructor(t){this._doc=t}manager},ou="ng-app-id";function ip(e){for(let t of e)t.remove()}function sp(e,t){let n=t.createElement("style");return n.textContent=e,n}function Aw(e,t,n){let r=e.head?.querySelectorAll(`style[${ou}="${t}"]`);if(r)for(let o of r)o.textContent&&(o.removeAttribute(ou),n.set(o.textContent,{usage:0,elements:[o]}))}function ap(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var fp=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=Gi(i),Aw(n,r,this.inline),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,sp);r?.forEach(o=>this.addUsage(o,this.external,ap))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(ip(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])ip(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,sp(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,ap(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(ou,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(M(ve),M(Ec),M(bc,8),M(It))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),eu={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"},su=/%COMP%/g,hp="%COMP%",Nw=`_nghost-${hp}`,xw=`_ngcontent-${hp}`,Rw=!0,Ow=new C("",{providedIn:"root",factory:()=>Rw});function kw(e){return xw.replace(su,e)}function Fw(e){return Nw.replace(su,e)}function pp(e,t){return t.map(n=>n.replace(su,e))}var cp=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.platformIsServer=Gi(a),this.defaultRenderer=new Pr(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Qe.ShadowDom&&(r=A(m({},r),{encapsulation:Qe.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Yi?o.applyToHost(n):o instanceof Lr&&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 Yi(c,u,r,this.appId,l,s,a,d);break;case Qe.ShadowDom:return new iu(c,u,n,r,s,a,this.nonce,d);default:i=new Lr(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(r){return new(r||e)(M(dp),M(fp),M(Ec),M(Ow),M(ve),M(It),M(q),M(bc))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),Pr=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(eu[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(up(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(up(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=eu[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=eu[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&(nt.DashCase|nt.Important)?t.style.setProperty(n,r,o&nt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&nt.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=at().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 up(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var iu=class extends Pr{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=pp(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)}},Lr=class extends Pr{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?pp(c,r.styles):r.styles,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Yi=class extends Lr{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=kw(u),this.hostAttr=Fw(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}},Pw=(()=>{class e extends Ji{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static \u0275fac=function(r){return new(r||e)(M(ve))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),lp=["alt","control","meta","shift"],Lw={"\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"},Vw={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},jw=(()=>{class e extends Ji{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(()=>at().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."),lp.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=Lw[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"),lp.forEach(s=>{if(s!==o){let a=Vw[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(M(ve))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})();function gp(e,t){return jh(m({rootComponent:e},Bw(t)))}function Bw(e){return{appProviders:[...Gw,...e?.providers??[]],platformProviders:zw}}function Uw(){nu.makeCurrent()}function Hw(){return new tt}function $w(){return Pf(document),document}var zw=[{provide:It,useValue:Wh},{provide:Ic,useValue:Uw,multi:!0},{provide:ve,useFactory:$w,deps:[]}];var Gw=[{provide:bi,useValue:"root"},{provide:tt,useFactory:Hw,deps:[]},{provide:ru,useClass:Pw,multi:!0,deps:[ve,q,It]},{provide:ru,useClass:jw,multi:!0,deps:[ve]},cp,fp,dp,{provide:xn,useExisting:cp},{provide:Bn,useClass:Tw,deps:[]},[]];var mp=(()=>{class e{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static \u0275fac=function(r){return new(r||e)(M(ve))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var T="primary",eo=Symbol("RouteTitle"),du=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function qn(e){return new du(e)}function Qw(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 _p(e){return e.length>0?e[e.length-1]:null}function Rt(e){return Gs(e)?e:Jt(e)?$(Promise.resolve(e)):b(e)}var Jw={exact:Sp,subset:Tp},Mp={exact:Yw,subset:Kw,ignored:()=>!0};function yp(e,t,n){return Jw[n.paths](e.root,t.root,n.matrixParams)&&Mp[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function Yw(e,t){return Je(e,t)}function Sp(e,t,n){if(!en(e.segments,t.segments)||!es(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Sp(e.children[r],t.children[r],n))return!1;return!0}function Kw(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>bp(e[n],t[n]))}function Tp(e,t,n){return Ap(e,t,t.segments,n)}function Ap(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!en(o,n)||t.hasChildren()||!es(o,n,r))}else if(e.segments.length===n.length){if(!en(e.segments,n)||!es(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!Tp(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!en(e.segments,o)||!es(e.segments,o,r)||!e.children[T]?!1:Ap(e.children[T],t,i,r)}}function es(e,t,n){return t.every((r,o)=>Mp[n](e[o].parameters,r.parameters))}var lt=class{root;queryParams;fragment;_queryParamMap;constructor(t=new V([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=qn(this.queryParams),this._queryParamMap}toString(){return tE.serialize(this)}},V=class{segments;children;parent=null;constructor(t,n){this.segments=t,this.children=n,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ts(this)}},Xt=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=qn(this.parameters),this._parameterMap}toString(){return xp(this)}};function Xw(e,t){return en(e,t)&&e.every((n,r)=>Je(n.parameters,t[r].parameters))}function en(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function eE(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===T&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==T&&(n=n.concat(t(o,r)))}),n}var Vu=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>new zr,providedIn:"root"})}return e})(),zr=class{parse(t){let n=new pu(t);return new lt(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Vr(t.root,!0)}`,r=oE(t.queryParams),o=typeof t.fragment=="string"?`#${nE(t.fragment)}`:"";return`${n}${r}${o}`}},tE=new zr;function ts(e){return e.segments.map(t=>xp(t)).join("/")}function Vr(e,t){if(!e.hasChildren())return ts(e);if(t){let n=e.children[T]?Vr(e.children[T],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==T&&r.push(`${o}:${Vr(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=eE(e,(r,o)=>o===T?[Vr(e.children[T],!1)]:[`${o}:${Vr(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[T]!=null?`${ts(e)}/${n[0]}`:`${ts(e)}/(${n.join("//")})`}}function Np(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ki(e){return Np(e).replace(/%3B/gi,";")}function nE(e){return encodeURI(e)}function hu(e){return Np(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ns(e){return decodeURIComponent(e)}function vp(e){return ns(e.replace(/\+/g,"%20"))}function xp(e){return`${hu(e.path)}${rE(e.parameters)}`}function rE(e){return Object.entries(e).map(([t,n])=>`;${hu(t)}=${hu(n)}`).join("")}function oE(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Ki(n)}=${Ki(o)}`).join("&"):`${Ki(n)}=${Ki(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var iE=/^[^\/()?;#]+/;function au(e){let t=e.match(iE);return t?t[0]:""}var sE=/^[^\/()?;=#]+/;function aE(e){let t=e.match(sE);return t?t[0]:""}var cE=/^[^=?&#]+/;function uE(e){let t=e.match(cE);return t?t[0]:""}var lE=/^[^&#]+/;function dE(e){let t=e.match(lE);return t?t[0]:""}var pu=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new V([],{}):new V([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[T]=new V(t,n)),r}parseSegment(){let t=au(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new D(4009,!1);return this.capture(t),new Xt(ns(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=aE(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=au(this.remaining);o&&(r=o,this.capture(r))}t[ns(n)]=ns(r)}parseQueryParam(t){let n=uE(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=dE(this.remaining);s&&(r=s,this.capture(r))}let o=vp(n),i=vp(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=au(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=T);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[T]:new V([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new D(4011,!1)}};function Rp(e){return e.segments.length>0?new V([],{[T]:e}):e}function Op(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=Op(o);if(r===T&&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 V(e.segments,t);return fE(n)}function fE(e){if(e.numberOfChildren===1&&e.children[T]){let t=e.children[T];return new V(e.segments.concat(t.segments),t.children)}return e}function Gr(e){return e instanceof lt}function hE(e,t,n=null,r=null){let o=kp(e);return Fp(o,t,n,r)}function kp(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 V(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=Rp(r);return t??o}function Fp(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return cu(o,o,o,n,r);let i=pE(t);if(i.toRoot())return cu(o,o,new V([],{}),n,r);let s=gE(i,o,e),a=s.processChildren?Ur(s.segmentGroup,s.index,i.commands):Lp(s.segmentGroup,s.index,i.commands);return cu(o,s.segmentGroup,a,n,r)}function rs(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function qr(e){return typeof e=="object"&&e!=null&&e.outlets}function cu(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=Pp(e,t,n);let a=Rp(Op(s));return new lt(a,i,o)}function Pp(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=Pp(i,t,n)}),new V(e.segments,r)}var os=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&rs(r[0]))throw new D(4003,!1);let o=r.find(qr);if(o&&o!==_p(r))throw new D(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function pE(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new os(!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 os(n,t,r)}var $n=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function gE(e,t,n){if(e.isAbsolute)return new $n(t,!0,0);if(!n)return new $n(t,!1,NaN);if(n.parent===null)return new $n(n,!0,0);let r=rs(e.commands[0])?0:1,o=n.segments.length-1+r;return mE(n,o,e.numberOfDoubleDots)}function mE(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 $n(r,!1,o-i)}function yE(e){return qr(e[0])?e[0].outlets:{[T]:e}}function Lp(e,t,n){if(e??=new V([],{}),e.segments.length===0&&e.hasChildren())return Ur(e,t,n);let r=vE(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndexi!==T)&&e.children[T]&&e.numberOfChildren===1&&e.children[T].segments.length===0){let i=Ur(e.children[T],t,n);return new V(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Lp(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new V(e.segments,o)}}function vE(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(!Cp(c,u,s))return i;r+=2}else{if(!Cp(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function gu(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=gu(new V([],{}),0,r))}),t}function Dp(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function Cp(e,t,n){return e==n.path&&Je(t,n.parameters)}var Hr="imperative",se=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(se||{}),Re=class{id;url;constructor(t,n){this.id=t,this.url=n}},Wr=class extends Re{type=se.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",o=null){super(t,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},tn=class extends Re{urlAfterRedirects;type=se.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Se=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(Se||{}),mu=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(mu||{}),ut=class extends Re{reason;code;type=se.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},nn=class extends Re{reason;code;type=se.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}},Qr=class extends Re{error;target;type=se.NavigationError;constructor(t,n,r,o){super(t,n),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},is=class extends Re{urlAfterRedirects;state;type=se.RoutesRecognized;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yu=class extends Re{urlAfterRedirects;state;type=se.GuardsCheckStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vu=class extends Re{urlAfterRedirects;state;shouldActivate;type=se.GuardsCheckEnd;constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Du=class extends Re{urlAfterRedirects;state;type=se.ResolveStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Cu=class extends Re{urlAfterRedirects;state;type=se.ResolveEnd;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wu=class{route;type=se.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Eu=class{route;type=se.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Iu=class{snapshot;type=se.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},bu=class{snapshot;type=se.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_u=class{snapshot;type=se.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Mu=class{snapshot;type=se.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Zr=class{},Wn=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function CE(e,t){return e.providers&&!e._injector&&(e._injector=Vc(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Ue(e){return e.outlet||T}function wE(e,t){let n=e.filter(r=>Ue(r)===t);return n.push(...e.filter(r=>Ue(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 Su=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return to(this.route?.snapshot)??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new fs(this.rootInjector)}},fs=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Su(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(M(ge))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ss=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=Tu(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Tu(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Au(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Au(t,this._root).map(n=>n.value)}};function Tu(e,t){if(e===t.value)return t;for(let n of t.children){let r=Tu(e,n);if(r)return r}return null}function Au(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Au(e,n);if(r.length)return r.unshift(t),r}return[]}var Me=class{value;children;constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Hn(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var as=class extends ss{snapshot;constructor(t,n){super(t),this.snapshot=n,ju(this,t)}toString(){return this.snapshot.toString()}};function Vp(e){let t=EE(e),n=new oe([new Xt("",{})]),r=new oe({}),o=new oe({}),i=new oe({}),s=new oe(""),a=new Qn(n,r,i,s,o,T,e,t.root);return a.snapshot=t.root,new as(new Me(a,[]),t)}function EE(e){let t={},n={},r={},o="",i=new zn([],t,r,o,n,T,e,null,{});return new us("",new Me(i,[]))}var Qn=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(S(u=>u[eo]))??b(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(S(t=>qn(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(S(t=>qn(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function cs(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&&Bp(o)&&(r.resolve[eo]=o.title),r}var zn=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[eo]}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??=qn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=qn(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},us=class extends ss{url;constructor(t,n){super(n),this.url=t,ju(this,n)}toString(){return jp(this._root)}};function ju(e,t){t.value._routerState=e,t.children.forEach(n=>ju(e,n))}function jp(e){let t=e.children.length>0?` { ${e.children.map(jp).join(", ")} } `:"";return`${e.value}${t}`}function uu(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Je(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Je(t.params,n.params)||e.paramsSubject.next(n.params),Zw(t.url,n.url)||e.urlSubject.next(n.url),Je(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Nu(e,t){let n=Je(e.params,t.params)&&Xw(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||Nu(e.parent,t.parent))}function Bp(e){return typeof e.title=="string"||e.title===null}var IE=new C(""),bE=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=T;activateEvents=new ie;deactivateEvents=new ie;attachEvents=new ie;detachEvents=new ie;routerOutletData=Ln(void 0);parentContexts=p(fs);location=p(Pi);changeDetector=p(Yt);inputBinder=p(Bu,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new D(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new D(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new D(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new D(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new xu(n,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=it({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[br]})}return e})(),xu=class e{route;childContexts;parent;outletData;__ngOutletInjector(t){return new e(this.route,this.childContexts,t,this.outletData)}constructor(t,n,r,o){this.route=t,this.childContexts=n,this.parent=r,this.outletData=o}get(t,n){return t===Qn?this.route:t===fs?this.childContexts:t===IE?this.outletData:this.parent.get(t,n)}},Bu=new C("");function _E(e,t,n){let r=Jr(e,t._root,n?n._root:void 0);return new as(r,t)}function Jr(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=ME(e,t,n);return new Me(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=>Jr(e,a)),s}}let r=SE(t.value),o=t.children.map(i=>Jr(e,i));return new Me(r,o)}}function ME(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Jr(e,r,o);return Jr(e,r)})}function SE(e){return new Qn(new oe(e.url),new oe(e.params),new oe(e.queryParams),new oe(e.fragment),new oe(e.data),e.outlet,e.component,e)}var Yr=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Up="ngNavigationCancelingError";function ls(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Gr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Hp(!1,Se.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function Hp(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Up]=!0,n.cancellationCode=t,n}function TE(e){return $p(e)&&Gr(e.url)}function $p(e){return!!e&&e[Up]}var AE=(e,t,n,r)=>S(o=>(new Ru(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),Ru=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),uu(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=Hn(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=Hn(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=Hn(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=Hn(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Mu(i.value.snapshot))}),t.children.length&&this.forwardEvent(new bu(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(uu(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),uu(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)}},ds=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Gn=class{component;route;constructor(t,n){this.component=t,this.route=n}};function NE(e,t,n){let r=e._root,o=t?t._root:null;return jr(r,o,n,[r.value])}function xE(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Jn(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Md(e)?e:t.get(e):r}function jr(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Hn(t);return e.children.forEach(s=>{RE(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>$r(a,n.getContext(s),o)),o}function RE(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=OE(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new ds(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?jr(e,t,a?a.children:null,r,o):jr(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Gn(a.outlet.component,s))}else s&&$r(t,a,o),o.canActivateChecks.push(new ds(r)),i.component?jr(e,null,a?a.children:null,r,o):jr(e,null,n,r,o);return o}function OE(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!en(e.url,t.url);case"pathParamsOrQueryParamsChange":return!en(e.url,t.url)||!Je(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Nu(e,t)||!Je(e.queryParams,t.queryParams);case"paramsChange":default:return!Nu(e,t)}}function $r(e,t,n){let r=Hn(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?$r(s,t.children.getContext(i),n):$r(s,null,n):$r(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Gn(t.outlet.component,o)):n.canDeactivateChecks.push(new Gn(null,o)):n.canDeactivateChecks.push(new Gn(null,o))}function no(e){return typeof e=="function"}function kE(e){return typeof e=="boolean"}function FE(e){return e&&no(e.canLoad)}function PE(e){return e&&no(e.canActivate)}function LE(e){return e&&no(e.canActivateChild)}function VE(e){return e&&no(e.canDeactivate)}function jE(e){return e&&no(e.canMatch)}function zp(e){return e instanceof Ke||e?.name==="EmptyError"}var Xi=Symbol("INITIAL_VALUE");function Zn(){return Ee(e=>Po(e.map(t=>t.pipe(Xe(1),Ys(Xi)))).pipe(S(t=>{for(let n of t)if(n!==!0){if(n===Xi)return Xi;if(n===!1||BE(n))return n}return!0}),we(t=>t!==Xi),Xe(1)))}function BE(e){return Gr(e)||e instanceof Yr}function UE(e,t){return Y(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?b(A(m({},n),{guardsResult:!0})):HE(s,r,o,e).pipe(Y(a=>a&&kE(a)?$E(r,i,e,t):b(a)),S(a=>A(m({},n),{guardsResult:a})))})}function HE(e,t,n,r){return $(e).pipe(Y(o=>QE(o.component,o.route,n,t,r)),He(o=>o!==!0,!0))}function $E(e,t,n,r){return $(t).pipe(ht(o=>pn(GE(o.route.parent,r),zE(o.route,r),WE(e,o.path,n),qE(e,o.route,n))),He(o=>o!==!0,!0))}function zE(e,t){return e!==null&&t&&t(new _u(e)),b(!0)}function GE(e,t){return e!==null&&t&&t(new Iu(e)),b(!0)}function qE(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return b(!0);let o=r.map(i=>Lo(()=>{let s=to(t)??n,a=Jn(i,s),c=PE(a)?a.canActivate(t,e):be(s,()=>a(t,e));return Rt(c).pipe(He())}));return b(o).pipe(Zn())}function WE(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>xE(s)).filter(s=>s!==null).map(s=>Lo(()=>{let a=s.guards.map(c=>{let u=to(s.node)??n,l=Jn(c,u),d=LE(l)?l.canActivateChild(r,e):be(u,()=>l(r,e));return Rt(d).pipe(He())});return b(a).pipe(Zn())}));return b(i).pipe(Zn())}function QE(e,t,n,r,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return b(!0);let s=i.map(a=>{let c=to(t)??o,u=Jn(a,c),l=VE(u)?u.canDeactivate(e,t,n,r):be(c,()=>u(e,t,n,r));return Rt(l).pipe(He())});return b(s).pipe(Zn())}function ZE(e,t,n,r){let o=t.canLoad;if(o===void 0||o.length===0)return b(!0);let i=o.map(s=>{let a=Jn(s,e),c=FE(a)?a.canLoad(t,n):be(e,()=>a(t,n));return Rt(c)});return b(i).pipe(Zn(),Gp(r))}function Gp(e){return Us(ee(t=>{if(typeof t!="boolean")throw ls(e,t)}),S(t=>t===!0))}function JE(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return b(!0);let i=o.map(s=>{let a=Jn(s,e),c=jE(a)?a.canMatch(t,n):be(e,()=>a(t,n));return Rt(c)});return b(i).pipe(Zn(),Gp(r))}var Kr=class{segmentGroup;constructor(t){this.segmentGroup=t||null}},Xr=class extends Error{urlTree;constructor(t){super(),this.urlTree=t}};function Un(e){return hn(new Kr(e))}function YE(e){return hn(new D(4e3,!1))}function KE(e){return hn(Hp(!1,Se.GuardRejected))}var Ou=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return b(r);if(o.numberOfChildren>1||!o.children[T])return YE(`${t.redirectTo}`);o=o.children[T]}}applyRedirectCommands(t,n,r,o,i){if(typeof n!="string"){let a=n,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:g,title:y}=o,v=be(i,()=>a({params:f,data:g,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:y}));if(v instanceof lt)throw new Xr(v);n=v}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new Xr(s);return s}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new lt(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 V(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new D(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}},ku={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function XE(e,t,n,r,o){let i=qp(e,t,n);return i.matched?(r=CE(t,r),JE(r,t,n,o).pipe(S(s=>s===!0?i:m({},ku)))):b(i)}function qp(e,t,n){if(t.path==="**")return eI(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?m({},ku):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||Qw)(n,e,t);if(!o)return m({},ku);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 eI(e){return{matched:!0,parameters:e.length>0?_p(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function wp(e,t,n,r){return n.length>0&&rI(e,n,r)?{segmentGroup:new V(t,nI(r,new V(n,e.children))),slicedSegments:[]}:n.length===0&&oI(e,n,r)?{segmentGroup:new V(e.segments,tI(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new V(e.segments,e.children),slicedSegments:n}}function tI(e,t,n,r){let o={};for(let i of n)if(hs(e,t,i)&&!r[Ue(i)]){let s=new V([],{});o[Ue(i)]=s}return m(m({},r),o)}function nI(e,t){let n={};n[T]=t;for(let r of e)if(r.path===""&&Ue(r)!==T){let o=new V([],{});n[Ue(r)]=o}return n}function rI(e,t,n){return n.some(r=>hs(e,t,r)&&Ue(r)!==T)}function oI(e,t,n){return n.some(r=>hs(e,t,r))}function hs(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function iI(e,t,n){return t.length===0&&!e.children[n]}var Fu=class{};function sI(e,t,n,r,o,i,s="emptyOnly"){return new Pu(e,t,n,r,o,s,i).recognize()}var aI=31,Pu=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Ou(this.urlSerializer,this.urlTree)}noMatchError(t){return new D(4002,`'${t.segmentGroup}'`)}recognize(){let t=wp(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(S(({children:n,rootSnapshot:r})=>{let o=new Me(r,n),i=new us("",o),s=hE(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(t){let n=new zn([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),T,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,T,n).pipe(S(r=>({children:r,rootSnapshot:n})),ft(r=>{if(r instanceof Xr)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 Me?[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 $(i).pipe(ht(s=>{let a=r.children[s],c=wE(n,s);return this.processSegmentGroup(t,c,a,s,o)}),Js((s,a)=>(s.push(...a),s)),pt(null),Zs(),Y(s=>{if(s===null)return Un(r);let a=Wp(s);return cI(a),b(a)}))}processSegment(t,n,r,o,i,s,a){return $(n).pipe(ht(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a).pipe(ft(u=>{if(u instanceof Kr)return b(null);throw u}))),He(c=>!!c),ft(c=>{if(zp(c))return iI(r,o,i)?b(new Fu):Un(r);throw c}))}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return Ue(r)!==s&&(s===T||!hs(o,i,r))?Un(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):Un(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=qp(n,o,i);if(!c)return Un(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>aI&&(this.allowRedirects=!1));let f=new zn(i,u,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Ep(o),Ue(o),o.component??o._loadedComponent??null,o,Ip(o)),g=cs(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(g.params),f.data=Object.freeze(g.data);let y=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(o,y).pipe(Y(v=>this.processSegment(t,r,n,v.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a=XE(n,r,o,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(Ee(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,o).pipe(Ee(({routes:u})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=c,g=new zn(h,d,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Ep(r),Ue(r),r.component??r._loadedComponent??null,r,Ip(r)),y=cs(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(y.params),g.data=Object.freeze(y.data);let{segmentGroup:v,slicedSegments:I}=wp(n,h,f,u);if(I.length===0&&v.hasChildren())return this.processChildren(l,u,v,g).pipe(S(L=>new Me(g,L)));if(u.length===0&&I.length===0)return b(new Me(g,[]));let j=Ue(r)===i;return this.processSegment(l,u,v,I,j?T:i,!0,g).pipe(S(L=>new Me(g,L instanceof Me?[L]:[])))}))):Un(n)))}getChildConfig(t,n,r){return n.children?b({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?b({routes:n._loadedRoutes,injector:n._loadedInjector}):ZE(t,n,r,this.urlSerializer).pipe(Y(o=>o?this.configLoader.loadChildren(t,n).pipe(ee(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):KE(n))):b({routes:[],injector:t})}};function cI(e){e.sort((t,n)=>t.value.outlet===T?-1:n.value.outlet===T?1:t.value.outlet.localeCompare(n.value.outlet))}function uI(e){let t=e.value.routeConfig;return t&&t.path===""}function Wp(e){let t=[],n=new Set;for(let r of e){if(!uI(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=Wp(r.children);t.push(new Me(r.value,o))}return t.filter(r=>!n.has(r))}function Ep(e){return e.data||{}}function Ip(e){return e.resolve||{}}function lI(e,t,n,r,o,i){return Y(s=>sI(e,t,n,r,s.extractedUrl,o,i).pipe(S(({state:a,tree:c})=>A(m({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function dI(e,t){return Y(n=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return b(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 Qp(c))s.add(u);let a=0;return $(s).pipe(ht(c=>i.has(c)?fI(c,r,e,t):(c.data=cs(c,c.parent,e).resolve,b(void 0))),ee(()=>a++),gn(1),Y(c=>a===s.size?b(n):Ce))})}function Qp(e){let t=e.children.map(n=>Qp(n)).flat();return[e,...t]}function fI(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!Bp(o)&&(i[eo]=o.title),hI(i,e,t,r).pipe(S(s=>(e._resolvedData=s,e.data=cs(e,e.parent,n).resolve,null)))}function hI(e,t,n,r){let o=fu(e);if(o.length===0)return b({});let i={};return $(o).pipe(Y(s=>pI(e[s],t,n,r).pipe(He(),ee(a=>{if(a instanceof Yr)throw ls(new zr,a);i[s]=a}))),gn(1),Qs(i),ft(s=>zp(s)?Ce:hn(s)))}function pI(e,t,n,r){let o=to(t)??r,i=Jn(e,o),s=i.resolve?i.resolve(t,n):be(o,()=>i(t,n));return Rt(s)}function lu(e){return Ee(t=>{let n=e(t);return n?$(n).pipe(S(()=>t)):b(t)})}var Zp=(()=>{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===T);return r}getResolvedTitleForRoute(n){return n.data[eo]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>p(gI),providedIn:"root"})}return e})(),gI=(()=>{class e extends Zp{title;constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(M(mp))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Uu=new C("",{providedIn:"root",factory:()=>({})}),mI=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Ne({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(r,o){r&1&&Ze(0,"router-outlet")},dependencies:[bE],encapsulation:2})}return e})();function Hu(e){let t=e.children&&e.children.map(Hu),n=t?A(m({},e),{children:t}):m({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==T&&(n.component=mI),n}var $u=new C(""),yI=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(Gc);loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return b(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=Rt(n.loadComponent()).pipe(S(Jp),ee(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Pt(()=>{this.componentLoaders.delete(n)})),o=new fn(r,()=>new X).pipe(dn());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return b({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=vI(r,this.compiler,n,this.onLoadEndListener).pipe(Pt(()=>{this.childrenLoaders.delete(r)})),s=new fn(i,()=>new X).pipe(dn());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function vI(e,t,n,r){return Rt(e.loadChildren()).pipe(S(Jp),Y(o=>o instanceof Cr||Array.isArray(o)?b(o):$(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($u,[],{optional:!0,self:!0}).flat()),{routes:s.map(Hu),injector:i}}))}function DI(e){return e&&typeof e=="object"&&"default"in e}function Jp(e){return DI(e)?e.default:e}var zu=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>p(CI),providedIn:"root"})}return e})(),CI=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),wI=new C("");var EI=new C(""),II=(()=>{class e{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new X;transitionAbortSubject=new X;configLoader=p(yI);environmentInjector=p(ge);urlSerializer=p(Vu);rootContexts=p(fs);location=p(Nr);inputBindingEnabled=p(Bu,{optional:!0})!==null;titleStrategy=p(Zp);options=p(Uu,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(zu);createViewTransition=p(wI,{optional:!0});navigationErrorHandler=p(EI,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>b(void 0);rootComponentType=null;constructor(){let n=o=>this.events.next(new wu(o)),r=o=>this.events.next(new Eu(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(A(m(m({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new oe({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Hr,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(we(i=>i.id!==0),S(i=>A(m({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),Ee(i=>{let s=!1,a=!1;return b(i).pipe(Ee(c=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",Se.SupersededByNewNavigation),Ce;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?A(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 nn(c.id,this.urlSerializer.serialize(c.rawUrl),d,mu.IgnoredSameUrlNavigation)),c.resolve(!1),Ce}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return b(c).pipe(Ee(d=>{let h=this.transitions?.getValue();return this.events.next(new Wr(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?Ce:Promise.resolve(d)}),lI(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ee(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=A(m({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new is(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:g,extras:y}=c,v=new Wr(d,this.urlSerializer.serialize(h),f,g);this.events.next(v);let I=Vp(this.rootComponentType).snapshot;return this.currentTransition=i=A(m({},c),{targetSnapshot:I,urlAfterRedirects:h,extras:A(m({},y),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,b(i)}else{let d="";return this.events.next(new nn(c.id,this.urlSerializer.serialize(c.extractedUrl),d,mu.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Ce}}),ee(c=>{let u=new yu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),S(c=>(this.currentTransition=i=A(m({},c),{guards:NE(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),i)),UE(this.environmentInjector,c=>this.events.next(c)),ee(c=>{if(i.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw ls(this.urlSerializer,c.guardsResult);let u=new vu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),we(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",Se.GuardRejected),!1)),lu(c=>{if(c.guards.canActivateChecks.length)return b(c).pipe(ee(u=>{let l=new Du(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),Ee(u=>{let l=!1;return b(u).pipe(dI(this.paramsInheritanceStrategy,this.environmentInjector),ee({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(u,"",Se.NoDataFromResolver)}}))}),ee(u=>{let l=new Cu(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}))}),lu(c=>{let u=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(ee(h=>{l.component=h}),S(()=>{})));for(let h of l.children)d.push(...u(h));return d};return Po(u(c.targetSnapshot.root)).pipe(pt(null),Xe(1))}),lu(()=>this.afterPreactivation()),Ee(()=>{let{currentSnapshot:c,targetSnapshot:u}=i,l=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return l?$(l).pipe(S(()=>i)):b(i)}),S(c=>{let u=_E(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=i=A(m({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,i}),ee(()=>{this.events.next(new Zr)}),AE(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Xe(1),ee({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new tn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Ks(this.transitionAbortSubject.pipe(ee(c=>{throw c}))),Pt(()=>{!s&&!a&&this.cancelNavigationTransition(i,"",Se.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),ft(c=>{if(a=!0,$p(c))this.events.next(new ut(i.id,this.urlSerializer.serialize(i.extractedUrl),c.message,c.cancellationCode)),TE(c)?this.events.next(new Wn(c.url,c.navigationBehaviorOptions)):i.resolve(!1);else{let u=new Qr(i.id,this.urlSerializer.serialize(i.extractedUrl),c,i.targetSnapshot??void 0);try{let l=be(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof Yr){let{message:d,cancellationCode:h}=ls(this.urlSerializer,l);this.events.next(new ut(i.id,this.urlSerializer.serialize(i.extractedUrl),d,h)),this.events.next(new Wn(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(u),c}catch(l){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(l)}}return Ce}))}))}cancelNavigationTransition(n,r,o){let i=new ut(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function bI(e){return e!==Hr}var _I=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>p(MI),providedIn:"root"})}return e})(),Lu=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},MI=(()=>{class e extends Lu{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Sr(e)))(o||e)}})();static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Yp=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>p(SI),providedIn:"root"})}return e})(),SI=(()=>{class e extends Yp{location=p(Nr);urlSerializer=p(Vu);options=p(Uu,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=p(zu);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new lt;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=Vp(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof Wr)this.stateMemento=this.createStateMemento();else if(n instanceof nn)this.rawUrlTree=r.initialUrl;else if(n instanceof is){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 ut&&(n.code===Se.GuardRejected||n.code===Se.NoDataFromResolver)?this.restoreHistory(r):n instanceof Qr?this.restoreHistory(r,!0):n instanceof tn&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=n instanceof lt?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let i=this.browserPageId,s=m(m({},r.extras.state),this.generateNgRouterState(r.id,i));this.location.replaceState(o,"",s)}else{let i=m(m({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",i)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.currentUrlTree===n.finalUrl&&i===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Sr(e)))(o||e)}})();static \u0275prov=w({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 TI(e,t){e.events.pipe(we(n=>n instanceof tn||n instanceof ut||n instanceof Qr||n instanceof nn),S(n=>n instanceof tn||n instanceof nn?Br.COMPLETE:(n instanceof ut?n.code===Se.Redirect||n.code===Se.SupersededByNewNavigation:!1)?Br.REDIRECTING:Br.FAILED),we(n=>n!==Br.REDIRECTING),Xe(1)).subscribe(()=>{t()})}var AI={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},NI={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Kp=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(Li);stateManager=p(Yp);options=p(Uu,{optional:!0})||{};pendingTasks=p(Et);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(II);urlSerializer=p(Vu);location=p(Nr);urlHandlingStrategy=p(zu);_events=new X;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(_I);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p($u,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(Bu,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}eventsSubscription=new W;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 ut&&r.code!==Se.Redirect&&r.code!==Se.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof tn)this.navigated=!0;else if(r instanceof Wn){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"||bI(o.source)},s);this.scheduleNavigation(a,Hr,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}RI(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),Hr,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(Hu),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=kp(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return Fp(d,n,l,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Gr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Hr,null,r)}navigate(n,r={skipLocationChange:!1}){return xI(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({},AI):r===!1?o=m({},NI):o=r,Gr(n))return yp(this.currentUrlTree,n,o);let i=this.parseUrl(n);return yp(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 TI(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function xI(e){for(let t=0;tn.\u0275providers)])}function kI(e){return e.routerState.root}function FI(){let e=p(We);return t=>{let n=e.get(_t);if(t!==n.components[0])return;let r=e.get(Kp),o=e.get(PI);e.get(LI)===1&&r.initialNavigation(),e.get(VI,null,N.Optional)?.setUpPreloading(),e.get(OI,null,N.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var PI=new C("",{factory:()=>new X}),LI=new C("",{providedIn:"root",factory:()=>1});var VI=new C("");var eg=[];var tg={providers:[Lh({eventCoalescing:!0}),Xp(eg),op()]};var ps=class e{books=je(["Angular","React","Vue"]);firstBook=Tt({source:this.books,computation:t=>t[0]});overrideFirstBook(){this.firstBook.set("jQuery")}changeBookList(){this.books.set(["Next.js","Svelte","Nuxt"])}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ne({type:e,selectors:[["app-book-list"]],decls:4,vars:1,consts:[[1,"btn","btn-primary",3,"click"]],template:function(n,r){n&1&&(H(0,"p"),G(1),z(),H(2,"button",0),ye("click",function(){return r.changeBookList()}),G(3,"Change Book List"),z()),n&2&&(te(),xe("First book in list: ",r.firstBook(),""))},encapsulation:2})};var ms=class e{book=Ln.required();ratingChange=Af();title=St(()=>this.book().title);rating=Tt({source:this.book,computation:t=>t.rating});doRateUp(){let t=this.rating()+1;this.rating.set(t),this.ratingChange.emit({isbn:this.book().isbn,newRating:t})}doRateDown(){let t=this.rating()-1;this.rating.set(t),this.ratingChange.emit({isbn:this.book().isbn,newRating:t})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ne({type:e,selectors:[["app-book"]],inputs:{book:[1,"book"]},outputs:{ratingChange:"ratingChange"},decls:15,vars:7,consts:[[1,"card","mb-4"],[1,"card-body","bg-light"],[1,"img-thumbnail","float-end",3,"src"],[1,"card-title"],[1,"badge","bg-secondary","me-2"],[1,"btn","btn-primary","me-2",3,"click","disabled"],[1,"btn","btn-primary",3,"click","disabled"]],template:function(n,r){if(n&1){let o=ji();$c(0),H(1,"div",0)(2,"div",1),Ze(3,"img",2),H(4,"div",3)(5,"h2"),G(6),H(7,"span",4),G(8),z()()(),H(9,"p"),G(10),z(),H(11,"button",5),ye("click",function(){return _r(o),Mr(r.doRateDown())}),G(12,"-1"),z(),H(13,"button",6),ye("click",function(){return _r(o),Mr(r.doRateUp())}),G(14,"+1"),z()()()}if(n&2){let o=r.book();te(3),Bc("src","//api.angular.schule/avatar/",o.rating,"",Bf),te(3),xe(" ",r.title()," "),te(2),Bi(r.rating()),te(2),Bi(o.description),te(),Mt("disabled",r.rating()<=1),te(2),Mt("disabled",r.rating()>=5)}},encapsulation:2})};var ys=class e{http=p(Xc);getAllBooks(){return this.http.get("https://api.angular.schule/books")}getSingleBook(t){return this.http.get(`https://api.angular.schule/books/${t}`)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};function Gu(e,t){let n=!t?.manualCleanup;n&&!t?.injector&&zd(Gu);let r=n?t?.injector?.get(Pn)??p(Pn):null,o=jI(t?.equal),i;t?.requireSync?i=je({kind:0},{equal:o}):i=je({kind:1,value:t?.initialValue},{equal:o});let s=e.subscribe({next:a=>i.set({kind:1,value:a}),error:a=>{if(t?.rejectErrors)throw a;i.set({kind:2,error:a})}});if(t?.requireSync&&i().kind===0)throw new D(601,!1);return r?.onDestroy(s.unsubscribe.bind(s)),St(()=>{let a=i();switch(a.kind){case 1:return a.value;case 2:throw a.error;case 0:throw new D(601,!1)}},{equal:t?.equal})}function jI(e=Object.is){return(t,n)=>t.kind===1&&n.kind===1&&e(t.value,n.value)}var BI=(e,t)=>t.isbn;function UI(e,t){if(e&1){let n=ji();H(0,"app-book",2),ye("ratingChange",function(o){_r(n);let i=Oh();return Mr(i.handleRatingChange(o))}),z()}if(e&2){let n=t.$implicit;Mt("book",n)}}function HI(e,t){e&1&&G(0,` No books available -`)}var vs=class e{bookStore=p(ys);books=Tt(Gu(this.bookStore.getAllBooks(),{initialValue:[]}));changeOrder(){this.books.update(t=>t.toReversed())}handleRatingChange({isbn:t,newRating:n}){this.books.update(r=>r.map(o=>o.isbn===t?A(m({},o),{rating:n}):o))}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ne({type:e,selectors:[["app-dashboard"]],decls:9,vars:2,consts:[[1,"btn","btn-primary","mb-4",3,"click"],[3,"book"],[3,"ratingChange","book"]],template:function(n,r){n&1&&(H(0,"button",0),ye("click",function(){return r.changeOrder()}),G(1,"Change order (locally)"),z(),Nh(2,UI,1,1,"app-book",1,BI,!1,HI,1,0),H(5,"p")(6,"strong"),G(7,"Amount of books:"),z(),G(8),z()),n&2&&(te(2),xh(r.books()),te(6),xe(" ",r.books().length,` -`))},dependencies:[ms],encapsulation:2})};var ug=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}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)}static \u0275fac=function(r){return new(r||e)(ne(Vn),ne(Wt))};static \u0275dir=it({type:e})}return e})(),$I=(()=>{class e extends ug{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Sr(e)))(o||e)}})();static \u0275dir=it({type:e,features:[jn]})}return e})(),lg=new C("");var zI={provide:lg,useExisting:Er(()=>Is),multi:!0};function GI(){let e=at()?at().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var qI=new C(""),Is=(()=>{class e extends ug{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!GI())}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)}static \u0275fac=function(r){return new(r||e)(ne(Vn),ne(Wt),ne(qI,8))};static \u0275dir=it({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&&ye("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)})},standalone:!1,features:[zc([zI]),jn]})}return e})();var WI=new C(""),QI=new C("");function dg(e){return e!=null}function fg(e){return Jt(e)?$(e):e}function hg(e){let t={};return e.forEach(n=>{t=n!=null?m(m({},t),n):t}),Object.keys(t).length===0?null:t}function pg(e,t){return t.map(n=>n(e))}function ZI(e){return!e.validate}function gg(e){return e.map(t=>ZI(t)?t:n=>t.validate(n))}function JI(e){if(!e)return null;let t=e.filter(dg);return t.length==0?null:function(n){return hg(pg(n,t))}}function mg(e){return e!=null?JI(gg(e)):null}function YI(e){if(!e)return null;let t=e.filter(dg);return t.length==0?null:function(n){let r=pg(n,t).map(fg);return Ws(r).pipe(S(hg))}}function yg(e){return e!=null?YI(gg(e)):null}function ng(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function KI(e){return e._rawValidators}function XI(e){return e._rawAsyncValidators}function qu(e){return e?Array.isArray(e)?e:[e]:[]}function Cs(e,t){return Array.isArray(e)?e.includes(t):e===t}function rg(e,t){let n=qu(t);return qu(e).forEach(o=>{Cs(n,o)||n.push(o)}),n}function og(e,t){return qu(t).filter(n=>!Cs(e,n))}var ws=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=mg(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=yg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},Wu=class extends ws{name;get formDirective(){return null}get path(){return null}},ao=class extends ws{_parent=null;name=null;valueAccessor=null},Qu=class{_cd;constructor(t){this._cd=t}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}},eb={"[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"},Jx=A(m({},eb),{"[class.ng-submitted]":"isSubmitted"}),vg=(()=>{class e extends Qu{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(ne(ao,2))};static \u0275dir=it({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&jc("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)},standalone:!1,features:[jn]})}return e})();var ro="VALID",Ds="INVALID",Yn="PENDING",oo="DISABLED",Xn=class{},Es=class extends Xn{value;source;constructor(t,n){super(),this.value=t,this.source=n}},io=class extends Xn{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},so=class extends Xn{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Kn=class extends Xn{status;source;constructor(t,n){super(),this.status=t,this.source=n}};function tb(e){return(bs(e)?e.validators:e)||null}function nb(e){return Array.isArray(e)?mg(e):e||null}function rb(e,t){return(bs(t)?t.asyncValidators:e)||null}function ob(e){return Array.isArray(e)?yg(e):e||null}function bs(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Zu=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return st(this.statusReactive)}set status(t){st(()=>this.statusReactive.set(t))}_status=St(()=>this.statusReactive());statusReactive=je(void 0);get valid(){return this.status===ro}get invalid(){return this.status===Ds}get pending(){return this.status==Yn}get disabled(){return this.status===oo}get enabled(){return this.status!==oo}errors;get pristine(){return st(this.pristineReactive)}set pristine(t){st(()=>this.pristineReactive.set(t))}_pristine=St(()=>this.pristineReactive());pristineReactive=je(!0);get dirty(){return!this.pristine}get touched(){return st(this.touchedReactive)}set touched(t){st(()=>this.touchedReactive.set(t))}_touched=St(()=>this.touchedReactive());touchedReactive=je(!1);get untouched(){return!this.touched}_events=new X;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(rg(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(rg(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(og(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(og(t,this._rawAsyncValidators))}hasValidator(t){return Cs(this._rawValidators,t)}hasAsyncValidator(t){return Cs(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(A(m({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new so(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new so(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(A(m({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new io(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new io(!0,r))}markAsPending(t={}){this.status=Yn;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Kn(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(A(m({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=oo,this.errors=null,this._forEachChild(o=>{o.disable(A(m({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Es(this.value,r)),this._events.next(new Kn(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(A(m({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=ro,this._forEachChild(r=>{r.enable(A(m({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(A(m({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ro||this.status===Yn)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Es(this.value,n)),this._events.next(new Kn(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(A(m({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?oo:ro}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Yn,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=fg(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Kn(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new ie,this.statusChanges=new ie}_calculateStatus(){return this._allControlsDisabled()?oo:this.errors?Ds:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Yn)?Yn:this._anyControlsHaveStatus(Ds)?Ds:ro}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new io(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new so(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){bs(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=nb(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=ob(this._rawAsyncValidators)}};var Dg=new C("CallSetDisabledState",{providedIn:"root",factory:()=>Ju}),Ju="always";function ib(e,t){return[...t.path,e]}function sb(e,t,n=Ju){cb(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),ub(e,t),db(e,t),lb(e,t),ab(e,t)}function ig(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function ab(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function cb(e,t){let n=KI(e);t.validator!==null?e.setValidators(ng(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=XI(e);t.asyncValidator!==null?e.setAsyncValidators(ng(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();ig(t._rawValidators,o),ig(t._rawAsyncValidators,o)}function ub(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Cg(e,t)})}function lb(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Cg(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Cg(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function db(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function fb(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function hb(e){return Object.getPrototypeOf(e.constructor)===$I}function pb(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===Is?n=i:hb(i)?r=i:o=i}),o||r||n||null}function sg(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function ag(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var gb=class extends Zu{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(tb(n),rb(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),bs(n)&&(n.nonNullable||n.initialValueIsDefault)&&(ag(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){sg(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){sg(this._onDisabledChange,t)}_forEachChild(t){}_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(t){ag(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var mb={provide:ao,useExisting:Er(()=>Yu)},cg=Promise.resolve(),Yu=(()=>{class e extends ao{_changeDetectorRef;callSetDisabledState;control=new gb;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new ie;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=pb(this,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),fb(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){sb(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){cg.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Ui(r);cg.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?ib(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(ne(Wu,9),ne(WI,10),ne(QI,10),ne(lg,10),ne(Yt,8),ne(Dg,8))};static \u0275dir=it({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[zc([mb]),jn,br]})}return e})();var yb=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Zt({type:e});static \u0275inj=Gt({})}return e})();var wg=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Dg,useValue:n.callSetDisabledState??Ju}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Zt({type:e});static \u0275inj=Gt({imports:[yb]})}return e})();var _s=class e{selectedBook=Ln.required();amount=Tt({source:this.selectedBook,computation:()=>1});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ne({type:e,selectors:[["app-shopping-cart"]],inputs:{selectedBook:[1,"selectedBook"]},decls:3,vars:2,consts:[[3,"ngModelChange","ngModel"]],template:function(n,r){n&1&&(H(0,"p"),G(1),z(),H(2,"input",0),Hc("ngModelChange",function(i){return kh(r.amount,i)||(r.amount=i),i}),z()),n&2&&(te(),xe("Book: ",r.selectedBook().title,""),te(),Uc("ngModel",r.amount))},dependencies:[wg,Is,vg,Yu],encapsulation:2})};var Ms=[{isbn:"123",title:"Angular",description:"The big practice book \u2013 basics, advanced topics and best practices.",price:36.9,rating:5},{isbn:"456",title:"Vue.js",description:"The green framework",price:32.9,rating:3}],Ss=class e{title="Book Rating";selectedBook=je(Ms[0]);toggleBook(){this.selectedBook.update(t=>t===Ms[0]?Ms[1]:Ms[0])}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ne({type:e,selectors:[["app-root"]],decls:17,vars:2,consts:[[1,"container"],["width","100","alt","Angular Logo","src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAMAAADukpxMAAAC5VBMVEUAAADXIcDlF4rTE57fJsHDCp/tJq3oLc+aHfOaG/DLLPHDKO7PGbTsH4mfIPbyCkyeIfrME6fdJcH2CEayIefxJZbeB3bzI3/4LqzoCV2+Ju34BED4CEP4MsPzJYX3A0T0Jo32Akf1KJr4BUH0KJ/yEFr0LLLyAU/0AUv1LretJvv5McD2L7z1Ck6qJfujI/q1Jvb0K6yxJvqfIfj4L7P0KqjzEFL2C0b1KJf1J5T0C1PzBVP0KaT1DUj1Mcv3LayuJfe5J/T1Mcb0D072Ckv3B0f4MsfyLb32Kp3KLPOZHfP0LK/0JYm4KPecIPeZG+31L8H4MLjzJICnJPvzC1f0D0vDKvTOLfLGK/TzMc/2BEryInjtAVjxBVf1BU21JfKxJfatI/S+KPHxMtenI/ejIfb4MLu9KfX3M8/zEFbwAVKVHfeeHvPyLLfzI33xC1vCKfH5Mb2VGu+kHu33LKXMB4/vBVvyLsL4Lq/3K6HcBXe0J/mqJPfHKvCwI+71M9bvAVWKGPXLK/CfHe7xMMzyL8j3LKjrAVylIfOxJPL2M9PiHaDoAWCZH/iPGvXSLvKhH/LFKe6fG+rvM9/xM9vPBoryIXTtCGPtBl/AKvW1JO7aJMXcGaGRGfGtIvCpHunxMdPcHazdF5vWBX/gA2/wCl+7JvDBJ+2qIOy4JOrmGI27KffcJMHZIbvHCJfhFpGpIvSoIfCuIOneHKbSFqb0JZDlAWT5L7XjHJz1J5G4JfD0NNrbH7TVFqLYFp3iAmn4MsvXHbTgIKzYGafeFpbSBYTpBGTuNOLUHrrfIbPXG63ECJvKB5OVHPPmGpLYBHvyIG2yIeryNN7eIrrdA3ONGPK+JuykHenPFau7JezjBnHbJsrQGbHiH6bbCH3TGa3rBGHiGZbSB4jkBGzoGYvWB4PgB3XnB2znBGi1I+rTHLXlG5fqCGjvMtv0MtPACJ/pGYeSG/buNOXwNOLsNOfqGYTxIocTxvAdAAAAHHRSTlMA/kBAIv0QRoJj3LmThDzlv7+6tZ9g/N+/l49QGIOLwAAADzRJREFUeNrs00kITVEcx/E/vcyEKCklSRkyK0qmhXlMGVbmoVBEIVOZMiTjxpBhYwhlSMaFYWEoCxQJWSMWyNrv/M6559zj3uc5592H5Hv/99r6+D3yv//973//+weqJwE1kr+1r18lqN275W/sKwqF/IWUz5/hqC+Bkr+O8hlxkFDI30X5zDhInGRqW/kL+vI5gUg0BMmf7Qu6fz8aItrBRsmf6wsdiBSpEjLqT1Ge0kEIKRIrSRx/hvJURYhJoqLDSeIp8Qy2fz8R8ZCGhDjHtGnTGktU8Qw6ULSD+YsA8vsoN5GFsGogjTwHJGyK1LqbZNw8cMBBKJHo/EESyJSaUshgB1Bqkf37q4RsdP9HDKSWlA0bNjiITylJfIRs9AfRHRRUPIN5EGQgUkV0GImF0IGk4OpRwXzIRzrqSzVBkUj8QVijIhk7kJPMIcVAPiqKFAVZ5w+CFiw4e1aKCQhmKXPmwOIgSKrLQNYBss6H0IGk+hYijwLIhjkoBZGqIWwdyhuEFcDIo7BCBmFkWIjnSCTjxkl8t29nIJ8+bdhwnBJWjEPcInaQjAPVk5hKtxElLHEgTmIqBlKfDgbHUkLoQM6BZkQyfAkhDBBHkQIiRAeIkmQGYWvWrAn7FxqOPAiaTojueKIoCNLIOpbq6GA/OEIowxkpzEqmT08ciBB8pZDgcBBKZs92EOdgveVXatcuYVjJoIWDyNAU3HFGR0GQRr5j9tLZiBB/EDpQZQYjhGkIo0NHBy3HS1JMexVj714D0Q421HMQwkq/wMDrVqEDoygK8ylSFGQvGEgz0pChmtGzZ0/r+DmlfteuXQnxVhmEc2UkJSlMYnKDUIG0AzkH69Kli2Rr3ZWR4q8CSHmKFJZhpCCzAWFZCBTKkaXUX7ZMOzKrMMfAJY7Nx6djkKIlDkKHjg4NSe+RR1mGyMiuMmzYMFCsBO/m6bjNkByX4iFksJM+hBLLsJDuWUiWMgwvIAhfQ9mcNB2vFJmBnDoFBCOC9dTBgVMOy+ieheRTcLYtP1qkeMgplVnkpFHQoSEzoRiCJ3FkIPOXlaGkIWqVLYO20MCk2MBgmoG8QRAYzDmykPllKN4iOLQ5oUjB0eEgWcdMLDJEPcaRDwHFs0zEqyVpC6sRpLGFnNSDnPQdCD+sIbiUo4F4TZpEiuNQMhGUiRNhmehBEB2FZyDPwWBmkBnawYYg50DyI4QSR+m2DApidKCstBRWA0hjMpB23IBixgwyyjomZyHIUbqpQKHDUoBxEKlBhKg05MYNOIykjCML8ShQsLRjJQ5tWVlriHMAwqyDpR0ZyNWrk8pYJnZzkmErSSGmJLWIjgzE/bCYc+RBfomiI0RYbSAvX9JBCLODWAgduRBSbISk8iGoJLXpOSGQpCDbZ6QHWTvEOvIhGUuK0W3EiIm4lEV0tYNAQQgl2y2EFOvIQvr2zVA6d+5sJSNwkKBaQ4QOlAOZZRxr6ciHtOnLNMdANAVnJEhTcGKrGQSUQ4DQAQgOEDp+BqlvIHYZKEygKAYh1iK1iw5O4iCQzJo5axYduslzlaIHIV4gOEpn9SBrWaJGSSU1ixA6zhxCdGiIykKAUI4ek3vID61aRYTFdO7b2WsJILjfAGlGxxnsoVIQRggIDHPgekCSAwHFCxSHGQHKiBE4JjUNijNnICEEDh9Cx1wwoEDNcyCepRM/qUU6L1lCypJwyCsJqvEZ3SFmGBZCh4M0yIWQggcEdZ1UVsJoCXUEQiQLgSQD6cHkxwYPJoMpwRg1SCdiDMQVDClVAVmfdbAe5SDIWMbw28krDakX6oiZxEHWb18PyFFKLlyAoyKEjQGED/60CvVZ0ilqkHjIO+NA2w0jBOJ2YcC4ogZp8ipS8u5dAjmKtARZRmUIh8ElWQfeiEEiIe+QB6GjMmTr1q0+pVevXmNchoInDtIyVAIIegKGlXiQedrRJwthPiRrQRLW4cOvDkdNQocHucC0wzDKQVjiGMwnjYmDoHCIGMgTOlhqkHkcpA8cWUgbEFyAbO1lc5ZgR8tzlGAWCQsMLuIgF3Tb5s5jPRQjB1JagQyjH65fP1C2Zi0S1jlAdBKYGcRJLmrHtm0aAgQhmRQkjaGFWQowEgxJKHUiIMg5LioGIXRUhNCiFKBkLaEOFjVJqyzkIhghEAYDI0Y9LHwQJylJWHCoLgFCB8o6mkum1avTjoE+BRhcMOQ8ECxqksRx+vTR04DQYSGG0iwPgkBYjWfFwIG4gf0G9vOTwJ49M5A6h+sEQ0RDLq0/jcDwISbJhbigYJA4Ta9wCCS0EBIqUQxALp1OJJ6jEoQMShwmmaZeqIOdVxAWPAkYDoJ+gIzvM77iInzTGFzMIFzkvIHUD4VcYtrhQxYrB5JsI0eOXI0X39UdV3fsCErHgX6Rgzw7f/58HU2RwOjI/LT2LJ7HPcpBXB1tADlO+CAMkHPn6xQAoWTPvD175i2mohKEpSQ4cjpKWC0fPnz2kIugeAkhlCy/uG0PcpBdlSD5FgnsIQLkFiCqaMgxOpZfXL4ce7DFi6GgZFcAxBYFuXULm5giJceOHaMEEDPIzyEdVPj780tIhyodXOQWMo5YCFIQZAYhhI58SH7wxEKYkzx48CAY0hYOBTm2/JchTfv3798B4WMJPDwRjrt3HQSBcf5BHVAkMEAYIcaB6MiH1AWE5c0SA0GE0HGHg0RAWhkHo6MSRDQjy+E2Ehodd+0id+48wCQxEgdB3iDlIAMSQ0aEN8LBTlgIKPGQFy/o2GQhcJSHmPIsEpp1nLh1C5eS1A+XlIc0/wkk1yOBvUGGcuIEJHcIeU9JPGQTMhAzSLPKEAcCSUKjA6ccpNwh5L2iSGhwOAgdo8eP3jVaQSSv67o8TASElMuG8giDMEoiIMhA6EBQLNq1qBzEdeX6lQH6UcU4SLmsGKQ80hAUPgkhcDBCECCLKkHAQHRcUV+Jg1x+cxmZH1dK0kQCe+FDRjM4ykLa4wGCD47BEgzZuVNLALGbPIKEECRRkn0+ZFFZSHsESvsr+FxRT5IEQxgWgQQZCaoWwoyjAsQGBy4aYig6MhggsZJ9+/aRkUBGV4T4RTiuXSODGck9LXn76P3r19VB4Ki8yNhcSjgEGQYguntgkPL2NWohgTWwkAmjJ1SCNB07tr1+ED/RDks5AoxiXL53jwxCkIQGhwqQyovIWJcyjf3W/lsM5MMHJwHlyBFSEClaIsGTaMiEBPK4EsS3IAmtRAgDA6cCBNERKSFj34QJwZBv39utf5Ao4ziO41/KQqE/RFREkURELa4FSpO1NUUule4WFAQ6NNXUULRlDbrotTjkEtKiDl0umd6QEBHhn86EAnVo7/N8fve7333vuef+PNXz57h3p3MvPt+fik8oyE9mKYCwd+wvIXAgOgxkJwBy6uopExnUSAiIo4y/HX9iHJCwfyEBA+3c2dlpl4oZhLVAcyrEIIuLZJBCy+jouNvkjZGEhdBx/6OBoANVIDppHIJoWf25yknG4WAzCrIvhMQHkf8HObJoAoTB4STc5A0gnyEJD7nfOOSYNNrkom3VSWiZHZ2ZmQEEfUaNQwSOBiDXwg9CyORkRQkXISW8xC4CiYE8k8pdU4WCfP8+iUoh2dWsocxiEi8DQdJwYSBMQkBAoWVqcWrKSLJZA0FKcigsBBnHf4LQ4SSAIEACJdJoHXQQMgZG3RBpuO3t7RLKFMsyQpCBoDAQsZCxj2PPdmpC7trCQJxkahLXRYnJScJP0g4HIWNjYARCLCC8g9lJiCHFt0noSSKC/N7WFOuw5zXLHORrmNuqA7K/RHEzjMOrSClswiiZzc6a/nYSOpgERAD+ed/CQZSFECthBQgKDblfD+QmogRJw+3dVb3dFZKGK4U8Coa4JKF5DkRHPZBjktQKkGVA2iWgFAxSgCwvL2OQtlRDhIsQItUhI0gSXAHyqApkhCUdIrUh6XCI52gKSEdNSDocInVBciO5xEM6luuB5HKS+GpCcmikCSBHwEjDICI1IJLLpeKyakPS4hBpQRIXHO0SWHocHkSaAiJVISlyNA+koxokRQ6RpoF0SKtWrVq1apWMzpZ3D70q9sL0i/3w+oI2NjaOfvPK5/Nra2vPh4aGFhZev/6wR+KJDr+EOYmmaEkeAQIJITFJgiHMSmhREkCQmgQQSJIFASVgFEKc5AElapI98UjoGDyLBr2IuO590eEsL8sk65AoyFrstzVY3nWbo2jJpnsmDzzJRD7/3kxiIPskhoId9xQFEkOZp4STEEIJJ4n5tgarLFKcZXh4GBDkSeYpWV8HRE8yZCeROLpQlidR0WElKysrkMxvQgKIlUxMuOfuQbYk+rSi+0J3oRJJf3+/oQBCCiWcRL0S96skJsigorgcBBHCALES+0qWOIm7ra3oj8sJrEPXQ4eRICVZL0qWlgixk0R/WxrSdaGru7vXR+npsRQnIWQTkEzm0ydA8Ep4W3aSyCF7C4ZeV1cXOAqCtATPxE2S4SSEQGIhUUuMwCG68YGEFSXMnZc+rswXTgJJrM+9t7ecQgI+TkNGiURPkslkNiyEkoU4JnEA58CXCgwWLLGTGMhQTJA+a+jro6NMUU3C906Im4S3FTnkMP//rss2rRnwSSpNMqEm2YpUQoWCqIgY6OoZ8EseQ0LInIPEeFuliEtMQQZsPQPnnORh/y1AHj9eefp0fhoS9Uje27+3Ip1EM4xDFyS5NWwg84RAoiFR35ZD6Cquco6U27cfIgNZMYsUJlmiBBD3A7hNoulgJcdFVFTcuIGPYRgJILcJuWVua3p6em5uzn9bgEQ5yXEyfJArpstXoGBuk3M9FSH+24r6tSuAzVmAYBaCihDkIOa29CQSbQqiHExJHAQREnxbuyXyHEI7NEVPUgtySOLoYlXI6dOEnB84XzaJhkDiIBJLmnLSyycBBBkIJQZiJRk3CSASZxbBaDl5pbOzU0lQHbe1X2IODF0nI6QocZM4iL4tib+DPggDxC9xk2iIJCNL0BpAUABEPRJJTn4HIkRLKj2SNklUZ5BHwHfmJGoS3w/g45K0+kgBBClJ2W1piCSxMyWVXlcgJJmMMoqGIAexEklwbU7SqSWEqEkk2R0ukwTcVtIZ6r7cJPq2AJF0pCV+iKSnAAkhByVNnQia5KGkLf3eLUTSmH8SSWtlEElvey0k3QwvQpCkv87mYHgdllatWrVqpfoDd3j22Ol6d1oAAAAASUVORK5CYII="],[3,"selectedBook"],[1,"btn","btn-primary",3,"click"]],template:function(n,r){n&1&&(H(0,"div",0)(1,"h1"),Ze(2,"img",1),G(3),z(),Ze(4,"app-dashboard")(5,"hr"),H(6,"code"),G(7,"BookListComponent"),z(),G(8," example: "),Ze(9,"app-book-list")(10,"hr"),H(11,"code"),G(12,"ShoppingCartComponent"),z(),G(13," example: "),Ze(14,"app-shopping-cart",2),H(15,"button",3),ye("click",function(){return r.toggleBook()}),G(16,"Toggle book"),z()()),n&2&&(te(3),xe(" ",r.title," "),te(11),Mt("selectedBook",r.selectedBook()))},dependencies:[vs,ps,_s],encapsulation:2})};gp(Ss,tg).catch(e=>console.error(e)); diff --git a/main-GZUVWUQA.js b/main-GZUVWUQA.js new file mode 100644 index 0000000..6b4f10f --- /dev/null +++ b/main-GZUVWUQA.js @@ -0,0 +1,10 @@ +var Eg=Object.defineProperty,Ig=Object.defineProperties;var bg=Object.getOwnPropertyDescriptors;var Qu=Object.getOwnPropertySymbols;var _g=Object.prototype.hasOwnProperty,Mg=Object.prototype.propertyIsEnumerable;var Zu=(e,t,n)=>t in e?Eg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||={})_g.call(t,n)&&Zu(e,n,t[n]);if(Qu)for(var n of Qu(t))Mg.call(t,n)&&Zu(e,n,t[n]);return e},A=(e,t)=>Ig(e,bg(t));var Xn=(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 ao(e,t){return Object.is(e,t)}var J=null,io=!1,Ts=1,fe=Symbol("SIGNAL");function R(e){let t=J;return J=e,t}function Ju(){return J}var rn={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function nr(e){if(io)throw new Error("");if(J===null)return;J.consumerOnSignalRead(e);let t=J.nextProducerIndex++;if(lo(J),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function As(e){lo(e);for(let t=0;t0}function lo(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function el(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function tl(e){return e.producerNode!==void 0}function nl(e){let t=Object.create(Ag);t.computation=e;let n=()=>{if(on(t),nr(t),t.value===so)throw t.error;return t.value};return n[fe]=t,n}var Ms=Symbol("UNSET"),Ss=Symbol("COMPUTING"),so=Symbol("ERRORED"),Ag=A(m({},rn),{value:Ms,dirty:!0,error:null,equal:ao,producerMustRecompute(e){return e.value===Ms||e.value===Ss},producerRecomputeValue(e){if(e.value===Ss)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Ss;let n=rr(e),r;try{r=e.computation()}catch(o){r=so,e.error=o}finally{co(e,n)}if(t!==Ms&&t!==so&&r!==so&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function Ng(){throw new Error}var rl=Ng;function ol(){rl()}function il(e){rl=e}var xg=null;function sl(e){let t=Object.create(Rs);t.value=e;let n=()=>(nr(t),t.value);return n[fe]=t,n}function or(e,t){Ku()||ol(),e.equal(e.value,t)||(e.value=t,Rg(e))}function xs(e,t){Ku()||ol(),or(e,t(e.value))}var Rs=A(m({},rn),{equal:ao,value:void 0});function Rg(e){e.version++,Sg(),Yu(e),xg?.()}function _(e){return typeof e=="function"}function sn(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 fo=sn(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 ir(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var W=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(_(r))try{r()}catch(i){t=i instanceof fo?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{al(i)}catch(s){t=t??[],s instanceof fo?t=[...t,...s.errors]:t.push(s)}}if(t)throw new fo(t)}}add(t){var n;if(t&&t!==this)if(this.closed)al(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)&&ir(n,t)}remove(t){let{_finalizers:n}=this;n&&ir(n,t),t instanceof e&&t._removeParent(this)}};W.EMPTY=(()=>{let e=new W;return e.closed=!0,e})();var Os=W.EMPTY;function ho(e){return e instanceof W||e&&"closed"in e&&_(e.remove)&&_(e.add)&&_(e.unsubscribe)}function al(e){_(e)?e():e.unsubscribe()}var Oe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var an={setTimeout(e,t,...n){let{delegate:r}=an;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=an;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function po(e){an.setTimeout(()=>{let{onUnhandledError:t}=Oe;if(t)t(e);else throw e})}function sr(){}var cl=ks("C",void 0,void 0);function ul(e){return ks("E",void 0,e)}function ll(e){return ks("N",e,void 0)}function ks(e,t,n){return{kind:e,value:t,error:n}}var Ot=null;function cn(e){if(Oe.useDeprecatedSynchronousErrorHandling){let t=!Ot;if(t&&(Ot={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Ot;if(Ot=null,n)throw r}}else e()}function dl(e){Oe.useDeprecatedSynchronousErrorHandling&&Ot&&(Ot.errorThrown=!0,Ot.error=e)}var kt=class extends W{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,ho(t)&&t.add(this)):this.destination=Fg}static create(t,n,r){return new un(t,n,r)}next(t){this.isStopped?Ps(ll(t),this):this._next(t)}error(t){this.isStopped?Ps(ul(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ps(cl,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()}}},Og=Function.prototype.bind;function Fs(e,t){return Og.call(e,t)}var Ls=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){go(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){go(r)}else go(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){go(n)}}},un=class extends kt{constructor(t,n,r){super();let o;if(_(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Oe.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Fs(t.next,i),error:t.error&&Fs(t.error,i),complete:t.complete&&Fs(t.complete,i)}):o=t}this.destination=new Ls(o)}};function go(e){Oe.useDeprecatedSynchronousErrorHandling?dl(e):po(e)}function kg(e){throw e}function Ps(e,t){let{onStoppedNotification:n}=Oe;n&&an.setTimeout(()=>n(e,t))}var Fg={closed:!0,next:sr,error:kg,complete:sr};var ln=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ve(e){return e}function Vs(...e){return js(e)}function js(e){return e.length===0?ve:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var F=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Lg(n)?n:new un(n,r,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(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=fl(r),new r((o,i)=>{let s=new un({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)}[ln](){return this}pipe(...n){return js(n)(this)}toPromise(n){return n=fl(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 fl(e){var t;return(t=e??Oe.Promise)!==null&&t!==void 0?t:Promise}function Pg(e){return e&&_(e.next)&&_(e.error)&&_(e.complete)}function Lg(e){return e&&e instanceof kt||Pg(e)&&ho(e)}function Bs(e){return _(e?.lift)}function P(e){return t=>{if(Bs(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function O(e,t,n,r,o){return new Us(e,t,n,r,o)}var Us=class extends kt{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 dn(){return P((e,t)=>{let n=null;e._refCount++;let r=O(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var fn=class extends F{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Bs(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 W;let n=this.getSubject();t.add(this.source.subscribe(O(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=W.EMPTY)}return t}refCount(){return dn()(this)}};var hl=sn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var X=(()=>{class e extends F{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new mo(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new hl}next(n){cn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){cn(()=>{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(){cn(()=>{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?Os:(this.currentObservers=null,i.push(n),new W(()=>{this.currentObservers=null,ir(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new F;return n.source=this,n}}return e.create=(t,n)=>new mo(t,n),e})(),mo=class extends X{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:Os}};var oe=class extends X{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 De=new F(e=>e.complete());function pl(e){return e&&_(e.schedule)}function gl(e){return e[e.length-1]}function yo(e){return _(gl(e))?e.pop():void 0}function dt(e){return pl(gl(e))?e.pop():void 0}function yl(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 ml(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 Ft(e){return this instanceof Ft?(this.v=e,this):new Ft(e)}function vl(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){r[f]&&(o[f]=function(y){return new Promise(function(v,I){i.push([f,y,v,I])>1||c(f,y)})},g&&(o[f]=g(o[f])))}function c(f,g){try{u(r[f](g))}catch(y){h(i[0][3],y)}}function u(f){f.value instanceof Ft?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 Dl(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 ml=="function"?ml(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 vo=e=>e&&typeof e.length=="number"&&typeof e!="function";function Do(e){return _(e?.then)}function Co(e){return _(e[ln])}function wo(e){return Symbol.asyncIterator&&_(e?.[Symbol.asyncIterator])}function Eo(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 Vg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Io=Vg();function bo(e){return _(e?.[Io])}function _o(e){return vl(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Ft(n.read());if(o)return yield Ft(void 0);yield yield Ft(r)}}finally{n.releaseLock()}})}function Mo(e){return _(e?.getReader)}function Q(e){if(e instanceof F)return e;if(e!=null){if(Co(e))return jg(e);if(vo(e))return Bg(e);if(Do(e))return Ug(e);if(wo(e))return Cl(e);if(bo(e))return Hg(e);if(Mo(e))return $g(e)}throw Eo(e)}function jg(e){return new F(t=>{let n=e[ln]();if(_(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Bg(e){return new F(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,po)})}function Hg(e){return new F(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Cl(e){return new F(t=>{zg(e,t).catch(n=>t.error(n))})}function $g(e){return Cl(_o(e))}function zg(e,t){var n,r,o,i;return yl(this,void 0,void 0,function*(){try{for(n=Dl(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 he(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 So(e,t=0){return P((n,r)=>{n.subscribe(O(r,o=>he(r,e,()=>r.next(o),t),()=>he(r,e,()=>r.complete(),t),o=>he(r,e,()=>r.error(o),t)))})}function To(e,t=0){return P((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function wl(e,t){return Q(e).pipe(To(t),So(t))}function El(e,t){return Q(e).pipe(To(t),So(t))}function Il(e,t){return new F(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function bl(e,t){return new F(n=>{let r;return he(n,t,()=>{r=e[Io](),he(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)}),()=>_(r?.return)&&r.return()})}function Ao(e,t){if(!e)throw new Error("Iterable cannot be null");return new F(n=>{he(n,t,()=>{let r=e[Symbol.asyncIterator]();he(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function _l(e,t){return Ao(_o(e),t)}function Ml(e,t){if(e!=null){if(Co(e))return wl(e,t);if(vo(e))return Il(e,t);if(Do(e))return El(e,t);if(wo(e))return Ao(e,t);if(bo(e))return bl(e,t);if(Mo(e))return _l(e,t)}throw Eo(e)}function $(e,t){return t?Ml(e,t):Q(e)}function b(...e){let t=dt(e);return $(e,t)}function hn(e,t){let n=_(e)?e:()=>e,r=o=>o.error(n());return new F(t?o=>t.schedule(r,0,o):r)}function Hs(e){return!!e&&(e instanceof F||_(e.lift)&&_(e.subscribe))}var Ye=sn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function S(e,t){return P((n,r)=>{let o=0;n.subscribe(O(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Gg}=Array;function qg(e,t){return Gg(t)?e(...t):e(t)}function No(e){return S(t=>qg(e,t))}var{isArray:Wg}=Array,{getPrototypeOf:Qg,prototype:Zg,keys:Jg}=Object;function xo(e){if(e.length===1){let t=e[0];if(Wg(t))return{args:t,keys:null};if(Yg(t)){let n=Jg(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Yg(e){return e&&typeof e=="object"&&Qg(e)===Zg}function Ro(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Oo(...e){let t=dt(e),n=yo(e),{args:r,keys:o}=xo(e);if(r.length===0)return $([],t);let i=new F(Kg(r,t,o?s=>Ro(o,s):ve));return n?i.pipe(No(n)):i}function Kg(e,t,n=ve){return r=>{Sl(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c{let u=$(e[c],t),l=!1;u.subscribe(O(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Sl(e,t,n){e?he(n,e,t):t()}function Tl(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&t.complete()},f=y=>u{i&&t.next(y),u++;let v=!1;Q(n(y,l++)).subscribe(O(t,I=>{o?.(I),i?f(I):t.next(I)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;c.length&&ug(I)):g(I)}h()}catch(I){t.error(I)}}))};return e.subscribe(O(t,f,()=>{d=!0,h()})),()=>{a?.()}}function Y(e,t,n=1/0){return _(t)?Y((r,o)=>S((i,s)=>t(r,i,o,s))(Q(e(r,o))),n):(typeof t=="number"&&(n=t),P((r,o)=>Tl(r,o,e,n)))}function $s(e=1/0){return Y(ve,e)}function Al(){return $s(1)}function pn(...e){return Al()($(e,dt(e)))}function ko(e){return new F(t=>{Q(e()).subscribe(t)})}function zs(...e){let t=yo(e),{args:n,keys:r}=xo(e),o=new F(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?Ro(r,a):a),i.complete())}))}});return t?o.pipe(No(t)):o}function Ce(e,t){return P((n,r)=>{let o=0;n.subscribe(O(r,i=>e.call(t,i,o++)&&r.next(i)))})}function ft(e){return P((t,n)=>{let r=null,o=!1,i;r=t.subscribe(O(n,void 0,void 0,s=>{i=Q(e(s,ft(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Nl(e,t,n,r,o){return(i,s)=>{let a=n,c=t,u=0;i.subscribe(O(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 ht(e,t){return _(t)?Y(e,t,1):Y(e,1)}function pt(e){return P((t,n)=>{let r=!1;t.subscribe(O(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Ke(e){return e<=0?()=>De:P((t,n)=>{let r=0;t.subscribe(O(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Gs(e){return S(()=>e)}function Fo(e=Xg){return P((t,n)=>{let r=!1;t.subscribe(O(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Xg(){return new Ye}function Pt(e){return P((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function He(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ce((o,i)=>e(o,i,r)):ve,Ke(1),n?pt(t):Fo(()=>new Ye))}function gn(e){return e<=0?()=>De:P((t,n)=>{let r=[];t.subscribe(O(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function qs(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ce((o,i)=>e(o,i,r)):ve,gn(1),n?pt(t):Fo(()=>new Ye))}function Ws(e,t){return P(Nl(e,t,arguments.length>=2,!0))}function Qs(...e){let t=dt(e);return P((n,r)=>{(t?pn(e,n,t):pn(e,n)).subscribe(r)})}function we(e,t){return P((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(O(r,c=>{o?.unsubscribe();let u=0,l=i++;Q(e(c,l)).subscribe(o=O(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Zs(e){return P((t,n)=>{Q(e).subscribe(O(n,()=>n.complete(),sr)),!n.closed&&t.subscribe(n)})}function ee(e,t,n){let r=_(e)||t||n?{next:e,error:t,complete:n}:e;return r?P((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(O(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)}))}):ve}var vd="https://g.co/ng/security#xss",D=class extends Error{code;constructor(t,n){super(yi(t,n)),this.code=t}};function yi(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var Dd=Symbol("InputSignalNode#UNSET"),em=A(m({},Rs),{transformFn:void 0,applyValueToInputSignal(e,t){or(e,t)}});function Cd(e,t){let n=Object.create(em);n.value=e,n.transformFn=t?.transform;function r(){if(nr(n),n.value===Dd)throw new D(-950,!1);return n.value}return r[fe]=n,r}function vi(e){return{toString:e}.toString()}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 tm(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function pe(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(pe).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 xl(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var nm=B({__forward_ref__:B});function wr(e){return e.__forward_ref__=wr,e.toString=function(){return pe(this())},e}function ae(e){return wd(e)?e():e}function wd(e){return typeof e=="function"&&e.hasOwnProperty(nm)&&e.__forward_ref__===wr}function w(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Gt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Di(e){return Rl(e,Id)||Rl(e,bd)}function Ed(e){return Di(e)!==null}function Rl(e,t){return e.hasOwnProperty(t)?e[t]:null}function rm(e){let t=e&&(e[Id]||e[bd]);return t||null}function Ol(e){return e&&(e.hasOwnProperty(kl)||e.hasOwnProperty(om))?e[kl]:null}var Id=B({\u0275prov:B}),kl=B({\u0275inj:B}),bd=B({ngInjectableDef:B}),om=B({ngInjectorDef:B}),C=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=w({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function _d(e){return e&&!!e.\u0275providers}var im=B({\u0275cmp:B}),sm=B({\u0275dir:B}),am=B({\u0275pipe:B}),cm=B({\u0275mod:B}),qo=B({\u0275fac:B}),ur=B({__NG_ELEMENT_ID__:B}),Fl=B({__NG_ENV_ID__:B});function ec(e){return typeof e=="string"?e:e==null?"":String(e)}function um(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():ec(e)}function lm(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new D(-200,e)}function tc(e,t){throw new D(-201,!1)}var N=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(N||{}),la;function Md(){return la}function Te(e){let t=la;return la=e,t}function Sd(e,t,n){let r=Di(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&N.Optional)return null;if(t!==void 0)return t;tc(e,"Injector")}var dm={},lr=dm,fm="__NG_DI_FLAG__",Wo="ngTempTokenPath",hm="ngTokenPath",pm=/\n/gm,gm="\u0275",Pl="__source",Dn;function mm(){return Dn}function gt(e){let t=Dn;return Dn=e,t}function ym(e,t=N.Default){if(Dn===void 0)throw new D(-203,!1);return Dn===null?Sd(e,void 0,t):Dn.get(e,t&N.Optional?null:void 0,t)}function M(e,t=N.Default){return(Md()||ym)(ae(e),t)}function p(e,t=N.Default){return M(e,Ci(t))}function Ci(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function da(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):pe(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(pm,` + `)}`}function wn(e,t){let n=e.hasOwnProperty(qo);return n?e[qo]:null}function nc(e,t){e.forEach(n=>Array.isArray(n)?nc(n,t):t(n))}function Td(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Qo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function wm(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 Em(e,t,n){let r=Er(e,t);return r>=0?e[r|1]=n:(r=~r,wm(e,r,t,n)),r}function Js(e,t){let n=Er(e,t);if(n>=0)return e[n|1]}function Er(e,t){return Im(e,t,1)}function Im(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<{n.push(s)};return nc(t,s=>{let a=s;fa(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Pd(o,i),n}function Pd(e,t){for(let n=0;n{t(i,r)})}}function fa(e,t,n,r){if(e=ae(e),!e)return!1;let o=null,i=Ol(e),s=!i&&Vt(e);if(!i&&!s){let c=e.ngModule;if(i=Ol(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)fa(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{nc(i.imports,l=>{fa(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Pd(u,t)}if(!a){let u=wn(o)||(()=>new o);t({provide:o,useFactory:u,deps:Ae},o),t({provide:Nd,useValue:o,multi:!0},o),t({provide:In,useValue:()=>M(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;rc(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function rc(e,t){for(let n of e)_d(n)&&(n=n.\u0275providers),Array.isArray(n)?rc(n,t):t(n)}var _m=B({provide:String,useValue:B});function Ld(e){return e!==null&&typeof e=="object"&&_m in e}function Mm(e){return!!(e&&e.useExisting)}function Sm(e){return!!(e&&e.useFactory)}function bn(e){return typeof e=="function"}function Tm(e){return!!e.useClass}var wi=new C(""),Bo={},Am={},Ys;function oc(){return Ys===void 0&&(Ys=new Zo),Ys}var ge=class{},dr=class extends ge{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,pa(t,s=>this.processProvider(s)),this.records.set(Ad,mn(void 0,this)),o.has("environment")&&this.records.set(ge,mn(void 0,this));let i=this.records.get(wi);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Nd,Ae,N.Self))}destroy(){ar(this),this._destroyed=!0;let t=R(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(),R(t)}}onDestroy(t){return ar(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){ar(this);let n=gt(this),r=Te(void 0),o;try{return t()}finally{gt(n),Te(r)}}get(t,n=lr,r=N.Default){if(ar(this),t.hasOwnProperty(Fl))return t[Fl](this);r=Ci(r);let o,i=gt(this),s=Te(void 0);try{if(!(r&N.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=km(t)&&Di(t);u&&this.injectableDefInScope(u)?c=mn(ha(t),Bo):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&N.Self?oc():this.parent;return n=r&N.Optional&&n===lr?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Wo]=a[Wo]||[]).unshift(pe(t)),i)throw a;return Dm(a,t,"R3InjectorError",this.source)}else throw a}finally{Te(s),gt(i)}}resolveInjectorInitializers(){let t=R(null),n=gt(this),r=Te(void 0),o;try{let i=this.get(In,Ae,N.Self);for(let s of i)s()}finally{gt(n),Te(r),R(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(pe(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=ae(t);let n=bn(t)?t:ae(t&&t.provide),r=xm(t);if(!bn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=mn(void 0,Bo,!0),o.factory=()=>da(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=R(null);try{return n.value===Bo&&(n.value=Am,n.value=n.factory()),typeof n.value=="object"&&n.value&&Om(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{R(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ae(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 ha(e){let t=Di(e),n=t!==null?t.factory:wn(e);if(n!==null)return n;if(e instanceof C)throw new D(204,!1);if(e instanceof Function)return Nm(e);throw new D(204,!1)}function Nm(e){if(e.length>0)throw new D(204,!1);let n=rm(e);return n!==null?()=>n.factory(e):()=>new e}function xm(e){if(Ld(e))return mn(void 0,e.useValue);{let t=Vd(e);return mn(t,Bo)}}function Vd(e,t,n){let r;if(bn(e)){let o=ae(e);return wn(o)||ha(o)}else if(Ld(e))r=()=>ae(e.useValue);else if(Sm(e))r=()=>e.useFactory(...da(e.deps||[]));else if(Mm(e))r=()=>M(ae(e.useExisting));else{let o=ae(e&&(e.useClass||e.provide));if(Rm(e))r=()=>new o(...da(e.deps));else return wn(o)||ha(o)}return r}function ar(e){if(e.destroyed)throw new D(205,!1)}function mn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Rm(e){return!!e.deps}function Om(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function km(e){return typeof e=="function"||typeof e=="object"&&e instanceof C}function pa(e,t){for(let n of e)Array.isArray(n)?pa(n,t):n&&_d(n)?pa(n.\u0275providers,t):t(n)}function Ie(e,t){e instanceof dr&&ar(e);let n,r=gt(e),o=Te(void 0);try{return t()}finally{gt(r),Te(o)}}function jd(){return Md()!==void 0||mm()!=null}function Bd(e){if(!jd())throw new D(-203,!1)}function Fm(e){return typeof e=="function"}var rt=0,x=1,E=2,le=3,Fe=4,Le=5,fr=6,Jo=7,ce=8,_n=9,Xe=10,K=11,hr=12,Ll=13,kn=14,Pe=15,Mn=16,yn=17,Sn=18,Ei=19,Ud=20,mt=21,Ks=22,Yo=23,Ee=24,et=25,Hd=1;var jt=7,Ko=8,Xo=9,ue=10,ei=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(ei||{});function yt(e){return Array.isArray(e)&&typeof e[Hd]=="object"}function ot(e){return Array.isArray(e)&&e[Hd]===!0}function $d(e){return(e.flags&4)!==0}function Ii(e){return e.componentOffset>-1}function ic(e){return(e.flags&1)===1}function vt(e){return!!e.template}function ga(e){return(e[E]&512)!==0}var ma=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function zd(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var Ir=(()=>{let e=()=>Gd;return e.ngInherit=!0,e})();function Gd(e){return e.type.prototype.ngOnChanges&&(e.setInput=Lm),Pm}function Pm(){let e=Wd(this),t=e?.current;if(t){let n=e.previous;if(n===En)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Lm(e,t,n,r,o){let i=this.declaredInputs[r],s=Wd(e)||Vm(e,{previous:En,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new ma(u&&u.currentValue,n,c===En),zd(e,t,o,n)}var qd="__ngSimpleChanges__";function Wd(e){return e[qd]||null}function Vm(e,t){return e[qd]=t}var Vl=null;var $e=function(e,t,n){Vl?.(e,t,n)},jm="svg",Bm="math";function Ge(e){for(;Array.isArray(e);)e=e[rt];return e}function Qd(e,t){return Ge(t[e])}function Ve(e,t){return Ge(t[e.index])}function sc(e,t){return e.data[t]}function wt(e,t){let n=t[e];return yt(n)?n:n[rt]}function ac(e){return(e[E]&128)===128}function Um(e){return ot(e[le])}function pr(e,t){return t==null?null:e[t]}function Zd(e){e[yn]=0}function cc(e){e[E]&1024||(e[E]|=1024,ac(e)&&_i(e))}function Hm(e,t){for(;e>0;)t=t[kn],e--;return t}function bi(e){return!!(e[E]&9216||e[Ee]?.dirty)}function ya(e){e[Xe].changeDetectionScheduler?.notify(9),e[E]&64&&(e[E]|=1024),bi(e)&&_i(e)}function _i(e){e[Xe].changeDetectionScheduler?.notify(0);let t=Bt(e);for(;t!==null&&!(t[E]&8192||(t[E]|=8192,!ac(t)));)t=Bt(t)}function Jd(e,t){if((e[E]&256)===256)throw new D(911,!1);e[mt]===null&&(e[mt]=[]),e[mt].push(t)}function $m(e,t){if(e[mt]===null)return;let n=e[mt].indexOf(t);n!==-1&&e[mt].splice(n,1)}function Bt(e){let t=e[le];return ot(t)?t[le]:t}var k={lFrame:af(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var va=!1;function zm(){return k.lFrame.elementDepthCount}function Gm(){k.lFrame.elementDepthCount++}function qm(){k.lFrame.elementDepthCount--}function Yd(){return k.bindingsEnabled}function Wm(){return k.skipHydrationRootTNode!==null}function Qm(e){return k.skipHydrationRootTNode===e}function Zm(){k.skipHydrationRootTNode=null}function U(){return k.lFrame.lView}function be(){return k.lFrame.tView}function Kd(e){return k.lFrame.contextLView=e,e[ce]}function Xd(e){return k.lFrame.contextLView=null,e}function _e(){let e=ef();for(;e!==null&&e.type===64;)e=e.parent;return e}function ef(){return k.lFrame.currentTNode}function Jm(){let e=k.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function br(e,t){let n=k.lFrame;n.currentTNode=e,n.isParent=t}function tf(){return k.lFrame.isParent}function Ym(){k.lFrame.isParent=!1}function nf(){return va}function jl(e){let t=va;return va=e,t}function Km(e){return k.lFrame.bindingIndex=e}function Mi(){return k.lFrame.bindingIndex++}function Xm(e){let t=k.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function ey(){return k.lFrame.inI18n}function ty(e,t){let n=k.lFrame;n.bindingIndex=n.bindingRootIndex=e,Da(t)}function ny(){return k.lFrame.currentDirectiveIndex}function Da(e){k.lFrame.currentDirectiveIndex=e}function ry(e){let t=k.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function rf(e){k.lFrame.currentQueryIndex=e}function oy(e){let t=e[x];return t.type===2?t.declTNode:t.type===1?e[Le]:null}function of(e,t,n){if(n&N.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&N.Host);)if(o=oy(i),o===null||(i=i[kn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=k.lFrame=sf();return r.currentTNode=t,r.lView=e,!0}function uc(e){let t=sf(),n=e[x];k.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function sf(){let e=k.lFrame,t=e===null?null:e.child;return t===null?af(e):t}function af(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 cf(){let e=k.lFrame;return k.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var uf=cf;function lc(){let e=cf();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 iy(e){return(k.lFrame.contextLView=Hm(e,k.lFrame.contextLView))[ce]}function qt(){return k.lFrame.selectedIndex}function Ut(e){k.lFrame.selectedIndex=e}function dc(){let e=k.lFrame;return sc(e.tView,e.selectedIndex)}function sy(){return k.lFrame.currentNamespace}var lf=!0;function fc(){return lf}function hc(e){lf=e}function ay(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Gd(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 pc(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[yn]+=65536),(a>14>16&&(e[E]&3)===t&&(e[E]+=16384,Bl(a,i)):Bl(a,i)}var Cn=-1,Ht=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function uy(e){return e instanceof Ht}function ly(e){return(e.flags&8)!==0}function dy(e){return(e.flags&16)!==0}function Ca(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}function ni(e,t){let n=py(e),r=t;for(;n>0;)r=r[kn],n--;return r}var Ea=!0;function Hl(e){let t=Ea;return Ea=e,t}var gy=256,hf=gy-1,pf=5,my=0,ze={};function yy(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(ur)&&(r=n[ur]),r==null&&(r=n[ur]=my++);let o=r&hf,i=1<>pf)]|=i}function ri(e,t){let n=gf(e,t);if(n!==-1)return n;let r=t[x];r.firstCreatePass&&(e.injectorIndex=t.length,ta(r.data,e),ta(t,null),ta(r.blueprint,null));let o=gc(e,t),i=e.injectorIndex;if(ff(o)){let s=ti(o),a=ni(o,t),c=a[x].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function ta(e,t){e.push(0,0,0,0,0,0,0,0,t)}function gf(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function gc(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=Cf(o),r===null)return Cn;if(n++,o=o[kn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Cn}function Ia(e,t,n){yy(e,t,n)}function mf(e,t,n){if(n&N.Optional||e!==void 0)return e;tc(t,"NodeInjector")}function yf(e,t,n,r){if(n&N.Optional&&r===void 0&&(r=null),!(n&(N.Self|N.Host))){let o=e[_n],i=Te(void 0);try{return o?o.get(t,r,n&N.Optional):Sd(t,r,n&N.Optional)}finally{Te(i)}}return mf(r,t,n)}function vf(e,t,n,r=N.Default,o){if(e!==null){if(t[E]&2048&&!(r&N.Self)){let s=Ey(e,t,n,r,ze);if(s!==ze)return s}let i=Df(e,t,n,r,ze);if(i!==ze)return i}return yf(t,n,r,o)}function Df(e,t,n,r,o){let i=Cy(n);if(typeof i=="function"){if(!of(t,e,r))return r&N.Host?mf(o,n,r):yf(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&N.Optional))tc(n);else return s}finally{uf()}}else if(typeof i=="number"){let s=null,a=gf(e,t),c=Cn,u=r&N.Host?t[Pe][Le]:null;for((a===-1||r&N.SkipSelf)&&(c=a===-1?gc(e,t):t[a+8],c===Cn||!zl(r,!1)?a=-1:(s=t[x],a=ti(c),t=ni(c,t)));a!==-1;){let l=t[x];if($l(i,a,l.data)){let d=vy(a,t,n,s,r,u);if(d!==ze)return d}c=t[a+8],c!==Cn&&zl(r,t[x].data[a+8]===u)&&$l(i,a,t)?(s=l,a=ti(c),t=ni(c,t)):a=-1}}return o}function vy(e,t,n,r,o,i){let s=t[x],a=s.data[e+8],c=r==null?Ii(a)&&Ea:r!=s&&(a.type&3)!==0,u=o&N.Host&&i===a,l=Dy(a,s,n,c,u);return l!==null?Tn(t,s,l,a):ze}function Dy(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>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&&vt(f)&&f.type===n)return c}return null}function Tn(e,t,n,r){let o=e[n],i=t.data;if(uy(o)){let s=o;s.resolving&&lm(um(i[n]));let a=Hl(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?Te(s.injectImpl):null,l=of(e,r,N.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&ay(n,i[n],t)}finally{u!==null&&Te(u),Hl(a),s.resolving=!1,uf()}}return o}function Cy(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(ur)?e[ur]:void 0;return typeof t=="number"?t>=0?t&hf:wy:t}function $l(e,t,n){let r=1<>pf)]&r)}function zl(e,t){return!(e&N.Self)&&!(e&N.Host&&t)}var Lt=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return vf(this._tNode,this._lView,t,Ci(r),n)}};function wy(){return new Lt(_e(),U())}function _r(e){return vi(()=>{let t=e.prototype.constructor,n=t[qo]||ba(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[qo]||ba(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function ba(e){return wd(e)?()=>{let t=ba(ae(e));return t&&t()}:wn(e)}function Ey(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[E]&2048&&!(s[E]&512);){let a=Df(i,s,n,r|N.Self,ze);if(a!==ze)return a;let c=i.parent;if(!c){let u=s[Ud];if(u){let l=u.get(n,ze,r);if(l!==ze)return l}c=Cf(s),s=s[kn]}i=c}return o}function Cf(e){let t=e[x],n=t.type;return n===2?t.declTNode:n===1?e[Le]:null}function Gl(e,t=null,n=null,r){let o=wf(e,t,n,r);return o.resolveInjectorInitializers(),o}function wf(e,t=null,n=null,r,o=new Set){let i=[n||Ae,bm(e)];return r=r||(typeof e=="object"?void 0:pe(e)),new dr(i,t||oc(),r||null,o)}var qe=class e{static THROW_IF_NOT_FOUND=lr;static NULL=new Zo;static create(t,n){if(Array.isArray(t))return Gl({name:""},n,t,"");{let r=t.name??"";return Gl({name:r},t.parent,t.providers,r)}}static \u0275prov=w({token:e,providedIn:"any",factory:()=>M(Ad)});static __NG_ELEMENT_ID__=-1};var Iy=new C("");Iy.__NG_ELEMENT_ID__=e=>{let t=_e();if(t===null)throw new D(204,!1);if(t.type&2)return t.value;if(e&N.Optional)return null;throw new D(204,!1)};var Ef=!1,Fn=(()=>{class e{static __NG_ELEMENT_ID__=by;static __NG_ENV_ID__=n=>n}return e})(),_a=class extends Fn{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return Jd(this._lView,t),()=>$m(this._lView,t)}};function by(){return new _a(U())}var mr=class{},Si=new C("",{providedIn:"root",factory:()=>!1});var If=new C(""),bf=new C(""),Et=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new oe(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}return e})();var Ma=class extends X{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,jd()&&(this.destroyRef=p(Fn,{optional:!0})??void 0,this.pendingTasks=p(Et,{optional:!0})??void 0)}emit(t){let n=R(null);try{super.next(t)}finally{R(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 W&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},ie=Ma;function oi(...e){}function _f(e){let t,n;function r(){e=oi;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 ql(e){return queueMicrotask(()=>e()),()=>{e=oi}}var mc="isAngularZone",ii=mc+"_ID",_y=0,q=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new ie(!1);onMicrotaskEmpty=new ie(!1);onStable=new ie(!1);onError=new ie(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Ef}=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,Ty(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(mc)===!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,My,oi,oi);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)}},My={};function yc(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 Sy(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){_f(()=>{e.callbackScheduled=!1,Sa(e),e.isCheckStableRunning=!0,yc(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Sa(e)}function Ty(e){let t=()=>{Sy(e)},n=_y++;e._inner=e._inner.fork({name:"angular",properties:{[mc]:!0,[ii]:n,[ii+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Ay(c))return r.invokeTask(i,s,a,c);try{return Wl(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ql(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Wl(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Ny(c)&&t(),Ql(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Sa(e),yc(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Sa(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Wl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ql(e){e._nesting--,yc(e)}var Ta=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new ie;onMicrotaskEmpty=new ie;onStable=new ie;onError=new ie;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Ay(e){return Mf(e,"__ignore_ng_zone__")}function Ny(e){return Mf(e,"__scheduler_tick__")}function Mf(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var tt=class{_console=console;handleError(t){this._console.error("ERROR",t)}},xy=new C("",{providedIn:"root",factory:()=>{let e=p(q),t=p(tt);return n=>e.runOutsideAngular(()=>t.handleError(n))}}),Aa=class{destroyed=!1;listeners=null;errorHandler=p(tt,{optional:!0});destroyRef=p(Fn);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new D(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed)throw new D(953,!1);if(this.listeners===null)return;let n=R(null);try{for(let r of this.listeners)try{r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{R(n)}}};function Sf(e){return new Aa}function Zl(e,t){return Cd(e,t)}function Ry(e){return Cd(Dd,e)}var Pn=(Zl.required=Ry,Zl);function Oy(){return vc(_e(),U())}function vc(e,t){return new Wt(Ve(e,t))}var Wt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Oy}return e})();function Tf(e){return(e.flags&128)===128}var Af=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Af||{}),Nf=new Map,ky=0;function Fy(){return ky++}function Py(e){Nf.set(e[Ei],e)}function Na(e){Nf.delete(e[Ei])}var Jl="__ngContext__";function $t(e,t){yt(t)?(e[Jl]=t[Ei],Py(t)):e[Jl]=t}function xf(e){return Of(e[hr])}function Rf(e){return Of(e[Fe])}function Of(e){for(;e!==null&&!ot(e);)e=e[Fe];return e}var xa;function kf(e){xa=e}function Ly(){if(xa!==void 0)return xa;if(typeof document<"u")return document;throw new D(210,!1)}var Dc=new C("",{providedIn:"root",factory:()=>Vy}),Vy="ng",Cc=new C(""),It=new C("",{providedIn:"platform",factory:()=>"unknown"});var wc=new C("",{providedIn:"root",factory:()=>Ly().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var jy="h",By="b";var Ff=!1,Uy=new C("",{providedIn:"root",factory:()=>Ff});var Hy=()=>null;function Ec(e,t,n=!1){return Hy(e,t,n)}var We=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(We||{});var si=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${vd})`}};function Ti(e){return e instanceof si?e.changingThisBreaksApplicationSecurity:e}function Pf(e,t){let n=$y(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${vd})`)}return n===t}function $y(e){return e instanceof si&&e.getTypeName()||null}var zy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Lf(e){return e=String(e),e.match(zy)?e:"unsafe:"+e}var Ic=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}(Ic||{});function Vf(e){let t=Gy();return t?t.sanitize(Ic.URL,e)||"":Pf(e,"URL")?Ti(e):Lf(ec(e))}function Gy(){let e=U();return e&&e[Xe].sanitizer}function jf(e){return e instanceof Function?e():e}var Dt=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Dt||{}),nt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(nt||{}),qy;function bc(e,t){return qy(e,t)}function vn(e,t,n,r,o){if(r!=null){let i,s=!1;ot(r)?i=r:yt(r)&&(s=!0,r=r[rt]);let a=Ge(r);e===0&&n!==null?o==null?$f(t,n,a):ai(t,n,a,o||null,!0):e===1&&n!==null?ai(t,n,a,o||null,!0):e===2?av(t,a,s):e===3&&t.destroyNode(a),i!=null&&uv(t,e,i,n,o)}}function Wy(e,t){return e.createText(t)}function Qy(e,t,n){e.setValue(t,n)}function Bf(e,t,n){return e.createElement(t,n)}function Zy(e,t){Uf(e,t),t[rt]=null,t[Le]=null}function Jy(e,t,n,r,o,i){r[rt]=o,r[Le]=t,Ni(e,r,n,1,o,i)}function Uf(e,t){t[Xe].changeDetectionScheduler?.notify(10),Ni(e,t,t[K],2,null,null)}function Yy(e){let t=e[hr];if(!t)return na(e[x],e);for(;t;){let n=null;if(yt(t))n=t[hr];else{let r=t[ue];r&&(n=r)}if(!n){for(;t&&!t[Fe]&&t!==e;)yt(t)&&na(t[x],t),t=t[le];t===null&&(t=e),yt(t)&&na(t[x],t),n=t&&t[Fe]}t=n}}function Ky(e,t,n,r){let o=ue+r,i=n.length;r>0&&(n[o-1][Fe]=t),r0&&(e[n-1][Fe]=r[Fe]);let i=Qo(e,ue+t);Zy(r[x],r);let s=i[Sn];s!==null&&s.detachView(i[x]),r[le]=null,r[Fe]=null,r[E]&=-129}return r}function Ai(e,t){if(!(t[E]&256)){let n=t[K];n.destroyNode&&Ni(e,t,n,3,null,null),Yy(t)}}function na(e,t){if(t[E]&256)return;let n=R(null);try{t[E]&=-129,t[E]|=256,t[Ee]&&Ns(t[Ee]),ev(e,t),Xy(e,t),t[x].type===1&&t[K].destroy();let r=t[Mn];if(r!==null&&ot(t[le])){r!==t[le]&&_c(r,t);let o=t[Sn];o!==null&&o.detachView(e)}Na(t)}finally{R(n)}}function Xy(e,t){let n=e.cleanup,r=t[Jo];if(n!==null)for(let s=0;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Jo]=null);let o=t[mt];if(o!==null){t[mt]=null;for(let s=0;s-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===We.None||i===We.Emulated)return null}return Ve(r,n)}}function ai(e,t,n,r,o){e.insertBefore(t,n,r,o)}function $f(e,t,n){e.appendChild(t,n)}function Yl(e,t,n,r,o){r!==null?ai(e,t,n,r,o):$f(e,t,n)}function zf(e,t){return e.parentNode(t)}function rv(e,t){return e.nextSibling(t)}function ov(e,t,n){return sv(e,t,n)}function iv(e,t,n){return e.type&40?Ve(e,n):null}var sv=iv,Kl;function Mc(e,t,n,r){let o=tv(e,r,t),i=t[K],s=r.parent||t[Le],a=ov(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(ke(r))return!1;s=!0}}}}return ke(r)||s}function ke(e){return(e&1)===0}function mv(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!==""&&!ke(s)&&(t+=Xl(i,o),o=""),r=s,i=i||!ke(r);n++}return o!==""&&(t+=Xl(i,o)),t}function wv(e){return e.map(Cv).join(",")}function Ev(e){let t=[],n=[],r=1,o=2;for(;ret&&Zf(e,t,et,!1),$e(s?2:0,o),n(r,o)}finally{Ut(i),$e(s?3:1,o)}}function Xf(e,t,n){if($d(t)){let r=R(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function Av(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Wm()&&(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 ed(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=Dt.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?td(r,n,u,a,c):td(r,n,u,a)}return r}function td(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 Nv(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 Fv(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;Ii(n)&&Hv(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||ri(n,t),$t(r,t);let s=n.initialInputs;for(let a=o;a{_i(e.lView)},consumerOnSignalRead(){this.lView[Ee]=this}});function oD(e){let t=e[Ee]??Object.create(iD);return t.lView=e,t}var iD=A(m({},rn),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Bt(e.lView);for(;t&&!fh(t[x]);)t=Bt(t);t&&cc(t)},consumerOnSignalRead(){this.lView[Ee]=this}});function fh(e){return e.type!==2}function hh(e){if(e[Yo]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Yo])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[E]&8192)}}var sD=100;function ph(e,t=!0,n=0){let o=e[Xe].rendererFactory,i=!1;i||o.begin?.();try{aD(e,n)}catch(s){throw t&&uh(e,s),s}finally{i||o.end?.()}}function aD(e,t){let n=nf();try{jl(!0),Fa(e,t);let r=0;for(;bi(e);){if(r===sD)throw new D(103,!1);r++,Fa(e,1)}}finally{jl(n)}}function cD(e,t,n,r){let o=t[E];if((o&256)===256)return;let i=!1,s=!1;uc(t);let a=!0,c=null,u=null;i||(fh(e)?(u=eD(t),c=rr(u)):Ju()===null?(a=!1,u=oD(t),c=rr(u)):t[Ee]&&(Ns(t[Ee]),t[Ee]=null));try{Zd(t),Km(e.bindingStartIndex),n!==null&&Kf(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Uo(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Ho(t,f,0,null),Xs(t,0)}if(s||uD(t),hh(t),gh(t,0),e.contentQueries!==null&&ch(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Uo(t,f)}else{let f=e.contentHooks;f!==null&&Ho(t,f,1),Xs(t,1)}Iv(e,t);let d=e.components;d!==null&&yh(t,d,0);let h=e.viewQuery;if(h!==null&&ka(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Uo(t,f)}else{let f=e.viewHooks;f!==null&&Ho(t,f,2),Xs(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ks]){for(let f of t[Ks])f();t[Ks]=null}i||(t[E]&=-73)}catch(l){throw i||_i(t),l}finally{u!==null&&(co(u,c),a&&nD(u)),lc()}}function gh(e,t){for(let n=xf(e);n!==null;n=Rf(n))for(let r=ue;r-1&&(yr(t,r),Qo(n,r))}this._attachedToViewContainer=!1}Ai(this._lView[x],this._lView)}onDestroy(t){Jd(this._lView,t)}markForCheck(){kc(this._cdRefInjectingView||this._lView,4)}markForRefresh(){cc(this._cdRefInjectingView||this._lView)}detach(){this._lView[E]&=-129}reattach(){ya(this._lView),this._lView[E]|=128}detectChanges(){this._lView[E]|=1024,ph(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=ga(this._lView),n=this._lView[Mn];n!==null&&!t&&_c(n,this._lView),Uf(this._lView[x],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=t;let n=ga(this._lView),r=this._lView[Mn];r!==null&&!n&&Hf(r,this._lView),ya(this._lView)}};var iA=new RegExp(`^(\\d+)*(${By}|${jy})*(.*)`);var dD=()=>null;function li(e,t){return dD(e,t)}var Pa=class{},di=class{},La=class{resolveComponentFactory(t){throw Error(`No component factory found for ${pe(t)}.`)}},Nn=class{static NULL=new La},xn=class{},Ln=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>fD()}return e})();function fD(){let e=U(),t=_e(),n=wt(t.index,e);return(yt(n)?n:e)[K]}var hD=(()=>{class e{static \u0275prov=w({token:e,providedIn:"root",factory:()=>null})}return e})();function Va(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&qf(e,n,i.join(" "))}}function CD(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static __NG_ELEMENT_ID__=ED}return e})();function ED(){let e=_e();return bD(e,U())}var ID=ki,vh=class extends ID{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return vc(this._hostTNode,this._hostLView)}get injector(){return new Lt(this._hostTNode,this._hostLView)}get parentInjector(){let t=gc(this._hostTNode,this._hostLView);if(ff(t)){let n=ni(t,this._hostLView),r=ti(t),o=n[x].data[r+8];return new Lt(o,n)}else return new Lt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=rd(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ue}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=li(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,ci(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!Fm(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 vr(Vt(t)),u=r||this.parentInjector;if(!i&&c.ngModule==null){let y=(s?u:this.parentInjector).get(ge,null);y&&(i=y)}let l=Vt(c.componentType??{}),d=li(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,o,h,i);return this.insertImpl(f.hostView,a,ci(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Um(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[le],u=new vh(c,c[Le],c[le]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Oc(s,o,i,r),t.attachToViewContainerRef(),Td(ra(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=rd(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=yr(this._lContainer,n);r&&(Qo(ra(this._lContainer),n),Ai(r[x],r))}detach(t){let n=this._adjustIndex(t,-1),r=yr(this._lContainer,n);return r&&Qo(ra(this._lContainer),n)!=null?new An(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function rd(e){return e[Ko]}function ra(e){return e[Ko]||(e[Ko]=[])}function bD(e,t){let n,r=t[e.index];return ot(r)?n=r:(n=ah(r,t,null,e),t[e.index]=n,Oi(t,n)),MD(n,t,e,r),new vh(n,e,t)}function _D(e,t){let n=e[K],r=n.createComment(""),o=Ve(t,e),i=zf(n,o);return ai(n,i,r,rv(n,o),!1),r}var MD=AD,SD=()=>!1;function TD(e,t,n){return SD(e,t,n)}function AD(e,t,n,r){if(e[jt])return;let o;n.type&8?o=Ge(r):o=_D(t,n),e[jt]=o}var od=new Set;function bt(e){od.has(e)||(od.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function ND(e){return typeof e=="function"&&e[fe]!==void 0}function je(e,t){bt("NgSignals");let n=sl(e),r=n[fe];return t?.equal&&(r.equal=t.equal),n.set=o=>or(r,o),n.update=o=>xs(r,o),n.asReadonly=Dh.bind(n),n}function Dh(){let e=this[fe];if(e.readonlyFn===void 0){let t=()=>this();t[fe]=e,e.readonlyFn=t}return e.readonlyFn}function Ch(e){return ND(e)&&typeof e.set=="function"}var xD=!0,Ct=class{},Dr=class{};var Ba=class extends Ct{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new fi(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=xd(t);this._bootstrapComponents=jf(i.bootstrap),this._r3Injector=wf(t,n,[{provide:Ct,useValue:this},{provide:Nn,useValue:this.componentFactoryResolver},...r],pe(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)}},Ua=class extends Dr{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Ba(this.moduleType,t,[])}};var hi=class extends Ct{injector;componentFactoryResolver=new fi(this);instance=null;constructor(t){super();let n=new dr([...t.providers,{provide:Ct,useValue:this},{provide:Nn,useValue:this.componentFactoryResolver}],t.parent||oc(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Fc(e,t,n=null){return new hi({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var RD=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Fd(!1,n.type),o=r.length>0?Fc([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=w({token:e,providedIn:"environment",factory:()=>new e(M(ge))})}return e})();function Ne(e){return vi(()=>{let t=wh(e),n=A(m({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Af.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(RD).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||We.Emulated,styles:e.styles||Ae,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&bt("NgStandalone"),Eh(n);let r=e.dependencies;return n.directiveDefs=sd(r,!1),n.pipeDefs=sd(r,!0),n.id=FD(n),n})}function OD(e){return Vt(e)||Rd(e)}function kD(e){return e!==null}function Zt(e){return vi(()=>({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 id(e,t){if(e==null)return En;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Dt.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Dt.None?[r,a]:r,t[i]=s):n[i]=r}return n}function it(e){return vi(()=>{let t=wh(e);return Eh(t),t})}function wh(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||En,exportAs:e.exportAs||null,standalone:e.standalone??xD,signals:e.signals===!0,selectors:e.selectors||Ae,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:id(e.inputs,t),outputs:id(e.outputs),debugInfo:null}}function Eh(e){e.features?.forEach(t=>t(e))}function sd(e,t){if(!e)return null;let n=t?Od:OD;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(kD)}function FD(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 PD(e){return Object.getPrototypeOf(e.prototype).constructor}function Vn(e){let t=PD(e.type),n=!0,r=[e];for(;t;){let o;if(vt(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=Po(e.inputs),s.inputTransforms=Po(e.inputTransforms),s.declaredInputs=Po(e.declaredInputs),s.outputs=Po(e.outputs);let a=o.hostBindings;a&&UD(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&jD(e,c),u&&BD(e,u),LD(e,o),tm(e.outputs,o.outputs),vt(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=gr(o.hostAttrs,n=gr(n,o.hostAttrs))}}function Po(e){return e===En?{}:e===Ae?[]:e}function jD(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function BD(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function UD(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function Mr(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function HD(e){return(e.flags&32)===32}function $D(e,t,n,r,o,i,s,a,c){let u=t.consts,l=Ri(t,e,4,s||null,a||null);rh(t,n,l,pr(u,c)),pc(t,l);let d=l.tView=Ac(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function ad(e,t,n,r,o,i,s,a,c,u){let l=n+et,d=t.firstCreatePass?$D(l,t,e,r,o,i,s,a,c):t.data[l];br(d,!1);let h=zD(t,e,d,n);fc()&&Mc(t,e,h,d),$t(h,e);let f=ah(h,e,h,d);return e[l]=f,Oi(e,f),TD(f,d,e),ic(d)&&eh(t,e,d),c!=null&&th(e,d,u),d}var zD=GD;function GD(e,t,n,r){return hc(!0),t[K].createComment("")}var qD=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}return e})();var Fi=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var Ih=new C("");function Jt(e){return!!e&&typeof e.then=="function"}function bh(e){return!!e&&typeof e.subscribe=="function"}var _h=new C("");var Mh=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=p(_h,{optional:!0})??[];injector=p(qe);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Ie(this.injector,o);if(Jt(i))n.push(i);else if(bh(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),WD=(()=>{class e{static \u0275prov=w({token:e,providedIn:"root",factory:()=>new Ha})}return e})(),Ha=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},Pi=new C("");function QD(){il(()=>{throw new D(600,!1)})}function ZD(e){return e.isBoundToModule}var JD=10;function YD(e,t,n){try{let r=n();return Jt(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var _t=(()=>{class e{_bootstrapListeners=[];_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(xy);afterRenderManager=p(qD);zonelessEnabled=p(Si);rootEffectScheduler=p(WD);dirtyFlags=0;deferredDirtyFlags=0;externalTestViews=new Set;afterTick=new X;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=p(Et).hasPendingTasks.pipe(S(n=>!n));whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=p(ge);get injector(){return this._injector}bootstrap(n,r){let o=n instanceof di;if(!this._injector.get(Mh).done){let h=!o&&kd(n),f=!1;throw new D(405,f)}let s;o?s=n:s=this._injector.get(Nn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=ZD(s)?void 0:this._injector.get(Ct),c=r||s.selector,u=s.create(qe.NULL,[],c,a),l=u.location.nativeElement,d=u.injector.get(Ih,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),$o(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=R(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,R(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(xn,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++bi(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;$o(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Pi,[]);[...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),()=>$o(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new D(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function $o(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function KD(e,t,n,r){if(!n&&!bi(e))return;ph(e,t,n&&!r?0:1)}function Sh(e,t,n,r){return Mr(e,Mi(),n)?t+ec(n)+r:Qt}function Lo(e,t){return e<<17|t<<2}function zt(e){return e>>17&32767}function XD(e){return(e&2)==2}function eC(e,t){return e&131071|t<<17}function $a(e){return e|2}function Rn(e){return(e&131068)>>2}function oa(e,t){return e&-131069|t<<2}function tC(e){return(e&1)===1}function za(e){return e|1}function nC(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=zt(s),c=Rn(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Er(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let h=zt(e[a+1]);e[r+1]=Lo(h,a),h!==0&&(e[h+1]=oa(e[h+1],r)),e[a+1]=eC(e[a+1],r)}else e[r+1]=Lo(a,0),a!==0&&(e[a+1]=oa(e[a+1],r)),a=r;else e[r+1]=Lo(c,0),a===0?a=r:e[c+1]=oa(e[c+1],r),c=r;u&&(e[r+1]=$a(e[r+1])),cd(e,l,r,!0),cd(e,l,r,!1),rC(t,l,e,r,i),s=Lo(a,c),i?t.classBindings=s:t.styleBindings=s}function rC(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Er(i,t)>=0&&(n[r+1]=za(n[r+1]))}function cd(e,t,n,r){let o=e[n+1],i=t===null,s=r?zt(o):Rn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];oC(c,t)&&(a=!0,e[s+1]=r?za(u):$a(u)),s=r?zt(u):Rn(u)}a&&(e[n+1]=r?$a(o):za(o))}function oC(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Er(e,t)>=0:!1}function Mt(e,t,n){let r=U(),o=Mi();if(Mr(r,o,t)){let i=be(),s=dc();Nc(i,s,r,e,t,r[K],n,!1)}return Mt}function ud(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";xc(e,n,i[s],s,r)}function Pc(e,t){return iC(e,t,null,!0),Pc}function iC(e,t,n,r){let o=U(),i=be(),s=Xm(2);if(i.firstUpdatePass&&aC(i,e,s,r),t!==Qt&&Mr(o,s,t)){let a=i.data[qt()];fC(i,a,o,o[K],e,o[s+1]=hC(t,n),r,s)}}function sC(e,t){return t>=e.expandoStartIndex}function aC(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[qt()],s=sC(e,n);pC(i,r)&&t===null&&!s&&(t=!1),t=cC(o,i,t,r),nC(o,i,t,n,s,r)}}function cC(e,t,n,r){let o=ry(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=ia(null,e,t,n,r),n=Cr(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=ia(o,e,t,n,r),i===null){let c=uC(e,t,r);c!==void 0&&Array.isArray(c)&&(c=ia(null,e,t,c[1],r),c=Cr(c,t.attrs,r),lC(e,t,r,c))}else i=dC(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function uC(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Rn(r)!==0)return e[zt(r)]}function lC(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[zt(o)]=r}function dC(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===Qt&&(h=d?Ae:void 0);let f=d?Js(h,r):l===r?h:void 0;if(u&&!pi(f)&&(f=Js(c,r)),pi(f)&&(a=f,s))return a;let g=e[o+1];o=s?zt(g):Rn(g)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Js(c,r))}return a}function pi(e){return e!==void 0}function hC(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=pe(Ti(e)))),e}function pC(e,t){return(e.flags&(t?8:16))!==0}var Ga=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function sa(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function gC(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let u=e.at(i),l=t[i],d=sa(i,u,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let h=e.at(s),f=t[c],g=sa(s,h,c,f,n);if(g!==0){g<0&&e.updateValue(s,f),s--,c--;continue}let y=n(i,u),v=n(s,h),I=n(i,l);if(Object.is(I,v)){let j=n(c,f);Object.is(j,y)?(e.swap(i,s),e.updateValue(s,f),c--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new gi,o??=fd(e,i,s,n),qa(e,r,i,I))e.updateValue(i,l),i++,s++;else if(o.has(I))r.set(y,e.detach(i)),s--;else{let j=e.create(i,t[i]);e.attach(i,j),i++,s++}}for(;i<=c;)dd(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),u=c.next();for(;!u.done&&i<=s;){let l=e.at(i),d=u.value,h=sa(i,l,i,d,n);if(h!==0)h<0&&e.updateValue(i,d),i++,u=c.next();else{r??=new gi,o??=fd(e,i,s,n);let f=n(i,d);if(qa(e,r,i,f))e.updateValue(i,d),i++,s++,u=c.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,u=c.next();else{let g=n(i,l);r.set(g,e.detach(i)),s--}}}for(;!u.done;)dd(e,r,n,e.length,u.value),u=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function qa(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function dd(e,t,n,r,o){if(qa(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function fd(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var gi=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};var Wa=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ue}};var Qa=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Th(e,t,n,r,o,i,s,a,c,u,l,d,h){bt("NgControlFlow");let f=U(),g=be(),y=c!==void 0,v=U(),I=a?s.bind(v[Pe][ce]):s,j=new Qa(y,I);v[et+e]=j,ad(f,g,e+1,t,n,r,o,pr(g.consts,i)),y&&ad(f,g,e+2,c,u,l,d,pr(g.consts,h))}var Za=class extends Ga{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-ue}at(t){return this.getLView(t)[ce].$implicit}attach(t,n){let r=n[fr];this.needsIndexUpdate||=t!==this.length,Oc(this.lContainer,n,t,ci(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,mC(this.lContainer,t)}create(t,n){let r=li(this.lContainer,this.templateTNode.tView.ssrId),o=lh(this.hostLView,this.templateTNode,new Wa(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){Ai(t[x],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[ce].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(hc(!0),Bf(r,o,sy()));function Nh(){return U()}var mi="en-US";var CC=mi;function wC(e){typeof e=="string"&&(CC=e.toLowerCase().replace(/_/g,"-"))}var EC=(e,t,n)=>{};function me(e,t,n,r){let o=U(),i=be(),s=_e();return xh(i,o,o[K],s,e,t,r),me}function IC(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 xh(e,t,n,r,o,i,s){let a=ic(r),u=e.firstCreatePass&&qv(e),l=t[ce],d=Gv(t),h=!0;if(r.type&3||s){let y=Ve(r,t),v=s?s(y):y,I=d.length,j=s?re=>s(Ge(re[r.index])):r.index,L=null;if(!s&&a&&(L=IC(e,t,o,r.index)),L!==null){let re=L.__ngLastListenerFn__||L;re.__ngNextListenerFn__=i,L.__ngLastListenerFn__=i,h=!1}else{i=md(r,t,l,i),EC(y,o,i);let re=n.listen(v,o,i);d.push(i,re),u&&u.push(o,j,I,I+1)}}else i=md(r,t,l,i);let f=r.outputs,g;if(h&&f!==null&&(g=f[o])){let y=g.length;if(y)for(let v=0;v-1?wt(e.index,t):t;kc(s,5);let a=gd(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=gd(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function Rh(e=1){return iy(e)}function Lc(e,t,n,r,o){let i=U(),s=Sh(i,t,n,r);if(s!==Qt){let a=be(),c=dc();Nc(a,c,i,e,s,i[K],o,!1)}return Lc}function G(e,t=""){let n=U(),r=be(),o=e+et,i=r.firstCreatePass?Ri(r,o,1,t,null):r.data[o],s=bC(r,n,i,t,e);n[o]=s,fc()&&Mc(r,n,s,i),br(i,!1)}var bC=(e,t,n,r,o)=>(hc(!0),Wy(t[K],r));function Li(e){return xe("",e,""),Li}function xe(e,t,n){let r=U(),o=Sh(r,e,t,n);return o!==Qt&&Wv(r,qt(),o),xe}function Vc(e,t,n){Ch(t)&&(t=t());let r=U(),o=Mi();if(Mr(r,o,t)){let i=be(),s=dc();Nc(i,s,r,e,t,r[K],n,!1)}return Vc}function Oh(e,t){let n=Ch(e);return n&&e.set(t),n}function jc(e,t){let n=U(),r=be(),o=_e();return xh(r,n,n[K],o,e,t),jc}function _C(e,t,n){let r=be();if(r.firstCreatePass){let o=vt(e);Ja(n,r.data,r.blueprint,o,!0),Ja(t,r.data,r.blueprint,o,!1)}}function Ja(e,t,n,r,o){if(e=ae(e),Array.isArray(e))for(let i=0;i>20;if(bn(e)||!e.multi){let f=new Ht(u,o,ne),g=ca(c,t,o?l:l+h,d);g===-1?(Ia(ri(a,s),i,c),aa(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),y=f>=0&&n[f],v=g>=0&&n[g];if(o&&!v||!o&&!y){Ia(ri(a,s),i,c);let I=TC(o?SC:MC,n.length,o,r,u);!o&&v&&(n[g].providerFactory=I),aa(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(I),s.push(I)}else{let I=kh(n[o?g:f],u,!o&&r);aa(i,e,f>-1?f:g,I)}!o&&r&&v&&n[g].componentProviders++}}}function aa(e,t,n,r){let o=bn(t),i=Tm(t);if(o||i){let c=(i?ae(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 kh(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)=>_C(r,o?o(e):e,t)}}var Ka=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Uc=(()=>{class e{compileModuleSync(n){return new Ua(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=xd(n),i=jf(o.declarations).reduce((s,a)=>{let c=Vt(a);return c&&s.push(new vr(c)),s},[]);return new Ka(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var AC=(()=>{class e{zone=p(q);changeDetectionScheduler=p(mr);applicationRef=p(_t);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),NC=new C("",{factory:()=>!1});function Fh({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new q(A(m({},Lh()),{scheduleInRootZone:n})),[{provide:q,useFactory:e},{provide:In,multi:!0,useFactory:()=>{let r=p(AC,{optional:!0});return()=>r.initialize()}},{provide:In,multi:!0,useFactory:()=>{let r=p(xC);return()=>{r.initialize()}}},t===!0?{provide:If,useValue:!0}:[],{provide:bf,useValue:n??Ef}]}function Ph(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=Fh({ngZoneFactory:()=>{let o=Lh(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&bt("NgZone_CoalesceEvent"),new q(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return On([{provide:NC,useValue:!0},{provide:Si,useValue:!1},r])}function Lh(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var xC=(()=>{class e{subscription=new W;initialized=!1;zone=p(q);pendingTasks=p(Et);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{q.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{q.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var RC=(()=>{class e{appRef=p(_t);taskService=p(Et);ngZone=p(q);zonelessEnabled=p(Si);disableScheduling=p(If,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new W;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(ii):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(bf,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Ta||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 8:{this.appRef.deferredDirtyFlags|=8;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 13:{this.appRef.dirtyFlags|=16,r=!0;break}case 14:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{r=!0;break}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?ql:_f;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(ii+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,ql(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function OC(){return typeof $localize<"u"&&$localize.locale||mi}var Hc=new C("",{providedIn:"root",factory:()=>p(Hc,N.Optional|N.SkipSelf)||OC()});var Xa=new C("");function Vo(e){return!e.moduleRef}function kC(e){let t=Vo(e)?e.r3Injector:e.moduleRef.injector,n=t.get(q);return n.run(()=>{Vo(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(tt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Vo(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Xa);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Xa);s.add(i),e.moduleRef.onDestroy(()=>{$o(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return YD(r,n,()=>{let i=t.get(Mh);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Hc,mi);if(wC(s||mi),Vo(e)){let a=t.get(_t);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return FC(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function FC(e,t){let n=e.injector.get(_t);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 zo=null;function PC(e=[],t){return qe.create({name:t,providers:[{provide:wi,useValue:"platform"},{provide:Xa,useValue:new Set([()=>zo=null])},...e]})}function LC(e=[]){if(zo)return zo;let t=PC(e);return zo=t,QD(),VC(t),t}function VC(e){let t=e.get(Cc,null);Ie(e,()=>{t?.forEach(n=>n())})}var Yt=(()=>{class e{static __NG_ELEMENT_ID__=jC}return e})();function jC(e){return BC(_e(),U(),(e&16)===16)}function BC(e,t,n){if(Ii(e)&&!n){let r=wt(e.index,t);return new An(r,r)}else if(e.type&175){let r=t[Pe];return new An(r,t)}return null}function Vh(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=LC(r),i=[Fh({}),{provide:mr,useExisting:RC},...n||[]],s=new hi({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return kC({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function Vi(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function St(e,t){bt("NgSignals");let n=nl(e);return t?.equal&&(n[fe].equal=t.equal),n}var UC=e=>e;function HC(e){let n=()=>{if(on(e),nr(e),e.value===Go)throw e.error;return e.value};return n[fe]=e,n.set=r=>{on(e),or(e,r),er(e)},n.update=r=>{on(e),xs(e,r),er(e)},n.asReadonly=Dh.bind(n),n}function Tt(e,t){bt("NgSignals");let n=typeof e=="function",r=Object.create($C);r.source=n?e:e.source,n||(r.computation=e.computation);let o=n?t?.equal:e.equal;return o&&(r.equal=o),HC(r)}var jo=Symbol("UNSET"),ua=Symbol("COMPUTING"),Go=Symbol("ERRORED"),$C=A(m({},rn),{value:jo,dirty:!0,error:null,equal:ao,computation:UC,producerMustRecompute(e){return e.value===jo||e.value===ua},producerRecomputeValue(e){if(e.value===ua)throw new Error("Detected cycle in computations.");let t=e.value;e.value=ua;let n=rr(e),r;try{let o=e.source(),i=t===jo||t===Go?void 0:{source:e.sourceValue,value:t};r=e.computation(o,i),e.sourceValue=o}catch(o){r=Go,e.error=o}finally{co(e,n)}if(t!==jo&&r!==Go&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function st(e){let t=R(null);try{return e()}finally{R(t)}}var yd=class{[fe];constructor(t){this[fe]=t}destroy(){this[fe].destroy()}};var Uh=null;function at(){return Uh}function Hh(e){Uh??=e}var ji=class{};var ye=new C(""),$h=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>p(WC),providedIn:"platform"})}return e})();var WC=(()=>{class e extends $h{_location;_history;_doc=p(ye);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return at().getBaseHref(this._doc)}onPopState(n){let r=at().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=at().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function zh(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 jh(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function Kt(e){return e&&e[0]!=="?"?"?"+e:e}var Bi=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>p(Gh),providedIn:"root"})}return e})(),QC=new C(""),Gh=(()=>{class e extends Bi{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??p(ye).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 zh(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Kt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Kt(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Kt(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(M($h),M(QC,8))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Sr=(()=>{class e{_subject=new X;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=YC(jh(Bh(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Kt(r))}normalize(n){return e.stripTrailingSlash(JC(this._basePath,Bh(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Kt(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Kt(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=Kt;static joinWithSlash=zh;static stripTrailingSlash=jh;static \u0275fac=function(r){return new(r||e)(M(Bi))};static \u0275prov=w({token:e,factory:()=>ZC(),providedIn:"root"})}return e})();function ZC(){return new Sr(M(Bi))}function JC(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Bh(e){return e.replace(/\/index.html$/,"")}function YC(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function Ui(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 qh="browser",KC="server";function Hi(e){return e===KC}var jn=class{};var Ar=class{},zi=class{},ct=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` +`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Gc=class{encodeKey(t){return Wh(t)}encodeValue(t){return Wh(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function ew(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 tw=/%(\d[a-f0-9])/gi,nw={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Wh(e){return encodeURIComponent(e).replace(tw,(t,n)=>nw[n]??t)}function $i(e){return`${e}`}var Nt=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Gc,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=ew(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($i):[$i(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($i(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($i(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 qc=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function rw(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Qh(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Zh(e){return typeof Blob<"u"&&e instanceof Blob}function Jh(e){return typeof FormData<"u"&&e instanceof FormData}function ow(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Tr=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(rw(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 ct,this.context??=new qc,!this.params)this.params=new Nt,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})}},xt=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}(xt||{}),Nr=class{headers;status;statusText;url;ok;type;constructor(t,n=200,r="OK"){this.headers=t.headers||new ct,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}},Gi=class e extends Nr{constructor(t={}){super(t)}type=xt.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})}},xr=class e extends Nr{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=xt.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},At=class extends Nr{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},ep=200,iw=204;function zc(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 Zc=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Tr)i=n;else{let c;o.headers instanceof ct?c=o.headers:c=new ct(o.headers);let u;o.params&&(o.params instanceof Nt?u=o.params:u=new Nt({fromObject:o.params})),i=new Tr(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=b(i).pipe(ht(c=>this.handler.handle(c)));if(n instanceof Tr||o.observe==="events")return s;let a=s.pipe(Ce(c=>c instanceof xr));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 Nt().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,zc(o,r))}post(n,r,o={}){return this.request("POST",n,zc(o,r))}put(n,r,o={}){return this.request("PUT",n,zc(o,r))}static \u0275fac=function(r){return new(r||e)(M(Ar))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),sw=/^\)\]\}',?\n/,aw="X-Request-URL";function Yh(e){if(e.url)return e.url;let t=aw.toLocaleLowerCase();return e.headers.get(t)}var cw=(()=>{class e{fetchImpl=p(Wc,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=p(q);handle(n){return new F(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(Qc,i=>r.error(new At({error:i}))),()=>o.abort()})}doRequest(n,r,o){return Xn(this,null,function*(){let i=this.createRequestInit(n),s;try{let f=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,m({signal:r},i)));uw(f),o.next({type:xt.Sent}),s=yield f}catch(f){o.error(new At({error:f,status:f.status??0,statusText:f.statusText,url:n.urlWithParams,headers:f.headers}));return}let a=new ct(s.headers),c=s.statusText,u=Yh(s)??n.urlWithParams,l=s.status,d=null;if(n.reportProgress&&o.next(new Gi({headers:a,status:l,statusText:c,url:u})),s.body){let f=s.headers.get("content-length"),g=[],y=s.body.getReader(),v=0,I,j,L=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Xn(this,null,function*(){for(;;){let{done:de,value:Z}=yield y.read();if(de)break;if(g.push(Z),v+=Z.length,n.reportProgress){j=n.responseType==="text"?(j??"")+(I??=new TextDecoder).decode(Z,{stream:!0}):void 0;let Je=()=>o.next({type:xt.DownloadProgress,total:f?+f:void 0,loaded:v,partialText:j});L?L.run(Je):Je()}}}));let re=this.concatChunks(g,v);try{let de=s.headers.get("Content-Type")??"";d=this.parseBody(n,re,de)}catch(de){o.error(new At({error:de,headers:new ct(s.headers),status:s.status,statusText:s.statusText,url:Yh(s)??n.urlWithParams}));return}}l===0&&(l=d?ep:0),l>=200&&l<300?(o.next(new xr({body:d,headers:a,status:l,statusText:c,url:u})),o.complete()):o.error(new At({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(sw,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let i=n.detectContentTypeHeader();i!==null&&(r["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),Wc=class{};function Qc(){}function uw(e){e.then(Qc,Qc)}function lw(e,t){return t(e)}function dw(e,t,n){return(r,o)=>Ie(n,()=>t(r,i=>e(i,o)))}var tp=new C(""),fw=new C(""),hw=new C("",{providedIn:"root",factory:()=>!0});var Kh=(()=>{class e extends Ar{backend;injector;chain=null;pendingTasks=p(Et);contributeToStability=p(hw);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(tp),...this.injector.get(fw,[])]));this.chain=r.reduceRight((o,i)=>dw(o,i,this.injector),lw)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Pt(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(M(zi),M(ge))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})();var pw=/^\)\]\}',?\n/;function gw(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var Xh=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new D(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?$(r.\u0275loadImpl()):b(null)).pipe(we(()=>new F(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((y,v)=>s.setRequestHeader(y,v.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let y=n.detectContentTypeHeader();y!==null&&s.setRequestHeader("Content-Type",y)}if(n.responseType){let y=n.responseType.toLowerCase();s.responseType=y!=="json"?y:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let y=s.statusText||"OK",v=new ct(s.getAllResponseHeaders()),I=gw(s)||n.url;return c=new Gi({headers:v,status:s.status,statusText:y,url:I}),c},l=()=>{let{headers:y,status:v,statusText:I,url:j}=u(),L=null;v!==iw&&(L=typeof s.response>"u"?s.responseText:s.response),v===0&&(v=L?ep:0);let re=v>=200&&v<300;if(n.responseType==="json"&&typeof L=="string"){let de=L;L=L.replace(pw,"");try{L=L!==""?JSON.parse(L):null}catch(Z){L=de,re&&(re=!1,L={error:Z,text:L})}}re?(i.next(new xr({body:L,headers:y,status:v,statusText:I,url:j||void 0})),i.complete()):i.error(new At({error:L,headers:y,status:v,statusText:I,url:j||void 0}))},d=y=>{let{url:v}=u(),I=new At({error:y,status:s.status||0,statusText:s.statusText||"Unknown Error",url:v||void 0});i.error(I)},h=!1,f=y=>{h||(i.next(u()),h=!0);let v={type:xt.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(v.total=y.total),n.responseType==="text"&&s.responseText&&(v.partialText=s.responseText),i.next(v)},g=y=>{let v={type:xt.UploadProgress,loaded:y.loaded};y.lengthComputable&&(v.total=y.total),i.next(v)};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:xt.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),a!==null&&s.upload&&s.upload.removeEventListener("progress",g)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(M(jn))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),np=new C(""),mw="XSRF-TOKEN",yw=new C("",{providedIn:"root",factory:()=>mw}),vw="X-XSRF-TOKEN",Dw=new C("",{providedIn:"root",factory:()=>vw}),qi=class{},Cw=(()=>{class e{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ui(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(M(ye),M(It),M(yw))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})();function ww(e,t){let n=e.url.toLowerCase();if(!p(np)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=p(qi).getToken(),o=p(Dw);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}function rp(...e){let t=[Zc,Xh,Kh,{provide:Ar,useExisting:Kh},{provide:zi,useFactory:()=>p(cw,{optional:!0})??p(Xh)},{provide:tp,useValue:ww,multi:!0},{provide:np,useValue:!0},{provide:qi,useClass:Cw}];for(let n of e)t.push(...n.\u0275providers);return On(t)}var Yc=class extends ji{supportsDOMEvents=!0},Kc=class e extends Yc{static makeCurrent(){Hh(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=Iw();return n==null?null:bw(n)}resetBaseElement(){Rr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Ui(document.cookie,t)}},Rr=null;function Iw(){return Rr=Rr||document.querySelector("base"),Rr?Rr.getAttribute("href"):null}function bw(e){return new URL(e,document.baseURI).pathname}var _w=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),Xc=new C(""),lp=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new D(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(M(Xc),M(q))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),Wi=class{_doc;constructor(t){this._doc=t}manager},eu="ng-app-id";function op(e){for(let t of e)t.remove()}function ip(e,t){let n=t.createElement("style");return n.textContent=e,n}function Mw(e,t,n){let r=e.head?.querySelectorAll(`style[${eu}="${t}"]`);if(r)for(let o of r)o.textContent&&(o.removeAttribute(eu),n.set(o.textContent,{usage:0,elements:[o]}))}function sp(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var dp=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=Hi(i),Mw(n,r,this.inline),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,ip);r?.forEach(o=>this.addUsage(o,this.external,sp))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(op(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])op(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,ip(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,sp(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(eu,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(M(ye),M(Dc),M(wc,8),M(It))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),Jc={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"},nu=/%COMP%/g,fp="%COMP%",Sw=`_nghost-${fp}`,Tw=`_ngcontent-${fp}`,Aw=!0,Nw=new C("",{providedIn:"root",factory:()=>Aw});function xw(e){return Tw.replace(nu,e)}function Rw(e){return Sw.replace(nu,e)}function hp(e,t){return t.map(n=>n.replace(nu,e))}var ap=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.platformIsServer=Hi(a),this.defaultRenderer=new Or(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===We.ShadowDom&&(r=A(m({},r),{encapsulation:We.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Qi?o.applyToHost(n):o instanceof kr&&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 We.Emulated:i=new Qi(c,u,r,this.appId,l,s,a,d);break;case We.ShadowDom:return new tu(c,u,n,r,s,a,this.nonce,d);default:i=new kr(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(r){return new(r||e)(M(lp),M(dp),M(Dc),M(Nw),M(ye),M(It),M(q),M(wc))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),Or=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Jc[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(cp(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(cp(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=Jc[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Jc[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&(nt.DashCase|nt.Important)?t.style.setProperty(n,r,o&nt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&nt.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=at().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 cp(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var tu=class extends Or{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=hp(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)}},kr=class extends Or{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?hp(c,r.styles):r.styles,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Qi=class extends kr{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=xw(u),this.hostAttr=Rw(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}},Ow=(()=>{class e extends Wi{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static \u0275fac=function(r){return new(r||e)(M(ye))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),up=["alt","control","meta","shift"],kw={"\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"},Fw={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Pw=(()=>{class e extends Wi{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(()=>at().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."),up.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=kw[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"),up.forEach(s=>{if(s!==o){let a=Fw[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(M(ye))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})();function pp(e,t){return Vh(m({rootComponent:e},Lw(t)))}function Lw(e){return{appProviders:[...Hw,...e?.providers??[]],platformProviders:Uw}}function Vw(){Kc.makeCurrent()}function jw(){return new tt}function Bw(){return kf(document),document}var Uw=[{provide:It,useValue:qh},{provide:Cc,useValue:Vw,multi:!0},{provide:ye,useFactory:Bw,deps:[]}];var Hw=[{provide:wi,useValue:"root"},{provide:tt,useFactory:jw,deps:[]},{provide:Xc,useClass:Ow,multi:!0,deps:[ye,q,It]},{provide:Xc,useClass:Pw,multi:!0,deps:[ye]},ap,dp,lp,{provide:xn,useExisting:ap},{provide:jn,useClass:_w,deps:[]},[]];var gp=(()=>{class e{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static \u0275fac=function(r){return new(r||e)(M(ye))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var T="primary",Yr=Symbol("RouteTitle"),au=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Gn(e){return new au(e)}function Gw(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 bp(e){return e.length>0?e[e.length-1]:null}function Rt(e){return Hs(e)?e:Jt(e)?$(Promise.resolve(e)):b(e)}var Ww={exact:Mp,subset:Sp},_p={exact:Qw,subset:Zw,ignored:()=>!0};function mp(e,t,n){return Ww[n.paths](e.root,t.root,n.matrixParams)&&_p[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function Qw(e,t){return Ze(e,t)}function Mp(e,t,n){if(!en(e.segments,t.segments)||!Yi(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Mp(e.children[r],t.children[r],n))return!1;return!0}function Zw(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Ip(e[n],t[n]))}function Sp(e,t,n){return Tp(e,t,t.segments,n)}function Tp(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!en(o,n)||t.hasChildren()||!Yi(o,n,r))}else if(e.segments.length===n.length){if(!en(e.segments,n)||!Yi(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!Sp(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!en(e.segments,o)||!Yi(e.segments,o,r)||!e.children[T]?!1:Tp(e.children[T],t,i,r)}}function Yi(e,t,n){return t.every((r,o)=>_p[n](e[o].parameters,r.parameters))}var lt=class{root;queryParams;fragment;_queryParamMap;constructor(t=new V([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Gn(this.queryParams),this._queryParamMap}toString(){return Kw.serialize(this)}},V=class{segments;children;parent=null;constructor(t,n){this.segments=t,this.children=n,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ki(this)}},Xt=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Gn(this.parameters),this._parameterMap}toString(){return Np(this)}};function Jw(e,t){return en(e,t)&&e.every((n,r)=>Ze(n.parameters,t[r].parameters))}function en(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function Yw(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===T&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==T&&(n=n.concat(t(o,r)))}),n}var ku=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>new Ur,providedIn:"root"})}return e})(),Ur=class{parse(t){let n=new lu(t);return new lt(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Fr(t.root,!0)}`,r=tE(t.queryParams),o=typeof t.fragment=="string"?`#${Xw(t.fragment)}`:"";return`${n}${r}${o}`}},Kw=new Ur;function Ki(e){return e.segments.map(t=>Np(t)).join("/")}function Fr(e,t){if(!e.hasChildren())return Ki(e);if(t){let n=e.children[T]?Fr(e.children[T],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==T&&r.push(`${o}:${Fr(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=Yw(e,(r,o)=>o===T?[Fr(e.children[T],!1)]:[`${o}:${Fr(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[T]!=null?`${Ki(e)}/${n[0]}`:`${Ki(e)}/(${n.join("//")})`}}function Ap(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zi(e){return Ap(e).replace(/%3B/gi,";")}function Xw(e){return encodeURI(e)}function uu(e){return Ap(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Xi(e){return decodeURIComponent(e)}function yp(e){return Xi(e.replace(/\+/g,"%20"))}function Np(e){return`${uu(e.path)}${eE(e.parameters)}`}function eE(e){return Object.entries(e).map(([t,n])=>`;${uu(t)}=${uu(n)}`).join("")}function tE(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Zi(n)}=${Zi(o)}`).join("&"):`${Zi(n)}=${Zi(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var nE=/^[^\/()?;#]+/;function ru(e){let t=e.match(nE);return t?t[0]:""}var rE=/^[^\/()?;=#]+/;function oE(e){let t=e.match(rE);return t?t[0]:""}var iE=/^[^=?&#]+/;function sE(e){let t=e.match(iE);return t?t[0]:""}var aE=/^[^&#]+/;function cE(e){let t=e.match(aE);return t?t[0]:""}var lu=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new V([],{}):new V([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[T]=new V(t,n)),r}parseSegment(){let t=ru(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new D(4009,!1);return this.capture(t),new Xt(Xi(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=oE(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=ru(this.remaining);o&&(r=o,this.capture(r))}t[Xi(n)]=Xi(r)}parseQueryParam(t){let n=sE(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=cE(this.remaining);s&&(r=s,this.capture(r))}let o=yp(n),i=yp(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=ru(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=T);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[T]:new V([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new D(4011,!1)}};function xp(e){return e.segments.length>0?new V([],{[T]:e}):e}function Rp(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=Rp(o);if(r===T&&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 V(e.segments,t);return uE(n)}function uE(e){if(e.numberOfChildren===1&&e.children[T]){let t=e.children[T];return new V(e.segments.concat(t.segments),t.children)}return e}function Hr(e){return e instanceof lt}function lE(e,t,n=null,r=null){let o=Op(e);return kp(o,t,n,r)}function Op(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 V(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=xp(r);return t??o}function kp(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return ou(o,o,o,n,r);let i=dE(t);if(i.toRoot())return ou(o,o,new V([],{}),n,r);let s=fE(i,o,e),a=s.processChildren?Vr(s.segmentGroup,s.index,i.commands):Pp(s.segmentGroup,s.index,i.commands);return ou(o,s.segmentGroup,a,n,r)}function es(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function $r(e){return typeof e=="object"&&e!=null&&e.outlets}function ou(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=Fp(e,t,n);let a=xp(Rp(s));return new lt(a,i,o)}function Fp(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=Fp(i,t,n)}),new V(e.segments,r)}var ts=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&es(r[0]))throw new D(4003,!1);let o=r.find($r);if(o&&o!==bp(r))throw new D(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function dE(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 Hn=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function fE(e,t,n){if(e.isAbsolute)return new Hn(t,!0,0);if(!n)return new Hn(t,!1,NaN);if(n.parent===null)return new Hn(n,!0,0);let r=es(e.commands[0])?0:1,o=n.segments.length-1+r;return hE(n,o,e.numberOfDoubleDots)}function hE(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new D(4005,!1);o=r.segments.length}return new Hn(r,!1,o-i)}function pE(e){return $r(e[0])?e[0].outlets:{[T]:e}}function Pp(e,t,n){if(e??=new V([],{}),e.segments.length===0&&e.hasChildren())return Vr(e,t,n);let r=gE(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndexi!==T)&&e.children[T]&&e.numberOfChildren===1&&e.children[T].segments.length===0){let i=Vr(e.children[T],t,n);return new V(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Pp(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new V(e.segments,o)}}function gE(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($r(a))break;let c=`${a}`,u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Dp(c,u,s))return i;r+=2}else{if(!Dp(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function du(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=du(new V([],{}),0,r))}),t}function vp(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function Dp(e,t,n){return e==n.path&&Ze(t,n.parameters)}var jr="imperative",se=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(se||{}),Re=class{id;url;constructor(t,n){this.id=t,this.url=n}},zr=class extends Re{type=se.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",o=null){super(t,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},tn=class extends Re{urlAfterRedirects;type=se.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Se=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(Se||{}),fu=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(fu||{}),ut=class extends Re{reason;code;type=se.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},nn=class extends Re{reason;code;type=se.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}},Gr=class extends Re{error;target;type=se.NavigationError;constructor(t,n,r,o){super(t,n),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ns=class extends Re{urlAfterRedirects;state;type=se.RoutesRecognized;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},hu=class extends Re{urlAfterRedirects;state;type=se.GuardsCheckStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pu=class extends Re{urlAfterRedirects;state;shouldActivate;type=se.GuardsCheckEnd;constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},gu=class extends Re{urlAfterRedirects;state;type=se.ResolveStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mu=class extends Re{urlAfterRedirects;state;type=se.ResolveEnd;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yu=class{route;type=se.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},vu=class{route;type=se.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Du=class{snapshot;type=se.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Cu=class{snapshot;type=se.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wu=class{snapshot;type=se.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Eu=class{snapshot;type=se.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var qr=class{},qn=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function yE(e,t){return e.providers&&!e._injector&&(e._injector=Fc(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Ue(e){return e.outlet||T}function vE(e,t){let n=e.filter(r=>Ue(r)===t);return n.push(...e.filter(r=>Ue(r)!==t)),n}function Kr(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 Iu=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Kr(this.route?.snapshot)??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new us(this.rootInjector)}},us=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Iu(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(M(ge))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),rs=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=bu(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=bu(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=_u(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return _u(t,this._root).map(n=>n.value)}};function bu(e,t){if(e===t.value)return t;for(let n of t.children){let r=bu(e,n);if(r)return r}return null}function _u(e,t){if(e===t.value)return[t];for(let n of t.children){let r=_u(e,n);if(r.length)return r.unshift(t),r}return[]}var Me=class{value;children;constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Un(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var os=class extends rs{snapshot;constructor(t,n){super(t),this.snapshot=n,Fu(this,t)}toString(){return this.snapshot.toString()}};function Lp(e){let t=DE(e),n=new oe([new Xt("",{})]),r=new oe({}),o=new oe({}),i=new oe({}),s=new oe(""),a=new Wn(n,r,i,s,o,T,e,t.root);return a.snapshot=t.root,new os(new Me(a,[]),t)}function DE(e){let t={},n={},r={},o="",i=new $n([],t,r,o,n,T,e,null,{});return new ss("",new Me(i,[]))}var Wn=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(S(u=>u[Yr]))??b(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(S(t=>Gn(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(S(t=>Gn(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function is(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&&jp(o)&&(r.resolve[Yr]=o.title),r}var $n=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Yr]}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??=Gn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Gn(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}')`}},ss=class extends rs{url;constructor(t,n){super(n),this.url=t,Fu(this,n)}toString(){return Vp(this._root)}};function Fu(e,t){t.value._routerState=e,t.children.forEach(n=>Fu(e,n))}function Vp(e){let t=e.children.length>0?` { ${e.children.map(Vp).join(", ")} } `:"";return`${e.value}${t}`}function iu(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Ze(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Ze(t.params,n.params)||e.paramsSubject.next(n.params),qw(t.url,n.url)||e.urlSubject.next(n.url),Ze(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Mu(e,t){let n=Ze(e.params,t.params)&&Jw(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||Mu(e.parent,t.parent))}function jp(e){return typeof e.title=="string"||e.title===null}var CE=new C(""),wE=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=T;activateEvents=new ie;deactivateEvents=new ie;attachEvents=new ie;detachEvents=new ie;routerOutletData=Pn(void 0);parentContexts=p(us);location=p(ki);changeDetector=p(Yt);inputBinder=p(Pu,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new D(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new D(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new D(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new D(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Su(n,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=it({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ir]})}return e})(),Su=class e{route;childContexts;parent;outletData;__ngOutletInjector(t){return new e(this.route,this.childContexts,t,this.outletData)}constructor(t,n,r,o){this.route=t,this.childContexts=n,this.parent=r,this.outletData=o}get(t,n){return t===Wn?this.route:t===us?this.childContexts:t===CE?this.outletData:this.parent.get(t,n)}},Pu=new C("");function EE(e,t,n){let r=Wr(e,t._root,n?n._root:void 0);return new os(r,t)}function Wr(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=IE(e,t,n);return new Me(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=>Wr(e,a)),s}}let r=bE(t.value),o=t.children.map(i=>Wr(e,i));return new Me(r,o)}}function IE(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Wr(e,r,o);return Wr(e,r)})}function bE(e){return new Wn(new oe(e.url),new oe(e.params),new oe(e.queryParams),new oe(e.fragment),new oe(e.data),e.outlet,e.component,e)}var Qr=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Bp="ngNavigationCancelingError";function as(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Hr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Up(!1,Se.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function Up(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Bp]=!0,n.cancellationCode=t,n}function _E(e){return Hp(e)&&Hr(e.url)}function Hp(e){return!!e&&e[Bp]}var ME=(e,t,n,r)=>S(o=>(new Tu(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),Tu=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),iu(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=Un(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=Un(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=Un(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=Un(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Eu(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Cu(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(iu(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),iu(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)}},cs=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},zn=class{component;route;constructor(t,n){this.component=t,this.route=n}};function SE(e,t,n){let r=e._root,o=t?t._root:null;return Pr(r,o,n,[r.value])}function TE(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Zn(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Ed(e)?e:t.get(e):r}function Pr(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Un(t);return e.children.forEach(s=>{AE(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Br(a,n.getContext(s),o)),o}function AE(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=NE(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new cs(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Pr(e,t,a?a.children:null,r,o):Pr(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new zn(a.outlet.component,s))}else s&&Br(t,a,o),o.canActivateChecks.push(new cs(r)),i.component?Pr(e,null,a?a.children:null,r,o):Pr(e,null,n,r,o);return o}function NE(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!en(e.url,t.url);case"pathParamsOrQueryParamsChange":return!en(e.url,t.url)||!Ze(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Mu(e,t)||!Ze(e.queryParams,t.queryParams);case"paramsChange":default:return!Mu(e,t)}}function Br(e,t,n){let r=Un(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?Br(s,t.children.getContext(i),n):Br(s,null,n):Br(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new zn(t.outlet.component,o)):n.canDeactivateChecks.push(new zn(null,o)):n.canDeactivateChecks.push(new zn(null,o))}function Xr(e){return typeof e=="function"}function xE(e){return typeof e=="boolean"}function RE(e){return e&&Xr(e.canLoad)}function OE(e){return e&&Xr(e.canActivate)}function kE(e){return e&&Xr(e.canActivateChild)}function FE(e){return e&&Xr(e.canDeactivate)}function PE(e){return e&&Xr(e.canMatch)}function $p(e){return e instanceof Ye||e?.name==="EmptyError"}var Ji=Symbol("INITIAL_VALUE");function Qn(){return we(e=>Oo(e.map(t=>t.pipe(Ke(1),Qs(Ji)))).pipe(S(t=>{for(let n of t)if(n!==!0){if(n===Ji)return Ji;if(n===!1||LE(n))return n}return!0}),Ce(t=>t!==Ji),Ke(1)))}function LE(e){return Hr(e)||e instanceof Qr}function VE(e,t){return Y(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?b(A(m({},n),{guardsResult:!0})):jE(s,r,o,e).pipe(Y(a=>a&&xE(a)?BE(r,i,e,t):b(a)),S(a=>A(m({},n),{guardsResult:a})))})}function jE(e,t,n,r){return $(e).pipe(Y(o=>GE(o.component,o.route,n,t,r)),He(o=>o!==!0,!0))}function BE(e,t,n,r){return $(t).pipe(ht(o=>pn(HE(o.route.parent,r),UE(o.route,r),zE(e,o.path,n),$E(e,o.route,n))),He(o=>o!==!0,!0))}function UE(e,t){return e!==null&&t&&t(new wu(e)),b(!0)}function HE(e,t){return e!==null&&t&&t(new Du(e)),b(!0)}function $E(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return b(!0);let o=r.map(i=>ko(()=>{let s=Kr(t)??n,a=Zn(i,s),c=OE(a)?a.canActivate(t,e):Ie(s,()=>a(t,e));return Rt(c).pipe(He())}));return b(o).pipe(Qn())}function zE(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>TE(s)).filter(s=>s!==null).map(s=>ko(()=>{let a=s.guards.map(c=>{let u=Kr(s.node)??n,l=Zn(c,u),d=kE(l)?l.canActivateChild(r,e):Ie(u,()=>l(r,e));return Rt(d).pipe(He())});return b(a).pipe(Qn())}));return b(i).pipe(Qn())}function GE(e,t,n,r,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return b(!0);let s=i.map(a=>{let c=Kr(t)??o,u=Zn(a,c),l=FE(u)?u.canDeactivate(e,t,n,r):Ie(c,()=>u(e,t,n,r));return Rt(l).pipe(He())});return b(s).pipe(Qn())}function qE(e,t,n,r){let o=t.canLoad;if(o===void 0||o.length===0)return b(!0);let i=o.map(s=>{let a=Zn(s,e),c=RE(a)?a.canLoad(t,n):Ie(e,()=>a(t,n));return Rt(c)});return b(i).pipe(Qn(),zp(r))}function zp(e){return Vs(ee(t=>{if(typeof t!="boolean")throw as(e,t)}),S(t=>t===!0))}function WE(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return b(!0);let i=o.map(s=>{let a=Zn(s,e),c=PE(a)?a.canMatch(t,n):Ie(e,()=>a(t,n));return Rt(c)});return b(i).pipe(Qn(),zp(r))}var Zr=class{segmentGroup;constructor(t){this.segmentGroup=t||null}},Jr=class extends Error{urlTree;constructor(t){super(),this.urlTree=t}};function Bn(e){return hn(new Zr(e))}function QE(e){return hn(new D(4e3,!1))}function ZE(e){return hn(Up(!1,Se.GuardRejected))}var Au=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return b(r);if(o.numberOfChildren>1||!o.children[T])return QE(`${t.redirectTo}`);o=o.children[T]}}applyRedirectCommands(t,n,r,o,i){if(typeof n!="string"){let a=n,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:g,title:y}=o,v=Ie(i,()=>a({params:f,data:g,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:y}));if(v instanceof lt)throw new Jr(v);n=v}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 lt(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 V(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new D(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}},Nu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function JE(e,t,n,r,o){let i=Gp(e,t,n);return i.matched?(r=yE(t,r),WE(r,t,n,o).pipe(S(s=>s===!0?i:m({},Nu)))):b(i)}function Gp(e,t,n){if(t.path==="**")return YE(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?m({},Nu):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||Gw)(n,e,t);if(!o)return m({},Nu);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 YE(e){return{matched:!0,parameters:e.length>0?bp(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Cp(e,t,n,r){return n.length>0&&eI(e,n,r)?{segmentGroup:new V(t,XE(r,new V(n,e.children))),slicedSegments:[]}:n.length===0&&tI(e,n,r)?{segmentGroup:new V(e.segments,KE(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new V(e.segments,e.children),slicedSegments:n}}function KE(e,t,n,r){let o={};for(let i of n)if(ls(e,t,i)&&!r[Ue(i)]){let s=new V([],{});o[Ue(i)]=s}return m(m({},r),o)}function XE(e,t){let n={};n[T]=t;for(let r of e)if(r.path===""&&Ue(r)!==T){let o=new V([],{});n[Ue(r)]=o}return n}function eI(e,t,n){return n.some(r=>ls(e,t,r)&&Ue(r)!==T)}function tI(e,t,n){return n.some(r=>ls(e,t,r))}function ls(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function nI(e,t,n){return t.length===0&&!e.children[n]}var xu=class{};function rI(e,t,n,r,o,i,s="emptyOnly"){return new Ru(e,t,n,r,o,s,i).recognize()}var oI=31,Ru=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Au(this.urlSerializer,this.urlTree)}noMatchError(t){return new D(4002,`'${t.segmentGroup}'`)}recognize(){let t=Cp(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(S(({children:n,rootSnapshot:r})=>{let o=new Me(r,n),i=new ss("",o),s=lE(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 $n([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),T,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,T,n).pipe(S(r=>({children:r,rootSnapshot:n})),ft(r=>{if(r instanceof Jr)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Zr?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 Me?[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 $(i).pipe(ht(s=>{let a=r.children[s],c=vE(n,s);return this.processSegmentGroup(t,c,a,s,o)}),Ws((s,a)=>(s.push(...a),s)),pt(null),qs(),Y(s=>{if(s===null)return Bn(r);let a=qp(s);return iI(a),b(a)}))}processSegment(t,n,r,o,i,s,a){return $(n).pipe(ht(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a).pipe(ft(u=>{if(u instanceof Zr)return b(null);throw u}))),He(c=>!!c),ft(c=>{if($p(c))return nI(r,o,i)?b(new xu):Bn(r);throw c}))}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return Ue(r)!==s&&(s===T||!ls(o,i,r))?Bn(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):Bn(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=Gp(n,o,i);if(!c)return Bn(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>oI&&(this.allowRedirects=!1));let f=new $n(i,u,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,wp(o),Ue(o),o.component??o._loadedComponent??null,o,Ep(o)),g=is(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(g.params),f.data=Object.freeze(g.data);let y=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(o,y).pipe(Y(v=>this.processSegment(t,r,n,v.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a=JE(n,r,o,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(we(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,o).pipe(we(({routes:u})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=c,g=new $n(h,d,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,wp(r),Ue(r),r.component??r._loadedComponent??null,r,Ep(r)),y=is(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(y.params),g.data=Object.freeze(y.data);let{segmentGroup:v,slicedSegments:I}=Cp(n,h,f,u);if(I.length===0&&v.hasChildren())return this.processChildren(l,u,v,g).pipe(S(L=>new Me(g,L)));if(u.length===0&&I.length===0)return b(new Me(g,[]));let j=Ue(r)===i;return this.processSegment(l,u,v,I,j?T:i,!0,g).pipe(S(L=>new Me(g,L instanceof Me?[L]:[])))}))):Bn(n)))}getChildConfig(t,n,r){return n.children?b({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?b({routes:n._loadedRoutes,injector:n._loadedInjector}):qE(t,n,r,this.urlSerializer).pipe(Y(o=>o?this.configLoader.loadChildren(t,n).pipe(ee(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):ZE(n))):b({routes:[],injector:t})}};function iI(e){e.sort((t,n)=>t.value.outlet===T?-1:n.value.outlet===T?1:t.value.outlet.localeCompare(n.value.outlet))}function sI(e){let t=e.value.routeConfig;return t&&t.path===""}function qp(e){let t=[],n=new Set;for(let r of e){if(!sI(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=qp(r.children);t.push(new Me(r.value,o))}return t.filter(r=>!n.has(r))}function wp(e){return e.data||{}}function Ep(e){return e.resolve||{}}function aI(e,t,n,r,o,i){return Y(s=>rI(e,t,n,r,s.extractedUrl,o,i).pipe(S(({state:a,tree:c})=>A(m({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function cI(e,t){return Y(n=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return b(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 Wp(c))s.add(u);let a=0;return $(s).pipe(ht(c=>i.has(c)?uI(c,r,e,t):(c.data=is(c,c.parent,e).resolve,b(void 0))),ee(()=>a++),gn(1),Y(c=>a===s.size?b(n):De))})}function Wp(e){let t=e.children.map(n=>Wp(n)).flat();return[e,...t]}function uI(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!jp(o)&&(i[Yr]=o.title),lI(i,e,t,r).pipe(S(s=>(e._resolvedData=s,e.data=is(e,e.parent,n).resolve,null)))}function lI(e,t,n,r){let o=cu(e);if(o.length===0)return b({});let i={};return $(o).pipe(Y(s=>dI(e[s],t,n,r).pipe(He(),ee(a=>{if(a instanceof Qr)throw as(new Ur,a);i[s]=a}))),gn(1),Gs(i),ft(s=>$p(s)?De:hn(s)))}function dI(e,t,n,r){let o=Kr(t)??r,i=Zn(e,o),s=i.resolve?i.resolve(t,n):Ie(o,()=>i(t,n));return Rt(s)}function su(e){return we(t=>{let n=e(t);return n?$(n).pipe(S(()=>t)):b(t)})}var Qp=(()=>{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===T);return r}getResolvedTitleForRoute(n){return n.data[Yr]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>p(fI),providedIn:"root"})}return e})(),fI=(()=>{class e extends Qp{title;constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(M(gp))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Lu=new C("",{providedIn:"root",factory:()=>({})}),hI=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Ne({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(r,o){r&1&&Qe(0,"router-outlet")},dependencies:[wE],encapsulation:2})}return e})();function Vu(e){let t=e.children&&e.children.map(Vu),n=t?A(m({},e),{children:t}):m({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==T&&(n.component=hI),n}var ju=new C(""),pI=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(Uc);loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return b(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=Rt(n.loadComponent()).pipe(S(Zp),ee(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Pt(()=>{this.componentLoaders.delete(n)})),o=new fn(r,()=>new X).pipe(dn());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return b({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=gI(r,this.compiler,n,this.onLoadEndListener).pipe(Pt(()=>{this.childrenLoaders.delete(r)})),s=new fn(i,()=>new X).pipe(dn());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function gI(e,t,n,r){return Rt(e.loadChildren()).pipe(S(Zp),Y(o=>o instanceof Dr||Array.isArray(o)?b(o):$(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(ju,[],{optional:!0,self:!0}).flat()),{routes:s.map(Vu),injector:i}}))}function mI(e){return e&&typeof e=="object"&&"default"in e}function Zp(e){return mI(e)?e.default:e}var Bu=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>p(yI),providedIn:"root"})}return e})(),yI=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),vI=new C("");var DI=new C(""),CI=(()=>{class e{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new X;transitionAbortSubject=new X;configLoader=p(pI);environmentInjector=p(ge);urlSerializer=p(ku);rootContexts=p(us);location=p(Sr);inputBindingEnabled=p(Pu,{optional:!0})!==null;titleStrategy=p(Qp);options=p(Lu,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(Bu);createViewTransition=p(vI,{optional:!0});navigationErrorHandler=p(DI,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>b(void 0);rootComponentType=null;constructor(){let n=o=>this.events.next(new yu(o)),r=o=>this.events.next(new vu(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(A(m(m({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new oe({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:jr,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ce(i=>i.id!==0),S(i=>A(m({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),we(i=>{let s=!1,a=!1;return b(i).pipe(we(c=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",Se.SupersededByNewNavigation),De;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?A(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 nn(c.id,this.urlSerializer.serialize(c.rawUrl),d,fu.IgnoredSameUrlNavigation)),c.resolve(!1),De}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return b(c).pipe(we(d=>{let h=this.transitions?.getValue();return this.events.next(new zr(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?De:Promise.resolve(d)}),aI(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ee(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=A(m({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new ns(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:g,extras:y}=c,v=new zr(d,this.urlSerializer.serialize(h),f,g);this.events.next(v);let I=Lp(this.rootComponentType).snapshot;return this.currentTransition=i=A(m({},c),{targetSnapshot:I,urlAfterRedirects:h,extras:A(m({},y),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,b(i)}else{let d="";return this.events.next(new nn(c.id,this.urlSerializer.serialize(c.extractedUrl),d,fu.IgnoredByUrlHandlingStrategy)),c.resolve(!1),De}}),ee(c=>{let u=new hu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),S(c=>(this.currentTransition=i=A(m({},c),{guards:SE(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),i)),VE(this.environmentInjector,c=>this.events.next(c)),ee(c=>{if(i.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw as(this.urlSerializer,c.guardsResult);let u=new pu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),Ce(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",Se.GuardRejected),!1)),su(c=>{if(c.guards.canActivateChecks.length)return b(c).pipe(ee(u=>{let l=new gu(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),we(u=>{let l=!1;return b(u).pipe(cI(this.paramsInheritanceStrategy,this.environmentInjector),ee({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(u,"",Se.NoDataFromResolver)}}))}),ee(u=>{let l=new mu(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}))}),su(c=>{let u=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(ee(h=>{l.component=h}),S(()=>{})));for(let h of l.children)d.push(...u(h));return d};return Oo(u(c.targetSnapshot.root)).pipe(pt(null),Ke(1))}),su(()=>this.afterPreactivation()),we(()=>{let{currentSnapshot:c,targetSnapshot:u}=i,l=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return l?$(l).pipe(S(()=>i)):b(i)}),S(c=>{let u=EE(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=i=A(m({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,i}),ee(()=>{this.events.next(new qr)}),ME(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Ke(1),ee({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new tn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Zs(this.transitionAbortSubject.pipe(ee(c=>{throw c}))),Pt(()=>{!s&&!a&&this.cancelNavigationTransition(i,"",Se.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),ft(c=>{if(a=!0,Hp(c))this.events.next(new ut(i.id,this.urlSerializer.serialize(i.extractedUrl),c.message,c.cancellationCode)),_E(c)?this.events.next(new qn(c.url,c.navigationBehaviorOptions)):i.resolve(!1);else{let u=new Gr(i.id,this.urlSerializer.serialize(i.extractedUrl),c,i.targetSnapshot??void 0);try{let l=Ie(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof Qr){let{message:d,cancellationCode:h}=as(this.urlSerializer,l);this.events.next(new ut(i.id,this.urlSerializer.serialize(i.extractedUrl),d,h)),this.events.next(new qn(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(u),c}catch(l){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(l)}}return De}))}))}cancelNavigationTransition(n,r,o){let i=new ut(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function wI(e){return e!==jr}var EI=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>p(II),providedIn:"root"})}return e})(),Ou=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},II=(()=>{class e extends Ou{static \u0275fac=(()=>{let n;return function(o){return(n||(n=_r(e)))(o||e)}})();static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Jp=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>p(bI),providedIn:"root"})}return e})(),bI=(()=>{class e extends Jp{location=p(Sr);urlSerializer=p(ku);options=p(Lu,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=p(Bu);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new lt;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=Lp(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof zr)this.stateMemento=this.createStateMemento();else if(n instanceof nn)this.rawUrlTree=r.initialUrl;else if(n instanceof ns){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 qr?(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 ut&&(n.code===Se.GuardRejected||n.code===Se.NoDataFromResolver)?this.restoreHistory(r):n instanceof Gr?this.restoreHistory(r,!0):n instanceof tn&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=n instanceof lt?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let i=this.browserPageId,s=m(m({},r.extras.state),this.generateNgRouterState(r.id,i));this.location.replaceState(o,"",s)}else{let i=m(m({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",i)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.currentUrlTree===n.finalUrl&&i===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static \u0275fac=(()=>{let n;return function(o){return(n||(n=_r(e)))(o||e)}})();static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Lr=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Lr||{});function _I(e,t){e.events.pipe(Ce(n=>n instanceof tn||n instanceof ut||n instanceof Gr||n instanceof nn),S(n=>n instanceof tn||n instanceof nn?Lr.COMPLETE:(n instanceof ut?n.code===Se.Redirect||n.code===Se.SupersededByNewNavigation:!1)?Lr.REDIRECTING:Lr.FAILED),Ce(n=>n!==Lr.REDIRECTING),Ke(1)).subscribe(()=>{t()})}var MI={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},SI={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Yp=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(Fi);stateManager=p(Jp);options=p(Lu,{optional:!0})||{};pendingTasks=p(Et);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(CI);urlSerializer=p(ku);location=p(Sr);urlHandlingStrategy=p(Bu);_events=new X;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(EI);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(ju,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(Pu,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}eventsSubscription=new W;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 ut&&r.code!==Se.Redirect&&r.code!==Se.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof tn)this.navigated=!0;else if(r instanceof qn){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"||wI(o.source)},s);this.scheduleNavigation(a,jr,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}AI(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),jr,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(Vu),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=Op(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return kp(d,n,l,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Hr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,jr,null,r)}navigate(n,r={skipLocationChange:!1}){return TI(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({},MI):r===!1?o=m({},SI):o=r,Hr(n))return mp(this.currentUrlTree,n,o);let i=this.parseUrl(n);return mp(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 _I(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function TI(e){for(let t=0;tn.\u0275providers)])}function xI(e){return e.routerState.root}function RI(){let e=p(qe);return t=>{let n=e.get(_t);if(t!==n.components[0])return;let r=e.get(Yp),o=e.get(OI);e.get(kI)===1&&r.initialNavigation(),e.get(FI,null,N.Optional)?.setUpPreloading(),e.get(NI,null,N.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var OI=new C("",{factory:()=>new X}),kI=new C("",{providedIn:"root",factory:()=>1});var FI=new C("");var Xp=[];var eg={providers:[Ph({eventCoalescing:!0}),Kp(Xp),rp()]};var ds=class e{books=je(["Angular","React","Vue"]);firstBook=Tt({source:this.books,computation:t=>t[0]});overrideFirstBook(){this.firstBook.set("jQuery")}changeBookList(){this.books.set(["Next.js","Svelte","Nuxt"])}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ne({type:e,selectors:[["app-book-list"]],decls:4,vars:1,consts:[[1,"btn","btn-primary",3,"click"]],template:function(n,r){n&1&&(H(0,"p"),G(1),z(),H(2,"button",0),me("click",function(){return r.changeBookList()}),G(3,"Change Book List"),z()),n&2&&(te(),xe("First book in list: ",r.firstBook(),""))},encapsulation:2})};var hs=class e{book=Pn.required();ratingChange=Sf();title=St(()=>this.book().title);rating=Tt({source:this.book,computation:t=>t.rating});doRateUp(){let t=this.rating()+1;this.rating.set(t),this.ratingChange.emit({isbn:this.book().isbn,newRating:t})}doRateDown(){let t=this.rating()-1;this.rating.set(t),this.ratingChange.emit({isbn:this.book().isbn,newRating:t})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ne({type:e,selectors:[["app-book"]],inputs:{book:[1,"book"]},outputs:{ratingChange:"ratingChange"},decls:14,vars:7,consts:[[1,"card","mb-4"],[1,"card-body","bg-light"],[1,"img-thumbnail","float-end",3,"src"],[1,"card-title"],[1,"badge","bg-secondary","me-2"],[1,"btn","btn-primary","me-2",3,"click","disabled"],[1,"btn","btn-primary",3,"click","disabled"]],template:function(n,r){n&1&&(H(0,"div",0)(1,"div",1),Qe(2,"img",2),H(3,"div",3)(4,"h2"),G(5),H(6,"span",4),G(7),z()()(),H(8,"p"),G(9),z(),H(10,"button",5),me("click",function(){return r.doRateDown()}),G(11,"-1"),z(),H(12,"button",6),me("click",function(){return r.doRateUp()}),G(13,"+1"),z()()()),n&2&&(te(2),Lc("src","//api.angular.schule/avatar/",r.rating(),"",Vf),te(3),xe(" ",r.title()," "),te(2),Li(r.rating()),te(2),Li(r.book().description),te(),Mt("disabled",r.rating()<=1),te(2),Mt("disabled",r.rating()>=5))},encapsulation:2})};var ps=class e{http=p(Zc);getAllBooks(){return this.http.get("https://api.angular.schule/books")}getSingleBook(t){return this.http.get(`https://api.angular.schule/books/${t}`)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};function Uu(e,t){let n=!t?.manualCleanup;n&&!t?.injector&&Bd(Uu);let r=n?t?.injector?.get(Fn)??p(Fn):null,o=PI(t?.equal),i;t?.requireSync?i=je({kind:0},{equal:o}):i=je({kind:1,value:t?.initialValue},{equal:o});let s=e.subscribe({next:a=>i.set({kind:1,value:a}),error:a=>{if(t?.rejectErrors)throw a;i.set({kind:2,error:a})}});if(t?.requireSync&&i().kind===0)throw new D(601,!1);return r?.onDestroy(s.unsubscribe.bind(s)),St(()=>{let a=i();switch(a.kind){case 1:return a.value;case 2:throw a.error;case 0:throw new D(601,!1)}},{equal:t?.equal})}function PI(e=Object.is){return(t,n)=>t.kind===1&&n.kind===1&&e(t.value,n.value)}var LI=(e,t)=>t.isbn;function VI(e,t){if(e&1){let n=Nh();H(0,"app-book",2),me("ratingChange",function(o){Kd(n);let i=Rh();return Xd(i.handleRatingChange(o))}),z()}if(e&2){let n=t.$implicit;Mt("book",n)}}function jI(e,t){e&1&&G(0,` No books available +`)}var gs=class e{bookStore=p(ps);books=Tt(Uu(this.bookStore.getAllBooks(),{initialValue:[]}));changeOrder(){this.books.update(t=>t.toReversed())}handleRatingChange({isbn:t,newRating:n}){this.books.update(r=>r.map(o=>o.isbn===t?A(m({},o),{rating:n}):o))}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ne({type:e,selectors:[["app-dashboard"]],decls:9,vars:2,consts:[[1,"btn","btn-primary","mb-4",3,"click"],[3,"book"],[3,"ratingChange","book"]],template:function(n,r){n&1&&(H(0,"button",0),me("click",function(){return r.changeOrder()}),G(1,"Change order (locally)"),z(),Th(2,VI,1,1,"app-book",1,LI,!1,jI,1,0),H(5,"p")(6,"strong"),G(7,"Amount of books:"),z(),G(8),z()),n&2&&(te(2),Ah(r.books()),te(6),xe(" ",r.books().length,` +`))},dependencies:[hs],encapsulation:2})};var cg=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}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)}static \u0275fac=function(r){return new(r||e)(ne(Ln),ne(Wt))};static \u0275dir=it({type:e})}return e})(),BI=(()=>{class e extends cg{static \u0275fac=(()=>{let n;return function(o){return(n||(n=_r(e)))(o||e)}})();static \u0275dir=it({type:e,features:[Vn]})}return e})(),ug=new C("");var UI={provide:ug,useExisting:wr(()=>Cs),multi:!0};function HI(){let e=at()?at().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var $I=new C(""),Cs=(()=>{class e extends cg{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!HI())}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)}static \u0275fac=function(r){return new(r||e)(ne(Ln),ne(Wt),ne($I,8))};static \u0275dir=it({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&&me("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)})},standalone:!1,features:[Bc([UI]),Vn]})}return e})();var zI=new C(""),GI=new C("");function lg(e){return e!=null}function dg(e){return Jt(e)?$(e):e}function fg(e){let t={};return e.forEach(n=>{t=n!=null?m(m({},t),n):t}),Object.keys(t).length===0?null:t}function hg(e,t){return t.map(n=>n(e))}function qI(e){return!e.validate}function pg(e){return e.map(t=>qI(t)?t:n=>t.validate(n))}function WI(e){if(!e)return null;let t=e.filter(lg);return t.length==0?null:function(n){return fg(hg(n,t))}}function gg(e){return e!=null?WI(pg(e)):null}function QI(e){if(!e)return null;let t=e.filter(lg);return t.length==0?null:function(n){let r=hg(n,t).map(dg);return zs(r).pipe(S(fg))}}function mg(e){return e!=null?QI(pg(e)):null}function tg(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function ZI(e){return e._rawValidators}function JI(e){return e._rawAsyncValidators}function Hu(e){return e?Array.isArray(e)?e:[e]:[]}function ys(e,t){return Array.isArray(e)?e.includes(t):e===t}function ng(e,t){let n=Hu(t);return Hu(e).forEach(o=>{ys(n,o)||n.push(o)}),n}function rg(e,t){return Hu(t).filter(n=>!ys(e,n))}var vs=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=gg(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=mg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},$u=class extends vs{name;get formDirective(){return null}get path(){return null}},oo=class extends vs{_parent=null;name=null;valueAccessor=null},zu=class{_cd;constructor(t){this._cd=t}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}},YI={"[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"},Wx=A(m({},YI),{"[class.ng-submitted]":"isSubmitted"}),yg=(()=>{class e extends zu{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(ne(oo,2))};static \u0275dir=it({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Pc("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)},standalone:!1,features:[Vn]})}return e})();var eo="VALID",ms="INVALID",Jn="PENDING",to="DISABLED",Kn=class{},Ds=class extends Kn{value;source;constructor(t,n){super(),this.value=t,this.source=n}},no=class extends Kn{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},ro=class extends Kn{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Yn=class extends Kn{status;source;constructor(t,n){super(),this.status=t,this.source=n}};function KI(e){return(ws(e)?e.validators:e)||null}function XI(e){return Array.isArray(e)?gg(e):e||null}function eb(e,t){return(ws(t)?t.asyncValidators:e)||null}function tb(e){return Array.isArray(e)?mg(e):e||null}function ws(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Gu=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return st(this.statusReactive)}set status(t){st(()=>this.statusReactive.set(t))}_status=St(()=>this.statusReactive());statusReactive=je(void 0);get valid(){return this.status===eo}get invalid(){return this.status===ms}get pending(){return this.status==Jn}get disabled(){return this.status===to}get enabled(){return this.status!==to}errors;get pristine(){return st(this.pristineReactive)}set pristine(t){st(()=>this.pristineReactive.set(t))}_pristine=St(()=>this.pristineReactive());pristineReactive=je(!0);get dirty(){return!this.pristine}get touched(){return st(this.touchedReactive)}set touched(t){st(()=>this.touchedReactive.set(t))}_touched=St(()=>this.touchedReactive());touchedReactive=je(!1);get untouched(){return!this.touched}_events=new X;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(ng(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(ng(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(rg(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(rg(t,this._rawAsyncValidators))}hasValidator(t){return ys(this._rawValidators,t)}hasAsyncValidator(t){return ys(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(A(m({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new ro(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new ro(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(A(m({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new no(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new no(!0,r))}markAsPending(t={}){this.status=Jn;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Yn(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(A(m({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=to,this.errors=null,this._forEachChild(o=>{o.disable(A(m({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ds(this.value,r)),this._events.next(new Yn(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(A(m({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=eo,this._forEachChild(r=>{r.enable(A(m({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(A(m({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===eo||this.status===Jn)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ds(this.value,n)),this._events.next(new Yn(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(A(m({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?to:eo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Jn,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=dg(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Yn(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new ie,this.statusChanges=new ie}_calculateStatus(){return this._allControlsDisabled()?to:this.errors?ms:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Jn)?Jn:this._anyControlsHaveStatus(ms)?ms:eo}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new no(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new ro(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ws(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=XI(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=tb(this._rawAsyncValidators)}};var vg=new C("CallSetDisabledState",{providedIn:"root",factory:()=>qu}),qu="always";function nb(e,t){return[...t.path,e]}function rb(e,t,n=qu){ib(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),sb(e,t),cb(e,t),ab(e,t),ob(e,t)}function og(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function ob(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function ib(e,t){let n=ZI(e);t.validator!==null?e.setValidators(tg(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=JI(e);t.asyncValidator!==null?e.setAsyncValidators(tg(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();og(t._rawValidators,o),og(t._rawAsyncValidators,o)}function sb(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Dg(e,t)})}function ab(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Dg(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Dg(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function cb(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function ub(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function lb(e){return Object.getPrototypeOf(e.constructor)===BI}function db(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===Cs?n=i:lb(i)?r=i:o=i}),o||r||n||null}function ig(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function sg(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var fb=class extends Gu{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(KI(n),eb(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ws(n)&&(n.nonNullable||n.initialValueIsDefault)&&(sg(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){ig(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){ig(this._onDisabledChange,t)}_forEachChild(t){}_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(t){sg(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var hb={provide:oo,useExisting:wr(()=>Wu)},ag=Promise.resolve(),Wu=(()=>{class e extends oo{_changeDetectorRef;callSetDisabledState;control=new fb;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new ie;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=db(this,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),ub(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){rb(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){ag.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Vi(r);ag.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?nb(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(ne($u,9),ne(zI,10),ne(GI,10),ne(ug,10),ne(Yt,8),ne(vg,8))};static \u0275dir=it({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Bc([hb]),Vn,Ir]})}return e})();var pb=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Zt({type:e});static \u0275inj=Gt({})}return e})();var Cg=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:vg,useValue:n.callSetDisabledState??qu}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Zt({type:e});static \u0275inj=Gt({imports:[pb]})}return e})();var Es=class e{selectedBook=Pn.required();amount=Tt({source:this.selectedBook,computation:()=>1});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ne({type:e,selectors:[["app-shopping-cart"]],inputs:{selectedBook:[1,"selectedBook"]},decls:3,vars:2,consts:[[3,"ngModelChange","ngModel"]],template:function(n,r){n&1&&(H(0,"p"),G(1),z(),H(2,"input",0),jc("ngModelChange",function(i){return Oh(r.amount,i)||(r.amount=i),i}),z()),n&2&&(te(),xe("Book: ",r.selectedBook().title,""),te(),Vc("ngModel",r.amount))},dependencies:[Cg,Cs,yg,Wu],encapsulation:2})};var Is=[{isbn:"123",title:"Angular",description:"The big practice book \u2013 basics, advanced topics and best practices.",price:36.9,rating:5},{isbn:"456",title:"Vue.js",description:"The green framework",price:32.9,rating:3}],bs=class e{title="Book Rating";selectedBook=je(Is[0]);toggleBook(){this.selectedBook.update(t=>t===Is[0]?Is[1]:Is[0])}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ne({type:e,selectors:[["app-root"]],decls:17,vars:2,consts:[[1,"container"],["width","100","alt","Angular Logo","src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAMAAADukpxMAAAC5VBMVEUAAADXIcDlF4rTE57fJsHDCp/tJq3oLc+aHfOaG/DLLPHDKO7PGbTsH4mfIPbyCkyeIfrME6fdJcH2CEayIefxJZbeB3bzI3/4LqzoCV2+Ju34BED4CEP4MsPzJYX3A0T0Jo32Akf1KJr4BUH0KJ/yEFr0LLLyAU/0AUv1LretJvv5McD2L7z1Ck6qJfujI/q1Jvb0K6yxJvqfIfj4L7P0KqjzEFL2C0b1KJf1J5T0C1PzBVP0KaT1DUj1Mcv3LayuJfe5J/T1Mcb0D072Ckv3B0f4MsfyLb32Kp3KLPOZHfP0LK/0JYm4KPecIPeZG+31L8H4MLjzJICnJPvzC1f0D0vDKvTOLfLGK/TzMc/2BEryInjtAVjxBVf1BU21JfKxJfatI/S+KPHxMtenI/ejIfb4MLu9KfX3M8/zEFbwAVKVHfeeHvPyLLfzI33xC1vCKfH5Mb2VGu+kHu33LKXMB4/vBVvyLsL4Lq/3K6HcBXe0J/mqJPfHKvCwI+71M9bvAVWKGPXLK/CfHe7xMMzyL8j3LKjrAVylIfOxJPL2M9PiHaDoAWCZH/iPGvXSLvKhH/LFKe6fG+rvM9/xM9vPBoryIXTtCGPtBl/AKvW1JO7aJMXcGaGRGfGtIvCpHunxMdPcHazdF5vWBX/gA2/wCl+7JvDBJ+2qIOy4JOrmGI27KffcJMHZIbvHCJfhFpGpIvSoIfCuIOneHKbSFqb0JZDlAWT5L7XjHJz1J5G4JfD0NNrbH7TVFqLYFp3iAmn4MsvXHbTgIKzYGafeFpbSBYTpBGTuNOLUHrrfIbPXG63ECJvKB5OVHPPmGpLYBHvyIG2yIeryNN7eIrrdA3ONGPK+JuykHenPFau7JezjBnHbJsrQGbHiH6bbCH3TGa3rBGHiGZbSB4jkBGzoGYvWB4PgB3XnB2znBGi1I+rTHLXlG5fqCGjvMtv0MtPACJ/pGYeSG/buNOXwNOLsNOfqGYTxIocTxvAdAAAAHHRSTlMA/kBAIv0QRoJj3LmThDzlv7+6tZ9g/N+/l49QGIOLwAAADzRJREFUeNrs00kITVEcx/E/vcyEKCklSRkyK0qmhXlMGVbmoVBEIVOZMiTjxpBhYwhlSMaFYWEoCxQJWSMWyNrv/M6559zj3uc5592H5Hv/99r6+D3yv//973//+weqJwE1kr+1r18lqN275W/sKwqF/IWUz5/hqC+Bkr+O8hlxkFDI30X5zDhInGRqW/kL+vI5gUg0BMmf7Qu6fz8aItrBRsmf6wsdiBSpEjLqT1Ge0kEIKRIrSRx/hvJURYhJoqLDSeIp8Qy2fz8R8ZCGhDjHtGnTGktU8Qw6ULSD+YsA8vsoN5GFsGogjTwHJGyK1LqbZNw8cMBBKJHo/EESyJSaUshgB1Bqkf37q4RsdP9HDKSWlA0bNjiITylJfIRs9AfRHRRUPIN5EGQgUkV0GImF0IGk4OpRwXzIRzrqSzVBkUj8QVijIhk7kJPMIcVAPiqKFAVZ5w+CFiw4e1aKCQhmKXPmwOIgSKrLQNYBss6H0IGk+hYijwLIhjkoBZGqIWwdyhuEFcDIo7BCBmFkWIjnSCTjxkl8t29nIJ8+bdhwnBJWjEPcInaQjAPVk5hKtxElLHEgTmIqBlKfDgbHUkLoQM6BZkQyfAkhDBBHkQIiRAeIkmQGYWvWrAn7FxqOPAiaTojueKIoCNLIOpbq6GA/OEIowxkpzEqmT08ciBB8pZDgcBBKZs92EOdgveVXatcuYVjJoIWDyNAU3HFGR0GQRr5j9tLZiBB/EDpQZQYjhGkIo0NHBy3HS1JMexVj714D0Q421HMQwkq/wMDrVqEDoygK8ylSFGQvGEgz0pChmtGzZ0/r+DmlfteuXQnxVhmEc2UkJSlMYnKDUIG0AzkH69Kli2Rr3ZWR4q8CSHmKFJZhpCCzAWFZCBTKkaXUX7ZMOzKrMMfAJY7Nx6djkKIlDkKHjg4NSe+RR1mGyMiuMmzYMFCsBO/m6bjNkByX4iFksJM+hBLLsJDuWUiWMgwvIAhfQ9mcNB2vFJmBnDoFBCOC9dTBgVMOy+ieheRTcLYtP1qkeMgplVnkpFHQoSEzoRiCJ3FkIPOXlaGkIWqVLYO20MCk2MBgmoG8QRAYzDmykPllKN4iOLQ5oUjB0eEgWcdMLDJEPcaRDwHFs0zEqyVpC6sRpLGFnNSDnPQdCD+sIbiUo4F4TZpEiuNQMhGUiRNhmehBEB2FZyDPwWBmkBnawYYg50DyI4QSR+m2DApidKCstBRWA0hjMpB23IBixgwyyjomZyHIUbqpQKHDUoBxEKlBhKg05MYNOIykjCML8ShQsLRjJQ5tWVlriHMAwqyDpR0ZyNWrk8pYJnZzkmErSSGmJLWIjgzE/bCYc+RBfomiI0RYbSAvX9JBCLODWAgduRBSbISk8iGoJLXpOSGQpCDbZ6QHWTvEOvIhGUuK0W3EiIm4lEV0tYNAQQgl2y2EFOvIQvr2zVA6d+5sJSNwkKBaQ4QOlAOZZRxr6ciHtOnLNMdANAVnJEhTcGKrGQSUQ4DQAQgOEDp+BqlvIHYZKEygKAYh1iK1iw5O4iCQzJo5axYduslzlaIHIV4gOEpn9SBrWaJGSSU1ixA6zhxCdGiIykKAUI4ek3vID61aRYTFdO7b2WsJILjfAGlGxxnsoVIQRggIDHPgekCSAwHFCxSHGQHKiBE4JjUNijNnICEEDh9Cx1wwoEDNcyCepRM/qUU6L1lCypJwyCsJqvEZ3SFmGBZCh4M0yIWQggcEdZ1UVsJoCXUEQiQLgSQD6cHkxwYPJoMpwRg1SCdiDMQVDClVAVmfdbAe5SDIWMbw28krDakX6oiZxEHWb18PyFFKLlyAoyKEjQGED/60CvVZ0ilqkHjIO+NA2w0jBOJ2YcC4ogZp8ipS8u5dAjmKtARZRmUIh8ElWQfeiEEiIe+QB6GjMmTr1q0+pVevXmNchoInDtIyVAIIegKGlXiQedrRJwthPiRrQRLW4cOvDkdNQocHucC0wzDKQVjiGMwnjYmDoHCIGMgTOlhqkHkcpA8cWUgbEFyAbO1lc5ZgR8tzlGAWCQsMLuIgF3Tb5s5jPRQjB1JagQyjH65fP1C2Zi0S1jlAdBKYGcRJLmrHtm0aAgQhmRQkjaGFWQowEgxJKHUiIMg5LioGIXRUhNCiFKBkLaEOFjVJqyzkIhghEAYDI0Y9LHwQJylJWHCoLgFCB8o6mkum1avTjoE+BRhcMOQ8ECxqksRx+vTR04DQYSGG0iwPgkBYjWfFwIG4gf0G9vOTwJ49M5A6h+sEQ0RDLq0/jcDwISbJhbigYJA4Ta9wCCS0EBIqUQxALp1OJJ6jEoQMShwmmaZeqIOdVxAWPAkYDoJ+gIzvM77iInzTGFzMIFzkvIHUD4VcYtrhQxYrB5JsI0eOXI0X39UdV3fsCErHgX6Rgzw7f/58HU2RwOjI/LT2LJ7HPcpBXB1tADlO+CAMkHPn6xQAoWTPvD175i2mohKEpSQ4cjpKWC0fPnz2kIugeAkhlCy/uG0PcpBdlSD5FgnsIQLkFiCqaMgxOpZfXL4ce7DFi6GgZFcAxBYFuXULm5giJceOHaMEEDPIzyEdVPj780tIhyodXOQWMo5YCFIQZAYhhI58SH7wxEKYkzx48CAY0hYOBTm2/JchTfv3798B4WMJPDwRjrt3HQSBcf5BHVAkMEAYIcaB6MiH1AWE5c0SA0GE0HGHg0RAWhkHo6MSRDQjy+E2Ehodd+0id+48wCQxEgdB3iDlIAMSQ0aEN8LBTlgIKPGQFy/o2GQhcJSHmPIsEpp1nLh1C5eS1A+XlIc0/wkk1yOBvUGGcuIEJHcIeU9JPGQTMhAzSLPKEAcCSUKjA6ccpNwh5L2iSGhwOAgdo8eP3jVaQSSv67o8TASElMuG8giDMEoiIMhA6EBQLNq1qBzEdeX6lQH6UcU4SLmsGKQ80hAUPgkhcDBCECCLKkHAQHRcUV+Jg1x+cxmZH1dK0kQCe+FDRjM4ykLa4wGCD47BEgzZuVNLALGbPIKEECRRkn0+ZFFZSHsESvsr+FxRT5IEQxgWgQQZCaoWwoyjAsQGBy4aYig6MhggsZJ9+/aRkUBGV4T4RTiuXSODGck9LXn76P3r19VB4Ki8yNhcSjgEGQYguntgkPL2NWohgTWwkAmjJ1SCNB07tr1+ED/RDks5AoxiXL53jwxCkIQGhwqQyovIWJcyjf3W/lsM5MMHJwHlyBFSEClaIsGTaMiEBPK4EsS3IAmtRAgDA6cCBNERKSFj34QJwZBv39utf5Ao4ziO41/KQqE/RFREkURELa4FSpO1NUUule4WFAQ6NNXUULRlDbrotTjkEtKiDl0umd6QEBHhn86EAnVo7/N8fve7333vuef+PNXz57h3p3MvPt+fik8oyE9mKYCwd+wvIXAgOgxkJwBy6uopExnUSAiIo4y/HX9iHJCwfyEBA+3c2dlpl4oZhLVAcyrEIIuLZJBCy+jouNvkjZGEhdBx/6OBoANVIDppHIJoWf25yknG4WAzCrIvhMQHkf8HObJoAoTB4STc5A0gnyEJD7nfOOSYNNrkom3VSWiZHZ2ZmQEEfUaNQwSOBiDXwg9CyORkRQkXISW8xC4CiYE8k8pdU4WCfP8+iUoh2dWsocxiEi8DQdJwYSBMQkBAoWVqcWrKSLJZA0FKcigsBBnHf4LQ4SSAIEACJdJoHXQQMgZG3RBpuO3t7RLKFMsyQpCBoDAQsZCxj2PPdmpC7trCQJxkahLXRYnJScJP0g4HIWNjYARCLCC8g9lJiCHFt0noSSKC/N7WFOuw5zXLHORrmNuqA7K/RHEzjMOrSClswiiZzc6a/nYSOpgERAD+ed/CQZSFECthBQgKDblfD+QmogRJw+3dVb3dFZKGK4U8Coa4JKF5DkRHPZBjktQKkGVA2iWgFAxSgCwvL2OQtlRDhIsQItUhI0gSXAHyqApkhCUdIrUh6XCI52gKSEdNSDocInVBciO5xEM6luuB5HKS+GpCcmikCSBHwEjDICI1IJLLpeKyakPS4hBpQRIXHO0SWHocHkSaAiJVISlyNA+koxokRQ6RpoF0SKtWrVq1apWMzpZ3D70q9sL0i/3w+oI2NjaOfvPK5/Nra2vPh4aGFhZev/6wR+KJDr+EOYmmaEkeAQIJITFJgiHMSmhREkCQmgQQSJIFASVgFEKc5AElapI98UjoGDyLBr2IuO590eEsL8sk65AoyFrstzVY3nWbo2jJpnsmDzzJRD7/3kxiIPskhoId9xQFEkOZp4STEEIJJ4n5tgarLFKcZXh4GBDkSeYpWV8HRE8yZCeROLpQlidR0WElKysrkMxvQgKIlUxMuOfuQbYk+rSi+0J3oRJJf3+/oQBCCiWcRL0S96skJsigorgcBBHCALES+0qWOIm7ra3oj8sJrEPXQ4eRICVZL0qWlgixk0R/WxrSdaGru7vXR+npsRQnIWQTkEzm0ydA8Ep4W3aSyCF7C4ZeV1cXOAqCtATPxE2S4SSEQGIhUUuMwCG68YGEFSXMnZc+rswXTgJJrM+9t7ecQgI+TkNGiURPkslkNiyEkoU4JnEA58CXCgwWLLGTGMhQTJA+a+jro6NMUU3C906Im4S3FTnkMP//rss2rRnwSSpNMqEm2YpUQoWCqIgY6OoZ8EseQ0LInIPEeFuliEtMQQZsPQPnnORh/y1AHj9eefp0fhoS9Uje27+3Ip1EM4xDFyS5NWwg84RAoiFR35ZD6Cquco6U27cfIgNZMYsUJlmiBBD3A7hNoulgJcdFVFTcuIGPYRgJILcJuWVua3p6em5uzn9bgEQ5yXEyfJArpstXoGBuk3M9FSH+24r6tSuAzVmAYBaCihDkIOa29CQSbQqiHExJHAQREnxbuyXyHEI7NEVPUgtySOLoYlXI6dOEnB84XzaJhkDiIBJLmnLSyycBBBkIJQZiJRk3CSASZxbBaDl5pbOzU0lQHbe1X2IODF0nI6QocZM4iL4tib+DPggDxC9xk2iIJCNL0BpAUABEPRJJTn4HIkRLKj2SNklUZ5BHwHfmJGoS3w/g45K0+kgBBClJ2W1piCSxMyWVXlcgJJmMMoqGIAexEklwbU7SqSWEqEkk2R0ukwTcVtIZ6r7cJPq2AJF0pCV+iKSnAAkhByVNnQia5KGkLf3eLUTSmH8SSWtlEElvey0k3QwvQpCkv87mYHgdllatWrVqpfoDd3j22Ol6d1oAAAAASUVORK5CYII="],[3,"selectedBook"],[1,"btn","btn-primary",3,"click"]],template:function(n,r){n&1&&(H(0,"div",0)(1,"h1"),Qe(2,"img",1),G(3),z(),Qe(4,"app-dashboard")(5,"hr"),H(6,"code"),G(7,"BookListComponent"),z(),G(8," example: "),Qe(9,"app-book-list")(10,"hr"),H(11,"code"),G(12,"ShoppingCartComponent"),z(),G(13," example: "),Qe(14,"app-shopping-cart",2),H(15,"button",3),me("click",function(){return r.toggleBook()}),G(16,"Toggle book"),z()()),n&2&&(te(3),xe(" ",r.title," "),te(11),Mt("selectedBook",r.selectedBook()))},dependencies:[gs,ds,Es],encapsulation:2})};pp(bs,eg).catch(e=>console.error(e));