aiservermanager 0.7.9 → 0.7.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ var Jg=Object.defineProperty,Xg=Object.defineProperties;var ey=Object.getOwnPropertyDescriptors;var oo=Object.getOwnPropertySymbols;var ku=Object.prototype.hasOwnProperty,Ru=Object.prototype.propertyIsEnumerable;var Au=(t,e,n)=>e in t?Jg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,G=(t,e)=>{for(var n in e||={})ku.call(e,n)&&Au(t,n,e[n]);if(oo)for(var n of oo(e))Ru.call(e,n)&&Au(t,n,e[n]);return t},ee=(t,e)=>Xg(t,ey(e));var As=(t,e)=>{var n={};for(var r in t)ku.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&oo)for(var r of oo(t))e.indexOf(r)<0&&Ru.call(t,r)&&(n[r]=t[r]);return n};var ks=(t,e,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(l){o(l)}},s=c=>{try{a(n.throw(c))}catch(l){o(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(t,e)).next())});var ce=null,io=!1,Ft=1,ty=null,Z=Symbol("SIGNAL");function D(t){let e=ce;return ce=t,e}function lo(){return ce}var jt={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Vt(t){if(io)throw new Error("");if(ce===null)return;ce.consumerOnSignalRead(t);let e=ce.producersTail;if(e!==void 0&&e.producer===t)return;let n,r=ce.recomputing;if(r&&(n=e!==void 0?e.nextProducer:ce.producers,n!==void 0&&n.producer===t)){ce.producersTail=n,n.lastReadVersion=t.version,n.knownValidAtEpoch=Ft;return}let o=t.consumersTail;if(o!==void 0&&o.consumer===ce&&(!r||o.knownValidAtEpoch===Ft))return;let i=En(ce),s={producer:t,consumer:ce,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:Ft,lastReadVersion:t.version,nextConsumer:void 0};ce.producersTail=s,e!==void 0?e.nextProducer=s:ce.producers=s,i&&Fu(t,s)}function Ou(){Ft++}function uo(t){if(!(En(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Ft)){if(!t.producerMustRecompute(t)&&!vn(t)){co(t);return}t.producerRecomputeValue(t),co(t)}}function Rs(t){if(t.consumers===void 0)return;let e=io;io=!0;try{for(let n=t.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||ny(r)}}finally{io=e}}function Os(){return ce?.consumerAllowSignalWrites!==!1}function ny(t){t.dirty=!0,Rs(t),t.consumerMarkedDirty?.(t)}function co(t){t.dirty=!1,t.lastCleanEpoch=Ft}function ht(t){return t&&Pu(t),D(t)}function Pu(t){if(t.producersTail?.knownValidAtEpoch===Ft){let e=t.producers;for(;e!==void 0;)e.knownValidAtEpoch=null,e=e.nextProducer}t.producersTail=void 0,t.recomputing=!0}function Ht(t,e){D(e),t&&Lu(t)}function Lu(t){t.recomputing=!1;let e=t.producersTail,n=e!==void 0?e.nextProducer:t.producers;if(n!==void 0){if(En(t))do n=Ps(n);while(n!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function vn(t){for(let e=t.producers;e!==void 0;e=e.nextProducer){let n=e.producer,r=e.lastReadVersion;if(r!==n.version||(uo(n),r!==n.version))return!0}return!1}function mt(t){if(En(t)){let e=t.producers;for(;e!==void 0;)e=Ps(e)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function Fu(t,e){let n=t.consumersTail,r=En(t);if(n!==void 0?(e.nextConsumer=n.nextConsumer,n.nextConsumer=e):(e.nextConsumer=void 0,t.consumers=e),e.prevConsumer=n,t.consumersTail=e,!r)for(let o=t.producers;o!==void 0;o=o.nextProducer)Fu(o.producer,o)}function Ps(t){let e=t.producer,n=t.nextProducer,r=t.nextConsumer,o=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:e.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(e.consumers=r,!En(e)){let i=e.producers;for(;i!==void 0;)i=Ps(i)}return n}function En(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function fo(t){ty?.(t)}function po(t,e){return Object.is(t,e)}function sr(t,e){let n=Object.create(ry);n.computation=t,e!==void 0&&(n.equal=e);let r=()=>{if(uo(n),Vt(n),n.value===ir)throw n.error;return n.value};return r[Z]=n,fo(n),r}var so=Symbol("UNSET"),ao=Symbol("COMPUTING"),ir=Symbol("ERRORED"),ry=ee(G({},jt),{value:so,dirty:!0,error:null,equal:po,kind:"computed",producerMustRecompute(t){return t.value===so||t.value===ao},producerRecomputeValue(t){if(t.value===ao)throw new Error("");let e=t.value;t.value=ao;let n=ht(t),r,o=!1;try{r=t.computation(),D(null),o=e!==so&&e!==ir&&r!==ir&&t.equal(e,r)}catch(i){r=ir,t.error=i}finally{Ht(t,n)}if(o){t.value=e;return}t.value=r,t.version++}});function oy(){throw new Error}var ju=oy;function Vu(t){ju(t)}function Ls(t){ju=t}var iy=null;function Fs(t,e){let n=Object.create(ar);n.value=t,e!==void 0&&(n.equal=e);let r=()=>Hu(n);return r[Z]=n,fo(n),[r,s=>In(n,s),s=>js(n,s)]}function Hu(t){return Vt(t),t.value}function In(t,e){Os()||Vu(t),t.equal(t.value,e)||(t.value=e,sy(t))}function js(t,e){Os()||Vu(t),In(t,e(t.value))}var ar=ee(G({},jt),{equal:po,value:void 0,kind:"signal"});function sy(t){t.version++,Ou(),Rs(t),iy?.(t)}var Vs=ee(G({},jt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function Hs(t){if(t.dirty=!1,t.version>0&&!vn(t))return;t.version++;let e=ht(t);try{t.cleanup(),t.fn()}finally{Ht(t,e)}}var Bs;function ho(){return Bs}function qe(t){let e=Bs;return Bs=t,e}var Bu=Symbol("NotFound");function Dn(t){return t===Bu||t?.name==="\u0275NotFound"}function $u(t){let e=D(null);try{return t()}finally{D(e)}}function C(t){return typeof t=="function"}function _n(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 mo=_n(t=>function(n){t(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
+ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Bt(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var $=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 i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(C(r))try{r()}catch(i){e=i instanceof mo?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Uu(i)}catch(s){e=e??[],s instanceof mo?e=[...e,...s.errors]:e.push(s)}}if(e)throw new mo(e)}}add(e){var n;if(e&&e!==this)if(this.closed)Uu(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)&&Bt(n,e)}remove(e){let{_finalizers:n}=this;n&&Bt(n,e),e instanceof t&&e._removeParent(this)}};$.EMPTY=(()=>{let t=new $;return t.closed=!0,t})();var $s=$.EMPTY;function go(t){return t instanceof $||t&&"closed"in t&&C(t.remove)&&C(t.add)&&C(t.unsubscribe)}function Uu(t){C(t)?t():t.unsubscribe()}var Ae={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Tn={setTimeout(t,e,...n){let{delegate:r}=Tn;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=Tn;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function yo(t){Tn.setTimeout(()=>{let{onUnhandledError:e}=Ae;if(e)e(t);else throw t})}function $t(){}var qu=Us("C",void 0,void 0);function zu(t){return Us("E",void 0,t)}function Gu(t){return Us("N",t,void 0)}function Us(t,e,n){return{kind:t,value:e,error:n}}var Ut=null;function wn(t){if(Ae.useDeprecatedSynchronousErrorHandling){let e=!Ut;if(e&&(Ut={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=Ut;if(Ut=null,n)throw r}}else t()}function Wu(t){Ae.useDeprecatedSynchronousErrorHandling&&Ut&&(Ut.errorThrown=!0,Ut.error=t)}var qt=class extends ${constructor(e){super(),this.isStopped=!1,e?(this.destination=e,go(e)&&e.add(this)):this.destination=ly}static create(e,n,r){return new ke(e,n,r)}next(e){this.isStopped?zs(Gu(e),this):this._next(e)}error(e){this.isStopped?zs(zu(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?zs(qu,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()}}},ay=Function.prototype.bind;function qs(t,e){return ay.call(t,e)}var Gs=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){vo(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){vo(r)}else vo(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){vo(n)}}},ke=class extends qt{constructor(e,n,r){super();let o;if(C(e)||!e)o={next:e??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Ae.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&qs(e.next,i),error:e.error&&qs(e.error,i),complete:e.complete&&qs(e.complete,i)}):o=e}this.destination=new Gs(o)}};function vo(t){Ae.useDeprecatedSynchronousErrorHandling?Wu(t):yo(t)}function cy(t){throw t}function zs(t,e){let{onStoppedNotification:n}=Ae;n&&Tn.setTimeout(()=>n(t,e))}var ly={closed:!0,next:$t,error:cy,complete:$t};var bn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Re(t){return t}function Qu(t){return t.length===0?Re:t.length===1?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}var k=(()=>{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,o){let i=dy(n)?n:new ke(n,r,o);return wn(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Ku(r),new r((o,i)=>{let s=new ke({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[bn](){return this}pipe(...n){return Qu(n)(this)}toPromise(n){return n=Ku(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=e=>new t(e),t})();function Ku(t){var e;return(e=t??Ae.Promise)!==null&&e!==void 0?e:Promise}function uy(t){return t&&C(t.next)&&C(t.error)&&C(t.complete)}function dy(t){return t&&t instanceof qt||uy(t)&&go(t)}function Ws(t){return C(t?.lift)}function x(t){return e=>{if(Ws(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 N(t,e,n,r,o){return new Qs(t,e,n,r,o)}var Qs=class extends qt{constructor(e,n,r,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){e.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=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 Zu(){return x((t,e)=>{let n=null;t._refCount++;let r=N(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){n=null;return}let o=t._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),e.unsubscribe()});t.subscribe(r),r.closed||(n=t.connect())})}var Ks=class extends k{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Ws(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 $;let n=this.getSubject();e.add(this.source.subscribe(N(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=$.EMPTY)}return e}refCount(){return Zu()(this)}};var Sn={schedule(t){let e=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=Sn;r&&(e=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=e(i=>{n=void 0,t(i)});return new $(()=>n?.(o))},requestAnimationFrame(...t){let{delegate:e}=Sn;return(e?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:e}=Sn;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var Yu=_n(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ye=(()=>{class t extends k{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Eo(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Yu}next(n){wn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){wn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){wn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?$s:(this.currentObservers=null,i.push(n),new $(()=>{this.currentObservers=null,Bt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new k;return n.source=this,n}}return t.create=(e,n)=>new Eo(e,n),t})(),Eo=class extends ye{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:$s}};var cr=class extends ye{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 lr={now(){return(lr.delegate||Date).now()},delegate:void 0};var ur=class extends ye{constructor(e=1/0,n=1/0,r=lr){super(),this._bufferSize=e,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,n)}next(e){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(e),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(e),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!e.closed;s+=r?1:2)e.next(i[s]);return this._checkFinalizedStatuses(e),n}_trimBuffer(){let{_bufferSize:e,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var Io=class extends ${constructor(e,n){super()}schedule(e,n=0){return this}};var dr={setInterval(t,e,...n){let{delegate:r}=dr;return r?.setInterval?r.setInterval(t,e,...n):setInterval(t,e,...n)},clearInterval(t){let{delegate:e}=dr;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var gt=class extends Io{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 o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(e,n,r=0){return dr.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&&dr.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,o;try{this.work(e)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:e,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Bt(r,this),e!=null&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,super.unsubscribe()}}};var fy=1,Zs,Ys={};function Ju(t){return t in Ys?(delete Ys[t],!0):!1}var Xu={setImmediate(t){let e=fy++;return Ys[e]=!0,Zs||(Zs=Promise.resolve()),Zs.then(()=>Ju(e)&&t()),e},clearImmediate(t){Ju(t)}};var{setImmediate:py,clearImmediate:hy}=Xu,fr={setImmediate(...t){let{delegate:e}=fr;return(e?.setImmediate||py)(...t)},clearImmediate(t){let{delegate:e}=fr;return(e?.clearImmediate||hy)(t)},delegate:void 0};var Do=class extends gt{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,r=0){return r!==null&&r>0?super.requestAsyncId(e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=fr.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(e,n,r);let{actions:i}=e;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(fr.clearImmediate(n),e._scheduled===n&&(e._scheduled=void 0))}};var Cn=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)}};Cn.now=lr.now;var yt=class extends Cn{constructor(e,n=Cn.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 _o=class extends yt{flush(e){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;e=e||r.shift();do if(o=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,o){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw o}}};var my=new _o(Do);var zt=new yt(gt),ed=zt;var To=class extends gt{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,r=0){return r!==null&&r>0?super.requestAsyncId(e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=Sn.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(e,n,r);let{actions:i}=e;n!=null&&n===e._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(Sn.cancelAnimationFrame(n),e._scheduled=void 0)}};var wo=class extends yt{flush(e){this._active=!0;let n;e?n=e.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;e=e||r.shift();do if(o=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,o){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw o}}};var gy=new wo(To);var pr=new k(t=>t.complete());function bo(t){return t&&C(t.schedule)}function Js(t){return t[t.length-1]}function So(t){return C(Js(t))?t.pop():void 0}function ze(t){return bo(Js(t))?t.pop():void 0}function td(t,e){return typeof Js(t)=="number"?t.pop():e}function rd(t,e,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(t,e||[])).next())})}function nd(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 Gt(t){return this instanceof Gt?(this.v=t,this):new Gt(t)}function od(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(m){return new Promise(function(v,T){i.push([f,m,v,T])>1||c(f,m)})},h&&(o[f]=h(o[f])))}function c(f,h){try{l(r[f](h))}catch(m){p(i[0][3],m)}}function l(f){f.value instanceof Gt?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function id(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 nd=="function"?nd(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=t[i]&&function(s){return new Promise(function(a,c){s=t[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var Co=t=>t&&typeof t.length=="number"&&typeof t!="function";function Mo(t){return C(t?.then)}function No(t){return C(t[bn])}function xo(t){return Symbol.asyncIterator&&C(t?.[Symbol.asyncIterator])}function Ao(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function yy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ko=yy();function Ro(t){return C(t?.[ko])}function Oo(t){return od(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:o}=yield Gt(n.read());if(o)return yield Gt(void 0);yield yield Gt(r)}}finally{n.releaseLock()}})}function Po(t){return C(t?.getReader)}function j(t){if(t instanceof k)return t;if(t!=null){if(No(t))return vy(t);if(Co(t))return Ey(t);if(Mo(t))return Iy(t);if(xo(t))return sd(t);if(Ro(t))return Dy(t);if(Po(t))return _y(t)}throw Ao(t)}function vy(t){return new k(e=>{let n=t[bn]();if(C(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ey(t){return new k(e=>{for(let n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function Iy(t){return new k(e=>{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,yo)})}function Dy(t){return new k(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function sd(t){return new k(e=>{Ty(t,e).catch(n=>e.error(n))})}function _y(t){return sd(Oo(t))}function Ty(t,e){var n,r,o,i;return rd(this,void 0,void 0,function*(){try{for(n=id(t);r=yield n.next(),!r.done;){let s=r.value;if(e.next(s),e.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}e.complete()})}function fe(t,e,n,r=0,o=!1){let i=e.schedule(function(){n(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(i),!o)return i}function Lo(t,e=0){return x((n,r)=>{n.subscribe(N(r,o=>fe(r,t,()=>r.next(o),e),()=>fe(r,t,()=>r.complete(),e),o=>fe(r,t,()=>r.error(o),e)))})}function Fo(t,e=0){return x((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function ad(t,e){return j(t).pipe(Fo(e),Lo(e))}function cd(t,e){return j(t).pipe(Fo(e),Lo(e))}function ld(t,e){return new k(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function ud(t,e){return new k(n=>{let r;return fe(n,e,()=>{r=t[ko](),fe(n,e,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>C(r?.return)&&r.return()})}function jo(t,e){if(!t)throw new Error("Iterable cannot be null");return new k(n=>{fe(n,e,()=>{let r=t[Symbol.asyncIterator]();fe(n,e,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function dd(t,e){return jo(Oo(t),e)}function fd(t,e){if(t!=null){if(No(t))return ad(t,e);if(Co(t))return ld(t,e);if(Mo(t))return cd(t,e);if(xo(t))return jo(t,e);if(Ro(t))return ud(t,e);if(Po(t))return dd(t,e)}throw Ao(t)}function Ge(t,e){return e?fd(t,e):j(t)}function wy(...t){let e=ze(t);return Ge(t,e)}function by(t,e){let n=C(t)?t:()=>t,r=o=>o.error(n());return new k(e?o=>e.schedule(r,0,o):r)}function Sy(t){return!!t&&(t instanceof k||C(t.lift)&&C(t.subscribe))}var pd=_n(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Cy(t,e){let n=typeof e=="object";return new Promise((r,o)=>{let i=new ke({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(e.defaultValue):o(new pd)}});t.subscribe(i)})}function hd(t){return t instanceof Date&&!isNaN(t)}function nt(t,e){return x((n,r)=>{let o=0;n.subscribe(N(r,i=>{r.next(t.call(e,i,o++))}))})}var{isArray:My}=Array;function Ny(t,e){return My(e)?t(...e):t(e)}function Vo(t){return nt(e=>Ny(t,e))}var{isArray:xy}=Array,{getPrototypeOf:Ay,prototype:ky,keys:Ry}=Object;function Ho(t){if(t.length===1){let e=t[0];if(xy(e))return{args:e,keys:null};if(Oy(e)){let n=Ry(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function Oy(t){return t&&typeof t=="object"&&Ay(t)===ky}function Bo(t,e){return t.reduce((n,r,o)=>(n[r]=e[o],n),{})}function Py(...t){let e=ze(t),n=So(t),{args:r,keys:o}=Ho(t);if(r.length===0)return Ge([],e);let i=new k(Ly(r,e,o?s=>Bo(o,s):Re));return n?i.pipe(Vo(n)):i}function Ly(t,e,n=Re){return r=>{md(e,()=>{let{length:o}=t,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)md(e,()=>{let l=Ge(t[c],e),u=!1;l.subscribe(N(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function md(t,e,n){t?fe(n,t,e):e()}function gd(t,e,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,p=()=>{d&&!c.length&&!l&&e.complete()},f=m=>l<r?h(m):c.push(m),h=m=>{i&&e.next(m),l++;let v=!1;j(n(m,u++)).subscribe(N(e,T=>{o?.(T),i?f(T):e.next(T)},()=>{v=!0},void 0,()=>{if(v)try{for(l--;c.length&&l<r;){let T=c.shift();s?fe(e,s,()=>h(T)):h(T)}p()}catch(T){e.error(T)}}))};return t.subscribe(N(e,f,()=>{d=!0,p()})),()=>{a?.()}}function vt(t,e,n=1/0){return C(e)?vt((r,o)=>nt((i,s)=>e(r,i,o,s))(j(t(r,o))),n):(typeof e=="number"&&(n=e),x((r,o)=>gd(r,o,t,n)))}function $o(t=1/0){return vt(Re,t)}function yd(){return $o(1)}function Mn(...t){return yd()(Ge(t,ze(t)))}function Fy(t){return new k(e=>{j(t()).subscribe(e)})}function jy(...t){let e=So(t),{args:n,keys:r}=Ho(t),o=new k(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let d=!1;j(n[u]).subscribe(N(i,p=>{d||(d=!0,l--),a[u]=p},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?Bo(r,a):a),i.complete())}))}});return e?o.pipe(Vo(e)):o}function hr(t=0,e,n=ed){let r=-1;return e!=null&&(bo(e)?n=e:r=e),new k(o=>{let i=hd(t)?+t-n.now():t;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function Vy(...t){let e=ze(t),n=td(t,1/0),r=t;return r.length?r.length===1?j(r[0]):$o(n)(Ge(r,e)):pr}function Xs(t,e){return x((n,r)=>{let o=0;n.subscribe(N(r,i=>t.call(e,i,o++)&&r.next(i)))})}function vd(t){return x((e,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let l=o;o=null,n.next(l)}s&&n.complete()},c=()=>{i=null,s&&n.complete()};e.subscribe(N(n,l=>{r=!0,o=l,i||j(t(l)).subscribe(i=N(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function Hy(t,e=zt){return vd(()=>hr(t,e))}function ea(t){return x((e,n)=>{let r=null,o=!1,i;r=e.subscribe(N(n,void 0,void 0,s=>{i=j(t(s,ea(t)(e))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function By(t,e){return C(e)?vt(t,e,1):vt(t,1)}function Ed(t,e=zt){return x((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let l=i;i=null,r.next(l)}};function c(){let l=s+t,u=e.now();if(u<l){o=this.schedule(void 0,l-u),r.add(o);return}a()}n.subscribe(N(r,l=>{i=l,s=e.now(),o||(o=e.schedule(c,t),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Uo(t){return t<=0?()=>pr:x((e,n)=>{let r=0;e.subscribe(N(n,o=>{++r<=t&&(n.next(o),t<=r&&n.complete())}))})}function Id(){return x((t,e)=>{t.subscribe(N(e,$t))})}function Dd(t){return nt(()=>t)}function ta(t,e){return e?n=>Mn(e.pipe(Uo(1),Id()),n.pipe(ta(t))):vt((n,r)=>j(t(n,r)).pipe(Uo(1),Dd(n)))}function $y(t,e=zt){let n=hr(t,e);return ta(()=>n)}function _d(t,e=Re){return t=t??Uy,x((n,r)=>{let o,i=!0;n.subscribe(N(r,s=>{let a=e(s);(i||!t(o,a))&&(i=!1,o=a,r.next(s))}))})}function Uy(t,e){return t===e}function qy(t){return x((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}function zy(){return x((t,e)=>{let n,r=!1;t.subscribe(N(e,o=>{let i=n;n=o,r&&e.next([i,o]),r=!0}))})}function ra(t={}){let{connector:e=()=>new ye,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=t;return i=>{let s,a,c,l=0,u=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=c=void 0,u=d=!1},h=()=>{let m=s;f(),m?.unsubscribe()};return x((m,v)=>{l++,!d&&!u&&p();let T=c=c??e();v.add(()=>{l--,l===0&&!d&&!u&&(a=na(h,o))}),T.subscribe(v),!s&&l>0&&(s=new ke({next:L=>T.next(L),error:L=>{d=!0,p(),a=na(f,n,L),T.error(L)},complete:()=>{u=!0,p(),a=na(f,r),T.complete()}}),j(m).subscribe(s))})(i)}}function na(t,e,...n){if(e===!0){t();return}if(e===!1)return;let r=new ke({next:()=>{r.unsubscribe(),t()}});return j(e(...n)).subscribe(r)}function Gy(t,e,n){let r,o=!1;return t&&typeof t=="object"?{bufferSize:r=1/0,windowTime:e=1/0,refCount:o=!1,scheduler:n}=t:r=t??1/0,ra({connector:()=>new ur(r,e,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Wy(t){return Xs((e,n)=>t<=n)}function Td(...t){let e=ze(t);return x((n,r)=>{(e?Mn(t,n,e):Mn(t,n)).subscribe(r)})}function wd(t,e){return x((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(N(r,c=>{o?.unsubscribe();let l=0,u=i++;j(t(c,u)).subscribe(o=N(r,d=>r.next(e?e(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Qy(t){return x((e,n)=>{j(t).subscribe(N(n,()=>n.complete(),$t)),!n.closed&&e.subscribe(n)})}function Ky(t,e=!1){return x((n,r)=>{let o=0;n.subscribe(N(r,i=>{let s=t(i,o++);(s||e)&&r.next(i),!s&&r.complete()}))})}function Zy(t,e,n){let r=C(t)||e||n?{next:t,error:e,complete:n}:t;return r?x((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(N(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):Re}var Zo="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",g=class extends Error{code;constructor(e,n){super(ga(e,n)),this.code=e}};function Yy(t){return`NG0${Math.abs(t)}`}function ga(t,e){return`${Yy(t)}${e?": "+e:""}`}function H(t){for(let e in t)if(t[e]===H)return e;throw Error("")}function Nd(t,e){for(let n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function Yo(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Yo).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;let n=t.toString();if(n==null)return""+n;let r=n.indexOf(`
4
+ `);return r>=0?n.slice(0,r):n}function Jo(t,e){return t?e?`${t} ${e}`:t:e||""}var Jy=H({__forward_ref__:H});function Xo(t){return t.__forward_ref__=Xo,t}function Y(t){return ya(t)?t():t}function ya(t){return typeof t=="function"&&t.hasOwnProperty(Jy)&&t.__forward_ref__===Xo}function pe(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function xd(t){return{providers:t.providers||[],imports:t.imports||[]}}function ei(t){return Xy(t,ti)}function Xy(t,e){return t.hasOwnProperty(e)&&t[e]||null}function ev(t){let e=t?.[ti]??null;return e||null}function ia(t){return t&&t.hasOwnProperty(zo)?t[zo]:null}var ti=H({\u0275prov:H}),zo=H({\u0275inj:H}),P=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,n){this._desc=e,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=pe({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function va(t){return t&&!!t.\u0275providers}var Ea=H({\u0275cmp:H}),Ia=H({\u0275dir:H}),Da=H({\u0275pipe:H});var gr=H({\u0275fac:H}),Jt=H({__NG_ELEMENT_ID__:H}),bd=H({__NG_ENV_ID__:H});function Dt(t){return _a(t,"@Component"),t[Ea]||null}function ni(t){return _a(t,"@Directive"),t[Ia]||null}function Ad(t){return _a(t,"@Pipe"),t[Da]||null}function _a(t,e){if(t==null)throw new g(-919,!1)}function _e(t){return typeof t=="string"?t:t==null?"":String(t)}var kd=H({ngErrorCode:H}),tv=H({ngErrorMessage:H}),nv=H({ngTokenPath:H});function Ta(t,e){return Rd("",-200,e)}function ri(t,e){throw new g(-201,!1)}function Rd(t,e,n){let r=new g(e,t);return r[kd]=e,r[tv]=t,n&&(r[nv]=n),r}function rv(t){return t[kd]}var sa;function Od(){return sa}function le(t){let e=sa;return sa=t,e}function wa(t,e,n){let r=ei(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(e!==void 0)return e;ri(t,"")}var _t=globalThis;var ov={},Wt=ov,iv="__NG_DI_FLAG__",aa=class{injector;constructor(e){this.injector=e}retrieve(e,n){let r=Qt(n)||0;try{return this.injector.get(e,r&8?null:Wt,r)}catch(o){if(Dn(o))return o;throw o}}};function sv(t,e=0){let n=ho();if(n===void 0)throw new g(-203,!1);if(n===null)return wa(t,void 0,e);{let r=av(e),o=n.retrieve(t,r);if(Dn(o)){if(r.optional)return null;throw o}return o}}function We(t,e=0){return(Od()||sv)(Y(t),e)}function S(t,e){return We(t,Qt(e))}function Qt(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function av(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function ca(t){let e=[];for(let n=0;n<t.length;n++){let r=Y(t[n]);if(Array.isArray(r)){if(r.length===0)throw new g(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=cv(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}e.push(We(o,i))}else e.push(We(r))}return e}function cv(t){return t[iv]}function Et(t,e){let n=t.hasOwnProperty(gr);return n?t[gr]:null}function Pd(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let o=t[r],i=e[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function Ld(t){return t.flat(Number.POSITIVE_INFINITY)}function oi(t,e){t.forEach(n=>Array.isArray(n)?oi(n,e):e(n))}function ba(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Ir(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Fd(t,e){let n=[];for(let r=0;r<t;r++)n.push(e);return n}function jd(t,e,n,r){let o=t.length;if(o==e)t.push(n,r);else if(o===1)t.push(r,t[0]),t[0]=n;else{for(o--,t.push(t[o-1],t[o]);o>e;){let i=o-2;t[o]=t[i],o--}t[e]=n,t[e+1]=r}}function ii(t,e,n){let r=An(t,e);return r>=0?t[r|1]=n:(r=~r,jd(t,r,e,n)),r}function si(t,e){let n=An(t,e);if(n>=0)return t[n|1]}function An(t,e){return lv(t,e,1)}function lv(t,e,n){let r=0,o=t.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=t[i<<n];if(e===s)return i<<n;s>e?o=i:r=i+1}return~(o<<n)}var Tt={},ie=[],Xt=new P(""),Dr=new P("",-1),Sa=new P(""),xn=class{get(e,n=Wt){if(n===Wt){let o=Rd("",-201);throw o.name="\u0275NotFound",o}return n}};function Ca(t){return{\u0275providers:t}}function Vd(...t){return{\u0275providers:Ma(!0,t),\u0275fromNgModule:!0}}function Ma(t,...e){let n=[],r=new Set,o,i=s=>{n.push(s)};return oi(e,s=>{let a=s;Go(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Hd(o,i),n}function Hd(t,e){for(let n=0;n<t.length;n++){let{ngModule:r,providers:o}=t[n];Na(o,i=>{e(i,r)})}}function Go(t,e,n,r){if(t=Y(t),!t)return!1;let o=null,i=ia(t),s=!i&&Dt(t);if(!i&&!s){let c=t.ngModule;if(i=ia(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=t}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Go(l,e,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;oi(i.imports,u=>{Go(u,e,n,r)&&(l||=[],l.push(u))}),l!==void 0&&Hd(l,e)}if(!a){let l=Et(o)||(()=>new o);e({provide:o,useFactory:l,deps:ie},o),e({provide:Sa,useValue:o,multi:!0},o),e({provide:Xt,useValue:()=>We(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=t;Na(c,u=>{e(u,l)})}}else return!1;return o!==t&&t.providers!==void 0}function Na(t,e){for(let n of t)va(n)&&(n=n.\u0275providers),Array.isArray(n)?Na(n,e):e(n)}var uv=H({provide:String,useValue:H});function Bd(t){return t!==null&&typeof t=="object"&&uv in t}function dv(t){return!!(t&&t.useExisting)}function fv(t){return!!(t&&t.useFactory)}function Kt(t){return typeof t=="function"}function $d(t){return!!t.useClass}var xa=new P(""),qo={},Sd={},oa;function kn(){return oa===void 0&&(oa=new xn),oa}var De=class{},Zt=class extends De{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,ua(e,s=>this.processProvider(s)),this.records.set(Dr,Nn(void 0,this)),o.has("environment")&&this.records.set(De,Nn(void 0,this));let i=this.records.get(xa);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Sa,ie,{self:!0}))}retrieve(e,n){let r=Qt(n)||0;try{return this.get(e,Wt,r)}catch(o){if(Dn(o))return o;throw o}}destroy(){mr(this),this._destroyed=!0;let e=D(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(),D(e)}}onDestroy(e){return mr(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){mr(this);let n=qe(this),r=le(void 0),o;try{return e()}finally{qe(n),le(r)}}get(e,n=Wt,r){if(mr(this),e.hasOwnProperty(bd))return e[bd](this);let o=Qt(r),i,s=qe(this),a=le(void 0);try{if(!(o&4)){let l=this.records.get(e);if(l===void 0){let u=yv(e)&&ei(e);u&&this.injectableDefInScope(u)?l=Nn(la(e),qo):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l,o)}let c=o&2?kn():this.parent;return n=o&8&&n===Wt?null:n,c.get(e,n)}catch(c){let l=rv(c);throw l===-200||l===-201?new g(l,null):c}finally{le(a),qe(s)}}resolveInjectorInitializers(){let e=D(null),n=qe(this),r=le(void 0),o;try{let i=this.get(Xt,ie,{self:!0});for(let s of i)s()}finally{qe(n),le(r),D(e)}}toString(){return"R3Injector[...]"}processProvider(e){e=Y(e);let n=Kt(e)?e:Y(e&&e.provide),r=hv(e);if(!Kt(e)&&e.multi===!0){let o=this.records.get(n);o||(o=Nn(void 0,qo,!0),o.factory=()=>ca(o.multi),this.records.set(n,o)),n=e,o.multi.push(e)}this.records.set(n,r)}hydrate(e,n,r){let o=D(null);try{if(n.value===Sd)throw Ta("");return n.value===qo&&(n.value=Sd,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&gv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{D(o)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=Y(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 la(t){let e=ei(t),n=e!==null?e.factory:Et(t);if(n!==null)return n;if(t instanceof P)throw new g(-204,!1);if(t instanceof Function)return pv(t);throw new g(-204,!1)}function pv(t){if(t.length>0)throw new g(-204,!1);let n=ev(t);return n!==null?()=>n.factory(t):()=>new t}function hv(t){if(Bd(t))return Nn(void 0,t.useValue);{let e=Aa(t);return Nn(e,qo)}}function Aa(t,e,n){let r;if(Kt(t)){let o=Y(t);return Et(o)||la(o)}else if(Bd(t))r=()=>Y(t.useValue);else if(fv(t))r=()=>t.useFactory(...ca(t.deps||[]));else if(dv(t))r=(o,i)=>We(Y(t.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Y(t&&(t.useClass||t.provide));if(mv(t))r=()=>new o(...ca(t.deps));else return Et(o)||la(o)}return r}function mr(t){if(t.destroyed)throw new g(-205,!1)}function Nn(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function mv(t){return!!t.deps}function gv(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function yv(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function ua(t,e){for(let n of t)Array.isArray(n)?ua(n,e):n&&va(n)?ua(n.\u0275providers,e):e(n)}function ai(t,e){let n;t instanceof Zt?(mr(t),n=t):n=new aa(t);let r,o=qe(n),i=le(void 0);try{return e()}finally{qe(o),le(i)}}function Ud(){return Od()!==void 0||ho()!=null}var Pe=0,E=1,b=2,J=3,Te=4,se=5,en=6,Rn=7,W=8,Ke=9,Ze=10,V=11,On=12,ka=13,wt=14,ue=15,bt=16,tn=17,Ye=18,Je=19,Ra=20,ot=21,ci=22,It=23,ve=24,nn=25,Xe=26,U=27,qd=1,Oa=6,St=7,_r=8,rn=9,z=10;function st(t){return Array.isArray(t)&&typeof t[qd]=="object"}function we(t){return Array.isArray(t)&&t[qd]===!0}function Pa(t){return(t.flags&4)!==0}function at(t){return t.componentOffset>-1}function Pn(t){return(t.flags&1)===1}function Le(t){return!!t.template}function Ln(t){return(t[b]&512)!==0}function on(t){return(t[b]&256)===256}var La="svg",zd="math";function be(t){for(;Array.isArray(t);)t=t[Pe];return t}function Fa(t,e){return be(e[t])}function Se(t,e){return be(e[t.index])}function li(t,e){return t.data[e]}function ja(t,e){return t[e]}function Va(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function Ce(t,e){let n=e[t];return st(n)?n:n[Pe]}function Gd(t){return(t[b]&4)===4}function ui(t){return(t[b]&128)===128}function Wd(t){return we(t[J])}function Ee(t,e){return e==null?null:t[e]}function Ha(t){t[tn]=0}function Ba(t){t[b]&1024||(t[b]|=1024,ui(t)&&sn(t))}function Qd(t,e){for(;t>0;)e=e[wt],t--;return e}function Tr(t){return!!(t[b]&9216||t[ve]?.dirty)}function di(t){t[Ze].changeDetectionScheduler?.notify(8),t[b]&64&&(t[b]|=1024),Tr(t)&&sn(t)}function sn(t){t[Ze].changeDetectionScheduler?.notify(0);let e=it(t);for(;e!==null&&!(e[b]&8192||(e[b]|=8192,!ui(e)));)e=it(e)}function fi(t,e){if(on(t))throw new g(911,!1);t[ot]===null&&(t[ot]=[]),t[ot].push(e)}function Kd(t,e){if(t[ot]===null)return;let n=t[ot].indexOf(e);n!==-1&&t[ot].splice(n,1)}function it(t){let e=t[J];return we(e)?e[J]:e}function $a(t){return t[Rn]??=[]}function Ua(t){return t.cleanup??=[]}function Zd(t,e,n,r){let o=$a(e);o.push(n),t.firstCreatePass&&Ua(t).push(r,o.length-1)}var M={lFrame:df(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var da=!1;function Yd(){return M.lFrame.elementDepthCount}function Jd(){M.lFrame.elementDepthCount++}function qa(){M.lFrame.elementDepthCount--}function pi(){return M.bindingsEnabled}function za(){return M.skipHydrationRootTNode!==null}function Ga(t){return M.skipHydrationRootTNode===t}function Wa(){M.skipHydrationRootTNode=null}function _(){return M.lFrame.lView}function B(){return M.lFrame.tView}function Xd(t){return M.lFrame.contextLView=t,t[W]}function ef(t){return M.lFrame.contextLView=null,t}function Q(){let t=Qa();for(;t!==null&&t.type===64;)t=t.parent;return t}function Qa(){return M.lFrame.currentTNode}function tf(){let t=M.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Fn(t,e){let n=M.lFrame;n.currentTNode=t,n.isParent=e}function Ka(){return M.lFrame.isParent}function Za(){M.lFrame.isParent=!1}function nf(){return M.lFrame.contextLView}function Ya(){return da}function yr(t){let e=da;return da=t,e}function rf(){let t=M.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function hi(){return M.lFrame.bindingIndex}function of(t){return M.lFrame.bindingIndex=t}function Ct(){return M.lFrame.bindingIndex++}function jn(t){let e=M.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function sf(){return M.lFrame.inI18n}function af(t,e){let n=M.lFrame;n.bindingIndex=n.bindingRootIndex=t,mi(e)}function cf(){return M.lFrame.currentDirectiveIndex}function mi(t){M.lFrame.currentDirectiveIndex=t}function lf(t){let e=M.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function gi(){return M.lFrame.currentQueryIndex}function wr(t){M.lFrame.currentQueryIndex=t}function vv(t){let e=t[E];return e.type===2?e.declTNode:e.type===1?t[se]:null}function Ja(t,e,n){if(n&4){let o=e,i=t;for(;o=o.parent,o===null&&!(n&1);)if(o=vv(i),o===null||(i=i[wt],o.type&10))break;if(o===null)return!1;e=o,t=i}let r=M.lFrame=uf();return r.currentTNode=e,r.lView=t,!0}function yi(t){let e=uf(),n=t[E];M.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function uf(){let t=M.lFrame,e=t===null?null:t.child;return e===null?df(t):e}function df(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 ff(){let t=M.lFrame;return M.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Xa=ff;function vi(){let t=ff();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 pf(t){return(M.lFrame.contextLView=Qd(t,M.lFrame.contextLView))[W]}function Me(){return M.lFrame.selectedIndex}function Mt(t){M.lFrame.selectedIndex=t}function Vn(){let t=M.lFrame;return li(t.tView,t.selectedIndex)}function hf(){M.lFrame.currentNamespace=La}function mf(){Ev()}function Ev(){M.lFrame.currentNamespace=null}function ec(){return M.lFrame.currentNamespace}var gf=!0;function Ei(){return gf}function br(t){gf=t}function fa(t,e=null,n=null,r){let o=yf(t,e,n,r);return o.resolveInjectorInitializers(),o}function yf(t,e=null,n=null,r,o=new Set){let i=[n||ie,Vd(t)],s;return new Zt(i,e||kn(),s||null,o)}var Qe=class t{static THROW_IF_NOT_FOUND=Wt;static NULL=new xn;static create(e,n){if(Array.isArray(e))return fa({name:""},n,e,"");{let r=e.name??"";return fa({name:r},e.parent,e.providers,r)}}static \u0275prov=pe({token:t,providedIn:"any",factory:()=>We(Dr)});static __NG_ELEMENT_ID__=-1},Ii=new P(""),an=(()=>{class t{static __NG_ELEMENT_ID__=Iv;static __NG_ENV_ID__=n=>n}return t})(),Wo=class extends an{_lView;constructor(e){super(),this._lView=e}get destroyed(){return on(this._lView)}onDestroy(e){let n=this._lView;return fi(n,e),()=>Kd(n,e)}};function Iv(){return new Wo(_())}var tc=!1,vf=new P(""),Nt=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new cr(!1);debugTaskTracker=S(vf,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new k(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=pe({token:t,providedIn:"root",factory:()=>new t})}return t})(),pa=class extends ye{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,Ud()&&(this.destroyRef=S(an,{optional:!0})??void 0,this.pendingTasks=S(Nt,{optional:!0})??void 0)}emit(e){let n=D(null);try{super.next(e)}finally{D(n)}}subscribe(e,n,r){let o=e,i=n||(()=>null),s=r;if(e&&typeof e=="object"){let c=e;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return e instanceof $&&e.add(a),a}wrapInTimeout(e){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{e(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},rt=pa;function Qo(...t){}function nc(t){let e,n;function r(){t=Qo;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch(o){}}return e=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),r()})),()=>r()}function Ef(t){return queueMicrotask(()=>t()),()=>{t=Qo}}var rc="isAngularZone",vr=rc+"_ID",Dv=0,re=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new rt(!1);onMicrotaskEmpty=new rt(!1);onStable=new rt(!1);onError=new rt(!1);constructor(e){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=tc}=e;if(typeof Zone>"u")throw new g(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,wv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(rc)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new g(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new g(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,_v,Qo,Qo);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}},_v={};function oc(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 Tv(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){nc(()=>{t.callbackScheduled=!1,ha(t),t.isCheckStableRunning=!0,oc(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),ha(t)}function wv(t){let e=()=>{Tv(t)},n=Dv++;t._inner=t._inner.fork({name:"angular",properties:{[rc]:!0,[vr]:n,[vr+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(bv(c))return r.invokeTask(i,s,a,c);try{return Cd(t),r.invokeTask(i,s,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Md(t)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return Cd(t),r.invoke(i,s,a,c,l)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!Sv(c)&&e(),Md(t)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,ha(t),oc(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function ha(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Cd(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Md(t){t._nesting--,oc(t)}var Er=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new rt;onMicrotaskEmpty=new rt;onStable=new rt;onError=new rt;run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,o){return e.apply(n,r)}};function bv(t){return If(t,"__ignore_ng_zone__")}function Sv(t){return If(t,"__scheduler_tick__")}function If(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var Yt=class{_console=console;handleError(e){this._console.error("ERROR",e)}},xt=new P("",{factory:()=>{let t=S(re),e=S(De),n;return r=>{t.runOutsideAngular(()=>{e.destroyed&&!n?setTimeout(()=>{throw r}):(n??=e.get(Yt),n.handleError(r))})}}}),Df={provide:Xt,useValue:()=>{let t=S(Yt,{optional:!0})},multi:!0};function ic(t,e){let[n,r,o]=Fs(t,e?.equal),i=n,s=i[Z];return i.set=r,i.update=o,i.asReadonly=_f.bind(i),i}function _f(){let t=this[Z];if(t.readonlyFn===void 0){let e=()=>this();e[Z]=t,t.readonlyFn=e}return t.readonlyFn}var Tf=new P("",{factory:()=>Cv}),Cv="ng";var wf=new P(""),Mv=new P("",{providedIn:"platform",factory:()=>"unknown"}),Nv=new P(""),xv=new P("",{factory:()=>S(Ii).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Hn=(()=>{class t{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Av}return t})();function Av(){return new Hn(_(),Q())}var Oe=class{},Bn=new P("",{factory:()=>!0});var Di=new P(""),_i=(()=>{class t{static \u0275prov=pe({token:t,providedIn:"root",factory:()=>new ma})}return t})(),ma=class{dirtyEffectCount=0;queues=new Map;add(e){this.enqueue(e),this.schedule(e)}schedule(e){e.dirty&&this.dirtyEffectCount++}remove(e){let n=e.zone,r=this.queues.get(n);r.has(e)&&(r.delete(e),e.dirty&&this.dirtyEffectCount--)}enqueue(e){let n=e.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(e)||r.add(e)}flush(){for(;this.dirtyEffectCount>0;){let e=!1;for(let[n,r]of this.queues)n===null?e||=this.flushQueue(r):e||=n.run(()=>this.flushQueue(r));e||(this.dirtyEffectCount=0)}}flushQueue(e){let n=!1;for(let r of e)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},Ko=class{[Z];constructor(e){this[Z]=e}destroy(){this[Z].destroy()}};function kv(t,e){let n=e?.injector??S(Qe),r=e?.manualCleanup!==!0?n.get(an):null,o,i=n.get(Hn,null,{optional:!0}),s=n.get(Oe);return i!==null?(o=Pv(i.view,s,t),r instanceof Wo&&r._lView===i.view&&(r=null)):o=Lv(t,n.get(_i),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Ko(o)}var bf=ee(G({},Vs),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let t=yr(!1);try{Hs(this)}finally{yr(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=D(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],D(t)}}}),Rv=ee(G({},bf),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(mt(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.scheduler.remove(this)}}),Ov=ee(G({},bf),{consumerMarkedDirty(){this.view[b]|=8192,sn(this.view),this.notifier.notify(13)},destroy(){if(mt(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.view[It]?.delete(this)}});function Pv(t,e,n){let r=Object.create(Ov);return r.view=t,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=e,r.fn=Sf(r,n),t[It]??=new Set,t[It].add(r),r.consumerMarkedDirty(r),r}function Lv(t,e,n){let r=Object.create(Rv);return r.fn=Sf(r,t),r.scheduler=e,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function Sf(t,e){return()=>{e(n=>(t.cleanupFns??=[]).push(n))}}function sc(t){return typeof t=="function"&&t[Z]!==void 0}function Ti(t){return sc(t)&&typeof t.set=="function"}var Cf=(()=>{class t{internalPendingTasks=S(Nt);scheduler=S(Oe);errorHandler=S(xt);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();try{n().catch(this.errorHandler).finally(r)}catch(o){this.errorHandler(o),r()}}static \u0275prov=pe({token:t,providedIn:"root",factory:()=>new t})}return t})();function Vr(t){return{toString:t}.toString()}var O=(function(t){return t[t.TemplateCreateStart=0]="TemplateCreateStart",t[t.TemplateCreateEnd=1]="TemplateCreateEnd",t[t.TemplateUpdateStart=2]="TemplateUpdateStart",t[t.TemplateUpdateEnd=3]="TemplateUpdateEnd",t[t.LifecycleHookStart=4]="LifecycleHookStart",t[t.LifecycleHookEnd=5]="LifecycleHookEnd",t[t.OutputStart=6]="OutputStart",t[t.OutputEnd=7]="OutputEnd",t[t.BootstrapApplicationStart=8]="BootstrapApplicationStart",t[t.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",t[t.BootstrapComponentStart=10]="BootstrapComponentStart",t[t.BootstrapComponentEnd=11]="BootstrapComponentEnd",t[t.ChangeDetectionStart=12]="ChangeDetectionStart",t[t.ChangeDetectionEnd=13]="ChangeDetectionEnd",t[t.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",t[t.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",t[t.AfterRenderHooksStart=16]="AfterRenderHooksStart",t[t.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",t[t.ComponentStart=18]="ComponentStart",t[t.ComponentEnd=19]="ComponentEnd",t[t.DeferBlockStateStart=20]="DeferBlockStateStart",t[t.DeferBlockStateEnd=21]="DeferBlockStateEnd",t[t.DynamicComponentStart=22]="DynamicComponentStart",t[t.DynamicComponentEnd=23]="DynamicComponentEnd",t[t.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",t[t.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",t})(O||{}),Ai=class{previousValue;currentValue;firstChange;constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function fp(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}var pp=null,Kv=(()=>{pp=Mf;let t=()=>Mf;return t.ngInherit=!0,t})();function Zv(){return pp}function Mf(t){return t.type.prototype.ngOnChanges&&(t.setInput=Jv),Yv}function Yv(){let t=hp(this),e=t?.current;if(e){let n=t.previous;if(n===Tt)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function Jv(t,e,n,r,o){let i=this.declaredInputs[r],s=hp(t)||Xv(t,{previous:Tt,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new Ai(l&&l.currentValue,n,c===Tt),fp(t,e,o,n)}var vc="__ngSimpleChanges__";function hp(t){return Object.hasOwn(t,vc)&&t[vc]||null}function Xv(t,e){return t[vc]=e}var Nf=[];var F=function(t,e=null,n){for(let r=0;r<Nf.length;r++){let o=Nf[r];o(t,e,n)}};function eE(t,e,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){let s=Zv()(e);(n.preOrderHooks??=[]).push(t,s),(n.preOrderCheckHooks??=[]).push(t,s)}o&&(n.preOrderHooks??=[]).push(0-t,o),i&&((n.preOrderHooks??=[]).push(t,i),(n.preOrderCheckHooks??=[]).push(t,i))}function mp(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){let i=t.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(t.contentHooks??=[]).push(-n,s),a&&((t.contentHooks??=[]).push(n,a),(t.contentCheckHooks??=[]).push(n,a)),c&&(t.viewHooks??=[]).push(-n,c),l&&((t.viewHooks??=[]).push(n,l),(t.viewCheckHooks??=[]).push(n,l)),u!=null&&(t.destroyHooks??=[]).push(n,u)}}function Ci(t,e,n){gp(t,e,3,n)}function Mi(t,e,n,r){(t[b]&3)===n&&gp(t,e,n,r)}function ac(t,e){let n=t[b];(n&3)===e&&(n&=16383,n+=1,t[b]=n)}function gp(t,e,n,r){let o=r!==void 0?t[tn]&65535:0,i=r??-1,s=e.length-1,a=0;for(let c=o;c<s;c++)if(typeof e[c+1]=="number"){if(a=e[c],r!=null&&a>=r)break}else e[c]<0&&(t[tn]+=65536),(a<i||i==-1)&&(tE(t,n,e,c),t[tn]=(t[tn]&4294901760)+c+2),c++}function xf(t,e){F(O.LifecycleHookStart,t,e);let n=D(null);try{e.call(t)}finally{D(n),F(O.LifecycleHookEnd,t,e)}}function tE(t,e,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=t[s];o?t[b]>>14<t[tn]>>16&&(t[b]&3)===e&&(t[b]+=16384,xf(a,i)):xf(a,i)}var Un=-1,ln=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,n,r,o){this.factory=e,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function nE(t){return(t.flags&8)!==0}function rE(t){return(t.flags&16)!==0}function oE(t,e,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];t.setAttribute(e,s,a,i)}else{let i=o,s=n[++r];iE(i)?t.setProperty(e,i,s):t.setAttribute(e,i,s),r++}}return r}function yp(t){return t===3||t===4||t===6}function iE(t){return t.charCodeAt(0)===64}function qn(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){let o=e[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Af(t,n,o,null,e[++r]):Af(t,n,o,null,null))}}return t}function Af(t,e,n,r,o){let i=0,s=t.length;if(e===-1)s=-1;else for(;i<t.length;){let a=t[i++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=i-1;break}}}for(;i<t.length;){let a=t[i];if(typeof a=="number")break;if(a===n){o!==null&&(t[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(t.splice(s,0,e),i=s+1),t.splice(i++,0,n),o!==null&&t.splice(i++,0,o)}function vp(t){return t!==Un}function ki(t){return t&32767}function sE(t){return t>>16}function Ri(t,e){let n=sE(t),r=e;for(;n>0;)r=r[wt],n--;return r}var Ec=!0;function Oi(t){let e=Ec;return Ec=t,e}var aE=256,Ep=aE-1,Ip=5,cE=0,et={};function lE(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Jt)&&(r=n[Jt]),r==null&&(r=n[Jt]=cE++);let o=r&Ep,i=1<<o;e.data[t+(o>>Ip)]|=i}function Pi(t,e){let n=Dp(t,e);if(n!==-1)return n;let r=e[E];r.firstCreatePass&&(t.injectorIndex=e.length,cc(r.data,t),cc(e,null),cc(r.blueprint,null));let o=el(t,e),i=t.injectorIndex;if(vp(o)){let s=ki(o),a=Ri(o,e),c=a[E].data;for(let l=0;l<8;l++)e[i+l]=a[s+l]|c[s+l]}return e[i+8]=o,i}function cc(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Dp(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function el(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,r=null,o=e;for(;o!==null;){if(r=Sp(o),r===null)return Un;if(n++,o=o[wt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Un}function Ic(t,e,n){lE(t,e,n)}function uE(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let n=t.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(yp(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else{if(i===e)return n[o+1];o=o+2}}}return null}function _p(t,e,n){if(n&8||t!==void 0)return t;ri(e,"NodeInjector")}function Tp(t,e,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=t[Ke],i=le(void 0);try{return o?o.get(e,r,n&8):wa(e,r,n&8)}finally{le(i)}}return _p(r,e,n)}function wp(t,e,n,r=0,o){if(t!==null){if(e[b]&2048&&!(r&2)){let s=mE(t,e,n,r,et);if(s!==et)return s}let i=bp(t,e,n,r,et);if(i!==et)return i}return Tp(e,n,r,o)}function bp(t,e,n,r,o){let i=fE(n);if(typeof i=="function"){if(!Ja(e,t,r))return r&1?_p(o,n,r):Tp(e,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))ri(n);else return s}finally{Xa()}}else if(typeof i=="number"){let s=null,a=Dp(t,e),c=Un,l=r&1?e[ue][se]:null;for((a===-1||r&4)&&(c=a===-1?el(t,e):e[a+8],c===Un||!Rf(r,!1)?a=-1:(s=e[E],a=ki(c),e=Ri(c,e)));a!==-1;){let u=e[E];if(kf(i,a,u.data)){let d=dE(a,e,n,s,r,l);if(d!==et)return d}c=e[a+8],c!==Un&&Rf(r,e[E].data[a+8]===l)&&kf(i,a,e)?(s=u,a=ki(c),e=Ri(c,e)):a=-1}}return o}function dE(t,e,n,r,o,i){let s=e[E],a=s.data[t+8],c=r==null?at(a)&&Ec:r!=s&&(a.type&3)!==0,l=o&1&&i===a,u=Ni(a,s,n,c,l);return u!==null?xr(e,s,u,a,o):et}function Ni(t,e,n,r,o){let i=t.providerIndexes,s=e.data,a=i&1048575,c=t.directiveStart,l=t.directiveEnd,u=i>>20,d=r?a:a+u,p=o?a+u:l;for(let f=d;f<p;f++){let h=s[f];if(f<c&&n===h||f>=c&&h.type===n)return f}if(o){let f=s[c];if(f&&Le(f)&&f.type===n)return c}return null}function xr(t,e,n,r,o){let i=t[n],s=e.data;if(i instanceof ln){let a=i;if(a.resolving)throw Ta("");let c=Oi(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],u,d=a.injectImpl?le(a.injectImpl):null,p=Ja(t,r,0);try{i=t[n]=a.factory(void 0,o,s,t,r),e.firstCreatePass&&n>=r.directiveStart&&eE(n,s[n],e)}finally{d!==null&&le(d),Oi(c),a.resolving=!1,Xa()}}return i}function fE(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Jt)?t[Jt]:void 0;return typeof e=="number"?e>=0?e&Ep:pE:e}function kf(t,e,n){let r=1<<t;return!!(n[e+(t>>Ip)]&r)}function Rf(t,e){return!(t&2)&&!(t&1&&e)}var At=class{_tNode;_lView;constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return wp(this._tNode,this._lView,e,Qt(r),n)}};function pE(){return new At(Q(),_())}function hE(t){return Vr(()=>{let e=t.prototype.constructor,n=e[gr]||Dc(e),r=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){let i=o[gr]||Dc(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Dc(t){return ya(t)?()=>{let e=Dc(Y(t));return e&&e()}:Et(t)}function mE(t,e,n,r,o){let i=t,s=e;for(;i!==null&&s!==null&&s[b]&2048&&!Ln(s);){let a=bp(i,s,n,r|2,et);if(a!==et)return a;let c=i.parent;if(!c){let l=s[Ra];if(l){let u=l.get(n,et,r&-5);if(u!==et)return u}c=Sp(s),s=s[wt]}i=c}return o}function Sp(t){let e=t[E],n=e.type;return n===2?e.declTNode:n===1?t[se]:null}function Cp(t){return uE(Q(),t)}function Yn(t){return{token:t.token,providedIn:t.autoProvided===!1?null:"root",factory:t.factory,value:void 0}}function gE(){return Jn(Q(),_())}function Jn(t,e){return new Hr(Se(t,e))}var Hr=(()=>{class t{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=gE}return t})();function Mp(t){return t instanceof Hr?t.nativeElement:t}function yE(){return this._results[Symbol.iterator]()}var Li=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ye}constructor(e=!1){this._emitDistinctChangesOnly=e}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){this.dirty=!1;let r=Ld(e);(this._changesDetected=!Pd(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=yE};function Np(t){return(t.flags&128)===128}var tl=(function(t){return t[t.OnPush=0]="OnPush",t[t.Eager=1]="Eager",t[t.Default=1]="Default",t})(tl||{}),xp=new Map,vE=0;function EE(){return vE++}function IE(t){xp.set(t[Je],t)}function _c(t){xp.delete(t[Je])}var Of="__ngContext__";function zn(t,e){st(e)?(t[Of]=e[Je],IE(e)):t[Of]=e}function Ap(t){return Rp(t[On])}function kp(t){return Rp(t[Te])}function Rp(t){for(;t!==null&&!we(t);)t=t[Te];return t}var Tc;function DE(t){Tc=t}function Op(){if(Tc!==void 0)return Tc;if(typeof document<"u")return document;throw new g(210,!1)}var Pp="r";var Lp="di";var Fp=!1,jp=new P("",{factory:()=>Fp});var Pf=new WeakMap;function _E(t,e){if(t==null||typeof t!="object")return;let n=Pf.get(t);n||(n=new WeakSet,Pf.set(t,n)),n.add(e)}var TE=(t,e,n,r)=>{};function wE(t,e,n,r){TE(t,e,n,r)}function Yi(t){return(t.flags&32)===32}var bE=()=>null;function Vp(t,e,n=!1){return bE(t,e,n)}function Hp(t,e){let n=t.contentQueries;if(n!==null){let r=D(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=t.data[s];wr(i),a.contentQueries(2,e[s],s)}}}finally{D(r)}}}function wc(t,e,n){wr(0);let r=D(null);try{e(t,n)}finally{D(r)}}function nl(t,e,n){if(Pa(e)){let r=D(null);try{let o=e.directiveStart,i=e.directiveEnd;for(let s=o;s<i;s++){let a=t.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{D(r)}}}var un=(function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t[t.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",t})(un||{});var wi;function SE(){if(wi===void 0&&(wi=null,_t.trustedTypes))try{wi=_t.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return wi}function Ji(t){return SE()?.createHTML(t)||t}var ct=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Zo})`}},bc=class extends ct{getTypeName(){return"HTML"}},Sc=class extends ct{getTypeName(){return"Style"}},Cc=class extends ct{getTypeName(){return"Script"}},Mc=class extends ct{getTypeName(){return"URL"}},Nc=class extends ct{getTypeName(){return"ResourceURL"}};function rl(t){return t instanceof ct?t.changingThisBreaksApplicationSecurity:t}function CE(t,e){let n=Bp(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${Zo})`)}return n===e}function Bp(t){return t instanceof ct&&t.getTypeName()||null}function ME(t){return new bc(t)}function NE(t){return new Sc(t)}function xE(t){return new Cc(t)}function AE(t){return new Mc(t)}function kE(t){return new Nc(t)}function RE(t){let e=new Ac(t);return OE()?new xc(e):e}var xc=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let n=new window.DOMParser().parseFromString(Ji(e),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(e):(n.firstChild?.remove(),n)}catch(n){return null}}},Ac=class{defaultDoc;inertDocument;constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let n=this.inertDocument.createElement("template");return n.innerHTML=Ji(e),n}};function OE(){try{return!!new window.DOMParser().parseFromString(Ji(""),"text/html")}catch(t){return!1}}var PE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function $p(t){return t=String(t),t.match(PE)?t:"unsafe:"+t}function lt(t){let e={};for(let n of t.split(","))e[n]=!0;return e}function Br(...t){let e={};for(let n of t)for(let r in n)n.hasOwnProperty(r)&&(e[r]=!0);return e}var Up=lt("area,br,col,hr,img,wbr"),qp=lt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),zp=lt("rp,rt"),LE=Br(zp,qp),FE=Br(qp,lt("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")),jE=Br(zp,lt("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")),Lf=Br(Up,FE,jE,LE),Gp=lt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),VE=lt("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"),HE=lt("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"),BE=Br(Gp,VE,HE),$E=lt("script,style,template"),kc=class{sanitizedSomething=!1;buf=[];sanitizeChildren(e){let n=e.firstChild,r=!0,o=[];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){o.push(n),n=zE(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=qE(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(e){let n=Ff(e).toLowerCase();if(!Lf.hasOwnProperty(n))return this.sanitizedSomething=!0,!$E.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=e.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!BE.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=i.value;Gp[a]&&(c=$p(c)),this.buf.push(" ",s,'="',jf(c),'"')}return this.buf.push(">"),!0}endElement(e){let n=Ff(e).toLowerCase();Lf.hasOwnProperty(n)&&!Up.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(e){this.buf.push(jf(e))}};function UE(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function qE(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw Wp(e);return e}function zE(t){let e=t.firstChild;if(e&&UE(t,e))throw Wp(e);return e}function Ff(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function Wp(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var GE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,WE=/([^\#-~ |!])/g;function jf(t){return t.replace(/&/g,"&amp;").replace(GE,function(e){let n=e.charCodeAt(0),r=e.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(WE,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var bi;function QE(t,e){let n=null;try{bi=bi||RE(t);let r=e?String(e):"";n=bi.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=bi.getInertBodyElement(r)}while(r!==i);let a=new kc().sanitizeChildren(Vf(n)||n);return Ji(a)}finally{if(n){let r=Vf(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Vf(t){return"content"in t&&KE(t)?t.content:null}function KE(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var ZE=/^>|^->|<!--|-->|--!>|<!-$/g,YE=/(<|>)/g,JE="\u200B$1\u200B";function XE(t){return t.replace(ZE,e=>e.replace(YE,JE))}function eI(t,e){return t.createText(e)}function tI(t,e,n){t.setValue(e,n)}function nI(t,e){return t.createComment(XE(e))}function Qp(t,e,n){return t.createElement(e,n)}function Fi(t,e,n,r,o){t.insertBefore(e,n,r,o)}function Kp(t,e,n){t.appendChild(e,n)}function Hf(t,e,n,r,o){r!==null?Fi(t,e,n,r,o):Kp(t,e,n)}function Zp(t,e,n,r){t.removeChild(null,e,n,r)}function rI(t,e,n){t.setAttribute(e,"style",n)}function oI(t,e,n){n===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n)}function Yp(t,e,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&oE(t,e,r),o!==null&&oI(t,e,o),i!==null&&rI(t,e,i)}var Jp=(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[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(Jp||{});function iI(t){return t.ownerDocument}function sI(t,e,n){let r=t.length;for(;;){let o=t.indexOf(e,n);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let i=e.length;if(o+i===r||t.charCodeAt(o+i)<=32)return o}n=o+1}}var Xp="ng-template";function aI(t,e,n,r){let o=0;if(r){for(;o<e.length&&typeof e[o]=="string";o+=2)if(e[o]==="class"&&sI(e[o+1].toLowerCase(),n,0)!==-1)return!0}else if(ol(t))return!1;if(o=e.indexOf(1,o),o>-1){let i;for(;++o<e.length&&typeof(i=e[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function ol(t){return t.type===4&&t.value!==Xp}function cI(t,e,n){let r=t.type===4&&!n?Xp:t.value;return e===r}function lI(t,e,n){let r=4,o=t.attrs,i=o!==null?fI(o):0,s=!1;for(let a=0;a<e.length;a++){let c=e[a];if(typeof c=="number"){if(!s&&!Fe(r)&&!Fe(c))return!1;if(s&&Fe(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!cI(t,c,n)||c===""&&e.length===1){if(Fe(r))return!1;s=!0}}else if(r&8){if(o===null||!aI(t,o,c,n)){if(Fe(r))return!1;s=!0}}else{let l=e[++a],u=uI(c,o,ol(t),n);if(u===-1){if(Fe(r))return!1;s=!0;continue}if(l!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(Fe(r))return!1;s=!0}}}}return Fe(r)||s}function Fe(t){return(t&1)===0}function uI(t,e,n,r){if(e===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<e.length;){let s=e[o];if(s===t)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=e[++o];for(;typeof a=="string";)a=e[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return pI(e,t)}function eh(t,e,n=!1){for(let r=0;r<e.length;r++)if(lI(t,e[r],n))return!0;return!1}function dI(t){let e=t.attrs;if(e!=null){let n=e.indexOf(5);if((n&1)===0)return e[n+1]}return null}function fI(t){for(let e=0;e<t.length;e++){let n=t[e];if(yp(n))return e}return t.length}function pI(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){let r=t[n];if(typeof r=="number")return-1;if(r===e)return n;n++}return-1}function hI(t,e){e:for(let n=0;n<e.length;n++){let r=e[n];if(t.length===r.length){for(let o=0;o<t.length;o++)if(t[o]!==r[o])continue e;return!0}}return!1}function Bf(t,e){return t?":not("+e.trim()+")":e}function mI(t){let e=t[0],n=1,r=2,o="",i=!1;for(;n<t.length;){let s=t[n];if(typeof s=="string")if(r&2){let a=t[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Fe(s)&&(e+=Bf(i,o),o=""),r=s,i=i||!Fe(r);n++}return o!==""&&(e+=Bf(i,o)),e}function gI(t){return t.map(mI).join(",")}function yI(t){let e=[],n=[],r=1,o=2;for(;r<t.length;){let i=t[r];if(typeof i=="string")o===2?i!==""&&e.push(i,t[++r]):o===8&&n.push(i);else{if(!Fe(o))break;o=i}r++}return n.length&&e.push(1,...n),e}var te={},ji=(function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t})(ji||{}),vI;function il(t,e){return vI(t,e)}var xO=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Rc=new WeakMap;function th(t){return t?t[wt]??t:null}var Cr=new WeakSet;function EI(t,e,n){let r=Rc.get(t);if(!r||r.length===0)return;let o=e.parentNode,i=e.previousSibling,s=th(n);for(let a=r.length-1;a>=0;a--){let{el:c,declarationView:l}=r[a],u=c.parentNode;c===e?(r.splice(a,1),Cr.add(c),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):i&&c===i?(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),c.parentNode?.removeChild(c)):u&&o&&u!==o&&(s===null||l===null||s===l)&&(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),c.parentNode?.removeChild(c))}}function II(t,e,n){let r=th(n),o=Rc.get(t);o?o.some(i=>i.el===e)||o.push({el:e,declarationView:r}):Rc.set(t,[{el:e,declarationView:r}])}var Gn=new Set,Xi=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(Xi||{}),pn=new P(""),$f=new Set;function ut(t){$f.has(t)||($f.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var es=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=pe({token:t,providedIn:"root",factory:()=>new t})}return t})(),sl=[0,1,2,3],al=(()=>{class t{ngZone=S(re);scheduler=S(Oe);errorHandler=S(Yt,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){S(pn,{optional:!0})}execute(){let n=this.sequences.size>0;n&&F(O.AfterRenderHooksStart),this.executing=!0;for(let r of sl)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&F(O.AfterRenderHooksEnd)}register(n){let{view:r}=n;r!==void 0?((r[nn]??=[]).push(n),sn(r),r[b]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(Xi.AFTER_NEXT_RENDER,n):n()}static \u0275prov=pe({token:t,providedIn:"root",factory:()=>new t})}return t})(),Ar=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(e,n,r,o,i,s=null){this.impl=e,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let e=this.view?.[nn];e&&(this.view[nn]=e.filter(n=>n!==this))}};function DI(t,e){let n=e?.injector??S(Qe);return ut("NgAfterNextRender"),TI(t,n,e,!0)}function _I(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function TI(t,e,n,r){let o=e.get(es);o.impl??=e.get(al);let i=e.get(pn,null,{optional:!0}),s=n?.manualCleanup!==!0?e.get(an):null,a=e.get(Hn,null,{optional:!0}),c=new Ar(o.impl,_I(t),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var cl=new P("",{factory:()=>{let t=S(De),e=new Set;return t.onDestroy(()=>e.clear()),{queue:e,isScheduled:!1,scheduler:null,injector:t}}});function nh(t,e,n){let r=t.get(cl);if(Array.isArray(e))for(let o of e)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(e),n?.detachedLeaveAnimationFns?.push(e);r.scheduler&&r.scheduler(t)}function wI(t,e){let n=t.get(cl);if(Array.isArray(e))for(let r of e)n.queue.delete(r);else n.queue.delete(e)}function bI(t,e){let n=t.get(cl);if(e.detachedLeaveAnimationFns){for(let r of e.detachedLeaveAnimationFns)n.queue.delete(r);e.detachedLeaveAnimationFns=void 0}}function SI(t,e){for(let[n,r]of e)nh(t,r.animateFns)}function Uf(t,e,n,r){let o=t?.[Xe]?.enter;e!==null&&o&&o.has(n.index)&&SI(r,o)}function qf(t,e,n,r){try{n.get(Dr)}catch(s){return r(!1)}let o=t?.[Xe];o?.enter?.has(e.index)&&wI(n,o.enter.get(e.index).animateFns);let i=CI(t,e,o);if(i.size===0){let s=!1;if(t){let a=[];ts(t,e,a),s=a.length>0}if(!s)return r(!1)}t&&Gn.add(t[Je]),nh(n,()=>MI(t,e,o||void 0,i,r),o||void 0)}function CI(t,e,n){let r=new Map,o=n?.leave;if(o&&o.has(e.index)&&r.set(e.index,o.get(e.index)),t&&o)for(let[i,s]of o){if(r.has(i))continue;let c=t[E].data[i].parent;for(;c;){if(c===e){r.set(i,s);break}c=c.parent}}return r}function MI(t,e,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:l}=c();i.push(l)}n.detachedLeaveAnimationFns=void 0}if(t&&ts(t,e,i),i.length>0){let s=n||t?.[Xe];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),xI(t,s.running,o)}else Promise.allSettled(i).then(()=>{t&&Gn.delete(t[Je]),o(!0)})}else t&&Gn.delete(t[Je]),o(!1)}function ts(t,e,n){if(e.type&12){let o=t[e.index];if(we(o))for(let i=z;i<o.length;i++){let s=o[i];s[E].type===2&&NI(s,n)}}let r=e.child;for(;r;)ts(t,r,n),r=r.next}function NI(t,e){let n=t[Xe];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();e.push(s)}let r=t[E].firstChild;for(;r;)ts(t,r,e),r=r.next}function xI(t,e,n){e.then(()=>{t[Xe]?.running===e&&(t[Xe].running=void 0,Gn.delete(t[Je])),n(!0)})}function $n(t,e,n,r,o,i,s,a){if(o!=null){let c,l=!1;we(o)?c=o:st(o)&&(l=!0,o=o[Pe]);let u=be(o);t===0&&r!==null?(Uf(a,r,i,n),s==null?Kp(e,r,u):Fi(e,r,u,s||null,!0)):t===1&&r!==null?(Uf(a,r,i,n),Fi(e,r,u,s||null,!0),EI(i,u,a)):t===2?(a?.[Xe]?.leave?.has(i.index)&&II(i,u,a),Cr.delete(u),qf(a,i,n,d=>{if(Cr.has(u)){Cr.delete(u);return}Zp(e,u,l,d)})):t===3&&(Cr.delete(u),qf(a,i,n,()=>{e.destroyNode(u)})),c!=null&&HI(e,t,n,c,i,r,s)}}function AI(t,e){rh(t,e),e[Pe]=null,e[se]=null}function kI(t,e,n,r,o,i){r[Pe]=o,r[se]=e,rs(t,r,n,1,o,i)}function rh(t,e){e[Ze].changeDetectionScheduler?.notify(9),rs(t,e,e[V],2,null,null)}function RI(t){let e=t[On];if(!e)return lc(t[E],t);for(;e;){let n=null;if(st(e))n=e[On];else{let r=e[z];r&&(n=r)}if(!n){for(;e&&!e[Te]&&e!==t;)st(e)&&lc(e[E],e),e=e[J];e===null&&(e=t),st(e)&&lc(e[E],e),n=e&&e[Te]}e=n}}function ll(t,e){let n=t[rn],r=n.indexOf(e);n.splice(r,1)}function ns(t,e){if(on(e))return;let n=e[V];n.destroyNode&&rs(t,e,n,3,null,null),RI(e)}function lc(t,e){if(on(e))return;let n=D(null);try{e[b]&=-129,e[b]|=256,e[ve]&&mt(e[ve]),PI(t,e),OI(t,e),e[E].type===1&&e[V].destroy();let r=e[bt];if(r!==null&&we(e[J])){r!==e[J]&&ll(r,e);let o=e[Ye];o!==null&&o.detachView(t)}_c(e)}finally{D(n)}}function OI(t,e){let n=t.cleanup,r=e[Rn];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(e[Rn]=null);let o=e[ot];if(o!==null){e[ot]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=e[It];if(i!==null){e[It]=null;for(let s of i)s.destroy()}}function PI(t,e){let n;if(t!=null&&(n=t.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=e[n[r]];if(!(o instanceof ln)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];F(O.LifecycleHookStart,a,c);try{c.call(a)}finally{F(O.LifecycleHookEnd,a,c)}}else{F(O.LifecycleHookStart,o,i);try{i.call(o)}finally{F(O.LifecycleHookEnd,o,i)}}}}}function oh(t,e,n){return LI(t,e.parent,n)}function LI(t,e,n){let r=e;for(;r!==null&&r.type&168;)e=r,r=e.parent;if(r===null)return n[Pe];if(at(r)){let{encapsulation:o}=t.data[r.directiveStart+r.componentOffset];if(o===un.None||o===un.Emulated)return null}return Se(r,n)}function ih(t,e,n){return jI(t,e,n)}function FI(t,e,n){return t.type&40?Se(t,n):null}var jI=FI,zf;function ul(t,e,n,r){let o=oh(t,r,e),i=e[V],s=r.parent||e[se],a=ih(s,r,e);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Hf(i,o,n[c],a,!1);else Hf(i,o,n,a,!1);zf!==void 0&&zf(i,r,e,n,o)}function Mr(t,e){if(e!==null){let n=e.type;if(n&3)return Se(e,t);if(n&4)return Oc(-1,t[e.index]);if(n&8){let r=e.child;if(r!==null)return Mr(t,r);{let o=t[e.index];return we(o)?Oc(-1,o):be(o)}}else{if(n&128)return Mr(t,e.next);if(n&32)return il(e,t)()||be(t[e.index]);{let r=sh(t,e);if(r!==null){if(Array.isArray(r))return r[0];let o=it(t[ue]);return Mr(o,r)}else return Mr(t,e.next)}}}return null}function sh(t,e){if(e!==null){let r=t[ue][se],o=e.projection;return r.projection[o]}return null}function Oc(t,e){let n=z+t+1;if(n<e.length){let r=e[n],o=r[E].firstChild;if(o!==null)return Mr(r,o)}return e[St]}function dl(t,e,n,r,o,i,s){for(;n!=null;){let a=r[Ke];if(n.type===128){n=n.next;continue}let c=r[n.index],l=n.type;if(s&&e===0&&(c&&zn(be(c),r),n.flags|=2),!Yi(n))if(l&8)dl(t,e,n.child,r,o,i,!1),$n(e,t,a,o,c,n,i,r);else if(l&32){let u=il(n,r),d;for(;d=u();)$n(e,t,a,o,d,n,i,r);$n(e,t,a,o,c,n,i,r)}else l&16?ah(t,e,r,n,o,i):$n(e,t,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function rs(t,e,n,r,o,i){dl(n,r,t.firstChild,e,o,i,!1)}function VI(t,e,n){let r=e[V],o=oh(t,n,e),i=n.parent||e[se],s=ih(i,n,e);ah(r,0,e,n,o,s)}function ah(t,e,n,r,o,i){let s=n[ue],c=s[se].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];$n(e,t,n[Ke],o,u,r,i,n)}else{let l=c,u=s[J];Np(r)&&(l.flags|=128),dl(t,e,l,u,o,i,!0)}}function HI(t,e,n,r,o,i,s){let a=r[St],c=be(r);a!==c&&$n(e,t,n,i,a,o,s);for(let l=z;l<r.length;l++){let u=r[l];rs(u[E],u,t,e,i,a)}}function BI(t,e,n,r,o){if(e)o?t.addClass(n,r):t.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:ji.DashCase;o==null?t.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=ji.Important),t.setStyle(n,r,o,i))}}function fl(t,e,n,r,o,i,s,a,c,l,u){let d=U+r,p=d+o,f=$I(d,p),h=typeof l=="function"?l():l;return f[E]={type:t,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:e,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:!1,ssrId:u}}function $I(t,e){let n=[];for(let r=0;r<e;r++)n.push(r<t?null:te);return n}function UI(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=fl(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function pl(t,e,n,r,o,i,s,a,c,l,u){let d=e.blueprint.slice();return d[Pe]=o,d[b]=r|4|128|8|64|1024,(l!==null||t&&t[b]&2048)&&(d[b]|=2048),Ha(d),d[J]=d[wt]=t,d[W]=n,d[Ze]=s||t&&t[Ze],d[V]=a||t&&t[V],d[Ke]=c||t&&t[Ke]||null,d[se]=i,d[Je]=EE(),d[en]=u,d[Ra]=l,d[ue]=e.type==2?t[ue]:d,d}function qI(t,e,n){let r=Se(e,t),o=UI(n),i=t[Ze].rendererFactory,s=hl(t,pl(t,o,null,ch(n),r,e,null,i.createRenderer(r,n),null,null,null));return t[e.index]=s}function ch(t){let e=16;return t.signals?e=4096:t.onPush&&(e=64),e}function lh(t,e,n,r){if(n===0)return-1;let o=e.length;for(let i=0;i<n;i++)e.push(r),t.blueprint.push(r),t.data.push(null);return o}function hl(t,e){return t[On]?t[ka][Te]=e:t[On]=e,t[ka]=e,e}function zI(t=1){uh(B(),_(),Me()+t,!1)}function uh(t,e,n,r){if(!r)if((e[b]&3)===3){let i=t.preOrderCheckHooks;i!==null&&Ci(e,i,n)}else{let i=t.preOrderHooks;i!==null&&Mi(e,i,0,n)}Mt(n)}var os=(function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t})(os||{});function dn(t,e,n,r){let o=D(null);try{let[i,s,a]=t.inputs[n],c=null;(s&os.SignalBased)!==0&&(c=e[i][Z]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(e,r)),t.setInput!==null?t.setInput(e,c,r,n,i):fp(e,c,i,r)}finally{D(o)}}function dh(t,e,n,r,o){let i=Me(),s=r&2;try{Mt(-1),s&&e.length>U&&uh(t,e,U,!1);let a=s?O.TemplateUpdateStart:O.TemplateCreateStart;F(a,o,n),n(r,o)}finally{Mt(i);let a=s?O.TemplateUpdateEnd:O.TemplateCreateEnd;F(a,o,n)}}function is(t,e,n){YI(t,e,n),(n.flags&64)===64&&JI(t,e,n)}function $r(t,e,n=Se){let r=e.localNames;if(r!==null){let o=e.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(e,t):t[s];t[o++]=a}}}function GI(t,e,n,r){let i=r.get(jp,Fp)||n===un.ShadowDom||n===un.ExperimentalIsolatedShadowDom,s=t.selectRootElement(e,i);return WI(s),s}function WI(t){QI(t)}var QI=()=>null;function KI(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function fh(t,e,n,r,o,i){let s=e[E];if(vl(t,s,e,n,r)){at(t)&&ZI(e,t.index);return}t.type&3&&(n=KI(n)),ph(t,e,n,r,o,i)}function ph(t,e,n,r,o,i){if(t.type&3){let s=Se(t,e);r=i!=null?i(r,t.value||"",n):r,o.setProperty(s,n,r)}else t.type&12}function ZI(t,e){let n=Ce(e,t);n[b]&16||(n[b]|=64)}function YI(t,e,n){let r=n.directiveStart,o=n.directiveEnd;at(n)&&qI(e,n,t.data[r+n.componentOffset]),t.firstCreatePass||Pi(n,e);let i=n.initialInputs;for(let s=r;s<o;s++){let a=t.data[s],c=xr(e,t,s,n);if(zn(c,e),i!==null&&nD(e,s-r,c,a,n,i),Le(a)){let l=Ce(n.index,e);l[W]=xr(e,t,s,n)}}}function JI(t,e,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=cf();try{Mt(i);for(let a=r;a<o;a++){let c=t.data[a],l=e[a];mi(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&XI(c,l)}}finally{Mt(-1),mi(s)}}function XI(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function ml(t,e){let n=t.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];eh(e,i.selectors,!1)&&(r??=[],Le(i)?r.unshift(i):r.push(i))}return r}function eD(t,e,n,r,o,i){let s=Se(t,e);tD(e[V],s,i,t.value,n,r,o)}function tD(t,e,n,r,o,i,s){if(i==null)s?.(i,r||"",o),t.removeAttribute(e,o,n);else{let a=s==null?_e(i):s(i,r||"",o);t.setAttribute(e,o,a,n)}}function nD(t,e,n,r,o,i){let s=i[e];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];dn(r,n,c,l)}}function gl(t,e,n,r,o){let i=U+n,s=e[E],a=o(s,e,t,r,n);e[i]=a,Fn(t,!0);let c=t.type===2;return c?(Yp(e[V],a,t),(Yd()===0||Pn(t))&&zn(a,e),Jd()):zn(a,e),Ei()&&(!c||!Yi(t))&&ul(s,e,a,t),t}function yl(t){let e=t;return Ka()?Za():(e=e.parent,Fn(e,!1)),e}function rD(t,e){let n=t[Ke];if(!n)return;let r;try{r=n.get(xt,null)}catch(o){r=null}r?.(e)}function vl(t,e,n,r,o){let i=t.inputs?.[r],s=t.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],d=e.data[l];dn(d,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=e.data[c];dn(u,l,r,o),a=!0}return a}function oD(t,e,n,r,o,i){let s=null,a=null,c=null,l=!1,u=t.directiveToIndex.get(r.type);if(typeof u=="number"?s=u:[s,a,c]=u,a!==null&&c!==null&&t.hostDirectiveInputs?.hasOwnProperty(o)){let d=t.hostDirectiveInputs[o];for(let p=0;p<d.length;p+=2){let f=d[p];if(f>=a&&f<=c){let h=e.data[f],m=d[p+1];dn(h,n[f],m,i),l=!0}else if(f>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(dn(r,n[s],o,i),l=!0),l}function iD(t,e){let n=Ce(e,t),r=n[E];sD(r,n);let o=n[Pe];o!==null&&n[en]===null&&(n[en]=Vp(o,n[Ke])),F(O.ComponentStart);try{El(r,n,n[W])}finally{F(O.ComponentEnd,n[W])}}function sD(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}function El(t,e,n){yi(e);try{let r=t.viewQuery;r!==null&&wc(1,r,n);let o=t.template;o!==null&&dh(t,e,o,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),e[Ye]?.finishViewCreation(t),t.staticContentQueries&&Hp(t,e),t.staticViewQueries&&wc(2,t.viewQuery,n);let i=t.components;i!==null&&aD(e,i)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[b]&=-5,vi()}}function aD(t,e){for(let n=0;n<e.length;n++)iD(t,e[n])}function Ur(t,e,n,r){let o=D(null);try{let i=e.tView,a=t[b]&4096?4096:16,c=pl(t,i,n,a,null,e,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=t[e.index];c[bt]=l;let u=t[Ye];return u!==null&&(c[Ye]=u.createEmbeddedView(i)),El(i,c,n),c}finally{D(o)}}function Wn(t,e){return!e||e.firstChild===null||Np(t)}function kr(t,e,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=e[n.index];i!==null&&r.push(be(i)),we(i)&&hh(i,r);let s=n.type;if(s&8)kr(t,e,n.child,r);else if(s&32){let a=il(n,e),c;for(;c=a();)r.push(c)}else if(s&16){let a=sh(e,n);if(Array.isArray(a))r.push(...a);else{let c=it(e[ue]);kr(c[E],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function hh(t,e){for(let n=z;n<t.length;n++){let r=t[n],o=r[E].firstChild;o!==null&&kr(r[E],r,o,e)}t[St]!==t[Pe]&&e.push(t[St])}function mh(t){if(t[nn]!==null){for(let e of t[nn])e.impl.addSequence(e);t[nn].length=0}}var gh=[];function cD(t){return t[ve]??lD(t)}function lD(t){let e=gh.pop()??Object.create(dD);return e.lView=t,e}function uD(t){t.lView[ve]!==t&&(t.lView=null,gh.push(t))}var dD=ee(G({},jt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{sn(t.lView)},consumerOnSignalRead(){this.lView[ve]=this}});function fD(t){let e=t[ve]??Object.create(pD);return e.lView=t,e}var pD=ee(G({},jt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let e=it(t.lView);for(;e&&!yh(e[E]);)e=it(e);e&&Ba(e)},consumerOnSignalRead(){this.lView[ve]=this}});function yh(t){return t.type!==2}function vh(t){if(t[It]===null)return;let e=!0;for(;e;){let n=!1;for(let r of t[It])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));e=n&&!!(t[b]&8192)}}var hD=100;function Eh(t,e=0){let r=t[Ze].rendererFactory,o=!1;o||r.begin?.();try{mD(t,e)}finally{o||r.end?.()}}function mD(t,e){let n=Ya();try{yr(!0),Pc(t,e);let r=0;for(;Tr(t);){if(r===hD)throw new g(103,!1);r++,Pc(t,1)}}finally{yr(n)}}function gD(t,e,n,r){if(on(e))return;let o=e[b],i=!1,s=!1;yi(e);let a=!0,c=null,l=null;i||(yh(t)?(l=cD(e),c=ht(l)):lo()===null?(a=!1,l=fD(e),c=ht(l)):e[ve]&&(mt(e[ve]),e[ve]=null));try{Ha(e),of(t.bindingStartIndex),n!==null&&dh(t,e,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=t.preOrderCheckHooks;f!==null&&Ci(e,f,null)}else{let f=t.preOrderHooks;f!==null&&Mi(e,f,0,null),ac(e,0)}if(s||yD(e),vh(e),Ih(e,0),t.contentQueries!==null&&Hp(t,e),!i)if(u){let f=t.contentCheckHooks;f!==null&&Ci(e,f)}else{let f=t.contentHooks;f!==null&&Mi(e,f,1),ac(e,1)}ED(t,e);let d=t.components;d!==null&&_h(e,d,0);let p=t.viewQuery;if(p!==null&&wc(2,p,r),!i)if(u){let f=t.viewCheckHooks;f!==null&&Ci(e,f)}else{let f=t.viewHooks;f!==null&&Mi(e,f,2),ac(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[ci]){for(let f of e[ci])f();e[ci]=null}i||(mh(e),e[b]&=-73)}catch(u){throw i||sn(e),u}finally{l!==null&&(Ht(l,c),a&&uD(l)),vi()}}function Ih(t,e){for(let n=Ap(t);n!==null;n=kp(n))for(let r=z;r<n.length;r++){let o=n[r];Dh(o,e)}}function yD(t){for(let e=Ap(t);e!==null;e=kp(e)){if(!(e[b]&2))continue;let n=e[rn];for(let r=0;r<n.length;r++){let o=n[r];Ba(o)}}}function vD(t,e,n){F(O.ComponentStart);let r=Ce(e,t);try{Dh(r,n)}finally{F(O.ComponentEnd,r[W])}}function Dh(t,e){ui(t)&&Pc(t,e)}function Pc(t,e){let r=t[E],o=t[b],i=t[ve],s=!!(e===0&&o&16);if(s||=!!(o&64&&e===0),s||=!!(o&1024),s||=!!(i?.dirty&&vn(i)),s||=!1,i&&(i.dirty=!1),t[b]&=-9217,s)gD(r,t,r.template,t[W]);else if(o&8192){let a=D(null);try{vh(t),Ih(t,1);let c=r.components;c!==null&&_h(t,c,1),mh(t)}finally{D(a)}}}function _h(t,e,n){for(let r=0;r<e.length;r++)vD(t,e[r],n)}function ED(t,e){let n=t.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Mt(~o);else{let i=o,s=n[++r],a=n[++r];af(s,i);let c=e[i];F(O.HostBindingsUpdateStart,c);try{a(2,c)}finally{F(O.HostBindingsUpdateEnd,c)}}}}finally{Mt(-1)}}function Il(t,e){let n=Ya()?64:1088;for(t[Ze].changeDetectionScheduler?.notify(e);t;){t[b]|=n;let r=it(t);if(Ln(t)&&!r)return t;t=r}return null}function Th(t,e,n,r){return[t,!0,0,e,null,r,null,n,null,null]}function wh(t,e){let n=z+e;if(n<t.length)return t[n]}function qr(t,e,n,r=!0){let o=e[E];if(ID(o,e,t,n),r){let s=Oc(n,t),a=e[V],c=a.parentNode(t[St]);c!==null&&kI(o,t[se],a,e,c,s)}let i=e[en];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function bh(t,e){let n=Rr(t,e);return n!==void 0&&ns(n[E],n),n}function Rr(t,e){if(t.length<=z)return;let n=z+e,r=t[n];if(r){let o=r[bt];o!==null&&o!==t&&ll(o,r),e>0&&(t[n-1][Te]=r[Te]);let i=Ir(t,z+e);AI(r[E],r);let s=i[Ye];s!==null&&s.detachView(i[E]),r[J]=null,r[Te]=null,r[b]&=-129}return r}function ID(t,e,n,r){let o=z+r,i=n.length;r>0&&(n[o-1][Te]=e),r<i-z?(e[Te]=n[o],ba(n,z+r,e)):(n.push(e),e[Te]=null),e[J]=n;let s=e[bt];s!==null&&n!==s&&Sh(s,e);let a=e[Ye];a!==null&&a.insertView(t),di(e),e[b]|=128}function Sh(t,e){let n=t[rn],r=e[J];if(st(r))t[b]|=2;else{let o=r[J][ue];e[ue]!==o&&(t[b]|=2)}n===null?t[rn]=[e]:n.push(e)}var kt=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let e=this._lView,n=e[E];return kr(n,e,n.firstChild,[])}constructor(e,n){this._lView=e,this._cdRefInjectingView=n}get context(){return this._lView[W]}set context(e){this._lView[W]=e}get destroyed(){return on(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[J];if(we(e)){let n=e[_r],r=n?n.indexOf(this):-1;r>-1&&(Rr(e,r),Ir(n,r))}this._attachedToViewContainer=!1}ns(this._lView[E],this._lView)}onDestroy(e){fi(this._lView,e)}markForCheck(){Il(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[b]&=-129}reattach(){di(this._lView),this._lView[b]|=128}detectChanges(){this._lView[b]|=1024,Eh(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new g(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Ln(this._lView),n=this._lView[bt];n!==null&&!e&&ll(n,this._lView),rh(this._lView[E],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new g(902,!1);this._appRef=e;let n=Ln(this._lView),r=this._lView[bt];r!==null&&!n&&Sh(r,this._lView),di(this._lView)}};var Or=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=DD;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=Ur(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new kt(i)}}return t})();function DD(){return ss(Q(),_())}function ss(t,e){return t.type&4?new Or(e,t,Jn(t,e)):null}function Xn(t,e,n,r,o){let i=t.data[e];if(i===null)i=_D(t,e,n,r,o),sf()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=tf();i.injectorIndex=s===null?-1:s.injectorIndex}return Fn(i,!0),i}function _D(t,e,n,r,o){let i=Qa(),s=Ka(),a=s?i:i&&i.parent,c=t.data[e]=wD(t,a,n,e,r,o);return TD(t,c,i,s),c}function TD(t,e,n,r){t.firstChild===null&&(t.firstChild=e),n!==null&&(r?n.child==null&&e.parent!==null&&(n.child=e):n.next===null&&(n.next=e,e.prev=n))}function wD(t,e,n,r,o,i){let s=e?e.injectorIndex:-1,a=0;return za()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:ec(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex: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 bD(t){let e=t[Oa]??[],r=t[J][V],o=[];for(let i of e)i.data[Lp]!==void 0?o.push(i):SD(i,r);t[Oa]=o}function SD(t,e){let n=0,r=t.firstChild;if(r){let o=t.data[Pp];for(;n<o;){let i=r.nextSibling;Zp(e,r,!1),r=i,n++}}}var CD=()=>null,MD=()=>null;function Vi(t,e){return CD(t,e)}function Ch(t,e,n){return MD(t,e,n)}var Mh=class{},Pr=class{},ND=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>xD()}return t})();function xD(){let t=_(),e=Q(),n=Ce(e.index,t);return(st(n)?n:t)[V]}var Nh=(()=>{class t{static \u0275prov=pe({token:t,providedIn:"root",factory:()=>null})}return t})();function xh(t){return t.debugInfo?.className||t.type.name||null}var xi={},Hi=class{injector;parentInjector;constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){let o=this.injector.get(e,xi,r);return o!==xi||n===xi?o:this.parentInjector.get(e,n,r)}};function Dl(t){return kh(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function Ah(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{let n=t[Symbol.iterator](),r;for(;!(r=n.next()).done;)e(r.value)}}function kh(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function AD(t,e,n){return t[e]=n}function Ne(t,e,n){if(n===te)return!1;let r=t[e];return Object.is(r,n)?!1:(t[e]=n,!0)}function Lr(t,e,n,r){let o=Ne(t,e,n);return Ne(t,e+1,r)||o}function kD(t,e,n,r,o){let i=Lr(t,e,n,r);return Ne(t,e+2,o)||i}function RD(t,e,n,r,o,i){let s=Lr(t,e,n,r);return Lr(t,e+2,o,i)||s}function cn(t,e,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&_E(o,i);let s=at(t)?Ce(t.index,e):e;Il(s,5);let a=e[W],c=Gf(e,a,n,o),l=r.__ngNextListenerFn__;for(;l;)c=Gf(e,a,l,o)&&c,l=l.__ngNextListenerFn__;return c}}function Gf(t,e,n,r){let o=D(null);try{return F(O.OutputStart,e,n),n(r)!==!1}catch(i){return rD(t,i),!1}finally{F(O.OutputEnd,e,n),D(o)}}function _l(t,e,n,r,o,i,s,a){let c=Pn(t),l=!1,u=null;if(!r&&c&&(u=PD(e,n,i,t.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,l=!0}else{let d=Se(t,n),p=r?r(d):d;wE(n,p,i,a),r||(a.__ngNativeEl__=d);let f=o.listen(p,i,a);if(!OD(i)){let h=r?m=>r(be(m[t.index])):t.index;Rh(h,e,n,i,a,f,!1)}}return l}function OD(t){return t.startsWith("animation")||t.startsWith("transition")}function PD(t,e,n,r){let o=t.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=e[Rn],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Rh(t,e,n,r,o,i,s){let a=e.firstCreatePass?Ua(e):null,c=$a(n),l=c.length;c.push(o,i),a&&a.push(r,t,l,(l+1)*(s?-1:1))}function Wf(t,e,n,r,o){let i=null,s=null,a=null,c=!1,l=t.directiveToIndex.get(n.type);if(typeof l=="number"?i=l:[i,s,a]=l,s!==null&&a!==null&&t.hostDirectiveOutputs?.hasOwnProperty(r)){let u=t.hostDirectiveOutputs[r];for(let d=0;d<u.length;d+=2){let p=u[d];if(p>=s&&p<=a)c=!0,Bi(t,e,p,u[d+1],r,o);else if(p>a)break}}return n.outputs.hasOwnProperty(r)&&(c=!0,Bi(t,e,i,r,r,o)),c}function Bi(t,e,n,r,o,i){let s=e[n],a=e[E],l=a.data[n].outputs[r],d=s[l].subscribe(i);Rh(t.index,a,e,o,i,d,!0)}function LD(){FD()}function FD(){let t=_(),e=B(),n=Q();if(e.firstCreatePass&&HD(e,n),n.controlDirectiveIndex===-1)return;ut("NgSignalForms");let r=t[n.controlDirectiveIndex];e.data[n.controlDirectiveIndex].controlDef.create(r,new $i(t,e,n))}function jD(){VD()}function VD(){let t=_(),e=B(),n=Vn();if(n.controlDirectiveIndex===-1)return;let r=e.data[n.controlDirectiveIndex].controlDef,o=t[n.controlDirectiveIndex];r.update(o,new $i(t,e,n))}var $i=class{lView;tView;tNode;hasPassThrough;constructor(e,n,r){this.lView=e,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096)}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return Se(this.tNode,this.lView)}get descriptor(){return`<${this.tNode.value}>`}listenToCustomControlOutput(e,n){let r=this.tView.data[this.tNode.customControlIndex];Wf(this.tNode,this.lView,r,e,cn(this.tNode,this.lView,n))}listenToCustomControlModel(e){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];Wf(this.tNode,this.lView,r,n,cn(this.tNode,this.lView,e))}listenToDom(e,n){_l(this.tNode,this.tView,this.lView,void 0,this.lView[V],e,n,cn(this.tNode,this.lView,n))}setInputOnDirectives(e,n){let r=this.tNode.inputs?.[e],o=this.tNode.hostDirectiveInputs?.[e];if(!r&&!o)return!1;let i=!1;if(r)for(let s of r){if(s===this.tNode.controlDirectiveIndex)continue;let a=this.tView.data[s],c=this.lView[s];dn(a,c,e,n),i=!0}if(o)for(let s=0;s<o.length;s+=2){let a=o[s];if(a===this.tNode.controlDirectiveIndex)continue;let c=o[s+1],l=this.tView.data[a],u=this.lView[a];dn(l,u,c,n),i=!0}return i}setCustomControlModelInput(e){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?"value":"checked";oD(this.tNode,this.tView,this.lView,n,r,e)}customControlHasInput(e){if(this.tNode.customControlIndex===-1)return!1;let n=this.tView.data[this.tNode.customControlIndex];return(n.signalFormsInputPresence??=this._buildCustomControlInputCache(n))[e]===!0}_buildCustomControlInputCache(e){let n={};for(let r in e.inputs)n[r]=!0;if(e.hostDirectives!==null){let r=[...e.hostDirectives];for(;r.length>0;){let o=r.shift();if(typeof o!="function"){for(let s in o.inputs)n[o.inputs[s]]=!0;let i=Qf(o.directive);i!==null&&r.push(...i);continue}for(let i of o()){if(typeof i=="function")continue;if(i.inputs)for(let a=0;a<i.inputs.length;a+=2){let c=i.inputs[a+1]||i.inputs[a];n[c]=!0}let s=Qf(i.directive);s!==null&&r.push(...s)}}}return n}};function Qf(t){return typeof t=="function"&&"\u0275dir"in t?t.\u0275dir.hostDirectives??null:null}function HD(t,e,n){for(let o=e.directiveStart;o<e.directiveEnd;o++)if(t.data[o].controlDef){e.controlDirectiveIndex=o;break}if(e.controlDirectiveIndex===-1)return;let r=t.data[e.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(e.inputs?.[r.passThroughInput]?.length??0)>1){e.flags|=4096;return}BD(t,e)}function BD(t,e){for(let n=e.directiveStart;n<e.directiveEnd;n++){let r=t.data[n];if(!(e.directiveToIndex&&!e.directiveToIndex.has(r.type))){if(Kf(r,"value")){e.flags|=1024,e.customControlIndex=n;return}if(Kf(r,"checked")){e.flags|=2048,e.customControlIndex=n;return}}}if(e.hostDirectiveInputs!==null&&e.hostDirectiveOutputs!==null&&e.directiveToIndex!==null){let n=(r,o)=>{let i=e.hostDirectiveInputs[r],s=e.hostDirectiveOutputs[r+"Change"];if(!i||!s)return!1;for(let a=0;a<i.length;a+=2){let c=i[a];for(let l=0;l<s.length;l+=2){let u=s[l];if(c===u)for(let d of e.directiveToIndex.values()){if(!Array.isArray(d))continue;let[p,f,h]=d;if(c>=f&&c<=h)return e.flags|=o,e.customControlIndex=p,!0}}}return!1};if(n("value",1024)||n("checked",2048))return}}function Kf(t,e){return $D(t,e)&&UD(t,e+"Change")}function $D(t,e){return e in t.inputs}function UD(t,e){return e in t.outputs}var Lc=Symbol("BINDING");var Oh=new P("");function Ui(t,e,n){let r=n?t.styles:null,o=n?t.classes:null,i=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")i=a;else if(i==1)o=Jo(o,a);else if(i==2){let c=a,l=e[++s];r=Jo(r,c+": "+l+";")}}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=o:t.classesWithoutHost=o}function zr(t,e=0){let n=_();if(n===null)return We(t,e);let r=Q();return wp(r,n,Y(t),e)}function qD(){let t="invalid";throw new Error(t)}function Ph(t,e,n,r,o){let i=r===null?null:{"":-1},s=o(t,n);if(s!==null){let a=s,c=null,l=null;for(let u of s)if(u.resolveHostDirectives!==null){[a,c,l]=u.resolveHostDirectives(s);break}WD(t,e,n,a,i,c,l)}i!==null&&r!==null&&zD(n,r,i)}function zD(t,e,n){let r=t.localNames=[];for(let o=0;o<e.length;o+=2){let i=n[e[o+1]];if(i==null)throw new g(-301,!1);r.push(e[o],i)}}function GD(t,e,n){e.componentOffset=n,(t.components??=[]).push(e.index)}function WD(t,e,n,r,o,i,s){let a=r.length,c=null;for(let p=0;p<a;p++){let f=r[p];c===null&&Le(f)&&(c=f,GD(t,n,p)),Ic(Pi(n,e),t,f.type)}XD(n,t.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f)}let l=!1,u=!1,d=lh(t,e,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=qn(n.mergedAttrs,f.hostAttrs),KD(t,n,e,d,f),JD(d,f,o),s!==null&&s.has(f)){let[m,v]=s.get(f);n.directiveToIndex.set(f.type,[d,m+n.directiveStart,v+n.directiveStart])}else(i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let h=f.type.prototype;!l&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((t.preOrderHooks??=[]).push(n.index),l=!0),!u&&(h.ngOnChanges||h.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}QD(t,n,i)}function QD(t,e,n){for(let r=e.directiveStart;r<e.directiveEnd;r++){let o=t.data[r];if(n===null||!n.has(o))Zf(0,e,o,r),Zf(1,e,o,r),Jf(e,r,!1);else{let i=n.get(o);Yf(0,e,i,r),Yf(1,e,i,r),Jf(e,r,!0)}}}function Zf(t,e,n,r){let o=t===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;t===0?s=e.inputs??={}:s=e.outputs??={},s[i]??=[],s[i].push(r),Lh(e,i)}}function Yf(t,e,n,r){let o=t===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;t===0?a=e.hostDirectiveInputs??={}:a=e.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Lh(e,s)}}function Lh(t,e){e==="class"?t.flags|=8:e==="style"&&(t.flags|=16)}function Jf(t,e,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=t;if(r===null||!n&&o===null||n&&i===null||ol(t)){t.initialInputs??=[],t.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let l=o[c];for(let u of l)if(u===e){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let l=i[c];for(let u=0;u<l.length;u+=2)if(l[u]===e){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}t.initialInputs??=[],t.initialInputs.push(s)}function KD(t,e,n,r,o){t.data[r]=o;let i=o.factory||(o.factory=Et(o.type,!0)),s=new ln(i,Le(o),zr,null);t.blueprint[r]=s,n[r]=s,ZD(t,e,r,lh(t,n,o.hostVars,te),o)}function ZD(t,e,n,r,o){let i=o.hostBindings;if(i){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;YD(s)!=a&&s.push(a),s.push(n,r,i)}}function YD(t){let e=t.length;for(;e>0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function JD(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Le(e)&&(n[""]=t)}}function XD(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Tl(t,e,n,r,o,i,s,a){let c=e[E],l=c.consts,u=Ee(l,s),d=Xn(c,t,n,r,u);return i&&Ph(c,e,d,Ee(l,a),o),d.mergedAttrs=qn(d.mergedAttrs,d.attrs),d.attrs!==null&&Ui(d,d.attrs,!1),d.mergedAttrs!==null&&Ui(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function wl(t,e){mp(t,e),Pa(e)&&t.queries.elementEnd(e)}function e_(t,e,n,r,o,i){let s=e.consts,a=Ee(s,o),c=Xn(e,t,n,r,a);if(c.mergedAttrs=qn(c.mergedAttrs,c.attrs),i!=null){let l=Ee(s,i);c.localNames=[];for(let u=0;u<l.length;u+=2)c.localNames.push(l[u],-1)}return c.attrs!==null&&Ui(c,c.attrs,!1),c.mergedAttrs!==null&&Ui(c,c.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,c),c}var Fh=typeof ShadowRoot<"u",t_=typeof Document<"u";function n_(t){return Object.keys(t).map(e=>{let[n,r,o]=t[e],i={propName:n,templateName:e,isSignal:(r&os.SignalBased)!==0};return o&&(i.transform=o),i})}function r_(t){return Object.keys(t).map(e=>({propName:t[e],templateName:e}))}function o_(t,e,n){let r=e instanceof De?e:e?.injector;return r&&t.getStandaloneInjector!==null&&(r=t.getStandaloneInjector(r)||r),r?new Hi(n,r):n}function i_(t){let e=t.get(Pr,null);if(e===null)throw new g(407,!1);let n=t.get(Nh,null),r=t.get(Oe,null),o=t.get(pn,null,{optional:!0});return{rendererFactory:e,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:o}}function s_(t,e){let n=jh(t);return Qp(e,n,n==="svg"?La:n==="math"?zd:null)}function a_(t){if(t?.toLowerCase()==="script")throw new g(905,!1)}function jh(t){return(t.selectors[0][0]||"div").toLowerCase()}var Qn=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=n_(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=r_(this.componentDef.outputs),this.cachedOutputs}constructor(e,n){this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=gI(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!n}create(e,n,r,o,i,s){F(O.DynamicComponentStart);let a=D(null);try{let c=this.componentDef,l=o_(c,o||this.ngModule,e),u=i_(l),d=u.tracingService;return d&&d.componentCreate?d.componentCreate(xh(c),()=>this.createComponentRef(u,l,n,r,i,s)):this.createComponentRef(u,l,n,r,i,s)}finally{D(a)}}createComponentRef(e,n,r,o,i,s){let a=this.componentDef,c=c_(o,a,s,i),l=e.rendererFactory.createRenderer(null,a),u=o?GI(l,o,a.encapsulation,n):s_(a,l);a_(u?.tagName);let d=n.get(Oh,null),p=l_(u,()=>n.get(Ii,null)??Op());d&&d.addHost(p);let f=s?.some(Xf)||i?.some(v=>typeof v!="function"&&v.bindings.some(Xf)),h=pl(null,c,null,512|ch(a),null,null,e,l,n,null,Vp(u,n,!0));d&&Fh&&p instanceof ShadowRoot&&fi(h,()=>{d.removeHost(p)}),h[U]=u,yi(h);let m=null;try{let v=Tl(U,h,2,"#host",()=>c.directiveRegistry,!0,0);Yp(l,u,v),zn(u,h),is(c,h,v),nl(c,v,h),wl(c,v),r!==void 0&&d_(v,this.ngContentSelectors,r),m=Ce(v.index,h),h[W]=m[W],El(c,h,null)}catch(v){throw m!==null&&_c(m),_c(h),v}finally{F(O.DynamicComponentEnd),vi()}return new qi(this.componentType,h,!!f)}};function c_(t,e,n,r){let o=t?["ng-version","22.0.5"]:yI(e.selectors[0]),i=null,s=null,a=0;if(n)for(let u of n)a+=u[Lc].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let d=r[u];if(typeof d!="function")for(let p of d.bindings){a+=p[Lc].requiredVars;let f=u+1;p.create&&(p.targetIdx=f,(i??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p))}}let c=[e];if(r)for(let u of r){let d=typeof u=="function"?u:u.type,p=ni(d);c.push(p)}return fl(0,null,u_(i,s),1,a,c,null,null,null,[o],null)}function l_(t,e){let n=t.getRootNode?.();return t_&&n instanceof Document?n.head:n&&Fh&&n instanceof ShadowRoot?n:e().head}function u_(t,e){return!t&&!e?null:n=>{if(n&1&&t)for(let r of t)r.create();if(n&2&&e)for(let r of e)r.update()}}function Xf(t){let e=t[Lc].kind;return e==="input"||e==="twoWay"}var qi=class extends Mh{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=li(n[E],U),this.location=Jn(this._tNode,n),this.instance=Ce(this._tNode.index,n)[W],this.hostView=this.changeDetectorRef=new kt(n,void 0),this.componentType=e}setInput(e,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),n))return;let o=this._rootLView,i=vl(r,o[E],o,e,n);this.previousInputValues.set(e,n);let s=Ce(r.index,o);Il(s,1)}get injector(){return new At(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function d_(t,e,n){let r=t.projection=[];for(let o=0;o<e.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var as=(()=>{class t{static __NG_ELEMENT_ID__=f_}return t})();function f_(){let t=Q();return Vh(t,_())}var Fc=class t extends as{_lContainer;_hostTNode;_hostLView;constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return Jn(this._hostTNode,this._hostLView)}get injector(){return new At(this._hostTNode,this._hostLView)}get parentInjector(){let e=el(this._hostTNode,this._hostLView);if(vp(e)){let n=Ri(e,this._hostLView),r=ki(e),o=n[E].data[r+8];return new At(o,n)}else return new At(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=ep(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-z}createEmbeddedView(e,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Vi(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Wn(this._hostTNode,s)),a}createComponent(e,n,r,o,i,s,a){let c,l=n||{};c=l.index,r=l.injector,o=l.projectableNodes,i=l.environmentInjector||l.ngModuleRef,s=l.directives,a=l.bindings;let u=new Qn(Dt(e)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let T=this.parentInjector.get(De,null);T&&(i=T)}let p=Dt(u.componentType??{}),f=Vi(this._lContainer,p?.id??null),h=f?.firstChild??null,m=u.create(d,o,h,i,s,a);return this.insertImpl(m.hostView,c,Wn(this._hostTNode,f)),m}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let o=e._lView;if(Wd(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=o[J],l=new t(c,c[se],c[J]);l.detach(l.indexOf(e))}}let i=this._adjustIndex(n),s=this._lContainer;return qr(s,o,i,r),e.attachToViewContainerRef(),ba(uc(s),i,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=ep(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),r=Rr(this._lContainer,n);r&&(Ir(uc(this._lContainer),n),ns(r[E],r))}detach(e){let n=this._adjustIndex(e,-1),r=Rr(this._lContainer,n);return r&&Ir(uc(this._lContainer),n)!=null?new kt(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function ep(t){return t[_r]}function uc(t){return t[_r]||(t[_r]=[])}function Vh(t,e){let n,r=e[t.index];return we(r)?n=r:(n=Th(r,e,null,t),e[t.index]=n,hl(e,n)),h_(n,e,t,r),new Fc(n,t,e)}function p_(t,e){let n=t[V],r=n.createComment(""),o=Se(e,t),i=n.parentNode(o);return Fi(n,i,r,n.nextSibling(o),!1),r}var h_=y_,m_=()=>!1;function g_(t,e,n){return m_(t,e,n)}function y_(t,e,n,r){if(t[St])return;let o;n.type&8?o=be(r):o=p_(e,n),t[St]=o}var jc=class t{queryList;matches=null;constructor(e){this.queryList=e}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Vc=class t{queries;constructor(e=[]){this.queries=e}createEmbeddedView(e){let n=e.queries;if(n!==null){let r=e.contentQueries!==null?e.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new t(o)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let n=0;n<this.queries.length;n++)Sl(e,n).matches!==null&&this.queries[n].setDirty()}},zi=class{flags;read;predicate;constructor(e,n,r=null){this.flags=n,this.read=r,typeof e=="string"?this.predicate=__(e):this.predicate=e}},Hc=class t{queries;constructor(e=[]){this.queries=e}elementStart(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(e,n)}elementEnd(e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(e)}embeddedTView(e){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(e,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new t(n):null}template(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(e,n)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}},Bc=class t{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(e,n=-1){this.metadata=e,this._declarationNodeIndex=n}elementStart(e,n){this.isApplyingToNode(n)&&this.matchTNode(e,n)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,n){this.elementStart(e,n)}embeddedTView(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=e.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(e,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(e,n,v_(n,i)),this.matchTNodeWithReadOption(e,n,Ni(n,e,i,!1,!1))}else r===Or?n.type&4&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,Ni(n,e,r,!1,!1))}matchTNodeWithReadOption(e,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Hr||o===as||o===Or&&n.type&4)this.addMatch(n.index,-2);else{let i=Ni(n,e,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(e,n){this.matches===null?this.matches=[e,n]:this.matches.push(e,n)}};function v_(t,e){let n=t.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1]}return null}function E_(t,e){return t.type&11?Jn(t,e):t.type&4?ss(t,e):null}function I_(t,e,n,r){return n===-1?E_(e,t):n===-2?D_(t,e,r):xr(t,t[E],n,e)}function D_(t,e,n){if(n===Hr)return Jn(e,t);if(n===Or)return ss(e,t);if(n===as)return Vh(e,t)}function Hh(t,e,n,r){let o=e[Ye].queries[r];if(o.matches===null){let i=t.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let u=i[l];a.push(I_(e,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function $c(t,e,n,r){let o=t.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Hh(t,e,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let l=i[a+1],u=e[-c];for(let d=z;d<u.length;d++){let p=u[d];p[bt]===p[J]&&$c(p[E],p,l,r)}if(u[rn]!==null){let d=u[rn];for(let p=0;p<d.length;p++){let f=d[p];$c(f[E],f,l,r)}}}}}return r}function bl(t,e){return t[Ye].queries[e].queryList}function Bh(t,e,n){let r=new Li((n&4)===4);return Zd(t,e,r,r.destroy),(e[Ye]??=new Vc).queries.push(new jc(r))-1}function $h(t,e,n){let r=B();return r.firstCreatePass&&(qh(r,new zi(t,e,n),-1),(e&2)===2&&(r.staticViewQueries=!0)),Bh(r,_(),e)}function Uh(t,e,n,r){let o=B();if(o.firstCreatePass){let i=Q();qh(o,new zi(e,n,r),i.index),T_(o,t),(n&2)===2&&(o.staticContentQueries=!0)}return Bh(o,_(),n)}function __(t){return t.split(",").map(e=>e.trim())}function qh(t,e,n){t.queries===null&&(t.queries=new Hc),t.queries.track(new Bc(e,n))}function T_(t,e){let n=t.contentQueries||(t.contentQueries=[]),r=n.length?n[n.length-1]:-1;e!==r&&n.push(t.queries.length-1,e)}function Sl(t,e){return t.queries.getByIndex(e)}function zh(t,e){let n=t[E],r=Sl(n,e);return r.crossesNgTemplate?$c(n,t,e,[]):Hh(n,t,r,e)}function Gh(t,e,n){let r,o=sr(()=>{r._dirtyCounter();let i=w_(r,t);if(e&&i===void 0)throw new g(-951,!1);return i});return r=o[Z],r._dirtyCounter=ic(0),r._flatValue=void 0,o}function Cl(t){return Gh(!0,!1,t)}function Ml(t){return Gh(!0,!0,t)}function Wh(t,e){let n=t[Z];n._lView=_(),n._queryIndex=e,n._queryList=bl(n._lView,e),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function w_(t,e){let n=t._lView,r=t._queryIndex;if(n===void 0||r===void 0||n[b]&4)return e?void 0:ie;let o=bl(n,r),i=zh(n,r);return o.reset(i,Mp),e?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}function Nl(t){return!!t&&typeof t.then=="function"}function Qh(t){return!!t&&typeof t.subscribe=="function"}var Gi=class{};var Fr=class extends Gi{injector;instance=null;constructor(e){super();let n=new Zt([...e.providers,{provide:Gi,useValue:this}],e.parent||kn(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Kh(t,e,n=null){return new Fr({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}var b_=(()=>{class t{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Ma(!1,n.type),o=r.length>0?Kh([r],this._injector,""):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=pe({token:t,providedIn:"environment",factory:()=>new t(We(De))})}return t})();function S_(t){return Vr(()=>{let e=Zh(t),n=ee(G({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection!==tl.Eager,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:e.standalone?o=>o.get(b_).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||un.Emulated,styles:t.styles||ie,_:null,schemas:t.schemas||null,tView:null,id:""});e.standalone&&ut("NgStandalone"),Yh(n);let r=t.dependencies;return n.directiveDefs=tp(r,C_),n.pipeDefs=tp(r,Ad),n.id=R_(n),n})}function C_(t){return Dt(t)||ni(t)}function M_(t){return Vr(()=>({type:t.type,bootstrap:t.bootstrap||ie,declarations:t.declarations||ie,imports:t.imports||ie,exports:t.exports||ie,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function N_(t,e){if(t==null)return Tt;let n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=os.None,c=null),n[i]=[r,a,c],e[i]=s}return n}function x_(t){if(t==null)return Tt;let e={};for(let n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function A_(t){return Vr(()=>{let e=Zh(t);return Yh(e),e})}function k_(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 Zh(t){let e={};return{type:t.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputConfig:t.inputs||Tt,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||ie,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:N_(t.inputs,e),outputs:x_(t.outputs),debugInfo:null}}function Yh(t){t.features?.forEach(e=>e(t))}function tp(t,e){return t?()=>{let n=typeof t=="function"?t():t,r=[];for(let o of n){let i=e(o);i!==null&&r.push(i)}return r}:null}function R_(t){let e=0,n=typeof t.consts=="function"?"":t.consts,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,n,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];for(let i of r.join("|"))e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}var Jh=new P("");var xl=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=S(Jh,{optional:!0})??[];injector=S(Qe);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=ai(this.injector,o);if(Nl(i))n.push(i);else if(Qh(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Yn({token:t,factory:t.\u0275fac})}return t})();function O_(t){return e=>{e.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r)},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r)},passThroughInput:t}}}function P_(t){let e=n=>{let r=Array.isArray(t);n.hostDirectives===null?(n.resolveHostDirectives=L_,n.hostDirectives=r?t.map(Uc):[t]):r?n.hostDirectives.unshift(...t.map(Uc)):n.hostDirectives.unshift(t)};return e.ngInherit=!0,e}function L_(t){let e=[],n=!1,r=null,o=null;for(let i=0;i<t.length;i++){let s=t[i];if(s.hostDirectives!==null){let a=e.length;r??=new Map,o??=new Map,Xh(s,e,r,t),o.set(s,[a,e.length-1])}i===0&&Le(s)&&(n=!0,e.push(s))}for(let i=n?1:0;i<t.length;i++)e.push(t[i]);return r!==null&&r.forEach((i,s)=>{F_(s.declaredInputs,i.inputs)}),[e,r,o]}function Xh(t,e,n,r){if(t.hostDirectives!==null)for(let o of t.hostDirectives)if(typeof o=="function"){let i=o();for(let s of i)np(Uc(s),e,n,r)}else np(o,e,n,r)}function np(t,e,n,r){let o=ni(t.directive);if(Xh(o,e,n,r),n.has(o)){let i=n.get(o);rp(i,t.inputs,"input"),rp(i,t.outputs,"output")}else r.includes(o)||(n.set(o,t),e.push(o))}function rp(t,e,n){let r=n==="input"?t.inputs:t.outputs;Object.keys(e).forEach(o=>{let i=e[o];(!r.hasOwnProperty(o)||r[o]===i)&&(r[o]=i)})}function Uc(t){return typeof t=="function"?{directive:Y(t),inputs:{},outputs:{}}:{directive:Y(t.directive),inputs:op(t.inputs),outputs:op(t.outputs)}}function op(t){let e={};if(t!==void 0&&t.length>0)for(let n=0;n<t.length;n+=2)e[t[n]]=t[n+1];return e}function F_(t,e){for(let n in e)if(e.hasOwnProperty(n)){let r=e[n],o=t[n];t[r]=o}}function j_(t){return Object.getPrototypeOf(t.prototype).constructor}function em(t){let e=j_(t.type),n=!0,r=[t];for(;e;){let o;if(Le(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new g(903,!1);o=e.\u0275dir}if(o){if(n){r.push(o);let s=t;s.inputs=dc(t.inputs),s.declaredInputs=dc(t.declaredInputs),s.outputs=dc(t.outputs);let a=o.hostBindings;a&&U_(t,a);let c=o.viewQuery,l=o.contentQueries;if(c&&B_(t,c),l&&$_(t,l),V_(t,o),Nd(t.outputs,o.outputs),Le(o)&&o.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(t),a===em&&(n=!1)}}e=Object.getPrototypeOf(e)}H_(r)}function V_(t,e){for(let n in e.inputs){if(!e.inputs.hasOwnProperty(n)||t.inputs.hasOwnProperty(n))continue;let r=e.inputs[n];r!==void 0&&(t.inputs[n]=r,t.declaredInputs[n]=e.declaredInputs[n])}}function H_(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){let o=t[r];o.hostVars=e+=o.hostVars,o.hostAttrs=qn(o.hostAttrs,n=qn(n,o.hostAttrs))}}function dc(t){return t===Tt?{}:t===ie?[]:t}function B_(t,e){let n=t.viewQuery;n?t.viewQuery=(r,o)=>{e(r,o),n(r,o)}:t.viewQuery=e}function $_(t,e){let n=t.contentQueries;n?t.contentQueries=(r,o,i)=>{e(r,o,i),n(r,o,i)}:t.contentQueries=e}function U_(t,e){let n=t.hostBindings;n?t.hostBindings=(r,o)=>{e(r,o),n(r,o)}:t.hostBindings=e}function tm(t,e,n,r,o,i,s,a){if(n.firstCreatePass){t.mergedAttrs=qn(t.mergedAttrs,t.attrs);let u=t.tView=fl(2,t,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,t),u.queries=n.queries.embeddedTView(t))}a&&(t.flags|=a),Fn(t,!1);let c=z_(n,e,t,r);Ei()&&ul(n,e,c,t),zn(c,e);let l=Th(c,e,c,t);e[r+U]=l,hl(e,l),g_(l,t,e)}function q_(t,e,n,r,o,i,s,a,c,l,u){let d=n+U,p;return e.firstCreatePass?(p=Xn(e,d,4,s||null,a||null),pi()&&Ph(e,t,p,Ee(e.consts,l),ml),mp(e,p)):p=e.data[d],tm(p,t,e,n,r,o,i,c),Pn(p)&&is(e,t,p),l!=null&&$r(t,p,u),p}function Kn(t,e,n,r,o,i,s,a,c,l,u){let d=n+U,p;if(e.firstCreatePass){if(p=Xn(e,d,4,s||null,a||null),l!=null){let f=Ee(e.consts,l);p.localNames=[];for(let h=0;h<f.length;h+=2)p.localNames.push(f[h],-1)}}else p=e.data[d];return tm(p,t,e,n,r,o,i,c),l!=null&&$r(t,p,u),p}function nm(t,e,n,r,o,i,s,a){let c=_(),l=B(),u=Ee(l.consts,i);return q_(c,l,t,e,n,r,o,u,void 0,s,a),nm}function rm(t,e,n,r,o,i,s,a){let c=_(),l=B(),u=Ee(l.consts,i);return Kn(c,l,t,e,n,r,o,u,void 0,s,a),rm}var z_=G_;function G_(t,e,n,r){return br(!0),e[V].createComment("")}var om=new P("");var im=new P("");function sm(){Ls(()=>{let t="";throw new g(600,t)})}var W_=10;var Gr=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=S(xt);afterRenderManager=S(es);zonelessEnabled=S(Bn);rootEffectScheduler=S(_i);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ye;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=S(Nt);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(nt(n=>!n))}constructor(){S(pn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=S(De);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Qe.NULL){return this._injector.get(re).run(()=>{if(F(O.BootstrapComponentStart),!this._injector.get(xl).done){let T="";throw new g(405,T)}let a=Dt(n),c=this._injector.get(Gi),l=new Qn(a,c);this.componentTypes.push(n);let{hostElement:u,directives:d,bindings:p}=Q_(r),f=u||l.selector,h=l.create(o,[],f,c.injector,d,p),m=h.location.nativeElement,v=h.injector.get(om,null);return v?.registerApplication(m),h.onDestroy(()=>{this.detachView(h.hostView),Nr(this.components,h),v?.unregisterApplication(m)}),this._loadComponent(h),F(O.BootstrapComponentEnd,h),h})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){F(O.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Xi.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw F(O.ChangeDetectionEnd),new g(101,!1);let n=D(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,D(n),this.afterTick.next(),F(O.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Pr,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<W_;){F(O.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{F(O.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!Tr(o))continue;let i=r&&!this.zonelessEnabled?0:1;Eh(o,i),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Tr(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Nr(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get(im,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Nr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new g(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Yn({token:t,factory:t.\u0275fac})}return t})();function Q_(t){return t===void 0||typeof t=="string"||t instanceof Element?{hostElement:t}:t}function Nr(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function am(t,e,n,r){let o=_(),i=Ct();if(Ne(o,i,e)){let s=B(),a=Vn();eD(a,o,t,e,n,r)}return am}var qc=class{destroy(e){}updateValue(e,n){}swap(e,n){let r=Math.min(e,n),o=Math.max(e,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(e,n){this.attach(n,this.detach(e))}};function fc(t,e,n,r,o){return t===n&&Object.is(e,r)?1:Object.is(o(t,e),o(n,r))?-1:0}function K_(t,e,n,r){let o,i,s=0,a=t.length-1,c=void 0;if(Array.isArray(e)){D(r);let l=e.length-1;for(D(null);s<=a&&s<=l;){let u=t.at(s),d=e[s],p=fc(s,u,s,d,n);if(p!==0){p<0&&t.updateValue(s,d),s++;continue}let f=t.at(a),h=e[l],m=fc(a,f,l,h,n);if(m!==0){m<0&&t.updateValue(a,h),a--,l--;continue}let v=n(s,u),T=n(a,f),L=n(s,d);if(Object.is(L,T)){let K=n(l,h);Object.is(K,v)?(t.swap(s,a),t.updateValue(a,h),l--,a--):t.move(a,s),t.updateValue(s,d),s++;continue}if(o??=new Wi,i??=sp(t,s,a,n),zc(t,o,s,L))t.updateValue(s,d),s++,a++;else if(i.has(L))o.set(v,t.detach(s)),a--;else{let K=t.create(s,e[s]);t.attach(s,K),s++,a++}}for(;s<=l;)ip(t,o,n,s,e[s]),s++}else if(e!=null){D(r);let l=e[Symbol.iterator]();D(null);let u=l.next();for(;!u.done&&s<=a;){let d=t.at(s),p=u.value,f=fc(s,d,s,p,n);if(f!==0)f<0&&t.updateValue(s,p),s++,u=l.next();else{o??=new Wi,i??=sp(t,s,a,n);let h=n(s,p);if(zc(t,o,s,h))t.updateValue(s,p),s++,a++,u=l.next();else if(!i.has(h))t.attach(s,t.create(s,p)),s++,a++,u=l.next();else{let m=n(s,d);o.set(m,t.detach(s)),a--}}}for(;!u.done;)ip(t,o,n,t.length,u.value),u=l.next()}for(;s<=a;)t.destroy(t.detach(a--));o?.forEach(l=>{t.destroy(l)})}function zc(t,e,n,r){return e!==void 0&&e.has(r)?(t.attach(n,e.get(r)),e.delete(r),!0):!1}function ip(t,e,n,r,o){if(zc(t,e,r,n(r,o)))t.updateValue(r,o);else{let i=t.create(r,o);t.attach(r,i)}}function sp(t,e,n,r){let o=new Set;for(let i=e;i<=n;i++)o.add(r(i,t.at(i)));return o}var Wi=class{kvMap=new Map;_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 o=this._vMap;for(;o.has(r);)r=o.get(r);o.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 o=this._vMap;for(;o.has(r);)r=o.get(r),e(r,n)}}};function Z_(t,e,n,r,o,i,s,a){ut("NgControlFlow");let c=_(),l=B(),u=Ee(l.consts,i);return Kn(c,l,t,e,n,r,o,u,256,s,a),Al}function Al(t,e,n,r,o,i,s,a){ut("NgControlFlow");let c=_(),l=B(),u=Ee(l.consts,i);return Kn(c,l,t,e,n,r,o,u,512,s,a),Al}function Y_(t,e){ut("NgControlFlow");let n=_(),r=Ct(),o=n[r]!==te?n[r]:-1,i=o!==-1?Qi(n,U+o):void 0,s=0;if(Ne(n,r,t)){let a=D(null);try{if(i!==void 0&&bh(i,s),t!==-1){let c=U+t,l=Qi(n,c),u=Kc(n[E],c),d=Ch(l,u,n),p=Ur(n,u,e,{dehydratedView:d});qr(l,p,s,Wn(u,d))}}finally{D(a)}}else if(i!==void 0){let a=wh(i,s);a!==void 0&&(a[W]=e)}}var Gc=class{lContainer;$implicit;$index;constructor(e,n,r){this.lContainer=e,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-z}};function J_(t,e){return e}var Wc=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,n,r){this.hasEmptyBlock=e,this.trackByFn=n,this.liveCollection=r}};function X_(t,e,n,r,o,i,s,a,c,l,u,d,p){ut("NgControlFlow");let f=_(),h=B(),m=c!==void 0,v=_(),T=a?s.bind(v[ue][W]):s,L=new Wc(m,T);v[U+t]=L,Kn(f,h,t+1,e,n,r,o,Ee(h.consts,i),256),m&&Kn(f,h,t+2,c,l,u,d,Ee(h.consts,p),512)}var Qc=class extends qc{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,n,r){super(),this.lContainer=e,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-z}at(e){return this.getLView(e)[W].$implicit}attach(e,n){let r=n[en];this.needsIndexUpdate||=e!==this.length,qr(this.lContainer,n,e,Wn(this.templateTNode,r)),tT(this.lContainer,e)}detach(e){return this.needsIndexUpdate||=e!==this.length-1,nT(this.lContainer,e),rT(this.lContainer,e)}create(e,n){let r=Vi(this.lContainer,this.templateTNode.tView.ssrId);return Ur(this.hostLView,this.templateTNode,new Gc(this.lContainer,n,e),{dehydratedView:r})}destroy(e){ns(e[E],e)}updateValue(e,n){this.getLView(e)[W].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[W].$index=e}getLView(e){return oT(this.lContainer,e)}};function eT(t){let e=D(null),n=Me();try{let r=_(),o=r[E],i=r[n],s=n+1,a=Qi(r,s);if(i.liveCollection===void 0){let l=Kc(o,s);i.liveCollection=new Qc(a,r,l)}else i.liveCollection.reset();let c=i.liveCollection;if(K_(c,t,i.trackByFn,e),c.updateIndexes(),i.hasEmptyBlock){let l=Ct(),u=c.length===0;if(Ne(r,l,u)){let d=n+2,p=Qi(r,d);if(u){let f=Kc(o,d),h=Ch(p,f,r),m=Ur(r,f,void 0,{dehydratedView:h});qr(p,m,0,Wn(f,h))}else o.firstUpdatePass&&bD(p),bh(p,0)}}}finally{D(e)}}function Qi(t,e){return t[e]}function tT(t,e){if(t.length<=z)return;let n=z+e,r=t[n],o=r?r[Xe]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Ke];bI(i,o),Gn.delete(r[Je]),o.detachedLeaveAnimationFns=void 0}}function nT(t,e){if(t.length<=z)return;let n=z+e,r=t[n],o=r?r[Xe]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function rT(t,e){return Rr(t,e)}function oT(t,e){return wh(t,e)}function Kc(t,e){return li(t,e)}function cm(t,e,n){let r=_(),o=Ct();if(Ne(r,o,e)){let i=B(),s=Vn();fh(s,r,t,e,r[V],n)}return cm}function Zc(t,e,n,r,o){vl(e,t,n,o?"class":"style",r)}function Ki(t,e,n,r){let o=_(),i=o[E],s=t+U,a=i.firstCreatePass?Tl(s,o,2,e,ml,pi(),n,r):i.data[s];if(at(a)){let c=o[Ze].tracingService;if(c&&c.componentCreate){let l=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(xh(l),()=>(ap(t,e,o,a,r),Ki))}}return ap(t,e,o,a,r),Ki}function ap(t,e,n,r,o){if(gl(r,n,t,e,dm),Pn(r)){let i=n[E];is(i,n,r),nl(i,r,n)}o!=null&&$r(n,r)}function kl(){let t=B(),e=Q(),n=yl(e);return t.firstCreatePass&&wl(t,n),Ga(n)&&Wa(),qa(),n.classesWithoutHost!=null&&nE(n)&&Zc(t,n,_(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&rE(n)&&Zc(t,n,_(),n.stylesWithoutHost,!1),kl}function lm(t,e,n,r){return Ki(t,e,n,r),kl(),lm}function Rl(t,e,n,r){let o=_(),i=o[E],s=t+U,a=i.firstCreatePass?e_(s,i,2,e,n,r):i.data[s];return gl(a,o,t,e,dm),r!=null&&$r(o,a),Rl}function Ol(){let t=Q(),e=yl(t);return Ga(e)&&Wa(),qa(),Ol}function um(t,e,n,r){return Rl(t,e,n,r),Ol(),um}var dm=(t,e,n,r,o)=>(br(!0),Qp(e[V],r,ec()));function Pl(t,e,n){let r=_(),o=r[E],i=t+U,s=o.firstCreatePass?Tl(i,r,8,"ng-container",ml,pi(),e,n):o.data[i];if(gl(s,r,t,"ng-container",iT),Pn(s)){let a=r[E];is(a,r,s),nl(a,s,r)}return n!=null&&$r(r,s),Pl}function Ll(){let t=B(),e=Q(),n=yl(e);return t.firstCreatePass&&wl(t,n),Ll}function fm(t,e,n){return Pl(t,e,n),Ll(),fm}var iT=(t,e,n,r,o)=>(br(!0),nI(e[V],""));function sT(){return _()}function pm(t,e,n){let r=_(),o=Ct();if(Ne(r,o,e)){let i=B(),s=Vn();ph(s,r,t,e,r[V],n)}return pm}var Sr=void 0;function aT(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return e===1&&n===0?1:5}var cT=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Sr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Sr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",Sr,Sr,Sr],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",aT],pc=Object.create(null);function lT(t){let e=dT(t),n=cp(e);if(n)return n;let r=e.split("-")[0];if(n=cp(r),n)return n;if(r==="en")return cT;throw new g(701,!1)}function cp(t){if(!(t in pc)){let e=_t.ng&&_t.ng.common&&_t.ng.common.locales&&_t.ng.common.locales[t];return e!==void 0&&(pc[t]=e),e}return pc[t]}var uT={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};function dT(t){return t.toLowerCase().replace(/_/g,"-")}var Wr="en-US";var fT=Wr;function hm(t){typeof t=="string"&&(fT=t.toLowerCase().replace(/_/g,"-"))}function mm(t,e,n){let r=_(),o=B(),i=Q();return ym(o,r,r[V],i,t,e,n),mm}function gm(t,e,n){let r=_(),o=B(),i=Q();return(i.type&3||n)&&_l(i,o,r,n,r[V],t,e,cn(i,r,e)),gm}function ym(t,e,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=cn(r,e,i),_l(r,t,e,s,n,o,i,c)&&(a=!1)),a){let l=r.outputs?.[o],u=r.hostDirectiveOutputs?.[o];if(u&&u.length)for(let d=0;d<u.length;d+=2){let p=u[d],f=u[d+1];c??=cn(r,e,i),Bi(r,e,p,f,o,c)}if(l&&l.length)for(let d of l)c??=cn(r,e,i),Bi(r,e,d,o,o,c)}}function pT(t=1){return pf(t)}function hT(t,e){let n=null,r=dI(t);for(let o=0;o<e.length;o++){let i=e[o];if(i==="*"){n=o;continue}if(r===null?eh(t,i,!0):hI(r,i))return o}return n}function mT(t){let e=_()[ue][se];if(!e.projection){let n=t?t.length:1,r=e.projection=Fd(n,null),o=r.slice(),i=e.child;for(;i!==null;){if(i.type!==128){let s=t?hT(i,t):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i)}i=i.next}}}function gT(t,e=0,n,r,o,i){let s=_(),a=B(),c=r?t+1:null;c!==null&&Kn(s,a,c,r,o,i,null,n);let l=Xn(a,U+t,16,null,n||null);l.projection===null&&(l.projection=e),Za();let d=!s[en]||za();s[ue][se].projection[l.projection]===null&&c!==null?yT(s,a,c):d&&!Yi(l)&&VI(a,s,l)}function yT(t,e,n){let r=U+n,o=e.data[r],i=t[r],s=Vi(i,o.tView.ssrId),a=Ur(t,o,void 0,{dehydratedView:s});qr(i,a,0,Wn(o,s))}function vm(t,e,n,r){return Uh(t,e,n,r),vm}function Em(t,e,n){return $h(t,e,n),Em}function vT(t){let e=_(),n=B(),r=gi();wr(r+1);let o=Sl(n,r);if(t.dirty&&Gd(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let i=zh(e,r);t.reset(i,Mp),t.notifyOnChanges()}return!0}return!1}function ET(){return bl(_(),gi())}function Im(t,e,n,r,o){return Wh(e,Uh(t,n,r,o)),Im}function Dm(t,e,n,r){return Wh(t,$h(e,n,r)),Dm}function IT(t=1){wr(gi()+t)}function DT(t){let e=nf();return ja(e,U+t)}function Si(t,e){return t<<17|e<<2}function fn(t){return t>>17&32767}function _T(t){return(t&2)==2}function TT(t,e){return t&131071|e<<17}function Yc(t){return t|2}function Zn(t){return(t&131068)>>2}function hc(t,e){return t&-131069|e<<2}function wT(t){return(t&1)===1}function Jc(t){return t|1}function bT(t,e,n,r,o,i){let s=i?e.classBindings:e.styleBindings,a=fn(s),c=Zn(s);t[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||An(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let p=fn(t[a+1]);t[r+1]=Si(p,a),p!==0&&(t[p+1]=hc(t[p+1],r)),t[a+1]=TT(t[a+1],r)}else t[r+1]=Si(a,0),a!==0&&(t[a+1]=hc(t[a+1],r)),a=r;else t[r+1]=Si(c,0),a===0?a=r:t[c+1]=hc(t[c+1],r),c=r;l&&(t[r+1]=Yc(t[r+1])),lp(t,u,r,!0),lp(t,u,r,!1),ST(e,u,t,r,i),s=Si(a,c),i?e.classBindings=s:e.styleBindings=s}function ST(t,e,n,r,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&An(i,e)>=0&&(n[r+1]=Jc(n[r+1]))}function lp(t,e,n,r){let o=t[n+1],i=e===null,s=r?fn(o):Zn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=t[s],l=t[s+1];CT(c,e)&&(a=!0,t[s+1]=r?Jc(l):Yc(l)),s=r?fn(l):Zn(l)}a&&(t[n+1]=r?Yc(o):Jc(o))}function CT(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?An(t,e)>=0:!1}var je={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function MT(t){return t.substring(je.key,je.keyEnd)}function NT(t){return xT(t),_m(t,Tm(t,0,je.textEnd))}function _m(t,e){let n=je.textEnd;return n===e?-1:(e=je.keyEnd=AT(t,je.key=e,n),Tm(t,e,n))}function xT(t){je.key=0,je.keyEnd=0,je.value=0,je.valueEnd=0,je.textEnd=t.length}function Tm(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function AT(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}function wm(t,e,n){return Sm(t,e,n,!1),wm}function bm(t,e){return Sm(t,e,null,!0),bm}function kT(t){OT(HT,RT,t,!0)}function RT(t,e){for(let n=NT(e);n>=0;n=_m(e,n))ii(t,MT(e),!0)}function Sm(t,e,n,r){let o=_(),i=B(),s=jn(2);if(i.firstUpdatePass&&Mm(i,t,s,r),e!==te&&Ne(o,s,e)){let a=i.data[Me()];Nm(i,a,o,o[V],t,o[s+1]=$T(e,n),r,s)}}function OT(t,e,n,r){let o=B(),i=jn(2);o.firstUpdatePass&&Mm(o,null,i,r);let s=_();if(n!==te&&Ne(s,i,n)){let a=o.data[Me()];if(xm(a,r)&&!Cm(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Jo(c,n||"")),Zc(o,a,s,n,r)}else BT(o,a,s,s[V],s[i+1],s[i+1]=VT(t,e,n),r,i)}}function Cm(t,e){return e>=t.expandoStartIndex}function Mm(t,e,n,r){let o=t.data;if(o[n+1]===null){let i=o[Me()],s=Cm(t,n);xm(i,r)&&e===null&&!s&&(e=!1),e=PT(o,i,e,r),bT(o,i,e,n,s,r)}}function PT(t,e,n,r){let o=lf(t),i=r?e.residualClasses:e.residualStyles;if(o===null)(r?e.classBindings:e.styleBindings)===0&&(n=mc(null,t,e,n,r),n=jr(n,e.attrs,r),i=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(n=mc(o,t,e,n,r),i===null){let c=LT(t,e,r);c!==void 0&&Array.isArray(c)&&(c=mc(null,t,e,c[1],r),c=jr(c,e.attrs,r),FT(t,e,r,c))}else i=jT(t,e,r)}return i!==void 0&&(r?e.residualClasses=i:e.residualStyles=i),n}function LT(t,e,n){let r=n?e.classBindings:e.styleBindings;if(Zn(r)!==0)return t[fn(r)]}function FT(t,e,n,r){let o=n?e.classBindings:e.styleBindings;t[fn(o)]=r}function jT(t,e,n){let r,o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i<o;i++){let s=t[i].hostAttrs;r=jr(r,s,n)}return jr(r,e.attrs,n)}function mc(t,e,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=e[a],r=jr(r,i.hostAttrs,o),i!==t);)a++;return t!==null&&(n.directiveStylingLast=a),r}function jr(t,e,n){let r=n?1:2,o=-1;if(e!==null)for(let i=0;i<e.length;i++){let s=e[i];typeof s=="number"?o=s:o===r&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),ii(t,s,n?!0:e[++i]))}return t===void 0?null:t}function VT(t,e,n){if(n==null||n==="")return ie;let r=[],o=rl(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)t(r,o[i],!0);else if(o instanceof Set)for(let i of o)t(r,i,!0);else if(typeof o=="object")for(let i in o)Object.hasOwn(o,i)&&t(r,i,o[i]);else typeof o=="string"&&e(r,o);return r}function HT(t,e,n){let r=String(e);r!==""&&!r.includes(" ")&&ii(t,r,n)}function BT(t,e,n,r,o,i,s,a){o===te&&(o=ie);let c=0,l=0,u=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;u!==null||d!==null;){let p=c<o.length?o[c+1]:void 0,f=l<i.length?i[l+1]:void 0,h=null,m;u===d?(c+=2,l+=2,p!==f&&(h=d,m=f)):d===null||u!==null&&u<d?(c+=2,h=u):(l+=2,h=d,m=f),h!==null&&Nm(t,e,n,r,h,m,s,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null}}function Nm(t,e,n,r,o,i,s,a){if(!(e.type&3))return;let c=t.data,l=c[a+1],u=wT(l)?up(c,e,n,o,Zn(l),s):void 0;if(!Zi(u)){Zi(i)||_T(l)&&(i=up(c,null,n,o,a,s));let d=Fa(Me(),n);BI(r,s,d,o,i)}}function up(t,e,n,r,o,i){let s=e===null,a;for(;o>0;){let c=t[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,p=n[o+1];p===te&&(p=d?ie:void 0);let f=d?si(p,r):u===r?p:void 0;if(l&&!Zi(f)&&(f=si(c,r)),Zi(f)&&(a=f,s))return a;let h=t[o+1];o=s?fn(h):Zn(h)}if(e!==null){let c=i?e.residualClasses:e.residualStyles;c!=null&&(a=si(c,r))}return a}function Zi(t){return t!==void 0}function $T(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Yo(rl(t)))),t}function xm(t,e){return(t.flags&(e?8:16))!==0}function UT(t,e=""){let n=_(),r=B(),o=t+U,i=r.firstCreatePass?Xn(r,o,1,e,null):r.data[o],s=qT(r,n,i,e);n[o]=s,Ei()&&ul(r,n,s,i),Fn(i,!1)}var qT=(t,e,n,r)=>(br(!0),eI(e[V],r));function zT(t,e,n,r=""){return Ne(t,Ct(),n)?e+_e(n)+r:te}function GT(t,e,n,r,o,i=""){let s=hi(),a=Lr(t,s,n,o);return jn(2),a?e+_e(n)+r+_e(o)+i:te}function WT(t,e,n,r,o,i,s,a=""){let c=hi(),l=kD(t,c,n,o,s);return jn(3),l?e+_e(n)+r+_e(o)+i+_e(s)+a:te}function QT(t,e,n,r,o,i,s,a,c,l=""){let u=hi(),d=RD(t,u,n,o,s,c);return jn(4),d?e+_e(n)+r+_e(o)+i+_e(s)+a+_e(c)+l:te}function Am(t){return Fl("",t),Am}function Fl(t,e,n){let r=_(),o=zT(r,t,e,n);return o!==te&&cs(r,Me(),o),Fl}function km(t,e,n,r,o){let i=_(),s=GT(i,t,e,n,r,o);return s!==te&&cs(i,Me(),s),km}function Rm(t,e,n,r,o,i,s){let a=_(),c=WT(a,t,e,n,r,o,i,s);return c!==te&&cs(a,Me(),c),Rm}function Om(t,e,n,r,o,i,s,a,c){let l=_(),u=QT(l,t,e,n,r,o,i,s,a,c);return u!==te&&cs(l,Me(),u),Om}function cs(t,e,n){let r=Fa(e,t);tI(t[V],r,n)}function Pm(t,e,n){Ti(e)&&(e=e());let r=_(),o=Ct();if(Ne(r,o,e)){let i=B(),s=Vn();fh(s,r,t,e,r[V],n)}return Pm}function KT(t,e){let n=Ti(t);return n&&t.set(e),n}function Lm(t,e){let n=_(),r=B(),o=Q();return ym(r,n,n[V],o,t,e),Lm}function dp(t,e,n){let r=B();r.firstCreatePass&&Fm(e,r.data,r.blueprint,Le(t),n)}function Fm(t,e,n,r,o){if(t=Y(t),Array.isArray(t))for(let i=0;i<t.length;i++)Fm(t[i],e,n,r,o);else{let i=B(),s=_(),a=Q(),c=Kt(t)?t:Y(t.provide),l=Aa(t),u=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(Kt(t)||!t.multi){let f=new ln(l,o,zr,null),h=yc(c,e,o?u:u+p,d);h===-1?(Ic(Pi(a,s),i,c),gc(i,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=yc(c,e,u+p,d),h=yc(c,e,u,u+p),m=f>=0&&n[f],v=h>=0&&n[h];if(o&&!v||!o&&!m){Ic(Pi(a,s),i,c);let T=JT(o?YT:ZT,n.length,o,r,l,t);!o&&v&&(n[h].providerFactory=T),gc(i,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(T),s.push(T)}else{let T=jm(n[o?h:f],l,!o&&r);gc(i,t,f>-1?f:h,T)}!o&&r&&v&&n[h].componentProviders++}}}function gc(t,e,n,r){let o=Kt(e),i=$d(e);if(o||i){let c=(i?Y(e.useClass):e).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function jm(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function yc(t,e,n,r){for(let o=n;o<r;o++)if(e[o]===t)return o;return-1}function ZT(t,e,n,r,o){return Xc(this.multi,[])}function YT(t,e,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=xr(r,r[E],this.providerFactory.index,o);s=c.slice(0,a),Xc(i,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],Xc(i,s);return s}function Xc(t,e){for(let n=0;n<t.length;n++){let r=t[n];e.push(r())}return e}function JT(t,e,n,r,o,i){let s=new ln(t,n,zr,null);return s.multi=[],s.index=e,s.componentProviders=0,jm(s,o,r&&!n),s}function XT(t,e){return n=>{n.providersResolver=(r,o)=>dp(r,o?o(t):t,!1),e&&(n.viewProvidersResolver=(r,o)=>dp(r,o?o(e):e,!0))}}function ew(t,e){let n=t[e];return n===te?void 0:n}function tw(t,e,n,r,o,i,s){let a=e+n;return Lr(t,a,o,i)?AD(t,a+2,s?r.call(s,o,i):r(o,i)):ew(t,a+2)}function nw(t,e){let n=B(),r,o=t+U;n.firstCreatePass?(r=rw(e,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Et(r.type,!0)),s,a=le(zr);try{let c=Oi(!1),l=i();return Oi(c),Va(n,_(),o,l),l}finally{le(a)}}function rw(t,e){if(e)for(let n=e.length-1;n>=0;n--){let r=e[n];if(t===r.name)return r}}function ow(t,e,n,r){let o=t+U,i=_(),s=ja(i,o);return iw(i,o)?tw(i,rf(),e,s.transform,n,r,s):s.transform(n,r)}function iw(t,e){return t[E].data[e].pure}function sw(t,e){return ss(t,e)}var Vm=(()=>{class t{applicationErrorHandler=S(xt);appRef=S(Gr);taskService=S(Nt);ngZone=S(re);zonelessEnabled=S(Bn);tracing=S(pn,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new $;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(vr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(S(Di,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:case 2:{this.appRef.dirtyFlags|=2;break}case 3:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?Ef:nc;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(vr+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Yn({token:t,factory:t.\u0275fac})}return t})();function Hm(){return[{provide:Oe,useExisting:Vm},{provide:re,useClass:Er},{provide:Bn,useValue:!0}]}function aw(){return typeof $localize<"u"&&$localize.locale||Wr}var jl=new P("",{factory:()=>S(jl,{optional:!0,skipSelf:!0})||aw()});function cw(t,e){return sr(t,e?.equal)}function lw(t){return $u(t)}var Wm=Symbol("InputSignalNode#UNSET"),uw=ee(G({},ar),{transformFn:void 0,applyValueToInputSignal(t,e){In(t,e)}});function Qm(t,e){let n=Object.create(uw);n.value=t,n.transformFn=e?.transform;function r(){if(Vt(n),n.value===Wm){let o=null;throw new g(-950,o)}return n.value}return r[Z]=n,r}var Bm=class{attributeName;constructor(e){this.attributeName=e}__NG_ELEMENT_ID__=()=>Cp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},Qj=(()=>{let t=new P("");return t.__NG_ELEMENT_ID__=e=>{let n=Q();if(n===null)throw new g(-204,!1);if(n.type&2)return n.value;if(e&8)return null;throw new g(-204,!1)},t})();function $m(t,e){return Qm(t,e)}function dw(t){return Qm(Wm,t)}var Kj=($m.required=dw,$m);function Um(t,e){return Cl(e)}function fw(t,e){return Ml(e)}var Zj=(Um.required=fw,Um);function qm(t,e){return Cl(e)}function pw(t,e){return Ml(e)}var Yj=(qm.required=pw,qm);var hw=1e4;var Jj=hw-1e3;var Hl=class{supports(e){return Dl(e)}create(e){return new Bl(e)}},mw=(t,e)=>e,Bl=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(e){this._trackByFn=e||mw}forEachItem(e){let n;for(n=this._itHead;n!==null;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<zm(r,o,i)?n:r,a=zm(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let l=a-o,u=c-o;if(l!=u){for(let p=0;p<l;p++){let f=p<i.length?i[p]:i[p]=0,h=f+p;u<=h&&h<l&&(i[p]=f+1)}let d=s.previousIndex;i[d]=u-l}}a!==c&&e(s,a,c)}}forEachPreviousItem(e){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)e(n)}forEachMovedItem(e){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)e(n)}forEachIdentityChange(e){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)e(n)}diff(e){if(e==null&&(e=[]),!Dl(e))throw new g(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)i=e[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,Ah(e,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,o){let i;return e===null?i=this._itTail:(i=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,i,o)):(e=this._linkedRecords===null?null:this._linkedRecords.get(r,o),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,i,o)):e=this._addAfter(new $l(n,r),i,o)),e}_verifyReinsertion(e,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;e!==null;){let n=e._next;this._addToRemovals(this._unlink(e)),e=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let o=e._prevRemoved,i=e._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){let o=n===null?this._itHead:n._next;return e._next=o,e._prev=n,o===null?this._itTail=e:o._prev=e,n===null?this._itHead=e:n._next=e,this._linkedRecords===null&&(this._linkedRecords=new us),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let n=e._prev,r=e._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new us),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},$l=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(e,n){this.item=e,this.trackById=n}},Ul=class{_head=null;_tail=null;add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){let n=e._prevDup,r=e._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},us=class{map=new Map;put(e){let n=e.trackById,r=this.map.get(n);r||(r=new Ul,this.map.set(n,r)),r.add(e)}get(e,n){let r=e,o=this.map.get(r);return o?o.get(e,n):null}remove(e){let n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function zm(t,e,n){let r=t.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+e+o}function Gm(){return new gw([new Hl])}var gw=(()=>{class t{factories;static \u0275prov=pe({token:t,providedIn:"root",factory:Gm});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:()=>{let r=S(t,{optional:!0,skipSelf:!0});return t.create(n,r||Gm())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new g(901,!1)}}return t})();var Xj=(()=>{class t{static __NG_ELEMENT_ID__=yw}return t})();function yw(t){return vw(Q(),_(),(t&16)===16)}function vw(t,e,n){if(at(t)&&!n){let r=Ce(t.index,e);return new kt(r,r)}else if(t.type&175){let r=e[ue];return new kt(r,e)}return null}var Ew=(()=>{class t{zone=S(re);changeDetectionScheduler=S(Oe);applicationRef=S(Gr);applicationErrorHandler=S(xt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(n){this.applicationErrorHandler(n)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Yn({token:t,factory:t.\u0275fac})}return t})(),Iw=new P("",{factory:()=>!1});function Dw({ngZoneFactory:t,scheduleInRootZone:e}){return t??=()=>new re(ee(G({},Km()),{scheduleInRootZone:e})),[{provide:Bn,useValue:!1},{provide:re,useFactory:t},{provide:Xt,multi:!0,useFactory:()=>{let n=S(Ew,{optional:!0});return()=>n.initialize()}},{provide:Xt,multi:!0,useFactory:()=>{let n=S(_w);return()=>{n.initialize()}}},{provide:Di,useValue:e??tc}]}function eV(t){let e=t?.scheduleInRootZone,n=Dw({ngZoneFactory:()=>{let r=Km(t);return r.scheduleInRootZone=e,r.shouldCoalesceEventChangeDetection&&ut("NgZone_CoalesceEvent"),new re(r)},scheduleInRootZone:e});return Ca([{provide:Iw,useValue:!0},n])}function Km(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var _w=(()=>{class t{subscription=new $;initialized=!1;zone=S(re);pendingTasks=S(Nt);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{re.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{re.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Yn({token:t,factory:t.\u0275fac})}return t})();var ql=new P(""),Tw=new P("");function Qr(t){return!t.moduleRef}function ww(t){let e=Qr(t)?t.r3Injector:t.moduleRef.injector,n=e.get(re);return n.run(()=>{Qr(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=e.get(xt),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Qr(t)){let i=()=>e.destroy(),s=t.platformInjector.get(ql);s.add(i),e.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>t.moduleRef.destroy(),s=t.platformInjector.get(ql);s.add(i),t.moduleRef.onDestroy(()=>{Nr(t.allPlatformModules,t.moduleRef),o.unsubscribe(),s.delete(i)})}return Sw(r,n,()=>{let i=e.get(Nt),s=i.add(),a=e.get(xl);return a.runInitializers(),a.donePromise.then(()=>{let c=e.get(jl,Wr);if(hm(c||Wr),!e.get(Tw,!0))return Qr(t)?e.get(Gr):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Qr(t)){let u=e.get(Gr);return t.rootComponent!==void 0&&u.bootstrap(t.rootComponent),u}else return bw?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{i.remove(s)})})})}var bw;function Sw(t,e,n){try{let r=n();return Nl(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t(r)),r}}var ls=null;function Cw(t=[],e){return Qe.create({name:e,providers:[{provide:xa,useValue:"platform"},{provide:ql,useValue:new Set([()=>ls=null])},...t]})}function Mw(t=[]){if(ls)return ls;let e=Cw(t);return ls=e,sm(),Nw(e),e}function Nw(t){let e=t.get(wf,null);ai(t,()=>{e?.forEach(n=>n())})}function tV(t){let{rootComponent:e,appProviders:n,platformProviders:r,platformRef:o}=t;F(O.BootstrapApplicationStart);try{let i=o?.injector??Mw(r),s=[Hm(),Df,...n||[]],a=new Fr({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return ww({r3Injector:a.injector,platformInjector:i,rootComponent:e})}catch(i){return Promise.reject(i)}finally{F(O.BootstrapApplicationEnd)}}function nV(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function rV(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}var Vl=Symbol("NOT_SET"),Zm=new Set,xw=ee(G({},ar),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:Vl,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=!0}this.sequence.scheduler.notify(7)},phaseFn(t){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=!1,this.value!==Vl&&!vn(this))return this.signal;try{for(let o of this.cleanup??Zm)o()}finally{this.cleanup?.clear()}let e=[];t!==void 0&&e.push(t),e.push(this.registerCleanupFn);let n=ht(this),r;try{r=this.userFn.apply(null,e)}finally{Ht(this,n)}return(this.value===Vl||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),zl=class extends Ar{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];onDestroyFns=null;constructor(e,n,r,o,i,s=null){super(e,[void 0,void 0,void 0,void 0],r,!1,i.get(an),s),this.scheduler=o;for(let a of sl){let c=n[a];if(c===void 0)continue;let l=Object.create(xw);l.sequence=this,l.phase=a,l.userFn=c,l.dirty=!0,l.signal=()=>(Vt(l),l.value),l.signal[Z]=l,l.registerCleanupFn=u=>(l.cleanup??=new Set).add(u),this.nodes[a]=l,this.hooks[a]=u=>l.phaseFn(u)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();super.destroy();for(let e of this.nodes)if(e)try{for(let n of e.cleanup??Zm)n()}finally{mt(e)}}};function oV(t,e){let n=e?.injector??S(Qe),r=n.get(Oe),o=n.get(es),i=n.get(pn,null,{optional:!0});o.impl??=n.get(al);let s=t;typeof s=="function"&&(s={mixedReadWrite:t});let a=n.get(Hn,null,{optional:!0}),c=new zl(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function iV(t,e){let n=Dt(t),r=e.elementInjector||kn();return new Qn(n).create(r,e.projectableNodes,e.hostElement,e.environmentInjector,e.directives,e.bindings)}var A=(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})(A||{}),Ve="*";function Ym(t,e=null){return{type:A.Sequence,steps:t,options:e}}function Gl(t){return{type:A.Style,styles:t,offset:null}}var dt=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(e=0,n=0){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}},er=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let n=0,r=0,o=0,i=this.players.length;i==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==i&&this._onFinish()}),s.onDestroy(()=>{++r==i&&this._onDestroy()}),s.onStart(()=>{++o==i&&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 o=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(o)})}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}},Kr="!";function Jm(t){return new g(3e3,!1)}function kw(){return new g(3100,!1)}function Rw(){return new g(3101,!1)}function Ow(t){return new g(3001,!1)}function Pw(t){return new g(3003,!1)}function Lw(t){return new g(3004,!1)}function eg(t,e){return new g(3005,!1)}function tg(){return new g(3006,!1)}function ng(){return new g(3007,!1)}function rg(t,e){return new g(3008,!1)}function og(t){return new g(3002,!1)}function ig(t,e,n,r,o){return new g(3010,!1)}function sg(){return new g(3011,!1)}function ag(){return new g(3012,!1)}function cg(){return new g(3200,!1)}function lg(){return new g(3202,!1)}function ug(){return new g(3013,!1)}function dg(t){return new g(3014,!1)}function fg(t){return new g(3015,!1)}function pg(t){return new g(3016,!1)}function hg(t){return new g(3500,!1)}function mg(t){return new g(3501,!1)}function gg(t,e){return new g(3404,!1)}function Fw(t){return new g(3502,!1)}function yg(t){return new g(3503,!1)}function vg(){return new g(3300,!1)}function Eg(t){return new g(3504,!1)}function Ig(t){return new g(3301,!1)}function Dg(t,e){return new g(3302,!1)}function _g(t){return new g(3303,!1)}function Tg(t,e){return new g(3400,!1)}function wg(t){return new g(3401,!1)}function bg(t){return new g(3402,!1)}function Sg(t,e){return new g(3505,!1)}var jw=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function ft(t){switch(t.length){case 0:return new dt;case 1:return t[0];default:return new er(t)}}function Zl(t,e,n=new Map,r=new Map){let o=[],i=[],s=-1,a=null;if(e.forEach(c=>{let l=c.get("offset"),u=l==s,d=u&&a||new Map;c.forEach((p,f)=>{let h=f,m=p;if(f!=="offset")switch(h=t.normalizePropertyName(h,o),m){case Kr:m=n.get(f);break;case Ve:m=r.get(f);break;default:m=t.normalizeStyleValue(f,h,m,o);break}d.set(h,m)}),u||i.push(d),a=d,s=l}),o.length)throw Fw(o);return i}function ds(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&Wl(n,"start",t)));break;case"done":t.onDone(()=>r(n&&Wl(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&Wl(n,"destroy",t)));break}}function Wl(t,e,n){let r=n.totalTime,o=!!n.disabled,i=fs(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,r??t.totalTime,o),s=t._data;return s!=null&&(i._data=s),i}function fs(t,e,n,r,o="",i=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:o,totalTime:i,disabled:!!s}}function he(t,e,n){let r=t.get(e);return r||t.set(e,r=n),r}function Yl(t){let e=t.indexOf(":"),n=t.substring(1,e),r=t.slice(e+1);return[n,r]}var Vw=typeof document>"u"?null:document.documentElement;function ps(t){let e=t.parentNode||t.host||null;return e===Vw?null:e}function Hw(t){return t.substring(1,6)=="ebkit"}var hn=null,Xm=!1;function Cg(t){hn||(hn=$w()||{},Xm=hn.style?"WebkitAppearance"in hn.style:!1);let e=!0;return hn.style&&!Hw(t)&&(e=t in hn.style,!e&&Xm&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in hn.style)),e}function Bw(t){return jw.has(t)}function $w(){return typeof document<"u"?document.body:null}function Jl(t,e){for(;e;){if(e===t)return!0;e=ps(e)}return!1}function Xl(t,e,n){if(n)return Array.from(t.querySelectorAll(e));let r=t.querySelector(e);return r?[r]:[]}var Uw=1e3,eu="{{",qw="}}",hs="ng-enter",Zr="ng-leave",Yr="ng-trigger",Jr=".ng-trigger",tu="ng-animating",ms=".ng-animating";function tt(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){return e==="s"?t*Uw:t}function Xr(t,e,n){return t.hasOwnProperty("duration")?t:Gw(t,e,n)}var zw=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Gw(t,e,n){let r,o=0,i="";if(typeof t=="string"){let s=t.match(zw);if(s===null)return e.push(Jm(t)),{duration:0,delay:0,easing:""};r=Ql(parseFloat(s[1]),s[2]);let a=s[3];a!=null&&(o=Ql(parseFloat(a),s[4]));let c=s[5];c&&(i=c)}else r=t;if(!n){let s=!1,a=e.length;r<0&&(e.push(kw()),s=!0),o<0&&(e.push(Rw()),s=!0),s&&e.splice(a,0,Jm(t))}return{duration:r,delay:o,easing:i}}function Mg(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function nu(t){return Array.isArray(t)?new Map(...t):new Map(t)}function He(t,e,n){e.forEach((r,o)=>{let i=gs(o);n&&!n.has(o)&&n.set(o,t.style[i]),t.style[i]=r})}function Rt(t,e){e.forEach((n,r)=>{let o=gs(r);t.style[o]=""})}function tr(t){return Array.isArray(t)?t.length==1?t[0]:Ym(t):t}function Ng(t,e,n){let r=e.params||{},o=ru(t);o.length&&o.forEach(i=>{r.hasOwnProperty(i)||n.push(Ow(i))})}var Kl=new RegExp(`${eu}\\s*(.+?)\\s*${qw}`,"g");function ru(t){let e=[];if(typeof t=="string"){let n;for(;n=Kl.exec(t);)e.push(n[1]);Kl.lastIndex=0}return e}function nr(t,e,n){let r=`${t}`,o=r.replace(Kl,(i,s)=>{let a=e[s];return a==null&&(n.push(Pw(s)),a=""),a.toString()});return o==r?t:o}var Ww=/-+([a-z0-9])/g;function gs(t){return t.replace(Ww,(...e)=>e[1].toUpperCase())}function Qw(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function xg(t,e){return t===0||e===0}function Ag(t,e,n){if(n.size&&e.length){let r=e[0],o=[];if(n.forEach((i,s)=>{r.has(s)||o.push(s),r.set(s,i)}),o.length)for(let i=1;i<e.length;i++){let s=e[i];o.forEach(a=>s.set(a,ys(t,a)))}}return e}function me(t,e,n){switch(e.type){case A.Trigger:return t.visitTrigger(e,n);case A.State:return t.visitState(e,n);case A.Transition:return t.visitTransition(e,n);case A.Sequence:return t.visitSequence(e,n);case A.Group:return t.visitGroup(e,n);case A.Animate:return t.visitAnimate(e,n);case A.Keyframes:return t.visitKeyframes(e,n);case A.Style:return t.visitStyle(e,n);case A.Reference:return t.visitReference(e,n);case A.AnimateChild:return t.visitAnimateChild(e,n);case A.AnimateRef:return t.visitAnimateRef(e,n);case A.Query:return t.visitQuery(e,n);case A.Stagger:return t.visitStagger(e,n);default:throw Lw(e.type)}}function ys(t,e){return window.getComputedStyle(t)[e]}var zg=(()=>{class t{validateStyleProperty(n){return Cg(n)}containsElement(n,r){return Jl(n,r)}getParentElement(n){return ps(n)}query(n,r,o){return Xl(n,r,o)}computeStyle(n,r,o){return o||""}animate(n,r,o,i,s,a=[],c){return new dt(o,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})(),kg=class{static NOOP=new zg},lu=class{},uu=class{normalizePropertyName(e,n){return e}normalizeStyleValue(e,n,r,o){return r}},Kw=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"]),du=class extends lu{normalizePropertyName(e,n){return gs(e)}normalizeStyleValue(e,n,r,o){let i="",s=r.toString().trim();if(Kw.has(n)&&r!==0&&r!=="0")if(typeof r=="number")i="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&o.push(eg(e,r))}return s+i}};var _s="*";function Zw(t,e){let n=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(r=>Yw(r,n,e)):n.push(t),n}function Yw(t,e,n){if(t[0]==":"){let c=Jw(t,n);if(typeof c=="function"){e.push(c);return}t=c}let r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return n.push(fg(t)),e;let o=r[1],i=r[2],s=r[3];e.push(Rg(o,s));let a=o==_s&&s==_s;i[0]=="<"&&!a&&e.push(Rg(s,o))}function Jw(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r)<parseFloat(n);default:return e.push(pg(t)),"* => *"}}var vs=new Set(["true","1"]),Es=new Set(["false","0"]);function Rg(t,e){let n=vs.has(t)||Es.has(t),r=vs.has(e)||Es.has(e);return(o,i)=>{let s=t==_s||t==o,a=e==_s||e==i;return!s&&n&&typeof o=="boolean"&&(s=o?vs.has(t):Es.has(t)),!a&&r&&typeof i=="boolean"&&(a=i?vs.has(e):Es.has(e)),s&&a}}var Gg=":self",Xw=new RegExp(`s*${Gg}s*,?`,"g");function wu(t,e,n,r){return new fu(t).build(e,n,r)}var Og="",fu=class{_driver;constructor(e){this._driver=e}build(e,n,r){let o=new pu(n);return this._resetContextStyleTimingState(o),me(this,tr(e),o)}_resetContextStyleTimingState(e){e.currentQuerySelector=Og,e.collectedStyles=new Map,e.collectedStyles.set(Og,new Map),e.currentTime=0}visitTrigger(e,n){let r=n.queryCount=0,o=n.depCount=0,i=[],s=[];return e.name.charAt(0)=="@"&&n.errors.push(tg()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==A.State){let c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,i.push(this.visitState(c,n))}),c.name=l}else if(a.type==A.Transition){let c=this.visitTransition(a,n);r+=c.queryCount,o+=c.depCount,s.push(c)}else n.errors.push(ng())}),{type:A.Trigger,name:e.name,states:i,transitions:s,queryCount:r,depCount:o,options:null}}visitState(e,n){let r=this.visitStyle(e.styles,n),o=e.options&&e.options.params||null;if(r.containsDynamicStyles){let i=new Set,s=o||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{ru(c).forEach(l=>{s.hasOwnProperty(l)||i.add(l)})})}),i.size&&n.errors.push(rg(e.name,[...i.values()]))}return{type:A.State,name:e.name,style:r,options:o?{params:o}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;let r=me(this,tr(e.animation),n),o=Zw(e.expr,n.errors);return{type:A.Transition,matchers:o,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:mn(e.options)}}visitSequence(e,n){return{type:A.Sequence,steps:e.steps.map(r=>me(this,r,n)),options:mn(e.options)}}visitGroup(e,n){let r=n.currentTime,o=0,i=e.steps.map(s=>{n.currentTime=r;let a=me(this,s,n);return o=Math.max(o,n.currentTime),a});return n.currentTime=o,{type:A.Group,steps:i,options:mn(e.options)}}visitAnimate(e,n){let r=rb(e.timings,n.errors);n.currentAnimateTimings=r;let o,i=e.styles?e.styles:Gl({});if(i.type==A.Keyframes)o=this.visitKeyframes(i,n);else{let s=e.styles,a=!1;if(!s){a=!0;let l={};r.easing&&(l.easing=r.easing),s=Gl(l)}n.currentTime+=r.duration+r.delay;let c=this.visitStyle(s,n);c.isEmptyStep=a,o=c}return n.currentAnimateTimings=null,{type:A.Animate,timings:r,style:o,options:null}}visitStyle(e,n){let r=this._makeStyleAst(e,n);return this._validateStyleAst(r,n),r}_makeStyleAst(e,n){let r=[],o=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of o)typeof a=="string"?a===Ve?r.push(a):n.errors.push(og(a)):r.push(new Map(Object.entries(a)));let i=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!i)){for(let c of a.values())if(c.toString().indexOf(eu)>=0){i=!0;break}}}),{type:A.Style,styles:r,easing:s,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,n){let r=n.currentAnimateTimings,o=n.currentTime,i=n.currentTime;r&&i>0&&(i-=r.duration+r.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,c)=>{let l=n.collectedStyles.get(n.currentQuerySelector),u=l.get(c),d=!0;u&&(i!=o&&i>=u.startTime&&o<=u.endTime&&(n.errors.push(ig(c,u.startTime,u.endTime,i,o)),d=!1),i=u.startTime),d&&l.set(c,{startTime:i,endTime:o}),n.options&&Ng(a,n.options,n.errors)})})}visitKeyframes(e,n){let r={type:A.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(sg()),r;let o=1,i=0,s=[],a=!1,c=!1,l=0,u=e.steps.map(T=>{let L=this._makeStyleAst(T,n),K=L.offset!=null?L.offset:nb(L.styles),ne=0;return K!=null&&(i++,ne=L.offset=K),c=c||ne<0||ne>1,a=a||ne<l,l=ne,s.push(ne),L});c&&n.errors.push(ag()),a&&n.errors.push(cg());let d=e.steps.length,p=0;i>0&&i<d?n.errors.push(lg()):i==0&&(p=o/(d-1));let f=d-1,h=n.currentTime,m=n.currentAnimateTimings,v=m.duration;return u.forEach((T,L)=>{let K=p>0?L==f?1:p*L:s[L],ne=K*v;n.currentTime=h+m.delay+ne,m.duration=ne,this._validateStyleAst(T,n),T.offset=K,r.styles.push(T)}),r}visitReference(e,n){return{type:A.Reference,animation:me(this,tr(e.animation),n),options:mn(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:A.AnimateChild,options:mn(e.options)}}visitAnimateRef(e,n){return{type:A.AnimateRef,animation:this.visitReference(e.animation,n),options:mn(e.options)}}visitQuery(e,n){let r=n.currentQuerySelector,o=e.options||{};n.queryCount++,n.currentQuery=e;let[i,s]=eb(e.selector);n.currentQuerySelector=r.length?r+" "+i:i,he(n.collectedStyles,n.currentQuerySelector,new Map);let a=me(this,tr(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:A.Query,selector:i,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:mn(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(ug());let r=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Xr(e.timings,n.errors,!0);return{type:A.Stagger,animation:me(this,tr(e.animation),n),timings:r,options:null}}};function eb(t){let e=!!t.split(/\s*,\s*/).find(n=>n==Gg);return e&&(t=t.replace(Xw,"")),t=t.replace(/@\*/g,Jr).replace(/@\w+/g,n=>Jr+"-"+n.slice(1)).replace(/:animating/g,ms),[t,e]}function tb(t){return t?G({},t):null}var pu=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function nb(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 rb(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let i=Xr(t,e).duration;return ou(i,0,"")}let n=t;if(n.split(/\s+/).some(i=>i.charAt(0)=="{"&&i.charAt(1)=="{")){let i=ou(0,0,"");return i.dynamic=!0,i.strValue=n,i}let o=Xr(n,e);return ou(o.duration,o.delay,o.easing)}function mn(t){return t?(t=G({},t),t.params&&(t.params=tb(t.params))):t={},t}function ou(t,e,n){return{duration:t,delay:e,easing:n}}function bu(t,e,n,r,o,i,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:o,delay:i,totalTime:o+i,easing:s,subTimeline:a}}var or=class{_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()}},ob=1,ib=":enter",sb=new RegExp(ib,"g"),ab=":leave",cb=new RegExp(ab,"g");function Su(t,e,n,r,o,i=new Map,s=new Map,a,c,l=[]){return new hu().buildKeyframes(t,e,n,r,o,i,s,a,c,l)}var hu=class{buildKeyframes(e,n,r,o,i,s,a,c,l,u=[]){l=l||new or;let d=new mu(e,n,l,o,i,u,[]);d.options=c;let p=c.delay?tt(c.delay):0;d.currentTimeline.delayNextStep(p),d.currentTimeline.setStyles([s],null,d.errors,c),me(this,r,d);let f=d.timelines.filter(h=>h.containsAnimation());if(f.length&&a.size){let h;for(let m=f.length-1;m>=0;m--){let v=f[m];if(v.element===n){h=v;break}}h&&!h.allowOnlyTimelineStyles()&&h.setStyles([a],null,d.errors,c)}return f.length?f.map(h=>h.buildKeyframes()):[bu(n,[],[],[],0,p,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){let r=n.subInstructions.get(n.element);if(r){let o=n.createSubContext(e.options),i=n.currentTimeline.currentTime,s=this._visitSubInstructions(r,o,o.options);i!=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 o of e){let i=o?.delay;if(i){let s=typeof i=="number"?i:tt(nr(i,o?.params??{},n.errors));r.delayNextStep(s)}}}_visitSubInstructions(e,n,r){let i=n.currentTimeline.currentTime,s=r.duration!=null?tt(r.duration):null,a=r.delay!=null?tt(r.delay):null;return s!==0&&e.forEach(c=>{let l=n.appendInstructionToTimeline(c,s,a);i=Math.max(i,l.duration+l.delay)}),i}visitReference(e,n){n.updateOptions(e.options,!0),me(this,e.animation,n),n.previousNode=e}visitSequence(e,n){let r=n.subContextCount,o=n,i=e.options;if(i&&(i.params||i.delay)&&(o=n.createSubContext(i),o.transformIntoNewTimeline(),i.delay!=null)){o.previousNode.type==A.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Ts);let s=tt(i.delay);o.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>me(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){let r=[],o=n.currentTimeline.currentTime,i=e.options&&e.options.delay?tt(e.options.delay):0;e.steps.forEach(s=>{let a=n.createSubContext(e.options);i&&a.delayNextStep(i),me(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>n.currentTimeline.mergeTimelineCollectedStyles(s)),n.transformIntoNewTimeline(o),n.previousNode=e}_visitTiming(e,n){if(e.dynamic){let r=e.strValue,o=n.params?nr(r,n.params,n.errors):r;return Xr(o,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),o=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),o.snapshotCurrentStyles());let i=e.style;i.type==A.Keyframes?this.visitKeyframes(i,n):(n.incrementTime(r.duration),this.visitStyle(i,n),o.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){let r=n.currentTimeline,o=n.currentAnimateTimings;!o&&r.hasCurrentStyleProperties()&&r.forwardFrame();let i=o&&o.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(i):r.setStyles(e.styles,i,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){let r=n.currentAnimateTimings,o=n.currentTimeline.duration,i=r.duration,a=n.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(c=>{let l=c.offset||0;a.forwardTime(l*i),a.setStyles(c.styles,c.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(o+i),n.previousNode=e}visitQuery(e,n){let r=n.currentTimeline.currentTime,o=e.options||{},i=o.delay?tt(o.delay):0;i&&(n.previousNode.type===A.Style||r==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Ts);let s=r,a=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,n.errors);n.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{n.currentQueryIndex=u;let d=n.createSubContext(e.options,l);i&&d.delayNextStep(i),l===n.element&&(c=d.currentTimeline),me(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let p=d.currentTimeline.currentTime;s=Math.max(s,p)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),c&&(n.currentTimeline.mergeTimelineCollectedStyles(c),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){let r=n.parentContext,o=n.currentTimeline,i=e.timings,s=Math.abs(i.duration),a=s*(n.currentQueryTotal-1),c=s*n.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":c=a-c;break;case"full":c=r.currentStaggerTime;break}let u=n.currentTimeline;c&&u.delayNextStep(c);let d=u.currentTime;me(this,e.animation,n),n.previousNode=e,r.currentStaggerTime=o.currentTime-d+(o.startTime-r.currentTimeline.startTime)}},Ts={},mu=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ts;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,n,r,o,i,s,a,c){this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=o,this._leaveClassName=i,this.errors=s,this.timelines=a,this.currentTimeline=c||new ws(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;let r=e,o=this.options;r.duration!=null&&(o.duration=tt(r.duration)),r.delay!=null&&(o.delay=tt(r.delay));let i=r.params;if(i){let s=o.params;s||(s=this.options.params={}),Object.keys(i).forEach(a=>{(!n||!s.hasOwnProperty(a))&&(s[a]=nr(i[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(o=>{r[o]=n[o]})}}return e}createSubContext(e=null,n,r){let o=n||this.element,i=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=Ts,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,r){let o={duration:n??e.duration,delay:this.currentTimeline.currentTime+(r??0)+e.delay,easing:""},i=new gu(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,o,e.stretchStartingKeyframe);return this.timelines.push(i),o}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,r,o,i,s){let a=[];if(o&&a.push(this.element),e.length>0){e=e.replace(sb,"."+this._enterClassName),e=e.replace(cb,"."+this._leaveClassName);let c=r!=1,l=this._driver.query(this.element,e,c);r!==0&&(l=r<0?l.slice(l.length+r,l.length):l.slice(0,r)),a.push(...l)}return!i&&a.length==0&&s.push(dg(n)),a}},ws=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,n,r,o){this._driver=e,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=o,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+=ob,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||Ve),this._currentKeyframe.set(n,Ve);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,o){n&&this._previousKeyframe.set("easing",n);let i=o&&o.params||{},s=lb(e,this._globalTimelineStyles);for(let[a,c]of s){let l=nr(c,i,r);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Ve),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 o=this._styleSummary.get(r);(!o||n.time>o.time)&&this._updateStyle(r,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,n=new Set,r=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((a,c)=>{let l=new Map([...this._backFill,...a]);l.forEach((u,d)=>{u===Kr?e.add(d):u===Ve&&n.add(d)}),r||l.set("offset",c/this.duration),o.push(l)});let i=[...e.values()],s=[...n.values()];if(r){let a=o[0],c=new Map(a);a.set("offset",0),c.set("offset",1),o=[a,c]}return bu(this.element,o,i,s,this.duration,this.startTime,this.easing,!1)}},gu=class extends ws{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,n,r,o,i,s,a=!1){super(e,n,s.delay),this.keyframes=r,this.preStyleProps=o,this.postStyleProps=i,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:o}=this.timings;if(this._stretchStartingKeyframe&&n){let i=[],s=r+n,a=n/s,c=new Map(e[0]);c.set("offset",0),i.push(c);let l=new Map(e[0]);l.set("offset",Pg(a)),i.push(l);let u=e.length-1;for(let d=1;d<=u;d++){let p=new Map(e[d]),f=p.get("offset"),h=n+f*r;p.set("offset",Pg(h/s)),i.push(p)}r=s,n=0,o="",e=i}return bu(this.element,e,this.preStyleProps,this.postStyleProps,r,n,o,!0)}};function Pg(t,e=3){let n=Math.pow(10,e-1);return Math.round(t*n)/n}function lb(t,e){let n=new Map,r;return t.forEach(o=>{if(o==="*"){r??=e.keys();for(let i of r)n.set(i,Ve)}else for(let[i,s]of o)n.set(i,s)}),n}function Lg(t,e,n,r,o,i,s,a,c,l,u,d,p){return{type:0,element:t,triggerName:e,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:p}}var iu={},bs=class{_triggerName;ast;_stateStyles;constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,o){return ub(this.ast.matchers,e,n,r,o)}buildStyles(e,n,r){let o=this._stateStyles.get("*");return e!==void 0&&(o=this._stateStyles.get(e?.toString())||o),o?o.buildStyles(n,r):new Map}build(e,n,r,o,i,s,a,c,l,u){let d=[],p=this.ast.options&&this.ast.options.params||iu,f=a&&a.params||iu,h=this.buildStyles(r,f,d),m=c&&c.params||iu,v=this.buildStyles(o,m,d),T=new Set,L=new Map,K=new Map,ne=o==="void",gn={params:Wg(m,p),delay:this.ast.options?.delay},$e=u?[]:Su(e,n,this.ast.animation,i,s,h,v,gn,l,d),ae=0;return $e.forEach(de=>{ae=Math.max(de.duration+de.delay,ae)}),d.length?Lg(n,this._triggerName,r,o,ne,h,v,[],[],L,K,ae,d):($e.forEach(de=>{let Ot=de.element,yn=he(L,Ot,new Set);de.preStyleProps.forEach(Pt=>yn.add(Pt));let Cu=he(K,Ot,new Set);de.postStyleProps.forEach(Pt=>Cu.add(Pt)),Ot!==n&&T.add(Ot)}),Lg(n,this._triggerName,r,o,ne,h,v,$e,[...T.values()],L,K,ae))}};function ub(t,e,n,r,o){return t.some(i=>i(e,n,r,o))}function Wg(t,e){let n=G({},e);return Object.entries(t).forEach(([r,o])=>{o!=null&&(n[r]=o)}),n}var yu=class{styles;defaultParams;normalizer;constructor(e,n,r){this.styles=e,this.defaultParams=n,this.normalizer=r}buildStyles(e,n){let r=new Map,o=Wg(e,this.defaultParams);return this.styles.styles.forEach(i=>{typeof i!="string"&&i.forEach((s,a)=>{s&&(s=nr(s,o,n));let c=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,c,s,n),r.set(a,s)})}),r}};function db(t,e,n){return new vu(t,e,n)}var vu=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,n,r){this.name=e,this.ast=n,this._normalizer=r,n.states.forEach(o=>{let i=o.options&&o.options.params||{};this.states.set(o.name,new yu(o.style,i,r))}),Fg(this.states,"true","1"),Fg(this.states,"false","0"),n.transitions.forEach(o=>{this.transitionFactories.push(new bs(e,o,this.states))}),this.fallbackTransition=fb(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,n,r,o){return this.transitionFactories.find(s=>s.match(e,n,r,o))||null}matchStyles(e,n,r){return this.fallbackTransition.buildStyles(e,n,r)}};function fb(t,e,n){let r=[(s,a)=>!0],o={type:A.Sequence,steps:[],options:null},i={type:A.Transition,animation:o,matchers:r,options:null,queryCount:0,depCount:0};return new bs(t,i,e)}function Fg(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 pb=new or,Eu=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r}register(e,n){let r=[],o=[],i=wu(this._driver,n,r,o);if(r.length)throw yg(r);this._animations.set(e,i)}_buildPlayer(e,n,r){let o=e.element,i=Zl(this._normalizer,e.keyframes,n,r);return this._driver.animate(o,i,e.duration,e.delay,e.easing,[],!0)}create(e,n,r={}){let o=[],i=this._animations.get(e),s,a=new Map;if(i?(s=Su(this._driver,n,i,hs,Zr,new Map,new Map,r,pb,o),s.forEach(u=>{let d=he(a,u.element,new Map);u.postStyleProps.forEach(p=>d.set(p,null))})):(o.push(vg()),s=[]),o.length)throw Eg(o);a.forEach((u,d)=>{u.forEach((p,f)=>{u.set(f,this._driver.computeStyle(d,f,Ve))})});let c=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),l=ft(c);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 Ig(e);return n}listen(e,n,r,o){let i=fs(n,"","","");return ds(this._getPlayer(e),r,i,o),()=>{}}command(e,n,r,o){if(r=="register"){this.register(e,o[0]);return}if(r=="create"){let s=o[0]||{};this.create(e,n,s);return}let i=this._getPlayer(e);switch(r){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(e);break}}},jg="ng-animate-queued",hb=".ng-animate-queued",su="ng-animate-disabled",mb=".ng-animate-disabled",gb="ng-star-inserted",yb=".ng-star-inserted",vb=[],Qg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Eb={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Be="__ng_removed",to=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,n=""){this.namespaceId=n;let r=e&&e.hasOwnProperty("value"),o=r?e.value:e;if(this.value=Db(o),r){let i=e,{value:s}=i,a=As(i,["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(o=>{r[o]==null&&(r[o]=n[o])})}}},eo="void",au=new to(eo),Iu=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,n,r){this.id=e,this.hostElement=n,this._engine=r,this._hostClassName="ng-tns-"+e,xe(n,this._hostClassName)}listen(e,n,r,o){if(!this._triggers.has(n))throw Dg(r,n);if(r==null||r.length==0)throw _g(n);if(!_b(r))throw Tg(r,n);let i=he(this._elementListeners,e,[]),s={name:n,phase:r,callback:o};i.push(s);let a=he(this._engine.statesByElement,e,new Map);return a.has(n)||(xe(e,Yr),xe(e,Yr+"-"+n),a.set(n,au)),()=>{this._engine.afterFlush(()=>{let c=i.indexOf(s);c>=0&&i.splice(c,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 wg(e);return n}trigger(e,n,r,o=!0){let i=this._getTrigger(n),s=new no(this.id,n,e),a=this._engine.statesByElement.get(e);a||(xe(e,Yr),xe(e,Yr+"-"+n),this._engine.statesByElement.set(e,a=new Map));let c=a.get(n),l=new to(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(n,l),c||(c=au),!(l.value===eo)&&c.value===l.value){if(!bb(c.params,l.params)){let m=[],v=i.matchStyles(c.value,c.params,m),T=i.matchStyles(l.value,l.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{Rt(e,v),He(e,T)})}return}let p=he(this._engine.playersByElement,e,[]);p.forEach(m=>{m.namespaceId==this.id&&m.triggerName==n&&m.queued&&m.destroy()});let f=i.matchTransition(c.value,l.value,e,l.params),h=!1;if(!f){if(!o)return;f=i.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:f,fromState:c,toState:l,player:s,isFallbackTransition:h}),h||(xe(e,jg),s.onStart(()=>{rr(e,jg)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);let v=this._engine.playersByElement.get(e);if(v){let T=v.indexOf(s);T>=0&&v.splice(T,1)}}),this.players.push(s),p.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(o=>o.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,Jr,!0);r.forEach(o=>{if(o[Be])return;let i=this._engine.fetchNamespacesByElement(o);i.size?i.forEach(s=>s.triggerLeaveAnimation(o,n,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(e,n,r,o){let i=this._engine.statesByElement.get(e),s=new Map;if(i){let a=[];if(i.forEach((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){let u=this.trigger(e,l,eo,o);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,s),r&&ft(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 o=new Set;n.forEach(i=>{let s=i.name;if(o.has(s))return;o.add(s);let c=this._triggers.get(s).fallbackTransition,l=r.get(s)||au,u=new to(eo),d=new no(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:c,fromState:l,toState:u,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 o=!1;if(r.totalAnimations){let i=r.players.length?r.playersByQueriedElement.get(e):[];if(i&&i.length)o=!0;else{let s=e;for(;s=s.parentNode;)if(r.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(e),o)r.markElementAsRemoved(this.id,e,!1,n);else{let i=e[Be];(!i||i===Qg)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,n))}}insertNode(e,n){xe(e,this._hostClassName)}drainQueuedTransitions(e){let n=[];return this._queue.forEach(r=>{let o=r.player;if(o.destroyed)return;let i=r.element,s=this._elementListeners.get(i);s&&s.forEach(a=>{if(a.name==r.triggerName){let c=fs(i,r.triggerName,r.fromState.value,r.toState.value);c._data=e,ds(r.player,a.phase,c,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):n.push(r)}),this._queue=[],n.sort((r,o)=>{let i=r.transition.ast.depCount,s=o.transition.ast.depCount;return i==0||s==0?i-s:this._engine.driver.containsElement(r.element,o.element)?1:-1})}destroy(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Du=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,n)=>{};_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}constructor(e,n,r){this.bodyNode=e,this.driver=n,this._normalizer=r}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 Iu(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,o=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(n);for(;a;){let c=o.get(a);if(c){let l=r.indexOf(c);r.splice(l+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(e)}else r.push(e);return o.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 o=this._namespaceLookup[e];o&&o.register(n,r)&&this.totalAnimations++}destroy(e,n){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let r=this._fetchNamespace(e);this.namespacesByHostElement.delete(r.hostElement);let o=this._namespaceList.indexOf(r);o>=0&&this._namespaceList.splice(o,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 o of r.values())if(o.namespaceId){let i=this._fetchNamespace(o.namespaceId);i&&n.add(i)}}return n}trigger(e,n,r,o){if(Is(n)){let i=this._fetchNamespace(e);if(i)return i.trigger(n,r,o),!0}return!1}insertNode(e,n,r,o){if(!Is(n))return;let i=n[Be];if(i&&i.setForRemoval){i.setForRemoval=!1,i.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)}o&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),xe(e,su)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),rr(e,su))}removeNode(e,n,r){if(Is(n)){let o=e?this._fetchNamespace(e):null;o?o.removeNode(n,r):this.markElementAsRemoved(e,n,!1,r);let i=this.namespacesByHostElement.get(n);i&&i.id!==e&&i.removeNode(n,r)}else this._onRemovalComplete(n,r)}markElementAsRemoved(e,n,r,o,i){this.collectedLeaveElements.push(n),n[Be]={namespaceId:e,setForRemoval:o,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,n,r,o,i){return Is(n)?this._fetchNamespace(e).listen(n,r,o,i):()=>{}}_buildInstruction(e,n,r,o,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,o,e.fromState.options,e.toState.options,n,i)}destroyInnerAnimations(e){let n=this.driver.query(e,Jr,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(e,ms,!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 ft(this.players).onDone(()=>e());e()})}processLeaveNode(e){let n=e[Be];if(n&&n.setForRemoval){if(e[Be]=Qg,n.namespaceId){this.destroyInnerAnimations(e);let r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}e.classList?.contains(su)&&this.markElementAsDisabled(e,!1),this.driver.query(e,mb,!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,o)=>this._balanceNamespaceList(r,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++){let o=this.collectedEnterElements[r];xe(o,gb)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let r=[];try{n=this._flushAnimations(r,e)}finally{for(let o=0;o<r.length;o++)r[o]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++){let o=this.collectedLeaveElements[r];this.processLeaveNode(o)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){let r=this._whenQuietFns;this._whenQuietFns=[],n.length?ft(n).onDone(()=>{r.forEach(o=>o())}):r.forEach(o=>o())}}reportError(e){throw bg(e)}_flushAnimations(e,n){let r=new or,o=[],i=new Map,s=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(y=>{u.add(y);let I=this.driver.query(y,hb,!0);for(let w=0;w<I.length;w++)u.add(I[w])});let d=this.bodyNode,p=Array.from(this.statesByElement.keys()),f=Bg(p,this.collectedEnterElements),h=new Map,m=0;f.forEach((y,I)=>{let w=hs+m++;h.set(I,w),y.forEach(R=>xe(R,w))});let v=[],T=new Set,L=new Set;for(let y=0;y<this.collectedLeaveElements.length;y++){let I=this.collectedLeaveElements[y],w=I[Be];w&&w.setForRemoval&&(v.push(I),T.add(I),w.hasAnimation?this.driver.query(I,yb,!0).forEach(R=>T.add(R)):L.add(I))}let K=new Map,ne=Bg(p,Array.from(T));ne.forEach((y,I)=>{let w=Zr+m++;K.set(I,w),y.forEach(R=>xe(R,w))}),e.push(()=>{f.forEach((y,I)=>{let w=h.get(I);y.forEach(R=>rr(R,w))}),ne.forEach((y,I)=>{let w=K.get(I);y.forEach(R=>rr(R,w))}),v.forEach(y=>{this.processLeaveNode(y)})});let gn=[],$e=[];for(let y=this._namespaceList.length-1;y>=0;y--)this._namespaceList[y].drainQueuedTransitions(n).forEach(w=>{let R=w.player,X=w.element;if(gn.push(R),this.collectedEnterElements.length){let oe=X[Be];if(oe&&oe.setForMove){if(oe.previousTriggersValues&&oe.previousTriggersValues.has(w.triggerName)){let Lt=oe.previousTriggersValues.get(w.triggerName),Ie=this.statesByElement.get(w.element);if(Ie&&Ie.has(w.triggerName)){let ro=Ie.get(w.triggerName);ro.value=Lt,Ie.set(w.triggerName,ro)}}R.destroy();return}}let Ue=!d||!this.driver.containsElement(d,X),ge=K.get(X),pt=h.get(X),q=this._buildInstruction(w,r,pt,ge,Ue);if(q.errors&&q.errors.length){$e.push(q);return}if(Ue){R.onStart(()=>Rt(X,q.fromStyles)),R.onDestroy(()=>He(X,q.toStyles)),o.push(R);return}if(w.isFallbackTransition){R.onStart(()=>Rt(X,q.fromStyles)),R.onDestroy(()=>He(X,q.toStyles)),o.push(R);return}let xu=[];q.timelines.forEach(oe=>{oe.stretchStartingKeyframe=!0,this.disabledNodes.has(oe.element)||xu.push(oe)}),q.timelines=xu,r.append(X,q.timelines);let Yg={instruction:q,player:R,element:X};s.push(Yg),q.queriedElements.forEach(oe=>he(a,oe,[]).push(R)),q.preStyleProps.forEach((oe,Lt)=>{if(oe.size){let Ie=c.get(Lt);Ie||c.set(Lt,Ie=new Set),oe.forEach((ro,xs)=>Ie.add(xs))}}),q.postStyleProps.forEach((oe,Lt)=>{let Ie=l.get(Lt);Ie||l.set(Lt,Ie=new Set),oe.forEach((ro,xs)=>Ie.add(xs))})});if($e.length){let y=[];$e.forEach(I=>{y.push(Sg(I.triggerName,I.errors))}),gn.forEach(I=>I.destroy()),this.reportError(y)}let ae=new Map,de=new Map;s.forEach(y=>{let I=y.element;r.has(I)&&(de.set(I,I),this._beforeAnimationBuild(y.player.namespaceId,y.instruction,ae))}),o.forEach(y=>{let I=y.element;this._getPreviousPlayers(I,!1,y.namespaceId,y.triggerName,null).forEach(R=>{he(ae,I,[]).push(R),R.destroy()})});let Ot=v.filter(y=>$g(y,c,l)),yn=new Map;Hg(yn,this.driver,L,l,Ve).forEach(y=>{$g(y,c,l)&&Ot.push(y)});let Pt=new Map;f.forEach((y,I)=>{Hg(Pt,this.driver,new Set(y),c,Kr)}),Ot.forEach(y=>{let I=yn.get(y),w=Pt.get(y);yn.set(y,new Map([...I?.entries()??[],...w?.entries()??[]]))});let Ns=[],Mu=[],Nu={};s.forEach(y=>{let{element:I,player:w,instruction:R}=y;if(r.has(I)){if(u.has(I)){w.onDestroy(()=>He(I,R.toStyles)),w.disabled=!0,w.overrideTotalTime(R.totalTime),o.push(w);return}let X=Nu;if(de.size>1){let ge=I,pt=[];for(;ge=ge.parentNode;){let q=de.get(ge);if(q){X=q;break}pt.push(ge)}pt.forEach(q=>de.set(q,X))}let Ue=this._buildAnimation(w.namespaceId,R,ae,i,Pt,yn);if(w.setRealPlayer(Ue),X===Nu)Ns.push(w);else{let ge=this.playersByElement.get(X);ge&&ge.length&&(w.parentPlayer=ft(ge)),o.push(w)}}else Rt(I,R.fromStyles),w.onDestroy(()=>He(I,R.toStyles)),Mu.push(w),u.has(I)&&o.push(w)}),Mu.forEach(y=>{let I=i.get(y.element);if(I&&I.length){let w=ft(I);y.setRealPlayer(w)}}),o.forEach(y=>{y.parentPlayer?y.syncPlayerEvents(y.parentPlayer):y.destroy()});for(let y=0;y<v.length;y++){let I=v[y],w=I[Be];if(rr(I,Zr),w&&w.hasAnimation)continue;let R=[];if(a.size){let Ue=a.get(I);Ue&&Ue.length&&R.push(...Ue);let ge=this.driver.query(I,ms,!0);for(let pt=0;pt<ge.length;pt++){let q=a.get(ge[pt]);q&&q.length&&R.push(...q)}}let X=R.filter(Ue=>!Ue.destroyed);X.length?Tb(this,I,X):this.processLeaveNode(I)}return v.length=0,Ns.forEach(y=>{this.players.push(y),y.onDone(()=>{y.destroy();let I=this.players.indexOf(y);this.players.splice(I,1)}),y.play()}),Ns}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,r,o,i){let s=[];if(n){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let c=!i||i==eo;a.forEach(l=>{l.queued||!c&&l.triggerName!=o||s.push(l)})}}return(r||o)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||o&&o!=a.triggerName))),s}_beforeAnimationBuild(e,n,r){let o=n.triggerName,i=n.element,s=n.isRemovalTransition?void 0:e,a=n.isRemovalTransition?void 0:o;for(let c of n.timelines){let l=c.element,u=l!==i,d=he(r,l,[]);this._getPreviousPlayers(l,u,s,a,n.toState).forEach(f=>{let h=f.getRealPlayer();h.beforeDestroy&&h.beforeDestroy(),f.destroy(),d.push(f)})}Rt(i,n.fromStyles)}_buildAnimation(e,n,r,o,i,s){let a=n.triggerName,c=n.element,l=[],u=new Set,d=new Set,p=n.timelines.map(h=>{let m=h.element;u.add(m);let v=m[Be];if(v&&v.removedBeforeQueried)return new dt(h.duration,h.delay);let T=m!==c,L=wb((r.get(m)||vb).map(ae=>ae.getRealPlayer())).filter(ae=>{let de=ae;return de.element?de.element===m:!1}),K=i.get(m),ne=s.get(m),gn=Zl(this._normalizer,h.keyframes,K,ne),$e=this._buildPlayer(h,gn,L);if(h.subTimeline&&o&&d.add(m),T){let ae=new no(e,a,m);ae.setRealPlayer($e),l.push(ae)}return $e});l.forEach(h=>{he(this.playersByQueriedElement,h.element,[]).push(h),h.onDone(()=>Ib(this.playersByQueriedElement,h.element,h))}),u.forEach(h=>xe(h,tu));let f=ft(p);return f.onDestroy(()=>{u.forEach(h=>rr(h,tu)),He(c,n.toStyles)}),d.forEach(h=>{he(o,h,[]).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 dt(e.duration,e.delay)}},no=class{namespaceId;triggerName;element;_player=new dt;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,n,r){this.namespaceId=e,this.triggerName=n,this.element=r}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((n,r)=>{n.forEach(o=>ds(e,r,void 0,o))}),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){he(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 Ib(t,e,n){let r=t.get(e);if(r){if(r.length){let o=r.indexOf(n);r.splice(o,1)}r.length==0&&t.delete(e)}return r}function Db(t){return t??null}function Is(t){return t&&t.nodeType===1}function _b(t){return t=="start"||t=="done"}function Vg(t,e){let n=t.style.display;return t.style.display=e??"none",n}function Hg(t,e,n,r,o){let i=[];n.forEach(c=>i.push(Vg(c)));let s=[];r.forEach((c,l)=>{let u=new Map;c.forEach(d=>{let p=e.computeStyle(l,d,o);u.set(d,p),(!p||p.length==0)&&(l[Be]=Eb,s.push(l))}),t.set(l,u)});let a=0;return n.forEach(c=>Vg(c,i[a++])),s}function Bg(t,e){let n=new Map;if(t.forEach(a=>n.set(a,[])),e.length==0)return n;let r=1,o=new Set(e),i=new Map;function s(a){if(!a)return r;let c=i.get(a);if(c)return c;let l=a.parentNode;return n.has(l)?c=l:o.has(l)?c=r:c=s(l),i.set(a,c),c}return e.forEach(a=>{let c=s(a);c!==r&&n.get(c).push(a)}),n}function xe(t,e){t.classList?.add(e)}function rr(t,e){t.classList?.remove(e)}function Tb(t,e,n){ft(n).onDone(()=>t.processLeaveNode(e))}function wb(t){let e=[];return Kg(t,e),e}function Kg(t,e){for(let n=0;n<t.length;n++){let r=t[n];r instanceof er?Kg(r.players,e):e.push(r)}}function bb(t,e){let n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let o=0;o<n.length;o++){let i=n[o];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}function $g(t,e,n){let r=n.get(t);if(!r)return!1;let o=e.get(t);return o?r.forEach(i=>o.add(i)):e.set(t,r),n.delete(t),!0}var Ss=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,n)=>{};constructor(e,n,r){this._driver=n,this._normalizer=r,this._transitionEngine=new Du(e.body,n,r),this._timelineEngine=new Eu(e.body,n,r),this._transitionEngine.onRemovalComplete=(o,i)=>this.onRemovalComplete(o,i)}registerTrigger(e,n,r,o,i){let s=e+"-"+o,a=this._triggerCache[s];if(!a){let c=[],l=[],u=wu(this._driver,i,c,l);if(c.length)throw gg(o,c);a=db(o,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(n,o,a)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,r,o){this._transitionEngine.insertNode(e,n,r,o)}onRemove(e,n,r){this._transitionEngine.removeNode(e,n,r)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,r,o){if(r.charAt(0)=="@"){let[i,s]=Yl(r),a=o;this._timelineEngine.command(i,n,s,a)}else this._transitionEngine.trigger(e,n,r,o)}listen(e,n,r,o,i){if(r.charAt(0)=="@"){let[s,a]=Yl(r);return this._timelineEngine.listen(s,n,a,i)}return this._transitionEngine.listen(e,n,r,o,i)}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 Sb(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=cu(e[0]),e.length>1&&(r=cu(e[e.length-1]))):e instanceof Map&&(n=cu(e)),n||r?new Cb(t,n,r):null}var Cb=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(n,r,o){this._element=n,this._startStyles=r,this._endStyles=o;let i=t.initialStylesByElement.get(n);i||t.initialStylesByElement.set(n,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&He(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(He(this._element,this._initialStyles),this._endStyles&&(He(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Rt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Rt(this._element,this._endStyles),this._endStyles=null),He(this._element,this._initialStyles),this._state=3)}}return t})();function cu(t){let e=null;return t.forEach((n,r)=>{Mb(r)&&(e=e||new Map,e.set(r,n))}),e}function Mb(t){return t==="display"||t==="position"}var Cs=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,n,r,o){this.element=e,this.keyframes=n,this.options=r,this._specialStyles=o,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.domPlayer;this._initialized=!0;let e=this.keyframes,n=this._triggerWebAnimation(this.element,e,this.options);if(!n)return this._onFinish(),null;this.domPlayer=n,this._finalKeyframe=e.length?e[e.length-1]:new Map;let r=()=>this._onFinish();return n.addEventListener("finish",r),this.onDestroy(()=>{n.removeEventListener("finish",r)}),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){let o=this._convertKeyframesToObject(n);try{return e.animate(o,r)}catch(i){return null}}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(){let e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),e.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(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?.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||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,o)=>{o!=="offset"&&e.set(o,this._finished?r:ys(this.element,o))}),this.currentSnapshot=e}triggerCallback(e){let n=e==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},_u=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,n){return Jl(e,n)}getParentElement(e){return ps(e)}query(e,n,r){return Xl(e,n,r)}computeStyle(e,n,r){return ys(e,n)}animate(e,n,r,o,i,s=[]){let a=o==0?"both":"forwards",c={duration:r,delay:o,fill:a};i&&(c.easing=i);let l=new Map,u=s.filter(f=>f instanceof Cs);xg(r,o)&&u.forEach(f=>{f.currentSnapshot.forEach((h,m)=>l.set(m,h))});let d=Mg(n).map(f=>new Map(f));d=Ag(e,d,l);let p=Sb(e,d);return new Cs(e,d,c,p)}};function mV(t,e){return t==="noop"?new Ss(e,new zg,new uu):new Ss(e,new _u,new du)}var Ug=class{_driver;_animationAst;constructor(e,n){this._driver=e;let r=[],i=wu(e,n,r,[]);if(r.length)throw hg(r);this._animationAst=i}buildTimelines(e,n,r,o,i){let s=Array.isArray(n)?nu(n):n,a=Array.isArray(r)?nu(r):r,c=[];i=i||new or;let l=Su(this._driver,e,this._animationAst,hs,Zr,s,a,o,i,c);if(c.length)throw mg(c);return l}},Ds="@",Zg="@.disabled",Ms=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,n,r,o){this.namespaceId=e,this.delegate=n,this.engine=r,this._onDestroy=o}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,o=!0){this.delegate.insertBefore(e,n,r),this.engine.onInsert(this.namespaceId,n,e,o)}removeChild(e,n,r,o){if(o){this.delegate.removeChild(e,n,r,o);return}this.parentNode(n)&&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,o){this.delegate.setAttribute(e,n,r,o)}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,o){this.delegate.setStyle(e,n,r,o)}removeStyle(e,n,r){this.delegate.removeStyle(e,n,r)}setProperty(e,n,r){n.charAt(0)==Ds&&n==Zg?this.disableAnimations(e,!!r):this.delegate.setProperty(e,n,r)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,r,o){return this.delegate.listen(e,n,r,o)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}},Tu=class extends Ms{factory;constructor(e,n,r,o,i){super(n,r,o,i),this.factory=e,this.namespaceId=n}setProperty(e,n,r){n.charAt(0)==Ds?n.charAt(1)=="."&&n==Zg?(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,o){if(n.charAt(0)==Ds){let i=Nb(e),s=n.slice(1),a="";return s.charAt(0)!=Ds&&([s,a]=xb(s)),this.engine.listen(this.namespaceId,i,s,a,c=>{let l=c._data||-1;this.factory.scheduleListenerCallback(l,r,c)})}return this.delegate.listen(e,n,r,o)}};function Nb(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function xb(t){let e=t.indexOf("."),n=t.substring(0,e),r=t.slice(e+1);return[n,r]}var qg=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,n,r){this.delegate=e,this.engine=n,this._zone=r,n.onRemovalComplete=(o,i)=>{i?.removeChild(null,o)}}createRenderer(e,n){let o=this.delegate.createRenderer(e,n);if(!e||!n?.data?.animation){let l=this._rendererCache,u=l.get(o);if(!u){let d=()=>l.delete(o);u=new Ms("",o,this.engine,d),l.set(o,u)}return u}let i=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(i,s,e,l.name,l)};return n.data.animation.forEach(a),new Tu(this,s,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,r){if(e>=0&&e<this._microtaskId){this._zone.run(()=>n(r));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(i=>{let[s,a]=i;s(a)}),this._animationCallbacksBuffer=[]})}),o.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()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};export{G as a,ee as b,ks as c,$ as d,k as e,Ks as f,ye as g,cr as h,ur as i,my as j,gy as k,pr as l,Ge as m,wy as n,by as o,Sy as p,Cy as q,nt as r,Py as s,Mn as t,Fy as u,jy as v,hr as w,Vy as x,Xs as y,Hy as z,ea as A,By as B,Ed as C,Uo as D,$y as E,_d as F,qy as G,zy as H,ra as I,Gy as J,Wy as K,Td as L,wd as M,Qy as N,Ky as O,Zy as P,g as Q,Xo as R,pe as S,xd as T,P as U,We as V,S as W,Ca as X,xa as Y,De as Z,ai as _,Xd as $,ef as aa,hf as ba,mf as ca,Qe as da,Ii as ea,an as fa,rt as ga,re as ha,Yt as ia,ic as ja,Tf as ka,wf as la,Mv as ma,Nv as na,xv as oa,Oe as pa,kv as qa,sc as ra,Cf as sa,Kv as ta,hE as ua,Yn as va,Hr as wa,Li as xa,DE as ya,un as za,rl as Aa,CE as Ba,ME as Ca,NE as Da,xE as Ea,AE as Fa,kE as Ga,$p as Ha,QE as Ia,Jp as Ja,iI as Ka,ji as La,Gn as Ma,pn as Na,ut as Oa,DI as Pa,zI as Qa,Or as Ra,Pr as Sa,ND as Ta,LD as Ua,jD as Va,Oh as Wa,zr as Xa,qD as Ya,as as Za,Nl as _a,Gi as $a,S_ as ab,M_ as bb,A_ as cb,k_ as db,O_ as eb,P_ as fb,em as gb,nm as hb,rm as ib,Gr as jb,am as kb,Z_ as lb,Y_ as mb,J_ as nb,X_ as ob,eT as pb,cm as qb,Ki as rb,kl as sb,lm as tb,Rl as ub,Ol as vb,um as wb,Pl as xb,Ll as yb,fm as zb,sT as Ab,pm as Bb,lT as Cb,uT as Db,mm as Eb,gm as Fb,pT as Gb,mT as Hb,gT as Ib,vm as Jb,Em as Kb,vT as Lb,ET as Mb,Im as Nb,Dm as Ob,IT as Pb,DT as Qb,wm as Rb,bm as Sb,kT as Tb,UT as Ub,Am as Vb,Fl as Wb,km as Xb,Rm as Yb,Om as Zb,Pm as _b,KT as $b,Lm as ac,XT as bc,nw as cc,ow as dc,sw as ec,jl as fc,cw as gc,lw as hc,Bm as ic,Qj as jc,Kj as kc,Zj as lc,Yj as mc,gw as nc,Xj as oc,eV as pc,tV as qc,nV as rc,rV as sc,oV as tc,iV as uc,ps as vc,Cg as wc,Bw as xc,Jl as yc,Xl as zc,hs as Ac,Zr as Bc,Mg as Cc,Qw as Dc,xg as Ec,zg as Fc,kg as Gc,lu as Hc,uu as Ic,du as Jc,no as Kc,Ss as Lc,Cs as Mc,_u as Nc,mV as Oc,Ug as Pc,Ms as Qc,Tu as Rc,qg as Sc};