EVOLUTION-MANAGER
Edit File: main-5XL7QVCD.js
var hD=Object.defineProperty,pD=Object.defineProperties;var gD=Object.getOwnPropertyDescriptors;var co=Object.getOwnPropertySymbols;var Af=Object.prototype.hasOwnProperty,Nf=Object.prototype.propertyIsEnumerable;var Mf=(t,e,n)=>e in t?hD(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,v=(t,e)=>{for(var n in e||={})Af.call(e,n)&&Mf(t,n,e[n]);if(co)for(var n of co(e))Nf.call(e,n)&&Mf(t,n,e[n]);return t},z=(t,e)=>pD(t,gD(e));var tl=(t,e)=>{var n={};for(var r in t)Af.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&co)for(var r of co(t))e.indexOf(r)<0&&Nf.call(t,r)&&(n[r]=t[r]);return n};function mD(t,e){return Object.is(t,e)}var pe=null,fo=!1,ho=1,ir=Symbol("SIGNAL");function K(t){let e=pe;return pe=t,e}var nl={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 xf(t){if(fo)throw new Error("");if(pe===null)return;pe.consumerOnSignalRead(t);let e=pe.nextProducerIndex++;if(rr(pe),e<pe.producerNode.length&&pe.producerNode[e]!==t&&ti(pe)){let n=pe.producerNode[e];po(n,pe.producerIndexOfThis[e])}pe.producerNode[e]!==t&&(pe.producerNode[e]=t,pe.producerIndexOfThis[e]=ti(pe)?Lf(t,pe,e):0),pe.producerLastReadVersion[e]=t.version}function yD(){ho++}function vD(t){if(!(ti(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===ho)){if(!t.producerMustRecompute(t)&&!rl(t)){t.dirty=!1,t.lastCleanEpoch=ho;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=ho}}function Rf(t){if(t.liveConsumerNode===void 0)return;let e=fo;fo=!0;try{for(let n of t.liveConsumerNode)n.dirty||DD(n)}finally{fo=e}}function Of(){return pe?.consumerAllowSignalWrites!==!1}function DD(t){t.dirty=!0,Rf(t),t.consumerMarkedDirty?.(t)}function Pf(t){return t&&(t.nextProducerIndex=0),K(t)}function Ff(t,e){if(K(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(ti(t))for(let n=t.nextProducerIndex;n<t.producerNode.length;n++)po(t.producerNode[n],t.producerIndexOfThis[n]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function rl(t){rr(t);for(let e=0;e<t.producerNode.length;e++){let n=t.producerNode[e],r=t.producerLastReadVersion[e];if(r!==n.version||(vD(n),r!==n.version))return!0}return!1}function kf(t){if(rr(t),ti(t))for(let e=0;e<t.producerNode.length;e++)po(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function Lf(t,e,n){if(Vf(t),rr(t),t.liveConsumerNode.length===0)for(let r=0;r<t.producerNode.length;r++)t.producerIndexOfThis[r]=Lf(t.producerNode[r],t,r);return t.liveConsumerIndexOfThis.push(n),t.liveConsumerNode.push(e)-1}function po(t,e){if(Vf(t),rr(t),t.liveConsumerNode.length===1)for(let r=0;r<t.producerNode.length;r++)po(t.producerNode[r],t.producerIndexOfThis[r]);let n=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[n],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[n],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let r=t.liveConsumerIndexOfThis[e],i=t.liveConsumerNode[e];rr(i),i.producerIndexOfThis[r]=e}}function ti(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function rr(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Vf(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function wD(){throw new Error}var jf=wD;function Bf(){jf()}function Uf(t){jf=t}var ED=null;function $f(t){let e=Object.create(zf);e.value=t;let n=()=>(xf(e),e.value);return n[ir]=e,n}function il(t,e){Of()||Bf(),t.equal(t.value,e)||(t.value=e,CD(t))}function Hf(t,e){Of()||Bf(),il(t,e(t.value))}var zf=z(v({},nl),{equal:mD,value:void 0});function CD(t){t.version++,yD(),Rf(t),ED?.()}function R(t){return typeof t=="function"}function or(t){let n=t(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var go=or(t=>function(n){t(this),this.message=n?`${n.length} errors occurred during unsubscription: ${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(` `)}`:"",this.name="UnsubscriptionError",this.errors=n});function ni(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var ce=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(R(r))try{r()}catch(o){e=o instanceof go?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Gf(o)}catch(s){e=e??[],s instanceof go?e=[...e,...s.errors]:e.push(s)}}if(e)throw new go(e)}}add(e){var n;if(e&&e!==this)if(this.closed)Gf(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}}_hasParent(e){let{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){let{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&ni(n,e)}remove(e){let{_finalizers:n}=this;n&&ni(n,e),e instanceof t&&e._removeParent(this)}};ce.EMPTY=(()=>{let t=new ce;return t.closed=!0,t})();var ol=ce.EMPTY;function mo(t){return t instanceof ce||t&&"closed"in t&&R(t.remove)&&R(t.add)&&R(t.unsubscribe)}function Gf(t){R(t)?t():t.unsubscribe()}var et={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var sr={setTimeout(t,e,...n){let{delegate:r}=sr;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=sr;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function yo(t){sr.setTimeout(()=>{let{onUnhandledError:e}=et;if(e)e(t);else throw t})}function ri(){}var qf=sl("C",void 0,void 0);function Wf(t){return sl("E",void 0,t)}function Qf(t){return sl("N",t,void 0)}function sl(t,e,n){return{kind:t,value:e,error:n}}var wn=null;function ar(t){if(et.useDeprecatedSynchronousErrorHandling){let e=!wn;if(e&&(wn={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=wn;if(wn=null,n)throw r}}else t()}function Kf(t){et.useDeprecatedSynchronousErrorHandling&&wn&&(wn.errorThrown=!0,wn.error=t)}var En=class extends ce{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,mo(e)&&e.add(this)):this.destination=ID}static create(e,n,r){return new lr(e,n,r)}next(e){this.isStopped?ll(Qf(e),this):this._next(e)}error(e){this.isStopped?ll(Wf(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?ll(qf,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},bD=Function.prototype.bind;function al(t,e){return bD.call(t,e)}var ul=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){vo(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){vo(r)}else vo(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){vo(n)}}},lr=class extends En{constructor(e,n,r){super();let i;if(R(e)||!e)i={next:e??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&et.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&al(e.next,o),error:e.error&&al(e.error,o),complete:e.complete&&al(e.complete,o)}):i=e}this.destination=new ul(i)}};function vo(t){et.useDeprecatedSynchronousErrorHandling?Kf(t):yo(t)}function _D(t){throw t}function ll(t,e){let{onStoppedNotification:n}=et;n&&sr.setTimeout(()=>n(t,e))}var ID={closed:!0,next:ri,error:_D,complete:ri};var ur=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ke(t){return t}function cl(...t){return dl(t)}function dl(t){return t.length===0?ke:t.length===1?t[0]:function(n){return t.reduce((r,i)=>i(r),n)}}var Q=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=TD(n)?n:new lr(n,r,i);return ar(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Zf(r),new r((i,o)=>{let s=new lr({next:a=>{try{n(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[ur](){return this}pipe(...n){return dl(n)(this)}toPromise(n){return n=Zf(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return t.create=e=>new t(e),t})();function Zf(t){var e;return(e=t??et.Promise)!==null&&e!==void 0?e:Promise}function SD(t){return t&&R(t.next)&&R(t.error)&&R(t.complete)}function TD(t){return t&&t instanceof En||SD(t)&&mo(t)}function fl(t){return R(t?.lift)}function G(t){return e=>{if(fl(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function $(t,e,n,r,i){return new hl(t,e,n,r,i)}var hl=class extends En{constructor(e,n,r,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){e.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function cr(){return G((t,e)=>{let n=null;t._refCount++;let r=$(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){n=null;return}let i=t._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(r),r.closed||(n=t.connect())})}var dr=class extends Q{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,fl(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new ce;let n=this.getSubject();e.add(this.source.subscribe($(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=ce.EMPTY)}return e}refCount(){return cr()(this)}};var Yf=or(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var re=(()=>{class t extends Q{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 Yf}next(n){ar(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){ar(()=>{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(){ar(()=>{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:i,observers:o}=this;return r||i?ol:(this.currentObservers=null,o.push(n),new ce(()=>{this.currentObservers=null,ni(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new Q;return n.source=this,n}}return t.create=(e,n)=>new Do(e,n),t})(),Do=class extends re{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,e)}error(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,e)}complete(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)}_subscribe(e){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&r!==void 0?r:ol}};var me=class extends re{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let n=super._subscribe(e);return!n.closed&&e.next(this._value),n}getValue(){let{hasError:e,thrownError:n,_value:r}=this;if(e)throw n;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}};var Le=new Q(t=>t.complete());function Xf(t){return t&&R(t.schedule)}function Jf(t){return t[t.length-1]}function wo(t){return R(Jf(t))?t.pop():void 0}function Zt(t){return Xf(Jf(t))?t.pop():void 0}function th(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})}function eh(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Cn(t){return this instanceof Cn?(this.v=t,this):new Cn(t)}function nh(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,o=[];return i={},a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){r[f]&&(i[f]=function(g){return new Promise(function(y,D){o.push([f,g,y,D])>1||l(f,g)})},p&&(i[f]=p(i[f])))}function l(f,p){try{u(r[f](p))}catch(g){h(o[0][3],g)}}function u(f){f.value instanceof Cn?Promise.resolve(f.value.v).then(c,d):h(o[0][2],f)}function c(f){l("next",f)}function d(f){l("throw",f)}function h(f,p){f(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}function rh(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof eh=="function"?eh(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(s){return new Promise(function(a,l){s=t[o](s),i(a,l,s.done,s.value)})}}function i(o,s,a,l){Promise.resolve(l).then(function(u){o({value:u,done:a})},s)}}var Eo=t=>t&&typeof t.length=="number"&&typeof t!="function";function Co(t){return R(t?.then)}function bo(t){return R(t[ur])}function _o(t){return Symbol.asyncIterator&&R(t?.[Symbol.asyncIterator])}function Io(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function MD(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var So=MD();function To(t){return R(t?.[So])}function Mo(t){return nh(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:i}=yield Cn(n.read());if(i)return yield Cn(void 0);yield yield Cn(r)}}finally{n.releaseLock()}})}function Ao(t){return R(t?.getReader)}function ae(t){if(t instanceof Q)return t;if(t!=null){if(bo(t))return AD(t);if(Eo(t))return ND(t);if(Co(t))return xD(t);if(_o(t))return ih(t);if(To(t))return RD(t);if(Ao(t))return OD(t)}throw Io(t)}function AD(t){return new Q(e=>{let n=t[ur]();if(R(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ND(t){return new Q(e=>{for(let n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function xD(t){return new Q(e=>{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,yo)})}function RD(t){return new Q(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function ih(t){return new Q(e=>{PD(t,e).catch(n=>e.error(n))})}function OD(t){return ih(Mo(t))}function PD(t,e){var n,r,i,o;return th(this,void 0,void 0,function*(){try{for(n=rh(t);r=yield n.next(),!r.done;){let s=r.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}e.complete()})}function Ae(t,e,n,r=0,i=!1){let o=e.schedule(function(){n(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(o),!i)return o}function No(t,e=0){return G((n,r)=>{n.subscribe($(r,i=>Ae(r,t,()=>r.next(i),e),()=>Ae(r,t,()=>r.complete(),e),i=>Ae(r,t,()=>r.error(i),e)))})}function xo(t,e=0){return G((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function oh(t,e){return ae(t).pipe(xo(e),No(e))}function sh(t,e){return ae(t).pipe(xo(e),No(e))}function ah(t,e){return new Q(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function lh(t,e){return new Q(n=>{let r;return Ae(n,e,()=>{r=t[So](),Ae(n,e,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>R(r?.return)&&r.return()})}function Ro(t,e){if(!t)throw new Error("Iterable cannot be null");return new Q(n=>{Ae(n,e,()=>{let r=t[Symbol.asyncIterator]();Ae(n,e,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function uh(t,e){return Ro(Mo(t),e)}function ch(t,e){if(t!=null){if(bo(t))return oh(t,e);if(Eo(t))return ah(t,e);if(Co(t))return sh(t,e);if(_o(t))return Ro(t,e);if(To(t))return lh(t,e);if(Ao(t))return uh(t,e)}throw Io(t)}function oe(t,e){return e?ch(t,e):ae(t)}function x(...t){let e=Zt(t);return oe(t,e)}function fr(t,e){let n=R(t)?t:()=>t,r=i=>i.error(n());return new Q(e?i=>e.schedule(r,0,i):r)}function pl(t){return!!t&&(t instanceof Q||R(t.lift)&&R(t.subscribe))}var Mt=or(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function F(t,e){return G((n,r)=>{let i=0;n.subscribe($(r,o=>{r.next(t.call(e,o,i++))}))})}var{isArray:FD}=Array;function kD(t,e){return FD(e)?t(...e):t(e)}function Oo(t){return F(e=>kD(t,e))}var{isArray:LD}=Array,{getPrototypeOf:VD,prototype:jD,keys:BD}=Object;function Po(t){if(t.length===1){let e=t[0];if(LD(e))return{args:e,keys:null};if(UD(e)){let n=BD(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function UD(t){return t&&typeof t=="object"&&VD(t)===jD}function Fo(t,e){return t.reduce((n,r,i)=>(n[r]=e[i],n),{})}function ko(...t){let e=Zt(t),n=wo(t),{args:r,keys:i}=Po(t);if(r.length===0)return oe([],e);let o=new Q($D(r,e,i?s=>Fo(i,s):ke));return n?o.pipe(Oo(n)):o}function $D(t,e,n=ke){return r=>{dh(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let l=0;l<i;l++)dh(e,()=>{let u=oe(t[l],e),c=!1;u.subscribe($(r,d=>{o[l]=d,c||(c=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function dh(t,e,n){t?Ae(n,t,e):e()}function fh(t,e,n,r,i,o,s,a){let l=[],u=0,c=0,d=!1,h=()=>{d&&!l.length&&!u&&e.complete()},f=g=>u<r?p(g):l.push(g),p=g=>{o&&e.next(g),u++;let y=!1;ae(n(g,c++)).subscribe($(e,D=>{i?.(D),o?f(D):e.next(D)},()=>{y=!0},void 0,()=>{if(y)try{for(u--;l.length&&u<r;){let D=l.shift();s?Ae(e,s,()=>p(D)):p(D)}h()}catch(D){e.error(D)}}))};return t.subscribe($(e,f,()=>{d=!0,h()})),()=>{a?.()}}function de(t,e,n=1/0){return R(e)?de((r,i)=>F((o,s)=>e(r,o,i,s))(ae(t(r,i))),n):(typeof e=="number"&&(n=e),G((r,i)=>fh(r,i,t,n)))}function gl(t=1/0){return de(ke,t)}function hh(){return gl(1)}function hr(...t){return hh()(oe(t,Zt(t)))}function Lo(t){return new Q(e=>{ae(t()).subscribe(e)})}function ml(...t){let e=wo(t),{args:n,keys:r}=Po(t),i=new Q(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),l=s,u=s;for(let c=0;c<s;c++){let d=!1;ae(n[c]).subscribe($(o,h=>{d||(d=!0,u--),a[c]=h},()=>l--,void 0,()=>{(!l||!d)&&(u||o.next(r?Fo(r,a):a),o.complete())}))}});return e?i.pipe(Oo(e)):i}function Ve(t,e){return G((n,r)=>{let i=0;n.subscribe($(r,o=>t.call(e,o,i++)&&r.next(o)))})}function Yt(t){return G((e,n)=>{let r=null,i=!1,o;r=e.subscribe($(n,void 0,void 0,s=>{o=ae(t(s,Yt(t)(e))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function ph(t,e,n,r,i){return(o,s)=>{let a=n,l=e,u=0;o.subscribe($(s,c=>{let d=u++;l=a?t(l,c,d):(a=!0,c),r&&s.next(l)},i&&(()=>{a&&s.next(l),s.complete()})))}}function Xt(t,e){return R(e)?de(t,e,1):de(t,1)}function Jt(t){return G((e,n)=>{let r=!1;e.subscribe($(n,i=>{r=!0,n.next(i)},()=>{r||n.next(t),n.complete()}))})}function At(t){return t<=0?()=>Le:G((e,n)=>{let r=0;e.subscribe($(n,i=>{++r<=t&&(n.next(i),t<=r&&n.complete())}))})}function yl(t){return F(()=>t)}function Vo(t=HD){return G((e,n)=>{let r=!1;e.subscribe($(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(t())))})}function HD(){return new Mt}function bn(t){return G((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}function ht(t,e){let n=arguments.length>=2;return r=>r.pipe(t?Ve((i,o)=>t(i,o,r)):ke,At(1),n?Jt(e):Vo(()=>new Mt))}function pr(t){return t<=0?()=>Le:G((e,n)=>{let r=[];e.subscribe($(n,i=>{r.push(i),t<r.length&&r.shift()},()=>{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function vl(t,e){let n=arguments.length>=2;return r=>r.pipe(t?Ve((i,o)=>t(i,o,r)):ke,pr(1),n?Jt(e):Vo(()=>new Mt))}function Dl(t,e){return G(ph(t,e,arguments.length>=2,!0))}function wl(...t){let e=Zt(t);return G((n,r)=>{(e?hr(t,n,e):hr(t,n)).subscribe(r)})}function je(t,e){return G((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe($(r,l=>{i?.unsubscribe();let u=0,c=o++;ae(t(l,c)).subscribe(i=$(r,d=>r.next(e?e(l,d,c,u++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function El(t){return G((e,n)=>{ae(t).subscribe($(n,()=>n.complete(),ri)),!n.closed&&e.subscribe(n)})}function ge(t,e,n){let r=R(t)||e||n?{next:t,error:e,complete:n}:t;return r?G((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe($(o,l=>{var u;(u=r.next)===null||u===void 0||u.call(r,l),o.next(l)},()=>{var l;a=!1,(l=r.complete)===null||l===void 0||l.call(r),o.complete()},l=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,l),o.error(l)},()=>{var l,u;a&&((l=r.unsubscribe)===null||l===void 0||l.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):ke}var rp="https://g.co/ng/security#xss",m=class extends Error{constructor(e,n){super(ms(e,n)),this.code=e}};function ms(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function mi(t){return{toString:t}.toString()}var jo="__parameters__";function zD(t){return function(...n){if(t){let r=t(...n);for(let i in r)this[i]=r[i]}}}function ip(t,e,n){return mi(()=>{let r=zD(e);function i(...o){if(this instanceof i)return r.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(l,u,c){let d=l.hasOwnProperty(jo)?l[jo]:Object.defineProperty(l,jo,{value:[]})[jo];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var Be=globalThis;function J(t){for(let e in t)if(t[e]===J)return e;throw Error("Could not find renamed property on target object.")}function GD(t,e){for(let n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function Me(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Me).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` `);return n===-1?e:e.substring(0,n)}function Vl(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var qD=J({__forward_ref__:J});function kn(t){return t.__forward_ref__=kn,t.toString=function(){return Me(this())},t}function Te(t){return op(t)?t():t}function op(t){return typeof t=="function"&&t.hasOwnProperty(qD)&&t.__forward_ref__===kn}function C(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function st(t){return{providers:t.providers||[],imports:t.imports||[]}}function ys(t){return gh(t,ap)||gh(t,lp)}function sp(t){return ys(t)!==null}function gh(t,e){return t.hasOwnProperty(e)?t[e]:null}function WD(t){let e=t&&(t[ap]||t[lp]);return e||null}function mh(t){return t&&(t.hasOwnProperty(yh)||t.hasOwnProperty(QD))?t[yh]:null}var ap=J({\u0275prov:J}),yh=J({\u0275inj:J}),lp=J({ngInjectableDef:J}),QD=J({ngInjectorDef:J}),I=class{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=C({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function up(t){return t&&!!t.\u0275providers}var KD=J({\u0275cmp:J}),ZD=J({\u0275dir:J}),YD=J({\u0275pipe:J}),XD=J({\u0275mod:J}),Zo=J({\u0275fac:J}),ii=J({__NG_ELEMENT_ID__:J}),vh=J({__NG_ENV_ID__:J});function yi(t){return typeof t=="string"?t:t==null?"":String(t)}function JD(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():yi(t)}function ew(t,e){let n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new m(-200,t)}function Ru(t,e){throw new m(-201,!1)}var V=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(V||{}),jl;function cp(){return jl}function Ne(t){let e=jl;return jl=t,e}function dp(t,e,n){let r=ys(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&V.Optional)return null;if(e!==void 0)return e;Ru(t,"Injector")}var tw={},oi=tw,Bl="__NG_DI_FLAG__",Yo="ngTempTokenPath",nw="ngTokenPath",rw=/\n/gm,iw="\u0275",Dh="__source",vr;function ow(){return vr}function en(t){let e=vr;return vr=t,e}function sw(t,e=V.Default){if(vr===void 0)throw new m(-203,!1);return vr===null?dp(t,void 0,e):vr.get(t,e&V.Optional?null:void 0,e)}function b(t,e=V.Default){return(cp()||sw)(Te(t),e)}function w(t,e=V.Default){return b(t,vs(e))}function vs(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Ul(t){let e=[];for(let n=0;n<t.length;n++){let r=Te(t[n]);if(Array.isArray(r)){if(r.length===0)throw new m(900,!1);let i,o=V.Default;for(let s=0;s<r.length;s++){let a=r[s],l=aw(a);typeof l=="number"?l===-1?i=a.token:o|=l:i=a}e.push(b(i,o))}else e.push(b(r))}return e}function fp(t,e){return t[Bl]=e,t.prototype[Bl]=e,t}function aw(t){return t[Bl]}function lw(t,e,n,r){let i=t[Yo];throw e[Dh]&&i.unshift(e[Dh]),t.message=uw(` `+t.message,i,n,r),t[nw]=i,t[Yo]=null,t}function uw(t,e,n,r=null){t=t&&t.charAt(0)===` `&&t.charAt(1)==iw?t.slice(2):t;let i=Me(e);if(Array.isArray(e))i=e.map(Me).join(" -> ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):Me(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(rw,` `)}`}var Ou=fp(ip("Optional"),8);var hp=fp(ip("SkipSelf"),4);function Tn(t,e){let n=t.hasOwnProperty(Zo);return n?t[Zo]:null}function Pu(t,e){t.forEach(n=>Array.isArray(n)?Pu(n,e):e(n))}function pp(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Xo(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function cw(t,e,n,r){let i=t.length;if(i==e)t.push(n,r);else if(i===1)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;){let o=i-2;t[i]=t[o],i--}t[e]=n,t[e+1]=r}}function Fu(t,e,n){let r=vi(t,e);return r>=0?t[r|1]=n:(r=~r,cw(t,r,e,n)),r}function Cl(t,e){let n=vi(t,e);if(n>=0)return t[n|1]}function vi(t,e){return dw(t,e,1)}function dw(t,e,n){let r=0,i=t.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=t[o<<n];if(e===s)return o<<n;s>e?i=o:r=o+1}return~(i<<n)}var wr={},xe=[],Er=new I(""),gp=new I("",-1),mp=new I(""),Jo=class{get(e,n=oi){if(n===oi){let r=new Error(`NullInjectorError: No provider for ${Me(e)}!`);throw r.name="NullInjectorError",r}return n}},yp=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(yp||{}),mt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(mt||{}),Ce=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(Ce||{});function fw(t,e,n){let r=t.length;for(;;){let i=t.indexOf(e,n);if(i===-1)return i;if(i===0||t.charCodeAt(i-1)<=32){let o=e.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}n=i+1}}function $l(t,e,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],a=n[r++];t.setAttribute(e,s,a,o)}else{let o=i,s=n[++r];hw(o)?t.setProperty(e,o,s):t.setAttribute(e,o,s),r++}}return r}function vp(t){return t===3||t===4||t===6}function hw(t){return t.charCodeAt(0)===64}function si(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){let i=e[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?wh(t,n,i,null,e[++r]):wh(t,n,i,null,null))}}return t}function wh(t,e,n,r,i){let o=0,s=t.length;if(e===-1)s=-1;else for(;o<t.length;){let a=t[o++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=o-1;break}}}for(;o<t.length;){let a=t[o];if(typeof a=="number")break;if(a===n){if(r===null){i!==null&&(t[o+1]=i);return}else if(r===t[o+1]){t[o+2]=i;return}}o++,r!==null&&o++,i!==null&&o++}s!==-1&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,n),r!==null&&t.splice(o++,0,r),i!==null&&t.splice(o++,0,i)}var Dp="ng-template";function pw(t,e,n,r){let i=0;if(r){for(;i<e.length&&typeof e[i]=="string";i+=2)if(e[i]==="class"&&fw(e[i+1].toLowerCase(),n,0)!==-1)return!0}else if(ku(t))return!1;if(i=e.indexOf(1,i),i>-1){let o;for(;++i<e.length&&typeof(o=e[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function ku(t){return t.type===4&&t.value!==Dp}function gw(t,e,n){let r=t.type===4&&!n?Dp:t.value;return e===r}function mw(t,e,n){let r=4,i=t.attrs,o=i!==null?Dw(i):0,s=!1;for(let a=0;a<e.length;a++){let l=e[a];if(typeof l=="number"){if(!s&&!tt(r)&&!tt(l))return!1;if(s&&tt(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!gw(t,l,n)||l===""&&e.length===1){if(tt(r))return!1;s=!0}}else if(r&8){if(i===null||!pw(t,i,l,n)){if(tt(r))return!1;s=!0}}else{let u=e[++a],c=yw(l,i,ku(t),n);if(c===-1){if(tt(r))return!1;s=!0;continue}if(u!==""){let d;if(c>o?d="":d=i[c+1].toLowerCase(),r&2&&u!==d){if(tt(r))return!1;s=!0}}}}return tt(r)||s}function tt(t){return(t&1)===0}function yw(t,e,n,r){if(e===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<e.length;){let s=e[i];if(s===t)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=e[++i];for(;typeof a=="string";)a=e[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return ww(e,t)}function vw(t,e,n=!1){for(let r=0;r<e.length;r++)if(mw(t,e[r],n))return!0;return!1}function Dw(t){for(let e=0;e<t.length;e++){let n=t[e];if(vp(n))return e}return t.length}function ww(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){let r=t[n];if(typeof r=="number")return-1;if(r===e)return n;n++}return-1}function Eh(t,e){return t?":not("+e.trim()+")":e}function Ew(t){let e=t[0],n=1,r=2,i="",o=!1;for(;n<t.length;){let s=t[n];if(typeof s=="string")if(r&2){let a=t[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!tt(s)&&(e+=Eh(o,i),i=""),r=s,o=o||!tt(r);n++}return i!==""&&(e+=Eh(o,i)),e}function Cw(t){return t.map(Ew).join(",")}function bw(t){let e=[],n=[],r=1,i=2;for(;r<t.length;){let o=t[r];if(typeof o=="string")i===2?o!==""&&e.push(o,t[++r]):i===8&&n.push(o);else{if(!tt(i))break;i=o}r++}return{attrs:e,classes:n}}function at(t){return mi(()=>{let e=_p(t),n=z(v({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===yp.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||mt.Emulated,styles:t.styles||xe,_:null,schemas:t.schemas||null,tView:null,id:""});Ip(n);let r=t.dependencies;return n.directiveDefs=bh(r,!1),n.pipeDefs=bh(r,!0),n.id=Sw(n),n})}function _w(t){return Mn(t)||wp(t)}function Iw(t){return t!==null}function lt(t){return mi(()=>({type:t.type,bootstrap:t.bootstrap||xe,declarations:t.declarations||xe,imports:t.imports||xe,exports:t.exports||xe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Ch(t,e){if(t==null)return wr;let n={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r],o,s,a=Ce.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(n[o]=a!==Ce.None?[r,a]:r,e[o]=s):n[o]=r}return n}function ye(t){return mi(()=>{let e=_p(t);return Ip(e),e})}function Lu(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Mn(t){return t[KD]||null}function wp(t){return t[ZD]||null}function Ep(t){return t[YD]||null}function Cp(t){let e=Mn(t)||wp(t)||Ep(t);return e!==null?e.standalone:!1}function bp(t,e){let n=t[XD]||null;if(!n&&e===!0)throw new Error(`Type ${Me(t)} does not have '\u0275mod' property.`);return n}function _p(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||wr,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||xe,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ch(t.inputs,e),outputs:Ch(t.outputs),debugInfo:null}}function Ip(t){t.features?.forEach(e=>e(t))}function bh(t,e){if(!t)return null;let n=e?Ep:_w;return()=>(typeof t=="function"?t():t).map(r=>n(r)).filter(Iw)}function Sw(t){let e=0,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of n)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function on(t){return{\u0275providers:t}}function Tw(...t){return{\u0275providers:Sp(!0,t),\u0275fromNgModule:!0}}function Sp(t,...e){let n=[],r=new Set,i,o=s=>{n.push(s)};return Pu(e,s=>{let a=s;Hl(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&Tp(i,o),n}function Tp(t,e){for(let n=0;n<t.length;n++){let{ngModule:r,providers:i}=t[n];Vu(i,o=>{e(o,r)})}}function Hl(t,e,n,r){if(t=Te(t),!t)return!1;let i=null,o=mh(t),s=!o&&Mn(t);if(!o&&!s){let l=t.ngModule;if(o=mh(l),o)i=l;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of l)Hl(u,e,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let u;try{Pu(o.imports,c=>{Hl(c,e,n,r)&&(u||=[],u.push(c))})}finally{}u!==void 0&&Tp(u,e)}if(!a){let u=Tn(i)||(()=>new i);e({provide:i,useFactory:u,deps:xe},i),e({provide:mp,useValue:i,multi:!0},i),e({provide:Er,useValue:()=>b(i),multi:!0},i)}let l=o.providers;if(l!=null&&!a){let u=t;Vu(l,c=>{e(c,u)})}}else return!1;return i!==t&&t.providers!==void 0}function Vu(t,e){for(let n of t)up(n)&&(n=n.\u0275providers),Array.isArray(n)?Vu(n,e):e(n)}var Mw=J({provide:String,useValue:J});function Mp(t){return t!==null&&typeof t=="object"&&Mw in t}function Aw(t){return!!(t&&t.useExisting)}function Nw(t){return!!(t&&t.useFactory)}function Cr(t){return typeof t=="function"}function xw(t){return!!t.useClass}var Ds=new I(""),Go={},Rw={},bl;function ju(){return bl===void 0&&(bl=new Jo),bl}var Re=class{},ai=class extends Re{get destroyed(){return this._destroyed}constructor(e,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Gl(e,s=>this.processProvider(s)),this.records.set(gp,gr(void 0,this)),i.has("environment")&&this.records.set(Re,gr(void 0,this));let o=this.records.get(Ds);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(mp,xe,V.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=K(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),K(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let n=en(this),r=Ne(void 0),i;try{return e()}finally{en(n),Ne(r)}}get(e,n=oi,r=V.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(vh))return e[vh](this);r=vs(r);let i,o=en(this),s=Ne(void 0);try{if(!(r&V.SkipSelf)){let l=this.records.get(e);if(l===void 0){let u=Lw(e)&&ys(e);u&&this.injectableDefInScope(u)?l=gr(zl(e),Go):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let a=r&V.Self?ju():this.parent;return n=r&V.Optional&&n===oi?null:n,a.get(e,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Yo]=a[Yo]||[]).unshift(Me(e)),o)throw a;return lw(a,e,"R3InjectorError",this.source)}else throw a}finally{Ne(s),en(o)}}resolveInjectorInitializers(){let e=K(null),n=en(this),r=Ne(void 0),i;try{let o=this.get(Er,xe,V.Self);for(let s of o)s()}finally{en(n),Ne(r),K(e)}}toString(){let e=[],n=this.records;for(let r of n.keys())e.push(Me(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new m(205,!1)}processProvider(e){e=Te(e);let n=Cr(e)?e:Te(e&&e.provide),r=Pw(e);if(!Cr(e)&&e.multi===!0){let i=this.records.get(n);i||(i=gr(void 0,Go,!0),i.factory=()=>Ul(i.multi),this.records.set(n,i)),n=e,i.multi.push(e)}this.records.set(n,r)}hydrate(e,n){let r=K(null);try{return n.value===Go&&(n.value=Rw,n.value=n.factory()),typeof n.value=="object"&&n.value&&kw(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{K(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=Te(e.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(e){let n=this._onDestroyHooks.indexOf(e);n!==-1&&this._onDestroyHooks.splice(n,1)}};function zl(t){let e=ys(t),n=e!==null?e.factory:Tn(t);if(n!==null)return n;if(t instanceof I)throw new m(204,!1);if(t instanceof Function)return Ow(t);throw new m(204,!1)}function Ow(t){if(t.length>0)throw new m(204,!1);let n=WD(t);return n!==null?()=>n.factory(t):()=>new t}function Pw(t){if(Mp(t))return gr(void 0,t.useValue);{let e=Ap(t);return gr(e,Go)}}function Ap(t,e,n){let r;if(Cr(t)){let i=Te(t);return Tn(i)||zl(i)}else if(Mp(t))r=()=>Te(t.useValue);else if(Nw(t))r=()=>t.useFactory(...Ul(t.deps||[]));else if(Aw(t))r=()=>b(Te(t.useExisting));else{let i=Te(t&&(t.useClass||t.provide));if(Fw(t))r=()=>new i(...Ul(t.deps));else return Tn(i)||zl(i)}return r}function gr(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Fw(t){return!!t.deps}function kw(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Lw(t){return typeof t=="function"||typeof t=="object"&&t instanceof I}function Gl(t,e){for(let n of t)Array.isArray(n)?Gl(n,e):n&&up(n)?Gl(n.\u0275providers,e):e(n)}function Ft(t,e){t instanceof ai&&t.assertNotDestroyed();let n,r=en(t),i=Ne(void 0);try{return e()}finally{en(r),Ne(i)}}function Vw(){return cp()!==void 0||ow()!=null}function jw(t){return typeof t=="function"}var Dt=0,H=1,A=2,be=3,rt=4,ut=5,es=6,li=7,it=8,br=9,ot=10,le=11,ui=12,_h=13,Mr=14,yt=15,ws=16,mr=17,_r=18,Es=19,Np=20,tn=21,_l=22,An=23,Qe=25,Bu=1;var Nn=7,ts=8,ns=9,We=10,Uu=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Uu||{});function In(t){return Array.isArray(t)&&typeof t[Bu]=="object"}function kt(t){return Array.isArray(t)&&t[Bu]===!0}function $u(t){return(t.flags&4)!==0}function Cs(t){return t.componentOffset>-1}function bs(t){return(t.flags&1)===1}function Nt(t){return!!t.template}function Bw(t){return(t[A]&512)!==0}var ql=class{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function xp(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}function sn(){return Rp}function Rp(t){return t.type.prototype.ngOnChanges&&(t.setInput=$w),Uw}sn.ngInherit=!0;function Uw(){let t=Pp(this),e=t?.current;if(e){let n=t.previous;if(n===wr)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function $w(t,e,n,r,i){let o=this.declaredInputs[r],s=Pp(t)||Hw(t,{previous:wr,current:null}),a=s.current||(s.current={}),l=s.previous,u=l[o];a[o]=new ql(u&&u.currentValue,n,l===wr),xp(t,e,i,n)}var Op="__ngSimpleChanges__";function Pp(t){return t[Op]||null}function Hw(t,e){return t[Op]=e}var Ih=null;var pt=function(t,e,n){Ih?.(t,e,n)},zw="svg",Gw="math",qw=!1;function Ww(){return qw}function vt(t){for(;Array.isArray(t);)t=t[Dt];return t}function Qw(t){for(;Array.isArray(t);){if(typeof t[Bu]=="object")return t;t=t[Dt]}return null}function Fp(t,e){return vt(e[t])}function Ke(t,e){return vt(e[t.index])}function kp(t,e){return t.data[e]}function Lp(t,e){return t[e]}function an(t,e){let n=e[t];return In(n)?n:n[Dt]}function Hu(t){return(t[A]&128)===128}function Kw(t){return kt(t[be])}function Ir(t,e){return e==null?null:t[e]}function Vp(t){t[mr]=0}function Zw(t){t[A]&1024||(t[A]|=1024,Hu(t)&&ci(t))}function Yw(t,e){for(;t>0;)e=e[Mr],t--;return e}function zu(t){return!!(t[A]&9216||t[An]?.dirty)}function Wl(t){t[ot].changeDetectionScheduler?.notify(1),zu(t)?ci(t):t[A]&64&&(Ww()?(t[A]|=1024,ci(t)):t[ot].changeDetectionScheduler?.notify())}function ci(t){t[ot].changeDetectionScheduler?.notify();let e=di(t);for(;e!==null&&!(e[A]&8192||(e[A]|=8192,!Hu(e)));)e=di(e)}function jp(t,e){if((t[A]&256)===256)throw new m(911,!1);t[tn]===null&&(t[tn]=[]),t[tn].push(e)}function Xw(t,e){if(t[tn]===null)return;let n=t[tn].indexOf(e);n!==-1&&t[tn].splice(n,1)}function di(t){let e=t[be];return kt(e)?e[be]:e}var j={lFrame:Qp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Jw(){return j.lFrame.elementDepthCount}function eE(){j.lFrame.elementDepthCount++}function tE(){j.lFrame.elementDepthCount--}function Bp(){return j.bindingsEnabled}function nE(){return j.skipHydrationRootTNode!==null}function rE(t){return j.skipHydrationRootTNode===t}function iE(){j.skipHydrationRootTNode=null}function Z(){return j.lFrame.lView}function _e(){return j.lFrame.tView}function Di(t){return j.lFrame.contextLView=t,t[it]}function wi(t){return j.lFrame.contextLView=null,t}function Oe(){let t=Up();for(;t!==null&&t.type===64;)t=t.parent;return t}function Up(){return j.lFrame.currentTNode}function oE(){let t=j.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Ln(t,e){let n=j.lFrame;n.currentTNode=t,n.isParent=e}function Gu(){return j.lFrame.isParent}function $p(){j.lFrame.isParent=!1}function _s(){let t=j.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function sE(t){return j.lFrame.bindingIndex=t}function Is(){return j.lFrame.bindingIndex++}function Hp(t){let e=j.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function aE(){return j.lFrame.inI18n}function lE(t,e){let n=j.lFrame;n.bindingIndex=n.bindingRootIndex=t,Ql(e)}function uE(){return j.lFrame.currentDirectiveIndex}function Ql(t){j.lFrame.currentDirectiveIndex=t}function zp(t){let e=j.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Gp(t){j.lFrame.currentQueryIndex=t}function cE(t){let e=t[H];return e.type===2?e.declTNode:e.type===1?t[ut]:null}function qp(t,e,n){if(n&V.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(n&V.Host);)if(i=cE(o),i===null||(o=o[Mr],i.type&10))break;if(i===null)return!1;e=i,t=o}let r=j.lFrame=Wp();return r.currentTNode=e,r.lView=t,!0}function qu(t){let e=Wp(),n=t[H];j.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Wp(){let t=j.lFrame,e=t===null?null:t.child;return e===null?Qp(t):e}function Qp(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Kp(){let t=j.lFrame;return j.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Zp=Kp;function Wu(){let t=Kp();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function dE(t){return(j.lFrame.contextLView=Yw(t,j.lFrame.contextLView))[it]}function Vn(){return j.lFrame.selectedIndex}function xn(t){j.lFrame.selectedIndex=t}function Qu(){let t=j.lFrame;return kp(t.tView,t.selectedIndex)}function fE(){return j.lFrame.currentNamespace}var Yp=!0;function Ss(){return Yp}function Ts(t){Yp=t}function hE(t,e,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){let s=Rp(e);(n.preOrderHooks??=[]).push(t,s),(n.preOrderCheckHooks??=[]).push(t,s)}i&&(n.preOrderHooks??=[]).push(0-t,i),o&&((n.preOrderHooks??=[]).push(t,o),(n.preOrderCheckHooks??=[]).push(t,o))}function Ms(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){let o=t.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:u,ngOnDestroy:c}=o;s&&(t.contentHooks??=[]).push(-n,s),a&&((t.contentHooks??=[]).push(n,a),(t.contentCheckHooks??=[]).push(n,a)),l&&(t.viewHooks??=[]).push(-n,l),u&&((t.viewHooks??=[]).push(n,u),(t.viewCheckHooks??=[]).push(n,u)),c!=null&&(t.destroyHooks??=[]).push(n,c)}}function qo(t,e,n){Xp(t,e,3,n)}function Wo(t,e,n,r){(t[A]&3)===n&&Xp(t,e,n,r)}function Il(t,e){let n=t[A];(n&3)===e&&(n&=16383,n+=1,t[A]=n)}function Xp(t,e,n,r){let i=r!==void 0?t[mr]&65535:0,o=r??-1,s=e.length-1,a=0;for(let l=i;l<s;l++)if(typeof e[l+1]=="number"){if(a=e[l],r!=null&&a>=r)break}else e[l]<0&&(t[mr]+=65536),(a<o||o==-1)&&(pE(t,n,e,l),t[mr]=(t[mr]&4294901760)+l+2),l++}function Sh(t,e){pt(4,t,e);let n=K(null);try{e.call(t)}finally{K(n),pt(5,t,e)}}function pE(t,e,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=t[s];i?t[A]>>14<t[mr]>>16&&(t[A]&3)===e&&(t[A]+=16384,Sh(a,o)):Sh(a,o)}var Dr=-1,Rn=class{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function gE(t){return t instanceof Rn}function mE(t){return(t.flags&8)!==0}function yE(t){return(t.flags&16)!==0}function Jp(t){return t!==Dr}function rs(t){return t&32767}function vE(t){return t>>16}function is(t,e){let n=vE(t),r=e;for(;n>0;)r=r[Mr],n--;return r}var Kl=!0;function os(t){let e=Kl;return Kl=t,e}var DE=256,eg=DE-1,tg=5,wE=0,gt={};function EE(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(ii)&&(r=n[ii]),r==null&&(r=n[ii]=wE++);let i=r&eg,o=1<<i;e.data[t+(i>>tg)]|=o}function ss(t,e){let n=ng(t,e);if(n!==-1)return n;let r=e[H];r.firstCreatePass&&(t.injectorIndex=e.length,Sl(r.data,t),Sl(e,null),Sl(r.blueprint,null));let i=Ku(t,e),o=t.injectorIndex;if(Jp(i)){let s=rs(i),a=is(i,e),l=a[H].data;for(let u=0;u<8;u++)e[o+u]=a[s+u]|l[s+u]}return e[o+8]=i,o}function Sl(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ng(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Ku(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;i!==null;){if(r=ag(i),r===null)return Dr;if(n++,i=i[Mr],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Dr}function Zl(t,e,n){EE(t,e,n)}function CE(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let n=t.attrs;if(n){let r=n.length,i=0;for(;i<r;){let o=n[i];if(vp(o))break;if(o===0)i=i+2;else if(typeof o=="number")for(i++;i<r&&typeof n[i]=="string";)i++;else{if(o===e)return n[i+1];i=i+2}}}return null}function rg(t,e,n){if(n&V.Optional||t!==void 0)return t;Ru(e,"NodeInjector")}function ig(t,e,n,r){if(n&V.Optional&&r===void 0&&(r=null),!(n&(V.Self|V.Host))){let i=t[br],o=Ne(void 0);try{return i?i.get(e,r,n&V.Optional):dp(e,r,n&V.Optional)}finally{Ne(o)}}return rg(r,e,n)}function og(t,e,n,r=V.Default,i){if(t!==null){if(e[A]&2048&&!(r&V.Self)){let s=TE(t,e,n,r,gt);if(s!==gt)return s}let o=sg(t,e,n,r,gt);if(o!==gt)return o}return ig(e,n,r,i)}function sg(t,e,n,r,i){let o=IE(n);if(typeof o=="function"){if(!qp(e,t,r))return r&V.Host?rg(i,n,r):ig(e,n,r,i);try{let s;if(s=o(r),s==null&&!(r&V.Optional))Ru(n);else return s}finally{Zp()}}else if(typeof o=="number"){let s=null,a=ng(t,e),l=Dr,u=r&V.Host?e[yt][ut]:null;for((a===-1||r&V.SkipSelf)&&(l=a===-1?Ku(t,e):e[a+8],l===Dr||!Mh(r,!1)?a=-1:(s=e[H],a=rs(l),e=is(l,e)));a!==-1;){let c=e[H];if(Th(o,a,c.data)){let d=bE(a,e,n,s,r,u);if(d!==gt)return d}l=e[a+8],l!==Dr&&Mh(r,e[H].data[a+8]===u)&&Th(o,a,e)?(s=c,a=rs(l),e=is(l,e)):a=-1}}return i}function bE(t,e,n,r,i,o){let s=e[H],a=s.data[t+8],l=r==null?Cs(a)&&Kl:r!=s&&(a.type&3)!==0,u=i&V.Host&&o===a,c=_E(a,s,n,l,u);return c!==null?Sr(e,s,c,a):gt}function _E(t,e,n,r,i){let o=t.providerIndexes,s=e.data,a=o&1048575,l=t.directiveStart,u=t.directiveEnd,c=o>>20,d=r?a:a+c,h=i?a+c:u;for(let f=d;f<h;f++){let p=s[f];if(f<l&&n===p||f>=l&&p.type===n)return f}if(i){let f=s[l];if(f&&Nt(f)&&f.type===n)return l}return null}function Sr(t,e,n,r){let i=t[n],o=e.data;if(gE(i)){let s=i;s.resolving&&ew(JD(o[n]));let a=os(s.canSeeViewProviders);s.resolving=!0;let l,u=s.injectImpl?Ne(s.injectImpl):null,c=qp(t,r,V.Default);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&hE(n,o[n],e)}finally{u!==null&&Ne(u),os(a),s.resolving=!1,Zp()}}return i}function IE(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(ii)?t[ii]:void 0;return typeof e=="number"?e>=0?e&eg:SE:e}function Th(t,e,n){let r=1<<t;return!!(n[e+(t>>tg)]&r)}function Mh(t,e){return!(t&V.Self)&&!(t&V.Host&&e)}var Sn=class{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return og(this._tNode,this._lView,e,vs(r),n)}};function SE(){return new Sn(Oe(),Z())}function Ar(t){return mi(()=>{let e=t.prototype.constructor,n=e[Zo]||Yl(e),r=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){let o=i[Zo]||Yl(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Yl(t){return op(t)?()=>{let e=Yl(Te(t));return e&&e()}:Tn(t)}function TE(t,e,n,r,i){let o=t,s=e;for(;o!==null&&s!==null&&s[A]&2048&&!(s[A]&512);){let a=sg(o,s,n,r|V.Self,gt);if(a!==gt)return a;let l=o.parent;if(!l){let u=s[Np];if(u){let c=u.get(n,gt,r);if(c!==gt)return c}l=ag(s),s=s[Mr]}o=l}return i}function ag(t){let e=t[H],n=e.type;return n===2?e.declTNode:n===1?t[ut]:null}function Zu(t){return CE(Oe(),t)}function Ah(t,e=null,n=null,r){let i=lg(t,e,n,r);return i.resolveInjectorInitializers(),i}function lg(t,e=null,n=null,r,i=new Set){let o=[n||xe,Tw(t)];return r=r||(typeof t=="object"?void 0:Me(t)),new ai(o,e||ju(),r||null,i)}var wt=(()=>{let e=class e{static create(r,i){if(Array.isArray(r))return Ah({name:""},i,r,"");{let o=r.name??"";return Ah({name:o},r.parent,r.providers,o)}}};e.THROW_IF_NOT_FOUND=oi,e.NULL=new Jo,e.\u0275prov=C({token:e,providedIn:"any",factory:()=>b(gp)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})();var ME="ngOriginalError";function Tl(t){return t[ME]}var xt=class{constructor(){this._console=console}handleError(e){let n=this._findOriginalError(e);this._console.error("ERROR",e),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&Tl(e);for(;n&&Tl(n);)n=Tl(n);return n||null}},ug=new I("",{providedIn:"root",factory:()=>w(xt).handleError.bind(void 0)}),cg=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=AE,e.__NG_ENV_ID__=r=>r;let t=e;return t})(),Xl=class extends cg{constructor(e){super(),this._lView=e}onDestroy(e){return jp(this._lView,e),()=>Xw(this._lView,e)}};function AE(){return new Xl(Z())}function NE(){return As(Oe(),Z())}function As(t,e){return new Lt(Ke(t,e))}var Lt=(()=>{let e=class e{constructor(r){this.nativeElement=r}};e.__NG_ELEMENT_ID__=NE;let t=e;return t})();var Jl=class extends re{constructor(e=!1){super(),this.destroyRef=void 0,this.__isAsync=e,Vw()&&(this.destroyRef=w(cg,{optional:!0})??void 0)}emit(e){let n=K(null);try{super.next(e)}finally{K(n)}}subscribe(e,n,r){let i=e,o=n||(()=>null),s=r;if(e&&typeof e=="object"){let l=e;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Ml(o),i&&(i=Ml(i)),s&&(s=Ml(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof ce&&e.add(a),a}};function Ml(t){return e=>{setTimeout(t,void 0,e)}}var Ee=Jl;function dg(t){return(t.flags&128)===128}var fg=new Map,xE=0;function RE(){return xE++}function OE(t){fg.set(t[Es],t)}function PE(t){fg.delete(t[Es])}var Nh="__ngContext__";function nn(t,e){In(e)?(t[Nh]=e[Es],OE(e)):t[Nh]=e}function hg(t){return gg(t[ui])}function pg(t){return gg(t[rt])}function gg(t){for(;t!==null&&!kt(t);)t=t[rt];return t}var eu;function mg(t){eu=t}function yg(){if(eu!==void 0)return eu;if(typeof document<"u")return document;throw new m(210,!1)}var Yu=new I("",{providedIn:"root",factory:()=>FE}),FE="ng",Xu=new I(""),ln=new I("",{providedIn:"platform",factory:()=>"unknown"});var Ju=new I(""),ec=new I("",{providedIn:"root",factory:()=>yg().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var kE="h",LE="b";var VE=()=>null;function tc(t,e,n=!1){return VE(t,e,n)}var vg=!1,jE=new I("",{providedIn:"root",factory:()=>vg});var Bo;function BE(){if(Bo===void 0&&(Bo=null,Be.trustedTypes))try{Bo=Be.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Bo}function Ns(t){return BE()?.createHTML(t)||t}var Uo;function Dg(){if(Uo===void 0&&(Uo=null,Be.trustedTypes))try{Uo=Be.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Uo}function xh(t){return Dg()?.createHTML(t)||t}function Rh(t){return Dg()?.createScriptURL(t)||t}var Rt=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${rp})`}},tu=class extends Rt{getTypeName(){return"HTML"}},nu=class extends Rt{getTypeName(){return"Style"}},ru=class extends Rt{getTypeName(){return"Script"}},iu=class extends Rt{getTypeName(){return"URL"}},ou=class extends Rt{getTypeName(){return"ResourceURL"}};function Ze(t){return t instanceof Rt?t.changingThisBreaksApplicationSecurity:t}function Vt(t,e){let n=UE(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${rp})`)}return n===e}function UE(t){return t instanceof Rt&&t.getTypeName()||null}function wg(t){return new tu(t)}function Eg(t){return new nu(t)}function Cg(t){return new ru(t)}function bg(t){return new iu(t)}function _g(t){return new ou(t)}function $E(t){let e=new au(t);return HE()?new su(e):e}var su=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let n=new window.DOMParser().parseFromString(Ns(e),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(e):(n.removeChild(n.firstChild),n)}catch{return null}}},au=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let n=this.inertDocument.createElement("template");return n.innerHTML=Ns(e),n}};function HE(){try{return!!new window.DOMParser().parseFromString(Ns(""),"text/html")}catch{return!1}}var zE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function xs(t){return t=String(t),t.match(zE)?t:"unsafe:"+t}function jt(t){let e={};for(let n of t.split(","))e[n]=!0;return e}function Ei(...t){let e={};for(let n of t)for(let r in n)n.hasOwnProperty(r)&&(e[r]=!0);return e}var Ig=jt("area,br,col,hr,img,wbr"),Sg=jt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Tg=jt("rp,rt"),GE=Ei(Tg,Sg),qE=Ei(Sg,jt("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),WE=Ei(Tg,jt("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Oh=Ei(Ig,qE,WE,GE),Mg=jt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),QE=jt("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),KE=jt("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),ZE=Ei(Mg,QE,KE),YE=jt("script,style,template"),lu=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let n=e.firstChild,r=!0,i=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){i.push(n),n=eC(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=JE(n);if(o){n=o;break}n=i.pop()}}return this.buf.join("")}startElement(e){let n=Ph(e).toLowerCase();if(!Oh.hasOwnProperty(n))return this.sanitizedSomething=!0,!YE.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=e.attributes;for(let i=0;i<r.length;i++){let o=r.item(i),s=o.name,a=s.toLowerCase();if(!ZE.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=o.value;Mg[a]&&(l=xs(l)),this.buf.push(" ",s,'="',Fh(l),'"')}return this.buf.push(">"),!0}endElement(e){let n=Ph(e).toLowerCase();Oh.hasOwnProperty(n)&&!Ig.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(e){this.buf.push(Fh(e))}};function XE(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function JE(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw Ag(e);return e}function eC(t){let e=t.firstChild;if(e&&XE(t,e))throw Ag(e);return e}function Ph(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function Ag(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var tC=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,nC=/([^\#-~ |!])/g;function Fh(t){return t.replace(/&/g,"&").replace(tC,function(e){let n=e.charCodeAt(0),r=e.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(nC,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var $o;function nc(t,e){let n=null;try{$o=$o||$E(t);let r=e?String(e):"";n=$o.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=$o.getInertBodyElement(r)}while(r!==o);let a=new lu().sanitizeChildren(kh(n)||n);return Ns(a)}finally{if(n){let r=kh(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function kh(t){return"content"in t&&rC(t)?t.content:null}function rC(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Ue=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ue||{});function rc(t){let e=ic();return e?xh(e.sanitize(Ue.HTML,t)||""):Vt(t,"HTML")?xh(Ze(t)):nc(yg(),yi(t))}function iC(t){let e=ic();return e?e.sanitize(Ue.URL,t)||"":Vt(t,"URL")?Ze(t):xs(yi(t))}function oC(t){let e=ic();if(e)return Rh(e.sanitize(Ue.RESOURCE_URL,t)||"");if(Vt(t,"ResourceURL"))return Rh(Ze(t));throw new m(904,!1)}function sC(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?oC:iC}function Ng(t,e,n){return sC(e,n)(t)}function ic(){let t=Z();return t&&t[ot].sanitizer}var aC=/^>|^->|<!--|-->|--!>|<!-$/g,lC=/(<|>)/g,uC="\u200B$1\u200B";function cC(t){return t.replace(aC,e=>e.replace(lC,uC))}function xg(t){return t instanceof Function?t():t}var Ot=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Ot||{}),dC;function oc(t,e){return dC(t,e)}function yr(t,e,n,r,i){if(r!=null){let o,s=!1;kt(r)?o=r:In(r)&&(s=!0,r=r[Dt]);let a=vt(r);t===0&&n!==null?i==null?kg(e,n,a):as(e,n,a,i||null,!0):t===1&&n!==null?as(e,n,a,i||null,!0):t===2?AC(e,a,s):t===3&&e.destroyNode(a),o!=null&&xC(e,t,o,n,i)}}function fC(t,e){return t.createText(e)}function hC(t,e,n){t.setValue(e,n)}function pC(t,e){return t.createComment(cC(e))}function Rg(t,e,n){return t.createElement(e,n)}function gC(t,e){Og(t,e),e[Dt]=null,e[ut]=null}function mC(t,e,n,r,i,o){r[Dt]=i,r[ut]=e,Os(t,r,n,1,i,o)}function Og(t,e){e[ot].changeDetectionScheduler?.notify(1),Os(t,e,e[le],2,null,null)}function yC(t){let e=t[ui];if(!e)return Al(t[H],t);for(;e;){let n=null;if(In(e))n=e[ui];else{let r=e[We];r&&(n=r)}if(!n){for(;e&&!e[rt]&&e!==t;)In(e)&&Al(e[H],e),e=e[be];e===null&&(e=t),In(e)&&Al(e[H],e),n=e&&e[rt]}e=n}}function vC(t,e,n,r){let i=We+r,o=n.length;r>0&&(n[i-1][rt]=e),r<o-We?(e[rt]=n[i],pp(n,We+r,e)):(n.push(e),e[rt]=null),e[be]=n;let s=e[ws];s!==null&&n!==s&&DC(s,e);let a=e[_r];a!==null&&a.insertView(t),Wl(e),e[A]|=128}function DC(t,e){let n=t[ns],i=e[be][be][yt];e[yt]!==i&&(t[A]|=Uu.HasTransplantedViews),n===null?t[ns]=[e]:n.push(e)}function Pg(t,e){let n=t[ns],r=n.indexOf(e);n.splice(r,1)}function uu(t,e){if(t.length<=We)return;let n=We+e,r=t[n];if(r){let i=r[ws];i!==null&&i!==t&&Pg(i,r),e>0&&(t[n-1][rt]=r[rt]);let o=Xo(t,We+e);gC(r[H],r);let s=o[_r];s!==null&&s.detachView(o[H]),r[be]=null,r[rt]=null,r[A]&=-129}return r}function Fg(t,e){if(!(e[A]&256)){let n=e[le];n.destroyNode&&Os(t,e,n,3,null,null),yC(e)}}function Al(t,e){if(e[A]&256)return;let n=K(null);try{e[A]&=-129,e[A]|=256,e[An]&&kf(e[An]),EC(t,e),wC(t,e),e[H].type===1&&e[le].destroy();let r=e[ws];if(r!==null&&kt(e[be])){r!==e[be]&&Pg(r,e);let i=e[_r];i!==null&&i.detachView(t)}PE(e)}finally{K(n)}}function wC(t,e){let n=t.cleanup,r=e[li];if(n!==null)for(let o=0;o<n.length-1;o+=2)if(typeof n[o]=="string"){let s=n[o+3];s>=0?r[s]():r[-s].unsubscribe(),o+=2}else{let s=r[n[o+1]];n[o].call(s)}r!==null&&(e[li]=null);let i=e[tn];if(i!==null){e[tn]=null;for(let o=0;o<i.length;o++){let s=i[o];s()}}}function EC(t,e){let n;if(t!=null&&(n=t.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=e[n[r]];if(!(i instanceof Rn)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],l=o[s+1];pt(4,a,l);try{l.call(a)}finally{pt(5,a,l)}}else{pt(4,i,o);try{o.call(i)}finally{pt(5,i,o)}}}}}function CC(t,e,n){return bC(t,e.parent,n)}function bC(t,e,n){let r=e;for(;r!==null&&r.type&40;)e=r,r=e.parent;if(r===null)return n[Dt];{let{componentOffset:i}=r;if(i>-1){let{encapsulation:o}=t.data[r.directiveStart+i];if(o===mt.None||o===mt.Emulated)return null}return Ke(r,n)}}function as(t,e,n,r,i){t.insertBefore(e,n,r,i)}function kg(t,e,n){t.appendChild(e,n)}function Lh(t,e,n,r,i){r!==null?as(t,e,n,r,i):kg(t,e,n)}function _C(t,e,n,r){t.removeChild(e,n,r)}function sc(t,e){return t.parentNode(e)}function IC(t,e){return t.nextSibling(e)}function SC(t,e,n){return MC(t,e,n)}function TC(t,e,n){return t.type&40?Ke(t,n):null}var MC=TC,Vh;function Rs(t,e,n,r){let i=CC(t,r,e),o=e[le],s=r.parent||e[ut],a=SC(s,r,e);if(i!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Lh(o,i,n[l],a,!1);else Lh(o,i,n,a,!1);Vh!==void 0&&Vh(o,r,e,n,i)}function Qo(t,e){if(e!==null){let n=e.type;if(n&3)return Ke(e,t);if(n&4)return cu(-1,t[e.index]);if(n&8){let r=e.child;if(r!==null)return Qo(t,r);{let i=t[e.index];return kt(i)?cu(-1,i):vt(i)}}else{if(n&32)return oc(e,t)()||vt(t[e.index]);{let r=Lg(t,e);if(r!==null){if(Array.isArray(r))return r[0];let i=di(t[yt]);return Qo(i,r)}else return Qo(t,e.next)}}}return null}function Lg(t,e){if(e!==null){let r=t[yt][ut],i=e.projection;return r.projection[i]}return null}function cu(t,e){let n=We+t+1;if(n<e.length){let r=e[n],i=r[H].firstChild;if(i!==null)return Qo(r,i)}return e[Nn]}function AC(t,e,n){let r=sc(t,e);r&&_C(t,r,e,n)}function ac(t,e,n,r,i,o,s){for(;n!=null;){let a=r[n.index],l=n.type;if(s&&e===0&&(a&&nn(vt(a),r),n.flags|=2),(n.flags&32)!==32)if(l&8)ac(t,e,n.child,r,i,o,!1),yr(e,t,i,a,o);else if(l&32){let u=oc(n,r),c;for(;c=u();)yr(e,t,i,c,o);yr(e,t,i,a,o)}else l&16?NC(t,e,r,n,i,o):yr(e,t,i,a,o);n=s?n.projectionNext:n.next}}function Os(t,e,n,r,i,o){ac(n,r,t.firstChild,e,i,o,!1)}function NC(t,e,n,r,i,o){let s=n[yt],l=s[ut].projection[r.projection];if(Array.isArray(l))for(let u=0;u<l.length;u++){let c=l[u];yr(e,t,i,c,o)}else{let u=l,c=s[be];dg(r)&&(u.flags|=128),ac(t,e,u,c,i,o,!0)}}function xC(t,e,n,r,i){let o=n[Nn],s=vt(n);o!==s&&yr(e,t,r,o,i);for(let a=We;a<n.length;a++){let l=n[a];Os(l[H],l,t,e,r,o)}}function RC(t,e,n,r,i){if(e)i?t.addClass(n,r):t.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:Ot.DashCase;i==null?t.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=Ot.Important),t.setStyle(n,r,i,o))}}function OC(t,e,n){t.setAttribute(e,"style",n)}function Vg(t,e,n){n===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n)}function jg(t,e,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&$l(t,e,r),i!==null&&Vg(t,e,i),o!==null&&OC(t,e,o)}var Et={};function B(t=1){Bg(_e(),Z(),Vn()+t,!1)}function Bg(t,e,n,r){if(!r)if((e[A]&3)===3){let o=t.preOrderCheckHooks;o!==null&&qo(e,o,n)}else{let o=t.preOrderHooks;o!==null&&Wo(e,o,0,n)}xn(n)}function S(t,e=V.Default){let n=Z();if(n===null)return b(t,e);let r=Oe();return og(r,n,Te(t),e)}function Ug(t,e,n,r,i,o){let s=K(null);try{let a=null;i&Ce.SignalBased&&(a=e[r][ir]),a!==null&&a.transformFn!==void 0&&(o=a.transformFn(o)),i&Ce.HasDecoratorInputTransform&&(o=t.inputTransforms[r].call(e,o)),t.setInput!==null?t.setInput(e,a,o,n,r):xp(e,a,r,o)}finally{K(s)}}function PC(t,e){let n=t.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)xn(~i);else{let o=i,s=n[++r],a=n[++r];lE(s,o);let l=e[o];a(2,l)}}}finally{xn(-1)}}function Ps(t,e,n,r,i,o,s,a,l,u,c){let d=e.blueprint.slice();return d[Dt]=i,d[A]=r|4|128|8|64,(u!==null||t&&t[A]&2048)&&(d[A]|=2048),Vp(d),d[be]=d[Mr]=t,d[it]=n,d[ot]=s||t&&t[ot],d[le]=a||t&&t[le],d[br]=l||t&&t[br]||null,d[ut]=o,d[Es]=RE(),d[es]=c,d[Np]=u,d[yt]=e.type==2?t[yt]:d,d}function Ci(t,e,n,r,i){let o=t.data[e];if(o===null)o=FC(t,e,n,r,i),aE()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=oE();o.injectorIndex=s===null?-1:s.injectorIndex}return Ln(o,!0),o}function FC(t,e,n,r,i){let o=Up(),s=Gu(),a=s?o:o&&o.parent,l=t.data[e]=BC(t,a,n,e,r,i);return t.firstChild===null&&(t.firstChild=l),o!==null&&(s?o.child==null&&l.parent!==null&&(o.child=l):o.next===null&&(o.next=l,l.prev=o)),l}function $g(t,e,n,r){if(n===0)return-1;let i=e.length;for(let o=0;o<n;o++)e.push(r),t.blueprint.push(r),t.data.push(null);return i}function Hg(t,e,n,r,i){let o=Vn(),s=r&2;try{xn(-1),s&&e.length>Qe&&Bg(t,e,Qe,!1),pt(s?2:0,i),n(r,i)}finally{xn(o),pt(s?3:1,i)}}function lc(t,e,n){if($u(e)){let r=K(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;s<o;s++){let a=t.data[s];if(a.contentQueries){let l=n[s];a.contentQueries(1,l,s)}}}finally{K(r)}}}function uc(t,e,n){Bp()&&(qC(t,e,n,Ke(n,e)),(n.flags&64)===64&&Wg(t,e,n))}function cc(t,e,n=Ke){let r=e.localNames;if(r!==null){let i=e.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?n(e,t):t[s];t[i++]=a}}}function zg(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=dc(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function dc(t,e,n,r,i,o,s,a,l,u,c){let d=Qe+r,h=d+i,f=kC(d,h),p=typeof u=="function"?u():u;return f[H]={type:t,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:e,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1,ssrId:c}}function kC(t,e){let n=[];for(let r=0;r<e;r++)n.push(r<t?null:Et);return n}function LC(t,e,n,r){let o=r.get(jE,vg)||n===mt.ShadowDom,s=t.selectRootElement(e,o);return VC(s),s}function VC(t){jC(t)}var jC=()=>null;function BC(t,e,n,r,i,o){let s=e?e.injectorIndex:-1,a=0;return nE()&&(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:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function jh(t,e,n,r,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;r??={};let a,l=Ce.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let u=o;if(i!==null){if(!i.hasOwnProperty(o))continue;u=i[o]}t===0?Bh(r,n,u,a,l):Bh(r,n,u,a)}return r}function Bh(t,e,n,r,i){let o;t.hasOwnProperty(n)?(o=t[n]).push(e,r):o=t[n]=[e,r],i!==void 0&&o.push(i)}function UC(t,e,n){let r=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],l=null,u=null;for(let c=r;c<i;c++){let d=o[c],h=n?n.get(d):null,f=h?h.inputs:null,p=h?h.outputs:null;l=jh(0,d.inputs,c,l,f),u=jh(1,d.outputs,c,u,p);let g=l!==null&&s!==null&&!ku(e)?rb(l,c,s):null;a.push(g)}l!==null&&(l.hasOwnProperty("class")&&(e.flags|=8),l.hasOwnProperty("style")&&(e.flags|=16)),e.initialInputs=a,e.inputs=l,e.outputs=u}function $C(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function Gg(t,e,n,r,i,o,s,a){let l=Ke(e,n),u=e.inputs,c;!a&&u!=null&&(c=u[r])?(hc(t,n,c,r,i),Cs(e)&&HC(n,e.index)):e.type&3?(r=$C(r),i=s!=null?s(i,e.value||"",r):i,o.setProperty(l,r,i)):e.type&12}function HC(t,e){let n=an(e,t);n[A]&16||(n[A]|=64)}function fc(t,e,n,r){if(Bp()){let i=r===null?null:{"":-1},o=QC(t,n),s,a;o===null?s=a=null:[s,a]=o,s!==null&&qg(t,e,n,s,i,a),i&&KC(n,r,i)}n.mergedAttrs=si(n.mergedAttrs,n.attrs)}function qg(t,e,n,r,i,o){for(let u=0;u<r.length;u++)Zl(ss(n,e),t,r[u].type);YC(n,t.data.length,r.length);for(let u=0;u<r.length;u++){let c=r[u];c.providersResolver&&c.providersResolver(c)}let s=!1,a=!1,l=$g(t,e,r.length,null);for(let u=0;u<r.length;u++){let c=r[u];n.mergedAttrs=si(n.mergedAttrs,c.hostAttrs),XC(t,n,e,l,c),ZC(l,c,i),c.contentQueries!==null&&(n.flags|=4),(c.hostBindings!==null||c.hostAttrs!==null||c.hostVars!==0)&&(n.flags|=64);let d=c.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((t.preOrderHooks??=[]).push(n.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(n.index),a=!0),l++}UC(t,n,o)}function zC(t,e,n,r,i){let o=i.hostBindings;if(o){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;GC(s)!=a&&s.push(a),s.push(n,r,o)}}function GC(t){let e=t.length;for(;e>0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function qC(t,e,n,r){let i=n.directiveStart,o=n.directiveEnd;Cs(n)&&JC(e,n,t.data[i+n.componentOffset]),t.firstCreatePass||ss(n,e),nn(r,e);let s=n.initialInputs;for(let a=i;a<o;a++){let l=t.data[a],u=Sr(e,t,a,n);if(nn(u,e),s!==null&&nb(e,a-i,u,l,n,s),Nt(l)){let c=an(n.index,e);c[it]=Sr(e,t,a,n)}}}function Wg(t,e,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=uE();try{xn(o);for(let a=r;a<i;a++){let l=t.data[a],u=e[a];Ql(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&WC(l,u)}}finally{xn(-1),Ql(s)}}function WC(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function QC(t,e){let n=t.directiveRegistry,r=null,i=null;if(n)for(let o=0;o<n.length;o++){let s=n[o];if(vw(e,s.selectors,!1))if(r||(r=[]),Nt(s))if(s.findHostDirectiveDefs!==null){let a=[];i=i||new Map,s.findHostDirectiveDefs(s,a,i),r.unshift(...a,s);let l=a.length;du(t,e,l)}else r.unshift(s),du(t,e,0);else i=i||new Map,s.findHostDirectiveDefs?.(s,r,i),r.push(s)}return r===null?null:[r,i]}function du(t,e,n){e.componentOffset=n,(t.components??=[]).push(e.index)}function KC(t,e,n){if(e){let r=t.localNames=[];for(let i=0;i<e.length;i+=2){let o=n[e[i+1]];if(o==null)throw new m(-301,!1);r.push(e[i],o)}}}function ZC(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Nt(e)&&(n[""]=t)}}function YC(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function XC(t,e,n,r,i){t.data[r]=i;let o=i.factory||(i.factory=Tn(i.type,!0)),s=new Rn(o,Nt(i),S);t.blueprint[r]=s,n[r]=s,zC(t,e,r,$g(t,n,i.hostVars,Et),i)}function JC(t,e,n){let r=Ke(e,t),i=zg(n),o=t[ot].rendererFactory,s=16;n.signals?s=4096:n.onPush&&(s=64);let a=Fs(t,Ps(t,i,null,s,r,e,null,o.createRenderer(r,n),null,null,null));t[e.index]=a}function eb(t,e,n,r,i,o){let s=Ke(t,e);tb(e[le],s,o,t.value,n,r,i)}function tb(t,e,n,r,i,o,s){if(o==null)t.removeAttribute(e,i,n);else{let a=s==null?yi(o):s(o,r||"",i);t.setAttribute(e,i,a,n)}}function nb(t,e,n,r,i,o){let s=o[e];if(s!==null)for(let a=0;a<s.length;){let l=s[a++],u=s[a++],c=s[a++],d=s[a++];Ug(r,n,l,u,c,d)}}function rb(t,e,n){let r=null,i=0;for(;i<n.length;){let o=n[i];if(o===0){i+=4;continue}else if(o===5){i+=2;continue}if(typeof o=="number")break;if(t.hasOwnProperty(o)){r===null&&(r=[]);let s=t[o];for(let a=0;a<s.length;a+=3)if(s[a]===e){r.push(o,s[a+1],s[a+2],n[i+1]);break}}i+=2}return r}function Qg(t,e,n,r){return[t,!0,0,e,null,r,null,n,null,null]}function Kg(t,e){let n=t.contentQueries;if(n!==null){let r=K(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let a=t.data[s];Gp(o),a.contentQueries(2,e[s],s)}}}finally{K(r)}}}function Fs(t,e){return t[ui]?t[_h][rt]=e:t[ui]=e,t[_h]=e,e}function fu(t,e,n){Gp(0);let r=K(null);try{e(t,n)}finally{K(r)}}function ib(t){return t[li]||(t[li]=[])}function ob(t){return t.cleanup||(t.cleanup=[])}function sb(t,e,n){return(t===null||Nt(t))&&(n=Qw(n[e.index])),n[le]}function Zg(t,e){let n=t[br],r=n?n.get(xt,null):null;r&&r.handleError(e)}function hc(t,e,n,r,i){for(let o=0;o<n.length;){let s=n[o++],a=n[o++],l=n[o++],u=e[s],c=t.data[s];Ug(c,u,r,a,l,i)}}function ab(t,e,n){let r=Fp(e,t);hC(t[le],r,n)}function lb(t,e){let n=an(e,t),r=n[H];ub(r,n);let i=n[Dt];i!==null&&n[es]===null&&(n[es]=tc(i,n[br])),pc(r,n,n[it])}function ub(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}function pc(t,e,n){qu(e);try{let r=t.viewQuery;r!==null&&fu(1,r,n);let i=t.template;i!==null&&Hg(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),e[_r]?.finishViewCreation(t),t.staticContentQueries&&Kg(t,e),t.staticViewQueries&&fu(2,t.viewQuery,n);let o=t.components;o!==null&&cb(e,o)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[A]&=-5,Wu()}}function cb(t,e){for(let n=0;n<e.length;n++)lb(t,e[n])}function db(t,e,n,r){let i=K(null);try{let o=e.tView,a=t[A]&4096?4096:16,l=Ps(t,o,n,a,null,e,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=t[e.index];l[ws]=u;let c=t[_r];return c!==null&&(l[_r]=c.createEmbeddedView(o)),pc(o,l,n),l}finally{K(i)}}function Uh(t,e){return!e||e.firstChild===null||dg(t)}function fb(t,e,n,r=!0){let i=e[H];if(vC(i,e,t,n),r){let s=cu(n,t),a=e[le],l=sc(a,t[Nn]);l!==null&&mC(i,t[ut],a,e,l,s)}let o=e[es];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function ls(t,e,n,r,i=!1){for(;n!==null;){let o=e[n.index];o!==null&&r.push(vt(o)),kt(o)&&hb(o,r);let s=n.type;if(s&8)ls(t,e,n.child,r);else if(s&32){let a=oc(n,e),l;for(;l=a();)r.push(l)}else if(s&16){let a=Lg(e,n);if(Array.isArray(a))r.push(...a);else{let l=di(e[yt]);ls(l[H],l,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function hb(t,e){for(let n=We;n<t.length;n++){let r=t[n],i=r[H].firstChild;i!==null&&ls(r[H],r,i,e)}t[Nn]!==t[Dt]&&e.push(t[Nn])}var Yg=[];function pb(t){return t[An]??gb(t)}function gb(t){let e=Yg.pop()??Object.create(yb);return e.lView=t,e}function mb(t){t.lView[An]!==t&&(t.lView=null,Yg.push(t))}var yb=z(v({},nl),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{ci(t.lView)},consumerOnSignalRead(){this.lView[An]=this}}),Xg=100;function Jg(t,e=!0,n=0){let r=t[ot],i=r.rendererFactory,o=!1;o||i.begin?.();try{vb(t,n)}catch(s){throw e&&Zg(t,s),s}finally{o||(i.end?.(),r.inlineEffectRunner?.flush())}}function vb(t,e){hu(t,e);let n=0;for(;zu(t);){if(n===Xg)throw new m(103,!1);n++,hu(t,1)}}function Db(t,e,n,r){let i=e[A];if((i&256)===256)return;let o=!1;!o&&e[ot].inlineEffectRunner?.flush(),qu(e);let s=null,a=null;!o&&wb(t)&&(a=pb(e),s=Pf(a));try{Vp(e),sE(t.bindingStartIndex),n!==null&&Hg(t,e,n,2,r);let l=(i&3)===3;if(!o)if(l){let d=t.preOrderCheckHooks;d!==null&&qo(e,d,null)}else{let d=t.preOrderHooks;d!==null&&Wo(e,d,0,null),Il(e,0)}if(Eb(e),em(e,0),t.contentQueries!==null&&Kg(t,e),!o)if(l){let d=t.contentCheckHooks;d!==null&&qo(e,d)}else{let d=t.contentHooks;d!==null&&Wo(e,d,1),Il(e,1)}PC(t,e);let u=t.components;u!==null&&nm(e,u,0);let c=t.viewQuery;if(c!==null&&fu(2,c,r),!o)if(l){let d=t.viewCheckHooks;d!==null&&qo(e,d)}else{let d=t.viewHooks;d!==null&&Wo(e,d,2),Il(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[_l]){for(let d of e[_l])d();e[_l]=null}o||(e[A]&=-73)}catch(l){throw ci(e),l}finally{a!==null&&(Ff(a,s),mb(a)),Wu()}}function wb(t){return t.type!==2}function em(t,e){for(let n=hg(t);n!==null;n=pg(n))for(let r=We;r<n.length;r++){let i=n[r];tm(i,e)}}function Eb(t){for(let e=hg(t);e!==null;e=pg(e)){if(!(e[A]&Uu.HasTransplantedViews))continue;let n=e[ns];for(let r=0;r<n.length;r++){let i=n[r],o=i[be];Zw(i)}}}function Cb(t,e,n){let r=an(e,t);tm(r,n)}function tm(t,e){Hu(t)&&hu(t,e)}function hu(t,e){let r=t[H],i=t[A],o=t[An],s=!!(e===0&&i&16);if(s||=!!(i&64&&e===0),s||=!!(i&1024),s||=!!(o?.dirty&&rl(o)),o&&(o.dirty=!1),t[A]&=-9217,s)Db(r,t,r.template,t[it]);else if(i&8192){em(t,1);let a=r.components;a!==null&&nm(t,a,1)}}function nm(t,e,n){for(let r=0;r<e.length;r++)Cb(t,e[r],n)}function gc(t){for(t[ot].changeDetectionScheduler?.notify();t;){t[A]|=64;let e=di(t);if(Bw(t)&&!e)return t;t=e}return null}var On=class{get rootNodes(){let e=this._lView,n=e[H];return ls(n,e,n.firstChild,[])}constructor(e,n,r=!0){this._lView=e,this._cdRefInjectingView=n,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[it]}set context(e){this._lView[it]=e}get destroyed(){return(this._lView[A]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[be];if(kt(e)){let n=e[ts],r=n?n.indexOf(this):-1;r>-1&&(uu(e,r),Xo(n,r))}this._attachedToViewContainer=!1}Fg(this._lView[H],this._lView)}onDestroy(e){jp(this._lView,e)}markForCheck(){gc(this._cdRefInjectingView||this._lView)}detach(){this._lView[A]&=-129}reattach(){Wl(this._lView),this._lView[A]|=128}detectChanges(){this._lView[A]|=1024,Jg(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Og(this._lView[H],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new m(902,!1);this._appRef=e,Wl(this._lView)}},ks=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Ib;let t=e;return t})(),bb=ks,_b=class extends bb{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,r){let i=db(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:r});return new On(i)}};function Ib(){return Sb(Oe(),Z())}function Sb(t,e){return t.type&4?new _b(e,t,As(t,e)):null}var GF=new RegExp(`^(\\d+)*(${LE}|${kE})*(.*)`);var Tb=()=>null;function $h(t,e){return Tb(t,e)}var fi=class{},pu=class{},us=class{};function Mb(t){let e=Error(`No component factory found for ${Me(t)}.`);return e[Ab]=t,e}var Ab="ngComponent";var gu=class{resolveComponentFactory(e){throw Mb(e)}},Nr=(()=>{let e=class e{};e.NULL=new gu;let t=e;return t})(),Pn=class{},jn=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>Nb();let t=e;return t})();function Nb(){let t=Z(),e=Oe(),n=an(e.index,t);return(In(n)?n:t)[le]}var xb=(()=>{let e=class e{};e.\u0275prov=C({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),Nl={};var Hh=new Set;function xr(t){Hh.has(t)||(Hh.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function zh(...t){}function Rb(){let t=typeof Be.requestAnimationFrame=="function",e=Be[t?"requestAnimationFrame":"setTimeout"],n=Be[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&n){let r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r);let i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:n}}var ee=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ee(!1),this.onMicrotaskEmpty=new Ee(!1),this.onStable=new Ee(!1),this.onError=new Ee(!1),typeof Zone>"u")throw new m(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=Rb().nativeRequestAnimationFrame,Fb(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new m(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new m(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,Ob,zh,zh);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}},Ob={};function mc(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Pb(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Be,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,mu(t),t.isCheckStableRunning=!0,mc(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),mu(t))}function Fb(t){let e=()=>{Pb(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{if(kb(a))return n.invokeTask(i,o,s,a);try{return Gh(t),n.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),qh(t)}},onInvoke:(n,r,i,o,s,a,l)=>{try{return Gh(t),n.invoke(i,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),qh(t)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,mu(t),mc(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function mu(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Gh(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function qh(t){t._nesting--,mc(t)}function kb(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}var rm=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of r)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=C({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function cs(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")o=a;else if(o==1)i=Vl(i,a);else if(o==2){let l=a,u=e[++s];r=Vl(r,l+": "+u+";")}}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}var ds=class extends Nr{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let n=Mn(e);return new hi(n,this.ngModule)}};function Wh(t){let e=[];for(let n in t){if(!t.hasOwnProperty(n))continue;let r=t[n];r!==void 0&&e.push({propName:Array.isArray(r)?r[0]:r,templateName:n})}return e}function Lb(t){let e=t.toLowerCase();return e==="svg"?zw:e==="math"?Gw:null}var yu=class{constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){r=vs(r);let i=this.injector.get(e,Nl,r);return i!==Nl||n===Nl?i:this.parentInjector.get(e,n,r)}},hi=class extends us{get inputs(){let e=this.componentDef,n=e.inputTransforms,r=Wh(e.inputs);if(n!==null)for(let i of r)n.hasOwnProperty(i.propName)&&(i.transform=n[i.propName]);return r}get outputs(){return Wh(this.componentDef.outputs)}constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=Cw(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}create(e,n,r,i){let o=K(null);try{i=i||this.ngModule;let s=i instanceof Re?i:i?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new yu(e,s):e,l=a.get(Pn,null);if(l===null)throw new m(407,!1);let u=a.get(xb,null),c=a.get(rm,null),d=a.get(fi,null),h={rendererFactory:l,sanitizer:u,inlineEffectRunner:null,afterRenderEventManager:c,changeDetectionScheduler:d},f=l.createRenderer(null,this.componentDef),p=this.componentDef.selectors[0][0]||"div",g=r?LC(f,r,this.componentDef.encapsulation,a):Rg(f,p,Lb(p)),y=512;this.componentDef.signals?y|=4096:this.componentDef.onPush||(y|=16);let D=null;g!==null&&(D=tc(g,a,!0));let O=dc(0,null,null,1,0,null,null,null,null,null,null),U=Ps(null,O,null,y,null,null,h,f,a,null,D);qu(U);let M,se;try{let te=this.componentDef,ne,fe=null;te.findHostDirectiveDefs?(ne=[],fe=new Map,te.findHostDirectiveDefs(te,ne,fe),ne.push(te)):ne=[te];let Tt=Vb(U,g),Qt=jb(Tt,g,te,ne,U,h,f);se=kp(O,Qe),g&&$b(f,te,g,r),n!==void 0&&Hb(se,this.ngContentSelectors,n),M=Ub(Qt,te,ne,fe,U,[zb]),pc(O,U,null)}finally{Wu()}return new vu(this.componentType,M,As(se,U),U,se)}finally{K(o)}}},vu=class extends pu{constructor(e,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new On(i,void 0,!1),this.componentType=e}setInput(e,n){let r=this._tNode.inputs,i;if(r!==null&&(i=r[e])){if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),n))return;let o=this._rootLView;hc(o[H],o,i,e,n),this.previousInputValues.set(e,n);let s=an(this._tNode.index,o);gc(s)}}get injector(){return new Sn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function Vb(t,e){let n=t[H],r=Qe;return t[r]=e,Ci(n,r,2,"#host",null)}function jb(t,e,n,r,i,o,s){let a=i[H];Bb(r,t,e,s);let l=null;e!==null&&(l=tc(e,i[br]));let u=o.rendererFactory.createRenderer(e,n),c=16;n.signals?c=4096:n.onPush&&(c=64);let d=Ps(i,zg(n),null,c,i[t.index],t,o,u,null,null,l);return a.firstCreatePass&&du(a,t,r.length-1),Fs(i,d),i[t.index]=d}function Bb(t,e,n,r){for(let i of t)e.mergedAttrs=si(e.mergedAttrs,i.hostAttrs);e.mergedAttrs!==null&&(cs(e,e.mergedAttrs,!0),n!==null&&jg(r,n,e))}function Ub(t,e,n,r,i,o){let s=Oe(),a=i[H],l=Ke(s,i);qg(a,i,s,n,null,r);for(let c=0;c<n.length;c++){let d=s.directiveStart+c,h=Sr(i,a,d,s);nn(h,i)}Wg(a,i,s),l&&nn(l,i);let u=Sr(i,a,s.directiveStart+s.componentOffset,s);if(t[it]=i[it]=u,o!==null)for(let c of o)c(u,e);return lc(a,s,i),u}function $b(t,e,n,r){if(r)$l(t,n,["ng-version","17.3.11"]);else{let{attrs:i,classes:o}=bw(e.selectors[0]);i&&$l(t,n,i),o&&o.length>0&&Vg(t,n,o.join(" "))}}function Hb(t,e,n){let r=t.projection=[];for(let i=0;i<e.length;i++){let o=n[i];r.push(o!=null?Array.from(o):null)}}function zb(){let t=Oe();Ms(Z()[H],t)}var Rr=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Gb;let t=e;return t})();function Gb(){let t=Oe();return Wb(t,Z())}var qb=Rr,im=class extends qb{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return As(this._hostTNode,this._hostLView)}get injector(){return new Sn(this._hostTNode,this._hostLView)}get parentInjector(){let e=Ku(this._hostTNode,this._hostLView);if(Jp(e)){let n=is(e,this._hostLView),r=rs(e),i=n[H].data[r+8];return new Sn(i,n)}else return new Sn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=Qh(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-We}createEmbeddedView(e,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=$h(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,Uh(this._hostTNode,s)),a}createComponent(e,n,r,i,o){let s=e&&!jw(e),a;if(s)a=n;else{let p=n||{};a=p.index,r=p.injector,i=p.projectableNodes,o=p.environmentInjector||p.ngModuleRef}let l=s?e:new hi(Mn(e)),u=r||this.parentInjector;if(!o&&l.ngModule==null){let g=(s?u:this.parentInjector).get(Re,null);g&&(o=g)}let c=Mn(l.componentType??{}),d=$h(this._lContainer,c?.id??null),h=d?.firstChild??null,f=l.create(u,i,h,o);return this.insertImpl(f.hostView,a,Uh(this._hostTNode,d)),f}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let i=e._lView;if(Kw(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let l=i[be],u=new im(l,l[ut],l[be]);u.detach(u.indexOf(e))}}let o=this._adjustIndex(n),s=this._lContainer;return fb(s,i,o,r),e.attachToViewContainerRef(),pp(xl(s),o,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=Qh(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),r=uu(this._lContainer,n);r&&(Xo(xl(this._lContainer),n),Fg(r[H],r))}detach(e){let n=this._adjustIndex(e,-1),r=uu(this._lContainer,n);return r&&Xo(xl(this._lContainer),n)!=null?new On(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function Qh(t){return t[ts]}function xl(t){return t[ts]||(t[ts]=[])}function Wb(t,e){let n,r=e[t.index];return kt(r)?n=r:(n=Qg(r,e,null,t),e[t.index]=n,Fs(e,n)),Kb(n,e,t,r),new im(n,t,e)}function Qb(t,e){let n=t[le],r=n.createComment(""),i=Ke(e,t),o=sc(n,i);return as(n,o,r,IC(n,i),!1),r}var Kb=Xb,Zb=()=>!1;function Yb(t,e,n){return Zb(t,e,n)}function Xb(t,e,n,r){if(t[Nn])return;let i;n.type&8?i=vt(r):i=Qb(e,n),t[Nn]=i}function bi(t,e){xr("NgSignals");let n=$f(t),r=n[ir];return e?.equal&&(r.equal=e.equal),n.set=i=>il(r,i),n.update=i=>Hf(r,i),n.asReadonly=Jb.bind(n),n}function Jb(){let t=this[ir];if(t.readonlyFn===void 0){let e=()=>this();e[ir]=t,t.readonlyFn=e}return t.readonlyFn}function e0(t){return Object.getPrototypeOf(t.prototype).constructor}function Bt(t){let e=e0(t.type),n=!0,r=[t];for(;e;){let i;if(Nt(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new m(903,!1);i=e.\u0275dir}if(i){if(n){r.push(i);let s=t;s.inputs=Ho(t.inputs),s.inputTransforms=Ho(t.inputTransforms),s.declaredInputs=Ho(t.declaredInputs),s.outputs=Ho(t.outputs);let a=i.hostBindings;a&&o0(t,a);let l=i.viewQuery,u=i.contentQueries;if(l&&r0(t,l),u&&i0(t,u),t0(t,i),GD(t.outputs,i.outputs),Nt(i)&&i.data.animation){let c=t.data;c.animation=(c.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(t),a===Bt&&(n=!1)}}e=Object.getPrototypeOf(e)}n0(r)}function t0(t,e){for(let n in e.inputs){if(!e.inputs.hasOwnProperty(n)||t.inputs.hasOwnProperty(n))continue;let r=e.inputs[n];if(r!==void 0&&(t.inputs[n]=r,t.declaredInputs[n]=e.declaredInputs[n],e.inputTransforms!==null)){let i=Array.isArray(r)?r[0]:r;if(!e.inputTransforms.hasOwnProperty(i))continue;t.inputTransforms??={},t.inputTransforms[i]=e.inputTransforms[i]}}}function n0(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){let i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=si(i.hostAttrs,n=si(n,i.hostAttrs))}}function Ho(t){return t===wr?{}:t===xe?[]:t}function r0(t,e){let n=t.viewQuery;n?t.viewQuery=(r,i)=>{e(r,i),n(r,i)}:t.viewQuery=e}function i0(t,e){let n=t.contentQueries;n?t.contentQueries=(r,i,o)=>{e(r,i,o),n(r,i,o)}:t.contentQueries=e}function o0(t,e){let n=t.hostBindings;n?t.hostBindings=(r,i)=>{e(r,i),n(r,i)}:t.hostBindings=e}function yc(t){let e=t.inputConfig,n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r];Array.isArray(i)&&i[3]&&(n[r]=i[3])}t.inputTransforms=n}var rn=class{},pi=class{};var Du=class extends rn{constructor(e,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ds(this);let i=bp(e);this._bootstrapComponents=xg(i.bootstrap),this._r3Injector=lg(e,n,[{provide:rn,useValue:this},{provide:Nr,useValue:this.componentFactoryResolver},...r],Me(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},wu=class extends pi{constructor(e){super(),this.moduleType=e}create(e){return new Du(this.moduleType,e,[])}};var fs=class extends rn{constructor(e){super(),this.componentFactoryResolver=new ds(this),this.instance=null;let n=new ai([...e.providers,{provide:rn,useValue:this},{provide:Nr,useValue:this.componentFactoryResolver}],e.parent||ju(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function vc(t,e,n=null){return new fs({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}var Or=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new me(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function om(t){return a0(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function s0(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{let n=t[Symbol.iterator](),r;for(;!(r=n.next()).done;)e(r.value)}}function a0(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function Dc(t,e,n){return t[e]=n}function l0(t,e){return t[e]}function Pt(t,e,n){let r=t[e];return Object.is(r,n)?!1:(t[e]=n,!0)}function u0(t,e,n,r){let i=Pt(t,e,n);return Pt(t,e+1,r)||i}function c0(t){return(t.flags&32)===32}function d0(t,e,n,r,i,o,s,a,l){let u=e.consts,c=Ci(e,t,4,s||null,Ir(u,a));fc(e,n,c,Ir(u,l)),Ms(e,c);let d=c.tView=dc(2,c,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u,null);return e.queries!==null&&(e.queries.template(e,c),d.queries=e.queries.embeddedTView(c)),c}function Pe(t,e,n,r,i,o,s,a){let l=Z(),u=_e(),c=t+Qe,d=u.firstCreatePass?d0(c,u,l,e,n,r,i,o,s):u.data[c];Ln(d,!1);let h=f0(u,l,d,t);Ss()&&Rs(u,l,h,d),nn(h,l);let f=Qg(h,l,h,d);return l[c]=f,Fs(l,f),Yb(f,d,l),bs(d)&&uc(u,l,d),s!=null&&cc(l,d,a),Pe}var f0=h0;function h0(t,e,n,r){return Ts(!0),e[le].createComment("")}function Ut(t,e,n,r){let i=Z(),o=Is();if(Pt(i,o,e)){let s=_e(),a=Qu();eb(a,i,t,e,n,r)}return Ut}function p0(t,e,n,r){return Pt(t,Is(),n)?e+yi(n)+r:Et}function zo(t,e){return t<<17|e<<2}function Fn(t){return t>>17&32767}function g0(t){return(t&2)==2}function m0(t,e){return t&131071|e<<17}function Eu(t){return t|2}function Tr(t){return(t&131068)>>2}function Rl(t,e){return t&-131069|e<<2}function y0(t){return(t&1)===1}function Cu(t){return t|1}function v0(t,e,n,r,i,o){let s=o?e.classBindings:e.styleBindings,a=Fn(s),l=Tr(s);t[r]=n;let u=!1,c;if(Array.isArray(n)){let d=n;c=d[1],(c===null||vi(d,c)>0)&&(u=!0)}else c=n;if(i)if(l!==0){let h=Fn(t[a+1]);t[r+1]=zo(h,a),h!==0&&(t[h+1]=Rl(t[h+1],r)),t[a+1]=m0(t[a+1],r)}else t[r+1]=zo(a,0),a!==0&&(t[a+1]=Rl(t[a+1],r)),a=r;else t[r+1]=zo(l,0),a===0?a=r:t[l+1]=Rl(t[l+1],r),l=r;u&&(t[r+1]=Eu(t[r+1])),Kh(t,c,r,!0),Kh(t,c,r,!1),D0(e,c,t,r,o),s=zo(a,l),o?e.classBindings=s:e.styleBindings=s}function D0(t,e,n,r,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&vi(o,e)>=0&&(n[r+1]=Cu(n[r+1]))}function Kh(t,e,n,r){let i=t[n+1],o=e===null,s=r?Fn(i):Tr(i),a=!1;for(;s!==0&&(a===!1||o);){let l=t[s],u=t[s+1];w0(l,e)&&(a=!0,t[s+1]=r?Cu(u):Eu(u)),s=r?Fn(u):Tr(u)}a&&(t[n+1]=r?Eu(i):Cu(i))}function w0(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?vi(t,e)>=0:!1}var nt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function E0(t){return t.substring(nt.key,nt.keyEnd)}function C0(t){return b0(t),sm(t,am(t,0,nt.textEnd))}function sm(t,e){let n=nt.textEnd;return n===e?-1:(e=nt.keyEnd=_0(t,nt.key=e,n),am(t,e,n))}function b0(t){nt.key=0,nt.keyEnd=0,nt.value=0,nt.valueEnd=0,nt.textEnd=t.length}function am(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function _0(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}function X(t,e,n){let r=Z(),i=Is();if(Pt(r,i,e)){let o=_e(),s=Qu();Gg(o,s,r,t,e,r[le],n,!1)}return X}function bu(t,e,n,r,i){let o=e.inputs,s=i?"class":"style";hc(t,n,o[s],s,r)}function Bn(t,e,n){return lm(t,e,n,!1),Bn}function Ls(t,e){return lm(t,e,null,!0),Ls}function $t(t){S0(R0,I0,t,!0)}function I0(t,e){for(let n=C0(e);n>=0;n=sm(e,n))Fu(t,E0(e),!0)}function lm(t,e,n,r){let i=Z(),o=_e(),s=Hp(2);if(o.firstUpdatePass&&cm(o,t,s,r),e!==Et&&Pt(i,s,e)){let a=o.data[Vn()];dm(o,a,i,i[le],t,i[s+1]=P0(e,n),r,s)}}function S0(t,e,n,r){let i=_e(),o=Hp(2);i.firstUpdatePass&&cm(i,null,o,r);let s=Z();if(n!==Et&&Pt(s,o,n)){let a=i.data[Vn()];if(fm(a,r)&&!um(i,o)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(n=Vl(l,n||"")),bu(i,a,s,n,r)}else O0(i,a,s,s[le],s[o+1],s[o+1]=x0(t,e,n),r,o)}}function um(t,e){return e>=t.expandoStartIndex}function cm(t,e,n,r){let i=t.data;if(i[n+1]===null){let o=i[Vn()],s=um(t,n);fm(o,r)&&e===null&&!s&&(e=!1),e=T0(i,o,e,r),v0(i,o,e,n,s,r)}}function T0(t,e,n,r){let i=zp(t),o=r?e.residualClasses:e.residualStyles;if(i===null)(r?e.classBindings:e.styleBindings)===0&&(n=Ol(null,t,e,n,r),n=gi(n,e.attrs,r),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(n=Ol(i,t,e,n,r),o===null){let l=M0(t,e,r);l!==void 0&&Array.isArray(l)&&(l=Ol(null,t,e,l[1],r),l=gi(l,e.attrs,r),A0(t,e,r,l))}else o=N0(t,e,r)}return o!==void 0&&(r?e.residualClasses=o:e.residualStyles=o),n}function M0(t,e,n){let r=n?e.classBindings:e.styleBindings;if(Tr(r)!==0)return t[Fn(r)]}function A0(t,e,n,r){let i=n?e.classBindings:e.styleBindings;t[Fn(i)]=r}function N0(t,e,n){let r,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<i;o++){let s=t[o].hostAttrs;r=gi(r,s,n)}return gi(r,e.attrs,n)}function Ol(t,e,n,r,i){let o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(o=e[a],r=gi(r,o.hostAttrs,i),o!==t);)a++;return t!==null&&(n.directiveStylingLast=a),r}function gi(t,e,n){let r=n?1:2,i=-1;if(e!==null)for(let o=0;o<e.length;o++){let s=e[o];typeof s=="number"?i=s:i===r&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),Fu(t,s,n?!0:e[++o]))}return t===void 0?null:t}function x0(t,e,n){if(n==null||n==="")return xe;let r=[],i=Ze(n);if(Array.isArray(i))for(let o=0;o<i.length;o++)t(r,i[o],!0);else if(typeof i=="object")for(let o in i)i.hasOwnProperty(o)&&t(r,o,i[o]);else typeof i=="string"&&e(r,i);return r}function R0(t,e,n){let r=String(e);r!==""&&!r.includes(" ")&&Fu(t,r,n)}function O0(t,e,n,r,i,o,s,a){i===Et&&(i=xe);let l=0,u=0,c=0<i.length?i[0]:null,d=0<o.length?o[0]:null;for(;c!==null||d!==null;){let h=l<i.length?i[l+1]:void 0,f=u<o.length?o[u+1]:void 0,p=null,g;c===d?(l+=2,u+=2,h!==f&&(p=d,g=f)):d===null||c!==null&&c<d?(l+=2,p=c):(u+=2,p=d,g=f),p!==null&&dm(t,e,n,r,p,g,s,a),c=l<i.length?i[l]:null,d=u<o.length?o[u]:null}}function dm(t,e,n,r,i,o,s,a){if(!(e.type&3))return;let l=t.data,u=l[a+1],c=y0(u)?Zh(l,e,n,i,Tr(u),s):void 0;if(!hs(c)){hs(o)||g0(u)&&(o=Zh(l,null,n,i,a,s));let d=Fp(Vn(),n);RC(r,s,d,i,o)}}function Zh(t,e,n,r,i,o){let s=e===null,a;for(;i>0;){let l=t[i],u=Array.isArray(l),c=u?l[1]:l,d=c===null,h=n[i+1];h===Et&&(h=d?xe:void 0);let f=d?Cl(h,r):c===r?h:void 0;if(u&&!hs(f)&&(f=Cl(l,r)),hs(f)&&(a=f,s))return a;let p=t[i+1];i=s?Fn(p):Tr(p)}if(e!==null){let l=o?e.residualClasses:e.residualStyles;l!=null&&(a=Cl(l,r))}return a}function hs(t){return t!==void 0}function P0(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Me(Ze(t)))),t}function fm(t,e){return(t.flags&(e?8:16))!==0}function F0(t,e,n,r,i,o){let s=e.consts,a=Ir(s,i),l=Ci(e,t,2,r,a);return fc(e,n,l,Ir(s,o)),l.attrs!==null&&cs(l,l.attrs,!1),l.mergedAttrs!==null&&cs(l,l.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,l),l}function N(t,e,n,r){let i=Z(),o=_e(),s=Qe+t,a=i[le],l=o.firstCreatePass?F0(s,o,i,e,n,r):o.data[s],u=k0(o,i,l,a,e,t);i[s]=u;let c=bs(l);return Ln(l,!0),jg(a,u,l),!c0(l)&&Ss()&&Rs(o,i,u,l),Jw()===0&&nn(u,i),eE(),c&&(uc(o,i,l),lc(o,l,i)),r!==null&&cc(i,l),N}function L(){let t=Oe();Gu()?$p():(t=t.parent,Ln(t,!1));let e=t;rE(e)&&iE(),tE();let n=_e();return n.firstCreatePass&&(Ms(n,t),$u(t)&&n.queries.elementEnd(t)),e.classesWithoutHost!=null&&mE(e)&&bu(n,e,Z(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&yE(e)&&bu(n,e,Z(),e.stylesWithoutHost,!1),L}function ve(t,e,n,r){return N(t,e,n,r),L(),ve}var k0=(t,e,n,r,i,o)=>(Ts(!0),Rg(r,i,fE()));function L0(t,e,n,r,i){let o=e.consts,s=Ir(o,r),a=Ci(e,t,8,"ng-container",s);s!==null&&cs(a,s,!0);let l=Ir(o,i);return fc(e,n,a,l),e.queries!==null&&e.queries.elementStart(e,a),a}function Vs(t,e,n){let r=Z(),i=_e(),o=t+Qe,s=i.firstCreatePass?L0(o,i,r,e,n):i.data[o];Ln(s,!0);let a=V0(i,r,s,t);return r[o]=a,Ss()&&Rs(i,r,a,s),nn(a,r),bs(s)&&(uc(i,r,s),lc(i,s,r)),n!=null&&cc(r,s),Vs}function js(){let t=Oe(),e=_e();return Gu()?$p():(t=t.parent,Ln(t,!1)),e.firstCreatePass&&(Ms(e,t),$u(t)&&e.queries.elementEnd(t)),js}var V0=(t,e,n,r)=>(Ts(!0),pC(e[le],""));function _i(){return Z()}function wc(t,e,n){let r=Z(),i=Is();if(Pt(r,i,e)){let o=_e(),s=Qu(),a=zp(o.data),l=sb(a,s,r);Gg(o,s,r,t,e,l,n,!0)}return wc}var _n=void 0;function j0(t){let e=t,n=Math.floor(Math.abs(t)),r=t.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var B0=["en",[["a","p"],["AM","PM"],_n],[["AM","PM"],_n,_n],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],_n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],_n,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",_n,"{1} 'at' {0}",_n],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",j0],Pl={};function Bs(t){let e=U0(t),n=Yh(e);if(n)return n;let r=e.split("-")[0];if(n=Yh(r),n)return n;if(r==="en")return B0;throw new m(701,!1)}function Yh(t){return t in Pl||(Pl[t]=Be.ng&&Be.ng.common&&Be.ng.common.locales&&Be.ng.common.locales[t]),Pl[t]}var Un=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(Un||{});function U0(t){return t.toLowerCase().replace(/_/g,"-")}var ps="en-US",$0="USD";var H0=ps;function z0(t){typeof t=="string"&&(H0=t.toLowerCase().replace(/_/g,"-"))}function Ie(t,e,n,r){let i=Z(),o=_e(),s=Oe();return q0(o,i,i[le],s,t,e,r),Ie}function G0(t,e,n,r){let i=t.cleanup;if(i!=null)for(let o=0;o<i.length-1;o+=2){let s=i[o];if(s===n&&i[o+1]===r){let a=e[li],l=i[o+2];return a.length>l?a[l]:null}typeof s=="string"&&(o+=2)}return null}function q0(t,e,n,r,i,o,s){let a=bs(r),u=t.firstCreatePass&&ob(t),c=e[it],d=ib(e),h=!0;if(r.type&3||s){let g=Ke(r,e),y=s?s(g):g,D=d.length,O=s?M=>s(vt(M[r.index])):r.index,U=null;if(!s&&a&&(U=G0(t,e,i,r.index)),U!==null){let M=U.__ngLastListenerFn__||U;M.__ngNextListenerFn__=o,U.__ngLastListenerFn__=o,h=!1}else{o=Jh(r,e,c,o,!1);let M=n.listen(y,i,o);d.push(o,M),u&&u.push(i,O,D,D+1)}}else o=Jh(r,e,c,o,!1);let f=r.outputs,p;if(h&&f!==null&&(p=f[i])){let g=p.length;if(g)for(let y=0;y<g;y+=2){let D=p[y],O=p[y+1],se=e[D][O].subscribe(o),te=d.length;d.push(o,se),u&&u.push(i,r.index,te,-(te+1))}}}function Xh(t,e,n,r){let i=K(null);try{return pt(6,e,n),n(r)!==!1}catch(o){return Zg(t,o),!1}finally{pt(7,e,n),K(i)}}function Jh(t,e,n,r,i){return function o(s){if(s===Function)return r;let a=t.componentOffset>-1?an(t.index,e):e;gc(a);let l=Xh(e,n,r,s),u=o.__ngNextListenerFn__;for(;u;)l=Xh(e,n,u,s)&&l,u=u.__ngNextListenerFn__;return i&&l===!1&&s.preventDefault(),l}}function Se(t=1){return dE(t)}function W0(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function q(t,e=""){let n=Z(),r=_e(),i=t+Qe,o=r.firstCreatePass?Ci(r,i,1,e,null):r.data[i],s=Q0(r,n,o,e,t);n[i]=s,Ss()&&Rs(r,n,s,o),Ln(o,!1)}var Q0=(t,e,n,r,i)=>(Ts(!0),fC(e[le],r));function un(t){return Ht("",t,""),un}function Ht(t,e,n){let r=Z(),i=p0(r,t,e,n);return i!==Et&&ab(r,Vn(),i),Ht}function K0(t,e,n){let r=_e();if(r.firstCreatePass){let i=Nt(t);_u(n,r.data,r.blueprint,i,!0),_u(e,r.data,r.blueprint,i,!1)}}function _u(t,e,n,r,i){if(t=Te(t),Array.isArray(t))for(let o=0;o<t.length;o++)_u(t[o],e,n,r,i);else{let o=_e(),s=Z(),a=Oe(),l=Cr(t)?t:Te(t.provide),u=Ap(t),c=a.providerIndexes&1048575,d=a.directiveStart,h=a.providerIndexes>>20;if(Cr(t)||!t.multi){let f=new Rn(u,i,S),p=kl(l,e,i?c:c+h,d);p===-1?(Zl(ss(a,s),o,l),Fl(o,t,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[p]=f,s[p]=f)}else{let f=kl(l,e,c+h,d),p=kl(l,e,c,c+h),g=f>=0&&n[f],y=p>=0&&n[p];if(i&&!y||!i&&!g){Zl(ss(a,s),o,l);let D=X0(i?Y0:Z0,n.length,i,r,u);!i&&y&&(n[p].providerFactory=D),Fl(o,t,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(D),s.push(D)}else{let D=hm(n[i?p:f],u,!i&&r);Fl(o,t,f>-1?f:p,D)}!i&&r&&y&&n[p].componentProviders++}}}function Fl(t,e,n,r){let i=Cr(e),o=xw(e);if(i||o){let l=(o?Te(e.useClass):e).prototype.ngOnDestroy;if(l){let u=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let c=u.indexOf(n);c===-1?u.push(n,[r,l]):u[c+1].push(r,l)}else u.push(n,l)}}}function hm(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function kl(t,e,n,r){for(let i=n;i<r;i++)if(e[i]===t)return i;return-1}function Z0(t,e,n,r){return Iu(this.multi,[])}function Y0(t,e,n,r){let i=this.multi,o;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=Sr(n,n[H],this.providerFactory.index,r);o=a.slice(0,s),Iu(i,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],Iu(i,o);return o}function Iu(t,e){for(let n=0;n<t.length;n++){let r=t[n];e.push(r())}return e}function X0(t,e,n,r,i){let o=new Rn(t,n,S);return o.multi=[],o.index=e,o.componentProviders=0,hm(o,i,r&&!n),o}function Ii(t,e=[]){return n=>{n.providersResolver=(r,i)=>K0(r,i?i(t):t,e)}}var J0=(()=>{let e=class e{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let i=Sp(!1,r.type),o=i.length>0?vc([i],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,o)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=C({token:e,providedIn:"environment",factory:()=>new e(b(Re))});let t=e;return t})();function ct(t){xr("NgStandalone"),t.getStandaloneInjector=e=>e.get(J0).getOrCreateStandaloneInjector(t)}function pm(t,e,n){let r=_s()+t,i=Z();return i[r]===Et?Dc(i,r,n?e.call(n):e()):l0(i,r)}function gm(t,e,n,r){return ym(Z(),_s(),t,e,n,r)}function mm(t,e){let n=t[e];return n===Et?void 0:n}function ym(t,e,n,r,i,o){let s=e+n;return Pt(t,s,i)?Dc(t,s+1,o?r.call(o,i):r(i)):mm(t,s+1)}function e_(t,e,n,r,i,o,s){let a=e+n;return u0(t,a,i,o)?Dc(t,a+2,s?r.call(s,i,o):r(i,o)):mm(t,a+2)}function Us(t,e){let n=_e(),r,i=t+Qe;n.firstCreatePass?(r=t_(e,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let o=r.factory||(r.factory=Tn(r.type,!0)),s,a=Ne(S);try{let l=os(!1),u=o();return os(l),W0(n,Z(),i,u),u}finally{Ne(a)}}function t_(t,e){if(e)for(let n=e.length-1;n>=0;n--){let r=e[n];if(t===r.name)return r}}function vm(t,e,n){let r=t+Qe,i=Z(),o=Lp(i,r);return wm(i,r)?ym(i,_s(),e,o.transform,n,o):o.transform(n)}function Dm(t,e,n,r){let i=t+Qe,o=Z(),s=Lp(o,i);return wm(o,i)?e_(o,_s(),e,s.transform,n,r,s):s.transform(n,r)}function wm(t,e){return t[H].data[e].pure}var $s=(()=>{let e=class e{log(r){console.log(r)}warn(r){console.warn(r)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var Em=new I("");function $n(t){return!!t&&typeof t.then=="function"}function Cm(t){return!!t&&typeof t.subscribe=="function"}var bm=new I(""),_m=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i}),this.appInits=w(bm,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let o of this.appInits){let s=o();if($n(s))r.push(s);else if(Cm(s)){let a=new Promise((l,u)=>{s.subscribe({complete:l,error:u})});r.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{i()}).catch(o=>{this.reject(o)}),r.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Hs=new I("");function n_(){Uf(()=>{throw new m(600,!1)})}function r_(t){return t.isBoundToModule}function i_(t,e,n){try{let r=n();return $n(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}var Ct=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=w(ug),this.afterRenderEffectManager=w(rm),this.externalTestViews=new Set,this.beforeRender=new re,this.afterTick=new re,this.componentTypes=[],this.components=[],this.isStable=w(Or).hasPendingTasks.pipe(F(r=>!r)),this._injector=w(Re)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,i){let o=r instanceof us;if(!this._injector.get(_m).done){let f=!o&&Cp(r),p=!1;throw new m(405,p)}let a;o?a=r:a=this._injector.get(Nr).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let l=r_(a)?void 0:this._injector.get(rn),u=i||a.selector,c=a.create(wt.NULL,[],u,l),d=c.location.nativeElement,h=c.injector.get(Em,null);return h?.registerApplication(d),c.onDestroy(()=>{this.detachView(c.hostView),Ll(this.components,c),h?.unregisterApplication(d)}),this._loadComponent(c),c}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new m(101,!1);let i=K(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,K(i)}}detectChangesInAttachedViews(r){let i=0,o=this.afterRenderEffectManager;for(;;){if(i===Xg)throw new m(103,!1);if(r){let s=i===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:l}of this._views)o_(a,s,l)}if(i++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Su(s))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Su(s))))break}}attachView(r){let i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){let i=r;Ll(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let i=this._injector.get(Hs,[]);[...this._bootstrapListeners,...i].forEach(o=>o(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Ll(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new m(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ll(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function o_(t,e,n){!e&&!Su(t)||s_(t,n,e)}function Su(t){return zu(t)}function s_(t,e,n){let r;n?(r=0,t[A]|=1024):t[A]&64?r=0:r=1,Jg(t,e,r)}var Tu=class{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}},Ec=(()=>{let e=class e{compileModuleSync(r){return new wu(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let i=this.compileModuleSync(r),o=bp(r),s=xg(o.declarations).reduce((a,l)=>{let u=Mn(l);return u&&a.push(new hi(u)),a},[]);return new Tu(i,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var a_=(()=>{let e=class e{constructor(){this.zone=w(ee),this.applicationRef=w(Ct)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function l_(t){return[{provide:ee,useFactory:t},{provide:Er,multi:!0,useFactory:()=>{let e=w(a_,{optional:!0});return()=>e.initialize()}},{provide:Er,multi:!0,useFactory:()=>{let e=w(f_);return()=>{e.initialize()}}},{provide:ug,useFactory:u_}]}function u_(){let t=w(ee),e=w(xt);return n=>t.runOutsideAngular(()=>e.handleError(n))}function c_(t){let e=l_(()=>new ee(d_(t)));return on([[],e])}function d_(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var f_=(()=>{let e=class e{constructor(){this.subscription=new ce,this.initialized=!1,this.zone=w(ee),this.pendingTasks=w(Or)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ee.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ee.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function h_(){return typeof $localize<"u"&&$localize.locale||ps}var zs=new I("",{providedIn:"root",factory:()=>w(zs,V.Optional|V.SkipSelf)||h_()}),Im=new I("",{providedIn:"root",factory:()=>$0});var Sm=new I("");var Ko=null;function p_(t=[],e){return wt.create({name:e,providers:[{provide:Ds,useValue:"platform"},{provide:Sm,useValue:new Set([()=>Ko=null])},...t]})}function g_(t=[]){if(Ko)return Ko;let e=p_(t);return Ko=e,n_(),m_(e),e}function m_(t){t.get(Xu,null)?.forEach(n=>n())}var Pr=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=y_;let t=e;return t})();function y_(t){return v_(Oe(),Z(),(t&16)===16)}function v_(t,e,n){if(Cs(t)&&!n){let r=an(t.index,e);return new On(r,r)}else if(t.type&47){let r=e[yt];return new On(r,e)}return null}var Mu=class{constructor(){}supports(e){return om(e)}create(e){return new Au(e)}},D_=(t,e)=>e,Au=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||D_}forEachItem(e){let n;for(n=this._itHead;n!==null;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){let s=!r||n&&n.currentIndex<ep(r,i,o)?n:r,a=ep(s,i,o),l=s.currentIndex;if(s===r)i--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)i++;else{o||(o=[]);let u=a-i,c=l-i;if(u!=c){for(let h=0;h<u;h++){let f=h<o.length?o[h]:o[h]=0,p=f+h;c<=p&&p<u&&(o[h]=f+1)}let d=s.previousIndex;o[d]=c-u}}a!==l&&e(s,a,l)}}forEachPreviousItem(e){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)e(n)}forEachMovedItem(e){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)e(n)}forEachIdentityChange(e){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)e(n)}diff(e){if(e==null&&(e=[]),!om(e))throw new m(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let n=this._itHead,r=!1,i,o,s;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)o=e[a],s=this._trackByFn(a,o),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,o,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,o,s,a)),Object.is(n.item,o)||this._addIdentityChange(n,o)),n=n._next}else i=0,s0(e,a=>{s=this._trackByFn(i,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,i),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(r,i),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,o,i)):e=this._addAfter(new Nu(n,r),o,i)),e}_verifyReinsertion(e,n,r,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let n=e._next;this._addToRemovals(this._unlink(e)),e=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){let i=n===null?this._itHead:n._next;return e._next=i,e._prev=n,i===null?this._itTail=e:i._prev=e,n===null?this._itHead=e:n._next=e,this._linkedRecords===null&&(this._linkedRecords=new gs),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let n=e._prev,r=e._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new gs),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Nu=class{constructor(e,n){this.item=e,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},xu=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){let n=e._prevDup,r=e._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},gs=class{constructor(){this.map=new Map}put(e){let n=e.trackById,r=this.map.get(n);r||(r=new xu,this.map.set(n,r)),r.add(e)}get(e,n){let r=e,i=this.map.get(r);return i?i.get(e,n):null}remove(e){let n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function ep(t,e,n){let r=t.previousIndex;if(r===null)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+e+i}function tp(){return new Cc([new Mu])}var Cc=(()=>{let e=class e{constructor(r){this.factories=r}static create(r,i){if(i!=null){let o=i.factories.slice();r=r.concat(o)}return new e(r)}static extend(r){return{provide:e,useFactory:i=>e.create(r,i||tp()),deps:[[e,new hp,new Ou]]}}find(r){let i=this.factories.find(o=>o.supports(r));if(i!=null)return i;throw new m(901,!1)}};e.\u0275prov=C({token:e,providedIn:"root",factory:tp});let t=e;return t})();function Tm(t){try{let{rootComponent:e,appProviders:n,platformProviders:r}=t,i=g_(r),o=[c_(),...n||[]],a=new fs({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,l=a.get(ee);return l.run(()=>{a.resolveInjectorInitializers();let u=a.get(xt,null),c;l.runOutsideAngular(()=>{c=l.onError.subscribe({next:f=>{u.handleError(f)}})});let d=()=>a.destroy(),h=i.get(Sm);return h.add(d),a.onDestroy(()=>{c.unsubscribe(),h.delete(d)}),i_(u,l,()=>{let f=a.get(_m);return f.runInitializers(),f.donePromise.then(()=>{let p=a.get(zs,ps);z0(p||ps);let g=a.get(Ct);return e!==void 0&&g.bootstrap(e),g})})})}catch(e){return Promise.reject(e)}}function Fr(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}var Pm=null;function Gt(){return Pm}function Fm(t){Pm??=t}var Gs=class{};var ue=new I(""),km=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>w(w_),providedIn:"platform"});let t=e;return t})();var w_=(()=>{let e=class e extends km{constructor(){super(),this._doc=w(ue),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Gt().getBaseHref(this._doc)}onPopState(r){let i=Gt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",r,!1),()=>i.removeEventListener("popstate",r)}onHashChange(r){let i=Gt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",r,!1),()=>i.removeEventListener("hashchange",r)}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(r){this._location.pathname=r}pushState(r,i,o){this._history.pushState(r,i,o)}replaceState(r,i,o){this._history.replaceState(r,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(r=0){this._history.go(r)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Lm(t,e){if(t.length==0)return e;if(e.length==0)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,n==2?t+e.substring(1):n==1?t+e:t+"/"+e}function Mm(t){let e=t.match(/#|\?|$/),n=e&&e.index||t.length,r=n-(t[n-1]==="/"?1:0);return t.slice(0,r)+t.slice(n)}function Hn(t){return t&&t[0]!=="?"?"?"+t:t}var Lr=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>w(Vm),providedIn:"root"});let t=e;return t})(),E_=new I(""),Vm=(()=>{let e=class e extends Lr{constructor(r,i){super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??w(ue).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}prepareExternalUrl(r){return Lm(this._baseHref,r)}path(r=!1){let i=this._platformLocation.pathname+Hn(this._platformLocation.search),o=this._platformLocation.hash;return o&&r?`${i}${o}`:i}pushState(r,i,o,s){let a=this.prepareExternalUrl(o+Hn(s));this._platformLocation.pushState(r,i,a)}replaceState(r,i,o,s){let a=this.prepareExternalUrl(o+Hn(s));this._platformLocation.replaceState(r,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}};e.\u0275fac=function(i){return new(i||e)(b(km),b(E_,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Mi=(()=>{let e=class e{constructor(r){this._subject=new Ee,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let i=this._locationStrategy.getBaseHref();this._basePath=__(Mm(Am(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(r=!1){return this.normalize(this._locationStrategy.path(r))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(r,i=""){return this.path()==this.normalize(r+Hn(i))}normalize(r){return e.stripTrailingSlash(b_(this._basePath,Am(r)))}prepareExternalUrl(r){return r&&r[0]!=="/"&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r)}go(r,i="",o=null){this._locationStrategy.pushState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Hn(i)),o)}replaceState(r,i="",o=null){this._locationStrategy.replaceState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Hn(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(r=0){this._locationStrategy.historyGo?.(r)}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(r="",i){this._urlChangeListeners.forEach(o=>o(r,i))}subscribe(r,i,o){return this._subject.subscribe({next:r,error:i,complete:o})}};e.normalizeQueryParams=Hn,e.joinWithSlash=Lm,e.stripTrailingSlash=Mm,e.\u0275fac=function(i){return new(i||e)(b(Lr))},e.\u0275prov=C({token:e,factory:()=>C_(),providedIn:"root"});let t=e;return t})();function C_(){return new Mi(b(Lr))}function b_(t,e){if(!t||!e.startsWith(t))return e;let n=e.substring(t.length);return n===""||["/",";","?","#"].includes(n[0])?n:e}function Am(t){return t.replace(/\/index.html$/,"")}function __(t){if(new RegExp("^(https?:)?//").test(t)){let[,n]=t.split(/\/\/[^\/]+/);return n}return t}var jm={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},Bm=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}(Bm||{});var zt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Si(t,e){let n=Bs(t),r=n[Un.NumberSymbols][e];if(typeof r>"u"){if(e===zt.CurrencyDecimal)return n[Un.NumberSymbols][zt.Decimal];if(e===zt.CurrencyGroup)return n[Un.NumberSymbols][zt.Group]}return r}function I_(t,e){return Bs(t)[Un.NumberFormats][e]}function S_(t){return Bs(t)[Un.Currencies]}function T_(t,e,n="en"){let r=S_(n)[t]||jm[t]||[],i=r[1];return e==="narrow"&&typeof i=="string"?i:r[0]||t}var M_=2;function A_(t){let e,n=jm[t];return n&&(e=n[2]),typeof e=="number"?e:M_}var N_=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Nm=22,qs=".",Ti="0",x_=";",R_=",",bc="#",xm="\xA4";function O_(t,e,n,r,i,o,s=!1){let a="",l=!1;if(!isFinite(t))a=Si(n,zt.Infinity);else{let u=L_(t);s&&(u=k_(u));let c=e.minInt,d=e.minFrac,h=e.maxFrac;if(o){let O=o.match(N_);if(O===null)throw new Error(`${o} is not a valid digit info`);let U=O[1],M=O[3],se=O[5];U!=null&&(c=_c(U)),M!=null&&(d=_c(M)),se!=null?h=_c(se):M!=null&&d>h&&(h=d)}V_(u,d,h);let f=u.digits,p=u.integerLen,g=u.exponent,y=[];for(l=f.every(O=>!O);p<c;p++)f.unshift(0);for(;p<0;p++)f.unshift(0);p>0?y=f.splice(p,f.length):(y=f,f=[0]);let D=[];for(f.length>=e.lgSize&&D.unshift(f.splice(-e.lgSize,f.length).join(""));f.length>e.gSize;)D.unshift(f.splice(-e.gSize,f.length).join(""));f.length&&D.unshift(f.join("")),a=D.join(Si(n,r)),y.length&&(a+=Si(n,i)+y.join("")),g&&(a+=Si(n,zt.Exponential)+"+"+g)}return t<0&&!l?a=e.negPre+a+e.negSuf:a=e.posPre+a+e.posSuf,a}function P_(t,e,n,r,i){let o=I_(e,Bm.Currency),s=F_(o,Si(e,zt.MinusSign));return s.minFrac=A_(r),s.maxFrac=s.minFrac,O_(t,s,e,zt.CurrencyGroup,zt.CurrencyDecimal,i).replace(xm,n).replace(xm,"").trim()}function F_(t,e="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(x_),i=r[0],o=r[1],s=i.indexOf(qs)!==-1?i.split(qs):[i.substring(0,i.lastIndexOf(Ti)+1),i.substring(i.lastIndexOf(Ti)+1)],a=s[0],l=s[1]||"";n.posPre=a.substring(0,a.indexOf(bc));for(let c=0;c<l.length;c++){let d=l.charAt(c);d===Ti?n.minFrac=n.maxFrac=c+1:d===bc?n.maxFrac=c+1:n.posSuf+=d}let u=a.split(R_);if(n.gSize=u[1]?u[1].length:0,n.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,o){let c=i.length-n.posPre.length-n.posSuf.length,d=o.indexOf(bc);n.negPre=o.substring(0,d).replace(/'/g,""),n.negSuf=o.slice(d+c).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}function k_(t){if(t.digits[0]===0)return t;let e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(e===0?t.digits.push(0,0):e===1&&t.digits.push(0),t.integerLen+=2),t}function L_(t){let e=Math.abs(t)+"",n=0,r,i,o,s,a;for((i=e.indexOf(qs))>-1&&(e=e.replace(qs,"")),(o=e.search(/e/i))>0?(i<0&&(i=o),i+=+e.slice(o+1),e=e.substring(0,o)):i<0&&(i=e.length),o=0;e.charAt(o)===Ti;o++);if(o===(a=e.length))r=[0],i=1;else{for(a--;e.charAt(a)===Ti;)a--;for(i-=o,r=[],s=0;o<=a;o++,s++)r[s]=Number(e.charAt(o))}return i>Nm&&(r=r.splice(0,Nm-1),n=i-1,i=1),{digits:r,exponent:n,integerLen:i}}function V_(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let r=t.digits,i=r.length-t.integerLen,o=Math.min(Math.max(e,i),n),s=o+t.integerLen,a=r[s];if(s>0){r.splice(Math.max(t.integerLen,s));for(let d=s;d<r.length;d++)r[d]=0}else{i=Math.max(0,i),t.integerLen=1,r.length=Math.max(1,s=o+1),r[0]=0;for(let d=1;d<s;d++)r[d]=0}if(a>=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[s-1]++;for(;i<Math.max(0,o);i++)r.push(0);let l=o!==0,u=e+t.integerLen,c=r.reduceRight(function(d,h,f,p){return h=h+d,p[f]=h<10?h:h-10,l&&(p[f]===0&&f>=u?p.pop():l=!1),h>=10?1:0},0);c&&(r.unshift(c),t.integerLen++)}function _c(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function Ws(t,e){e=encodeURIComponent(e);for(let n of t.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var Ic=class{constructor(e,n,r,i){this.$implicit=e,this.ngForOf=n,this.index=r,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Um=(()=>{let e=class e{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,i,o){this._viewContainer=r,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let r=this._ngForOf;if(!this._differ&&r)if(0)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let i=this._viewContainer;r.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new Ic(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let l=i.get(s);i.move(l,a),Rm(l,o)}});for(let o=0,s=i.length;o<s;o++){let l=i.get(o).context;l.index=o,l.count=s,l.ngForOf=this._ngForOf}r.forEachIdentityChange(o=>{let s=i.get(o.currentIndex);Rm(s,o)})}static ngTemplateContextGuard(r,i){return!0}};e.\u0275fac=function(i){return new(i||e)(S(Rr),S(ks),S(Cc))},e.\u0275dir=ye({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function Rm(t,e){t.context.$implicit=e.item}var zn=(()=>{let e=class e{constructor(r,i){this._viewContainer=r,this._context=new Sc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(r){this._context.$implicit=this._context.ngIf=r,this._updateView()}set ngIfThen(r){Om("ngIfThen",r),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView()}set ngIfElse(r){Om("ngIfElse",r),this._elseTemplateRef=r,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(r,i){return!0}};e.\u0275fac=function(i){return new(i||e)(S(Rr),S(ks))},e.\u0275dir=ye({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Sc=class{constructor(){this.$implicit=null,this.ngIf=null}};function Om(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Me(e)}'.`)}function $m(t,e){return new m(2100,!1)}var Hm=(()=>{let e=class e{transform(r){if(r==null)return null;if(typeof r!="string")throw $m(e,r);return r.toUpperCase()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Lu({name:"uppercase",type:e,pure:!0,standalone:!0});let t=e;return t})();var zm=(()=>{let e=class e{constructor(r,i="USD"){this._locale=r,this._defaultCurrencyCode=i}transform(r,i=this._defaultCurrencyCode,o="symbol",s,a){if(!j_(r))return null;a||=this._locale,typeof o=="boolean"&&(o=o?"symbol":"code");let l=i||this._defaultCurrencyCode;o!=="code"&&(o==="symbol"||o==="symbol-narrow"?l=T_(l,o==="symbol"?"wide":"narrow",a):l=o);try{let u=B_(r);return P_(u,a,l,i,s)}catch(u){throw $m(e,u.message)}}};e.\u0275fac=function(i){return new(i||e)(S(zs,16),S(Im,16))},e.\u0275pipe=Lu({name:"currency",type:e,pure:!0,standalone:!0});let t=e;return t})();function j_(t){return!(t==null||t===""||t!==t)}function B_(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new Error(`${t} is not a number`);return t}var Gn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=lt({type:e}),e.\u0275inj=st({});let t=e;return t})(),Gm="browser",U_="server";function Qs(t){return t===U_}var kr=class{};var Ni=class{},Ys=class{},qn=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` `).forEach(n=>{let r=n.indexOf(":");if(r>0){let i=n.slice(0,r),o=i.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){let n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(e.name,n);let i=(e.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let o=e.value;if(!o)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(e,n){let r=(Array.isArray(n)?n:[n]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var Ac=class{encodeKey(e){return qm(e)}encodeValue(e){return qm(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function z_(t,e){let n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}var G_=/%(\d[a-f0-9])/gi,q_={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function qm(t){return encodeURIComponent(t).replace(G_,(e,n)=>q_[n]??e)}function Zs(t){return`${t}`}var cn=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Ac,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=z_(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let r=e.fromObject[n],i=Array.isArray(r)?r.map(Zs):[Zs(r)];this.map.set(n,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(r=>{let i=e[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push(Zs(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let r=this.map.get(e.param)||[],i=r.indexOf(Zs(e.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Nc=class{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function W_(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Wm(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Qm(t){return typeof Blob<"u"&&t instanceof Blob}function Km(t){return typeof FormData<"u"&&t instanceof FormData}function Q_(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Ai=class t{constructor(e,n,r,i){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(W_(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new qn,this.context??=new Nc,!this.params)this.params=new cn,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),l=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Wm(this.body)||Qm(this.body)||Km(this.body)||Q_(this.body)?this.body:this.body instanceof cn?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Km(this.body)?null:Qm(this.body)?this.body.type||null:Wm(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof cn?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,o=e.transferCache??this.transferCache,s=e.body!==void 0?e.body:this.body,a=e.withCredentials??this.withCredentials,l=e.reportProgress??this.reportProgress,u=e.headers||this.headers,c=e.params||this.params,d=e.context??this.context;return e.setHeaders!==void 0&&(u=Object.keys(e.setHeaders).reduce((h,f)=>h.set(f,e.setHeaders[f]),u)),e.setParams&&(c=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),c)),new t(n,r,s,{params:c,headers:u,context:d,reportProgress:l,responseType:i,withCredentials:a,transferCache:o})}},Vr=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Vr||{}),xi=class{constructor(e,n=ea.Ok,r="OK"){this.headers=e.headers||new qn,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},xc=class t extends xi{constructor(e={}){super(e),this.type=Vr.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Xs=class t extends xi{constructor(e={}){super(e),this.type=Vr.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Js=class extends xi{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},ea=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(ea||{});function Mc(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Rc=(()=>{let e=class e{constructor(r){this.handler=r}request(r,i,o={}){let s;if(r instanceof Ai)s=r;else{let u;o.headers instanceof qn?u=o.headers:u=new qn(o.headers);let c;o.params&&(o.params instanceof cn?c=o.params:c=new cn({fromObject:o.params})),s=new Ai(r,i,o.body!==void 0?o.body:null,{headers:u,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=x(s).pipe(Xt(u=>this.handler.handle(u)));if(r instanceof Ai||o.observe==="events")return a;let l=a.pipe(Ve(u=>u instanceof Xs));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(F(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return l.pipe(F(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return l.pipe(F(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return l.pipe(F(u=>u.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(r,i={}){return this.request("DELETE",r,i)}get(r,i={}){return this.request("GET",r,i)}head(r,i={}){return this.request("HEAD",r,i)}jsonp(r,i){return this.request("JSONP",r,{params:new cn().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(r,i={}){return this.request("OPTIONS",r,i)}patch(r,i,o={}){return this.request("PATCH",r,Mc(o,i))}post(r,i,o={}){return this.request("POST",r,Mc(o,i))}put(r,i,o={}){return this.request("PUT",r,Mc(o,i))}};e.\u0275fac=function(i){return new(i||e)(b(Ni))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();function K_(t,e){return e(t)}function Z_(t,e,n){return(r,i)=>Ft(n,()=>e(r,o=>t(o,i)))}var Xm=new I(""),Y_=new I(""),X_=new I("");var Zm=(()=>{let e=class e extends Ni{constructor(r,i){super(),this.backend=r,this.injector=i,this.chain=null,this.pendingTasks=w(Or);let o=w(X_,{optional:!0});this.backend=o??r}handle(r){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Xm),...this.injector.get(Y_,[])]));this.chain=o.reduceRight((s,a)=>Z_(s,a,this.injector),K_)}let i=this.pendingTasks.add();return this.chain(r,o=>this.backend.handle(o)).pipe(bn(()=>this.pendingTasks.remove(i)))}};e.\u0275fac=function(i){return new(i||e)(b(Ys),b(Re))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();var J_=/^\)\]\}',?\n/;function eI(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var Ym=(()=>{let e=class e{constructor(r){this.xhrFactory=r}handle(r){if(r.method==="JSONP")throw new m(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?oe(i.\u0275loadImpl()):x(null)).pipe(je(()=>new Q(s=>{let a=i.build();if(a.open(r.method,r.urlWithParams),r.withCredentials&&(a.withCredentials=!0),r.headers.forEach((y,D)=>a.setRequestHeader(y,D.join(","))),r.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!r.headers.has("Content-Type")){let y=r.detectContentTypeHeader();y!==null&&a.setRequestHeader("Content-Type",y)}if(r.responseType){let y=r.responseType.toLowerCase();a.responseType=y!=="json"?y:"text"}let l=r.serializeBody(),u=null,c=()=>{if(u!==null)return u;let y=a.statusText||"OK",D=new qn(a.getAllResponseHeaders()),O=eI(a)||r.url;return u=new xc({headers:D,status:a.status,statusText:y,url:O}),u},d=()=>{let{headers:y,status:D,statusText:O,url:U}=c(),M=null;D!==ea.NoContent&&(M=typeof a.response>"u"?a.responseText:a.response),D===0&&(D=M?ea.Ok:0);let se=D>=200&&D<300;if(r.responseType==="json"&&typeof M=="string"){let te=M;M=M.replace(J_,"");try{M=M!==""?JSON.parse(M):null}catch(ne){M=te,se&&(se=!1,M={error:ne,text:M})}}se?(s.next(new Xs({body:M,headers:y,status:D,statusText:O,url:U||void 0})),s.complete()):s.error(new Js({error:M,headers:y,status:D,statusText:O,url:U||void 0}))},h=y=>{let{url:D}=c(),O=new Js({error:y,status:a.status||0,statusText:a.statusText||"Unknown Error",url:D||void 0});s.error(O)},f=!1,p=y=>{f||(s.next(c()),f=!0);let D={type:Vr.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(D.total=y.total),r.responseType==="text"&&a.responseText&&(D.partialText=a.responseText),s.next(D)},g=y=>{let D={type:Vr.UploadProgress,loaded:y.loaded};y.lengthComputable&&(D.total=y.total),s.next(D)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),r.reportProgress&&(a.addEventListener("progress",p),l!==null&&a.upload&&a.upload.addEventListener("progress",g)),a.send(l),s.next({type:Vr.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),r.reportProgress&&(a.removeEventListener("progress",p),l!==null&&a.upload&&a.upload.removeEventListener("progress",g)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(b(kr))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),Jm=new I(""),tI="XSRF-TOKEN",nI=new I("",{providedIn:"root",factory:()=>tI}),rI="X-XSRF-TOKEN",iI=new I("",{providedIn:"root",factory:()=>rI}),ta=class{},oI=(()=>{let e=class e{constructor(r,i,o){this.doc=r,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let r=this.doc.cookie||"";return r!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ws(r,this.cookieName),this.lastCookieString=r),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(b(ue),b(ln),b(nI))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();function sI(t,e){let n=t.url.toLowerCase();if(!w(Jm)||t.method==="GET"||t.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(t);let r=w(ta).getToken(),i=w(iI);return r!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,r)})),e(t)}function ey(...t){let e=[Rc,Ym,Zm,{provide:Ni,useExisting:Zm},{provide:Ys,useExisting:Ym},{provide:Xm,useValue:sI,multi:!0},{provide:Jm,useValue:!0},{provide:ta,useClass:oI}];for(let n of t)e.push(...n.\u0275providers);return on(e)}var Fc=class extends Gs{constructor(){super(...arguments),this.supportsDOMEvents=!0}},kc=class t extends Fc{static makeCurrent(){Fm(new t)}onAndCancel(e,n,r){return e.addEventListener(n,r),()=>{e.removeEventListener(n,r)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return n=n||this.getDefaultDocument(),n.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return n==="window"?window:n==="document"?e:n==="body"?e.body:null}getBaseHref(e){let n=lI();return n==null?null:uI(n)}resetBaseElement(){Ri=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Ws(document.cookie,e)}},Ri=null;function lI(){return Ri=Ri||document.querySelector("base"),Ri?Ri.getAttribute("href"):null}function uI(t){return new URL(t,document.baseURI).pathname}var cI=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),Lc=new I(""),ry=(()=>{let e=class e{constructor(r,i){this._zone=i,this._eventNameToPlugin=new Map,r.forEach(o=>{o.manager=this}),this._plugins=r.slice().reverse()}addEventListener(r,i,o){return this._findPluginFor(i).addEventListener(r,i,o)}getZone(){return this._zone}_findPluginFor(r){let i=this._eventNameToPlugin.get(r);if(i)return i;if(i=this._plugins.find(s=>s.supports(r)),!i)throw new m(5101,!1);return this._eventNameToPlugin.set(r,i),i}};e.\u0275fac=function(i){return new(i||e)(b(Lc),b(ee))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),na=class{constructor(e){this._doc=e}},Oc="ng-app-id",iy=(()=>{let e=class e{constructor(r,i,o,s={}){this.doc=r,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Qs(s),this.resetHostNodes()}addStyles(r){for(let i of r)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(r){for(let i of r)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let r=this.styleNodesInDOM;r&&(r.forEach(i=>i.remove()),r.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(r){this.hostNodes.add(r);for(let i of this.getAllStyles())this.addStyleToHost(r,i)}removeHost(r){this.hostNodes.delete(r)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(r){for(let i of this.hostNodes)this.addStyleToHost(i,r)}onStyleRemoved(r){let i=this.styleRef;i.get(r)?.elements?.forEach(o=>o.remove()),i.delete(r)}collectServerRenderedStyles(){let r=this.doc.head?.querySelectorAll(`style[${Oc}="${this.appId}"]`);if(r?.length){let i=new Map;return r.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(r,i){let o=this.styleRef;if(o.has(r)){let s=o.get(r);return s.usage+=i,s.usage}return o.set(r,{usage:i,elements:[]}),i}getStyleElement(r,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===r)return o.delete(i),s.removeAttribute(Oc),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Oc,this.appId),r.appendChild(a),a}}addStyleToHost(r,i){let o=this.getStyleElement(r,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let r=this.hostNodes;r.clear(),r.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(b(ue),b(Yu),b(ec,8),b(ln))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),Pc={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},jc=/%COMP%/g,oy="%COMP%",dI=`_nghost-${oy}`,fI=`_ngcontent-${oy}`,hI=!0,pI=new I("",{providedIn:"root",factory:()=>hI});function gI(t){return fI.replace(jc,t)}function mI(t){return dI.replace(jc,t)}function sy(t,e){return e.map(n=>n.replace(jc,t))}var ra=(()=>{let e=class e{constructor(r,i,o,s,a,l,u,c=null){this.eventManager=r,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=u,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=Qs(l),this.defaultRenderer=new Oi(r,a,u,this.platformIsServer)}createRenderer(r,i){if(!r||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===mt.ShadowDom&&(i=z(v({},i),{encapsulation:mt.Emulated}));let o=this.getOrCreateRenderer(r,i);return o instanceof ia?o.applyToHost(r):o instanceof Pi&&o.applyStyles(),o}getOrCreateRenderer(r,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,l=this.ngZone,u=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(i.encapsulation){case mt.Emulated:s=new ia(u,c,i,this.appId,d,a,l,h);break;case mt.ShadowDom:return new Vc(u,c,r,i,a,l,this.nonce,h);default:s=new Pi(u,c,i,d,a,l,h);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(b(ry),b(iy),b(Yu),b(pI),b(ue),b(ln),b(ee),b(ec))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),Oi=class{constructor(e,n,r,i){this.eventManager=e,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,n){return n?this.doc.createElementNS(Pc[n]||n,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,n){(ty(e)?e.content:e).appendChild(n)}insertBefore(e,n,r){e&&(ty(e)?e.content:e).insertBefore(n,r)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let r=typeof e=="string"?this.doc.querySelector(e):e;if(!r)throw new m(-5104,!1);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,i){if(i){n=i+":"+n;let o=Pc[i];o?e.setAttributeNS(o,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){let i=Pc[r];i?e.removeAttributeNS(i,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,i){i&(Ot.DashCase|Ot.Important)?e.style.setProperty(n,r,i&Ot.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&Ot.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e!=null&&(e[n]=r)}setValue(e,n){e.nodeValue=n}listen(e,n,r){if(typeof e=="string"&&(e=Gt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${n}`);return this.eventManager.addEventListener(e,n,this.decoratePreventDefault(r))}decoratePreventDefault(e){return n=>{if(n==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(n)):e(n))===!1&&n.preventDefault()}}};function ty(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Vc=class extends Oi{constructor(e,n,r,i,o,s,a,l){super(e,o,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=sy(i.id,i.styles);for(let c of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=c,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(this.nodeOrShadowRoot(e),n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Pi=class extends Oi{constructor(e,n,r,i,o,s,a,l){super(e,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=l?sy(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ia=class extends Pi{constructor(e,n,r,i,o,s,a,l){let u=i+"-"+r.id;super(e,n,r,o,s,a,l,u),this.contentAttr=gI(u),this.hostAttr=mI(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,n){let r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}},yI=(()=>{let e=class e extends na{constructor(r){super(r)}supports(r){return!0}addEventListener(r,i,o){return r.addEventListener(i,o,!1),()=>this.removeEventListener(r,i,o)}removeEventListener(r,i,o){return r.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(b(ue))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),ny=["alt","control","meta","shift"],vI={"\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"},DI={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},wI=(()=>{let e=class e extends na{constructor(r){super(r)}supports(r){return e.parseEventName(r)!=null}addEventListener(r,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Gt().onAndCancel(r,s.domEventName,a))}static parseEventName(r){let i=r.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",l=i.indexOf("code");if(l>-1&&(i.splice(l,1),a="code."),ny.forEach(c=>{let d=i.indexOf(c);d>-1&&(i.splice(d,1),a+=c+".")}),a+=s,i.length!=0||s.length===0)return null;let u={};return u.domEventName=o,u.fullKey=a,u}static matchEventFullKeyCode(r,i){let o=vI[r.key]||r.key,s="";return i.indexOf("code.")>-1&&(o=r.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),ny.forEach(a=>{if(a!==o){let l=DI[a];l(r)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(r,i,o){return s=>{e.matchEventFullKeyCode(s,r)&&o.runGuarded(()=>i(s))}}static _normalizeKey(r){return r==="esc"?"escape":r}};e.\u0275fac=function(i){return new(i||e)(b(ue))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();function ay(t,e){return Tm(v({rootComponent:t},EI(e)))}function EI(t){return{appProviders:[...SI,...t?.providers??[]],platformProviders:II}}function CI(){kc.makeCurrent()}function bI(){return new xt}function _I(){return mg(document),document}var II=[{provide:ln,useValue:Gm},{provide:Xu,useValue:CI,multi:!0},{provide:ue,useFactory:_I,deps:[]}];var SI=[{provide:Ds,useValue:"root"},{provide:xt,useFactory:bI,deps:[]},{provide:Lc,useClass:yI,multi:!0,deps:[ue,ee,ln]},{provide:Lc,useClass:wI,multi:!0,deps:[ue]},ra,iy,ry,{provide:Pn,useExisting:ra},{provide:kr,useClass:cI,deps:[]},[]];var ly=(()=>{let e=class e{constructor(r){this._doc=r}getTitle(){return this._doc.title}setTitle(r){this._doc.title=r||""}};e.\u0275fac=function(i){return new(i||e)(b(ue))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Bc=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:function(i){let o=null;return i?o=new(i||e):o=b(TI),o},providedIn:"root"});let t=e;return t})(),TI=(()=>{let e=class e extends Bc{constructor(r){super(),this._doc=r}sanitize(r,i){if(i==null)return null;switch(r){case Ue.NONE:return i;case Ue.HTML:return Vt(i,"HTML")?Ze(i):nc(this._doc,String(i)).toString();case Ue.STYLE:return Vt(i,"Style")?Ze(i):i;case Ue.SCRIPT:if(Vt(i,"Script"))return Ze(i);throw new m(5200,!1);case Ue.URL:return Vt(i,"URL")?Ze(i):xs(String(i));case Ue.RESOURCE_URL:if(Vt(i,"ResourceURL"))return Ze(i);throw new m(5201,!1);default:throw new m(5202,!1)}}bypassSecurityTrustHtml(r){return wg(r)}bypassSecurityTrustStyle(r){return Eg(r)}bypassSecurityTrustScript(r){return Cg(r)}bypassSecurityTrustUrl(r){return bg(r)}bypassSecurityTrustResourceUrl(r){return _g(r)}};e.\u0275fac=function(i){return new(i||e)(b(ue))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var k="primary",Ki=Symbol("RouteTitle"),Gc=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let n=this.params[e];return Array.isArray(n)?n[0]:n}return null}getAll(e){if(this.has(e)){let n=this.params[e];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Hr(t){return new Gc(t)}function MI(t,e,n){let r=n.path.split("/");if(r.length>t.length||n.pathMatch==="full"&&(e.hasChildren()||r.length<t.length))return null;let i={};for(let o=0;o<r.length;o++){let s=r[o],a=t[o];if(s.startsWith(":"))i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function AI(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!bt(t[n],e[n]))return!1;return!0}function bt(t,e){let n=t?qc(t):void 0,r=e?qc(e):void 0;if(!n||!r||n.length!=r.length)return!1;let i;for(let o=0;o<n.length;o++)if(i=n[o],!gy(t[i],e[i]))return!1;return!0}function qc(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function gy(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;let n=[...t].sort(),r=[...e].sort();return n.every((i,o)=>r[o]===i)}else return t===e}function my(t){return t.length>0?t[t.length-1]:null}function pn(t){return pl(t)?t:$n(t)?oe(Promise.resolve(t)):x(t)}var NI={exact:vy,subset:Dy},yy={exact:xI,subset:RI,ignored:()=>!0};function cy(t,e,n){return NI[n.paths](t.root,e.root,n.matrixParams)&&yy[n.queryParams](t.queryParams,e.queryParams)&&!(n.fragment==="exact"&&t.fragment!==e.fragment)}function xI(t,e){return bt(t,e)}function vy(t,e,n){if(!Qn(t.segments,e.segments)||!aa(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let r in e.children)if(!t.children[r]||!vy(t.children[r],e.children[r],n))return!1;return!0}function RI(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>gy(t[n],e[n]))}function Dy(t,e,n){return wy(t,e,e.segments,n)}function wy(t,e,n,r){if(t.segments.length>n.length){let i=t.segments.slice(0,n.length);return!(!Qn(i,n)||e.hasChildren()||!aa(i,n,r))}else if(t.segments.length===n.length){if(!Qn(t.segments,n)||!aa(t.segments,n,r))return!1;for(let i in e.children)if(!t.children[i]||!Dy(t.children[i],e.children[i],r))return!1;return!0}else{let i=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!Qn(t.segments,i)||!aa(t.segments,i,r)||!t.children[k]?!1:wy(t.children[k],e,o,r)}}function aa(t,e,n){return e.every((r,i)=>yy[n](t[i].parameters,r.parameters))}var dn=class{constructor(e=new Y([],{}),n={},r=null){this.root=e,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Hr(this.queryParams),this._queryParamMap}toString(){return FI.serialize(this)}},Y=class{constructor(e,n){this.segments=e,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return la(this)}},Wn=class{constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap??=Hr(this.parameters),this._parameterMap}toString(){return Cy(this)}};function OI(t,e){return Qn(t,e)&&t.every((n,r)=>bt(n.parameters,e[r].parameters))}function Qn(t,e){return t.length!==e.length?!1:t.every((n,r)=>n.path===e[r].path)}function PI(t,e){let n=[];return Object.entries(t.children).forEach(([r,i])=>{r===k&&(n=n.concat(e(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==k&&(n=n.concat(e(i,r)))}),n}var vd=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>new ca,providedIn:"root"});let t=e;return t})(),ca=class{parse(e){let n=new Qc(e);return new dn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){let n=`/${Fi(e.root,!0)}`,r=VI(e.queryParams),i=typeof e.fragment=="string"?`#${kI(e.fragment)}`:"";return`${n}${r}${i}`}},FI=new ca;function la(t){return t.segments.map(e=>Cy(e)).join("/")}function Fi(t,e){if(!t.hasChildren())return la(t);if(e){let n=t.children[k]?Fi(t.children[k],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==k&&r.push(`${i}:${Fi(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=PI(t,(r,i)=>i===k?[Fi(t.children[k],!1)]:[`${i}:${Fi(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[k]!=null?`${la(t)}/${n[0]}`:`${la(t)}/(${n.join("//")})`}}function Ey(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function oa(t){return Ey(t).replace(/%3B/gi,";")}function kI(t){return encodeURI(t)}function Wc(t){return Ey(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ua(t){return decodeURIComponent(t)}function dy(t){return ua(t.replace(/\+/g,"%20"))}function Cy(t){return`${Wc(t.path)}${LI(t.parameters)}`}function LI(t){return Object.entries(t).map(([e,n])=>`;${Wc(e)}=${Wc(n)}`).join("")}function VI(t){let e=Object.entries(t).map(([n,r])=>Array.isArray(r)?r.map(i=>`${oa(n)}=${oa(i)}`).join("&"):`${oa(n)}=${oa(r)}`).filter(n=>n);return e.length?`?${e.join("&")}`:""}var jI=/^[^\/()?;#]+/;function Uc(t){let e=t.match(jI);return e?e[0]:""}var BI=/^[^\/()?;=#]+/;function UI(t){let e=t.match(BI);return e?e[0]:""}var $I=/^[^=?&#]+/;function HI(t){let e=t.match($I);return e?e[0]:""}var zI=/^[^&#]+/;function GI(t){let e=t.match(zI);return e?e[0]:""}var Qc=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Y([],{}):new Y([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(n).length>0)&&(r[k]=new Y(e,n)),r}parseSegment(){let e=Uc(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new m(4009,!1);return this.capture(e),new Wn(ua(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let n=UI(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=Uc(this.remaining);i&&(r=i,this.capture(r))}e[ua(n)]=ua(r)}parseQueryParam(e){let n=HI(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=GI(this.remaining);s&&(r=s,this.capture(r))}let i=dy(n),o=dy(r);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Uc(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new m(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=k);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[k]:new Y([],s),this.consumeOptional("//")}return n}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new m(4011,!1)}};function by(t){return t.segments.length>0?new Y([],{[k]:t}):t}function _y(t){let e={};for(let[r,i]of Object.entries(t.children)){let o=_y(i);if(r===k&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[r]=o)}let n=new Y(t.segments,e);return qI(n)}function qI(t){if(t.numberOfChildren===1&&t.children[k]){let e=t.children[k];return new Y(t.segments.concat(e.segments),e.children)}return t}function zr(t){return t instanceof dn}function WI(t,e,n=null,r=null){let i=Iy(t);return Sy(i,e,n,r)}function Iy(t){let e;function n(o){let s={};for(let l of o.children){let u=n(l);s[l.outlet]=u}let a=new Y(o.url,s);return o===t&&(e=a),a}let r=n(t.root),i=by(r);return e??i}function Sy(t,e,n,r){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return $c(i,i,i,n,r);let o=QI(e);if(o.toRoot())return $c(i,i,new Y([],{}),n,r);let s=KI(o,i,t),a=s.processChildren?Vi(s.segmentGroup,s.index,o.commands):My(s.segmentGroup,s.index,o.commands);return $c(i,s.segmentGroup,a,n,r)}function da(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Ui(t){return typeof t=="object"&&t!=null&&t.outlets}function $c(t,e,n,r,i){let o={};r&&Object.entries(r).forEach(([l,u])=>{o[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`});let s;t===e?s=n:s=Ty(t,e,n);let a=by(_y(s));return new dn(a,o,i)}function Ty(t,e,n){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===e?r[i]=n:r[i]=Ty(o,e,n)}),new Y(t.segments,r)}var fa=class{constructor(e,n,r){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&da(r[0]))throw new m(4003,!1);let i=r.find(Ui);if(i&&i!==my(r))throw new m(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function QI(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new fa(!0,0,t);let e=0,n=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,u])=>{a[l]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?n=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new fa(n,e,r)}var Ur=class{constructor(e,n,r){this.segmentGroup=e,this.processChildren=n,this.index=r}};function KI(t,e,n){if(t.isAbsolute)return new Ur(e,!0,0);if(!n)return new Ur(e,!1,NaN);if(n.parent===null)return new Ur(n,!0,0);let r=da(t.commands[0])?0:1,i=n.segments.length-1+r;return ZI(n,i,t.numberOfDoubleDots)}function ZI(t,e,n){let r=t,i=e,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new m(4005,!1);i=r.segments.length}return new Ur(r,!1,i-o)}function YI(t){return Ui(t[0])?t[0].outlets:{[k]:t}}function My(t,e,n){if(t??=new Y([],{}),t.segments.length===0&&t.hasChildren())return Vi(t,e,n);let r=XI(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new Y(t.segments.slice(0,r.pathIndex),{});return o.children[k]=new Y(t.segments.slice(r.pathIndex),t.children),Vi(o,0,i)}else return r.match&&i.length===0?new Y(t.segments,{}):r.match&&!t.hasChildren()?Kc(t,e,n):r.match?Vi(t,0,i):Kc(t,e,n)}function Vi(t,e,n){if(n.length===0)return new Y(t.segments,{});{let r=YI(n),i={};if(Object.keys(r).some(o=>o!==k)&&t.children[k]&&t.numberOfChildren===1&&t.children[k].segments.length===0){let o=Vi(t.children[k],e,n);return new Y(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=My(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new Y(t.segments,i)}}function XI(t,e,n){let r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=n.length)return o;let s=t.segments[i],a=n[r];if(Ui(a))break;let l=`${a}`,u=r<n.length-1?n[r+1]:null;if(i>0&&l===void 0)break;if(l&&u&&typeof u=="object"&&u.outlets===void 0){if(!hy(l,u,s))return o;r+=2}else{if(!hy(l,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Kc(t,e,n){let r=t.segments.slice(0,e),i=0;for(;i<n.length;){let o=n[i];if(Ui(o)){let l=JI(o.outlets);return new Y(r,l)}if(i===0&&da(n[0])){let l=t.segments[e];r.push(new Wn(l.path,fy(n[0]))),i++;continue}let s=Ui(o)?o.outlets[k]:`${o}`,a=i<n.length-1?n[i+1]:null;s&&a&&da(a)?(r.push(new Wn(s,fy(a))),i+=2):(r.push(new Wn(s,{})),i++)}return new Y(r,{})}function JI(t){let e={};return Object.entries(t).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(e[n]=Kc(new Y([],{}),0,r))}),e}function fy(t){let e={};return Object.entries(t).forEach(([n,r])=>e[n]=`${r}`),e}function hy(t,e,n){return t==n.path&&bt(e,n.parameters)}var ji="imperative",De=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(De||{}),Xe=class{constructor(e,n){this.id=e,this.url=n}},$i=class extends Xe{constructor(e,n,r="imperative",i=null){super(e,n),this.type=De.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},fn=class extends Xe{constructor(e,n,r){super(e,n),this.urlAfterRedirects=r,this.type=De.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},He=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(He||{}),Zc=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Zc||{}),hn=class extends Xe{constructor(e,n,r,i){super(e,n),this.reason=r,this.code=i,this.type=De.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Kn=class extends Xe{constructor(e,n,r,i){super(e,n),this.reason=r,this.code=i,this.type=De.NavigationSkipped}},Hi=class extends Xe{constructor(e,n,r,i){super(e,n),this.error=r,this.target=i,this.type=De.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ha=class extends Xe{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=De.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Yc=class extends Xe{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=De.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Xc=class extends Xe{constructor(e,n,r,i,o){super(e,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=De.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Jc=class extends Xe{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=De.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ed=class extends Xe{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=De.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},td=class{constructor(e){this.route=e,this.type=De.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},nd=class{constructor(e){this.route=e,this.type=De.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},rd=class{constructor(e){this.snapshot=e,this.type=De.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},id=class{constructor(e){this.snapshot=e,this.type=De.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},od=class{constructor(e){this.snapshot=e,this.type=De.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},sd=class{constructor(e){this.snapshot=e,this.type=De.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var zi=class{},Gi=class{constructor(e){this.url=e}};var ad=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Da,this.attachRef=null}},Da=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(r,i){let o=this.getOrCreateContext(r);o.outlet=i,this.contexts.set(r,o)}onChildOutletDestroyed(r){let i=this.getContext(r);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let r=this.contexts;return this.contexts=new Map,r}onOutletReAttached(r){this.contexts=r}getOrCreateContext(r){let i=this.getContext(r);return i||(i=new ad,this.contexts.set(r,i)),i}getContext(r){return this.contexts.get(r)||null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),pa=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let n=this.pathFromRoot(e);return n.length>1?n[n.length-2]:null}children(e){let n=ld(e,this._root);return n?n.children.map(r=>r.value):[]}firstChild(e){let n=ld(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){let n=ud(e,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return ud(e,this._root).map(n=>n.value)}};function ld(t,e){if(t===e.value)return e;for(let n of e.children){let r=ld(t,n);if(r)return r}return null}function ud(t,e){if(t===e.value)return[e];for(let n of e.children){let r=ud(t,n);if(r.length)return r.unshift(e),r}return[]}var $e=class{constructor(e,n){this.value=e,this.children=n}toString(){return`TreeNode(${this.value})`}};function Br(t){let e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e}var ga=class extends pa{constructor(e,n){super(e),this.snapshot=n,wd(this,e)}toString(){return this.snapshot.toString()}};function Ay(t){let e=eS(t),n=new me([new Wn("",{})]),r=new me({}),i=new me({}),o=new me({}),s=new me(""),a=new qt(n,r,o,s,i,k,t,e.root);return a.snapshot=e.root,new ga(new $e(a,[]),e)}function eS(t){let e={},n={},r={},i="",o=new qi([],e,r,i,n,k,t,null,{});return new ma("",new $e(o,[]))}var qt=class{constructor(e,n,r,i,o,s,a,l){this.urlSubject=e,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(F(u=>u[Ki]))??x(void 0),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o}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(F(e=>Hr(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(F(e=>Hr(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Dd(t,e,n="emptyOnly"){let r,{routeConfig:i}=t;return e!==null&&(n==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?r={params:v(v({},e.params),t.params),data:v(v({},e.data),t.data),resolve:v(v(v(v({},t.data),e.data),i?.data),t._resolvedData)}:r={params:v({},t.params),data:v({},t.data),resolve:v(v({},t.data),t._resolvedData??{})},i&&xy(i)&&(r.resolve[Ki]=i.title),r}var qi=class{get title(){return this.data?.[Ki]}constructor(e,n,r,i,o,s,a,l,u){this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,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??=Hr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Hr(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${n}')`}},ma=class extends pa{constructor(e,n){super(n),this.url=e,wd(this,n)}toString(){return Ny(this._root)}};function wd(t,e){e.value._routerState=t,e.children.forEach(n=>wd(t,n))}function Ny(t){let e=t.children.length>0?` { ${t.children.map(Ny).join(", ")} } `:"";return`${t.value}${e}`}function Hc(t){if(t.snapshot){let e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,bt(e.queryParams,n.queryParams)||t.queryParamsSubject.next(n.queryParams),e.fragment!==n.fragment&&t.fragmentSubject.next(n.fragment),bt(e.params,n.params)||t.paramsSubject.next(n.params),AI(e.url,n.url)||t.urlSubject.next(n.url),bt(e.data,n.data)||t.dataSubject.next(n.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function cd(t,e){let n=bt(t.params,e.params)&&OI(t.url,e.url),r=!t.parent!=!e.parent;return n&&!r&&(!t.parent||cd(t.parent,e.parent))}function xy(t){return typeof t.title=="string"||t.title===null}var Ed=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=k,this.activateEvents=new Ee,this.deactivateEvents=new Ee,this.attachEvents=new Ee,this.detachEvents=new Ee,this.parentContexts=w(Da),this.location=w(Rr),this.changeDetector=w(Pr),this.environmentInjector=w(Re),this.inputBinder=w(Cd,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(r){if(r.name){let{firstChange:i,previousValue:o}=r.name;if(i)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(r){return this.parentContexts.getContext(r)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let r=this.parentContexts.getContext(this.name);r?.route&&(r.attachRef?this.attach(r.attachRef,r.route):this.activateWith(r.route,r.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new m(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new m(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new m(4012,!1);this.location.detach();let r=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(r.instance),r}attach(r,i){this.activated=r,this._activatedRoute=i,this.location.insert(r.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(r.instance)}deactivate(){if(this.activated){let r=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(r)}}activateWith(r,i){if(this.isActivated)throw new m(4013,!1);this._activatedRoute=r;let o=this.location,a=r.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,u=new dd(r,l,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:u,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=ye({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[sn]});let t=e;return t})(),dd=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,n,r){this.route=e,this.childContexts=n,this.parent=r}get(e,n){return e===qt?this.route:e===Da?this.childContexts:this.parent.get(e,n)}},Cd=new I("");function tS(t,e,n){let r=Wi(t,e._root,n?n._root:void 0);return new ga(r,e)}function Wi(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=e.value;let i=nS(t,e,n);return new $e(r,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>Wi(t,a)),s}}let r=rS(e.value),i=e.children.map(o=>Wi(t,o));return new $e(r,i)}}function nS(t,e,n){return e.children.map(r=>{for(let i of n.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Wi(t,r,i);return Wi(t,r)})}function rS(t){return new qt(new me(t.url),new me(t.params),new me(t.queryParams),new me(t.fragment),new me(t.data),t.outlet,t.component,t)}var Ry="ngNavigationCancelingError";function Oy(t,e){let{redirectTo:n,navigationBehaviorOptions:r}=zr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=Py(!1,He.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function Py(t,e){let n=new Error(`NavigationCancelingError: ${t||""}`);return n[Ry]=!0,n.cancellationCode=e,n}function iS(t){return Fy(t)&&zr(t.url)}function Fy(t){return!!t&&t[Ry]}var oS=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=at({type:e,selectors:[["ng-component"]],standalone:!0,features:[ct],decls:1,vars:0,template:function(i,o){i&1&&ve(0,"router-outlet")},dependencies:[Ed],encapsulation:2});let t=e;return t})();function sS(t,e){return t.providers&&!t._injector&&(t._injector=vc(t.providers,e,`Route: ${t.path}`)),t._injector??e}function bd(t){let e=t.children&&t.children.map(bd),n=e?z(v({},t),{children:e}):v({},t);return!n.component&&!n.loadComponent&&(e||n.loadChildren)&&n.outlet&&n.outlet!==k&&(n.component=oS),n}function _t(t){return t.outlet||k}function aS(t,e){let n=t.filter(r=>_t(r)===e);return n.push(...t.filter(r=>_t(r)!==e)),n}function Zi(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let n=e.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var lS=(t,e,n,r)=>F(i=>(new fd(e,i.targetRouterState,i.currentRouterState,n,r).activate(t),i)),fd=class{constructor(e,n,r,i,o){this.routeReuseStrategy=e,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,e),Hc(this.futureState.root),this.activateChildRoutes(n,r,e)}deactivateChildRoutes(e,n,r){let i=Br(n);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(e,n,r){let i=e.value,o=n?n.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(e,n,s.children)}else this.deactivateChildRoutes(e,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(e,n){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,n):this.deactivateRouteAndOutlet(e,n)}detachAndStoreRouteSubtree(e,n){let r=n.getContext(e.value.outlet),i=r&&e.value.component?r.children:n,o=Br(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,n){let r=n.getContext(e.value.outlet),i=r&&e.value.component?r.children:n,o=Br(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(e,n,r){let i=Br(n);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new sd(o.value.snapshot))}),e.children.length&&this.forwardEvent(new id(e.value.snapshot))}activateRoutes(e,n,r){let i=e.value,o=n?n.value:null;if(Hc(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(e,n,s.children)}else this.activateChildRoutes(e,n,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),Hc(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=Zi(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,r)}},ya=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},$r=class{constructor(e,n){this.component=e,this.route=n}};function uS(t,e,n){let r=t._root,i=e?e._root:null;return ki(r,i,n,[r.value])}function cS(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function qr(t,e){let n=Symbol(),r=e.get(t,n);return r===n?typeof t=="function"&&!sp(t)?t:e.get(t):r}function ki(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Br(e);return t.children.forEach(s=>{dS(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Bi(a,n.getContext(s),i)),i}function dS(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=fS(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new ya(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ki(t,e,a?a.children:null,r,i):ki(t,e,n,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new $r(a.outlet.component,s))}else s&&Bi(e,a,i),i.canActivateChecks.push(new ya(r)),o.component?ki(t,null,a?a.children:null,r,i):ki(t,null,n,r,i);return i}function fS(t,e,n){if(typeof n=="function")return n(t,e);switch(n){case"pathParamsChange":return!Qn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Qn(t.url,e.url)||!bt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!cd(t,e)||!bt(t.queryParams,e.queryParams);case"paramsChange":default:return!cd(t,e)}}function Bi(t,e,n){let r=Br(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?e?Bi(s,e.children.getContext(o),n):Bi(s,null,n):Bi(s,e,n)}),i.component?e&&e.outlet&&e.outlet.isActivated?n.canDeactivateChecks.push(new $r(e.outlet.component,i)):n.canDeactivateChecks.push(new $r(null,i)):n.canDeactivateChecks.push(new $r(null,i))}function Yi(t){return typeof t=="function"}function hS(t){return typeof t=="boolean"}function pS(t){return t&&Yi(t.canLoad)}function gS(t){return t&&Yi(t.canActivate)}function mS(t){return t&&Yi(t.canActivateChild)}function yS(t){return t&&Yi(t.canDeactivate)}function vS(t){return t&&Yi(t.canMatch)}function ky(t){return t instanceof Mt||t?.name==="EmptyError"}var sa=Symbol("INITIAL_VALUE");function Gr(){return je(t=>ko(t.map(e=>e.pipe(At(1),wl(sa)))).pipe(F(e=>{for(let n of e)if(n!==!0){if(n===sa)return sa;if(n===!1||n instanceof dn)return n}return!0}),Ve(e=>e!==sa),At(1)))}function DS(t,e){return de(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?x(z(v({},n),{guardsResult:!0})):wS(s,r,i,t).pipe(de(a=>a&&hS(a)?ES(r,o,t,e):x(a)),F(a=>z(v({},n),{guardsResult:a})))})}function wS(t,e,n,r){return oe(t).pipe(de(i=>SS(i.component,i.route,n,e,r)),ht(i=>i!==!0,!0))}function ES(t,e,n,r){return oe(e).pipe(Xt(i=>hr(bS(i.route.parent,r),CS(i.route,r),IS(t,i.path,n),_S(t,i.route,n))),ht(i=>i!==!0,!0))}function CS(t,e){return t!==null&&e&&e(new od(t)),x(!0)}function bS(t,e){return t!==null&&e&&e(new rd(t)),x(!0)}function _S(t,e,n){let r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||r.length===0)return x(!0);let i=r.map(o=>Lo(()=>{let s=Zi(e)??n,a=qr(o,s),l=gS(a)?a.canActivate(e,t):Ft(s,()=>a(e,t));return pn(l).pipe(ht())}));return x(i).pipe(Gr())}function IS(t,e,n){let r=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>cS(s)).filter(s=>s!==null).map(s=>Lo(()=>{let a=s.guards.map(l=>{let u=Zi(s.node)??n,c=qr(l,u),d=mS(c)?c.canActivateChild(r,t):Ft(u,()=>c(r,t));return pn(d).pipe(ht())});return x(a).pipe(Gr())}));return x(o).pipe(Gr())}function SS(t,e,n,r,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return x(!0);let s=o.map(a=>{let l=Zi(e)??i,u=qr(a,l),c=yS(u)?u.canDeactivate(t,e,n,r):Ft(l,()=>u(t,e,n,r));return pn(c).pipe(ht())});return x(s).pipe(Gr())}function TS(t,e,n,r){let i=e.canLoad;if(i===void 0||i.length===0)return x(!0);let o=i.map(s=>{let a=qr(s,t),l=pS(a)?a.canLoad(e,n):Ft(t,()=>a(e,n));return pn(l)});return x(o).pipe(Gr(),Ly(r))}function Ly(t){return cl(ge(e=>{if(zr(e))throw Oy(t,e)}),F(e=>e===!0))}function MS(t,e,n,r){let i=e.canMatch;if(!i||i.length===0)return x(!0);let o=i.map(s=>{let a=qr(s,t),l=vS(a)?a.canMatch(e,n):Ft(t,()=>a(e,n));return pn(l)});return x(o).pipe(Gr(),Ly(r))}var Qi=class{constructor(e){this.segmentGroup=e||null}},va=class extends Error{constructor(e){super(),this.urlTree=e}};function jr(t){return fr(new Qi(t))}function AS(t){return fr(new m(4e3,!1))}function NS(t){return fr(Py(!1,He.GuardRejected))}var hd=class{constructor(e,n){this.urlSerializer=e,this.urlTree=n}lineralizeSegments(e,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return x(r);if(i.numberOfChildren>1||!i.children[k])return AS(e.redirectTo);i=i.children[k]}}applyRedirectCommands(e,n,r){let i=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),e,r);if(n.startsWith("/"))throw new va(i);return i}applyRedirectCreateUrlTree(e,n,r,i){let o=this.createSegmentGroup(e,n.root,r,i);return new dn(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(e,n){let r={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(e,n,r,i){let o=this.createSegments(e,n.segments,r,i),s={};return Object.entries(n.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(e,l,r,i)}),new Y(o,s)}createSegments(e,n,r,i){return n.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,i):this.findOrReturn(o,r))}findPosParam(e,n,r){let i=r[n.path.substring(1)];if(!i)throw new m(4001,!1);return i}findOrReturn(e,n){let r=0;for(let i of n){if(i.path===e.path)return n.splice(r),i;r++}return e}},pd={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function xS(t,e,n,r,i){let o=_d(t,e,n);return o.matched?(r=sS(e,r),MS(r,e,n,i).pipe(F(s=>s===!0?o:v({},pd)))):x(o)}function _d(t,e,n){if(e.path==="**")return RS(n);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||n.length>0)?v({},pd):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(e.matcher||MI)(n,t,e);if(!i)return v({},pd);let o={};Object.entries(i.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=i.consumed.length>0?v(v({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function RS(t){return{matched:!0,parameters:t.length>0?my(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function py(t,e,n,r){return n.length>0&&FS(t,n,r)?{segmentGroup:new Y(e,PS(r,new Y(n,t.children))),slicedSegments:[]}:n.length===0&&kS(t,n,r)?{segmentGroup:new Y(t.segments,OS(t,n,r,t.children)),slicedSegments:n}:{segmentGroup:new Y(t.segments,t.children),slicedSegments:n}}function OS(t,e,n,r){let i={};for(let o of n)if(wa(t,e,o)&&!r[_t(o)]){let s=new Y([],{});i[_t(o)]=s}return v(v({},r),i)}function PS(t,e){let n={};n[k]=e;for(let r of t)if(r.path===""&&_t(r)!==k){let i=new Y([],{});n[_t(r)]=i}return n}function FS(t,e,n){return n.some(r=>wa(t,e,r)&&_t(r)!==k)}function kS(t,e,n){return n.some(r=>wa(t,e,r))}function wa(t,e,n){return(t.hasChildren()||e.length>0)&&n.pathMatch==="full"?!1:n.path===""}function LS(t,e,n,r){return _t(t)!==r&&(r===k||!wa(e,n,t))?!1:_d(e,t,n).matched}function VS(t,e,n){return e.length===0&&!t.children[n]}var gd=class{};function jS(t,e,n,r,i,o,s="emptyOnly"){return new md(t,e,n,r,i,s,o).recognize()}var BS=31,md=class{constructor(e,n,r,i,o,s,a){this.injector=e,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new hd(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new m(4002,`'${e.segmentGroup}'`)}recognize(){let e=py(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(F(n=>{let r=new qi([],Object.freeze({}),Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,{},k,this.rootComponentType,null,{}),i=new $e(r,n),o=new ma("",i),s=WI(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,k).pipe(Yt(r=>{if(r instanceof va)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Qi?this.noMatchError(r):r}))}inheritParamsAndData(e,n){let r=e.value,i=Dd(r,n,this.paramsInheritanceStrategy);r.params=Object.freeze(i.params),r.data=Object.freeze(i.data),e.children.forEach(o=>this.inheritParamsAndData(o,r))}processSegmentGroup(e,n,r,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(e,n,r):this.processSegment(e,n,r,r.segments,i,!0).pipe(F(o=>o instanceof $e?[o]:[]))}processChildren(e,n,r){let i=[];for(let o of Object.keys(r.children))o==="primary"?i.unshift(o):i.push(o);return oe(i).pipe(Xt(o=>{let s=r.children[o],a=aS(n,o);return this.processSegmentGroup(e,a,s,o)}),Dl((o,s)=>(o.push(...s),o)),Jt(null),vl(),de(o=>{if(o===null)return jr(r);let s=Vy(o);return US(s),x(s)}))}processSegment(e,n,r,i,o,s){return oe(n).pipe(Xt(a=>this.processSegmentAgainstRoute(a._injector??e,n,a,r,i,o,s).pipe(Yt(l=>{if(l instanceof Qi)return x(null);throw l}))),ht(a=>!!a),Yt(a=>{if(ky(a))return VS(r,i,o)?x(new gd):jr(r);throw a}))}processSegmentAgainstRoute(e,n,r,i,o,s,a){return LS(r,i,o,s)?r.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,r,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,n,r,o,s):jr(i):jr(i)}expandSegmentAgainstRouteUsingRedirect(e,n,r,i,o,s){let{matched:a,consumedSegments:l,positionalParamSegments:u,remainingSegments:c}=_d(n,i,o);if(!a)return jr(n);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>BS&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,u);return this.applyRedirects.lineralizeSegments(i,d).pipe(de(h=>this.processSegment(e,r,n,h.concat(c),s,!1)))}matchSegmentAgainstRoute(e,n,r,i,o){let s=xS(n,r,i,e,this.urlSerializer);return r.path==="**"&&(n.children={}),s.pipe(je(a=>a.matched?(e=r._injector??e,this.getChildConfig(e,r,i).pipe(je(({routes:l})=>{let u=r._loadedInjector??e,{consumedSegments:c,remainingSegments:d,parameters:h}=a,f=new qi(c,h,Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,HS(r),_t(r),r.component??r._loadedComponent??null,r,zS(r)),{segmentGroup:p,slicedSegments:g}=py(n,c,d,l);if(g.length===0&&p.hasChildren())return this.processChildren(u,l,p).pipe(F(D=>D===null?null:new $e(f,D)));if(l.length===0&&g.length===0)return x(new $e(f,[]));let y=_t(r)===o;return this.processSegment(u,l,p,g,y?k:o,!0).pipe(F(D=>new $e(f,D instanceof $e?[D]:[])))}))):jr(n)))}getChildConfig(e,n,r){return n.children?x({routes:n.children,injector:e}):n.loadChildren?n._loadedRoutes!==void 0?x({routes:n._loadedRoutes,injector:n._loadedInjector}):TS(e,n,r,this.urlSerializer).pipe(de(i=>i?this.configLoader.loadChildren(e,n).pipe(ge(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):NS(n))):x({routes:[],injector:e})}};function US(t){t.sort((e,n)=>e.value.outlet===k?-1:n.value.outlet===k?1:e.value.outlet.localeCompare(n.value.outlet))}function $S(t){let e=t.value.routeConfig;return e&&e.path===""}function Vy(t){let e=[],n=new Set;for(let r of t){if(!$S(r)){e.push(r);continue}let i=e.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),n.add(i)):e.push(r)}for(let r of n){let i=Vy(r.children);e.push(new $e(r.value,i))}return e.filter(r=>!n.has(r))}function HS(t){return t.data||{}}function zS(t){return t.resolve||{}}function GS(t,e,n,r,i,o){return de(s=>jS(t,e,n,r,s.extractedUrl,i,o).pipe(F(({state:a,tree:l})=>z(v({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function qS(t,e){return de(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return x(n);let o=new Set(i.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let u of jy(l))s.add(u);let a=0;return oe(s).pipe(Xt(l=>o.has(l)?WS(l,r,t,e):(l.data=Dd(l,l.parent,t).resolve,x(void 0))),ge(()=>a++),pr(1),de(l=>a===s.size?x(n):Le))})}function jy(t){let e=t.children.map(n=>jy(n)).flat();return[t,...e]}function WS(t,e,n,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!xy(i)&&(o[Ki]=i.title),QS(o,t,e,r).pipe(F(s=>(t._resolvedData=s,t.data=Dd(t,t.parent,n).resolve,null)))}function QS(t,e,n,r){let i=qc(t);if(i.length===0)return x({});let o={};return oe(i).pipe(de(s=>KS(t[s],e,n,r).pipe(ht(),ge(a=>{o[s]=a}))),pr(1),yl(o),Yt(s=>ky(s)?Le:fr(s)))}function KS(t,e,n,r){let i=Zi(e)??r,o=qr(t,i),s=o.resolve?o.resolve(e,n):Ft(i,()=>o(e,n));return pn(s)}function zc(t){return je(e=>{let n=t(e);return n?oe(n).pipe(F(()=>e)):x(e)})}var By=(()=>{let e=class e{buildTitle(r){let i,o=r.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===k);return i}getResolvedTitleForRoute(r){return r.data[Ki]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>w(ZS),providedIn:"root"});let t=e;return t})(),ZS=(()=>{let e=class e extends By{constructor(r){super(),this.title=r}updateTitle(r){let i=this.buildTitle(r);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(b(ly))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Id=new I("",{providedIn:"root",factory:()=>({})}),Sd=new I(""),YS=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=w(Ec)}loadComponent(r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return x(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=pn(r.loadComponent()).pipe(F(Uy),ge(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),bn(()=>{this.componentLoaders.delete(r)})),o=new dr(i,()=>new re).pipe(cr());return this.componentLoaders.set(r,o),o}loadChildren(r,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return x({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=XS(i,this.compiler,r,this.onLoadEndListener).pipe(bn(()=>{this.childrenLoaders.delete(i)})),a=new dr(s,()=>new re).pipe(cr());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function XS(t,e,n,r){return pn(t.loadChildren()).pipe(F(Uy),de(i=>i instanceof pi||Array.isArray(i)?x(i):oe(e.compileModuleAsync(i))),F(i=>{r&&r(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(n).injector,s=o.get(Sd,[],{optional:!0,self:!0}).flat()),{routes:s.map(bd),injector:o}}))}function JS(t){return t&&typeof t=="object"&&"default"in t}function Uy(t){return JS(t)?t.default:t}var Td=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>w(eT),providedIn:"root"});let t=e;return t})(),eT=(()=>{let e=class e{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,i){return r}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),tT=new I("");var nT=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new re,this.transitionAbortSubject=new re,this.configLoader=w(YS),this.environmentInjector=w(Re),this.urlSerializer=w(vd),this.rootContexts=w(Da),this.location=w(Mi),this.inputBindingEnabled=w(Cd,{optional:!0})!==null,this.titleStrategy=w(By),this.options=w(Id,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=w(Td),this.createViewTransition=w(tT,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>x(void 0),this.rootComponentType=null;let r=o=>this.events.next(new td(o)),i=o=>this.events.next(new nd(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=r}complete(){this.transitions?.complete()}handleNavigationRequest(r){let i=++this.navigationId;this.transitions?.next(z(v(v({},this.transitions.value),r),{id:i}))}setupNavigations(r,i,o){return this.transitions=new me({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ji,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ve(s=>s.id!==0),F(s=>z(v({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),je(s=>{let a=!1,l=!1;return x(s).pipe(je(u=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",He.SupersededByNewNavigation),Le;this.currentTransition=s,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?z(v({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!r.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=u.extras.onSameUrlNavigation??r.onSameUrlNavigation;if(!c&&d!=="reload"){let h="";return this.events.next(new Kn(u.id,this.urlSerializer.serialize(u.rawUrl),h,Zc.IgnoredSameUrlNavigation)),u.resolve(null),Le}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return x(u).pipe(je(h=>{let f=this.transitions?.getValue();return this.events.next(new $i(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?Le:Promise.resolve(h)}),GS(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,this.paramsInheritanceStrategy),ge(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=z(v({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let f=new ha(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:h,extractedUrl:f,source:p,restoredState:g,extras:y}=u,D=new $i(h,this.urlSerializer.serialize(f),p,g);this.events.next(D);let O=Ay(this.rootComponentType).snapshot;return this.currentTransition=s=z(v({},u),{targetSnapshot:O,urlAfterRedirects:f,extras:z(v({},y),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,x(s)}else{let h="";return this.events.next(new Kn(u.id,this.urlSerializer.serialize(u.extractedUrl),h,Zc.IgnoredByUrlHandlingStrategy)),u.resolve(null),Le}}),ge(u=>{let c=new Yc(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}),F(u=>(this.currentTransition=s=z(v({},u),{guards:uS(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),DS(this.environmentInjector,u=>this.events.next(u)),ge(u=>{if(s.guardsResult=u.guardsResult,zr(u.guardsResult))throw Oy(this.urlSerializer,u.guardsResult);let c=new Xc(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(c)}),Ve(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",He.GuardRejected),!1)),zc(u=>{if(u.guards.canActivateChecks.length)return x(u).pipe(ge(c=>{let d=new Jc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),je(c=>{let d=!1;return x(c).pipe(qS(this.paramsInheritanceStrategy,this.environmentInjector),ge({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(c,"",He.NoDataFromResolver)}}))}),ge(c=>{let d=new ed(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}))}),zc(u=>{let c=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(ge(f=>{d.component=f}),F(()=>{})));for(let f of d.children)h.push(...c(f));return h};return ko(c(u.targetSnapshot.root)).pipe(Jt(null),At(1))}),zc(()=>this.afterPreactivation()),je(()=>{let{currentSnapshot:u,targetSnapshot:c}=s,d=this.createViewTransition?.(this.environmentInjector,u.root,c.root);return d?oe(d).pipe(F(()=>s)):x(s)}),F(u=>{let c=tS(r.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=z(v({},u),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,s}),ge(()=>{this.events.next(new zi)}),lS(this.rootContexts,r.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),At(1),ge({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new fn(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),El(this.transitionAbortSubject.pipe(ge(u=>{throw u}))),bn(()=>{!a&&!l&&this.cancelNavigationTransition(s,"",He.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),Yt(u=>{if(l=!0,Fy(u))this.events.next(new hn(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),iS(u)?this.events.next(new Gi(u.url)):s.resolve(!1);else{this.events.next(new Hi(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0));try{s.resolve(r.errorHandler(u))}catch(c){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(c)}}return Le}))}))}cancelNavigationTransition(r,i,o){let s=new hn(r.id,this.urlSerializer.serialize(r.extractedUrl),i,o);this.events.next(s),r.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function rT(t){return t!==ji}var iT=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>w(oT),providedIn:"root"});let t=e;return t})(),yd=class{shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}},oT=(()=>{let e=class e extends yd{};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Ar(e)))(o||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),$y=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>w(sT),providedIn:"root"});let t=e;return t})(),sT=(()=>{let e=class e extends $y{constructor(){super(...arguments),this.location=w(Mi),this.urlSerializer=w(vd),this.options=w(Id,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=w(Td),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new dn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ay(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(r){return this.location.subscribe(i=>{i.type==="popstate"&&r(i.url,i.state)})}handleRouterEvent(r,i){if(r instanceof $i)this.stateMemento=this.createStateMemento();else if(r instanceof Kn)this.rawUrlTree=i.initialUrl;else if(r instanceof ha){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else r instanceof zi?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):r instanceof hn&&(r.code===He.GuardRejected||r.code===He.NoDataFromResolver)?this.restoreHistory(i):r instanceof Hi?this.restoreHistory(i,!0):r instanceof fn&&(this.lastSuccessfulId=r.id,this.currentPageId=this.browserPageId)}setBrowserUrl(r,i){let o=this.urlSerializer.serialize(r);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=v(v({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=v(v({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(r,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===r.finalUrl&&s===0&&(this.resetState(r),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(r),this.resetUrlToCurrentUrlTree())}resetState(r){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(r,i){return this.canceledNavigationResolution==="computed"?{navigationId:r,\u0275routerPageId:i}:{navigationId:r}}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Ar(e)))(o||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Li=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Li||{});function aT(t,e){t.events.pipe(Ve(n=>n instanceof fn||n instanceof hn||n instanceof Hi||n instanceof Kn),F(n=>n instanceof fn||n instanceof Kn?Li.COMPLETE:(n instanceof hn?n.code===He.Redirect||n.code===He.SupersededByNewNavigation:!1)?Li.REDIRECTING:Li.FAILED),Ve(n=>n!==Li.REDIRECTING),At(1)).subscribe(()=>{e()})}function lT(t){throw t}var uT={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},cT={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Xi=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=w($s),this.stateManager=w($y),this.options=w(Id,{optional:!0})||{},this.pendingTasks=w(Or),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=w(nT),this.urlSerializer=w(vd),this.location=w(Mi),this.urlHandlingStrategy=w(Td),this._events=new re,this.errorHandler=this.options.errorHandler||lT,this.navigated=!1,this.routeReuseStrategy=w(iT),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=w(Sd,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!w(Cd,{optional:!0}),this.eventsSubscription=new ce,this.isNgZoneEnabled=w(ee)instanceof ee&&ee.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:r=>{this.console.warn(r)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let r=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof hn&&i.code!==He.Redirect&&i.code!==He.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof fn)this.navigated=!0;else if(i instanceof Gi){let a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),l={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||rT(o.source)};this.scheduleNavigation(a,ji,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}fT(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(r)}resetRootComponentType(r){this.routerState.root.component=r,this.navigationTransitions.rootComponentType=r}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ji,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((r,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(r,"popstate",i)},0)})}navigateToSyncWithBrowser(r,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let u=v({},o);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(s.state=u)}let l=this.parseUrl(r);this.scheduleNavigation(l,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(r){this.config=r.map(bd),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(r,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:l,preserveFragment:u}=i,c=u?this.currentUrlTree.fragment:a,d=null;switch(l){case"merge":d=v(v({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let f=o?o.snapshot:this.routerState.snapshot.root;h=Iy(f)}catch{(typeof r[0]!="string"||!r[0].startsWith("/"))&&(r=[]),h=this.currentUrlTree.root}return Sy(h,r,d,c??null)}navigateByUrl(r,i={skipLocationChange:!1}){let o=zr(r)?r:this.parseUrl(r),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,ji,null,i)}navigate(r,i={skipLocationChange:!1}){return dT(r),this.navigateByUrl(this.createUrlTree(r,i),i)}serializeUrl(r){return this.urlSerializer.serialize(r)}parseUrl(r){try{return this.urlSerializer.parse(r)}catch{return this.urlSerializer.parse("/")}}isActive(r,i){let o;if(i===!0?o=v({},uT):i===!1?o=v({},cT):o=i,zr(r))return cy(this.currentUrlTree,r,o);let s=this.parseUrl(r);return cy(this.currentUrlTree,s,o)}removeEmptyProps(r){return Object.entries(r).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(r,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let l,u,c;a?(l=a.resolve,u=a.reject,c=a.promise):c=new Promise((h,f)=>{l=h,u=f});let d=this.pendingTasks.add();return aT(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:r,extras:s,resolve:l,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function dT(t){for(let e=0;e<t.length;e++)if(t[e]==null)throw new m(4008,!1)}function fT(t){return!(t instanceof zi)&&!(t instanceof Gi)}var Ea=(()=>{let e=class e{constructor(r,i,o,s,a,l){this.router=r,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=l,this.href=null,this.commands=null,this.onChanges=new re,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let u=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=r.events.subscribe(c=>{c instanceof fn&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(r){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",r)}ngOnChanges(r){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(r){r!=null?(this.commands=Array.isArray(r)?r:[r],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(r,i,o,s,a){let l=this.urlTree;if(l===null||this.isAnchorElement&&(r!==0||i||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(l,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let r=this.urlTree;this.href=r!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(r)):null;let i=this.href===null?null:Ng(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(r,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,r,i):o.removeAttribute(s,r)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(S(Xi),S(qt),Zu("tabindex"),S(jn),S(Lt),S(Lr))},e.\u0275dir=ye({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&Ie("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&Ut("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[Ce.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Fr],skipLocationChange:[Ce.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Fr],replaceUrl:[Ce.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Fr],routerLink:"routerLink"},standalone:!0,features:[yc,sn]});let t=e;return t})();var hT=new I("");function Hy(t,...e){return on([{provide:Sd,multi:!0,useValue:t},[],{provide:qt,useFactory:pT,deps:[Xi]},{provide:Hs,multi:!0,useFactory:gT},e.map(n=>n.\u0275providers)])}function pT(t){return t.routerState.root}function gT(){let t=w(wt);return e=>{let n=t.get(Ct);if(e!==n.components[0])return;let r=t.get(Xi),i=t.get(mT);t.get(yT)===1&&r.initialNavigation(),t.get(vT,null,V.Optional)?.setUpPreloading(),t.get(hT,null,V.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var mT=new I("",{factory:()=>new re}),yT=new I("",{providedIn:"root",factory:()=>1});var vT=new I("");var Ca=(()=>{let e=class e{constructor(r){this.http=r,this.apiURL="http://grupofmo.com:4000/api/productos/"}getProductos(){return this.http.get(this.apiURL)}eliminar(r){return this.http.delete(this.apiURL+r)}crearProducto(r){return this.http.post(this.apiURL,r)}obtenerProducto(r){return this.http.get(this.apiURL+r)}editarProducto(r,i){return this.http.put(this.apiURL+r,i)}};e.\u0275fac=function(i){return new(i||e)(b(Rc))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var P=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(P||{}),It="*";function Gy(t,e){return{type:P.Trigger,name:t,definitions:e,options:{}}}function Md(t,e=null){return{type:P.Animate,styles:e,timings:t}}function qy(t,e=null){return{type:P.Sequence,steps:t,options:e}}function Zn(t){return{type:P.Style,styles:t,offset:null}}function ba(t,e,n){return{type:P.State,name:t,styles:e,options:n}}function Ad(t,e,n=null){return{type:P.Transition,expr:t,animation:e,options:n}}var gn=class{constructor(e=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let n=e=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Ji=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let n=0,r=0,i=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==o&&this._onFinish()}),s.onDestroy(()=>{++r==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let n=e*this.totalTime;this.players.forEach(r=>{let i=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(i)})}getPosition(){let e=this.players.reduce((n,r)=>n===null||r.totalTime>n.totalTime?r:n,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let n=e=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},_a="!";var Wy=["toast-component",""];function wT(t,e){if(t&1){let n=_i();N(0,"button",5),Ie("click",function(){Di(n);let i=Se();return wi(i.remove())}),N(1,"span",6),q(2,"\xD7"),L()()}}function ET(t,e){if(t&1&&(Vs(0),q(1),js()),t&2){let n=Se(2);B(),Ht("[",n.duplicatesCount+1,"]")}}function CT(t,e){if(t&1&&(N(0,"div"),q(1),Pe(2,ET,2,1,"ng-container",4),L()),t&2){let n=Se();$t(n.options.titleClass),Ut("aria-label",n.title),B(),Ht(" ",n.title," "),B(),X("ngIf",n.duplicatesCount)}}function bT(t,e){if(t&1&&ve(0,"div",7),t&2){let n=Se();$t(n.options.messageClass),X("innerHTML",n.message,rc)}}function _T(t,e){if(t&1&&(N(0,"div",8),q(1),L()),t&2){let n=Se();$t(n.options.messageClass),Ut("aria-label",n.message),B(),Ht(" ",n.message," ")}}function IT(t,e){if(t&1&&(N(0,"div"),ve(1,"div",9),L()),t&2){let n=Se();B(),Bn("width",n.width()+"%")}}function ST(t,e){if(t&1){let n=_i();N(0,"button",5),Ie("click",function(){Di(n);let i=Se();return wi(i.remove())}),N(1,"span",6),q(2,"\xD7"),L()()}}function TT(t,e){if(t&1&&(Vs(0),q(1),js()),t&2){let n=Se(2);B(),Ht("[",n.duplicatesCount+1,"]")}}function MT(t,e){if(t&1&&(N(0,"div"),q(1),Pe(2,TT,2,1,"ng-container",4),L()),t&2){let n=Se();$t(n.options.titleClass),Ut("aria-label",n.title),B(),Ht(" ",n.title," "),B(),X("ngIf",n.duplicatesCount)}}function AT(t,e){if(t&1&&ve(0,"div",7),t&2){let n=Se();$t(n.options.messageClass),X("innerHTML",n.message,rc)}}function NT(t,e){if(t&1&&(N(0,"div",8),q(1),L()),t&2){let n=Se();$t(n.options.messageClass),Ut("aria-label",n.message),B(),Ht(" ",n.message," ")}}function xT(t,e){if(t&1&&(N(0,"div"),ve(1,"div",9),L()),t&2){let n=Se();B(),Bn("width",n.width()+"%")}}var Nd=class{_attachedHost;component;viewContainerRef;injector;constructor(e,n){this.component=e,this.injector=n}attach(e,n){return this._attachedHost=e,e.attach(this,n)}detach(){let e=this._attachedHost;if(e)return this._attachedHost=void 0,e.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},xd=class{_attachedPortal;_disposeFn;attach(e,n){return this._attachedPortal=e,this.attachComponentPortal(e,n)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(e){this._disposeFn=e}},Rd=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new re;_activate=new re;_manualClose=new re;_resetTimeout=new re;_countDuplicate=new re;constructor(e){this._overlayRef=e}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(e,n){e&&this._resetTimeout.next(),n&&this._countDuplicate.next(++this.duplicatesCount)}},Wr=class{toastId;config;message;title;toastType;toastRef;_onTap=new re;_onAction=new re;constructor(e,n,r,i,o,s){this.toastId=e,this.config=n,this.message=r,this.title=i,this.toastType=o,this.toastRef=s,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(e){this._onAction.next(e)}onAction(){return this._onAction.asObservable()}},Qy={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},Ky=new I("ToastConfig"),Od=class extends xd{_hostDomElement;_componentFactoryResolver;_appRef;constructor(e,n,r){super(),this._hostDomElement=e,this._componentFactoryResolver=n,this._appRef=r}attachComponentPortal(e,n){let r=this._componentFactoryResolver.resolveComponentFactory(e.component),i;return i=r.create(e.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),n?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(e){return e.hostView.rootNodes[0]}},RT=(()=>{class t{_document=w(ue);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let n=this._document.createElement("div");n.classList.add("overlay-container"),n.setAttribute("aria-live","polite"),this._document.body.appendChild(n),this._containerElement=n}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Pd=class{_portalHost;constructor(e){this._portalHost=e}attach(e,n=!0){return this._portalHost.attach(e,n)}detach(){return this._portalHost.detach()}},OT=(()=>{class t{_overlayContainer=w(RT);_componentFactoryResolver=w(Nr);_appRef=w(Ct);_document=w(ue);_paneElements=new Map;create(n,r){return this._createOverlayRef(this.getPaneElement(n,r))}getPaneElement(n="",r){return this._paneElements.get(r)||this._paneElements.set(r,{}),this._paneElements.get(r)[n]||(this._paneElements.get(r)[n]=this._createPaneElement(n,r)),this._paneElements.get(r)[n]}_createPaneElement(n,r){let i=this._document.createElement("div");return i.id="toast-container",i.classList.add(n),i.classList.add("toast-container"),r?r.getContainerElement().appendChild(i):this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalHost(n){return new Od(n,this._componentFactoryResolver,this._appRef)}_createOverlayRef(n){return new Pd(this._createPortalHost(n))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Qr=(()=>{class t{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(n,r,i,o,s){this.overlay=r,this._injector=i,this.sanitizer=o,this.ngZone=s,this.toastrConfig=v(v({},n.default),n.config),n.config.iconClasses&&(this.toastrConfig.iconClasses=v(v({},n.default.iconClasses),n.config.iconClasses))}show(n,r,i={},o=""){return this._preBuildNotification(o,n,r,this.applyConfig(i))}success(n,r,i={}){let o=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(o,n,r,this.applyConfig(i))}error(n,r,i={}){let o=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(o,n,r,this.applyConfig(i))}info(n,r,i={}){let o=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(o,n,r,this.applyConfig(i))}warning(n,r,i={}){let o=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(o,n,r,this.applyConfig(i))}clear(n){for(let r of this.toasts)if(n!==void 0){if(r.toastId===n){r.toastRef.manualClose();return}}else r.toastRef.manualClose()}remove(n){let r=this._findToast(n);if(!r||(r.activeToast.toastRef.close(),this.toasts.splice(r.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let i=this.toasts[this.currentlyActive].toastRef;i.isInactive()||(this.currentlyActive=this.currentlyActive+1,i.activate())}return!0}findDuplicate(n="",r="",i,o){let{includeTitleDuplicates:s}=this.toastrConfig;for(let a of this.toasts){let l=s&&a.title===n;if((!s||l)&&a.message===r)return a.toastRef.onDuplicate(i,o),a}return null}applyConfig(n={}){return v(v({},this.toastrConfig),n)}_findToast(n){for(let r=0;r<this.toasts.length;r++)if(this.toasts[r].toastId===n)return{index:r,activeToast:this.toasts[r]};return null}_preBuildNotification(n,r,i,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(n,r,i,o)):this._buildNotification(n,r,i,o)}_buildNotification(n,r,i,o){if(!o.toastComponent)throw new Error("toastComponent required");let s=this.findDuplicate(i,r,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||r)&&this.toastrConfig.preventDuplicates&&s!==null)return s;this.previousToastMessage=r;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let l=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let u=r;r&&o.enableHtml&&(u=this.sanitizer.sanitize(Ue.HTML,r));let c=new Rd(l),d=new Wr(this.index,o,u,i,n,c),h=[{provide:Wr,useValue:d}],f=wt.create({providers:h,parent:this._injector}),p=new Nd(o.toastComponent,f),g=l.attach(p,o.newestOnTop);c.componentInstance=g.instance;let y={toastId:this.index,title:i||"",message:r||"",toastRef:c,onShown:c.afterActivate(),onHidden:c.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:g};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{y.toastRef.activate()})),this.toasts.push(y),y}static \u0275fac=function(r){return new(r||t)(b(Ky),b(OT),b(wt),b(Bc),b(ee))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),PT=(()=>{class t{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=bi(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if(this.state().value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(n,r,i){this.toastrService=n,this.toastPackage=r,this.ngZone=i,this.message=r.message,this.title=r.title,this.options=r.config,this.originalTimeout=r.config.timeOut,this.toastClasses=`${r.toastType} ${r.config.toastClass}`,this.sub=r.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=r.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=r.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=r.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o}),this.state=bi({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(n=>z(v({},n),{value:"active"})),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let n=new Date().getTime(),r=this.hideTime-n;this.width.set(r/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(n=>z(v({},n),{value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state().value!=="removed"&&(clearTimeout(this.timeout),this.state.update(n=>z(v({},n),{value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state().value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state().value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state().value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(n,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(n),r)):this.timeout=setTimeout(()=>n(),r)}outsideInterval(n,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(n),r)):this.intervalId=setInterval(()=>n(),r)}runInsideAngular(n){this.ngZone?this.ngZone.run(()=>n()):n()}static \u0275fac=function(r){return new(r||t)(S(Qr),S(Wr),S(ee))};static \u0275cmp=at({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(r,i){r&1&&Ie("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),r&2&&(wc("@flyInOut",i._state),$t(i.toastClasses),Bn("display",i.displayStyle))},standalone:!0,features:[ct],attrs:Wy,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(r,i){r&1&&Pe(0,wT,3,0,"button",0)(1,CT,3,5,"div",1)(2,bT,1,3,"div",2)(3,_T,2,4,"div",3)(4,IT,2,2,"div",4),r&2&&(X("ngIf",i.options.closeButton),B(),X("ngIf",i.title),B(),X("ngIf",i.message&&i.options.enableHtml),B(),X("ngIf",i.message&&!i.options.enableHtml),B(),X("ngIf",i.options.progressBar))},dependencies:[zn],encapsulation:2,data:{animation:[Gy("flyInOut",[ba("inactive",Zn({opacity:0})),ba("active",Zn({opacity:1})),ba("removed",Zn({opacity:0})),Ad("inactive => active",Md("{{ easeTime }}ms {{ easing }}")),Ad("active => removed",Md("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return t})(),FT=z(v({},Qy),{toastComponent:PT}),Zy=(t={})=>on([{provide:Ky,useValue:{default:FT,config:t}}]);var kT=(()=>{class t{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=bi(-1);toastClasses="";get displayStyle(){return this.state()==="inactive"?"none":null}state=bi("inactive");timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(n,r,i){this.toastrService=n,this.toastPackage=r,this.appRef=i,this.message=r.message,this.title=r.title,this.options=r.config,this.originalTimeout=r.config.timeOut,this.toastClasses=`${r.toastType} ${r.config.toastClass}`,this.sub=r.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=r.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=r.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=r.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.set("active"),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let n=new Date().getTime(),r=this.hideTime-n;this.width.set(r/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.set("active"),this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.state.set("removed"),this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state()!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state()==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(r){return new(r||t)(S(Qr),S(Wr),S(Ct))};static \u0275cmp=at({type:t,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(r,i){r&1&&Ie("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),r&2&&($t(i.toastClasses),Bn("display",i.displayStyle))},standalone:!0,features:[ct],attrs:Wy,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(r,i){r&1&&Pe(0,ST,3,0,"button",0)(1,MT,3,5,"div",1)(2,AT,1,3,"div",2)(3,NT,2,4,"div",3)(4,xT,2,2,"div",4),r&2&&(X("ngIf",i.options.closeButton),B(),X("ngIf",i.title),B(),X("ngIf",i.message&&i.options.enableHtml),B(),X("ngIf",i.message&&!i.options.enableHtml),B(),X("ngIf",i.options.progressBar))},dependencies:[zn],encapsulation:2,changeDetection:0})}return t})(),Sk=z(v({},Qy),{toastComponent:kT});var LT=()=>["/crear-producto"],VT=t=>["/editar-producto",t];function jT(t,e){if(t&1){let n=_i();N(0,"tr")(1,"td"),q(2),L(),N(3,"td"),q(4),L(),N(5,"td"),q(6),L(),N(7,"td"),q(8),Us(9,"currency"),L(),N(10,"td"),ve(11,"i",12),N(12,"i",13),Ie("click",function(){let i=Di(n).$implicit,o=Se(2);return wi(o.eliminarProducto(i._id))}),L()()()}if(t&2){let n=e.$implicit;B(2),un(n.nombre),B(2),un(n.categoria),B(2),un(n.ubicacion),B(2),un(Dm(9,5,n.precio,"USD")),B(3),X("routerLink",gm(8,VT,n._id))}}function BT(t,e){if(t&1&&(N(0,"table",9)(1,"thead")(2,"tr")(3,"th",10),q(4,"Producto"),L(),N(5,"th",10),q(6,"Categor\xEDa"),L(),N(7,"th",10),q(8,"Ubicaci\xF3n"),L(),N(9,"th",10),q(10,"Precio"),L(),N(11,"th",10),q(12,"Acciones"),L()()(),N(13,"tbody"),Pe(14,jT,13,10,"tr",11),L()()),t&2){let n=Se();B(14),X("ngForOf",n.listaProductos)}}function UT(t,e){t&1&&(N(0,"h5",14),q(1,"No hay productos para mostrar"),L())}var Xy=(()=>{let e=class e{constructor(r,i){this.prodService=r,this.toastr=i,this.listaProductos=[]}ngOnInit(){this.obtenerProductos()}obtenerProductos(){this.prodService.getProductos().subscribe({next:r=>{console.log(r),this.listaProductos=r},error:r=>{console.log(r)},complete:()=>{console.log("Consulta correcta.")}})}eliminarProducto(r){this.prodService.eliminar(r).subscribe({next:i=>{this.toastr.error("\xA1Eliminado exitosamente!","DSI-APP"),this.obtenerProductos()},error:i=>{console.log(i)},complete:()=>{console.log("Eliminaci\xF3n correcta.")}})}};e.\u0275fac=function(i){return new(i||e)(S(Ca),S(Qr))},e.\u0275cmp=at({type:e,selectors:[["app-listar-productos"]],standalone:!0,features:[ct],decls:11,vars:4,consts:[[1,"container","mt-5"],[1,"row"],[1,"col-lg-8","offset-lg-2"],[1,"card"],[1,"card-body","text-center"],[1,"titulo"],[1,"btn","btn-success","float-end",3,"routerLink"],["class","table table-stripped mt-3",4,"ngIf"],["style","text-align: start; margin-top: 10px;",4,"ngIf"],[1,"table","table-stripped","mt-3"],["scope","col"],[4,"ngFor","ngForOf"],[1,"fas","fa-edit","text-primary",3,"routerLink"],[1,"fas","fa-trash","text-danger",3,"click"],[2,"text-align","start","margin-top","10px"]],template:function(i,o){i&1&&(N(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"span",5),q(6,"LISTADO DE PRODUCTOS"),L(),N(7,"button",6),q(8,"NUEVO"),L(),Pe(9,BT,15,1,"table",7)(10,UT,2,0,"h5",8),L()()()()()),i&2&&(B(7),X("routerLink",pm(3,LT)),B(2),X("ngIf",o.listaProductos.length>=0),B(),X("ngIf",o.listaProductos.length==0))},dependencies:[Gn,Um,zn,zm,Ea],styles:[".fas[_ngcontent-%COMP%]{cursor:pointer;margin-left:7px}"]});let t=e;return t})();var av=(()=>{let e=class e{constructor(r,i){this._renderer=r,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(r,i){this._renderer.setProperty(this._elementRef.nativeElement,r,i)}registerOnTouched(r){this.onTouched=r}registerOnChange(r){this.onChange=r}setDisabledState(r){this.setProperty("disabled",r)}};e.\u0275fac=function(i){return new(i||e)(S(jn),S(Lt))},e.\u0275dir=ye({type:e});let t=e;return t})(),lv=(()=>{let e=class e extends av{};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Ar(e)))(o||e)}})(),e.\u0275dir=ye({type:e,features:[Bt]});let t=e;return t})(),Vd=new I("");var $T={provide:Vd,useExisting:kn(()=>Oa),multi:!0};function HT(){let t=Gt()?Gt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var zT=new I(""),Oa=(()=>{let e=class e extends av{constructor(r,i,o){super(r,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!HT())}writeValue(r){let i=r??"";this.setProperty("value",i)}_handleInput(r){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(r)}_compositionStart(){this._composing=!0}_compositionEnd(r){this._composing=!1,this._compositionMode&&this.onChange(r)}};e.\u0275fac=function(i){return new(i||e)(S(jn),S(Lt),S(zT,8))},e.\u0275dir=ye({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(i,o){i&1&&Ie("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Ii([$T]),Bt]});let t=e;return t})();function mn(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function uv(t){return t!=null&&typeof t.length=="number"}var cv=new I(""),dv=new I(""),GT=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Yn=class{static min(e){return qT(e)}static max(e){return WT(e)}static required(e){return QT(e)}static requiredTrue(e){return KT(e)}static email(e){return ZT(e)}static minLength(e){return YT(e)}static maxLength(e){return XT(e)}static pattern(e){return JT(e)}static nullValidator(e){return fv(e)}static compose(e){return vv(e)}static composeAsync(e){return wv(e)}};function qT(t){return e=>{if(mn(e.value)||mn(t))return null;let n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}function WT(t){return e=>{if(mn(e.value)||mn(t))return null;let n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}function QT(t){return mn(t.value)?{required:!0}:null}function KT(t){return t.value===!0?null:{required:!0}}function ZT(t){return mn(t.value)||GT.test(t.value)?null:{email:!0}}function YT(t){return e=>mn(e.value)||!uv(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}function XT(t){return e=>uv(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function JT(t){if(!t)return fv;let e,n;return typeof t=="string"?(n="",t.charAt(0)!=="^"&&(n+="^"),n+=t,t.charAt(t.length-1)!=="$"&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),r=>{if(mn(r.value))return null;let i=r.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}function fv(t){return null}function hv(t){return t!=null}function pv(t){return $n(t)?oe(t):t}function gv(t){let e={};return t.forEach(n=>{e=n!=null?v(v({},e),n):e}),Object.keys(e).length===0?null:e}function mv(t,e){return e.map(n=>n(t))}function eM(t){return!t.validate}function yv(t){return t.map(e=>eM(e)?e:n=>e.validate(n))}function vv(t){if(!t)return null;let e=t.filter(hv);return e.length==0?null:function(n){return gv(mv(n,e))}}function Dv(t){return t!=null?vv(yv(t)):null}function wv(t){if(!t)return null;let e=t.filter(hv);return e.length==0?null:function(n){let r=mv(n,e).map(pv);return ml(r).pipe(F(gv))}}function Ev(t){return t!=null?wv(yv(t)):null}function Jy(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Cv(t){return t._rawValidators}function bv(t){return t._rawAsyncValidators}function Fd(t){return t?Array.isArray(t)?t:[t]:[]}function Ta(t,e){return Array.isArray(t)?t.includes(e):t===e}function ev(t,e){let n=Fd(e);return Fd(t).forEach(i=>{Ta(n,i)||n.push(i)}),n}function tv(t,e){return Fd(e).filter(n=>!Ta(t,n))}var Ma=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Dv(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Ev(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,n){return this.control?this.control.hasError(e,n):!1}getError(e,n){return this.control?this.control.getError(e,n):null}},Zr=class extends Ma{get formDirective(){return null}get path(){return null}},no=class extends Ma{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Aa=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},tM={"[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"},qk=z(v({},tM),{"[class.ng-submitted]":"isSubmitted"}),_v=(()=>{let e=class e extends Aa{constructor(r){super(r)}};e.\u0275fac=function(i){return new(i||e)(S(no,2))},e.\u0275dir=ye({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&Ls("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Bt]});let t=e;return t})(),Iv=(()=>{let e=class e extends Aa{constructor(r){super(r)}};e.\u0275fac=function(i){return new(i||e)(S(Zr,10))},e.\u0275dir=ye({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&Ls("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[Bt]});let t=e;return t})();var eo="VALID",Ia="INVALID",Kr="PENDING",to="DISABLED";function jd(t){return(Pa(t)?t.validators:t)||null}function nM(t){return Array.isArray(t)?Dv(t):t||null}function Bd(t,e){return(Pa(e)?e.asyncValidators:t)||null}function rM(t){return Array.isArray(t)?Ev(t):t||null}function Pa(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function Sv(t,e,n){let r=t.controls;if(!(e?Object.keys(r):r).length)throw new m(1e3,"");if(!r[n])throw new m(1001,"")}function Tv(t,e,n){t._forEachChild((r,i)=>{if(n[i]===void 0)throw new m(1002,"")})}var Yr=class{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===eo}get invalid(){return this.status===Ia}get pending(){return this.status==Kr}get disabled(){return this.status===to}get enabled(){return this.status!==to}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(ev(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(ev(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(tv(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(tv(e,this._rawAsyncValidators))}hasValidator(e){return Ta(this._rawValidators,e)}hasAsyncValidator(e){return Ta(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Kr,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=to,this.errors=null,this._forEachChild(r=>{r.disable(z(v({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(z(v({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=eo,this._forEachChild(r=>{r.enable(z(v({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(z(v({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===eo||this.status===Kr)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?to:eo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Kr,this._hasOwnPendingAsyncValidator=!0;let n=pv(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(n.emitEvent!==!1)}get(e){let n=e;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(e,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Ee,this.statusChanges=new Ee}_calculateStatus(){return this._allControlsDisabled()?to:this.errors?Ia:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Kr)?Kr:this._anyControlsHaveStatus(Ia)?Ia:eo}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Pa(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let n=this._parent&&this._parent.dirty;return!e&&!!n&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=nM(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=rM(this._rawAsyncValidators)}},Na=class extends Yr{constructor(e,n,r){super(jd(n),Bd(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,r={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){Tv(this,!0,e),Object.keys(e).forEach(r=>{Sv(this,!0,r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(Object.keys(e).forEach(r=>{let i=this.controls[r];i&&i.patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((r,i)=>{r.reset(e?e[i]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,r)=>(e[r]=n.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&e(r,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&e(r))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(n,r,i)=>((r.enabled||this.disabled)&&(n[i]=r.value),n))}_reduceChildren(e,n){let r=e;return this._forEachChild((i,o)=>{r=n(r,i,o)}),r}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var kd=class extends Na{};var Ud=new I("CallSetDisabledState",{providedIn:"root",factory:()=>Fa}),Fa="always";function iM(t,e){return[...e.path,t]}function nv(t,e,n=Fa){$d(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||n==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),sM(t,e),lM(t,e),aM(t,e),oM(t,e)}function rv(t,e,n=!0){let r=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(r),e.valueAccessor.registerOnTouched(r)),Ra(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function xa(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function oM(t,e){if(e.valueAccessor.setDisabledState){let n=r=>{e.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}function $d(t,e){let n=Cv(t);e.validator!==null?t.setValidators(Jy(n,e.validator)):typeof n=="function"&&t.setValidators([n]);let r=bv(t);e.asyncValidator!==null?t.setAsyncValidators(Jy(r,e.asyncValidator)):typeof r=="function"&&t.setAsyncValidators([r]);let i=()=>t.updateValueAndValidity();xa(e._rawValidators,i),xa(e._rawAsyncValidators,i)}function Ra(t,e){let n=!1;if(t!==null){if(e.validator!==null){let i=Cv(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(n=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=bv(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(n=!0,t.setAsyncValidators(o))}}}let r=()=>{};return xa(e._rawValidators,r),xa(e._rawAsyncValidators,r),n}function sM(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Mv(t,e)})}function aM(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Mv(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Mv(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function lM(t,e){let n=(r,i)=>{e.valueAccessor.writeValue(r),i&&e.viewToModelUpdate(r)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}function uM(t,e){t==null,$d(t,e)}function cM(t,e){return Ra(t,e)}function dM(t,e){if(!t.hasOwnProperty("model"))return!1;let n=t.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function fM(t){return Object.getPrototypeOf(t.constructor)===lv}function hM(t,e){t._syncPendingControls(),e.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function pM(t,e){if(!e)return null;Array.isArray(e);let n,r,i;return e.forEach(o=>{o.constructor===Oa?n=o:fM(o)?r=o:i=o}),i||r||n||null}function gM(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function iv(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function ov(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Sa=class extends Yr{constructor(e=null,n,r){super(jd(n),Bd(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Pa(n)&&(n.nonNullable||n.initialValueIsDefault)&&(ov(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){iv(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){iv(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){ov(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var mM=t=>t instanceof Sa;var Av=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=ye({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})(),yM={provide:Vd,useExisting:kn(()=>Hd),multi:!0},Hd=(()=>{let e=class e extends lv{writeValue(r){let i=r??"";this.setProperty("value",i)}registerOnChange(r){this.onChange=i=>{r(i==""?null:parseFloat(i))}}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Ar(e)))(o||e)}})(),e.\u0275dir=ye({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,o){i&1&&Ie("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[Ii([yM]),Bt]});let t=e;return t})();var Nv=new I("");var vM={provide:Zr,useExisting:kn(()=>zd)},zd=(()=>{let e=class e extends Zr{constructor(r,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ee,this._setValidators(r),this._setAsyncValidators(i)}ngOnChanges(r){this._checkFormPresent(),r.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ra(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(r){let i=this.form.get(r.path);return nv(i,r,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(r),i}getControl(r){return this.form.get(r.path)}removeControl(r){rv(r.control||null,r,!1),gM(this.directives,r)}addFormGroup(r){this._setUpFormContainer(r)}removeFormGroup(r){this._cleanUpFormContainer(r)}getFormGroup(r){return this.form.get(r.path)}addFormArray(r){this._setUpFormContainer(r)}removeFormArray(r){this._cleanUpFormContainer(r)}getFormArray(r){return this.form.get(r.path)}updateModel(r,i){this.form.get(r.path).setValue(i)}onSubmit(r){return this.submitted=!0,hM(this.form,this.directives),this.ngSubmit.emit(r),r?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(r=void 0){this.form.reset(r),this.submitted=!1}_updateDomValue(){this.directives.forEach(r=>{let i=r.control,o=this.form.get(r.path);i!==o&&(rv(i||null,r),mM(o)&&(nv(o,r,this.callSetDisabledState),r.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(r){let i=this.form.get(r.path);uM(i,r),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(r){if(this.form){let i=this.form.get(r.path);i&&cM(i,r)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){$d(this.form,this),this._oldForm&&Ra(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(i){return new(i||e)(S(cv,10),S(dv,10),S(Ud,8))},e.\u0275dir=ye({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&Ie("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[Ce.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ii([vM]),Bt,sn]});let t=e;return t})();var DM={provide:no,useExisting:kn(()=>Gd)},Gd=(()=>{let e=class e extends no{set isDisabled(r){}constructor(r,i,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new Ee,this._ngModelWarningSent=!1,this._parent=r,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=pM(this,s)}ngOnChanges(r){this._added||this._setUpControl(),dM(r,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(r){this.viewModel=r,this.update.emit(r)}get path(){return iM(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(S(Zr,13),S(cv,10),S(dv,10),S(Vd,10),S(Nv,8))},e.\u0275dir=ye({type:e,selectors:[["","formControlName",""]],inputs:{name:[Ce.None,"formControlName","name"],isDisabled:[Ce.None,"disabled","isDisabled"],model:[Ce.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ii([DM]),Bt,sn]});let t=e;return t})();var xv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=lt({type:e}),e.\u0275inj=st({});let t=e;return t})(),Ld=class extends Yr{constructor(e,n,r){super(jd(n),Bd(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,n={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(e,n,r={}){this.controls.splice(e,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(e,n={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(e,n,r={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),n&&(this.controls.splice(i,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,n={}){Tv(this,!1,e),e.forEach((r,i)=>{Sv(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(e.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e=[],n={}){this._forEachChild((r,i)=>{r.reset(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((n,r)=>r._syncPendingControls()?!0:n,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((n,r)=>{e(n,r)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(n=>n.enabled&&e(n))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function sv(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var Rv=(()=>{let e=class e{constructor(){this.useNonNullable=!1}get nonNullable(){let r=new e;return r.useNonNullable=!0,r}group(r,i=null){let o=this._reduceControls(r),s={};return sv(i)?s=i:i!==null&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new Na(o,s)}record(r,i=null){let o=this._reduceControls(r);return new kd(o,i)}control(r,i,o){let s={};return this.useNonNullable?(sv(i)?s=i:(s.validators=i,s.asyncValidators=o),new Sa(r,z(v({},s),{nonNullable:!0}))):new Sa(r,i,o)}array(r,i,o){let s=r.map(a=>this._createControl(a));return new Ld(s,i,o)}_reduceControls(r){let i={};return Object.keys(r).forEach(o=>{i[o]=this._createControl(r[o])}),i}_createControl(r){if(r instanceof Sa)return r;if(r instanceof Yr)return r;if(Array.isArray(r)){let i=r[0],o=r.length>1?r[1]:null,s=r.length>2?r[2]:null;return this.control(i,o,s)}else return this.control(r)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Ov=(()=>{let e=class e{static withConfig(r){return{ngModule:e,providers:[{provide:Ud,useValue:r.callSetDisabledState??Fa}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=lt({type:e}),e.\u0275inj=st({imports:[xv]});let t=e;return t})(),ka=(()=>{let e=class e{static withConfig(r){return{ngModule:e,providers:[{provide:Nv,useValue:r.warnOnNgModelWithFormControl??"always"},{provide:Ud,useValue:r.callSetDisabledState??Fa}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=lt({type:e}),e.\u0275inj=st({imports:[xv]});let t=e;return t})();function EM(t,e){t&1&&(N(0,"div",15)(1,"span"),q(2,"El nombre del producto "),N(3,"strong"),q(4,"es obligatorio."),L()()())}function CM(t,e){t&1&&(N(0,"div",15)(1,"span"),q(2,"La categor\xEDa "),N(3,"strong"),q(4,"es obligatoria."),L()()())}function bM(t,e){t&1&&(N(0,"div",15)(1,"span"),q(2,"La ubicaci\xF3n "),N(3,"strong"),q(4,"es obligatoria."),L()()())}function _M(t,e){t&1&&(N(0,"div",15)(1,"span"),q(2,"El precio del producto "),N(3,"strong"),q(4,"es obligatorio."),L()()())}var qd=(()=>{let e=class e{constructor(r,i,o,s,a){this.fb=r,this.rutas=i,this.toastr=o,this.prodService=s,this.rutaActiva=a,this.titulo="Crear Producto",this.productoForm=this.fb.group({nombre:["",Yn.required],categoria:["",Yn.required],ubicacion:["",Yn.required],precio:["",Yn.required]}),this.id=this.rutaActiva.snapshot.paramMap.get("id")}ngOnInit(){this.esEditar()}agregarProducto(){let r={nombre:this.productoForm.get("nombre")?.value,categoria:this.productoForm.get("categoria")?.value,ubicacion:this.productoForm.get("ubicacion")?.value,precio:this.productoForm.get("precio")?.value};this.id!==null?this.prodService.editarProducto(this.id,r).subscribe({next:i=>{this.toastr.info("\xA1Actualizaci\xF3n exitosa!","DSI-APP"),this.rutas.navigate(["/"])},error:i=>{console.log(i)},complete:()=>{console.log("Edici\xF3n correcta.")}}):this.prodService.crearProducto(r).subscribe({next:i=>{this.toastr.success("\xA1Guardado exitosamente!","DSI-APP"),this.rutas.navigate(["/"])},error:i=>{console.log(i),this.productoForm.reset()},complete:()=>{console.log("Creado correctamente.")}})}esEditar(){this.id!==null&&(this.titulo="Editar Producto",this.prodService.obtenerProducto(this.id).subscribe({next:r=>{this.productoForm.setValue({nombre:r.nombre,categoria:r.categoria,ubicacion:r.ubicacion,precio:r.precio})},error:r=>{console.log(r)},complete:()=>{console.log("Edici\xF3n correcta.")}}))}};e.\u0275fac=function(i){return new(i||e)(S(Rv),S(Xi),S(Qr),S(Ca),S(qt))},e.\u0275cmp=at({type:e,selectors:[["app-crear-producto"]],standalone:!0,features:[ct],decls:26,vars:9,consts:[[1,"container","mt-5"],[1,"row"],[1,"col-lg-6","offset-lg-3"],[1,"card"],[1,"card-body","text-center"],[1,"titulo"],[1,"mt-3",3,"ngSubmit","formGroup"],[1,"mb-3"],["type","text","formControlName","nombre","placeholder","Nombre Producto",1,"form-control","form-control-lg"],["class","text-danger",4,"ngIf"],["type","text","formControlName","categoria","placeholder","Nombre Categor\xEDa",1,"form-control","form-control-lg"],["type","text","formControlName","ubicacion","placeholder","Ubicaci\xF3n",1,"form-control","form-control-lg"],["type","number","formControlName","precio","placeholder","Precio",1,"form-control","form-control-lg"],["routerLink","['/']",1,"btn","btn-secondary","btn-lg","float-start"],["type","submit",1,"btn","btn-success","btn-lg","float-end",3,"disabled"],[1,"text-danger"]],template:function(i,o){if(i&1&&(N(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"span",5),q(6),Us(7,"uppercase"),L(),N(8,"form",6),Ie("ngSubmit",function(){return o.agregarProducto()}),N(9,"div",7),ve(10,"input",8),Pe(11,EM,5,0,"div",9),L(),N(12,"div",7),ve(13,"input",10),Pe(14,CM,5,0,"div",9),L(),N(15,"div",7),ve(16,"input",11),Pe(17,bM,5,0,"div",9),L(),N(18,"div",7),ve(19,"input",12),Pe(20,_M,5,0,"div",9),L(),N(21,"div",7)(22,"button",13),q(23,"REGRESAR"),L(),N(24,"button",14),q(25,"GUARDAR"),L()()()()()()()()),i&2){let s,a,l,u;B(6),un(vm(7,7,o.titulo)),B(2),X("formGroup",o.productoForm),B(3),X("ngIf",((s=o.productoForm.get("producto"))==null?null:s.hasError("required"))&&((s=o.productoForm.get("producto"))==null?null:s.touched)),B(3),X("ngIf",((a=o.productoForm.get("categoria"))==null?null:a.hasError("required"))&&((a=o.productoForm.get("categoria"))==null?null:a.touched)),B(3),X("ngIf",((l=o.productoForm.get("ubicacion"))==null?null:l.hasError("required"))&&((l=o.productoForm.get("ubicacion"))==null?null:l.touched)),B(3),X("ngIf",((u=o.productoForm.get("precio"))==null?null:u.hasError("required"))&&((u=o.productoForm.get("precio"))==null?null:u.touched)),B(4),X("disabled",o.productoForm.invalid)}},dependencies:[Gn,zn,Hm,Ea,Ov,Av,Oa,Hd,_v,Iv,ka,zd,Gd],styles:[".text-danger[_ngcontent-%COMP%]{text-align:start;margin-left:8px}"]});let t=e;return t})();var Pv=[{path:"",component:Xy},{path:"crear-producto",component:qd},{path:"editar-producto/:id",component:qd},{path:"**",redirectTo:"",pathMatch:"full"}];function Fv(t){return new m(3e3,!1)}function IM(){return new m(3100,!1)}function SM(){return new m(3101,!1)}function TM(t){return new m(3001,!1)}function MM(t){return new m(3003,!1)}function AM(t){return new m(3004,!1)}function NM(t,e){return new m(3005,!1)}function xM(){return new m(3006,!1)}function RM(){return new m(3007,!1)}function OM(t,e){return new m(3008,!1)}function PM(t){return new m(3002,!1)}function FM(t,e,n,r,i){return new m(3010,!1)}function kM(){return new m(3011,!1)}function LM(){return new m(3012,!1)}function VM(){return new m(3200,!1)}function jM(){return new m(3202,!1)}function BM(){return new m(3013,!1)}function UM(t){return new m(3014,!1)}function $M(t){return new m(3015,!1)}function HM(t){return new m(3016,!1)}function zM(t,e){return new m(3404,!1)}function GM(t){return new m(3502,!1)}function qM(t){return new m(3503,!1)}function WM(){return new m(3300,!1)}function QM(t){return new m(3504,!1)}function KM(t){return new m(3301,!1)}function ZM(t,e){return new m(3302,!1)}function YM(t){return new m(3303,!1)}function XM(t,e){return new m(3400,!1)}function JM(t){return new m(3401,!1)}function eA(t){return new m(3402,!1)}function tA(t,e){return new m(3505,!1)}function yn(t){switch(t.length){case 0:return new gn;case 1:return t[0];default:return new Ji(t)}}function Kv(t,e,n=new Map,r=new Map){let i=[],o=[],s=-1,a=null;if(e.forEach(l=>{let u=l.get("offset"),c=u==s,d=c&&a||new Map;l.forEach((h,f)=>{let p=f,g=h;if(f!=="offset")switch(p=t.normalizePropertyName(p,i),g){case _a:g=n.get(f);break;case It:g=r.get(f);break;default:g=t.normalizeStyleValue(f,p,g,i);break}d.set(p,g)}),c||o.push(d),a=d,s=u}),i.length)throw GM(i);return o}function mf(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&Wd(n,"start",t)));break;case"done":t.onDone(()=>r(n&&Wd(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&Wd(n,"destroy",t)));break}}function Wd(t,e,n){let r=n.totalTime,i=!!n.disabled,o=yf(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,r??t.totalTime,i),s=t._data;return s!=null&&(o._data=s),o}function yf(t,e,n,r,i="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function Ge(t,e,n){let r=t.get(e);return r||t.set(e,r=n),r}function kv(t){let e=t.indexOf(":"),n=t.substring(1,e),r=t.slice(e+1);return[n,r]}var nA=typeof document>"u"?null:document.documentElement;function vf(t){let e=t.parentNode||t.host||null;return e===nA?null:e}function rA(t){return t.substring(1,6)=="ebkit"}var Xn=null,Lv=!1;function iA(t){Xn||(Xn=oA()||{},Lv=Xn.style?"WebkitAppearance"in Xn.style:!1);let e=!0;return Xn.style&&!rA(t)&&(e=t in Xn.style,!e&&Lv&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Xn.style)),e}function oA(){return typeof document<"u"?document.body:null}function Zv(t,e){for(;e;){if(e===t)return!0;e=vf(e)}return!1}function Yv(t,e,n){if(n)return Array.from(t.querySelectorAll(e));let r=t.querySelector(e);return r?[r]:[]}var Df=(()=>{let e=class e{validateStyleProperty(r){return iA(r)}matchesElement(r,i){return!1}containsElement(r,i){return Zv(r,i)}getParentElement(r){return vf(r)}query(r,i,o){return Yv(r,i,o)}computeStyle(r,i,o){return o||""}animate(r,i,o,s,a,l=[],u){return new gn(o,s)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),bf=class bf{};bf.NOOP=new Df;var tr=bf,nr=class{};var sA=1e3,Xv="{{",aA="}}",Jv="ng-enter",Jd="ng-leave",La="ng-trigger",$a=".ng-trigger",Vv="ng-animating",ef=".ng-animating";function Wt(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:tf(parseFloat(e[1]),e[2])}function tf(t,e){switch(e){case"s":return t*sA;default:return t}}function Ha(t,e,n){return t.hasOwnProperty("duration")?t:lA(t,e,n)}function lA(t,e,n){let r=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,o=0,s="";if(typeof t=="string"){let a=t.match(r);if(a===null)return e.push(Fv(t)),{duration:0,delay:0,easing:""};i=tf(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(o=tf(parseFloat(l),a[4]));let u=a[5];u&&(s=u)}else i=t;if(!n){let a=!1,l=e.length;i<0&&(e.push(IM()),a=!0),o<0&&(e.push(SM()),a=!0),a&&e.splice(l,0,Fv(t))}return{duration:i,delay:o,easing:s}}function uA(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function St(t,e,n){e.forEach((r,i)=>{let o=wf(i);n&&!n.has(i)&&n.set(i,t.style[o]),t.style[o]=r})}function er(t,e){e.forEach((n,r)=>{let i=wf(r);t.style[i]=""})}function ro(t){return Array.isArray(t)?t.length==1?t[0]:qy(t):t}function cA(t,e,n){let r=e.params||{},i=eD(t);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||n.push(TM(o))})}var nf=new RegExp(`${Xv}\\s*(.+?)\\s*${aA}`,"g");function eD(t){let e=[];if(typeof t=="string"){let n;for(;n=nf.exec(t);)e.push(n[1]);nf.lastIndex=0}return e}function oo(t,e,n){let r=`${t}`,i=r.replace(nf,(o,s)=>{let a=e[s];return a==null&&(n.push(MM(s)),a=""),a.toString()});return i==r?t:i}var dA=/-+([a-z0-9])/g;function wf(t){return t.replace(dA,(...e)=>e[1].toUpperCase())}function fA(t,e){return t===0||e===0}function hA(t,e,n){if(n.size&&e.length){let r=e[0],i=[];if(n.forEach((o,s)=>{r.has(s)||i.push(s),r.set(s,o)}),i.length)for(let o=1;o<e.length;o++){let s=e[o];i.forEach(a=>s.set(a,Ef(t,a)))}}return e}function ze(t,e,n){switch(e.type){case P.Trigger:return t.visitTrigger(e,n);case P.State:return t.visitState(e,n);case P.Transition:return t.visitTransition(e,n);case P.Sequence:return t.visitSequence(e,n);case P.Group:return t.visitGroup(e,n);case P.Animate:return t.visitAnimate(e,n);case P.Keyframes:return t.visitKeyframes(e,n);case P.Style:return t.visitStyle(e,n);case P.Reference:return t.visitReference(e,n);case P.AnimateChild:return t.visitAnimateChild(e,n);case P.AnimateRef:return t.visitAnimateRef(e,n);case P.Query:return t.visitQuery(e,n);case P.Stagger:return t.visitStagger(e,n);default:throw AM(e.type)}}function Ef(t,e){return window.getComputedStyle(t)[e]}var pA=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),za=class extends nr{normalizePropertyName(e,n){return wf(e)}normalizeStyleValue(e,n,r,i){let o="",s=r.toString().trim();if(pA.has(n)&&r!==0&&r!=="0")if(typeof r=="number")o="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(NM(e,r))}return s+o}};var Ga="*";function gA(t,e){let n=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(r=>mA(r,n,e)):n.push(t),n}function mA(t,e,n){if(t[0]==":"){let l=yA(t,n);if(typeof l=="function"){e.push(l);return}t=l}let r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return n.push($M(t)),e;let i=r[1],o=r[2],s=r[3];e.push(jv(i,s));let a=i==Ga&&s==Ga;o[0]=="<"&&!a&&e.push(jv(s,i))}function yA(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r)<parseFloat(n);default:return e.push(HM(t)),"* => *"}}var Va=new Set(["true","1"]),ja=new Set(["false","0"]);function jv(t,e){let n=Va.has(t)||ja.has(t),r=Va.has(e)||ja.has(e);return(i,o)=>{let s=t==Ga||t==i,a=e==Ga||e==o;return!s&&n&&typeof i=="boolean"&&(s=i?Va.has(t):ja.has(t)),!a&&r&&typeof o=="boolean"&&(a=o?Va.has(e):ja.has(e)),s&&a}}var tD=":self",vA=new RegExp(`s*${tD}s*,?`,"g");function nD(t,e,n,r){return new rf(t).build(e,n,r)}var Bv="",rf=class{constructor(e){this._driver=e}build(e,n,r){let i=new of(n);return this._resetContextStyleTimingState(i),ze(this,ro(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=Bv,e.collectedStyles=new Map,e.collectedStyles.set(Bv,new Map),e.currentTime=0}visitTrigger(e,n){let r=n.queryCount=0,i=n.depCount=0,o=[],s=[];return e.name.charAt(0)=="@"&&n.errors.push(xM()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==P.State){let l=a,u=l.name;u.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,o.push(this.visitState(l,n))}),l.name=u}else if(a.type==P.Transition){let l=this.visitTransition(a,n);r+=l.queryCount,i+=l.depCount,s.push(l)}else n.errors.push(RM())}),{type:P.Trigger,name:e.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(e,n){let r=this.visitStyle(e.styles,n),i=e.options&&e.options.params||null;if(r.containsDynamicStyles){let o=new Set,s=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{eD(l).forEach(u=>{s.hasOwnProperty(u)||o.add(u)})})}),o.size&&n.errors.push(OM(e.name,[...o.values()]))}return{type:P.State,name:e.name,style:r,options:i?{params:i}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;let r=ze(this,ro(e.animation),n),i=gA(e.expr,n.errors);return{type:P.Transition,matchers:i,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:Jn(e.options)}}visitSequence(e,n){return{type:P.Sequence,steps:e.steps.map(r=>ze(this,r,n)),options:Jn(e.options)}}visitGroup(e,n){let r=n.currentTime,i=0,o=e.steps.map(s=>{n.currentTime=r;let a=ze(this,s,n);return i=Math.max(i,n.currentTime),a});return n.currentTime=i,{type:P.Group,steps:o,options:Jn(e.options)}}visitAnimate(e,n){let r=CA(e.timings,n.errors);n.currentAnimateTimings=r;let i,o=e.styles?e.styles:Zn({});if(o.type==P.Keyframes)i=this.visitKeyframes(o,n);else{let s=e.styles,a=!1;if(!s){a=!0;let u={};r.easing&&(u.easing=r.easing),s=Zn(u)}n.currentTime+=r.duration+r.delay;let l=this.visitStyle(s,n);l.isEmptyStep=a,i=l}return n.currentAnimateTimings=null,{type:P.Animate,timings:r,style:i,options:null}}visitStyle(e,n){let r=this._makeStyleAst(e,n);return this._validateStyleAst(r,n),r}_makeStyleAst(e,n){let r=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)typeof a=="string"?a===It?r.push(a):n.errors.push(PM(a)):r.push(new Map(Object.entries(a)));let o=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let l of a.values())if(l.toString().indexOf(Xv)>=0){o=!0;break}}}),{type:P.Style,styles:r,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,n){let r=n.currentAnimateTimings,i=n.currentTime,o=n.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let u=n.collectedStyles.get(n.currentQuerySelector),c=u.get(l),d=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(n.errors.push(FM(l,c.startTime,c.endTime,o,i)),d=!1),o=c.startTime),d&&u.set(l,{startTime:o,endTime:i}),n.options&&cA(a,n.options,n.errors)})})}visitKeyframes(e,n){let r={type:P.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(kM()),r;let i=1,o=0,s=[],a=!1,l=!1,u=0,c=e.steps.map(D=>{let O=this._makeStyleAst(D,n),U=O.offset!=null?O.offset:EA(O.styles),M=0;return U!=null&&(o++,M=O.offset=U),l=l||M<0||M>1,a=a||M<u,u=M,s.push(M),O});l&&n.errors.push(LM()),a&&n.errors.push(VM());let d=e.steps.length,h=0;o>0&&o<d?n.errors.push(jM()):o==0&&(h=i/(d-1));let f=d-1,p=n.currentTime,g=n.currentAnimateTimings,y=g.duration;return c.forEach((D,O)=>{let U=h>0?O==f?1:h*O:s[O],M=U*y;n.currentTime=p+g.delay+M,g.duration=M,this._validateStyleAst(D,n),D.offset=U,r.styles.push(D)}),r}visitReference(e,n){return{type:P.Reference,animation:ze(this,ro(e.animation),n),options:Jn(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:P.AnimateChild,options:Jn(e.options)}}visitAnimateRef(e,n){return{type:P.AnimateRef,animation:this.visitReference(e.animation,n),options:Jn(e.options)}}visitQuery(e,n){let r=n.currentQuerySelector,i=e.options||{};n.queryCount++,n.currentQuery=e;let[o,s]=DA(e.selector);n.currentQuerySelector=r.length?r+" "+o:o,Ge(n.collectedStyles,n.currentQuerySelector,new Map);let a=ze(this,ro(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:P.Query,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:Jn(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(BM());let r=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ha(e.timings,n.errors,!0);return{type:P.Stagger,animation:ze(this,ro(e.animation),n),timings:r,options:null}}};function DA(t){let e=!!t.split(/\s*,\s*/).find(n=>n==tD);return e&&(t=t.replace(vA,"")),t=t.replace(/@\*/g,$a).replace(/@\w+/g,n=>$a+"-"+n.slice(1)).replace(/:animating/g,ef),[t,e]}function wA(t){return t?v({},t):null}var of=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function EA(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(n=>{if(n instanceof Map&&n.has("offset")){let r=n;e=parseFloat(r.get("offset")),r.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}return e}function CA(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=Ha(t,e).duration;return Qd(o,0,"")}let n=t;if(n.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Qd(0,0,"");return o.dynamic=!0,o.strValue=n,o}let i=Ha(n,e);return Qd(i.duration,i.delay,i.easing)}function Jn(t){return t?(t=v({},t),t.params&&(t.params=wA(t.params))):t={},t}function Qd(t,e,n){return{duration:t,delay:e,easing:n}}function Cf(t,e,n,r,i,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var so=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,n){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...n)}has(e){return this._map.has(e)}clear(){this._map.clear()}},bA=1,_A=":enter",IA=new RegExp(_A,"g"),SA=":leave",TA=new RegExp(SA,"g");function rD(t,e,n,r,i,o=new Map,s=new Map,a,l,u=[]){return new sf().buildKeyframes(t,e,n,r,i,o,s,a,l,u)}var sf=class{buildKeyframes(e,n,r,i,o,s,a,l,u,c=[]){u=u||new so;let d=new af(e,n,u,i,o,c,[]);d.options=l;let h=l.delay?Wt(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),ze(this,r,d);let f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let g=f.length-1;g>=0;g--){let y=f[g];if(y.element===n){p=y;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[Cf(n,[],[],[],0,h,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){let r=n.subInstructions.get(n.element);if(r){let i=n.createSubContext(e.options),o=n.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&n.transformIntoNewTimeline(s)}n.previousNode=e}visitAnimateRef(e,n){let r=n.createSubContext(e.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],n,r),this.visitReference(e.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=e}_applyAnimationRefDelays(e,n,r){for(let i of e){let o=i?.delay;if(o){let s=typeof o=="number"?o:Wt(oo(o,i?.params??{},n.errors));r.delayNextStep(s)}}}_visitSubInstructions(e,n,r){let o=n.currentTimeline.currentTime,s=r.duration!=null?Wt(r.duration):null,a=r.delay!=null?Wt(r.delay):null;return s!==0&&e.forEach(l=>{let u=n.appendInstructionToTimeline(l,s,a);o=Math.max(o,u.duration+u.delay)}),o}visitReference(e,n){n.updateOptions(e.options,!0),ze(this,e.animation,n),n.previousNode=e}visitSequence(e,n){let r=n.subContextCount,i=n,o=e.options;if(o&&(o.params||o.delay)&&(i=n.createSubContext(o),i.transformIntoNewTimeline(),o.delay!=null)){i.previousNode.type==P.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=qa);let s=Wt(o.delay);i.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>ze(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){let r=[],i=n.currentTimeline.currentTime,o=e.options&&e.options.delay?Wt(e.options.delay):0;e.steps.forEach(s=>{let a=n.createSubContext(e.options);o&&a.delayNextStep(o),ze(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>n.currentTimeline.mergeTimelineCollectedStyles(s)),n.transformIntoNewTimeline(i),n.previousNode=e}_visitTiming(e,n){if(e.dynamic){let r=e.strValue,i=n.params?oo(r,n.params,n.errors):r;return Ha(i,n.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,n){let r=n.currentAnimateTimings=this._visitTiming(e.timings,n),i=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),i.snapshotCurrentStyles());let o=e.style;o.type==P.Keyframes?this.visitKeyframes(o,n):(n.incrementTime(r.duration),this.visitStyle(o,n),i.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){let r=n.currentTimeline,i=n.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();let o=i&&i.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(o):r.setStyles(e.styles,o,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){let r=n.currentAnimateTimings,i=n.currentTimeline.duration,o=r.duration,a=n.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(l=>{let u=l.offset||0;a.forwardTime(u*o),a.setStyles(l.styles,l.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(i+o),n.previousNode=e}visitQuery(e,n){let r=n.currentTimeline.currentTime,i=e.options||{},o=i.delay?Wt(i.delay):0;o&&(n.previousNode.type===P.Style||r==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=qa);let s=r,a=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,n.errors);n.currentQueryTotal=a.length;let l=null;a.forEach((u,c)=>{n.currentQueryIndex=c;let d=n.createSubContext(e.options,u);o&&d.delayNextStep(o),u===n.element&&(l=d.currentTimeline),ze(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let h=d.currentTimeline.currentTime;s=Math.max(s,h)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),l&&(n.currentTimeline.mergeTimelineCollectedStyles(l),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){let r=n.parentContext,i=n.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(n.currentQueryTotal-1),l=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime;break}let c=n.currentTimeline;l&&c.delayNextStep(l);let d=c.currentTime;ze(this,e.animation,n),n.previousNode=e,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}},qa={},af=class t{constructor(e,n,r,i,o,s,a,l){this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=qa,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Wa(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;let r=e,i=this.options;r.duration!=null&&(i.duration=Wt(r.duration)),r.delay!=null&&(i.delay=Wt(r.delay));let o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!n||!s.hasOwnProperty(a))&&(s[a]=oo(o[a],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let n=this.options.params;if(n){let r=e.params={};Object.keys(n).forEach(i=>{r[i]=n[i]})}}return e}createSubContext(e=null,n,r){let i=n||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=qa,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,r){let i={duration:n??e.duration,delay:this.currentTimeline.currentTime+(r??0)+e.delay,easing:""},o=new lf(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,r,i,o,s){let a=[];if(i&&a.push(this.element),e.length>0){e=e.replace(IA,"."+this._enterClassName),e=e.replace(TA,"."+this._leaveClassName);let l=r!=1,u=this._driver.query(this.element,e,l);r!==0&&(u=r<0?u.slice(u.length+r,u.length):u.slice(0,r)),a.push(...u)}return!o&&a.length==0&&s.push(UM(n)),a}},Wa=class t{constructor(e,n,r,i){this._driver=e,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let n=this._keyframes.size===1&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=bA,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,n){this._localTimelineStyles.set(e,n),this._globalTimelineStyles.set(e,n),this._styleSummary.set(e,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[n,r]of this._globalTimelineStyles)this._backFill.set(n,r||It),this._currentKeyframe.set(n,It);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,i){n&&this._previousKeyframe.set("easing",n);let o=i&&i.params||{},s=MA(e,this._globalTimelineStyles);for(let[a,l]of s){let u=oo(l,o,r);this._pendingStyles.set(a,u),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??It),this._updateStyle(a,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,n)=>{this._currentKeyframe.set(n,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,e)}))}snapshotCurrentStyles(){for(let[e,n]of this._localTimelineStyles)this._pendingStyles.set(e,n),this._updateStyle(e,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let n in this._currentKeyframe)e.push(n);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((n,r)=>{let i=this._styleSummary.get(r);(!i||n.time>i.time)&&this._updateStyle(r,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,n=new Set,r=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,l)=>{let u=new Map([...this._backFill,...a]);u.forEach((c,d)=>{c===_a?e.add(d):c===It&&n.add(d)}),r||u.set("offset",l/this.duration),i.push(u)});let o=[...e.values()],s=[...n.values()];if(r){let a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return Cf(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}},lf=class extends Wa{constructor(e,n,r,i,o,s,a=!1){super(e,n,s.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:n,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&n){let o=[],s=r+n,a=n/s,l=new Map(e[0]);l.set("offset",0),o.push(l);let u=new Map(e[0]);u.set("offset",Uv(a)),o.push(u);let c=e.length-1;for(let d=1;d<=c;d++){let h=new Map(e[d]),f=h.get("offset"),p=n+f*r;h.set("offset",Uv(p/s)),o.push(h)}r=s,n=0,i="",e=o}return Cf(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}};function Uv(t,e=3){let n=Math.pow(10,e-1);return Math.round(t*n)/n}function MA(t,e){let n=new Map,r;return t.forEach(i=>{if(i==="*"){r??=e.keys();for(let o of r)n.set(o,It)}else for(let[o,s]of i)n.set(o,s)}),n}function $v(t,e,n,r,i,o,s,a,l,u,c,d,h){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:h}}var Kd={},Qa=class{constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,i){return AA(this.ast.matchers,e,n,r,i)}buildStyles(e,n,r){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(n,r):new Map}build(e,n,r,i,o,s,a,l,u,c){let d=[],h=this.ast.options&&this.ast.options.params||Kd,f=a&&a.params||Kd,p=this.buildStyles(r,f,d),g=l&&l.params||Kd,y=this.buildStyles(i,g,d),D=new Set,O=new Map,U=new Map,M=i==="void",se={params:iD(g,h),delay:this.ast.options?.delay},te=c?[]:rD(e,n,this.ast.animation,o,s,p,y,se,u,d),ne=0;return te.forEach(fe=>{ne=Math.max(fe.duration+fe.delay,ne)}),d.length?$v(n,this._triggerName,r,i,M,p,y,[],[],O,U,ne,d):(te.forEach(fe=>{let Tt=fe.element,Qt=Ge(O,Tt,new Set);fe.preStyleProps.forEach(vn=>Qt.add(vn));let _f=Ge(U,Tt,new Set);fe.postStyleProps.forEach(vn=>_f.add(vn)),Tt!==n&&D.add(Tt)}),$v(n,this._triggerName,r,i,M,p,y,te,[...D.values()],O,U,ne))}};function AA(t,e,n,r,i){return t.some(o=>o(e,n,r,i))}function iD(t,e){let n=v({},e);return Object.entries(t).forEach(([r,i])=>{i!=null&&(n[r]=i)}),n}var uf=class{constructor(e,n,r){this.styles=e,this.defaultParams=n,this.normalizer=r}buildStyles(e,n){let r=new Map,i=iD(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=oo(s,i,n));let l=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,l,s,n),r.set(a,s)})}),r}};function NA(t,e,n){return new cf(t,e,n)}var cf=class{constructor(e,n,r){this.name=e,this.ast=n,this._normalizer=r,this.transitionFactories=[],this.states=new Map,n.states.forEach(i=>{let o=i.options&&i.options.params||{};this.states.set(i.name,new uf(i.style,o,r))}),Hv(this.states,"true","1"),Hv(this.states,"false","0"),n.transitions.forEach(i=>{this.transitionFactories.push(new Qa(e,i,this.states))}),this.fallbackTransition=xA(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,n,r,i){return this.transitionFactories.find(s=>s.match(e,n,r,i))||null}matchStyles(e,n,r){return this.fallbackTransition.buildStyles(e,n,r)}};function xA(t,e,n){let r=[(s,a)=>!0],i={type:P.Sequence,steps:[],options:null},o={type:P.Transition,animation:i,matchers:r,options:null,queryCount:0,depCount:0};return new Qa(t,o,e)}function Hv(t,e,n){t.has(e)?t.has(n)||t.set(n,t.get(e)):t.has(n)&&t.set(e,t.get(n))}var RA=new so,df=class{constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,n){let r=[],i=[],o=nD(this._driver,n,r,i);if(r.length)throw qM(r);i.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,n,r){let i=e.element,o=Kv(this._normalizer,e.keyframes,n,r);return this._driver.animate(i,o,e.duration,e.delay,e.easing,[],!0)}create(e,n,r={}){let i=[],o=this._animations.get(e),s,a=new Map;if(o?(s=rD(this._driver,n,o,Jv,Jd,new Map,new Map,r,RA,i),s.forEach(c=>{let d=Ge(a,c.element,new Map);c.postStyleProps.forEach(h=>d.set(h,null))})):(i.push(WM()),s=[]),i.length)throw QM(i);a.forEach((c,d)=>{c.forEach((h,f)=>{c.set(f,this._driver.computeStyle(d,f,It))})});let l=s.map(c=>{let d=a.get(c.element);return this._buildPlayer(c,new Map,d)}),u=yn(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let n=this._getPlayer(e);n.destroy(),this._playersById.delete(e);let r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(e){let n=this._playersById.get(e);if(!n)throw KM(e);return n}listen(e,n,r,i){let o=yf(n,"","","");return mf(this._getPlayer(e),r,o,i),()=>{}}command(e,n,r,i){if(r=="register"){this.register(e,i[0]);return}if(r=="create"){let s=i[0]||{};this.create(e,n,s);return}let o=this._getPlayer(e);switch(r){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},zv="ng-animate-queued",OA=".ng-animate-queued",Zd="ng-animate-disabled",PA=".ng-animate-disabled",FA="ng-star-inserted",kA=".ng-star-inserted",LA=[],oD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},VA={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},dt="__ng_removed",ao=class{get params(){return this.options.params}constructor(e,n=""){this.namespaceId=n;let r=e&&e.hasOwnProperty("value"),i=r?e.value:e;if(this.value=BA(i),r){let o=e,{value:s}=o,a=tl(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let n=e.params;if(n){let r=this.options.params;Object.keys(n).forEach(i=>{r[i]==null&&(r[i]=n[i])})}}},io="void",Yd=new ao(io),ff=class{constructor(e,n,r){this.id=e,this.hostElement=n,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Je(n,this._hostClassName)}listen(e,n,r,i){if(!this._triggers.has(n))throw ZM(r,n);if(r==null||r.length==0)throw YM(n);if(!UA(r))throw XM(r,n);let o=Ge(this._elementListeners,e,[]),s={name:n,phase:r,callback:i};o.push(s);let a=Ge(this._engine.statesByElement,e,new Map);return a.has(n)||(Je(e,La),Je(e,La+"-"+n),a.set(n,Yd)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(n)||a.delete(n)})}}register(e,n){return this._triggers.has(e)?!1:(this._triggers.set(e,n),!0)}_getTrigger(e){let n=this._triggers.get(e);if(!n)throw JM(e);return n}trigger(e,n,r,i=!0){let o=this._getTrigger(n),s=new lo(this.id,n,e),a=this._engine.statesByElement.get(e);a||(Je(e,La),Je(e,La+"-"+n),this._engine.statesByElement.set(e,a=new Map));let l=a.get(n),u=new ao(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a.set(n,u),l||(l=Yd),!(u.value===io)&&l.value===u.value){if(!zA(l.params,u.params)){let g=[],y=o.matchStyles(l.value,l.params,g),D=o.matchStyles(u.value,u.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{er(e,y),St(e,D)})}return}let h=Ge(this._engine.playersByElement,e,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==n&&g.queued&&g.destroy()});let f=o.matchTransition(l.value,u.value,e,u.params),p=!1;if(!f){if(!i)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:f,fromState:l,toState:u,player:s,isFallbackTransition:p}),p||(Je(e,zv),s.onStart(()=>{Xr(e,zv)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);let y=this._engine.playersByElement.get(e);if(y){let D=y.indexOf(s);D>=0&&y.splice(D,1)}}),this.players.push(s),h.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(n=>n.delete(e)),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let n=this._engine.playersByElement.get(e);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,n){let r=this._engine.driver.query(e,$a,!0);r.forEach(i=>{if(i[dt])return;let o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,n,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,n,r,i){let o=this._engine.statesByElement.get(e),s=new Map;if(o){let a=[];if(o.forEach((l,u)=>{if(s.set(u,l.value),this._triggers.has(u)){let c=this.trigger(e,u,io,i);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,s),r&&yn(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let n=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(n&&r){let i=new Set;n.forEach(o=>{let s=o.name;if(i.has(s))return;i.add(s);let l=this._triggers.get(s).fallbackTransition,u=r.get(s)||Yd,c=new ao(io),d=new lo(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:u,toState:c,player:d,isFallbackTransition:!0})})}}removeNode(e,n){let r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),this.triggerLeaveAnimation(e,n,!0))return;let i=!1;if(r.totalAnimations){let o=r.players.length?r.playersByQueriedElement.get(e):[];if(o&&o.length)i=!0;else{let s=e;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)r.markElementAsRemoved(this.id,e,!1,n);else{let o=e[dt];(!o||o===oD)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,n))}}insertNode(e,n){Je(e,this._hostClassName)}drainQueuedTransitions(e){let n=[];return this._queue.forEach(r=>{let i=r.player;if(i.destroyed)return;let o=r.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==r.triggerName){let l=yf(o,r.triggerName,r.fromState.value,r.toState.value);l._data=e,mf(r.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):n.push(r)}),this._queue=[],n.sort((r,i)=>{let o=r.transition.ast.depCount,s=i.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},hf=class{_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}constructor(e,n,r,i){this.bodyNode=e,this.driver=n,this._normalizer=r,this.scheduler=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,s)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,n){let r=new ff(e,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,n){let r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(n);for(;a;){let l=i.get(a);if(l){let u=r.indexOf(l);r.splice(u+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(e)}else r.push(e);return i.set(n,e),e}register(e,n){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,n)),r}registerTrigger(e,n,r){let i=this._namespaceLookup[e];i&&i.register(n,r)&&this.totalAnimations++}destroy(e,n){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let r=this._fetchNamespace(e);this.namespacesByHostElement.delete(r.hostElement);let i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(n),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let n=new Set,r=this.statesByElement.get(e);if(r){for(let i of r.values())if(i.namespaceId){let o=this._fetchNamespace(i.namespaceId);o&&n.add(o)}}return n}trigger(e,n,r,i){if(Ba(n)){let o=this._fetchNamespace(e);if(o)return o.trigger(n,r,i),!0}return!1}insertNode(e,n,r,i){if(!Ba(n))return;let o=n[dt];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(n);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(n,r)}i&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Je(e,Zd)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Xr(e,Zd))}removeNode(e,n,r){if(Ba(n)){this.scheduler?.notify();let i=e?this._fetchNamespace(e):null;i?i.removeNode(n,r):this.markElementAsRemoved(e,n,!1,r);let o=this.namespacesByHostElement.get(n);o&&o.id!==e&&o.removeNode(n,r)}else this._onRemovalComplete(n,r)}markElementAsRemoved(e,n,r,i,o){this.collectedLeaveElements.push(n),n[dt]={namespaceId:e,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,n,r,i,o){return Ba(n)?this._fetchNamespace(e).listen(n,r,i,o):()=>{}}_buildInstruction(e,n,r,i,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,i,e.fromState.options,e.toState.options,n,o)}destroyInnerAnimations(e){let n=this.driver.query(e,$a,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(e,ef,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){let n=this.playersByElement.get(e);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){let n=this.playersByQueriedElement.get(e);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return yn(this.players).onDone(()=>e());e()})}processLeaveNode(e){let n=e[dt];if(n&&n.setForRemoval){if(e[dt]=oD,n.namespaceId){this.destroyInnerAnimations(e);let r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}e.classList?.contains(Zd)&&this.markElementAsDisabled(e,!1),this.driver.query(e,PA,!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++){let i=this.collectedEnterElements[r];Je(i,FA)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let r=[];try{n=this._flushAnimations(r,e)}finally{for(let i=0;i<r.length;i++)r[i]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++){let i=this.collectedLeaveElements[r];this.processLeaveNode(i)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){let r=this._whenQuietFns;this._whenQuietFns=[],n.length?yn(n).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(e){throw eA(e)}_flushAnimations(e,n){let r=new so,i=[],o=new Map,s=[],a=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(E=>{c.add(E);let _=this.driver.query(E,OA,!0);for(let T=0;T<_.length;T++)c.add(_[T])});let d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=Wv(h,this.collectedEnterElements),p=new Map,g=0;f.forEach((E,_)=>{let T=Jv+g++;p.set(_,T),E.forEach(W=>Je(W,T))});let y=[],D=new Set,O=new Set;for(let E=0;E<this.collectedLeaveElements.length;E++){let _=this.collectedLeaveElements[E],T=_[dt];T&&T.setForRemoval&&(y.push(_),D.add(_),T.hasAnimation?this.driver.query(_,kA,!0).forEach(W=>D.add(W)):O.add(_))}let U=new Map,M=Wv(h,Array.from(D));M.forEach((E,_)=>{let T=Jd+g++;U.set(_,T),E.forEach(W=>Je(W,T))}),e.push(()=>{f.forEach((E,_)=>{let T=p.get(_);E.forEach(W=>Xr(W,T))}),M.forEach((E,_)=>{let T=U.get(_);E.forEach(W=>Xr(W,T))}),y.forEach(E=>{this.processLeaveNode(E)})});let se=[],te=[];for(let E=this._namespaceList.length-1;E>=0;E--)this._namespaceList[E].drainQueuedTransitions(n).forEach(T=>{let W=T.player,he=T.element;if(se.push(W),this.collectedEnterElements.length){let we=he[dt];if(we&&we.setForMove){if(we.previousTriggersValues&&we.previousTriggersValues.has(T.triggerName)){let Dn=we.previousTriggersValues.get(T.triggerName),qe=this.statesByElement.get(T.element);if(qe&&qe.has(T.triggerName)){let uo=qe.get(T.triggerName);uo.value=Dn,qe.set(T.triggerName,uo)}}W.destroy();return}}let ft=!d||!this.driver.containsElement(d,he),Fe=U.get(he),Kt=p.get(he),ie=this._buildInstruction(T,r,Kt,Fe,ft);if(ie.errors&&ie.errors.length){te.push(ie);return}if(ft){W.onStart(()=>er(he,ie.fromStyles)),W.onDestroy(()=>St(he,ie.toStyles)),i.push(W);return}if(T.isFallbackTransition){W.onStart(()=>er(he,ie.fromStyles)),W.onDestroy(()=>St(he,ie.toStyles)),i.push(W);return}let Tf=[];ie.timelines.forEach(we=>{we.stretchStartingKeyframe=!0,this.disabledNodes.has(we.element)||Tf.push(we)}),ie.timelines=Tf,r.append(he,ie.timelines);let fD={instruction:ie,player:W,element:he};s.push(fD),ie.queriedElements.forEach(we=>Ge(a,we,[]).push(W)),ie.preStyleProps.forEach((we,Dn)=>{if(we.size){let qe=l.get(Dn);qe||l.set(Dn,qe=new Set),we.forEach((uo,el)=>qe.add(el))}}),ie.postStyleProps.forEach((we,Dn)=>{let qe=u.get(Dn);qe||u.set(Dn,qe=new Set),we.forEach((uo,el)=>qe.add(el))})});if(te.length){let E=[];te.forEach(_=>{E.push(tA(_.triggerName,_.errors))}),se.forEach(_=>_.destroy()),this.reportError(E)}let ne=new Map,fe=new Map;s.forEach(E=>{let _=E.element;r.has(_)&&(fe.set(_,_),this._beforeAnimationBuild(E.player.namespaceId,E.instruction,ne))}),i.forEach(E=>{let _=E.element;this._getPreviousPlayers(_,!1,E.namespaceId,E.triggerName,null).forEach(W=>{Ge(ne,_,[]).push(W),W.destroy()})});let Tt=y.filter(E=>Qv(E,l,u)),Qt=new Map;qv(Qt,this.driver,O,u,It).forEach(E=>{Qv(E,l,u)&&Tt.push(E)});let vn=new Map;f.forEach((E,_)=>{qv(vn,this.driver,new Set(E),l,_a)}),Tt.forEach(E=>{let _=Qt.get(E),T=vn.get(E);Qt.set(E,new Map([..._?.entries()??[],...T?.entries()??[]]))});let Ja=[],If=[],Sf={};s.forEach(E=>{let{element:_,player:T,instruction:W}=E;if(r.has(_)){if(c.has(_)){T.onDestroy(()=>St(_,W.toStyles)),T.disabled=!0,T.overrideTotalTime(W.totalTime),i.push(T);return}let he=Sf;if(fe.size>1){let Fe=_,Kt=[];for(;Fe=Fe.parentNode;){let ie=fe.get(Fe);if(ie){he=ie;break}Kt.push(Fe)}Kt.forEach(ie=>fe.set(ie,he))}let ft=this._buildAnimation(T.namespaceId,W,ne,o,vn,Qt);if(T.setRealPlayer(ft),he===Sf)Ja.push(T);else{let Fe=this.playersByElement.get(he);Fe&&Fe.length&&(T.parentPlayer=yn(Fe)),i.push(T)}}else er(_,W.fromStyles),T.onDestroy(()=>St(_,W.toStyles)),If.push(T),c.has(_)&&i.push(T)}),If.forEach(E=>{let _=o.get(E.element);if(_&&_.length){let T=yn(_);E.setRealPlayer(T)}}),i.forEach(E=>{E.parentPlayer?E.syncPlayerEvents(E.parentPlayer):E.destroy()});for(let E=0;E<y.length;E++){let _=y[E],T=_[dt];if(Xr(_,Jd),T&&T.hasAnimation)continue;let W=[];if(a.size){let ft=a.get(_);ft&&ft.length&&W.push(...ft);let Fe=this.driver.query(_,ef,!0);for(let Kt=0;Kt<Fe.length;Kt++){let ie=a.get(Fe[Kt]);ie&&ie.length&&W.push(...ie)}}let he=W.filter(ft=>!ft.destroyed);he.length?$A(this,_,he):this.processLeaveNode(_)}return y.length=0,Ja.forEach(E=>{this.players.push(E),E.onDone(()=>{E.destroy();let _=this.players.indexOf(E);this.players.splice(_,1)}),E.play()}),Ja}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,r,i,o){let s=[];if(n){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let l=!o||o==io;a.forEach(u=>{u.queued||!l&&u.triggerName!=i||s.push(u)})}}return(r||i)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(e,n,r){let i=n.triggerName,o=n.element,s=n.isRemovalTransition?void 0:e,a=n.isRemovalTransition?void 0:i;for(let l of n.timelines){let u=l.element,c=u!==o,d=Ge(r,u,[]);this._getPreviousPlayers(u,c,s,a,n.toState).forEach(f=>{let p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}er(o,n.fromStyles)}_buildAnimation(e,n,r,i,o,s){let a=n.triggerName,l=n.element,u=[],c=new Set,d=new Set,h=n.timelines.map(p=>{let g=p.element;c.add(g);let y=g[dt];if(y&&y.removedBeforeQueried)return new gn(p.duration,p.delay);let D=g!==l,O=HA((r.get(g)||LA).map(ne=>ne.getRealPlayer())).filter(ne=>{let fe=ne;return fe.element?fe.element===g:!1}),U=o.get(g),M=s.get(g),se=Kv(this._normalizer,p.keyframes,U,M),te=this._buildPlayer(p,se,O);if(p.subTimeline&&i&&d.add(g),D){let ne=new lo(e,a,g);ne.setRealPlayer(te),u.push(ne)}return te});u.forEach(p=>{Ge(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>jA(this.playersByQueriedElement,p.element,p))}),c.forEach(p=>Je(p,Vv));let f=yn(h);return f.onDestroy(()=>{c.forEach(p=>Xr(p,Vv)),St(l,n.toStyles)}),d.forEach(p=>{Ge(i,p,[]).push(f)}),f}_buildPlayer(e,n,r){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,r):new gn(e.duration,e.delay)}},lo=class{constructor(e,n,r){this.namespaceId=e,this.triggerName=n,this.element=r,this._player=new gn,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((n,r)=>{n.forEach(i=>mf(e,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let n=this._player;n.triggerCallback&&e.onStart(()=>n.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,n){Ge(this._queuedCallbacks,e,[]).push(n)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let n=this._player;n.triggerCallback&&n.triggerCallback(e)}};function jA(t,e,n){let r=t.get(e);if(r){if(r.length){let i=r.indexOf(n);r.splice(i,1)}r.length==0&&t.delete(e)}return r}function BA(t){return t??null}function Ba(t){return t&&t.nodeType===1}function UA(t){return t=="start"||t=="done"}function Gv(t,e){let n=t.style.display;return t.style.display=e??"none",n}function qv(t,e,n,r,i){let o=[];n.forEach(l=>o.push(Gv(l)));let s=[];r.forEach((l,u)=>{let c=new Map;l.forEach(d=>{let h=e.computeStyle(u,d,i);c.set(d,h),(!h||h.length==0)&&(u[dt]=VA,s.push(u))}),t.set(u,c)});let a=0;return n.forEach(l=>Gv(l,o[a++])),s}function Wv(t,e){let n=new Map;if(t.forEach(a=>n.set(a,[])),e.length==0)return n;let r=1,i=new Set(e),o=new Map;function s(a){if(!a)return r;let l=o.get(a);if(l)return l;let u=a.parentNode;return n.has(u)?l=u:i.has(u)?l=r:l=s(u),o.set(a,l),l}return e.forEach(a=>{let l=s(a);l!==r&&n.get(l).push(a)}),n}function Je(t,e){t.classList?.add(e)}function Xr(t,e){t.classList?.remove(e)}function $A(t,e,n){yn(n).onDone(()=>t.processLeaveNode(e))}function HA(t){let e=[];return sD(t,e),e}function sD(t,e){for(let n=0;n<t.length;n++){let r=t[n];r instanceof Ji?sD(r.players,e):e.push(r)}}function zA(t,e){let n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let i=0;i<n.length;i++){let o=n[i];if(!e.hasOwnProperty(o)||t[o]!==e[o])return!1}return!0}function Qv(t,e,n){let r=n.get(t);if(!r)return!1;let i=e.get(t);return i?r.forEach(o=>i.add(o)):e.set(t,r),n.delete(t),!0}var ei=class{constructor(e,n,r,i){this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new hf(e.body,n,r,i),this._timelineEngine=new df(e.body,n,r),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s)}registerTrigger(e,n,r,i,o){let s=e+"-"+i,a=this._triggerCache[s];if(!a){let l=[],u=[],c=nD(this._driver,o,l,u);if(l.length)throw zM(i,l);u.length&&void 0,a=NA(i,c,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(n,i,a)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,r,i){this._transitionEngine.insertNode(e,n,r,i)}onRemove(e,n,r){this._transitionEngine.removeNode(e,n,r)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,r,i){if(r.charAt(0)=="@"){let[o,s]=kv(r),a=i;this._timelineEngine.command(o,n,s,a)}else this._transitionEngine.trigger(e,n,r,i)}listen(e,n,r,i,o){if(r.charAt(0)=="@"){let[s,a]=kv(r);return this._timelineEngine.listen(s,n,a,o)}return this._transitionEngine.listen(e,n,r,i,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function GA(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=Xd(e[0]),e.length>1&&(r=Xd(e[e.length-1]))):e instanceof Map&&(n=Xd(e)),n||r?new pf(t,n,r):null}var Jr=class Jr{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let i=Jr.initialStylesByElement.get(e);i||Jr.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&St(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(St(this._element,this._initialStyles),this._endStyles&&(St(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Jr.initialStylesByElement.delete(this._element),this._startStyles&&(er(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(er(this._element,this._endStyles),this._endStyles=null),St(this._element,this._initialStyles),this._state=3)}};Jr.initialStylesByElement=new WeakMap;var pf=Jr;function Xd(t){let e=null;return t.forEach((n,r)=>{qA(r)&&(e=e||new Map,e.set(r,n))}),e}function qA(t){return t==="display"||t==="position"}var Ka=class{constructor(e,n,r,i){this.element=e,this.keyframes=n,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let n=()=>this._onFinish();this.domPlayer.addEventListener("finish",n),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",n)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let n=[];return e.forEach(r=>{n.push(Object.fromEntries(r))}),n}_triggerWebAnimation(e,n,r){return e.animate(this._convertKeyframesToObject(n),r)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{i!=="offset"&&e.set(i,this._finished?r:Ef(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let n=e==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Za=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,n){return!1}containsElement(e,n){return Zv(e,n)}getParentElement(e){return vf(e)}query(e,n,r){return Yv(e,n,r)}computeStyle(e,n,r){return Ef(e,n)}animate(e,n,r,i,o,s=[]){let a=i==0?"both":"forwards",l={duration:r,delay:i,fill:a};o&&(l.easing=o);let u=new Map,c=s.filter(f=>f instanceof Ka);fA(r,i)&&c.forEach(f=>{f.currentSnapshot.forEach((p,g)=>u.set(g,p))});let d=uA(n).map(f=>new Map(f));d=hA(e,d,u);let h=GA(e,d);return new Ka(e,d,l,h)}};var Ua="@",aD="@.disabled",Ya=class{constructor(e,n,r,i){this.namespaceId=e,this.delegate=n,this.engine=r,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,n){this.delegate.appendChild(e,n),this.engine.onInsert(this.namespaceId,n,e,!1)}insertBefore(e,n,r,i=!0){this.delegate.insertBefore(e,n,r),this.engine.onInsert(this.namespaceId,n,e,i)}removeChild(e,n,r){this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,r,i){this.delegate.setAttribute(e,n,r,i)}removeAttribute(e,n,r){this.delegate.removeAttribute(e,n,r)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,r,i){this.delegate.setStyle(e,n,r,i)}removeStyle(e,n,r){this.delegate.removeStyle(e,n,r)}setProperty(e,n,r){n.charAt(0)==Ua&&n==aD?this.disableAnimations(e,!!r):this.delegate.setProperty(e,n,r)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,r){return this.delegate.listen(e,n,r)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}},gf=class extends Ya{constructor(e,n,r,i,o){super(n,r,i,o),this.factory=e,this.namespaceId=n}setProperty(e,n,r){n.charAt(0)==Ua?n.charAt(1)=="."&&n==aD?(r=r===void 0?!0:!!r,this.disableAnimations(e,r)):this.engine.process(this.namespaceId,e,n.slice(1),r):this.delegate.setProperty(e,n,r)}listen(e,n,r){if(n.charAt(0)==Ua){let i=WA(e),o=n.slice(1),s="";return o.charAt(0)!=Ua&&([o,s]=QA(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,r,a)})}return this.delegate.listen(e,n,r)}};function WA(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function QA(t){let e=t.indexOf("."),n=t.substring(0,e),r=t.slice(e+1);return[n,r]}var Xa=class{constructor(e,n,r){this.delegate=e,this.engine=n,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(i,o)=>{let s=o?.parentNode(i);s&&o.removeChild(s,i)}}createRenderer(e,n){let r="",i=this.delegate.createRenderer(e,n);if(!e||!n?.data?.animation){let u=this._rendererCache,c=u.get(i);if(!c){let d=()=>u.delete(i);c=new Ya(r,i,this.engine,d),u.set(i,c)}return c}let o=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=u=>{Array.isArray(u)?u.forEach(a):this.engine.registerTrigger(o,s,e,u.name,u)};return n.data.animation.forEach(a),new gf(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,r){if(e>=0&&e<this._microtaskId){this._zone.run(()=>n(r));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),i.push([n,r])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var ZA=(()=>{let e=class e extends ei{constructor(r,i,o){super(r,i,o,w(fi,{optional:!0}))}ngOnDestroy(){this.flush()}};e.\u0275fac=function(i){return new(i||e)(b(ue),b(tr),b(nr))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();function YA(){return new za}function XA(t,e,n){return new Xa(t,e,n)}var lD=[{provide:nr,useFactory:YA},{provide:ei,useClass:ZA},{provide:Pn,useFactory:XA,deps:[ra,ei,ee]}],JA=[{provide:tr,useFactory:()=>new Za},{provide:Ju,useValue:"BrowserAnimations"},...lD],pL=[{provide:tr,useClass:Df},{provide:Ju,useValue:"NoopAnimations"},...lD];function uD(){return xr("NgEagerAnimations"),[...JA]}var cD={providers:[Hy(Pv),uD(),Zy(),ey()]};var dD=(()=>{let e=class e{constructor(){this.title="cliente"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=at({type:e,selectors:[["app-root"]],standalone:!0,features:[ct],decls:1,vars:0,template:function(i,o){i&1&&ve(0,"router-outlet")},dependencies:[Gn,Ed,ka]});let t=e;return t})();ay(dD,cD).catch(t=>console.error(t));