@mechris3/glassbox 0.1.60 → 0.1.61
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.
- package/dist/src/runner/run-journey.js +22 -14
- package/dist/src/runner/run-journey.js.map +1 -1
- package/dist/src/runner/spawn-journey.d.ts +4 -4
- package/dist/src/runner/spawn-journey.d.ts.map +1 -1
- package/dist/src/runner/spawn-journey.js +6 -2
- package/dist/src/runner/spawn-journey.js.map +1 -1
- package/dist/src/server/test-executor.d.ts.map +1 -1
- package/dist/src/server/test-executor.js +4 -2
- package/dist/src/server/test-executor.js.map +1 -1
- package/package.json +1 -1
- package/ui/dist/browser/index.html +1 -1
- package/ui/dist/browser/{main-H2TQEGFQ.js → main-4Y5DXJ2L.js} +12 -12
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var $m=Object.defineProperty,
|
|
1
|
+
var $m=Object.defineProperty,Hm=Object.defineProperties;var Um=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,E=(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},C=(e,t)=>Hm(e,Um(t));var Qe=(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 Ne=null,ti=!1,Fa=1,Wm=null,Fe=Symbol("SIGNAL");function M(e){let t=Ne;return Ne=e,t}function ii(){return Ne}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(Ne===null)return;Ne.consumerOnSignalRead(e);let t=Ne.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Ne.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Ne.producers,n!==void 0&&n.producer===e)){Ne.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Ne&&(!r||Zm(o,Ne)))return;let i=tr(Ne),s={producer:e,consumer:Ne,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};Ne.producersTail=s,t!==void 0?t.nextProducer=s:Ne.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 Ne?.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=C(E({},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=C(E({},vn),{equal:ci,value:void 0,kind:"signal"});function Km(e){e.version++,ld(),Pa(e),Qm?.(e)}var Ha=C(E({},vn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function Ua(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 ve=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)}};ve.EMPTY=(()=>{let e=new ve;return e.closed=!0,e})();var za=ve.EMPTY;function fi(e){return e instanceof ve||e&&"closed"in e&&P(e.remove)&&P(e.add)&&P(e.unsubscribe)}function yd(e){P(e)?e():e.unsubscribe()}var st={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}=st;if(t)t(e);else throw e})}function Lt(){}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(st.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){st.useDeprecatedSynchronousErrorHandling&&wn&&(wn.errorThrown=!0,wn.error=e)}var Cn=class extends ve{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 at(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)}}},at=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&&st.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){st.useDeprecatedSynchronousErrorHandling?bd(e):pi(e)}function ey(e){throw e}function qa(e,t){let{onStoppedNotification:n}=st;n&&rr.setTimeout(()=>n(e,t))}var ty={closed:!0,next:Lt,error:ey,complete:Lt};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 at(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 at({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??st.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 Ee=(()=>{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 ve(()=>{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 Ee{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 jt=class extends Ee{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 Ee{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 ve{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,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 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 J(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 Ae(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 Bt(e,t=0){return R((n,r)=>{n.subscribe(O(r,o=>Ae(r,e,()=>r.next(o),t),()=>Ae(r,e,()=>r.complete(),t),o=>Ae(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 J(e).pipe(Ni(t),Bt(t))}function Od(e,t){return J(e).pipe(Ni(t),Bt(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 Ae(n,t,()=>{r=e[Si](),Ae(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=>{Ae(n,t,()=>{let r=e[Symbol.asyncIterator]();Ae(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):J(e)}function ct(...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"?ct(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 Vt(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new at({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=Ae(c,i,()=>{try{u.unsubscribe(),J(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?Ae(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;J(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?Ae(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))(J(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?J(r[0]):Wd(n)(_n(r,t)):se}function he(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=J(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,Lt))})}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)=>J(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()}),J(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 Ee);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(J(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 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 Ee,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=oc(h,o))}),I.subscribe(b),!s&&u>0&&(s=new at({next:B=>I.next(B),error:B=>{d=!0,f(),a=oc(p,n,B),I.error(B)},complete:()=>{l=!0,f(),a=oc(p,r),I.complete()}}),J(m).subscribe(s))})(i)}}function oc(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new at({next:()=>{r.unsubscribe(),e()}});return J(t(...n)).subscribe(r)}function sc(e){return he((t,n)=>e<=n)}function ge(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++;J(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)=>{J(e).subscribe(O(n,()=>n.complete(),Lt)),!n.closed&&t.subscribe(n)})}function ut(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 Ke(...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++)J(e[c]).subscribe(O(r,u=>{i[c]=u,!a&&!s[c]&&(s[c]=!0,(a=s.every(Ge))&&(s=null))},Lt));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",N=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 te(e){for(let t in e)if(e[t]===te)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=te({__forward_ref__:te});function Ui(e){return e.__forward_ref__=Ui,e}function ze(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 Ht(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=te({\u0275prov:te}),Fi=te({\u0275inj:te}),C=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=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=te({\u0275cmp:te}),Sc=te({\u0275dir:te}),Tc=te({\u0275pipe:te});var to=te({\u0275fac:te}),Rn=te({__NG_ELEMENT_ID__:te}),Jd=te({__NG_ENV_ID__:te});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 N(-919,!1)}function so(e){return typeof e=="string"?e:e==null?"":String(e)}var tf=te({ngErrorCode:te}),Ty=te({ngErrorMessage:te}),My=te({ngTokenPath:te});function Nc(e,t){return nf("",-200,t)}function Gi(e,t){throw new N(-201,!1)}function nf(e,t,n){let r=new N(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 N(-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)(ze(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=ze(e[n]);if(Array.isArray(r)){if(r.length===0)throw new N(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={},Xe=[],nn=new C(""),Oc=new C("",-1),kc=new C(""),no=class{get(t,n=Mn){if(n===Mn){let o=nf("",-201);throw o.name="\u0275NotFound",o}return n}};function et(e){return{\u0275providers:e}}function mr(e){return et([{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=ze(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:Xe},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=te({provide:String,useValue:te});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 C(""),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,Xe,{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 N(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,Xe,{self:!0});for(let s of i)s()}finally{Dt(n),Pe(r),M(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=ze(t);let n=Li(t)?t:ze(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=ze(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 C)throw new N(-204,!1);if(e instanceof Function)return jy(e);throw new N(-204,!1)}function jy(e){if(e.length>0)throw new N(-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=ze(e);return Xt(o)||hc(o)}else if(ff(e))r=()=>ze(e.useValue);else if(Ly(e))r=()=>e.useFactory(...pc(e.deps||[]));else if(Py(e))r=(o,i)=>D(ze(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=ze(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 N(-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 lt=0,A=1,k=2,De=3,tt=4,nt=5,vr=6,Er=7,me=8,zt=9,wt=10,ae=11,Dr=12,Lc=13,Fn=14,We=15,rn=16,Pn=17,Ct=18,Gt=19,jc=20,Ut=21,Zi=22,en=23,qe=24,Ln=25,on=26,be=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 dt(e){return Array.isArray(e)&&e[gf]===!0}function Vc(e){return(e.flags&4)!==0}function Wt(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 rt(e){for(;Array.isArray(e);)e=e[lt];return e}function $c(e,t){return rt(t[e])}function ft(e,t){return rt(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 pt(e,t){let n=t[e];return an(n)?n:n[lt]}function Ef(e){return(e[k]&4)===4}function Qi(e){return(e[k]&128)===128}function Df(e){return dt(e[De])}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 N(911,!1);e[Ut]===null&&(e[Ut]=[]),e[Ut].push(t)}function wf(e,t){if(e[Ut]===null)return;let n=e[Ut].indexOf(t);n!==-1&&e[Ut].splice(n,1)}function tn(e){let t=e[De];return dt(t)?t[De]: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 Oe(){return V.lFrame.tView}function K(e){return V.lFrame.contextLView=e,e[me]}function X(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[A];return t.type===2?t.declTNode:t.type===1?e[nt]: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[A];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))[me]}function qt(){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||Xe,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 C(""),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 C(""),un=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new jt(!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 Ee{__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 ve&&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)}})}}},$t=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 $t(!1);onMicrotaskEmpty=new $t(!1);onStable=new $t(!1);onError=new $t(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=iu}=t;if(typeof Zone>"u")throw new N(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 N(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new N(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 $t;onMicrotaskEmpty=new $t;onStable=new $t;onError=new $t;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 Re=class{_console=console;handleError(t){this._console.error("ERROR",t)}},_t=new C("",{factory:()=>{let e=g(re),t=g(Le),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Re),n.handleError(r))})}}}),Wf={provide:nn,useValue:()=>{let e=g(Re,{optional:!0})},multi:!0};function ht(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 C("",{factory:()=>!0});var ss=new C(""),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=w(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=w(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=w(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 Q=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){Q(z.LifecycleHookStart,e,t);let n=M(null);try{t.call(e)}finally{M(n),Q(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[A];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[A].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[zt],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][nt]:null;for((a===-1||r&4)&&(c=a===-1?qu(e,t):t[a+8],c===Sr||!Xf(r,!1)?a=-1:(s=t[A],a=ms(c),t=ys(c,t)));a!==-1;){let l=t[A];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[A].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[A],a=s.data[e+8],c=r==null?Wt(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(ze(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[A],n=t.type;return n===2?t.declTNode:n===1?e[nt]:null}function Pv(){return Nr(Ze(),$())}function Nr(e,t){return new Ar(ft(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 Ee}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[Gt],e)}function Eu(e){jp.delete(e[Gt])}var ep="__ngContext__";function Tr(e,t){an(t)?(e[ep]=t[Gt],$v(t)):e[ep]=t}function Bp(e){return $p(e[Dr])}function Vp(e){return $p(e[tt])}function $p(e){for(;e!==null&&!dt(e);)e=e[tt];return e}var Uv;function Yu(e){Uv=e}var Ns=new C("",{factory:()=>Hv}),Hv="ng";var As=new C(""),Mo=new C("",{providedIn:"platform",factory:()=>"unknown"});var xo=new C("",{factory:()=>g(je).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Up="r";var Hp="di";var zp=!1,Gp=new C("",{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 mt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(mt||{});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&&!gt(r)&&!gt(c))return!1;if(s&>(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(gt(r))return!1;s=!0}}else if(r&8){if(o===null||!Xv(e,o,c,n)){if(gt(r))return!1;s=!0}}else{let u=t[++a],l=nE(c,o,Qu(e),n);if(l===-1){if(gt(r))return!1;s=!0;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(gt(r))return!1;s=!0}}}}return gt(r)||s}function gt(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!==""&&!gt(s)&&(t+=rp(i,o),o=""),r=s,i=i||!gt(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(!gt(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var ot={};function Ku(e,t,n,r,o,i,s,a,c,u,l){let d=be+r,f=d+o,p=uE(d,f),h=typeof u=="function"?u():u;return p[A]={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:ot);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[lt]=o,d[k]=r|4|128|8|64|1024,(u!==null||e&&e[k]&2048)&&(d[k]|=2048),Hc(d),d[De]=d[Fn]=e,d[me]=n,d[wt]=s||e&&e[wt],d[ae]=a||e&&e[ae],d[zt]=c||e&&e[zt]||null,d[nt]=i,d[Gt]=Vv(),d[vr]=l,d[jc]=u,d[We]=t.type==2?e[We]:d,d}function dE(e,t,n){let r=ft(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][tt]=t:e[Dr]=t,e[Lc]=t,t}function T(e=1){rh(Oe(),$(),qt()+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 qR=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 C(""),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(Re,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){g(xt,{optional:!0})}execute(){let n=this.sequences.size>0;n&&Q(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&&Q(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 C("",{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;dt(o)?c=o:an(o)&&(u=!0,o=o[lt]);let l=rt(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[lt]=null,t[nt]=null}function DE(e,t,n,r,o,i){r[lt]=o,r[nt]=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[A],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[tt]&&t!==e;)an(t)&&fu(t[A],t),t=t[De];t===null&&(t=e),an(t)&&fu(t[A],t),n=t&&t[tt]}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[A].type===1&&t[ae].destroy();let r=t[rn];if(r!==null&&dt(t[De])){r!==t[De]&&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[Gt]),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[Gt]),r(!1)},o)}function wE(e,t){let n=e[on]?.running;if(n){n.then(()=>{e[on].running=void 0,zn.delete(e[Gt]),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[Ut];if(o!==null){t[Ut]=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];Q(z.LifecycleHookStart,a,c);try{c.call(a)}finally{Q(z.LifecycleHookEnd,a,c)}}else{Q(z.LifecycleHookStart,o,i);try{i.call(o)}finally{Q(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[lt];if(Wt(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===mt.None||o===mt.Emulated)return null}return ft(r,n)}function TE(e,t,n){return xE(e,t,n)}function ME(e,t,n){return e.type&40?ft(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[nt],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 ft(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 dt(o)?Iu(-1,o):rt(o)}}else{if(n&128)return mo(e,t.next);if(n&32)return tl(t,e)()||rt(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][nt],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[A].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[zt];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&Tr(rt(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[nt].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];_r(t,e,n[zt],o,l,r,i,n)}else{let u=c,l=s[De];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=rt(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[A],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=qt(),s=r&2;try{cn(-1),s&&t.length>be&&rh(e,t,be,!1);let a=s?z.TemplateUpdateStart:z.TemplateCreateStart;Q(a,o,n),n(r,o)}finally{cn(i);let a=s?z.TemplateUpdateEnd:z.TemplateCreateEnd;Q(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=ft){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===mt.ShadowDom||n===mt.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);if(s.tagName.toLowerCase()==="script")throw new N(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[A];if(cl(e,s,t,n,r)){Wt(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=ft(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=pt(t,e);n[k]&16||(n[k]|=64)}function BE(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Wt(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=pt(n.index,t);u[me]=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=ft(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=be+n,s=t[A],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[zt];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=pt(t,e),r=n[A];ZE(r,n);let o=n[lt];o!==null&&n[vr]===null&&(n[vr]=Wp(o,n[zt])),Q(z.ComponentStart);try{ul(r,n,n[me])}finally{Q(z.ComponentEnd,n[me])}}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(rt(i)),dt(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[A],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[A].firstChild;o!==null&&Do(r[A],r,o,t)}e[sn]!==e[lt]&&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=w(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=w(y({},vn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=tn(e.lView);for(;t&&!vh(t[A]);)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 N(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){Q(z.ComponentStart);let r=pt(t,e);try{wh(r,n)}finally{Q(z.ComponentEnd,r[me])}}function wh(e,t){Qi(e)&&_u(e,t)}function _u(e,t){let r=e[A],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[me]);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];Q(z.HostBindingsUpdateStart,c);try{a(2,c)}finally{Q(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[A];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[nt],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[A],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][tt]=r[tt]);let i=ao(e,ce+t);EE(r[A],r);let s=i[Ct];s!==null&&s.detachView(i[A]),r[De]=null,r[tt]=null,r[k]&=-129}return r}function cD(e,t,n,r){let o=ce+r,i=n.length;r>0&&(n[o-1][tt]=t),r<i-ce?(t[tt]=n[o],Rc(n,ce+r,t)):(n.push(t),t[tt]=null),t[De]=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[De];if(an(r))e[k]|=2;else{let o=r[De][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[A];return Do(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[me]}set context(t){this._lView[me]=t}get destroyed(){return Vn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[De];if(dt(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[A],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 N(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[A],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new N(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[De][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 N(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,ze(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 N(-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,ot),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[A],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===ot)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=Wt(e)?pt(e.index,t):t;ll(s,5);let a=t[me],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 Q(z.OutputStart,t,n),n(r)!==!1}catch(i){return WE(e,i),!1}finally{Q(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=ft(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(rt(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[A],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 N(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){Q(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[be]=l,ts(f);let p=null;try{let h=Rh(be,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=pt(h.index,f),f[me]=p[me],ul(c,f,null)}catch(h){throw p!==null&&Eu(p),Eu(f),h}finally{Q(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[A],be),this.location=Nr(this._tNode,n),this.instance=pt(this._tNode.index,n)[me],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[A],o,t,n);this.previousInputValues.set(t,n);let s=pt(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[A].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 I=(c?d:this.parentInjector).get(Le,null);I&&(i=I)}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[De],u=new e(c,c[nt],c[De]);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[A],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 dt(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=ft(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=rt(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[A],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[De]&&Lu(f[A],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[A],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=Oe();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[A],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 Se(e){return So(()=>{let t=sb(e),n=w(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||mt.Emulated,styles:e.styles||Xe,_: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||Xe,declarations:e.declarations||Xe,imports:e.imports||Xe,exports:e.exports||Xe,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||Xe,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+be]=u,el(t,u),zD(u,e,t)}function _s(e,t,n,r,o,i,s,a,c,u,l){let d=n+be,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 C("");function Ao(e){return!!e&&typeof e.then=="function"}function $s(e){return!!e&&typeof e.subscribe=="function"}var $h=new C("");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 C("");function Hh(){Ba(()=>{let e="";throw new N(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 Ee;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(()=>{Q(z.BootstrapComponentStart);let s=n instanceof Bs;if(!this._injector.get(gl).done){let h="";throw new N(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),Q(z.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Q(z.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Os.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw Q(z.ChangeDetectionEnd),new N(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(),Q(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;){Q(z.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{Q(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 N(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=Oe(),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),I=n(a,p),B=n(s,d);if(Object.is(B,I)){let pe=n(u,h);Object.is(pe,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 pe=e.create(s,t[s]);e.attach(s,pe),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 le(e,t,n,r,o,i,s,a){dn("NgControlFlow");let c=$(),u=Oe(),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=Oe(),l=It(u.consts,i);return _s(c,u,e,t,n,r,o,l,512,s,a),Oo}function de(e,t){dn("NgControlFlow");let n=$(),r=Un(),o=n[r]!==ot?n[r]:-1,i=o!==-1?Ts(n,be+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=be+e,u=Ts(n,c),l=Hu(n[A],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[me]=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 yt(e,t,n,r,o,i,s,a,c,u,l,d,f){dn("NgControlFlow");let p=$(),h=Oe(),m=c!==void 0,b=$(),I=a?s.bind(b[We][me]):s,B=new $u(m,I);b[be+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)[me].$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[A],t)}updateValue(t,n){this.getLView(t)[me].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[me].$index=t}getLView(t){return yb(this.lContainer,t)}};function vt(e){let t=M(null),n=qt();try{let r=$(),o=r[A],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[zt];yE(i,o),zn.delete(r[Gt]),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=Oe(),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 _e(e,t,n,r){let o=$(),i=o[A],s=e+be,a=i.firstCreatePass?Rh(s,o,2,t,UE,Sf(),n,r):i.data[s];if(Wt(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),_e))}}return Ep(e,t,o,a,r),_e}function Ep(e,t,n,r,o){if(ph(r,n,e,t,Gh),Yi(r)){let i=n[A];dh(i,n,r),Zp(i,r,n)}o!=null&&al(n,r)}function Ve(){let e=Oe(),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),Ve}function Nt(e,t,n,r){return _e(e,t,n,r),Ve(),Nt}function v(e,t,n,r){let o=$(),i=o[A],s=e+be,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 Je(){return $()}function ie(e,t,n){let r=$(),o=Un();if(Mt(r,o,t)){let i=Oe(),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 Rt(e,t,n){let r=$(),o=Oe(),i=Ze();return Eb(o,r,r[ae],i,e,t,n),Rt}function G(e,t,n){let r=$(),o=Oe(),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=Oe(),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=Oe(),s=eu(2);if(i.firstUpdatePass&&Tb(i,e,s,r),t!==ot&&Mt(o,s,t)){let a=i.data[qt()];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[qt()],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(qt(),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===ot&&(f=d?Xe: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=Oe(),o=e+be,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:ot}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:ot}function we(e){return Ot("",e),we}function Ot(e,t,n){let r=$(),o=Zh(r,e,t,n);return o!==ot&&Yh(r,qt(),o),Ot}function zs(e,t,n,r,o){let i=$(),s=Pb(i,e,t,n,r,o);return s!==ot&&Yh(i,qt(),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===ot?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=Oe(),r,o=e+be;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+be,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[A].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 ve;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 C("",{factory:()=>g(Gs,{optional:!0,skipSelf:!0})||$b()});var Ws=class{destroyed=!1;listeners=null;errorHandler=g(Re,{optional:!0});destroyRef=g(Be);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new N(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=w(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 N(-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 C("",{factory:()=>!1});function lw({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new re(w(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 et([{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 ve;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 C(""),fw=new C("");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 $j=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(Wt(e)&&!n){let r=pt(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;Q(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{Q(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 N(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,$e=(()=>{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=Ht({})}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 C(""),_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 N(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 C("",{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 mt.Emulated:i=new Qs(c,u,r,this.appId,l,s,a,d);break;case mt.ShadowDom:return new Js(c,n,r,s,a,this.nonce,d,u);case mt.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 N(-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 N(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 Qe(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 Re}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:Re,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 N(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 N(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,I=t.withCredentials??this.withCredentials,B=t.reportProgress??this.reportProgress,pe=t.headers||this.headers,F=t.params||this.params,ne=t.context??this.context;return t.setHeaders!==void 0&&(pe=Object.keys(t.setHeaders).reduce((ee,xe)=>ee.set(xe,t.setHeaders[xe]),pe)),t.setParams&&(F=Object.keys(t.setParams).reduce((ee,xe)=>ee.set(xe,t.setParams[xe]),F)),new e(n,r,b,{params:F,headers:pe,context:ne,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||{}),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 C("");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 N(-2800,!1);let r=this.xhrFactory;return ct(null).pipe(ge(()=>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 ra({headers:I,status:s.status,statusText:b,url:B}),c},l=this.maybePropagateTrace(()=>{let{headers:b,status:I,statusText:B,url:pe}=u(),F=null;I!==Qw&&(F=typeof s.response>"u"?s.responseText:s.response),I===0&&(I=F?Jw:0);let ne=I>=200&&I<300;if(n.responseType==="json"&&typeof F=="string"){let ee=F;F=F.replace(Xw,"");try{F=F!==""?JSON.parse(F):null}catch(xe){F=ee,ne&&(ne=!1,F={error:xe,text:F})}}ne?(i.next(new qo({body:F,headers:b,status:I,statusText:B,url:pe||void 0})),i.complete()):i.error(new kr({error:F,headers:b,status:I,statusText:B,url:pe||void 0}))}),d=this.maybePropagateTrace(b=>{let{url:I}=u(),B=new kr({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 kr({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 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 C("",{factory:()=>[]}),Sg=new C(""),Tg=new C("",{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=ct(i).pipe(Jr(c=>this.handler.handle(c)));if(n instanceof Or||o.observe==="events")return s;let a=s.pipe(he(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 N(2806,!1);return c.body}));case"blob":return a.pipe(L(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new N(2807,!1);return c.body}));case"text":return a.pipe(L(c=>{if(c.body!==null&&typeof c.body!="string")throw new N(2808,!1);return c.body}));default:return a.pipe(L(c=>c.body))}case"response":return a;default:throw new N(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 C("",{factory:()=>!0}),rC="XSRF-TOKEN",oC=new C("",{factory:()=>rC}),iC="X-XSRF-TOKEN",sC=new C("",{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 et(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=ht({kind:0},{equal:o}):i=ht({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 N(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 N(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)=>w(y({},t(...r)),{type:e}));switch(t?t._as:"empty"){case"empty":return Fl(e,()=>({type:e}));case"props":return Fl(e,r=>w(y({},r),{type:e}));default:throw new Error("Unexpected config.")}}function Te(){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)=>w(y({},r),{[hC(o)]:$l(gC(t,o),n[o])}),{})}function ye(){return Te()}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",kt=(()=>{class e extends jt{constructor(){super({type:Jo})}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 ve=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)}};ve.EMPTY=(()=>{let e=new ve;return e.closed=!0,e})();var za=ve.EMPTY;function fi(e){return e instanceof ve||e&&"closed"in e&&P(e.remove)&&P(e.add)&&P(e.unsubscribe)}function yd(e){P(e)?e():e.unsubscribe()}var st={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}=st;if(t)t(e);else throw e})}function Lt(){}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(st.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){st.useDeprecatedSynchronousErrorHandling&&wn&&(wn.errorThrown=!0,wn.error=e)}var Cn=class extends ve{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 at(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)}}},at=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&&st.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){st.useDeprecatedSynchronousErrorHandling?bd(e):pi(e)}function ey(e){throw e}function qa(e,t){let{onStoppedNotification:n}=st;n&&rr.setTimeout(()=>n(e,t))}var ty={closed:!0,next:Lt,error:ey,complete:Lt};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 at(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 at({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??st.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 Ee=(()=>{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 ve(()=>{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 Ee{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 jt=class extends Ee{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 Ee{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 ve{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(y){return new Promise(function(w,_){i.push([p,y,w,_])>1||c(p,y)})},h&&(o[p]=h(o[p])))}function c(p,h){try{u(r[p](h))}catch(y){f(i[0][3],y)}}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 J(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 Ae(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 Bt(e,t=0){return R((n,r)=>{n.subscribe(O(r,o=>Ae(r,e,()=>r.next(o),t),()=>Ae(r,e,()=>r.complete(),t),o=>Ae(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 J(e).pipe(Ni(t),Bt(t))}function Od(e,t){return J(e).pipe(Ni(t),Bt(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 Ae(n,t,()=>{r=e[Si](),Ae(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=>{Ae(n,t,()=>{let r=e[Symbol.asyncIterator]();Ae(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):J(e)}function ct(...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"?ct(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 Vt(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new at({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=Ae(c,i,()=>{try{u.unsubscribe(),J(o({meta:s,lastValue:d,seen:f})).subscribe(c)}catch(y){c.error(y)}},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 Hd(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 Ud(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}=Hd(e);if(r.length===0)return _n([],t);let i=new j(by(r,t,o?s=>Ud(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?Ae(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=y=>u<r?h(y):c.push(y),h=y=>{i&&t.next(y),u++;let w=!1;J(n(y,l++)).subscribe(O(t,_=>{o?.(_),i?p(_):t.next(_)},()=>{w=!0},void 0,()=>{if(w)try{for(u--;c.length&&u<r;){let _=c.shift();s?Ae(t,s,()=>h(_)):h(_)}f()}catch(_){t.error(_)}}))};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))(J(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?J(r[0]):Wd(n)(_n(r,t)):se}function he(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=J(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,Lt))})}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)=>J(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()}),J(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(y=>y.error(h)),l=0,d=!1,f=new Wr(i,h=>{try{let y=e(h),w=a.get(y);if(!w){a.set(y,w=r?r():new Ee);let _=p(y,w);if(i.next(_),n){let B=O(w,()=>{w.complete(),B?.unsubscribe()},void 0,void 0,()=>a.delete(y));f.add(J(n(_)).subscribe(B))}}w.next(s?s(h):h)}catch(y){u(y)}},()=>c(h=>h.complete()),u,()=>a.clear(),()=>(d=!0,l===0));o.subscribe(f);function p(h,y){let w=new j(_=>{l++;let B=y.subscribe(_);return()=>{B.unsubscribe(),--l===0&&d&&f.unsubscribe()}});return w.key=h,w}})}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 Ee,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 y=s;p(),y?.unsubscribe()};return R((y,w)=>{u++,!d&&!l&&f();let _=c=c??t();w.add(()=>{u--,u===0&&!d&&!l&&(a=oc(h,o))}),_.subscribe(w),!s&&u>0&&(s=new at({next:B=>_.next(B),error:B=>{d=!0,f(),a=oc(p,n,B),_.error(B)},complete:()=>{l=!0,f(),a=oc(p,r),_.complete()}}),J(y).subscribe(s))})(i)}}function oc(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new at({next:()=>{r.unsubscribe(),e()}});return J(t(...n)).subscribe(r)}function sc(e){return he((t,n)=>e<=n)}function ge(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++;J(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)=>{J(e).subscribe(O(n,()=>n.complete(),Lt)),!n.closed&&t.subscribe(n)})}function ut(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 Ke(...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++)J(e[c]).subscribe(O(r,u=>{i[c]=u,!a&&!s[c]&&(s[c]=!0,(a=s.every(Ge))&&(s=null))},Lt));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",N=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 te(e){for(let t in e)if(e[t]===te)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=te({__forward_ref__:te});function Hi(e){return e.__forward_ref__=Hi,e}function ze(e){return Cc(e)?e():e}function Cc(e){return typeof e=="function"&&e.hasOwnProperty(Iy)&&e.__forward_ref__===Hi}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 Ui(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=te({\u0275prov:te}),Fi=te({\u0275inj:te}),I=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=te({\u0275cmp:te}),Sc=te({\u0275dir:te}),Tc=te({\u0275pipe:te});var to=te({\u0275fac:te}),Rn=te({__NG_ELEMENT_ID__:te}),Jd=te({__NG_ENV_ID__:te});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 N(-919,!1)}function so(e){return typeof e=="string"?e:e==null?"":String(e)}var tf=te({ngErrorCode:te}),Ty=te({ngErrorMessage:te}),My=te({ngTokenPath:te});function Nc(e,t){return nf("",-200,t)}function Gi(e,t){throw new N(-201,!1)}function nf(e,t,n){let r=new N(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=Ui(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 N(-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 b(e,t=0){return(rf()||Ay)(ze(e),t)}function g(e,t){return b(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=ze(e[n]);if(Array.isArray(r)){if(r.length===0)throw new N(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(b(o,i))}else t.push(b(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={},Xe=[],nn=new I(""),Oc=new I("",-1),kc=new I(""),no=class{get(t,n=Mn){if(n===Mn){let o=nf("",-201);throw o.name="\u0275NotFound",o}return n}};function et(e){return{\u0275providers:e}}function mr(e){return et([{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=ze(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:Xe},o),t({provide:kc,useValue:o,multi:!0},o),t({provide:nn,useValue:()=>b(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=te({provide:String,useValue:te});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 I(""),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,Xe,{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=Hy(t)&&Ui(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 N(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,Xe,{self:!0});for(let s of i)s()}finally{Dt(n),Pe(r),M(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=ze(t);let n=Li(t)?t:ze(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=ze(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=Ui(e),n=t!==null?t.factory:Xt(e);if(n!==null)return n;if(e instanceof I)throw new N(-204,!1);if(e instanceof Function)return jy(e);throw new N(-204,!1)}function jy(e){if(e.length>0)throw new N(-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=ze(e);return Xt(o)||hc(o)}else if(ff(e))r=()=>ze(e.useValue);else if(Ly(e))r=()=>e.useFactory(...pc(e.deps||[]));else if(Py(e))r=(o,i)=>b(ze(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=ze(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 N(-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 Hy(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 lt=0,A=1,k=2,De=3,tt=4,nt=5,vr=6,Er=7,me=8,zt=9,wt=10,ae=11,Dr=12,Lc=13,Fn=14,We=15,rn=16,Pn=17,Ct=18,Gt=19,jc=20,Ht=21,Zi=22,en=23,qe=24,Ln=25,on=26,be=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 dt(e){return Array.isArray(e)&&e[gf]===!0}function Vc(e){return(e.flags&4)!==0}function Wt(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 rt(e){for(;Array.isArray(e);)e=e[lt];return e}function $c(e,t){return rt(t[e])}function ft(e,t){return rt(t[e.index])}function Ji(e,t){return e.data[t]}function vf(e,t){return e[t]}function Hc(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function pt(e,t){let n=t[e];return an(n)?n:n[lt]}function Ef(e){return(e[k]&4)===4}function Qi(e){return(e[k]&128)===128}function Df(e){return dt(e[De])}function It(e,t){return t==null?null:e[t]}function Uc(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 N(911,!1);e[Ht]===null&&(e[Ht]=[]),e[Ht].push(t)}function wf(e,t){if(e[Ht]===null)return;let n=e[Ht].indexOf(t);n!==-1&&e[Ht].splice(n,1)}function tn(e){let t=e[De];return dt(t)?t[De]: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 Oe(){return V.lFrame.tView}function K(e){return V.lFrame.contextLView=e,e[me]}function X(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 Hn(){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 Uy(e){let t=e[A];return t.type===2?t.declTNode:t.type===1?e[nt]:null}function nu(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Uy(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[A];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))[me]}function qt(){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=Hf(e,t,n,r);return o.resolveInjectorInitializers(),o}function Hf(e,t=null,n=null,r,o=new Set){let i=[n||Xe,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:()=>b(Oc)});static __NG_ELEMENT_ID__=-1},je=new I(""),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,Uf=new I(""),un=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new jt(!1);debugTaskTracker=g(Uf,{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 Ee{__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 ve&&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)}})}}},$t=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 $t(!1);onMicrotaskEmpty=new $t(!1);onStable=new $t(!1);onError=new $t(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=iu}=t;if(typeof Zone>"u")throw new N(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 N(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new N(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 $t;onMicrotaskEmpty=new $t;onStable=new $t;onError=new $t;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 Re=class{_console=console;handleError(t){this._console.error("ERROR",t)}},_t=new I("",{factory:()=>{let e=g(re),t=g(Le),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Re),n.handleError(r))})}}}),Wf={provide:nn,useValue:()=>{let e=g(Re,{optional:!0})},multi:!0};function ht(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 I("",{factory:()=>!0});var ss=new I(""),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=C(E({},Ha),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=ro(!1);try{Ua(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=C(E({},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(E({},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 Q=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){Q(z.LifecycleHookStart,e,t);let n=M(null);try{t.call(e)}finally{M(n),Q(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[A];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[A].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[zt],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][nt]:null;for((a===-1||r&4)&&(c=a===-1?qu(e,t):t[a+8],c===Sr||!Xf(r,!1)?a=-1:(s=t[A],a=ms(c),t=ys(c,t)));a!==-1;){let l=t[A];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[A].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[A],a=s.data[e+8],c=r==null?Wt(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 Un=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 Un(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(ze(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[A],n=t.type;return n===2?t.declTNode:n===1?e[nt]:null}function Pv(){return Nr(Ze(),$())}function Nr(e,t){return new Ar(ft(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 Ee}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[Gt],e)}function Eu(e){jp.delete(e[Gt])}var ep="__ngContext__";function Tr(e,t){an(t)?(e[ep]=t[Gt],$v(t)):e[ep]=t}function Bp(e){return $p(e[Dr])}function Vp(e){return $p(e[tt])}function $p(e){for(;e!==null&&!dt(e);)e=e[tt];return e}var Hv;function Yu(e){Hv=e}var Ns=new I("",{factory:()=>Uv}),Uv="ng";var As=new I(""),Mo=new I("",{providedIn:"platform",factory:()=>"unknown"});var xo=new I("",{factory:()=>g(je).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Hp="r";var Up="di";var zp=!1,Gp=new I("",{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 mt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(mt||{});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&&!gt(r)&&!gt(c))return!1;if(s&>(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(gt(r))return!1;s=!0}}else if(r&8){if(o===null||!Xv(e,o,c,n)){if(gt(r))return!1;s=!0}}else{let u=t[++a],l=nE(c,o,Qu(e),n);if(l===-1){if(gt(r))return!1;s=!0;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(gt(r))return!1;s=!0}}}}return gt(r)||s}function gt(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!==""&&!gt(s)&&(t+=rp(i,o),o=""),r=s,i=i||!gt(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(!gt(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var ot={};function Ku(e,t,n,r,o,i,s,a,c,u,l){let d=be+r,f=d+o,p=uE(d,f),h=typeof u=="function"?u():u;return p[A]={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:ot);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[lt]=o,d[k]=r|4|128|8|64|1024,(u!==null||e&&e[k]&2048)&&(d[k]|=2048),Uc(d),d[De]=d[Fn]=e,d[me]=n,d[wt]=s||e&&e[wt],d[ae]=a||e&&e[ae],d[zt]=c||e&&e[zt]||null,d[nt]=i,d[Gt]=Vv(),d[vr]=l,d[jc]=u,d[We]=t.type==2?e[We]:d,d}function dE(e,t,n){let r=ft(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][tt]=t:e[Dr]=t,e[Lc]=t,t}function T(e=1){rh(Oe(),$(),qt()+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 qR=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 I(""),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(Re,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){g(xt,{optional:!0})}execute(){let n=this.sequences.size>0;n&&Q(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&&Q(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 I("",{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;dt(o)?c=o:an(o)&&(u=!0,o=o[lt]);let l=rt(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[lt]=null,t[nt]=null}function DE(e,t,n,r,o,i){r[lt]=o,r[nt]=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[A],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[tt]&&t!==e;)an(t)&&fu(t[A],t),t=t[De];t===null&&(t=e),an(t)&&fu(t[A],t),n=t&&t[tt]}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[A].type===1&&t[ae].destroy();let r=t[rn];if(r!==null&&dt(t[De])){r!==t[De]&&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[Gt]),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[Gt]),r(!1)},o)}function wE(e,t){let n=e[on]?.running;if(n){n.then(()=>{e[on].running=void 0,zn.delete(e[Gt]),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[Ht];if(o!==null){t[Ht]=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];Q(z.LifecycleHookStart,a,c);try{c.call(a)}finally{Q(z.LifecycleHookEnd,a,c)}}else{Q(z.LifecycleHookStart,o,i);try{i.call(o)}finally{Q(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[lt];if(Wt(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===mt.None||o===mt.Emulated)return null}return ft(r,n)}function TE(e,t,n){return xE(e,t,n)}function ME(e,t,n){return e.type&40?ft(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[nt],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 ft(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 dt(o)?Iu(-1,o):rt(o)}}else{if(n&128)return mo(e,t.next);if(n&32)return tl(t,e)()||rt(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][nt],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[A].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[zt];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&Tr(rt(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[nt].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];_r(t,e,n[zt],o,l,r,i,n)}else{let u=c,l=s[De];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=rt(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[A],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=qt(),s=r&2;try{cn(-1),s&&t.length>be&&rh(e,t,be,!1);let a=s?z.TemplateUpdateStart:z.TemplateCreateStart;Q(a,o,n),n(r,o)}finally{cn(i);let a=s?z.TemplateUpdateEnd:z.TemplateCreateEnd;Q(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=ft){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===mt.ShadowDom||n===mt.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);if(s.tagName.toLowerCase()==="script")throw new N(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[A];if(cl(e,s,t,n,r)){Wt(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=ft(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=pt(t,e);n[k]&16||(n[k]|=64)}function BE(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Wt(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=pt(n.index,t);u[me]=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 HE(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 UE(e,t,n,r,o,i){let s=ft(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=be+n,s=t[A],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[zt];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=pt(t,e),r=n[A];ZE(r,n);let o=n[lt];o!==null&&n[vr]===null&&(n[vr]=Wp(o,n[zt])),Q(z.ComponentStart);try{ul(r,n,n[me])}finally{Q(z.ComponentEnd,n[me])}}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(rt(i)),dt(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[A],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[A].firstChild;o!==null&&Do(r[A],r,o,t)}e[sn]!==e[lt]&&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(E({},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(E({},vn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=tn(e.lView);for(;t&&!vh(t[A]);)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 N(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{Uc(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){Q(z.ComponentStart);let r=pt(t,e);try{wh(r,n)}finally{Q(z.ComponentEnd,r[me])}}function wh(e,t){Qi(e)&&_u(e,t)}function _u(e,t){let r=e[A],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[me]);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];Q(z.HostBindingsUpdateStart,c);try{a(2,c)}finally{Q(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[A];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[nt],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[A],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][tt]=r[tt]);let i=ao(e,ce+t);EE(r[A],r);let s=i[Ct];s!==null&&s.detachView(i[A]),r[De]=null,r[tt]=null,r[k]&=-129}return r}function cD(e,t,n,r){let o=ce+r,i=n.length;r>0&&(n[o-1][tt]=t),r<i-ce?(t[tt]=n[o],Rc(n,ce+r,t)):(n.push(t),t[tt]=null),t[De]=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[De];if(an(r))e[k]|=2;else{let o=r[De][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[A];return Do(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[me]}set context(t){this._lView[me]=t}get destroyed(){return Vn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[De];if(dt(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[A],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 N(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[A],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new N(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[De][ae],o=[];for(let i of t)i.data[Up]!==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[Hp];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 N(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 b(e,t);let r=Ze();return kp(r,n,ze(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 N(-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[y,w]=s.get(p);n.directiveToIndex.set(p.type,[d,y+n.directiveStart,w+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,ot),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[A],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===ot)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=Wt(e)?pt(e.index,t):t;ll(s,5);let a=t[me],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 Q(z.OutputStart,t,n),n(r)!==!1}catch(i){return WE(e,i),!1}finally{Q(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=ft(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?y=>r(rt(y[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[A],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 N(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){Q(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[be]=l,ts(f);let p=null;try{let h=Rh(be,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=pt(h.index,f),f[me]=p[me],ul(c,f,null)}catch(h){throw p!==null&&Eu(p),Eu(f),h}finally{Q(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[A],be),this.location=Nr(this._tNode,n),this.instance=pt(this._tNode.index,n)[me],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[A],o,t,n);this.previousInputValues.set(t,n);let s=pt(r.index,o);ll(s,1)}get injector(){return new Un(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 Un(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[A].data[r+8];return new Un(o,n)}else return new Un(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 w=n||{};u=w.index,r=w.injector,o=w.projectableNodes,i=w.environmentInjector||w.ngModuleRef,s=w.directives,a=w.bindings}let l=c?t:new wo(On(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let _=(c?d:this.parentInjector).get(Le,null);_&&(i=_)}let f=On(l.componentType??{}),p=Su(this._lContainer,f?.id??null),h=p?.firstChild??null,y=l.create(d,o,h,i,s,a);return this.insertImpl(y.hostView,u,Eo(this._hostTNode,p)),y}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[De],u=new e(c,c[nt],c[De]);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[A],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 dt(r)?n=r:(n=Ih(r,t,null,e),t[e.index]=n,el(t,n)),HD(n,t,e,r),new Au(n,e,t)}function $D(e,t){let n=e[ae],r=n.createComment(""),o=ft(t,e),i=n.parentNode(o);return bs(n,i,r,n.nextSibling(o),!1),r}var HD=GD,UD=()=>!1;function zD(e,t,n){return UD(e,t,n)}function GD(e,t,n,r){if(e[sn])return;let o;n.type&8?o=rt(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[A],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[De]&&Lu(f[A],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[A],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=Oe();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[A],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(b(Le))})}return e})();function Se(e){return So(()=>{let t=sb(e),n=C(E({},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||mt.Emulated,styles:e.styles||Xe,_: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||Xe,declarations:e.declarations||Xe,imports:e.imports||Xe,exports:e.exports||Xe,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||Xe,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+be]=u,el(t,u),zD(u,e,t)}function _s(e,t,n,r,o,i,s,a,c,u,l){let d=n+be,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 I("");function Ao(e){return!!e&&typeof e.then=="function"}function $s(e){return!!e&&typeof e.subscribe=="function"}var $h=new I("");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})(),Hh=new I("");function Uh(){Ba(()=>{let e="";throw new N(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 Ee;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(()=>{Q(z.BootstrapComponentStart);let s=n instanceof Bs;if(!this._injector.get(gl).done){let h="";throw new N(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),Q(z.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Q(z.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Os.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw Q(z.ChangeDetectionEnd),new N(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(),Q(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;){Q(z.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{Q(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(Hh,[]).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 N(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=Hn();if(Mt(o,i,t)){let s=Oe(),a=rs();UE(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],y=hu(a,p,u,h,n);if(y!==0){y<0&&e.updateValue(a,h),a--,u--;continue}let w=n(s,l),_=n(a,p),B=n(s,d);if(Object.is(B,_)){let pe=n(u,h);Object.is(pe,w)?(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(w,e.detach(s)),a--;else{let pe=e.create(s,t[s]);e.attach(s,pe),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 y=n(s,d);o.set(y,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 le(e,t,n,r,o,i,s,a){dn("NgControlFlow");let c=$(),u=Oe(),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=Oe(),l=It(u.consts,i);return _s(c,u,e,t,n,r,o,l,512,s,a),Oo}function de(e,t){dn("NgControlFlow");let n=$(),r=Hn(),o=n[r]!==ot?n[r]:-1,i=o!==-1?Ts(n,be+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=be+e,u=Ts(n,c),l=Uu(n[A],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[me]=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 yt(e,t,n,r,o,i,s,a,c,u,l,d,f){dn("NgControlFlow");let p=$(),h=Oe(),y=c!==void 0,w=$(),_=a?s.bind(w[We][me]):s,B=new $u(y,_);w[be+e]=B,_s(p,h,e+1,t,n,r,o,It(h.consts,i),256),y&&_s(p,h,e+2,c,u,l,d,It(h.consts,f),512)}var Hu=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)[me].$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[A],t)}updateValue(t,n){this.getLView(t)[me].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[me].$index=t}getLView(t){return yb(this.lContainer,t)}};function vt(e){let t=M(null),n=qt();try{let r=$(),o=r[A],i=r[n],s=n+1,a=Ts(r,s);if(i.liveCollection===void 0){let u=Uu(o,s);i.liveCollection=new Hu(a,r,u)}else i.liveCollection.reset();let c=i.liveCollection;if(pb(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=Hn(),l=c.length===0;if(Mt(r,u,l)){let d=n+2,f=Ts(r,d);if(l){let p=Uu(o,d),h=Mh(f,p,r),y=Ps(r,p,void 0,{dehydratedView:h});Ls(f,y,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[zt];yE(i,o),zn.delete(r[Gt]),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 Uu(e,t){return Ji(e,t)}function Hs(e,t,n){let r=$(),o=Hn();if(Mt(r,o,t)){let i=Oe(),s=rs();LE(s,r,e,t,r[ae],n)}return Hs}function vp(e,t,n,r,o){cl(t,e,n,o?"class":"style",r)}function _e(e,t,n,r){let o=$(),i=o[A],s=e+be,a=i.firstCreatePass?Rh(s,o,2,t,HE,Sf(),n,r):i.data[s];if(Wt(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),_e))}}return Ep(e,t,o,a,r),_e}function Ep(e,t,n,r,o){if(ph(r,n,e,t,Gh),Yi(r)){let i=n[A];dh(i,n,r),Zp(i,r,n)}o!=null&&al(n,r)}function Ve(){let e=Oe(),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),Ve}function Nt(e,t,n,r){return _e(e,t,n,r),Ve(),Nt}function m(e,t,n,r){let o=$(),i=o[A],s=e+be,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),m}function v(){let e=Ze(),t=hh(e);return Yc(t)&&Jc(),Zc(),v}function At(e,t,n,r){return m(e,t,n,r),v(),At}var Gh=(e,t,n,r,o)=>(is(!0),Jp(t[ae],r,ou()));function Je(){return $()}function ie(e,t,n){let r=$(),o=Hn();if(Mt(r,o,t)){let i=Oe(),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 Rt(e,t,n){let r=$(),o=Oe(),i=Ze();return Eb(o,r,r[ae],i,e,t,n),Rt}function G(e,t,n){let r=$(),o=Oe(),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 H(e=1){return Vf(e)}function Rr(e,t,n){return KD(e,t,n),Rr}function Fo(e){let t=$(),n=Oe(),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 Us(e,t,n){return qh(e,t,n,!1),Us}function Lo(e,t){return qh(e,t,null,!0),Lo}function qh(e,t,n,r){let o=$(),i=Oe(),s=eu(2);if(i.firstUpdatePass&&Tb(i,e,s,r),t!==ot&&Mt(o,s,t)){let a=i.data[qt()];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[qt()],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(qt(),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===ot&&(f=d?Xe: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 D(e,t=""){let n=$(),r=Oe(),o=e+be,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,Hn(),n)?t+so(n)+r:ot}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:ot}function we(e){return Ot("",e),we}function Ot(e,t,n){let r=$(),o=Zh(r,e,t,n);return o!==ot&&Yh(r,qt(),o),Ot}function zs(e,t,n,r,o){let i=$(),s=Pb(i,e,t,n,r,o);return s!==ot&&Yh(i,qt(),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===ot?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=Oe(),r,o=e+be;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),Hc(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+be,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[A].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 ve;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 I("",{factory:()=>g(Gs,{optional:!0,skipSelf:!0})||$b()});var Ws=class{destroyed=!1;listeners=null;errorHandler=g(Re,{optional:!0});destroyRef=g(Be);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new N(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=C(E({},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 N(-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 I("",{factory:()=>!1});function lw({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new re(C(E({},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 et([{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 ve;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 I(""),fw=new I("");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,Uh(),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 $j=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(Wt(e)&&!n){let r=pt(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;Q(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{Q(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 N(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,$e=(()=>{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 Ho(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 Uo=class{_doc;constructor(t){this._doc=t}manager},Ys=(()=>{class e extends Uo{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)(b(je))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),Ks=new I(""),_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 N(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(b(Ks),b(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)(b(je),b(Ns),b(xo,8),b(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 I("",{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 mt.Emulated:i=new Qs(c,u,r,this.appId,l,s,a,d);break;case mt.ShadowDom:return new Js(c,n,r,s,a,this.nonce,d,u);case mt.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)(b(_l),b(Sl),b(Ns),b(Nw),b(je),b(re),b(xo),b(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 N(-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 N(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 Ho(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 Uo{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)(b(je))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();function xl(e,t,n){return Qe(this,null,function*(){let r=E({rootComponent:e},jw(t,n));return sg(r)})}function jw(e,t){return{platformRef:t?.platformRef,appProviders:[...Uw,...e?.providers??[]],platformProviders:Hw}}function Bw(){Xs.makeCurrent()}function Vw(){return new Re}function $w(){return Yu(document),document}var Hw=[{provide:Mo,useValue:ug},{provide:As,useValue:Bw,multi:!0},{provide:je,useFactory:$w}];var Uw=[{provide:co,useValue:"root"},{provide:Re,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 N(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 N(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,y=t.timeout??this.timeout,w=t.body!==void 0?t.body:this.body,_=t.withCredentials??this.withCredentials,B=t.reportProgress??this.reportProgress,pe=t.headers||this.headers,F=t.params||this.params,ne=t.context??this.context;return t.setHeaders!==void 0&&(pe=Object.keys(t.setHeaders).reduce((ee,xe)=>ee.set(xe,t.setHeaders[xe]),pe)),t.setParams&&(F=Object.keys(t.setParams).reduce((ee,xe)=>ee.set(xe,t.setParams[xe]),F)),new e(n,r,w,{params:F,headers:pe,context:ne,reportProgress:B,responseType:o,withCredentials:_,transferCache:h,keepalive:i,cache:a,priority:s,timeout:y,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 I("");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 N(-2800,!1);let r=this.xhrFactory;return ct(null).pipe(ge(()=>new j(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((w,_)=>s.setRequestHeader(w,_.join(","))),n.headers.has(wg)||s.setRequestHeader(wg,Yw),!n.headers.has(bg)){let w=n.detectContentTypeHeader();w!==null&&s.setRequestHeader(bg,w)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let w=n.responseType.toLowerCase();s.responseType=w!=="json"?w:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let w=s.statusText||"OK",_=new gn(s.getAllResponseHeaders()),B=s.responseURL||n.url;return c=new ra({headers:_,status:s.status,statusText:w,url:B}),c},l=this.maybePropagateTrace(()=>{let{headers:w,status:_,statusText:B,url:pe}=u(),F=null;_!==Qw&&(F=typeof s.response>"u"?s.responseText:s.response),_===0&&(_=F?Jw:0);let ne=_>=200&&_<300;if(n.responseType==="json"&&typeof F=="string"){let ee=F;F=F.replace(Xw,"");try{F=F!==""?JSON.parse(F):null}catch(xe){F=ee,ne&&(ne=!1,F={error:xe,text:F})}}ne?(i.next(new qo({body:F,headers:w,status:_,statusText:B,url:pe||void 0})),i.complete()):i.error(new kr({error:F,headers:w,status:_,statusText:B,url:pe||void 0}))}),d=this.maybePropagateTrace(w=>{let{url:_}=u(),B=new kr({error:w,status:s.status||0,statusText:s.statusText||"Unknown Error",url:_||void 0});i.error(B)}),f=d;n.timeout&&(f=this.maybePropagateTrace(w=>{let{url:_}=u(),B=new kr({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:_||void 0});i.error(B)}));let p=!1,h=this.maybePropagateTrace(w=>{p||(i.next(u()),p=!0);let _={type:Jn.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(_.total=w.total),n.responseType==="text"&&s.responseText&&(_.partialText=s.responseText),i.next(_)}),y=this.maybePropagateTrace(w=>{let _={type:Jn.UploadProgress,loaded:w.loaded};w.lengthComputable&&(_.total=w.total),i.next(_)});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",y)),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",y)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(b(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 I("",{factory:()=>[]}),Sg=new I(""),Tg=new I("",{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=b(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)(b(Rl),b(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=b(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=ct(i).pipe(Jr(c=>this.handler.handle(c)));if(n instanceof Or||o.observe==="events")return s;let a=s.pipe(he(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 N(2806,!1);return c.body}));case"blob":return a.pipe(L(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new N(2807,!1);return c.body}));case"text":return a.pipe(L(c=>{if(c.body!==null&&typeof c.body!="string")throw new N(2808,!1);return c.body}));default:return a.pipe(L(c=>c.body))}case"response":return a;default:throw new N(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)(b(Ol))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var nC=new I("",{factory:()=>!0}),rC="XSRF-TOKEN",oC=new I("",{factory:()=>rC}),iC="X-XSRF-TOKEN",sC=new I("",{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=Ho(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=b(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 et(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=ht({kind:0},{equal:o}):i=ht({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 N(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 N(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)=>C(E({},t(...r)),{type:e}));switch(t?t._as:"empty"){case"empty":return Fl(e,()=>({type:e}));case"props":return Fl(e,r=>C(E({},r),{type:e}));default:throw new Error("Unexpected config.")}}function Te(){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)=>C(E({},r),{[hC(o)]:$l(gC(t,o),n[o])}),{})}function ye(){return Te()}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",kt=(()=>{class e extends jt{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})(),mC=[kt],Ug=new C("@ngrx/store Internal Root Guard"),Ng=new C("@ngrx/store Internal Initial State"),Qo=new C("@ngrx/store Initial State"),Hg=new C("@ngrx/store Reducer Factory"),Ag=new C("@ngrx/store Internal Reducer Factory Provider"),zg=new C("@ngrx/store Initial Reducers"),Pl=new C("@ngrx/store Internal Initial Reducers");var Rg=new C("@ngrx/store Internal Store Reducers");var yC=new C("@ngrx/store Internal Store Features");var vC=new C("@ngrx/store Feature Reducers"),Og=new C("@ngrx/store User Provided Meta Reducers"),aa=new C("@ngrx/store Meta Reducers"),kg=new C("@ngrx/store Internal Resolved Meta Reducers"),Fg=new C("@ngrx/store User Runtime Checks Config"),Pg=new C("@ngrx/store Internal User Runtime Checks Config"),Zo=new C("@ngrx/store Internal Runtime Checks"),Ul=new C("@ngrx/store Check if Action types are unique"),Yo=new C("@ngrx/store Root Store Provider"),ca=new C("@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 kt{},la="@ngrx/store/update-reducers",ua=(()=>{class e extends jt{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:kt}],Kn=(()=>{class e extends Ee{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 jt{static{this.INIT=Jo}constructor(n,r,o,i){super(i);let a=n.pipe(Bt(Yr)).pipe(Ke(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(kt),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(kt),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)=>w(y({},i),{[s]:o[a]}),{});return[...t,r]}function HC(e){return e instanceof C?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 C?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(kt),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 et([...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 w(y({},o),{reducers:a,initialState:Jg(o.initialState)})});n.addFeatures(r)}var HV=[{provide:ca,useFactory:sI},mr(()=>g(ca))];function Y(...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":ye(),"Load Settings Success":Te(),"Update Setting":Te(),"Save Settings":ye(),"Toggle Settings Panel":ye(),"Remove Url From History":Te()}});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=Se({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),KV=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 Pt=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=Je();v(0,"div",30)(1,"button",31),G("mousedown",function(){let o=K(n).$implicit,i=U(3);return X(i.selectUrl(o))}),_(2),E(),v(3,"button",32),G("mousedown",function(o){let i=K(n).$implicit,s=U(3);return X(s.deleteUrl(i,o))}),_(4,"\u2715"),E()()}if(e&2){let n=t.$implicit;T(2),we(n)}}function lI(e,t){if(e&1&&(v(0,"div",9),yt(1,uI,5,1,"div",30,ml),E()),e&2){let n=U();T(),vt(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(),we(n.name)}}function fI(e,t){if(e&1){let n=Je();v(0,"label",4),At(1,"span",5),v(2,"input",33),G("change",function(o){K(n);let i=U(2);return X(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=Je();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){K(n);let i=U();return X(i.updateSetting("targetUrl",o))})("focus",function(){K(n);let o=U();return X(o.urlDropdownOpen.set(!0))})("blur",function(o){K(n);let i=U();return X(i.onUrlBlur(o))}),E(),v(7,"span",8),G("mousedown",function(){K(n);let o=U();return X(o.urlDropdownOpen.set(!o.urlDropdownOpen()))}),E(),le(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){K(n);let i=U();return X(i.selectBrowser(o))}),yt(13,dI,2,2,"option",11,aI),v(15,"option",12),_(16,"Custom path..."),E()()(),le(17,fI,3,1,"label",4),v(18,"label",4)(19,"span",5),_(20,"Profile"),E(),v(21,"select",13),G("change",function(o){K(n);let i=U();return X(i.selectProfile(o))}),v(22,"option",14),_(23,"Temp (isolated)"),E(),yt(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){K(n);let i=U();return X(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){K(n);let i=U();return X(i.updateSetting("viewportWidth",o))}),E(),v(45,"span",27),_(46,"\xD7"),E(),v(47,"input",26),G("change",function(o){K(n);let i=U();return X(i.updateSetting("viewportHeight",o))}),E()()(),v(48,"label",28)(49,"input",29),G("change",function(o){K(n);let i=U();return X(i.updateSetting("devtools",o))}),E(),_(50," DevTools "),E(),v(51,"label",28)(52,"input",29),G("change",function(o){K(n);let i=U();return X(i.updateSetting("headed",o))}),E(),_(53," Headed "),E(),v(54,"label",28)(55,"input",29),G("change",function(o){K(n);let i=U();return X(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),de(o.urlDropdownOpen()&&r.targetUrlHistory.length>0?8:-1),T(4),ie("value",r.browserPath||((n=o.detectedBrowsers()[0])==null?null:n.executablePath)),T(),vt(o.detectedBrowsers()),T(4),de(o.showCustomBrowserInput()?17:-1),T(5),ie("selected",!r.userDataDir),T(2),vt(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(Pt);destroyRef=g(Be);isOpen=ng(!1);settings$=this.store.select(fa);detectedBrowsers=ht([]);availableProfiles=ht([]);showCustomBrowserInput=ht(!1);urlDropdownOpen=ht(!1);detectedBrowserPath="";detectedUserDataDir="";ngOnInit(){this.api.getDetectedBrowsers().pipe(he(t=>t.length>0),ut(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),he(([t,n])=>t!==""&&n.length>0),ge(([t,n])=>{let r=n.find(o=>o.executablePath===t);return r?this.api.getProfiles(r.userDataDir):ct([])}),ut(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=Se({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),le(2,hI,57,10,"aside",2),W(3,"async"),E()()),n&2){let o;Ye("data-open",r.isOpen()||null),T(2),de((o=q(3,2,r.settings$))?2:-1,o)}},dependencies:[ke,$e],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)),g$=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.breakpointsByJourney[e.currentJourney??""]??[]),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 Me=jr({source:"Journeys",events:{"Load Journeys":ye(),"Load Journeys Success":Te(),"Toggle Journey":Te(),"Select All":ye(),"Deselect All":ye()}});var gI=(e,t)=>t.id;function mI(e,t){e&1&&At(0,"span",12)}function yI(e,t){e&1&&
|
|
10
|
-
`],encapsulation:2})};var x=jr({source:"Execution",events:{Play:ye(),Pause:ye(),Resume:ye(),Step:ye(),Stop:ye(),"Update Config":Te(),"Action Received":Te(),"Test Started":Te(),"Test Ended":Te(),"Log Received":Te(),"Error Received":Te(),"Paused By Runner":ye(),"Resumed By Runner":ye(),"Connection Status Changed":Te(),"Run Ended":ye(),"Toggle Breakpoint":Te(),"Clear All Breakpoints":ye(),"Clear Actions":ye(),"Clear Console":ye()}});function DI(e,t){if(e&1){let n=Je();
|
|
11
|
-
`],encapsulation:2})};var bI=["scrollContainer"],wI=(e,t)=>t.index;function CI(e,t){e&1&&
|
|
12
|
-
`],encapsulation:2})};var xI=["scrollContainer"],NI=(e,t)=>t.timestamp;function AI(e,t){if(e&1&&(
|
|
13
|
-
`],encapsulation:2})};function FI(e,t){if(e&1&&(
|
|
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(x.actionReceived({index:t.index,status:t.status,description:t.description}))],["test-start",t=>this.store.dispatch(x.testStarted({journey:t.journey}))],["test-end",t=>this.store.dispatch(x.testEnded({journey:t.journey,status:t.status,duration:t.duration}))],["run-end",()=>this.store.dispatch(x.runEnded())],["log",t=>this.store.dispatch(x.logReceived({message:t.message,journey:t.journey}))],["error",t=>this.store.dispatch(x.errorReceived({message:t.message,journey:t.journey}))],["ui-control",t=>{t.action==="pause"?this.store.dispatch(x.pausedByRunner()):t.action==="resume"&&this.store.dispatch(x.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(x.connectionStatusChanged({status:"connected"}))},this.ws.onclose=()=>{this.store.dispatch(x.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)(
|
|
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=[kt],Hg=new I("@ngrx/store Internal Root Guard"),Ng=new I("@ngrx/store Internal Initial State"),Qo=new I("@ngrx/store Initial State"),Ug=new I("@ngrx/store Reducer Factory"),Ag=new I("@ngrx/store Internal Reducer Factory Provider"),zg=new I("@ngrx/store Initial Reducers"),Pl=new I("@ngrx/store Internal Initial Reducers");var Rg=new I("@ngrx/store Internal Store Reducers");var yC=new I("@ngrx/store Internal Store Features");var vC=new I("@ngrx/store Feature Reducers"),Og=new I("@ngrx/store User Provided Meta Reducers"),aa=new I("@ngrx/store Meta Reducers"),kg=new I("@ngrx/store Internal Resolved Meta Reducers"),Fg=new I("@ngrx/store User Runtime Checks Config"),Pg=new I("@ngrx/store Internal User Runtime Checks Config"),Zo=new I("@ngrx/store Internal Runtime Checks"),Hl=new I("@ngrx/store Check if Action types are unique"),Yo=new I("@ngrx/store Root Store Provider"),ca=new I("@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 kt{},la="@ngrx/store/update-reducers",ua=(()=>{class e extends jt{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=E(E({},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)(b(Pr),b(Qo),b(zg),b(Ug))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})(),wC=[ua,{provide:Qn,useExisting:ua},{provide:Pr,useExisting:kt}],Kn=(()=>{class e extends Ee{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 jt{static{this.INIT=Jo}constructor(n,r,o,i){super(i);let a=n.pipe(Bt(Yr)).pipe(Ke(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)(b(kt),b(Qn),b(Kn),b(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)(b(Lr),b(kt),b(ua),b(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 Ul="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=HC(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 HC(e){let t=Object.values(e),n=Object.keys(e),r=(...o)=>n.reduce((i,s,a)=>C(E({},i),{[s]:o[a]}),{});return[...t,r]}function UC(e){return e instanceof I?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}". ${Ul}#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. ${Ul}#strictactionwithinngzone`);return e(n,r)}}function YC(e){return Vo()?E({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:Hl,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(", ")}. ${Ul}#strictactiontypeuniqueness`)}function rI(e={},t={}){return[{provide:Hg,useFactory:GC},{provide:Ng,useValue:t.initialState},{provide:Qo,useFactory:Jg,deps:[Ng]},{provide:Pl,useValue:e},{provide:Rg,useExisting:e instanceof I?e:Pl},{provide:zg,deps:[Pl,[new Wu(Rg)]],useFactory:UC},{provide:Og,useValue:t.metaReducers?t.metaReducers:[]},{provide:kg,deps:[aa,Og],useFactory:zC},{provide:Ag,useValue:t.reducerFactory?t.reducerFactory:EC},{provide:Ug,deps:[Ag,kg],useFactory:Wg},mC,wC,CC,_C,SC,XC(t.runtimeChecks),eI()]}function oI(){g(kt),g(Qn),g(Kn),g(Z),g(Hg,{optional:!0}),g(Hl,{optional:!0})}var iI=[{provide:Yo,useFactory:oI},mr(()=>g(Yo))];function Qg(e,t){return et([...rI(e,t),iI])}function sI(){g(Yo);let e=g(yC),t=g(vC),n=g(ua);g(Hl,{optional:!0});let r=e.map((o,i)=>{let a=t.shift()[i];return C(E({},o),{reducers:a,initialState:Jg(o.initialState)})});n.addFeatures(r)}var UV=[{provide:ca,useFactory:sI},mr(()=>g(ca))];function Y(...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 U=jr({source:"Settings",events:{"Load Settings":ye(),"Load Settings Success":Te(),"Update Setting":Te(),"Save Settings":ye(),"Toggle Settings Panel":ye(),"Remove Url From History":Te()}});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(U.updateSetting({key:"theme",value:t}))}applyTheme(t){this.currentTheme=t,document.documentElement.setAttribute("data-theme",t)}static \u0275fac=function(n){return new(n||e)(b(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=Se({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&&(m(0,"header",0)(1,"div",1),At(2,"img",2),m(3,"span",3),D(4,"Glassbox"),v()(),m(5,"div",4)(6,"button",5),G("click",function(){return r.toggleTheme()}),D(7,"\u{1F313}"),v(),m(8,"button",6),G("click",function(){return r.settingsToggled.emit()}),D(9,"\u2699\uFE0F"),v()()())},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),KV=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,windowWidth:e.windowWidth,windowHeight:e.windowHeight,headless:e.headless,devtools:e.devtools,keepBrowserOpen:e.keepBrowserOpen,actionDelay:e.actionDelay,browserPath:e.browserPath||void 0,userDataDir:e.userDataDir||void 0}));var Pt=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)(b(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=Je();m(0,"div",45)(1,"button",46),G("mousedown",function(){let o=K(n).$implicit,i=H(3);return X(i.selectUrl(o))}),D(2),v(),m(3,"button",47),G("mousedown",function(o){let i=K(n).$implicit,s=H(3);return X(s.deleteUrl(i,o))}),D(4,"\u2715"),v()()}if(e&2){let n=t.$implicit;T(2),we(n)}}function lI(e,t){if(e&1&&(m(0,"div",9),yt(1,uI,5,1,"div",45,ml),v()),e&2){let n=H();T(),vt(n.targetUrlHistory)}}function dI(e,t){if(e&1&&(m(0,"option",11),D(1),v()),e&2){let n=t.$implicit;ie("value",n.executablePath),T(),we(n.name)}}function fI(e,t){if(e&1){let n=Je();m(0,"label",4),At(1,"span",5),m(2,"input",48),G("change",function(o){K(n);let i=H(2);return X(i.updateSetting("browserPath",o))}),v()()}if(e&2){let n=H();T(2),ie("value",n.browserPath)}}function pI(e,t){if(e&1&&(m(0,"option",15),D(1),v()),e&2){let n=t.$implicit,r=H();ie("value",n.path)("selected",n.path===r.userDataDir),T(),zs("",n.name," (",n.directory,")")}}function hI(e,t){if(e&1){let n=Je();m(0,"aside",2)(1,"div",3)(2,"label",4)(3,"span",5),D(4,"URL"),v(),m(5,"div",6)(6,"input",7),G("change",function(o){K(n);let i=H();return X(i.updateSetting("targetUrl",o))})("focus",function(){K(n);let o=H();return X(o.urlDropdownOpen.set(!0))})("blur",function(o){K(n);let i=H();return X(i.onUrlBlur(o))}),v(),m(7,"span",8),G("mousedown",function(){K(n);let o=H();return X(o.urlDropdownOpen.set(!o.urlDropdownOpen()))}),v(),le(8,lI,3,0,"div",9),v()(),m(9,"label",4)(10,"span",5),D(11,"Browser"),v(),m(12,"select",10),G("change",function(o){K(n);let i=H();return X(i.selectBrowser(o))}),yt(13,dI,2,2,"option",11,aI),m(15,"option",12),D(16,"Custom path..."),v()()(),le(17,fI,3,1,"label",4),m(18,"label",4)(19,"span",5),D(20,"Profile"),v(),m(21,"select",13),G("change",function(o){K(n);let i=H();return X(i.selectProfile(o))}),m(22,"option",14),D(23,"Temp (isolated)"),v(),yt(24,pI,2,4,"option",15,cI),v()()(),m(26,"div",16)(27,"label",17)(28,"span",5),D(29,"Window size"),v(),m(30,"select",18),G("change",function(o){K(n);let i=H();return X(i.applyWindowSizePreset(o))}),m(31,"option",19),D(32,"Custom"),v(),m(33,"optgroup",20)(34,"option",21),D(35,"2560\xD71440 (QHD)"),v(),m(36,"option",22),D(37,"1920\xD71080 (Full HD)"),v(),m(38,"option",23),D(39,"1680\xD71050"),v(),m(40,"option",24),D(41,"1536\xD7864"),v(),m(42,"option",25),D(43,"1440\xD7900 (MacBook Air)"),v(),m(44,"option",26),D(45,"1366\xD7768"),v(),m(46,"option",27),D(47,"1280\xD7800"),v(),m(48,"option",28),D(49,"1280\xD7720 (HD)"),v(),m(50,"option",29),D(51,"1024\xD7768"),v()(),m(52,"optgroup",30)(53,"option",31),D(54,"1024\xD71366 (iPad Pro 12.9)"),v(),m(55,"option",32),D(56,"820\xD71180 (iPad Air)"),v(),m(57,"option",33),D(58,"768\xD71024 (iPad Mini)"),v()(),m(59,"optgroup",34)(60,"option",35),D(61,"430\xD7932 (iPhone 15 Pro Max)"),v(),m(62,"option",36),D(63,"393\xD7852 (iPhone 15)"),v(),m(64,"option",37),D(65,"390\xD7844 (iPhone 14)"),v(),m(66,"option",38),D(67,"375\xD7667 (iPhone SE)"),v(),m(68,"option",39),D(69,"360\xD7800 (Android)"),v()()(),m(70,"span",40)(71,"input",41),G("change",function(o){K(n);let i=H();return X(i.updateSetting("windowWidth",o))}),v(),m(72,"span",42),D(73,"\xD7"),v(),m(74,"input",41),G("change",function(o){K(n);let i=H();return X(i.updateSetting("windowHeight",o))}),v()()(),m(75,"label",43)(76,"input",44),G("change",function(o){K(n);let i=H();return X(i.updateSetting("devtools",o))}),v(),D(77," DevTools "),v(),m(78,"label",43)(79,"input",44),G("change",function(o){K(n);let i=H();return X(i.updateSetting("headed",o))}),v(),D(80," Headed "),v(),m(81,"label",43)(82,"input",44),G("change",function(o){K(n);let i=H();return X(i.updateSetting("keepBrowserOpen",o))}),v(),D(83," Keep open "),v()()()}if(e&2){let n,r=t,o=H();T(6),ie("value",r.targetUrl),T(2),de(o.urlDropdownOpen()&&r.targetUrlHistory.length>0?8:-1),T(4),ie("value",r.browserPath||((n=o.detectedBrowsers()[0])==null?null:n.executablePath)),T(),vt(o.detectedBrowsers()),T(4),de(o.showCustomBrowserInput()?17:-1),T(5),ie("selected",!r.userDataDir),T(2),vt(o.availableProfiles()),T(47),ie("value",r.windowWidth),T(3),ie("value",r.windowHeight),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(Pt);destroyRef=g(Be);isOpen=ng(!1);settings$=this.store.select(fa);detectedBrowsers=ht([]);availableProfiles=ht([]);showCustomBrowserInput=ht(!1);urlDropdownOpen=ht(!1);detectedBrowserPath="";detectedUserDataDir="";ngOnInit(){this.api.getDetectedBrowsers().pipe(he(t=>t.length>0),ut(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),he(([t,n])=>t!==""&&n.length>0),ge(([t,n])=>{let r=n.find(o=>o.executablePath===t);return r?this.api.getProfiles(r.userDataDir):ct([])}),ut(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(U.updateSetting({key:"headless",value:!o}));return}this.store.dispatch(U.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(U.updateSetting({key:"browserPath",value:n})),this.store.dispatch(U.updateSetting({key:"userDataDir",value:""}))}selectProfile(t){let n=t.target.value;this.store.dispatch(U.updateSetting({key:"userDataDir",value:n}))}applyWindowSizePreset(t){let n=t.target.value;if(!n)return;let[r,o]=n.split("x").map(Number);this.store.dispatch(U.updateSetting({key:"windowWidth",value:r})),this.store.dispatch(U.updateSetting({key:"windowHeight",value:o}))}selectUrl(t){this.store.dispatch(U.updateSetting({key:"targetUrl",value:t})),this.urlDropdownOpen.set(!1)}deleteUrl(t,n){n.preventDefault(),n.stopPropagation(),this.store.dispatch(U.removeUrlFromHistory({url:t}))}onUrlBlur(t){t.relatedTarget?.closest(".url-dropdown")||this.urlDropdownOpen.set(!1)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Se({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",""],["label","Desktop"],["value","2560x1440"],["value","1920x1080"],["value","1680x1050"],["value","1536x864"],["value","1440x900"],["value","1366x768"],["value","1280x800"],["value","1280x720"],["value","1024x768"],["label","Tablet"],["value","1024x1366"],["value","820x1180"],["value","768x1024"],["label","Mobile"],["value","430x932"],["value","393x852"],["value","390x844"],["value","375x667"],["value","360x800"],[1,"window-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&&(m(0,"div",0)(1,"div",1),le(2,hI,84,10,"aside",2),W(3,"async"),v()()),n&2){let o;Ye("data-open",r.isOpen()||null),T(2),de((o=q(3,2,r.settings$))?2:-1,o)}},dependencies:[ke,$e],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}.window-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)),g$=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.breakpointsByJourney[e.currentJourney??""]??[]),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 Me=jr({source:"Journeys",events:{"Load Journeys":ye(),"Load Journeys Success":Te(),"Toggle Journey":Te(),"Select All":ye(),"Deselect All":ye()}});var gI=(e,t)=>t.id;function mI(e,t){e&1&&At(0,"span",12)}function yI(e,t){e&1&&D(0," \u2713 ")}function vI(e,t){e&1&&D(0," \u2717 ")}function EI(e,t){if(e&1){let n=Je();m(0,"li",8)(1,"label",4)(2,"input",9),G("change",function(){let o=K(n).$implicit,i=H();return X(i.toggleJourney(o.id))}),v(),m(3,"span",10),D(4),v(),m(5,"span",11),le(6,mI,1,0,"span",12)(7,yI,1,0)(8,vI,1,0),v()()()}if(e&2){let n,r=t.$implicit;Ye("data-status",r.status),T(2),ie("checked",r.selected),T(2),we(r.name),T(2),de((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(Me.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=>C(E({},i),{selected:n.includes(i.id),status:this.getJourneyStatus(i.path,r,o)}))))}toggleAll(){return Qe(this,null,function*(){let t=yield Vt(this.selectAllState$);this.store.dispatch(t==="all"?Me.deselectAll():Me.selectAll())})}toggleJourney(t){this.store.dispatch(Me.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=Se({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&&(m(0,"nav",0)(1,"div",1)(2,"span",2),D(3,"Journeys"),v()(),m(4,"div",3)(5,"label",4)(6,"input",5),W(7,"async"),W(8,"async"),G("change",function(){return r.toggleAll()}),v(),m(9,"span",6),D(10,"Select all"),v()()(),m(11,"ul",7),yt(12,EI,9,4,"li",8,gI),W(14,"async"),v()()),n&2&&(T(6),ie("checked",q(7,2,r.selectAllState$)==="all")("indeterminate",q(8,4,r.selectAllState$)==="indeterminate"),T(6),vt(q(14,6,r.journeyViews$)))},dependencies:[ke,$e],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 x=jr({source:"Execution",events:{Play:ye(),Pause:ye(),Resume:ye(),Step:ye(),Stop:ye(),"Update Config":Te(),"Action Received":Te(),"Test Started":Te(),"Test Ended":Te(),"Log Received":Te(),"Error Received":Te(),"Paused By Runner":ye(),"Resumed By Runner":ye(),"Connection Status Changed":Te(),"Run Ended":ye(),"Toggle Breakpoint":Te(),"Clear All Breakpoints":ye(),"Clear Actions":ye(),"Clear Console":ye()}});function DI(e,t){if(e&1){let n=Je();m(0,"button",7),G("click",function(){let o=K(n),i=H();return X(o.canPlay?i.play():i.resume())}),D(1,"\u25B6"),v(),m(2,"button",8),G("click",function(){K(n);let o=H();return X(o.pause())}),D(3,"\u23F8"),v(),m(4,"button",9),G("click",function(){K(n);let o=H();return X(o.step())}),D(5,"\u23ED"),v(),m(6,"button",10),G("click",function(){K(n);let o=H();return X(o.stop())}),D(7,"\u23F9"),v()}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(x.play())}pause(){this.store.dispatch(x.pause())}resume(){this.store.dispatch(x.resume())}step(){this.store.dispatch(x.step())}stop(){this.store.dispatch(x.stop())}onDelayChange(t){let n=parseInt(t.target.value,10),r=this.sliderToDelay(n);this.store.dispatch(U.updateSetting({key:"actionDelay",value:r})),this.store.dispatch(x.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=Se({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&&(m(0,"div",0)(1,"div",1),le(2,DI,8,5),W(3,"async"),v(),m(4,"div",2)(5,"label",3),D(6,"Delay"),v(),m(7,"input",4),W(8,"async"),G("input",function(i){return r.onDelayChange(i)}),v(),m(9,"span",5),D(10),W(11,"async"),v()(),m(12,"span",6),D(13),W(14,"async"),v()()),n&2){let o,i,s,a;T(2),de((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),Ot("",((s=q(11,8,r.settings$))==null?null:s.actionDelay)??0,"ms"),T(3),we((a=q(14,10,r.state$))==null?null:a.fsmState)}},dependencies:[ke,$e],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&&D(0," \u23F3 ")}function II(e,t){e&1&&D(0," \u2713 ")}function _I(e,t){e&1&&D(0," \u23F8 ")}function SI(e,t){e&1&&D(0," \u2717 ")}function TI(e,t){if(e&1){let n=Je();m(0,"div",2)(1,"button",4),G("click",function(){let o=K(n).$implicit,i=H();return X(i.toggleBreakpoint(o.index))}),v(),m(2,"span",5),D(3),v(),m(4,"span",6),D(5),v(),m(6,"span",7),le(7,CI,1,0)(8,II,1,0)(9,_I,1,0)(10,SI,1,0),v()()}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),we(r.index),T(2),we(r.description),T(2),de((n=r.status)==="running"?7:n==="complete"?8:n==="breakpoint"?9:n==="failed"?10:-1)}}function MI(e,t){e&1&&(m(0,"div",3),D(1," No actions yet. Run a journey to see the action log. "),v())}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=>C(E({},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(x.toggleBreakpoint({index:t}))}static \u0275fac=function(n){return new(n||e)(ue(Z))};static \u0275cmp=Se({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&&(m(0,"div",1,0),yt(2,TI,11,7,"div",2,wI),W(4,"async"),le(5,MI,2,0,"div",3),W(6,"async"),v()),n&2){let o;T(2),vt(q(4,1,r.actionsWithBreakpoints$)),T(3),de(((o=q(6,3,r.actionsWithBreakpoints$))==null?null:o.length)===0?5:-1)}},dependencies:[ke,$e],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&&(m(0,"div",3),D(1),v()),e&2){let n=H().$implicit;T(),Ot("\u2500\u2500 ",n.message," \u2500\u2500")}}function RI(e,t){if(e&1&&(m(0,"div",4),D(1),v()),e&2){let n=H().$implicit;Ye("data-type",n.type),T(),we(n.message)}}function OI(e,t){if(e&1&&le(0,AI,2,1,"div",3)(1,RI,2,2,"div",4),e&2){let n=t.$implicit;de(n.type==="separator"?0:1)}}function kI(e,t){e&1&&(m(0,"div",2),D(1,"Console output will appear here."),v())}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(),he(([r,o])=>o.length>r.length&&this.isAtBottom),ut(()=>{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=Se({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&&(m(0,"div",1,0),G("scroll",function(){return r.onScroll()}),yt(2,OI,2,1,null,null,NI),W(4,"async"),le(5,kI,2,0,"div",2),W(6,"async"),v()),n&2){let o;T(2),vt(q(4,1,r.logs$)),T(3),de(((o=q(6,3,r.logs$))==null?null:o.length)===0?5:-1)}},dependencies:[ke,$e],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&&(m(0,"span",6),D(1),v(),m(2,"span",7),D(3),v()),e&2){let n=H();T(),Ot("\u2713 ",n.passed),T(2),Ot("\u2717 ",n.failed)}}function PI(e,t){if(e&1&&le(0,FI,4,2),e&2){let n=t;de(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=Se({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&&(m(0,"footer",0)(1,"div",1),At(2,"span",2),W(3,"async"),m(4,"span",3),D(5),W(6,"async"),v()(),m(7,"div",4),le(8,PI,1,1),W(9,"async"),v(),m(10,"div",5)(11,"span",3),D(12),W(13,"async"),v()()()),n&2){let o;T(2),Ye("data-status",q(3,4,r.connectionStatus$)),T(3),we(q(6,6,r.connectionStatus$)==="connected"?"Connected":"Disconnected"),T(3),de((o=q(9,8,r.summary$))?8:-1,o),T(4),we(q(13,10,r.fsmState$))}},dependencies:[ke,$e],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(x.actionReceived({index:t.index,status:t.status,description:t.description}))],["test-start",t=>this.store.dispatch(x.testStarted({journey:t.journey}))],["test-end",t=>this.store.dispatch(x.testEnded({journey:t.journey,status:t.status,duration:t.duration}))],["run-end",()=>this.store.dispatch(x.runEnded())],["log",t=>this.store.dispatch(x.logReceived({message:t.message,journey:t.journey}))],["error",t=>this.store.dispatch(x.errorReceived({message:t.message,journey:t.journey}))],["ui-control",t=>{t.action==="pause"?this.store.dispatch(x.pausedByRunner()):t.action==="resume"&&this.store.dispatch(x.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(x.connectionStatusChanged({status:"connected"}))},this.ws.onclose=()=>{this.store.dispatch(x.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)(b(Z))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})};function BI(e,t){if(e&1){let n=Je();_e(0,"button",14),Rt("click",function(){K(n);let o=H();return X(o.clearBreakpoints())}),D(1,"\u2298"),Ve()}}function VI(e,t){e&1&&(_e(0,"div",13)(1,"span",15),D(2,"\u2717"),Ve(),_e(3,"span",16),D(4),Ve()()),e&2&&(T(4),we(t))}function $I(e,t){e&1&&Nt(0,"gb-action-log")}function HI(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(U.loadSettings())}toggleSettings(){this.store.dispatch(U.toggleSettingsPanel())}setTab(t){this.store.dispatch(U.updateSetting({key:"activeTab",value:t}))}copyContent(){return Qe(this,null,function*(){let[t,n,r]=yield Promise.all([Vt(this.activeTab$),Vt(this.store.select(ga)),Vt(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 Qe(this,null,function*(){(yield Vt(this.activeTab$))==="actions"?this.store.dispatch(x.clearActions()):this.store.dispatch(x.clearConsole())})}clearBreakpoints(){this.store.dispatch(x.clearAllBreakpoints())}startResize(t){return Qe(this,null,function*(){t.preventDefault();let n=t.clientX,r=yield Vt(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=Se({type:e,selectors:[["gb-root"]],decls:32,vars:26,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","Clear all breakpoints",1,"tab-action"],["title","Copy to clipboard",1,"tab-action",3,"click"],["title","Clear",1,"tab-action",3,"click"],[1,"tab-content"],[1,"error-banner"],["title","Clear all breakpoints",1,"tab-action",3,"click"],[1,"error-banner__icon"],[1,"error-banner__text"]],template:function(n,r){if(n&1&&(_e(0,"div",0)(1,"gb-header",1),Rt("settingsToggled",function(){return r.toggleSettings()}),Ve(),Nt(2,"gb-settings-panel",2),W(3,"async"),_e(4,"div",3),Nt(5,"gb-sidebar"),W(6,"async"),_e(7,"div",4),Rt("mousedown",function(i){return r.startResize(i)}),Ve(),_e(8,"main",5),Nt(9,"gb-toolbar"),_e(10,"div",6)(11,"button",7),W(12,"async"),Rt("click",function(){return r.setTab("actions")}),_(13," Actions "),Ve(),_e(14,"button",7),W(15,"async"),Rt("click",function(){return r.setTab("console")}),_(16," Console "),Ve(),Nt(17,"span",8),le(18,BI,2,0,"button",9),W(19,"async"),_e(20,"button",10),Rt("click",function(){return r.copyContent()}),_(21,"\u{1F4CB}"),Ve(),_e(22,"button",11),Rt("click",function(){return r.clearContent()}),_(23,"\u{1F5D1}\uFE0F"),Ve()(),_e(24,"div",12),le(25,VI,5,1,"div",13),W(26,"async"),W(27,"async"),le(28,$I,1,0,"gb-action-log"),W(29,"async"),Oo(30,UI,1,0,"gb-console-output"),Ve()()(),Nt(31,"gb-footer"),Ve()),n&2){let o;T(2),Us("isOpen",q(3,10,r.settingsOpen$)??!1),T(3),Hs("width",q(6,12,r.sidebarWidth$)??240,"px"),T(6),Lo("active",q(12,14,r.activeTab$)==="actions"),T(3),Lo("active",q(15,16,r.activeTab$)==="console"),T(4),de(q(19,18,r.activeTab$)==="actions"?18:-1),T(7),de((o=q(26,20,r.fsmState$)==="errored"&&q(27,22,r.lastError$))?25:-1,o),T(3),de(q(29,24,r.activeTab$)==="actions"?28:30)}},dependencies:[ke,da,pa,va,Ea,Da,ba,wa,$e],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 HI={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},_a="__@ngrx/effects_create__";function Ue(e,t={}){let n=t.functional?e:e(),r=y(y({},HI),t);return Object.defineProperty(n,_a,{value:r}),n}function zI(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 GI(e){return zI(e)}function um(e){return Object.getPrototypeOf(e)}function WI(e){return!!e.constructor&&e.constructor.name!=="Object"&&e.constructor.name!=="Function"}function lm(e){return typeof e=="function"}function qI(e){return e.filter(lm)}function ZI(e,t,n){let r=um(e),i=!!r&&r.constructor.name!=="Object"?r.constructor.name:null,s=GI(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 YI=10;function dm(e,t,n=YI){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 He(...e){return he(t=>e.some(n=>typeof n=="string"?n===t.type:n.type===t.type))}var JI=new C("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>dm}),QI="@ngrx/effects/init",KI=$l(QI);function XI(e,t){if(e.notification.kind==="N"){let n=e.notification.value;!e_(n)&&t.handleError(new Error(`Effect ${t_(e)} dispatched an invalid action: ${n_(n)}`))}}function e_(e){return typeof e!="function"&&e&&e.type&&typeof e.type=="string"}function t_({propertyName:e,sourceInstance:t,sourceName:n}){let r=typeof t[e]=="function";return!!n?`"${n}.${String(e)}${r?"()":""}"`:`"${String(e)}()"`}function n_(e){try{return JSON.stringify(e)}catch(t){return e}}var r_="ngrxOnIdentifyEffects";function o_(e){return ql(e,r_)}var i_="ngrxOnRunEffects";function s_(e){return ql(e,i_)}var a_="ngrxOnInitEffects";function c_(e){return ql(e,a_)}function ql(e,t){return e&&t in e&&typeof e[t]=="function"}var fm=(()=>{class e extends Ee{constructor(n,r){super(),this.errorHandler=n,this.effectsErrorHandler=r}addEffects(n){this.next(n)}toActions(){return this.pipe(Ri(n=>WI(n)?um(n):n),Et(n=>n.pipe(Ri(u_))),Et(n=>{let r=n.pipe(fr(i=>l_(this.errorHandler,this.effectsErrorHandler)(i)),L(i=>(XI(i,this.errorHandler),i.notification)),he(i=>i.kind==="N"&&i.value!=null),Xa()),o=n.pipe(Kr(1),he(c_),L(i=>i.ngrxOnInitEffects()));return Sn(r,o)}))}static{this.\u0275fac=function(r){return new(r||e)(D(Re),D(JI))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function u_(e){return o_(e)?e.ngrxOnIdentifyEffects():""}function l_(e,t){return n=>{let r=ZI(n,e,t);return s_(n)?n.ngrxOnRunEffects(r):r}}var d_=(()=>{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=qI(t);return et([n,mr(()=>{g(Yo),g(ca,{optional:!0});let r=g(d_),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(KI())})])}var ei="PERFORM_ACTION",f_="REFRESH",Em="RESET",Dm="ROLLBACK",bm="COMMIT",wm="SWEEP",Cm="TOGGLE_ACTION",p_="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=f_}},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 C("@ngrx/store-devtools Options"),hm=new C("@ngrx/store-devtools Initial Config");function Mm(){return null}var h_="NgRx Store DevTools";function g_(e){let t={maxAge:!1,monitor:Mm,actionSanitizer:void 0,stateSanitizer:void 0,name:h_,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 m_(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 w(y({},t),{action:e(t.action,n)})}function y_(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 v_(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])))}),w(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 kt{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 C("@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=w(y({},r),{stagedActionIds:r.stagedActionIds,actionsById:this.config.actionSanitizer?m_(this.config.actionSanitizer,r.actionsById):r.actionsById,computedStates:this.config.stateSanitizer?y_(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(he(u=>u.type===Sa.START)),o=n.pipe(he(u=>u.type===Sa.STOP)),i=n.pipe(he(u=>u.type===Sa.DISPATCH),L(u=>this.unwrapAction(u.payload)),Jr(u=>u.type===sd?this.dispatcher.pipe(he(l=>l.type===la),Qa(1e3),Qr(1e3),L(()=>u),Ce(()=>ct(u)),Kr(1)):ct(u))),a=n.pipe(he(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(ge(()=>a)),this.liftedActions$=this.start$.pipe(ge(()=>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},E_="@ngrx/store-devtools/recompute",D_={type:E_};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 b_(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 w_(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(ne){let ee=ne,xe=d.slice(1,ee+1);for(let it=0;it<xe.length;it++)if(m[it+1].error){ee=it,xe=d.slice(1,ee+1);break}else delete u[xe[it]];f=f.filter(it=>xe.indexOf(it)===-1),d=[0,...d.slice(ee+1)],p=m[ee].state,m=m.slice(ee),h=h>ee?h-ee:0}function pe(){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:{I=a.status,I?(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):pe();break}case Em:{u={0:Xo(Ma)},l=1,d=[0],f=[],p=e,h=0,m=[];break}case bm:{pe();break}case Dm:{u={0:Xo(Ma)},l=1,d=[0],f=[],h=0,m=[];break}case Cm:{let{id:ne}=a;f.indexOf(ne)===-1?f=[ne,...f]:f=f.filter(xe=>xe!==ne),F=d.indexOf(ne);break}case p_:{let{start:ne,end:ee,active:xe}=a,it=[];for(let ka=ne;ka<ee;ka++)it.push(ka);xe?f=gm(f,it):f=[...f,...it],F=d.indexOf(ne);break}case Im:{h=a.index,F=1/0;break}case _m:{let ne=d.indexOf(a.actionId);ne!==-1&&(h=ne),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(I||s&&ad(s.computedStates[h],a,o.predicate,o.actionsSafelist,o.actionsBlocklist)){let ee=m[m.length-1];m=[...m.slice(0,-1),Fm(i,a.action,ee.state,ee.error,n)],F=1/0;break}o.maxAge&&d.length===o.maxAge&&B(1),h===d.length-1&&h++;let ne=l++;u[ne]=a,d=[...d,ne],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 Jo:{F=0,o.maxAge&&d.length>o.maxAge&&(m=Ta(m,F,i,p,u,d,f,n,I),B(d.length-o.maxAge),F=1/0);break}case la:{if(m.filter(ee=>ee.error).length>0)F=0,o.maxAge&&d.length>o.maxAge&&(m=Ta(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 ee=l++;u[ee]=new Hr(a,+Date.now()),d=[...d,ee],F=d.length-1,m=Ta(m,F,i,p,u,d,f,n,I)}m=m.map(ee=>w(y({},ee),{state:i(ee.state,D_)})),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,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=b_(c,u.monitor),d=w_(c,l,a,u.monitor,u),f=Sn(Sn(r.asObservable().pipe(sc(1)),i.actions$).pipe(L(Xo)),n,i.liftedActions$).pipe(Bt(Yr)),p=o.pipe(L(d)),h=Om(u.connectInZone),m=new sr(1);this.liftedStateSubscription=f.pipe(Ke(p),vm(h),Xr(({state:B},[pe,F])=>{let ne=F(B,pe);return pe.type!==ei&&Rm(u)&&(ne=v_(ne,u.predicate,u.actionsSafelist,u.actionsBlocklist)),i.notify(pe,ne),{state:ne,action:pe}},{state:l,action:null})).subscribe(({state:B,action:pe})=>{if(m.next(B),pe.type===ei){let F=pe.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:sa(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 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(kt),D(Qn),D(km),D(Kn),D(Re),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 C_=new C("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function I_(e,t){return!!e||t.monitor!==Mm}function __(){let e="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[e]<"u"?window[e]:null}function S_(e){return e.state}function Pm(e={}){return et([km,Na,ym,{provide:hm,useValue:e},{provide:C_,deps:[id,xa],useFactory:I_},{provide:id,useFactory:__},{provide:xa,deps:[hm],useFactory:g_},{provide:Lr,deps:[ym],useFactory:S_},{provide:Pr,useExisting:Na}])}var T_={fsmState:"idle",actions:[],breakpointsByJourney:{},consoleLogs:[],connectionStatus:"disconnected",results:[],currentJourney:null},Lm=Vr(T_,Y(x.play,e=>w(y({},e),{fsmState:"running",actions:[],consoleLogs:[],results:[]})),Y(x.pause,e=>w(y({},e),{fsmState:"paused"})),Y(x.resume,e=>w(y({},e),{fsmState:"running"})),Y(x.step,e=>w(y({},e),{fsmState:"stepping"})),Y(x.stop,e=>w(y({},e),{fsmState:"idle"})),Y(x.pausedByRunner,e=>w(y({},e),{fsmState:"paused"})),Y(x.resumedByRunner,e=>w(y({},e),{fsmState:"running"})),Y(x.runEnded,e=>w(y({},e),{fsmState:"idle"})),Y(x.actionReceived,(e,{index:t,status:n,description:r})=>{let o=e.actions.find(l=>l.index===t),i=M_(n),s=e.currentJourney??"",a=e.breakpointsByJourney[s]??[],c=n==="breakpoint"&&!a.includes(t)?[...a,t]:a,u=c!==a?w(y({},e.breakpointsByJourney),{[s]:c}):e.breakpointsByJourney;return o?w(y({},e),{breakpointsByJourney:u,actions:e.actions.map(l=>l.index===t?w(y({},l),{status:i}):l),fsmState:n==="breakpoint"?"paused":e.fsmState}):w(y({},e),{breakpointsByJourney:u,actions:[...e.actions,{index:t,description:r??"",status:i,hasBreakpoint:c.includes(t)}],fsmState:n==="breakpoint"?"paused":e.fsmState})}),Y(x.testStarted,(e,{journey:t})=>w(y({},e),{fsmState:"running",currentJourney:t,actions:[],consoleLogs:[...e.consoleLogs,{type:"separator",message:t,timestamp:Date.now()}]})),Y(x.testEnded,(e,{journey:t,status:n,duration:r})=>w(y({},e),{results:[...e.results,{journey:t,status:n,duration:r}],currentJourney:null,actions:n==="failed"?e.actions.map(o=>o.status==="running"?w(y({},o),{status:"failed"}):o):e.actions,fsmState:n==="failed"?"errored":e.fsmState})),Y(x.logReceived,(e,{message:t})=>w(y({},e),{consoleLogs:[...e.consoleLogs,{type:"log",message:t,timestamp:Date.now()}]})),Y(x.errorReceived,(e,{message:t})=>w(y({},e),{consoleLogs:[...e.consoleLogs,{type:"error",message:t,timestamp:Date.now()}]})),Y(x.connectionStatusChanged,(e,{status:t})=>w(y({},e),{connectionStatus:t})),Y(x.toggleBreakpoint,(e,{index:t})=>{let n=e.currentJourney??"",r=e.breakpointsByJourney[n]??[],o=r.includes(t);return w(y({},e),{breakpointsByJourney:w(y({},e.breakpointsByJourney),{[n]:o?r.filter(i=>i!==t):[...r,t]})})}),Y(x.clearAllBreakpoints,e=>{let t=e.currentJourney??"";return w(y({},e),{breakpointsByJourney:w(y({},e.breakpointsByJourney),{[t]:[]})})}),Y(x.clearActions,e=>w(y({},e),{actions:[]})),Y(x.clearConsole,e=>w(y({},e),{consoleLogs:[]})));function M_(e){switch(e){case"start":return"running";case"complete":return"complete";case"breakpoint":return"breakpoint";default:return"pending"}}var x_={journeys:[],selectedIds:[],loading:!1},jm=Vr(x_,Y(Me.loadJourneys,e=>w(y({},e),{loading:!0})),Y(Me.loadJourneysSuccess,(e,{journeys:t})=>w(y({},e),{journeys:t,selectedIds:e.selectedIds.length>0?e.selectedIds:t.map(n=>n.id),loading:!1})),Y(Me.toggleJourney,(e,{id:t})=>{let n=e.selectedIds.includes(t);return w(y({},e),{selectedIds:n?e.selectedIds.filter(r=>r!==t):[...e.selectedIds,t]})}),Y(Me.selectAll,e=>w(y({},e),{selectedIds:e.journeys.map(t=>t.id)})),Y(Me.deselectAll,e=>w(y({},e),{selectedIds:[]})),Y(H.loadSettingsSuccess,(e,{settings:t})=>{let n=t.selectedJourneyIds;return n&&n.length>0?w(y({},e),{selectedIds:n}):e}));var N_={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(N_,Y(H.loadSettingsSuccess,(e,{settings:t})=>y(y({},e),t)),Y(H.updateSetting,(e,{key:t,value:n})=>{let r=w(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}),Y(H.toggleSettingsPanel,e=>w(y({},e),{settingsPanelOpen:!e.settingsPanelOpen})),Y(H.removeUrlFromHistory,(e,{url:t})=>w(y({},e),{targetUrlHistory:e.targetUrlHistory.filter(n=>n!==t)})));var Aa=class e{actions$=g(Ur);api=g(Pt);store=g(Z);play$=Ue(()=>this.actions$.pipe(He(x.play),Ke(this.store.select(Wl),this.store.select(nm)),fr(([,t,n])=>this.api.runTests(t,n).pipe(Ce(()=>se)))),{dispatch:!1});pause$=Ue(()=>this.actions$.pipe(He(x.pause),ge(()=>this.api.pauseTests().pipe(Ce(()=>se)))),{dispatch:!1});resume$=Ue(()=>this.actions$.pipe(He(x.resume),ge(()=>this.api.resumeTests().pipe(Ce(()=>se)))),{dispatch:!1});step$=Ue(()=>this.actions$.pipe(He(x.step),ge(()=>this.api.stepTests().pipe(Ce(()=>se)))),{dispatch:!1});stop$=Ue(()=>this.actions$.pipe(He(x.stop),ge(()=>this.api.stopTests().pipe(Ce(()=>se)))),{dispatch:!1});updateConfig$=Ue(()=>this.actions$.pipe(He(x.updateConfig),ge(({actionDelay:t})=>this.api.updateConfig({actionDelay:t}).pipe(Ce(()=>se)))),{dispatch:!1});syncBreakpoints$=Ue(()=>this.actions$.pipe(He(x.toggleBreakpoint,x.clearAllBreakpoints),Ke(this.store.select(ya),this.store.select(Wl)),ge(([,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(Pt);store=g(Z);themeService=g(mn);loadSettings$=Ue(()=>this.actions$.pipe(He(H.loadSettings),ge(()=>this.api.getSettings()),L(t=>H.loadSettingsSuccess({settings:t}))));applyTheme$=Ue(()=>this.actions$.pipe(He(H.loadSettingsSuccess),ut(({settings:t})=>{this.themeService.applyFromSettings(t.theme)})),{dispatch:!1});saveSettings$=Ue(()=>this.actions$.pipe(He(H.updateSetting,H.toggleSettingsPanel,H.removeUrlFromHistory),Qr(500),Ke(this.store.select(fa)),ge(([,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(Pt);store=g(Z);loadJourneys$=Ue(()=>this.actions$.pipe(He(Me.loadJourneys),ge(()=>this.api.getJourneys().pipe(L(t=>Me.loadJourneysSuccess({journeys:t})),Ce(()=>se)))));persistSelection$=Ue(()=>this.actions$.pipe(He(Me.toggleJourney,Me.selectAll,Me.deselectAll),Ke(this.store.select($r)),ut(([,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));
|
|
16
|
+
`);navigator.clipboard.writeText(o)})}clearContent(){return Qe(this,null,function*(){(yield Vt(this.activeTab$))==="actions"?this.store.dispatch(x.clearActions()):this.store.dispatch(x.clearConsole())})}clearBreakpoints(){this.store.dispatch(x.clearAllBreakpoints())}startResize(t){return Qe(this,null,function*(){t.preventDefault();let n=t.clientX,r=yield Vt(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(U.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=Se({type:e,selectors:[["gb-root"]],decls:32,vars:26,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","Clear all breakpoints",1,"tab-action"],["title","Copy to clipboard",1,"tab-action",3,"click"],["title","Clear",1,"tab-action",3,"click"],[1,"tab-content"],[1,"error-banner"],["title","Clear all breakpoints",1,"tab-action",3,"click"],[1,"error-banner__icon"],[1,"error-banner__text"]],template:function(n,r){if(n&1&&(_e(0,"div",0)(1,"gb-header",1),Rt("settingsToggled",function(){return r.toggleSettings()}),Ve(),Nt(2,"gb-settings-panel",2),W(3,"async"),_e(4,"div",3),Nt(5,"gb-sidebar"),W(6,"async"),_e(7,"div",4),Rt("mousedown",function(i){return r.startResize(i)}),Ve(),_e(8,"main",5),Nt(9,"gb-toolbar"),_e(10,"div",6)(11,"button",7),W(12,"async"),Rt("click",function(){return r.setTab("actions")}),D(13," Actions "),Ve(),_e(14,"button",7),W(15,"async"),Rt("click",function(){return r.setTab("console")}),D(16," Console "),Ve(),Nt(17,"span",8),le(18,BI,2,0,"button",9),W(19,"async"),_e(20,"button",10),Rt("click",function(){return r.copyContent()}),D(21,"\u{1F4CB}"),Ve(),_e(22,"button",11),Rt("click",function(){return r.clearContent()}),D(23,"\u{1F5D1}\uFE0F"),Ve()(),_e(24,"div",12),le(25,VI,5,1,"div",13),W(26,"async"),W(27,"async"),le(28,$I,1,0,"gb-action-log"),W(29,"async"),Oo(30,HI,1,0,"gb-console-output"),Ve()()(),Nt(31,"gb-footer"),Ve()),n&2){let o;T(2),Hs("isOpen",q(3,10,r.settingsOpen$)??!1),T(3),Us("width",q(6,12,r.sidebarWidth$)??240,"px"),T(6),Lo("active",q(12,14,r.activeTab$)==="actions"),T(3),Lo("active",q(15,16,r.activeTab$)==="console"),T(4),de(q(19,18,r.activeTab$)==="actions"?18:-1),T(7),de((o=q(26,20,r.fsmState$)==="errored"&&q(27,22,r.lastError$))?25:-1,o),T(3),de(q(29,24,r.activeTab$)==="actions"?28:30)}},dependencies:[ke,da,pa,va,Ea,Da,ba,wa,$e],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 He(e,t={}){let n=t.functional?e:e(),r=E(E({},UI),t);return Object.defineProperty(n,_a,{value:r}),n}function zI(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 E({propertyName:r},o)})}function GI(e){return zI(e)}function um(e){return Object.getPrototypeOf(e)}function WI(e){return!!e.constructor&&e.constructor.name!=="Object"&&e.constructor.name!=="Function"}function lm(e){return typeof e=="function"}function qI(e){return e.filter(lm)}function ZI(e,t,n){let r=um(e),i=!!r&&r.constructor.name!=="Object"?r.constructor.name:null,s=GI(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 YI=10;function dm(e,t,n=YI){return e.pipe(Ce(r=>(t&&t.handleError(r),n<=1?e:dm(e,t,n-1))))}var Hr=(()=>{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)(b(Kn))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Ue(...e){return he(t=>e.some(n=>typeof n=="string"?n===t.type:n.type===t.type))}var JI=new I("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>dm}),QI="@ngrx/effects/init",KI=$l(QI);function XI(e,t){if(e.notification.kind==="N"){let n=e.notification.value;!e0(n)&&t.handleError(new Error(`Effect ${t0(e)} dispatched an invalid action: ${n0(n)}`))}}function e0(e){return typeof e!="function"&&e&&e.type&&typeof e.type=="string"}function t0({propertyName:e,sourceInstance:t,sourceName:n}){let r=typeof t[e]=="function";return!!n?`"${n}.${String(e)}${r?"()":""}"`:`"${String(e)}()"`}function n0(e){try{return JSON.stringify(e)}catch(t){return e}}var r0="ngrxOnIdentifyEffects";function o0(e){return ql(e,r0)}var i0="ngrxOnRunEffects";function s0(e){return ql(e,i0)}var a0="ngrxOnInitEffects";function c0(e){return ql(e,a0)}function ql(e,t){return e&&t in e&&typeof e[t]=="function"}var fm=(()=>{class e extends Ee{constructor(n,r){super(),this.errorHandler=n,this.effectsErrorHandler=r}addEffects(n){this.next(n)}toActions(){return this.pipe(Ri(n=>WI(n)?um(n):n),Et(n=>n.pipe(Ri(u0))),Et(n=>{let r=n.pipe(fr(i=>l0(this.errorHandler,this.effectsErrorHandler)(i)),L(i=>(XI(i,this.errorHandler),i.notification)),he(i=>i.kind==="N"&&i.value!=null),Xa()),o=n.pipe(Kr(1),he(c0),L(i=>i.ngrxOnInitEffects()));return Sn(r,o)}))}static{this.\u0275fac=function(r){return new(r||e)(b(Re),b(JI))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function u0(e){return o0(e)?e.ngrxOnIdentifyEffects():""}function l0(e,t){return n=>{let r=ZI(n,e,t);return s0(n)?n.ngrxOnRunEffects(r):r}}var d0=(()=>{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)(b(fm),b(Z))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function pm(...e){let t=e.flat(),n=qI(t);return et([n,mr(()=>{g(Yo),g(ca,{optional:!0});let r=g(d0),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(KI())})])}var ei="PERFORM_ACTION",f0="REFRESH",Em="RESET",Dm="ROLLBACK",bm="COMMIT",wm="SWEEP",Cm="TOGGLE_ACTION",p0="SET_ACTIONS_ACTIVE",Im="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=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=f0}},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 I("@ngrx/store-devtools Options"),hm=new I("@ngrx/store-devtools Initial Config");function Mm(){return null}var h0="NgRx Store DevTools";function g0(e){let t={maxAge:!1,monitor:Mm,actionSanitizer:void 0,stateSanitizer:void 0,name:h0,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 Ur(e,+Date.now())}function m0(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(E({},t),{action:e(t.action,n)})}function y0(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 v0(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(E({},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 kt{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 I("@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=C(E({},r),{stagedActionIds:r.stagedActionIds,actionsById:this.config.actionSanitizer?m0(this.config.actionSanitizer,r.actionsById):r.actionsById,computedStates:this.config.stateSanitizer?y0(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(he(u=>u.type===Sa.START)),o=n.pipe(he(u=>u.type===Sa.STOP)),i=n.pipe(he(u=>u.type===Sa.DISPATCH),L(u=>this.unwrapAction(u.payload)),Jr(u=>u.type===sd?this.dispatcher.pipe(he(l=>l.type===la),Qa(1e3),Qr(1e3),L(()=>u),Ce(()=>ct(u)),Kr(1)):ct(u))),a=n.pipe(he(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(ge(()=>a)),this.liftedActions$=this.start$.pipe(ge(()=>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)(b(id),b(xa),b(Na))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})(),Ma={type:Jo},E0="@ngrx/store-devtools/recompute",D0={type:E0};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],y=h?h.state:r,w=h?h.error:void 0,B=s.indexOf(f)>-1?h:Fm(n,p,y,w,a);u.push(B)}return c&&u.push(e[e.length-1]),u}function b0(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 w0(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:y,isLocked:w,isPaused:_}=s||t;s||(u=Object.create(u));function B(ne){let ee=ne,xe=d.slice(1,ee+1);for(let it=0;it<xe.length;it++)if(y[it+1].error){ee=it,xe=d.slice(1,ee+1);break}else delete u[xe[it]];f=f.filter(it=>xe.indexOf(it)===-1),d=[0,...d.slice(ee+1)],p=y[ee].state,y=y.slice(ee),h=h>ee?h-ee:0}function pe(){u={0:Xo(Ma)},l=1,d=[0],f=[],p=y[h].state,h=0,y=[]}let F=0;switch(a.type){case Sm:{w=a.status,F=1/0;break}case Tm:{_=a.status,_?(d=[...d,l],u[l]=new Ur({type:"@ngrx/devtools/pause"},+Date.now()),l++,F=d.length-1,y=y.concat(y[y.length-1]),h===d.length-2&&h++,F=1/0):pe();break}case Em:{u={0:Xo(Ma)},l=1,d=[0],f=[],p=e,h=0,y=[];break}case bm:{pe();break}case Dm:{u={0:Xo(Ma)},l=1,d=[0],f=[],h=0,y=[];break}case Cm:{let{id:ne}=a;f.indexOf(ne)===-1?f=[ne,...f]:f=f.filter(xe=>xe!==ne),F=d.indexOf(ne);break}case p0:{let{start:ne,end:ee,active:xe}=a,it=[];for(let ka=ne;ka<ee;ka++)it.push(ka);xe?f=gm(f,it):f=[...f,...it],F=d.indexOf(ne);break}case Im:{h=a.index,F=1/0;break}case _m:{let ne=d.indexOf(a.actionId);ne!==-1&&(h=ne),F=1/0;break}case wm:{d=gm(d,f),f=[],h=Math.min(h,d.length-1);break}case ei:{if(w)return s||t;if(_||s&&ad(s.computedStates[h],a,o.predicate,o.actionsSafelist,o.actionsBlocklist)){let ee=y[y.length-1];y=[...y.slice(0,-1),Fm(i,a.action,ee.state,ee.error,n)],F=1/0;break}o.maxAge&&d.length===o.maxAge&&B(1),h===d.length-1&&h++;let ne=l++;u[ne]=a,d=[...d,ne],F=d.length-1;break}case sd:{({monitorState:c,actionsById:u,nextActionId:l,stagedActionIds:d,skippedActionIds:f,committedState:p,currentStateIndex:h,computedStates:y,isLocked:w,isPaused:_}=a.nextLiftedState);break}case Jo:{F=0,o.maxAge&&d.length>o.maxAge&&(y=Ta(y,F,i,p,u,d,f,n,_),B(d.length-o.maxAge),F=1/0);break}case la:{if(y.filter(ee=>ee.error).length>0)F=0,o.maxAge&&d.length>o.maxAge&&(y=Ta(y,F,i,p,u,d,f,n,_),B(d.length-o.maxAge),F=1/0);else{if(!_&&!w){h===d.length-1&&h++;let ee=l++;u[ee]=new Ur(a,+Date.now()),d=[...d,ee],F=d.length-1,y=Ta(y,F,i,p,u,d,f,n,_)}y=y.map(ee=>C(E({},ee),{state:i(ee.state,D0)})),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 y=Ta(y,F,i,p,u,d,f,n,_),c=r(c,a),{monitorState:c,actionsById:u,nextActionId:l,stagedActionIds:d,skippedActionIds:f,committedState:p,currentStateIndex:h,computedStates:y,isLocked:w,isPaused:_}}}var ym=(()=>{class e{constructor(n,r,o,i,s,a,c,u){let l=b0(c,u.monitor),d=w0(c,l,a,u.monitor,u),f=Sn(Sn(r.asObservable().pipe(sc(1)),i.actions$).pipe(L(Xo)),n,i.liftedActions$).pipe(Bt(Yr)),p=o.pipe(L(d)),h=Om(u.connectInZone),y=new sr(1);this.liftedStateSubscription=f.pipe(Ke(p),vm(h),Xr(({state:B},[pe,F])=>{let ne=F(B,pe);return pe.type!==ei&&Rm(u)&&(ne=v0(ne,u.predicate,u.actionsSafelist,u.actionsBlocklist)),i.notify(pe,ne),{state:ne,action:pe}},{state:l,action:null})).subscribe(({state:B,action:pe})=>{if(y.next(B),pe.type===ei){let F=pe.action;s.next(F)}}),this.extensionStartSubscription=i.start$.pipe(vm(h)).subscribe(()=>{this.refresh()});let w=y.asObservable(),_=w.pipe(L(xm));Object.defineProperty(_,"state",{value:sa(_,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=n,this.liftedState=w,this.state=_}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)(b(Na),b(kt),b(Qn),b(km),b(Kn),b(Re),b(Qo),b(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 C0=new I("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function I0(e,t){return!!e||t.monitor!==Mm}function _0(){let e="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[e]<"u"?window[e]:null}function S0(e){return e.state}function Pm(e={}){return et([km,Na,ym,{provide:hm,useValue:e},{provide:C0,deps:[id,xa],useFactory:I0},{provide:id,useFactory:_0},{provide:xa,deps:[hm],useFactory:g0},{provide:Lr,deps:[ym],useFactory:S0},{provide:Pr,useExisting:Na}])}var T0={fsmState:"idle",actions:[],breakpointsByJourney:{},consoleLogs:[],connectionStatus:"disconnected",results:[],currentJourney:null},Lm=Vr(T0,Y(x.play,e=>C(E({},e),{fsmState:"running",actions:[],consoleLogs:[],results:[]})),Y(x.pause,e=>C(E({},e),{fsmState:"paused"})),Y(x.resume,e=>C(E({},e),{fsmState:"running"})),Y(x.step,e=>C(E({},e),{fsmState:"stepping"})),Y(x.stop,e=>C(E({},e),{fsmState:"idle"})),Y(x.pausedByRunner,e=>C(E({},e),{fsmState:"paused"})),Y(x.resumedByRunner,e=>C(E({},e),{fsmState:"running"})),Y(x.runEnded,e=>C(E({},e),{fsmState:"idle"})),Y(x.actionReceived,(e,{index:t,status:n,description:r})=>{let o=e.actions.find(l=>l.index===t),i=M0(n),s=e.currentJourney??"",a=e.breakpointsByJourney[s]??[],c=n==="breakpoint"&&!a.includes(t)?[...a,t]:a,u=c!==a?C(E({},e.breakpointsByJourney),{[s]:c}):e.breakpointsByJourney;return o?C(E({},e),{breakpointsByJourney:u,actions:e.actions.map(l=>l.index===t?C(E({},l),{status:i}):l),fsmState:n==="breakpoint"?"paused":e.fsmState}):C(E({},e),{breakpointsByJourney:u,actions:[...e.actions,{index:t,description:r??"",status:i,hasBreakpoint:c.includes(t)}],fsmState:n==="breakpoint"?"paused":e.fsmState})}),Y(x.testStarted,(e,{journey:t})=>C(E({},e),{fsmState:"running",currentJourney:t,actions:[],consoleLogs:[...e.consoleLogs,{type:"separator",message:t,timestamp:Date.now()}]})),Y(x.testEnded,(e,{journey:t,status:n,duration:r})=>C(E({},e),{results:[...e.results,{journey:t,status:n,duration:r}],currentJourney:null,actions:n==="failed"?e.actions.map(o=>o.status==="running"?C(E({},o),{status:"failed"}):o):e.actions,fsmState:n==="failed"?"errored":e.fsmState})),Y(x.logReceived,(e,{message:t})=>C(E({},e),{consoleLogs:[...e.consoleLogs,{type:"log",message:t,timestamp:Date.now()}]})),Y(x.errorReceived,(e,{message:t})=>C(E({},e),{consoleLogs:[...e.consoleLogs,{type:"error",message:t,timestamp:Date.now()}]})),Y(x.connectionStatusChanged,(e,{status:t})=>C(E({},e),{connectionStatus:t})),Y(x.toggleBreakpoint,(e,{index:t})=>{let n=e.currentJourney??"",r=e.breakpointsByJourney[n]??[],o=r.includes(t);return C(E({},e),{breakpointsByJourney:C(E({},e.breakpointsByJourney),{[n]:o?r.filter(i=>i!==t):[...r,t]})})}),Y(x.clearAllBreakpoints,e=>{let t=e.currentJourney??"";return C(E({},e),{breakpointsByJourney:C(E({},e.breakpointsByJourney),{[t]:[]})})}),Y(x.clearActions,e=>C(E({},e),{actions:[]})),Y(x.clearConsole,e=>C(E({},e),{consoleLogs:[]})));function M0(e){switch(e){case"start":return"running";case"complete":return"complete";case"breakpoint":return"breakpoint";default:return"pending"}}var x0={journeys:[],selectedIds:[],loading:!1},jm=Vr(x0,Y(Me.loadJourneys,e=>C(E({},e),{loading:!0})),Y(Me.loadJourneysSuccess,(e,{journeys:t})=>C(E({},e),{journeys:t,selectedIds:e.selectedIds.length>0?e.selectedIds:t.map(n=>n.id),loading:!1})),Y(Me.toggleJourney,(e,{id:t})=>{let n=e.selectedIds.includes(t);return C(E({},e),{selectedIds:n?e.selectedIds.filter(r=>r!==t):[...e.selectedIds,t]})}),Y(Me.selectAll,e=>C(E({},e),{selectedIds:e.journeys.map(t=>t.id)})),Y(Me.deselectAll,e=>C(E({},e),{selectedIds:[]})),Y(U.loadSettingsSuccess,(e,{settings:t})=>{let n=t.selectedJourneyIds;return n&&n.length>0?C(E({},e),{selectedIds:n}):e}));var N0={targetUrl:"http://localhost:3000",browserPath:"",userDataDir:"",windowWidth:1280,windowHeight:720,actionDelay:0,devtools:!1,headless:!1,keepBrowserOpen:!1,settingsPanelOpen:!1,activeTab:"actions",sidebarWidth:240,selectedJourneyIds:[],targetUrlHistory:[],theme:""},Bm=Vr(N0,Y(U.loadSettingsSuccess,(e,{settings:t})=>E(E({},e),t)),Y(U.updateSetting,(e,{key:t,value:n})=>{let r=C(E({},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}),Y(U.toggleSettingsPanel,e=>C(E({},e),{settingsPanelOpen:!e.settingsPanelOpen})),Y(U.removeUrlFromHistory,(e,{url:t})=>C(E({},e),{targetUrlHistory:e.targetUrlHistory.filter(n=>n!==t)})));var Aa=class e{actions$=g(Hr);api=g(Pt);store=g(Z);play$=He(()=>this.actions$.pipe(Ue(x.play),Ke(this.store.select(Wl),this.store.select(nm)),fr(([,t,n])=>this.api.runTests(t,n).pipe(Ce(()=>se)))),{dispatch:!1});pause$=He(()=>this.actions$.pipe(Ue(x.pause),ge(()=>this.api.pauseTests().pipe(Ce(()=>se)))),{dispatch:!1});resume$=He(()=>this.actions$.pipe(Ue(x.resume),ge(()=>this.api.resumeTests().pipe(Ce(()=>se)))),{dispatch:!1});step$=He(()=>this.actions$.pipe(Ue(x.step),ge(()=>this.api.stepTests().pipe(Ce(()=>se)))),{dispatch:!1});stop$=He(()=>this.actions$.pipe(Ue(x.stop),ge(()=>this.api.stopTests().pipe(Ce(()=>se)))),{dispatch:!1});updateConfig$=He(()=>this.actions$.pipe(Ue(x.updateConfig),ge(({actionDelay:t})=>this.api.updateConfig({actionDelay:t}).pipe(Ce(()=>se)))),{dispatch:!1});syncBreakpoints$=He(()=>this.actions$.pipe(Ue(x.toggleBreakpoint,x.clearAllBreakpoints),Ke(this.store.select(ya),this.store.select(Wl)),ge(([,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(Hr);api=g(Pt);store=g(Z);themeService=g(mn);loadSettings$=He(()=>this.actions$.pipe(Ue(U.loadSettings),ge(()=>this.api.getSettings()),L(t=>U.loadSettingsSuccess({settings:t}))));applyTheme$=He(()=>this.actions$.pipe(Ue(U.loadSettingsSuccess),ut(({settings:t})=>{this.themeService.applyFromSettings(t.theme)})),{dispatch:!1});saveSettings$=He(()=>this.actions$.pipe(Ue(U.updateSetting,U.toggleSettingsPanel,U.removeUrlFromHistory),Qr(500),Ke(this.store.select(fa)),ge(([,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(Hr);api=g(Pt);store=g(Z);loadJourneys$=He(()=>this.actions$.pipe(Ue(Me.loadJourneys),ge(()=>this.api.getJourneys().pipe(L(t=>Me.loadJourneysSuccess({journeys:t})),Ce(()=>se)))));persistSelection$=He(()=>this.actions$.pipe(Ue(Me.toggleJourney,Me.selectAll,Me.deselectAll),Ke(this.store.select($r)),ut(([,t])=>{this.store.dispatch(U.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));
|