@mechris3/glassbox 0.1.41 → 0.1.43
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.
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var $m=Object.defineProperty,Um=Object.defineProperties;var Hm=Object.getOwnPropertyDescriptors;var cd=Object.getOwnPropertySymbols;var zm=Object.prototype.hasOwnProperty,Gm=Object.prototype.propertyIsEnumerable;var ud=(e,t,n)=>t in e?$m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||={})zm.call(t,n)&&ud(e,n,t[n]);if(cd)for(var n of cd(t))Gm.call(t,n)&&ud(e,n,t[n]);return e},
|
|
1
|
+
var $m=Object.defineProperty,Um=Object.defineProperties;var Hm=Object.getOwnPropertyDescriptors;var cd=Object.getOwnPropertySymbols;var zm=Object.prototype.hasOwnProperty,Gm=Object.prototype.propertyIsEnumerable;var ud=(e,t,n)=>t in e?$m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||={})zm.call(t,n)&&ud(e,n,t[n]);if(cd)for(var n of cd(t))Gm.call(t,n)&&ud(e,n,t[n]);return e},I=(e,t)=>Um(e,Hm(t));var Je=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(u){o(u)}},s=c=>{try{a(n.throw(c))}catch(u){o(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});var xe=null,ti=!1,Fa=1,Wm=null,Fe=Symbol("SIGNAL");function M(e){let t=xe;return xe=e,t}function ii(){return xe}var vn={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 Xn(e){if(ti)throw new Error("");if(xe===null)return;xe.consumerOnSignalRead(e);let t=xe.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=xe.recomputing;if(r&&(n=t!==void 0?t.nextProducer:xe.producers,n!==void 0&&n.producer===e)){xe.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===xe&&(!r||Zm(o,xe)))return;let i=tr(xe),s={producer:e,consumer:xe,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};xe.producersTail=s,t!==void 0?t.nextProducer=s:xe.producers=s,i&&pd(e,s)}function ld(){Fa++}function si(e){if(!(tr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Fa)){if(!e.producerMustRecompute(e)&&!Gr(e)){oi(e);return}e.producerRecomputeValue(e),oi(e)}}function Pa(e){if(e.consumers===void 0)return;let t=ti;ti=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||qm(r)}}finally{ti=t}}function La(){return xe?.consumerAllowSignalWrites!==!1}function qm(e){e.dirty=!0,Pa(e),e.consumerMarkedDirty?.(e)}function oi(e){e.dirty=!1,e.lastCleanEpoch=Fa}function En(e){return e&&dd(e),M(e)}function dd(e){e.producersTail=void 0,e.recomputing=!0}function er(e,t){M(t),e&&fd(e)}function fd(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(tr(e))do n=ja(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function Gr(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(si(n),r!==n.version))return!0}return!1}function Dn(e){if(tr(e)){let t=e.producers;for(;t!==void 0;)t=ja(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function pd(e,t){let n=e.consumersTail,r=tr(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)pd(o.producer,o)}function ja(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!tr(t)){let i=t.producers;for(;i!==void 0;)i=ja(i)}return n}function tr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function ai(e){Wm?.(e)}function Zm(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function ci(e,t){return Object.is(e,t)}function ui(e,t){let n=Object.create(Ym);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(si(n),Xn(n),n.value===zr)throw n.error;return n.value};return r[Fe]=n,ai(n),r}var ni=Symbol("UNSET"),ri=Symbol("COMPUTING"),zr=Symbol("ERRORED"),Ym=I(y({},vn),{value:ni,dirty:!0,error:null,equal:ci,kind:"computed",producerMustRecompute(e){return e.value===ni||e.value===ri},producerRecomputeValue(e){if(e.value===ri)throw new Error("");let t=e.value;e.value=ri;let n=En(e),r,o=!1;try{r=e.computation(),M(null),o=t!==ni&&t!==zr&&r!==zr&&e.equal(t,r)}catch(i){r=zr,e.error=i}finally{er(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Jm(){throw new Error}var hd=Jm;function gd(e){hd(e)}function Ba(e){hd=e}var Qm=null;function Va(e,t){let n=Object.create(li);n.value=e,t!==void 0&&(n.equal=t);let r=()=>md(n);return r[Fe]=n,ai(n),[r,s=>nr(n,s),s=>$a(n,s)]}function md(e){return Xn(e),e.value}function nr(e,t){La()||gd(e),e.equal(e.value,t)||(e.value=t,Km(e))}function $a(e,t){La()||gd(e),nr(e,t(e.value))}var li=I(y({},vn),{equal:ci,value:void 0,kind:"signal"});function Km(e){e.version++,ld(),Pa(e),Qm?.(e)}var Ua=I(y({},vn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function Ha(e){if(e.dirty=!1,e.version>0&&!Gr(e))return;e.version++;let t=En(e);try{e.cleanup(),e.fn()}finally{er(e,t)}}function P(e){return typeof e=="function"}function Jt(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var di=Jt(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
|
|
2
2
|
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
3
|
-
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function bn(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ye=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(P(r))try{r()}catch(i){t=i instanceof ci?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{yd(i)}catch(s){t=t??[],s instanceof ci?t=[...t,...s.errors]:t.push(s)}}if(t)throw new ci(t)}}add(t){var n;if(t&&t!==this)if(this.closed)yd(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&bn(n,t)}remove(t){let{_finalizers:n}=this;n&&bn(n,t),t instanceof e&&t._removeParent(this)}};ye.EMPTY=(()=>{let e=new ye;return e.closed=!0,e})();var Ua=ye.EMPTY;function ui(e){return e instanceof ye||e&&"closed"in e&&P(e.remove)&&P(e.add)&&P(e.unsubscribe)}function yd(e){P(e)?e():e.unsubscribe()}var it={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var rr={setTimeout(e,t,...n){let{delegate:r}=rr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=rr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function li(e){rr.setTimeout(()=>{let{onUnhandledError:t}=it;if(t)t(e);else throw e})}function Pt(){}var vd=Ha("C",void 0,void 0);function Ed(e){return Ha("E",void 0,e)}function Dd(e){return Ha("N",e,void 0)}function Ha(e,t,n){return{kind:e,value:t,error:n}}var wn=null;function or(e){if(it.useDeprecatedSynchronousErrorHandling){let t=!wn;if(t&&(wn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=wn;if(wn=null,n)throw r}}else e()}function bd(e){it.useDeprecatedSynchronousErrorHandling&&wn&&(wn.errorThrown=!0,wn.error=e)}var In=class extends ye{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,ui(t)&&t.add(this)):this.destination=ty}static create(t,n,r){return new st(t,n,r)}next(t){this.isStopped?Ga(Dd(t),this):this._next(t)}error(t){this.isStopped?Ga(Ed(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ga(vd,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Xm=Function.prototype.bind;function za(e,t){return Xm.call(e,t)}var Wa=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){di(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){di(r)}else di(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){di(n)}}},st=class extends In{constructor(t,n,r){super();let o;if(P(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&it.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&za(t.next,i),error:t.error&&za(t.error,i),complete:t.complete&&za(t.complete,i)}):o=t}this.destination=new Wa(o)}};function di(e){it.useDeprecatedSynchronousErrorHandling?bd(e):li(e)}function ey(e){throw e}function Ga(e,t){let{onStoppedNotification:n}=it;n&&rr.setTimeout(()=>n(e,t))}var ty={closed:!0,next:Pt,error:ey,complete:Pt};var ir=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ge(e){return e}function wd(e){return e.length===0?Ge:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var j=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=ry(n)?n:new st(n,r,o);return or(()=>{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=Id(r),new r((o,i)=>{let s=new st({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)}[ir](){return this}pipe(...n){return wd(n)(this)}toPromise(n){return n=Id(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Id(e){var t;return(t=e??it.Promise)!==null&&t!==void 0?t:Promise}function ny(e){return e&&P(e.next)&&P(e.error)&&P(e.complete)}function ry(e){return e&&e instanceof In||ny(e)&&ui(e)}function oy(e){return P(e?.lift)}function R(e){return t=>{if(oy(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function O(e,t,n,r,o){return new Gr(e,t,n,r,o)}var Gr=class extends In{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var Cd=Jt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ve=(()=>{class e extends j{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new fi(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Cd}next(n){or(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){or(()=>{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(){or(()=>{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?Ua:(this.currentObservers=null,i.push(n),new ye(()=>{this.currentObservers=null,bn(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new j;return n.source=this,n}}return e.create=(t,n)=>new fi(t,n),e})(),fi=class extends ve{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Ua}};var Lt=class extends ve{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Wr={now(){return(Wr.delegate||Date).now()},delegate:void 0};var sr=class extends ve{constructor(t=1/0,n=1/0,r=Wr){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<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 pi=class extends ye{constructor(t,n){super()}schedule(t,n=0){return this}};var qr={setInterval(e,t,...n){let{delegate:r}=qr;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=qr;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var ar=class extends pi{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return qr.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&qr.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,bn(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var cr=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};cr.now=Wr.now;var ur=class extends cr{constructor(t,n=cr.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var hi=new ur(ar);var gi=class extends ar{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}schedule(t,n=0){return n>0?super.schedule(t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)}execute(t,n){return n>0||this.closed?super.execute(t,n):this._execute(t,n)}requestAsyncId(t,n,r=0){return r!=null&&r>0||r==null&&this.delay>0?super.requestAsyncId(t,n,r):(t.flush(this),0)}};var mi=class extends ur{};var Zr=new mi(gi);var se=new j(e=>e.complete());function _d(e){return e&&P(e.schedule)}function qa(e){return e[e.length-1]}function yi(e){return P(qa(e))?e.pop():void 0}function lr(e){return _d(qa(e))?e.pop():void 0}function Sd(e,t){return typeof qa(e)=="number"?e.pop():t}function Md(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function Td(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Cn(e){return this instanceof Cn?(this.v=e,this):new Cn(e)}function xd(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(p){return function(h){return Promise.resolve(h).then(p,d)}}function a(p,h){r[p]&&(o[p]=function(m){return new Promise(function(b,I){i.push([p,m,b,I])>1||c(p,m)})},h&&(o[p]=h(o[p])))}function c(p,h){try{u(r[p](h))}catch(m){f(i[0][3],m)}}function u(p){p.value instanceof Cn?Promise.resolve(p.value.v).then(l,d):f(i[0][2],p)}function l(p){c("next",p)}function d(p){c("throw",p)}function f(p,h){p(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Nd(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Td=="function"?Td(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var vi=e=>e&&typeof e.length=="number"&&typeof e!="function";function Ei(e){return P(e?.then)}function Di(e){return P(e[ir])}function bi(e){return Symbol.asyncIterator&&P(e?.[Symbol.asyncIterator])}function wi(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function iy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ii=iy();function Ci(e){return P(e?.[Ii])}function _i(e){return xd(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Cn(n.read());if(o)return yield Cn(void 0);yield yield Cn(r)}}finally{n.releaseLock()}})}function Si(e){return P(e?.getReader)}function Y(e){if(e instanceof j)return e;if(e!=null){if(Di(e))return sy(e);if(vi(e))return ay(e);if(Ei(e))return cy(e);if(bi(e))return Ad(e);if(Ci(e))return uy(e);if(Si(e))return ly(e)}throw wi(e)}function sy(e){return new j(t=>{let n=e[ir]();if(P(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ay(e){return new j(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function cy(e){return new j(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,li)})}function uy(e){return new j(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Ad(e){return new j(t=>{dy(e,t).catch(n=>t.error(n))})}function ly(e){return Ad(_i(e))}function dy(e,t){var n,r,o,i;return Md(this,void 0,void 0,function*(){try{for(n=Nd(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function Ne(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function jt(e,t=0){return R((n,r)=>{n.subscribe(O(r,o=>Ne(r,e,()=>r.next(o),t),()=>Ne(r,e,()=>r.complete(),t),o=>Ne(r,e,()=>r.error(o),t)))})}function Ti(e,t=0){return R((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Rd(e,t){return Y(e).pipe(Ti(t),jt(t))}function Od(e,t){return Y(e).pipe(Ti(t),jt(t))}function kd(e,t){return new j(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Fd(e,t){return new j(n=>{let r;return Ne(n,t,()=>{r=e[Ii](),Ne(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>P(r?.return)&&r.return()})}function Mi(e,t){if(!e)throw new Error("Iterable cannot be null");return new j(n=>{Ne(n,t,()=>{let r=e[Symbol.asyncIterator]();Ne(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Pd(e,t){return Mi(_i(e),t)}function Ld(e,t){if(e!=null){if(Di(e))return Rd(e,t);if(vi(e))return kd(e,t);if(Ei(e))return Od(e,t);if(bi(e))return Mi(e,t);if(Ci(e))return Fd(e,t);if(Si(e))return Pd(e,t)}throw wi(e)}function _n(e,t){return t?Ld(e,t):Y(e)}function at(...e){let t=lr(e);return _n(e,t)}function jd(e,t){let n=P(e)?e:()=>e,r=o=>o.error(n());return new j(t?o=>t.schedule(r,0,o):r)}var Qt=class e{constructor(t,n,r){this.kind=t,this.value=n,this.error=r,this.hasValue=t==="N"}observe(t){return Za(this,t)}do(t,n,r){let{kind:o,value:i,error:s}=this;return o==="N"?t?.(i):o==="E"?n?.(s):r?.()}accept(t,n,r){var o;return P((o=t)===null||o===void 0?void 0:o.next)?this.observe(t):this.do(t,n,r)}toObservable(){let{kind:t,value:n,error:r}=this,o=t==="N"?at(n):t==="E"?jd(()=>r):t==="C"?se:0;if(!o)throw new TypeError(`Unexpected notification kind ${t}`);return o}static createNext(t){return new e("N",t)}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}};Qt.completeNotification=new Qt("C");function Za(e,t){var n,r,o;let{kind:i,value:s,error:a}=e;if(typeof i!="string")throw new TypeError('Invalid notification, missing "kind"');i==="N"?(n=t.next)===null||n===void 0||n.call(t,s):i==="E"?(r=t.error)===null||r===void 0||r.call(t,a):(o=t.complete)===null||o===void 0||o.call(t)}var Bd=Jt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Bt(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new st({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(t.defaultValue):o(new Bd)}});e.subscribe(i)})}function Vd(e){return e instanceof Date&&!isNaN(e)}var fy=Jt(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n});function Ya(e,t){let{first:n,each:r,with:o=py,scheduler:i=t??hi,meta:s=null}=Vd(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return R((a,c)=>{let u,l,d=null,f=0,p=h=>{l=Ne(c,i,()=>{try{u.unsubscribe(),Y(o({meta:s,lastValue:d,seen:f})).subscribe(c)}catch(m){c.error(m)}},h)};u=a.subscribe(O(c,h=>{l?.unsubscribe(),f++,c.next(d=h),r>0&&p(r)},void 0,void 0,()=>{l?.closed||l?.unsubscribe(),d=null})),!f&&p(n!=null?typeof n=="number"?n:+n-i.now():r)})}function py(e){throw new fy(e)}function L(e,t){return R((n,r)=>{let o=0;n.subscribe(O(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:hy}=Array;function gy(e,t){return hy(t)?e(...t):e(t)}function $d(e){return L(t=>gy(e,t))}var{isArray:my}=Array,{getPrototypeOf:yy,prototype:vy,keys:Ey}=Object;function Ud(e){if(e.length===1){let t=e[0];if(my(t))return{args:t,keys:null};if(Dy(t)){let n=Ey(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Dy(e){return e&&typeof e=="object"&&yy(e)===vy}function Hd(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Kt(...e){let t=lr(e),n=yi(e),{args:r,keys:o}=Ud(e);if(r.length===0)return _n([],t);let i=new j(by(r,t,o?s=>Hd(o,s):Ge));return n?i.pipe($d(n)):i}function by(e,t,n=Ge){return r=>{zd(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)zd(t,()=>{let u=_n(e[c],t),l=!1;u.subscribe(O(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function zd(e,t,n){e?Ne(n,e,t):t()}function Gd(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,f=()=>{d&&!c.length&&!u&&t.complete()},p=m=>u<r?h(m):c.push(m),h=m=>{i&&t.next(m),u++;let b=!1;Y(n(m,l++)).subscribe(O(t,I=>{o?.(I),i?p(I):t.next(I)},()=>{b=!0},void 0,()=>{if(b)try{for(u--;c.length&&u<r;){let I=c.shift();s?Ne(t,s,()=>h(I)):h(I)}f()}catch(I){t.error(I)}}))};return e.subscribe(O(t,p,()=>{d=!0,f()})),()=>{a?.()}}function Et(e,t,n=1/0){return P(t)?Et((r,o)=>L((i,s)=>t(r,i,o,s))(Y(e(r,o))),n):(typeof t=="number"&&(n=t),R((r,o)=>Gd(r,o,e,n)))}function Wd(e=1/0){return Et(Ge,e)}function Sn(...e){let t=lr(e),n=Sd(e,1/0),r=e;return r.length?r.length===1?Y(r[0]):Wd(n)(_n(r,t)):se}function fe(e,t){return R((n,r)=>{let o=0;n.subscribe(O(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Ie(e){return R((t,n)=>{let r=null,o=!1,i;r=t.subscribe(O(n,void 0,void 0,s=>{i=Y(e(s,Ie(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function qd(e,t,n,r,o){return(i,s)=>{let a=n,c=t,u=0;i.subscribe(O(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function Yr(e,t){return P(t)?Et(e,t,1):Et(e,1)}function Jr(e,t=hi){return R((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u)}};function c(){let u=s+e,l=t.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return}a()}n.subscribe(O(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Qr(e){return e<=0?()=>se:R((t,n)=>{let r=0;t.subscribe(O(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Ja(){return R((e,t)=>{e.subscribe(O(t,Pt))})}function Qa(){return R((e,t)=>{e.subscribe(O(t,n=>Za(n,t)))})}function dr(e,t=Ge){return e=e??wy,R((n,r)=>{let o,i=!0;n.subscribe(O(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function wy(e,t){return e===t}function fr(e,t){return t?n=>n.pipe(fr((r,o)=>Y(e(r,o)).pipe(L((i,s)=>t(r,i,o,s))))):R((n,r)=>{let o=0,i=null,s=!1;n.subscribe(O(r,a=>{i||(i=O(r,void 0,()=>{i=null,s&&r.complete()}),Y(e(a,o++)).subscribe(i))},()=>{s=!0,!i&&r.complete()}))})}function Ka(e){return R((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function xi(e,t,n,r){return R((o,i)=>{let s;!t||typeof t=="function"?s=t:{duration:n,element:s,connector:r}=t;let a=new Map,c=h=>{a.forEach(h),h(i)},u=h=>c(m=>m.error(h)),l=0,d=!1,f=new Gr(i,h=>{try{let m=e(h),b=a.get(m);if(!b){a.set(m,b=r?r():new ve);let I=p(m,b);if(i.next(I),n){let B=O(b,()=>{b.complete(),B?.unsubscribe()},void 0,void 0,()=>a.delete(m));f.add(Y(n(I)).subscribe(B))}}b.next(s?s(h):h)}catch(m){u(m)}},()=>c(h=>h.complete()),u,()=>a.clear(),()=>(d=!0,l===0));o.subscribe(f);function p(h,m){let b=new j(I=>{l++;let B=m.subscribe(I);return()=>{B.unsubscribe(),--l===0&&d&&f.unsubscribe()}});return b.key=h,b}})}function Xa(){return R((e,t)=>{e.subscribe(O(t,n=>{t.next(Qt.createNext(n))},()=>{t.next(Qt.createComplete()),t.complete()},n=>{t.next(Qt.createError(n)),t.complete()}))})}function ec(){return R((e,t)=>{let n,r=!1;e.subscribe(O(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0}))})}function tc(...e){let t=e.length;if(t===0)throw new Error("list of properties cannot be empty.");return L(n=>{let r=n;for(let o=0;o<t;o++){let i=r?.[e[o]];if(typeof i<"u")r=i;else return}return r})}function Kr(e,t){return R(qd(e,t,arguments.length>=2,!0))}function rc(e={}){let{connector:t=()=>new ve,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,c,u=0,l=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},p=()=>{f(),s=c=void 0,l=d=!1},h=()=>{let m=s;p(),m?.unsubscribe()};return R((m,b)=>{u++,!d&&!l&&f();let I=c=c??t();b.add(()=>{u--,u===0&&!d&&!l&&(a=nc(h,o))}),I.subscribe(b),!s&&u>0&&(s=new st({next:B=>I.next(B),error:B=>{d=!0,f(),a=nc(p,n,B),I.error(B)},complete:()=>{l=!0,f(),a=nc(p,r),I.complete()}}),Y(m).subscribe(s))})(i)}}function nc(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new st({next:()=>{r.unsubscribe(),e()}});return Y(t(...n)).subscribe(r)}function oc(e){return fe((t,n)=>e<=n)}function pe(e,t){return R((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(O(r,c=>{o?.unsubscribe();let u=0,l=i++;Y(e(c,l)).subscribe(o=O(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Tn(e){return R((t,n)=>{Y(e).subscribe(O(n,()=>n.complete(),Pt)),!n.closed&&t.subscribe(n)})}function ct(e,t,n){let r=P(e)||t||n?{next:e,error:t,complete:n}:e;return r?R((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(O(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):Ge}function Qe(...e){let t=yi(e);return R((n,r)=>{let o=e.length,i=new Array(o),s=e.map(()=>!1),a=!1;for(let c=0;c<o;c++)Y(e[c]).subscribe(O(r,u=>{i[c]=u,!a&&!s[c]&&(s[c]=!0,(a=s.every(Ge))&&(s=null))},Pt));n.subscribe(O(r,c=>{if(a){let u=[c,...i];r.next(t?t(...u):u)}}))})}var ic;function Ni(){return ic}function Dt(e){let t=ic;return ic=e,t}var Zd=Symbol("NotFound");function pr(e){return e===Zd||e?.name==="\u0275NotFound"}function Yd(e){let t=M(null);try{return e()}finally{M(t)}}var Ec="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",x=class extends Error{code;constructor(t,n){super(An(t,n)),this.code=t}};function Iy(e){return`NG0${Math.abs(e)}`}function An(e,t){return`${Iy(e)}${t?": "+t:""}`}function X(e){for(let t in e)if(e[t]===X)return t;throw Error("")}function ji(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(ji).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
|
|
4
|
-
`);return r>=0?n.slice(0,r):n}function Dc(e,t){return e?t?`${e} ${t}`:e:t||""}var Cy=X({__forward_ref__:X});function Bi(e){return e.__forward_ref__=Bi,e}function He(e){return bc(e)?e():e}function bc(e){return typeof e=="function"&&e.hasOwnProperty(Cy)&&e.__forward_ref__===Bi}function S(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ut(e){return{providers:e.providers||[],imports:e.imports||[]}}function Vi(e){return _y(e,$i)}function _y(e,t){return e.hasOwnProperty(t)&&e[t]||null}function Sy(e){let t=e?.[$i]??null;return t||null}function ac(e){return e&&e.hasOwnProperty(Ri)?e[Ri]:null}var $i=X({\u0275prov:X}),Ri=X({\u0275inj:X}),w=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=S({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function wc(e){return e&&!!e.\u0275providers}var Ic=X({\u0275cmp:X}),Cc=X({\u0275dir:X}),_c=X({\u0275pipe:X});var eo=X({\u0275fac:X}),Rn=X({__NG_ELEMENT_ID__:X}),Jd=X({__NG_ENV_ID__:X});function On(e){return Tc(e,"@Component"),e[Ic]||null}function Sc(e){return Tc(e,"@Directive"),e[Cc]||null}function ef(e){return Tc(e,"@Pipe"),e[_c]||null}function Tc(e,t){if(e==null)throw new x(-919,!1)}function io(e){return typeof e=="string"?e:e==null?"":String(e)}var tf=X({ngErrorCode:X}),Ty=X({ngErrorMessage:X}),My=X({ngTokenPath:X});function Mc(e,t){return nf("",-200,t)}function Ui(e,t){throw new x(-201,!1)}function nf(e,t,n){let r=new x(t,e);return r[tf]=t,r[Ty]=e,n&&(r[My]=n),r}function xy(e){return e[tf]}var cc;function rf(){return cc}function Pe(e){let t=cc;return cc=e,t}function xc(e,t,n){let r=Vi(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;Ui(e,"")}var Ny={},Mn=Ny,uc="__NG_DI_FLAG__",lc=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=xn(n)||0;try{return this.injector.get(t,r&8?null:Mn,r)}catch(o){if(pr(o))return o;throw o}}};function Ay(e,t=0){let n=Ni();if(n===void 0)throw new x(-203,!1);if(n===null)return xc(e,void 0,t);{let r=Ry(t),o=n.retrieve(e,r);if(pr(o)){if(r.optional)return null;throw o}return o}}function D(e,t=0){return(rf()||Ay)(He(e),t)}function g(e,t){return D(e,xn(t))}function xn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ry(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function dc(e){let t=[];for(let n=0;n<e.length;n++){let r=He(e[n]);if(Array.isArray(r)){if(r.length===0)throw new x(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=Oy(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(D(o,i))}else t.push(D(r))}return t}function of(e,t){return e[uc]=t,e.prototype[uc]=t,e}function Oy(e){return e[uc]}function Xt(e,t){let n=e.hasOwnProperty(eo);return n?e[eo]:null}function sf(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function af(e){return e.flat(Number.POSITIVE_INFINITY)}function Hi(e,t){e.forEach(n=>Array.isArray(n)?Hi(n,t):t(n))}function Nc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function so(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function cf(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function uf(e,t,n){let r=gr(e,t);return r>=0?e[r|1]=n:(r=~r,cf(e,r,t,n)),r}function zi(e,t){let n=gr(e,t);if(n>=0)return e[n|1]}function gr(e,t){return ky(e,t,1)}function ky(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var kn={},Ke=[],nn=new w(""),Ac=new w("",-1),Rc=new w(""),to=class{get(t,n=Mn){if(n===Mn){let o=nf("",-201);throw o.name="\u0275NotFound",o}return n}};function Xe(e){return{\u0275providers:e}}function mr(e){return Xe([{provide:nn,multi:!0,useValue:e}])}function lf(...e){return{\u0275providers:Oc(!0,e),\u0275fromNgModule:!0}}function Oc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Hi(t,s=>{let a=s;Oi(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&df(o,i),n}function df(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];kc(o,i=>{t(i,r)})}}function Oi(e,t,n,r){if(e=He(e),!e)return!1;let o=null,i=ac(e),s=!i&&On(e);if(!i&&!s){let c=e.ngModule;if(i=ac(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Oi(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;Hi(i.imports,l=>{Oi(l,t,n,r)&&(u||=[],u.push(l))}),u!==void 0&&df(u,t)}if(!a){let u=Xt(o)||(()=>new o);t({provide:o,useFactory:u,deps:Ke},o),t({provide:Rc,useValue:o,multi:!0},o),t({provide:nn,useValue:()=>D(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;kc(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function kc(e,t){for(let n of e)wc(n)&&(n=n.\u0275providers),Array.isArray(n)?kc(n,t):t(n)}var Fy=X({provide:String,useValue:X});function ff(e){return e!==null&&typeof e=="object"&&Fy in e}function Py(e){return!!(e&&e.useExisting)}function Ly(e){return!!(e&&e.useFactory)}function ki(e){return typeof e=="function"}var ao=new w(""),Ai={},Qd={},sc;function co(){return sc===void 0&&(sc=new to),sc}var Le=class{},Nn=class extends Le{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,pc(t,s=>this.processProvider(s)),this.records.set(Ac,hr(void 0,this)),o.has("environment")&&this.records.set(Le,hr(void 0,this));let i=this.records.get(ao);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Rc,Ke,{self:!0}))}retrieve(t,n){let r=xn(n)||0;try{return this.get(t,Mn,r)}catch(o){if(pr(o))return o;throw o}}destroy(){Xr(this),this._destroyed=!0;let t=M(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(),M(t)}}onDestroy(t){return Xr(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Xr(this);let n=Dt(this),r=Pe(void 0),o;try{return t()}finally{Dt(n),Pe(r)}}get(t,n=Mn,r){if(Xr(this),t.hasOwnProperty(Jd))return t[Jd](this);let o=xn(r),i,s=Dt(this),a=Pe(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=Uy(t)&&Vi(t);l&&this.injectableDefInScope(l)?u=hr(fc(t),Ai):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?co():this.parent;return n=o&8&&n===Mn?null:n,c.get(t,n)}catch(c){let u=xy(c);throw u===-200||u===-201?new x(u,null):c}finally{Pe(a),Dt(s)}}resolveInjectorInitializers(){let t=M(null),n=Dt(this),r=Pe(void 0),o;try{let i=this.get(nn,Ke,{self:!0});for(let s of i)s()}finally{Dt(n),Pe(r),M(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=He(t);let n=ki(t)?t:He(t&&t.provide),r=By(t);if(!ki(t)&&t.multi===!0){let o=this.records.get(n);o||(o=hr(void 0,Ai,!0),o.factory=()=>dc(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=M(null);try{if(n.value===Qd)throw Mc("");return n.value===Ai&&(n.value=Qd,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&$y(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{M(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=He(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function fc(e){let t=Vi(e),n=t!==null?t.factory:Xt(e);if(n!==null)return n;if(e instanceof w)throw new x(-204,!1);if(e instanceof Function)return jy(e);throw new x(-204,!1)}function jy(e){if(e.length>0)throw new x(-204,!1);let n=Sy(e);return n!==null?()=>n.factory(e):()=>new e}function By(e){if(ff(e))return hr(void 0,e.useValue);{let t=pf(e);return hr(t,Ai)}}function pf(e,t,n){let r;if(ki(e)){let o=He(e);return Xt(o)||fc(o)}else if(ff(e))r=()=>He(e.useValue);else if(Ly(e))r=()=>e.useFactory(...dc(e.deps||[]));else if(Py(e))r=(o,i)=>D(He(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=He(e&&(e.useClass||e.provide));if(Vy(e))r=()=>new o(...dc(e.deps));else return Xt(o)||fc(o)}return r}function Xr(e){if(e.destroyed)throw new x(-205,!1)}function hr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Vy(e){return!!e.deps}function $y(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Uy(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function pc(e,t){for(let n of e)Array.isArray(n)?pc(n,t):n&&wc(n)?pc(n.\u0275providers,t):t(n)}function yr(e,t){let n;e instanceof Nn?(Xr(e),n=e):n=new lc(e);let r,o=Dt(n),i=Pe(void 0);try{return t()}finally{Dt(o),Pe(i)}}function hf(){return rf()!==void 0||Ni()!=null}var ut=0,N=1,k=2,Ee=3,et=4,tt=5,vr=6,Er=7,he=8,Ht=9,wt=10,ae=11,Dr=12,Fc=13,Fn=14,We=15,rn=16,Pn=17,It=18,zt=19,Pc=20,$t=21,Gi=22,en=23,qe=24,Ln=25,on=26,De=27,gf=1,Lc=6,sn=7,uo=8,jn=9,ce=10;function an(e){return Array.isArray(e)&&typeof e[gf]=="object"}function lt(e){return Array.isArray(e)&&e[gf]===!0}function jc(e){return(e.flags&4)!==0}function Gt(e){return e.componentOffset>-1}function Wi(e){return(e.flags&1)===1}function Bn(e){return!!e.template}function br(e){return(e[k]&512)!==0}function Vn(e){return(e[k]&256)===256}var mf="svg",yf="math";function nt(e){for(;Array.isArray(e);)e=e[ut];return e}function Bc(e,t){return nt(t[e])}function dt(e,t){return nt(t[e.index])}function qi(e,t){return e.data[t]}function vf(e,t){return e[t]}function Vc(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function ft(e,t){let n=t[e];return an(n)?n:n[ut]}function Ef(e){return(e[k]&4)===4}function Zi(e){return(e[k]&128)===128}function Df(e){return lt(e[Ee])}function Ct(e,t){return t==null?null:e[t]}function $c(e){e[Pn]=0}function Uc(e){e[k]&1024||(e[k]|=1024,Zi(e)&&$n(e))}function bf(e,t){for(;e>0;)t=t[Fn],e--;return t}function lo(e){return!!(e[k]&9216||e[qe]?.dirty)}function Yi(e){e[wt].changeDetectionScheduler?.notify(8),e[k]&64&&(e[k]|=1024),lo(e)&&$n(e)}function $n(e){e[wt].changeDetectionScheduler?.notify(0);let t=tn(e);for(;t!==null&&!(t[k]&8192||(t[k]|=8192,!Zi(t)));)t=tn(t)}function Hc(e,t){if(Vn(e))throw new x(911,!1);e[$t]===null&&(e[$t]=[]),e[$t].push(t)}function wf(e,t){if(e[$t]===null)return;let n=e[$t].indexOf(t);n!==-1&&e[$t].splice(n,1)}function tn(e){let t=e[Ee];return lt(t)?t[Ee]:t}function zc(e){return e[Er]??=[]}function Gc(e){return e.cleanup??=[]}function If(e,t,n,r){let o=zc(t);o.push(n),e.firstCreatePass&&Gc(e).push(r,o.length-1)}var V={lFrame:jf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var hc=!1;function Cf(){return V.lFrame.elementDepthCount}function _f(){V.lFrame.elementDepthCount++}function Wc(){V.lFrame.elementDepthCount--}function Sf(){return V.bindingsEnabled}function Tf(){return V.skipHydrationRootTNode!==null}function qc(e){return V.skipHydrationRootTNode===e}function Zc(){V.skipHydrationRootTNode=null}function $(){return V.lFrame.lView}function Re(){return V.lFrame.tView}function te(e){return V.lFrame.contextLView=e,e[he]}function ne(e){return V.lFrame.contextLView=null,e}function Ze(){let e=Yc();for(;e!==null&&e.type===64;)e=e.parent;return e}function Yc(){return V.lFrame.currentTNode}function Mf(){let e=V.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function wr(e,t){let n=V.lFrame;n.currentTNode=e,n.isParent=t}function Jc(){return V.lFrame.isParent}function xf(){V.lFrame.isParent=!1}function Qc(){return hc}function no(e){let t=hc;return hc=e,t}function Nf(){let e=V.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Af(){return V.lFrame.bindingIndex}function Rf(e){return V.lFrame.bindingIndex=e}function Un(){return V.lFrame.bindingIndex++}function Kc(e){let t=V.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Of(){return V.lFrame.inI18n}function kf(e,t){let n=V.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ji(t)}function Ff(){return V.lFrame.currentDirectiveIndex}function Ji(e){V.lFrame.currentDirectiveIndex=e}function Pf(e){let t=V.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Xc(){return V.lFrame.currentQueryIndex}function Qi(e){V.lFrame.currentQueryIndex=e}function Hy(e){let t=e[N];return t.type===2?t.declTNode:t.type===1?e[tt]:null}function eu(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Hy(i),o===null||(i=i[Fn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=V.lFrame=Lf();return r.currentTNode=t,r.lView=e,!0}function Ki(e){let t=Lf(),n=e[N];V.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Lf(){let e=V.lFrame,t=e===null?null:e.child;return t===null?jf(e):t}function jf(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Bf(){let e=V.lFrame;return V.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var tu=Bf;function Xi(){let e=Bf();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Vf(e){return(V.lFrame.contextLView=bf(e,V.lFrame.contextLView))[he]}function Wt(){return V.lFrame.selectedIndex}function cn(e){V.lFrame.selectedIndex=e}function es(){let e=V.lFrame;return qi(e.tView,e.selectedIndex)}function nu(){return V.lFrame.currentNamespace}var $f=!0;function ts(){return $f}function ns(e){$f=e}function gc(e,t=null,n=null,r){let o=Uf(e,t,n,r);return o.resolveInjectorInitializers(),o}function Uf(e,t=null,n=null,r,o=new Set){let i=[n||Ke,lf(e)],s;return new Nn(i,t||co(),s||null,o)}var Ce=class e{static THROW_IF_NOT_FOUND=Mn;static NULL=new to;static create(t,n){if(Array.isArray(t))return gc({name:""},n,t,"");{let r=t.name??"";return gc({name:r},t.parent,t.providers,r)}}static \u0275prov=S({token:e,providedIn:"any",factory:()=>D(Ac)});static __NG_ELEMENT_ID__=-1},je=new w(""),Be=(()=>{class e{static __NG_ELEMENT_ID__=zy;static __NG_ENV_ID__=n=>n}return e})(),Fi=class extends Be{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Vn(this._lView)}onDestroy(t){let n=this._lView;return Hc(n,t),()=>wf(n,t)}};function zy(){return new Fi($())}var ru=!1,Hf=new w(""),un=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Lt(!1);debugTaskTracker=g(Hf,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new j(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=S({token:e,providedIn:"root",factory:()=>new e})}return e})(),mc=class extends ve{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,hf()&&(this.destroyRef=g(Be,{optional:!0})??void 0,this.pendingTasks=g(un,{optional:!0})??void 0)}emit(t){let n=M(null);try{super.next(t)}finally{M(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof ye&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},Vt=mc;function Pi(...e){}function ou(e){let t,n;function r(){e=Pi;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch(o){}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function zf(e){return queueMicrotask(()=>e()),()=>{e=Pi}}var iu="isAngularZone",ro=iu+"_ID",Gy=0,re=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Vt(!1);onMicrotaskEmpty=new Vt(!1);onStable=new Vt(!1);onError=new Vt(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=ru}=t;if(typeof Zone>"u")throw new x(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,Zy(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(iu)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new x(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new x(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Wy,Pi,Pi);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Wy={};function su(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function qy(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){ou(()=>{e.callbackScheduled=!1,yc(e),e.isCheckStableRunning=!0,su(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),yc(e)}function Zy(e){let t=()=>{qy(e)},n=Gy++;e._inner=e._inner.fork({name:"angular",properties:{[iu]:!0,[ro]:n,[ro+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Yy(c))return r.invokeTask(i,s,a,c);try{return Kd(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Xd(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Kd(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Jy(c)&&t(),Xd(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,yc(e),su(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function yc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Kd(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Xd(e){e._nesting--,su(e)}var oo=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Vt;onMicrotaskEmpty=new Vt;onStable=new Vt;onError=new Vt;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Yy(e){return Gf(e,"__ignore_ng_zone__")}function Jy(e){return Gf(e,"__scheduler_tick__")}function Gf(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Ae=class{_console=console;handleError(t){this._console.error("ERROR",t)}},_t=new w("",{factory:()=>{let e=g(re),t=g(Le),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Ae),n.handleError(r))})}}}),Wf={provide:nn,useValue:()=>{let e=g(Ae,{optional:!0})},multi:!0};function pt(e,t){let[n,r,o]=ja(e,t?.equal),i=n,s=i[Fe];return i.set=r,i.update=o,i.asReadonly=au.bind(i),i}function au(){let e=this[Fe];if(e.readonlyFn===void 0){let t=()=>this();t[Fe]=e,e.readonlyFn=t}return e.readonlyFn}var fo=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Qy}return e})();function Qy(){return new fo($(),Ze())}var bt=class{},Ir=new w("",{factory:()=>!0});var rs=new w(""),Cr=(()=>{class e{internalPendingTasks=g(un);scheduler=g(bt);errorHandler=g(_t);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();n().catch(this.errorHandler).finally(r)}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})(),os=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:()=>new vc})}return e})(),vc=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},Li=class{[Fe];constructor(t){this[Fe]=t}destroy(){this[Fe].destroy()}};function po(e,t){let n=t?.injector??g(Ce),r=t?.manualCleanup!==!0?n.get(Be):null,o,i=n.get(fo,null,{optional:!0}),s=n.get(bt);return i!==null?(o=ev(i.view,s,e),r instanceof Fi&&r._lView===i.view&&(r=null)):o=tv(e,n.get(os),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Li(o)}var qf=C(y({},Va),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=no(!1);try{$a(this)}finally{no(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=M(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],M(e)}}}),Ky=C(y({},qf),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(Dn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}}),Xy=C(y({},qf),{consumerMarkedDirty(){this.view[k]|=8192,$n(this.view),this.notifier.notify(13)},destroy(){if(Dn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[en]?.delete(this)}});function ev(e,t,n){let r=Object.create(Xy);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=Zf(r,n),e[en]??=new Set,e[en].add(r),r.consumerMarkedDirty(r),r}function tv(e,t,n){let r=Object.create(Ky);return r.fn=Zf(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function Zf(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}function _o(e){return{toString:e}.toString()}var is="__parameters__";function fv(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function pv(e,t,n){return _o(()=>{let r=fv(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(is)?c[is]:Object.defineProperty(c,is,{value:[]})[is];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var zu=of(pv("Inject",e=>({token:e})),-1);function hv(e){return typeof e=="function"}function Ip(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var fs=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function gv(e){return e.type.prototype.ngOnChanges&&(e.setInput=yv),mv}function mv(){let e=_p(this),t=e?.current;if(t){let n=e.previous;if(n===kn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function yv(e,t,n,r,o){let i=this.declaredInputs[r],s=_p(e)||vv(e,{previous:kn,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new fs(u&&u.currentValue,n,c===kn),Ip(e,t,o,n)}var Cp="__ngSimpleChanges__";function _p(e){return e[Cp]||null}function vv(e,t){return e[Cp]=t}var Yf=[];var J=function(e,t=null,n){for(let r=0;r<Yf.length;r++){let o=Yf[r];o(e,t,n)}},z=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(z||{});function Ev(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=gv(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Dv(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function as(e,t,n){Sp(e,t,3,n)}function cs(e,t,n,r){(e[k]&3)===n&&Sp(e,t,n,r)}function cu(e,t){let n=e[k];(n&3)===t&&(n&=16383,n+=1,e[k]=n)}function Sp(e,t,n,r){let o=r!==void 0?e[Pn]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Pn]+=65536),(a<i||i==-1)&&(bv(e,n,t,c),e[Pn]=(e[Pn]&4294901760)+c+2),c++}function Jf(e,t){J(z.LifecycleHookStart,e,t);let n=M(null);try{t.call(e)}finally{M(n),J(z.LifecycleHookEnd,e,t)}}function bv(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[k]>>14<e[Pn]>>16&&(e[k]&3)===t&&(e[k]+=16384,Jf(a,i)):Jf(a,i)}var Sr=-1,yo=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function wv(e){return(e.flags&8)!==0}function Iv(e){return(e.flags&16)!==0}function Cv(e,t,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++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];Sv(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function _v(e){return e===3||e===4||e===6}function Sv(e){return e.charCodeAt(0)===64}function Ss(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Qf(e,n,o,null,t[++r]):Qf(e,n,o,null,null))}}return e}function Qf(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function Tp(e){return e!==Sr}function ps(e){return e&32767}function Tv(e){return e>>16}function hs(e,t){let n=Tv(e),r=t;for(;n>0;)r=r[Fn],n--;return r}var gu=!0;function gs(e){let t=gu;return gu=e,t}var Mv=256,Mp=Mv-1,xp=5,xv=0,St={};function Nv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Rn)&&(r=n[Rn]),r==null&&(r=n[Rn]=xv++);let o=r&Mp,i=1<<o;t.data[e+(o>>xp)]|=i}function Np(e,t){let n=Ap(e,t);if(n!==-1)return n;let r=t[N];r.firstCreatePass&&(e.injectorIndex=t.length,uu(r.data,e),uu(t,null),uu(r.blueprint,null));let o=Gu(e,t),i=e.injectorIndex;if(Tp(o)){let s=ps(o),a=hs(o,t),c=a[N].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function uu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ap(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Gu(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Pp(o),r===null)return Sr;if(n++,o=o[Fn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Sr}function Av(e,t,n){Nv(e,t,n)}function Rp(e,t,n){if(n&8||e!==void 0)return e;Ui(t,"NodeInjector")}function Op(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Ht],i=Pe(void 0);try{return o?o.get(t,r,n&8):xc(t,r,n&8)}finally{Pe(i)}}return Rp(r,t,n)}function kp(e,t,n,r=0,o){if(e!==null){if(t[k]&2048&&!(r&2)){let s=Fv(e,t,n,r,St);if(s!==St)return s}let i=Fp(e,t,n,r,St);if(i!==St)return i}return Op(t,n,r,o)}function Fp(e,t,n,r,o){let i=Ov(n);if(typeof i=="function"){if(!eu(t,e,r))return r&1?Rp(o,n,r):Op(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Ui(n);else return s}finally{tu()}}else if(typeof i=="number"){let s=null,a=Ap(e,t),c=Sr,u=r&1?t[We][tt]:null;for((a===-1||r&4)&&(c=a===-1?Gu(e,t):t[a+8],c===Sr||!Xf(r,!1)?a=-1:(s=t[N],a=ps(c),t=hs(c,t)));a!==-1;){let l=t[N];if(Kf(i,a,l.data)){let d=Rv(a,t,n,s,r,u);if(d!==St)return d}c=t[a+8],c!==Sr&&Xf(r,t[N].data[a+8]===u)&&Kf(i,a,t)?(s=l,a=ps(c),t=hs(c,t)):a=-1}}return o}function Rv(e,t,n,r,o,i){let s=t[N],a=s.data[e+8],c=r==null?Gt(a)&&gu:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=us(a,s,n,c,u);return l!==null?ms(t,s,l,a,o):St}function us(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,f=o?a+l:u;for(let p=d;p<f;p++){let h=s[p];if(p<c&&n===h||p>=c&&h.type===n)return p}if(o){let p=s[c];if(p&&Bn(p)&&p.type===n)return c}return null}function ms(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof yo){let a=i;if(a.resolving)throw Mc("");let c=gs(a.canSeeViewProviders);a.resolving=!0;let u=s[n].type||s[n],l,d=a.injectImpl?Pe(a.injectImpl):null,f=eu(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Ev(n,s[n],t)}finally{d!==null&&Pe(d),gs(c),a.resolving=!1,tu()}}return i}function Ov(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Rn)?e[Rn]:void 0;return typeof t=="number"?t>=0?t&Mp:kv:t}function Kf(e,t,n){let r=1<<e;return!!(n[t+(e>>xp)]&r)}function Xf(e,t){return!(e&2)&&!(e&1&&t)}var Hn=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return kp(this._tNode,this._lView,t,xn(r),n)}};function kv(){return new Hn(Ze(),$())}function So(e){return _o(()=>{let t=e.prototype.constructor,n=t[eo]||mu(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[eo]||mu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function mu(e){return bc(e)?()=>{let t=mu(He(e));return t&&t()}:Xt(e)}function Fv(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[k]&2048&&!br(s);){let a=Fp(i,s,n,r|2,St);if(a!==St)return a;let c=i.parent;if(!c){let u=s[Pc];if(u){let l=u.get(n,St,r&-5);if(l!==St)return l}c=Pp(s),s=s[Fn]}i=c}return o}function Pp(e){let t=e[N],n=t.type;return n===2?t.declTNode:n===1?e[tt]:null}function Pv(){return Nr(Ze(),$())}function Nr(e,t){return new Ar(dt(e,t))}var Ar=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Pv}return e})();function Lv(e){return e instanceof Ar?e.nativeElement:e}function jv(){return this._results[Symbol.iterator]()}var ys=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 ve}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=af(t);(this._changesDetected=!sf(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(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=jv};function Lp(e){return(e.flags&128)===128}var Wu=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(Wu||{}),jp=new Map,Bv=0;function Vv(){return Bv++}function $v(e){jp.set(e[zt],e)}function yu(e){jp.delete(e[zt])}var ep="__ngContext__";function Tr(e,t){an(t)?(e[ep]=t[zt],$v(t)):e[ep]=t}function Bp(e){return $p(e[Dr])}function Vp(e){return $p(e[et])}function $p(e){for(;e!==null&&!lt(e);)e=e[et];return e}var Uv;function qu(e){Uv=e}var Ts=new w("",{factory:()=>Hv}),Hv="ng";var Ms=new w(""),To=new w("",{providedIn:"platform",factory:()=>"unknown"});var Mo=new w("",{factory:()=>g(je).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Up="r";var Hp="di";var zp=!1,Gp=new w("",{factory:()=>zp});var tp=new WeakMap;function zv(e,t){if(e==null||typeof e!="object")return;let n=tp.get(e);n||(n=new WeakSet,tp.set(e,n)),n.add(t)}var Gv=(e,t,n,r)=>{};function Wv(e,t,n,r){Gv(e,t,n,r)}function Zu(e){return(e.flags&32)===32}var qv=()=>null;function Wp(e,t,n=!1){return qv(e,t,n)}function qp(e,t){let n=e.contentQueries;if(n!==null){let r=M(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Qi(i),a.contentQueries(2,t[s],s)}}}finally{M(r)}}}function vu(e,t,n){Qi(0);let r=M(null);try{t(e,n)}finally{M(r)}}function Zp(e,t,n){if(jc(t)){let r=M(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{M(r)}}}var gt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(gt||{});var Eu=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ec})`}};function Yp(e){return e instanceof Eu?e.changingThisBreaksApplicationSecurity:e}function Zv(e,t){return e.createText(t)}function Yv(e,t,n){e.setValue(t,n)}function Jp(e,t,n){return e.createElement(t,n)}function vs(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Qp(e,t,n){e.appendChild(t,n)}function np(e,t,n,r,o){r!==null?vs(e,t,n,r,o):Qp(e,t,n)}function Kp(e,t,n,r){e.removeChild(null,t,n,r)}function Jv(e,t,n){e.setAttribute(t,"style",n)}function Qv(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Xp(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Cv(e,t,r),o!==null&&Qv(e,t,o),i!==null&&Jv(e,t,i)}function Kv(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var eh="ng-template";function Xv(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&Kv(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Yu(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function Yu(e){return e.type===4&&e.value!==eh}function eE(e,t,n){let r=e.type===4&&!n?eh:e.value;return t===r}function tE(e,t,n){let r=4,o=e.attrs,i=o!==null?oE(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!ht(r)&&!ht(c))return!1;if(s&&ht(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!eE(e,c,n)||c===""&&t.length===1){if(ht(r))return!1;s=!0}}else if(r&8){if(o===null||!Xv(e,o,c,n)){if(ht(r))return!1;s=!0}}else{let u=t[++a],l=nE(c,o,Yu(e),n);if(l===-1){if(ht(r))return!1;s=!0;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(ht(r))return!1;s=!0}}}}return ht(r)||s}function ht(e){return(e&1)===0}function nE(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return iE(t,e)}function rE(e,t,n=!1){for(let r=0;r<t.length;r++)if(tE(e,t[r],n))return!0;return!1}function oE(e){for(let t=0;t<e.length;t++){let n=e[t];if(_v(n))return t}return e.length}function iE(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function rp(e,t){return e?":not("+t.trim()+")":t}function sE(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!ht(s)&&(t+=rp(i,o),o=""),r=s,i=i||!ht(r);n++}return o!==""&&(t+=rp(i,o)),t}function aE(e){return e.map(sE).join(",")}function cE(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!ht(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var rt={};function Ju(e,t,n,r,o,i,s,a,c,u,l){let d=De+r,f=d+o,p=uE(d,f),h=typeof u=="function"?u():u;return p[N]={type:e,blueprint:p,template:n,queries:null,viewQuery:a,declTNode:t,data:p.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,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:l}}function uE(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:rt);return n}function lE(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Ju(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Qu(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[ut]=o,d[k]=r|4|128|8|64|1024,(u!==null||e&&e[k]&2048)&&(d[k]|=2048),$c(d),d[Ee]=d[Fn]=e,d[he]=n,d[wt]=s||e&&e[wt],d[ae]=a||e&&e[ae],d[Ht]=c||e&&e[Ht]||null,d[tt]=i,d[zt]=Vv(),d[vr]=l,d[Pc]=u,d[We]=t.type==2?e[We]:d,d}function dE(e,t,n){let r=dt(t,e),o=lE(n),i=e[wt].rendererFactory,s=Ku(e,Qu(e,o,null,th(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function th(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function nh(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Ku(e,t){return e[Dr]?e[Fc][et]=t:e[Dr]=t,e[Fc]=t,t}function T(e=1){rh(Re(),$(),Wt()+e,!1)}function rh(e,t,n,r){if(!r)if((t[k]&3)===3){let i=e.preOrderCheckHooks;i!==null&&as(t,i,n)}else{let i=e.preOrderHooks;i!==null&&cs(t,i,0,n)}cn(n)}var xs=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(xs||{});function Du(e,t,n,r){let o=M(null);try{let[i,s,a]=e.inputs[n],c=null;(s&xs.SignalBased)!==0&&(c=t[i][Fe]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Ip(t,c,i,r)}finally{M(o)}}var Tt=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Tt||{}),fE;function Xu(e,t){return fE(e,t)}var GR=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var bu=new WeakMap,ho=new WeakSet;function pE(e,t){let n=bu.get(e);if(!n||n.length===0)return;let r=t.parentNode,o=t.previousSibling;for(let i=n.length-1;i>=0;i--){let s=n[i],a=s.parentNode;s===t?(n.splice(i,1),ho.add(s),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&s===o||a&&r&&a!==r)&&(n.splice(i,1),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),s.parentNode?.removeChild(s))}}function hE(e,t){let n=bu.get(e);n?n.includes(t)||n.push(t):bu.set(e,[t])}var zn=new Set,Ns=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Ns||{}),xt=new w(""),op=new Set;function dn(e){op.has(e)||(op.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var el=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})(),oh=[0,1,2,3],ih=(()=>{class e{ngZone=g(re);scheduler=g(bt);errorHandler=g(Ae,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){g(xt,{optional:!0})}execute(){let n=this.sequences.size>0;n&&J(z.AfterRenderHooksStart),this.executing=!0;for(let r of oh)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&&J(z.AfterRenderHooksEnd)}register(n){let{view:r}=n;r!==void 0?((r[Ln]??=[]).push(n),$n(r),r[k]|=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(Ns.AFTER_NEXT_RENDER,n):n()}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})(),Es=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,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 t=this.view?.[Ln];t&&(this.view[Ln]=t.filter(n=>n!==this))}};function tl(e,t){let n=t?.injector??g(Ce);return dn("NgAfterNextRender"),mE(e,n,t,!0)}function gE(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function mE(e,t,n,r){let o=t.get(el);o.impl??=t.get(ih);let i=t.get(xt,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(Be):null,a=t.get(fo,null,{optional:!0}),c=new Es(o.impl,gE(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var sh=new w("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:g(Le)})});function ah(e,t,n){let r=e.get(sh);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function yE(e,t){let n=e.get(sh);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function vE(e,t){for(let[n,r]of t)ah(e,r.animateFns)}function ip(e,t,n,r){let o=e?.[on]?.enter;t!==null&&o&&o.has(n.index)&&vE(r,o)}function _r(e,t,n,r,o,i,s,a){if(o!=null){let c,u=!1;lt(o)?c=o:an(o)&&(u=!0,o=o[ut]);let l=nt(o);e===0&&r!==null?(ip(a,r,i,n),s==null?Qp(t,r,l):vs(t,r,l,s||null,!0)):e===1&&r!==null?(ip(a,r,i,n),vs(t,r,l,s||null,!0),pE(i,l)):e===2?(a?.[on]?.leave?.has(i.index)&&hE(i,l),ho.delete(l),sp(a,i,n,d=>{if(ho.has(l)){ho.delete(l);return}Kp(t,l,u,d)})):e===3&&(ho.delete(l),sp(a,i,n,()=>{t.destroyNode(l)})),c!=null&&AE(t,e,n,c,i,r,s)}}function EE(e,t){ch(e,t),t[ut]=null,t[tt]=null}function DE(e,t,n,r,o,i){r[ut]=o,r[tt]=t,Rs(e,r,n,1,o,i)}function ch(e,t){t[wt].changeDetectionScheduler?.notify(9),Rs(e,t,t[ae],2,null,null)}function bE(e){let t=e[Dr];if(!t)return lu(e[N],e);for(;t;){let n=null;if(an(t))n=t[Dr];else{let r=t[ce];r&&(n=r)}if(!n){for(;t&&!t[et]&&t!==e;)an(t)&&lu(t[N],t),t=t[Ee];t===null&&(t=e),an(t)&&lu(t[N],t),n=t&&t[et]}t=n}}function nl(e,t){let n=e[jn],r=n.indexOf(t);n.splice(r,1)}function As(e,t){if(Vn(t))return;let n=t[ae];n.destroyNode&&Rs(e,t,n,3,null,null),bE(t)}function lu(e,t){if(Vn(t))return;let n=M(null);try{t[k]&=-129,t[k]|=256,t[qe]&&Dn(t[qe]),CE(e,t),IE(e,t),t[N].type===1&&t[ae].destroy();let r=t[rn];if(r!==null&<(t[Ee])){r!==t[Ee]&&nl(r,t);let o=t[It];o!==null&&o.detachView(e)}yu(t)}finally{M(n)}}function sp(e,t,n,r){let o=e?.[on];if(o==null||o.leave==null||!o.leave.has(t.index))return r(!1);e&&zn.add(e[zt]),ah(n,()=>{if(o.leave&&o.leave.has(t.index)){let s=o.leave.get(t.index),a=[];if(s){for(let c=0;c<s.animateFns.length;c++){let u=s.animateFns[c],{promise:l}=u();a.push(l)}o.detachedLeaveAnimationFns=void 0}o.running=Promise.allSettled(a),wE(e,r)}else e&&zn.delete(e[zt]),r(!1)},o)}function wE(e,t){let n=e[on]?.running;if(n){n.then(()=>{e[on].running=void 0,zn.delete(e[zt]),t(!0)});return}t(!1)}function IE(e,t){let n=e.cleanup,r=t[Er];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&&(t[Er]=null);let o=t[$t];if(o!==null){t[$t]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[en];if(i!==null){t[en]=null;for(let s of i)s.destroy()}}function CE(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof yo)){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];J(z.LifecycleHookStart,a,c);try{c.call(a)}finally{J(z.LifecycleHookEnd,a,c)}}else{J(z.LifecycleHookStart,o,i);try{i.call(o)}finally{J(z.LifecycleHookEnd,o,i)}}}}}function _E(e,t,n){return SE(e,t.parent,n)}function SE(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[ut];if(Gt(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===gt.None||o===gt.Emulated)return null}return dt(r,n)}function TE(e,t,n){return xE(e,t,n)}function ME(e,t,n){return e.type&40?dt(e,n):null}var xE=ME,ap;function rl(e,t,n,r){let o=_E(e,r,t),i=t[ae],s=r.parent||t[tt],a=TE(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)np(i,o,n[c],a,!1);else np(i,o,n,a,!1);ap!==void 0&&ap(i,r,t,n,o)}function go(e,t){if(t!==null){let n=t.type;if(n&3)return dt(t,e);if(n&4)return wu(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return go(e,r);{let o=e[t.index];return lt(o)?wu(-1,o):nt(o)}}else{if(n&128)return go(e,t.next);if(n&32)return Xu(t,e)()||nt(e[t.index]);{let r=uh(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=tn(e[We]);return go(o,r)}else return go(e,t.next)}}}return null}function uh(e,t){if(t!==null){let r=e[We][tt],o=t.projection;return r.projection[o]}return null}function wu(e,t){let n=ce+e+1;if(n<t.length){let r=t[n],o=r[N].firstChild;if(o!==null)return go(r,o)}return t[sn]}function ol(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Ht];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&Tr(nt(c),r),n.flags|=2),!Zu(n))if(u&8)ol(e,t,n.child,r,o,i,!1),_r(t,e,a,o,c,n,i,r);else if(u&32){let l=Xu(n,r),d;for(;d=l();)_r(t,e,a,o,d,n,i,r);_r(t,e,a,o,c,n,i,r)}else u&16?NE(e,t,r,n,o,i):_r(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function Rs(e,t,n,r,o,i){ol(n,r,e.firstChild,t,o,i,!1)}function NE(e,t,n,r,o,i){let s=n[We],c=s[tt].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];_r(t,e,n[Ht],o,l,r,i,n)}else{let u=c,l=s[Ee];Lp(r)&&(u.flags|=128),ol(e,t,u,l,o,i,!0)}}function AE(e,t,n,r,o,i,s){let a=r[sn],c=nt(r);a!==c&&_r(t,e,n,i,a,o,s);for(let u=ce;u<r.length;u++){let l=r[u];Rs(l[N],l,e,t,i,a)}}function RE(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Tt.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Tt.Important),e.setStyle(n,r,o,i))}}function lh(e,t,n,r,o){let i=Wt(),s=r&2;try{cn(-1),s&&t.length>De&&rh(e,t,De,!1);let a=s?z.TemplateUpdateStart:z.TemplateCreateStart;J(a,o,n),n(r,o)}finally{cn(i);let a=s?z.TemplateUpdateEnd:z.TemplateCreateEnd;J(a,o,n)}}function dh(e,t,n){BE(e,t,n),(n.flags&64)===64&&VE(e,t,n)}function il(e,t,n=dt){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function OE(e,t,n,r){let i=r.get(Gp,zp)||n===gt.ShadowDom||n===gt.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);if(s.tagName.toLowerCase()==="script")throw new x(905,!1);return kE(s),s}function kE(e){FE(e)}var FE=()=>null;function PE(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function LE(e,t,n,r,o,i){let s=t[N];if(sl(e,s,t,n,r)){Gt(e)&&jE(t,e.index);return}e.type&3&&(n=PE(n)),fh(e,t,n,r,o,i)}function fh(e,t,n,r,o,i){if(e.type&3){let s=dt(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function jE(e,t){let n=ft(t,e);n[k]&16||(n[k]|=64)}function BE(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Gt(n)&&dE(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Np(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=ms(t,e,s,n);if(Tr(c,t),i!==null&&GE(t,s-r,c,a,n,i),Bn(a)){let u=ft(n.index,t);u[he]=ms(t,e,s,n)}}}function VE(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Ff();try{cn(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Ji(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&$E(c,u)}}finally{cn(-1),Ji(s)}}function $E(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function UE(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];rE(t,i.selectors,!1)&&(r??=[],Bn(i)?r.unshift(i):r.push(i))}return r}function HE(e,t,n,r,o,i){let s=dt(e,t);zE(t[ae],s,i,e.value,n,r,o)}function zE(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?io(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function GE(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];Du(r,n,c,u)}}function ph(e,t,n,r,o){let i=De+n,s=t[N],a=o(s,t,e,r,n);t[i]=a,wr(e,!0);let c=e.type===2;return c?(Xp(t[ae],a,e),(Cf()===0||Wi(e))&&Tr(a,t),_f()):Tr(a,t),ts()&&(!c||!Zu(e))&&rl(s,t,a,e),e}function hh(e){let t=e;return Jc()?xf():(t=t.parent,wr(t,!1)),t}function WE(e,t){let n=e[Ht];if(!n)return;let r;try{r=n.get(_t,null)}catch(o){r=null}r?.(t)}function sl(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=t.data[u];Du(d,n[u],l,o),a=!0}if(i)for(let c of i){let u=n[c],l=t.data[c];Du(l,u,r,o),a=!0}return a}function qE(e,t){let n=ft(t,e),r=n[N];ZE(r,n);let o=n[ut];o!==null&&n[vr]===null&&(n[vr]=Wp(o,n[Ht])),J(z.ComponentStart);try{al(r,n,n[he])}finally{J(z.ComponentEnd,n[he])}}function ZE(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function al(e,t,n){Ki(t);try{let r=e.viewQuery;r!==null&&vu(1,r,n);let o=e.template;o!==null&&lh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[It]?.finishViewCreation(e),e.staticContentQueries&&qp(e,t),e.staticViewQueries&&vu(2,e.viewQuery,n);let i=e.components;i!==null&&YE(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[k]&=-5,Xi()}}function YE(e,t){for(let n=0;n<t.length;n++)qE(e,t[n])}function Os(e,t,n,r){let o=M(null);try{let i=t.tView,a=e[k]&4096?4096:16,c=Qu(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[rn]=u;let l=e[It];return l!==null&&(c[It]=l.createEmbeddedView(i)),al(i,c,n),c}finally{M(o)}}function vo(e,t){return!t||t.firstChild===null||Lp(e)}function Eo(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(nt(i)),lt(i)&&gh(i,r);let s=n.type;if(s&8)Eo(e,t,n.child,r);else if(s&32){let a=Xu(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=uh(t,n);if(Array.isArray(a))r.push(...a);else{let c=tn(t[We]);Eo(c[N],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function gh(e,t){for(let n=ce;n<e.length;n++){let r=e[n],o=r[N].firstChild;o!==null&&Eo(r[N],r,o,t)}e[sn]!==e[ut]&&t.push(e[sn])}function mh(e){if(e[Ln]!==null){for(let t of e[Ln])t.impl.addSequence(t);e[Ln].length=0}}var yh=[];function JE(e){return e[qe]??QE(e)}function QE(e){let t=yh.pop()??Object.create(XE);return t.lView=e,t}function KE(e){e.lView[qe]!==e&&(e.lView=null,yh.push(e))}var XE=C(y({},vn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{$n(e.lView)},consumerOnSignalRead(){this.lView[qe]=this}});function eD(e){let t=e[qe]??Object.create(tD);return t.lView=e,t}var tD=C(y({},vn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=tn(e.lView);for(;t&&!vh(t[N]);)t=tn(t);t&&Uc(t)},consumerOnSignalRead(){this.lView[qe]=this}});function vh(e){return e.type!==2}function Eh(e){if(e[en]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[en])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[k]&8192)}}var nD=100;function Dh(e,t=0){let r=e[wt].rendererFactory,o=!1;o||r.begin?.();try{rD(e,t)}finally{o||r.end?.()}}function rD(e,t){let n=Qc();try{no(!0),Iu(e,t);let r=0;for(;lo(e);){if(r===nD)throw new x(103,!1);r++,Iu(e,1)}}finally{no(n)}}function oD(e,t,n,r){if(Vn(t))return;let o=t[k],i=!1,s=!1;Ki(t);let a=!0,c=null,u=null;i||(vh(e)?(u=JE(t),c=En(u)):ni()===null?(a=!1,u=eD(t),c=En(u)):t[qe]&&(Dn(t[qe]),t[qe]=null));try{$c(t),Rf(e.bindingStartIndex),n!==null&&lh(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let p=e.preOrderCheckHooks;p!==null&&as(t,p,null)}else{let p=e.preOrderHooks;p!==null&&cs(t,p,0,null),cu(t,0)}if(s||iD(t),Eh(t),bh(t,0),e.contentQueries!==null&&qp(e,t),!i)if(l){let p=e.contentCheckHooks;p!==null&&as(t,p)}else{let p=e.contentHooks;p!==null&&cs(t,p,1),cu(t,1)}aD(e,t);let d=e.components;d!==null&&Ih(t,d,0);let f=e.viewQuery;if(f!==null&&vu(2,f,r),!i)if(l){let p=e.viewCheckHooks;p!==null&&as(t,p)}else{let p=e.viewHooks;p!==null&&cs(t,p,2),cu(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Gi]){for(let p of t[Gi])p();t[Gi]=null}i||(mh(t),t[k]&=-73)}catch(l){throw i||$n(t),l}finally{u!==null&&(er(u,c),a&&KE(u)),Xi()}}function bh(e,t){for(let n=Bp(e);n!==null;n=Vp(n))for(let r=ce;r<n.length;r++){let o=n[r];wh(o,t)}}function iD(e){for(let t=Bp(e);t!==null;t=Vp(t)){if(!(t[k]&2))continue;let n=t[jn];for(let r=0;r<n.length;r++){let o=n[r];Uc(o)}}}function sD(e,t,n){J(z.ComponentStart);let r=ft(t,e);try{wh(r,n)}finally{J(z.ComponentEnd,r[he])}}function wh(e,t){Zi(e)&&Iu(e,t)}function Iu(e,t){let r=e[N],o=e[k],i=e[qe],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&zr(i)),s||=!1,i&&(i.dirty=!1),e[k]&=-9217,s)oD(r,e,r.template,e[he]);else if(o&8192){let a=M(null);try{Eh(e),bh(e,1);let c=r.components;c!==null&&Ih(e,c,1),mh(e)}finally{M(a)}}}function Ih(e,t,n){for(let r=0;r<t.length;r++)sD(e,t[r],n)}function aD(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)cn(~o);else{let i=o,s=n[++r],a=n[++r];kf(s,i);let c=t[i];J(z.HostBindingsUpdateStart,c);try{a(2,c)}finally{J(z.HostBindingsUpdateEnd,c)}}}}finally{cn(-1)}}function cl(e,t){let n=Qc()?64:1088;for(e[wt].changeDetectionScheduler?.notify(t);e;){e[k]|=n;let r=tn(e);if(br(e)&&!r)return e;e=r}return null}function Ch(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function _h(e,t){let n=ce+t;if(n<e.length)return e[n]}function ks(e,t,n,r=!0){let o=t[N];if(cD(o,t,e,n),r){let s=wu(n,e),a=t[ae],c=a.parentNode(e[sn]);c!==null&&DE(o,e[tt],a,t,c,s)}let i=t[vr];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Sh(e,t){let n=Do(e,t);return n!==void 0&&As(n[N],n),n}function Do(e,t){if(e.length<=ce)return;let n=ce+t,r=e[n];if(r){let o=r[rn];o!==null&&o!==e&&nl(o,r),t>0&&(e[n-1][et]=r[et]);let i=so(e,ce+t);EE(r[N],r);let s=i[It];s!==null&&s.detachView(i[N]),r[Ee]=null,r[et]=null,r[k]&=-129}return r}function cD(e,t,n,r){let o=ce+r,i=n.length;r>0&&(n[o-1][et]=t),r<i-ce?(t[et]=n[o],Nc(n,ce+r,t)):(n.push(t),t[et]=null),t[Ee]=n;let s=t[rn];s!==null&&n!==s&&Th(s,t);let a=t[It];a!==null&&a.insertView(e),Yi(t),t[k]|=128}function Th(e,t){let n=e[jn],r=t[Ee];if(an(r))e[k]|=2;else{let o=r[Ee][We];t[We]!==o&&(e[k]|=2)}n===null?e[jn]=[t]:n.push(t)}var ln=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[N];return Eo(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[he]}set context(t){this._lView[he]=t}get destroyed(){return Vn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[Ee];if(lt(t)){let n=t[uo],r=n?n.indexOf(this):-1;r>-1&&(Do(t,r),so(n,r))}this._attachedToViewContainer=!1}As(this._lView[N],this._lView)}onDestroy(t){Hc(this._lView,t)}markForCheck(){cl(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[k]&=-129}reattach(){Yi(this._lView),this._lView[k]|=128}detectChanges(){this._lView[k]|=1024,Dh(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new x(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=br(this._lView),n=this._lView[rn];n!==null&&!t&&nl(n,this._lView),ch(this._lView[N],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new x(902,!1);this._appRef=t;let n=br(this._lView),r=this._lView[rn];r!==null&&!n&&Th(r,this._lView),Yi(this._lView)}};var Mr=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=uD;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=Os(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new ln(i)}}return e})();function uD(){return ul(Ze(),$())}function ul(e,t){return e.type&4?new Mr(t,e,Nr(e,t)):null}function Fs(e,t,n,r,o){let i=e.data[t];if(i===null)i=lD(e,t,n,r,o),Of()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Mf();i.injectorIndex=s===null?-1:s.injectorIndex}return wr(i,!0),i}function lD(e,t,n,r,o){let i=Yc(),s=Jc(),a=s?i:i&&i.parent,c=e.data[t]=fD(e,a,n,t,r,o);return dD(e,c,i,s),c}function dD(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function fD(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Tf()&&(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:nu(),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:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function pD(e){let t=e[Lc]??[],r=e[Ee][ae],o=[];for(let i of t)i.data[Hp]!==void 0?o.push(i):hD(i,r);e[Lc]=o}function hD(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Up];for(;n<o;){let i=r.nextSibling;Kp(t,r,!1),r=i,n++}}}var gD=()=>null,mD=()=>null;function Cu(e,t){return gD(e,t)}function Mh(e,t,n){return mD(e,t,n)}var xh=class{},Ps=class{},_u=class{resolveComponentFactory(t){throw new x(917,!1)}},Ls=class{static NULL=new _u},Gn=class{};var Nh=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:()=>null})}return e})();var ls={},Su=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,ls,r);return o!==ls||n===ls?o:this.parentInjector.get(t,n,r)}};function Ds(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=Dc(o,a);else if(i==2){let c=a,u=t[++s];r=Dc(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function ue(e,t=0){let n=$();if(n===null)return D(e,t);let r=Ze();return kp(r,n,He(e),t)}function yD(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,u=null;for(let l of s)if(l.resolveHostDirectives!==null){[a,c,u]=l.resolveHostDirectives(s);break}DD(e,t,n,a,i,c,u)}i!==null&&r!==null&&vD(n,r,i)}function vD(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new x(-301,!1);r.push(t[o],i)}}function ED(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function DD(e,t,n,r,o,i,s){let a=r.length,c=null;for(let f=0;f<a;f++){let p=r[f];c===null&&Bn(p)&&(c=p,ED(e,n,f)),Av(Np(n,t),e,p.type)}SD(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let f=0;f<a;f++){let p=r[f];p.providersResolver&&p.providersResolver(p)}let u=!1,l=!1,d=nh(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let f=0;f<a;f++){let p=r[f];if(n.mergedAttrs=Ss(n.mergedAttrs,p.hostAttrs),wD(e,n,t,d,p),_D(d,p,o),s!==null&&s.has(p)){let[m,b]=s.get(p);n.directiveToIndex.set(p.type,[d,m+n.directiveStart,b+n.directiveStart])}else(i===null||!i.has(p))&&n.directiveToIndex.set(p.type,d);p.contentQueries!==null&&(n.flags|=4),(p.hostBindings!==null||p.hostAttrs!==null||p.hostVars!==0)&&(n.flags|=64);let h=p.type.prototype;!u&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),d++}bD(e,n,i)}function bD(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))cp(0,t,o,r),cp(1,t,o,r),lp(t,r,!1);else{let i=n.get(o);up(0,t,i,r),up(1,t,i,r),lp(t,r,!0)}}}function cp(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Ah(t,i)}}function up(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Ah(t,s)}}function Ah(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function lp(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Yu(e)){e.initialInputs??=[],e.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 u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function wD(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Xt(o.type,!0)),s=new yo(i,Bn(o),ue,null);e.blueprint[r]=s,n[r]=s,ID(e,t,r,nh(e,n,o.hostVars,rt),o)}function ID(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;CD(s)!=a&&s.push(a),s.push(n,r,i)}}function CD(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function _D(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Bn(t)&&(n[""]=e)}}function SD(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Rh(e,t,n,r,o,i,s,a){let c=t[N],u=c.consts,l=Ct(u,s),d=Fs(c,e,n,r,l);return i&&yD(c,t,d,Ct(u,a),o),d.mergedAttrs=Ss(d.mergedAttrs,d.attrs),d.attrs!==null&&Ds(d,d.attrs,!1),d.mergedAttrs!==null&&Ds(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function Oh(e,t){Dv(e,t),jc(t)&&e.queries.elementEnd(t)}function TD(e,t,n,r,o,i){let s=t.consts,a=Ct(s,o),c=Fs(t,e,n,r,a);if(c.mergedAttrs=Ss(c.mergedAttrs,c.attrs),i!=null){let u=Ct(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1)}return c.attrs!==null&&Ds(c,c.attrs,!1),c.mergedAttrs!==null&&Ds(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function MD(e,t,n){return e[t]=n}function Mt(e,t,n){if(n===rt)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function xD(e,t,n,r){let o=Mt(e,t,n);return Mt(e,t+1,r)||o}function ds(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&zv(o,i);let s=Gt(e)?ft(e.index,t):t;cl(s,5);let a=t[he],c=dp(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=dp(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function dp(e,t,n,r){let o=M(null);try{return J(z.OutputStart,t,n),n(r)!==!1}catch(i){return WE(e,i),!1}finally{J(z.OutputEnd,t,n),M(o)}}function kh(e,t,n,r,o,i,s,a){let c=Wi(e),u=!1,l=null;if(!r&&c&&(l=AD(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=!0}else{let d=dt(e,n),f=r?r(d):d;Wv(n,f,i,a),r||(a.__ngNativeEl__=d);let p=o.listen(f,i,a);if(!ND(i)){let h=r?m=>r(nt(m[e.index])):e.index;Fh(h,t,n,i,a,p,!1)}}return u}function ND(e){return e.startsWith("animation")||e.startsWith("transition")}function AD(e,t,n,r){let o=e.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=t[Er],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Fh(e,t,n,r,o,i,s){let a=t.firstCreatePass?Gc(t):null,c=zc(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1))}function fp(e,t,n,r,o,i){let s=t[n],a=t[N],u=a.data[n].outputs[r],d=s[u].subscribe(i);Fh(e.index,a,t,o,i,d,!0)}var Tu=Symbol("BINDING");function Ph(e){return e.debugInfo?.className||e.type.name||null}var Mu=class extends Ls{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=On(t);return new bo(n,this.ngModule)}};function RD(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&xs.SignalBased)!==0};return o&&(i.transform=o),i})}function OD(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function kD(e,t,n){let r=t instanceof Le?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Su(n,r):n}function FD(e){let t=e.get(Gn,null);if(t===null)throw new x(407,!1);let n=e.get(Nh,null),r=e.get(bt,null),o=e.get(xt,null,{optional:!0});return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:o}}function PD(e,t){let n=Lh(e);return Jp(t,n,n==="svg"?mf:n==="math"?yf:null)}function Lh(e){return(e.selectors[0][0]||"div").toLowerCase()}var bo=class extends Ps{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=RD(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=OD(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=aE(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){J(z.DynamicComponentStart);let a=M(null);try{let c=this.componentDef,u=kD(c,o||this.ngModule,t),l=FD(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(Ph(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{M(a)}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=LD(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?OE(u,o,a.encapsulation,n):PD(a,u),d=s?.some(pp)||i?.some(h=>typeof h!="function"&&h.bindings.some(pp)),f=Qu(null,c,null,512|th(a),null,null,t,u,n,null,Wp(l,n,!0));f[De]=l,Ki(f);let p=null;try{let h=Rh(De,f,2,"#host",()=>c.directiveRegistry,!0,0);Xp(u,l,h),Tr(l,f),dh(c,f,h),Zp(c,h,f),Oh(c,h),r!==void 0&&BD(h,this.ngContentSelectors,r),p=ft(h.index,f),f[he]=p[he],al(c,f,null)}catch(h){throw p!==null&&yu(p),yu(f),h}finally{J(z.DynamicComponentEnd),Xi()}return new bs(this.componentType,f,!!d)}};function LD(e,t,n,r){let o=e?["ng-version","21.2.17"]:cE(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[Tu].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){let d=r[l];if(typeof d!="function")for(let f of d.bindings){a+=f[Tu].requiredVars;let p=l+1;f.create&&(f.targetIdx=p,(i??=[]).push(f)),f.update&&(f.targetIdx=p,(s??=[]).push(f))}}let c=[t];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,f=Sc(d);c.push(f)}return Ju(0,null,jD(i,s),1,a,c,null,null,null,[o],null)}function jD(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function pp(e){let t=e[Tu].kind;return t==="input"||t==="twoWay"}var bs=class extends xh{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=qi(n[N],De),this.location=Nr(this._tNode,n),this.instance=ft(this._tNode.index,n)[he],this.hostView=this.changeDetectorRef=new ln(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=sl(r,o[N],o,t,n);this.previousInputValues.set(t,n);let s=ft(r.index,o);cl(s,1)}get injector(){return new Hn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function BD(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var xo=(()=>{class e{static __NG_ELEMENT_ID__=VD}return e})();function VD(){let e=Ze();return jh(e,$())}var xu=class e extends xo{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Nr(this._hostTNode,this._hostLView)}get injector(){return new Hn(this._hostTNode,this._hostLView)}get parentInjector(){let t=Gu(this._hostTNode,this._hostLView);if(Tp(t)){let n=hs(t,this._hostLView),r=ps(t),o=n[N].data[r+8];return new Hn(o,n)}else return new Hn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=hp(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ce}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Cu(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,vo(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!hv(t),u;if(c)u=n;else{let b=n||{};u=b.index,r=b.injector,o=b.projectableNodes,i=b.environmentInjector||b.ngModuleRef,s=b.directives,a=b.bindings}let l=c?t:new bo(On(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let I=(c?d:this.parentInjector).get(Le,null);I&&(i=I)}let f=On(l.componentType??{}),p=Cu(this._lContainer,f?.id??null),h=p?.firstChild??null,m=l.create(d,o,h,i,s,a);return this.insertImpl(m.hostView,u,vo(this._hostTNode,p)),m}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Df(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[Ee],u=new e(c,c[tt],c[Ee]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return ks(s,o,i,r),t.attachToViewContainerRef(),Nc(du(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=hp(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Do(this._lContainer,n);r&&(so(du(this._lContainer),n),As(r[N],r))}detach(t){let n=this._adjustIndex(t,-1),r=Do(this._lContainer,n);return r&&so(du(this._lContainer),n)!=null?new ln(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function hp(e){return e[uo]}function du(e){return e[uo]||(e[uo]=[])}function jh(e,t){let n,r=t[e.index];return lt(r)?n=r:(n=Ch(r,t,null,e),t[e.index]=n,Ku(t,n)),UD(n,t,e,r),new xu(n,e,t)}function $D(e,t){let n=e[ae],r=n.createComment(""),o=dt(t,e),i=n.parentNode(o);return vs(n,i,r,n.nextSibling(o),!1),r}var UD=GD,HD=()=>!1;function zD(e,t,n){return HD(e,t,n)}function GD(e,t,n,r){if(e[sn])return;let o;n.type&8?o=nt(r):o=$D(t,n),e[sn]=o}var Nu=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Au=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)ll(t,n).matches!==null&&this.queries[n].setDirty()}},Ru=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=XD(t):this.predicate=t}},Ou=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},ku=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,WD(n,i)),this.matchTNodeWithReadOption(t,n,us(n,t,i,!1,!1))}else r===Mr?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,us(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Ar||o===xo||o===Mr&&n.type&4)this.addMatch(n.index,-2);else{let i=us(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function WD(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function qD(e,t){return e.type&11?Nr(e,t):e.type&4?ul(e,t):null}function ZD(e,t,n,r){return n===-1?qD(t,e):n===-2?YD(e,t,r):ms(e,e[N],n,t)}function YD(e,t,n){if(n===Ar)return Nr(t,e);if(n===Mr)return ul(t,e);if(n===xo)return jh(t,e)}function Bh(e,t,n,r){let o=t[It].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let u=s[c];if(u<0)a.push(null);else{let l=i[u];a.push(ZD(t,l,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function Fu(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Bh(e,t,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 u=i[a+1],l=t[-c];for(let d=ce;d<l.length;d++){let f=l[d];f[rn]===f[Ee]&&Fu(f[N],f,u,r)}if(l[jn]!==null){let d=l[jn];for(let f=0;f<d.length;f++){let p=d[f];Fu(p[N],p,u,r)}}}}}return r}function JD(e,t){return e[It].queries[t].queryList}function QD(e,t,n){let r=new ys((n&4)===4);return If(e,t,r,r.destroy),(t[It]??=new Au).queries.push(new Nu(r))-1}function KD(e,t,n){let r=Re();return r.firstCreatePass&&(eb(r,new Ru(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),QD(r,$(),t)}function XD(e){return e.split(",").map(t=>t.trim())}function eb(e,t,n){e.queries===null&&(e.queries=new Ou),e.queries.track(new ku(t,n))}function ll(e,t){return e.queries.getByIndex(t)}function tb(e,t){let n=e[N],r=ll(n,t);return r.crossesNgTemplate?Fu(n,e,t,[]):Bh(n,e,r,t)}var wo=class{};var Io=class extends wo{injector;componentFactoryResolver=new Mu(this);instance=null;constructor(t){super();let n=new Nn([...t.providers,{provide:wo,useValue:this},{provide:Ls,useValue:this.componentFactoryResolver}],t.parent||co(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Vh(e,t,n=null){return new Io({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var nb=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Oc(!1,n.type),o=r.length>0?Vh([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=S({token:e,providedIn:"environment",factory:()=>new e(D(Le))})}return e})();function _e(e){return _o(()=>{let t=sb(e),n=C(y({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Wu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(nb).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||gt.Emulated,styles:e.styles||Ke,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&dn("NgStandalone"),ab(n);let r=e.dependencies;return n.directiveDefs=gp(r,rb),n.pipeDefs=gp(r,ef),n.id=cb(n),n})}function rb(e){return On(e)||Sc(e)}function fn(e){return _o(()=>({type:e.type,bootstrap:e.bootstrap||Ke,declarations:e.declarations||Ke,imports:e.imports||Ke,exports:e.exports||Ke,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function ob(e,t){if(e==null)return kn;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=xs.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function ib(e){if(e==null)return kn;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function dl(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function sb(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||kn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Ke,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:ob(e.inputs,t),outputs:ib(e.outputs),debugInfo:null}}function ab(e){e.features?.forEach(t=>t(e))}function gp(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}function cb(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function ub(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Ss(e.mergedAttrs,e.attrs);let l=e.tView=Ju(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),wr(e,!1);let c=lb(n,t,e,r);ts()&&rl(n,t,c,e),Tr(c,t);let u=Ch(c,t,c,e);t[r+De]=u,Ku(t,u),zD(u,e,t)}function ws(e,t,n,r,o,i,s,a,c,u,l){let d=n+De,f;if(t.firstCreatePass){if(f=Fs(t,d,4,s||null,a||null),u!=null){let p=Ct(t.consts,u);f.localNames=[];for(let h=0;h<p.length;h+=2)f.localNames.push(p[h],-1)}}else f=t.data[d];return ub(f,e,t,n,r,o,i,c),u!=null&&il(e,f,l),f}var lb=db;function db(e,t,n,r){return ns(!0),t[ae].createComment("")}var fl=new w("");function No(e){return!!e&&typeof e.then=="function"}function js(e){return!!e&&typeof e.subscribe=="function"}var $h=new w("");var pl=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=g($h,{optional:!0})??[];injector=g(Ce);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=yr(this.injector,o);if(No(i))n.push(i);else if(js(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Uh=new w("");function Hh(){La(()=>{let e="";throw new x(600,e)})}function zh(e){return e.isBoundToModule}var fb=10;var Ao=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=g(_t);afterRenderManager=g(el);zonelessEnabled=g(Ir);rootEffectScheduler=g(os);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ve;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=g(un);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(L(n=>!n))}constructor(){g(xt,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=g(Le);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Ce.NULL){return this._injector.get(re).run(()=>{J(z.BootstrapComponentStart);let s=n instanceof Ps;if(!this._injector.get(pl).done){let h="";throw new x(405,h)}let c;s?c=n:c=this._injector.get(Ls).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let u=zh(c)?void 0:this._injector.get(wo),l=r||c.selector,d=c.create(o,[],l,u),f=d.location.nativeElement,p=d.injector.get(fl,null);return p?.registerApplication(f),d.onDestroy(()=>{this.detachView(d.hostView),mo(this.components,d),p?.unregisterApplication(f)}),this._loadComponent(d),J(z.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){J(z.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Ns.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw J(z.ChangeDetectionEnd),new x(101,!1);let n=M(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,M(n),this.afterTick.next(),J(z.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Gn,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<fb;){J(z.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{J(z.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&&!lo(o))continue;let i=r&&!this.zonelessEnabled?0:1;Dh(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})=>lo(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;mo(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(Uh,[]).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),()=>mo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new x(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||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function mo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ye(e,t,n,r){let o=$(),i=Un();if(Mt(o,i,t)){let s=Re(),a=es();HE(a,o,e,t,n,r)}return Ye}var Pu=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function fu(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function pb(e,t,n,r){let o,i,s=0,a=e.length-1,c=void 0;if(Array.isArray(t)){M(r);let u=t.length-1;for(M(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],f=fu(s,l,s,d,n);if(f!==0){f<0&&e.updateValue(s,d),s++;continue}let p=e.at(a),h=t[u],m=fu(a,p,u,h,n);if(m!==0){m<0&&e.updateValue(a,h),a--,u--;continue}let b=n(s,l),I=n(a,p),B=n(s,d);if(Object.is(B,I)){let de=n(u,h);Object.is(de,b)?(e.swap(s,a),e.updateValue(a,h),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new Is,i??=yp(e,s,a,n),Lu(e,o,s,B))e.updateValue(s,d),s++,a++;else if(i.has(B))o.set(b,e.detach(s)),a--;else{let de=e.create(s,t[s]);e.attach(s,de),s++,a++}}for(;s<=u;)mp(e,o,n,s,t[s]),s++}else if(t!=null){M(r);let u=t[Symbol.iterator]();M(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),f=l.value,p=fu(s,d,s,f,n);if(p!==0)p<0&&e.updateValue(s,f),s++,l=u.next();else{o??=new Is,i??=yp(e,s,a,n);let h=n(s,f);if(Lu(e,o,s,h))e.updateValue(s,f),s++,a++,l=u.next();else if(!i.has(h))e.attach(s,e.create(s,f)),s++,a++,l=u.next();else{let m=n(s,d);o.set(m,e.detach(s)),a--}}}for(;!l.done;)mp(e,o,n,e.length,l.value),l=u.next()}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(u=>{e.destroy(u)})}function Lu(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function mp(e,t,n,r,o){if(Lu(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function yp(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Is=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function ge(e,t,n,r,o,i,s,a){dn("NgControlFlow");let c=$(),u=Re(),l=Ct(u.consts,i);return ws(c,u,e,t,n,r,o,l,256,s,a),Ro}function Ro(e,t,n,r,o,i,s,a){dn("NgControlFlow");let c=$(),u=Re(),l=Ct(u.consts,i);return ws(c,u,e,t,n,r,o,l,512,s,a),Ro}function me(e,t){dn("NgControlFlow");let n=$(),r=Un(),o=n[r]!==rt?n[r]:-1,i=o!==-1?Cs(n,De+o):void 0,s=0;if(Mt(n,r,e)){let a=M(null);try{if(i!==void 0&&Sh(i,s),e!==-1){let c=De+e,u=Cs(n,c),l=$u(n[N],c),d=Mh(u,l,n),f=Os(n,l,t,{dehydratedView:d});ks(u,f,s,vo(l,d))}}finally{M(a)}}else if(i!==void 0){let a=_h(i,s);a!==void 0&&(a[he]=t)}}var ju=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ce}};function hl(e,t){return t}var Bu=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function mt(e,t,n,r,o,i,s,a,c,u,l,d,f){dn("NgControlFlow");let p=$(),h=Re(),m=c!==void 0,b=$(),I=a?s.bind(b[We][he]):s,B=new Bu(m,I);b[De+e]=B,ws(p,h,e+1,t,n,r,o,Ct(h.consts,i),256),m&&ws(p,h,e+2,c,u,l,d,Ct(h.consts,f),512)}var Vu=class extends Pu{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-ce}at(t){return this.getLView(t)[he].$implicit}attach(t,n){let r=n[vr];this.needsIndexUpdate||=t!==this.length,ks(this.lContainer,n,t,vo(this.templateTNode,r)),hb(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,gb(this.lContainer,t),mb(this.lContainer,t)}create(t,n){let r=Cu(this.lContainer,this.templateTNode.tView.ssrId);return Os(this.hostLView,this.templateTNode,new ju(this.lContainer,n,t),{dehydratedView:r})}destroy(t){As(t[N],t)}updateValue(t,n){this.getLView(t)[he].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[he].$index=t}getLView(t){return yb(this.lContainer,t)}};function yt(e){let t=M(null),n=Wt();try{let r=$(),o=r[N],i=r[n],s=n+1,a=Cs(r,s);if(i.liveCollection===void 0){let u=$u(o,s);i.liveCollection=new Vu(a,r,u)}else i.liveCollection.reset();let c=i.liveCollection;if(pb(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=Un(),l=c.length===0;if(Mt(r,u,l)){let d=n+2,f=Cs(r,d);if(l){let p=$u(o,d),h=Mh(f,p,r),m=Os(r,p,void 0,{dehydratedView:h});ks(f,m,0,vo(p,h))}else o.firstUpdatePass&&pD(f),Sh(f,0)}}}finally{M(t)}}function Cs(e,t){return e[t]}function hb(e,t){if(e.length<=ce)return;let n=ce+t,r=e[n],o=r?r[on]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Ht];yE(i,o),zn.delete(r[zt]),o.detachedLeaveAnimationFns=void 0}}function gb(e,t){if(e.length<=ce)return;let n=ce+t,r=e[n],o=r?r[on]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function mb(e,t){return Do(e,t)}function yb(e,t){return _h(e,t)}function $u(e,t){return qi(e,t)}function Bs(e,t,n){let r=$(),o=Un();if(Mt(r,o,t)){let i=Re(),s=es();LE(s,r,e,t,r[ae],n)}return Bs}function vp(e,t,n,r,o){sl(t,e,n,o?"class":"style",r)}function Oe(e,t,n,r){let o=$(),i=o[N],s=e+De,a=i.firstCreatePass?Rh(s,o,2,t,UE,Sf(),n,r):i.data[s];if(Gt(a)){let c=o[wt].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(Ph(u),()=>(Ep(e,t,o,a,r),Oe))}}return Ep(e,t,o,a,r),Oe}function Ep(e,t,n,r,o){if(ph(r,n,e,t,Gh),Wi(r)){let i=n[N];dh(i,n,r),Zp(i,r,n)}o!=null&&il(n,r)}function ze(){let e=Re(),t=Ze(),n=hh(t);return e.firstCreatePass&&Oh(e,n),qc(n)&&Zc(),Wc(),n.classesWithoutHost!=null&&wv(n)&&vp(e,n,$(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&Iv(n)&&vp(e,n,$(),n.stylesWithoutHost,!1),ze}function Nt(e,t,n,r){return Oe(e,t,n,r),ze(),Nt}function v(e,t,n,r){let o=$(),i=o[N],s=e+De,a=i.firstCreatePass?TD(s,i,2,t,n,r):i.data[s];return ph(a,o,e,t,Gh),r!=null&&il(o,a),v}function E(){let e=Ze(),t=hh(e);return qc(t)&&Zc(),Wc(),E}function At(e,t,n,r){return v(e,t,n,r),E(),At}var Gh=(e,t,n,r,o)=>(ns(!0),Jp(t[ae],r,nu()));function vt(){return $()}function ie(e,t,n){let r=$(),o=Un();if(Mt(r,o,t)){let i=Re(),s=es();fh(s,r,e,t,r[ae],n)}return ie}var Oo="en-US";var vb=Oo;function Wh(e){typeof e=="string"&&(vb=e.toLowerCase().replace(/_/g,"-"))}function qt(e,t,n){let r=$(),o=Re(),i=Ze();return Eb(o,r,r[ae],i,e,t,n),qt}function G(e,t,n){let r=$(),o=Re(),i=Ze();return(i.type&3||n)&&kh(i,o,r,n,r[ae],e,t,ds(i,r,t)),G}function Eb(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=ds(r,t,i),kh(r,e,t,s,n,o,i,c)&&(a=!1)),a){let u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let d=0;d<l.length;d+=2){let f=l[d],p=l[d+1];c??=ds(r,t,i),fp(r,t,f,p,o,c)}if(u&&u.length)for(let d of u)c??=ds(r,t,i),fp(r,t,d,o,o,c)}}function U(e=1){return Vf(e)}function Vs(e,t,n){return KD(e,t,n),Vs}function gl(e){let t=$(),n=Re(),r=Xc();Qi(r+1);let o=ll(n,r);if(e.dirty&&Ef(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=tb(t,r);e.reset(i,Lv),e.notifyOnChanges()}return!0}return!1}function ml(){return JD($(),Xc())}function ss(e,t){return e<<17|t<<2}function Wn(e){return e>>17&32767}function Db(e){return(e&2)==2}function bb(e,t){return e&131071|t<<17}function Uu(e){return e|2}function xr(e){return(e&131068)>>2}function pu(e,t){return e&-131069|t<<2}function wb(e){return(e&1)===1}function Hu(e){return e|1}function Ib(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Wn(s),c=xr(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||gr(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let f=Wn(e[a+1]);e[r+1]=ss(f,a),f!==0&&(e[f+1]=pu(e[f+1],r)),e[a+1]=bb(e[a+1],r)}else e[r+1]=ss(a,0),a!==0&&(e[a+1]=pu(e[a+1],r)),a=r;else e[r+1]=ss(c,0),a===0?a=r:e[c+1]=pu(e[c+1],r),c=r;u&&(e[r+1]=Uu(e[r+1])),Dp(e,l,r,!0),Dp(e,l,r,!1),Cb(t,l,e,r,i),s=ss(a,c),i?t.classBindings=s:t.styleBindings=s}function Cb(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&gr(i,t)>=0&&(n[r+1]=Hu(n[r+1]))}function Dp(e,t,n,r){let o=e[n+1],i=t===null,s=r?Wn(o):xr(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];_b(c,t)&&(a=!0,e[s+1]=r?Hu(u):Uu(u)),s=r?Wn(u):xr(u)}a&&(e[n+1]=r?Uu(o):Hu(o))}function _b(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?gr(e,t)>=0:!1}function $s(e,t,n){return qh(e,t,n,!1),$s}function ko(e,t){return qh(e,t,null,!0),ko}function qh(e,t,n,r){let o=$(),i=Re(),s=Kc(2);if(i.firstUpdatePass&&Tb(i,e,s,r),t!==rt&&Mt(o,s,t)){let a=i.data[Wt()];Rb(i,a,o,o[ae],e,o[s+1]=Ob(t,n),r,s)}}function Sb(e,t){return t>=e.expandoStartIndex}function Tb(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Wt()],s=Sb(e,n);kb(i,r)&&t===null&&!s&&(t=!1),t=Mb(o,i,t,r),Ib(o,i,t,n,s,r)}}function Mb(e,t,n,r){let o=Pf(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=hu(null,e,t,n,r),n=Co(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=hu(o,e,t,n,r),i===null){let c=xb(e,t,r);c!==void 0&&Array.isArray(c)&&(c=hu(null,e,t,c[1],r),c=Co(c,t.attrs,r),Nb(e,t,r,c))}else i=Ab(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function xb(e,t,n){let r=n?t.classBindings:t.styleBindings;if(xr(r)!==0)return e[Wn(r)]}function Nb(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Wn(o)]=r}function Ab(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Co(r,s,n)}return Co(r,t.attrs,n)}function hu(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=Co(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Co(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),uf(e,s,n?!0:t[++i]))}return e===void 0?null:e}function Rb(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=wb(u)?bp(c,t,n,o,xr(u),s):void 0;if(!_s(l)){_s(i)||Db(u)&&(i=bp(c,null,n,o,a,s));let d=Bc(Wt(),n);RE(r,s,d,o,i)}}function bp(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,f=n[o+1];f===rt&&(f=d?Ke:void 0);let p=d?zi(f,r):l===r?f:void 0;if(u&&!_s(p)&&(p=zi(c,r)),_s(p)&&(a=p,s))return a;let h=e[o+1];o=s?Wn(h):xr(h)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=zi(c,r))}return a}function _s(e){return e!==void 0}function Ob(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ji(Yp(e)))),e}function kb(e,t){return(e.flags&(t?8:16))!==0}function _(e,t=""){let n=$(),r=Re(),o=e+De,i=r.firstCreatePass?Fs(r,o,1,t,null):r.data[o],s=Fb(r,n,i,t);n[o]=s,ts()&&rl(r,n,s,i),wr(i,!1)}var Fb=(e,t,n,r)=>(ns(!0),Zv(t[ae],r));function Zh(e,t,n,r=""){return Mt(e,Un(),n)?t+io(n)+r:rt}function Pb(e,t,n,r,o,i=""){let s=Af(),a=xD(e,s,n,o);return Kc(2),a?t+io(n)+r+io(o)+i:rt}function be(e){return Rt("",e),be}function Rt(e,t,n){let r=$(),o=Zh(r,e,t,n);return o!==rt&&Yh(r,Wt(),o),Rt}function Us(e,t,n,r,o){let i=$(),s=Pb(i,e,t,n,r,o);return s!==rt&&Yh(i,Wt(),s),Us}function Yh(e,t,n){let r=Bc(t,e);Yv(e[ae],r,n)}function yl(e,t,n=""){return Zh($(),e,t,n)}function Lb(e,t){let n=e[t];return n===rt?void 0:n}function jb(e,t,n,r,o,i){let s=t+n;return Mt(e,s,o)?MD(e,s+1,i?r.call(i,o):r(o)):Lb(e,s+1)}function W(e,t){let n=Re(),r,o=e+De;n.firstCreatePass?(r=Bb(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Xt(r.type,!0)),s,a=Pe(ue);try{let c=gs(!1),u=i();return gs(c),Vc(n,$(),o,u),u}finally{Pe(a)}}function Bb(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function q(e,t,n){let r=e+De,o=$(),i=vf(o,r);return Vb(o,r)?jb(o,Nf(),t,i.transform,n,i):i.transform(n)}function Vb(e,t){return e[N].data[t].pure}var Jh=(()=>{class e{applicationErrorHandler=g(_t);appRef=g(Ao);taskService=g(un);ngZone=g(re);zonelessEnabled=g(Ir);tracing=g(xt,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ye;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(ro):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(rs,{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:{this.appRef.dirtyFlags|=2;break}case 3:case 2: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?zf:ou;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(ro+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||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Qh(){return[{provide:bt,useExisting:Jh},{provide:re,useClass:oo},{provide:Ir,useValue:!0}]}function $b(){return typeof $localize<"u"&&$localize.locale||Oo}var Hs=new w("",{factory:()=>g(Hs,{optional:!0,skipSelf:!0})||$b()});var zs=class{destroyed=!1;listeners=null;errorHandler=g(Ae,{optional:!0});destroyRef=g(Be);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new x(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed){console.warn(An(953,!1));return}if(this.listeners===null)return;let n=M(null);try{for(let r of this.listeners)try{r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{M(n)}}};function qn(e){return Yd(e)}function Fo(e,t){return si(e,t?.equal)}var Xh=Symbol("InputSignalNode#UNSET"),sw=C(y({},ai),{transformFn:void 0,applyValueToInputSignal(e,t){nr(e,t)}});function eg(e,t){let n=Object.create(sw);n.value=e,n.transformFn=t?.transform;function r(){if(Xn(n),n.value===Xh){let o=null;throw new x(-950,o)}return n.value}return r[Fe]=n,r}function tg(e){return new zs}function Kh(e,t){return eg(e,t)}function aw(e){return eg(Xh,e)}var ng=(Kh.required=aw,Kh);var cw=(()=>{class e{zone=g(re);changeDetectionScheduler=g(bt);applicationRef=g(Ao);applicationErrorHandler=g(_t);_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||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),uw=new w("",{factory:()=>!1});function lw({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new re(C(y({},og()),{scheduleInRootZone:t})),[{provide:Ir,useValue:!1},{provide:re,useFactory:e},{provide:nn,multi:!0,useFactory:()=>{let n=g(cw,{optional:!0});return()=>n.initialize()}},{provide:nn,multi:!0,useFactory:()=>{let n=g(dw);return()=>{n.initialize()}}},{provide:rs,useValue:t??ru}]}function rg(e){let t=e?.scheduleInRootZone,n=lw({ngZoneFactory:()=>{let r=og(e);return r.scheduleInRootZone=t,r.shouldCoalesceEventChangeDetection&&dn("NgZone_CoalesceEvent"),new re(r)},scheduleInRootZone:t});return Xe([{provide:uw,useValue:!0},n])}function og(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var dw=(()=>{class e{subscription=new ye;initialized=!1;zone=g(re);pendingTasks=g(un);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||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var vl=new w(""),fw=new w("");function Po(e){return!e.moduleRef}function pw(e){let t=Po(e)?e.r3Injector:e.moduleRef.injector,n=t.get(re);return n.run(()=>{Po(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(_t),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Po(e)){let i=()=>t.destroy(),s=e.platformInjector.get(vl);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(vl);s.add(i),e.moduleRef.onDestroy(()=>{mo(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return gw(r,n,()=>{let i=t.get(un),s=i.add(),a=t.get(pl);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Hs,Oo);if(Wh(c||Oo),!t.get(fw,!0))return Po(e)?t.get(Ao):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Po(e)){let l=t.get(Ao);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return hw?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var hw;function gw(e,t,n){try{let r=n();return No(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var Gs=null;function mw(e=[],t){return Ce.create({name:t,providers:[{provide:ao,useValue:"platform"},{provide:vl,useValue:new Set([()=>Gs=null])},...e]})}function yw(e=[]){if(Gs)return Gs;let t=mw(e);return Gs=t,Hh(),vw(t),t}function vw(e){let t=e.get(Ms,null);yr(e,()=>{t?.forEach(n=>n())})}function Lo(){return!1}var Ew=1e4;var Bj=Ew-1e3;var ig=(()=>{class e{static __NG_ELEMENT_ID__=Dw}return e})();function Dw(e){return bw(Ze(),$(),(e&16)===16)}function bw(e,t,n){if(Gt(e)&&!n){let r=ft(e.index,t);return new ln(r,r)}else if(e.type&175){let r=t[We];return new ln(r,t)}return null}function sg(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;J(z.BootstrapApplicationStart);try{let i=o?.injector??yw(r),s=[Qh(),Wf,...n||[]],a=new Io({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return pw({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{J(z.BootstrapApplicationEnd)}}var ag=null;function hn(){return ag}function El(e){ag??=e}var jo=class{},Ws=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>g(cg),providedIn:"platform"})}return e})();var cg=(()=>{class e extends Ws{_location;_history;_doc=g(je);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return hn().getBaseHref(this._doc)}onPopState(n){let r=hn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=hn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function ww(e,t){return new x(2100,!1)}var Dl=class{createSubscription(t,n,r){return qn(()=>t.subscribe({next:n,error:r}))}dispose(t){qn(()=>t.unsubscribe())}},bl=class{createSubscription(t,n,r){return t.then(o=>n?.(o),o=>r?.(o)),{unsubscribe:()=>{n=null,r=null}}}dispose(t){t.unsubscribe()}},Iw=new bl,Cw=new Dl,Ve=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=g(_t);constructor(n){this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r),r=>this.applicationErrorHandler(r))}_selectStrategy(n){if(No(n))return Iw;if(js(n))return Cw;throw ww(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(r){return new(r||e)(ue(ig,16))};static \u0275pipe=dl({name:"async",type:e,pure:!1})}return e})();var ke=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=fn({type:e});static \u0275inj=Ut({})}return e})();function Bo(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Zn=class{};var ug="browser";var Vo=class{_doc;constructor(t){this._doc=t}manager},qs=(()=>{class e extends Vo{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(D(je))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),Js=new w(""),_l=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let o=n.filter(s=>!(s instanceof qs));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof qs);i&&this._plugins.push(i)}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new x(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(D(Js),D(re))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),wl="ng-app-id";function lg(e){for(let t of e)t.remove()}function dg(e,t){let n=t.createElement("style");return n.textContent=e,n}function Sw(e,t,n,r){let o=e.head?.querySelectorAll(`style[${wl}="${t}"],link[${wl}="${t}"]`);if(o)for(let i of o)i.removeAttribute(wl),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function Cl(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Sl=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,Sw(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,dg);r?.forEach(o=>this.addUsage(o,this.external,Cl))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(lg(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])lg(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,dg(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Cl(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(D(je),D(Ts),D(Mo,8),D(To))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),Il={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Tl=/%COMP%/g;var pg="%COMP%",Tw=`_nghost-${pg}`,Mw=`_ngcontent-${pg}`,xw=!0,Nw=new w("",{factory:()=>xw});function Aw(e){return Mw.replace(Tl,e)}function Rw(e){return Tw.replace(Tl,e)}function hg(e,t){return t.map(n=>n.replace(Tl,e))}var Ml=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(n,r,o,i,s,a,c=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=u,this.defaultRenderer=new $o(n,s,a,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof Ys?o.applyToHost(n):o instanceof Uo&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case gt.Emulated:i=new Ys(c,u,r,this.appId,l,s,a,d);break;case gt.ShadowDom:return new Zs(c,n,r,s,a,this.nonce,d,u);case gt.ExperimentalIsolatedShadowDom:return new Zs(c,n,r,s,a,this.nonce,d);default:i=new Uo(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(D(_l),D(Sl),D(Ts),D(Nw),D(je),D(re),D(Mo),D(xt,8))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),$o=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Il[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(fg(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(fg(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new x(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Il[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Il[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Tt.DashCase|Tt.Important)?t.style.setProperty(n,r,o&Tt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Tt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=hn().getGlobalEventTarget(this.doc,t),!t))throw new x(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function fg(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Zs=class extends $o{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,o,i,a),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=hg(r.id,u);for(let d of u){let f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=d,this.shadowRoot.appendChild(f)}let l=r.getExternalStyles?.();if(l)for(let d of l){let f=Cl(d,o);s&&f.setAttribute("nonce",s),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},Uo=class extends $o{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=c?hg(c,u):u,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&zn.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Ys=class extends Uo{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=Aw(u),this.hostAttr=Rw(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var Qs=class e extends jo{supportsDOMEvents=!0;static makeCurrent(){El(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=Ow();return n==null?null:kw(n)}resetBaseElement(){Ho=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Bo(document.cookie,t)}},Ho=null;function Ow(){return Ho=Ho||document.head.querySelector("base"),Ho?Ho.getAttribute("href"):null}function kw(e){return new URL(e,document.baseURI).pathname}var Fw=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),gg=["alt","control","meta","shift"],Pw={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Lw={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},mg=(()=>{class e extends Vo{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>hn().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),gg.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=Pw[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),gg.forEach(s=>{if(s!==o){let a=Lw[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(D(je))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();function xl(e,t,n){return Je(this,null,function*(){let r=y({rootComponent:e},jw(t,n));return sg(r)})}function jw(e,t){return{platformRef:t?.platformRef,appProviders:[...Hw,...e?.providers??[]],platformProviders:Uw}}function Bw(){Qs.makeCurrent()}function Vw(){return new Ae}function $w(){return qu(document),document}var Uw=[{provide:To,useValue:ug},{provide:Ms,useValue:Bw,multi:!0},{provide:je,useFactory:$w}];var Hw=[{provide:ao,useValue:"root"},{provide:Ae,useFactory:Vw},{provide:Js,useClass:qs,multi:!0},{provide:Js,useClass:mg,multi:!0},Ml,Sl,_l,{provide:Gn,useExisting:Ml},{provide:Zn,useClass:Fw},[]];var gn=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
|
|
5
|
-
`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Xs=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}},ea=class{encodeKey(t){return yg(t)}encodeValue(t){return yg(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function zw(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var Gw=/%(\d[a-f0-9])/gi,Ww={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function yg(e){return encodeURIComponent(e).replace(Gw,(t,n)=>Ww[n]??t)}function Ks(e){return`${e}`}var Zt=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new ea,t.fromString){if(t.fromObject)throw new x(2805,!1);this.map=zw(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Ks):[Ks(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Ks(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(Ks(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};function qw(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function vg(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Eg(e){return typeof Blob<"u"&&e instanceof Blob}function Dg(e){return typeof FormData<"u"&&e instanceof FormData}function Zw(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var bg="Content-Type",wg="Accept",Ig="text/plain",Cg="application/json",Yw=`${Cg}, ${Ig}, */*`,Rr=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(qw(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new x(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache}if(this.headers??=new gn,this.context??=new Xs,!this.params)this.params=new Zt,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||vg(this.body)||Eg(this.body)||Dg(this.body)||Zw(this.body)?this.body:this.body instanceof Zt?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Dg(this.body)?null:Eg(this.body)?this.body.type||null:vg(this.body)?null:typeof this.body=="string"?Ig:this.body instanceof Zt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Cg:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,u=t.redirect||this.redirect,l=t.credentials||this.credentials,d=t.referrer??this.referrer,f=t.integrity||this.integrity,p=t.referrerPolicy||this.referrerPolicy,h=t.transferCache??this.transferCache,m=t.timeout??this.timeout,b=t.body!==void 0?t.body:this.body,I=t.withCredentials??this.withCredentials,B=t.reportProgress??this.reportProgress,de=t.headers||this.headers,F=t.params||this.params,ee=t.context??this.context;return t.setHeaders!==void 0&&(de=Object.keys(t.setHeaders).reduce((K,Me)=>K.set(Me,t.setHeaders[Me]),de)),t.setParams&&(F=Object.keys(t.setParams).reduce((K,Me)=>K.set(Me,t.setParams[Me]),F)),new e(n,r,b,{params:F,headers:de,context:ee,reportProgress:B,responseType:o,withCredentials:I,transferCache:h,keepalive:i,cache:a,priority:s,timeout:m,mode:c,redirect:u,credentials:l,referrer:d,integrity:f,referrerPolicy:p})}},Jn=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(Jn||{}),kr=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new gn,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}},ta=class e extends kr{constructor(t={}){super(t)}type=Jn.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},zo=class e extends kr{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Jn.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},Or=class extends kr{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},Jw=200,Qw=204;var Kw=new w("");var Xw=/^\)\]\}',?\n/;var Al=(()=>{class e{xhrFactory;tracingService=g(xt,{optional:!0});constructor(n){this.xhrFactory=n}maybePropagateTrace(n){return this.tracingService?.propagate?this.tracingService.propagate(n):n}handle(n){if(n.method==="JSONP")throw new x(-2800,!1);let r=this.xhrFactory;return at(null).pipe(pe(()=>new j(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((b,I)=>s.setRequestHeader(b,I.join(","))),n.headers.has(wg)||s.setRequestHeader(wg,Yw),!n.headers.has(bg)){let b=n.detectContentTypeHeader();b!==null&&s.setRequestHeader(bg,b)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let b=n.responseType.toLowerCase();s.responseType=b!=="json"?b:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let b=s.statusText||"OK",I=new gn(s.getAllResponseHeaders()),B=s.responseURL||n.url;return c=new ta({headers:I,status:s.status,statusText:b,url:B}),c},l=this.maybePropagateTrace(()=>{let{headers:b,status:I,statusText:B,url:de}=u(),F=null;I!==Qw&&(F=typeof s.response>"u"?s.responseText:s.response),I===0&&(I=F?Jw:0);let ee=I>=200&&I<300;if(n.responseType==="json"&&typeof F=="string"){let K=F;F=F.replace(Xw,"");try{F=F!==""?JSON.parse(F):null}catch(Me){F=K,ee&&(ee=!1,F={error:Me,text:F})}}ee?(i.next(new zo({body:F,headers:b,status:I,statusText:B,url:de||void 0})),i.complete()):i.error(new Or({error:F,headers:b,status:I,statusText:B,url:de||void 0}))}),d=this.maybePropagateTrace(b=>{let{url:I}=u(),B=new Or({error:b,status:s.status||0,statusText:s.statusText||"Unknown Error",url:I||void 0});i.error(B)}),f=d;n.timeout&&(f=this.maybePropagateTrace(b=>{let{url:I}=u(),B=new Or({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:I||void 0});i.error(B)}));let p=!1,h=this.maybePropagateTrace(b=>{p||(i.next(u()),p=!0);let I={type:Jn.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(I.total=b.total),n.responseType==="text"&&s.responseText&&(I.partialText=s.responseText),i.next(I)}),m=this.maybePropagateTrace(b=>{let I={type:Jn.UploadProgress,loaded:b.loaded};b.lengthComputable&&(I.total=b.total),i.next(I)});return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",f),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",h),a!==null&&s.upload&&s.upload.addEventListener("progress",m)),s.send(a),i.next({type:Jn.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",f),n.reportProgress&&(s.removeEventListener("progress",h),a!==null&&s.upload&&s.upload.removeEventListener("progress",m)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(D(Zn))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function eI(e,t){return t(e)}function tI(e,t,n){return(r,o)=>yr(n,()=>t(r,i=>e(i,o)))}var _g=new w("",{factory:()=>[]}),Sg=new w(""),Tg=new w("",{factory:()=>!0});var Rl=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=D(Al),o},providedIn:"root"})}return e})();var na=(()=>{class e{backend;injector;chain=null;pendingTasks=g(Cr);contributeToStability=g(Tg);constructor(n,r){this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(_g),...this.injector.get(Sg,[])]));this.chain=r.reduceRight((o,i)=>tI(o,i,this.injector),eI)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Ka(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(D(Rl),D(Le))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ol=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=D(na),o},providedIn:"root"})}return e})();function Nl(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer,referrerPolicy:e.referrerPolicy}}var ra=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Rr)i=n;else{let c;o.headers instanceof gn?c=o.headers:c=new gn(o.headers);let u;o.params&&(o.params instanceof Zt?u=o.params:u=new Zt({fromObject:o.params})),i=new Rr(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let s=at(i).pipe(Yr(c=>this.handler.handle(c)));if(n instanceof Rr||o.observe==="events")return s;let a=s.pipe(fe(c=>c instanceof zo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(L(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new x(2806,!1);return c.body}));case"blob":return a.pipe(L(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new x(2807,!1);return c.body}));case"text":return a.pipe(L(c=>{if(c.body!==null&&typeof c.body!="string")throw new x(2808,!1);return c.body}));default:return a.pipe(L(c=>c.body))}case"response":return a;default:throw new x(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Zt().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Nl(o,r))}post(n,r,o={}){return this.request("POST",n,Nl(o,r))}put(n,r,o={}){return this.request("PUT",n,Nl(o,r))}static \u0275fac=function(r){return new(r||e)(D(Ol))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var nI=new w("",{factory:()=>!0}),rI="XSRF-TOKEN",oI=new w("",{factory:()=>rI}),iI="X-XSRF-TOKEN",sI=new w("",{factory:()=>iI}),aI=(()=>{class e{cookieName=g(oI);doc=g(je);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Bo(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Mg=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=D(aI),o},providedIn:"root"})}return e})();function cI(e,t){if(!g(nI)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=g(Ws).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch(o){return t(e)}let n=g(Mg).getToken(),r=g(sI);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function kl(...e){let t=[ra,na,{provide:Ol,useExisting:na},{provide:Rl,useFactory:()=>g(Kw,{optional:!0})??g(Al)},{provide:_g,useValue:cI,multi:!0}];for(let n of e)t.push(...n.\u0275providers);return Xe(t)}function xg(e){e||(e=g(Be));let t=new j(n=>{if(e.destroyed){n.next();return}return e.onDestroy(n.next.bind(n))});return n=>n.pipe(Tn(t))}function oa(e,t){let r=!t?.manualCleanup?t?.injector?.get(Be)??g(Be):null,o=lI(t?.equal),i;t?.requireSync?i=pt({kind:0},{equal:o}):i=pt({kind:1,value:t?.initialValue},{equal:o});let s,a=e.subscribe({next:c=>i.set({kind:1,value:c}),error:c=>{i.set({kind:2,error:c}),s?.()},complete:()=>{s?.()}});if(t?.requireSync&&i().kind===0)throw new x(601,!1);return s=r?.onDestroy(a.unsubscribe.bind(a)),Fo(()=>{let c=i();switch(c.kind){case 1:return c.value;case 2:throw c.error;case 0:throw new x(601,!1)}},{equal:t?.equal})}function lI(e=Object.is){return(t,n)=>t.kind===1&&n.kind===1&&e(t.value,n.value)}var Ll={};function $l(e,t){if(Ll[e]=(Ll[e]||0)+1,typeof t=="function")return Fl(e,(...r)=>C(y({},t(...r)),{type:e}));switch(t?t._as:"empty"){case"empty":return Fl(e,()=>({type:e}));case"props":return Fl(e,r=>C(y({},r),{type:e}));default:throw new Error("Unexpected config.")}}function Se(){return{_as:"props",_p:void 0}}function Fl(e,t){return Object.defineProperty(t,"type",{value:e,writable:!1})}function dI(e){return e.charAt(0).toUpperCase()+e.substring(1)}function fI(e){return e.charAt(0).toLowerCase()+e.substring(1)}function pI(e,t){if(e==null)throw new Error(`${t} must be defined.`)}function Lr(e){let{source:t,events:n}=e;return Object.keys(n).reduce((r,o)=>C(y({},r),{[hI(o)]:$l(gI(t,o),n[o])}),{})}function we(){return Se()}function hI(e){return e.trim().split(" ").map((t,n)=>n===0?fI(t):dI(t)).join("")}function gI(e,t){return`[${e}] ${t}`}var qo="@ngrx/store/init",Ot=(()=>{class e extends Lt{constructor(){super({type:qo})}next(n){if(typeof n=="function")throw new TypeError(`
|
|
3
|
+
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function bn(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ye=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(P(r))try{r()}catch(i){t=i instanceof di?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{yd(i)}catch(s){t=t??[],s instanceof di?t=[...t,...s.errors]:t.push(s)}}if(t)throw new di(t)}}add(t){var n;if(t&&t!==this)if(this.closed)yd(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&bn(n,t)}remove(t){let{_finalizers:n}=this;n&&bn(n,t),t instanceof e&&t._removeParent(this)}};ye.EMPTY=(()=>{let e=new ye;return e.closed=!0,e})();var za=ye.EMPTY;function fi(e){return e instanceof ye||e&&"closed"in e&&P(e.remove)&&P(e.add)&&P(e.unsubscribe)}function yd(e){P(e)?e():e.unsubscribe()}var it={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var rr={setTimeout(e,t,...n){let{delegate:r}=rr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=rr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function pi(e){rr.setTimeout(()=>{let{onUnhandledError:t}=it;if(t)t(e);else throw e})}function Pt(){}var vd=Ga("C",void 0,void 0);function Ed(e){return Ga("E",void 0,e)}function Dd(e){return Ga("N",e,void 0)}function Ga(e,t,n){return{kind:e,value:t,error:n}}var wn=null;function or(e){if(it.useDeprecatedSynchronousErrorHandling){let t=!wn;if(t&&(wn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=wn;if(wn=null,n)throw r}}else e()}function bd(e){it.useDeprecatedSynchronousErrorHandling&&wn&&(wn.errorThrown=!0,wn.error=e)}var Cn=class extends ye{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,fi(t)&&t.add(this)):this.destination=ty}static create(t,n,r){return new st(t,n,r)}next(t){this.isStopped?qa(Dd(t),this):this._next(t)}error(t){this.isStopped?qa(Ed(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?qa(vd,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Xm=Function.prototype.bind;function Wa(e,t){return Xm.call(e,t)}var Za=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){hi(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){hi(r)}else hi(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){hi(n)}}},st=class extends Cn{constructor(t,n,r){super();let o;if(P(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&it.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Wa(t.next,i),error:t.error&&Wa(t.error,i),complete:t.complete&&Wa(t.complete,i)}):o=t}this.destination=new Za(o)}};function hi(e){it.useDeprecatedSynchronousErrorHandling?bd(e):pi(e)}function ey(e){throw e}function qa(e,t){let{onStoppedNotification:n}=it;n&&rr.setTimeout(()=>n(e,t))}var ty={closed:!0,next:Pt,error:ey,complete:Pt};var ir=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ge(e){return e}function wd(e){return e.length===0?Ge:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var j=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=ry(n)?n:new st(n,r,o);return or(()=>{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=Cd(r),new r((o,i)=>{let s=new st({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)}[ir](){return this}pipe(...n){return wd(n)(this)}toPromise(n){return n=Cd(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Cd(e){var t;return(t=e??it.Promise)!==null&&t!==void 0?t:Promise}function ny(e){return e&&P(e.next)&&P(e.error)&&P(e.complete)}function ry(e){return e&&e instanceof Cn||ny(e)&&fi(e)}function oy(e){return P(e?.lift)}function R(e){return t=>{if(oy(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function O(e,t,n,r,o){return new Wr(e,t,n,r,o)}var Wr=class extends Cn{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var Id=Jt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ve=(()=>{class e extends j{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new gi(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Id}next(n){or(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){or(()=>{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(){or(()=>{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?za:(this.currentObservers=null,i.push(n),new ye(()=>{this.currentObservers=null,bn(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new j;return n.source=this,n}}return e.create=(t,n)=>new gi(t,n),e})(),gi=class extends ve{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:za}};var Lt=class extends ve{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var qr={now(){return(qr.delegate||Date).now()},delegate:void 0};var sr=class extends ve{constructor(t=1/0,n=1/0,r=qr){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<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 mi=class extends ye{constructor(t,n){super()}schedule(t,n=0){return this}};var Zr={setInterval(e,t,...n){let{delegate:r}=Zr;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Zr;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var ar=class extends mi{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return Zr.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&Zr.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,bn(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var cr=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};cr.now=qr.now;var ur=class extends cr{constructor(t,n=cr.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var yi=new ur(ar);var vi=class extends ar{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}schedule(t,n=0){return n>0?super.schedule(t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)}execute(t,n){return n>0||this.closed?super.execute(t,n):this._execute(t,n)}requestAsyncId(t,n,r=0){return r!=null&&r>0||r==null&&this.delay>0?super.requestAsyncId(t,n,r):(t.flush(this),0)}};var Ei=class extends ur{};var Yr=new Ei(vi);var se=new j(e=>e.complete());function _d(e){return e&&P(e.schedule)}function Ya(e){return e[e.length-1]}function Di(e){return P(Ya(e))?e.pop():void 0}function lr(e){return _d(Ya(e))?e.pop():void 0}function Sd(e,t){return typeof Ya(e)=="number"?e.pop():t}function Md(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function Td(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function In(e){return this instanceof In?(this.v=e,this):new In(e)}function xd(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(p){return function(h){return Promise.resolve(h).then(p,d)}}function a(p,h){r[p]&&(o[p]=function(m){return new Promise(function(b,C){i.push([p,m,b,C])>1||c(p,m)})},h&&(o[p]=h(o[p])))}function c(p,h){try{u(r[p](h))}catch(m){f(i[0][3],m)}}function u(p){p.value instanceof In?Promise.resolve(p.value.v).then(l,d):f(i[0][2],p)}function l(p){c("next",p)}function d(p){c("throw",p)}function f(p,h){p(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Nd(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Td=="function"?Td(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var bi=e=>e&&typeof e.length=="number"&&typeof e!="function";function wi(e){return P(e?.then)}function Ci(e){return P(e[ir])}function Ii(e){return Symbol.asyncIterator&&P(e?.[Symbol.asyncIterator])}function _i(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function iy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Si=iy();function Ti(e){return P(e?.[Si])}function Mi(e){return xd(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield In(n.read());if(o)return yield In(void 0);yield yield In(r)}}finally{n.releaseLock()}})}function xi(e){return P(e?.getReader)}function Y(e){if(e instanceof j)return e;if(e!=null){if(Ci(e))return sy(e);if(bi(e))return ay(e);if(wi(e))return cy(e);if(Ii(e))return Ad(e);if(Ti(e))return uy(e);if(xi(e))return ly(e)}throw _i(e)}function sy(e){return new j(t=>{let n=e[ir]();if(P(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ay(e){return new j(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function cy(e){return new j(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,pi)})}function uy(e){return new j(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Ad(e){return new j(t=>{dy(e,t).catch(n=>t.error(n))})}function ly(e){return Ad(Mi(e))}function dy(e,t){var n,r,o,i;return Md(this,void 0,void 0,function*(){try{for(n=Nd(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function Ne(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function jt(e,t=0){return R((n,r)=>{n.subscribe(O(r,o=>Ne(r,e,()=>r.next(o),t),()=>Ne(r,e,()=>r.complete(),t),o=>Ne(r,e,()=>r.error(o),t)))})}function Ni(e,t=0){return R((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Rd(e,t){return Y(e).pipe(Ni(t),jt(t))}function Od(e,t){return Y(e).pipe(Ni(t),jt(t))}function kd(e,t){return new j(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Fd(e,t){return new j(n=>{let r;return Ne(n,t,()=>{r=e[Si](),Ne(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>P(r?.return)&&r.return()})}function Ai(e,t){if(!e)throw new Error("Iterable cannot be null");return new j(n=>{Ne(n,t,()=>{let r=e[Symbol.asyncIterator]();Ne(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Pd(e,t){return Ai(Mi(e),t)}function Ld(e,t){if(e!=null){if(Ci(e))return Rd(e,t);if(bi(e))return kd(e,t);if(wi(e))return Od(e,t);if(Ii(e))return Ai(e,t);if(Ti(e))return Fd(e,t);if(xi(e))return Pd(e,t)}throw _i(e)}function _n(e,t){return t?Ld(e,t):Y(e)}function at(...e){let t=lr(e);return _n(e,t)}function jd(e,t){let n=P(e)?e:()=>e,r=o=>o.error(n());return new j(t?o=>t.schedule(r,0,o):r)}var Qt=class e{constructor(t,n,r){this.kind=t,this.value=n,this.error=r,this.hasValue=t==="N"}observe(t){return Ja(this,t)}do(t,n,r){let{kind:o,value:i,error:s}=this;return o==="N"?t?.(i):o==="E"?n?.(s):r?.()}accept(t,n,r){var o;return P((o=t)===null||o===void 0?void 0:o.next)?this.observe(t):this.do(t,n,r)}toObservable(){let{kind:t,value:n,error:r}=this,o=t==="N"?at(n):t==="E"?jd(()=>r):t==="C"?se:0;if(!o)throw new TypeError(`Unexpected notification kind ${t}`);return o}static createNext(t){return new e("N",t)}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}};Qt.completeNotification=new Qt("C");function Ja(e,t){var n,r,o;let{kind:i,value:s,error:a}=e;if(typeof i!="string")throw new TypeError('Invalid notification, missing "kind"');i==="N"?(n=t.next)===null||n===void 0||n.call(t,s):i==="E"?(r=t.error)===null||r===void 0||r.call(t,a):(o=t.complete)===null||o===void 0||o.call(t)}var Bd=Jt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Bt(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new st({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(t.defaultValue):o(new Bd)}});e.subscribe(i)})}function Vd(e){return e instanceof Date&&!isNaN(e)}var fy=Jt(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n});function Qa(e,t){let{first:n,each:r,with:o=py,scheduler:i=t??yi,meta:s=null}=Vd(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return R((a,c)=>{let u,l,d=null,f=0,p=h=>{l=Ne(c,i,()=>{try{u.unsubscribe(),Y(o({meta:s,lastValue:d,seen:f})).subscribe(c)}catch(m){c.error(m)}},h)};u=a.subscribe(O(c,h=>{l?.unsubscribe(),f++,c.next(d=h),r>0&&p(r)},void 0,void 0,()=>{l?.closed||l?.unsubscribe(),d=null})),!f&&p(n!=null?typeof n=="number"?n:+n-i.now():r)})}function py(e){throw new fy(e)}function L(e,t){return R((n,r)=>{let o=0;n.subscribe(O(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:hy}=Array;function gy(e,t){return hy(t)?e(...t):e(t)}function $d(e){return L(t=>gy(e,t))}var{isArray:my}=Array,{getPrototypeOf:yy,prototype:vy,keys:Ey}=Object;function Ud(e){if(e.length===1){let t=e[0];if(my(t))return{args:t,keys:null};if(Dy(t)){let n=Ey(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Dy(e){return e&&typeof e=="object"&&yy(e)===vy}function Hd(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Kt(...e){let t=lr(e),n=Di(e),{args:r,keys:o}=Ud(e);if(r.length===0)return _n([],t);let i=new j(by(r,t,o?s=>Hd(o,s):Ge));return n?i.pipe($d(n)):i}function by(e,t,n=Ge){return r=>{zd(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)zd(t,()=>{let u=_n(e[c],t),l=!1;u.subscribe(O(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function zd(e,t,n){e?Ne(n,e,t):t()}function Gd(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,f=()=>{d&&!c.length&&!u&&t.complete()},p=m=>u<r?h(m):c.push(m),h=m=>{i&&t.next(m),u++;let b=!1;Y(n(m,l++)).subscribe(O(t,C=>{o?.(C),i?p(C):t.next(C)},()=>{b=!0},void 0,()=>{if(b)try{for(u--;c.length&&u<r;){let C=c.shift();s?Ne(t,s,()=>h(C)):h(C)}f()}catch(C){t.error(C)}}))};return e.subscribe(O(t,p,()=>{d=!0,f()})),()=>{a?.()}}function Et(e,t,n=1/0){return P(t)?Et((r,o)=>L((i,s)=>t(r,i,o,s))(Y(e(r,o))),n):(typeof t=="number"&&(n=t),R((r,o)=>Gd(r,o,e,n)))}function Wd(e=1/0){return Et(Ge,e)}function Sn(...e){let t=lr(e),n=Sd(e,1/0),r=e;return r.length?r.length===1?Y(r[0]):Wd(n)(_n(r,t)):se}function fe(e,t){return R((n,r)=>{let o=0;n.subscribe(O(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Ce(e){return R((t,n)=>{let r=null,o=!1,i;r=t.subscribe(O(n,void 0,void 0,s=>{i=Y(e(s,Ce(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function qd(e,t,n,r,o){return(i,s)=>{let a=n,c=t,u=0;i.subscribe(O(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function Jr(e,t){return P(t)?Et(e,t,1):Et(e,1)}function Qr(e,t=yi){return R((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u)}};function c(){let u=s+e,l=t.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return}a()}n.subscribe(O(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Kr(e){return e<=0?()=>se:R((t,n)=>{let r=0;t.subscribe(O(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Ka(){return R((e,t)=>{e.subscribe(O(t,Pt))})}function Xa(){return R((e,t)=>{e.subscribe(O(t,n=>Ja(n,t)))})}function dr(e,t=Ge){return e=e??wy,R((n,r)=>{let o,i=!0;n.subscribe(O(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function wy(e,t){return e===t}function fr(e,t){return t?n=>n.pipe(fr((r,o)=>Y(e(r,o)).pipe(L((i,s)=>t(r,i,o,s))))):R((n,r)=>{let o=0,i=null,s=!1;n.subscribe(O(r,a=>{i||(i=O(r,void 0,()=>{i=null,s&&r.complete()}),Y(e(a,o++)).subscribe(i))},()=>{s=!0,!i&&r.complete()}))})}function ec(e){return R((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Ri(e,t,n,r){return R((o,i)=>{let s;!t||typeof t=="function"?s=t:{duration:n,element:s,connector:r}=t;let a=new Map,c=h=>{a.forEach(h),h(i)},u=h=>c(m=>m.error(h)),l=0,d=!1,f=new Wr(i,h=>{try{let m=e(h),b=a.get(m);if(!b){a.set(m,b=r?r():new ve);let C=p(m,b);if(i.next(C),n){let B=O(b,()=>{b.complete(),B?.unsubscribe()},void 0,void 0,()=>a.delete(m));f.add(Y(n(C)).subscribe(B))}}b.next(s?s(h):h)}catch(m){u(m)}},()=>c(h=>h.complete()),u,()=>a.clear(),()=>(d=!0,l===0));o.subscribe(f);function p(h,m){let b=new j(C=>{l++;let B=m.subscribe(C);return()=>{B.unsubscribe(),--l===0&&d&&f.unsubscribe()}});return b.key=h,b}})}function tc(){return R((e,t)=>{e.subscribe(O(t,n=>{t.next(Qt.createNext(n))},()=>{t.next(Qt.createComplete()),t.complete()},n=>{t.next(Qt.createError(n)),t.complete()}))})}function nc(){return R((e,t)=>{let n,r=!1;e.subscribe(O(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0}))})}function rc(...e){let t=e.length;if(t===0)throw new Error("list of properties cannot be empty.");return L(n=>{let r=n;for(let o=0;o<t;o++){let i=r?.[e[o]];if(typeof i<"u")r=i;else return}return r})}function Xr(e,t){return R(qd(e,t,arguments.length>=2,!0))}function ic(e={}){let{connector:t=()=>new ve,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,c,u=0,l=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},p=()=>{f(),s=c=void 0,l=d=!1},h=()=>{let m=s;p(),m?.unsubscribe()};return R((m,b)=>{u++,!d&&!l&&f();let C=c=c??t();b.add(()=>{u--,u===0&&!d&&!l&&(a=oc(h,o))}),C.subscribe(b),!s&&u>0&&(s=new st({next:B=>C.next(B),error:B=>{d=!0,f(),a=oc(p,n,B),C.error(B)},complete:()=>{l=!0,f(),a=oc(p,r),C.complete()}}),Y(m).subscribe(s))})(i)}}function oc(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new st({next:()=>{r.unsubscribe(),e()}});return Y(t(...n)).subscribe(r)}function sc(e){return fe((t,n)=>e<=n)}function pe(e,t){return R((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(O(r,c=>{o?.unsubscribe();let u=0,l=i++;Y(e(c,l)).subscribe(o=O(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Tn(e){return R((t,n)=>{Y(e).subscribe(O(n,()=>n.complete(),Pt)),!n.closed&&t.subscribe(n)})}function ct(e,t,n){let r=P(e)||t||n?{next:e,error:t,complete:n}:e;return r?R((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(O(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):Ge}function Qe(...e){let t=Di(e);return R((n,r)=>{let o=e.length,i=new Array(o),s=e.map(()=>!1),a=!1;for(let c=0;c<o;c++)Y(e[c]).subscribe(O(r,u=>{i[c]=u,!a&&!s[c]&&(s[c]=!0,(a=s.every(Ge))&&(s=null))},Pt));n.subscribe(O(r,c=>{if(a){let u=[c,...i];r.next(t?t(...u):u)}}))})}var ac;function Oi(){return ac}function Dt(e){let t=ac;return ac=e,t}var Zd=Symbol("NotFound");function pr(e){return e===Zd||e?.name==="\u0275NotFound"}function Yd(e){let t=M(null);try{return e()}finally{M(t)}}var bc="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",x=class extends Error{code;constructor(t,n){super(An(t,n)),this.code=t}};function Cy(e){return`NG0${Math.abs(e)}`}function An(e,t){return`${Cy(e)}${t?": "+t:""}`}function X(e){for(let t in e)if(e[t]===X)return t;throw Error("")}function $i(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map($i).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
|
|
4
|
+
`);return r>=0?n.slice(0,r):n}function wc(e,t){return e?t?`${e} ${t}`:e:t||""}var Iy=X({__forward_ref__:X});function Ui(e){return e.__forward_ref__=Ui,e}function He(e){return Cc(e)?e():e}function Cc(e){return typeof e=="function"&&e.hasOwnProperty(Iy)&&e.__forward_ref__===Ui}function S(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ut(e){return{providers:e.providers||[],imports:e.imports||[]}}function Hi(e){return _y(e,zi)}function _y(e,t){return e.hasOwnProperty(t)&&e[t]||null}function Sy(e){let t=e?.[zi]??null;return t||null}function uc(e){return e&&e.hasOwnProperty(Fi)?e[Fi]:null}var zi=X({\u0275prov:X}),Fi=X({\u0275inj:X}),w=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=S({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ic(e){return e&&!!e.\u0275providers}var _c=X({\u0275cmp:X}),Sc=X({\u0275dir:X}),Tc=X({\u0275pipe:X});var to=X({\u0275fac:X}),Rn=X({__NG_ELEMENT_ID__:X}),Jd=X({__NG_ENV_ID__:X});function On(e){return xc(e,"@Component"),e[_c]||null}function Mc(e){return xc(e,"@Directive"),e[Sc]||null}function ef(e){return xc(e,"@Pipe"),e[Tc]||null}function xc(e,t){if(e==null)throw new x(-919,!1)}function so(e){return typeof e=="string"?e:e==null?"":String(e)}var tf=X({ngErrorCode:X}),Ty=X({ngErrorMessage:X}),My=X({ngTokenPath:X});function Nc(e,t){return nf("",-200,t)}function Gi(e,t){throw new x(-201,!1)}function nf(e,t,n){let r=new x(t,e);return r[tf]=t,r[Ty]=e,n&&(r[My]=n),r}function xy(e){return e[tf]}var lc;function rf(){return lc}function Pe(e){let t=lc;return lc=e,t}function Ac(e,t,n){let r=Hi(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;Gi(e,"")}var Ny={},Mn=Ny,dc="__NG_DI_FLAG__",fc=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=xn(n)||0;try{return this.injector.get(t,r&8?null:Mn,r)}catch(o){if(pr(o))return o;throw o}}};function Ay(e,t=0){let n=Oi();if(n===void 0)throw new x(-203,!1);if(n===null)return Ac(e,void 0,t);{let r=Ry(t),o=n.retrieve(e,r);if(pr(o)){if(r.optional)return null;throw o}return o}}function D(e,t=0){return(rf()||Ay)(He(e),t)}function g(e,t){return D(e,xn(t))}function xn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ry(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function pc(e){let t=[];for(let n=0;n<e.length;n++){let r=He(e[n]);if(Array.isArray(r)){if(r.length===0)throw new x(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=Oy(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(D(o,i))}else t.push(D(r))}return t}function of(e,t){return e[dc]=t,e.prototype[dc]=t,e}function Oy(e){return e[dc]}function Xt(e,t){let n=e.hasOwnProperty(to);return n?e[to]:null}function sf(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function af(e){return e.flat(Number.POSITIVE_INFINITY)}function Wi(e,t){e.forEach(n=>Array.isArray(n)?Wi(n,t):t(n))}function Rc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ao(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function cf(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function uf(e,t,n){let r=gr(e,t);return r>=0?e[r|1]=n:(r=~r,cf(e,r,t,n)),r}function qi(e,t){let n=gr(e,t);if(n>=0)return e[n|1]}function gr(e,t){return ky(e,t,1)}function ky(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var kn={},Ke=[],nn=new w(""),Oc=new w("",-1),kc=new w(""),no=class{get(t,n=Mn){if(n===Mn){let o=nf("",-201);throw o.name="\u0275NotFound",o}return n}};function Xe(e){return{\u0275providers:e}}function mr(e){return Xe([{provide:nn,multi:!0,useValue:e}])}function lf(...e){return{\u0275providers:Fc(!0,e),\u0275fromNgModule:!0}}function Fc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Wi(t,s=>{let a=s;Pi(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&df(o,i),n}function df(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Pc(o,i=>{t(i,r)})}}function Pi(e,t,n,r){if(e=He(e),!e)return!1;let o=null,i=uc(e),s=!i&&On(e);if(!i&&!s){let c=e.ngModule;if(i=uc(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Pi(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;Wi(i.imports,l=>{Pi(l,t,n,r)&&(u||=[],u.push(l))}),u!==void 0&&df(u,t)}if(!a){let u=Xt(o)||(()=>new o);t({provide:o,useFactory:u,deps:Ke},o),t({provide:kc,useValue:o,multi:!0},o),t({provide:nn,useValue:()=>D(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Pc(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Pc(e,t){for(let n of e)Ic(n)&&(n=n.\u0275providers),Array.isArray(n)?Pc(n,t):t(n)}var Fy=X({provide:String,useValue:X});function ff(e){return e!==null&&typeof e=="object"&&Fy in e}function Py(e){return!!(e&&e.useExisting)}function Ly(e){return!!(e&&e.useFactory)}function Li(e){return typeof e=="function"}var co=new w(""),ki={},Qd={},cc;function uo(){return cc===void 0&&(cc=new no),cc}var Le=class{},Nn=class extends Le{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,gc(t,s=>this.processProvider(s)),this.records.set(Oc,hr(void 0,this)),o.has("environment")&&this.records.set(Le,hr(void 0,this));let i=this.records.get(co);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(kc,Ke,{self:!0}))}retrieve(t,n){let r=xn(n)||0;try{return this.get(t,Mn,r)}catch(o){if(pr(o))return o;throw o}}destroy(){eo(this),this._destroyed=!0;let t=M(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(),M(t)}}onDestroy(t){return eo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){eo(this);let n=Dt(this),r=Pe(void 0),o;try{return t()}finally{Dt(n),Pe(r)}}get(t,n=Mn,r){if(eo(this),t.hasOwnProperty(Jd))return t[Jd](this);let o=xn(r),i,s=Dt(this),a=Pe(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=Uy(t)&&Hi(t);l&&this.injectableDefInScope(l)?u=hr(hc(t),ki):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?uo():this.parent;return n=o&8&&n===Mn?null:n,c.get(t,n)}catch(c){let u=xy(c);throw u===-200||u===-201?new x(u,null):c}finally{Pe(a),Dt(s)}}resolveInjectorInitializers(){let t=M(null),n=Dt(this),r=Pe(void 0),o;try{let i=this.get(nn,Ke,{self:!0});for(let s of i)s()}finally{Dt(n),Pe(r),M(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=He(t);let n=Li(t)?t:He(t&&t.provide),r=By(t);if(!Li(t)&&t.multi===!0){let o=this.records.get(n);o||(o=hr(void 0,ki,!0),o.factory=()=>pc(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=M(null);try{if(n.value===Qd)throw Nc("");return n.value===ki&&(n.value=Qd,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&$y(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{M(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=He(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function hc(e){let t=Hi(e),n=t!==null?t.factory:Xt(e);if(n!==null)return n;if(e instanceof w)throw new x(-204,!1);if(e instanceof Function)return jy(e);throw new x(-204,!1)}function jy(e){if(e.length>0)throw new x(-204,!1);let n=Sy(e);return n!==null?()=>n.factory(e):()=>new e}function By(e){if(ff(e))return hr(void 0,e.useValue);{let t=pf(e);return hr(t,ki)}}function pf(e,t,n){let r;if(Li(e)){let o=He(e);return Xt(o)||hc(o)}else if(ff(e))r=()=>He(e.useValue);else if(Ly(e))r=()=>e.useFactory(...pc(e.deps||[]));else if(Py(e))r=(o,i)=>D(He(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=He(e&&(e.useClass||e.provide));if(Vy(e))r=()=>new o(...pc(e.deps));else return Xt(o)||hc(o)}return r}function eo(e){if(e.destroyed)throw new x(-205,!1)}function hr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Vy(e){return!!e.deps}function $y(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Uy(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function gc(e,t){for(let n of e)Array.isArray(n)?gc(n,t):n&&Ic(n)?gc(n.\u0275providers,t):t(n)}function yr(e,t){let n;e instanceof Nn?(eo(e),n=e):n=new fc(e);let r,o=Dt(n),i=Pe(void 0);try{return t()}finally{Dt(o),Pe(i)}}function hf(){return rf()!==void 0||Oi()!=null}var ut=0,N=1,k=2,Ee=3,et=4,tt=5,vr=6,Er=7,he=8,Ht=9,wt=10,ae=11,Dr=12,Lc=13,Fn=14,We=15,rn=16,Pn=17,Ct=18,zt=19,jc=20,$t=21,Zi=22,en=23,qe=24,Ln=25,on=26,De=27,gf=1,Bc=6,sn=7,lo=8,jn=9,ce=10;function an(e){return Array.isArray(e)&&typeof e[gf]=="object"}function lt(e){return Array.isArray(e)&&e[gf]===!0}function Vc(e){return(e.flags&4)!==0}function Gt(e){return e.componentOffset>-1}function Yi(e){return(e.flags&1)===1}function Bn(e){return!!e.template}function br(e){return(e[k]&512)!==0}function Vn(e){return(e[k]&256)===256}var mf="svg",yf="math";function nt(e){for(;Array.isArray(e);)e=e[ut];return e}function $c(e,t){return nt(t[e])}function dt(e,t){return nt(t[e.index])}function Ji(e,t){return e.data[t]}function vf(e,t){return e[t]}function Uc(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function ft(e,t){let n=t[e];return an(n)?n:n[ut]}function Ef(e){return(e[k]&4)===4}function Qi(e){return(e[k]&128)===128}function Df(e){return lt(e[Ee])}function It(e,t){return t==null?null:e[t]}function Hc(e){e[Pn]=0}function zc(e){e[k]&1024||(e[k]|=1024,Qi(e)&&$n(e))}function bf(e,t){for(;e>0;)t=t[Fn],e--;return t}function fo(e){return!!(e[k]&9216||e[qe]?.dirty)}function Ki(e){e[wt].changeDetectionScheduler?.notify(8),e[k]&64&&(e[k]|=1024),fo(e)&&$n(e)}function $n(e){e[wt].changeDetectionScheduler?.notify(0);let t=tn(e);for(;t!==null&&!(t[k]&8192||(t[k]|=8192,!Qi(t)));)t=tn(t)}function Gc(e,t){if(Vn(e))throw new x(911,!1);e[$t]===null&&(e[$t]=[]),e[$t].push(t)}function wf(e,t){if(e[$t]===null)return;let n=e[$t].indexOf(t);n!==-1&&e[$t].splice(n,1)}function tn(e){let t=e[Ee];return lt(t)?t[Ee]:t}function Wc(e){return e[Er]??=[]}function qc(e){return e.cleanup??=[]}function Cf(e,t,n,r){let o=Wc(t);o.push(n),e.firstCreatePass&&qc(e).push(r,o.length-1)}var V={lFrame:jf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var mc=!1;function If(){return V.lFrame.elementDepthCount}function _f(){V.lFrame.elementDepthCount++}function Zc(){V.lFrame.elementDepthCount--}function Sf(){return V.bindingsEnabled}function Tf(){return V.skipHydrationRootTNode!==null}function Yc(e){return V.skipHydrationRootTNode===e}function Jc(){V.skipHydrationRootTNode=null}function $(){return V.lFrame.lView}function Re(){return V.lFrame.tView}function te(e){return V.lFrame.contextLView=e,e[he]}function ne(e){return V.lFrame.contextLView=null,e}function Ze(){let e=Qc();for(;e!==null&&e.type===64;)e=e.parent;return e}function Qc(){return V.lFrame.currentTNode}function Mf(){let e=V.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function wr(e,t){let n=V.lFrame;n.currentTNode=e,n.isParent=t}function Kc(){return V.lFrame.isParent}function xf(){V.lFrame.isParent=!1}function Xc(){return mc}function ro(e){let t=mc;return mc=e,t}function Nf(){let e=V.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Af(){return V.lFrame.bindingIndex}function Rf(e){return V.lFrame.bindingIndex=e}function Un(){return V.lFrame.bindingIndex++}function eu(e){let t=V.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Of(){return V.lFrame.inI18n}function kf(e,t){let n=V.lFrame;n.bindingIndex=n.bindingRootIndex=e,Xi(t)}function Ff(){return V.lFrame.currentDirectiveIndex}function Xi(e){V.lFrame.currentDirectiveIndex=e}function Pf(e){let t=V.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function tu(){return V.lFrame.currentQueryIndex}function es(e){V.lFrame.currentQueryIndex=e}function Hy(e){let t=e[N];return t.type===2?t.declTNode:t.type===1?e[tt]:null}function nu(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Hy(i),o===null||(i=i[Fn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=V.lFrame=Lf();return r.currentTNode=t,r.lView=e,!0}function ts(e){let t=Lf(),n=e[N];V.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Lf(){let e=V.lFrame,t=e===null?null:e.child;return t===null?jf(e):t}function jf(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Bf(){let e=V.lFrame;return V.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var ru=Bf;function ns(){let e=Bf();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Vf(e){return(V.lFrame.contextLView=bf(e,V.lFrame.contextLView))[he]}function Wt(){return V.lFrame.selectedIndex}function cn(e){V.lFrame.selectedIndex=e}function rs(){let e=V.lFrame;return Ji(e.tView,e.selectedIndex)}function ou(){return V.lFrame.currentNamespace}var $f=!0;function os(){return $f}function is(e){$f=e}function yc(e,t=null,n=null,r){let o=Uf(e,t,n,r);return o.resolveInjectorInitializers(),o}function Uf(e,t=null,n=null,r,o=new Set){let i=[n||Ke,lf(e)],s;return new Nn(i,t||uo(),s||null,o)}var Ie=class e{static THROW_IF_NOT_FOUND=Mn;static NULL=new no;static create(t,n){if(Array.isArray(t))return yc({name:""},n,t,"");{let r=t.name??"";return yc({name:r},t.parent,t.providers,r)}}static \u0275prov=S({token:e,providedIn:"any",factory:()=>D(Oc)});static __NG_ELEMENT_ID__=-1},je=new w(""),Be=(()=>{class e{static __NG_ELEMENT_ID__=zy;static __NG_ENV_ID__=n=>n}return e})(),ji=class extends Be{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Vn(this._lView)}onDestroy(t){let n=this._lView;return Gc(n,t),()=>wf(n,t)}};function zy(){return new ji($())}var iu=!1,Hf=new w(""),un=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Lt(!1);debugTaskTracker=g(Hf,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new j(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=S({token:e,providedIn:"root",factory:()=>new e})}return e})(),vc=class extends ve{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,hf()&&(this.destroyRef=g(Be,{optional:!0})??void 0,this.pendingTasks=g(un,{optional:!0})??void 0)}emit(t){let n=M(null);try{super.next(t)}finally{M(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof ye&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},Vt=vc;function Bi(...e){}function su(e){let t,n;function r(){e=Bi;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch(o){}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function zf(e){return queueMicrotask(()=>e()),()=>{e=Bi}}var au="isAngularZone",oo=au+"_ID",Gy=0,re=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Vt(!1);onMicrotaskEmpty=new Vt(!1);onStable=new Vt(!1);onError=new Vt(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=iu}=t;if(typeof Zone>"u")throw new x(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,Zy(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(au)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new x(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new x(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Wy,Bi,Bi);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Wy={};function cu(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function qy(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){su(()=>{e.callbackScheduled=!1,Ec(e),e.isCheckStableRunning=!0,cu(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Ec(e)}function Zy(e){let t=()=>{qy(e)},n=Gy++;e._inner=e._inner.fork({name:"angular",properties:{[au]:!0,[oo]:n,[oo+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Yy(c))return r.invokeTask(i,s,a,c);try{return Kd(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Xd(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Kd(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Jy(c)&&t(),Xd(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Ec(e),cu(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Ec(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Kd(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Xd(e){e._nesting--,cu(e)}var io=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Vt;onMicrotaskEmpty=new Vt;onStable=new Vt;onError=new Vt;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Yy(e){return Gf(e,"__ignore_ng_zone__")}function Jy(e){return Gf(e,"__scheduler_tick__")}function Gf(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Ae=class{_console=console;handleError(t){this._console.error("ERROR",t)}},_t=new w("",{factory:()=>{let e=g(re),t=g(Le),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Ae),n.handleError(r))})}}}),Wf={provide:nn,useValue:()=>{let e=g(Ae,{optional:!0})},multi:!0};function pt(e,t){let[n,r,o]=Va(e,t?.equal),i=n,s=i[Fe];return i.set=r,i.update=o,i.asReadonly=uu.bind(i),i}function uu(){let e=this[Fe];if(e.readonlyFn===void 0){let t=()=>this();t[Fe]=e,e.readonlyFn=t}return e.readonlyFn}var po=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Qy}return e})();function Qy(){return new po($(),Ze())}var bt=class{},Cr=new w("",{factory:()=>!0});var ss=new w(""),Ir=(()=>{class e{internalPendingTasks=g(un);scheduler=g(bt);errorHandler=g(_t);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();n().catch(this.errorHandler).finally(r)}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})(),as=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:()=>new Dc})}return e})(),Dc=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},Vi=class{[Fe];constructor(t){this[Fe]=t}destroy(){this[Fe].destroy()}};function ho(e,t){let n=t?.injector??g(Ie),r=t?.manualCleanup!==!0?n.get(Be):null,o,i=n.get(po,null,{optional:!0}),s=n.get(bt);return i!==null?(o=ev(i.view,s,e),r instanceof ji&&r._lView===i.view&&(r=null)):o=tv(e,n.get(as),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Vi(o)}var qf=I(y({},Ua),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=ro(!1);try{Ha(this)}finally{ro(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=M(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],M(e)}}}),Ky=I(y({},qf),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(Dn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}}),Xy=I(y({},qf),{consumerMarkedDirty(){this.view[k]|=8192,$n(this.view),this.notifier.notify(13)},destroy(){if(Dn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[en]?.delete(this)}});function ev(e,t,n){let r=Object.create(Xy);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=Zf(r,n),e[en]??=new Set,e[en].add(r),r.consumerMarkedDirty(r),r}function tv(e,t,n){let r=Object.create(Ky);return r.fn=Zf(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function Zf(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}function So(e){return{toString:e}.toString()}var cs="__parameters__";function fv(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function pv(e,t,n){return So(()=>{let r=fv(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(cs)?c[cs]:Object.defineProperty(c,cs,{value:[]})[cs];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var Wu=of(pv("Inject",e=>({token:e})),-1);function hv(e){return typeof e=="function"}function Cp(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var gs=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function gv(e){return e.type.prototype.ngOnChanges&&(e.setInput=yv),mv}function mv(){let e=_p(this),t=e?.current;if(t){let n=e.previous;if(n===kn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function yv(e,t,n,r,o){let i=this.declaredInputs[r],s=_p(e)||vv(e,{previous:kn,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new gs(u&&u.currentValue,n,c===kn),Cp(e,t,o,n)}var Ip="__ngSimpleChanges__";function _p(e){return e[Ip]||null}function vv(e,t){return e[Ip]=t}var Yf=[];var J=function(e,t=null,n){for(let r=0;r<Yf.length;r++){let o=Yf[r];o(e,t,n)}},z=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(z||{});function Ev(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=gv(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Dv(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function ls(e,t,n){Sp(e,t,3,n)}function ds(e,t,n,r){(e[k]&3)===n&&Sp(e,t,n,r)}function lu(e,t){let n=e[k];(n&3)===t&&(n&=16383,n+=1,e[k]=n)}function Sp(e,t,n,r){let o=r!==void 0?e[Pn]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Pn]+=65536),(a<i||i==-1)&&(bv(e,n,t,c),e[Pn]=(e[Pn]&4294901760)+c+2),c++}function Jf(e,t){J(z.LifecycleHookStart,e,t);let n=M(null);try{t.call(e)}finally{M(n),J(z.LifecycleHookEnd,e,t)}}function bv(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[k]>>14<e[Pn]>>16&&(e[k]&3)===t&&(e[k]+=16384,Jf(a,i)):Jf(a,i)}var Sr=-1,vo=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function wv(e){return(e.flags&8)!==0}function Cv(e){return(e.flags&16)!==0}function Iv(e,t,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++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];Sv(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function _v(e){return e===3||e===4||e===6}function Sv(e){return e.charCodeAt(0)===64}function xs(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Qf(e,n,o,null,t[++r]):Qf(e,n,o,null,null))}}return e}function Qf(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function Tp(e){return e!==Sr}function ms(e){return e&32767}function Tv(e){return e>>16}function ys(e,t){let n=Tv(e),r=t;for(;n>0;)r=r[Fn],n--;return r}var yu=!0;function vs(e){let t=yu;return yu=e,t}var Mv=256,Mp=Mv-1,xp=5,xv=0,St={};function Nv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Rn)&&(r=n[Rn]),r==null&&(r=n[Rn]=xv++);let o=r&Mp,i=1<<o;t.data[e+(o>>xp)]|=i}function Np(e,t){let n=Ap(e,t);if(n!==-1)return n;let r=t[N];r.firstCreatePass&&(e.injectorIndex=t.length,du(r.data,e),du(t,null),du(r.blueprint,null));let o=qu(e,t),i=e.injectorIndex;if(Tp(o)){let s=ms(o),a=ys(o,t),c=a[N].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function du(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ap(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function qu(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Pp(o),r===null)return Sr;if(n++,o=o[Fn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Sr}function Av(e,t,n){Nv(e,t,n)}function Rp(e,t,n){if(n&8||e!==void 0)return e;Gi(t,"NodeInjector")}function Op(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Ht],i=Pe(void 0);try{return o?o.get(t,r,n&8):Ac(t,r,n&8)}finally{Pe(i)}}return Rp(r,t,n)}function kp(e,t,n,r=0,o){if(e!==null){if(t[k]&2048&&!(r&2)){let s=Fv(e,t,n,r,St);if(s!==St)return s}let i=Fp(e,t,n,r,St);if(i!==St)return i}return Op(t,n,r,o)}function Fp(e,t,n,r,o){let i=Ov(n);if(typeof i=="function"){if(!nu(t,e,r))return r&1?Rp(o,n,r):Op(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Gi(n);else return s}finally{ru()}}else if(typeof i=="number"){let s=null,a=Ap(e,t),c=Sr,u=r&1?t[We][tt]:null;for((a===-1||r&4)&&(c=a===-1?qu(e,t):t[a+8],c===Sr||!Xf(r,!1)?a=-1:(s=t[N],a=ms(c),t=ys(c,t)));a!==-1;){let l=t[N];if(Kf(i,a,l.data)){let d=Rv(a,t,n,s,r,u);if(d!==St)return d}c=t[a+8],c!==Sr&&Xf(r,t[N].data[a+8]===u)&&Kf(i,a,t)?(s=l,a=ms(c),t=ys(c,t)):a=-1}}return o}function Rv(e,t,n,r,o,i){let s=t[N],a=s.data[e+8],c=r==null?Gt(a)&&yu:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=fs(a,s,n,c,u);return l!==null?Es(t,s,l,a,o):St}function fs(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,f=o?a+l:u;for(let p=d;p<f;p++){let h=s[p];if(p<c&&n===h||p>=c&&h.type===n)return p}if(o){let p=s[c];if(p&&Bn(p)&&p.type===n)return c}return null}function Es(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof vo){let a=i;if(a.resolving)throw Nc("");let c=vs(a.canSeeViewProviders);a.resolving=!0;let u=s[n].type||s[n],l,d=a.injectImpl?Pe(a.injectImpl):null,f=nu(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Ev(n,s[n],t)}finally{d!==null&&Pe(d),vs(c),a.resolving=!1,ru()}}return i}function Ov(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Rn)?e[Rn]:void 0;return typeof t=="number"?t>=0?t&Mp:kv:t}function Kf(e,t,n){let r=1<<e;return!!(n[t+(e>>xp)]&r)}function Xf(e,t){return!(e&2)&&!(e&1&&t)}var Hn=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return kp(this._tNode,this._lView,t,xn(r),n)}};function kv(){return new Hn(Ze(),$())}function To(e){return So(()=>{let t=e.prototype.constructor,n=t[to]||vu(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[to]||vu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function vu(e){return Cc(e)?()=>{let t=vu(He(e));return t&&t()}:Xt(e)}function Fv(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[k]&2048&&!br(s);){let a=Fp(i,s,n,r|2,St);if(a!==St)return a;let c=i.parent;if(!c){let u=s[jc];if(u){let l=u.get(n,St,r&-5);if(l!==St)return l}c=Pp(s),s=s[Fn]}i=c}return o}function Pp(e){let t=e[N],n=t.type;return n===2?t.declTNode:n===1?e[tt]:null}function Pv(){return Nr(Ze(),$())}function Nr(e,t){return new Ar(dt(e,t))}var Ar=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Pv}return e})();function Lv(e){return e instanceof Ar?e.nativeElement:e}function jv(){return this._results[Symbol.iterator]()}var Ds=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 ve}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=af(t);(this._changesDetected=!sf(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(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=jv};function Lp(e){return(e.flags&128)===128}var Zu=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(Zu||{}),jp=new Map,Bv=0;function Vv(){return Bv++}function $v(e){jp.set(e[zt],e)}function Eu(e){jp.delete(e[zt])}var ep="__ngContext__";function Tr(e,t){an(t)?(e[ep]=t[zt],$v(t)):e[ep]=t}function Bp(e){return $p(e[Dr])}function Vp(e){return $p(e[et])}function $p(e){for(;e!==null&&!lt(e);)e=e[et];return e}var Uv;function Yu(e){Uv=e}var Ns=new w("",{factory:()=>Hv}),Hv="ng";var As=new w(""),Mo=new w("",{providedIn:"platform",factory:()=>"unknown"});var xo=new w("",{factory:()=>g(je).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Up="r";var Hp="di";var zp=!1,Gp=new w("",{factory:()=>zp});var tp=new WeakMap;function zv(e,t){if(e==null||typeof e!="object")return;let n=tp.get(e);n||(n=new WeakSet,tp.set(e,n)),n.add(t)}var Gv=(e,t,n,r)=>{};function Wv(e,t,n,r){Gv(e,t,n,r)}function Ju(e){return(e.flags&32)===32}var qv=()=>null;function Wp(e,t,n=!1){return qv(e,t,n)}function qp(e,t){let n=e.contentQueries;if(n!==null){let r=M(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];es(i),a.contentQueries(2,t[s],s)}}}finally{M(r)}}}function Du(e,t,n){es(0);let r=M(null);try{t(e,n)}finally{M(r)}}function Zp(e,t,n){if(Vc(t)){let r=M(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{M(r)}}}var gt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(gt||{});var bu=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${bc})`}};function Yp(e){return e instanceof bu?e.changingThisBreaksApplicationSecurity:e}function Zv(e,t){return e.createText(t)}function Yv(e,t,n){e.setValue(t,n)}function Jp(e,t,n){return e.createElement(t,n)}function bs(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Qp(e,t,n){e.appendChild(t,n)}function np(e,t,n,r,o){r!==null?bs(e,t,n,r,o):Qp(e,t,n)}function Kp(e,t,n,r){e.removeChild(null,t,n,r)}function Jv(e,t,n){e.setAttribute(t,"style",n)}function Qv(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Xp(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Iv(e,t,r),o!==null&&Qv(e,t,o),i!==null&&Jv(e,t,i)}function Kv(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var eh="ng-template";function Xv(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&Kv(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Qu(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function Qu(e){return e.type===4&&e.value!==eh}function eE(e,t,n){let r=e.type===4&&!n?eh:e.value;return t===r}function tE(e,t,n){let r=4,o=e.attrs,i=o!==null?oE(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!ht(r)&&!ht(c))return!1;if(s&&ht(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!eE(e,c,n)||c===""&&t.length===1){if(ht(r))return!1;s=!0}}else if(r&8){if(o===null||!Xv(e,o,c,n)){if(ht(r))return!1;s=!0}}else{let u=t[++a],l=nE(c,o,Qu(e),n);if(l===-1){if(ht(r))return!1;s=!0;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(ht(r))return!1;s=!0}}}}return ht(r)||s}function ht(e){return(e&1)===0}function nE(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return iE(t,e)}function rE(e,t,n=!1){for(let r=0;r<t.length;r++)if(tE(e,t[r],n))return!0;return!1}function oE(e){for(let t=0;t<e.length;t++){let n=e[t];if(_v(n))return t}return e.length}function iE(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function rp(e,t){return e?":not("+t.trim()+")":t}function sE(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!ht(s)&&(t+=rp(i,o),o=""),r=s,i=i||!ht(r);n++}return o!==""&&(t+=rp(i,o)),t}function aE(e){return e.map(sE).join(",")}function cE(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!ht(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var rt={};function Ku(e,t,n,r,o,i,s,a,c,u,l){let d=De+r,f=d+o,p=uE(d,f),h=typeof u=="function"?u():u;return p[N]={type:e,blueprint:p,template:n,queries:null,viewQuery:a,declTNode:t,data:p.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,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:l}}function uE(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:rt);return n}function lE(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Ku(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Xu(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[ut]=o,d[k]=r|4|128|8|64|1024,(u!==null||e&&e[k]&2048)&&(d[k]|=2048),Hc(d),d[Ee]=d[Fn]=e,d[he]=n,d[wt]=s||e&&e[wt],d[ae]=a||e&&e[ae],d[Ht]=c||e&&e[Ht]||null,d[tt]=i,d[zt]=Vv(),d[vr]=l,d[jc]=u,d[We]=t.type==2?e[We]:d,d}function dE(e,t,n){let r=dt(t,e),o=lE(n),i=e[wt].rendererFactory,s=el(e,Xu(e,o,null,th(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function th(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function nh(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function el(e,t){return e[Dr]?e[Lc][et]=t:e[Dr]=t,e[Lc]=t,t}function T(e=1){rh(Re(),$(),Wt()+e,!1)}function rh(e,t,n,r){if(!r)if((t[k]&3)===3){let i=e.preOrderCheckHooks;i!==null&&ls(t,i,n)}else{let i=e.preOrderHooks;i!==null&&ds(t,i,0,n)}cn(n)}var Rs=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Rs||{});function wu(e,t,n,r){let o=M(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Rs.SignalBased)!==0&&(c=t[i][Fe]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Cp(t,c,i,r)}finally{M(o)}}var Tt=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Tt||{}),fE;function tl(e,t){return fE(e,t)}var WR=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Cu=new WeakMap,go=new WeakSet;function pE(e,t){let n=Cu.get(e);if(!n||n.length===0)return;let r=t.parentNode,o=t.previousSibling;for(let i=n.length-1;i>=0;i--){let s=n[i],a=s.parentNode;s===t?(n.splice(i,1),go.add(s),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&s===o||a&&r&&a!==r)&&(n.splice(i,1),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),s.parentNode?.removeChild(s))}}function hE(e,t){let n=Cu.get(e);n?n.includes(t)||n.push(t):Cu.set(e,[t])}var zn=new Set,Os=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Os||{}),xt=new w(""),op=new Set;function dn(e){op.has(e)||(op.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var nl=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})(),oh=[0,1,2,3],ih=(()=>{class e{ngZone=g(re);scheduler=g(bt);errorHandler=g(Ae,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){g(xt,{optional:!0})}execute(){let n=this.sequences.size>0;n&&J(z.AfterRenderHooksStart),this.executing=!0;for(let r of oh)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&&J(z.AfterRenderHooksEnd)}register(n){let{view:r}=n;r!==void 0?((r[Ln]??=[]).push(n),$n(r),r[k]|=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(Os.AFTER_NEXT_RENDER,n):n()}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})(),ws=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,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 t=this.view?.[Ln];t&&(this.view[Ln]=t.filter(n=>n!==this))}};function rl(e,t){let n=t?.injector??g(Ie);return dn("NgAfterNextRender"),mE(e,n,t,!0)}function gE(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function mE(e,t,n,r){let o=t.get(nl);o.impl??=t.get(ih);let i=t.get(xt,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(Be):null,a=t.get(po,null,{optional:!0}),c=new ws(o.impl,gE(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var sh=new w("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:g(Le)})});function ah(e,t,n){let r=e.get(sh);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function yE(e,t){let n=e.get(sh);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function vE(e,t){for(let[n,r]of t)ah(e,r.animateFns)}function ip(e,t,n,r){let o=e?.[on]?.enter;t!==null&&o&&o.has(n.index)&&vE(r,o)}function _r(e,t,n,r,o,i,s,a){if(o!=null){let c,u=!1;lt(o)?c=o:an(o)&&(u=!0,o=o[ut]);let l=nt(o);e===0&&r!==null?(ip(a,r,i,n),s==null?Qp(t,r,l):bs(t,r,l,s||null,!0)):e===1&&r!==null?(ip(a,r,i,n),bs(t,r,l,s||null,!0),pE(i,l)):e===2?(a?.[on]?.leave?.has(i.index)&&hE(i,l),go.delete(l),sp(a,i,n,d=>{if(go.has(l)){go.delete(l);return}Kp(t,l,u,d)})):e===3&&(go.delete(l),sp(a,i,n,()=>{t.destroyNode(l)})),c!=null&&AE(t,e,n,c,i,r,s)}}function EE(e,t){ch(e,t),t[ut]=null,t[tt]=null}function DE(e,t,n,r,o,i){r[ut]=o,r[tt]=t,Fs(e,r,n,1,o,i)}function ch(e,t){t[wt].changeDetectionScheduler?.notify(9),Fs(e,t,t[ae],2,null,null)}function bE(e){let t=e[Dr];if(!t)return fu(e[N],e);for(;t;){let n=null;if(an(t))n=t[Dr];else{let r=t[ce];r&&(n=r)}if(!n){for(;t&&!t[et]&&t!==e;)an(t)&&fu(t[N],t),t=t[Ee];t===null&&(t=e),an(t)&&fu(t[N],t),n=t&&t[et]}t=n}}function ol(e,t){let n=e[jn],r=n.indexOf(t);n.splice(r,1)}function ks(e,t){if(Vn(t))return;let n=t[ae];n.destroyNode&&Fs(e,t,n,3,null,null),bE(t)}function fu(e,t){if(Vn(t))return;let n=M(null);try{t[k]&=-129,t[k]|=256,t[qe]&&Dn(t[qe]),IE(e,t),CE(e,t),t[N].type===1&&t[ae].destroy();let r=t[rn];if(r!==null&<(t[Ee])){r!==t[Ee]&&ol(r,t);let o=t[Ct];o!==null&&o.detachView(e)}Eu(t)}finally{M(n)}}function sp(e,t,n,r){let o=e?.[on];if(o==null||o.leave==null||!o.leave.has(t.index))return r(!1);e&&zn.add(e[zt]),ah(n,()=>{if(o.leave&&o.leave.has(t.index)){let s=o.leave.get(t.index),a=[];if(s){for(let c=0;c<s.animateFns.length;c++){let u=s.animateFns[c],{promise:l}=u();a.push(l)}o.detachedLeaveAnimationFns=void 0}o.running=Promise.allSettled(a),wE(e,r)}else e&&zn.delete(e[zt]),r(!1)},o)}function wE(e,t){let n=e[on]?.running;if(n){n.then(()=>{e[on].running=void 0,zn.delete(e[zt]),t(!0)});return}t(!1)}function CE(e,t){let n=e.cleanup,r=t[Er];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&&(t[Er]=null);let o=t[$t];if(o!==null){t[$t]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[en];if(i!==null){t[en]=null;for(let s of i)s.destroy()}}function IE(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof vo)){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];J(z.LifecycleHookStart,a,c);try{c.call(a)}finally{J(z.LifecycleHookEnd,a,c)}}else{J(z.LifecycleHookStart,o,i);try{i.call(o)}finally{J(z.LifecycleHookEnd,o,i)}}}}}function _E(e,t,n){return SE(e,t.parent,n)}function SE(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[ut];if(Gt(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===gt.None||o===gt.Emulated)return null}return dt(r,n)}function TE(e,t,n){return xE(e,t,n)}function ME(e,t,n){return e.type&40?dt(e,n):null}var xE=ME,ap;function il(e,t,n,r){let o=_E(e,r,t),i=t[ae],s=r.parent||t[tt],a=TE(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)np(i,o,n[c],a,!1);else np(i,o,n,a,!1);ap!==void 0&&ap(i,r,t,n,o)}function mo(e,t){if(t!==null){let n=t.type;if(n&3)return dt(t,e);if(n&4)return Iu(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return mo(e,r);{let o=e[t.index];return lt(o)?Iu(-1,o):nt(o)}}else{if(n&128)return mo(e,t.next);if(n&32)return tl(t,e)()||nt(e[t.index]);{let r=uh(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=tn(e[We]);return mo(o,r)}else return mo(e,t.next)}}}return null}function uh(e,t){if(t!==null){let r=e[We][tt],o=t.projection;return r.projection[o]}return null}function Iu(e,t){let n=ce+e+1;if(n<t.length){let r=t[n],o=r[N].firstChild;if(o!==null)return mo(r,o)}return t[sn]}function sl(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Ht];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&Tr(nt(c),r),n.flags|=2),!Ju(n))if(u&8)sl(e,t,n.child,r,o,i,!1),_r(t,e,a,o,c,n,i,r);else if(u&32){let l=tl(n,r),d;for(;d=l();)_r(t,e,a,o,d,n,i,r);_r(t,e,a,o,c,n,i,r)}else u&16?NE(e,t,r,n,o,i):_r(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function Fs(e,t,n,r,o,i){sl(n,r,e.firstChild,t,o,i,!1)}function NE(e,t,n,r,o,i){let s=n[We],c=s[tt].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];_r(t,e,n[Ht],o,l,r,i,n)}else{let u=c,l=s[Ee];Lp(r)&&(u.flags|=128),sl(e,t,u,l,o,i,!0)}}function AE(e,t,n,r,o,i,s){let a=r[sn],c=nt(r);a!==c&&_r(t,e,n,i,a,o,s);for(let u=ce;u<r.length;u++){let l=r[u];Fs(l[N],l,e,t,i,a)}}function RE(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Tt.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Tt.Important),e.setStyle(n,r,o,i))}}function lh(e,t,n,r,o){let i=Wt(),s=r&2;try{cn(-1),s&&t.length>De&&rh(e,t,De,!1);let a=s?z.TemplateUpdateStart:z.TemplateCreateStart;J(a,o,n),n(r,o)}finally{cn(i);let a=s?z.TemplateUpdateEnd:z.TemplateCreateEnd;J(a,o,n)}}function dh(e,t,n){BE(e,t,n),(n.flags&64)===64&&VE(e,t,n)}function al(e,t,n=dt){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function OE(e,t,n,r){let i=r.get(Gp,zp)||n===gt.ShadowDom||n===gt.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);if(s.tagName.toLowerCase()==="script")throw new x(905,!1);return kE(s),s}function kE(e){FE(e)}var FE=()=>null;function PE(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function LE(e,t,n,r,o,i){let s=t[N];if(cl(e,s,t,n,r)){Gt(e)&&jE(t,e.index);return}e.type&3&&(n=PE(n)),fh(e,t,n,r,o,i)}function fh(e,t,n,r,o,i){if(e.type&3){let s=dt(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function jE(e,t){let n=ft(t,e);n[k]&16||(n[k]|=64)}function BE(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Gt(n)&&dE(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Np(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Es(t,e,s,n);if(Tr(c,t),i!==null&&GE(t,s-r,c,a,n,i),Bn(a)){let u=ft(n.index,t);u[he]=Es(t,e,s,n)}}}function VE(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Ff();try{cn(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Xi(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&$E(c,u)}}finally{cn(-1),Xi(s)}}function $E(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function UE(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];rE(t,i.selectors,!1)&&(r??=[],Bn(i)?r.unshift(i):r.push(i))}return r}function HE(e,t,n,r,o,i){let s=dt(e,t);zE(t[ae],s,i,e.value,n,r,o)}function zE(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?so(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function GE(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];wu(r,n,c,u)}}function ph(e,t,n,r,o){let i=De+n,s=t[N],a=o(s,t,e,r,n);t[i]=a,wr(e,!0);let c=e.type===2;return c?(Xp(t[ae],a,e),(If()===0||Yi(e))&&Tr(a,t),_f()):Tr(a,t),os()&&(!c||!Ju(e))&&il(s,t,a,e),e}function hh(e){let t=e;return Kc()?xf():(t=t.parent,wr(t,!1)),t}function WE(e,t){let n=e[Ht];if(!n)return;let r;try{r=n.get(_t,null)}catch(o){r=null}r?.(t)}function cl(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=t.data[u];wu(d,n[u],l,o),a=!0}if(i)for(let c of i){let u=n[c],l=t.data[c];wu(l,u,r,o),a=!0}return a}function qE(e,t){let n=ft(t,e),r=n[N];ZE(r,n);let o=n[ut];o!==null&&n[vr]===null&&(n[vr]=Wp(o,n[Ht])),J(z.ComponentStart);try{ul(r,n,n[he])}finally{J(z.ComponentEnd,n[he])}}function ZE(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function ul(e,t,n){ts(t);try{let r=e.viewQuery;r!==null&&Du(1,r,n);let o=e.template;o!==null&&lh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Ct]?.finishViewCreation(e),e.staticContentQueries&&qp(e,t),e.staticViewQueries&&Du(2,e.viewQuery,n);let i=e.components;i!==null&&YE(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[k]&=-5,ns()}}function YE(e,t){for(let n=0;n<t.length;n++)qE(e,t[n])}function Ps(e,t,n,r){let o=M(null);try{let i=t.tView,a=e[k]&4096?4096:16,c=Xu(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[rn]=u;let l=e[Ct];return l!==null&&(c[Ct]=l.createEmbeddedView(i)),ul(i,c,n),c}finally{M(o)}}function Eo(e,t){return!t||t.firstChild===null||Lp(e)}function Do(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(nt(i)),lt(i)&&gh(i,r);let s=n.type;if(s&8)Do(e,t,n.child,r);else if(s&32){let a=tl(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=uh(t,n);if(Array.isArray(a))r.push(...a);else{let c=tn(t[We]);Do(c[N],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function gh(e,t){for(let n=ce;n<e.length;n++){let r=e[n],o=r[N].firstChild;o!==null&&Do(r[N],r,o,t)}e[sn]!==e[ut]&&t.push(e[sn])}function mh(e){if(e[Ln]!==null){for(let t of e[Ln])t.impl.addSequence(t);e[Ln].length=0}}var yh=[];function JE(e){return e[qe]??QE(e)}function QE(e){let t=yh.pop()??Object.create(XE);return t.lView=e,t}function KE(e){e.lView[qe]!==e&&(e.lView=null,yh.push(e))}var XE=I(y({},vn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{$n(e.lView)},consumerOnSignalRead(){this.lView[qe]=this}});function eD(e){let t=e[qe]??Object.create(tD);return t.lView=e,t}var tD=I(y({},vn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=tn(e.lView);for(;t&&!vh(t[N]);)t=tn(t);t&&zc(t)},consumerOnSignalRead(){this.lView[qe]=this}});function vh(e){return e.type!==2}function Eh(e){if(e[en]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[en])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[k]&8192)}}var nD=100;function Dh(e,t=0){let r=e[wt].rendererFactory,o=!1;o||r.begin?.();try{rD(e,t)}finally{o||r.end?.()}}function rD(e,t){let n=Xc();try{ro(!0),_u(e,t);let r=0;for(;fo(e);){if(r===nD)throw new x(103,!1);r++,_u(e,1)}}finally{ro(n)}}function oD(e,t,n,r){if(Vn(t))return;let o=t[k],i=!1,s=!1;ts(t);let a=!0,c=null,u=null;i||(vh(e)?(u=JE(t),c=En(u)):ii()===null?(a=!1,u=eD(t),c=En(u)):t[qe]&&(Dn(t[qe]),t[qe]=null));try{Hc(t),Rf(e.bindingStartIndex),n!==null&&lh(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let p=e.preOrderCheckHooks;p!==null&&ls(t,p,null)}else{let p=e.preOrderHooks;p!==null&&ds(t,p,0,null),lu(t,0)}if(s||iD(t),Eh(t),bh(t,0),e.contentQueries!==null&&qp(e,t),!i)if(l){let p=e.contentCheckHooks;p!==null&&ls(t,p)}else{let p=e.contentHooks;p!==null&&ds(t,p,1),lu(t,1)}aD(e,t);let d=e.components;d!==null&&Ch(t,d,0);let f=e.viewQuery;if(f!==null&&Du(2,f,r),!i)if(l){let p=e.viewCheckHooks;p!==null&&ls(t,p)}else{let p=e.viewHooks;p!==null&&ds(t,p,2),lu(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Zi]){for(let p of t[Zi])p();t[Zi]=null}i||(mh(t),t[k]&=-73)}catch(l){throw i||$n(t),l}finally{u!==null&&(er(u,c),a&&KE(u)),ns()}}function bh(e,t){for(let n=Bp(e);n!==null;n=Vp(n))for(let r=ce;r<n.length;r++){let o=n[r];wh(o,t)}}function iD(e){for(let t=Bp(e);t!==null;t=Vp(t)){if(!(t[k]&2))continue;let n=t[jn];for(let r=0;r<n.length;r++){let o=n[r];zc(o)}}}function sD(e,t,n){J(z.ComponentStart);let r=ft(t,e);try{wh(r,n)}finally{J(z.ComponentEnd,r[he])}}function wh(e,t){Qi(e)&&_u(e,t)}function _u(e,t){let r=e[N],o=e[k],i=e[qe],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Gr(i)),s||=!1,i&&(i.dirty=!1),e[k]&=-9217,s)oD(r,e,r.template,e[he]);else if(o&8192){let a=M(null);try{Eh(e),bh(e,1);let c=r.components;c!==null&&Ch(e,c,1),mh(e)}finally{M(a)}}}function Ch(e,t,n){for(let r=0;r<t.length;r++)sD(e,t[r],n)}function aD(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)cn(~o);else{let i=o,s=n[++r],a=n[++r];kf(s,i);let c=t[i];J(z.HostBindingsUpdateStart,c);try{a(2,c)}finally{J(z.HostBindingsUpdateEnd,c)}}}}finally{cn(-1)}}function ll(e,t){let n=Xc()?64:1088;for(e[wt].changeDetectionScheduler?.notify(t);e;){e[k]|=n;let r=tn(e);if(br(e)&&!r)return e;e=r}return null}function Ih(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function _h(e,t){let n=ce+t;if(n<e.length)return e[n]}function Ls(e,t,n,r=!0){let o=t[N];if(cD(o,t,e,n),r){let s=Iu(n,e),a=t[ae],c=a.parentNode(e[sn]);c!==null&&DE(o,e[tt],a,t,c,s)}let i=t[vr];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Sh(e,t){let n=bo(e,t);return n!==void 0&&ks(n[N],n),n}function bo(e,t){if(e.length<=ce)return;let n=ce+t,r=e[n];if(r){let o=r[rn];o!==null&&o!==e&&ol(o,r),t>0&&(e[n-1][et]=r[et]);let i=ao(e,ce+t);EE(r[N],r);let s=i[Ct];s!==null&&s.detachView(i[N]),r[Ee]=null,r[et]=null,r[k]&=-129}return r}function cD(e,t,n,r){let o=ce+r,i=n.length;r>0&&(n[o-1][et]=t),r<i-ce?(t[et]=n[o],Rc(n,ce+r,t)):(n.push(t),t[et]=null),t[Ee]=n;let s=t[rn];s!==null&&n!==s&&Th(s,t);let a=t[Ct];a!==null&&a.insertView(e),Ki(t),t[k]|=128}function Th(e,t){let n=e[jn],r=t[Ee];if(an(r))e[k]|=2;else{let o=r[Ee][We];t[We]!==o&&(e[k]|=2)}n===null?e[jn]=[t]:n.push(t)}var ln=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[N];return Do(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[he]}set context(t){this._lView[he]=t}get destroyed(){return Vn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[Ee];if(lt(t)){let n=t[lo],r=n?n.indexOf(this):-1;r>-1&&(bo(t,r),ao(n,r))}this._attachedToViewContainer=!1}ks(this._lView[N],this._lView)}onDestroy(t){Gc(this._lView,t)}markForCheck(){ll(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[k]&=-129}reattach(){Ki(this._lView),this._lView[k]|=128}detectChanges(){this._lView[k]|=1024,Dh(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new x(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=br(this._lView),n=this._lView[rn];n!==null&&!t&&ol(n,this._lView),ch(this._lView[N],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new x(902,!1);this._appRef=t;let n=br(this._lView),r=this._lView[rn];r!==null&&!n&&Th(r,this._lView),Ki(this._lView)}};var Mr=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=uD;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=Ps(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new ln(i)}}return e})();function uD(){return dl(Ze(),$())}function dl(e,t){return e.type&4?new Mr(t,e,Nr(e,t)):null}function js(e,t,n,r,o){let i=e.data[t];if(i===null)i=lD(e,t,n,r,o),Of()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Mf();i.injectorIndex=s===null?-1:s.injectorIndex}return wr(i,!0),i}function lD(e,t,n,r,o){let i=Qc(),s=Kc(),a=s?i:i&&i.parent,c=e.data[t]=fD(e,a,n,t,r,o);return dD(e,c,i,s),c}function dD(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function fD(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Tf()&&(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:ou(),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:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function pD(e){let t=e[Bc]??[],r=e[Ee][ae],o=[];for(let i of t)i.data[Hp]!==void 0?o.push(i):hD(i,r);e[Bc]=o}function hD(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Up];for(;n<o;){let i=r.nextSibling;Kp(t,r,!1),r=i,n++}}}var gD=()=>null,mD=()=>null;function Su(e,t){return gD(e,t)}function Mh(e,t,n){return mD(e,t,n)}var xh=class{},Bs=class{},Tu=class{resolveComponentFactory(t){throw new x(917,!1)}},Vs=class{static NULL=new Tu},Gn=class{};var Nh=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:()=>null})}return e})();var ps={},Mu=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,ps,r);return o!==ps||n===ps?o:this.parentInjector.get(t,n,r)}};function Cs(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=wc(o,a);else if(i==2){let c=a,u=t[++s];r=wc(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function ue(e,t=0){let n=$();if(n===null)return D(e,t);let r=Ze();return kp(r,n,He(e),t)}function yD(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,u=null;for(let l of s)if(l.resolveHostDirectives!==null){[a,c,u]=l.resolveHostDirectives(s);break}DD(e,t,n,a,i,c,u)}i!==null&&r!==null&&vD(n,r,i)}function vD(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new x(-301,!1);r.push(t[o],i)}}function ED(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function DD(e,t,n,r,o,i,s){let a=r.length,c=null;for(let f=0;f<a;f++){let p=r[f];c===null&&Bn(p)&&(c=p,ED(e,n,f)),Av(Np(n,t),e,p.type)}SD(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let f=0;f<a;f++){let p=r[f];p.providersResolver&&p.providersResolver(p)}let u=!1,l=!1,d=nh(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let f=0;f<a;f++){let p=r[f];if(n.mergedAttrs=xs(n.mergedAttrs,p.hostAttrs),wD(e,n,t,d,p),_D(d,p,o),s!==null&&s.has(p)){let[m,b]=s.get(p);n.directiveToIndex.set(p.type,[d,m+n.directiveStart,b+n.directiveStart])}else(i===null||!i.has(p))&&n.directiveToIndex.set(p.type,d);p.contentQueries!==null&&(n.flags|=4),(p.hostBindings!==null||p.hostAttrs!==null||p.hostVars!==0)&&(n.flags|=64);let h=p.type.prototype;!u&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),d++}bD(e,n,i)}function bD(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))cp(0,t,o,r),cp(1,t,o,r),lp(t,r,!1);else{let i=n.get(o);up(0,t,i,r),up(1,t,i,r),lp(t,r,!0)}}}function cp(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Ah(t,i)}}function up(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Ah(t,s)}}function Ah(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function lp(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Qu(e)){e.initialInputs??=[],e.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 u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function wD(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Xt(o.type,!0)),s=new vo(i,Bn(o),ue,null);e.blueprint[r]=s,n[r]=s,CD(e,t,r,nh(e,n,o.hostVars,rt),o)}function CD(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;ID(s)!=a&&s.push(a),s.push(n,r,i)}}function ID(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function _D(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Bn(t)&&(n[""]=e)}}function SD(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Rh(e,t,n,r,o,i,s,a){let c=t[N],u=c.consts,l=It(u,s),d=js(c,e,n,r,l);return i&&yD(c,t,d,It(u,a),o),d.mergedAttrs=xs(d.mergedAttrs,d.attrs),d.attrs!==null&&Cs(d,d.attrs,!1),d.mergedAttrs!==null&&Cs(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function Oh(e,t){Dv(e,t),Vc(t)&&e.queries.elementEnd(t)}function TD(e,t,n,r,o,i){let s=t.consts,a=It(s,o),c=js(t,e,n,r,a);if(c.mergedAttrs=xs(c.mergedAttrs,c.attrs),i!=null){let u=It(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1)}return c.attrs!==null&&Cs(c,c.attrs,!1),c.mergedAttrs!==null&&Cs(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function MD(e,t,n){return e[t]=n}function Mt(e,t,n){if(n===rt)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function xD(e,t,n,r){let o=Mt(e,t,n);return Mt(e,t+1,r)||o}function hs(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&zv(o,i);let s=Gt(e)?ft(e.index,t):t;ll(s,5);let a=t[he],c=dp(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=dp(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function dp(e,t,n,r){let o=M(null);try{return J(z.OutputStart,t,n),n(r)!==!1}catch(i){return WE(e,i),!1}finally{J(z.OutputEnd,t,n),M(o)}}function kh(e,t,n,r,o,i,s,a){let c=Yi(e),u=!1,l=null;if(!r&&c&&(l=AD(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=!0}else{let d=dt(e,n),f=r?r(d):d;Wv(n,f,i,a),r||(a.__ngNativeEl__=d);let p=o.listen(f,i,a);if(!ND(i)){let h=r?m=>r(nt(m[e.index])):e.index;Fh(h,t,n,i,a,p,!1)}}return u}function ND(e){return e.startsWith("animation")||e.startsWith("transition")}function AD(e,t,n,r){let o=e.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=t[Er],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Fh(e,t,n,r,o,i,s){let a=t.firstCreatePass?qc(t):null,c=Wc(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1))}function fp(e,t,n,r,o,i){let s=t[n],a=t[N],u=a.data[n].outputs[r],d=s[u].subscribe(i);Fh(e.index,a,t,o,i,d,!0)}var xu=Symbol("BINDING");function Ph(e){return e.debugInfo?.className||e.type.name||null}var Nu=class extends Vs{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=On(t);return new wo(n,this.ngModule)}};function RD(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Rs.SignalBased)!==0};return o&&(i.transform=o),i})}function OD(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function kD(e,t,n){let r=t instanceof Le?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Mu(n,r):n}function FD(e){let t=e.get(Gn,null);if(t===null)throw new x(407,!1);let n=e.get(Nh,null),r=e.get(bt,null),o=e.get(xt,null,{optional:!0});return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:o}}function PD(e,t){let n=Lh(e);return Jp(t,n,n==="svg"?mf:n==="math"?yf:null)}function Lh(e){return(e.selectors[0][0]||"div").toLowerCase()}var wo=class extends Bs{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=RD(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=OD(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=aE(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){J(z.DynamicComponentStart);let a=M(null);try{let c=this.componentDef,u=kD(c,o||this.ngModule,t),l=FD(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(Ph(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{M(a)}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=LD(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?OE(u,o,a.encapsulation,n):PD(a,u),d=s?.some(pp)||i?.some(h=>typeof h!="function"&&h.bindings.some(pp)),f=Xu(null,c,null,512|th(a),null,null,t,u,n,null,Wp(l,n,!0));f[De]=l,ts(f);let p=null;try{let h=Rh(De,f,2,"#host",()=>c.directiveRegistry,!0,0);Xp(u,l,h),Tr(l,f),dh(c,f,h),Zp(c,h,f),Oh(c,h),r!==void 0&&BD(h,this.ngContentSelectors,r),p=ft(h.index,f),f[he]=p[he],ul(c,f,null)}catch(h){throw p!==null&&Eu(p),Eu(f),h}finally{J(z.DynamicComponentEnd),ns()}return new Is(this.componentType,f,!!d)}};function LD(e,t,n,r){let o=e?["ng-version","21.2.17"]:cE(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[xu].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){let d=r[l];if(typeof d!="function")for(let f of d.bindings){a+=f[xu].requiredVars;let p=l+1;f.create&&(f.targetIdx=p,(i??=[]).push(f)),f.update&&(f.targetIdx=p,(s??=[]).push(f))}}let c=[t];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,f=Mc(d);c.push(f)}return Ku(0,null,jD(i,s),1,a,c,null,null,null,[o],null)}function jD(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function pp(e){let t=e[xu].kind;return t==="input"||t==="twoWay"}var Is=class extends xh{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Ji(n[N],De),this.location=Nr(this._tNode,n),this.instance=ft(this._tNode.index,n)[he],this.hostView=this.changeDetectorRef=new ln(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=cl(r,o[N],o,t,n);this.previousInputValues.set(t,n);let s=ft(r.index,o);ll(s,1)}get injector(){return new Hn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function BD(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var No=(()=>{class e{static __NG_ELEMENT_ID__=VD}return e})();function VD(){let e=Ze();return jh(e,$())}var Au=class e extends No{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Nr(this._hostTNode,this._hostLView)}get injector(){return new Hn(this._hostTNode,this._hostLView)}get parentInjector(){let t=qu(this._hostTNode,this._hostLView);if(Tp(t)){let n=ys(t,this._hostLView),r=ms(t),o=n[N].data[r+8];return new Hn(o,n)}else return new Hn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=hp(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ce}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Su(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Eo(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!hv(t),u;if(c)u=n;else{let b=n||{};u=b.index,r=b.injector,o=b.projectableNodes,i=b.environmentInjector||b.ngModuleRef,s=b.directives,a=b.bindings}let l=c?t:new wo(On(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let C=(c?d:this.parentInjector).get(Le,null);C&&(i=C)}let f=On(l.componentType??{}),p=Su(this._lContainer,f?.id??null),h=p?.firstChild??null,m=l.create(d,o,h,i,s,a);return this.insertImpl(m.hostView,u,Eo(this._hostTNode,p)),m}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Df(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[Ee],u=new e(c,c[tt],c[Ee]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Ls(s,o,i,r),t.attachToViewContainerRef(),Rc(pu(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=hp(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=bo(this._lContainer,n);r&&(ao(pu(this._lContainer),n),ks(r[N],r))}detach(t){let n=this._adjustIndex(t,-1),r=bo(this._lContainer,n);return r&&ao(pu(this._lContainer),n)!=null?new ln(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function hp(e){return e[lo]}function pu(e){return e[lo]||(e[lo]=[])}function jh(e,t){let n,r=t[e.index];return lt(r)?n=r:(n=Ih(r,t,null,e),t[e.index]=n,el(t,n)),UD(n,t,e,r),new Au(n,e,t)}function $D(e,t){let n=e[ae],r=n.createComment(""),o=dt(t,e),i=n.parentNode(o);return bs(n,i,r,n.nextSibling(o),!1),r}var UD=GD,HD=()=>!1;function zD(e,t,n){return HD(e,t,n)}function GD(e,t,n,r){if(e[sn])return;let o;n.type&8?o=nt(r):o=$D(t,n),e[sn]=o}var Ru=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Ou=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)fl(t,n).matches!==null&&this.queries[n].setDirty()}},ku=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=XD(t):this.predicate=t}},Fu=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},Pu=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,WD(n,i)),this.matchTNodeWithReadOption(t,n,fs(n,t,i,!1,!1))}else r===Mr?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,fs(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Ar||o===No||o===Mr&&n.type&4)this.addMatch(n.index,-2);else{let i=fs(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function WD(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function qD(e,t){return e.type&11?Nr(e,t):e.type&4?dl(e,t):null}function ZD(e,t,n,r){return n===-1?qD(t,e):n===-2?YD(e,t,r):Es(e,e[N],n,t)}function YD(e,t,n){if(n===Ar)return Nr(t,e);if(n===Mr)return dl(t,e);if(n===No)return jh(t,e)}function Bh(e,t,n,r){let o=t[Ct].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let u=s[c];if(u<0)a.push(null);else{let l=i[u];a.push(ZD(t,l,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function Lu(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Bh(e,t,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 u=i[a+1],l=t[-c];for(let d=ce;d<l.length;d++){let f=l[d];f[rn]===f[Ee]&&Lu(f[N],f,u,r)}if(l[jn]!==null){let d=l[jn];for(let f=0;f<d.length;f++){let p=d[f];Lu(p[N],p,u,r)}}}}}return r}function JD(e,t){return e[Ct].queries[t].queryList}function QD(e,t,n){let r=new Ds((n&4)===4);return Cf(e,t,r,r.destroy),(t[Ct]??=new Ou).queries.push(new Ru(r))-1}function KD(e,t,n){let r=Re();return r.firstCreatePass&&(eb(r,new ku(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),QD(r,$(),t)}function XD(e){return e.split(",").map(t=>t.trim())}function eb(e,t,n){e.queries===null&&(e.queries=new Fu),e.queries.track(new Pu(t,n))}function fl(e,t){return e.queries.getByIndex(t)}function tb(e,t){let n=e[N],r=fl(n,t);return r.crossesNgTemplate?Lu(n,e,t,[]):Bh(n,e,r,t)}var Co=class{};var Io=class extends Co{injector;componentFactoryResolver=new Nu(this);instance=null;constructor(t){super();let n=new Nn([...t.providers,{provide:Co,useValue:this},{provide:Vs,useValue:this.componentFactoryResolver}],t.parent||uo(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Vh(e,t,n=null){return new Io({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var nb=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Fc(!1,n.type),o=r.length>0?Vh([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=S({token:e,providedIn:"environment",factory:()=>new e(D(Le))})}return e})();function _e(e){return So(()=>{let t=sb(e),n=I(y({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Zu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(nb).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||gt.Emulated,styles:e.styles||Ke,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&dn("NgStandalone"),ab(n);let r=e.dependencies;return n.directiveDefs=gp(r,rb),n.pipeDefs=gp(r,ef),n.id=cb(n),n})}function rb(e){return On(e)||Mc(e)}function fn(e){return So(()=>({type:e.type,bootstrap:e.bootstrap||Ke,declarations:e.declarations||Ke,imports:e.imports||Ke,exports:e.exports||Ke,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function ob(e,t){if(e==null)return kn;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Rs.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function ib(e){if(e==null)return kn;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function pl(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function sb(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||kn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Ke,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:ob(e.inputs,t),outputs:ib(e.outputs),debugInfo:null}}function ab(e){e.features?.forEach(t=>t(e))}function gp(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}function cb(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function ub(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=xs(e.mergedAttrs,e.attrs);let l=e.tView=Ku(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),wr(e,!1);let c=lb(n,t,e,r);os()&&il(n,t,c,e),Tr(c,t);let u=Ih(c,t,c,e);t[r+De]=u,el(t,u),zD(u,e,t)}function _s(e,t,n,r,o,i,s,a,c,u,l){let d=n+De,f;if(t.firstCreatePass){if(f=js(t,d,4,s||null,a||null),u!=null){let p=It(t.consts,u);f.localNames=[];for(let h=0;h<p.length;h+=2)f.localNames.push(p[h],-1)}}else f=t.data[d];return ub(f,e,t,n,r,o,i,c),u!=null&&al(e,f,l),f}var lb=db;function db(e,t,n,r){return is(!0),t[ae].createComment("")}var hl=new w("");function Ao(e){return!!e&&typeof e.then=="function"}function $s(e){return!!e&&typeof e.subscribe=="function"}var $h=new w("");var gl=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=g($h,{optional:!0})??[];injector=g(Ie);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=yr(this.injector,o);if(Ao(i))n.push(i);else if($s(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Uh=new w("");function Hh(){Ba(()=>{let e="";throw new x(600,e)})}function zh(e){return e.isBoundToModule}var fb=10;var Ro=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=g(_t);afterRenderManager=g(nl);zonelessEnabled=g(Cr);rootEffectScheduler=g(as);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ve;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=g(un);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(L(n=>!n))}constructor(){g(xt,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=g(Le);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Ie.NULL){return this._injector.get(re).run(()=>{J(z.BootstrapComponentStart);let s=n instanceof Bs;if(!this._injector.get(gl).done){let h="";throw new x(405,h)}let c;s?c=n:c=this._injector.get(Vs).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let u=zh(c)?void 0:this._injector.get(Co),l=r||c.selector,d=c.create(o,[],l,u),f=d.location.nativeElement,p=d.injector.get(hl,null);return p?.registerApplication(f),d.onDestroy(()=>{this.detachView(d.hostView),yo(this.components,d),p?.unregisterApplication(f)}),this._loadComponent(d),J(z.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){J(z.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Os.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw J(z.ChangeDetectionEnd),new x(101,!1);let n=M(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,M(n),this.afterTick.next(),J(z.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Gn,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<fb;){J(z.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{J(z.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&&!fo(o))continue;let i=r&&!this.zonelessEnabled?0:1;Dh(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})=>fo(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;yo(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(Uh,[]).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),()=>yo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new x(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||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function yo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ye(e,t,n,r){let o=$(),i=Un();if(Mt(o,i,t)){let s=Re(),a=rs();HE(a,o,e,t,n,r)}return Ye}var ju=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function hu(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function pb(e,t,n,r){let o,i,s=0,a=e.length-1,c=void 0;if(Array.isArray(t)){M(r);let u=t.length-1;for(M(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],f=hu(s,l,s,d,n);if(f!==0){f<0&&e.updateValue(s,d),s++;continue}let p=e.at(a),h=t[u],m=hu(a,p,u,h,n);if(m!==0){m<0&&e.updateValue(a,h),a--,u--;continue}let b=n(s,l),C=n(a,p),B=n(s,d);if(Object.is(B,C)){let de=n(u,h);Object.is(de,b)?(e.swap(s,a),e.updateValue(a,h),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new Ss,i??=yp(e,s,a,n),Bu(e,o,s,B))e.updateValue(s,d),s++,a++;else if(i.has(B))o.set(b,e.detach(s)),a--;else{let de=e.create(s,t[s]);e.attach(s,de),s++,a++}}for(;s<=u;)mp(e,o,n,s,t[s]),s++}else if(t!=null){M(r);let u=t[Symbol.iterator]();M(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),f=l.value,p=hu(s,d,s,f,n);if(p!==0)p<0&&e.updateValue(s,f),s++,l=u.next();else{o??=new Ss,i??=yp(e,s,a,n);let h=n(s,f);if(Bu(e,o,s,h))e.updateValue(s,f),s++,a++,l=u.next();else if(!i.has(h))e.attach(s,e.create(s,f)),s++,a++,l=u.next();else{let m=n(s,d);o.set(m,e.detach(s)),a--}}}for(;!l.done;)mp(e,o,n,e.length,l.value),l=u.next()}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(u=>{e.destroy(u)})}function Bu(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function mp(e,t,n,r,o){if(Bu(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function yp(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Ss=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function ge(e,t,n,r,o,i,s,a){dn("NgControlFlow");let c=$(),u=Re(),l=It(u.consts,i);return _s(c,u,e,t,n,r,o,l,256,s,a),Oo}function Oo(e,t,n,r,o,i,s,a){dn("NgControlFlow");let c=$(),u=Re(),l=It(u.consts,i);return _s(c,u,e,t,n,r,o,l,512,s,a),Oo}function me(e,t){dn("NgControlFlow");let n=$(),r=Un(),o=n[r]!==rt?n[r]:-1,i=o!==-1?Ts(n,De+o):void 0,s=0;if(Mt(n,r,e)){let a=M(null);try{if(i!==void 0&&Sh(i,s),e!==-1){let c=De+e,u=Ts(n,c),l=Hu(n[N],c),d=Mh(u,l,n),f=Ps(n,l,t,{dehydratedView:d});Ls(u,f,s,Eo(l,d))}}finally{M(a)}}else if(i!==void 0){let a=_h(i,s);a!==void 0&&(a[he]=t)}}var Vu=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ce}};function ml(e,t){return t}var $u=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function mt(e,t,n,r,o,i,s,a,c,u,l,d,f){dn("NgControlFlow");let p=$(),h=Re(),m=c!==void 0,b=$(),C=a?s.bind(b[We][he]):s,B=new $u(m,C);b[De+e]=B,_s(p,h,e+1,t,n,r,o,It(h.consts,i),256),m&&_s(p,h,e+2,c,u,l,d,It(h.consts,f),512)}var Uu=class extends ju{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-ce}at(t){return this.getLView(t)[he].$implicit}attach(t,n){let r=n[vr];this.needsIndexUpdate||=t!==this.length,Ls(this.lContainer,n,t,Eo(this.templateTNode,r)),hb(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,gb(this.lContainer,t),mb(this.lContainer,t)}create(t,n){let r=Su(this.lContainer,this.templateTNode.tView.ssrId);return Ps(this.hostLView,this.templateTNode,new Vu(this.lContainer,n,t),{dehydratedView:r})}destroy(t){ks(t[N],t)}updateValue(t,n){this.getLView(t)[he].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[he].$index=t}getLView(t){return yb(this.lContainer,t)}};function yt(e){let t=M(null),n=Wt();try{let r=$(),o=r[N],i=r[n],s=n+1,a=Ts(r,s);if(i.liveCollection===void 0){let u=Hu(o,s);i.liveCollection=new Uu(a,r,u)}else i.liveCollection.reset();let c=i.liveCollection;if(pb(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=Un(),l=c.length===0;if(Mt(r,u,l)){let d=n+2,f=Ts(r,d);if(l){let p=Hu(o,d),h=Mh(f,p,r),m=Ps(r,p,void 0,{dehydratedView:h});Ls(f,m,0,Eo(p,h))}else o.firstUpdatePass&&pD(f),Sh(f,0)}}}finally{M(t)}}function Ts(e,t){return e[t]}function hb(e,t){if(e.length<=ce)return;let n=ce+t,r=e[n],o=r?r[on]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Ht];yE(i,o),zn.delete(r[zt]),o.detachedLeaveAnimationFns=void 0}}function gb(e,t){if(e.length<=ce)return;let n=ce+t,r=e[n],o=r?r[on]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function mb(e,t){return bo(e,t)}function yb(e,t){return _h(e,t)}function Hu(e,t){return Ji(e,t)}function Us(e,t,n){let r=$(),o=Un();if(Mt(r,o,t)){let i=Re(),s=rs();LE(s,r,e,t,r[ae],n)}return Us}function vp(e,t,n,r,o){cl(t,e,n,o?"class":"style",r)}function Oe(e,t,n,r){let o=$(),i=o[N],s=e+De,a=i.firstCreatePass?Rh(s,o,2,t,UE,Sf(),n,r):i.data[s];if(Gt(a)){let c=o[wt].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(Ph(u),()=>(Ep(e,t,o,a,r),Oe))}}return Ep(e,t,o,a,r),Oe}function Ep(e,t,n,r,o){if(ph(r,n,e,t,Gh),Yi(r)){let i=n[N];dh(i,n,r),Zp(i,r,n)}o!=null&&al(n,r)}function ze(){let e=Re(),t=Ze(),n=hh(t);return e.firstCreatePass&&Oh(e,n),Yc(n)&&Jc(),Zc(),n.classesWithoutHost!=null&&wv(n)&&vp(e,n,$(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&Cv(n)&&vp(e,n,$(),n.stylesWithoutHost,!1),ze}function Nt(e,t,n,r){return Oe(e,t,n,r),ze(),Nt}function v(e,t,n,r){let o=$(),i=o[N],s=e+De,a=i.firstCreatePass?TD(s,i,2,t,n,r):i.data[s];return ph(a,o,e,t,Gh),r!=null&&al(o,a),v}function E(){let e=Ze(),t=hh(e);return Yc(t)&&Jc(),Zc(),E}function At(e,t,n,r){return v(e,t,n,r),E(),At}var Gh=(e,t,n,r,o)=>(is(!0),Jp(t[ae],r,ou()));function vt(){return $()}function ie(e,t,n){let r=$(),o=Un();if(Mt(r,o,t)){let i=Re(),s=rs();fh(s,r,e,t,r[ae],n)}return ie}var ko="en-US";var vb=ko;function Wh(e){typeof e=="string"&&(vb=e.toLowerCase().replace(/_/g,"-"))}function qt(e,t,n){let r=$(),o=Re(),i=Ze();return Eb(o,r,r[ae],i,e,t,n),qt}function G(e,t,n){let r=$(),o=Re(),i=Ze();return(i.type&3||n)&&kh(i,o,r,n,r[ae],e,t,hs(i,r,t)),G}function Eb(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=hs(r,t,i),kh(r,e,t,s,n,o,i,c)&&(a=!1)),a){let u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let d=0;d<l.length;d+=2){let f=l[d],p=l[d+1];c??=hs(r,t,i),fp(r,t,f,p,o,c)}if(u&&u.length)for(let d of u)c??=hs(r,t,i),fp(r,t,d,o,o,c)}}function U(e=1){return Vf(e)}function Rr(e,t,n){return KD(e,t,n),Rr}function Fo(e){let t=$(),n=Re(),r=tu();es(r+1);let o=fl(n,r);if(e.dirty&&Ef(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=tb(t,r);e.reset(i,Lv),e.notifyOnChanges()}return!0}return!1}function Po(){return JD($(),tu())}function us(e,t){return e<<17|t<<2}function Wn(e){return e>>17&32767}function Db(e){return(e&2)==2}function bb(e,t){return e&131071|t<<17}function zu(e){return e|2}function xr(e){return(e&131068)>>2}function gu(e,t){return e&-131069|t<<2}function wb(e){return(e&1)===1}function Gu(e){return e|1}function Cb(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Wn(s),c=xr(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||gr(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let f=Wn(e[a+1]);e[r+1]=us(f,a),f!==0&&(e[f+1]=gu(e[f+1],r)),e[a+1]=bb(e[a+1],r)}else e[r+1]=us(a,0),a!==0&&(e[a+1]=gu(e[a+1],r)),a=r;else e[r+1]=us(c,0),a===0?a=r:e[c+1]=gu(e[c+1],r),c=r;u&&(e[r+1]=zu(e[r+1])),Dp(e,l,r,!0),Dp(e,l,r,!1),Ib(t,l,e,r,i),s=us(a,c),i?t.classBindings=s:t.styleBindings=s}function Ib(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&gr(i,t)>=0&&(n[r+1]=Gu(n[r+1]))}function Dp(e,t,n,r){let o=e[n+1],i=t===null,s=r?Wn(o):xr(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];_b(c,t)&&(a=!0,e[s+1]=r?Gu(u):zu(u)),s=r?Wn(u):xr(u)}a&&(e[n+1]=r?zu(o):Gu(o))}function _b(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?gr(e,t)>=0:!1}function Hs(e,t,n){return qh(e,t,n,!1),Hs}function Lo(e,t){return qh(e,t,null,!0),Lo}function qh(e,t,n,r){let o=$(),i=Re(),s=eu(2);if(i.firstUpdatePass&&Tb(i,e,s,r),t!==rt&&Mt(o,s,t)){let a=i.data[Wt()];Rb(i,a,o,o[ae],e,o[s+1]=Ob(t,n),r,s)}}function Sb(e,t){return t>=e.expandoStartIndex}function Tb(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Wt()],s=Sb(e,n);kb(i,r)&&t===null&&!s&&(t=!1),t=Mb(o,i,t,r),Cb(o,i,t,n,s,r)}}function Mb(e,t,n,r){let o=Pf(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=mu(null,e,t,n,r),n=_o(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=mu(o,e,t,n,r),i===null){let c=xb(e,t,r);c!==void 0&&Array.isArray(c)&&(c=mu(null,e,t,c[1],r),c=_o(c,t.attrs,r),Nb(e,t,r,c))}else i=Ab(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function xb(e,t,n){let r=n?t.classBindings:t.styleBindings;if(xr(r)!==0)return e[Wn(r)]}function Nb(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Wn(o)]=r}function Ab(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=_o(r,s,n)}return _o(r,t.attrs,n)}function mu(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=_o(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function _o(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),uf(e,s,n?!0:t[++i]))}return e===void 0?null:e}function Rb(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=wb(u)?bp(c,t,n,o,xr(u),s):void 0;if(!Ms(l)){Ms(i)||Db(u)&&(i=bp(c,null,n,o,a,s));let d=$c(Wt(),n);RE(r,s,d,o,i)}}function bp(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,f=n[o+1];f===rt&&(f=d?Ke:void 0);let p=d?qi(f,r):l===r?f:void 0;if(u&&!Ms(p)&&(p=qi(c,r)),Ms(p)&&(a=p,s))return a;let h=e[o+1];o=s?Wn(h):xr(h)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=qi(c,r))}return a}function Ms(e){return e!==void 0}function Ob(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=$i(Yp(e)))),e}function kb(e,t){return(e.flags&(t?8:16))!==0}function _(e,t=""){let n=$(),r=Re(),o=e+De,i=r.firstCreatePass?js(r,o,1,t,null):r.data[o],s=Fb(r,n,i,t);n[o]=s,os()&&il(r,n,s,i),wr(i,!1)}var Fb=(e,t,n,r)=>(is(!0),Zv(t[ae],r));function Zh(e,t,n,r=""){return Mt(e,Un(),n)?t+so(n)+r:rt}function Pb(e,t,n,r,o,i=""){let s=Af(),a=xD(e,s,n,o);return eu(2),a?t+so(n)+r+so(o)+i:rt}function be(e){return Rt("",e),be}function Rt(e,t,n){let r=$(),o=Zh(r,e,t,n);return o!==rt&&Yh(r,Wt(),o),Rt}function zs(e,t,n,r,o){let i=$(),s=Pb(i,e,t,n,r,o);return s!==rt&&Yh(i,Wt(),s),zs}function Yh(e,t,n){let r=$c(t,e);Yv(e[ae],r,n)}function yl(e,t,n=""){return Zh($(),e,t,n)}function Lb(e,t){let n=e[t];return n===rt?void 0:n}function jb(e,t,n,r,o,i){let s=t+n;return Mt(e,s,o)?MD(e,s+1,i?r.call(i,o):r(o)):Lb(e,s+1)}function W(e,t){let n=Re(),r,o=e+De;n.firstCreatePass?(r=Bb(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Xt(r.type,!0)),s,a=Pe(ue);try{let c=vs(!1),u=i();return vs(c),Uc(n,$(),o,u),u}finally{Pe(a)}}function Bb(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function q(e,t,n){let r=e+De,o=$(),i=vf(o,r);return Vb(o,r)?jb(o,Nf(),t,i.transform,n,i):i.transform(n)}function Vb(e,t){return e[N].data[t].pure}var Jh=(()=>{class e{applicationErrorHandler=g(_t);appRef=g(Ro);taskService=g(un);ngZone=g(re);zonelessEnabled=g(Cr);tracing=g(xt,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ye;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(oo):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(ss,{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:{this.appRef.dirtyFlags|=2;break}case 3:case 2: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?zf:su;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(oo+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||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Qh(){return[{provide:bt,useExisting:Jh},{provide:re,useClass:io},{provide:Cr,useValue:!0}]}function $b(){return typeof $localize<"u"&&$localize.locale||ko}var Gs=new w("",{factory:()=>g(Gs,{optional:!0,skipSelf:!0})||$b()});var Ws=class{destroyed=!1;listeners=null;errorHandler=g(Ae,{optional:!0});destroyRef=g(Be);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new x(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed){console.warn(An(953,!1));return}if(this.listeners===null)return;let n=M(null);try{for(let r of this.listeners)try{r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{M(n)}}};function qn(e){return Yd(e)}function jo(e,t){return ui(e,t?.equal)}var Xh=Symbol("InputSignalNode#UNSET"),sw=I(y({},li),{transformFn:void 0,applyValueToInputSignal(e,t){nr(e,t)}});function eg(e,t){let n=Object.create(sw);n.value=e,n.transformFn=t?.transform;function r(){if(Xn(n),n.value===Xh){let o=null;throw new x(-950,o)}return n.value}return r[Fe]=n,r}function tg(e){return new Ws}function Kh(e,t){return eg(e,t)}function aw(e){return eg(Xh,e)}var ng=(Kh.required=aw,Kh);var cw=(()=>{class e{zone=g(re);changeDetectionScheduler=g(bt);applicationRef=g(Ro);applicationErrorHandler=g(_t);_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||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),uw=new w("",{factory:()=>!1});function lw({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new re(I(y({},og()),{scheduleInRootZone:t})),[{provide:Cr,useValue:!1},{provide:re,useFactory:e},{provide:nn,multi:!0,useFactory:()=>{let n=g(cw,{optional:!0});return()=>n.initialize()}},{provide:nn,multi:!0,useFactory:()=>{let n=g(dw);return()=>{n.initialize()}}},{provide:ss,useValue:t??iu}]}function rg(e){let t=e?.scheduleInRootZone,n=lw({ngZoneFactory:()=>{let r=og(e);return r.scheduleInRootZone=t,r.shouldCoalesceEventChangeDetection&&dn("NgZone_CoalesceEvent"),new re(r)},scheduleInRootZone:t});return Xe([{provide:uw,useValue:!0},n])}function og(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var dw=(()=>{class e{subscription=new ye;initialized=!1;zone=g(re);pendingTasks=g(un);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||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var vl=new w(""),fw=new w("");function Bo(e){return!e.moduleRef}function pw(e){let t=Bo(e)?e.r3Injector:e.moduleRef.injector,n=t.get(re);return n.run(()=>{Bo(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(_t),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Bo(e)){let i=()=>t.destroy(),s=e.platformInjector.get(vl);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(vl);s.add(i),e.moduleRef.onDestroy(()=>{yo(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return gw(r,n,()=>{let i=t.get(un),s=i.add(),a=t.get(gl);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Gs,ko);if(Wh(c||ko),!t.get(fw,!0))return Bo(e)?t.get(Ro):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Bo(e)){let l=t.get(Ro);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return hw?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var hw;function gw(e,t,n){try{let r=n();return Ao(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var qs=null;function mw(e=[],t){return Ie.create({name:t,providers:[{provide:co,useValue:"platform"},{provide:vl,useValue:new Set([()=>qs=null])},...e]})}function yw(e=[]){if(qs)return qs;let t=mw(e);return qs=t,Hh(),vw(t),t}function vw(e){let t=e.get(As,null);yr(e,()=>{t?.forEach(n=>n())})}function Vo(){return!1}var Ew=1e4;var Vj=Ew-1e3;var ig=(()=>{class e{static __NG_ELEMENT_ID__=Dw}return e})();function Dw(e){return bw(Ze(),$(),(e&16)===16)}function bw(e,t,n){if(Gt(e)&&!n){let r=ft(e.index,t);return new ln(r,r)}else if(e.type&175){let r=t[We];return new ln(r,t)}return null}function sg(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;J(z.BootstrapApplicationStart);try{let i=o?.injector??yw(r),s=[Qh(),Wf,...n||[]],a=new Io({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return pw({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{J(z.BootstrapApplicationEnd)}}var ag=null;function hn(){return ag}function El(e){ag??=e}var $o=class{},Zs=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>g(cg),providedIn:"platform"})}return e})();var cg=(()=>{class e extends Zs{_location;_history;_doc=g(je);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return hn().getBaseHref(this._doc)}onPopState(n){let r=hn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=hn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function ww(e,t){return new x(2100,!1)}var Dl=class{createSubscription(t,n,r){return qn(()=>t.subscribe({next:n,error:r}))}dispose(t){qn(()=>t.unsubscribe())}},bl=class{createSubscription(t,n,r){return t.then(o=>n?.(o),o=>r?.(o)),{unsubscribe:()=>{n=null,r=null}}}dispose(t){t.unsubscribe()}},Cw=new bl,Iw=new Dl,Ve=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=g(_t);constructor(n){this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r),r=>this.applicationErrorHandler(r))}_selectStrategy(n){if(Ao(n))return Cw;if($s(n))return Iw;throw ww(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(r){return new(r||e)(ue(ig,16))};static \u0275pipe=pl({name:"async",type:e,pure:!1})}return e})();var ke=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=fn({type:e});static \u0275inj=Ut({})}return e})();function Uo(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Zn=class{};var ug="browser";var Ho=class{_doc;constructor(t){this._doc=t}manager},Ys=(()=>{class e extends Ho{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(D(je))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),Ks=new w(""),_l=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let o=n.filter(s=>!(s instanceof Ys));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Ys);i&&this._plugins.push(i)}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new x(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(D(Ks),D(re))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),wl="ng-app-id";function lg(e){for(let t of e)t.remove()}function dg(e,t){let n=t.createElement("style");return n.textContent=e,n}function Sw(e,t,n,r){let o=e.head?.querySelectorAll(`style[${wl}="${t}"],link[${wl}="${t}"]`);if(o)for(let i of o)i.removeAttribute(wl),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function Il(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Sl=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,Sw(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,dg);r?.forEach(o=>this.addUsage(o,this.external,Il))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(lg(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])lg(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,dg(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Il(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(D(je),D(Ns),D(xo,8),D(Mo))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),Cl={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Tl=/%COMP%/g;var pg="%COMP%",Tw=`_nghost-${pg}`,Mw=`_ngcontent-${pg}`,xw=!0,Nw=new w("",{factory:()=>xw});function Aw(e){return Mw.replace(Tl,e)}function Rw(e){return Tw.replace(Tl,e)}function hg(e,t){return t.map(n=>n.replace(Tl,e))}var Ml=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(n,r,o,i,s,a,c=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=u,this.defaultRenderer=new zo(n,s,a,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof Qs?o.applyToHost(n):o instanceof Go&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case gt.Emulated:i=new Qs(c,u,r,this.appId,l,s,a,d);break;case gt.ShadowDom:return new Js(c,n,r,s,a,this.nonce,d,u);case gt.ExperimentalIsolatedShadowDom:return new Js(c,n,r,s,a,this.nonce,d);default:i=new Go(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(D(_l),D(Sl),D(Ns),D(Nw),D(je),D(re),D(xo),D(xt,8))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),zo=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Cl[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(fg(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(fg(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new x(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Cl[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Cl[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Tt.DashCase|Tt.Important)?t.style.setProperty(n,r,o&Tt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Tt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=hn().getGlobalEventTarget(this.doc,t),!t))throw new x(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function fg(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Js=class extends zo{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,o,i,a),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=hg(r.id,u);for(let d of u){let f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=d,this.shadowRoot.appendChild(f)}let l=r.getExternalStyles?.();if(l)for(let d of l){let f=Il(d,o);s&&f.setAttribute("nonce",s),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},Go=class extends zo{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=c?hg(c,u):u,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&zn.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Qs=class extends Go{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=Aw(u),this.hostAttr=Rw(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var Xs=class e extends $o{supportsDOMEvents=!0;static makeCurrent(){El(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=Ow();return n==null?null:kw(n)}resetBaseElement(){Wo=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Uo(document.cookie,t)}},Wo=null;function Ow(){return Wo=Wo||document.head.querySelector("base"),Wo?Wo.getAttribute("href"):null}function kw(e){return new URL(e,document.baseURI).pathname}var Fw=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),gg=["alt","control","meta","shift"],Pw={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Lw={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},mg=(()=>{class e extends Ho{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>hn().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),gg.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=Pw[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),gg.forEach(s=>{if(s!==o){let a=Lw[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(D(je))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();function xl(e,t,n){return Je(this,null,function*(){let r=y({rootComponent:e},jw(t,n));return sg(r)})}function jw(e,t){return{platformRef:t?.platformRef,appProviders:[...Hw,...e?.providers??[]],platformProviders:Uw}}function Bw(){Xs.makeCurrent()}function Vw(){return new Ae}function $w(){return Yu(document),document}var Uw=[{provide:Mo,useValue:ug},{provide:As,useValue:Bw,multi:!0},{provide:je,useFactory:$w}];var Hw=[{provide:co,useValue:"root"},{provide:Ae,useFactory:Vw},{provide:Ks,useClass:Ys,multi:!0},{provide:Ks,useClass:mg,multi:!0},Ml,Sl,_l,{provide:Gn,useExisting:Ml},{provide:Zn,useClass:Fw},[]];var gn=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
|
|
5
|
+
`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var ta=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}},na=class{encodeKey(t){return yg(t)}encodeValue(t){return yg(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function zw(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var Gw=/%(\d[a-f0-9])/gi,Ww={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function yg(e){return encodeURIComponent(e).replace(Gw,(t,n)=>Ww[n]??t)}function ea(e){return`${e}`}var Zt=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new na,t.fromString){if(t.fromObject)throw new x(2805,!1);this.map=zw(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(ea):[ea(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(ea(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(ea(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};function qw(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function vg(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Eg(e){return typeof Blob<"u"&&e instanceof Blob}function Dg(e){return typeof FormData<"u"&&e instanceof FormData}function Zw(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var bg="Content-Type",wg="Accept",Cg="text/plain",Ig="application/json",Yw=`${Ig}, ${Cg}, */*`,Or=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(qw(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new x(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache}if(this.headers??=new gn,this.context??=new ta,!this.params)this.params=new Zt,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||vg(this.body)||Eg(this.body)||Dg(this.body)||Zw(this.body)?this.body:this.body instanceof Zt?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Dg(this.body)?null:Eg(this.body)?this.body.type||null:vg(this.body)?null:typeof this.body=="string"?Cg:this.body instanceof Zt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Ig:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,u=t.redirect||this.redirect,l=t.credentials||this.credentials,d=t.referrer??this.referrer,f=t.integrity||this.integrity,p=t.referrerPolicy||this.referrerPolicy,h=t.transferCache??this.transferCache,m=t.timeout??this.timeout,b=t.body!==void 0?t.body:this.body,C=t.withCredentials??this.withCredentials,B=t.reportProgress??this.reportProgress,de=t.headers||this.headers,F=t.params||this.params,ee=t.context??this.context;return t.setHeaders!==void 0&&(de=Object.keys(t.setHeaders).reduce((K,Me)=>K.set(Me,t.setHeaders[Me]),de)),t.setParams&&(F=Object.keys(t.setParams).reduce((K,Me)=>K.set(Me,t.setParams[Me]),F)),new e(n,r,b,{params:F,headers:de,context:ee,reportProgress:B,responseType:o,withCredentials:C,transferCache:h,keepalive:i,cache:a,priority:s,timeout:m,mode:c,redirect:u,credentials:l,referrer:d,integrity:f,referrerPolicy:p})}},Jn=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(Jn||{}),Fr=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new gn,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}},ra=class e extends Fr{constructor(t={}){super(t)}type=Jn.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},qo=class e extends Fr{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Jn.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},kr=class extends Fr{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},Jw=200,Qw=204;var Kw=new w("");var Xw=/^\)\]\}',?\n/;var Al=(()=>{class e{xhrFactory;tracingService=g(xt,{optional:!0});constructor(n){this.xhrFactory=n}maybePropagateTrace(n){return this.tracingService?.propagate?this.tracingService.propagate(n):n}handle(n){if(n.method==="JSONP")throw new x(-2800,!1);let r=this.xhrFactory;return at(null).pipe(pe(()=>new j(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((b,C)=>s.setRequestHeader(b,C.join(","))),n.headers.has(wg)||s.setRequestHeader(wg,Yw),!n.headers.has(bg)){let b=n.detectContentTypeHeader();b!==null&&s.setRequestHeader(bg,b)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let b=n.responseType.toLowerCase();s.responseType=b!=="json"?b:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let b=s.statusText||"OK",C=new gn(s.getAllResponseHeaders()),B=s.responseURL||n.url;return c=new ra({headers:C,status:s.status,statusText:b,url:B}),c},l=this.maybePropagateTrace(()=>{let{headers:b,status:C,statusText:B,url:de}=u(),F=null;C!==Qw&&(F=typeof s.response>"u"?s.responseText:s.response),C===0&&(C=F?Jw:0);let ee=C>=200&&C<300;if(n.responseType==="json"&&typeof F=="string"){let K=F;F=F.replace(Xw,"");try{F=F!==""?JSON.parse(F):null}catch(Me){F=K,ee&&(ee=!1,F={error:Me,text:F})}}ee?(i.next(new qo({body:F,headers:b,status:C,statusText:B,url:de||void 0})),i.complete()):i.error(new kr({error:F,headers:b,status:C,statusText:B,url:de||void 0}))}),d=this.maybePropagateTrace(b=>{let{url:C}=u(),B=new kr({error:b,status:s.status||0,statusText:s.statusText||"Unknown Error",url:C||void 0});i.error(B)}),f=d;n.timeout&&(f=this.maybePropagateTrace(b=>{let{url:C}=u(),B=new kr({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:C||void 0});i.error(B)}));let p=!1,h=this.maybePropagateTrace(b=>{p||(i.next(u()),p=!0);let C={type:Jn.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(C.total=b.total),n.responseType==="text"&&s.responseText&&(C.partialText=s.responseText),i.next(C)}),m=this.maybePropagateTrace(b=>{let C={type:Jn.UploadProgress,loaded:b.loaded};b.lengthComputable&&(C.total=b.total),i.next(C)});return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",f),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",h),a!==null&&s.upload&&s.upload.addEventListener("progress",m)),s.send(a),i.next({type:Jn.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",f),n.reportProgress&&(s.removeEventListener("progress",h),a!==null&&s.upload&&s.upload.removeEventListener("progress",m)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(D(Zn))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function eC(e,t){return t(e)}function tC(e,t,n){return(r,o)=>yr(n,()=>t(r,i=>e(i,o)))}var _g=new w("",{factory:()=>[]}),Sg=new w(""),Tg=new w("",{factory:()=>!0});var Rl=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=D(Al),o},providedIn:"root"})}return e})();var oa=(()=>{class e{backend;injector;chain=null;pendingTasks=g(Ir);contributeToStability=g(Tg);constructor(n,r){this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(_g),...this.injector.get(Sg,[])]));this.chain=r.reduceRight((o,i)=>tC(o,i,this.injector),eC)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(ec(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(D(Rl),D(Le))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ol=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=D(oa),o},providedIn:"root"})}return e})();function Nl(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer,referrerPolicy:e.referrerPolicy}}var ia=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Or)i=n;else{let c;o.headers instanceof gn?c=o.headers:c=new gn(o.headers);let u;o.params&&(o.params instanceof Zt?u=o.params:u=new Zt({fromObject:o.params})),i=new Or(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let s=at(i).pipe(Jr(c=>this.handler.handle(c)));if(n instanceof Or||o.observe==="events")return s;let a=s.pipe(fe(c=>c instanceof qo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(L(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new x(2806,!1);return c.body}));case"blob":return a.pipe(L(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new x(2807,!1);return c.body}));case"text":return a.pipe(L(c=>{if(c.body!==null&&typeof c.body!="string")throw new x(2808,!1);return c.body}));default:return a.pipe(L(c=>c.body))}case"response":return a;default:throw new x(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Zt().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Nl(o,r))}post(n,r,o={}){return this.request("POST",n,Nl(o,r))}put(n,r,o={}){return this.request("PUT",n,Nl(o,r))}static \u0275fac=function(r){return new(r||e)(D(Ol))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var nC=new w("",{factory:()=>!0}),rC="XSRF-TOKEN",oC=new w("",{factory:()=>rC}),iC="X-XSRF-TOKEN",sC=new w("",{factory:()=>iC}),aC=(()=>{class e{cookieName=g(oC);doc=g(je);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Uo(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Mg=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=D(aC),o},providedIn:"root"})}return e})();function cC(e,t){if(!g(nC)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=g(Zs).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch(o){return t(e)}let n=g(Mg).getToken(),r=g(sC);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function kl(...e){let t=[ia,oa,{provide:Ol,useExisting:oa},{provide:Rl,useFactory:()=>g(Kw,{optional:!0})??g(Al)},{provide:_g,useValue:cC,multi:!0}];for(let n of e)t.push(...n.\u0275providers);return Xe(t)}function xg(e){e||(e=g(Be));let t=new j(n=>{if(e.destroyed){n.next();return}return e.onDestroy(n.next.bind(n))});return n=>n.pipe(Tn(t))}function sa(e,t){let r=!t?.manualCleanup?t?.injector?.get(Be)??g(Be):null,o=lC(t?.equal),i;t?.requireSync?i=pt({kind:0},{equal:o}):i=pt({kind:1,value:t?.initialValue},{equal:o});let s,a=e.subscribe({next:c=>i.set({kind:1,value:c}),error:c=>{i.set({kind:2,error:c}),s?.()},complete:()=>{s?.()}});if(t?.requireSync&&i().kind===0)throw new x(601,!1);return s=r?.onDestroy(a.unsubscribe.bind(a)),jo(()=>{let c=i();switch(c.kind){case 1:return c.value;case 2:throw c.error;case 0:throw new x(601,!1)}},{equal:t?.equal})}function lC(e=Object.is){return(t,n)=>t.kind===1&&n.kind===1&&e(t.value,n.value)}var Ll={};function $l(e,t){if(Ll[e]=(Ll[e]||0)+1,typeof t=="function")return Fl(e,(...r)=>I(y({},t(...r)),{type:e}));switch(t?t._as:"empty"){case"empty":return Fl(e,()=>({type:e}));case"props":return Fl(e,r=>I(y({},r),{type:e}));default:throw new Error("Unexpected config.")}}function Se(){return{_as:"props",_p:void 0}}function Fl(e,t){return Object.defineProperty(t,"type",{value:e,writable:!1})}function dC(e){return e.charAt(0).toUpperCase()+e.substring(1)}function fC(e){return e.charAt(0).toLowerCase()+e.substring(1)}function pC(e,t){if(e==null)throw new Error(`${t} must be defined.`)}function jr(e){let{source:t,events:n}=e;return Object.keys(n).reduce((r,o)=>I(y({},r),{[hC(o)]:$l(gC(t,o),n[o])}),{})}function we(){return Se()}function hC(e){return e.trim().split(" ").map((t,n)=>n===0?fC(t):dC(t)).join("")}function gC(e,t){return`[${e}] ${t}`}var Jo="@ngrx/store/init",Ot=(()=>{class e extends Lt{constructor(){super({type:Jo})}next(n){if(typeof n=="function")throw new TypeError(`
|
|
6
6
|
Dispatch expected an object, instead it received a function.
|
|
7
7
|
If you're using the createAction function, make sure to invoke the function
|
|
8
|
-
before dispatching the action. For example, someAction should be someAction().`);if(typeof n>"u")throw new TypeError("Actions must be objects");if(typeof n.type>"u")throw new TypeError("Actions must have a type property");super.next(n)}complete(){}ngOnDestroy(){super.complete()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})(),mI=[Ot],Ug=new w("@ngrx/store Internal Root Guard"),Ng=new w("@ngrx/store Internal Initial State"),Zo=new w("@ngrx/store Initial State"),Hg=new w("@ngrx/store Reducer Factory"),Ag=new w("@ngrx/store Internal Reducer Factory Provider"),zg=new w("@ngrx/store Initial Reducers"),Pl=new w("@ngrx/store Internal Initial Reducers");var Rg=new w("@ngrx/store Internal Store Reducers");var yI=new w("@ngrx/store Internal Store Features");var vI=new w("@ngrx/store Feature Reducers"),Og=new w("@ngrx/store User Provided Meta Reducers"),ia=new w("@ngrx/store Meta Reducers"),kg=new w("@ngrx/store Internal Resolved Meta Reducers"),Fg=new w("@ngrx/store User Runtime Checks Config"),Pg=new w("@ngrx/store Internal User Runtime Checks Config"),Go=new w("@ngrx/store Internal Runtime Checks"),Ul=new w("@ngrx/store Check if Action types are unique"),Wo=new w("@ngrx/store Root Store Provider"),sa=new w("@ngrx/store Feature State Provider");function EI(e,t={}){let n=Object.keys(e),r={};for(let i=0;i<n.length;i++){let s=n[i];typeof e[s]=="function"&&(r[s]=e[s])}let o=Object.keys(r);return function(s,a){s=s===void 0?t:s;let c=!1,u={};for(let l=0;l<o.length;l++){let d=o[l],f=r[d],p=s[d],h=f(p,a);u[d]=h,c=c||h!==p}return c?u:s}}function DI(e,t){return Object.keys(e).filter(n=>n!==t).reduce((n,r)=>Object.assign(n,{[r]:e[r]}),{})}function Gg(...e){return function(t){if(e.length===0)return t;let n=e[e.length-1];return e.slice(0,-1).reduceRight((o,i)=>i(o),n(t))}}function Wg(e,t){return Array.isArray(t)&&t.length>0&&(e=Gg.apply(null,[...t,e])),(n,r)=>{let o=e(n);return(i,s)=>(i=i===void 0?r:i,o(i,s))}}function bI(e){let t=Array.isArray(e)&&e.length>0?Gg(...e):n=>n;return(n,r)=>(n=t(n),(o,i)=>(o=o===void 0?r:o,n(o,i)))}var Qn=class extends j{},Fr=class extends Ot{},ca="@ngrx/store/update-reducers",aa=(()=>{class e extends Lt{get currentReducers(){return this.reducers}constructor(n,r,o,i){super(i(o,r)),this.dispatcher=n,this.initialState=r,this.reducers=o,this.reducerFactory=i}addFeature(n){this.addFeatures([n])}addFeatures(n){let r=n.reduce((o,{reducers:i,reducerFactory:s,metaReducers:a,initialState:c,key:u})=>{let l=typeof i=="function"?bI(a)(i,c):Wg(s,a)(i,c);return o[u]=l,o},{});this.addReducers(r)}removeFeature(n){this.removeFeatures([n])}removeFeatures(n){this.removeReducers(n.map(r=>r.key))}addReducer(n,r){this.addReducers({[n]:r})}addReducers(n){this.reducers=y(y({},this.reducers),n),this.updateReducers(Object.keys(n))}removeReducer(n){this.removeReducers([n])}removeReducers(n){n.forEach(r=>{this.reducers=DI(this.reducers,r)}),this.updateReducers(n)}updateReducers(n){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:ca,features:n})}ngOnDestroy(){this.complete()}static{this.\u0275fac=function(r){return new(r||e)(D(Fr),D(Zo),D(zg),D(Hg))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})(),wI=[aa,{provide:Qn,useExisting:aa},{provide:Fr,useExisting:Ot}],Kn=(()=>{class e extends ve{ngOnDestroy(){this.complete()}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=So(e)))(o||e)}})()}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})(),II=[Kn],Pr=class extends j{},Lg=(()=>{class e extends Lt{static{this.INIT=qo}constructor(n,r,o,i){super(i);let a=n.pipe(jt(Zr)).pipe(Qe(r)),c={state:i},u=a.pipe(Kr(CI,c));this.stateSubscription=u.subscribe(({state:l,action:d})=>{this.next(l),o.next(d)}),this.state=oa(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}static{this.\u0275fac=function(r){return new(r||e)(D(Ot),D(Qn),D(Kn),D(Zo))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})();function CI(e={state:void 0},[t,n]){let{state:r}=e;return{state:n(r,t),action:t}}var _I=[Lg,{provide:Pr,useExisting:Lg}],Z=(()=>{class e extends j{constructor(n,r,o,i){super(),this.actionsObserver=r,this.reducerManager=o,this.injector=i,this.source=n,this.state=n.state}select(n,...r){return TI.call(null,n,...r)(this)}selectSignal(n,r){return Fo(()=>n(this.state()),r)}lift(n){let r=new e(this,this.actionsObserver,this.reducerManager);return r.operator=n,r}dispatch(n,r){if(typeof n=="function")return this.processDispatchFn(n,r);this.actionsObserver.next(n)}next(n){this.actionsObserver.next(n)}error(n){this.actionsObserver.error(n)}complete(){this.actionsObserver.complete()}addReducer(n,r){this.reducerManager.addReducer(n,r)}removeReducer(n){this.reducerManager.removeReducer(n)}processDispatchFn(n,r){pI(this.injector,"Store Injector");let o=r?.injector??MI()??this.injector;return po(()=>{let i=n();qn(()=>this.dispatch(i))},{injector:o})}static{this.\u0275fac=function(r){return new(r||e)(D(Pr),D(Ot),D(aa),D(Ce))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})(),SI=[Z];function TI(e,t,...n){return function(o){let i;if(typeof e=="string"){let s=[t,...n].filter(Boolean);i=o.pipe(tc(e,...s))}else if(typeof e=="function")i=o.pipe(L(s=>e(s,t)));else throw new TypeError(`Unexpected type '${typeof e}' in select operator, expected 'string' or 'function'`);return i.pipe(dr())}}function MI(){try{return g(Ce)}catch(e){return}}var Hl="https://ngrx.io/guide/store/configuration/runtime-checks";function jg(e){return e===void 0}function Bg(e){return e===null}function qg(e){return Array.isArray(e)}function xI(e){return typeof e=="string"}function NI(e){return typeof e=="boolean"}function AI(e){return typeof e=="number"}function Zg(e){return typeof e=="object"&&e!==null}function RI(e){return Zg(e)&&!qg(e)}function OI(e){if(!RI(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function jl(e){return typeof e=="function"}function kI(e){return jl(e)&&e.hasOwnProperty("\u0275cmp")}function FI(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var PI=!1;function LI(){return PI}function Vg(e,t){return e===t}function jI(e,t,n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!0;return!1}function Yg(e,t=Vg,n=Vg){let r=null,o=null,i;function s(){r=null,o=null}function a(l=void 0){i={result:l}}function c(){i=void 0}function u(){if(i!==void 0)return i.result;if(!r)return o=e.apply(null,arguments),r=arguments,o;if(!jI(arguments,r,t))return o;let l=e.apply(null,arguments);return r=arguments,n(o,l)?o:(o=l,l)}return{memoized:u,reset:s,setResult:a,clearResult:c}}function oe(...e){return VI(Yg)(...e)}function BI(e,t,n,r){if(n===void 0){let i=t.map(s=>s(e));return r.memoized.apply(null,i)}let o=t.map(i=>i(e,n));return r.memoized.apply(null,[...o,n])}function VI(e,t={stateFn:BI}){return function(...n){let r=n;if(Array.isArray(r[0])){let[l,...d]=r;r=[...l,...d]}else r.length===1&&$I(r[0])&&(r=UI(r[0]));let o=r.slice(0,r.length-1),i=r[r.length-1],s=o.filter(l=>l.release&&typeof l.release=="function"),a=e(function(...l){return i.apply(null,l)}),c=Yg(function(l,d){return t.stateFn.apply(null,[l,o,d,a])});function u(){c.reset(),a.reset(),s.forEach(l=>l.release())}return Object.assign(c.memoized,{release:u,projector:a.memoized,setResult:c.setResult,clearResult:c.clearResult})}}function jr(e){return oe(t=>{let n=t[e];return!LI()&&Lo()&&!(e in t)&&console.warn(`@ngrx/store: The feature name "${e}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${e}', ...) or StoreModule.forFeature('${e}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),n},t=>t)}function $I(e){return!!e&&typeof e=="object"&&Object.values(e).every(t=>typeof t=="function")}function UI(e){let t=Object.values(e),n=Object.keys(e),r=(...o)=>n.reduce((i,s,a)=>C(y({},i),{[s]:o[a]}),{});return[...t,r]}function HI(e){return e instanceof w?g(e):e}function Jg(e){return typeof e=="function"?e():e}function zI(e,t){return e.concat(t)}function GI(){if(g(Z,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function WI(e,t){return function(n,r){let o=t.action(r)?Bl(r):r,i=e(n,o);return t.state()?Bl(i):i}}function Bl(e){Object.freeze(e);let t=jl(e);return Object.getOwnPropertyNames(e).forEach(n=>{if(!n.startsWith("\u0275")&&FI(e,n)&&(!t||n!=="caller"&&n!=="callee"&&n!=="arguments")){let r=e[n];(Zg(r)||jl(r))&&!Object.isFrozen(r)&&Bl(r)}}),e}function qI(e,t){return function(n,r){if(t.action(r)){let i=Vl(r);$g(i,"action")}let o=e(n,r);if(t.state()){let i=Vl(o);$g(i,"state")}return o}}function Vl(e,t=[]){return(jg(e)||Bg(e))&&t.length===0?{path:["root"],value:e}:Object.keys(e).reduce((r,o)=>{if(r)return r;let i=e[o];return kI(i)?r:jg(i)||Bg(i)||AI(i)||NI(i)||xI(i)||qg(i)?!1:OI(i)?Vl(i,[...t,o]):{path:[...t,o],value:i}},!1)}function $g(e,t){if(e===!1)return;let n=e.path.join("."),r=new Error(`Detected unserializable ${t} at "${n}". ${Hl}#strict${t}serializability`);throw r.value=e.value,r.unserializablePath=n,r}function ZI(e,t){return function(n,r){if(t.action(r)&&!re.isInAngularZone())throw new Error(`Action '${r.type}' running outside NgZone. ${Hl}#strictactionwithinngzone`);return e(n,r)}}function YI(e){return Lo()?y({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},e):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function JI({strictActionSerializability:e,strictStateSerializability:t}){return n=>e||t?qI(n,{action:r=>e&&!zl(r),state:()=>t}):n}function QI({strictActionImmutability:e,strictStateImmutability:t}){return n=>e||t?WI(n,{action:r=>e&&!zl(r),state:()=>t}):n}function zl(e){return e.type.startsWith("@ngrx")}function KI({strictActionWithinNgZone:e}){return t=>e?ZI(t,{action:n=>e&&!zl(n)}):t}function XI(e){return[{provide:Pg,useValue:e},{provide:Fg,useFactory:tC,deps:[Pg]},{provide:Go,deps:[Fg],useFactory:YI},{provide:ia,multi:!0,deps:[Go],useFactory:QI},{provide:ia,multi:!0,deps:[Go],useFactory:JI},{provide:ia,multi:!0,deps:[Go],useFactory:KI}]}function eC(){return[{provide:Ul,multi:!0,deps:[Go],useFactory:nC}]}function tC(e){return e}function nC(e){if(!e.strictActionTypeUniqueness)return;let t=Object.entries(Ll).filter(([,n])=>n>1).map(([n])=>n);if(t.length)throw new Error(`Action types are registered more than once, ${t.map(n=>`"${n}"`).join(", ")}. ${Hl}#strictactiontypeuniqueness`)}function rC(e={},t={}){return[{provide:Ug,useFactory:GI},{provide:Ng,useValue:t.initialState},{provide:Zo,useFactory:Jg,deps:[Ng]},{provide:Pl,useValue:e},{provide:Rg,useExisting:e instanceof w?e:Pl},{provide:zg,deps:[Pl,[new zu(Rg)]],useFactory:HI},{provide:Og,useValue:t.metaReducers?t.metaReducers:[]},{provide:kg,deps:[ia,Og],useFactory:zI},{provide:Ag,useValue:t.reducerFactory?t.reducerFactory:EI},{provide:Hg,deps:[Ag,kg],useFactory:Wg},mI,wI,II,_I,SI,XI(t.runtimeChecks),eC()]}function oC(){g(Ot),g(Qn),g(Kn),g(Z),g(Ug,{optional:!0}),g(Ul,{optional:!0})}var iC=[{provide:Wo,useFactory:oC},mr(()=>g(Wo))];function Qg(e,t){return Xe([...rC(e,t),iC])}function sC(){g(Wo);let e=g(yI),t=g(vI),n=g(aa);g(Ul,{optional:!0});let r=e.map((o,i)=>{let a=t.shift()[i];return C(y({},o),{reducers:a,initialState:Jg(o.initialState)})});n.addFeatures(r)}var $V=[{provide:sa,useFactory:sC},mr(()=>g(sa))];function Q(...e){let t=e.pop(),n=e.map(r=>r.type);return{reducer:t,types:n}}function Br(e,...t){let n=new Map;for(let r of t)for(let o of r.types){let i=n.get(o);if(i){let s=(a,c)=>r.reducer(i(a,c),c);n.set(o,s)}else n.set(o,r.reducer)}return function(r=e,o){let i=n.get(o.type);return i?i(r,o):r}}var H=Lr({source:"Settings",events:{"Load Settings":we(),"Load Settings Success":Se(),"Update Setting":Se(),"Save Settings":we(),"Toggle Settings Panel":we(),"Remove Url From History":Se()}});var mn=class e{constructor(t){this.store=t}currentTheme="dark";initialize(){let t=localStorage.getItem("glassbox-theme");t==="dark"||t==="light"?this.applyTheme(t):window.matchMedia("(prefers-color-scheme: light)").matches?this.applyTheme("light"):this.applyTheme("dark")}applyFromSettings(t){(t==="dark"||t==="light")&&this.applyTheme(t)}toggle(){let t=this.currentTheme==="dark"?"light":"dark";this.applyTheme(t),localStorage.setItem("glassbox-theme",t),this.store.dispatch(H.updateSetting({key:"theme",value:t}))}applyTheme(t){this.currentTheme=t,document.documentElement.setAttribute("data-theme",t)}static \u0275fac=function(n){return new(n||e)(D(Z))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})};var ua=class e{constructor(t){this.themeService=t}settingsToggled=tg();toggleTheme(){this.themeService.toggle()}static \u0275fac=function(n){return new(n||e)(ue(mn))};static \u0275cmp=_e({type:e,selectors:[["gb-header"]],outputs:{settingsToggled:"settingsToggled"},decls:10,vars:0,consts:[[1,"header"],[1,"header-left"],["src","assets/logo.svg","alt","Glassbox","width","24","height","24",1,"header-logo"],[1,"logo"],[1,"header-right"],["title","Toggle theme",1,"icon-btn",3,"click"],["title","Settings",1,"icon-btn",3,"click"]],template:function(n,r){n&1&&(v(0,"header",0)(1,"div",1),At(2,"img",2),v(3,"span",3),_(4,"Glassbox"),E()(),v(5,"div",4)(6,"button",5),G("click",function(){return r.toggleTheme()}),_(7,"\u{1F313}"),E(),v(8,"button",6),G("click",function(){return r.settingsToggled.emit()}),_(9,"\u2699\uFE0F"),E()()())},styles:[".header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:var(--space-sm) var(--space-md);background:var(--bg-panel);border-bottom:1px solid var(--border-color)}.header-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--space-sm)}.header-logo[_ngcontent-%COMP%]{display:block}.logo[_ngcontent-%COMP%]{font-weight:700;font-size:16px;color:var(--accent-primary);letter-spacing:-.5px}.header-right[_ngcontent-%COMP%]{display:flex;gap:var(--space-sm)}.icon-btn[_ngcontent-%COMP%]{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);border:none;background:none;cursor:pointer;font-size:16px}.icon-btn[_ngcontent-%COMP%]:hover{background:var(--bg-elevated)}"]})};var yn=jr("settings"),la=oe(yn,e=>e),JV=oe(yn,e=>e.targetUrl),Xg=oe(yn,e=>e.settingsPanelOpen),em=oe(yn,e=>e.activeTab),tm=oe(yn,e=>e.sidebarWidth),nm=oe(yn,e=>({targetUrl:e.targetUrl,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight,headless:e.headless,devtools:e.devtools,keepBrowserOpen:e.keepBrowserOpen,actionDelay:e.actionDelay,browserPath:e.browserPath||void 0,userDataDir:e.userDataDir||void 0}));var Ft=class e{constructor(t){this.http=t}baseUrl="/api";getDetectedBrowsers(){return this.http.get(`${this.baseUrl}/config/browsers`)}getProfiles(t){return this.http.get(`${this.baseUrl}/config/profiles`,{params:{userDataDir:t}})}getJourneys(){return this.http.get(`${this.baseUrl}/journeys`)}runTests(t,n){return this.http.post(`${this.baseUrl}/tests/run`,{journeys:t,config:n})}stopTests(){return this.http.post(`${this.baseUrl}/tests/stop`,{})}pauseTests(){return this.http.post(`${this.baseUrl}/tests/pause`,{})}resumeTests(){return this.http.post(`${this.baseUrl}/tests/resume`,{})}stepTests(t=1){return this.http.post(`${this.baseUrl}/tests/step`,{count:t})}setBreakpoints(t,n){return this.http.post(`${this.baseUrl}/breakpoints`,{journey:t,breakpoints:n})}getBreakpoints(t){return this.http.get(`${this.baseUrl}/breakpoints/${t}`)}clearBreakpoints(t){return this.http.delete(`${this.baseUrl}/breakpoints/${t}`)}updateConfig(t){return this.http.patch(`${this.baseUrl}/config`,t)}getSettings(){return this.http.get(`${this.baseUrl}/settings`)}saveSettings(t){return this.http.put(`${this.baseUrl}/settings`,t)}static \u0275fac=function(n){return new(n||e)(D(ra))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})};var aC=(e,t)=>t.executablePath,cC=(e,t)=>t.path;function uC(e,t){if(e&1){let n=vt();v(0,"div",30)(1,"button",31),G("mousedown",function(){let o=te(n).$implicit,i=U(3);return ne(i.selectUrl(o))}),_(2),E(),v(3,"button",32),G("mousedown",function(o){let i=te(n).$implicit,s=U(3);return ne(s.deleteUrl(i,o))}),_(4,"\u2715"),E()()}if(e&2){let n=t.$implicit;T(2),be(n)}}function lC(e,t){if(e&1&&(v(0,"div",9),mt(1,uC,5,1,"div",30,hl),E()),e&2){let n=U();T(),yt(n.targetUrlHistory)}}function dC(e,t){if(e&1&&(v(0,"option",11),_(1),E()),e&2){let n=t.$implicit;ie("value",n.executablePath),T(),be(n.name)}}function fC(e,t){if(e&1){let n=vt();v(0,"label",4),At(1,"span",5),v(2,"input",33),G("change",function(o){te(n);let i=U(2);return ne(i.updateSetting("browserPath",o))}),E()()}if(e&2){let n=U();T(2),ie("value",n.browserPath)}}function pC(e,t){if(e&1&&(v(0,"option",15),_(1),E()),e&2){let n=t.$implicit,r=U();ie("value",n.path)("selected",n.path===r.userDataDir),T(),Us("",n.name," (",n.directory,")")}}function hC(e,t){if(e&1){let n=vt();v(0,"aside",2)(1,"div",3)(2,"label",4)(3,"span",5),_(4,"URL"),E(),v(5,"div",6)(6,"input",7),G("change",function(o){te(n);let i=U();return ne(i.updateSetting("targetUrl",o))})("focus",function(){te(n);let o=U();return ne(o.urlDropdownOpen.set(!0))})("blur",function(o){te(n);let i=U();return ne(i.onUrlBlur(o))}),E(),v(7,"span",8),G("mousedown",function(){te(n);let o=U();return ne(o.urlDropdownOpen.set(!o.urlDropdownOpen()))}),E(),ge(8,lC,3,0,"div",9),E()(),v(9,"label",4)(10,"span",5),_(11,"Browser"),E(),v(12,"select",10),G("change",function(o){te(n);let i=U();return ne(i.selectBrowser(o))}),mt(13,dC,2,2,"option",11,aC),v(15,"option",12),_(16,"Custom path..."),E()()(),ge(17,fC,3,1,"label",4),v(18,"label",4)(19,"span",5),_(20,"Profile"),E(),v(21,"select",13),G("change",function(o){te(n);let i=U();return ne(i.selectProfile(o))}),v(22,"option",14),_(23,"Temp (isolated)"),E(),mt(24,pC,2,4,"option",15,cC),E()()(),v(26,"div",16)(27,"label",17)(28,"span",5),_(29,"Viewport"),E(),v(30,"select",18),G("change",function(o){te(n);let i=U();return ne(i.applyViewportPreset(o))}),v(31,"option",19),_(32,"Custom"),E(),v(33,"option",20),_(34,"1920\xD71080"),E(),v(35,"option",21),_(36,"1280\xD7720"),E(),v(37,"option",22),_(38,"1024\xD7768"),E(),v(39,"option",23),_(40,"375\xD7667 (iPhone SE)"),E(),v(41,"option",24),_(42,"390\xD7844 (iPhone 14)"),E()(),v(43,"span",25)(44,"input",26),G("change",function(o){te(n);let i=U();return ne(i.updateSetting("viewportWidth",o))}),E(),v(45,"span",27),_(46,"\xD7"),E(),v(47,"input",26),G("change",function(o){te(n);let i=U();return ne(i.updateSetting("viewportHeight",o))}),E()()(),v(48,"label",28)(49,"input",29),G("change",function(o){te(n);let i=U();return ne(i.updateSetting("devtools",o))}),E(),_(50," DevTools "),E(),v(51,"label",28)(52,"input",29),G("change",function(o){te(n);let i=U();return ne(i.updateSetting("headed",o))}),E(),_(53," Headed "),E(),v(54,"label",28)(55,"input",29),G("change",function(o){te(n);let i=U();return ne(i.updateSetting("keepBrowserOpen",o))}),E(),_(56," Keep open "),E()()()}if(e&2){let n,r=t,o=U();T(6),ie("value",r.targetUrl),T(2),me(o.urlDropdownOpen()&&r.targetUrlHistory.length>0?8:-1),T(4),ie("value",r.browserPath||((n=o.detectedBrowsers()[0])==null?null:n.executablePath)),T(),yt(o.detectedBrowsers()),T(4),me(o.showCustomBrowserInput()?17:-1),T(5),ie("selected",!r.userDataDir),T(2),yt(o.availableProfiles()),T(20),ie("value",r.viewportWidth),T(3),ie("value",r.viewportHeight),T(2),ie("checked",r.devtools),T(3),ie("checked",!r.headless),T(3),ie("checked",r.keepBrowserOpen)}}var da=class e{store=g(Z);api=g(Ft);destroyRef=g(Be);isOpen=ng(!1);settings$=this.store.select(la);detectedBrowsers=pt([]);availableProfiles=pt([]);showCustomBrowserInput=pt(!1);urlDropdownOpen=pt(!1);detectedBrowserPath="";detectedUserDataDir="";ngOnInit(){this.api.getDetectedBrowsers().pipe(fe(t=>t.length>0),ct(t=>{this.detectedBrowsers.set(t),this.detectedBrowserPath=t[0].executablePath,this.detectedUserDataDir=t[0].userDataDir})).subscribe(),Kt([this.settings$.pipe(L(t=>t.browserPath),dr()),this.api.getDetectedBrowsers()]).pipe(xg(this.destroyRef),fe(([t,n])=>t!==""&&n.length>0),pe(([t,n])=>{let r=n.find(o=>o.executablePath===t);return r?this.api.getProfiles(r.userDataDir):at([])}),ct(t=>this.availableProfiles.set(t))).subscribe()}updateSetting(t,n){let r=n.target,o=r.type==="checkbox"?r.checked:r.type==="number"?parseInt(r.value,10):r.value;if(t==="headed"){this.store.dispatch(H.updateSetting({key:"headless",value:!o}));return}this.store.dispatch(H.updateSetting({key:t,value:o}))}selectBrowser(t){let n=t.target.value;if(n==="custom"){this.showCustomBrowserInput.set(!0);return}this.showCustomBrowserInput.set(!1),this.store.dispatch(H.updateSetting({key:"browserPath",value:n})),this.store.dispatch(H.updateSetting({key:"userDataDir",value:""}))}selectProfile(t){let n=t.target.value;this.store.dispatch(H.updateSetting({key:"userDataDir",value:n}))}applyViewportPreset(t){let n=t.target.value;if(!n)return;let[r,o]=n.split("x").map(Number);this.store.dispatch(H.updateSetting({key:"viewportWidth",value:r})),this.store.dispatch(H.updateSetting({key:"viewportHeight",value:o}))}selectUrl(t){this.store.dispatch(H.updateSetting({key:"targetUrl",value:t})),this.urlDropdownOpen.set(!1)}deleteUrl(t,n){n.preventDefault(),n.stopPropagation(),this.store.dispatch(H.removeUrlFromHistory({url:t}))}onUrlBlur(t){t.relatedTarget?.closest(".url-dropdown")||this.urlDropdownOpen.set(!1)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=_e({type:e,selectors:[["gb-settings-panel"]],inputs:{isOpen:[1,"isOpen"]},decls:4,vars:4,consts:[[1,"settings-collapse"],[1,"settings-inner"],[1,"settings-panel"],[1,"settings-paths"],[1,"setting-row"],[1,"setting-label"],[1,"url-combo"],["type","text","placeholder","http://localhost:3000",1,"input-full","input-combo",3,"change","focus","blur","value"],[1,"url-combo__arrow",3,"mousedown"],[1,"url-dropdown"],[1,"input-full",3,"change","value"],[3,"value"],["value","custom"],[1,"input-full",3,"change"],["value","",3,"selected"],[3,"value","selected"],[1,"settings-options"],[1,"setting"],[1,"input-select",3,"change"],["value",""],["value","1920x1080"],["value","1280x720"],["value","1024x768"],["value","375x667"],["value","390x844"],[1,"viewport-inputs"],["type","number",1,"input-num",3,"change","value"],[1,"muted"],[1,"setting","checkbox"],["type","checkbox",3,"change","checked"],[1,"url-dropdown__item"],[1,"url-dropdown__select",3,"mousedown"],["title","Remove",1,"url-dropdown__delete",3,"mousedown"],["type","text","placeholder","Full path to browser executable",1,"input-full",3,"change","value"]],template:function(n,r){if(n&1&&(v(0,"div",0)(1,"div",1),ge(2,hC,57,10,"aside",2),W(3,"async"),E()()),n&2){let o;Ye("data-open",r.isOpen()||null),T(2),me((o=q(3,2,r.settings$))?2:-1,o)}},dependencies:[ke,Ve],styles:[`.settings-collapse{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s ease}.settings-collapse[data-open]{grid-template-rows:1fr}.settings-inner{overflow:hidden;min-height:0}.settings-panel{display:flex;flex-direction:column;gap:var(--space-sm);padding:var(--space-md);background:var(--bg-surface);border-bottom:1px solid var(--border-color);font-size:12px}.settings-paths{display:flex;flex-direction:column;gap:var(--space-xs);max-width:700px;min-width:400px}.setting-row{display:grid;grid-template-columns:60px 1fr;align-items:center;gap:var(--space-sm)}.settings-options{display:flex;align-items:center;gap:var(--space-lg);padding-top:var(--space-xs)}.setting{display:flex;align-items:center;gap:6px;color:var(--text-secondary)}.setting-label{color:var(--text-muted);white-space:nowrap;font-size:12px}.checkbox{cursor:pointer}.viewport-inputs{display:flex;align-items:center;gap:4px}.muted{color:var(--text-muted)}.input-full{width:100%;padding:4px 8px;background:var(--bg-panel);border:1px solid var(--border-color);border-radius:3px;color:var(--text-primary);font-size:12px;font-family:var(--font-mono)}select.input-full{appearance:none;-webkit-appearance:none;padding-right:28px;background:var(--bg-panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%237d8590'/%3E%3C/svg%3E") no-repeat right 10px center;cursor:pointer;font-family:var(--font-sans)}.url-combo{position:relative;width:100%}.url-combo .input-combo{padding-right:28px;background:var(--bg-panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%237d8590'/%3E%3C/svg%3E") no-repeat right 10px center}.url-combo__arrow{position:absolute;right:0;top:0;bottom:0;width:28px;cursor:pointer;pointer-events:auto}.url-dropdown{position:absolute;top:100%;left:0;right:0;z-index:10;background:var(--bg-surface);border:1px solid var(--border-color);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);max-height:160px;overflow-y:auto}.url-dropdown__item{display:flex;align-items:center;border-bottom:1px solid var(--border-color)}.url-dropdown__item:last-child{border-bottom:none}.url-dropdown__select{flex:1;padding:6px 8px;text-align:left;font-size:12px;font-family:var(--font-mono);color:var(--text-primary);background:none;border:none;cursor:pointer}.url-dropdown__select:hover{background:var(--bg-elevated)}.url-dropdown__delete{padding:4px 8px;color:var(--text-muted);font-size:11px;background:none;border:none;cursor:pointer}.url-dropdown__delete:hover{color:var(--color-danger)}.input-num{width:56px;padding:4px 6px;background:var(--bg-panel);border:1px solid var(--border-color);border-radius:3px;color:var(--text-primary);font-size:12px}.input-select{appearance:none;-webkit-appearance:none;padding:4px 28px 4px 8px;background:var(--bg-panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%237d8590'/%3E%3C/svg%3E") no-repeat right 10px center;border:1px solid var(--border-color);border-radius:3px;color:var(--text-primary);font-size:12px;cursor:pointer}
|
|
9
|
-
`],encapsulation:2})};var Gl=
|
|
10
|
-
`],encapsulation:2})};var A=
|
|
11
|
-
`],encapsulation:2})};var
|
|
12
|
-
`],encapsulation:2})};var
|
|
13
|
-
`],encapsulation:2})};function
|
|
14
|
-
`],encapsulation:2})};var
|
|
8
|
+
before dispatching the action. For example, someAction should be someAction().`);if(typeof n>"u")throw new TypeError("Actions must be objects");if(typeof n.type>"u")throw new TypeError("Actions must have a type property");super.next(n)}complete(){}ngOnDestroy(){super.complete()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})(),mC=[Ot],Ug=new w("@ngrx/store Internal Root Guard"),Ng=new w("@ngrx/store Internal Initial State"),Qo=new w("@ngrx/store Initial State"),Hg=new w("@ngrx/store Reducer Factory"),Ag=new w("@ngrx/store Internal Reducer Factory Provider"),zg=new w("@ngrx/store Initial Reducers"),Pl=new w("@ngrx/store Internal Initial Reducers");var Rg=new w("@ngrx/store Internal Store Reducers");var yC=new w("@ngrx/store Internal Store Features");var vC=new w("@ngrx/store Feature Reducers"),Og=new w("@ngrx/store User Provided Meta Reducers"),aa=new w("@ngrx/store Meta Reducers"),kg=new w("@ngrx/store Internal Resolved Meta Reducers"),Fg=new w("@ngrx/store User Runtime Checks Config"),Pg=new w("@ngrx/store Internal User Runtime Checks Config"),Zo=new w("@ngrx/store Internal Runtime Checks"),Ul=new w("@ngrx/store Check if Action types are unique"),Yo=new w("@ngrx/store Root Store Provider"),ca=new w("@ngrx/store Feature State Provider");function EC(e,t={}){let n=Object.keys(e),r={};for(let i=0;i<n.length;i++){let s=n[i];typeof e[s]=="function"&&(r[s]=e[s])}let o=Object.keys(r);return function(s,a){s=s===void 0?t:s;let c=!1,u={};for(let l=0;l<o.length;l++){let d=o[l],f=r[d],p=s[d],h=f(p,a);u[d]=h,c=c||h!==p}return c?u:s}}function DC(e,t){return Object.keys(e).filter(n=>n!==t).reduce((n,r)=>Object.assign(n,{[r]:e[r]}),{})}function Gg(...e){return function(t){if(e.length===0)return t;let n=e[e.length-1];return e.slice(0,-1).reduceRight((o,i)=>i(o),n(t))}}function Wg(e,t){return Array.isArray(t)&&t.length>0&&(e=Gg.apply(null,[...t,e])),(n,r)=>{let o=e(n);return(i,s)=>(i=i===void 0?r:i,o(i,s))}}function bC(e){let t=Array.isArray(e)&&e.length>0?Gg(...e):n=>n;return(n,r)=>(n=t(n),(o,i)=>(o=o===void 0?r:o,n(o,i)))}var Qn=class extends j{},Pr=class extends Ot{},la="@ngrx/store/update-reducers",ua=(()=>{class e extends Lt{get currentReducers(){return this.reducers}constructor(n,r,o,i){super(i(o,r)),this.dispatcher=n,this.initialState=r,this.reducers=o,this.reducerFactory=i}addFeature(n){this.addFeatures([n])}addFeatures(n){let r=n.reduce((o,{reducers:i,reducerFactory:s,metaReducers:a,initialState:c,key:u})=>{let l=typeof i=="function"?bC(a)(i,c):Wg(s,a)(i,c);return o[u]=l,o},{});this.addReducers(r)}removeFeature(n){this.removeFeatures([n])}removeFeatures(n){this.removeReducers(n.map(r=>r.key))}addReducer(n,r){this.addReducers({[n]:r})}addReducers(n){this.reducers=y(y({},this.reducers),n),this.updateReducers(Object.keys(n))}removeReducer(n){this.removeReducers([n])}removeReducers(n){n.forEach(r=>{this.reducers=DC(this.reducers,r)}),this.updateReducers(n)}updateReducers(n){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:la,features:n})}ngOnDestroy(){this.complete()}static{this.\u0275fac=function(r){return new(r||e)(D(Pr),D(Qo),D(zg),D(Hg))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})(),wC=[ua,{provide:Qn,useExisting:ua},{provide:Pr,useExisting:Ot}],Kn=(()=>{class e extends ve{ngOnDestroy(){this.complete()}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=To(e)))(o||e)}})()}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})(),CC=[Kn],Lr=class extends j{},Lg=(()=>{class e extends Lt{static{this.INIT=Jo}constructor(n,r,o,i){super(i);let a=n.pipe(jt(Yr)).pipe(Qe(r)),c={state:i},u=a.pipe(Xr(IC,c));this.stateSubscription=u.subscribe(({state:l,action:d})=>{this.next(l),o.next(d)}),this.state=sa(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}static{this.\u0275fac=function(r){return new(r||e)(D(Ot),D(Qn),D(Kn),D(Qo))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})();function IC(e={state:void 0},[t,n]){let{state:r}=e;return{state:n(r,t),action:t}}var _C=[Lg,{provide:Lr,useExisting:Lg}],Z=(()=>{class e extends j{constructor(n,r,o,i){super(),this.actionsObserver=r,this.reducerManager=o,this.injector=i,this.source=n,this.state=n.state}select(n,...r){return TC.call(null,n,...r)(this)}selectSignal(n,r){return jo(()=>n(this.state()),r)}lift(n){let r=new e(this,this.actionsObserver,this.reducerManager);return r.operator=n,r}dispatch(n,r){if(typeof n=="function")return this.processDispatchFn(n,r);this.actionsObserver.next(n)}next(n){this.actionsObserver.next(n)}error(n){this.actionsObserver.error(n)}complete(){this.actionsObserver.complete()}addReducer(n,r){this.reducerManager.addReducer(n,r)}removeReducer(n){this.reducerManager.removeReducer(n)}processDispatchFn(n,r){pC(this.injector,"Store Injector");let o=r?.injector??MC()??this.injector;return ho(()=>{let i=n();qn(()=>this.dispatch(i))},{injector:o})}static{this.\u0275fac=function(r){return new(r||e)(D(Lr),D(Ot),D(ua),D(Ie))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})(),SC=[Z];function TC(e,t,...n){return function(o){let i;if(typeof e=="string"){let s=[t,...n].filter(Boolean);i=o.pipe(rc(e,...s))}else if(typeof e=="function")i=o.pipe(L(s=>e(s,t)));else throw new TypeError(`Unexpected type '${typeof e}' in select operator, expected 'string' or 'function'`);return i.pipe(dr())}}function MC(){try{return g(Ie)}catch(e){return}}var Hl="https://ngrx.io/guide/store/configuration/runtime-checks";function jg(e){return e===void 0}function Bg(e){return e===null}function qg(e){return Array.isArray(e)}function xC(e){return typeof e=="string"}function NC(e){return typeof e=="boolean"}function AC(e){return typeof e=="number"}function Zg(e){return typeof e=="object"&&e!==null}function RC(e){return Zg(e)&&!qg(e)}function OC(e){if(!RC(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function jl(e){return typeof e=="function"}function kC(e){return jl(e)&&e.hasOwnProperty("\u0275cmp")}function FC(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var PC=!1;function LC(){return PC}function Vg(e,t){return e===t}function jC(e,t,n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!0;return!1}function Yg(e,t=Vg,n=Vg){let r=null,o=null,i;function s(){r=null,o=null}function a(l=void 0){i={result:l}}function c(){i=void 0}function u(){if(i!==void 0)return i.result;if(!r)return o=e.apply(null,arguments),r=arguments,o;if(!jC(arguments,r,t))return o;let l=e.apply(null,arguments);return r=arguments,n(o,l)?o:(o=l,l)}return{memoized:u,reset:s,setResult:a,clearResult:c}}function oe(...e){return VC(Yg)(...e)}function BC(e,t,n,r){if(n===void 0){let i=t.map(s=>s(e));return r.memoized.apply(null,i)}let o=t.map(i=>i(e,n));return r.memoized.apply(null,[...o,n])}function VC(e,t={stateFn:BC}){return function(...n){let r=n;if(Array.isArray(r[0])){let[l,...d]=r;r=[...l,...d]}else r.length===1&&$C(r[0])&&(r=UC(r[0]));let o=r.slice(0,r.length-1),i=r[r.length-1],s=o.filter(l=>l.release&&typeof l.release=="function"),a=e(function(...l){return i.apply(null,l)}),c=Yg(function(l,d){return t.stateFn.apply(null,[l,o,d,a])});function u(){c.reset(),a.reset(),s.forEach(l=>l.release())}return Object.assign(c.memoized,{release:u,projector:a.memoized,setResult:c.setResult,clearResult:c.clearResult})}}function Br(e){return oe(t=>{let n=t[e];return!LC()&&Vo()&&!(e in t)&&console.warn(`@ngrx/store: The feature name "${e}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${e}', ...) or StoreModule.forFeature('${e}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),n},t=>t)}function $C(e){return!!e&&typeof e=="object"&&Object.values(e).every(t=>typeof t=="function")}function UC(e){let t=Object.values(e),n=Object.keys(e),r=(...o)=>n.reduce((i,s,a)=>I(y({},i),{[s]:o[a]}),{});return[...t,r]}function HC(e){return e instanceof w?g(e):e}function Jg(e){return typeof e=="function"?e():e}function zC(e,t){return e.concat(t)}function GC(){if(g(Z,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function WC(e,t){return function(n,r){let o=t.action(r)?Bl(r):r,i=e(n,o);return t.state()?Bl(i):i}}function Bl(e){Object.freeze(e);let t=jl(e);return Object.getOwnPropertyNames(e).forEach(n=>{if(!n.startsWith("\u0275")&&FC(e,n)&&(!t||n!=="caller"&&n!=="callee"&&n!=="arguments")){let r=e[n];(Zg(r)||jl(r))&&!Object.isFrozen(r)&&Bl(r)}}),e}function qC(e,t){return function(n,r){if(t.action(r)){let i=Vl(r);$g(i,"action")}let o=e(n,r);if(t.state()){let i=Vl(o);$g(i,"state")}return o}}function Vl(e,t=[]){return(jg(e)||Bg(e))&&t.length===0?{path:["root"],value:e}:Object.keys(e).reduce((r,o)=>{if(r)return r;let i=e[o];return kC(i)?r:jg(i)||Bg(i)||AC(i)||NC(i)||xC(i)||qg(i)?!1:OC(i)?Vl(i,[...t,o]):{path:[...t,o],value:i}},!1)}function $g(e,t){if(e===!1)return;let n=e.path.join("."),r=new Error(`Detected unserializable ${t} at "${n}". ${Hl}#strict${t}serializability`);throw r.value=e.value,r.unserializablePath=n,r}function ZC(e,t){return function(n,r){if(t.action(r)&&!re.isInAngularZone())throw new Error(`Action '${r.type}' running outside NgZone. ${Hl}#strictactionwithinngzone`);return e(n,r)}}function YC(e){return Vo()?y({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},e):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function JC({strictActionSerializability:e,strictStateSerializability:t}){return n=>e||t?qC(n,{action:r=>e&&!zl(r),state:()=>t}):n}function QC({strictActionImmutability:e,strictStateImmutability:t}){return n=>e||t?WC(n,{action:r=>e&&!zl(r),state:()=>t}):n}function zl(e){return e.type.startsWith("@ngrx")}function KC({strictActionWithinNgZone:e}){return t=>e?ZC(t,{action:n=>e&&!zl(n)}):t}function XC(e){return[{provide:Pg,useValue:e},{provide:Fg,useFactory:tI,deps:[Pg]},{provide:Zo,deps:[Fg],useFactory:YC},{provide:aa,multi:!0,deps:[Zo],useFactory:QC},{provide:aa,multi:!0,deps:[Zo],useFactory:JC},{provide:aa,multi:!0,deps:[Zo],useFactory:KC}]}function eI(){return[{provide:Ul,multi:!0,deps:[Zo],useFactory:nI}]}function tI(e){return e}function nI(e){if(!e.strictActionTypeUniqueness)return;let t=Object.entries(Ll).filter(([,n])=>n>1).map(([n])=>n);if(t.length)throw new Error(`Action types are registered more than once, ${t.map(n=>`"${n}"`).join(", ")}. ${Hl}#strictactiontypeuniqueness`)}function rI(e={},t={}){return[{provide:Ug,useFactory:GC},{provide:Ng,useValue:t.initialState},{provide:Qo,useFactory:Jg,deps:[Ng]},{provide:Pl,useValue:e},{provide:Rg,useExisting:e instanceof w?e:Pl},{provide:zg,deps:[Pl,[new Wu(Rg)]],useFactory:HC},{provide:Og,useValue:t.metaReducers?t.metaReducers:[]},{provide:kg,deps:[aa,Og],useFactory:zC},{provide:Ag,useValue:t.reducerFactory?t.reducerFactory:EC},{provide:Hg,deps:[Ag,kg],useFactory:Wg},mC,wC,CC,_C,SC,XC(t.runtimeChecks),eI()]}function oI(){g(Ot),g(Qn),g(Kn),g(Z),g(Ug,{optional:!0}),g(Ul,{optional:!0})}var iI=[{provide:Yo,useFactory:oI},mr(()=>g(Yo))];function Qg(e,t){return Xe([...rI(e,t),iI])}function sI(){g(Yo);let e=g(yC),t=g(vC),n=g(ua);g(Ul,{optional:!0});let r=e.map((o,i)=>{let a=t.shift()[i];return I(y({},o),{reducers:a,initialState:Jg(o.initialState)})});n.addFeatures(r)}var UV=[{provide:ca,useFactory:sI},mr(()=>g(ca))];function Q(...e){let t=e.pop(),n=e.map(r=>r.type);return{reducer:t,types:n}}function Vr(e,...t){let n=new Map;for(let r of t)for(let o of r.types){let i=n.get(o);if(i){let s=(a,c)=>r.reducer(i(a,c),c);n.set(o,s)}else n.set(o,r.reducer)}return function(r=e,o){let i=n.get(o.type);return i?i(r,o):r}}var H=jr({source:"Settings",events:{"Load Settings":we(),"Load Settings Success":Se(),"Update Setting":Se(),"Save Settings":we(),"Toggle Settings Panel":we(),"Remove Url From History":Se()}});var mn=class e{constructor(t){this.store=t}currentTheme="dark";initialize(){let t=localStorage.getItem("glassbox-theme");t==="dark"||t==="light"?this.applyTheme(t):window.matchMedia("(prefers-color-scheme: light)").matches?this.applyTheme("light"):this.applyTheme("dark")}applyFromSettings(t){(t==="dark"||t==="light")&&this.applyTheme(t)}toggle(){let t=this.currentTheme==="dark"?"light":"dark";this.applyTheme(t),localStorage.setItem("glassbox-theme",t),this.store.dispatch(H.updateSetting({key:"theme",value:t}))}applyTheme(t){this.currentTheme=t,document.documentElement.setAttribute("data-theme",t)}static \u0275fac=function(n){return new(n||e)(D(Z))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})};var da=class e{constructor(t){this.themeService=t}settingsToggled=tg();toggleTheme(){this.themeService.toggle()}static \u0275fac=function(n){return new(n||e)(ue(mn))};static \u0275cmp=_e({type:e,selectors:[["gb-header"]],outputs:{settingsToggled:"settingsToggled"},decls:10,vars:0,consts:[[1,"header"],[1,"header-left"],["src","assets/logo.svg","alt","Glassbox","width","24","height","24",1,"header-logo"],[1,"logo"],[1,"header-right"],["title","Toggle theme",1,"icon-btn",3,"click"],["title","Settings",1,"icon-btn",3,"click"]],template:function(n,r){n&1&&(v(0,"header",0)(1,"div",1),At(2,"img",2),v(3,"span",3),_(4,"Glassbox"),E()(),v(5,"div",4)(6,"button",5),G("click",function(){return r.toggleTheme()}),_(7,"\u{1F313}"),E(),v(8,"button",6),G("click",function(){return r.settingsToggled.emit()}),_(9,"\u2699\uFE0F"),E()()())},styles:[".header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:var(--space-sm) var(--space-md);background:var(--bg-panel);border-bottom:1px solid var(--border-color)}.header-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--space-sm)}.header-logo[_ngcontent-%COMP%]{display:block}.logo[_ngcontent-%COMP%]{font-weight:700;font-size:16px;color:var(--accent-primary);letter-spacing:-.5px}.header-right[_ngcontent-%COMP%]{display:flex;gap:var(--space-sm)}.icon-btn[_ngcontent-%COMP%]{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);border:none;background:none;cursor:pointer;font-size:16px}.icon-btn[_ngcontent-%COMP%]:hover{background:var(--bg-elevated)}"]})};var yn=Br("settings"),fa=oe(yn,e=>e),QV=oe(yn,e=>e.targetUrl),Xg=oe(yn,e=>e.settingsPanelOpen),em=oe(yn,e=>e.activeTab),tm=oe(yn,e=>e.sidebarWidth),nm=oe(yn,e=>({targetUrl:e.targetUrl,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight,headless:e.headless,devtools:e.devtools,keepBrowserOpen:e.keepBrowserOpen,actionDelay:e.actionDelay,browserPath:e.browserPath||void 0,userDataDir:e.userDataDir||void 0}));var Ft=class e{constructor(t){this.http=t}baseUrl="/api";getDetectedBrowsers(){return this.http.get(`${this.baseUrl}/config/browsers`)}getProfiles(t){return this.http.get(`${this.baseUrl}/config/profiles`,{params:{userDataDir:t}})}getJourneys(){return this.http.get(`${this.baseUrl}/journeys`)}runTests(t,n){return this.http.post(`${this.baseUrl}/tests/run`,{journeys:t,config:n})}stopTests(){return this.http.post(`${this.baseUrl}/tests/stop`,{})}pauseTests(){return this.http.post(`${this.baseUrl}/tests/pause`,{})}resumeTests(){return this.http.post(`${this.baseUrl}/tests/resume`,{})}stepTests(t=1){return this.http.post(`${this.baseUrl}/tests/step`,{count:t})}setBreakpoints(t,n){return this.http.post(`${this.baseUrl}/breakpoints`,{journey:t,breakpoints:n})}getBreakpoints(t){return this.http.get(`${this.baseUrl}/breakpoints/${t}`)}clearBreakpoints(t){return this.http.delete(`${this.baseUrl}/breakpoints/${t}`)}updateConfig(t){return this.http.patch(`${this.baseUrl}/config`,t)}getSettings(){return this.http.get(`${this.baseUrl}/settings`)}saveSettings(t){return this.http.put(`${this.baseUrl}/settings`,t)}static \u0275fac=function(n){return new(n||e)(D(ia))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})};var aI=(e,t)=>t.executablePath,cI=(e,t)=>t.path;function uI(e,t){if(e&1){let n=vt();v(0,"div",30)(1,"button",31),G("mousedown",function(){let o=te(n).$implicit,i=U(3);return ne(i.selectUrl(o))}),_(2),E(),v(3,"button",32),G("mousedown",function(o){let i=te(n).$implicit,s=U(3);return ne(s.deleteUrl(i,o))}),_(4,"\u2715"),E()()}if(e&2){let n=t.$implicit;T(2),be(n)}}function lI(e,t){if(e&1&&(v(0,"div",9),mt(1,uI,5,1,"div",30,ml),E()),e&2){let n=U();T(),yt(n.targetUrlHistory)}}function dI(e,t){if(e&1&&(v(0,"option",11),_(1),E()),e&2){let n=t.$implicit;ie("value",n.executablePath),T(),be(n.name)}}function fI(e,t){if(e&1){let n=vt();v(0,"label",4),At(1,"span",5),v(2,"input",33),G("change",function(o){te(n);let i=U(2);return ne(i.updateSetting("browserPath",o))}),E()()}if(e&2){let n=U();T(2),ie("value",n.browserPath)}}function pI(e,t){if(e&1&&(v(0,"option",15),_(1),E()),e&2){let n=t.$implicit,r=U();ie("value",n.path)("selected",n.path===r.userDataDir),T(),zs("",n.name," (",n.directory,")")}}function hI(e,t){if(e&1){let n=vt();v(0,"aside",2)(1,"div",3)(2,"label",4)(3,"span",5),_(4,"URL"),E(),v(5,"div",6)(6,"input",7),G("change",function(o){te(n);let i=U();return ne(i.updateSetting("targetUrl",o))})("focus",function(){te(n);let o=U();return ne(o.urlDropdownOpen.set(!0))})("blur",function(o){te(n);let i=U();return ne(i.onUrlBlur(o))}),E(),v(7,"span",8),G("mousedown",function(){te(n);let o=U();return ne(o.urlDropdownOpen.set(!o.urlDropdownOpen()))}),E(),ge(8,lI,3,0,"div",9),E()(),v(9,"label",4)(10,"span",5),_(11,"Browser"),E(),v(12,"select",10),G("change",function(o){te(n);let i=U();return ne(i.selectBrowser(o))}),mt(13,dI,2,2,"option",11,aI),v(15,"option",12),_(16,"Custom path..."),E()()(),ge(17,fI,3,1,"label",4),v(18,"label",4)(19,"span",5),_(20,"Profile"),E(),v(21,"select",13),G("change",function(o){te(n);let i=U();return ne(i.selectProfile(o))}),v(22,"option",14),_(23,"Temp (isolated)"),E(),mt(24,pI,2,4,"option",15,cI),E()()(),v(26,"div",16)(27,"label",17)(28,"span",5),_(29,"Viewport"),E(),v(30,"select",18),G("change",function(o){te(n);let i=U();return ne(i.applyViewportPreset(o))}),v(31,"option",19),_(32,"Custom"),E(),v(33,"option",20),_(34,"1920\xD71080"),E(),v(35,"option",21),_(36,"1280\xD7720"),E(),v(37,"option",22),_(38,"1024\xD7768"),E(),v(39,"option",23),_(40,"375\xD7667 (iPhone SE)"),E(),v(41,"option",24),_(42,"390\xD7844 (iPhone 14)"),E()(),v(43,"span",25)(44,"input",26),G("change",function(o){te(n);let i=U();return ne(i.updateSetting("viewportWidth",o))}),E(),v(45,"span",27),_(46,"\xD7"),E(),v(47,"input",26),G("change",function(o){te(n);let i=U();return ne(i.updateSetting("viewportHeight",o))}),E()()(),v(48,"label",28)(49,"input",29),G("change",function(o){te(n);let i=U();return ne(i.updateSetting("devtools",o))}),E(),_(50," DevTools "),E(),v(51,"label",28)(52,"input",29),G("change",function(o){te(n);let i=U();return ne(i.updateSetting("headed",o))}),E(),_(53," Headed "),E(),v(54,"label",28)(55,"input",29),G("change",function(o){te(n);let i=U();return ne(i.updateSetting("keepBrowserOpen",o))}),E(),_(56," Keep open "),E()()()}if(e&2){let n,r=t,o=U();T(6),ie("value",r.targetUrl),T(2),me(o.urlDropdownOpen()&&r.targetUrlHistory.length>0?8:-1),T(4),ie("value",r.browserPath||((n=o.detectedBrowsers()[0])==null?null:n.executablePath)),T(),yt(o.detectedBrowsers()),T(4),me(o.showCustomBrowserInput()?17:-1),T(5),ie("selected",!r.userDataDir),T(2),yt(o.availableProfiles()),T(20),ie("value",r.viewportWidth),T(3),ie("value",r.viewportHeight),T(2),ie("checked",r.devtools),T(3),ie("checked",!r.headless),T(3),ie("checked",r.keepBrowserOpen)}}var pa=class e{store=g(Z);api=g(Ft);destroyRef=g(Be);isOpen=ng(!1);settings$=this.store.select(fa);detectedBrowsers=pt([]);availableProfiles=pt([]);showCustomBrowserInput=pt(!1);urlDropdownOpen=pt(!1);detectedBrowserPath="";detectedUserDataDir="";ngOnInit(){this.api.getDetectedBrowsers().pipe(fe(t=>t.length>0),ct(t=>{this.detectedBrowsers.set(t),this.detectedBrowserPath=t[0].executablePath,this.detectedUserDataDir=t[0].userDataDir})).subscribe(),Kt([this.settings$.pipe(L(t=>t.browserPath),dr()),this.api.getDetectedBrowsers()]).pipe(xg(this.destroyRef),fe(([t,n])=>t!==""&&n.length>0),pe(([t,n])=>{let r=n.find(o=>o.executablePath===t);return r?this.api.getProfiles(r.userDataDir):at([])}),ct(t=>this.availableProfiles.set(t))).subscribe()}updateSetting(t,n){let r=n.target,o=r.type==="checkbox"?r.checked:r.type==="number"?parseInt(r.value,10):r.value;if(t==="headed"){this.store.dispatch(H.updateSetting({key:"headless",value:!o}));return}this.store.dispatch(H.updateSetting({key:t,value:o}))}selectBrowser(t){let n=t.target.value;if(n==="custom"){this.showCustomBrowserInput.set(!0);return}this.showCustomBrowserInput.set(!1),this.store.dispatch(H.updateSetting({key:"browserPath",value:n})),this.store.dispatch(H.updateSetting({key:"userDataDir",value:""}))}selectProfile(t){let n=t.target.value;this.store.dispatch(H.updateSetting({key:"userDataDir",value:n}))}applyViewportPreset(t){let n=t.target.value;if(!n)return;let[r,o]=n.split("x").map(Number);this.store.dispatch(H.updateSetting({key:"viewportWidth",value:r})),this.store.dispatch(H.updateSetting({key:"viewportHeight",value:o}))}selectUrl(t){this.store.dispatch(H.updateSetting({key:"targetUrl",value:t})),this.urlDropdownOpen.set(!1)}deleteUrl(t,n){n.preventDefault(),n.stopPropagation(),this.store.dispatch(H.removeUrlFromHistory({url:t}))}onUrlBlur(t){t.relatedTarget?.closest(".url-dropdown")||this.urlDropdownOpen.set(!1)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=_e({type:e,selectors:[["gb-settings-panel"]],inputs:{isOpen:[1,"isOpen"]},decls:4,vars:4,consts:[[1,"settings-collapse"],[1,"settings-inner"],[1,"settings-panel"],[1,"settings-paths"],[1,"setting-row"],[1,"setting-label"],[1,"url-combo"],["type","text","placeholder","http://localhost:3000",1,"input-full","input-combo",3,"change","focus","blur","value"],[1,"url-combo__arrow",3,"mousedown"],[1,"url-dropdown"],[1,"input-full",3,"change","value"],[3,"value"],["value","custom"],[1,"input-full",3,"change"],["value","",3,"selected"],[3,"value","selected"],[1,"settings-options"],[1,"setting"],[1,"input-select",3,"change"],["value",""],["value","1920x1080"],["value","1280x720"],["value","1024x768"],["value","375x667"],["value","390x844"],[1,"viewport-inputs"],["type","number",1,"input-num",3,"change","value"],[1,"muted"],[1,"setting","checkbox"],["type","checkbox",3,"change","checked"],[1,"url-dropdown__item"],[1,"url-dropdown__select",3,"mousedown"],["title","Remove",1,"url-dropdown__delete",3,"mousedown"],["type","text","placeholder","Full path to browser executable",1,"input-full",3,"change","value"]],template:function(n,r){if(n&1&&(v(0,"div",0)(1,"div",1),ge(2,hI,57,10,"aside",2),W(3,"async"),E()()),n&2){let o;Ye("data-open",r.isOpen()||null),T(2),me((o=q(3,2,r.settings$))?2:-1,o)}},dependencies:[ke,Ve],styles:[`.settings-collapse{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s ease}.settings-collapse[data-open]{grid-template-rows:1fr}.settings-inner{overflow:hidden;min-height:0}.settings-panel{display:flex;flex-direction:column;gap:var(--space-sm);padding:var(--space-md);background:var(--bg-surface);border-bottom:1px solid var(--border-color);font-size:12px}.settings-paths{display:flex;flex-direction:column;gap:var(--space-xs);max-width:700px;min-width:400px}.setting-row{display:grid;grid-template-columns:60px 1fr;align-items:center;gap:var(--space-sm)}.settings-options{display:flex;align-items:center;gap:var(--space-lg);padding-top:var(--space-xs)}.setting{display:flex;align-items:center;gap:6px;color:var(--text-secondary)}.setting-label{color:var(--text-muted);white-space:nowrap;font-size:12px}.checkbox{cursor:pointer}.viewport-inputs{display:flex;align-items:center;gap:4px}.muted{color:var(--text-muted)}.input-full{width:100%;padding:4px 8px;background:var(--bg-panel);border:1px solid var(--border-color);border-radius:3px;color:var(--text-primary);font-size:12px;font-family:var(--font-mono)}select.input-full{appearance:none;-webkit-appearance:none;padding-right:28px;background:var(--bg-panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%237d8590'/%3E%3C/svg%3E") no-repeat right 10px center;cursor:pointer;font-family:var(--font-sans)}.url-combo{position:relative;width:100%}.url-combo .input-combo{padding-right:28px;background:var(--bg-panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%237d8590'/%3E%3C/svg%3E") no-repeat right 10px center}.url-combo__arrow{position:absolute;right:0;top:0;bottom:0;width:28px;cursor:pointer;pointer-events:auto}.url-dropdown{position:absolute;top:100%;left:0;right:0;z-index:10;background:var(--bg-surface);border:1px solid var(--border-color);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);max-height:160px;overflow-y:auto}.url-dropdown__item{display:flex;align-items:center;border-bottom:1px solid var(--border-color)}.url-dropdown__item:last-child{border-bottom:none}.url-dropdown__select{flex:1;padding:6px 8px;text-align:left;font-size:12px;font-family:var(--font-mono);color:var(--text-primary);background:none;border:none;cursor:pointer}.url-dropdown__select:hover{background:var(--bg-elevated)}.url-dropdown__delete{padding:4px 8px;color:var(--text-muted);font-size:11px;background:none;border:none;cursor:pointer}.url-dropdown__delete:hover{color:var(--color-danger)}.input-num{width:56px;padding:4px 6px;background:var(--bg-panel);border:1px solid var(--border-color);border-radius:3px;color:var(--text-primary);font-size:12px}.input-select{appearance:none;-webkit-appearance:none;padding:4px 28px 4px 8px;background:var(--bg-panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%237d8590'/%3E%3C/svg%3E") no-repeat right 10px center;border:1px solid var(--border-color);border-radius:3px;color:var(--text-primary);font-size:12px;cursor:pointer}
|
|
9
|
+
`],encapsulation:2})};var Gl=Br("journeys"),ha=oe(Gl,e=>e.journeys),$r=oe(Gl,e=>e.selectedIds),Wl=oe(ha,$r,(e,t)=>e.filter(n=>t.includes(n.id)).map(n=>n.path)),h$=oe(Gl,e=>e.loading);var Yt=Br("execution"),Ko=oe(Yt,e=>e.fsmState),ga=oe(Yt,e=>e.actions),ma=oe(Yt,e=>e.consoleLogs),rm=oe(Yt,e=>e.connectionStatus),om=oe(Yt,e=>e.results.reduce((t,n)=>(n.status==="passed"?t.passed++:n.status==="failed"&&t.failed++,t),{passed:0,failed:0,skipped:0})),im=oe(Ko,e=>({fsmState:e,canPlay:e==="idle"||e==="completed"||e==="errored",canPause:e==="running",canResume:e==="paused",canStep:e==="paused",canStop:e==="running"||e==="paused"||e==="stepping"})),ya=oe(Yt,e=>e.breakpoints),sm=oe(Yt,e=>e.currentJourney),am=oe(Yt,e=>{let t={};return e.results.forEach(n=>{t[n.journey]=n.status}),t}),cm=oe(Yt,e=>{let t=e.consoleLogs.filter(n=>n.type==="error");return t.length>0?t[t.length-1].message:null});var Te=jr({source:"Journeys",events:{"Load Journeys":we(),"Load Journeys Success":Se(),"Toggle Journey":Se(),"Select All":we(),"Deselect All":we()}});var gI=(e,t)=>t.id;function mI(e,t){e&1&&At(0,"span",12)}function yI(e,t){e&1&&_(0," \u2713 ")}function vI(e,t){e&1&&_(0," \u2717 ")}function EI(e,t){if(e&1){let n=vt();v(0,"li",8)(1,"label",4)(2,"input",9),G("change",function(){let o=te(n).$implicit,i=U();return ne(i.toggleJourney(o.id))}),E(),v(3,"span",10),_(4),E(),v(5,"span",11),ge(6,mI,1,0,"span",12)(7,yI,1,0)(8,vI,1,0),E()()()}if(e&2){let n,r=t.$implicit;Ye("data-status",r.status),T(2),ie("checked",r.selected),T(2),be(r.name),T(2),me((n=r.status)==="running"?6:n==="passed"?7:n==="failed"?8:-1)}}var va=class e{constructor(t){this.store=t}journeyViews$;selectAllState$;ngOnInit(){this.store.dispatch(Te.loadJourneys()),this.selectAllState$=Kt([this.store.select(ha),this.store.select($r)]).pipe(L(([t,n])=>t.length===0||n.length===0?"none":n.length===t.length?"all":"indeterminate")),this.journeyViews$=Kt([this.store.select(ha),this.store.select($r),this.store.select(sm),this.store.select(am)]).pipe(L(([t,n,r,o])=>t.map(i=>I(y({},i),{selected:n.includes(i.id),status:this.getJourneyStatus(i.path,r,o)}))))}toggleAll(){return Je(this,null,function*(){let t=yield Bt(this.selectAllState$);this.store.dispatch(t==="all"?Te.deselectAll():Te.selectAll())})}toggleJourney(t){this.store.dispatch(Te.toggleJourney({id:t}))}getJourneyStatus(t,n,r){return n===t?"running":r[t]?r[t]:"idle"}static \u0275fac=function(n){return new(n||e)(ue(Z))};static \u0275cmp=_e({type:e,selectors:[["gb-sidebar"]],decls:15,vars:8,consts:[[1,"sidebar"],[1,"sidebar-header"],[1,"sidebar-title"],[1,"select-all-row"],[1,"journey-label"],["type","checkbox",3,"change","checked","indeterminate"],[1,"journey-name","select-all-label"],[1,"journey-list"],[1,"journey-item"],["type","checkbox",3,"change","checked"],[1,"journey-name"],[1,"journey-status-icon"],[1,"spinner"]],template:function(n,r){n&1&&(v(0,"nav",0)(1,"div",1)(2,"span",2),_(3,"Journeys"),E()(),v(4,"div",3)(5,"label",4)(6,"input",5),W(7,"async"),W(8,"async"),G("change",function(){return r.toggleAll()}),E(),v(9,"span",6),_(10,"Select all"),E()()(),v(11,"ul",7),mt(12,EI,9,4,"li",8,gI),W(14,"async"),E()()),n&2&&(T(6),ie("checked",q(7,2,r.selectAllState$)==="all")("indeterminate",q(8,4,r.selectAllState$)==="indeterminate"),T(6),yt(q(14,6,r.journeyViews$)))},dependencies:[ke,Ve],styles:[`gb-sidebar .sidebar{background:var(--bg-panel);border-right:1px solid var(--border-color);overflow-y:auto;height:100%}gb-sidebar .sidebar-header{padding:var(--space-md);border-bottom:1px solid var(--border-color)}gb-sidebar .sidebar-title{font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted)}gb-sidebar .select-all-row{border-bottom:1px solid var(--border-color)}gb-sidebar .select-all-label{font-size:12px;color:var(--text-secondary)}gb-sidebar .journey-list{list-style:none}gb-sidebar .journey-item{border-bottom:1px solid var(--border-color)}gb-sidebar .journey-item[data-status=running]{background:var(--bg-elevated)}gb-sidebar .journey-item[data-status=passed] .journey-status-icon{color:var(--color-success)}gb-sidebar .journey-item[data-status=failed] .journey-status-icon{color:var(--color-danger)}gb-sidebar .journey-label{display:flex;align-items:center;gap:var(--space-sm);padding:var(--space-sm) var(--space-md);cursor:pointer;font-size:13px}gb-sidebar .journey-label:hover{background:var(--bg-surface)}gb-sidebar .journey-name{flex:1}gb-sidebar .journey-status-icon{font-size:12px;width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center}gb-sidebar .journey-item[data-status=running] .journey-status-icon{animation:none}gb-sidebar .spinner{width:10px;height:10px;border:2px solid var(--border-color);border-top-color:var(--accent-primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes flip{0%,60%{transform:rotate(0)}70%{transform:rotate(180deg)}80%{transform:rotate(180deg)}90%{transform:rotate(360deg)}to{transform:rotate(360deg)}}
|
|
10
|
+
`],encapsulation:2})};var A=jr({source:"Execution",events:{Play:we(),Pause:we(),Resume:we(),Step:we(),Stop:we(),"Update Config":Se(),"Action Received":Se(),"Test Started":Se(),"Test Ended":Se(),"Log Received":Se(),"Error Received":Se(),"Paused By Runner":we(),"Resumed By Runner":we(),"Connection Status Changed":Se(),"Run Ended":we(),"Toggle Breakpoint":Se(),"Clear Actions":we(),"Clear Console":we()}});function DI(e,t){if(e&1){let n=vt();v(0,"button",7),G("click",function(){let o=te(n),i=U();return ne(o.canPlay?i.play():i.resume())}),_(1,"\u25B6"),E(),v(2,"button",8),G("click",function(){te(n);let o=U();return ne(o.pause())}),_(3,"\u23F8"),E(),v(4,"button",9),G("click",function(){te(n);let o=U();return ne(o.step())}),_(5,"\u23ED"),E(),v(6,"button",10),G("click",function(){te(n);let o=U();return ne(o.stop())}),_(7,"\u23F9"),E()}if(e&2){let n=t;ie("disabled",!n.canPlay&&!n.canResume)("title",n.canResume?"Resume":"Run"),T(2),ie("disabled",!n.canPause),T(2),ie("disabled",!n.canStep),T(2),ie("disabled",!n.canStop)}}var Ea=class e{constructor(t){this.store=t;this.state$=this.store.select(im),this.settings$=this.store.select(yn)}state$;settings$;play(){this.store.dispatch(A.play())}pause(){this.store.dispatch(A.pause())}resume(){this.store.dispatch(A.resume())}step(){this.store.dispatch(A.step())}stop(){this.store.dispatch(A.stop())}onDelayChange(t){let n=parseInt(t.target.value,10),r=this.sliderToDelay(n);this.store.dispatch(H.updateSetting({key:"actionDelay",value:r})),this.store.dispatch(A.updateConfig({actionDelay:r}))}delayToSlider(t){return Math.round(Math.sqrt(t/5e3)*100)}sliderToDelay(t){return Math.round((t/100)**2*5e3)}static \u0275fac=function(n){return new(n||e)(ue(Z))};static \u0275cmp=_e({type:e,selectors:[["gb-toolbar"]],decls:15,vars:12,consts:[[1,"gb-toolbar"],[1,"gb-toolbar__controls"],[1,"gb-toolbar__slider"],[1,"gb-toolbar__slider-label"],["type","range","min","0","max","100",3,"input","value"],[1,"gb-toolbar__slider-value"],[1,"gb-toolbar__state"],[1,"gb-toolbar__btn","gb-toolbar__btn--play",3,"click","disabled","title"],["title","Pause",1,"gb-toolbar__btn",3,"click","disabled"],["title","Step",1,"gb-toolbar__btn",3,"click","disabled"],["title","Stop",1,"gb-toolbar__btn","gb-toolbar__btn--stop",3,"click","disabled"]],template:function(n,r){if(n&1&&(v(0,"div",0)(1,"div",1),ge(2,DI,8,5),W(3,"async"),E(),v(4,"div",2)(5,"label",3),_(6,"Delay"),E(),v(7,"input",4),W(8,"async"),G("input",function(i){return r.onDelayChange(i)}),E(),v(9,"span",5),_(10),W(11,"async"),E()(),v(12,"span",6),_(13),W(14,"async"),E()()),n&2){let o,i,s,a;T(2),me((o=q(3,4,r.state$))?2:-1,o),T(5),ie("value",r.delayToSlider(((i=q(8,6,r.settings$))==null?null:i.actionDelay)??0)),T(3),Rt("",((s=q(11,8,r.settings$))==null?null:s.actionDelay)??0,"ms"),T(3),be((a=q(14,10,r.state$))==null?null:a.fsmState)}},dependencies:[ke,Ve],styles:[`gb-toolbar .gb-toolbar{display:flex;align-items:center;justify-content:space-between;padding:var(--space-sm) var(--space-md);background:var(--bg-panel);border-bottom:1px solid var(--border-color)}gb-toolbar .gb-toolbar__controls{display:flex;gap:var(--space-xs)}gb-toolbar .gb-toolbar__btn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);border:none;background:none;font-size:14px;cursor:pointer;color:var(--text-primary)}gb-toolbar .gb-toolbar__btn:hover:not(:disabled){background:var(--bg-elevated)}gb-toolbar .gb-toolbar__btn:disabled{opacity:.3;cursor:not-allowed}gb-toolbar .gb-toolbar__btn--play{color:var(--color-success)}gb-toolbar .gb-toolbar__btn--stop{color:var(--color-danger)}gb-toolbar .gb-toolbar__slider{display:flex;align-items:center;gap:var(--space-sm);flex:1;margin-left:var(--space-md);padding-left:var(--space-md);border-left:1px solid var(--border-color)}gb-toolbar .gb-toolbar__slider-label{font-size:12px;color:var(--text-muted)}gb-toolbar .gb-toolbar__slider-value{font-size:12px;color:var(--text-secondary);font-family:var(--font-mono);min-width:50px}gb-toolbar input[type=range]{flex:1;accent-color:var(--accent-primary);margin:0;padding:0}gb-toolbar .gb-toolbar__state{font-size:12px;color:var(--text-muted);font-family:var(--font-mono);margin-left:var(--space-md)}
|
|
11
|
+
`],encapsulation:2})};var bI=["scrollContainer"],wI=(e,t)=>t.index;function CI(e,t){e&1&&_(0," \u23F3 ")}function II(e,t){e&1&&_(0," \u2713 ")}function _I(e,t){e&1&&_(0," \u23F8 ")}function SI(e,t){e&1&&_(0," \u2717 ")}function TI(e,t){if(e&1){let n=vt();v(0,"div",2)(1,"button",4),G("click",function(){let o=te(n).$implicit,i=U();return ne(i.toggleBreakpoint(o.index))}),E(),v(2,"span",5),_(3),E(),v(4,"span",6),_(5),E(),v(6,"span",7),ge(7,CI,1,0)(8,II,1,0)(9,_I,1,0)(10,SI,1,0),E()()}if(e&2){let n,r=t.$implicit;Ye("data-status",r.status),T(),Ye("aria-label",yl("Toggle breakpoint at action ",r.index))("data-active",r.hasBreakpoint||null),T(2),be(r.index),T(2),be(r.description),T(2),me((n=r.status)==="running"?7:n==="complete"?8:n==="breakpoint"?9:n==="failed"?10:-1)}}function MI(e,t){e&1&&(v(0,"div",3),_(1," No actions yet. Run a journey to see the action log. "),E())}var Da=class e{constructor(t){this.store=t;this.actionsWithBreakpoints$=Kt([this.store.select(ga),this.store.select(ya)]).pipe(L(([n,r])=>n.map(o=>I(y({},o),{hasBreakpoint:r.includes(o.index)}))))}scrollContainer;actionsWithBreakpoints$;lastActionCount=0;shouldAutoScroll=!0;ngAfterViewChecked(){let t=this.scrollContainer?.nativeElement;if(!t)return;let n=t.scrollHeight-t.scrollTop-t.clientHeight<60,r=t.querySelectorAll(".action-item");r.length!==this.lastActionCount&&(r.length<this.lastActionCount&&(this.shouldAutoScroll=!0),(this.shouldAutoScroll||n)&&(t.scrollTop=t.scrollHeight,this.shouldAutoScroll=!0),this.lastActionCount=r.length),!n&&r.length===this.lastActionCount&&(this.shouldAutoScroll=!1)}toggleBreakpoint(t){this.store.dispatch(A.toggleBreakpoint({index:t}))}static \u0275fac=function(n){return new(n||e)(ue(Z))};static \u0275cmp=_e({type:e,selectors:[["gb-action-log"]],viewQuery:function(n,r){if(n&1&&Rr(bI,5),n&2){let o;Fo(o=Po())&&(r.scrollContainer=o.first)}},decls:7,vars:5,consts:[["scrollContainer",""],[1,"action-log"],[1,"action-item"],[1,"empty-state"],["title","Toggle breakpoint",1,"bp-pin",3,"click"],[1,"action-index"],[1,"action-description"],[1,"action-status-icon"]],template:function(n,r){if(n&1&&(v(0,"div",1,0),mt(2,TI,11,7,"div",2,wI),W(4,"async"),ge(5,MI,2,0,"div",3),W(6,"async"),E()),n&2){let o;T(2),yt(q(4,1,r.actionsWithBreakpoints$)),T(3),me(((o=q(6,3,r.actionsWithBreakpoints$))==null?null:o.length)===0?5:-1)}},dependencies:[ke,Ve],styles:[`gb-action-log .action-log{padding:var(--space-sm);font-family:var(--font-mono);font-size:13px;overflow-y:auto;height:100%}gb-action-log .action-item{display:flex;align-items:center;gap:var(--space-sm);padding:var(--space-xs) var(--space-sm);border-radius:var(--radius-sm)}gb-action-log .action-item[data-status=running]{background:var(--bg-elevated);color:var(--accent-primary)}gb-action-log .action-item[data-status=complete]{color:var(--text-secondary)}gb-action-log .action-item[data-status=failed]{color:var(--color-danger)}gb-action-log .action-item[data-status=breakpoint]{color:var(--color-breakpoint);background:#f8514914}gb-action-log .bp-pin{width:12px;height:12px;border-radius:50%;border:1.5px solid var(--border-color);flex-shrink:0;cursor:pointer;background:transparent;transition:background .1s,border-color .1s}gb-action-log .bp-pin:hover{border-color:var(--color-breakpoint);background:#f851494d}gb-action-log .bp-pin[data-active]{background:var(--color-breakpoint);border-color:var(--color-breakpoint)}gb-action-log .action-index{color:var(--text-muted);min-width:28px;text-align:right}gb-action-log .action-description{flex:1}gb-action-log .action-status-icon{width:20px;text-align:center}gb-action-log .empty-state{padding:var(--space-xl);text-align:center;color:var(--text-muted);font-family:var(--font-sans)}
|
|
12
|
+
`],encapsulation:2})};var xI=["scrollContainer"],NI=(e,t)=>t.timestamp;function AI(e,t){if(e&1&&(v(0,"div",3),_(1),E()),e&2){let n=U().$implicit;T(),Rt("\u2500\u2500 ",n.message," \u2500\u2500")}}function RI(e,t){if(e&1&&(v(0,"div",4),_(1),E()),e&2){let n=U().$implicit;Ye("data-type",n.type),T(),be(n.message)}}function OI(e,t){if(e&1&&ge(0,AI,2,1,"div",3)(1,RI,2,2,"div",4),e&2){let n=t.$implicit;me(n.type==="separator"?0:1)}}function kI(e,t){e&1&&(v(0,"div",2),_(1,"Console output will appear here."),E())}var ba=class e{constructor(t,n){this.store=t;this.injector=n;this.logs$=this.store.select(ma),this.subscription=this.logs$.pipe(nc(),fe(([r,o])=>o.length>r.length&&this.isAtBottom),ct(()=>{rl(()=>this.scrollToBottom(),{injector:this.injector})})).subscribe()}scrollContainer;logs$;isAtBottom=!0;subscription;ngOnDestroy(){this.subscription.unsubscribe()}onScroll(){if(!this.scrollContainer)return;let t=this.scrollContainer.nativeElement;this.isAtBottom=t.scrollHeight-t.scrollTop-t.clientHeight<20}scrollToBottom(){if(!this.scrollContainer)return;let t=this.scrollContainer.nativeElement;t.scrollTop=t.scrollHeight}static \u0275fac=function(n){return new(n||e)(ue(Z),ue(Ie))};static \u0275cmp=_e({type:e,selectors:[["gb-console-output"]],viewQuery:function(n,r){if(n&1&&Rr(xI,5),n&2){let o;Fo(o=Po())&&(r.scrollContainer=o.first)}},decls:7,vars:5,consts:[["scrollContainer",""],[1,"gb-console",3,"scroll"],[1,"gb-empty-state"],[1,"gb-console__separator"],[1,"gb-console__line"]],template:function(n,r){if(n&1&&(v(0,"div",1,0),G("scroll",function(){return r.onScroll()}),mt(2,OI,2,1,null,null,NI),W(4,"async"),ge(5,kI,2,0,"div",2),W(6,"async"),E()),n&2){let o;T(2),yt(q(4,1,r.logs$)),T(3),me(((o=q(6,3,r.logs$))==null?null:o.length)===0?5:-1)}},dependencies:[ke,Ve],styles:[`gb-console-output{display:block;height:100%}gb-console-output .gb-console{padding:var(--space-sm);font-family:var(--font-mono);font-size:12px;line-height:1.6;overflow-y:auto;height:100%}gb-console-output .gb-console__line{padding:1px var(--space-sm);white-space:pre-wrap;word-break:break-all}gb-console-output .gb-console__line[data-type=error]{color:var(--color-danger)}gb-console-output .gb-console__separator{padding:var(--space-sm) 0;color:var(--text-muted);text-align:center;font-size:11px}
|
|
13
|
+
`],encapsulation:2})};function FI(e,t){if(e&1&&(v(0,"span",6),_(1),E(),v(2,"span",7),_(3),E()),e&2){let n=U();T(),Rt("\u2713 ",n.passed),T(2),Rt("\u2717 ",n.failed)}}function PI(e,t){if(e&1&&ge(0,FI,4,2),e&2){let n=t;me(n.passed>0||n.failed>0?0:-1)}}var wa=class e{constructor(t){this.store=t;this.connectionStatus$=this.store.select(rm),this.summary$=this.store.select(om),this.fsmState$=this.store.select(Ko)}connectionStatus$;summary$;fsmState$;static \u0275fac=function(n){return new(n||e)(ue(Z))};static \u0275cmp=_e({type:e,selectors:[["gb-footer"]],decls:14,vars:12,consts:[[1,"gb-footer"],[1,"footer-left"],[1,"connection-dot"],[1,"footer-text"],[1,"footer-center"],[1,"footer-right"],[1,"result-passed"],[1,"result-failed"]],template:function(n,r){if(n&1&&(v(0,"footer",0)(1,"div",1),At(2,"span",2),W(3,"async"),v(4,"span",3),_(5),W(6,"async"),E()(),v(7,"div",4),ge(8,PI,1,1),W(9,"async"),E(),v(10,"div",5)(11,"span",3),_(12),W(13,"async"),E()()()),n&2){let o;T(2),Ye("data-status",q(3,4,r.connectionStatus$)),T(3),be(q(6,6,r.connectionStatus$)==="connected"?"Connected":"Disconnected"),T(3),me((o=q(9,8,r.summary$))?8:-1,o),T(4),be(q(13,10,r.fsmState$))}},dependencies:[ke,Ve],styles:[`.gb-footer{display:flex;align-items:center;justify-content:space-between;padding:var(--space-xs) var(--space-md);background:var(--bg-panel);border-top:1px solid var(--border-color);font-size:12px}.gb-footer .footer-left,.gb-footer .footer-center,.gb-footer .footer-right{display:flex;align-items:center;gap:var(--space-sm)}.gb-footer .connection-dot{width:8px;height:8px;border-radius:50%;background:var(--color-danger)}.gb-footer .connection-dot[data-status=connected]{background:var(--color-success)}.gb-footer .footer-text{color:var(--text-muted);font-family:var(--font-mono)}.gb-footer .result-passed{color:var(--color-success);font-family:var(--font-mono)}.gb-footer .result-failed{color:var(--color-danger);font-family:var(--font-mono)}
|
|
14
|
+
`],encapsulation:2})};var LI=3e4,Ca=class e{constructor(t){this.store=t}ws=null;reconnectInterval=1e3;messageHandlers=new Map([["action",t=>this.store.dispatch(A.actionReceived({index:t.index,status:t.status,description:t.description}))],["test-start",t=>this.store.dispatch(A.testStarted({journey:t.journey}))],["test-end",t=>this.store.dispatch(A.testEnded({journey:t.journey,status:t.status,duration:t.duration}))],["run-end",()=>this.store.dispatch(A.runEnded())],["log",t=>this.store.dispatch(A.logReceived({message:t.message,journey:t.journey}))],["error",t=>this.store.dispatch(A.errorReceived({message:t.message,journey:t.journey}))],["ui-control",t=>{t.action==="pause"?this.store.dispatch(A.pausedByRunner()):t.action==="resume"&&this.store.dispatch(A.resumedByRunner())}]]);connect(){let n=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;this.ws=new WebSocket(n),this.ws.onopen=()=>{this.reconnectInterval=1e3,this.store.dispatch(A.connectionStatusChanged({status:"connected"}))},this.ws.onclose=()=>{this.store.dispatch(A.connectionStatusChanged({status:"disconnected"})),setTimeout(()=>this.connect(),this.reconnectInterval),this.reconnectInterval=Math.min(this.reconnectInterval*2,LI)},this.ws.onmessage=r=>{try{let o=JSON.parse(r.data);this.dispatchMessage(o)}catch(o){}},this.ws.onerror=()=>{this.ws?.close()}}dispatchMessage(t){let n=this.messageHandlers.get(t.type);n&&n(t)}static \u0275fac=function(n){return new(n||e)(D(Z))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})};function BI(e,t){e&1&&(Oe(0,"div",12)(1,"span",13),_(2,"\u2717"),ze(),Oe(3,"span",14),_(4),ze()()),e&2&&(T(4),be(t))}function VI(e,t){e&1&&Nt(0,"gb-action-log")}function $I(e,t){e&1&&Nt(0,"gb-console-output")}var Ia=class e{constructor(t,n,r){this.wsService=t;this.themeService=n;this.store=r;this.settingsOpen$=this.store.select(Xg),this.activeTab$=this.store.select(em),this.sidebarWidth$=this.store.select(tm),this.fsmState$=this.store.select(Ko),this.lastError$=this.store.select(cm)}settingsOpen$;activeTab$;sidebarWidth$;fsmState$;lastError$;ngOnInit(){this.wsService.connect(),this.themeService.initialize(),this.store.dispatch(H.loadSettings())}toggleSettings(){this.store.dispatch(H.toggleSettingsPanel())}setTab(t){this.store.dispatch(H.updateSetting({key:"activeTab",value:t}))}copyContent(){return Je(this,null,function*(){let[t,n,r]=yield Promise.all([Bt(this.activeTab$),Bt(this.store.select(ga)),Bt(this.store.select(ma))]),o=t==="actions"?n.map(i=>`[${i.index}] ${i.description}`).join(`
|
|
15
15
|
`):r.map(i=>i.message).join(`
|
|
16
|
-
`);navigator.clipboard.writeText(o)})}clearContent(){return Je(this,null,function*(){(yield Bt(this.activeTab$))==="actions"?this.store.dispatch(A.clearActions()):this.store.dispatch(A.clearConsole())})}startResize(t){return Je(this,null,function*(){t.preventDefault();let n=t.clientX,r=yield Bt(this.sidebarWidth$),o=r,i=a=>{o=Math.max(150,Math.min(500,r+(a.clientX-n)));let c=document.querySelector("gb-sidebar");c&&(c.style.width=`${o}px`)},s=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",s),document.body.style.cursor="",document.body.style.userSelect="",this.store.dispatch(H.updateSetting({key:"sidebarWidth",value:o}))};document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",i),document.addEventListener("mouseup",s)})}static \u0275fac=function(n){return new(n||e)(ue(ba),ue(mn),ue(Z))};static \u0275cmp=_e({type:e,selectors:[["gb-root"]],decls:30,vars:23,consts:[[1,"app-layout"],[3,"settingsToggled"],[3,"isOpen"],[1,"main-layout"],[1,"resize-handle",3,"mousedown"],[1,"content"],[1,"tab-bar"],[1,"tab",3,"click"],[1,"tab-spacer"],["title","Copy to clipboard",1,"tab-action",3,"click"],["title","Clear",1,"tab-action",3,"click"],[1,"tab-content"],[1,"error-banner"],[1,"error-banner__icon"],[1,"error-banner__text"]],template:function(n,r){if(n&1&&(Oe(0,"div",0)(1,"gb-header",1),qt("settingsToggled",function(){return r.toggleSettings()}),ze(),Nt(2,"gb-settings-panel",2),W(3,"async"),Oe(4,"div",3),Nt(5,"gb-sidebar"),W(6,"async"),Oe(7,"div",4),qt("mousedown",function(i){return r.startResize(i)}),ze(),Oe(8,"main",5),Nt(9,"gb-toolbar"),Oe(10,"div",6)(11,"button",7),W(12,"async"),qt("click",function(){return r.setTab("actions")}),_(13," Actions "),ze(),Oe(14,"button",7),W(15,"async"),qt("click",function(){return r.setTab("console")}),_(16," Console "),ze(),Nt(17,"span",8),Oe(18,"button",9),qt("click",function(){return r.copyContent()}),_(19,"\u{1F4CB}"),ze(),Oe(20,"button",10),qt("click",function(){return r.clearContent()}),_(21,"\u{1F5D1}\uFE0F"),ze()(),Oe(22,"div",11),ge(23,jC,5,1,"div",12),W(24,"async"),W(25,"async"),ge(26,BC,1,0,"gb-action-log"),W(27,"async"),Ro(28,VC,1,0,"gb-console-output"),ze()()(),Nt(29,"gb-footer"),ze()),n&2){let o;T(2),Bs("isOpen",q(3,9,r.settingsOpen$)??!1),T(3),$s("width",q(6,11,r.sidebarWidth$)??240,"px"),T(6),ko("active",q(12,13,r.activeTab$)==="actions"),T(3),ko("active",q(15,15,r.activeTab$)==="console"),T(9),me((o=q(24,17,r.fsmState$)==="errored"&&q(25,19,r.lastError$))?23:-1,o),T(3),me(q(27,21,r.activeTab$)==="actions"?26:28)}},dependencies:[ke,ua,da,ma,ya,va,Ea,Da,Ve],styles:[".app-layout[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto auto 1fr auto;height:100vh;overflow:hidden}.main-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 4px 1fr;overflow:hidden;min-height:0}.resize-handle[_ngcontent-%COMP%]{cursor:col-resize;background:var(--border-color);transition:background .15s}.resize-handle[_ngcontent-%COMP%]:hover{background:var(--accent-primary)}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow:hidden;min-height:0}.tab-bar[_ngcontent-%COMP%]{display:flex;gap:var(--space-xs);padding:var(--space-xs) var(--space-md);border-bottom:1px solid var(--border-color);background:var(--bg-panel);align-items:center}.tab[_ngcontent-%COMP%]{padding:var(--space-xs) var(--space-md);border-radius:var(--radius-sm) var(--radius-sm) 0 0;color:var(--text-secondary);font-weight:500;border:none;background:none;cursor:pointer;transition:color .15s}.tab[_ngcontent-%COMP%]:hover{color:var(--text-primary)}.tab.active[_ngcontent-%COMP%]{color:var(--accent-primary);border-bottom:2px solid var(--accent-primary)}.tab-spacer[_ngcontent-%COMP%]{flex:1}.tab-action[_ngcontent-%COMP%]{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border:none;background:none;border-radius:var(--radius-sm);cursor:pointer;font-size:14px;opacity:.6;transition:opacity .15s,background .15s}.tab-action[_ngcontent-%COMP%]:hover{opacity:1;background:var(--bg-elevated)}.tab-content[_ngcontent-%COMP%]{flex:1;overflow:auto;min-height:0}.error-banner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--space-sm);padding:var(--space-sm) var(--space-md);background:#f851491a;border-bottom:1px solid var(--color-danger);color:var(--color-danger);font-size:13px;font-family:var(--font-mono)}.error-banner__icon[_ngcontent-%COMP%]{font-weight:700}.error-banner__text[_ngcontent-%COMP%]{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]})};var $C={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},Ia="__@ngrx/effects_create__";function $e(e,t={}){let n=t.functional?e:e(),r=y(y({},$C),t);return Object.defineProperty(n,Ia,{value:r}),n}function UC(e){return Object.getOwnPropertyNames(e).filter(r=>e[r]&&e[r].hasOwnProperty(Ia)?e[r][Ia].hasOwnProperty("dispatch"):!1).map(r=>{let o=e[r][Ia];return y({propertyName:r},o)})}function HC(e){return UC(e)}function um(e){return Object.getPrototypeOf(e)}function zC(e){return!!e.constructor&&e.constructor.name!=="Object"&&e.constructor.name!=="Function"}function lm(e){return typeof e=="function"}function GC(e){return e.filter(lm)}function WC(e,t,n){let r=um(e),i=!!r&&r.constructor.name!=="Object"?r.constructor.name:null,s=HC(e).map(({propertyName:a,dispatch:c,useEffectsErrorHandler:u})=>{let l=typeof e[a]=="function"?e[a]():e[a],d=u?n(l,t):l;return c===!1?d.pipe(Ja()):d.pipe(Xa()).pipe(L(p=>({effect:e[a],notification:p,propertyName:a,sourceName:i,sourceInstance:e})))});return Sn(...s)}var qC=10;function dm(e,t,n=qC){return e.pipe(Ie(r=>(t&&t.handleError(r),n<=1?e:dm(e,t,n-1))))}var $r=(()=>{class e extends j{constructor(n){super(),n&&(this.source=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}static{this.\u0275fac=function(r){return new(r||e)(D(Kn))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Ue(...e){return fe(t=>e.some(n=>typeof n=="string"?n===t.type:n.type===t.type))}var ZC=new w("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>dm}),YC="@ngrx/effects/init",JC=$l(YC);function QC(e,t){if(e.notification.kind==="N"){let n=e.notification.value;!KC(n)&&t.handleError(new Error(`Effect ${XC(e)} dispatched an invalid action: ${e_(n)}`))}}function KC(e){return typeof e!="function"&&e&&e.type&&typeof e.type=="string"}function XC({propertyName:e,sourceInstance:t,sourceName:n}){let r=typeof t[e]=="function";return!!n?`"${n}.${String(e)}${r?"()":""}"`:`"${String(e)}()"`}function e_(e){try{return JSON.stringify(e)}catch(t){return e}}var t_="ngrxOnIdentifyEffects";function n_(e){return ql(e,t_)}var r_="ngrxOnRunEffects";function o_(e){return ql(e,r_)}var i_="ngrxOnInitEffects";function s_(e){return ql(e,i_)}function ql(e,t){return e&&t in e&&typeof e[t]=="function"}var fm=(()=>{class e extends ve{constructor(n,r){super(),this.errorHandler=n,this.effectsErrorHandler=r}addEffects(n){this.next(n)}toActions(){return this.pipe(xi(n=>zC(n)?um(n):n),Et(n=>n.pipe(xi(a_))),Et(n=>{let r=n.pipe(fr(i=>c_(this.errorHandler,this.effectsErrorHandler)(i)),L(i=>(QC(i,this.errorHandler),i.notification)),fe(i=>i.kind==="N"&&i.value!=null),Qa()),o=n.pipe(Qr(1),fe(s_),L(i=>i.ngrxOnInitEffects()));return Sn(r,o)}))}static{this.\u0275fac=function(r){return new(r||e)(D(Ae),D(ZC))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function a_(e){return n_(e)?e.ngrxOnIdentifyEffects():""}function c_(e,t){return n=>{let r=WC(n,e,t);return o_(n)?n.ngrxOnRunEffects(r):r}}var u_=(()=>{class e{get isStarted(){return!!this.effectsSubscription}constructor(n,r){this.effectSources=n,this.store=r,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}static{this.\u0275fac=function(r){return new(r||e)(D(fm),D(Z))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function pm(...e){let t=e.flat(),n=GC(t);return Xe([n,mr(()=>{g(Wo),g(sa,{optional:!0});let r=g(u_),o=g(fm),i=!r.isStarted;i&&r.start();for(let s of t){let a=lm(s)?g(s):s;o.addEffects(a)}i&&g(Z).dispatch(JC())})])}var Qo="PERFORM_ACTION",l_="REFRESH",Em="RESET",Dm="ROLLBACK",bm="COMMIT",wm="SWEEP",Im="TOGGLE_ACTION",d_="SET_ACTIONS_ACTIVE",Cm="JUMP_TO_STATE",_m="JUMP_TO_ACTION",sd="IMPORT_STATE",Sm="LOCK_CHANGES",Tm="PAUSE_RECORDING",Ur=class{constructor(t,n){if(this.action=t,this.timestamp=n,this.type=Qo,typeof t.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}},Zl=class{constructor(){this.type=l_}},Yl=class{constructor(t){this.timestamp=t,this.type=Em}},Jl=class{constructor(t){this.timestamp=t,this.type=Dm}},Ql=class{constructor(t){this.timestamp=t,this.type=bm}},Kl=class{constructor(){this.type=wm}},Xl=class{constructor(t){this.id=t,this.type=Im}};var ed=class{constructor(t){this.index=t,this.type=Cm}},td=class{constructor(t){this.actionId=t,this.type=_m}},nd=class{constructor(t){this.nextLiftedState=t,this.type=sd}},rd=class{constructor(t){this.status=t,this.type=Sm}},od=class{constructor(t){this.status=t,this.type=Tm}};var Ta=new w("@ngrx/store-devtools Options"),hm=new w("@ngrx/store-devtools Initial Config");function Mm(){return null}var f_="NgRx Store DevTools";function p_(e){let t={maxAge:!1,monitor:Mm,actionSanitizer:void 0,stateSanitizer:void 0,name:f_,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},n=typeof e=="function"?e():e,r=n.logOnly?{pause:!0,export:!0,test:!0}:!1,o=n.features||r||t.features;o.import===!0&&(o.import="custom");let i=Object.assign({},t,{features:o},n);if(i.maxAge&&i.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${i.maxAge}`);return i}function gm(e,t){return e.filter(n=>t.indexOf(n)<0)}function xm(e){let{computedStates:t,currentStateIndex:n}=e;if(n>=t.length){let{state:o}=t[t.length-1];return o}let{state:r}=t[n];return r}function Jo(e){return new Ur(e,+Date.now())}function h_(e,t){return Object.keys(t).reduce((n,r)=>{let o=Number(r);return n[o]=Nm(e,t[o],o),n},{})}function Nm(e,t,n){return C(y({},t),{action:e(t.action,n)})}function g_(e,t){return t.map((n,r)=>({state:Am(e,n.state,r),error:n.error}))}function Am(e,t,n){return e(t,n)}function Rm(e){return e.predicate||e.actionsSafelist||e.actionsBlocklist}function m_(e,t,n,r){let o=[],i={},s=[];return e.stagedActionIds.forEach((a,c)=>{let u=e.actionsById[a];u&&(c&&ad(e.computedStates[c],u,t,n,r)||(i[a]=u,o.push(a),s.push(e.computedStates[c])))}),C(y({},e),{stagedActionIds:o,actionsById:i,computedStates:s})}function ad(e,t,n,r,o){let i=n&&!n(e,t.action),s=r&&!t.action.type.match(r.map(c=>mm(c)).join("|")),a=o&&t.action.type.match(o.map(c=>mm(c)).join("|"));return i||s||a}function mm(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Om(e){return{ngZone:e?g(re):null,connectInZone:e}}var Ma=(()=>{class e extends Ot{static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=So(e)))(o||e)}})()}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})(),Ca={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},id=new w("@ngrx/store-devtools Redux Devtools Extension"),km=(()=>{class e{constructor(n,r,o){this.config=r,this.dispatcher=o,this.zoneConfig=Om(this.config.connectInZone),this.devtoolsExtension=n,this.createActionStreams()}notify(n,r){if(this.devtoolsExtension)if(n.type===Qo){if(r.isLocked||r.isPaused)return;let o=xm(r);if(Rm(this.config)&&ad(o,n,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let i=this.config.stateSanitizer?Am(this.config.stateSanitizer,o,r.currentStateIndex):o,s=this.config.actionSanitizer?Nm(this.config.actionSanitizer,n,r.nextActionId):n;this.sendToReduxDevtools(()=>this.extensionConnection.send(s,i))}else{let o=C(y({},r),{stagedActionIds:r.stagedActionIds,actionsById:this.config.actionSanitizer?h_(this.config.actionSanitizer,r.actionsById):r.actionsById,computedStates:this.config.stateSanitizer?g_(this.config.stateSanitizer,r.computedStates):r.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,o,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new j(n=>{let r=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=r,r.init(),r.subscribe(o=>n.next(o)),r.unsubscribe}):se}createActionStreams(){let n=this.createChangesObservable().pipe(rc()),r=n.pipe(fe(u=>u.type===Ca.START)),o=n.pipe(fe(u=>u.type===Ca.STOP)),i=n.pipe(fe(u=>u.type===Ca.DISPATCH),L(u=>this.unwrapAction(u.payload)),Yr(u=>u.type===sd?this.dispatcher.pipe(fe(l=>l.type===ca),Ya(1e3),Jr(1e3),L(()=>u),Ie(()=>at(u)),Qr(1)):at(u))),a=n.pipe(fe(u=>u.type===Ca.ACTION),L(u=>this.unwrapAction(u.payload))).pipe(Tn(o)),c=i.pipe(Tn(o));this.start$=r.pipe(Tn(o)),this.actions$=this.start$.pipe(pe(()=>a)),this.liftedActions$=this.start$.pipe(pe(()=>c))}unwrapAction(n){return typeof n=="string"?(0,eval)(`(${n})`):n}getExtensionConfig(n){let r={name:n.name,features:n.features,serialize:n.serialize,autoPause:n.autoPause??!1,trace:n.trace??!1,traceLimit:n.traceLimit??75};return n.maxAge!==!1&&(r.maxAge=n.maxAge),r}sendToReduxDevtools(n){try{n()}catch(r){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",r)}}static{this.\u0275fac=function(r){return new(r||e)(D(id),D(Ta),D(Ma))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})(),Sa={type:qo},y_="@ngrx/store-devtools/recompute",v_={type:y_};function Fm(e,t,n,r,o){if(r)return{state:n,error:"Interrupted by an error up the chain"};let i=n,s;try{i=e(n,t)}catch(a){s=a.toString(),o.handleError(a)}return{state:i,error:s}}function _a(e,t,n,r,o,i,s,a,c){if(t>=e.length&&e.length===i.length)return e;let u=e.slice(0,t),l=i.length-(c?1:0);for(let d=t;d<l;d++){let f=i[d],p=o[f].action,h=u[d-1],m=h?h.state:r,b=h?h.error:void 0,B=s.indexOf(f)>-1?h:Fm(n,p,m,b,a);u.push(B)}return c&&u.push(e[e.length-1]),u}function E_(e,t){return{monitorState:t(void 0,{}),nextActionId:1,actionsById:{0:Jo(Sa)},stagedActionIds:[0],skippedActionIds:[],committedState:e,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function D_(e,t,n,r,o={}){return i=>(s,a)=>{let{monitorState:c,actionsById:u,nextActionId:l,stagedActionIds:d,skippedActionIds:f,committedState:p,currentStateIndex:h,computedStates:m,isLocked:b,isPaused:I}=s||t;s||(u=Object.create(u));function B(ee){let K=ee,Me=d.slice(1,K+1);for(let ot=0;ot<Me.length;ot++)if(m[ot+1].error){K=ot,Me=d.slice(1,K+1);break}else delete u[Me[ot]];f=f.filter(ot=>Me.indexOf(ot)===-1),d=[0,...d.slice(K+1)],p=m[K].state,m=m.slice(K),h=h>K?h-K:0}function de(){u={0:Jo(Sa)},l=1,d=[0],f=[],p=m[h].state,h=0,m=[]}let F=0;switch(a.type){case Sm:{b=a.status,F=1/0;break}case Tm:{I=a.status,I?(d=[...d,l],u[l]=new Ur({type:"@ngrx/devtools/pause"},+Date.now()),l++,F=d.length-1,m=m.concat(m[m.length-1]),h===d.length-2&&h++,F=1/0):de();break}case Em:{u={0:Jo(Sa)},l=1,d=[0],f=[],p=e,h=0,m=[];break}case bm:{de();break}case Dm:{u={0:Jo(Sa)},l=1,d=[0],f=[],h=0,m=[];break}case Im:{let{id:ee}=a;f.indexOf(ee)===-1?f=[ee,...f]:f=f.filter(Me=>Me!==ee),F=d.indexOf(ee);break}case d_:{let{start:ee,end:K,active:Me}=a,ot=[];for(let Ra=ee;Ra<K;Ra++)ot.push(Ra);Me?f=gm(f,ot):f=[...f,...ot],F=d.indexOf(ee);break}case Cm:{h=a.index,F=1/0;break}case _m:{let ee=d.indexOf(a.actionId);ee!==-1&&(h=ee),F=1/0;break}case wm:{d=gm(d,f),f=[],h=Math.min(h,d.length-1);break}case Qo:{if(b)return s||t;if(I||s&&ad(s.computedStates[h],a,o.predicate,o.actionsSafelist,o.actionsBlocklist)){let K=m[m.length-1];m=[...m.slice(0,-1),Fm(i,a.action,K.state,K.error,n)],F=1/0;break}o.maxAge&&d.length===o.maxAge&&B(1),h===d.length-1&&h++;let ee=l++;u[ee]=a,d=[...d,ee],F=d.length-1;break}case sd:{({monitorState:c,actionsById:u,nextActionId:l,stagedActionIds:d,skippedActionIds:f,committedState:p,currentStateIndex:h,computedStates:m,isLocked:b,isPaused:I}=a.nextLiftedState);break}case qo:{F=0,o.maxAge&&d.length>o.maxAge&&(m=_a(m,F,i,p,u,d,f,n,I),B(d.length-o.maxAge),F=1/0);break}case ca:{if(m.filter(K=>K.error).length>0)F=0,o.maxAge&&d.length>o.maxAge&&(m=_a(m,F,i,p,u,d,f,n,I),B(d.length-o.maxAge),F=1/0);else{if(!I&&!b){h===d.length-1&&h++;let K=l++;u[K]=new Ur(a,+Date.now()),d=[...d,K],F=d.length-1,m=_a(m,F,i,p,u,d,f,n,I)}m=m.map(K=>C(y({},K),{state:i(K.state,v_)})),h=d.length-1,o.maxAge&&d.length>o.maxAge&&B(d.length-o.maxAge),F=1/0}break}default:{F=1/0;break}}return m=_a(m,F,i,p,u,d,f,n,I),c=r(c,a),{monitorState:c,actionsById:u,nextActionId:l,stagedActionIds:d,skippedActionIds:f,committedState:p,currentStateIndex:h,computedStates:m,isLocked:b,isPaused:I}}}var ym=(()=>{class e{constructor(n,r,o,i,s,a,c,u){let l=E_(c,u.monitor),d=D_(c,l,a,u.monitor,u),f=Sn(Sn(r.asObservable().pipe(oc(1)),i.actions$).pipe(L(Jo)),n,i.liftedActions$).pipe(jt(Zr)),p=o.pipe(L(d)),h=Om(u.connectInZone),m=new sr(1);this.liftedStateSubscription=f.pipe(Qe(p),vm(h),Kr(({state:B},[de,F])=>{let ee=F(B,de);return de.type!==Qo&&Rm(u)&&(ee=m_(ee,u.predicate,u.actionsSafelist,u.actionsBlocklist)),i.notify(de,ee),{state:ee,action:de}},{state:l,action:null})).subscribe(({state:B,action:de})=>{if(m.next(B),de.type===Qo){let F=de.action;s.next(F)}}),this.extensionStartSubscription=i.start$.pipe(vm(h)).subscribe(()=>{this.refresh()});let b=m.asObservable(),I=b.pipe(L(xm));Object.defineProperty(I,"state",{value:oa(I,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=n,this.liftedState=b,this.state=I}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(n){this.dispatcher.next(n)}next(n){this.dispatcher.next(n)}error(n){}complete(){}performAction(n){this.dispatch(new Ur(n,+Date.now()))}refresh(){this.dispatch(new Zl)}reset(){this.dispatch(new Yl(+Date.now()))}rollback(){this.dispatch(new Jl(+Date.now()))}commit(){this.dispatch(new Ql(+Date.now()))}sweep(){this.dispatch(new Kl)}toggleAction(n){this.dispatch(new Xl(n))}jumpToAction(n){this.dispatch(new td(n))}jumpToState(n){this.dispatch(new ed(n))}importState(n){this.dispatch(new nd(n))}lockChanges(n){this.dispatch(new rd(n))}pauseRecording(n){this.dispatch(new od(n))}static{this.\u0275fac=function(r){return new(r||e)(D(Ma),D(Ot),D(Qn),D(km),D(Kn),D(Ae),D(Zo),D(Ta))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})();function vm({ngZone:e,connectInZone:t}){return n=>t?new j(r=>n.subscribe({next:o=>e.run(()=>r.next(o)),error:o=>e.run(()=>r.error(o)),complete:()=>e.run(()=>r.complete())})):n}var b_=new w("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function w_(e,t){return!!e||t.monitor!==Mm}function I_(){let e="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[e]<"u"?window[e]:null}function C_(e){return e.state}function Pm(e={}){return Xe([km,Ma,ym,{provide:hm,useValue:e},{provide:b_,deps:[id,Ta],useFactory:w_},{provide:id,useFactory:I_},{provide:Ta,deps:[hm],useFactory:p_},{provide:Pr,deps:[ym],useFactory:C_},{provide:Fr,useExisting:Ma}])}var __={fsmState:"idle",actions:[],breakpoints:[],consoleLogs:[],connectionStatus:"disconnected",results:[],currentJourney:null},Lm=Br(__,Q(A.play,e=>C(y({},e),{fsmState:"running",actions:[],consoleLogs:[],results:[]})),Q(A.pause,e=>C(y({},e),{fsmState:"paused"})),Q(A.resume,e=>C(y({},e),{fsmState:"running"})),Q(A.step,e=>C(y({},e),{fsmState:"stepping"})),Q(A.stop,e=>C(y({},e),{fsmState:"idle"})),Q(A.pausedByRunner,e=>C(y({},e),{fsmState:"paused"})),Q(A.resumedByRunner,e=>C(y({},e),{fsmState:"running"})),Q(A.runEnded,e=>C(y({},e),{fsmState:"idle"})),Q(A.actionReceived,(e,{index:t,status:n,description:r})=>{let o=e.actions.find(a=>a.index===t),i=S_(n),s=n==="breakpoint"&&!e.breakpoints.includes(t)?[...e.breakpoints,t]:e.breakpoints;return o?C(y({},e),{breakpoints:s,actions:e.actions.map(a=>a.index===t?C(y({},a),{status:i}):a),fsmState:n==="breakpoint"?"paused":e.fsmState}):C(y({},e),{breakpoints:s,actions:[...e.actions,{index:t,description:r??"",status:i,hasBreakpoint:s.includes(t)}],fsmState:n==="breakpoint"?"paused":e.fsmState})}),Q(A.testStarted,(e,{journey:t})=>C(y({},e),{currentJourney:t,consoleLogs:[...e.consoleLogs,{type:"separator",message:t,timestamp:Date.now()}]})),Q(A.testEnded,(e,{journey:t,status:n,duration:r})=>C(y({},e),{results:[...e.results,{journey:t,status:n,duration:r}],currentJourney:null,actions:n==="failed"?e.actions.map(o=>o.status==="running"?C(y({},o),{status:"failed"}):o):e.actions,fsmState:n==="failed"?"errored":e.fsmState})),Q(A.logReceived,(e,{message:t})=>C(y({},e),{consoleLogs:[...e.consoleLogs,{type:"log",message:t,timestamp:Date.now()}]})),Q(A.errorReceived,(e,{message:t})=>C(y({},e),{consoleLogs:[...e.consoleLogs,{type:"error",message:t,timestamp:Date.now()}]})),Q(A.connectionStatusChanged,(e,{status:t})=>C(y({},e),{connectionStatus:t})),Q(A.toggleBreakpoint,(e,{index:t})=>{let n=e.breakpoints.includes(t);return C(y({},e),{breakpoints:n?e.breakpoints.filter(r=>r!==t):[...e.breakpoints,t]})}),Q(A.clearActions,e=>C(y({},e),{actions:[]})),Q(A.clearConsole,e=>C(y({},e),{consoleLogs:[]})));function S_(e){switch(e){case"start":return"running";case"complete":return"complete";case"breakpoint":return"breakpoint";default:return"pending"}}var T_={journeys:[],selectedIds:[],loading:!1},jm=Br(T_,Q(Te.loadJourneys,e=>C(y({},e),{loading:!0})),Q(Te.loadJourneysSuccess,(e,{journeys:t})=>C(y({},e),{journeys:t,selectedIds:e.selectedIds.length>0?e.selectedIds:t.map(n=>n.id),loading:!1})),Q(Te.toggleJourney,(e,{id:t})=>{let n=e.selectedIds.includes(t);return C(y({},e),{selectedIds:n?e.selectedIds.filter(r=>r!==t):[...e.selectedIds,t]})}),Q(Te.selectAll,e=>C(y({},e),{selectedIds:e.journeys.map(t=>t.id)})),Q(Te.deselectAll,e=>C(y({},e),{selectedIds:[]})),Q(H.loadSettingsSuccess,(e,{settings:t})=>{let n=t.selectedJourneyIds;return n&&n.length>0?C(y({},e),{selectedIds:n}):e}));var M_={targetUrl:"http://localhost:3000",browserPath:"",userDataDir:"",viewportWidth:1280,viewportHeight:720,actionDelay:0,devtools:!1,headless:!1,keepBrowserOpen:!1,settingsPanelOpen:!1,activeTab:"actions",sidebarWidth:240,selectedJourneyIds:[],targetUrlHistory:[],theme:""},Bm=Br(M_,Q(H.loadSettingsSuccess,(e,{settings:t})=>y(y({},e),t)),Q(H.updateSetting,(e,{key:t,value:n})=>{let r=C(y({},e),{[t]:n});if(t==="targetUrl"&&typeof n=="string"&&n.trim()){let o=e.targetUrlHistory.filter(i=>i!==n);r.targetUrlHistory=[n,...o].slice(0,10)}return r}),Q(H.toggleSettingsPanel,e=>C(y({},e),{settingsPanelOpen:!e.settingsPanelOpen})),Q(H.removeUrlFromHistory,(e,{url:t})=>C(y({},e),{targetUrlHistory:e.targetUrlHistory.filter(n=>n!==t)})));var xa=class e{actions$=g($r);api=g(Ft);store=g(Z);play$=$e(()=>this.actions$.pipe(Ue(A.play),Qe(this.store.select(Wl),this.store.select(nm)),fr(([,t,n])=>this.api.runTests(t,n).pipe(Ie(()=>se)))),{dispatch:!1});pause$=$e(()=>this.actions$.pipe(Ue(A.pause),pe(()=>this.api.pauseTests().pipe(Ie(()=>se)))),{dispatch:!1});resume$=$e(()=>this.actions$.pipe(Ue(A.resume),pe(()=>this.api.resumeTests().pipe(Ie(()=>se)))),{dispatch:!1});step$=$e(()=>this.actions$.pipe(Ue(A.step),pe(()=>this.api.stepTests().pipe(Ie(()=>se)))),{dispatch:!1});stop$=$e(()=>this.actions$.pipe(Ue(A.stop),pe(()=>this.api.stopTests().pipe(Ie(()=>se)))),{dispatch:!1});updateConfig$=$e(()=>this.actions$.pipe(Ue(A.updateConfig),pe(({actionDelay:t})=>this.api.updateConfig({actionDelay:t}).pipe(Ie(()=>se)))),{dispatch:!1});syncBreakpoints$=$e(()=>this.actions$.pipe(Ue(A.toggleBreakpoint),Qe(this.store.select(ga),this.store.select(Wl)),pe(([,t,n])=>{let r=n[0]??"";return r?this.api.setBreakpoints(r,t).pipe(Ie(()=>se)):se})),{dispatch:!1});static \u0275fac=function(n){return new(n||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})};var Na=class e{actions$=g($r);api=g(Ft);store=g(Z);themeService=g(mn);loadSettings$=$e(()=>this.actions$.pipe(Ue(H.loadSettings),pe(()=>this.api.getSettings()),L(t=>H.loadSettingsSuccess({settings:t}))));applyTheme$=$e(()=>this.actions$.pipe(Ue(H.loadSettingsSuccess),ct(({settings:t})=>{this.themeService.applyFromSettings(t.theme)})),{dispatch:!1});saveSettings$=$e(()=>this.actions$.pipe(Ue(H.updateSetting,H.toggleSettingsPanel,H.removeUrlFromHistory),Jr(500),Qe(this.store.select(la)),pe(([,t])=>this.api.saveSettings(t).pipe(Ie(()=>se)))),{dispatch:!1});static \u0275fac=function(n){return new(n||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})};var Aa=class e{actions$=g($r);api=g(Ft);store=g(Z);loadJourneys$=$e(()=>this.actions$.pipe(Ue(Te.loadJourneys),pe(()=>this.api.getJourneys().pipe(L(t=>Te.loadJourneysSuccess({journeys:t})),Ie(()=>se)))));persistSelection$=$e(()=>this.actions$.pipe(Ue(Te.toggleJourney,Te.selectAll,Te.deselectAll),Qe(this.store.select(Vr)),ct(([,t])=>{this.store.dispatch(H.updateSetting({key:"selectedJourneyIds",value:t}))})),{dispatch:!1});static \u0275fac=function(n){return new(n||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})};var Vm={providers:[rg({eventCoalescing:!0}),kl(),Qg({execution:Lm,journeys:jm,settings:Bm}),pm(xa,Na,Aa),Pm({maxAge:50,logOnly:!Lo(),name:"Glassbox"})]};xl(wa,Vm).catch(e=>console.error(e));
|
|
16
|
+
`);navigator.clipboard.writeText(o)})}clearContent(){return Je(this,null,function*(){(yield Bt(this.activeTab$))==="actions"?this.store.dispatch(A.clearActions()):this.store.dispatch(A.clearConsole())})}startResize(t){return Je(this,null,function*(){t.preventDefault();let n=t.clientX,r=yield Bt(this.sidebarWidth$),o=r,i=a=>{o=Math.max(150,Math.min(500,r+(a.clientX-n)));let c=document.querySelector("gb-sidebar");c&&(c.style.width=`${o}px`)},s=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",s),document.body.style.cursor="",document.body.style.userSelect="",this.store.dispatch(H.updateSetting({key:"sidebarWidth",value:o}))};document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",i),document.addEventListener("mouseup",s)})}static \u0275fac=function(n){return new(n||e)(ue(Ca),ue(mn),ue(Z))};static \u0275cmp=_e({type:e,selectors:[["gb-root"]],decls:30,vars:23,consts:[[1,"app-layout"],[3,"settingsToggled"],[3,"isOpen"],[1,"main-layout"],[1,"resize-handle",3,"mousedown"],[1,"content"],[1,"tab-bar"],[1,"tab",3,"click"],[1,"tab-spacer"],["title","Copy to clipboard",1,"tab-action",3,"click"],["title","Clear",1,"tab-action",3,"click"],[1,"tab-content"],[1,"error-banner"],[1,"error-banner__icon"],[1,"error-banner__text"]],template:function(n,r){if(n&1&&(Oe(0,"div",0)(1,"gb-header",1),qt("settingsToggled",function(){return r.toggleSettings()}),ze(),Nt(2,"gb-settings-panel",2),W(3,"async"),Oe(4,"div",3),Nt(5,"gb-sidebar"),W(6,"async"),Oe(7,"div",4),qt("mousedown",function(i){return r.startResize(i)}),ze(),Oe(8,"main",5),Nt(9,"gb-toolbar"),Oe(10,"div",6)(11,"button",7),W(12,"async"),qt("click",function(){return r.setTab("actions")}),_(13," Actions "),ze(),Oe(14,"button",7),W(15,"async"),qt("click",function(){return r.setTab("console")}),_(16," Console "),ze(),Nt(17,"span",8),Oe(18,"button",9),qt("click",function(){return r.copyContent()}),_(19,"\u{1F4CB}"),ze(),Oe(20,"button",10),qt("click",function(){return r.clearContent()}),_(21,"\u{1F5D1}\uFE0F"),ze()(),Oe(22,"div",11),ge(23,BI,5,1,"div",12),W(24,"async"),W(25,"async"),ge(26,VI,1,0,"gb-action-log"),W(27,"async"),Oo(28,$I,1,0,"gb-console-output"),ze()()(),Nt(29,"gb-footer"),ze()),n&2){let o;T(2),Us("isOpen",q(3,9,r.settingsOpen$)??!1),T(3),Hs("width",q(6,11,r.sidebarWidth$)??240,"px"),T(6),Lo("active",q(12,13,r.activeTab$)==="actions"),T(3),Lo("active",q(15,15,r.activeTab$)==="console"),T(9),me((o=q(24,17,r.fsmState$)==="errored"&&q(25,19,r.lastError$))?23:-1,o),T(3),me(q(27,21,r.activeTab$)==="actions"?26:28)}},dependencies:[ke,da,pa,va,Ea,Da,ba,wa,Ve],styles:[".app-layout[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto auto 1fr auto;height:100vh;overflow:hidden}.main-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 4px 1fr;overflow:hidden;min-height:0}.resize-handle[_ngcontent-%COMP%]{cursor:col-resize;background:var(--border-color);transition:background .15s}.resize-handle[_ngcontent-%COMP%]:hover{background:var(--accent-primary)}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow:hidden;min-height:0}.tab-bar[_ngcontent-%COMP%]{display:flex;gap:var(--space-xs);padding:var(--space-xs) var(--space-md);border-bottom:1px solid var(--border-color);background:var(--bg-panel);align-items:center}.tab[_ngcontent-%COMP%]{padding:var(--space-xs) var(--space-md);border-radius:var(--radius-sm) var(--radius-sm) 0 0;color:var(--text-secondary);font-weight:500;border:none;background:none;cursor:pointer;transition:color .15s}.tab[_ngcontent-%COMP%]:hover{color:var(--text-primary)}.tab.active[_ngcontent-%COMP%]{color:var(--accent-primary);border-bottom:2px solid var(--accent-primary)}.tab-spacer[_ngcontent-%COMP%]{flex:1}.tab-action[_ngcontent-%COMP%]{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border:none;background:none;border-radius:var(--radius-sm);cursor:pointer;font-size:14px;opacity:.6;transition:opacity .15s,background .15s}.tab-action[_ngcontent-%COMP%]:hover{opacity:1;background:var(--bg-elevated)}.tab-content[_ngcontent-%COMP%]{flex:1;overflow:auto;min-height:0}.error-banner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--space-sm);padding:var(--space-sm) var(--space-md);background:#f851491a;border-bottom:1px solid var(--color-danger);color:var(--color-danger);font-size:13px;font-family:var(--font-mono)}.error-banner__icon[_ngcontent-%COMP%]{font-weight:700}.error-banner__text[_ngcontent-%COMP%]{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]})};var UI={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},_a="__@ngrx/effects_create__";function $e(e,t={}){let n=t.functional?e:e(),r=y(y({},UI),t);return Object.defineProperty(n,_a,{value:r}),n}function HI(e){return Object.getOwnPropertyNames(e).filter(r=>e[r]&&e[r].hasOwnProperty(_a)?e[r][_a].hasOwnProperty("dispatch"):!1).map(r=>{let o=e[r][_a];return y({propertyName:r},o)})}function zI(e){return HI(e)}function um(e){return Object.getPrototypeOf(e)}function GI(e){return!!e.constructor&&e.constructor.name!=="Object"&&e.constructor.name!=="Function"}function lm(e){return typeof e=="function"}function WI(e){return e.filter(lm)}function qI(e,t,n){let r=um(e),i=!!r&&r.constructor.name!=="Object"?r.constructor.name:null,s=zI(e).map(({propertyName:a,dispatch:c,useEffectsErrorHandler:u})=>{let l=typeof e[a]=="function"?e[a]():e[a],d=u?n(l,t):l;return c===!1?d.pipe(Ka()):d.pipe(tc()).pipe(L(p=>({effect:e[a],notification:p,propertyName:a,sourceName:i,sourceInstance:e})))});return Sn(...s)}var ZI=10;function dm(e,t,n=ZI){return e.pipe(Ce(r=>(t&&t.handleError(r),n<=1?e:dm(e,t,n-1))))}var Ur=(()=>{class e extends j{constructor(n){super(),n&&(this.source=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}static{this.\u0275fac=function(r){return new(r||e)(D(Kn))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Ue(...e){return fe(t=>e.some(n=>typeof n=="string"?n===t.type:n.type===t.type))}var YI=new w("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>dm}),JI="@ngrx/effects/init",QI=$l(JI);function KI(e,t){if(e.notification.kind==="N"){let n=e.notification.value;!XI(n)&&t.handleError(new Error(`Effect ${e_(e)} dispatched an invalid action: ${t_(n)}`))}}function XI(e){return typeof e!="function"&&e&&e.type&&typeof e.type=="string"}function e_({propertyName:e,sourceInstance:t,sourceName:n}){let r=typeof t[e]=="function";return!!n?`"${n}.${String(e)}${r?"()":""}"`:`"${String(e)}()"`}function t_(e){try{return JSON.stringify(e)}catch(t){return e}}var n_="ngrxOnIdentifyEffects";function r_(e){return ql(e,n_)}var o_="ngrxOnRunEffects";function i_(e){return ql(e,o_)}var s_="ngrxOnInitEffects";function a_(e){return ql(e,s_)}function ql(e,t){return e&&t in e&&typeof e[t]=="function"}var fm=(()=>{class e extends ve{constructor(n,r){super(),this.errorHandler=n,this.effectsErrorHandler=r}addEffects(n){this.next(n)}toActions(){return this.pipe(Ri(n=>GI(n)?um(n):n),Et(n=>n.pipe(Ri(c_))),Et(n=>{let r=n.pipe(fr(i=>u_(this.errorHandler,this.effectsErrorHandler)(i)),L(i=>(KI(i,this.errorHandler),i.notification)),fe(i=>i.kind==="N"&&i.value!=null),Xa()),o=n.pipe(Kr(1),fe(a_),L(i=>i.ngrxOnInitEffects()));return Sn(r,o)}))}static{this.\u0275fac=function(r){return new(r||e)(D(Ae),D(YI))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function c_(e){return r_(e)?e.ngrxOnIdentifyEffects():""}function u_(e,t){return n=>{let r=qI(n,e,t);return i_(n)?n.ngrxOnRunEffects(r):r}}var l_=(()=>{class e{get isStarted(){return!!this.effectsSubscription}constructor(n,r){this.effectSources=n,this.store=r,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}static{this.\u0275fac=function(r){return new(r||e)(D(fm),D(Z))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function pm(...e){let t=e.flat(),n=WI(t);return Xe([n,mr(()=>{g(Yo),g(ca,{optional:!0});let r=g(l_),o=g(fm),i=!r.isStarted;i&&r.start();for(let s of t){let a=lm(s)?g(s):s;o.addEffects(a)}i&&g(Z).dispatch(QI())})])}var ei="PERFORM_ACTION",d_="REFRESH",Em="RESET",Dm="ROLLBACK",bm="COMMIT",wm="SWEEP",Cm="TOGGLE_ACTION",f_="SET_ACTIONS_ACTIVE",Im="JUMP_TO_STATE",_m="JUMP_TO_ACTION",sd="IMPORT_STATE",Sm="LOCK_CHANGES",Tm="PAUSE_RECORDING",Hr=class{constructor(t,n){if(this.action=t,this.timestamp=n,this.type=ei,typeof t.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}},Zl=class{constructor(){this.type=d_}},Yl=class{constructor(t){this.timestamp=t,this.type=Em}},Jl=class{constructor(t){this.timestamp=t,this.type=Dm}},Ql=class{constructor(t){this.timestamp=t,this.type=bm}},Kl=class{constructor(){this.type=wm}},Xl=class{constructor(t){this.id=t,this.type=Cm}};var ed=class{constructor(t){this.index=t,this.type=Im}},td=class{constructor(t){this.actionId=t,this.type=_m}},nd=class{constructor(t){this.nextLiftedState=t,this.type=sd}},rd=class{constructor(t){this.status=t,this.type=Sm}},od=class{constructor(t){this.status=t,this.type=Tm}};var xa=new w("@ngrx/store-devtools Options"),hm=new w("@ngrx/store-devtools Initial Config");function Mm(){return null}var p_="NgRx Store DevTools";function h_(e){let t={maxAge:!1,monitor:Mm,actionSanitizer:void 0,stateSanitizer:void 0,name:p_,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},n=typeof e=="function"?e():e,r=n.logOnly?{pause:!0,export:!0,test:!0}:!1,o=n.features||r||t.features;o.import===!0&&(o.import="custom");let i=Object.assign({},t,{features:o},n);if(i.maxAge&&i.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${i.maxAge}`);return i}function gm(e,t){return e.filter(n=>t.indexOf(n)<0)}function xm(e){let{computedStates:t,currentStateIndex:n}=e;if(n>=t.length){let{state:o}=t[t.length-1];return o}let{state:r}=t[n];return r}function Xo(e){return new Hr(e,+Date.now())}function g_(e,t){return Object.keys(t).reduce((n,r)=>{let o=Number(r);return n[o]=Nm(e,t[o],o),n},{})}function Nm(e,t,n){return I(y({},t),{action:e(t.action,n)})}function m_(e,t){return t.map((n,r)=>({state:Am(e,n.state,r),error:n.error}))}function Am(e,t,n){return e(t,n)}function Rm(e){return e.predicate||e.actionsSafelist||e.actionsBlocklist}function y_(e,t,n,r){let o=[],i={},s=[];return e.stagedActionIds.forEach((a,c)=>{let u=e.actionsById[a];u&&(c&&ad(e.computedStates[c],u,t,n,r)||(i[a]=u,o.push(a),s.push(e.computedStates[c])))}),I(y({},e),{stagedActionIds:o,actionsById:i,computedStates:s})}function ad(e,t,n,r,o){let i=n&&!n(e,t.action),s=r&&!t.action.type.match(r.map(c=>mm(c)).join("|")),a=o&&t.action.type.match(o.map(c=>mm(c)).join("|"));return i||s||a}function mm(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Om(e){return{ngZone:e?g(re):null,connectInZone:e}}var Na=(()=>{class e extends Ot{static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=To(e)))(o||e)}})()}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})(),Sa={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},id=new w("@ngrx/store-devtools Redux Devtools Extension"),km=(()=>{class e{constructor(n,r,o){this.config=r,this.dispatcher=o,this.zoneConfig=Om(this.config.connectInZone),this.devtoolsExtension=n,this.createActionStreams()}notify(n,r){if(this.devtoolsExtension)if(n.type===ei){if(r.isLocked||r.isPaused)return;let o=xm(r);if(Rm(this.config)&&ad(o,n,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let i=this.config.stateSanitizer?Am(this.config.stateSanitizer,o,r.currentStateIndex):o,s=this.config.actionSanitizer?Nm(this.config.actionSanitizer,n,r.nextActionId):n;this.sendToReduxDevtools(()=>this.extensionConnection.send(s,i))}else{let o=I(y({},r),{stagedActionIds:r.stagedActionIds,actionsById:this.config.actionSanitizer?g_(this.config.actionSanitizer,r.actionsById):r.actionsById,computedStates:this.config.stateSanitizer?m_(this.config.stateSanitizer,r.computedStates):r.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,o,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new j(n=>{let r=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=r,r.init(),r.subscribe(o=>n.next(o)),r.unsubscribe}):se}createActionStreams(){let n=this.createChangesObservable().pipe(ic()),r=n.pipe(fe(u=>u.type===Sa.START)),o=n.pipe(fe(u=>u.type===Sa.STOP)),i=n.pipe(fe(u=>u.type===Sa.DISPATCH),L(u=>this.unwrapAction(u.payload)),Jr(u=>u.type===sd?this.dispatcher.pipe(fe(l=>l.type===la),Qa(1e3),Qr(1e3),L(()=>u),Ce(()=>at(u)),Kr(1)):at(u))),a=n.pipe(fe(u=>u.type===Sa.ACTION),L(u=>this.unwrapAction(u.payload))).pipe(Tn(o)),c=i.pipe(Tn(o));this.start$=r.pipe(Tn(o)),this.actions$=this.start$.pipe(pe(()=>a)),this.liftedActions$=this.start$.pipe(pe(()=>c))}unwrapAction(n){return typeof n=="string"?(0,eval)(`(${n})`):n}getExtensionConfig(n){let r={name:n.name,features:n.features,serialize:n.serialize,autoPause:n.autoPause??!1,trace:n.trace??!1,traceLimit:n.traceLimit??75};return n.maxAge!==!1&&(r.maxAge=n.maxAge),r}sendToReduxDevtools(n){try{n()}catch(r){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",r)}}static{this.\u0275fac=function(r){return new(r||e)(D(id),D(xa),D(Na))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})(),Ma={type:Jo},v_="@ngrx/store-devtools/recompute",E_={type:v_};function Fm(e,t,n,r,o){if(r)return{state:n,error:"Interrupted by an error up the chain"};let i=n,s;try{i=e(n,t)}catch(a){s=a.toString(),o.handleError(a)}return{state:i,error:s}}function Ta(e,t,n,r,o,i,s,a,c){if(t>=e.length&&e.length===i.length)return e;let u=e.slice(0,t),l=i.length-(c?1:0);for(let d=t;d<l;d++){let f=i[d],p=o[f].action,h=u[d-1],m=h?h.state:r,b=h?h.error:void 0,B=s.indexOf(f)>-1?h:Fm(n,p,m,b,a);u.push(B)}return c&&u.push(e[e.length-1]),u}function D_(e,t){return{monitorState:t(void 0,{}),nextActionId:1,actionsById:{0:Xo(Ma)},stagedActionIds:[0],skippedActionIds:[],committedState:e,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function b_(e,t,n,r,o={}){return i=>(s,a)=>{let{monitorState:c,actionsById:u,nextActionId:l,stagedActionIds:d,skippedActionIds:f,committedState:p,currentStateIndex:h,computedStates:m,isLocked:b,isPaused:C}=s||t;s||(u=Object.create(u));function B(ee){let K=ee,Me=d.slice(1,K+1);for(let ot=0;ot<Me.length;ot++)if(m[ot+1].error){K=ot,Me=d.slice(1,K+1);break}else delete u[Me[ot]];f=f.filter(ot=>Me.indexOf(ot)===-1),d=[0,...d.slice(K+1)],p=m[K].state,m=m.slice(K),h=h>K?h-K:0}function de(){u={0:Xo(Ma)},l=1,d=[0],f=[],p=m[h].state,h=0,m=[]}let F=0;switch(a.type){case Sm:{b=a.status,F=1/0;break}case Tm:{C=a.status,C?(d=[...d,l],u[l]=new Hr({type:"@ngrx/devtools/pause"},+Date.now()),l++,F=d.length-1,m=m.concat(m[m.length-1]),h===d.length-2&&h++,F=1/0):de();break}case Em:{u={0:Xo(Ma)},l=1,d=[0],f=[],p=e,h=0,m=[];break}case bm:{de();break}case Dm:{u={0:Xo(Ma)},l=1,d=[0],f=[],h=0,m=[];break}case Cm:{let{id:ee}=a;f.indexOf(ee)===-1?f=[ee,...f]:f=f.filter(Me=>Me!==ee),F=d.indexOf(ee);break}case f_:{let{start:ee,end:K,active:Me}=a,ot=[];for(let ka=ee;ka<K;ka++)ot.push(ka);Me?f=gm(f,ot):f=[...f,...ot],F=d.indexOf(ee);break}case Im:{h=a.index,F=1/0;break}case _m:{let ee=d.indexOf(a.actionId);ee!==-1&&(h=ee),F=1/0;break}case wm:{d=gm(d,f),f=[],h=Math.min(h,d.length-1);break}case ei:{if(b)return s||t;if(C||s&&ad(s.computedStates[h],a,o.predicate,o.actionsSafelist,o.actionsBlocklist)){let K=m[m.length-1];m=[...m.slice(0,-1),Fm(i,a.action,K.state,K.error,n)],F=1/0;break}o.maxAge&&d.length===o.maxAge&&B(1),h===d.length-1&&h++;let ee=l++;u[ee]=a,d=[...d,ee],F=d.length-1;break}case sd:{({monitorState:c,actionsById:u,nextActionId:l,stagedActionIds:d,skippedActionIds:f,committedState:p,currentStateIndex:h,computedStates:m,isLocked:b,isPaused:C}=a.nextLiftedState);break}case Jo:{F=0,o.maxAge&&d.length>o.maxAge&&(m=Ta(m,F,i,p,u,d,f,n,C),B(d.length-o.maxAge),F=1/0);break}case la:{if(m.filter(K=>K.error).length>0)F=0,o.maxAge&&d.length>o.maxAge&&(m=Ta(m,F,i,p,u,d,f,n,C),B(d.length-o.maxAge),F=1/0);else{if(!C&&!b){h===d.length-1&&h++;let K=l++;u[K]=new Hr(a,+Date.now()),d=[...d,K],F=d.length-1,m=Ta(m,F,i,p,u,d,f,n,C)}m=m.map(K=>I(y({},K),{state:i(K.state,E_)})),h=d.length-1,o.maxAge&&d.length>o.maxAge&&B(d.length-o.maxAge),F=1/0}break}default:{F=1/0;break}}return m=Ta(m,F,i,p,u,d,f,n,C),c=r(c,a),{monitorState:c,actionsById:u,nextActionId:l,stagedActionIds:d,skippedActionIds:f,committedState:p,currentStateIndex:h,computedStates:m,isLocked:b,isPaused:C}}}var ym=(()=>{class e{constructor(n,r,o,i,s,a,c,u){let l=D_(c,u.monitor),d=b_(c,l,a,u.monitor,u),f=Sn(Sn(r.asObservable().pipe(sc(1)),i.actions$).pipe(L(Xo)),n,i.liftedActions$).pipe(jt(Yr)),p=o.pipe(L(d)),h=Om(u.connectInZone),m=new sr(1);this.liftedStateSubscription=f.pipe(Qe(p),vm(h),Xr(({state:B},[de,F])=>{let ee=F(B,de);return de.type!==ei&&Rm(u)&&(ee=y_(ee,u.predicate,u.actionsSafelist,u.actionsBlocklist)),i.notify(de,ee),{state:ee,action:de}},{state:l,action:null})).subscribe(({state:B,action:de})=>{if(m.next(B),de.type===ei){let F=de.action;s.next(F)}}),this.extensionStartSubscription=i.start$.pipe(vm(h)).subscribe(()=>{this.refresh()});let b=m.asObservable(),C=b.pipe(L(xm));Object.defineProperty(C,"state",{value:sa(C,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=n,this.liftedState=b,this.state=C}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(n){this.dispatcher.next(n)}next(n){this.dispatcher.next(n)}error(n){}complete(){}performAction(n){this.dispatch(new Hr(n,+Date.now()))}refresh(){this.dispatch(new Zl)}reset(){this.dispatch(new Yl(+Date.now()))}rollback(){this.dispatch(new Jl(+Date.now()))}commit(){this.dispatch(new Ql(+Date.now()))}sweep(){this.dispatch(new Kl)}toggleAction(n){this.dispatch(new Xl(n))}jumpToAction(n){this.dispatch(new td(n))}jumpToState(n){this.dispatch(new ed(n))}importState(n){this.dispatch(new nd(n))}lockChanges(n){this.dispatch(new rd(n))}pauseRecording(n){this.dispatch(new od(n))}static{this.\u0275fac=function(r){return new(r||e)(D(Na),D(Ot),D(Qn),D(km),D(Kn),D(Ae),D(Qo),D(xa))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})();function vm({ngZone:e,connectInZone:t}){return n=>t?new j(r=>n.subscribe({next:o=>e.run(()=>r.next(o)),error:o=>e.run(()=>r.error(o)),complete:()=>e.run(()=>r.complete())})):n}var w_=new w("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function C_(e,t){return!!e||t.monitor!==Mm}function I_(){let e="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[e]<"u"?window[e]:null}function __(e){return e.state}function Pm(e={}){return Xe([km,Na,ym,{provide:hm,useValue:e},{provide:w_,deps:[id,xa],useFactory:C_},{provide:id,useFactory:I_},{provide:xa,deps:[hm],useFactory:h_},{provide:Lr,deps:[ym],useFactory:__},{provide:Pr,useExisting:Na}])}var S_={fsmState:"idle",actions:[],breakpoints:[],consoleLogs:[],connectionStatus:"disconnected",results:[],currentJourney:null},Lm=Vr(S_,Q(A.play,e=>I(y({},e),{fsmState:"running",actions:[],consoleLogs:[],results:[]})),Q(A.pause,e=>I(y({},e),{fsmState:"paused"})),Q(A.resume,e=>I(y({},e),{fsmState:"running"})),Q(A.step,e=>I(y({},e),{fsmState:"stepping"})),Q(A.stop,e=>I(y({},e),{fsmState:"idle"})),Q(A.pausedByRunner,e=>I(y({},e),{fsmState:"paused"})),Q(A.resumedByRunner,e=>I(y({},e),{fsmState:"running"})),Q(A.runEnded,e=>I(y({},e),{fsmState:"idle"})),Q(A.actionReceived,(e,{index:t,status:n,description:r})=>{let o=e.actions.find(a=>a.index===t),i=T_(n),s=n==="breakpoint"&&!e.breakpoints.includes(t)?[...e.breakpoints,t]:e.breakpoints;return o?I(y({},e),{breakpoints:s,actions:e.actions.map(a=>a.index===t?I(y({},a),{status:i}):a),fsmState:n==="breakpoint"?"paused":e.fsmState}):I(y({},e),{breakpoints:s,actions:[...e.actions,{index:t,description:r??"",status:i,hasBreakpoint:s.includes(t)}],fsmState:n==="breakpoint"?"paused":e.fsmState})}),Q(A.testStarted,(e,{journey:t})=>I(y({},e),{fsmState:"running",currentJourney:t,actions:[],consoleLogs:[...e.consoleLogs,{type:"separator",message:t,timestamp:Date.now()}]})),Q(A.testEnded,(e,{journey:t,status:n,duration:r})=>I(y({},e),{results:[...e.results,{journey:t,status:n,duration:r}],currentJourney:null,actions:n==="failed"?e.actions.map(o=>o.status==="running"?I(y({},o),{status:"failed"}):o):e.actions,fsmState:n==="failed"?"errored":e.fsmState})),Q(A.logReceived,(e,{message:t})=>I(y({},e),{consoleLogs:[...e.consoleLogs,{type:"log",message:t,timestamp:Date.now()}]})),Q(A.errorReceived,(e,{message:t})=>I(y({},e),{consoleLogs:[...e.consoleLogs,{type:"error",message:t,timestamp:Date.now()}]})),Q(A.connectionStatusChanged,(e,{status:t})=>I(y({},e),{connectionStatus:t})),Q(A.toggleBreakpoint,(e,{index:t})=>{let n=e.breakpoints.includes(t);return I(y({},e),{breakpoints:n?e.breakpoints.filter(r=>r!==t):[...e.breakpoints,t]})}),Q(A.clearActions,e=>I(y({},e),{actions:[]})),Q(A.clearConsole,e=>I(y({},e),{consoleLogs:[]})));function T_(e){switch(e){case"start":return"running";case"complete":return"complete";case"breakpoint":return"breakpoint";default:return"pending"}}var M_={journeys:[],selectedIds:[],loading:!1},jm=Vr(M_,Q(Te.loadJourneys,e=>I(y({},e),{loading:!0})),Q(Te.loadJourneysSuccess,(e,{journeys:t})=>I(y({},e),{journeys:t,selectedIds:e.selectedIds.length>0?e.selectedIds:t.map(n=>n.id),loading:!1})),Q(Te.toggleJourney,(e,{id:t})=>{let n=e.selectedIds.includes(t);return I(y({},e),{selectedIds:n?e.selectedIds.filter(r=>r!==t):[...e.selectedIds,t]})}),Q(Te.selectAll,e=>I(y({},e),{selectedIds:e.journeys.map(t=>t.id)})),Q(Te.deselectAll,e=>I(y({},e),{selectedIds:[]})),Q(H.loadSettingsSuccess,(e,{settings:t})=>{let n=t.selectedJourneyIds;return n&&n.length>0?I(y({},e),{selectedIds:n}):e}));var x_={targetUrl:"http://localhost:3000",browserPath:"",userDataDir:"",viewportWidth:1280,viewportHeight:720,actionDelay:0,devtools:!1,headless:!1,keepBrowserOpen:!1,settingsPanelOpen:!1,activeTab:"actions",sidebarWidth:240,selectedJourneyIds:[],targetUrlHistory:[],theme:""},Bm=Vr(x_,Q(H.loadSettingsSuccess,(e,{settings:t})=>y(y({},e),t)),Q(H.updateSetting,(e,{key:t,value:n})=>{let r=I(y({},e),{[t]:n});if(t==="targetUrl"&&typeof n=="string"&&n.trim()){let o=e.targetUrlHistory.filter(i=>i!==n);r.targetUrlHistory=[n,...o].slice(0,10)}return r}),Q(H.toggleSettingsPanel,e=>I(y({},e),{settingsPanelOpen:!e.settingsPanelOpen})),Q(H.removeUrlFromHistory,(e,{url:t})=>I(y({},e),{targetUrlHistory:e.targetUrlHistory.filter(n=>n!==t)})));var Aa=class e{actions$=g(Ur);api=g(Ft);store=g(Z);play$=$e(()=>this.actions$.pipe(Ue(A.play),Qe(this.store.select(Wl),this.store.select(nm)),fr(([,t,n])=>this.api.runTests(t,n).pipe(Ce(()=>se)))),{dispatch:!1});pause$=$e(()=>this.actions$.pipe(Ue(A.pause),pe(()=>this.api.pauseTests().pipe(Ce(()=>se)))),{dispatch:!1});resume$=$e(()=>this.actions$.pipe(Ue(A.resume),pe(()=>this.api.resumeTests().pipe(Ce(()=>se)))),{dispatch:!1});step$=$e(()=>this.actions$.pipe(Ue(A.step),pe(()=>this.api.stepTests().pipe(Ce(()=>se)))),{dispatch:!1});stop$=$e(()=>this.actions$.pipe(Ue(A.stop),pe(()=>this.api.stopTests().pipe(Ce(()=>se)))),{dispatch:!1});updateConfig$=$e(()=>this.actions$.pipe(Ue(A.updateConfig),pe(({actionDelay:t})=>this.api.updateConfig({actionDelay:t}).pipe(Ce(()=>se)))),{dispatch:!1});syncBreakpoints$=$e(()=>this.actions$.pipe(Ue(A.toggleBreakpoint),Qe(this.store.select(ya),this.store.select(Wl)),pe(([,t,n])=>{let r=n[0]??"";return r?this.api.setBreakpoints(r,t).pipe(Ce(()=>se)):se})),{dispatch:!1});static \u0275fac=function(n){return new(n||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})};var Ra=class e{actions$=g(Ur);api=g(Ft);store=g(Z);themeService=g(mn);loadSettings$=$e(()=>this.actions$.pipe(Ue(H.loadSettings),pe(()=>this.api.getSettings()),L(t=>H.loadSettingsSuccess({settings:t}))));applyTheme$=$e(()=>this.actions$.pipe(Ue(H.loadSettingsSuccess),ct(({settings:t})=>{this.themeService.applyFromSettings(t.theme)})),{dispatch:!1});saveSettings$=$e(()=>this.actions$.pipe(Ue(H.updateSetting,H.toggleSettingsPanel,H.removeUrlFromHistory),Qr(500),Qe(this.store.select(fa)),pe(([,t])=>this.api.saveSettings(t).pipe(Ce(()=>se)))),{dispatch:!1});static \u0275fac=function(n){return new(n||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})};var Oa=class e{actions$=g(Ur);api=g(Ft);store=g(Z);loadJourneys$=$e(()=>this.actions$.pipe(Ue(Te.loadJourneys),pe(()=>this.api.getJourneys().pipe(L(t=>Te.loadJourneysSuccess({journeys:t})),Ce(()=>se)))));persistSelection$=$e(()=>this.actions$.pipe(Ue(Te.toggleJourney,Te.selectAll,Te.deselectAll),Qe(this.store.select($r)),ct(([,t])=>{this.store.dispatch(H.updateSetting({key:"selectedJourneyIds",value:t}))})),{dispatch:!1});static \u0275fac=function(n){return new(n||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})};var Vm={providers:[rg({eventCoalescing:!0}),kl(),Qg({execution:Lm,journeys:jm,settings:Bm}),pm(Aa,Ra,Oa),Pm({maxAge:50,logOnly:!Vo(),name:"Glassbox"})]};xl(Ia,Vm).catch(e=>console.error(e));
|