diff --git a/browser/index.html b/browser/index.html index 87478cd..9ac6252 100644 --- a/browser/index.html +++ b/browser/index.html @@ -10,5 +10,5 @@ - + diff --git a/browser/main-DR2NF7SS.js b/browser/main-DR2NF7SS.js new file mode 100644 index 0000000..a21cb62 --- /dev/null +++ b/browser/main-DR2NF7SS.js @@ -0,0 +1,8 @@ +var Lg=Object.defineProperty,jg=Object.defineProperties;var Vg=Object.getOwnPropertyDescriptors;var ci=Object.getOwnPropertySymbols;var Ec=Object.prototype.hasOwnProperty,Cc=Object.prototype.propertyIsEnumerable;var wc=(t,e,n)=>e in t?Lg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,D=(t,e)=>{for(var n in e||={})Ec.call(e,n)&&wc(t,n,e[n]);if(ci)for(var n of ci(e))Cc.call(e,n)&&wc(t,n,e[n]);return t},J=(t,e)=>jg(t,Vg(e));var bc=(t,e)=>{var n={};for(var r in t)Ec.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&ci)for(var r of ci(t))e.indexOf(r)<0&&Cc.call(t,r)&&(n[r]=t[r]);return n};var Ic=null;var Ss=1,Sc=Symbol("SIGNAL");function O(t){let e=Ic;return Ic=t,e}var _c={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 $g(t){if(!(Ts(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Ss)){if(!t.producerMustRecompute(t)&&!_s(t)){t.dirty=!1,t.lastCleanEpoch=Ss;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Ss}}function Mc(t){return t&&(t.nextProducerIndex=0),O(t)}function Tc(t,e){if(O(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Ts(t))for(let n=t.nextProducerIndex;nt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function _s(t){di(t);for(let e=0;e0}function di(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Bg(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Ug(){throw new Error}var Hg=Ug;function xc(t){Hg=t}function _(t){return typeof t=="function"}function sn(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 fi=sn(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 Rt(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var Z=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))try{r()}catch(o){e=o instanceof fi?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Nc(o)}catch(s){e=e??[],s instanceof fi?e=[...e,...s.errors]:e.push(s)}}if(e)throw new fi(e)}}add(e){var n;if(e&&e!==this)if(this.closed)Nc(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)&&Rt(n,e)}remove(e){let{_finalizers:n}=this;n&&Rt(n,e),e instanceof t&&e._removeParent(this)}};Z.EMPTY=(()=>{let t=new Z;return t.closed=!0,t})();var As=Z.EMPTY;function hi(t){return t instanceof Z||t&&"closed"in t&&_(t.remove)&&_(t.add)&&_(t.unsubscribe)}function Nc(t){_(t)?t():t.unsubscribe()}var Fe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var an={setTimeout(t,e,...n){let{delegate:r}=an;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=an;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function pi(t){an.setTimeout(()=>{let{onUnhandledError:e}=Fe;if(e)e(t);else throw t})}function Xn(){}var Rc=xs("C",void 0,void 0);function Oc(t){return xs("E",void 0,t)}function Pc(t){return xs("N",t,void 0)}function xs(t,e,n){return{kind:t,value:e,error:n}}var Ot=null;function un(t){if(Fe.useDeprecatedSynchronousErrorHandling){let e=!Ot;if(e&&(Ot={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=Ot;if(Ot=null,n)throw r}}else t()}function Fc(t){Fe.useDeprecatedSynchronousErrorHandling&&Ot&&(Ot.errorThrown=!0,Ot.error=t)}var Pt=class extends Z{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,hi(e)&&e.add(this)):this.destination=Gg}static create(e,n,r){return new ln(e,n,r)}next(e){this.isStopped?Rs(Pc(e),this):this._next(e)}error(e){this.isStopped?Rs(Oc(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Rs(Rc,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()}}},zg=Function.prototype.bind;function Ns(t,e){return zg.call(t,e)}var Os=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){gi(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){gi(r)}else gi(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){gi(n)}}},ln=class extends Pt{constructor(e,n,r){super();let i;if(_(e)||!e)i={next:e??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&Fe.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Ns(e.next,o),error:e.error&&Ns(e.error,o),complete:e.complete&&Ns(e.complete,o)}):i=e}this.destination=new Os(i)}};function gi(t){Fe.useDeprecatedSynchronousErrorHandling?Fc(t):pi(t)}function qg(t){throw t}function Rs(t,e){let{onStoppedNotification:n}=Fe;n&&an.setTimeout(()=>n(t,e))}var Gg={closed:!0,next:Xn,error:qg,complete:Xn};var cn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ie(t){return t}function Ps(...t){return Fs(t)}function Fs(t){return t.length===0?Ie:t.length===1?t[0]:function(n){return t.reduce((r,i)=>i(r),n)}}var B=(()=>{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=Qg(n)?n:new ln(n,r,i);return un(()=>{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=kc(r),new r((i,o)=>{let s=new ln({next:a=>{try{n(a)}catch(u){o(u),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)}[cn](){return this}pipe(...n){return Fs(n)(this)}toPromise(n){return n=kc(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 kc(t){var e;return(e=t??Fe.Promise)!==null&&e!==void 0?e:Promise}function Wg(t){return t&&_(t.next)&&_(t.error)&&_(t.complete)}function Qg(t){return t&&t instanceof Pt||Wg(t)&&hi(t)}function ks(t){return _(t?.lift)}function L(t){return e=>{if(ks(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 j(t,e,n,r,i){return new Ls(t,e,n,r,i)}var Ls=class extends Pt{constructor(e,n,r,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){e.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){e.error(u)}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 dn(){return L((t,e)=>{let n=null;t._refCount++;let r=j(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 fn=class extends B{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,ks(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 Z;let n=this.getSubject();e.add(this.source.subscribe(j(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=Z.EMPTY)}return e}refCount(){return dn()(this)}};var Lc=sn(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ie=(()=>{class t extends B{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new mi(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Lc}next(n){un(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){un(()=>{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(){un(()=>{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?As:(this.currentObservers=null,o.push(n),new Z(()=>{this.currentObservers=null,Rt(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new B;return n.source=this,n}}return t.create=(e,n)=>new mi(e,n),t})(),mi=class extends ie{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:As}};var ae=class extends ie{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 js={now(){return(js.delegate||Date).now()},delegate:void 0};var yi=class extends Z{constructor(e,n){super()}schedule(e,n=0){return this}};var Jn={setInterval(t,e,...n){let{delegate:r}=Jn;return r?.setInterval?r.setInterval(t,e,...n):setInterval(t,e,...n)},clearInterval(t){let{delegate:e}=Jn;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var vi=class extends yi{constructor(e,n){super(e,n),this.scheduler=e,this.work=n,this.pending=!1}schedule(e,n=0){var r;if(this.closed)return this;this.state=e;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(o,this.id,n),this}requestAsyncId(e,n,r=0){return Jn.setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&Jn.clearInterval(n)}execute(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(e,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,n){let r=!1,i;try{this.work(e)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:e,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Rt(r,this),e!=null&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,super.unsubscribe()}}};var hn=class t{constructor(e,n=t.now){this.schedulerActionCtor=e,this.now=n}schedule(e,n=0,r){return new this.schedulerActionCtor(this,e).schedule(r,n)}};hn.now=js.now;var Di=class extends hn{constructor(e,n=hn.now){super(e,n),this.actions=[],this._active=!1}flush(e){let{actions:n}=this;if(this._active){n.push(e);return}let r;this._active=!0;do if(r=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,r){for(;e=n.shift();)e.unsubscribe();throw r}}};var Kg=new Di(vi),jc=Kg;var pe=new B(t=>t.complete());function wi(t){return t&&_(t.schedule)}function Vs(t){return t[t.length-1]}function Vc(t){return _(Vs(t))?t.pop():void 0}function Qe(t){return wi(Vs(t))?t.pop():void 0}function $c(t,e){return typeof Vs(t)=="number"?t.pop():e}function Uc(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{l(r.next(c))}catch(d){s(d)}}function u(c){try{l(r.throw(c))}catch(d){s(d)}}function l(c){c.done?o(c.value):i(c.value).then(a,u)}l((r=r.apply(t,e||[])).next())})}function Bc(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 Ft(t){return this instanceof Ft?(this.v=t,this):new Ft(t)}function Hc(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(E,C){o.push([f,g,E,C])>1||u(f,g)})},p&&(i[f]=p(i[f])))}function u(f,p){try{l(r[f](p))}catch(g){h(o[0][3],g)}}function l(f){f.value instanceof Ft?Promise.resolve(f.value.v).then(c,d):h(o[0][2],f)}function c(f){u("next",f)}function d(f){u("throw",f)}function h(f,p){f(p),o.shift(),o.length&&u(o[0][0],o[0][1])}}function zc(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 Bc=="function"?Bc(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,u){s=t[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(l){o({value:l,done:a})},s)}}var Ei=t=>t&&typeof t.length=="number"&&typeof t!="function";function Ci(t){return _(t?.then)}function bi(t){return _(t[cn])}function Ii(t){return Symbol.asyncIterator&&_(t?.[Symbol.asyncIterator])}function Si(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 Yg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var _i=Yg();function Mi(t){return _(t?.[_i])}function Ti(t){return Hc(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:i}=yield Ft(n.read());if(i)return yield Ft(void 0);yield yield Ft(r)}}finally{n.releaseLock()}})}function Ai(t){return _(t?.getReader)}function ee(t){if(t instanceof B)return t;if(t!=null){if(bi(t))return Zg(t);if(Ei(t))return Xg(t);if(Ci(t))return Jg(t);if(Ii(t))return qc(t);if(Mi(t))return em(t);if(Ai(t))return tm(t)}throw Si(t)}function Zg(t){return new B(e=>{let n=t[cn]();if(_(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Xg(t){return new B(e=>{for(let n=0;n{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,pi)})}function em(t){return new B(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function qc(t){return new B(e=>{nm(t,e).catch(n=>e.error(n))})}function tm(t){return qc(Ti(t))}function nm(t,e){var n,r,i,o;return Uc(this,void 0,void 0,function*(){try{for(n=zc(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 ye(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 xi(t,e=0){return L((n,r)=>{n.subscribe(j(r,i=>ye(r,t,()=>r.next(i),e),()=>ye(r,t,()=>r.complete(),e),i=>ye(r,t,()=>r.error(i),e)))})}function Ni(t,e=0){return L((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function Gc(t,e){return ee(t).pipe(Ni(e),xi(e))}function Wc(t,e){return ee(t).pipe(Ni(e),xi(e))}function Qc(t,e){return new B(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function Kc(t,e){return new B(n=>{let r;return ye(n,e,()=>{r=t[_i](),ye(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?.return)&&r.return()})}function Ri(t,e){if(!t)throw new Error("Iterable cannot be null");return new B(n=>{ye(n,e,()=>{let r=t[Symbol.asyncIterator]();ye(n,e,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Yc(t,e){return Ri(Ti(t),e)}function Zc(t,e){if(t!=null){if(bi(t))return Gc(t,e);if(Ei(t))return Qc(t,e);if(Ci(t))return Wc(t,e);if(Ii(t))return Ri(t,e);if(Mi(t))return Kc(t,e);if(Ai(t))return Yc(t,e)}throw Si(t)}function X(t,e){return e?Zc(t,e):ee(t)}function M(...t){let e=Qe(t);return X(t,e)}function pn(t,e){let n=_(t)?t:()=>t,r=i=>i.error(n());return new B(e?i=>e.schedule(r,0,i):r)}function $s(t){return!!t&&(t instanceof B||_(t.lift)&&_(t.subscribe))}var ot=sn(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Xc(t){return t instanceof Date&&!isNaN(t)}function P(t,e){return L((n,r)=>{let i=0;n.subscribe(j(r,o=>{r.next(t.call(e,o,i++))}))})}var{isArray:rm}=Array;function im(t,e){return rm(e)?t(...e):t(e)}function Jc(t){return P(e=>im(t,e))}var{isArray:om}=Array,{getPrototypeOf:sm,prototype:am,keys:um}=Object;function ed(t){if(t.length===1){let e=t[0];if(om(e))return{args:e,keys:null};if(lm(e)){let n=um(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function lm(t){return t&&typeof t=="object"&&sm(t)===am}function td(t,e){return t.reduce((n,r,i)=>(n[r]=e[i],n),{})}function Oi(...t){let e=Qe(t),n=Vc(t),{args:r,keys:i}=ed(t);if(r.length===0)return X([],e);let o=new B(cm(r,e,i?s=>td(i,s):Ie));return n?o.pipe(Jc(n)):o}function cm(t,e,n=Ie){return r=>{nd(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let u=0;u{let l=X(t[u],e),c=!1;l.subscribe(j(r,d=>{o[u]=d,c||(c=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function nd(t,e,n){t?ye(n,t,e):e()}function rd(t,e,n,r,i,o,s,a){let u=[],l=0,c=0,d=!1,h=()=>{d&&!u.length&&!l&&e.complete()},f=g=>l{o&&e.next(g),l++;let E=!1;ee(n(g,c++)).subscribe(j(e,C=>{i?.(C),o?f(C):e.next(C)},()=>{E=!0},void 0,()=>{if(E)try{for(l--;u.length&&lp(C)):p(C)}h()}catch(C){e.error(C)}}))};return t.subscribe(j(e,f,()=>{d=!0,h()})),()=>{a?.()}}function te(t,e,n=1/0){return _(e)?te((r,i)=>P((o,s)=>e(r,o,i,s))(ee(t(r,i))),n):(typeof e=="number"&&(n=e),L((r,i)=>rd(r,i,t,n)))}function er(t=1/0){return te(Ie,t)}function id(){return er(1)}function gn(...t){return id()(X(t,Qe(t)))}function Pi(t){return new B(e=>{ee(t()).subscribe(e)})}function Bs(t=0,e,n=jc){let r=-1;return e!=null&&(wi(e)?n=e:r=e),new B(i=>{let o=Xc(t)?+t-n.now():t;o<0&&(o=0);let s=0;return n.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function Us(...t){let e=Qe(t),n=$c(t,1/0),r=t;return r.length?r.length===1?ee(r[0]):er(n)(X(r,e)):pe}function ke(t,e){return L((n,r)=>{let i=0;n.subscribe(j(r,o=>t.call(e,o,i++)&&r.next(o)))})}function vt(t){return L((e,n)=>{let r=null,i=!1,o;r=e.subscribe(j(n,void 0,void 0,s=>{o=ee(t(s,vt(t)(e))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function od(t,e,n,r,i){return(o,s)=>{let a=n,u=e,l=0;o.subscribe(j(s,c=>{let d=l++;u=a?t(u,c,d):(a=!0,c),r&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function mn(t,e){return _(e)?te(t,e,1):te(t,1)}function Dt(t){return L((e,n)=>{let r=!1;e.subscribe(j(n,i=>{r=!0,n.next(i)},()=>{r||n.next(t),n.complete()}))})}function st(t){return t<=0?()=>pe:L((e,n)=>{let r=0;e.subscribe(j(n,i=>{++r<=t&&(n.next(i),t<=r&&n.complete())}))})}function Hs(t){return P(()=>t)}function Fi(t=dm){return L((e,n)=>{let r=!1;e.subscribe(j(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(t())))})}function dm(){return new ot}function tr(t){return L((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}function Ke(t,e){let n=arguments.length>=2;return r=>r.pipe(t?ke((i,o)=>t(i,o,r)):Ie,st(1),n?Dt(e):Fi(()=>new ot))}function yn(t){return t<=0?()=>pe:L((e,n)=>{let r=[];e.subscribe(j(n,i=>{r.push(i),t{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function zs(t,e){let n=arguments.length>=2;return r=>r.pipe(t?ke((i,o)=>t(i,o,r)):Ie,yn(1),n?Dt(e):Fi(()=>new ot))}function qs(t,e){return L(od(t,e,arguments.length>=2,!0))}function Gs(...t){let e=Qe(t);return L((n,r)=>{(e?gn(t,n,e):gn(t,n)).subscribe(r)})}function Le(t,e){return L((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(j(r,u=>{i?.unsubscribe();let l=0,c=o++;ee(t(u,c)).subscribe(i=j(r,d=>r.next(e?e(u,d,c,l++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Ws(t){return L((e,n)=>{ee(t).subscribe(j(n,()=>n.complete(),Xn)),!n.closed&&e.subscribe(n)})}function ue(t,e,n){let r=_(t)||e||n?{next:t,error:e,complete:n}:t;return r?L((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(j(o,u=>{var l;(l=r.next)===null||l===void 0||l.call(r,u),o.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),o.complete()},u=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,u),o.error(u)},()=>{var u,l;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):Ie}var qd="https://g.co/ng/security#xss",m=class extends Error{constructor(e,n){super(Ka(e,n)),this.code=e}};function Ka(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function co(t){return{toString:t}.toString()}var at=globalThis;function q(t){for(let e in t)if(t[e]===q)return e;throw Error("Could not find renamed property on target object.")}function De(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(De).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 sd(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var hm=q({__forward_ref__:q});function Gd(t){return t.__forward_ref__=Gd,t.toString=function(){return De(this())},t}function Ne(t){return Wd(t)?t():t}function Wd(t){return typeof t=="function"&&t.hasOwnProperty(hm)&&t.__forward_ref__===Gd}function S(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function wr(t){return{providers:t.providers||[],imports:t.imports||[]}}function fo(t){return ad(t,Kd)||ad(t,Yd)}function Qd(t){return fo(t)!==null}function ad(t,e){return t.hasOwnProperty(e)?t[e]:null}function pm(t){let e=t&&(t[Kd]||t[Yd]);return e||null}function ud(t){return t&&(t.hasOwnProperty(ld)||t.hasOwnProperty(gm))?t[ld]:null}var Kd=q({\u0275prov:q}),ld=q({\u0275inj:q}),Yd=q({ngInjectableDef:q}),gm=q({ngInjectorDef:q}),k=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=S({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Zd(t){return t&&!!t.\u0275providers}var mm=q({\u0275cmp:q}),ym=q({\u0275dir:q}),vm=q({\u0275pipe:q}),Dm=q({\u0275mod:q}),qi=q({\u0275fac:q}),nr=q({__NG_ELEMENT_ID__:q}),cd=q({__NG_ENV_ID__:q});function Ya(t){return typeof t=="string"?t:t==null?"":String(t)}function wm(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Ya(t)}function Em(t,e){let n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new m(-200,t)}function Za(t,e){throw new m(-201,!1)}var N=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}(N||{}),ua;function Xd(){return ua}function ve(t){let e=ua;return ua=t,e}function Jd(t,e,n){let r=fo(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&N.Optional)return null;if(e!==void 0)return e;Za(t,"Injector")}var Cm={},rr=Cm,bm="__NG_DI_FLAG__",Gi="ngTempTokenPath",Im="ngTokenPath",Sm=/\n/gm,_m="\u0275",dd="__source",En;function Mm(){return En}function wt(t){let e=En;return En=t,e}function Tm(t,e=N.Default){if(En===void 0)throw new m(-203,!1);return En===null?Jd(t,void 0,e):En.get(t,e&N.Optional?null:void 0,e)}function R(t,e=N.Default){return(Xd()||Tm)(Ne(t),e)}function v(t,e=N.Default){return R(t,ho(e))}function ho(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function la(t){let e=[];for(let n=0;n ");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):De(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(Sm,` + `)}`}function Lt(t,e){let n=t.hasOwnProperty(qi);return n?t[qi]:null}function Xa(t,e){t.forEach(n=>Array.isArray(n)?Xa(n,e):e(n))}function ef(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Wi(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Rm(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 Om(t,e,n){let r=Er(t,e);return r>=0?t[r|1]=n:(r=~r,Rm(t,r,e,n)),r}function Qs(t,e){let n=Er(t,e);if(n>=0)return t[n|1]}function Er(t,e){return Pm(t,e,1)}function Pm(t,e,n){let r=0,i=t.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=t[o<e?i=o:r=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[c+1].toLowerCase(),r&2&&l!==d){if(je(r))return!1;s=!0}}}}return je(r)||s}function je(t){return(t&1)===0}function Bm(t,e,n,r){if(e===null)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!je(s)&&(e+=hd(o,i),i=""),r=s,o=o||!je(r);n++}return i!==""&&(e+=hd(o,i)),e}function Gm(t){return t.map(qm).join(",")}function Wm(t){let e=[],n=[],r=1,i=2;for(;r{let e=df(t),n=J(D({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===rf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Xe.Emulated,styles:t.styles||Ve,_:null,schemas:t.schemas||null,tView:null,id:""});ff(n);let r=t.dependencies;return n.directiveDefs=gd(r,!1),n.pipeDefs=gd(r,!0),n.id=Ym(n),n})}function Qm(t){return jt(t)||af(t)}function Km(t){return t!==null}function Cr(t){return co(()=>({type:t.type,bootstrap:t.bootstrap||Ve,declarations:t.declarations||Ve,imports:t.imports||Ve,exports:t.exports||Ve,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function pd(t,e){if(t==null)return ir;let n={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r],o,s,a=Ct.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(n[o]=a!==Ct.None?[r,a]:r,e[o]=s):n[o]=r}return n}function tu(t){return co(()=>{let e=df(t);return ff(e),e})}function sf(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 jt(t){return t[mm]||null}function af(t){return t[ym]||null}function uf(t){return t[vm]||null}function lf(t){let e=jt(t)||af(t)||uf(t);return e!==null?e.standalone:!1}function cf(t,e){let n=t[Dm]||null;if(!n&&e===!0)throw new Error(`Type ${De(t)} does not have '\u0275mod' property.`);return n}function df(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||ir,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Ve,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:pd(t.inputs,e),outputs:pd(t.outputs),debugInfo:null}}function ff(t){t.features?.forEach(e=>e(t))}function gd(t,e){if(!t)return null;let n=e?uf:Qm;return()=>(typeof t=="function"?t():t).map(r=>n(r)).filter(Km)}function Ym(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 go(t){return{\u0275providers:t}}function Zm(...t){return{\u0275providers:hf(!0,t),\u0275fromNgModule:!0}}function hf(t,...e){let n=[],r=new Set,i,o=s=>{n.push(s)};return Xa(e,s=>{let a=s;da(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&pf(i,o),n}function pf(t,e){for(let n=0;n{e(o,r)})}}function da(t,e,n,r){if(t=Ne(t),!t)return!1;let i=null,o=ud(t),s=!o&&jt(t);if(!o&&!s){let u=t.ngModule;if(o=ud(u),o)i=u;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 u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of u)da(l,e,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let l;try{Xa(o.imports,c=>{da(c,e,n,r)&&(l||=[],l.push(c))})}finally{}l!==void 0&&pf(l,e)}if(!a){let l=Lt(i)||(()=>new i);e({provide:i,useFactory:l,deps:Ve},i),e({provide:nf,useValue:i,multi:!0},i),e({provide:In,useValue:()=>R(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let l=t;nu(u,c=>{e(c,l)})}}else return!1;return i!==t&&t.providers!==void 0}function nu(t,e){for(let n of t)Zd(n)&&(n=n.\u0275providers),Array.isArray(n)?nu(n,e):e(n)}var Xm=q({provide:String,useValue:q});function gf(t){return t!==null&&typeof t=="object"&&Xm in t}function Jm(t){return!!(t&&t.useExisting)}function ey(t){return!!(t&&t.useFactory)}function fa(t){return typeof t=="function"}var mo=new k(""),$i={},ty={},Ks;function ru(){return Ks===void 0&&(Ks=new Qi),Ks}var Re=class{},or=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,pa(e,s=>this.processProvider(s)),this.records.set(tf,vn(void 0,this)),i.has("environment")&&this.records.set(Re,vn(void 0,this));let o=this.records.get(mo);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(nf,Ve,N.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=O(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(),O(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let n=wt(this),r=ve(void 0),i;try{return e()}finally{wt(n),ve(r)}}get(e,n=rr,r=N.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(cd))return e[cd](this);r=ho(r);let i,o=wt(this),s=ve(void 0);try{if(!(r&N.SkipSelf)){let u=this.records.get(e);if(u===void 0){let l=ay(e)&&fo(e);l&&this.injectableDefInScope(l)?u=vn(ha(e),$i):u=null,this.records.set(e,u)}if(u!=null)return this.hydrate(e,u)}let a=r&N.Self?ru():this.parent;return n=r&N.Optional&&n===rr?null:n,a.get(e,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Gi]=a[Gi]||[]).unshift(De(e)),o)throw a;return xm(a,e,"R3InjectorError",this.source)}else throw a}finally{ve(s),wt(o)}}resolveInjectorInitializers(){let e=O(null),n=wt(this),r=ve(void 0),i;try{let o=this.get(In,Ve,N.Self);for(let s of o)s()}finally{wt(n),ve(r),O(e)}}toString(){let e=[],n=this.records;for(let r of n.keys())e.push(De(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new m(205,!1)}processProvider(e){e=Ne(e);let n=fa(e)?e:Ne(e&&e.provide),r=ry(e);if(!fa(e)&&e.multi===!0){let i=this.records.get(n);i||(i=vn(void 0,$i,!0),i.factory=()=>la(i.multi),this.records.set(n,i)),n=e,i.multi.push(e)}this.records.set(n,r)}hydrate(e,n){let r=O(null);try{return n.value===$i&&(n.value=ty,n.value=n.factory()),typeof n.value=="object"&&n.value&&sy(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{O(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=Ne(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 ha(t){let e=fo(t),n=e!==null?e.factory:Lt(t);if(n!==null)return n;if(t instanceof k)throw new m(204,!1);if(t instanceof Function)return ny(t);throw new m(204,!1)}function ny(t){if(t.length>0)throw new m(204,!1);let n=pm(t);return n!==null?()=>n.factory(t):()=>new t}function ry(t){if(gf(t))return vn(void 0,t.useValue);{let e=iy(t);return vn(e,$i)}}function iy(t,e,n){let r;if(fa(t)){let i=Ne(t);return Lt(i)||ha(i)}else if(gf(t))r=()=>Ne(t.useValue);else if(ey(t))r=()=>t.useFactory(...la(t.deps||[]));else if(Jm(t))r=()=>R(Ne(t.useExisting));else{let i=Ne(t&&(t.useClass||t.provide));if(oy(t))r=()=>new i(...la(t.deps));else return Lt(i)||ha(i)}return r}function vn(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function oy(t){return!!t.deps}function sy(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function ay(t){return typeof t=="function"||typeof t=="object"&&t instanceof k}function pa(t,e){for(let n of t)Array.isArray(n)?pa(n,e):n&&Zd(n)?pa(n.\u0275providers,e):e(n)}function qt(t,e){t instanceof or&&t.assertNotDestroyed();let n,r=wt(t),i=ve(void 0);try{return e()}finally{wt(r),ve(i)}}function uy(){return Xd()!==void 0||Mm()!=null}function ly(t){return typeof t=="function"}var ct=0,x=1,I=2,fe=3,Be=4,ze=5,sr=6,ar=7,de=8,Sn=9,Ue=10,me=11,ur=12,md=13,An=14,He=15,yo=16,Dn=17,_n=18,vo=19,mf=20,Et=21,Ys=22,Vt=23,Se=25,yf=1;var $t=7,Ki=8,Yi=9,ge=10,iu=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(iu||{});function Cn(t){return Array.isArray(t)&&typeof t[yf]=="object"}function dt(t){return Array.isArray(t)&&t[yf]===!0}function vf(t){return(t.flags&4)!==0}function Do(t){return t.componentOffset>-1}function ou(t){return(t.flags&1)===1}function br(t){return!!t.template}function cy(t){return(t[I]&512)!==0}var ga=class{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Df(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}function wo(){return wf}function wf(t){return t.type.prototype.ngOnChanges&&(t.setInput=fy),dy}wo.ngInherit=!0;function dy(){let t=Cf(this),e=t?.current;if(e){let n=t.previous;if(n===ir)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function fy(t,e,n,r,i){let o=this.declaredInputs[r],s=Cf(t)||hy(t,{previous:ir,current:null}),a=s.current||(s.current={}),u=s.previous,l=u[o];a[o]=new ga(l&&l.currentValue,n,u===ir),Df(t,e,i,n)}var Ef="__ngSimpleChanges__";function Cf(t){return t[Ef]||null}function hy(t,e){return t[Ef]=e}var yd=null;var Ye=function(t,e,n){yd?.(t,e,n)},py="svg",gy="math",my=!1;function yy(){return my}function Je(t){for(;Array.isArray(t);)t=t[ct];return t}function bf(t,e){return Je(e[t])}function qe(t,e){return Je(e[t.index])}function su(t,e){return t.data[e]}function vy(t,e){return t[e]}function Gt(t,e){let n=e[t];return Cn(n)?n:n[ct]}function au(t){return(t[I]&128)===128}function Dy(t){return dt(t[fe])}function Zi(t,e){return e==null?null:t[e]}function If(t){t[Dn]=0}function wy(t){t[I]&1024||(t[I]|=1024,au(t)&&lr(t))}function Ey(t,e){for(;t>0;)e=e[An],t--;return e}function uu(t){return!!(t[I]&9216||t[Vt]?.dirty)}function ma(t){t[Ue].changeDetectionScheduler?.notify(1),uu(t)?lr(t):t[I]&64&&(yy()?(t[I]|=1024,lr(t)):t[Ue].changeDetectionScheduler?.notify())}function lr(t){t[Ue].changeDetectionScheduler?.notify();let e=cr(t);for(;e!==null&&!(e[I]&8192||(e[I]|=8192,!au(e)));)e=cr(e)}function Sf(t,e){if((t[I]&256)===256)throw new m(911,!1);t[Et]===null&&(t[Et]=[]),t[Et].push(e)}function Cy(t,e){if(t[Et]===null)return;let n=t[Et].indexOf(e);n!==-1&&t[Et].splice(n,1)}function cr(t){let e=t[fe];return dt(e)?e[fe]:e}var F={lFrame:Rf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function by(){return F.lFrame.elementDepthCount}function Iy(){F.lFrame.elementDepthCount++}function Sy(){F.lFrame.elementDepthCount--}function _f(){return F.bindingsEnabled}function _y(){return F.skipHydrationRootTNode!==null}function My(t){return F.skipHydrationRootTNode===t}function Ty(){F.skipHydrationRootTNode=null}function G(){return F.lFrame.lView}function ft(){return F.lFrame.tView}function lu(t){return F.lFrame.contextLView=t,t[de]}function cu(t){return F.lFrame.contextLView=null,t}function ht(){let t=Mf();for(;t!==null&&t.type===64;)t=t.parent;return t}function Mf(){return F.lFrame.currentTNode}function Ay(){let t=F.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Ir(t,e){let n=F.lFrame;n.currentTNode=t,n.isParent=e}function Tf(){return F.lFrame.isParent}function xy(){F.lFrame.isParent=!1}function Ny(){let t=F.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ry(t){return F.lFrame.bindingIndex=t}function Eo(){return F.lFrame.bindingIndex++}function Oy(t){let e=F.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Py(){return F.lFrame.inI18n}function Fy(t,e){let n=F.lFrame;n.bindingIndex=n.bindingRootIndex=t,ya(e)}function ky(){return F.lFrame.currentDirectiveIndex}function ya(t){F.lFrame.currentDirectiveIndex=t}function Ly(t){let e=F.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Af(t){F.lFrame.currentQueryIndex=t}function jy(t){let e=t[x];return e.type===2?e.declTNode:e.type===1?t[ze]:null}function xf(t,e,n){if(n&N.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(n&N.Host);)if(i=jy(o),i===null||(o=o[An],i.type&10))break;if(i===null)return!1;e=i,t=o}let r=F.lFrame=Nf();return r.currentTNode=e,r.lView=t,!0}function du(t){let e=Nf(),n=t[x];F.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Nf(){let t=F.lFrame,e=t===null?null:t.child;return e===null?Rf(t):e}function Rf(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 Of(){let t=F.lFrame;return F.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Pf=Of;function fu(){let t=Of();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 Vy(t){return(F.lFrame.contextLView=Ey(t,F.lFrame.contextLView))[de]}function Wt(){return F.lFrame.selectedIndex}function Bt(t){F.lFrame.selectedIndex=t}function $y(){let t=F.lFrame;return su(t.tView,t.selectedIndex)}function By(){return F.lFrame.currentNamespace}var Ff=!0;function hu(){return Ff}function pu(t){Ff=t}function Uy(t,e,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){let s=wf(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 gu(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[u]<0&&(t[Dn]+=65536),(a>14>16&&(t[I]&3)===e&&(t[I]+=16384,vd(a,o)):vd(a,o)}var bn=-1,dr=class{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function zy(t){return t instanceof dr}function qy(t){return(t.flags&8)!==0}function Gy(t){return(t.flags&16)!==0}function Lf(t){return t!==bn}function Xi(t){return t&32767}function Wy(t){return t>>16}function Ji(t,e){let n=Wy(t),r=e;for(;n>0;)r=r[An],n--;return r}var va=!0;function eo(t){let e=va;return va=t,e}var Qy=256,jf=Qy-1,Vf=5,Ky=0,Ze={};function Yy(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(nr)&&(r=n[nr]),r==null&&(r=n[nr]=Ky++);let i=r&jf,o=1<>Vf)]|=o}function $f(t,e){let n=Bf(t,e);if(n!==-1)return n;let r=e[x];r.firstCreatePass&&(t.injectorIndex=e.length,Xs(r.data,t),Xs(e,null),Xs(r.blueprint,null));let i=mu(t,e),o=t.injectorIndex;if(Lf(i)){let s=Xi(i),a=Ji(i,e),u=a[x].data;for(let l=0;l<8;l++)e[o+l]=a[s+l]|u[s+l]}return e[o+8]=i,o}function Xs(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Bf(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function mu(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=Gf(i),r===null)return bn;if(n++,i=i[An],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return bn}function Zy(t,e,n){Yy(t,e,n)}function Uf(t,e,n){if(n&N.Optional||t!==void 0)return t;Za(e,"NodeInjector")}function Hf(t,e,n,r){if(n&N.Optional&&r===void 0&&(r=null),!(n&(N.Self|N.Host))){let i=t[Sn],o=ve(void 0);try{return i?i.get(e,r,n&N.Optional):Jd(e,r,n&N.Optional)}finally{ve(o)}}return Uf(r,e,n)}function zf(t,e,n,r=N.Default,i){if(t!==null){if(e[I]&2048&&!(r&N.Self)){let s=nv(t,e,n,r,Ze);if(s!==Ze)return s}let o=qf(t,e,n,r,Ze);if(o!==Ze)return o}return Hf(e,n,r,i)}function qf(t,e,n,r,i){let o=ev(n);if(typeof o=="function"){if(!xf(e,t,r))return r&N.Host?Uf(i,n,r):Hf(e,n,r,i);try{let s;if(s=o(r),s==null&&!(r&N.Optional))Za(n);else return s}finally{Pf()}}else if(typeof o=="number"){let s=null,a=Bf(t,e),u=bn,l=r&N.Host?e[He][ze]:null;for((a===-1||r&N.SkipSelf)&&(u=a===-1?mu(t,e):e[a+8],u===bn||!wd(r,!1)?a=-1:(s=e[x],a=Xi(u),e=Ji(u,e)));a!==-1;){let c=e[x];if(Dd(o,a,c.data)){let d=Xy(a,e,n,s,r,l);if(d!==Ze)return d}u=e[a+8],u!==bn&&wd(r,e[x].data[a+8]===l)&&Dd(o,a,e)?(s=c,a=Xi(u),e=Ji(u,e)):a=-1}}return i}function Xy(t,e,n,r,i,o){let s=e[x],a=s.data[t+8],u=r==null?Do(a)&&va:r!=s&&(a.type&3)!==0,l=i&N.Host&&o===a,c=Jy(a,s,n,u,l);return c!==null?fr(e,s,c,a):Ze}function Jy(t,e,n,r,i){let o=t.providerIndexes,s=e.data,a=o&1048575,u=t.directiveStart,l=t.directiveEnd,c=o>>20,d=r?a:a+c,h=i?a+c:l;for(let f=d;f=u&&p.type===n)return f}if(i){let f=s[u];if(f&&br(f)&&f.type===n)return u}return null}function fr(t,e,n,r){let i=t[n],o=e.data;if(zy(i)){let s=i;s.resolving&&Em(wm(o[n]));let a=eo(s.canSeeViewProviders);s.resolving=!0;let u,l=s.injectImpl?ve(s.injectImpl):null,c=xf(t,r,N.Default);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&Uy(n,o[n],e)}finally{l!==null&&ve(l),eo(a),s.resolving=!1,Pf()}}return i}function ev(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(nr)?t[nr]:void 0;return typeof e=="number"?e>=0?e&jf:tv:e}function Dd(t,e,n){let r=1<>Vf)]&r)}function wd(t,e){return!(t&N.Self)&&!(t&N.Host&&e)}var kt=class{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return zf(this._tNode,this._lView,e,ho(r),n)}};function tv(){return new kt(ht(),G())}function yu(t){return co(()=>{let e=t.prototype.constructor,n=e[qi]||Da(e),r=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){let o=i[qi]||Da(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Da(t){return Wd(t)?()=>{let e=Da(Ne(t));return e&&e()}:Lt(t)}function nv(t,e,n,r,i){let o=t,s=e;for(;o!==null&&s!==null&&s[I]&2048&&!(s[I]&512);){let a=qf(o,s,n,r|N.Self,Ze);if(a!==Ze)return a;let u=o.parent;if(!u){let l=s[mf];if(l){let c=l.get(n,Ze,r);if(c!==Ze)return c}u=Gf(s),s=s[An]}o=u}return i}function Gf(t){let e=t[x],n=e.type;return n===2?e.declTNode:n===1?t[ze]:null}function Ed(t,e=null,n=null,r){let i=Wf(t,e,n,r);return i.resolveInjectorInitializers(),i}function Wf(t,e=null,n=null,r,i=new Set){let o=[n||Ve,Zm(t)];return r=r||(typeof t=="object"?void 0:De(t)),new or(o,e||ru(),r||null,i)}var Sr=(()=>{let e=class e{static create(r,i){if(Array.isArray(r))return Ed({name:""},i,r,"");{let o=r.name??"";return Ed({name:o},r.parent,r.providers,o)}}};e.THROW_IF_NOT_FOUND=rr,e.NULL=new Qi,e.\u0275prov=S({token:e,providedIn:"any",factory:()=>R(tf)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})();var rv="ngOriginalError";function Js(t){return t[rv]}var ut=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&&Js(e);for(;n&&Js(n);)n=Js(n);return n||null}},Qf=new k("",{providedIn:"root",factory:()=>v(ut).handleError.bind(void 0)}),Kf=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=iv,e.__NG_ENV_ID__=r=>r;let t=e;return t})(),wa=class extends Kf{constructor(e){super(),this._lView=e}onDestroy(e){return Sf(this._lView,e),()=>Cy(this._lView,e)}};function iv(){return new wa(G())}function ov(){return vu(ht(),G())}function vu(t,e){return new Co(qe(t,e))}var Co=(()=>{let e=class e{constructor(r){this.nativeElement=r}};e.__NG_ELEMENT_ID__=ov;let t=e;return t})();var Ea=class extends ie{constructor(e=!1){super(),this.destroyRef=void 0,this.__isAsync=e,uy()&&(this.destroyRef=v(Kf,{optional:!0})??void 0)}emit(e){let n=O(null);try{super.next(e)}finally{O(n)}}subscribe(e,n,r){let i=e,o=n||(()=>null),s=r;if(e&&typeof e=="object"){let u=e;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=ea(o),i&&(i=ea(i)),s&&(s=ea(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof Z&&e.add(a),a}};function ea(t){return e=>{setTimeout(t,void 0,e)}}var $e=Ea;function Yf(t){return(t.flags&128)===128}var Zf=new Map,sv=0;function av(){return sv++}function uv(t){Zf.set(t[vo],t)}function lv(t){Zf.delete(t[vo])}var Cd="__ngContext__";function Ut(t,e){Cn(e)?(t[Cd]=e[vo],uv(e)):t[Cd]=e}function Xf(t){return eh(t[ur])}function Jf(t){return eh(t[Be])}function eh(t){for(;t!==null&&!dt(t);)t=t[Be];return t}var Ca;function th(t){Ca=t}function nh(){if(Ca!==void 0)return Ca;if(typeof document<"u")return document;throw new m(210,!1)}var Du=new k("",{providedIn:"root",factory:()=>cv}),cv="ng",wu=new k(""),xn=new k("",{providedIn:"platform",factory:()=>"unknown"});var Eu=new k(""),Cu=new k("",{providedIn:"root",factory:()=>nh().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var dv="h",fv="b";var hv=()=>null;function bu(t,e,n=!1){return hv(t,e,n)}var rh=!1,pv=new k("",{providedIn:"root",factory:()=>rh});var ki;function gv(){if(ki===void 0&&(ki=null,at.trustedTypes))try{ki=at.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return ki}function bo(t){return gv()?.createHTML(t)||t}var Li;function mv(){if(Li===void 0&&(Li=null,at.trustedTypes))try{Li=at.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Li}function bd(t){return mv()?.createHTML(t)||t}var to=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${qd})`}};function Io(t){return t instanceof to?t.changingThisBreaksApplicationSecurity:t}function ih(t,e){let n=yv(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${qd})`)}return n===e}function yv(t){return t instanceof to&&t.getTypeName()||null}function vv(t){let e=new Ia(t);return Dv()?new ba(e):e}var ba=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let n=new window.DOMParser().parseFromString(bo(e),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(e):(n.removeChild(n.firstChild),n)}catch{return null}}},Ia=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=bo(e),n}};function Dv(){try{return!!new window.DOMParser().parseFromString(bo(""),"text/html")}catch{return!1}}var wv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function oh(t){return t=String(t),t.match(wv)?t:"unsafe:"+t}function pt(t){let e={};for(let n of t.split(","))e[n]=!0;return e}function _r(...t){let e={};for(let n of t)for(let r in n)n.hasOwnProperty(r)&&(e[r]=!0);return e}var sh=pt("area,br,col,hr,img,wbr"),ah=pt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),uh=pt("rp,rt"),Ev=_r(uh,ah),Cv=_r(ah,pt("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")),bv=_r(uh,pt("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")),Id=_r(sh,Cv,bv,Ev),lh=pt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Iv=pt("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"),Sv=pt("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"),_v=_r(lh,Iv,Sv),Mv=pt("script,style,template"),Sa=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=xv(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=Av(n);if(o){n=o;break}n=i.pop()}}return this.buf.join("")}startElement(e){let n=Sd(e).toLowerCase();if(!Id.hasOwnProperty(n))return this.sanitizedSomething=!0,!Mv.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=e.attributes;for(let i=0;i"),!0}endElement(e){let n=Sd(e).toLowerCase();Id.hasOwnProperty(n)&&!sh.hasOwnProperty(n)&&(this.buf.push(""))}chars(e){this.buf.push(_d(e))}};function Tv(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Av(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw ch(e);return e}function xv(t){let e=t.firstChild;if(e&&Tv(t,e))throw ch(e);return e}function Sd(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function ch(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var Nv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Rv=/([^\#-~ |!])/g;function _d(t){return t.replace(/&/g,"&").replace(Nv,function(e){let n=e.charCodeAt(0),r=e.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Rv,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var ji;function dh(t,e){let n=null;try{ji=ji||vv(t);let r=e?String(e):"";n=ji.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=ji.getInertBodyElement(r)}while(r!==o);let a=new Sa().sanitizeChildren(Md(n)||n);return bo(a)}finally{if(n){let r=Md(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Md(t){return"content"in t&&Ov(t)?t.content:null}function Ov(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Iu=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}(Iu||{});function fh(t){let e=Pv();return e?bd(e.sanitize(Iu.HTML,t)||""):ih(t,"HTML")?bd(Io(t)):dh(nh(),Ya(t))}function Pv(){let t=G();return t&&t[Ue].sanitizer}function hh(t){return t instanceof Function?t():t}var lt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(lt||{}),Fv;function Su(t,e){return Fv(t,e)}function wn(t,e,n,r,i){if(r!=null){let o,s=!1;dt(r)?o=r:Cn(r)&&(s=!0,r=r[ct]);let a=Je(r);t===0&&n!==null?i==null?yh(e,n,a):no(e,n,a,i||null,!0):t===1&&n!==null?no(e,n,a,i||null,!0):t===2?Xv(e,a,s):t===3&&e.destroyNode(a),o!=null&&eD(e,t,o,n,i)}}function kv(t,e){return t.createText(e)}function Lv(t,e,n){t.setValue(e,n)}function ph(t,e,n){return t.createElement(e,n)}function jv(t,e){gh(t,e),e[ct]=null,e[ze]=null}function Vv(t,e,n,r,i,o){r[ct]=i,r[ze]=e,_o(t,r,n,1,i,o)}function gh(t,e){e[Ue].changeDetectionScheduler?.notify(1),_o(t,e,e[me],2,null,null)}function $v(t){let e=t[ur];if(!e)return ta(t[x],t);for(;e;){let n=null;if(Cn(e))n=e[ur];else{let r=e[ge];r&&(n=r)}if(!n){for(;e&&!e[Be]&&e!==t;)Cn(e)&&ta(e[x],e),e=e[fe];e===null&&(e=t),Cn(e)&&ta(e[x],e),n=e&&e[Be]}e=n}}function Bv(t,e,n,r){let i=ge+r,o=n.length;r>0&&(n[i-1][Be]=e),r0&&(t[n-1][Be]=r[Be]);let o=Wi(t,ge+e);jv(r[x],r);let s=o[_n];s!==null&&s.detachView(o[x]),r[fe]=null,r[Be]=null,r[I]&=-129}return r}function So(t,e){if(!(e[I]&256)){let n=e[me];n.destroyNode&&_o(t,e,n,3,null,null),$v(e)}}function ta(t,e){if(e[I]&256)return;let n=O(null);try{e[I]&=-129,e[I]|=256,e[Vt]&&Ac(e[Vt]),zv(t,e),Hv(t,e),e[x].type===1&&e[me].destroy();let r=e[yo];if(r!==null&&dt(e[fe])){r!==e[fe]&&mh(r,e);let i=e[_n];i!==null&&i.detachView(t)}lv(e)}finally{O(n)}}function Hv(t,e){let n=t.cleanup,r=e[ar];if(n!==null)for(let o=0;o=0?r[s]():r[-s].unsubscribe(),o+=2}else{let s=r[n[o+1]];n[o].call(s)}r!==null&&(e[ar]=null);let i=e[Et];if(i!==null){e[Et]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[r.directiveStart+i];if(o===Xe.None||o===Xe.Emulated)return null}return qe(r,n)}}function no(t,e,n,r,i){t.insertBefore(e,n,r,i)}function yh(t,e,n){t.appendChild(e,n)}function Td(t,e,n,r,i){r!==null?no(t,e,n,r,i):yh(t,e,n)}function Wv(t,e,n,r){t.removeChild(e,n,r)}function _u(t,e){return t.parentNode(e)}function Qv(t,e){return t.nextSibling(e)}function Kv(t,e,n){return Zv(t,e,n)}function Yv(t,e,n){return t.type&40?qe(t,n):null}var Zv=Yv,Ad;function Mu(t,e,n,r){let i=qv(t,r,e),o=e[me],s=r.parent||e[ze],a=Kv(s,r,e);if(i!=null)if(Array.isArray(n))for(let u=0;uSe&&Eh(t,e,Se,!1),Ye(s?2:0,i),n(r,i)}finally{Bt(o),Ye(s?3:1,i)}}function Sh(t,e,n){if(vf(e)){let r=O(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function lD(t,e,n,r,i,o){let s=e?e.injectorIndex:-1,a=0;return _y()&&(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 xd(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,u=Ct.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let l=o;if(i!==null){if(!i.hasOwnProperty(o))continue;l=i[o]}t===0?Nd(r,n,l,a,u):Nd(r,n,l,a)}return r}function Nd(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 cD(t,e,n){let r=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],u=null,l=null;for(let c=r;c0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function mD(t,e,n,r){let i=n.directiveStart,o=n.directiveEnd;Do(n)&&bD(e,n,t.data[i+n.componentOffset]),t.firstCreatePass||$f(n,e),Ut(r,e);let s=n.initialInputs;for(let a=i;a{lr(t.lView)},consumerOnSignalRead(){this.lView[Vt]=this}}),jh=100;function Vh(t,e=!0,n=0){let r=t[Ue],i=r.rendererFactory,o=!1;o||i.begin?.();try{LD(t,n)}catch(s){throw e&&Ph(t,s),s}finally{o||(i.end?.(),r.inlineEffectRunner?.flush())}}function LD(t,e){Aa(t,e);let n=0;for(;uu(t);){if(n===jh)throw new m(103,!1);n++,Aa(t,1)}}function jD(t,e,n,r){let i=e[I];if((i&256)===256)return;let o=!1;!o&&e[Ue].inlineEffectRunner?.flush(),du(e);let s=null,a=null;!o&&VD(t)&&(a=OD(e),s=Mc(a));try{If(e),Ry(t.bindingStartIndex),n!==null&&Ih(t,e,n,2,r);let u=(i&3)===3;if(!o)if(u){let d=t.preOrderCheckHooks;d!==null&&Bi(e,d,null)}else{let d=t.preOrderHooks;d!==null&&Ui(e,d,0,null),Zs(e,0)}if($D(e),$h(e,0),t.contentQueries!==null&&Oh(t,e),!o)if(u){let d=t.contentCheckHooks;d!==null&&Bi(e,d)}else{let d=t.contentHooks;d!==null&&Ui(e,d,1),Zs(e,1)}rD(t,e);let l=t.components;l!==null&&Uh(e,l,0);let c=t.viewQuery;if(c!==null&&Ta(2,c,r),!o)if(u){let d=t.viewCheckHooks;d!==null&&Bi(e,d)}else{let d=t.viewHooks;d!==null&&Ui(e,d,2),Zs(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Ys]){for(let d of e[Ys])d();e[Ys]=null}o||(e[I]&=-73)}catch(u){throw lr(e),u}finally{a!==null&&(Tc(a,s),FD(a)),fu()}}function VD(t){return t.type!==2}function $h(t,e){for(let n=Xf(t);n!==null;n=Jf(n))for(let r=ge;r-1&&(hr(e,r),Wi(n,r))}this._attachedToViewContainer=!1}So(this._lView[x],this._lView)}onDestroy(e){Sf(this._lView,e)}markForCheck(){Ou(this._cdRefInjectingView||this._lView)}detach(){this._lView[I]&=-129}reattach(){ma(this._lView),this._lView[I]|=128}detectChanges(){this._lView[I]|=1024,Vh(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,gh(this._lView[x],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new m(902,!1);this._appRef=e,ma(this._lView)}};var Lx=new RegExp(`^(\\d+)*(${fv}|${dv})*(.*)`);var UD=()=>null;function gr(t,e){return UD(t,e)}var mr=class{},xa=class{},io=class{};function HD(t){let e=Error(`No component factory found for ${De(t)}.`);return e[zD]=t,e}var zD="ngComponent";var Na=class{resolveComponentFactory(e){throw HD(e)}},No=(()=>{let e=class e{};e.NULL=new Na;let t=e;return t})(),Ht=class{};var qD=(()=>{let e=class e{};e.\u0275prov=S({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),na={};var Rd=new Set;function Nn(t){Rd.has(t)||(Rd.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Od(...t){}function GD(){let t=typeof at.requestAnimationFrame=="function",e=at[t?"requestAnimationFrame":"setTimeout"],n=at[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 Y=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 $e(!1),this.onMicrotaskEmpty=new $e(!1),this.onStable=new $e(!1),this.onError=new $e(!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=GD().nativeRequestAnimationFrame,KD(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,WD,Od,Od);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)}},WD={};function Pu(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 QD(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(at,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Ra(t),t.isCheckStableRunning=!0,Pu(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Ra(t))}function KD(t){let e=()=>{QD(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{if(YD(a))return n.invokeTask(i,o,s,a);try{return Pd(t),n.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Fd(t)}},onInvoke:(n,r,i,o,s,a,u)=>{try{return Pd(t),n.invoke(i,o,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&e(),Fd(t)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,Ra(t),Pu(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 Ra(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Pd(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Fd(t){t._nesting--,Pu(t)}function YD(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}var Hh=(()=>{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=S({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function Oa(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&Dh(t,n,o.join(" "))}}function rw(t,e,n){let r=t.projection=[];for(let i=0;i{let e=class e{};e.__NG_ELEMENT_ID__=ow;let t=e;return t})();function ow(){let t=ht();return aw(t,G())}var sw=Ro,zh=class extends sw{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return vu(this._hostTNode,this._hostLView)}get injector(){return new kt(this._hostTNode,this._hostLView)}get parentInjector(){let e=mu(this._hostTNode,this._hostLView);if(Lf(e)){let n=Ji(e,this._hostLView),r=Xi(e),i=n[x].data[r+8];return new kt(i,n)}else return new kt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=Ld(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-ge}createEmbeddedView(e,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=gr(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,pr(this._hostTNode,s)),a}createComponent(e,n,r,i,o){let s=e&&!ly(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 u=s?e:new yr(jt(e)),l=r||this.parentInjector;if(!o&&u.ngModule==null){let g=(s?l:this.parentInjector).get(Re,null);g&&(o=g)}let c=jt(u.componentType??{}),d=gr(this._lContainer,c?.id??null),h=d?.firstChild??null,f=u.create(l,i,h,o);return this.insertImpl(f.hostView,a,pr(this._hostTNode,d)),f}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let i=e._lView;if(Dy(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let u=i[fe],l=new zh(u,u[ze],u[fe]);l.detach(l.indexOf(e))}}let o=this._adjustIndex(n),s=this._lContainer;return xo(s,i,o,r),e.attachToViewContainerRef(),ef(ra(s),o,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=Ld(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),r=hr(this._lContainer,n);r&&(Wi(ra(this._lContainer),n),So(r[x],r))}detach(e){let n=this._adjustIndex(e,-1),r=hr(this._lContainer,n);return r&&Wi(ra(this._lContainer),n)!=null?new Mn(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function Ld(t){return t[Ki]}function ra(t){return t[Ki]||(t[Ki]=[])}function aw(t,e){let n,r=e[t.index];return dt(r)?n=r:(n=Rh(r,e,null,t),e[t.index]=n,Ao(e,n)),lw(n,e,t,r),new zh(n,t,e)}function uw(t,e){let n=t[me],r=n.createComment(""),i=qe(e,t),o=_u(n,i);return no(n,o,r,Qv(n,i),!1),r}var lw=fw,cw=()=>!1;function dw(t,e,n){return cw(t,e,n)}function fw(t,e,n,r){if(t[$t])return;let i;n.type&8?i=Je(r):i=uw(e,n),t[$t]=i}var bt=class{},vr=class{};var ka=class extends bt{constructor(e,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new oo(this);let i=cf(e);this._bootstrapComponents=hh(i.bootstrap),this._r3Injector=Wf(e,n,[{provide:bt,useValue:this},{provide:No,useValue:this.componentFactoryResolver},...r],De(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)}},La=class extends vr{constructor(e){super(),this.moduleType=e}create(e){return new ka(this.moduleType,e,[])}};var so=class extends bt{constructor(e){super(),this.componentFactoryResolver=new oo(this),this.instance=null;let n=new or([...e.providers,{provide:bt,useValue:this},{provide:No,useValue:this.componentFactoryResolver}],e.parent||ru(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Fu(t,e,n=null){return new so({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}var Oo=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ae(!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=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function hw(t,e,n){return t[e]=n}function Rn(t,e,n){let r=t[e];return Object.is(r,n)?!1:(t[e]=n,!0)}function pw(t){return(t.flags&32)===32}function gw(t,e,n,r,i,o,s,a,u){let l=e.consts,c=To(e,t,4,s||null,Zi(l,a));Ah(e,n,c,Zi(l,u)),gu(e,c);let d=c.tView=Au(2,c,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l,null);return e.queries!==null&&(e.queries.template(e,c),d.queries=e.queries.embeddedTView(c)),c}function It(t,e,n,r,i,o,s,a){let u=G(),l=ft(),c=t+Se,d=l.firstCreatePass?gw(c,l,u,e,n,r,i,o,s):l.data[c];Ir(d,!1);let h=mw(l,u,d,t);hu()&&Mu(l,u,h,d),Ut(h,u);let f=Rh(h,u,h,d);return u[c]=f,Ao(u,f),dw(f,d,u),ou(d)&&_h(l,u,d),s!=null&&Mh(u,d,a),It}var mw=yw;function yw(t,e,n,r){return pu(!0),e[me].createComment("")}function vw(t,e,n,r){return Rn(t,Eo(),n)?e+Ya(n)+r:Qt}function Vi(t,e){return t<<17|e<<2}function zt(t){return t>>17&32767}function Dw(t){return(t&2)==2}function ww(t,e){return t&131071|e<<17}function ja(t){return t|2}function Tn(t){return(t&131068)>>2}function ia(t,e){return t&-131069|e<<2}function Ew(t){return(t&1)===1}function Va(t){return t|1}function Cw(t,e,n,r,i,o){let s=o?e.classBindings:e.styleBindings,a=zt(s),u=Tn(s);t[r]=n;let l=!1,c;if(Array.isArray(n)){let d=n;c=d[1],(c===null||Er(d,c)>0)&&(l=!0)}else c=n;if(i)if(u!==0){let h=zt(t[a+1]);t[r+1]=Vi(h,a),h!==0&&(t[h+1]=ia(t[h+1],r)),t[a+1]=ww(t[a+1],r)}else t[r+1]=Vi(a,0),a!==0&&(t[a+1]=ia(t[a+1],r)),a=r;else t[r+1]=Vi(u,0),a===0?a=r:t[u+1]=ia(t[u+1],r),u=r;l&&(t[r+1]=ja(t[r+1])),jd(t,c,r,!0),jd(t,c,r,!1),bw(e,c,t,r,o),s=Vi(a,u),o?e.classBindings=s:e.styleBindings=s}function bw(t,e,n,r,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Er(o,e)>=0&&(n[r+1]=Va(n[r+1]))}function jd(t,e,n,r){let i=t[n+1],o=e===null,s=r?zt(i):Tn(i),a=!1;for(;s!==0&&(a===!1||o);){let u=t[s],l=t[s+1];Iw(u,e)&&(a=!0,t[s+1]=r?Va(l):ja(l)),s=r?zt(l):Tn(l)}a&&(t[n+1]=r?ja(i):Va(i))}function Iw(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Er(t,e)>=0:!1}function Po(t,e,n){let r=G(),i=Eo();if(Rn(r,i,e)){let o=ft(),s=$y();fD(o,s,r,t,e,r[me],n,!1)}return Po}function Vd(t,e,n,r,i){let o=e.inputs,s=i?"class":"style";xu(t,n,o[s],s,r)}function Fo(t,e){return Sw(t,e,null,!0),Fo}function Sw(t,e,n,r){let i=G(),o=ft(),s=Oy(2);if(o.firstUpdatePass&&Mw(o,t,s,r),e!==Qt&&Rn(i,s,e)){let a=o.data[Wt()];Rw(o,a,i,i[me],t,i[s+1]=Ow(e,n),r,s)}}function _w(t,e){return e>=t.expandoStartIndex}function Mw(t,e,n,r){let i=t.data;if(i[n+1]===null){let o=i[Wt()],s=_w(t,n);Pw(o,r)&&e===null&&!s&&(e=!1),e=Tw(i,o,e,r),Cw(i,o,e,n,s,r)}}function Tw(t,e,n,r){let i=Ly(t),o=r?e.residualClasses:e.residualStyles;if(i===null)(r?e.classBindings:e.styleBindings)===0&&(n=oa(null,t,e,n,r),n=Dr(n,e.attrs,r),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(n=oa(i,t,e,n,r),o===null){let u=Aw(t,e,r);u!==void 0&&Array.isArray(u)&&(u=oa(null,t,e,u[1],r),u=Dr(u,e.attrs,r),xw(t,e,r,u))}else o=Nw(t,e,r)}return o!==void 0&&(r?e.residualClasses=o:e.residualStyles=o),n}function Aw(t,e,n){let r=n?e.classBindings:e.styleBindings;if(Tn(r)!==0)return t[zt(r)]}function xw(t,e,n,r){let i=n?e.classBindings:e.styleBindings;t[zt(i)]=r}function Nw(t,e,n){let r,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let u=t[i],l=Array.isArray(u),c=l?u[1]:u,d=c===null,h=n[i+1];h===Qt&&(h=d?Ve:void 0);let f=d?Qs(h,r):c===r?h:void 0;if(l&&!ao(f)&&(f=Qs(u,r)),ao(f)&&(a=f,s))return a;let p=t[i+1];i=s?zt(p):Tn(p)}if(e!==null){let u=o?e.residualClasses:e.residualStyles;u!=null&&(a=Qs(u,r))}return a}function ao(t){return t!==void 0}function Ow(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=De(Io(t)))),t}function Pw(t,e){return(t.flags&(e?8:16))!==0}var $a=class{destroy(e){}updateValue(e,n){}swap(e,n){let r=Math.min(e,n),i=Math.max(e,n),o=this.detach(i);if(i-r>1){let s=this.detach(r);this.attach(r,o),this.attach(i,s)}else this.attach(r,o)}move(e,n){this.attach(n,this.detach(e))}};function sa(t,e,n,r,i){return t===n&&Object.is(e,r)?1:Object.is(i(t,e),i(n,r))?-1:0}function Fw(t,e,n){let r,i,o=0,s=t.length-1;if(Array.isArray(e)){let a=e.length-1;for(;o<=s&&o<=a;){let u=t.at(o),l=e[o],c=sa(o,u,o,l,n);if(c!==0){c<0&&t.updateValue(o,l),o++;continue}let d=t.at(s),h=e[a],f=sa(s,d,a,h,n);if(f!==0){f<0&&t.updateValue(s,h),s--,a--;continue}let p=n(o,u),g=n(s,d),E=n(o,l);if(Object.is(E,g)){let C=n(a,h);Object.is(C,p)?(t.swap(o,s),t.updateValue(s,h),a--,s--):t.move(s,o),t.updateValue(o,l),o++;continue}if(r??=new uo,i??=Ud(t,o,s,n),Ba(t,r,o,E))t.updateValue(o,l),o++,s++;else if(i.has(E))r.set(p,t.detach(o)),s--;else{let C=t.create(o,e[o]);t.attach(o,C),o++,s++}}for(;o<=a;)Bd(t,r,n,o,e[o]),o++}else if(e!=null){let a=e[Symbol.iterator](),u=a.next();for(;!u.done&&o<=s;){let l=t.at(o),c=u.value,d=sa(o,l,o,c,n);if(d!==0)d<0&&t.updateValue(o,c),o++,u=a.next();else{r??=new uo,i??=Ud(t,o,s,n);let h=n(o,c);if(Ba(t,r,o,h))t.updateValue(o,c),o++,s++,u=a.next();else if(!i.has(h))t.attach(o,t.create(o,c)),o++,s++,u=a.next();else{let f=n(o,l);r.set(f,t.detach(o)),s--}}}for(;!u.done;)Bd(t,r,n,t.length,u.value),u=a.next()}for(;o<=s;)t.destroy(t.detach(s--));r?.forEach(a=>{t.destroy(a)})}function Ba(t,e,n,r){return e!==void 0&&e.has(r)?(t.attach(n,e.get(r)),e.delete(r),!0):!1}function Bd(t,e,n,r,i){if(Ba(t,e,r,n(r,i)))t.updateValue(r,i);else{let o=t.create(r,i);t.attach(r,o)}}function Ud(t,e,n,r){let i=new Set;for(let o=e;o<=n;o++)i.add(r(o,t.at(o)));return i}var uo=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let n=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(e,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,n){if(this.kvMap.has(e)){let r=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,n)}else this.kvMap.set(e,n)}forEach(e){for(let[n,r]of this.kvMap)if(e(r,n),this._vMap!==void 0){let i=this._vMap;for(;i.has(r);)r=i.get(r),e(r,n)}}};function Tr(t,e,n){Nn("NgControlFlow");let r=G(),i=Eo(),o=qa(r,Se+t),s=0;if(Rn(r,i,e)){let a=O(null);try{if(kh(o,s),e!==-1){let u=Ga(r[x],Se+e),l=gr(o,u.tView.ssrId),c=Ru(r,u,n,{dehydratedView:l});xo(o,c,s,pr(u,l))}}finally{O(a)}}else{let a=Fh(o,s);a!==void 0&&(a[de]=n)}}var Ua=class{constructor(e,n,r){this.lContainer=e,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ge}};function qh(t){return t}var Ha=class{constructor(e,n,r){this.hasEmptyBlock=e,this.trackByFn=n,this.liveCollection=r}};function Gh(t,e,n,r,i,o,s,a,u,l,c,d,h){Nn("NgControlFlow");let f=u!==void 0,p=G(),g=a?s.bind(p[He][de]):s,E=new Ha(f,g);p[Se+t]=E,It(t+1,e,n,r,i,o),f&&It(t+2,u,l,c,d,h)}var za=class extends $a{constructor(e,n,r){super(),this.lContainer=e,this.hostLView=n,this.templateTNode=r,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-ge}at(e){return this.getLView(e)[de].$implicit}attach(e,n){let r=n[sr];this.needsIndexUpdate||=e!==this.length,xo(this.lContainer,n,e,pr(this.templateTNode,r))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,kw(this.lContainer,e)}create(e,n){let r=gr(this.lContainer,this.templateTNode.tView.ssrId);return Ru(this.hostLView,this.templateTNode,new Ua(this.lContainer,n,e),{dehydratedView:r})}destroy(e){So(e[x],e)}updateValue(e,n){this.getLView(e)[de].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(pu(!0),ph(r,i,By()));function ku(){return G()}var lo="en-US";var $w=lo;function Bw(t){typeof t=="string"&&($w=t.toLowerCase().replace(/_/g,"-"))}function Ar(t,e,n,r){let i=G(),o=ft(),s=ht();return Hw(o,i,i[me],s,t,e,r),Ar}function Uw(t,e,n,r){let i=t.cleanup;if(i!=null)for(let o=0;ou?a[u]:null}typeof s=="string"&&(o+=2)}return null}function Hw(t,e,n,r,i,o,s){let a=ou(r),l=t.firstCreatePass&&MD(t),c=e[de],d=_D(e),h=!0;if(r.type&3||s){let g=qe(r,e),E=s?s(g):g,C=d.length,H=s?z=>s(Je(z[r.index])):r.index,$=null;if(!s&&a&&($=Uw(t,e,i,r.index)),$!==null){let z=$.__ngLastListenerFn__||$;z.__ngNextListenerFn__=o,$.__ngLastListenerFn__=o,h=!1}else{o=zd(r,e,c,o,!1);let z=n.listen(E,i,o);d.push(o,z),l&&l.push(i,H,C,C+1)}}else o=zd(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 E=0;E-1?Gt(t.index,e):e;Ou(a);let u=Hd(e,n,r,s),l=o.__ngNextListenerFn__;for(;l;)u=Hd(e,n,l,s)&&u,l=l.__ngNextListenerFn__;return i&&u===!1&&s.preventDefault(),u}}function Pn(t=1){return Vy(t)}function zw(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function he(t,e=""){let n=G(),r=ft(),i=t+Se,o=r.firstCreatePass?To(r,i,1,e,null):r.data[i],s=qw(r,n,o,e,t);n[i]=s,hu()&&Mu(r,n,s,o),Ir(o,!1)}var qw=(t,e,n,r,i)=>(pu(!0),kv(e[me],r));function xr(t){return Nr("",t,""),xr}function Nr(t,e,n){let r=G(),i=vw(r,t,e,n);return i!==Qt&&TD(r,Wt(),i),Nr}var Gw=(()=>{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=hf(!1,r.type),o=i.length>0?Fu([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=S({token:e,providedIn:"environment",factory:()=>new e(R(Re))});let t=e;return t})();function ko(t){Nn("NgStandalone"),t.getStandaloneInjector=e=>e.get(Gw).getOrCreateStandaloneInjector(t)}function Ww(t,e){let n=t[e];return n===Qt?void 0:n}function Qw(t,e,n,r,i,o){let s=e+n;return Rn(t,s,i)?hw(t,s+1,o?r.call(o,i):r(i)):Ww(t,s+1)}function Rr(t,e){let n=ft(),r,i=t+Se;n.firstCreatePass?(r=Kw(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=Lt(r.type,!0)),s,a=ve(Mr);try{let u=eo(!1),l=o();return eo(u),zw(n,G(),i,l),l}finally{ve(a)}}function Kw(t,e){if(e)for(let n=e.length-1;n>=0;n--){let r=e[n];if(t===r.name)return r}}function Or(t,e,n){let r=t+Se,i=G(),o=vy(i,r);return Yw(i,r)?Qw(i,Ny(),e,o.transform,n,o):o.transform(n)}function Yw(t,e){return t[x].data[e].pure}var Lo=(()=>{let e=class e{log(r){console.log(r)}warn(r){console.warn(r)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var Qh=new k("");function Fn(t){return!!t&&typeof t.then=="function"}function Lu(t){return!!t&&typeof t.subscribe=="function"}var Kh=new k(""),Yh=(()=>{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=v(Kh,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let o of this.appInits){let s=o();if(Fn(s))r.push(s);else if(Lu(s)){let a=new Promise((u,l)=>{s.subscribe({complete:u,error:l})});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=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ju=new k("");function Zw(){xc(()=>{throw new m(600,!1)})}function Xw(t){return t.isBoundToModule}function Jw(t,e,n){try{let r=n();return Fn(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}var Pr=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=v(Qf),this.afterRenderEffectManager=v(Hh),this.externalTestViews=new Set,this.beforeRender=new ie,this.afterTick=new ie,this.componentTypes=[],this.components=[],this.isStable=v(Oo).hasPendingTasks.pipe(P(r=>!r)),this._injector=v(Re)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,i){let o=r instanceof io;if(!this._injector.get(Yh).done){let f=!o&&lf(r),p=!1;throw new m(405,p)}let a;o?a=r:a=this._injector.get(No).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let u=Xw(a)?void 0:this._injector.get(bt),l=i||a.selector,c=a.create(Sr.NULL,[],l,u),d=c.location.nativeElement,h=c.injector.get(Qh,null);return h?.registerApplication(d),c.onDestroy(()=>{this.detachView(c.hostView),aa(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=O(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,O(i)}}detectChangesInAttachedViews(r){let i=0,o=this.afterRenderEffectManager;for(;;){if(i===jh)throw new m(103,!1);if(r){let s=i===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:u}of this._views)eE(a,s,u)}if(i++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Wa(s))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Wa(s))))break}}attachView(r){let i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){let i=r;aa(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let i=this._injector.get(ju,[]);[...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),()=>aa(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=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function aa(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function eE(t,e,n){!e&&!Wa(t)||tE(t,n,e)}function Wa(t){return uu(t)}function tE(t,e,n){let r;n?(r=0,t[I]|=1024):t[I]&64?r=0:r=1,Vh(t,e,r)}var Qa=class{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}},Vu=(()=>{let e=class e{compileModuleSync(r){return new La(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let i=this.compileModuleSync(r),o=cf(r),s=hh(o.declarations).reduce((a,u)=>{let l=jt(u);return l&&a.push(new yr(l)),a},[]);return new Qa(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=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var nE=(()=>{let e=class e{constructor(){this.zone=v(Y),this.applicationRef=v(Pr)}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=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function rE(t){return[{provide:Y,useFactory:t},{provide:In,multi:!0,useFactory:()=>{let e=v(nE,{optional:!0});return()=>e.initialize()}},{provide:In,multi:!0,useFactory:()=>{let e=v(aE);return()=>{e.initialize()}}},{provide:Qf,useFactory:iE}]}function iE(){let t=v(Y),e=v(ut);return n=>t.runOutsideAngular(()=>e.handleError(n))}function oE(t){let e=rE(()=>new Y(sE(t)));return go([[],e])}function sE(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var aE=(()=>{let e=class e{constructor(){this.subscription=new Z,this.initialized=!1,this.zone=v(Y),this.pendingTasks=v(Oo)}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(()=>{Y.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Y.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function uE(){return typeof $localize<"u"&&$localize.locale||lo}var $u=new k("",{providedIn:"root",factory:()=>v($u,N.Optional|N.SkipSelf)||uE()});var Zh=new k("");var zi=null;function lE(t=[],e){return Sr.create({name:e,providers:[{provide:mo,useValue:"platform"},{provide:Zh,useValue:new Set([()=>zi=null])},...t]})}function cE(t=[]){if(zi)return zi;let e=lE(t);return zi=e,Zw(),dE(e),e}function dE(t){t.get(wu,null)?.forEach(n=>n())}var kn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=fE;let t=e;return t})();function fE(t){return hE(ht(),G(),(t&16)===16)}function hE(t,e,n){if(Do(t)&&!n){let r=Gt(t.index,e);return new Mn(r,r)}else if(t.type&47){let r=e[He];return new Mn(r,e)}return null}function Xh(t){try{let{rootComponent:e,appProviders:n,platformProviders:r}=t,i=cE(r),o=[oE(),...n||[]],a=new so({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,u=a.get(Y);return u.run(()=>{a.resolveInjectorInitializers();let l=a.get(ut,null),c;u.runOutsideAngular(()=>{c=u.onError.subscribe({next:f=>{l.handleError(f)}})});let d=()=>a.destroy(),h=i.get(Zh);return h.add(d),a.onDestroy(()=>{c.unsubscribe(),h.delete(d)}),Jw(l,u,()=>{let f=a.get(Yh);return f.runInitializers(),f.donePromise.then(()=>{let p=a.get($u,lo);Bw(p||lo);let g=a.get(Pr);return e!==void 0&&g.bootstrap(e),g})})})}catch(e){return Promise.reject(e)}}function Bu(t){let e=O(null);try{return t()}finally{O(e)}}var rp=null;function jn(){return rp}function ip(t){rp??=t}var jo=class{};var Ee=new k(""),op=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:()=>v(yE),providedIn:"platform"});let t=e;return t})();var yE=(()=>{let e=class e extends op{constructor(){super(),this._doc=v(Ee),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return jn().getBaseHref(this._doc)}onPopState(r){let i=jn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",r,!1),()=>i.removeEventListener("popstate",r)}onHashChange(r){let i=jn().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=S({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function sp(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 Jh(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 Kt(t){return t&&t[0]!=="?"?"?"+t:t}var $o=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:()=>v(ap),providedIn:"root"});let t=e;return t})(),vE=new k(""),ap=(()=>{let e=class e extends $o{constructor(r,i){super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??v(Ee).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 sp(this._baseHref,r)}path(r=!1){let i=this._platformLocation.pathname+Kt(this._platformLocation.search),o=this._platformLocation.hash;return o&&r?`${i}${o}`:i}pushState(r,i,o,s){let a=this.prepareExternalUrl(o+Kt(s));this._platformLocation.pushState(r,i,a)}replaceState(r,i,o,s){let a=this.prepareExternalUrl(o+Kt(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)(R(op),R(vE,8))},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Fr=(()=>{let e=class e{constructor(r){this._subject=new $e,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let i=this._locationStrategy.getBaseHref();this._basePath=EE(Jh(ep(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+Kt(i))}normalize(r){return e.stripTrailingSlash(wE(this._basePath,ep(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+Kt(i)),o)}replaceState(r,i="",o=null){this._locationStrategy.replaceState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Kt(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=Kt,e.joinWithSlash=sp,e.stripTrailingSlash=Jh,e.\u0275fac=function(i){return new(i||e)(R($o))},e.\u0275prov=S({token:e,factory:()=>DE(),providedIn:"root"});let t=e;return t})();function DE(){return new Fr(R($o))}function wE(t,e){if(!t||!e.startsWith(t))return e;let n=e.substring(t.length);return n===""||["/",";","?","#"].includes(n[0])?n:e}function ep(t){return t.replace(/\/index.html$/,"")}function EE(t){if(new RegExp("^(https?:)?//").test(t)){let[,n]=t.split(/\/\/[^\/]+/);return n}return t}function up(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}function CE(t,e){return new m(2100,!1)}var Uu=class{createSubscription(e,n){return Bu(()=>e.subscribe({next:n,error:r=>{throw r}}))}dispose(e){Bu(()=>e.unsubscribe())}},Hu=class{createSubscription(e,n){return e.then(n,r=>{throw r})}dispose(e){}},bE=new Hu,IE=new Uu,lp=(()=>{let e=class e{constructor(r){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=r}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(r){if(!this._obj){if(r)try{this.markForCheckOnValueUpdate=!1,this._subscribe(r)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return r!==this._obj?(this._dispose(),this.transform(r)):this._latestValue}_subscribe(r){this._obj=r,this._strategy=this._selectStrategy(r),this._subscription=this._strategy.createSubscription(r,i=>this._updateLatestValue(r,i))}_selectStrategy(r){if(Fn(r))return bE;if(Lu(r))return IE;throw CE(e,r)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(r,i){r===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(i){return new(i||e)(Mr(kn,16))},e.\u0275pipe=sf({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var zu=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Cr({type:e}),e.\u0275inj=wr({});let t=e;return t})(),cp="browser",SE="server";function qu(t){return t===SE}var Vo=class{};var Qu=class extends jo{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Ku=class t extends Qu{static makeCurrent(){ip(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=TE();return n==null?null:AE(n)}resetBaseElement(){kr=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return up(document.cookie,e)}},kr=null;function TE(){return kr=kr||document.querySelector("base"),kr?kr.getAttribute("href"):null}function AE(t){return new URL(t,document.baseURI).pathname}var xE=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac});let t=e;return t})(),Yu=new k(""),hp=(()=>{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)(R(Yu),R(Y))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let t=e;return t})(),Bo=class{constructor(e){this._doc=e}},Gu="ng-app-id",pp=(()=>{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=qu(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[${Gu}="${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(Gu),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Gu,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)(R(Ee),R(Du),R(Cu,8),R(xn))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let t=e;return t})(),Wu={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/"},Xu=/%COMP%/g,gp="%COMP%",NE=`_nghost-${gp}`,RE=`_ngcontent-${gp}`,OE=!0,PE=new k("",{providedIn:"root",factory:()=>OE});function FE(t){return RE.replace(Xu,t)}function kE(t){return NE.replace(Xu,t)}function mp(t,e){return e.map(n=>n.replace(Xu,t))}var Uo=(()=>{let e=class e{constructor(r,i,o,s,a,u,l,c=null){this.eventManager=r,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=qu(u),this.defaultRenderer=new Lr(r,a,l,this.platformIsServer)}createRenderer(r,i){if(!r||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Xe.ShadowDom&&(i=J(D({},i),{encapsulation:Xe.Emulated}));let o=this.getOrCreateRenderer(r,i);return o instanceof Ho?o.applyToHost(r):o instanceof jr&&o.applyStyles(),o}getOrCreateRenderer(r,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,u=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(i.encapsulation){case Xe.Emulated:s=new Ho(l,c,i,this.appId,d,a,u,h);break;case Xe.ShadowDom:return new Zu(l,c,r,i,a,u,this.nonce,h);default:s=new jr(l,c,i,d,a,u,h);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(R(hp),R(pp),R(Du),R(PE),R(Ee),R(xn),R(Y),R(Cu))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let t=e;return t})(),Lr=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(Wu[n]||n,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,n){(dp(e)?e.content:e).appendChild(n)}insertBefore(e,n,r){e&&(dp(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=Wu[i];o?e.setAttributeNS(o,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){let i=Wu[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&(lt.DashCase|lt.Important)?e.style.setProperty(n,r,i<.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r<.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=jn().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 dp(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Zu=class extends Lr{constructor(e,n,r,i,o,s,a,u){super(e,o,s,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=mp(i.id,i.styles);for(let c of l){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)}},jr=class extends Lr{constructor(e,n,r,i,o,s,a,u){super(e,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=u?mp(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Ho=class extends jr{constructor(e,n,r,i,o,s,a,u){let l=i+"-"+r.id;super(e,n,r,o,s,a,u,l),this.contentAttr=FE(l),this.hostAttr=kE(l)}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}},LE=(()=>{let e=class e extends Bo{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)(R(Ee))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let t=e;return t})(),fp=["alt","control","meta","shift"],jE={"\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"},VE={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},$E=(()=>{let e=class e extends Bo{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(()=>jn().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="",u=i.indexOf("code");if(u>-1&&(i.splice(u,1),a="code."),fp.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 l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(r,i){let o=jE[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"),fp.forEach(a=>{if(a!==o){let u=VE[a];u(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)(R(Ee))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let t=e;return t})();function yp(t,e){return Xh(D({rootComponent:t},BE(e)))}function BE(t){return{appProviders:[...GE,...t?.providers??[]],platformProviders:qE}}function UE(){Ku.makeCurrent()}function HE(){return new ut}function zE(){return th(document),document}var qE=[{provide:xn,useValue:cp},{provide:wu,useValue:UE,multi:!0},{provide:Ee,useFactory:zE,deps:[]}];var GE=[{provide:mo,useValue:"root"},{provide:ut,useFactory:HE,deps:[]},{provide:Yu,useClass:LE,multi:!0,deps:[Ee,Y,xn]},{provide:Yu,useClass:$E,multi:!0,deps:[Ee]},Uo,pp,hp,{provide:Ht,useExisting:Uo},{provide:Vo,useClass:xE,deps:[]},[]];var vp=(()=>{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)(R(Ee))},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var A="primary",Jr=Symbol("RouteTitle"),rl=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 Hn(t){return new rl(t)}function QE(t,e,n){let r=n.path.split("/");if(r.length>t.length||n.pathMatch==="full"&&(e.hasChildren()||r.lengthr[o]===i)}else return t===e}function Sp(t){return t.length>0?t[t.length-1]:null}function Mt(t){return $s(t)?t:Fn(t)?X(Promise.resolve(t)):M(t)}var YE={exact:Mp,subset:Tp},_p={exact:ZE,subset:XE,ignored:()=>!0};function Dp(t,e,n){return YE[n.paths](t.root,e.root,n.matrixParams)&&_p[n.queryParams](t.queryParams,e.queryParams)&&!(n.fragment==="exact"&&t.fragment!==e.fragment)}function ZE(t,e){return et(t,e)}function Mp(t,e,n){if(!Zt(t.segments,e.segments)||!Go(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let r in e.children)if(!t.children[r]||!Mp(t.children[r],e.children[r],n))return!1;return!0}function XE(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Ip(t[n],e[n]))}function Tp(t,e,n){return Ap(t,e,e.segments,n)}function Ap(t,e,n,r){if(t.segments.length>n.length){let i=t.segments.slice(0,n.length);return!(!Zt(i,n)||e.hasChildren()||!Go(i,n,r))}else if(t.segments.length===n.length){if(!Zt(t.segments,n)||!Go(t.segments,n,r))return!1;for(let i in e.children)if(!t.children[i]||!Tp(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!Zt(t.segments,i)||!Go(t.segments,i,r)||!t.children[A]?!1:Ap(t.children[A],e,o,r)}}function Go(t,e,n){return e.every((r,i)=>_p[n](t[i].parameters,r.parameters))}var St=class{constructor(e=new U([],{}),n={},r=null){this.root=e,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Hn(this.queryParams),this._queryParamMap}toString(){return tC.serialize(this)}},U=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 Wo(this)}},Yt=class{constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap??=Hn(this.parameters),this._parameterMap}toString(){return Np(this)}};function JE(t,e){return Zt(t,e)&&t.every((n,r)=>et(n.parameters,e[r].parameters))}function Zt(t,e){return t.length!==e.length?!1:t.every((n,r)=>n.path===e[r].path)}function eC(t,e){let n=[];return Object.entries(t.children).forEach(([r,i])=>{r===A&&(n=n.concat(e(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==A&&(n=n.concat(e(i,r)))}),n}var xl=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:()=>new Ko,providedIn:"root"});let t=e;return t})(),Ko=class{parse(e){let n=new sl(e);return new St(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){let n=`/${Vr(e.root,!0)}`,r=iC(e.queryParams),i=typeof e.fragment=="string"?`#${nC(e.fragment)}`:"";return`${n}${r}${i}`}},tC=new Ko;function Wo(t){return t.segments.map(e=>Np(e)).join("/")}function Vr(t,e){if(!t.hasChildren())return Wo(t);if(e){let n=t.children[A]?Vr(t.children[A],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==A&&r.push(`${i}:${Vr(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=eC(t,(r,i)=>i===A?[Vr(t.children[A],!1)]:[`${i}:${Vr(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[A]!=null?`${Wo(t)}/${n[0]}`:`${Wo(t)}/(${n.join("//")})`}}function xp(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function zo(t){return xp(t).replace(/%3B/gi,";")}function nC(t){return encodeURI(t)}function ol(t){return xp(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Qo(t){return decodeURIComponent(t)}function wp(t){return Qo(t.replace(/\+/g,"%20"))}function Np(t){return`${ol(t.path)}${rC(t.parameters)}`}function rC(t){return Object.entries(t).map(([e,n])=>`;${ol(e)}=${ol(n)}`).join("")}function iC(t){let e=Object.entries(t).map(([n,r])=>Array.isArray(r)?r.map(i=>`${zo(n)}=${zo(i)}`).join("&"):`${zo(n)}=${zo(r)}`).filter(n=>n);return e.length?`?${e.join("&")}`:""}var oC=/^[^\/()?;#]+/;function Ju(t){let e=t.match(oC);return e?e[0]:""}var sC=/^[^\/()?;=#]+/;function aC(t){let e=t.match(sC);return e?e[0]:""}var uC=/^[^=?&#]+/;function lC(t){let e=t.match(uC);return e?e[0]:""}var cC=/^[^&#]+/;function dC(t){let e=t.match(cC);return e?e[0]:""}var sl=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new U([],{}):new U([],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[A]=new U(e,n)),r}parseSegment(){let e=Ju(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new m(4009,!1);return this.capture(e),new Yt(Qo(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let n=aC(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=Ju(this.remaining);i&&(r=i,this.capture(r))}e[Qo(n)]=Qo(r)}parseQueryParam(e){let n=lC(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=dC(this.remaining);s&&(r=s,this.capture(r))}let i=wp(n),o=wp(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=Ju(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=A);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[A]:new U([],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 Rp(t){return t.segments.length>0?new U([],{[A]:t}):t}function Op(t){let e={};for(let[r,i]of Object.entries(t.children)){let o=Op(i);if(r===A&&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 U(t.segments,e);return fC(n)}function fC(t){if(t.numberOfChildren===1&&t.children[A]){let e=t.children[A];return new U(t.segments.concat(e.segments),e.children)}return t}function zn(t){return t instanceof St}function hC(t,e,n=null,r=null){let i=Pp(t);return Fp(i,e,n,r)}function Pp(t){let e;function n(o){let s={};for(let u of o.children){let l=n(u);s[u.outlet]=l}let a=new U(o.url,s);return o===t&&(e=a),a}let r=n(t.root),i=Rp(r);return e??i}function Fp(t,e,n,r){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return el(i,i,i,n,r);let o=pC(e);if(o.toRoot())return el(i,i,new U([],{}),n,r);let s=gC(o,i,t),a=s.processChildren?Ur(s.segmentGroup,s.index,o.commands):Lp(s.segmentGroup,s.index,o.commands);return el(i,s.segmentGroup,a,n,r)}function Yo(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function qr(t){return typeof t=="object"&&t!=null&&t.outlets}function el(t,e,n,r,i){let o={};r&&Object.entries(r).forEach(([u,l])=>{o[u]=Array.isArray(l)?l.map(c=>`${c}`):`${l}`});let s;t===e?s=n:s=kp(t,e,n);let a=Rp(Op(s));return new St(a,o,i)}function kp(t,e,n){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===e?r[i]=n:r[i]=kp(o,e,n)}),new U(t.segments,r)}var Zo=class{constructor(e,n,r){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&Yo(r[0]))throw new m(4003,!1);let i=r.find(qr);if(i&&i!==Sp(r))throw new m(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function pC(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Zo(!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(([u,l])=>{a[u]=typeof l=="string"?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?n=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Zo(n,e,r)}var Bn=class{constructor(e,n,r){this.segmentGroup=e,this.processChildren=n,this.index=r}};function gC(t,e,n){if(t.isAbsolute)return new Bn(e,!0,0);if(!n)return new Bn(e,!1,NaN);if(n.parent===null)return new Bn(n,!0,0);let r=Yo(t.commands[0])?0:1,i=n.segments.length-1+r;return mC(n,i,t.numberOfDoubleDots)}function mC(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 Bn(r,!1,i-o)}function yC(t){return qr(t[0])?t[0].outlets:{[A]:t}}function Lp(t,e,n){if(t??=new U([],{}),t.segments.length===0&&t.hasChildren())return Ur(t,e,n);let r=vC(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndexo!==A)&&t.children[A]&&t.numberOfChildren===1&&t.children[A].segments.length===0){let o=Ur(t.children[A],e,n);return new U(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Lp(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new U(t.segments,i)}}function vC(t,e,n){let r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;let s=t.segments[i],a=n[r];if(qr(a))break;let u=`${a}`,l=r0&&u===void 0)break;if(u&&l&&typeof l=="object"&&l.outlets===void 0){if(!Cp(u,l,s))return o;r+=2}else{if(!Cp(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function al(t,e,n){let r=t.segments.slice(0,e),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(e[n]=al(new U([],{}),0,r))}),e}function Ep(t){let e={};return Object.entries(t).forEach(([n,r])=>e[n]=`${r}`),e}function Cp(t,e,n){return t==n.path&&et(e,n.parameters)}var Hr="imperative",le=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}(le||{}),Oe=class{constructor(e,n){this.id=e,this.url=n}},Gr=class extends Oe{constructor(e,n,r="imperative",i=null){super(e,n),this.type=le.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Xt=class extends Oe{constructor(e,n,r){super(e,n),this.urlAfterRedirects=r,this.type=le.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Me=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Me||{}),ul=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(ul||{}),_t=class extends Oe{constructor(e,n,r,i){super(e,n),this.reason=r,this.code=i,this.type=le.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Jt=class extends Oe{constructor(e,n,r,i){super(e,n),this.reason=r,this.code=i,this.type=le.NavigationSkipped}},Wr=class extends Oe{constructor(e,n,r,i){super(e,n),this.error=r,this.target=i,this.type=le.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Xo=class extends Oe{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=le.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ll=class extends Oe{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=le.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},cl=class extends Oe{constructor(e,n,r,i,o){super(e,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=le.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},dl=class extends Oe{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=le.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},fl=class extends Oe{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=le.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},hl=class{constructor(e){this.route=e,this.type=le.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},pl=class{constructor(e){this.route=e,this.type=le.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},gl=class{constructor(e){this.snapshot=e,this.type=le.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ml=class{constructor(e){this.snapshot=e,this.type=le.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yl=class{constructor(e){this.snapshot=e,this.type=le.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vl=class{constructor(e){this.snapshot=e,this.type=le.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Qr=class{},Kr=class{constructor(e){this.url=e}};var Dl=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new is,this.attachRef=null}},is=(()=>{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 Dl,this.contexts.set(r,i)),i}getContext(r){return this.contexts.get(r)||null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Jo=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=wl(e,this._root);return n?n.children.map(r=>r.value):[]}firstChild(e){let n=wl(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){let n=El(e,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return El(e,this._root).map(n=>n.value)}};function wl(t,e){if(t===e.value)return e;for(let n of e.children){let r=wl(t,n);if(r)return r}return null}function El(t,e){if(t===e.value)return[e];for(let n of e.children){let r=El(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 $n(t){let e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e}var es=class extends Jo{constructor(e,n){super(e),this.snapshot=n,Rl(this,e)}toString(){return this.snapshot.toString()}};function jp(t){let e=wC(t),n=new ae([new Yt("",{})]),r=new ae({}),i=new ae({}),o=new ae({}),s=new ae(""),a=new qn(n,r,o,s,i,A,t,e.root);return a.snapshot=e.root,new es(new _e(a,[]),e)}function wC(t){let e={},n={},r={},i="",o=new Yr([],e,r,i,n,A,t,null,{});return new ts("",new _e(o,[]))}var qn=class{constructor(e,n,r,i,o,s,a,u){this.urlSubject=e,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(P(l=>l[Jr]))??M(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(P(e=>Hn(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(P(e=>Hn(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Nl(t,e,n="emptyOnly"){let r,{routeConfig:i}=t;return e!==null&&(n==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?r={params:D(D({},e.params),t.params),data:D(D({},e.data),t.data),resolve:D(D(D(D({},t.data),e.data),i?.data),t._resolvedData)}:r={params:D({},t.params),data:D({},t.data),resolve:D(D({},t.data),t._resolvedData??{})},i&&$p(i)&&(r.resolve[Jr]=i.title),r}var Yr=class{get title(){return this.data?.[Jr]}constructor(e,n,r,i,o,s,a,u,l){this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=l}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??=Hn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Hn(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}')`}},ts=class extends Jo{constructor(e,n){super(n),this.url=e,Rl(this,n)}toString(){return Vp(this._root)}};function Rl(t,e){e.value._routerState=t,e.children.forEach(n=>Rl(t,n))}function Vp(t){let e=t.children.length>0?` { ${t.children.map(Vp).join(", ")} } `:"";return`${t.value}${e}`}function tl(t){if(t.snapshot){let e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,et(e.queryParams,n.queryParams)||t.queryParamsSubject.next(n.queryParams),e.fragment!==n.fragment&&t.fragmentSubject.next(n.fragment),et(e.params,n.params)||t.paramsSubject.next(n.params),KE(e.url,n.url)||t.urlSubject.next(n.url),et(e.data,n.data)||t.dataSubject.next(n.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Cl(t,e){let n=et(t.params,e.params)&&JE(t.url,e.url),r=!t.parent!=!e.parent;return n&&!r&&(!t.parent||Cl(t.parent,e.parent))}function $p(t){return typeof t.title=="string"||t.title===null}var EC=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=A,this.activateEvents=new $e,this.deactivateEvents=new $e,this.attachEvents=new $e,this.detachEvents=new $e,this.parentContexts=v(is),this.location=v(Ro),this.changeDetector=v(kn),this.environmentInjector=v(Re),this.inputBinder=v(Ol,{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,u=this.parentContexts.getOrCreateContext(this.name).children,l=new bl(r,u,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,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=tu({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[wo]});let t=e;return t})(),bl=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===qn?this.route:e===is?this.childContexts:this.parent.get(e,n)}},Ol=new k("");function CC(t,e,n){let r=Zr(t,e._root,n?n._root:void 0);return new es(r,e)}function Zr(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=e.value;let i=bC(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=>Zr(t,a)),s}}let r=IC(e.value),i=e.children.map(o=>Zr(t,o));return new _e(r,i)}}function bC(t,e,n){return e.children.map(r=>{for(let i of n.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Zr(t,r,i);return Zr(t,r)})}function IC(t){return new qn(new ae(t.url),new ae(t.params),new ae(t.queryParams),new ae(t.fragment),new ae(t.data),t.outlet,t.component,t)}var Bp="ngNavigationCancelingError";function Up(t,e){let{redirectTo:n,navigationBehaviorOptions:r}=zn(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=Hp(!1,Me.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function Hp(t,e){let n=new Error(`NavigationCancelingError: ${t||""}`);return n[Bp]=!0,n.cancellationCode=e,n}function SC(t){return zp(t)&&zn(t.url)}function zp(t){return!!t&&t[Bp]}var _C=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=po({type:e,selectors:[["ng-component"]],standalone:!0,features:[ko],decls:1,vars:0,template:function(i,o){i&1&&On(0,"router-outlet")},dependencies:[EC],encapsulation:2});let t=e;return t})();function MC(t,e){return t.providers&&!t._injector&&(t._injector=Fu(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Pl(t){let e=t.children&&t.children.map(Pl),n=e?J(D({},t),{children:e}):D({},t);return!n.component&&!n.loadComponent&&(e||n.loadChildren)&&n.outlet&&n.outlet!==A&&(n.component=_C),n}function tt(t){return t.outlet||A}function TC(t,e){let n=t.filter(r=>tt(r)===e);return n.push(...t.filter(r=>tt(r)!==e)),n}function ei(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 AC=(t,e,n,r)=>P(i=>(new Il(e,i.targetRouterState,i.currentRouterState,n,r).activate(t),i)),Il=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),tl(this.futureState.root),this.activateChildRoutes(n,r,e)}deactivateChildRoutes(e,n,r){let i=$n(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=$n(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=$n(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=$n(n);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new vl(o.value.snapshot))}),e.children.length&&this.forwardEvent(new ml(e.value.snapshot))}activateRoutes(e,n,r){let i=e.value,o=n?n.value:null;if(tl(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),tl(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=ei(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)}},ns=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Un=class{constructor(e,n){this.component=e,this.route=n}};function xC(t,e,n){let r=t._root,i=e?e._root:null;return $r(r,i,n,[r.value])}function NC(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Wn(t,e){let n=Symbol(),r=e.get(t,n);return r===n?typeof t=="function"&&!Qd(t)?t:e.get(t):r}function $r(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=$n(e);return t.children.forEach(s=>{RC(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>zr(a,n.getContext(s),i)),i}function RC(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 u=OC(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new ns(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?$r(t,e,a?a.children:null,r,i):$r(t,e,n,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Un(a.outlet.component,s))}else s&&zr(e,a,i),i.canActivateChecks.push(new ns(r)),o.component?$r(t,null,a?a.children:null,r,i):$r(t,null,n,r,i);return i}function OC(t,e,n){if(typeof n=="function")return n(t,e);switch(n){case"pathParamsChange":return!Zt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Zt(t.url,e.url)||!et(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Cl(t,e)||!et(t.queryParams,e.queryParams);case"paramsChange":default:return!Cl(t,e)}}function zr(t,e,n){let r=$n(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?e?zr(s,e.children.getContext(o),n):zr(s,null,n):zr(s,e,n)}),i.component?e&&e.outlet&&e.outlet.isActivated?n.canDeactivateChecks.push(new Un(e.outlet.component,i)):n.canDeactivateChecks.push(new Un(null,i)):n.canDeactivateChecks.push(new Un(null,i))}function ti(t){return typeof t=="function"}function PC(t){return typeof t=="boolean"}function FC(t){return t&&ti(t.canLoad)}function kC(t){return t&&ti(t.canActivate)}function LC(t){return t&&ti(t.canActivateChild)}function jC(t){return t&&ti(t.canDeactivate)}function VC(t){return t&&ti(t.canMatch)}function qp(t){return t instanceof ot||t?.name==="EmptyError"}var qo=Symbol("INITIAL_VALUE");function Gn(){return Le(t=>Oi(t.map(e=>e.pipe(st(1),Gs(qo)))).pipe(P(e=>{for(let n of e)if(n!==!0){if(n===qo)return qo;if(n===!1||n instanceof St)return n}return!0}),ke(e=>e!==qo),st(1)))}function $C(t,e){return te(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?M(J(D({},n),{guardsResult:!0})):BC(s,r,i,t).pipe(te(a=>a&&PC(a)?UC(r,o,t,e):M(a)),P(a=>J(D({},n),{guardsResult:a})))})}function BC(t,e,n,r){return X(t).pipe(te(i=>WC(i.component,i.route,n,e,r)),Ke(i=>i!==!0,!0))}function UC(t,e,n,r){return X(e).pipe(mn(i=>gn(zC(i.route.parent,r),HC(i.route,r),GC(t,i.path,n),qC(t,i.route,n))),Ke(i=>i!==!0,!0))}function HC(t,e){return t!==null&&e&&e(new yl(t)),M(!0)}function zC(t,e){return t!==null&&e&&e(new gl(t)),M(!0)}function qC(t,e,n){let r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||r.length===0)return M(!0);let i=r.map(o=>Pi(()=>{let s=ei(e)??n,a=Wn(o,s),u=kC(a)?a.canActivate(e,t):qt(s,()=>a(e,t));return Mt(u).pipe(Ke())}));return M(i).pipe(Gn())}function GC(t,e,n){let r=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>NC(s)).filter(s=>s!==null).map(s=>Pi(()=>{let a=s.guards.map(u=>{let l=ei(s.node)??n,c=Wn(u,l),d=LC(c)?c.canActivateChild(r,t):qt(l,()=>c(r,t));return Mt(d).pipe(Ke())});return M(a).pipe(Gn())}));return M(o).pipe(Gn())}function WC(t,e,n,r,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return M(!0);let s=o.map(a=>{let u=ei(e)??i,l=Wn(a,u),c=jC(l)?l.canDeactivate(t,e,n,r):qt(u,()=>l(t,e,n,r));return Mt(c).pipe(Ke())});return M(s).pipe(Gn())}function QC(t,e,n,r){let i=e.canLoad;if(i===void 0||i.length===0)return M(!0);let o=i.map(s=>{let a=Wn(s,t),u=FC(a)?a.canLoad(e,n):qt(t,()=>a(e,n));return Mt(u)});return M(o).pipe(Gn(),Gp(r))}function Gp(t){return Ps(ue(e=>{if(zn(e))throw Up(t,e)}),P(e=>e===!0))}function KC(t,e,n,r){let i=e.canMatch;if(!i||i.length===0)return M(!0);let o=i.map(s=>{let a=Wn(s,t),u=VC(a)?a.canMatch(e,n):qt(t,()=>a(e,n));return Mt(u)});return M(o).pipe(Gn(),Gp(r))}var Xr=class{constructor(e){this.segmentGroup=e||null}},rs=class extends Error{constructor(e){super(),this.urlTree=e}};function Vn(t){return pn(new Xr(t))}function YC(t){return pn(new m(4e3,!1))}function ZC(t){return pn(Hp(!1,Me.GuardRejected))}var Sl=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 M(r);if(i.numberOfChildren>1||!i.children[A])return YC(e.redirectTo);i=i.children[A]}}applyRedirectCommands(e,n,r){let i=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),e,r);if(n.startsWith("/"))throw new rs(i);return i}applyRedirectCreateUrlTree(e,n,r,i){let o=this.createSegmentGroup(e,n.root,r,i);return new St(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,u])=>{s[a]=this.createSegmentGroup(e,u,r,i)}),new U(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}},_l={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function XC(t,e,n,r,i){let o=Fl(t,e,n);return o.matched?(r=MC(e,r),KC(r,e,n,i).pipe(P(s=>s===!0?o:D({},_l)))):M(o)}function Fl(t,e,n){if(e.path==="**")return JC(n);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||n.length>0)?D({},_l):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(e.matcher||QE)(n,t,e);if(!i)return D({},_l);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?D(D({},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 JC(t){return{matched:!0,parameters:t.length>0?Sp(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function bp(t,e,n,r){return n.length>0&&nb(t,n,r)?{segmentGroup:new U(e,tb(r,new U(n,t.children))),slicedSegments:[]}:n.length===0&&rb(t,n,r)?{segmentGroup:new U(t.segments,eb(t,n,r,t.children)),slicedSegments:n}:{segmentGroup:new U(t.segments,t.children),slicedSegments:n}}function eb(t,e,n,r){let i={};for(let o of n)if(os(t,e,o)&&!r[tt(o)]){let s=new U([],{});i[tt(o)]=s}return D(D({},r),i)}function tb(t,e){let n={};n[A]=e;for(let r of t)if(r.path===""&&tt(r)!==A){let i=new U([],{});n[tt(r)]=i}return n}function nb(t,e,n){return n.some(r=>os(t,e,r)&&tt(r)!==A)}function rb(t,e,n){return n.some(r=>os(t,e,r))}function os(t,e,n){return(t.hasChildren()||e.length>0)&&n.pathMatch==="full"?!1:n.path===""}function ib(t,e,n,r){return tt(t)!==r&&(r===A||!os(e,n,t))?!1:Fl(e,t,n).matched}function ob(t,e,n){return e.length===0&&!t.children[n]}var Ml=class{};function sb(t,e,n,r,i,o,s="emptyOnly"){return new Tl(t,e,n,r,i,s,o).recognize()}var ab=31,Tl=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 Sl(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new m(4002,`'${e.segmentGroup}'`)}recognize(){let e=bp(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(P(n=>{let r=new Yr([],Object.freeze({}),Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,{},A,this.rootComponentType,null,{}),i=new _e(r,n),o=new ts("",i),s=hC(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,A).pipe(vt(r=>{if(r instanceof rs)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Xr?this.noMatchError(r):r}))}inheritParamsAndData(e,n){let r=e.value,i=Nl(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(P(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 X(i).pipe(mn(o=>{let s=r.children[o],a=TC(n,o);return this.processSegmentGroup(e,a,s,o)}),qs((o,s)=>(o.push(...s),o)),Dt(null),zs(),te(o=>{if(o===null)return Vn(r);let s=Wp(o);return ub(s),M(s)}))}processSegment(e,n,r,i,o,s){return X(n).pipe(mn(a=>this.processSegmentAgainstRoute(a._injector??e,n,a,r,i,o,s).pipe(vt(u=>{if(u instanceof Xr)return M(null);throw u}))),Ke(a=>!!a),vt(a=>{if(qp(a))return ob(r,i,o)?M(new Ml):Vn(r);throw a}))}processSegmentAgainstRoute(e,n,r,i,o,s,a){return ib(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):Vn(i):Vn(i)}expandSegmentAgainstRouteUsingRedirect(e,n,r,i,o,s){let{matched:a,consumedSegments:u,positionalParamSegments:l,remainingSegments:c}=Fl(n,i,o);if(!a)return Vn(n);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ab&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,l);return this.applyRedirects.lineralizeSegments(i,d).pipe(te(h=>this.processSegment(e,r,n,h.concat(c),s,!1)))}matchSegmentAgainstRoute(e,n,r,i,o){let s=XC(n,r,i,e,this.urlSerializer);return r.path==="**"&&(n.children={}),s.pipe(Le(a=>a.matched?(e=r._injector??e,this.getChildConfig(e,r,i).pipe(Le(({routes:u})=>{let l=r._loadedInjector??e,{consumedSegments:c,remainingSegments:d,parameters:h}=a,f=new Yr(c,h,Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,cb(r),tt(r),r.component??r._loadedComponent??null,r,db(r)),{segmentGroup:p,slicedSegments:g}=bp(n,c,d,u);if(g.length===0&&p.hasChildren())return this.processChildren(l,u,p).pipe(P(C=>C===null?null:new _e(f,C)));if(u.length===0&&g.length===0)return M(new _e(f,[]));let E=tt(r)===o;return this.processSegment(l,u,p,g,E?A:o,!0).pipe(P(C=>new _e(f,C instanceof _e?[C]:[])))}))):Vn(n)))}getChildConfig(e,n,r){return n.children?M({routes:n.children,injector:e}):n.loadChildren?n._loadedRoutes!==void 0?M({routes:n._loadedRoutes,injector:n._loadedInjector}):QC(e,n,r,this.urlSerializer).pipe(te(i=>i?this.configLoader.loadChildren(e,n).pipe(ue(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):ZC(n))):M({routes:[],injector:e})}};function ub(t){t.sort((e,n)=>e.value.outlet===A?-1:n.value.outlet===A?1:e.value.outlet.localeCompare(n.value.outlet))}function lb(t){let e=t.value.routeConfig;return e&&e.path===""}function Wp(t){let e=[],n=new Set;for(let r of t){if(!lb(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=Wp(r.children);e.push(new _e(r.value,i))}return e.filter(r=>!n.has(r))}function cb(t){return t.data||{}}function db(t){return t.resolve||{}}function fb(t,e,n,r,i,o){return te(s=>sb(t,e,n,r,s.extractedUrl,i,o).pipe(P(({state:a,tree:u})=>J(D({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function hb(t,e){return te(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return M(n);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let l of Qp(u))s.add(l);let a=0;return X(s).pipe(mn(u=>o.has(u)?pb(u,r,t,e):(u.data=Nl(u,u.parent,t).resolve,M(void 0))),ue(()=>a++),yn(1),te(u=>a===s.size?M(n):pe))})}function Qp(t){let e=t.children.map(n=>Qp(n)).flat();return[t,...e]}function pb(t,e,n,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!$p(i)&&(o[Jr]=i.title),gb(o,t,e,r).pipe(P(s=>(t._resolvedData=s,t.data=Nl(t,t.parent,n).resolve,null)))}function gb(t,e,n,r){let i=il(t);if(i.length===0)return M({});let o={};return X(i).pipe(te(s=>mb(t[s],e,n,r).pipe(Ke(),ue(a=>{o[s]=a}))),yn(1),Hs(o),vt(s=>qp(s)?pe:pn(s)))}function mb(t,e,n,r){let i=ei(e)??r,o=Wn(t,i),s=o.resolve?o.resolve(e,n):qt(i,()=>o(e,n));return Mt(s)}function nl(t){return Le(e=>{let n=t(e);return n?X(n).pipe(P(()=>e)):M(e)})}var Kp=(()=>{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===A);return i}getResolvedTitleForRoute(r){return r.data[Jr]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:()=>v(yb),providedIn:"root"});let t=e;return t})(),yb=(()=>{let e=class e extends Kp{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)(R(vp))},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),kl=new k("",{providedIn:"root",factory:()=>({})}),Ll=new k(""),vb=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=v(Vu)}loadComponent(r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return M(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=Mt(r.loadComponent()).pipe(P(Yp),ue(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),tr(()=>{this.componentLoaders.delete(r)})),o=new fn(i,()=>new ie).pipe(dn());return this.componentLoaders.set(r,o),o}loadChildren(r,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return M({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=Db(i,this.compiler,r,this.onLoadEndListener).pipe(tr(()=>{this.childrenLoaders.delete(i)})),a=new fn(s,()=>new ie).pipe(dn());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Db(t,e,n,r){return Mt(t.loadChildren()).pipe(P(Yp),te(i=>i instanceof vr||Array.isArray(i)?M(i):X(e.compileModuleAsync(i))),P(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(Ll,[],{optional:!0,self:!0}).flat()),{routes:s.map(Pl),injector:o}}))}function wb(t){return t&&typeof t=="object"&&"default"in t}function Yp(t){return wb(t)?t.default:t}var jl=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:()=>v(Eb),providedIn:"root"});let t=e;return t})(),Eb=(()=>{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=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Cb=new k("");var bb=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ie,this.transitionAbortSubject=new ie,this.configLoader=v(vb),this.environmentInjector=v(Re),this.urlSerializer=v(xl),this.rootContexts=v(is),this.location=v(Fr),this.inputBindingEnabled=v(Ol,{optional:!0})!==null,this.titleStrategy=v(Kp),this.options=v(kl,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=v(jl),this.createViewTransition=v(Cb,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>M(void 0),this.rootComponentType=null;let r=o=>this.events.next(new hl(o)),i=o=>this.events.next(new pl(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=r}complete(){this.transitions?.complete()}handleNavigationRequest(r){let i=++this.navigationId;this.transitions?.next(J(D(D({},this.transitions.value),r),{id:i}))}setupNavigations(r,i,o){return this.transitions=new ae({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:Hr,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ke(s=>s.id!==0),P(s=>J(D({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Le(s=>{let a=!1,u=!1;return M(s).pipe(Le(l=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",Me.SupersededByNewNavigation),pe;this.currentTransition=s,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?J(D({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!r.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=l.extras.onSameUrlNavigation??r.onSameUrlNavigation;if(!c&&d!=="reload"){let h="";return this.events.next(new Jt(l.id,this.urlSerializer.serialize(l.rawUrl),h,ul.IgnoredSameUrlNavigation)),l.resolve(null),pe}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return M(l).pipe(Le(h=>{let f=this.transitions?.getValue();return this.events.next(new Gr(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?pe:Promise.resolve(h)}),fb(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,this.paramsInheritanceStrategy),ue(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=J(D({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let f=new Xo(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:h,extractedUrl:f,source:p,restoredState:g,extras:E}=l,C=new Gr(h,this.urlSerializer.serialize(f),p,g);this.events.next(C);let H=jp(this.rootComponentType).snapshot;return this.currentTransition=s=J(D({},l),{targetSnapshot:H,urlAfterRedirects:f,extras:J(D({},E),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,M(s)}else{let h="";return this.events.next(new Jt(l.id,this.urlSerializer.serialize(l.extractedUrl),h,ul.IgnoredByUrlHandlingStrategy)),l.resolve(null),pe}}),ue(l=>{let c=new ll(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),P(l=>(this.currentTransition=s=J(D({},l),{guards:xC(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),s)),$C(this.environmentInjector,l=>this.events.next(l)),ue(l=>{if(s.guardsResult=l.guardsResult,zn(l.guardsResult))throw Up(this.urlSerializer,l.guardsResult);let c=new cl(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),ke(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",Me.GuardRejected),!1)),nl(l=>{if(l.guards.canActivateChecks.length)return M(l).pipe(ue(c=>{let d=new dl(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),Le(c=>{let d=!1;return M(c).pipe(hb(this.paramsInheritanceStrategy,this.environmentInjector),ue({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(c,"",Me.NoDataFromResolver)}}))}),ue(c=>{let d=new fl(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}))}),nl(l=>{let c=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(ue(f=>{d.component=f}),P(()=>{})));for(let f of d.children)h.push(...c(f));return h};return Oi(c(l.targetSnapshot.root)).pipe(Dt(null),st(1))}),nl(()=>this.afterPreactivation()),Le(()=>{let{currentSnapshot:l,targetSnapshot:c}=s,d=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return d?X(d).pipe(P(()=>s)):M(s)}),P(l=>{let c=CC(r.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s=J(D({},l),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,s}),ue(()=>{this.events.next(new Qr)}),AC(this.rootContexts,r.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),st(1),ue({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Xt(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),Ws(this.transitionAbortSubject.pipe(ue(l=>{throw l}))),tr(()=>{!a&&!u&&this.cancelNavigationTransition(s,"",Me.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),vt(l=>{if(u=!0,zp(l))this.events.next(new _t(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),SC(l)?this.events.next(new Kr(l.url)):s.resolve(!1);else{this.events.next(new Wr(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0));try{s.resolve(r.errorHandler(l))}catch(c){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(c)}}return pe}))}))}cancelNavigationTransition(r,i,o){let s=new _t(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=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ib(t){return t!==Hr}var Sb=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:()=>v(_b),providedIn:"root"});let t=e;return t})(),Al=class{shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}},_b=(()=>{let e=class e extends Al{};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=yu(e)))(o||e)}})(),e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Zp=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:()=>v(Mb),providedIn:"root"});let t=e;return t})(),Mb=(()=>{let e=class e extends Zp{constructor(){super(...arguments),this.location=v(Fr),this.urlSerializer=v(xl),this.options=v(kl,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=v(jl),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new St,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=jp(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 Gr)this.stateMemento=this.createStateMemento();else if(r instanceof Jt)this.rawUrlTree=i.initialUrl;else if(r instanceof Xo){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else r instanceof Qr?(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 _t&&(r.code===Me.GuardRejected||r.code===Me.NoDataFromResolver)?this.restoreHistory(i):r instanceof Wr?this.restoreHistory(i,!0):r instanceof Xt&&(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=D(D({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=D(D({},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=yu(e)))(o||e)}})(),e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Br=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Br||{});function Tb(t,e){t.events.pipe(ke(n=>n instanceof Xt||n instanceof _t||n instanceof Wr||n instanceof Jt),P(n=>n instanceof Xt||n instanceof Jt?Br.COMPLETE:(n instanceof _t?n.code===Me.Redirect||n.code===Me.SupersededByNewNavigation:!1)?Br.REDIRECTING:Br.FAILED),ke(n=>n!==Br.REDIRECTING),st(1)).subscribe(()=>{e()})}function Ab(t){throw t}var xb={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Nb={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Xp=(()=>{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=v(Lo),this.stateManager=v(Zp),this.options=v(kl,{optional:!0})||{},this.pendingTasks=v(Oo),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=v(bb),this.urlSerializer=v(xl),this.location=v(Fr),this.urlHandlingStrategy=v(jl),this._events=new ie,this.errorHandler=this.options.errorHandler||Ab,this.navigated=!1,this.routeReuseStrategy=v(Sb),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=v(Ll,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!v(Ol,{optional:!0}),this.eventsSubscription=new Z,this.isNgZoneEnabled=v(Y)instanceof Y&&Y.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 _t&&i.code!==Me.Redirect&&i.code!==Me.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Xt)this.navigated=!0;else if(i instanceof Kr){let a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),u={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||Ib(o.source)};this.scheduleNavigation(a,Hr,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}Ob(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),Hr,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 l=D({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(s.state=l)}let u=this.parseUrl(r);this.scheduleNavigation(u,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(Pl),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:u,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a,d=null;switch(u){case"merge":d=D(D({},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=Pp(f)}catch{(typeof r[0]!="string"||!r[0].startsWith("/"))&&(r=[]),h=this.currentUrlTree.root}return Fp(h,r,d,c??null)}navigateByUrl(r,i={skipLocationChange:!1}){let o=zn(r)?r:this.parseUrl(r),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Hr,null,i)}navigate(r,i={skipLocationChange:!1}){return Rb(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=D({},xb):i===!1?o=D({},Nb):o=i,zn(r))return Dp(this.currentUrlTree,r,o);let s=this.parseUrl(r);return Dp(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 u,l,c;a?(u=a.resolve,l=a.reject,c=a.promise):c=new Promise((h,f)=>{u=h,l=f});let d=this.pendingTasks.add();return Tb(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:r,extras:s,resolve:u,reject:l,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=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Rb(t){for(let e=0;en.\u0275providers)])}function Fb(t){return t.routerState.root}function kb(){let t=v(Sr);return e=>{let n=t.get(Pr);if(e!==n.components[0])return;let r=t.get(Xp),i=t.get(Lb);t.get(jb)===1&&r.initialNavigation(),t.get(Vb,null,N.Optional)?.setUpPreloading(),t.get(Pb,null,N.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Lb=new k("",{factory:()=>new ie}),jb=new k("",{providedIn:"root",factory:()=>1});var Vb=new k("");var eg=[];var T=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}(T||{}),nt="*";function tg(t,e){return{type:T.Trigger,name:t,definitions:e,options:{}}}function ng(t,e=null){return{type:T.Animate,styles:e,timings:t}}function rg(t,e=null){return{type:T.Sequence,steps:t,options:e}}function Qn(t){return{type:T.Style,styles:t,offset:null}}function Vl(t,e,n){return{type:T.State,name:t,styles:e,options:n}}function ig(t,e,n=null){return{type:T.Transition,expr:t,animation:e,options:n}}var Tt=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}},ni=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}},ss="!";function og(t){return new m(3e3,!1)}function $b(){return new m(3100,!1)}function Bb(){return new m(3101,!1)}function Ub(t){return new m(3001,!1)}function Hb(t){return new m(3003,!1)}function zb(t){return new m(3004,!1)}function qb(t,e){return new m(3005,!1)}function Gb(){return new m(3006,!1)}function Wb(){return new m(3007,!1)}function Qb(t,e){return new m(3008,!1)}function Kb(t){return new m(3002,!1)}function Yb(t,e,n,r,i){return new m(3010,!1)}function Zb(){return new m(3011,!1)}function Xb(){return new m(3012,!1)}function Jb(){return new m(3200,!1)}function e0(){return new m(3202,!1)}function t0(){return new m(3013,!1)}function n0(t){return new m(3014,!1)}function r0(t){return new m(3015,!1)}function i0(t){return new m(3016,!1)}function o0(t,e){return new m(3404,!1)}function s0(t){return new m(3502,!1)}function a0(t){return new m(3503,!1)}function u0(){return new m(3300,!1)}function l0(t){return new m(3504,!1)}function c0(t){return new m(3301,!1)}function d0(t,e){return new m(3302,!1)}function f0(t){return new m(3303,!1)}function h0(t,e){return new m(3400,!1)}function p0(t){return new m(3401,!1)}function g0(t){return new m(3402,!1)}function m0(t,e){return new m(3505,!1)}function At(t){switch(t.length){case 0:return new Tt;case 1:return t[0];default:return new ni(t)}}function Dg(t,e,n=new Map,r=new Map){let i=[],o=[],s=-1,a=null;if(e.forEach(u=>{let l=u.get("offset"),c=l==s,d=c&&a||new Map;u.forEach((h,f)=>{let p=f,g=h;if(f!=="offset")switch(p=t.normalizePropertyName(p,i),g){case ss:g=n.get(f);break;case nt: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=l}),i.length)throw s0(i);return o}function uc(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&$l(n,"start",t)));break;case"done":t.onDone(()=>r(n&&$l(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&$l(n,"destroy",t)));break}}function $l(t,e,n){let r=n.totalTime,i=!!n.disabled,o=lc(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 lc(t,e,n,r,i="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function Ae(t,e,n){let r=t.get(e);return r||t.set(e,r=n),r}function sg(t){let e=t.indexOf(":"),n=t.substring(1,e),r=t.slice(e+1);return[n,r]}var y0=typeof document>"u"?null:document.documentElement;function cc(t){let e=t.parentNode||t.host||null;return e===y0?null:e}function v0(t){return t.substring(1,6)=="ebkit"}var en=null,ag=!1;function D0(t){en||(en=w0()||{},ag=en.style?"WebkitAppearance"in en.style:!1);let e=!0;return en.style&&!v0(t)&&(e=t in en.style,!e&&ag&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in en.style)),e}function w0(){return typeof document<"u"?document.body:null}function wg(t,e){for(;e;){if(e===t)return!0;e=cc(e)}return!1}function Eg(t,e,n){if(n)return Array.from(t.querySelectorAll(e));let r=t.querySelector(e);return r?[r]:[]}var dc=(()=>{let e=class e{validateStyleProperty(r){return D0(r)}matchesElement(r,i){return!1}containsElement(r,i){return wg(r,i)}getParentElement(r){return cc(r)}query(r,i,o){return Eg(r,i,o)}computeStyle(r,i,o){return o||""}animate(r,i,o,s,a,u=[],l){return new Tt(o,s)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac});let t=e;return t})(),gc=class gc{};gc.NOOP=new dc;var rn=gc,on=class{};var E0=1e3,Cg="{{",C0="}}",bg="ng-enter",Gl="ng-leave",as="ng-trigger",fs=".ng-trigger",ug="ng-animating",Wl=".ng-animating";function gt(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ql(parseFloat(e[1]),e[2])}function Ql(t,e){switch(e){case"s":return t*E0;default:return t}}function hs(t,e,n){return t.hasOwnProperty("duration")?t:b0(t,e,n)}function b0(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(og(t)),{duration:0,delay:0,easing:""};i=Ql(parseFloat(a[1]),a[2]);let u=a[3];u!=null&&(o=Ql(parseFloat(u),a[4]));let l=a[5];l&&(s=l)}else i=t;if(!n){let a=!1,u=e.length;i<0&&(e.push($b()),a=!0),o<0&&(e.push(Bb()),a=!0),a&&e.splice(u,0,og(t))}return{duration:i,delay:o,easing:s}}function I0(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function rt(t,e,n){e.forEach((r,i)=>{let o=fc(i);n&&!n.has(i)&&n.set(i,t.style[o]),t.style[o]=r})}function nn(t,e){e.forEach((n,r)=>{let i=fc(r);t.style[i]=""})}function ri(t){return Array.isArray(t)?t.length==1?t[0]:rg(t):t}function S0(t,e,n){let r=e.params||{},i=Ig(t);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||n.push(Ub(o))})}var Kl=new RegExp(`${Cg}\\s*(.+?)\\s*${C0}`,"g");function Ig(t){let e=[];if(typeof t=="string"){let n;for(;n=Kl.exec(t);)e.push(n[1]);Kl.lastIndex=0}return e}function oi(t,e,n){let r=`${t}`,i=r.replace(Kl,(o,s)=>{let a=e[s];return a==null&&(n.push(Hb(s)),a=""),a.toString()});return i==r?t:i}var _0=/-+([a-z0-9])/g;function fc(t){return t.replace(_0,(...e)=>e[1].toUpperCase())}function M0(t,e){return t===0||e===0}function T0(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;os.set(a,hc(t,a)))}}return e}function Te(t,e,n){switch(e.type){case T.Trigger:return t.visitTrigger(e,n);case T.State:return t.visitState(e,n);case T.Transition:return t.visitTransition(e,n);case T.Sequence:return t.visitSequence(e,n);case T.Group:return t.visitGroup(e,n);case T.Animate:return t.visitAnimate(e,n);case T.Keyframes:return t.visitKeyframes(e,n);case T.Style:return t.visitStyle(e,n);case T.Reference:return t.visitReference(e,n);case T.AnimateChild:return t.visitAnimateChild(e,n);case T.AnimateRef:return t.visitAnimateRef(e,n);case T.Query:return t.visitQuery(e,n);case T.Stagger:return t.visitStagger(e,n);default:throw zb(e.type)}}function hc(t,e){return window.getComputedStyle(t)[e]}var A0=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"]),ps=class extends on{normalizePropertyName(e,n){return fc(e)}normalizeStyleValue(e,n,r,i){let o="",s=r.toString().trim();if(A0.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(qb(e,r))}return s+o}};var gs="*";function x0(t,e){let n=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(r=>N0(r,n,e)):n.push(t),n}function N0(t,e,n){if(t[0]==":"){let u=R0(t,n);if(typeof u=="function"){e.push(u);return}t=u}let r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return n.push(r0(t)),e;let i=r[1],o=r[2],s=r[3];e.push(lg(i,s));let a=i==gs&&s==gs;o[0]=="<"&&!a&&e.push(lg(s,i))}function R0(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) *"}}var us=new Set(["true","1"]),ls=new Set(["false","0"]);function lg(t,e){let n=us.has(t)||ls.has(t),r=us.has(e)||ls.has(e);return(i,o)=>{let s=t==gs||t==i,a=e==gs||e==o;return!s&&n&&typeof i=="boolean"&&(s=i?us.has(t):ls.has(t)),!a&&r&&typeof o=="boolean"&&(a=o?us.has(e):ls.has(e)),s&&a}}var Sg=":self",O0=new RegExp(`s*${Sg}s*,?`,"g");function _g(t,e,n,r){return new Yl(t).build(e,n,r)}var cg="",Yl=class{constructor(e){this._driver=e}build(e,n,r){let i=new Zl(n);return this._resetContextStyleTimingState(i),Te(this,ri(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=cg,e.collectedStyles=new Map,e.collectedStyles.set(cg,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(Gb()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==T.State){let u=a,l=u.name;l.toString().split(/\s*,\s*/).forEach(c=>{u.name=c,o.push(this.visitState(u,n))}),u.name=l}else if(a.type==T.Transition){let u=this.visitTransition(a,n);r+=u.queryCount,i+=u.depCount,s.push(u)}else n.errors.push(Wb())}),{type:T.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(u=>{Ig(u).forEach(l=>{s.hasOwnProperty(l)||o.add(l)})})}),o.size&&n.errors.push(Qb(e.name,[...o.values()]))}return{type:T.State,name:e.name,style:r,options:i?{params:i}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;let r=Te(this,ri(e.animation),n),i=x0(e.expr,n.errors);return{type:T.Transition,matchers:i,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:tn(e.options)}}visitSequence(e,n){return{type:T.Sequence,steps:e.steps.map(r=>Te(this,r,n)),options:tn(e.options)}}visitGroup(e,n){let r=n.currentTime,i=0,o=e.steps.map(s=>{n.currentTime=r;let a=Te(this,s,n);return i=Math.max(i,n.currentTime),a});return n.currentTime=i,{type:T.Group,steps:o,options:tn(e.options)}}visitAnimate(e,n){let r=L0(e.timings,n.errors);n.currentAnimateTimings=r;let i,o=e.styles?e.styles:Qn({});if(o.type==T.Keyframes)i=this.visitKeyframes(o,n);else{let s=e.styles,a=!1;if(!s){a=!0;let l={};r.easing&&(l.easing=r.easing),s=Qn(l)}n.currentTime+=r.duration+r.delay;let u=this.visitStyle(s,n);u.isEmptyStep=a,i=u}return n.currentAnimateTimings=null,{type:T.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===nt?r.push(a):n.errors.push(Kb(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 u of a.values())if(u.toString().indexOf(Cg)>=0){o=!0;break}}}),{type:T.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,u)=>{let l=n.collectedStyles.get(n.currentQuerySelector),c=l.get(u),d=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(n.errors.push(Yb(u,c.startTime,c.endTime,o,i)),d=!1),o=c.startTime),d&&l.set(u,{startTime:o,endTime:i}),n.options&&S0(a,n.options,n.errors)})})}visitKeyframes(e,n){let r={type:T.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(Zb()),r;let i=1,o=0,s=[],a=!1,u=!1,l=0,c=e.steps.map(C=>{let H=this._makeStyleAst(C,n),$=H.offset!=null?H.offset:k0(H.styles),z=0;return $!=null&&(o++,z=H.offset=$),u=u||z<0||z>1,a=a||z0&&o{let $=h>0?H==f?1:h*H:s[H],z=$*E;n.currentTime=p+g.delay+z,g.duration=z,this._validateStyleAst(C,n),C.offset=$,r.styles.push(C)}),r}visitReference(e,n){return{type:T.Reference,animation:Te(this,ri(e.animation),n),options:tn(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:T.AnimateChild,options:tn(e.options)}}visitAnimateRef(e,n){return{type:T.AnimateRef,animation:this.visitReference(e.animation,n),options:tn(e.options)}}visitQuery(e,n){let r=n.currentQuerySelector,i=e.options||{};n.queryCount++,n.currentQuery=e;let[o,s]=P0(e.selector);n.currentQuerySelector=r.length?r+" "+o:o,Ae(n.collectedStyles,n.currentQuerySelector,new Map);let a=Te(this,ri(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:T.Query,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:tn(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(t0());let r=e.timings==="full"?{duration:0,delay:0,easing:"full"}:hs(e.timings,n.errors,!0);return{type:T.Stagger,animation:Te(this,ri(e.animation),n),timings:r,options:null}}};function P0(t){let e=!!t.split(/\s*,\s*/).find(n=>n==Sg);return e&&(t=t.replace(O0,"")),t=t.replace(/@\*/g,fs).replace(/@\w+/g,n=>fs+"-"+n.slice(1)).replace(/:animating/g,Wl),[t,e]}function F0(t){return t?D({},t):null}var Zl=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 k0(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 L0(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=hs(t,e).duration;return Bl(o,0,"")}let n=t;if(n.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Bl(0,0,"");return o.dynamic=!0,o.strValue=n,o}let i=hs(n,e);return Bl(i.duration,i.delay,i.easing)}function tn(t){return t?(t=D({},t),t.params&&(t.params=F0(t.params))):t={},t}function Bl(t,e,n){return{duration:t,delay:e,easing:n}}function pc(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 si=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()}},j0=1,V0=":enter",$0=new RegExp(V0,"g"),B0=":leave",U0=new RegExp(B0,"g");function Mg(t,e,n,r,i,o=new Map,s=new Map,a,u,l=[]){return new Xl().buildKeyframes(t,e,n,r,i,o,s,a,u,l)}var Xl=class{buildKeyframes(e,n,r,i,o,s,a,u,l,c=[]){l=l||new si;let d=new Jl(e,n,l,i,o,c,[]);d.options=u;let h=u.delay?gt(u.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,u),Te(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 E=f[g];if(E.element===n){p=E;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,u)}return f.length?f.map(p=>p.buildKeyframes()):[pc(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:gt(oi(o,i?.params??{},n.errors));r.delayNextStep(s)}}}_visitSubInstructions(e,n,r){let o=n.currentTimeline.currentTime,s=r.duration!=null?gt(r.duration):null,a=r.delay!=null?gt(r.delay):null;return s!==0&&e.forEach(u=>{let l=n.appendInstructionToTimeline(u,s,a);o=Math.max(o,l.duration+l.delay)}),o}visitReference(e,n){n.updateOptions(e.options,!0),Te(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==T.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ms);let s=gt(o.delay);i.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>Te(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?gt(e.options.delay):0;e.steps.forEach(s=>{let a=n.createSubContext(e.options);o&&a.delayNextStep(o),Te(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?oi(r,n.params,n.errors):r;return hs(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==T.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(u=>{let l=u.offset||0;a.forwardTime(l*o),a.setStyles(u.styles,u.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?gt(i.delay):0;o&&(n.previousNode.type===T.Style||r==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=ms);let s=r,a=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,n.errors);n.currentQueryTotal=a.length;let u=null;a.forEach((l,c)=>{n.currentQueryIndex=c;let d=n.createSubContext(e.options,l);o&&d.delayNextStep(o),l===n.element&&(u=d.currentTimeline),Te(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),u&&(n.currentTimeline.mergeTimelineCollectedStyles(u),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),u=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":u=a-u;break;case"full":u=r.currentStaggerTime;break}let c=n.currentTimeline;u&&c.delayNextStep(u);let d=c.currentTime;Te(this,e.animation,n),n.previousNode=e,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}},ms={},Jl=class t{constructor(e,n,r,i,o,s,a,u){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=ms,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new ys(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=gt(r.duration)),r.delay!=null&&(i.delay=gt(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]=oi(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=ms,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 ec(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($0,"."+this._enterClassName),e=e.replace(U0,"."+this._leaveClassName);let u=r!=1,l=this._driver.query(this.element,e,u);r!==0&&(l=r<0?l.slice(l.length+r,l.length):l.slice(0,r)),a.push(...l)}return!o&&a.length==0&&s.push(n0(n)),a}},ys=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+=j0,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||nt),this._currentKeyframe.set(n,nt);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,i){n&&this._previousKeyframe.set("easing",n);let o=i&&i.params||{},s=H0(e,this._globalTimelineStyles);for(let[a,u]of s){let l=oi(u,o,r);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??nt),this._updateStyle(a,l)}}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,u)=>{let l=new Map([...this._backFill,...a]);l.forEach((c,d)=>{c===ss?e.add(d):c===nt&&n.add(d)}),r||l.set("offset",u/this.duration),i.push(l)});let o=[...e.values()],s=[...n.values()];if(r){let a=i[0],u=new Map(a);a.set("offset",0),u.set("offset",1),i=[a,u]}return pc(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}},ec=class extends ys{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,u=new Map(e[0]);u.set("offset",0),o.push(u);let l=new Map(e[0]);l.set("offset",dg(a)),o.push(l);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",dg(p/s)),o.push(h)}r=s,n=0,i="",e=o}return pc(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}};function dg(t,e=3){let n=Math.pow(10,e-1);return Math.round(t*n)/n}function H0(t,e){let n=new Map,r;return t.forEach(i=>{if(i==="*"){r??=e.keys();for(let o of r)n.set(o,nt)}else for(let[o,s]of i)n.set(o,s)}),n}function fg(t,e,n,r,i,o,s,a,u,l,c,d,h){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:d,errors:h}}var Ul={},vs=class{constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,i){return z0(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,u,l,c){let d=[],h=this.ast.options&&this.ast.options.params||Ul,f=a&&a.params||Ul,p=this.buildStyles(r,f,d),g=u&&u.params||Ul,E=this.buildStyles(i,g,d),C=new Set,H=new Map,$=new Map,z=i==="void",Ce={params:Tg(g,h),delay:this.ast.options?.delay},Q=c?[]:Mg(e,n,this.ast.animation,o,s,p,E,Ce,l,d),K=0;return Q.forEach(ne=>{K=Math.max(ne.duration+ne.delay,K)}),d.length?fg(n,this._triggerName,r,i,z,p,E,[],[],H,$,K,d):(Q.forEach(ne=>{let it=ne.element,mt=Ae(H,it,new Set);ne.preStyleProps.forEach(xt=>mt.add(xt));let mc=Ae($,it,new Set);ne.postStyleProps.forEach(xt=>mc.add(xt)),it!==n&&C.add(it)}),fg(n,this._triggerName,r,i,z,p,E,Q,[...C.values()],H,$,K))}};function z0(t,e,n,r,i){return t.some(o=>o(e,n,r,i))}function Tg(t,e){let n=D({},e);return Object.entries(t).forEach(([r,i])=>{i!=null&&(n[r]=i)}),n}var tc=class{constructor(e,n,r){this.styles=e,this.defaultParams=n,this.normalizer=r}buildStyles(e,n){let r=new Map,i=Tg(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=oi(s,i,n));let u=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,u,s,n),r.set(a,s)})}),r}};function q0(t,e,n){return new nc(t,e,n)}var nc=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 tc(i.style,o,r))}),hg(this.states,"true","1"),hg(this.states,"false","0"),n.transitions.forEach(i=>{this.transitionFactories.push(new vs(e,i,this.states))}),this.fallbackTransition=G0(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 G0(t,e,n){let r=[(s,a)=>!0],i={type:T.Sequence,steps:[],options:null},o={type:T.Transition,animation:i,matchers:r,options:null,queryCount:0,depCount:0};return new vs(t,o,e)}function hg(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 W0=new si,rc=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=_g(this._driver,n,r,i);if(r.length)throw a0(r);i.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,n,r){let i=e.element,o=Dg(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=Mg(this._driver,n,o,bg,Gl,new Map,new Map,r,W0,i),s.forEach(c=>{let d=Ae(a,c.element,new Map);c.postStyleProps.forEach(h=>d.set(h,null))})):(i.push(u0()),s=[]),i.length)throw l0(i);a.forEach((c,d)=>{c.forEach((h,f)=>{c.set(f,this._driver.computeStyle(d,f,nt))})});let u=s.map(c=>{let d=a.get(c.element);return this._buildPlayer(c,new Map,d)}),l=At(u);return this._playersById.set(e,l),l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}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 c0(e);return n}listen(e,n,r,i){let o=lc(n,"","","");return uc(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}}},pg="ng-animate-queued",Q0=".ng-animate-queued",Hl="ng-animate-disabled",K0=".ng-animate-disabled",Y0="ng-star-inserted",Z0=".ng-star-inserted",X0=[],Ag={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},J0={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ge="__ng_removed",ai=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=tI(i),r){let o=e,{value:s}=o,a=bc(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])})}}},ii="void",zl=new ai(ii),ic=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,Pe(n,this._hostClassName)}listen(e,n,r,i){if(!this._triggers.has(n))throw d0(r,n);if(r==null||r.length==0)throw f0(n);if(!nI(r))throw h0(r,n);let o=Ae(this._elementListeners,e,[]),s={name:n,phase:r,callback:i};o.push(s);let a=Ae(this._engine.statesByElement,e,new Map);return a.has(n)||(Pe(e,as),Pe(e,as+"-"+n),a.set(n,zl)),()=>{this._engine.afterFlush(()=>{let u=o.indexOf(s);u>=0&&o.splice(u,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 p0(e);return n}trigger(e,n,r,i=!0){let o=this._getTrigger(n),s=new ui(this.id,n,e),a=this._engine.statesByElement.get(e);a||(Pe(e,as),Pe(e,as+"-"+n),this._engine.statesByElement.set(e,a=new Map));let u=a.get(n),l=new ai(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),a.set(n,l),u||(u=zl),!(l.value===ii)&&u.value===l.value){if(!oI(u.params,l.params)){let g=[],E=o.matchStyles(u.value,u.params,g),C=o.matchStyles(l.value,l.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{nn(e,E),rt(e,C)})}return}let h=Ae(this._engine.playersByElement,e,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==n&&g.queued&&g.destroy()});let f=o.matchTransition(u.value,l.value,e,l.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:u,toState:l,player:s,isFallbackTransition:p}),p||(Pe(e,pg),s.onStart(()=>{Kn(e,pg)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);let E=this._engine.playersByElement.get(e);if(E){let C=E.indexOf(s);C>=0&&E.splice(C,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,fs,!0);r.forEach(i=>{if(i[Ge])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((u,l)=>{if(s.set(l,u.value),this._triggers.has(l)){let c=this.trigger(e,l,ii,i);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,s),r&&At(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 u=this._triggers.get(s).fallbackTransition,l=r.get(s)||zl,c=new ai(ii),d=new ui(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:u,fromState:l,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[Ge];(!o||o===Ag)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,n))}}insertNode(e,n){Pe(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 u=lc(o,r.triggerName,r.fromState.value,r.toState.value);u._data=e,uc(r.player,a.phase,u,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)}},oc=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 ic(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 u=i.get(a);if(u){let l=r.indexOf(u);r.splice(l+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(cs(n)){let o=this._fetchNamespace(e);if(o)return o.trigger(n,r,i),!0}return!1}insertNode(e,n,r,i){if(!cs(n))return;let o=n[Ge];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),Pe(e,Hl)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Kn(e,Hl))}removeNode(e,n,r){if(cs(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[Ge]={namespaceId:e,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,n,r,i,o){return cs(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,fs,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(e,Wl,!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 At(this.players).onDone(()=>e());e()})}processLeaveNode(e){let n=e[Ge];if(n&&n.setForRemoval){if(e[Ge]=Ag,n.namespaceId){this.destroyInnerAnimations(e);let r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}e.classList?.contains(Hl)&&this.markElementAsDisabled(e,!1),this.driver.query(e,K0,!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;rr()),this._flushFns=[],this._whenQuietFns.length){let r=this._whenQuietFns;this._whenQuietFns=[],n.length?At(n).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(e){throw g0(e)}_flushAnimations(e,n){let r=new si,i=[],o=new Map,s=[],a=new Map,u=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(y=>{c.add(y);let w=this.driver.query(y,Q0,!0);for(let b=0;b{let b=bg+g++;p.set(w,b),y.forEach(V=>Pe(V,b))});let E=[],C=new Set,H=new Set;for(let y=0;yC.add(V)):H.add(w))}let $=new Map,z=yg(h,Array.from(C));z.forEach((y,w)=>{let b=Gl+g++;$.set(w,b),y.forEach(V=>Pe(V,b))}),e.push(()=>{f.forEach((y,w)=>{let b=p.get(w);y.forEach(V=>Kn(V,b))}),z.forEach((y,w)=>{let b=$.get(w);y.forEach(V=>Kn(V,b))}),E.forEach(y=>{this.processLeaveNode(y)})});let Ce=[],Q=[];for(let y=this._namespaceList.length-1;y>=0;y--)this._namespaceList[y].drainQueuedTransitions(n).forEach(b=>{let V=b.player,re=b.element;if(Ce.push(V),this.collectedEnterElements.length){let ce=re[Ge];if(ce&&ce.setForMove){if(ce.previousTriggersValues&&ce.previousTriggersValues.has(b.triggerName)){let Nt=ce.previousTriggersValues.get(b.triggerName),xe=this.statesByElement.get(b.element);if(xe&&xe.has(b.triggerName)){let li=xe.get(b.triggerName);li.value=Nt,xe.set(b.triggerName,li)}}V.destroy();return}}let We=!d||!this.driver.containsElement(d,re),be=$.get(re),yt=p.get(re),W=this._buildInstruction(b,r,yt,be,We);if(W.errors&&W.errors.length){Q.push(W);return}if(We){V.onStart(()=>nn(re,W.fromStyles)),V.onDestroy(()=>rt(re,W.toStyles)),i.push(V);return}if(b.isFallbackTransition){V.onStart(()=>nn(re,W.fromStyles)),V.onDestroy(()=>rt(re,W.toStyles)),i.push(V);return}let Dc=[];W.timelines.forEach(ce=>{ce.stretchStartingKeyframe=!0,this.disabledNodes.has(ce.element)||Dc.push(ce)}),W.timelines=Dc,r.append(re,W.timelines);let kg={instruction:W,player:V,element:re};s.push(kg),W.queriedElements.forEach(ce=>Ae(a,ce,[]).push(V)),W.preStyleProps.forEach((ce,Nt)=>{if(ce.size){let xe=u.get(Nt);xe||u.set(Nt,xe=new Set),ce.forEach((li,Is)=>xe.add(Is))}}),W.postStyleProps.forEach((ce,Nt)=>{let xe=l.get(Nt);xe||l.set(Nt,xe=new Set),ce.forEach((li,Is)=>xe.add(Is))})});if(Q.length){let y=[];Q.forEach(w=>{y.push(m0(w.triggerName,w.errors))}),Ce.forEach(w=>w.destroy()),this.reportError(y)}let K=new Map,ne=new Map;s.forEach(y=>{let w=y.element;r.has(w)&&(ne.set(w,w),this._beforeAnimationBuild(y.player.namespaceId,y.instruction,K))}),i.forEach(y=>{let w=y.element;this._getPreviousPlayers(w,!1,y.namespaceId,y.triggerName,null).forEach(V=>{Ae(K,w,[]).push(V),V.destroy()})});let it=E.filter(y=>vg(y,u,l)),mt=new Map;mg(mt,this.driver,H,l,nt).forEach(y=>{vg(y,u,l)&&it.push(y)});let xt=new Map;f.forEach((y,w)=>{mg(xt,this.driver,new Set(y),u,ss)}),it.forEach(y=>{let w=mt.get(y),b=xt.get(y);mt.set(y,new Map([...w?.entries()??[],...b?.entries()??[]]))});let bs=[],yc=[],vc={};s.forEach(y=>{let{element:w,player:b,instruction:V}=y;if(r.has(w)){if(c.has(w)){b.onDestroy(()=>rt(w,V.toStyles)),b.disabled=!0,b.overrideTotalTime(V.totalTime),i.push(b);return}let re=vc;if(ne.size>1){let be=w,yt=[];for(;be=be.parentNode;){let W=ne.get(be);if(W){re=W;break}yt.push(be)}yt.forEach(W=>ne.set(W,re))}let We=this._buildAnimation(b.namespaceId,V,K,o,xt,mt);if(b.setRealPlayer(We),re===vc)bs.push(b);else{let be=this.playersByElement.get(re);be&&be.length&&(b.parentPlayer=At(be)),i.push(b)}}else nn(w,V.fromStyles),b.onDestroy(()=>rt(w,V.toStyles)),yc.push(b),c.has(w)&&i.push(b)}),yc.forEach(y=>{let w=o.get(y.element);if(w&&w.length){let b=At(w);y.setRealPlayer(b)}}),i.forEach(y=>{y.parentPlayer?y.syncPlayerEvents(y.parentPlayer):y.destroy()});for(let y=0;y!We.destroyed);re.length?rI(this,w,re):this.processLeaveNode(w)}return E.length=0,bs.forEach(y=>{this.players.push(y),y.onDone(()=>{y.destroy();let w=this.players.indexOf(y);this.players.splice(w,1)}),y.play()}),bs}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 u=!o||o==ii;a.forEach(l=>{l.queued||!u&&l.triggerName!=i||s.push(l)})}}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 u of n.timelines){let l=u.element,c=l!==o,d=Ae(r,l,[]);this._getPreviousPlayers(l,c,s,a,n.toState).forEach(f=>{let p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}nn(o,n.fromStyles)}_buildAnimation(e,n,r,i,o,s){let a=n.triggerName,u=n.element,l=[],c=new Set,d=new Set,h=n.timelines.map(p=>{let g=p.element;c.add(g);let E=g[Ge];if(E&&E.removedBeforeQueried)return new Tt(p.duration,p.delay);let C=g!==u,H=iI((r.get(g)||X0).map(K=>K.getRealPlayer())).filter(K=>{let ne=K;return ne.element?ne.element===g:!1}),$=o.get(g),z=s.get(g),Ce=Dg(this._normalizer,p.keyframes,$,z),Q=this._buildPlayer(p,Ce,H);if(p.subTimeline&&i&&d.add(g),C){let K=new ui(e,a,g);K.setRealPlayer(Q),l.push(K)}return Q});l.forEach(p=>{Ae(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>eI(this.playersByQueriedElement,p.element,p))}),c.forEach(p=>Pe(p,ug));let f=At(h);return f.onDestroy(()=>{c.forEach(p=>Kn(p,ug)),rt(u,n.toStyles)}),d.forEach(p=>{Ae(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 Tt(e.duration,e.delay)}},ui=class{constructor(e,n,r){this.namespaceId=e,this.triggerName=n,this.element=r,this._player=new Tt,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=>uc(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){Ae(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 eI(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 tI(t){return t??null}function cs(t){return t&&t.nodeType===1}function nI(t){return t=="start"||t=="done"}function gg(t,e){let n=t.style.display;return t.style.display=e??"none",n}function mg(t,e,n,r,i){let o=[];n.forEach(u=>o.push(gg(u)));let s=[];r.forEach((u,l)=>{let c=new Map;u.forEach(d=>{let h=e.computeStyle(l,d,i);c.set(d,h),(!h||h.length==0)&&(l[Ge]=J0,s.push(l))}),t.set(l,c)});let a=0;return n.forEach(u=>gg(u,o[a++])),s}function yg(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 u=o.get(a);if(u)return u;let l=a.parentNode;return n.has(l)?u=l:i.has(l)?u=r:u=s(l),o.set(a,u),u}return e.forEach(a=>{let u=s(a);u!==r&&n.get(u).push(a)}),n}function Pe(t,e){t.classList?.add(e)}function Kn(t,e){t.classList?.remove(e)}function rI(t,e,n){At(n).onDone(()=>t.processLeaveNode(e))}function iI(t){let e=[];return xg(t,e),e}function xg(t,e){for(let n=0;ni.add(o)):e.set(t,r),n.delete(t),!0}var Zn=class{constructor(e,n,r,i){this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new oc(e.body,n,r,i),this._timelineEngine=new rc(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 u=[],l=[],c=_g(this._driver,o,u,l);if(u.length)throw o0(i,u);l.length&&void 0,a=q0(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]=sg(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]=sg(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 sI(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=ql(e[0]),e.length>1&&(r=ql(e[e.length-1]))):e instanceof Map&&(n=ql(e)),n||r?new sc(t,n,r):null}var Yn=class Yn{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let i=Yn.initialStylesByElement.get(e);i||Yn.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&rt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(rt(this._element,this._initialStyles),this._endStyles&&(rt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Yn.initialStylesByElement.delete(this._element),this._startStyles&&(nn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(nn(this._element,this._endStyles),this._endStyles=null),rt(this._element,this._initialStyles),this._state=3)}};Yn.initialStylesByElement=new WeakMap;var sc=Yn;function ql(t){let e=null;return t.forEach((n,r)=>{aI(r)&&(e=e||new Map,e.set(r,n))}),e}function aI(t){return t==="display"||t==="position"}var Ds=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:hc(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let n=e==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},ws=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,n){return!1}containsElement(e,n){return wg(e,n)}getParentElement(e){return cc(e)}query(e,n,r){return Eg(e,n,r)}computeStyle(e,n,r){return hc(e,n)}animate(e,n,r,i,o,s=[]){let a=i==0?"both":"forwards",u={duration:r,delay:i,fill:a};o&&(u.easing=o);let l=new Map,c=s.filter(f=>f instanceof Ds);M0(r,i)&&c.forEach(f=>{f.currentSnapshot.forEach((p,g)=>l.set(g,p))});let d=I0(n).map(f=>new Map(f));d=T0(e,d,l);let h=sI(e,d);return new Ds(e,d,u,h)}};var ds="@",Ng="@.disabled",Es=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)==ds&&n==Ng?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)}},ac=class extends Es{constructor(e,n,r,i,o){super(n,r,i,o),this.factory=e,this.namespaceId=n}setProperty(e,n,r){n.charAt(0)==ds?n.charAt(1)=="."&&n==Ng?(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)==ds){let i=uI(e),o=n.slice(1),s="";return o.charAt(0)!=ds&&([o,s]=lI(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{let u=a._data||-1;this.factory.scheduleListenerCallback(u,r,a)})}return this.delegate.listen(e,n,r)}};function uI(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function lI(t){let e=t.indexOf("."),n=t.substring(0,e),r=t.slice(e+1);return[n,r]}var Cs=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 l=this._rendererCache,c=l.get(i);if(!c){let d=()=>l.delete(i);c=new Es(r,i,this.engine,d),l.set(i,c)}return c}let o=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(o,s,e,l.name,l)};return n.data.animation.forEach(a),new ac(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&&en(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 dI=(()=>{let e=class e extends Zn{constructor(r,i,o){super(r,i,o,v(mr,{optional:!0}))}ngOnDestroy(){this.flush()}};e.\u0275fac=function(i){return new(i||e)(R(Ee),R(rn),R(on))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let t=e;return t})();function fI(){return new ps}function hI(t,e,n){return new Cs(t,e,n)}var Rg=[{provide:on,useFactory:fI},{provide:Zn,useClass:dI},{provide:Ht,useFactory:hI,deps:[Uo,Zn,Y]}],pI=[{provide:rn,useFactory:()=>new ws},{provide:Eu,useValue:"BrowserAnimations"},...Rg],IR=[{provide:rn,useClass:dc},{provide:Eu,useValue:"NoopAnimations"},...Rg];function Og(){return Nn("NgEagerAnimations"),[...pI]}var Pg={providers:[Jp(eg),Og()]};function gI(t,e){t&1&&(oe(0,"p"),he(1,"\u0423\u0440\u0430! \u0422\u044B \u043E\u0442\u043A\u0440\u044B\u043B\u0430 \u0432\u0441\u0435 \u0441\u0443\u043D\u0434\u0443\u043A\u0438!"),se())}function mI(t,e){t&1&&he(0,"\u043E\u0432")}function yI(t,e){t&1&&he(0,"a")}function vI(t,e){if(t&1&&(oe(0,"p"),he(1,"\u0422\u044B \u043C\u043E\u0436\u0435\u0448\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u044C "),oe(2,"strong"),he(3),se(),he(4," \u0441\u0443\u043D\u0434\u0443\u043A"),It(5,mI,1,0)(6,yI,1,0),se()),t&2){let n=Pn();we(3),xr(n.availableToOpen),we(2),Tr(5,n.availableToOpen>=5?5:n.availableToOpen>1&&n.availableToOpen<5?6:-1)}}function DI(t,e){if(t&1){let n=ku();oe(0,"li")(1,"div",4),Ar("click",function(){let i=lu(n).$implicit,o=Pn(2);return cu(o.openCheast(i))}),oe(2,"strong",5),he(3),se()(),oe(4,"div",6)(5,"span"),he(6,"\u{1F512}"),se(),oe(7,"div",7),he(8),se()()()}if(t&2){let n=e.$implicit,r=e.$index,i=Pn();we(),Fo("opened",n.opened)("disabled",!n.opened&&i.availableToOpen===0),we(2),xr(r+1),we(5),Nr(" ",i.countDown," ")}}function wI(t,e){if(t&1&&(oe(0,"div")(1,"div",8)(2,"strong",9),he(3),se(),oe(4,"h1"),he(5),se(),On(6,"p",10),se()()),t&2){let n=e;we(3),xr(n==null?null:n.id),we(2),Nr("\u041F\u043E\u0434\u0430\u0440\u043E\u0447\u0435\u043A \u043E\u0442 ",n==null?null:n.title,""),we(),Po("innerHtml",n==null?null:n.text,fh)}}function EI(t,e){if(t&1){let n=ku();oe(0,"header")(1,"div",0),he(2,"\u2665\uFE0F"),se(),oe(3,"h1"),he(4,"\u0421 \u0414\u043D\u0435\u043C \u0420\u043E\u0436\u0434\u0435\u043D\u0438\u044F!"),se(),oe(5,"p"),he(6,"\u041A\u0430\u0436\u0434\u044B\u0439 \u0447\u0430\u0441 \u0442\u044B \u043C\u043E\u0436\u0435\u0448\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043B\u044E\u0431\u043E\u0439 \u043D\u043E\u0432\u044B\u0439 \u0441\u0443\u043D\u0434\u0443\u043A. \u041D\u0430\u0436\u043C\u0438 \u043D\u0430 \u043D\u0435\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0438 \u0443\u0432\u0438\u0434\u0435\u0442\u044C \u0438\u043D\u0441\u0442\u0440\u0443\u043A\u0446\u0438\u044E, \u0433\u0434\u0435 \u0441\u043F\u0440\u044F\u0442\u0430\u043D \u0441\u044E\u0440\u043F\u0440\u0438\u0437!"),se(),It(7,gI,2,0,"p")(8,vI,7,2),se(),On(9,"h1"),oe(10,"ul",1),Gh(11,DI,9,6,"li",null,qh),se(),oe(13,"div",2),Rr(14,"async"),It(15,wI,7,3,"div"),Rr(16,"async"),oe(17,"button",3),Rr(18,"async"),Ar("click",function(){lu(n);let i=Pn();return cu(i.modalSubject.next(null))}),he(19,"\u0417\u0430\u043A\u0440\u044B\u0442\u044C "),se()()}if(t&2){let n,r=e,i=Pn();we(7),Tr(7,r.openedItems>=i.cheasts.length?7:r.availableToOpen>0?8:-1),we(4),Wh(i.cheasts),we(2),Po("@openClose",!!Or(14,5,i.modalSubject)),we(2),Tr(15,(n=Or(16,7,i.modalSubject))?15:-1,n),we(2),Fo("hidden",!Or(18,9,i.modalSubject))}}var Fg=(()=>{let e=class e{constructor(){this.startDate=new Date("2024-09-07T05:00:00.000Z"),this.clickSubject=new ie,this.modalSubject=new ie,this.cheasts=[{id:"1",opened:!1,date:this.startDate,title:"\u0422\u0438\u043C\u043E\u0448\u043A\u0438",text:"\u041F\u043E\u0434\u0430\u0440\u043E\u043A \u0432\u043E\u0442 \u0432\u043E\u0442 \u0443\u043B\u0435\u0442\u0438\u0442 \u0432 \u043A\u043E\u0441\u043C\u043E\u0441 \u043D\u0430 \u0448\u0430\u0442\u043B\u0435! \u041D\u0443\u0436\u043D\u043E \u043F\u043E\u0441\u043F\u0435\u0448\u0438\u0442\u044C!"},{id:"2",opened:!1,date:this.startDate,title:"\u042D\u043B\u044C\u0444\u044B \u0438 \u041A\u0430\u0441\u0438",text:"\u0412\u043E\u0442 \u0442\u0435\u0431\u0435 \u043F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0430 \u0433\u0434\u0435 \u0438\u0441\u043A\u0430\u0442\u044C:
\u{1F9B4}\u{1F9B4}\u{1F9B4}Ca Ca Cammmmper \u{1F9B4}\u{1F9B4}\u{1F9B4}"},{id:"3",opened:!1,date:new Date,title:"\u0410\u043D\u0434\u0440\u0435\u044F \u0438 \u0421\u0430\u0448\u0438",text:`\u041E\u043E\u043E\u043E!!! +\u0410 \u0445\u0442\u043E \u0442\u0443\u0442 \u0437\u0430\u0445\u043E\u0442\u0456\u0432 \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0438\u0439 \u043F\u043E\u0434\u0430\u0440\u0443\u043D\u043E\u0447\u043E\u043A? \u0410 \u0446\u0435 \u043D\u0430\u0448\u0430 \u0456\u043C\u0435\u043D\u0438\u043D\u043D\u0438\u0446\u044F!!!

\u0410\u043B\u0435!

\u0412\u0441\u0435 \u043D\u0435 \u0442\u0430\u043A \u043B\u0435\u0433\u043A\u043E \u0456 \u043D\u0435 \u0442\u0430\u043A \u0432\u0430\u0436\u043A\u043E!

\u0417\u0433\u0430\u0434\u0430\u0439 \u0434\u0438\u0442\u0438\u043D\u0441\u0442\u0432\u043E \u0456 \u0440\u043E\u0437\u0433\u0430\u0434\u0430\u0439 \u0440\u0435\u0431\u0443\u0441

\u{1F4E9} \u27A1\uFE0F X1 = \u{1F381}`},{id:"4",opened:!1,date:new Date,title:"\u0415\u0433\u043E\u0440\u043A\u0438",text:'\u041F\u043E\u0437\u0432\u043E\u043D\u0438 \u043F\u043E \u043D\u043E\u043C\u0435\u0440\u0443 +380979242920 \u0438 \u0441\u043A\u0430\u0436\u0438 \u043A\u043E\u0434\u043E\u0432\u0443\u044E \u0444\u0440\u0430\u0437\u0443 "\u041E\u0442\u0442\u043E \u043F\u0440\u043E\u0441\u0438\u043B \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C, \u0447\u0442\u043E \u0432\u0447\u0435\u0440\u0430 \u0432\u0435\u0447\u0435\u0440\u043E\u043C \u043E\u043D \u0436\u0434\u0430\u043B \u0432\u0430\u0448\u0435\u0433\u043E \u0437\u0432\u043E\u043D\u043A\u0430" \u0447\u0442\u043E \u0431\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u0430\u043B\u044C\u043D\u0435\u0439\u0448\u0438\u0435 \u0438\u043D\u0441\u0442\u0440\u0443\u043A\u0446\u0438\u0438!'},{id:"5",opened:!1,date:new Date,title:"\u0421\u0435\u043C\u044C\u0438",text:"\u041F\u043E\u0434\u0430\u0440\u043E\u043A \u043C\u043E\u0436\u043D\u043E \u043D\u0430\u0439\u0442\u0438 \u043F\u043E\u0434 \u0442\u0435\u043F\u043B\u044B\u043C\u0438 \u043D\u043E\u0441\u043A\u0430\u043C\u0438 \u043C\u0443\u0436\u0430."},{id:"6",opened:!1,date:new Date,title:"\u041C\u0430\u043C\u044B",text:"\u041D\u0430\u0439\u0442\u0438 \u043F\u043E\u0434\u0430\u0440\u043E\u043A \u0442\u0435\u0431\u0435 \u043F\u043E\u043C\u043E\u0436\u0435\u0442 \u0437\u0430\u0433\u0430\u0434\u043A\u0430:

\u0423 \u043D\u0435\u0433\u043E \u0435\u0441\u0442\u044C \u043F\u0435\u0440\u044C\u044F \u0438 \u0433\u043E\u043B\u043E\u0432\u043A\u0430,
\u0422\u043E\u043B\u044C\u043A\u043E \u0435\u0441\u0442\u044C \u0435\u0433\u043E \u043F\u0440\u0438 \u0432\u0441\u0435\u0445 \u043D\u0435\u043B\u043E\u0432\u043A\u043E,
\u041E\u0447\u0435\u043D\u044C \u0437\u043B\u044B\u043C \u0438 \u043A\u0440\u0435\u043F\u043A\u0438\u043C \u0431\u0443\u0434\u0435\u0442 \u0434\u0443\u0445,
\u0415\u0441\u043B\u0438 \u043A\u0443\u0448\u0430\u0442\u044C \u0431\u0443\u0434\u0435\u0448\u044C \u0441\u0432\u0435\u0436\u0438\u0439..."},{id:"7",opened:!1,date:new Date,title:"\u0414\u0438\u043C\u044B \u0438 \u042E\u043B\u0438",text:"\u0417\u043D\u0430\u0439\u0434\u0438 \u0441\u0432\u0456\u0439 \u043F\u043E\u0434\u0430\u0440\u0443\u043D\u043E\u043A \u043F\u0456\u0434 \u043D\u0430\u0448\u043E\u044E \u0432\u0438\u043C\u043E\u0441\u0442\u043A\u043E\u044E!"}],this.tick$=Us(this.clickSubject,Bs(0,1e3)).pipe(P(()=>{let r=this.calculateAvailable()>this.cheasts.length?this.cheasts.length:this.calculateAvailable(),i=this.cheasts.filter(s=>s.opened).length,o=r-i;return{availableToOpen:o<0?0:o,openedItems:i,countDown:this.calculateCountDown(r)}}))}ngOnInit(){this.fillDatesNstatus()}openCheast(r){r.opened=!0;let o=this.cheasts.filter(s=>s.opened).map(s=>s.id);localStorage.setItem("openedCheasts",JSON.stringify(o)),this.clickSubject.next(null),this.modalSubject.next(r)}calculateAvailable(){let i=Math.floor((new Date().getTime()-this.startDate.getTime())/(60*60*1e3));return i>0?i:0}calculateCountDown(r){let i=new Date,o=this.cheasts[r]?.date.getTime()-i.getTime(),s=Math.floor(o/1e3%60),a=Math.floor(o/(1e3*60)%60),u=Math.floor(o/(1e3*60*60)%24);return u=u<10?"0"+u:u,a=a<10?"0"+a:a,s=s<10?"0"+s:s,u+":"+a+":"+s}fillDatesNstatus(){let r=JSON.parse(localStorage.getItem("openedCheasts")||"[]"),i=1;this.cheasts.forEach(o=>{let s=!!r.find(a=>a===o.id);o.date=new Date(this.startDate.getTime()+i*60*60*1e3),o.opened=s,i++})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=po({type:e,selectors:[["app-root"]],standalone:!0,features:[ko],decls:2,vars:3,consts:[[1,"heart"],[1,"chests"],[1,"modal"],["type","button",1,"close-button",3,"click"],[1,"content",3,"click"],[1,"num"],[1,"lock"],[1,"countdown"],[1,"white"],[1,"num","big"],[3,"innerHtml"]],template:function(i,o){if(i&1&&(It(0,EI,20,11),Rr(1,"async")),i&2){let s;Tr(0,(s=Or(1,1,o.tick$))?0:-1,s)}},dependencies:[zu,lp],styles:['[_nghost-%COMP%]{max-width:380px;margin:0 auto;display:block}header[_ngcontent-%COMP%]{padding:48px 30px 30px}header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#e95d00;font-size:32px;padding-bottom:28px;letter-spacing:-.2px}p[_ngcontent-%COMP%]{line-height:22px;letter-spacing:-.2px;padding-bottom:10px}.heart[_ngcontent-%COMP%]{font-size:64px;padding-bottom:32px;font-family:Roboto-Regular,sans-serif}.chests[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;padding:0 13px}.chests[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{width:50%;flex-basis:50%;position:relative}.chests[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding-top:143px;margin-bottom:33px;background:url("./media/chest-OFREJPXF.png") 50% 0 no-repeat;background-size:144px 144px}.chests[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .content.opened[_ngcontent-%COMP%]{background-image:url("./media/chest-open-C5URLUCI.png")}.chests[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .content.disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}.chests[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .content.disabled[_ngcontent-%COMP%] + .lock[_ngcontent-%COMP%]{display:block}.num[_ngcontent-%COMP%]{display:inline-block;background-color:#ffc240;border-radius:50%;width:42px;height:42px;line-height:40px;font-size:24px}.num.big[_ngcontent-%COMP%]{width:56px;height:56px;font-size:32px;line-height:54px;margin-bottom:30px}.lock[_ngcontent-%COMP%]{display:none;position:absolute;top:0;left:0;width:100%}.lock[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:56px;padding:30px 0 7px;font-family:Roboto-Regular,sans-serif;display:block}.lock[_ngcontent-%COMP%] .countdown[_ngcontent-%COMP%]{display:inline-block;background-color:#95938a;color:#fff;font-family:OpenSans-Bold,Arial,sans-serif;font-size:12px;padding:4px 7px;border-radius:12px}.modal[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;bottom:0;left:0;z-index:1;background-color:#dacdbe;overflow:auto}.modal[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-bottom:10px}.modal[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:pre-line}.modal[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin:0 auto;width:384px;padding:120px 16px 16px;position:relative}.modal[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;top:0;left:0;z-index:2;pointer-events:none;width:100%;height:256px;background:url("./media/chest-open-big-O2RMSLDO.png") 50% 0 no-repeat;background-size:256px 256px}.white[_ngcontent-%COMP%]{background-color:#fff;border-radius:80px 80px 16px 16px;padding:140px 24px 100px;min-height:calc(100vh - 140px);font-size:16px;line-height:22px}.close-button[_ngcontent-%COMP%]{position:fixed;bottom:32px;left:calc(50% - 160px);width:320px;height:56px;padding-bottom:2px;border:none;background-color:#e95d00;border-radius:28px;color:#fff;font-size:20px;letter-spacing:-.2px;font-family:OpenSans-Bold,Arial,sans-serif}.close-button.hidden[_ngcontent-%COMP%]{display:none}'],data:{animation:[tg("openClose",[Vl("true",Qn({height:"100%",opacity:"1"})),Vl("false",Qn({height:"0px",opacity:"0"})),ig("false <=> true",ng(250))])]}});let t=e;return t})();yp(Fg,Pg).catch(t=>console.error(t)); diff --git a/browser/main-ZO527BGJ.js b/browser/main-ZO527BGJ.js deleted file mode 100644 index 295b485..0000000 --- a/browser/main-ZO527BGJ.js +++ /dev/null @@ -1,7 +0,0 @@ -var dg=Object.defineProperty,fg=Object.defineProperties;var hg=Object.getOwnPropertyDescriptors;var si=Object.getOwnPropertySymbols;var cc=Object.prototype.hasOwnProperty,dc=Object.prototype.propertyIsEnumerable;var lc=(t,e,n)=>e in t?dg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,D=(t,e)=>{for(var n in e||={})cc.call(e,n)&&lc(t,n,e[n]);if(si)for(var n of si(e))dc.call(e,n)&&lc(t,n,e[n]);return t},J=(t,e)=>fg(t,hg(e));var fc=(t,e)=>{var n={};for(var r in t)cc.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&si)for(var r of si(t))e.indexOf(r)<0&&dc.call(t,r)&&(n[r]=t[r]);return n};var hc=null;var gs=1,pc=Symbol("SIGNAL");function O(t){let e=hc;return hc=t,e}var gc={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 pg(t){if(!(vs(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===gs)){if(!t.producerMustRecompute(t)&&!ms(t)){t.dirty=!1,t.lastCleanEpoch=gs;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=gs}}function mc(t){return t&&(t.nextProducerIndex=0),O(t)}function yc(t,e){if(O(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(vs(t))for(let n=t.nextProducerIndex;nt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function ms(t){ai(t);for(let e=0;e0}function ai(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function gg(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function mg(){throw new Error}var yg=mg;function Dc(t){yg=t}function _(t){return typeof t=="function"}function rn(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 ui=rn(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 xt(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var Z=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))try{r()}catch(o){e=o instanceof ui?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{wc(o)}catch(s){e=e??[],s instanceof ui?e=[...e,...s.errors]:e.push(s)}}if(e)throw new ui(e)}}add(e){var n;if(e&&e!==this)if(this.closed)wc(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)&&xt(n,e)}remove(e){let{_finalizers:n}=this;n&&xt(n,e),e instanceof t&&e._removeParent(this)}};Z.EMPTY=(()=>{let t=new Z;return t.closed=!0,t})();var Ds=Z.EMPTY;function li(t){return t instanceof Z||t&&"closed"in t&&_(t.remove)&&_(t.add)&&_(t.unsubscribe)}function wc(t){_(t)?t():t.unsubscribe()}var Fe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var on={setTimeout(t,e,...n){let{delegate:r}=on;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=on;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function ci(t){on.setTimeout(()=>{let{onUnhandledError:e}=Fe;if(e)e(t);else throw t})}function Yn(){}var Ec=ws("C",void 0,void 0);function Cc(t){return ws("E",void 0,t)}function bc(t){return ws("N",t,void 0)}function ws(t,e,n){return{kind:t,value:e,error:n}}var Nt=null;function sn(t){if(Fe.useDeprecatedSynchronousErrorHandling){let e=!Nt;if(e&&(Nt={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=Nt;if(Nt=null,n)throw r}}else t()}function Ic(t){Fe.useDeprecatedSynchronousErrorHandling&&Nt&&(Nt.errorThrown=!0,Nt.error=t)}var Rt=class extends Z{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,li(e)&&e.add(this)):this.destination=wg}static create(e,n,r){return new an(e,n,r)}next(e){this.isStopped?Cs(bc(e),this):this._next(e)}error(e){this.isStopped?Cs(Cc(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Cs(Ec,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()}}},vg=Function.prototype.bind;function Es(t,e){return vg.call(t,e)}var bs=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){di(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){di(r)}else di(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){di(n)}}},an=class extends Rt{constructor(e,n,r){super();let i;if(_(e)||!e)i={next:e??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&Fe.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Es(e.next,o),error:e.error&&Es(e.error,o),complete:e.complete&&Es(e.complete,o)}):i=e}this.destination=new bs(i)}};function di(t){Fe.useDeprecatedSynchronousErrorHandling?Ic(t):ci(t)}function Dg(t){throw t}function Cs(t,e){let{onStoppedNotification:n}=Fe;n&&on.setTimeout(()=>n(t,e))}var wg={closed:!0,next:Yn,error:Dg,complete:Yn};var un=typeof Symbol=="function"&&Symbol.observable||"@@observable";function be(t){return t}function Is(...t){return Ss(t)}function Ss(t){return t.length===0?be:t.length===1?t[0]:function(n){return t.reduce((r,i)=>i(r),n)}}var B=(()=>{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=Cg(n)?n:new an(n,r,i);return sn(()=>{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=Sc(r),new r((i,o)=>{let s=new an({next:a=>{try{n(a)}catch(u){o(u),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)}[un](){return this}pipe(...n){return Ss(n)(this)}toPromise(n){return n=Sc(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 Sc(t){var e;return(e=t??Fe.Promise)!==null&&e!==void 0?e:Promise}function Eg(t){return t&&_(t.next)&&_(t.error)&&_(t.complete)}function Cg(t){return t&&t instanceof Rt||Eg(t)&&li(t)}function _s(t){return _(t?.lift)}function L(t){return e=>{if(_s(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 j(t,e,n,r,i){return new Ms(t,e,n,r,i)}var Ms=class extends Rt{constructor(e,n,r,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){e.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){e.error(u)}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 ln(){return L((t,e)=>{let n=null;t._refCount++;let r=j(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 cn=class extends B{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,_s(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 Z;let n=this.getSubject();e.add(this.source.subscribe(j(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=Z.EMPTY)}return e}refCount(){return ln()(this)}};var _c=rn(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var oe=(()=>{class t extends B{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new fi(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new _c}next(n){sn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){sn(()=>{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(){sn(()=>{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?Ds:(this.currentObservers=null,o.push(n),new Z(()=>{this.currentObservers=null,xt(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new B;return n.source=this,n}}return t.create=(e,n)=>new fi(e,n),t})(),fi=class extends oe{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:Ds}};var ae=class extends oe{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 Ts={now(){return(Ts.delegate||Date).now()},delegate:void 0};var hi=class extends Z{constructor(e,n){super()}schedule(e,n=0){return this}};var Zn={setInterval(t,e,...n){let{delegate:r}=Zn;return r?.setInterval?r.setInterval(t,e,...n):setInterval(t,e,...n)},clearInterval(t){let{delegate:e}=Zn;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var pi=class extends hi{constructor(e,n){super(e,n),this.scheduler=e,this.work=n,this.pending=!1}schedule(e,n=0){var r;if(this.closed)return this;this.state=e;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(o,this.id,n),this}requestAsyncId(e,n,r=0){return Zn.setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&Zn.clearInterval(n)}execute(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(e,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,n){let r=!1,i;try{this.work(e)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:e,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,xt(r,this),e!=null&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,super.unsubscribe()}}};var dn=class t{constructor(e,n=t.now){this.schedulerActionCtor=e,this.now=n}schedule(e,n=0,r){return new this.schedulerActionCtor(this,e).schedule(r,n)}};dn.now=Ts.now;var gi=class extends dn{constructor(e,n=dn.now){super(e,n),this.actions=[],this._active=!1}flush(e){let{actions:n}=this;if(this._active){n.push(e);return}let r;this._active=!0;do if(r=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,r){for(;e=n.shift();)e.unsubscribe();throw r}}};var bg=new gi(pi),Mc=bg;var pe=new B(t=>t.complete());function mi(t){return t&&_(t.schedule)}function As(t){return t[t.length-1]}function Tc(t){return _(As(t))?t.pop():void 0}function We(t){return mi(As(t))?t.pop():void 0}function Ac(t,e){return typeof As(t)=="number"?t.pop():e}function Nc(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{l(r.next(c))}catch(d){s(d)}}function u(c){try{l(r.throw(c))}catch(d){s(d)}}function l(c){c.done?o(c.value):i(c.value).then(a,u)}l((r=r.apply(t,e||[])).next())})}function xc(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 Ot(t){return this instanceof Ot?(this.v=t,this):new Ot(t)}function Rc(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(E,C){o.push([f,g,E,C])>1||u(f,g)})},p&&(i[f]=p(i[f])))}function u(f,p){try{l(r[f](p))}catch(g){h(o[0][3],g)}}function l(f){f.value instanceof Ot?Promise.resolve(f.value.v).then(c,d):h(o[0][2],f)}function c(f){u("next",f)}function d(f){u("throw",f)}function h(f,p){f(p),o.shift(),o.length&&u(o[0][0],o[0][1])}}function Oc(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 xc=="function"?xc(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,u){s=t[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(l){o({value:l,done:a})},s)}}var yi=t=>t&&typeof t.length=="number"&&typeof t!="function";function vi(t){return _(t?.then)}function Di(t){return _(t[un])}function wi(t){return Symbol.asyncIterator&&_(t?.[Symbol.asyncIterator])}function Ei(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 Ig(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ci=Ig();function bi(t){return _(t?.[Ci])}function Ii(t){return Rc(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:i}=yield Ot(n.read());if(i)return yield Ot(void 0);yield yield Ot(r)}}finally{n.releaseLock()}})}function Si(t){return _(t?.getReader)}function ee(t){if(t instanceof B)return t;if(t!=null){if(Di(t))return Sg(t);if(yi(t))return _g(t);if(vi(t))return Mg(t);if(wi(t))return Pc(t);if(bi(t))return Tg(t);if(Si(t))return Ag(t)}throw Ei(t)}function Sg(t){return new B(e=>{let n=t[un]();if(_(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function _g(t){return new B(e=>{for(let n=0;n{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,ci)})}function Tg(t){return new B(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function Pc(t){return new B(e=>{xg(t,e).catch(n=>e.error(n))})}function Ag(t){return Pc(Ii(t))}function xg(t,e){var n,r,i,o;return Nc(this,void 0,void 0,function*(){try{for(n=Oc(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 ye(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 _i(t,e=0){return L((n,r)=>{n.subscribe(j(r,i=>ye(r,t,()=>r.next(i),e),()=>ye(r,t,()=>r.complete(),e),i=>ye(r,t,()=>r.error(i),e)))})}function Mi(t,e=0){return L((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function Fc(t,e){return ee(t).pipe(Mi(e),_i(e))}function kc(t,e){return ee(t).pipe(Mi(e),_i(e))}function Lc(t,e){return new B(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function jc(t,e){return new B(n=>{let r;return ye(n,e,()=>{r=t[Ci](),ye(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?.return)&&r.return()})}function Ti(t,e){if(!t)throw new Error("Iterable cannot be null");return new B(n=>{ye(n,e,()=>{let r=t[Symbol.asyncIterator]();ye(n,e,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Vc(t,e){return Ti(Ii(t),e)}function $c(t,e){if(t!=null){if(Di(t))return Fc(t,e);if(yi(t))return Lc(t,e);if(vi(t))return kc(t,e);if(wi(t))return Ti(t,e);if(bi(t))return jc(t,e);if(Si(t))return Vc(t,e)}throw Ei(t)}function X(t,e){return e?$c(t,e):ee(t)}function M(...t){let e=We(t);return X(t,e)}function fn(t,e){let n=_(t)?t:()=>t,r=i=>i.error(n());return new B(e?i=>e.schedule(r,0,i):r)}function xs(t){return!!t&&(t instanceof B||_(t.lift)&&_(t.subscribe))}var ot=rn(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Bc(t){return t instanceof Date&&!isNaN(t)}function P(t,e){return L((n,r)=>{let i=0;n.subscribe(j(r,o=>{r.next(t.call(e,o,i++))}))})}var{isArray:Ng}=Array;function Rg(t,e){return Ng(e)?t(...e):t(e)}function Uc(t){return P(e=>Rg(t,e))}var{isArray:Og}=Array,{getPrototypeOf:Pg,prototype:Fg,keys:kg}=Object;function Hc(t){if(t.length===1){let e=t[0];if(Og(e))return{args:e,keys:null};if(Lg(e)){let n=kg(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function Lg(t){return t&&typeof t=="object"&&Pg(t)===Fg}function zc(t,e){return t.reduce((n,r,i)=>(n[r]=e[i],n),{})}function Ai(...t){let e=We(t),n=Tc(t),{args:r,keys:i}=Hc(t);if(r.length===0)return X([],e);let o=new B(jg(r,e,i?s=>zc(i,s):be));return n?o.pipe(Uc(n)):o}function jg(t,e,n=be){return r=>{qc(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let u=0;u{let l=X(t[u],e),c=!1;l.subscribe(j(r,d=>{o[u]=d,c||(c=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function qc(t,e,n){t?ye(n,t,e):e()}function Gc(t,e,n,r,i,o,s,a){let u=[],l=0,c=0,d=!1,h=()=>{d&&!u.length&&!l&&e.complete()},f=g=>l{o&&e.next(g),l++;let E=!1;ee(n(g,c++)).subscribe(j(e,C=>{i?.(C),o?f(C):e.next(C)},()=>{E=!0},void 0,()=>{if(E)try{for(l--;u.length&&lp(C)):p(C)}h()}catch(C){e.error(C)}}))};return t.subscribe(j(e,f,()=>{d=!0,h()})),()=>{a?.()}}function te(t,e,n=1/0){return _(e)?te((r,i)=>P((o,s)=>e(r,o,i,s))(ee(t(r,i))),n):(typeof e=="number"&&(n=e),L((r,i)=>Gc(r,i,t,n)))}function Xn(t=1/0){return te(be,t)}function Wc(){return Xn(1)}function hn(...t){return Wc()(X(t,We(t)))}function xi(t){return new B(e=>{ee(t()).subscribe(e)})}function Ns(t=0,e,n=Mc){let r=-1;return e!=null&&(mi(e)?n=e:r=e),new B(i=>{let o=Bc(t)?+t-n.now():t;o<0&&(o=0);let s=0;return n.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function Rs(...t){let e=We(t),n=Ac(t,1/0),r=t;return r.length?r.length===1?ee(r[0]):Xn(n)(X(r,e)):pe}function ke(t,e){return L((n,r)=>{let i=0;n.subscribe(j(r,o=>t.call(e,o,i++)&&r.next(o)))})}function mt(t){return L((e,n)=>{let r=null,i=!1,o;r=e.subscribe(j(n,void 0,void 0,s=>{o=ee(t(s,mt(t)(e))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function Qc(t,e,n,r,i){return(o,s)=>{let a=n,u=e,l=0;o.subscribe(j(s,c=>{let d=l++;u=a?t(u,c,d):(a=!0,c),r&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function pn(t,e){return _(e)?te(t,e,1):te(t,1)}function yt(t){return L((e,n)=>{let r=!1;e.subscribe(j(n,i=>{r=!0,n.next(i)},()=>{r||n.next(t),n.complete()}))})}function st(t){return t<=0?()=>pe:L((e,n)=>{let r=0;e.subscribe(j(n,i=>{++r<=t&&(n.next(i),t<=r&&n.complete())}))})}function Os(t){return P(()=>t)}function Ni(t=Vg){return L((e,n)=>{let r=!1;e.subscribe(j(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(t())))})}function Vg(){return new ot}function Jn(t){return L((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}function Qe(t,e){let n=arguments.length>=2;return r=>r.pipe(t?ke((i,o)=>t(i,o,r)):be,st(1),n?yt(e):Ni(()=>new ot))}function gn(t){return t<=0?()=>pe:L((e,n)=>{let r=[];e.subscribe(j(n,i=>{r.push(i),t{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function Ps(t,e){let n=arguments.length>=2;return r=>r.pipe(t?ke((i,o)=>t(i,o,r)):be,gn(1),n?yt(e):Ni(()=>new ot))}function Fs(t,e){return L(Qc(t,e,arguments.length>=2,!0))}function ks(...t){let e=We(t);return L((n,r)=>{(e?hn(t,n,e):hn(t,n)).subscribe(r)})}function Le(t,e){return L((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(j(r,u=>{i?.unsubscribe();let l=0,c=o++;ee(t(u,c)).subscribe(i=j(r,d=>r.next(e?e(u,d,c,l++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Ls(t){return L((e,n)=>{ee(t).subscribe(j(n,()=>n.complete(),Yn)),!n.closed&&e.subscribe(n)})}function ue(t,e,n){let r=_(t)||e||n?{next:t,error:e,complete:n}:t;return r?L((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(j(o,u=>{var l;(l=r.next)===null||l===void 0||l.call(r,u),o.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),o.complete()},u=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,u),o.error(u)},()=>{var u,l;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):be}var Bg="https://g.co/ng/security#xss",m=class extends Error{constructor(e,n){super(La(e,n)),this.code=e}};function La(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function no(t){return{toString:t}.toString()}var er=globalThis;function q(t){for(let e in t)if(t[e]===q)return e;throw Error("Could not find renamed property on target object.")}function De(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(De).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 Kc(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var Ug=q({__forward_ref__:q});function Ad(t){return t.__forward_ref__=Ad,t.toString=function(){return De(this())},t}function Ne(t){return xd(t)?t():t}function xd(t){return typeof t=="function"&&t.hasOwnProperty(Ug)&&t.__forward_ref__===Ad}function S(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Dr(t){return{providers:t.providers||[],imports:t.imports||[]}}function ro(t){return Yc(t,Rd)||Yc(t,Od)}function Nd(t){return ro(t)!==null}function Yc(t,e){return t.hasOwnProperty(e)?t[e]:null}function Hg(t){let e=t&&(t[Rd]||t[Od]);return e||null}function Zc(t){return t&&(t.hasOwnProperty(Xc)||t.hasOwnProperty(zg))?t[Xc]:null}var Rd=q({\u0275prov:q}),Xc=q({\u0275inj:q}),Od=q({ngInjectableDef:q}),zg=q({ngInjectorDef:q}),k=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=S({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Pd(t){return t&&!!t.\u0275providers}var qg=q({\u0275cmp:q}),Gg=q({\u0275dir:q}),Wg=q({\u0275pipe:q}),Qg=q({\u0275mod:q}),ji=q({\u0275fac:q}),tr=q({__NG_ELEMENT_ID__:q}),Jc=q({__NG_ENV_ID__:q});function Fd(t){return typeof t=="string"?t:t==null?"":String(t)}function Kg(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Fd(t)}function Yg(t,e){let n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new m(-200,t)}function ja(t,e){throw new m(-201,!1)}var N=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}(N||{}),Xs;function kd(){return Xs}function ve(t){let e=Xs;return Xs=t,e}function Ld(t,e,n){let r=ro(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&N.Optional)return null;if(e!==void 0)return e;ja(t,"Injector")}var Zg={},nr=Zg,Xg="__NG_DI_FLAG__",Vi="ngTempTokenPath",Jg="ngTokenPath",em=/\n/gm,tm="\u0275",ed="__source",Dn;function nm(){return Dn}function vt(t){let e=Dn;return Dn=t,e}function rm(t,e=N.Default){if(Dn===void 0)throw new m(-203,!1);return Dn===null?Ld(t,void 0,e):Dn.get(t,e&N.Optional?null:void 0,e)}function R(t,e=N.Default){return(kd()||rm)(Ne(t),e)}function v(t,e=N.Default){return R(t,io(e))}function io(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Js(t){let e=[];for(let n=0;n ");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):De(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(em,` - `)}`}function Ft(t,e){let n=t.hasOwnProperty(ji);return n?t[ji]:null}function Va(t,e){t.forEach(n=>Array.isArray(n)?Va(n,e):e(n))}function jd(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function $i(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function am(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 um(t,e,n){let r=wr(t,e);return r>=0?t[r|1]=n:(r=~r,am(t,r,e,n)),r}function js(t,e){let n=wr(t,e);if(n>=0)return t[n|1]}function wr(t,e){return lm(t,e,1)}function lm(t,e,n){let r=0,i=t.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=t[o<e?i=o:r=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[c+1].toLowerCase(),r&2&&l!==d){if(je(r))return!1;s=!0}}}}return je(r)||s}function je(t){return(t&1)===0}function mm(t,e,n,r){if(e===null)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!je(s)&&(e+=nd(o,i),i=""),r=s,o=o||!je(r);n++}return i!==""&&(e+=nd(o,i)),e}function Em(t){return t.map(wm).join(",")}function Cm(t){let e=[],n=[],r=1,i=2;for(;r{let e=Qd(t),n=J(D({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Bd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ze.Emulated,styles:t.styles||Ve,_:null,schemas:t.schemas||null,tView:null,id:""});Kd(n);let r=t.dependencies;return n.directiveDefs=id(r,!1),n.pipeDefs=id(r,!0),n.id=Sm(n),n})}function bm(t){return kt(t)||zd(t)}function Im(t){return t!==null}function Er(t){return no(()=>({type:t.type,bootstrap:t.bootstrap||Ve,declarations:t.declarations||Ve,imports:t.imports||Ve,exports:t.exports||Ve,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function rd(t,e){if(t==null)return rr;let n={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r],o,s,a=wt.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(n[o]=a!==wt.None?[r,a]:r,e[o]=s):n[o]=r}return n}function Ua(t){return no(()=>{let e=Qd(t);return Kd(e),e})}function Hd(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 kt(t){return t[qg]||null}function zd(t){return t[Gg]||null}function qd(t){return t[Wg]||null}function Gd(t){let e=kt(t)||zd(t)||qd(t);return e!==null?e.standalone:!1}function Wd(t,e){let n=t[Qg]||null;if(!n&&e===!0)throw new Error(`Type ${De(t)} does not have '\u0275mod' property.`);return n}function Qd(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||rr,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Ve,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:rd(t.inputs,e),outputs:rd(t.outputs),debugInfo:null}}function Kd(t){t.features?.forEach(e=>e(t))}function id(t,e){if(!t)return null;let n=e?qd:bm;return()=>(typeof t=="function"?t():t).map(r=>n(r)).filter(Im)}function Sm(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 so(t){return{\u0275providers:t}}function _m(...t){return{\u0275providers:Yd(!0,t),\u0275fromNgModule:!0}}function Yd(t,...e){let n=[],r=new Set,i,o=s=>{n.push(s)};return Va(e,s=>{let a=s;ta(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&Zd(i,o),n}function Zd(t,e){for(let n=0;n{e(o,r)})}}function ta(t,e,n,r){if(t=Ne(t),!t)return!1;let i=null,o=Zc(t),s=!o&&kt(t);if(!o&&!s){let u=t.ngModule;if(o=Zc(u),o)i=u;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 u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of u)ta(l,e,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let l;try{Va(o.imports,c=>{ta(c,e,n,r)&&(l||=[],l.push(c))})}finally{}l!==void 0&&Zd(l,e)}if(!a){let l=Ft(i)||(()=>new i);e({provide:i,useFactory:l,deps:Ve},i),e({provide:$d,useValue:i,multi:!0},i),e({provide:Cn,useValue:()=>R(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let l=t;Ha(u,c=>{e(c,l)})}}else return!1;return i!==t&&t.providers!==void 0}function Ha(t,e){for(let n of t)Pd(n)&&(n=n.\u0275providers),Array.isArray(n)?Ha(n,e):e(n)}var Mm=q({provide:String,useValue:q});function Xd(t){return t!==null&&typeof t=="object"&&Mm in t}function Tm(t){return!!(t&&t.useExisting)}function Am(t){return!!(t&&t.useFactory)}function na(t){return typeof t=="function"}var ao=new k(""),Oi={},xm={},Vs;function za(){return Vs===void 0&&(Vs=new Bi),Vs}var Re=class{},ir=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,ia(e,s=>this.processProvider(s)),this.records.set(Vd,mn(void 0,this)),i.has("environment")&&this.records.set(Re,mn(void 0,this));let o=this.records.get(ao);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get($d,Ve,N.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=O(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(),O(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let n=vt(this),r=ve(void 0),i;try{return e()}finally{vt(n),ve(r)}}get(e,n=nr,r=N.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Jc))return e[Jc](this);r=io(r);let i,o=vt(this),s=ve(void 0);try{if(!(r&N.SkipSelf)){let u=this.records.get(e);if(u===void 0){let l=km(e)&&ro(e);l&&this.injectableDefInScope(l)?u=mn(ra(e),Oi):u=null,this.records.set(e,u)}if(u!=null)return this.hydrate(e,u)}let a=r&N.Self?za():this.parent;return n=r&N.Optional&&n===nr?null:n,a.get(e,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Vi]=a[Vi]||[]).unshift(De(e)),o)throw a;return om(a,e,"R3InjectorError",this.source)}else throw a}finally{ve(s),vt(o)}}resolveInjectorInitializers(){let e=O(null),n=vt(this),r=ve(void 0),i;try{let o=this.get(Cn,Ve,N.Self);for(let s of o)s()}finally{vt(n),ve(r),O(e)}}toString(){let e=[],n=this.records;for(let r of n.keys())e.push(De(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new m(205,!1)}processProvider(e){e=Ne(e);let n=na(e)?e:Ne(e&&e.provide),r=Rm(e);if(!na(e)&&e.multi===!0){let i=this.records.get(n);i||(i=mn(void 0,Oi,!0),i.factory=()=>Js(i.multi),this.records.set(n,i)),n=e,i.multi.push(e)}this.records.set(n,r)}hydrate(e,n){let r=O(null);try{return n.value===Oi&&(n.value=xm,n.value=n.factory()),typeof n.value=="object"&&n.value&&Fm(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{O(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=Ne(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 ra(t){let e=ro(t),n=e!==null?e.factory:Ft(t);if(n!==null)return n;if(t instanceof k)throw new m(204,!1);if(t instanceof Function)return Nm(t);throw new m(204,!1)}function Nm(t){if(t.length>0)throw new m(204,!1);let n=Hg(t);return n!==null?()=>n.factory(t):()=>new t}function Rm(t){if(Xd(t))return mn(void 0,t.useValue);{let e=Om(t);return mn(e,Oi)}}function Om(t,e,n){let r;if(na(t)){let i=Ne(t);return Ft(i)||ra(i)}else if(Xd(t))r=()=>Ne(t.useValue);else if(Am(t))r=()=>t.useFactory(...Js(t.deps||[]));else if(Tm(t))r=()=>R(Ne(t.useExisting));else{let i=Ne(t&&(t.useClass||t.provide));if(Pm(t))r=()=>new i(...Js(t.deps));else return Ft(i)||ra(i)}return r}function mn(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Pm(t){return!!t.deps}function Fm(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function km(t){return typeof t=="function"||typeof t=="object"&&t instanceof k}function ia(t,e){for(let n of t)Array.isArray(n)?ia(n,e):n&&Pd(n)?ia(n.\u0275providers,e):e(n)}function Ht(t,e){t instanceof ir&&t.assertNotDestroyed();let n,r=vt(t),i=ve(void 0);try{return e()}finally{vt(r),ve(i)}}function Lm(){return kd()!==void 0||nm()!=null}function jm(t){return typeof t=="function"}var lt=0,x=1,I=2,he=3,Be=4,He=5,or=6,sr=7,fe=8,bn=9,Xe=10,me=11,ar=12,od=13,Mn=14,Ue=15,uo=16,yn=17,In=18,lo=19,Jd=20,Dt=21,$s=22,Lt=23,Ie=25,ef=1;var jt=7,Ui=8,Hi=9,ge=10,qa=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(qa||{});function wn(t){return Array.isArray(t)&&typeof t[ef]=="object"}function ct(t){return Array.isArray(t)&&t[ef]===!0}function tf(t){return(t.flags&4)!==0}function co(t){return t.componentOffset>-1}function Ga(t){return(t.flags&1)===1}function Cr(t){return!!t.template}function Vm(t){return(t[I]&512)!==0}var oa=class{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function nf(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}function fo(){return rf}function rf(t){return t.type.prototype.ngOnChanges&&(t.setInput=Bm),$m}fo.ngInherit=!0;function $m(){let t=sf(this),e=t?.current;if(e){let n=t.previous;if(n===rr)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function Bm(t,e,n,r,i){let o=this.declaredInputs[r],s=sf(t)||Um(t,{previous:rr,current:null}),a=s.current||(s.current={}),u=s.previous,l=u[o];a[o]=new oa(l&&l.currentValue,n,u===rr),nf(t,e,i,n)}var of="__ngSimpleChanges__";function sf(t){return t[of]||null}function Um(t,e){return t[of]=e}var sd=null;var Ke=function(t,e,n){sd?.(t,e,n)},Hm="svg",zm="math",qm=!1;function Gm(){return qm}function Je(t){for(;Array.isArray(t);)t=t[lt];return t}function af(t,e){return Je(e[t])}function ze(t,e){return Je(e[t.index])}function Wa(t,e){return t.data[e]}function Wm(t,e){return t[e]}function zt(t,e){let n=e[t];return wn(n)?n:n[lt]}function Qa(t){return(t[I]&128)===128}function Qm(t){return ct(t[he])}function zi(t,e){return e==null?null:t[e]}function uf(t){t[yn]=0}function Km(t){t[I]&1024||(t[I]|=1024,Qa(t)&&ur(t))}function Ym(t,e){for(;t>0;)e=e[Mn],t--;return e}function Ka(t){return!!(t[I]&9216||t[Lt]?.dirty)}function sa(t){t[Xe].changeDetectionScheduler?.notify(1),Ka(t)?ur(t):t[I]&64&&(Gm()?(t[I]|=1024,ur(t)):t[Xe].changeDetectionScheduler?.notify())}function ur(t){t[Xe].changeDetectionScheduler?.notify();let e=lr(t);for(;e!==null&&!(e[I]&8192||(e[I]|=8192,!Qa(e)));)e=lr(e)}function lf(t,e){if((t[I]&256)===256)throw new m(911,!1);t[Dt]===null&&(t[Dt]=[]),t[Dt].push(e)}function Zm(t,e){if(t[Dt]===null)return;let n=t[Dt].indexOf(e);n!==-1&&t[Dt].splice(n,1)}function lr(t){let e=t[he];return ct(e)?e[he]:e}var F={lFrame:mf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Xm(){return F.lFrame.elementDepthCount}function Jm(){F.lFrame.elementDepthCount++}function ey(){F.lFrame.elementDepthCount--}function cf(){return F.bindingsEnabled}function ty(){return F.skipHydrationRootTNode!==null}function ny(t){return F.skipHydrationRootTNode===t}function ry(){F.skipHydrationRootTNode=null}function W(){return F.lFrame.lView}function dt(){return F.lFrame.tView}function Ya(t){return F.lFrame.contextLView=t,t[fe]}function Za(t){return F.lFrame.contextLView=null,t}function ft(){let t=df();for(;t!==null&&t.type===64;)t=t.parent;return t}function df(){return F.lFrame.currentTNode}function iy(){let t=F.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function br(t,e){let n=F.lFrame;n.currentTNode=t,n.isParent=e}function ff(){return F.lFrame.isParent}function oy(){F.lFrame.isParent=!1}function sy(){let t=F.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ay(t){return F.lFrame.bindingIndex=t}function ho(){return F.lFrame.bindingIndex++}function uy(t){let e=F.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function ly(){return F.lFrame.inI18n}function cy(t,e){let n=F.lFrame;n.bindingIndex=n.bindingRootIndex=t,aa(e)}function dy(){return F.lFrame.currentDirectiveIndex}function aa(t){F.lFrame.currentDirectiveIndex=t}function fy(t){let e=F.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function hf(t){F.lFrame.currentQueryIndex=t}function hy(t){let e=t[x];return e.type===2?e.declTNode:e.type===1?t[He]:null}function pf(t,e,n){if(n&N.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(n&N.Host);)if(i=hy(o),i===null||(o=o[Mn],i.type&10))break;if(i===null)return!1;e=i,t=o}let r=F.lFrame=gf();return r.currentTNode=e,r.lView=t,!0}function Xa(t){let e=gf(),n=t[x];F.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function gf(){let t=F.lFrame,e=t===null?null:t.child;return e===null?mf(t):e}function mf(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 yf(){let t=F.lFrame;return F.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var vf=yf;function Ja(){let t=yf();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 py(t){return(F.lFrame.contextLView=Ym(t,F.lFrame.contextLView))[fe]}function qt(){return F.lFrame.selectedIndex}function Vt(t){F.lFrame.selectedIndex=t}function gy(){let t=F.lFrame;return Wa(t.tView,t.selectedIndex)}function my(){return F.lFrame.currentNamespace}var Df=!0;function eu(){return Df}function tu(t){Df=t}function yy(t,e,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){let s=rf(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 nu(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[u]<0&&(t[yn]+=65536),(a>14>16&&(t[I]&3)===e&&(t[I]+=16384,ad(a,o)):ad(a,o)}var En=-1,cr=class{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Dy(t){return t instanceof cr}function wy(t){return(t.flags&8)!==0}function Ey(t){return(t.flags&16)!==0}function Ef(t){return t!==En}function qi(t){return t&32767}function Cy(t){return t>>16}function Gi(t,e){let n=Cy(t),r=e;for(;n>0;)r=r[Mn],n--;return r}var ua=!0;function Wi(t){let e=ua;return ua=t,e}var by=256,Cf=by-1,bf=5,Iy=0,Ye={};function Sy(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(tr)&&(r=n[tr]),r==null&&(r=n[tr]=Iy++);let i=r&Cf,o=1<>bf)]|=o}function If(t,e){let n=Sf(t,e);if(n!==-1)return n;let r=e[x];r.firstCreatePass&&(t.injectorIndex=e.length,Us(r.data,t),Us(e,null),Us(r.blueprint,null));let i=ru(t,e),o=t.injectorIndex;if(Ef(i)){let s=qi(i),a=Gi(i,e),u=a[x].data;for(let l=0;l<8;l++)e[o+l]=a[s+l]|u[s+l]}return e[o+8]=i,o}function Us(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Sf(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function ru(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=xf(i),r===null)return En;if(n++,i=i[Mn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return En}function _y(t,e,n){Sy(t,e,n)}function _f(t,e,n){if(n&N.Optional||t!==void 0)return t;ja(e,"NodeInjector")}function Mf(t,e,n,r){if(n&N.Optional&&r===void 0&&(r=null),!(n&(N.Self|N.Host))){let i=t[bn],o=ve(void 0);try{return i?i.get(e,r,n&N.Optional):Ld(e,r,n&N.Optional)}finally{ve(o)}}return _f(r,e,n)}function Tf(t,e,n,r=N.Default,i){if(t!==null){if(e[I]&2048&&!(r&N.Self)){let s=Ny(t,e,n,r,Ye);if(s!==Ye)return s}let o=Af(t,e,n,r,Ye);if(o!==Ye)return o}return Mf(e,n,r,i)}function Af(t,e,n,r,i){let o=Ay(n);if(typeof o=="function"){if(!pf(e,t,r))return r&N.Host?_f(i,n,r):Mf(e,n,r,i);try{let s;if(s=o(r),s==null&&!(r&N.Optional))ja(n);else return s}finally{vf()}}else if(typeof o=="number"){let s=null,a=Sf(t,e),u=En,l=r&N.Host?e[Ue][He]:null;for((a===-1||r&N.SkipSelf)&&(u=a===-1?ru(t,e):e[a+8],u===En||!ld(r,!1)?a=-1:(s=e[x],a=qi(u),e=Gi(u,e)));a!==-1;){let c=e[x];if(ud(o,a,c.data)){let d=My(a,e,n,s,r,l);if(d!==Ye)return d}u=e[a+8],u!==En&&ld(r,e[x].data[a+8]===l)&&ud(o,a,e)?(s=c,a=qi(u),e=Gi(u,e)):a=-1}}return i}function My(t,e,n,r,i,o){let s=e[x],a=s.data[t+8],u=r==null?co(a)&&ua:r!=s&&(a.type&3)!==0,l=i&N.Host&&o===a,c=Ty(a,s,n,u,l);return c!==null?dr(e,s,c,a):Ye}function Ty(t,e,n,r,i){let o=t.providerIndexes,s=e.data,a=o&1048575,u=t.directiveStart,l=t.directiveEnd,c=o>>20,d=r?a:a+c,h=i?a+c:l;for(let f=d;f=u&&p.type===n)return f}if(i){let f=s[u];if(f&&Cr(f)&&f.type===n)return u}return null}function dr(t,e,n,r){let i=t[n],o=e.data;if(Dy(i)){let s=i;s.resolving&&Yg(Kg(o[n]));let a=Wi(s.canSeeViewProviders);s.resolving=!0;let u,l=s.injectImpl?ve(s.injectImpl):null,c=pf(t,r,N.Default);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&yy(n,o[n],e)}finally{l!==null&&ve(l),Wi(a),s.resolving=!1,vf()}}return i}function Ay(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(tr)?t[tr]:void 0;return typeof e=="number"?e>=0?e&Cf:xy:e}function ud(t,e,n){let r=1<>bf)]&r)}function ld(t,e){return!(t&N.Self)&&!(t&N.Host&&e)}var Pt=class{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return Tf(this._tNode,this._lView,e,io(r),n)}};function xy(){return new Pt(ft(),W())}function iu(t){return no(()=>{let e=t.prototype.constructor,n=e[ji]||la(e),r=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){let o=i[ji]||la(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function la(t){return xd(t)?()=>{let e=la(Ne(t));return e&&e()}:Ft(t)}function Ny(t,e,n,r,i){let o=t,s=e;for(;o!==null&&s!==null&&s[I]&2048&&!(s[I]&512);){let a=Af(o,s,n,r|N.Self,Ye);if(a!==Ye)return a;let u=o.parent;if(!u){let l=s[Jd];if(l){let c=l.get(n,Ye,r);if(c!==Ye)return c}u=xf(s),s=s[Mn]}o=u}return i}function xf(t){let e=t[x],n=e.type;return n===2?e.declTNode:n===1?t[He]:null}function cd(t,e=null,n=null,r){let i=Nf(t,e,n,r);return i.resolveInjectorInitializers(),i}function Nf(t,e=null,n=null,r,i=new Set){let o=[n||Ve,_m(t)];return r=r||(typeof t=="object"?void 0:De(t)),new ir(o,e||za(),r||null,i)}var Ir=(()=>{let e=class e{static create(r,i){if(Array.isArray(r))return cd({name:""},i,r,"");{let o=r.name??"";return cd({name:o},r.parent,r.providers,o)}}};e.THROW_IF_NOT_FOUND=nr,e.NULL=new Bi,e.\u0275prov=S({token:e,providedIn:"any",factory:()=>R(Vd)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})();var Ry="ngOriginalError";function Hs(t){return t[Ry]}var at=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&&Hs(e);for(;n&&Hs(n);)n=Hs(n);return n||null}},Rf=new k("",{providedIn:"root",factory:()=>v(at).handleError.bind(void 0)}),Of=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Oy,e.__NG_ENV_ID__=r=>r;let t=e;return t})(),ca=class extends Of{constructor(e){super(),this._lView=e}onDestroy(e){return lf(this._lView,e),()=>Zm(this._lView,e)}};function Oy(){return new ca(W())}function Py(){return ou(ft(),W())}function ou(t,e){return new po(ze(t,e))}var po=(()=>{let e=class e{constructor(r){this.nativeElement=r}};e.__NG_ELEMENT_ID__=Py;let t=e;return t})();var da=class extends oe{constructor(e=!1){super(),this.destroyRef=void 0,this.__isAsync=e,Lm()&&(this.destroyRef=v(Of,{optional:!0})??void 0)}emit(e){let n=O(null);try{super.next(e)}finally{O(n)}}subscribe(e,n,r){let i=e,o=n||(()=>null),s=r;if(e&&typeof e=="object"){let u=e;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=zs(o),i&&(i=zs(i)),s&&(s=zs(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof Z&&e.add(a),a}};function zs(t){return e=>{setTimeout(t,void 0,e)}}var $e=da;function Pf(t){return(t.flags&128)===128}var Ff=new Map,Fy=0;function ky(){return Fy++}function Ly(t){Ff.set(t[lo],t)}function jy(t){Ff.delete(t[lo])}var dd="__ngContext__";function $t(t,e){wn(e)?(t[dd]=e[lo],Ly(e)):t[dd]=e}function kf(t){return jf(t[ar])}function Lf(t){return jf(t[Be])}function jf(t){for(;t!==null&&!ct(t);)t=t[Be];return t}var fa;function Vf(t){fa=t}function Vy(){if(fa!==void 0)return fa;if(typeof document<"u")return document;throw new m(210,!1)}var su=new k("",{providedIn:"root",factory:()=>$y}),$y="ng",au=new k(""),Tn=new k("",{providedIn:"platform",factory:()=>"unknown"});var uu=new k(""),lu=new k("",{providedIn:"root",factory:()=>Vy().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var By="h",Uy="b";var Hy=()=>null;function cu(t,e,n=!1){return Hy(t,e,n)}var $f=!1,zy=new k("",{providedIn:"root",factory:()=>$f});var ha=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Bg})`}};function du(t){return t instanceof ha?t.changingThisBreaksApplicationSecurity:t}function Bf(t){return t instanceof Function?t():t}var ut=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(ut||{}),qy;function fu(t,e){return qy(t,e)}function vn(t,e,n,r,i){if(r!=null){let o,s=!1;ct(r)?o=r:wn(r)&&(s=!0,r=r[lt]);let a=Je(r);t===0&&n!==null?i==null?qf(e,n,a):Qi(e,n,a,i||null,!0):t===1&&n!==null?Qi(e,n,a,i||null,!0):t===2?uv(e,a,s):t===3&&e.destroyNode(a),o!=null&&cv(e,t,o,n,i)}}function Gy(t,e){return t.createText(e)}function Wy(t,e,n){t.setValue(e,n)}function Uf(t,e,n){return t.createElement(e,n)}function Qy(t,e){Hf(t,e),e[lt]=null,e[He]=null}function Ky(t,e,n,r,i,o){r[lt]=i,r[He]=e,mo(t,r,n,1,i,o)}function Hf(t,e){e[Xe].changeDetectionScheduler?.notify(1),mo(t,e,e[me],2,null,null)}function Yy(t){let e=t[ar];if(!e)return qs(t[x],t);for(;e;){let n=null;if(wn(e))n=e[ar];else{let r=e[ge];r&&(n=r)}if(!n){for(;e&&!e[Be]&&e!==t;)wn(e)&&qs(e[x],e),e=e[he];e===null&&(e=t),wn(e)&&qs(e[x],e),n=e&&e[Be]}e=n}}function Zy(t,e,n,r){let i=ge+r,o=n.length;r>0&&(n[i-1][Be]=e),r0&&(t[n-1][Be]=r[Be]);let o=$i(t,ge+e);Qy(r[x],r);let s=o[In];s!==null&&s.detachView(o[x]),r[he]=null,r[Be]=null,r[I]&=-129}return r}function go(t,e){if(!(e[I]&256)){let n=e[me];n.destroyNode&&mo(t,e,n,3,null,null),Yy(e)}}function qs(t,e){if(e[I]&256)return;let n=O(null);try{e[I]&=-129,e[I]|=256,e[Lt]&&vc(e[Lt]),ev(t,e),Jy(t,e),e[x].type===1&&e[me].destroy();let r=e[uo];if(r!==null&&ct(e[he])){r!==e[he]&&zf(r,e);let i=e[In];i!==null&&i.detachView(t)}jy(e)}finally{O(n)}}function Jy(t,e){let n=t.cleanup,r=e[sr];if(n!==null)for(let o=0;o=0?r[s]():r[-s].unsubscribe(),o+=2}else{let s=r[n[o+1]];n[o].call(s)}r!==null&&(e[sr]=null);let i=e[Dt];if(i!==null){e[Dt]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[r.directiveStart+i];if(o===Ze.None||o===Ze.Emulated)return null}return ze(r,n)}}function Qi(t,e,n,r,i){t.insertBefore(e,n,r,i)}function qf(t,e,n){t.appendChild(e,n)}function fd(t,e,n,r,i){r!==null?Qi(t,e,n,r,i):qf(t,e,n)}function rv(t,e,n,r){t.removeChild(e,n,r)}function hu(t,e){return t.parentNode(e)}function iv(t,e){return t.nextSibling(e)}function ov(t,e,n){return av(t,e,n)}function sv(t,e,n){return t.type&40?ze(t,n):null}var av=sv,hd;function pu(t,e,n,r){let i=tv(t,r,e),o=e[me],s=r.parent||e[He],a=ov(s,r,e);if(i!=null)if(Array.isArray(n))for(let u=0;uIe&&Kf(t,e,Ie,!1),Ke(s?2:0,i),n(r,i)}finally{Vt(o),Ke(s?3:1,i)}}function Jf(t,e,n){if(tf(e)){let r=O(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function Dv(t,e,n,r,i,o){let s=e?e.injectorIndex:-1,a=0;return ty()&&(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 pd(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,u=wt.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let l=o;if(i!==null){if(!i.hasOwnProperty(o))continue;l=i[o]}t===0?gd(r,n,l,a,u):gd(r,n,l,a)}return r}function gd(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 wv(t,e,n){let r=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],u=null,l=null;for(let c=r;c0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function _v(t,e,n,r){let i=n.directiveStart,o=n.directiveEnd;co(n)&&Ov(e,n,t.data[i+n.componentOffset]),t.firstCreatePass||If(n,e),$t(r,e);let s=n.initialInputs;for(let a=i;a{ur(t.lView)},consumerOnSignalRead(){this.lView[Lt]=this}}),fh=100;function hh(t,e=!0,n=0){let r=t[Xe],i=r.rendererFactory,o=!1;o||i.begin?.();try{Wv(t,n)}catch(s){throw e&&uh(t,s),s}finally{o||(i.end?.(),r.inlineEffectRunner?.flush())}}function Wv(t,e){ya(t,e);let n=0;for(;Ka(t);){if(n===fh)throw new m(103,!1);n++,ya(t,1)}}function Qv(t,e,n,r){let i=e[I];if((i&256)===256)return;let o=!1;!o&&e[Xe].inlineEffectRunner?.flush(),Xa(e);let s=null,a=null;!o&&Kv(t)&&(a=Hv(e),s=mc(a));try{uf(e),ay(t.bindingStartIndex),n!==null&&Xf(t,e,n,2,r);let u=(i&3)===3;if(!o)if(u){let d=t.preOrderCheckHooks;d!==null&&Pi(e,d,null)}else{let d=t.preOrderHooks;d!==null&&Fi(e,d,0,null),Bs(e,0)}if(Yv(e),ph(e,0),t.contentQueries!==null&&ah(t,e),!o)if(u){let d=t.contentCheckHooks;d!==null&&Pi(e,d)}else{let d=t.contentHooks;d!==null&&Fi(e,d,1),Bs(e,1)}hv(t,e);let l=t.components;l!==null&&mh(e,l,0);let c=t.viewQuery;if(c!==null&&ma(2,c,r),!o)if(u){let d=t.viewCheckHooks;d!==null&&Pi(e,d)}else{let d=t.viewHooks;d!==null&&Fi(e,d,2),Bs(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[$s]){for(let d of e[$s])d();e[$s]=null}o||(e[I]&=-73)}catch(u){throw ur(e),u}finally{a!==null&&(yc(a,s),qv(a)),Ja()}}function Kv(t){return t.type!==2}function ph(t,e){for(let n=kf(t);n!==null;n=Lf(n))for(let r=ge;r-1&&(fr(e,r),$i(n,r))}this._attachedToViewContainer=!1}go(this._lView[x],this._lView)}onDestroy(e){lf(this._lView,e)}markForCheck(){wu(this._cdRefInjectingView||this._lView)}detach(){this._lView[I]&=-129}reattach(){sa(this._lView),this._lView[I]|=128}detectChanges(){this._lView[I]|=1024,hh(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Hf(this._lView[x],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new m(902,!1);this._appRef=e,sa(this._lView)}};var WA=new RegExp(`^(\\d+)*(${Uy}|${By})*(.*)`);var Xv=()=>null;function pr(t,e){return Xv(t,e)}var gr=class{},va=class{},Yi=class{};function Jv(t){let e=Error(`No component factory found for ${De(t)}.`);return e[eD]=t,e}var eD="ngComponent";var Da=class{resolveComponentFactory(e){throw Jv(e)}},Eo=(()=>{let e=class e{};e.NULL=new Da;let t=e;return t})(),Bt=class{};var tD=(()=>{let e=class e{};e.\u0275prov=S({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),Gs={};var md=new Set;function An(t){md.has(t)||(md.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function yd(...t){}function nD(){let t=typeof er.requestAnimationFrame=="function",e=er[t?"requestAnimationFrame":"setTimeout"],n=er[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 Y=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 $e(!1),this.onMicrotaskEmpty=new $e(!1),this.onStable=new $e(!1),this.onError=new $e(!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=nD().nativeRequestAnimationFrame,oD(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,rD,yd,yd);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)}},rD={};function Eu(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 iD(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(er,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,wa(t),t.isCheckStableRunning=!0,Eu(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),wa(t))}function oD(t){let e=()=>{iD(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{if(sD(a))return n.invokeTask(i,o,s,a);try{return vd(t),n.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Dd(t)}},onInvoke:(n,r,i,o,s,a,u)=>{try{return vd(t),n.invoke(i,o,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&e(),Dd(t)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,wa(t),Eu(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 wa(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function vd(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Dd(t){t._nesting--,Eu(t)}function sD(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}var yh=(()=>{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=S({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function Ea(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&Wf(t,n,o.join(" "))}}function hD(t,e,n){let r=t.projection=[];for(let i=0;i{let e=class e{};e.__NG_ELEMENT_ID__=gD;let t=e;return t})();function gD(){let t=ft();return yD(t,W())}var mD=Co,vh=class extends mD{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return ou(this._hostTNode,this._hostLView)}get injector(){return new Pt(this._hostTNode,this._hostLView)}get parentInjector(){let e=ru(this._hostTNode,this._hostLView);if(Ef(e)){let n=Gi(e,this._hostLView),r=qi(e),i=n[x].data[r+8];return new Pt(i,n)}else return new Pt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=Ed(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-ge}createEmbeddedView(e,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=pr(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,hr(this._hostTNode,s)),a}createComponent(e,n,r,i,o){let s=e&&!jm(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 u=s?e:new mr(kt(e)),l=r||this.parentInjector;if(!o&&u.ngModule==null){let g=(s?l:this.parentInjector).get(Re,null);g&&(o=g)}let c=kt(u.componentType??{}),d=pr(this._lContainer,c?.id??null),h=d?.firstChild??null,f=u.create(l,i,h,o);return this.insertImpl(f.hostView,a,hr(this._hostTNode,d)),f}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let i=e._lView;if(Qm(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let u=i[he],l=new vh(u,u[He],u[he]);l.detach(l.indexOf(e))}}let o=this._adjustIndex(n),s=this._lContainer;return wo(s,i,o,r),e.attachToViewContainerRef(),jd(Ws(s),o,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=Ed(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),r=fr(this._lContainer,n);r&&($i(Ws(this._lContainer),n),go(r[x],r))}detach(e){let n=this._adjustIndex(e,-1),r=fr(this._lContainer,n);return r&&$i(Ws(this._lContainer),n)!=null?new Sn(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function Ed(t){return t[Ui]}function Ws(t){return t[Ui]||(t[Ui]=[])}function yD(t,e){let n,r=e[t.index];return ct(r)?n=r:(n=sh(r,e,null,t),e[t.index]=n,Do(e,n)),DD(n,e,t,r),new vh(n,t,e)}function vD(t,e){let n=t[me],r=n.createComment(""),i=ze(e,t),o=hu(n,i);return Qi(n,o,r,iv(n,i),!1),r}var DD=CD,wD=()=>!1;function ED(t,e,n){return wD(t,e,n)}function CD(t,e,n,r){if(t[jt])return;let i;n.type&8?i=Je(r):i=vD(e,n),t[jt]=i}var Et=class{},yr=class{};var Ia=class extends Et{constructor(e,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Zi(this);let i=Wd(e);this._bootstrapComponents=Bf(i.bootstrap),this._r3Injector=Nf(e,n,[{provide:Et,useValue:this},{provide:Eo,useValue:this.componentFactoryResolver},...r],De(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)}},Sa=class extends yr{constructor(e){super(),this.moduleType=e}create(e){return new Ia(this.moduleType,e,[])}};var Xi=class extends Et{constructor(e){super(),this.componentFactoryResolver=new Zi(this),this.instance=null;let n=new ir([...e.providers,{provide:Et,useValue:this},{provide:Eo,useValue:this.componentFactoryResolver}],e.parent||za(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Cu(t,e,n=null){return new Xi({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}var bo=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ae(!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=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function bD(t,e,n){return t[e]=n}function xn(t,e,n){let r=t[e];return Object.is(r,n)?!1:(t[e]=n,!0)}function ID(t){return(t.flags&32)===32}function SD(t,e,n,r,i,o,s,a,u){let l=e.consts,c=vo(e,t,4,s||null,zi(l,a));rh(e,n,c,zi(l,u)),nu(e,c);let d=c.tView=mu(2,c,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l,null);return e.queries!==null&&(e.queries.template(e,c),d.queries=e.queries.embeddedTView(c)),c}function Ct(t,e,n,r,i,o,s,a){let u=W(),l=dt(),c=t+Ie,d=l.firstCreatePass?SD(c,l,u,e,n,r,i,o,s):l.data[c];br(d,!1);let h=_D(l,u,d,t);eu()&&pu(l,u,h,d),$t(h,u);let f=sh(h,u,h,d);return u[c]=f,Do(u,f),ED(f,d,u),Ga(d)&&eh(l,u,d),s!=null&&th(u,d,a),Ct}var _D=MD;function MD(t,e,n,r){return tu(!0),e[me].createComment("")}function TD(t,e,n,r){return xn(t,ho(),n)?e+Fd(n)+r:Gt}function Ri(t,e){return t<<17|e<<2}function Ut(t){return t>>17&32767}function AD(t){return(t&2)==2}function xD(t,e){return t&131071|e<<17}function _a(t){return t|2}function _n(t){return(t&131068)>>2}function Qs(t,e){return t&-131069|e<<2}function ND(t){return(t&1)===1}function Ma(t){return t|1}function RD(t,e,n,r,i,o){let s=o?e.classBindings:e.styleBindings,a=Ut(s),u=_n(s);t[r]=n;let l=!1,c;if(Array.isArray(n)){let d=n;c=d[1],(c===null||wr(d,c)>0)&&(l=!0)}else c=n;if(i)if(u!==0){let h=Ut(t[a+1]);t[r+1]=Ri(h,a),h!==0&&(t[h+1]=Qs(t[h+1],r)),t[a+1]=xD(t[a+1],r)}else t[r+1]=Ri(a,0),a!==0&&(t[a+1]=Qs(t[a+1],r)),a=r;else t[r+1]=Ri(u,0),a===0?a=r:t[u+1]=Qs(t[u+1],r),u=r;l&&(t[r+1]=_a(t[r+1])),Cd(t,c,r,!0),Cd(t,c,r,!1),OD(e,c,t,r,o),s=Ri(a,u),o?e.classBindings=s:e.styleBindings=s}function OD(t,e,n,r,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&wr(o,e)>=0&&(n[r+1]=Ma(n[r+1]))}function Cd(t,e,n,r){let i=t[n+1],o=e===null,s=r?Ut(i):_n(i),a=!1;for(;s!==0&&(a===!1||o);){let u=t[s],l=t[s+1];PD(u,e)&&(a=!0,t[s+1]=r?Ma(l):_a(l)),s=r?Ut(l):_n(l)}a&&(t[n+1]=r?_a(i):Ma(i))}function PD(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?wr(t,e)>=0:!1}function bu(t,e,n){let r=W(),i=ho();if(xn(r,i,e)){let o=dt(),s=gy();Cv(o,s,r,t,e,r[me],n,!1)}return bu}function bd(t,e,n,r,i){let o=e.inputs,s=i?"class":"style";yu(t,n,o[s],s,r)}function Iu(t,e){return FD(t,e,null,!0),Iu}function FD(t,e,n,r){let i=W(),o=dt(),s=uy(2);if(o.firstUpdatePass&&LD(o,t,s,r),e!==Gt&&xn(i,s,e)){let a=o.data[qt()];UD(o,a,i,i[me],t,i[s+1]=HD(e,n),r,s)}}function kD(t,e){return e>=t.expandoStartIndex}function LD(t,e,n,r){let i=t.data;if(i[n+1]===null){let o=i[qt()],s=kD(t,n);zD(o,r)&&e===null&&!s&&(e=!1),e=jD(i,o,e,r),RD(i,o,e,n,s,r)}}function jD(t,e,n,r){let i=fy(t),o=r?e.residualClasses:e.residualStyles;if(i===null)(r?e.classBindings:e.styleBindings)===0&&(n=Ks(null,t,e,n,r),n=vr(n,e.attrs,r),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(n=Ks(i,t,e,n,r),o===null){let u=VD(t,e,r);u!==void 0&&Array.isArray(u)&&(u=Ks(null,t,e,u[1],r),u=vr(u,e.attrs,r),$D(t,e,r,u))}else o=BD(t,e,r)}return o!==void 0&&(r?e.residualClasses=o:e.residualStyles=o),n}function VD(t,e,n){let r=n?e.classBindings:e.styleBindings;if(_n(r)!==0)return t[Ut(r)]}function $D(t,e,n,r){let i=n?e.classBindings:e.styleBindings;t[Ut(i)]=r}function BD(t,e,n){let r,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let u=t[i],l=Array.isArray(u),c=l?u[1]:u,d=c===null,h=n[i+1];h===Gt&&(h=d?Ve:void 0);let f=d?js(h,r):c===r?h:void 0;if(l&&!Ji(f)&&(f=js(u,r)),Ji(f)&&(a=f,s))return a;let p=t[i+1];i=s?Ut(p):_n(p)}if(e!==null){let u=o?e.residualClasses:e.residualStyles;u!=null&&(a=js(u,r))}return a}function Ji(t){return t!==void 0}function HD(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=De(du(t)))),t}function zD(t,e){return(t.flags&(e?8:16))!==0}var Ta=class{destroy(e){}updateValue(e,n){}swap(e,n){let r=Math.min(e,n),i=Math.max(e,n),o=this.detach(i);if(i-r>1){let s=this.detach(r);this.attach(r,o),this.attach(i,s)}else this.attach(r,o)}move(e,n){this.attach(n,this.detach(e))}};function Ys(t,e,n,r,i){return t===n&&Object.is(e,r)?1:Object.is(i(t,e),i(n,r))?-1:0}function qD(t,e,n){let r,i,o=0,s=t.length-1;if(Array.isArray(e)){let a=e.length-1;for(;o<=s&&o<=a;){let u=t.at(o),l=e[o],c=Ys(o,u,o,l,n);if(c!==0){c<0&&t.updateValue(o,l),o++;continue}let d=t.at(s),h=e[a],f=Ys(s,d,a,h,n);if(f!==0){f<0&&t.updateValue(s,h),s--,a--;continue}let p=n(o,u),g=n(s,d),E=n(o,l);if(Object.is(E,g)){let C=n(a,h);Object.is(C,p)?(t.swap(o,s),t.updateValue(s,h),a--,s--):t.move(s,o),t.updateValue(o,l),o++;continue}if(r??=new eo,i??=_d(t,o,s,n),Aa(t,r,o,E))t.updateValue(o,l),o++,s++;else if(i.has(E))r.set(p,t.detach(o)),s--;else{let C=t.create(o,e[o]);t.attach(o,C),o++,s++}}for(;o<=a;)Sd(t,r,n,o,e[o]),o++}else if(e!=null){let a=e[Symbol.iterator](),u=a.next();for(;!u.done&&o<=s;){let l=t.at(o),c=u.value,d=Ys(o,l,o,c,n);if(d!==0)d<0&&t.updateValue(o,c),o++,u=a.next();else{r??=new eo,i??=_d(t,o,s,n);let h=n(o,c);if(Aa(t,r,o,h))t.updateValue(o,c),o++,s++,u=a.next();else if(!i.has(h))t.attach(o,t.create(o,c)),o++,s++,u=a.next();else{let f=n(o,l);r.set(f,t.detach(o)),s--}}}for(;!u.done;)Sd(t,r,n,t.length,u.value),u=a.next()}for(;o<=s;)t.destroy(t.detach(s--));r?.forEach(a=>{t.destroy(a)})}function Aa(t,e,n,r){return e!==void 0&&e.has(r)?(t.attach(n,e.get(r)),e.delete(r),!0):!1}function Sd(t,e,n,r,i){if(Aa(t,e,r,n(r,i)))t.updateValue(r,i);else{let o=t.create(r,i);t.attach(r,o)}}function _d(t,e,n,r){let i=new Set;for(let o=e;o<=n;o++)i.add(r(o,t.at(o)));return i}var eo=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let n=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(e,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,n){if(this.kvMap.has(e)){let r=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,n)}else this.kvMap.set(e,n)}forEach(e){for(let[n,r]of this.kvMap)if(e(r,n),this._vMap!==void 0){let i=this._vMap;for(;i.has(r);)r=i.get(r),e(r,n)}}};function _r(t,e,n){An("NgControlFlow");let r=W(),i=ho(),o=Oa(r,Ie+t),s=0;if(xn(r,i,e)){let a=O(null);try{if(ch(o,s),e!==-1){let u=Pa(r[x],Ie+e),l=pr(o,u.tView.ssrId),c=Du(r,u,n,{dehydratedView:l});wo(o,c,s,hr(u,l))}}finally{O(a)}}else{let a=lh(o,s);a!==void 0&&(a[fe]=n)}}var xa=class{constructor(e,n,r){this.lContainer=e,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ge}};function Dh(t){return t}var Na=class{constructor(e,n,r){this.hasEmptyBlock=e,this.trackByFn=n,this.liveCollection=r}};function wh(t,e,n,r,i,o,s,a,u,l,c,d,h){An("NgControlFlow");let f=u!==void 0,p=W(),g=a?s.bind(p[Ue][fe]):s,E=new Na(f,g);p[Ie+t]=E,Ct(t+1,e,n,r,i,o),f&&Ct(t+2,u,l,c,d,h)}var Ra=class extends Ta{constructor(e,n,r){super(),this.lContainer=e,this.hostLView=n,this.templateTNode=r,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-ge}at(e){return this.getLView(e)[fe].$implicit}attach(e,n){let r=n[or];this.needsIndexUpdate||=e!==this.length,wo(this.lContainer,n,e,hr(this.templateTNode,r))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,GD(this.lContainer,e)}create(e,n){let r=pr(this.lContainer,this.templateTNode.tView.ssrId);return Du(this.hostLView,this.templateTNode,new xa(this.lContainer,n,e),{dehydratedView:r})}destroy(e){go(e[x],e)}updateValue(e,n){this.getLView(e)[fe].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(tu(!0),Uf(r,i,my()));function Su(){return W()}var to="en-US";var YD=to;function ZD(t){typeof t=="string"&&(YD=t.toLowerCase().replace(/_/g,"-"))}function Tr(t,e,n,r){let i=W(),o=dt(),s=ft();return JD(o,i,i[me],s,t,e,r),Tr}function XD(t,e,n,r){let i=t.cleanup;if(i!=null)for(let o=0;ou?a[u]:null}typeof s=="string"&&(o+=2)}return null}function JD(t,e,n,r,i,o,s){let a=Ga(r),l=t.firstCreatePass&&Lv(t),c=e[fe],d=kv(e),h=!0;if(r.type&3||s){let g=ze(r,e),E=s?s(g):g,C=d.length,H=s?z=>s(Je(z[r.index])):r.index,$=null;if(!s&&a&&($=XD(t,e,i,r.index)),$!==null){let z=$.__ngLastListenerFn__||$;z.__ngNextListenerFn__=o,$.__ngLastListenerFn__=o,h=!1}else{o=Td(r,e,c,o,!1);let z=n.listen(E,i,o);d.push(o,z),l&&l.push(i,H,C,C+1)}}else o=Td(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 E=0;E-1?zt(t.index,e):e;wu(a);let u=Md(e,n,r,s),l=o.__ngNextListenerFn__;for(;l;)u=Md(e,n,l,s)&&u,l=l.__ngNextListenerFn__;return i&&u===!1&&s.preventDefault(),u}}function Nn(t=1){return py(t)}function ew(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function le(t,e=""){let n=W(),r=dt(),i=t+Ie,o=r.firstCreatePass?vo(r,i,1,e,null):r.data[i],s=tw(r,n,o,e,t);n[i]=s,eu()&&pu(r,n,s,o),br(o,!1)}var tw=(t,e,n,r,i)=>(tu(!0),Gy(e[me],r));function Rn(t){return Ar("",t,""),Rn}function Ar(t,e,n){let r=W(),i=TD(r,t,e,n);return i!==Gt&&jv(r,qt(),i),Ar}var nw=(()=>{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=Yd(!1,r.type),o=i.length>0?Cu([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=S({token:e,providedIn:"environment",factory:()=>new e(R(Re))});let t=e;return t})();function Io(t){An("NgStandalone"),t.getStandaloneInjector=e=>e.get(nw).getOrCreateStandaloneInjector(t)}function rw(t,e){let n=t[e];return n===Gt?void 0:n}function iw(t,e,n,r,i,o){let s=e+n;return xn(t,s,i)?bD(t,s+1,o?r.call(o,i):r(i)):rw(t,s+1)}function So(t,e){let n=dt(),r,i=t+Ie;n.firstCreatePass?(r=ow(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=Ft(r.type,!0)),s,a=ve(Sr);try{let u=Wi(!1),l=o();return Wi(u),ew(n,W(),i,l),l}finally{ve(a)}}function ow(t,e){if(e)for(let n=e.length-1;n>=0;n--){let r=e[n];if(t===r.name)return r}}function _o(t,e,n){let r=t+Ie,i=W(),o=Wm(i,r);return sw(i,r)?iw(i,sy(),e,o.transform,n,o):o.transform(n)}function sw(t,e){return t[x].data[e].pure}var Mo=(()=>{let e=class e{log(r){console.log(r)}warn(r){console.warn(r)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var Ch=new k("");function On(t){return!!t&&typeof t.then=="function"}function _u(t){return!!t&&typeof t.subscribe=="function"}var bh=new k(""),Ih=(()=>{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=v(bh,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let o of this.appInits){let s=o();if(On(s))r.push(s);else if(_u(s)){let a=new Promise((u,l)=>{s.subscribe({complete:u,error:l})});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=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Mu=new k("");function aw(){Dc(()=>{throw new m(600,!1)})}function uw(t){return t.isBoundToModule}function lw(t,e,n){try{let r=n();return On(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}var xr=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=v(Rf),this.afterRenderEffectManager=v(yh),this.externalTestViews=new Set,this.beforeRender=new oe,this.afterTick=new oe,this.componentTypes=[],this.components=[],this.isStable=v(bo).hasPendingTasks.pipe(P(r=>!r)),this._injector=v(Re)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,i){let o=r instanceof Yi;if(!this._injector.get(Ih).done){let f=!o&&Gd(r),p=!1;throw new m(405,p)}let a;o?a=r:a=this._injector.get(Eo).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let u=uw(a)?void 0:this._injector.get(Et),l=i||a.selector,c=a.create(Ir.NULL,[],l,u),d=c.location.nativeElement,h=c.injector.get(Ch,null);return h?.registerApplication(d),c.onDestroy(()=>{this.detachView(c.hostView),Zs(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=O(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,O(i)}}detectChangesInAttachedViews(r){let i=0,o=this.afterRenderEffectManager;for(;;){if(i===fh)throw new m(103,!1);if(r){let s=i===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:u}of this._views)cw(a,s,u)}if(i++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Fa(s))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Fa(s))))break}}attachView(r){let i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){let i=r;Zs(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let i=this._injector.get(Mu,[]);[...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),()=>Zs(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=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Zs(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function cw(t,e,n){!e&&!Fa(t)||dw(t,n,e)}function Fa(t){return Ka(t)}function dw(t,e,n){let r;n?(r=0,t[I]|=1024):t[I]&64?r=0:r=1,hh(t,e,r)}var ka=class{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}},Tu=(()=>{let e=class e{compileModuleSync(r){return new Sa(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let i=this.compileModuleSync(r),o=Wd(r),s=Bf(o.declarations).reduce((a,u)=>{let l=kt(u);return l&&a.push(new mr(l)),a},[]);return new ka(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=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var fw=(()=>{let e=class e{constructor(){this.zone=v(Y),this.applicationRef=v(xr)}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=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function hw(t){return[{provide:Y,useFactory:t},{provide:Cn,multi:!0,useFactory:()=>{let e=v(fw,{optional:!0});return()=>e.initialize()}},{provide:Cn,multi:!0,useFactory:()=>{let e=v(yw);return()=>{e.initialize()}}},{provide:Rf,useFactory:pw}]}function pw(){let t=v(Y),e=v(at);return n=>t.runOutsideAngular(()=>e.handleError(n))}function gw(t){let e=hw(()=>new Y(mw(t)));return so([[],e])}function mw(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var yw=(()=>{let e=class e{constructor(){this.subscription=new Z,this.initialized=!1,this.zone=v(Y),this.pendingTasks=v(bo)}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(()=>{Y.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Y.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function vw(){return typeof $localize<"u"&&$localize.locale||to}var Au=new k("",{providedIn:"root",factory:()=>v(Au,N.Optional|N.SkipSelf)||vw()});var Sh=new k("");var Li=null;function Dw(t=[],e){return Ir.create({name:e,providers:[{provide:ao,useValue:"platform"},{provide:Sh,useValue:new Set([()=>Li=null])},...t]})}function ww(t=[]){if(Li)return Li;let e=Dw(t);return Li=e,aw(),Ew(e),e}function Ew(t){t.get(au,null)?.forEach(n=>n())}var Pn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Cw;let t=e;return t})();function Cw(t){return bw(ft(),W(),(t&16)===16)}function bw(t,e,n){if(co(t)&&!n){let r=zt(t.index,e);return new Sn(r,r)}else if(t.type&47){let r=e[Ue];return new Sn(r,e)}return null}function _h(t){try{let{rootComponent:e,appProviders:n,platformProviders:r}=t,i=ww(r),o=[gw(),...n||[]],a=new Xi({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,u=a.get(Y);return u.run(()=>{a.resolveInjectorInitializers();let l=a.get(at,null),c;u.runOutsideAngular(()=>{c=u.onError.subscribe({next:f=>{l.handleError(f)}})});let d=()=>a.destroy(),h=i.get(Sh);return h.add(d),a.onDestroy(()=>{c.unsubscribe(),h.delete(d)}),lw(l,u,()=>{let f=a.get(Ih);return f.runInitializers(),f.donePromise.then(()=>{let p=a.get(Au,to);ZD(p||to);let g=a.get(xr);return e!==void 0&&g.bootstrap(e),g})})})}catch(e){return Promise.reject(e)}}function xu(t){let e=O(null);try{return t()}finally{O(e)}}var Nh=null;function kn(){return Nh}function Rh(t){Nh??=t}var To=class{};var we=new k(""),Oh=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:()=>v(Mw),providedIn:"platform"});let t=e;return t})();var Mw=(()=>{let e=class e extends Oh{constructor(){super(),this._doc=v(we),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return kn().getBaseHref(this._doc)}onPopState(r){let i=kn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",r,!1),()=>i.removeEventListener("popstate",r)}onHashChange(r){let i=kn().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=S({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Ph(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 Mh(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 Wt(t){return t&&t[0]!=="?"?"?"+t:t}var xo=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:()=>v(Fh),providedIn:"root"});let t=e;return t})(),Tw=new k(""),Fh=(()=>{let e=class e extends xo{constructor(r,i){super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??v(we).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 Ph(this._baseHref,r)}path(r=!1){let i=this._platformLocation.pathname+Wt(this._platformLocation.search),o=this._platformLocation.hash;return o&&r?`${i}${o}`:i}pushState(r,i,o,s){let a=this.prepareExternalUrl(o+Wt(s));this._platformLocation.pushState(r,i,a)}replaceState(r,i,o,s){let a=this.prepareExternalUrl(o+Wt(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)(R(Oh),R(Tw,8))},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Nr=(()=>{let e=class e{constructor(r){this._subject=new $e,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let i=this._locationStrategy.getBaseHref();this._basePath=Nw(Mh(Th(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+Wt(i))}normalize(r){return e.stripTrailingSlash(xw(this._basePath,Th(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+Wt(i)),o)}replaceState(r,i="",o=null){this._locationStrategy.replaceState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Wt(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=Wt,e.joinWithSlash=Ph,e.stripTrailingSlash=Mh,e.\u0275fac=function(i){return new(i||e)(R(xo))},e.\u0275prov=S({token:e,factory:()=>Aw(),providedIn:"root"});let t=e;return t})();function Aw(){return new Nr(R(xo))}function xw(t,e){if(!t||!e.startsWith(t))return e;let n=e.substring(t.length);return n===""||["/",";","?","#"].includes(n[0])?n:e}function Th(t){return t.replace(/\/index.html$/,"")}function Nw(t){if(new RegExp("^(https?:)?//").test(t)){let[,n]=t.split(/\/\/[^\/]+/);return n}return t}function kh(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}function Rw(t,e){return new m(2100,!1)}var Nu=class{createSubscription(e,n){return xu(()=>e.subscribe({next:n,error:r=>{throw r}}))}dispose(e){xu(()=>e.unsubscribe())}},Ru=class{createSubscription(e,n){return e.then(n,r=>{throw r})}dispose(e){}},Ow=new Ru,Pw=new Nu,Lh=(()=>{let e=class e{constructor(r){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=r}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(r){if(!this._obj){if(r)try{this.markForCheckOnValueUpdate=!1,this._subscribe(r)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return r!==this._obj?(this._dispose(),this.transform(r)):this._latestValue}_subscribe(r){this._obj=r,this._strategy=this._selectStrategy(r),this._subscription=this._strategy.createSubscription(r,i=>this._updateLatestValue(r,i))}_selectStrategy(r){if(On(r))return Ow;if(_u(r))return Pw;throw Rw(e,r)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(r,i){r===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(i){return new(i||e)(Sr(Pn,16))},e.\u0275pipe=Hd({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var Ou=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Er({type:e}),e.\u0275inj=Dr({});let t=e;return t})(),jh="browser",Fw="server";function Pu(t){return t===Fw}var Ao=class{};var Lu=class extends To{constructor(){super(...arguments),this.supportsDOMEvents=!0}},ju=class t extends Lu{static makeCurrent(){Rh(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=jw();return n==null?null:Vw(n)}resetBaseElement(){Rr=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return kh(document.cookie,e)}},Rr=null;function jw(){return Rr=Rr||document.querySelector("base"),Rr?Rr.getAttribute("href"):null}function Vw(t){return new URL(t,document.baseURI).pathname}var $w=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac});let t=e;return t})(),Vu=new k(""),Bh=(()=>{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)(R(Vu),R(Y))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let t=e;return t})(),No=class{constructor(e){this._doc=e}},Fu="ng-app-id",Uh=(()=>{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=Pu(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[${Fu}="${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(Fu),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Fu,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)(R(we),R(su),R(lu,8),R(Tn))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let t=e;return t})(),ku={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Bu=/%COMP%/g,Hh="%COMP%",Bw=`_nghost-${Hh}`,Uw=`_ngcontent-${Hh}`,Hw=!0,zw=new k("",{providedIn:"root",factory:()=>Hw});function qw(t){return Uw.replace(Bu,t)}function Gw(t){return Bw.replace(Bu,t)}function zh(t,e){return e.map(n=>n.replace(Bu,t))}var Ro=(()=>{let e=class e{constructor(r,i,o,s,a,u,l,c=null){this.eventManager=r,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=Pu(u),this.defaultRenderer=new Or(r,a,l,this.platformIsServer)}createRenderer(r,i){if(!r||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Ze.ShadowDom&&(i=J(D({},i),{encapsulation:Ze.Emulated}));let o=this.getOrCreateRenderer(r,i);return o instanceof Oo?o.applyToHost(r):o instanceof Pr&&o.applyStyles(),o}getOrCreateRenderer(r,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,u=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(i.encapsulation){case Ze.Emulated:s=new Oo(l,c,i,this.appId,d,a,u,h);break;case Ze.ShadowDom:return new $u(l,c,r,i,a,u,this.nonce,h);default:s=new Pr(l,c,i,d,a,u,h);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(R(Bh),R(Uh),R(su),R(zw),R(we),R(Tn),R(Y),R(lu))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let t=e;return t})(),Or=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(ku[n]||n,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,n){(Vh(e)?e.content:e).appendChild(n)}insertBefore(e,n,r){e&&(Vh(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=ku[i];o?e.setAttributeNS(o,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){let i=ku[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&(ut.DashCase|ut.Important)?e.style.setProperty(n,r,i&ut.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&ut.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=kn().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 Vh(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var $u=class extends Or{constructor(e,n,r,i,o,s,a,u){super(e,o,s,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=zh(i.id,i.styles);for(let c of l){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)}},Pr=class extends Or{constructor(e,n,r,i,o,s,a,u){super(e,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=u?zh(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Oo=class extends Pr{constructor(e,n,r,i,o,s,a,u){let l=i+"-"+r.id;super(e,n,r,o,s,a,u,l),this.contentAttr=qw(l),this.hostAttr=Gw(l)}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}},Ww=(()=>{let e=class e extends No{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)(R(we))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let t=e;return t})(),$h=["alt","control","meta","shift"],Qw={"\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"},Kw={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Yw=(()=>{let e=class e extends No{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(()=>kn().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="",u=i.indexOf("code");if(u>-1&&(i.splice(u,1),a="code."),$h.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 l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(r,i){let o=Qw[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"),$h.forEach(a=>{if(a!==o){let u=Kw[a];u(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)(R(we))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let t=e;return t})();function qh(t,e){return _h(D({rootComponent:t},Zw(e)))}function Zw(t){return{appProviders:[...nE,...t?.providers??[]],platformProviders:tE}}function Xw(){ju.makeCurrent()}function Jw(){return new at}function eE(){return Vf(document),document}var tE=[{provide:Tn,useValue:jh},{provide:au,useValue:Xw,multi:!0},{provide:we,useFactory:eE,deps:[]}];var nE=[{provide:ao,useValue:"root"},{provide:at,useFactory:Jw,deps:[]},{provide:Vu,useClass:Ww,multi:!0,deps:[we,Y,Tn]},{provide:Vu,useClass:Yw,multi:!0,deps:[we]},Ro,Uh,Bh,{provide:Bt,useExisting:Ro},{provide:Ao,useClass:$w,deps:[]},[]];var Gh=(()=>{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)(R(we))},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var A="primary",Kr=Symbol("RouteTitle"),Gu=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 Bn(t){return new Gu(t)}function iE(t,e,n){let r=n.path.split("/");if(r.length>t.length||n.pathMatch==="full"&&(e.hasChildren()||r.lengthr[o]===i)}else return t===e}function Jh(t){return t.length>0?t[t.length-1]:null}function St(t){return xs(t)?t:On(t)?X(Promise.resolve(t)):M(t)}var sE={exact:tp,subset:np},ep={exact:aE,subset:uE,ignored:()=>!0};function Wh(t,e,n){return sE[n.paths](t.root,e.root,n.matrixParams)&&ep[n.queryParams](t.queryParams,e.queryParams)&&!(n.fragment==="exact"&&t.fragment!==e.fragment)}function aE(t,e){return et(t,e)}function tp(t,e,n){if(!Kt(t.segments,e.segments)||!ko(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let r in e.children)if(!t.children[r]||!tp(t.children[r],e.children[r],n))return!1;return!0}function uE(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Xh(t[n],e[n]))}function np(t,e,n){return rp(t,e,e.segments,n)}function rp(t,e,n,r){if(t.segments.length>n.length){let i=t.segments.slice(0,n.length);return!(!Kt(i,n)||e.hasChildren()||!ko(i,n,r))}else if(t.segments.length===n.length){if(!Kt(t.segments,n)||!ko(t.segments,n,r))return!1;for(let i in e.children)if(!t.children[i]||!np(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!Kt(t.segments,i)||!ko(t.segments,i,r)||!t.children[A]?!1:rp(t.children[A],e,o,r)}}function ko(t,e,n){return e.every((r,i)=>ep[n](t[i].parameters,r.parameters))}var bt=class{constructor(e=new U([],{}),n={},r=null){this.root=e,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Bn(this.queryParams),this._queryParamMap}toString(){return dE.serialize(this)}},U=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 Lo(this)}},Qt=class{constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap??=Bn(this.parameters),this._parameterMap}toString(){return op(this)}};function lE(t,e){return Kt(t,e)&&t.every((n,r)=>et(n.parameters,e[r].parameters))}function Kt(t,e){return t.length!==e.length?!1:t.every((n,r)=>n.path===e[r].path)}function cE(t,e){let n=[];return Object.entries(t.children).forEach(([r,i])=>{r===A&&(n=n.concat(e(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==A&&(n=n.concat(e(i,r)))}),n}var Dl=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:()=>new Vo,providedIn:"root"});let t=e;return t})(),Vo=class{parse(e){let n=new Ku(e);return new bt(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){let n=`/${Fr(e.root,!0)}`,r=pE(e.queryParams),i=typeof e.fragment=="string"?`#${fE(e.fragment)}`:"";return`${n}${r}${i}`}},dE=new Vo;function Lo(t){return t.segments.map(e=>op(e)).join("/")}function Fr(t,e){if(!t.hasChildren())return Lo(t);if(e){let n=t.children[A]?Fr(t.children[A],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==A&&r.push(`${i}:${Fr(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=cE(t,(r,i)=>i===A?[Fr(t.children[A],!1)]:[`${i}:${Fr(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[A]!=null?`${Lo(t)}/${n[0]}`:`${Lo(t)}/(${n.join("//")})`}}function ip(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Po(t){return ip(t).replace(/%3B/gi,";")}function fE(t){return encodeURI(t)}function Qu(t){return ip(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function jo(t){return decodeURIComponent(t)}function Qh(t){return jo(t.replace(/\+/g,"%20"))}function op(t){return`${Qu(t.path)}${hE(t.parameters)}`}function hE(t){return Object.entries(t).map(([e,n])=>`;${Qu(e)}=${Qu(n)}`).join("")}function pE(t){let e=Object.entries(t).map(([n,r])=>Array.isArray(r)?r.map(i=>`${Po(n)}=${Po(i)}`).join("&"):`${Po(n)}=${Po(r)}`).filter(n=>n);return e.length?`?${e.join("&")}`:""}var gE=/^[^\/()?;#]+/;function Uu(t){let e=t.match(gE);return e?e[0]:""}var mE=/^[^\/()?;=#]+/;function yE(t){let e=t.match(mE);return e?e[0]:""}var vE=/^[^=?&#]+/;function DE(t){let e=t.match(vE);return e?e[0]:""}var wE=/^[^&#]+/;function EE(t){let e=t.match(wE);return e?e[0]:""}var Ku=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new U([],{}):new U([],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[A]=new U(e,n)),r}parseSegment(){let e=Uu(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new m(4009,!1);return this.capture(e),new Qt(jo(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let n=yE(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=Uu(this.remaining);i&&(r=i,this.capture(r))}e[jo(n)]=jo(r)}parseQueryParam(e){let n=DE(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=EE(this.remaining);s&&(r=s,this.capture(r))}let i=Qh(n),o=Qh(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=Uu(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=A);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[A]:new U([],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 sp(t){return t.segments.length>0?new U([],{[A]:t}):t}function ap(t){let e={};for(let[r,i]of Object.entries(t.children)){let o=ap(i);if(r===A&&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 U(t.segments,e);return CE(n)}function CE(t){if(t.numberOfChildren===1&&t.children[A]){let e=t.children[A];return new U(t.segments.concat(e.segments),e.children)}return t}function Un(t){return t instanceof bt}function bE(t,e,n=null,r=null){let i=up(t);return lp(i,e,n,r)}function up(t){let e;function n(o){let s={};for(let u of o.children){let l=n(u);s[u.outlet]=l}let a=new U(o.url,s);return o===t&&(e=a),a}let r=n(t.root),i=sp(r);return e??i}function lp(t,e,n,r){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return Hu(i,i,i,n,r);let o=IE(e);if(o.toRoot())return Hu(i,i,new U([],{}),n,r);let s=SE(o,i,t),a=s.processChildren?jr(s.segmentGroup,s.index,o.commands):dp(s.segmentGroup,s.index,o.commands);return Hu(i,s.segmentGroup,a,n,r)}function $o(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Br(t){return typeof t=="object"&&t!=null&&t.outlets}function Hu(t,e,n,r,i){let o={};r&&Object.entries(r).forEach(([u,l])=>{o[u]=Array.isArray(l)?l.map(c=>`${c}`):`${l}`});let s;t===e?s=n:s=cp(t,e,n);let a=sp(ap(s));return new bt(a,o,i)}function cp(t,e,n){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===e?r[i]=n:r[i]=cp(o,e,n)}),new U(t.segments,r)}var Bo=class{constructor(e,n,r){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&$o(r[0]))throw new m(4003,!1);let i=r.find(Br);if(i&&i!==Jh(r))throw new m(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function IE(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Bo(!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(([u,l])=>{a[u]=typeof l=="string"?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?n=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Bo(n,e,r)}var Vn=class{constructor(e,n,r){this.segmentGroup=e,this.processChildren=n,this.index=r}};function SE(t,e,n){if(t.isAbsolute)return new Vn(e,!0,0);if(!n)return new Vn(e,!1,NaN);if(n.parent===null)return new Vn(n,!0,0);let r=$o(t.commands[0])?0:1,i=n.segments.length-1+r;return _E(n,i,t.numberOfDoubleDots)}function _E(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 Vn(r,!1,i-o)}function ME(t){return Br(t[0])?t[0].outlets:{[A]:t}}function dp(t,e,n){if(t??=new U([],{}),t.segments.length===0&&t.hasChildren())return jr(t,e,n);let r=TE(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndexo!==A)&&t.children[A]&&t.numberOfChildren===1&&t.children[A].segments.length===0){let o=jr(t.children[A],e,n);return new U(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=dp(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new U(t.segments,i)}}function TE(t,e,n){let r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;let s=t.segments[i],a=n[r];if(Br(a))break;let u=`${a}`,l=r0&&u===void 0)break;if(u&&l&&typeof l=="object"&&l.outlets===void 0){if(!Yh(u,l,s))return o;r+=2}else{if(!Yh(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Yu(t,e,n){let r=t.segments.slice(0,e),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(e[n]=Yu(new U([],{}),0,r))}),e}function Kh(t){let e={};return Object.entries(t).forEach(([n,r])=>e[n]=`${r}`),e}function Yh(t,e,n){return t==n.path&&et(e,n.parameters)}var Vr="imperative",ce=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}(ce||{}),Oe=class{constructor(e,n){this.id=e,this.url=n}},Ur=class extends Oe{constructor(e,n,r="imperative",i=null){super(e,n),this.type=ce.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Yt=class extends Oe{constructor(e,n,r){super(e,n),this.urlAfterRedirects=r,this.type=ce.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Me=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Me||{}),Zu=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Zu||{}),It=class extends Oe{constructor(e,n,r,i){super(e,n),this.reason=r,this.code=i,this.type=ce.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Zt=class extends Oe{constructor(e,n,r,i){super(e,n),this.reason=r,this.code=i,this.type=ce.NavigationSkipped}},Hr=class extends Oe{constructor(e,n,r,i){super(e,n),this.error=r,this.target=i,this.type=ce.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Uo=class extends Oe{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=ce.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Xu=class extends Oe{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=ce.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ju=class extends Oe{constructor(e,n,r,i,o){super(e,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=ce.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},el=class extends Oe{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=ce.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},tl=class extends Oe{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i,this.type=ce.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},nl=class{constructor(e){this.route=e,this.type=ce.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},rl=class{constructor(e){this.route=e,this.type=ce.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},il=class{constructor(e){this.snapshot=e,this.type=ce.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ol=class{constructor(e){this.snapshot=e,this.type=ce.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},sl=class{constructor(e){this.snapshot=e,this.type=ce.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},al=class{constructor(e){this.snapshot=e,this.type=ce.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var zr=class{},qr=class{constructor(e){this.url=e}};var ul=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Qo,this.attachRef=null}},Qo=(()=>{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 ul,this.contexts.set(r,i)),i}getContext(r){return this.contexts.get(r)||null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ho=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=ll(e,this._root);return n?n.children.map(r=>r.value):[]}firstChild(e){let n=ll(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){let n=cl(e,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return cl(e,this._root).map(n=>n.value)}};function ll(t,e){if(t===e.value)return e;for(let n of e.children){let r=ll(t,n);if(r)return r}return null}function cl(t,e){if(t===e.value)return[e];for(let n of e.children){let r=cl(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 jn(t){let e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e}var zo=class extends Ho{constructor(e,n){super(e),this.snapshot=n,El(this,e)}toString(){return this.snapshot.toString()}};function fp(t){let e=xE(t),n=new ae([new Qt("",{})]),r=new ae({}),i=new ae({}),o=new ae({}),s=new ae(""),a=new Hn(n,r,o,s,i,A,t,e.root);return a.snapshot=e.root,new zo(new _e(a,[]),e)}function xE(t){let e={},n={},r={},i="",o=new Gr([],e,r,i,n,A,t,null,{});return new qo("",new _e(o,[]))}var Hn=class{constructor(e,n,r,i,o,s,a,u){this.urlSubject=e,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(P(l=>l[Kr]))??M(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(P(e=>Bn(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(P(e=>Bn(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function wl(t,e,n="emptyOnly"){let r,{routeConfig:i}=t;return e!==null&&(n==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?r={params:D(D({},e.params),t.params),data:D(D({},e.data),t.data),resolve:D(D(D(D({},t.data),e.data),i?.data),t._resolvedData)}:r={params:D({},t.params),data:D({},t.data),resolve:D(D({},t.data),t._resolvedData??{})},i&&pp(i)&&(r.resolve[Kr]=i.title),r}var Gr=class{get title(){return this.data?.[Kr]}constructor(e,n,r,i,o,s,a,u,l){this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=l}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??=Bn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Bn(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}')`}},qo=class extends Ho{constructor(e,n){super(n),this.url=e,El(this,n)}toString(){return hp(this._root)}};function El(t,e){e.value._routerState=t,e.children.forEach(n=>El(t,n))}function hp(t){let e=t.children.length>0?` { ${t.children.map(hp).join(", ")} } `:"";return`${t.value}${e}`}function zu(t){if(t.snapshot){let e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,et(e.queryParams,n.queryParams)||t.queryParamsSubject.next(n.queryParams),e.fragment!==n.fragment&&t.fragmentSubject.next(n.fragment),et(e.params,n.params)||t.paramsSubject.next(n.params),oE(e.url,n.url)||t.urlSubject.next(n.url),et(e.data,n.data)||t.dataSubject.next(n.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function dl(t,e){let n=et(t.params,e.params)&&lE(t.url,e.url),r=!t.parent!=!e.parent;return n&&!r&&(!t.parent||dl(t.parent,e.parent))}function pp(t){return typeof t.title=="string"||t.title===null}var NE=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=A,this.activateEvents=new $e,this.deactivateEvents=new $e,this.attachEvents=new $e,this.detachEvents=new $e,this.parentContexts=v(Qo),this.location=v(Co),this.changeDetector=v(Pn),this.environmentInjector=v(Re),this.inputBinder=v(Cl,{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,u=this.parentContexts.getOrCreateContext(this.name).children,l=new fl(r,u,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,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=Ua({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[fo]});let t=e;return t})(),fl=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===Hn?this.route:e===Qo?this.childContexts:this.parent.get(e,n)}},Cl=new k("");function RE(t,e,n){let r=Wr(t,e._root,n?n._root:void 0);return new zo(r,e)}function Wr(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=e.value;let i=OE(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=>Wr(t,a)),s}}let r=PE(e.value),i=e.children.map(o=>Wr(t,o));return new _e(r,i)}}function OE(t,e,n){return e.children.map(r=>{for(let i of n.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Wr(t,r,i);return Wr(t,r)})}function PE(t){return new Hn(new ae(t.url),new ae(t.params),new ae(t.queryParams),new ae(t.fragment),new ae(t.data),t.outlet,t.component,t)}var gp="ngNavigationCancelingError";function mp(t,e){let{redirectTo:n,navigationBehaviorOptions:r}=Un(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=yp(!1,Me.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function yp(t,e){let n=new Error(`NavigationCancelingError: ${t||""}`);return n[gp]=!0,n.cancellationCode=e,n}function FE(t){return vp(t)&&Un(t.url)}function vp(t){return!!t&&t[gp]}var kE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=oo({type:e,selectors:[["ng-component"]],standalone:!0,features:[Io],decls:1,vars:0,template:function(i,o){i&1&&Mr(0,"router-outlet")},dependencies:[NE],encapsulation:2});let t=e;return t})();function LE(t,e){return t.providers&&!t._injector&&(t._injector=Cu(t.providers,e,`Route: ${t.path}`)),t._injector??e}function bl(t){let e=t.children&&t.children.map(bl),n=e?J(D({},t),{children:e}):D({},t);return!n.component&&!n.loadComponent&&(e||n.loadChildren)&&n.outlet&&n.outlet!==A&&(n.component=kE),n}function tt(t){return t.outlet||A}function jE(t,e){let n=t.filter(r=>tt(r)===e);return n.push(...t.filter(r=>tt(r)!==e)),n}function Yr(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 VE=(t,e,n,r)=>P(i=>(new hl(e,i.targetRouterState,i.currentRouterState,n,r).activate(t),i)),hl=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),zu(this.futureState.root),this.activateChildRoutes(n,r,e)}deactivateChildRoutes(e,n,r){let i=jn(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=jn(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=jn(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=jn(n);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new al(o.value.snapshot))}),e.children.length&&this.forwardEvent(new ol(e.value.snapshot))}activateRoutes(e,n,r){let i=e.value,o=n?n.value:null;if(zu(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),zu(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=Yr(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)}},Go=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},$n=class{constructor(e,n){this.component=e,this.route=n}};function $E(t,e,n){let r=t._root,i=e?e._root:null;return kr(r,i,n,[r.value])}function BE(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function qn(t,e){let n=Symbol(),r=e.get(t,n);return r===n?typeof t=="function"&&!Nd(t)?t:e.get(t):r}function kr(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=jn(e);return t.children.forEach(s=>{UE(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>$r(a,n.getContext(s),i)),i}function UE(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 u=HE(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Go(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?kr(t,e,a?a.children:null,r,i):kr(t,e,n,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new $n(a.outlet.component,s))}else s&&$r(e,a,i),i.canActivateChecks.push(new Go(r)),o.component?kr(t,null,a?a.children:null,r,i):kr(t,null,n,r,i);return i}function HE(t,e,n){if(typeof n=="function")return n(t,e);switch(n){case"pathParamsChange":return!Kt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Kt(t.url,e.url)||!et(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!dl(t,e)||!et(t.queryParams,e.queryParams);case"paramsChange":default:return!dl(t,e)}}function $r(t,e,n){let r=jn(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?e?$r(s,e.children.getContext(o),n):$r(s,null,n):$r(s,e,n)}),i.component?e&&e.outlet&&e.outlet.isActivated?n.canDeactivateChecks.push(new $n(e.outlet.component,i)):n.canDeactivateChecks.push(new $n(null,i)):n.canDeactivateChecks.push(new $n(null,i))}function Zr(t){return typeof t=="function"}function zE(t){return typeof t=="boolean"}function qE(t){return t&&Zr(t.canLoad)}function GE(t){return t&&Zr(t.canActivate)}function WE(t){return t&&Zr(t.canActivateChild)}function QE(t){return t&&Zr(t.canDeactivate)}function KE(t){return t&&Zr(t.canMatch)}function Dp(t){return t instanceof ot||t?.name==="EmptyError"}var Fo=Symbol("INITIAL_VALUE");function zn(){return Le(t=>Ai(t.map(e=>e.pipe(st(1),ks(Fo)))).pipe(P(e=>{for(let n of e)if(n!==!0){if(n===Fo)return Fo;if(n===!1||n instanceof bt)return n}return!0}),ke(e=>e!==Fo),st(1)))}function YE(t,e){return te(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?M(J(D({},n),{guardsResult:!0})):ZE(s,r,i,t).pipe(te(a=>a&&zE(a)?XE(r,o,t,e):M(a)),P(a=>J(D({},n),{guardsResult:a})))})}function ZE(t,e,n,r){return X(t).pipe(te(i=>rC(i.component,i.route,n,e,r)),Qe(i=>i!==!0,!0))}function XE(t,e,n,r){return X(e).pipe(pn(i=>hn(eC(i.route.parent,r),JE(i.route,r),nC(t,i.path,n),tC(t,i.route,n))),Qe(i=>i!==!0,!0))}function JE(t,e){return t!==null&&e&&e(new sl(t)),M(!0)}function eC(t,e){return t!==null&&e&&e(new il(t)),M(!0)}function tC(t,e,n){let r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||r.length===0)return M(!0);let i=r.map(o=>xi(()=>{let s=Yr(e)??n,a=qn(o,s),u=GE(a)?a.canActivate(e,t):Ht(s,()=>a(e,t));return St(u).pipe(Qe())}));return M(i).pipe(zn())}function nC(t,e,n){let r=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>BE(s)).filter(s=>s!==null).map(s=>xi(()=>{let a=s.guards.map(u=>{let l=Yr(s.node)??n,c=qn(u,l),d=WE(c)?c.canActivateChild(r,t):Ht(l,()=>c(r,t));return St(d).pipe(Qe())});return M(a).pipe(zn())}));return M(o).pipe(zn())}function rC(t,e,n,r,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return M(!0);let s=o.map(a=>{let u=Yr(e)??i,l=qn(a,u),c=QE(l)?l.canDeactivate(t,e,n,r):Ht(u,()=>l(t,e,n,r));return St(c).pipe(Qe())});return M(s).pipe(zn())}function iC(t,e,n,r){let i=e.canLoad;if(i===void 0||i.length===0)return M(!0);let o=i.map(s=>{let a=qn(s,t),u=qE(a)?a.canLoad(e,n):Ht(t,()=>a(e,n));return St(u)});return M(o).pipe(zn(),wp(r))}function wp(t){return Is(ue(e=>{if(Un(e))throw mp(t,e)}),P(e=>e===!0))}function oC(t,e,n,r){let i=e.canMatch;if(!i||i.length===0)return M(!0);let o=i.map(s=>{let a=qn(s,t),u=KE(a)?a.canMatch(e,n):Ht(t,()=>a(e,n));return St(u)});return M(o).pipe(zn(),wp(r))}var Qr=class{constructor(e){this.segmentGroup=e||null}},Wo=class extends Error{constructor(e){super(),this.urlTree=e}};function Ln(t){return fn(new Qr(t))}function sC(t){return fn(new m(4e3,!1))}function aC(t){return fn(yp(!1,Me.GuardRejected))}var pl=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 M(r);if(i.numberOfChildren>1||!i.children[A])return sC(e.redirectTo);i=i.children[A]}}applyRedirectCommands(e,n,r){let i=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),e,r);if(n.startsWith("/"))throw new Wo(i);return i}applyRedirectCreateUrlTree(e,n,r,i){let o=this.createSegmentGroup(e,n.root,r,i);return new bt(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,u])=>{s[a]=this.createSegmentGroup(e,u,r,i)}),new U(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}},gl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function uC(t,e,n,r,i){let o=Il(t,e,n);return o.matched?(r=LE(e,r),oC(r,e,n,i).pipe(P(s=>s===!0?o:D({},gl)))):M(o)}function Il(t,e,n){if(e.path==="**")return lC(n);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||n.length>0)?D({},gl):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(e.matcher||iE)(n,t,e);if(!i)return D({},gl);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?D(D({},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 lC(t){return{matched:!0,parameters:t.length>0?Jh(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Zh(t,e,n,r){return n.length>0&&fC(t,n,r)?{segmentGroup:new U(e,dC(r,new U(n,t.children))),slicedSegments:[]}:n.length===0&&hC(t,n,r)?{segmentGroup:new U(t.segments,cC(t,n,r,t.children)),slicedSegments:n}:{segmentGroup:new U(t.segments,t.children),slicedSegments:n}}function cC(t,e,n,r){let i={};for(let o of n)if(Ko(t,e,o)&&!r[tt(o)]){let s=new U([],{});i[tt(o)]=s}return D(D({},r),i)}function dC(t,e){let n={};n[A]=e;for(let r of t)if(r.path===""&&tt(r)!==A){let i=new U([],{});n[tt(r)]=i}return n}function fC(t,e,n){return n.some(r=>Ko(t,e,r)&&tt(r)!==A)}function hC(t,e,n){return n.some(r=>Ko(t,e,r))}function Ko(t,e,n){return(t.hasChildren()||e.length>0)&&n.pathMatch==="full"?!1:n.path===""}function pC(t,e,n,r){return tt(t)!==r&&(r===A||!Ko(e,n,t))?!1:Il(e,t,n).matched}function gC(t,e,n){return e.length===0&&!t.children[n]}var ml=class{};function mC(t,e,n,r,i,o,s="emptyOnly"){return new yl(t,e,n,r,i,s,o).recognize()}var yC=31,yl=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 pl(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new m(4002,`'${e.segmentGroup}'`)}recognize(){let e=Zh(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(P(n=>{let r=new Gr([],Object.freeze({}),Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,{},A,this.rootComponentType,null,{}),i=new _e(r,n),o=new qo("",i),s=bE(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,A).pipe(mt(r=>{if(r instanceof Wo)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Qr?this.noMatchError(r):r}))}inheritParamsAndData(e,n){let r=e.value,i=wl(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(P(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 X(i).pipe(pn(o=>{let s=r.children[o],a=jE(n,o);return this.processSegmentGroup(e,a,s,o)}),Fs((o,s)=>(o.push(...s),o)),yt(null),Ps(),te(o=>{if(o===null)return Ln(r);let s=Ep(o);return vC(s),M(s)}))}processSegment(e,n,r,i,o,s){return X(n).pipe(pn(a=>this.processSegmentAgainstRoute(a._injector??e,n,a,r,i,o,s).pipe(mt(u=>{if(u instanceof Qr)return M(null);throw u}))),Qe(a=>!!a),mt(a=>{if(Dp(a))return gC(r,i,o)?M(new ml):Ln(r);throw a}))}processSegmentAgainstRoute(e,n,r,i,o,s,a){return pC(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):Ln(i):Ln(i)}expandSegmentAgainstRouteUsingRedirect(e,n,r,i,o,s){let{matched:a,consumedSegments:u,positionalParamSegments:l,remainingSegments:c}=Il(n,i,o);if(!a)return Ln(n);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>yC&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,l);return this.applyRedirects.lineralizeSegments(i,d).pipe(te(h=>this.processSegment(e,r,n,h.concat(c),s,!1)))}matchSegmentAgainstRoute(e,n,r,i,o){let s=uC(n,r,i,e,this.urlSerializer);return r.path==="**"&&(n.children={}),s.pipe(Le(a=>a.matched?(e=r._injector??e,this.getChildConfig(e,r,i).pipe(Le(({routes:u})=>{let l=r._loadedInjector??e,{consumedSegments:c,remainingSegments:d,parameters:h}=a,f=new Gr(c,h,Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,wC(r),tt(r),r.component??r._loadedComponent??null,r,EC(r)),{segmentGroup:p,slicedSegments:g}=Zh(n,c,d,u);if(g.length===0&&p.hasChildren())return this.processChildren(l,u,p).pipe(P(C=>C===null?null:new _e(f,C)));if(u.length===0&&g.length===0)return M(new _e(f,[]));let E=tt(r)===o;return this.processSegment(l,u,p,g,E?A:o,!0).pipe(P(C=>new _e(f,C instanceof _e?[C]:[])))}))):Ln(n)))}getChildConfig(e,n,r){return n.children?M({routes:n.children,injector:e}):n.loadChildren?n._loadedRoutes!==void 0?M({routes:n._loadedRoutes,injector:n._loadedInjector}):iC(e,n,r,this.urlSerializer).pipe(te(i=>i?this.configLoader.loadChildren(e,n).pipe(ue(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):aC(n))):M({routes:[],injector:e})}};function vC(t){t.sort((e,n)=>e.value.outlet===A?-1:n.value.outlet===A?1:e.value.outlet.localeCompare(n.value.outlet))}function DC(t){let e=t.value.routeConfig;return e&&e.path===""}function Ep(t){let e=[],n=new Set;for(let r of t){if(!DC(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=Ep(r.children);e.push(new _e(r.value,i))}return e.filter(r=>!n.has(r))}function wC(t){return t.data||{}}function EC(t){return t.resolve||{}}function CC(t,e,n,r,i,o){return te(s=>mC(t,e,n,r,s.extractedUrl,i,o).pipe(P(({state:a,tree:u})=>J(D({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function bC(t,e){return te(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return M(n);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let l of Cp(u))s.add(l);let a=0;return X(s).pipe(pn(u=>o.has(u)?IC(u,r,t,e):(u.data=wl(u,u.parent,t).resolve,M(void 0))),ue(()=>a++),gn(1),te(u=>a===s.size?M(n):pe))})}function Cp(t){let e=t.children.map(n=>Cp(n)).flat();return[t,...e]}function IC(t,e,n,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!pp(i)&&(o[Kr]=i.title),SC(o,t,e,r).pipe(P(s=>(t._resolvedData=s,t.data=wl(t,t.parent,n).resolve,null)))}function SC(t,e,n,r){let i=Wu(t);if(i.length===0)return M({});let o={};return X(i).pipe(te(s=>_C(t[s],e,n,r).pipe(Qe(),ue(a=>{o[s]=a}))),gn(1),Os(o),mt(s=>Dp(s)?pe:fn(s)))}function _C(t,e,n,r){let i=Yr(e)??r,o=qn(t,i),s=o.resolve?o.resolve(e,n):Ht(i,()=>o(e,n));return St(s)}function qu(t){return Le(e=>{let n=t(e);return n?X(n).pipe(P(()=>e)):M(e)})}var bp=(()=>{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===A);return i}getResolvedTitleForRoute(r){return r.data[Kr]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:()=>v(MC),providedIn:"root"});let t=e;return t})(),MC=(()=>{let e=class e extends bp{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)(R(Gh))},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Sl=new k("",{providedIn:"root",factory:()=>({})}),_l=new k(""),TC=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=v(Tu)}loadComponent(r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return M(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=St(r.loadComponent()).pipe(P(Ip),ue(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),Jn(()=>{this.componentLoaders.delete(r)})),o=new cn(i,()=>new oe).pipe(ln());return this.componentLoaders.set(r,o),o}loadChildren(r,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return M({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=AC(i,this.compiler,r,this.onLoadEndListener).pipe(Jn(()=>{this.childrenLoaders.delete(i)})),a=new cn(s,()=>new oe).pipe(ln());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function AC(t,e,n,r){return St(t.loadChildren()).pipe(P(Ip),te(i=>i instanceof yr||Array.isArray(i)?M(i):X(e.compileModuleAsync(i))),P(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(_l,[],{optional:!0,self:!0}).flat()),{routes:s.map(bl),injector:o}}))}function xC(t){return t&&typeof t=="object"&&"default"in t}function Ip(t){return xC(t)?t.default:t}var Ml=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:()=>v(NC),providedIn:"root"});let t=e;return t})(),NC=(()=>{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=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),RC=new k("");var OC=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new oe,this.transitionAbortSubject=new oe,this.configLoader=v(TC),this.environmentInjector=v(Re),this.urlSerializer=v(Dl),this.rootContexts=v(Qo),this.location=v(Nr),this.inputBindingEnabled=v(Cl,{optional:!0})!==null,this.titleStrategy=v(bp),this.options=v(Sl,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=v(Ml),this.createViewTransition=v(RC,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>M(void 0),this.rootComponentType=null;let r=o=>this.events.next(new nl(o)),i=o=>this.events.next(new rl(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=r}complete(){this.transitions?.complete()}handleNavigationRequest(r){let i=++this.navigationId;this.transitions?.next(J(D(D({},this.transitions.value),r),{id:i}))}setupNavigations(r,i,o){return this.transitions=new ae({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:Vr,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ke(s=>s.id!==0),P(s=>J(D({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Le(s=>{let a=!1,u=!1;return M(s).pipe(Le(l=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",Me.SupersededByNewNavigation),pe;this.currentTransition=s,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?J(D({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!r.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=l.extras.onSameUrlNavigation??r.onSameUrlNavigation;if(!c&&d!=="reload"){let h="";return this.events.next(new Zt(l.id,this.urlSerializer.serialize(l.rawUrl),h,Zu.IgnoredSameUrlNavigation)),l.resolve(null),pe}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return M(l).pipe(Le(h=>{let f=this.transitions?.getValue();return this.events.next(new Ur(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?pe:Promise.resolve(h)}),CC(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,this.paramsInheritanceStrategy),ue(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=J(D({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let f=new Uo(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:h,extractedUrl:f,source:p,restoredState:g,extras:E}=l,C=new Ur(h,this.urlSerializer.serialize(f),p,g);this.events.next(C);let H=fp(this.rootComponentType).snapshot;return this.currentTransition=s=J(D({},l),{targetSnapshot:H,urlAfterRedirects:f,extras:J(D({},E),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,M(s)}else{let h="";return this.events.next(new Zt(l.id,this.urlSerializer.serialize(l.extractedUrl),h,Zu.IgnoredByUrlHandlingStrategy)),l.resolve(null),pe}}),ue(l=>{let c=new Xu(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),P(l=>(this.currentTransition=s=J(D({},l),{guards:$E(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),s)),YE(this.environmentInjector,l=>this.events.next(l)),ue(l=>{if(s.guardsResult=l.guardsResult,Un(l.guardsResult))throw mp(this.urlSerializer,l.guardsResult);let c=new Ju(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),ke(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",Me.GuardRejected),!1)),qu(l=>{if(l.guards.canActivateChecks.length)return M(l).pipe(ue(c=>{let d=new el(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),Le(c=>{let d=!1;return M(c).pipe(bC(this.paramsInheritanceStrategy,this.environmentInjector),ue({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(c,"",Me.NoDataFromResolver)}}))}),ue(c=>{let d=new tl(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}))}),qu(l=>{let c=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(ue(f=>{d.component=f}),P(()=>{})));for(let f of d.children)h.push(...c(f));return h};return Ai(c(l.targetSnapshot.root)).pipe(yt(null),st(1))}),qu(()=>this.afterPreactivation()),Le(()=>{let{currentSnapshot:l,targetSnapshot:c}=s,d=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return d?X(d).pipe(P(()=>s)):M(s)}),P(l=>{let c=RE(r.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s=J(D({},l),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,s}),ue(()=>{this.events.next(new zr)}),VE(this.rootContexts,r.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),st(1),ue({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Yt(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),Ls(this.transitionAbortSubject.pipe(ue(l=>{throw l}))),Jn(()=>{!a&&!u&&this.cancelNavigationTransition(s,"",Me.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),mt(l=>{if(u=!0,vp(l))this.events.next(new It(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),FE(l)?this.events.next(new qr(l.url)):s.resolve(!1);else{this.events.next(new Hr(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0));try{s.resolve(r.errorHandler(l))}catch(c){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(c)}}return pe}))}))}cancelNavigationTransition(r,i,o){let s=new It(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=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function PC(t){return t!==Vr}var FC=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:()=>v(kC),providedIn:"root"});let t=e;return t})(),vl=class{shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}},kC=(()=>{let e=class e extends vl{};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=iu(e)))(o||e)}})(),e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Sp=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:()=>v(LC),providedIn:"root"});let t=e;return t})(),LC=(()=>{let e=class e extends Sp{constructor(){super(...arguments),this.location=v(Nr),this.urlSerializer=v(Dl),this.options=v(Sl,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=v(Ml),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new bt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=fp(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 Ur)this.stateMemento=this.createStateMemento();else if(r instanceof Zt)this.rawUrlTree=i.initialUrl;else if(r instanceof Uo){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else r instanceof zr?(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 It&&(r.code===Me.GuardRejected||r.code===Me.NoDataFromResolver)?this.restoreHistory(i):r instanceof Hr?this.restoreHistory(i,!0):r instanceof Yt&&(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=D(D({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=D(D({},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=iu(e)))(o||e)}})(),e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Lr=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Lr||{});function jC(t,e){t.events.pipe(ke(n=>n instanceof Yt||n instanceof It||n instanceof Hr||n instanceof Zt),P(n=>n instanceof Yt||n instanceof Zt?Lr.COMPLETE:(n instanceof It?n.code===Me.Redirect||n.code===Me.SupersededByNewNavigation:!1)?Lr.REDIRECTING:Lr.FAILED),ke(n=>n!==Lr.REDIRECTING),st(1)).subscribe(()=>{e()})}function VC(t){throw t}var $C={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},BC={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},_p=(()=>{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=v(Mo),this.stateManager=v(Sp),this.options=v(Sl,{optional:!0})||{},this.pendingTasks=v(bo),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=v(OC),this.urlSerializer=v(Dl),this.location=v(Nr),this.urlHandlingStrategy=v(Ml),this._events=new oe,this.errorHandler=this.options.errorHandler||VC,this.navigated=!1,this.routeReuseStrategy=v(FC),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=v(_l,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!v(Cl,{optional:!0}),this.eventsSubscription=new Z,this.isNgZoneEnabled=v(Y)instanceof Y&&Y.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 It&&i.code!==Me.Redirect&&i.code!==Me.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Yt)this.navigated=!0;else if(i instanceof qr){let a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),u={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||PC(o.source)};this.scheduleNavigation(a,Vr,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}HC(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),Vr,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 l=D({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(s.state=l)}let u=this.parseUrl(r);this.scheduleNavigation(u,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(bl),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:u,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a,d=null;switch(u){case"merge":d=D(D({},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=up(f)}catch{(typeof r[0]!="string"||!r[0].startsWith("/"))&&(r=[]),h=this.currentUrlTree.root}return lp(h,r,d,c??null)}navigateByUrl(r,i={skipLocationChange:!1}){let o=Un(r)?r:this.parseUrl(r),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Vr,null,i)}navigate(r,i={skipLocationChange:!1}){return UC(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=D({},$C):i===!1?o=D({},BC):o=i,Un(r))return Wh(this.currentUrlTree,r,o);let s=this.parseUrl(r);return Wh(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 u,l,c;a?(u=a.resolve,l=a.reject,c=a.promise):c=new Promise((h,f)=>{u=h,l=f});let d=this.pendingTasks.add();return jC(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:r,extras:s,resolve:u,reject:l,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=S({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function UC(t){for(let e=0;en.\u0275providers)])}function qC(t){return t.routerState.root}function GC(){let t=v(Ir);return e=>{let n=t.get(xr);if(e!==n.components[0])return;let r=t.get(_p),i=t.get(WC);t.get(QC)===1&&r.initialNavigation(),t.get(KC,null,N.Optional)?.setUpPreloading(),t.get(zC,null,N.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var WC=new k("",{factory:()=>new oe}),QC=new k("",{providedIn:"root",factory:()=>1});var KC=new k("");var Tp=[];var T=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}(T||{}),nt="*";function Ap(t,e){return{type:T.Trigger,name:t,definitions:e,options:{}}}function xp(t,e=null){return{type:T.Animate,styles:e,timings:t}}function Np(t,e=null){return{type:T.Sequence,steps:t,options:e}}function Gn(t){return{type:T.Style,styles:t,offset:null}}function Tl(t,e,n){return{type:T.State,name:t,styles:e,options:n}}function Rp(t,e,n=null){return{type:T.Transition,expr:t,animation:e,options:n}}var _t=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}},Xr=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}},Yo="!";function Op(t){return new m(3e3,!1)}function YC(){return new m(3100,!1)}function ZC(){return new m(3101,!1)}function XC(t){return new m(3001,!1)}function JC(t){return new m(3003,!1)}function e0(t){return new m(3004,!1)}function t0(t,e){return new m(3005,!1)}function n0(){return new m(3006,!1)}function r0(){return new m(3007,!1)}function i0(t,e){return new m(3008,!1)}function o0(t){return new m(3002,!1)}function s0(t,e,n,r,i){return new m(3010,!1)}function a0(){return new m(3011,!1)}function u0(){return new m(3012,!1)}function l0(){return new m(3200,!1)}function c0(){return new m(3202,!1)}function d0(){return new m(3013,!1)}function f0(t){return new m(3014,!1)}function h0(t){return new m(3015,!1)}function p0(t){return new m(3016,!1)}function g0(t,e){return new m(3404,!1)}function m0(t){return new m(3502,!1)}function y0(t){return new m(3503,!1)}function v0(){return new m(3300,!1)}function D0(t){return new m(3504,!1)}function w0(t){return new m(3301,!1)}function E0(t,e){return new m(3302,!1)}function C0(t){return new m(3303,!1)}function b0(t,e){return new m(3400,!1)}function I0(t){return new m(3401,!1)}function S0(t){return new m(3402,!1)}function _0(t,e){return new m(3505,!1)}function Mt(t){switch(t.length){case 0:return new _t;case 1:return t[0];default:return new Xr(t)}}function Wp(t,e,n=new Map,r=new Map){let i=[],o=[],s=-1,a=null;if(e.forEach(u=>{let l=u.get("offset"),c=l==s,d=c&&a||new Map;u.forEach((h,f)=>{let p=f,g=h;if(f!=="offset")switch(p=t.normalizePropertyName(p,i),g){case Yo:g=n.get(f);break;case nt: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=l}),i.length)throw m0(i);return o}function Zl(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&Al(n,"start",t)));break;case"done":t.onDone(()=>r(n&&Al(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&Al(n,"destroy",t)));break}}function Al(t,e,n){let r=n.totalTime,i=!!n.disabled,o=Xl(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 Xl(t,e,n,r,i="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function Ae(t,e,n){let r=t.get(e);return r||t.set(e,r=n),r}function Pp(t){let e=t.indexOf(":"),n=t.substring(1,e),r=t.slice(e+1);return[n,r]}var M0=typeof document>"u"?null:document.documentElement;function Jl(t){let e=t.parentNode||t.host||null;return e===M0?null:e}function T0(t){return t.substring(1,6)=="ebkit"}var Xt=null,Fp=!1;function A0(t){Xt||(Xt=x0()||{},Fp=Xt.style?"WebkitAppearance"in Xt.style:!1);let e=!0;return Xt.style&&!T0(t)&&(e=t in Xt.style,!e&&Fp&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Xt.style)),e}function x0(){return typeof document<"u"?document.body:null}function Qp(t,e){for(;e;){if(e===t)return!0;e=Jl(e)}return!1}function Kp(t,e,n){if(n)return Array.from(t.querySelectorAll(e));let r=t.querySelector(e);return r?[r]:[]}var ec=(()=>{let e=class e{validateStyleProperty(r){return A0(r)}matchesElement(r,i){return!1}containsElement(r,i){return Qp(r,i)}getParentElement(r){return Jl(r)}query(r,i,o){return Kp(r,i,o)}computeStyle(r,i,o){return o||""}animate(r,i,o,s,a,u=[],l){return new _t(o,s)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=S({token:e,factory:e.\u0275fac});let t=e;return t})(),ic=class ic{};ic.NOOP=new ec;var tn=ic,nn=class{};var N0=1e3,Yp="{{",R0="}}",Zp="ng-enter",Fl="ng-leave",Zo="ng-trigger",ns=".ng-trigger",kp="ng-animating",kl=".ng-animating";function ht(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ll(parseFloat(e[1]),e[2])}function Ll(t,e){switch(e){case"s":return t*N0;default:return t}}function rs(t,e,n){return t.hasOwnProperty("duration")?t:O0(t,e,n)}function O0(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(Op(t)),{duration:0,delay:0,easing:""};i=Ll(parseFloat(a[1]),a[2]);let u=a[3];u!=null&&(o=Ll(parseFloat(u),a[4]));let l=a[5];l&&(s=l)}else i=t;if(!n){let a=!1,u=e.length;i<0&&(e.push(YC()),a=!0),o<0&&(e.push(ZC()),a=!0),a&&e.splice(u,0,Op(t))}return{duration:i,delay:o,easing:s}}function P0(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function rt(t,e,n){e.forEach((r,i)=>{let o=tc(i);n&&!n.has(i)&&n.set(i,t.style[o]),t.style[o]=r})}function en(t,e){e.forEach((n,r)=>{let i=tc(r);t.style[i]=""})}function Jr(t){return Array.isArray(t)?t.length==1?t[0]:Np(t):t}function F0(t,e,n){let r=e.params||{},i=Xp(t);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||n.push(XC(o))})}var jl=new RegExp(`${Yp}\\s*(.+?)\\s*${R0}`,"g");function Xp(t){let e=[];if(typeof t=="string"){let n;for(;n=jl.exec(t);)e.push(n[1]);jl.lastIndex=0}return e}function ti(t,e,n){let r=`${t}`,i=r.replace(jl,(o,s)=>{let a=e[s];return a==null&&(n.push(JC(s)),a=""),a.toString()});return i==r?t:i}var k0=/-+([a-z0-9])/g;function tc(t){return t.replace(k0,(...e)=>e[1].toUpperCase())}function L0(t,e){return t===0||e===0}function j0(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;os.set(a,nc(t,a)))}}return e}function Te(t,e,n){switch(e.type){case T.Trigger:return t.visitTrigger(e,n);case T.State:return t.visitState(e,n);case T.Transition:return t.visitTransition(e,n);case T.Sequence:return t.visitSequence(e,n);case T.Group:return t.visitGroup(e,n);case T.Animate:return t.visitAnimate(e,n);case T.Keyframes:return t.visitKeyframes(e,n);case T.Style:return t.visitStyle(e,n);case T.Reference:return t.visitReference(e,n);case T.AnimateChild:return t.visitAnimateChild(e,n);case T.AnimateRef:return t.visitAnimateRef(e,n);case T.Query:return t.visitQuery(e,n);case T.Stagger:return t.visitStagger(e,n);default:throw e0(e.type)}}function nc(t,e){return window.getComputedStyle(t)[e]}var V0=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"]),is=class extends nn{normalizePropertyName(e,n){return tc(e)}normalizeStyleValue(e,n,r,i){let o="",s=r.toString().trim();if(V0.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(t0(e,r))}return s+o}};var os="*";function $0(t,e){let n=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(r=>B0(r,n,e)):n.push(t),n}function B0(t,e,n){if(t[0]==":"){let u=U0(t,n);if(typeof u=="function"){e.push(u);return}t=u}let r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return n.push(h0(t)),e;let i=r[1],o=r[2],s=r[3];e.push(Lp(i,s));let a=i==os&&s==os;o[0]=="<"&&!a&&e.push(Lp(s,i))}function U0(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) *"}}var Xo=new Set(["true","1"]),Jo=new Set(["false","0"]);function Lp(t,e){let n=Xo.has(t)||Jo.has(t),r=Xo.has(e)||Jo.has(e);return(i,o)=>{let s=t==os||t==i,a=e==os||e==o;return!s&&n&&typeof i=="boolean"&&(s=i?Xo.has(t):Jo.has(t)),!a&&r&&typeof o=="boolean"&&(a=o?Xo.has(e):Jo.has(e)),s&&a}}var Jp=":self",H0=new RegExp(`s*${Jp}s*,?`,"g");function eg(t,e,n,r){return new Vl(t).build(e,n,r)}var jp="",Vl=class{constructor(e){this._driver=e}build(e,n,r){let i=new $l(n);return this._resetContextStyleTimingState(i),Te(this,Jr(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=jp,e.collectedStyles=new Map,e.collectedStyles.set(jp,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(n0()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==T.State){let u=a,l=u.name;l.toString().split(/\s*,\s*/).forEach(c=>{u.name=c,o.push(this.visitState(u,n))}),u.name=l}else if(a.type==T.Transition){let u=this.visitTransition(a,n);r+=u.queryCount,i+=u.depCount,s.push(u)}else n.errors.push(r0())}),{type:T.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(u=>{Xp(u).forEach(l=>{s.hasOwnProperty(l)||o.add(l)})})}),o.size&&n.errors.push(i0(e.name,[...o.values()]))}return{type:T.State,name:e.name,style:r,options:i?{params:i}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;let r=Te(this,Jr(e.animation),n),i=$0(e.expr,n.errors);return{type:T.Transition,matchers:i,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:Jt(e.options)}}visitSequence(e,n){return{type:T.Sequence,steps:e.steps.map(r=>Te(this,r,n)),options:Jt(e.options)}}visitGroup(e,n){let r=n.currentTime,i=0,o=e.steps.map(s=>{n.currentTime=r;let a=Te(this,s,n);return i=Math.max(i,n.currentTime),a});return n.currentTime=i,{type:T.Group,steps:o,options:Jt(e.options)}}visitAnimate(e,n){let r=W0(e.timings,n.errors);n.currentAnimateTimings=r;let i,o=e.styles?e.styles:Gn({});if(o.type==T.Keyframes)i=this.visitKeyframes(o,n);else{let s=e.styles,a=!1;if(!s){a=!0;let l={};r.easing&&(l.easing=r.easing),s=Gn(l)}n.currentTime+=r.duration+r.delay;let u=this.visitStyle(s,n);u.isEmptyStep=a,i=u}return n.currentAnimateTimings=null,{type:T.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===nt?r.push(a):n.errors.push(o0(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 u of a.values())if(u.toString().indexOf(Yp)>=0){o=!0;break}}}),{type:T.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,u)=>{let l=n.collectedStyles.get(n.currentQuerySelector),c=l.get(u),d=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(n.errors.push(s0(u,c.startTime,c.endTime,o,i)),d=!1),o=c.startTime),d&&l.set(u,{startTime:o,endTime:i}),n.options&&F0(a,n.options,n.errors)})})}visitKeyframes(e,n){let r={type:T.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(a0()),r;let i=1,o=0,s=[],a=!1,u=!1,l=0,c=e.steps.map(C=>{let H=this._makeStyleAst(C,n),$=H.offset!=null?H.offset:G0(H.styles),z=0;return $!=null&&(o++,z=H.offset=$),u=u||z<0||z>1,a=a||z0&&o{let $=h>0?H==f?1:h*H:s[H],z=$*E;n.currentTime=p+g.delay+z,g.duration=z,this._validateStyleAst(C,n),C.offset=$,r.styles.push(C)}),r}visitReference(e,n){return{type:T.Reference,animation:Te(this,Jr(e.animation),n),options:Jt(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:T.AnimateChild,options:Jt(e.options)}}visitAnimateRef(e,n){return{type:T.AnimateRef,animation:this.visitReference(e.animation,n),options:Jt(e.options)}}visitQuery(e,n){let r=n.currentQuerySelector,i=e.options||{};n.queryCount++,n.currentQuery=e;let[o,s]=z0(e.selector);n.currentQuerySelector=r.length?r+" "+o:o,Ae(n.collectedStyles,n.currentQuerySelector,new Map);let a=Te(this,Jr(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:T.Query,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:Jt(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(d0());let r=e.timings==="full"?{duration:0,delay:0,easing:"full"}:rs(e.timings,n.errors,!0);return{type:T.Stagger,animation:Te(this,Jr(e.animation),n),timings:r,options:null}}};function z0(t){let e=!!t.split(/\s*,\s*/).find(n=>n==Jp);return e&&(t=t.replace(H0,"")),t=t.replace(/@\*/g,ns).replace(/@\w+/g,n=>ns+"-"+n.slice(1)).replace(/:animating/g,kl),[t,e]}function q0(t){return t?D({},t):null}var $l=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 G0(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 W0(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=rs(t,e).duration;return xl(o,0,"")}let n=t;if(n.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=xl(0,0,"");return o.dynamic=!0,o.strValue=n,o}let i=rs(n,e);return xl(i.duration,i.delay,i.easing)}function Jt(t){return t?(t=D({},t),t.params&&(t.params=q0(t.params))):t={},t}function xl(t,e,n){return{duration:t,delay:e,easing:n}}function rc(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 ni=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()}},Q0=1,K0=":enter",Y0=new RegExp(K0,"g"),Z0=":leave",X0=new RegExp(Z0,"g");function tg(t,e,n,r,i,o=new Map,s=new Map,a,u,l=[]){return new Bl().buildKeyframes(t,e,n,r,i,o,s,a,u,l)}var Bl=class{buildKeyframes(e,n,r,i,o,s,a,u,l,c=[]){l=l||new ni;let d=new Ul(e,n,l,i,o,c,[]);d.options=u;let h=u.delay?ht(u.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,u),Te(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 E=f[g];if(E.element===n){p=E;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,u)}return f.length?f.map(p=>p.buildKeyframes()):[rc(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:ht(ti(o,i?.params??{},n.errors));r.delayNextStep(s)}}}_visitSubInstructions(e,n,r){let o=n.currentTimeline.currentTime,s=r.duration!=null?ht(r.duration):null,a=r.delay!=null?ht(r.delay):null;return s!==0&&e.forEach(u=>{let l=n.appendInstructionToTimeline(u,s,a);o=Math.max(o,l.duration+l.delay)}),o}visitReference(e,n){n.updateOptions(e.options,!0),Te(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==T.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ss);let s=ht(o.delay);i.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>Te(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?ht(e.options.delay):0;e.steps.forEach(s=>{let a=n.createSubContext(e.options);o&&a.delayNextStep(o),Te(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?ti(r,n.params,n.errors):r;return rs(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==T.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(u=>{let l=u.offset||0;a.forwardTime(l*o),a.setStyles(u.styles,u.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?ht(i.delay):0;o&&(n.previousNode.type===T.Style||r==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=ss);let s=r,a=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,n.errors);n.currentQueryTotal=a.length;let u=null;a.forEach((l,c)=>{n.currentQueryIndex=c;let d=n.createSubContext(e.options,l);o&&d.delayNextStep(o),l===n.element&&(u=d.currentTimeline),Te(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),u&&(n.currentTimeline.mergeTimelineCollectedStyles(u),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),u=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":u=a-u;break;case"full":u=r.currentStaggerTime;break}let c=n.currentTimeline;u&&c.delayNextStep(u);let d=c.currentTime;Te(this,e.animation,n),n.previousNode=e,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}},ss={},Ul=class t{constructor(e,n,r,i,o,s,a,u){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=ss,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new as(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=ht(r.duration)),r.delay!=null&&(i.delay=ht(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]=ti(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=ss,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 Hl(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(Y0,"."+this._enterClassName),e=e.replace(X0,"."+this._leaveClassName);let u=r!=1,l=this._driver.query(this.element,e,u);r!==0&&(l=r<0?l.slice(l.length+r,l.length):l.slice(0,r)),a.push(...l)}return!o&&a.length==0&&s.push(f0(n)),a}},as=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+=Q0,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||nt),this._currentKeyframe.set(n,nt);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,i){n&&this._previousKeyframe.set("easing",n);let o=i&&i.params||{},s=J0(e,this._globalTimelineStyles);for(let[a,u]of s){let l=ti(u,o,r);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??nt),this._updateStyle(a,l)}}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,u)=>{let l=new Map([...this._backFill,...a]);l.forEach((c,d)=>{c===Yo?e.add(d):c===nt&&n.add(d)}),r||l.set("offset",u/this.duration),i.push(l)});let o=[...e.values()],s=[...n.values()];if(r){let a=i[0],u=new Map(a);a.set("offset",0),u.set("offset",1),i=[a,u]}return rc(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}},Hl=class extends as{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,u=new Map(e[0]);u.set("offset",0),o.push(u);let l=new Map(e[0]);l.set("offset",Vp(a)),o.push(l);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",Vp(p/s)),o.push(h)}r=s,n=0,i="",e=o}return rc(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}};function Vp(t,e=3){let n=Math.pow(10,e-1);return Math.round(t*n)/n}function J0(t,e){let n=new Map,r;return t.forEach(i=>{if(i==="*"){r??=e.keys();for(let o of r)n.set(o,nt)}else for(let[o,s]of i)n.set(o,s)}),n}function $p(t,e,n,r,i,o,s,a,u,l,c,d,h){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:d,errors:h}}var Nl={},us=class{constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,i){return eb(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,u,l,c){let d=[],h=this.ast.options&&this.ast.options.params||Nl,f=a&&a.params||Nl,p=this.buildStyles(r,f,d),g=u&&u.params||Nl,E=this.buildStyles(i,g,d),C=new Set,H=new Map,$=new Map,z=i==="void",Ee={params:ng(g,h),delay:this.ast.options?.delay},Q=c?[]:tg(e,n,this.ast.animation,o,s,p,E,Ee,l,d),K=0;return Q.forEach(re=>{K=Math.max(re.duration+re.delay,K)}),d.length?$p(n,this._triggerName,r,i,z,p,E,[],[],H,$,K,d):(Q.forEach(re=>{let it=re.element,pt=Ae(H,it,new Set);re.preStyleProps.forEach(Tt=>pt.add(Tt));let oc=Ae($,it,new Set);re.postStyleProps.forEach(Tt=>oc.add(Tt)),it!==n&&C.add(it)}),$p(n,this._triggerName,r,i,z,p,E,Q,[...C.values()],H,$,K))}};function eb(t,e,n,r,i){return t.some(o=>o(e,n,r,i))}function ng(t,e){let n=D({},e);return Object.entries(t).forEach(([r,i])=>{i!=null&&(n[r]=i)}),n}var zl=class{constructor(e,n,r){this.styles=e,this.defaultParams=n,this.normalizer=r}buildStyles(e,n){let r=new Map,i=ng(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=ti(s,i,n));let u=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,u,s,n),r.set(a,s)})}),r}};function tb(t,e,n){return new ql(t,e,n)}var ql=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 zl(i.style,o,r))}),Bp(this.states,"true","1"),Bp(this.states,"false","0"),n.transitions.forEach(i=>{this.transitionFactories.push(new us(e,i,this.states))}),this.fallbackTransition=nb(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 nb(t,e,n){let r=[(s,a)=>!0],i={type:T.Sequence,steps:[],options:null},o={type:T.Transition,animation:i,matchers:r,options:null,queryCount:0,depCount:0};return new us(t,o,e)}function Bp(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 rb=new ni,Gl=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=eg(this._driver,n,r,i);if(r.length)throw y0(r);i.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,n,r){let i=e.element,o=Wp(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=tg(this._driver,n,o,Zp,Fl,new Map,new Map,r,rb,i),s.forEach(c=>{let d=Ae(a,c.element,new Map);c.postStyleProps.forEach(h=>d.set(h,null))})):(i.push(v0()),s=[]),i.length)throw D0(i);a.forEach((c,d)=>{c.forEach((h,f)=>{c.set(f,this._driver.computeStyle(d,f,nt))})});let u=s.map(c=>{let d=a.get(c.element);return this._buildPlayer(c,new Map,d)}),l=Mt(u);return this._playersById.set(e,l),l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}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 w0(e);return n}listen(e,n,r,i){let o=Xl(n,"","","");return Zl(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}}},Up="ng-animate-queued",ib=".ng-animate-queued",Rl="ng-animate-disabled",ob=".ng-animate-disabled",sb="ng-star-inserted",ab=".ng-star-inserted",ub=[],rg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},lb={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},qe="__ng_removed",ri=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=db(i),r){let o=e,{value:s}=o,a=fc(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])})}}},ei="void",Ol=new ri(ei),Wl=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,Pe(n,this._hostClassName)}listen(e,n,r,i){if(!this._triggers.has(n))throw E0(r,n);if(r==null||r.length==0)throw C0(n);if(!fb(r))throw b0(r,n);let o=Ae(this._elementListeners,e,[]),s={name:n,phase:r,callback:i};o.push(s);let a=Ae(this._engine.statesByElement,e,new Map);return a.has(n)||(Pe(e,Zo),Pe(e,Zo+"-"+n),a.set(n,Ol)),()=>{this._engine.afterFlush(()=>{let u=o.indexOf(s);u>=0&&o.splice(u,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 I0(e);return n}trigger(e,n,r,i=!0){let o=this._getTrigger(n),s=new ii(this.id,n,e),a=this._engine.statesByElement.get(e);a||(Pe(e,Zo),Pe(e,Zo+"-"+n),this._engine.statesByElement.set(e,a=new Map));let u=a.get(n),l=new ri(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),a.set(n,l),u||(u=Ol),!(l.value===ei)&&u.value===l.value){if(!gb(u.params,l.params)){let g=[],E=o.matchStyles(u.value,u.params,g),C=o.matchStyles(l.value,l.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{en(e,E),rt(e,C)})}return}let h=Ae(this._engine.playersByElement,e,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==n&&g.queued&&g.destroy()});let f=o.matchTransition(u.value,l.value,e,l.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:u,toState:l,player:s,isFallbackTransition:p}),p||(Pe(e,Up),s.onStart(()=>{Wn(e,Up)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);let E=this._engine.playersByElement.get(e);if(E){let C=E.indexOf(s);C>=0&&E.splice(C,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,ns,!0);r.forEach(i=>{if(i[qe])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((u,l)=>{if(s.set(l,u.value),this._triggers.has(l)){let c=this.trigger(e,l,ei,i);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,s),r&&Mt(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 u=this._triggers.get(s).fallbackTransition,l=r.get(s)||Ol,c=new ri(ei),d=new ii(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:u,fromState:l,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[qe];(!o||o===rg)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,n))}}insertNode(e,n){Pe(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 u=Xl(o,r.triggerName,r.fromState.value,r.toState.value);u._data=e,Zl(r.player,a.phase,u,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)}},Ql=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 Wl(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 u=i.get(a);if(u){let l=r.indexOf(u);r.splice(l+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(es(n)){let o=this._fetchNamespace(e);if(o)return o.trigger(n,r,i),!0}return!1}insertNode(e,n,r,i){if(!es(n))return;let o=n[qe];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),Pe(e,Rl)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Wn(e,Rl))}removeNode(e,n,r){if(es(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[qe]={namespaceId:e,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,n,r,i,o){return es(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,ns,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(e,kl,!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 Mt(this.players).onDone(()=>e());e()})}processLeaveNode(e){let n=e[qe];if(n&&n.setForRemoval){if(e[qe]=rg,n.namespaceId){this.destroyInnerAnimations(e);let r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}e.classList?.contains(Rl)&&this.markElementAsDisabled(e,!1),this.driver.query(e,ob,!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;rr()),this._flushFns=[],this._whenQuietFns.length){let r=this._whenQuietFns;this._whenQuietFns=[],n.length?Mt(n).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(e){throw S0(e)}_flushAnimations(e,n){let r=new ni,i=[],o=new Map,s=[],a=new Map,u=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(y=>{c.add(y);let w=this.driver.query(y,ib,!0);for(let b=0;b{let b=Zp+g++;p.set(w,b),y.forEach(V=>Pe(V,b))});let E=[],C=new Set,H=new Set;for(let y=0;yC.add(V)):H.add(w))}let $=new Map,z=qp(h,Array.from(C));z.forEach((y,w)=>{let b=Fl+g++;$.set(w,b),y.forEach(V=>Pe(V,b))}),e.push(()=>{f.forEach((y,w)=>{let b=p.get(w);y.forEach(V=>Wn(V,b))}),z.forEach((y,w)=>{let b=$.get(w);y.forEach(V=>Wn(V,b))}),E.forEach(y=>{this.processLeaveNode(y)})});let Ee=[],Q=[];for(let y=this._namespaceList.length-1;y>=0;y--)this._namespaceList[y].drainQueuedTransitions(n).forEach(b=>{let V=b.player,ie=b.element;if(Ee.push(V),this.collectedEnterElements.length){let de=ie[qe];if(de&&de.setForMove){if(de.previousTriggersValues&&de.previousTriggersValues.has(b.triggerName)){let At=de.previousTriggersValues.get(b.triggerName),xe=this.statesByElement.get(b.element);if(xe&&xe.has(b.triggerName)){let oi=xe.get(b.triggerName);oi.value=At,xe.set(b.triggerName,oi)}}V.destroy();return}}let Ge=!d||!this.driver.containsElement(d,ie),Ce=$.get(ie),gt=p.get(ie),G=this._buildInstruction(b,r,gt,Ce,Ge);if(G.errors&&G.errors.length){Q.push(G);return}if(Ge){V.onStart(()=>en(ie,G.fromStyles)),V.onDestroy(()=>rt(ie,G.toStyles)),i.push(V);return}if(b.isFallbackTransition){V.onStart(()=>en(ie,G.fromStyles)),V.onDestroy(()=>rt(ie,G.toStyles)),i.push(V);return}let uc=[];G.timelines.forEach(de=>{de.stretchStartingKeyframe=!0,this.disabledNodes.has(de.element)||uc.push(de)}),G.timelines=uc,r.append(ie,G.timelines);let cg={instruction:G,player:V,element:ie};s.push(cg),G.queriedElements.forEach(de=>Ae(a,de,[]).push(V)),G.preStyleProps.forEach((de,At)=>{if(de.size){let xe=u.get(At);xe||u.set(At,xe=new Set),de.forEach((oi,ps)=>xe.add(ps))}}),G.postStyleProps.forEach((de,At)=>{let xe=l.get(At);xe||l.set(At,xe=new Set),de.forEach((oi,ps)=>xe.add(ps))})});if(Q.length){let y=[];Q.forEach(w=>{y.push(_0(w.triggerName,w.errors))}),Ee.forEach(w=>w.destroy()),this.reportError(y)}let K=new Map,re=new Map;s.forEach(y=>{let w=y.element;r.has(w)&&(re.set(w,w),this._beforeAnimationBuild(y.player.namespaceId,y.instruction,K))}),i.forEach(y=>{let w=y.element;this._getPreviousPlayers(w,!1,y.namespaceId,y.triggerName,null).forEach(V=>{Ae(K,w,[]).push(V),V.destroy()})});let it=E.filter(y=>Gp(y,u,l)),pt=new Map;zp(pt,this.driver,H,l,nt).forEach(y=>{Gp(y,u,l)&&it.push(y)});let Tt=new Map;f.forEach((y,w)=>{zp(Tt,this.driver,new Set(y),u,Yo)}),it.forEach(y=>{let w=pt.get(y),b=Tt.get(y);pt.set(y,new Map([...w?.entries()??[],...b?.entries()??[]]))});let hs=[],sc=[],ac={};s.forEach(y=>{let{element:w,player:b,instruction:V}=y;if(r.has(w)){if(c.has(w)){b.onDestroy(()=>rt(w,V.toStyles)),b.disabled=!0,b.overrideTotalTime(V.totalTime),i.push(b);return}let ie=ac;if(re.size>1){let Ce=w,gt=[];for(;Ce=Ce.parentNode;){let G=re.get(Ce);if(G){ie=G;break}gt.push(Ce)}gt.forEach(G=>re.set(G,ie))}let Ge=this._buildAnimation(b.namespaceId,V,K,o,Tt,pt);if(b.setRealPlayer(Ge),ie===ac)hs.push(b);else{let Ce=this.playersByElement.get(ie);Ce&&Ce.length&&(b.parentPlayer=Mt(Ce)),i.push(b)}}else en(w,V.fromStyles),b.onDestroy(()=>rt(w,V.toStyles)),sc.push(b),c.has(w)&&i.push(b)}),sc.forEach(y=>{let w=o.get(y.element);if(w&&w.length){let b=Mt(w);y.setRealPlayer(b)}}),i.forEach(y=>{y.parentPlayer?y.syncPlayerEvents(y.parentPlayer):y.destroy()});for(let y=0;y!Ge.destroyed);ie.length?hb(this,w,ie):this.processLeaveNode(w)}return E.length=0,hs.forEach(y=>{this.players.push(y),y.onDone(()=>{y.destroy();let w=this.players.indexOf(y);this.players.splice(w,1)}),y.play()}),hs}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 u=!o||o==ei;a.forEach(l=>{l.queued||!u&&l.triggerName!=i||s.push(l)})}}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 u of n.timelines){let l=u.element,c=l!==o,d=Ae(r,l,[]);this._getPreviousPlayers(l,c,s,a,n.toState).forEach(f=>{let p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}en(o,n.fromStyles)}_buildAnimation(e,n,r,i,o,s){let a=n.triggerName,u=n.element,l=[],c=new Set,d=new Set,h=n.timelines.map(p=>{let g=p.element;c.add(g);let E=g[qe];if(E&&E.removedBeforeQueried)return new _t(p.duration,p.delay);let C=g!==u,H=pb((r.get(g)||ub).map(K=>K.getRealPlayer())).filter(K=>{let re=K;return re.element?re.element===g:!1}),$=o.get(g),z=s.get(g),Ee=Wp(this._normalizer,p.keyframes,$,z),Q=this._buildPlayer(p,Ee,H);if(p.subTimeline&&i&&d.add(g),C){let K=new ii(e,a,g);K.setRealPlayer(Q),l.push(K)}return Q});l.forEach(p=>{Ae(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>cb(this.playersByQueriedElement,p.element,p))}),c.forEach(p=>Pe(p,kp));let f=Mt(h);return f.onDestroy(()=>{c.forEach(p=>Wn(p,kp)),rt(u,n.toStyles)}),d.forEach(p=>{Ae(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 _t(e.duration,e.delay)}},ii=class{constructor(e,n,r){this.namespaceId=e,this.triggerName=n,this.element=r,this._player=new _t,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=>Zl(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){Ae(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 cb(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 db(t){return t??null}function es(t){return t&&t.nodeType===1}function fb(t){return t=="start"||t=="done"}function Hp(t,e){let n=t.style.display;return t.style.display=e??"none",n}function zp(t,e,n,r,i){let o=[];n.forEach(u=>o.push(Hp(u)));let s=[];r.forEach((u,l)=>{let c=new Map;u.forEach(d=>{let h=e.computeStyle(l,d,i);c.set(d,h),(!h||h.length==0)&&(l[qe]=lb,s.push(l))}),t.set(l,c)});let a=0;return n.forEach(u=>Hp(u,o[a++])),s}function qp(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 u=o.get(a);if(u)return u;let l=a.parentNode;return n.has(l)?u=l:i.has(l)?u=r:u=s(l),o.set(a,u),u}return e.forEach(a=>{let u=s(a);u!==r&&n.get(u).push(a)}),n}function Pe(t,e){t.classList?.add(e)}function Wn(t,e){t.classList?.remove(e)}function hb(t,e,n){Mt(n).onDone(()=>t.processLeaveNode(e))}function pb(t){let e=[];return ig(t,e),e}function ig(t,e){for(let n=0;ni.add(o)):e.set(t,r),n.delete(t),!0}var Kn=class{constructor(e,n,r,i){this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new Ql(e.body,n,r,i),this._timelineEngine=new Gl(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 u=[],l=[],c=eg(this._driver,o,u,l);if(u.length)throw g0(i,u);l.length&&void 0,a=tb(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]=Pp(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]=Pp(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 mb(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=Pl(e[0]),e.length>1&&(r=Pl(e[e.length-1]))):e instanceof Map&&(n=Pl(e)),n||r?new Kl(t,n,r):null}var Qn=class Qn{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let i=Qn.initialStylesByElement.get(e);i||Qn.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&rt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(rt(this._element,this._initialStyles),this._endStyles&&(rt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Qn.initialStylesByElement.delete(this._element),this._startStyles&&(en(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(en(this._element,this._endStyles),this._endStyles=null),rt(this._element,this._initialStyles),this._state=3)}};Qn.initialStylesByElement=new WeakMap;var Kl=Qn;function Pl(t){let e=null;return t.forEach((n,r)=>{yb(r)&&(e=e||new Map,e.set(r,n))}),e}function yb(t){return t==="display"||t==="position"}var ls=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:nc(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let n=e==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},cs=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,n){return!1}containsElement(e,n){return Qp(e,n)}getParentElement(e){return Jl(e)}query(e,n,r){return Kp(e,n,r)}computeStyle(e,n,r){return nc(e,n)}animate(e,n,r,i,o,s=[]){let a=i==0?"both":"forwards",u={duration:r,delay:i,fill:a};o&&(u.easing=o);let l=new Map,c=s.filter(f=>f instanceof ls);L0(r,i)&&c.forEach(f=>{f.currentSnapshot.forEach((p,g)=>l.set(g,p))});let d=P0(n).map(f=>new Map(f));d=j0(e,d,l);let h=mb(e,d);return new ls(e,d,u,h)}};var ts="@",og="@.disabled",ds=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)==ts&&n==og?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)}},Yl=class extends ds{constructor(e,n,r,i,o){super(n,r,i,o),this.factory=e,this.namespaceId=n}setProperty(e,n,r){n.charAt(0)==ts?n.charAt(1)=="."&&n==og?(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)==ts){let i=vb(e),o=n.slice(1),s="";return o.charAt(0)!=ts&&([o,s]=Db(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{let u=a._data||-1;this.factory.scheduleListenerCallback(u,r,a)})}return this.delegate.listen(e,n,r)}};function vb(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function Db(t){let e=t.indexOf("."),n=t.substring(0,e),r=t.slice(e+1);return[n,r]}var fs=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 l=this._rendererCache,c=l.get(i);if(!c){let d=()=>l.delete(i);c=new ds(r,i,this.engine,d),l.set(i,c)}return c}let o=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(o,s,e,l.name,l)};return n.data.animation.forEach(a),new Yl(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&&en(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 Eb=(()=>{let e=class e extends Kn{constructor(r,i,o){super(r,i,o,v(gr,{optional:!0}))}ngOnDestroy(){this.flush()}};e.\u0275fac=function(i){return new(i||e)(R(we),R(tn),R(nn))},e.\u0275prov=S({token:e,factory:e.\u0275fac});let t=e;return t})();function Cb(){return new is}function bb(t,e,n){return new fs(t,e,n)}var sg=[{provide:nn,useFactory:Cb},{provide:Kn,useClass:Eb},{provide:Bt,useFactory:bb,deps:[Ro,Kn,Y]}],Ib=[{provide:tn,useFactory:()=>new cs},{provide:uu,useValue:"BrowserAnimations"},...sg],jN=[{provide:tn,useClass:ec},{provide:uu,useValue:"NoopAnimations"},...sg];function ag(){return An("NgEagerAnimations"),[...Ib]}var ug={providers:[Mp(Tp),ag()]};function Sb(t,e){t&1&&(ne(0,"p"),le(1,"\u0423\u0440\u0430! \u0422\u044B \u043E\u0442\u043A\u0440\u044B\u043B\u0430 \u0432\u0441\u0435 \u0441\u0443\u043D\u0434\u0443\u043A\u0438!"),se())}function _b(t,e){t&1&&le(0,"\u043E\u0432")}function Mb(t,e){t&1&&le(0,"a")}function Tb(t,e){if(t&1&&(ne(0,"p"),le(1,"\u0422\u044B \u043C\u043E\u0436\u0435\u0448\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u044C "),ne(2,"strong"),le(3),se(),le(4," \u0441\u0443\u043D\u0434\u0443\u043A"),Ct(5,_b,1,0)(6,Mb,1,0),se()),t&2){let n=Nn();Se(3),Rn(n.availableToOpen),Se(2),_r(5,n.availableToOpen>=5?5:n.availableToOpen>1&&n.availableToOpen<5?6:-1)}}function Ab(t,e){if(t&1){let n=Su();ne(0,"li")(1,"div",4),Tr("click",function(){let i=Ya(n).$implicit,o=Nn(2);return Za(o.openCheast(i))}),ne(2,"strong",5),le(3),se()(),ne(4,"div",6)(5,"span"),le(6,"\u{1F512}"),se(),ne(7,"div",7),le(8),se()()()}if(t&2){let n=e.$implicit,r=e.$index,i=Nn();Se(),Iu("opened",n.opened)("disabled",!n.opened&&i.availableToOpen===0),Se(2),Rn(r+1),Se(5),Ar(" ",i.countDown," ")}}function xb(t,e){if(t&1&&(ne(0,"div")(1,"div",8)(2,"strong",9),le(3),se(),ne(4,"h1"),le(5),se(),ne(6,"p"),le(7),se()()()),t&2){let n=e;Se(3),Rn(n==null?null:n.id),Se(2),Ar("\u041F\u043E\u0434\u0430\u0440\u043E\u0447\u0435\u043A \u043E\u0442 ",n==null?null:n.title,""),Se(2),Rn(n==null?null:n.text)}}function Nb(t,e){if(t&1){let n=Su();ne(0,"header")(1,"div",0),le(2,"\u2665\uFE0F"),se(),ne(3,"h1"),le(4,"\u0421 \u0414\u043D\u0435\u043C \u0420\u043E\u0436\u0434\u0435\u043D\u0438\u044F!"),se(),ne(5,"p"),le(6,"\u041A\u0430\u0436\u0434\u044B\u0439 \u0447\u0430\u0441 \u0442\u044B \u043C\u043E\u0436\u0435\u0448\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043B\u044E\u0431\u043E\u0439 \u043D\u043E\u0432\u044B\u0439 \u0441\u0443\u043D\u0434\u0443\u043A. \u041D\u0430\u0436\u043C\u0438 \u043D\u0430 \u043D\u0435\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0438 \u0443\u0432\u0438\u0434\u0435\u0442\u044C \u0438\u043D\u0441\u0442\u0440\u0443\u043A\u0446\u0438\u044E, \u0433\u0434\u0435 \u0441\u043F\u0440\u044F\u0442\u0430\u043D \u0441\u044E\u0440\u043F\u0440\u0438\u0437!"),se(),Ct(7,Sb,2,0,"p")(8,Tb,7,2),se(),Mr(9,"h1"),ne(10,"ul",1),wh(11,Ab,9,6,"li",null,Dh),se(),ne(13,"div",2),So(14,"async"),Ct(15,xb,8,3,"div"),So(16,"async"),ne(17,"button",3),Tr("click",function(){Ya(n);let i=Nn();return Za(i.modalSubject.next(null))}),le(18,"\u0417\u0430\u043A\u0440\u044B\u0442\u044C"),se()()}if(t&2){let n,r=e,i=Nn();Se(7),_r(7,r.openedItems>=i.cheasts.length?7:r.availableToOpen>0?8:-1),Se(4),Eh(i.cheasts),Se(2),bu("@openClose",!!_o(14,3,i.modalSubject)),Se(2),_r(15,(n=_o(16,5,i.modalSubject))?15:-1,n)}}var lg=(()=>{let e=class e{constructor(){this.startDate=new Date("2024-09-07T05:00:00.000Z"),this.clickSubject=new oe,this.modalSubject=new oe,this.cheasts=[{id:"1",opened:!1,date:this.startDate,title:"\u0422\u0438\u043C\u043E\u0448\u043A\u0438",text:"\u041F\u043E\u0434\u0430\u0440\u043E\u043A \u0432\u043E\u0442 \u0432\u043E\u0442 \u0443\u043B\u0435\u0442\u0438\u0442 \u0432 \u043A\u043E\u0441\u043C\u043E\u0441 \u043D\u0430 \u0448\u0430\u0442\u043B\u0435! \u041D\u0443\u0436\u043D\u043E \u043F\u043E\u0441\u043F\u0435\u0448\u0438\u0442\u044C!"},{id:"2",opened:!1,date:this.startDate,title:"\u042D\u043B\u044C\u0444\u044B",text:"text 2"},{id:"3",opened:!1,date:new Date,title:"\u041A\u0430\u0441\u0438",text:"text 3"},{id:"4",opened:!1,date:new Date,title:"\u0415\u0433\u043E\u0440\u043A\u0438",text:'\u041F\u043E\u0437\u0432\u043E\u043D\u0438 \u043F\u043E \u043D\u043E\u043C\u0435\u0440\u0443 +380979242920 \u0438 \u0441\u043A\u0430\u0436\u0438 \u043A\u043E\u0434\u043E\u0432\u0443\u044E \u0444\u0440\u0430\u0437\u0443 "\u041E\u0442\u0442\u043E \u043F\u0440\u043E\u0441\u0438\u043B \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C, \u0447\u0442\u043E \u0432\u0447\u0435\u0440\u0430 \u0432\u0435\u0447\u0435\u0440\u043E\u043C \u043E\u043D \u0436\u0434\u0430\u043B \u0432\u0430\u0448\u0435\u0433\u043E \u0437\u0432\u043E\u043D\u043A\u0430" \u0447\u0442\u043E \u0431\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u0430\u043B\u044C\u043D\u0435\u0439\u0448\u0438\u0435 \u0438\u043D\u0441\u0442\u0440\u0443\u043A\u0446\u0438\u0438!'},{id:"5",opened:!1,date:new Date,title:"\u0421\u0435\u043C\u044C\u0438",text:"\u041F\u043E\u0434\u0430\u0440\u043E\u043A \u043C\u043E\u0436\u043D\u043E \u043D\u0430\u0439\u0442\u0438 \u043F\u043E\u0434 \u0442\u0435\u043F\u043B\u044B\u043C\u0438 \u043D\u043E\u0441\u043A\u0430\u043C\u0438 \u0415\u0433\u043E\u0440\u0430."}],this.tick$=Rs(this.clickSubject,Ns(0,1e3)).pipe(P(()=>{let r=this.calculateAvailable()>this.cheasts.length?this.cheasts.length:this.calculateAvailable(),i=this.cheasts.filter(s=>s.opened).length,o=r-i;return{availableToOpen:o<0?0:o,openedItems:i,countDown:this.calculateCountDown(r)}}))}ngOnInit(){this.fillDatesNstatus()}openCheast(r){r.opened=!0;let o=this.cheasts.filter(s=>s.opened).map(s=>s.id);localStorage.setItem("openedCheasts",JSON.stringify(o)),this.clickSubject.next(null),this.modalSubject.next(r)}calculateAvailable(){let i=Math.floor((new Date().getTime()-this.startDate.getTime())/(60*60*1e3));return i>0?i:0}calculateCountDown(r){let i=new Date,o=this.cheasts[r]?.date.getTime()-i.getTime(),s=Math.floor(o/1e3%60),a=Math.floor(o/(1e3*60)%60),u=Math.floor(o/(1e3*60*60)%24);return u=u<10?"0"+u:u,a=a<10?"0"+a:a,s=s<10?"0"+s:s,u+":"+a+":"+s}fillDatesNstatus(){let r=JSON.parse(localStorage.getItem("openedCheasts")||"[]"),i=1;this.cheasts.forEach(o=>{let s=!!r.find(a=>a===o.id);o.date=new Date(this.startDate.getTime()+i*60*60*1e3),o.opened=s,i++})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=oo({type:e,selectors:[["app-root"]],standalone:!0,features:[Io],decls:2,vars:3,consts:[[1,"heart"],[1,"chests"],[1,"modal"],["type","button",1,"close-button",3,"click"],[1,"content",3,"click"],[1,"num"],[1,"lock"],[1,"countdown"],[1,"white"],[1,"num","big"]],template:function(i,o){if(i&1&&(Ct(0,Nb,19,7),So(1,"async")),i&2){let s;_r(0,(s=_o(1,1,o.tick$))?0:-1,s)}},dependencies:[Ou,Lh],styles:['[_nghost-%COMP%]{max-width:380px;margin:0 auto;display:block}header[_ngcontent-%COMP%]{padding:48px 30px 30px}header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#e95d00;font-size:32px;padding-bottom:28px;letter-spacing:-.2px}p[_ngcontent-%COMP%]{line-height:22px;letter-spacing:-.2px;padding-bottom:10px}.heart[_ngcontent-%COMP%]{font-size:64px;padding-bottom:32px;font-family:Roboto-Regular,sans-serif}.chests[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;padding:0 13px}.chests[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{width:50%;flex-basis:50%;position:relative}.chests[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding-top:143px;margin-bottom:33px;background:url("./media/chest-OFREJPXF.png") 50% 0 no-repeat;background-size:144px 144px}.chests[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .content.opened[_ngcontent-%COMP%]{background-image:url("./media/chest-open-C5URLUCI.png")}.chests[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .content.disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}.chests[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .content.disabled[_ngcontent-%COMP%] + .lock[_ngcontent-%COMP%]{display:block}.num[_ngcontent-%COMP%]{display:inline-block;background-color:#ffc240;border-radius:50%;width:42px;height:42px;line-height:40px;font-size:24px}.num.big[_ngcontent-%COMP%]{width:56px;height:56px;font-size:32px;line-height:54px;margin-bottom:30px}.lock[_ngcontent-%COMP%]{display:none;position:absolute;top:0;left:0;width:100%}.lock[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:56px;padding:30px 0 7px;font-family:Roboto-Regular,sans-serif;display:block}.lock[_ngcontent-%COMP%] .countdown[_ngcontent-%COMP%]{display:inline-block;background-color:#95938a;color:#fff;font-family:OpenSans-Bold,Arial,sans-serif;font-size:12px;padding:4px 7px;border-radius:12px}.modal[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;bottom:0;left:0;z-index:1;background-color:#dacdbe;overflow:auto}.modal[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin:0 auto;width:384px;padding:120px 16px 16px;position:relative}.modal[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;top:0;left:0;z-index:2;pointer-events:none;width:100%;height:256px;background:url("./media/chest-open-big-O2RMSLDO.png") 50% 0 no-repeat;background-size:256px 256px}.white[_ngcontent-%COMP%]{background-color:#fff;border-radius:80px 80px 16px 16px;padding:140px 24px 100px;min-height:calc(100vh - 140px);font-size:16px;line-height:22px}.close-button[_ngcontent-%COMP%]{position:fixed;bottom:32px;left:calc(50% - 160px);width:320px;height:56px;padding-bottom:2px;border:none;background-color:#e95d00;border-radius:28px;color:#fff;font-size:20px;letter-spacing:-.2px;font-family:OpenSans-Bold,Arial,sans-serif}'],data:{animation:[Ap("openClose",[Tl("true",Gn({height:"100%",opacity:"1"})),Tl("false",Gn({height:"0px",opacity:"0"})),Rp("false <=> true",xp(250))])]}});let t=e;return t})();qh(lg,ug).catch(t=>console.error(t));