@mechris3/glassbox 0.1.15 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
var Pm=Object.defineProperty,Lm=Object.defineProperties;var jm=Object.getOwnPropertyDescriptors;var id=Object.getOwnPropertySymbols;var Bm=Object.prototype.hasOwnProperty,Vm=Object.prototype.propertyIsEnumerable;var sd=(e,t,n)=>t in e?Pm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||={})Bm.call(t,n)&&sd(e,n,t[n]);if(id)for(var n of id(t))Vm.call(t,n)&&sd(e,n,t[n]);return e},C=(e,t)=>Lm(e,jm(t));var At=(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 Se=null,Yo=!1,xa=1,$m=null,Ae=Symbol("SIGNAL");function M(e){let t=Se;return Se=e,t}function Xo(){return Se}var gn={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 Zn(e){if(Yo)throw new Error("");if(Se===null)return;Se.consumerOnSignalRead(e);let t=Se.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Se.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Se.producers,n!==void 0&&n.producer===e)){Se.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Se&&(!r||Hm(o,Se)))return;let i=Jn(Se),s={producer:e,consumer:Se,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};Se.producersTail=s,t!==void 0?t.nextProducer=s:Se.producers=s,i&&ld(e,s)}function ad(){xa++}function ei(e){if(!(Jn(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===xa)){if(!e.producerMustRecompute(e)&&!Br(e)){Ko(e);return}e.producerRecomputeValue(e),Ko(e)}}function Na(e){if(e.consumers===void 0)return;let t=Yo;Yo=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Um(r)}}finally{Yo=t}}function Aa(){return Se?.consumerAllowSignalWrites!==!1}function Um(e){e.dirty=!0,Na(e),e.consumerMarkedDirty?.(e)}function Ko(e){e.dirty=!1,e.lastCleanEpoch=xa}function mn(e){return e&&cd(e),M(e)}function cd(e){e.producersTail=void 0,e.recomputing=!0}function Yn(e,t){M(t),e&&ud(e)}function ud(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Jn(e))do n=Ra(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function Br(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(ei(n),r!==n.version))return!0}return!1}function yn(e){if(Jn(e)){let t=e.producers;for(;t!==void 0;)t=Ra(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function ld(e,t){let n=e.consumersTail,r=Jn(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)ld(o.producer,o)}function Ra(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,!Jn(t)){let i=t.producers;for(;i!==void 0;)i=Ra(i)}return n}function Jn(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function ti(e){$m?.(e)}function Hm(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 ni(e,t){return Object.is(e,t)}function ri(e,t){let n=Object.create(zm);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(ei(n),Zn(n),n.value===jr)throw n.error;return n.value};return r[Ae]=n,ti(n),r}var Jo=Symbol("UNSET"),Qo=Symbol("COMPUTING"),jr=Symbol("ERRORED"),zm=C(y({},gn),{value:Jo,dirty:!0,error:null,equal:ni,kind:"computed",producerMustRecompute(e){return e.value===Jo||e.value===Qo},producerRecomputeValue(e){if(e.value===Qo)throw new Error("");let t=e.value;e.value=Qo;let n=mn(e),r,o=!1;try{r=e.computation(),M(null),o=t!==Jo&&t!==jr&&r!==jr&&e.equal(t,r)}catch(i){r=jr,e.error=i}finally{Yn(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Gm(){throw new Error}var dd=Gm;function fd(e){dd(e)}function Oa(e){dd=e}var Wm=null;function ka(e,t){let n=Object.create(oi);n.value=e,t!==void 0&&(n.equal=t);let r=()=>pd(n);return r[Ae]=n,ti(n),[r,s=>Qn(n,s),s=>Fa(n,s)]}function pd(e){return Zn(e),e.value}function Qn(e,t){Aa()||fd(e),e.equal(e.value,t)||(e.value=t,qm(e))}function Fa(e,t){Aa()||fd(e),Qn(e,t(e.value))}var oi=C(y({},gn),{equal:ni,value:void 0,kind:"signal"});function qm(e){e.version++,ad(),Na(e),Wm?.(e)}var Pa=C(y({},gn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function La(e){if(e.dirty=!1,e.version>0&&!Br(e))return;e.version++;let t=mn(e);try{e.cleanup(),e.fn()}finally{Yn(e,t)}}function P(e){return typeof e=="function"}function qt(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 ii=qt(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
|
|
2
|
-
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
3
|
-
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function vn(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ge=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 ii?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{hd(i)}catch(s){t=t??[],s instanceof ii?t=[...t,...s.errors]:t.push(s)}}if(t)throw new ii(t)}}add(t){var n;if(t&&t!==this)if(this.closed)hd(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)&&vn(n,t)}remove(t){let{_finalizers:n}=this;n&&vn(n,t),t instanceof e&&t._removeParent(this)}};ge.EMPTY=(()=>{let e=new ge;return e.closed=!0,e})();var ja=ge.EMPTY;function si(e){return e instanceof ge||e&&"closed"in e&&P(e.remove)&&P(e.add)&&P(e.unsubscribe)}function hd(e){P(e)?e():e.unsubscribe()}var rt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Kn={setTimeout(e,t,...n){let{delegate:r}=Kn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Kn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function ai(e){Kn.setTimeout(()=>{let{onUnhandledError:t}=rt;if(t)t(e);else throw e})}function Rt(){}var gd=Ba("C",void 0,void 0);function md(e){return Ba("E",void 0,e)}function yd(e){return Ba("N",e,void 0)}function Ba(e,t,n){return{kind:e,value:t,error:n}}var En=null;function Xn(e){if(rt.useDeprecatedSynchronousErrorHandling){let t=!En;if(t&&(En={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=En;if(En=null,n)throw r}}else e()}function vd(e){rt.useDeprecatedSynchronousErrorHandling&&En&&(En.errorThrown=!0,En.error=e)}var Dn=class extends ge{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,si(t)&&t.add(this)):this.destination=Jm}static create(t,n,r){return new ot(t,n,r)}next(t){this.isStopped?$a(yd(t),this):this._next(t)}error(t){this.isStopped?$a(md(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?$a(gd,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()}}},Zm=Function.prototype.bind;function Va(e,t){return Zm.call(e,t)}var Ua=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ci(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ci(r)}else ci(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ci(n)}}},ot=class extends Dn{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&&rt.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Va(t.next,i),error:t.error&&Va(t.error,i),complete:t.complete&&Va(t.complete,i)}):o=t}this.destination=new Ua(o)}};function ci(e){rt.useDeprecatedSynchronousErrorHandling?vd(e):ai(e)}function Ym(e){throw e}function $a(e,t){let{onStoppedNotification:n}=rt;n&&Kn.setTimeout(()=>n(e,t))}var Jm={closed:!0,next:Rt,error:Ym,complete:Rt};var er=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ze(e){return e}function Ed(e){return e.length===0?ze:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var B=(()=>{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=Km(n)?n:new ot(n,r,o);return Xn(()=>{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=Dd(r),new r((o,i)=>{let s=new ot({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)}[er](){return this}pipe(...n){return Ed(n)(this)}toPromise(n){return n=Dd(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 Dd(e){var t;return(t=e??rt.Promise)!==null&&t!==void 0?t:Promise}function Qm(e){return e&&P(e.next)&&P(e.error)&&P(e.complete)}function Km(e){return e&&e instanceof Dn||Qm(e)&&si(e)}function Xm(e){return P(e?.lift)}function R(e){return t=>{if(Xm(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 Vr(e,t,n,r,o)}var Vr=class extends Dn{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 bd=qt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var me=(()=>{class e extends B{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new ui(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new bd}next(n){Xn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Xn(()=>{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(){Xn(()=>{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?ja:(this.currentObservers=null,i.push(n),new ge(()=>{this.currentObservers=null,vn(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new B;return n.source=this,n}}return e.create=(t,n)=>new ui(t,n),e})(),ui=class extends me{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:ja}};var Ot=class extends me{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 $r={now(){return($r.delegate||Date).now()},delegate:void 0};var Ur=class extends me{constructor(t=1/0,n=1/0,r=$r){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 li=class extends ge{constructor(t,n){super()}schedule(t,n=0){return this}};var Hr={setInterval(e,t,...n){let{delegate:r}=Hr;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Hr;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var tr=class extends li{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 Hr.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&&Hr.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,vn(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var nr=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)}};nr.now=$r.now;var rr=class extends nr{constructor(t,n=nr.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 di=new rr(tr);var fi=class extends tr{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 pi=class extends rr{};var zr=new pi(fi);var be=new B(e=>e.complete());function wd(e){return e&&P(e.schedule)}function Ha(e){return e[e.length-1]}function hi(e){return P(Ha(e))?e.pop():void 0}function or(e){return wd(Ha(e))?e.pop():void 0}function Id(e,t){return typeof Ha(e)=="number"?e.pop():t}function _d(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 Cd(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 bn(e){return this instanceof bn?(this.v=e,this):new bn(e)}function Sd(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 bn?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 Td(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 Cd=="function"?Cd(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 gi=e=>e&&typeof e.length=="number"&&typeof e!="function";function mi(e){return P(e?.then)}function yi(e){return P(e[er])}function vi(e){return Symbol.asyncIterator&&P(e?.[Symbol.asyncIterator])}function Ei(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 ey(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Di=ey();function bi(e){return P(e?.[Di])}function wi(e){return Sd(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield bn(n.read());if(o)return yield bn(void 0);yield yield bn(r)}}finally{n.releaseLock()}})}function Ii(e){return P(e?.getReader)}function q(e){if(e instanceof B)return e;if(e!=null){if(yi(e))return ty(e);if(gi(e))return ny(e);if(mi(e))return ry(e);if(vi(e))return Md(e);if(bi(e))return oy(e);if(Ii(e))return iy(e)}throw Ei(e)}function ty(e){return new B(t=>{let n=e[er]();if(P(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ny(e){return new B(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function ry(e){return new B(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,ai)})}function oy(e){return new B(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Md(e){return new B(t=>{sy(e,t).catch(n=>t.error(n))})}function iy(e){return Md(wi(e))}function sy(e,t){var n,r,o,i;return _d(this,void 0,void 0,function*(){try{for(n=Td(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 Te(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 kt(e,t=0){return R((n,r)=>{n.subscribe(O(r,o=>Te(r,e,()=>r.next(o),t),()=>Te(r,e,()=>r.complete(),t),o=>Te(r,e,()=>r.error(o),t)))})}function Ci(e,t=0){return R((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function xd(e,t){return q(e).pipe(Ci(t),kt(t))}function Nd(e,t){return q(e).pipe(Ci(t),kt(t))}function Ad(e,t){return new B(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Rd(e,t){return new B(n=>{let r;return Te(n,t,()=>{r=e[Di](),Te(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 _i(e,t){if(!e)throw new Error("Iterable cannot be null");return new B(n=>{Te(n,t,()=>{let r=e[Symbol.asyncIterator]();Te(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Od(e,t){return _i(wi(e),t)}function kd(e,t){if(e!=null){if(yi(e))return xd(e,t);if(gi(e))return Ad(e,t);if(mi(e))return Nd(e,t);if(vi(e))return _i(e,t);if(bi(e))return Rd(e,t);if(Ii(e))return Od(e,t)}throw Ei(e)}function wn(e,t){return t?kd(e,t):q(e)}function Ft(...e){let t=or(e);return wn(e,t)}function Fd(e,t){let n=P(e)?e:()=>e,r=o=>o.error(n());return new B(t?o=>t.schedule(r,0,o):r)}var Zt=class e{constructor(t,n,r){this.kind=t,this.value=n,this.error=r,this.hasValue=t==="N"}observe(t){return za(this,t)}do(t,n,r){let{kind:o,value:i,error:s}=this;return o==="N"?t?.(i):o==="E"?n?.(s):r?.()}accept(t,n,r){var o;return P((o=t)===null||o===void 0?void 0:o.next)?this.observe(t):this.do(t,n,r)}toObservable(){let{kind:t,value:n,error:r}=this,o=t==="N"?Ft(n):t==="E"?Fd(()=>r):t==="C"?be: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}};Zt.completeNotification=new Zt("C");function za(e,t){var n,r,o;let{kind:i,value:s,error:a}=e;if(typeof i!="string")throw new TypeError('Invalid notification, missing "kind"');i==="N"?(n=t.next)===null||n===void 0||n.call(t,s):i==="E"?(r=t.error)===null||r===void 0||r.call(t,a):(o=t.complete)===null||o===void 0||o.call(t)}var Pd=qt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function ir(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new ot({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(t.defaultValue):o(new Pd)}});e.subscribe(i)})}function Ld(e){return e instanceof Date&&!isNaN(e)}var ay=qt(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n});function Ga(e,t){let{first:n,each:r,with:o=cy,scheduler:i=t??di,meta:s=null}=Ld(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=Te(c,i,()=>{try{u.unsubscribe(),q(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 cy(e){throw new ay(e)}function V(e,t){return R((n,r)=>{let o=0;n.subscribe(O(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:uy}=Array;function ly(e,t){return uy(t)?e(...t):e(t)}function jd(e){return V(t=>ly(e,t))}var{isArray:dy}=Array,{getPrototypeOf:fy,prototype:py,keys:hy}=Object;function Bd(e){if(e.length===1){let t=e[0];if(dy(t))return{args:t,keys:null};if(gy(t)){let n=hy(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function gy(e){return e&&typeof e=="object"&&fy(e)===py}function Vd(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Gr(...e){let t=or(e),n=hi(e),{args:r,keys:o}=Bd(e);if(r.length===0)return wn([],t);let i=new B(my(r,t,o?s=>Vd(o,s):ze));return n?i.pipe(jd(n)):i}function my(e,t,n=ze){return r=>{$d(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)$d(t,()=>{let u=wn(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 $d(e,t,n){e?Te(n,e,t):t()}function Ud(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;q(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?Te(t,s,()=>h(I)):h(I)}f()}catch(I){t.error(I)}}))};return e.subscribe(O(t,p,()=>{d=!0,f()})),()=>{a?.()}}function yt(e,t,n=1/0){return P(t)?yt((r,o)=>V((i,s)=>t(r,i,o,s))(q(e(r,o))),n):(typeof t=="number"&&(n=t),R((r,o)=>Ud(r,o,e,n)))}function Hd(e=1/0){return yt(ze,e)}function In(...e){let t=or(e),n=Id(e,1/0),r=e;return r.length?r.length===1?q(r[0]):Hd(n)(wn(r,t)):be}function we(e,t){return R((n,r)=>{let o=0;n.subscribe(O(r,i=>e.call(t,i,o++)&&r.next(i)))})}function $e(e){return R((t,n)=>{let r=null,o=!1,i;r=t.subscribe(O(n,void 0,void 0,s=>{i=q(e(s,$e(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function zd(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 Wr(e,t){return P(t)?yt(e,t,1):yt(e,1)}function qr(e,t=di){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 Yt(e){return e<=0?()=>be:R((t,n)=>{let r=0;t.subscribe(O(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Wa(){return R((e,t)=>{e.subscribe(O(t,Rt))})}function qa(){return R((e,t)=>{e.subscribe(O(t,n=>za(n,t)))})}function Za(e,t=ze){return e=e??yy,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 yy(e,t){return e===t}function sr(e,t){return t?n=>n.pipe(sr((r,o)=>q(e(r,o)).pipe(V((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()}),q(e(a,o++)).subscribe(i))},()=>{s=!0,!i&&r.complete()}))})}function Ya(e){return R((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Si(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 Vr(i,h=>{try{let m=e(h),b=a.get(m);if(!b){a.set(m,b=r?r():new me);let I=p(m,b);if(i.next(I),n){let L=O(b,()=>{b.complete(),L?.unsubscribe()},void 0,void 0,()=>a.delete(m));f.add(q(n(I)).subscribe(L))}}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 B(I=>{l++;let L=m.subscribe(I);return()=>{L.unsubscribe(),--l===0&&d&&f.unsubscribe()}});return b.key=h,b}})}function Ja(){return R((e,t)=>{e.subscribe(O(t,n=>{t.next(Zt.createNext(n))},()=>{t.next(Zt.createComplete()),t.complete()},n=>{t.next(Zt.createError(n)),t.complete()}))})}function Qa(){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 Ka(...e){let t=e.length;if(t===0)throw new Error("list of properties cannot be empty.");return V(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 Zr(e,t){return R(zd(e,t,arguments.length>=2,!0))}function ec(e={}){let{connector:t=()=>new me,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=Xa(h,o))}),I.subscribe(b),!s&&u>0&&(s=new ot({next:L=>I.next(L),error:L=>{d=!0,f(),a=Xa(p,n,L),I.error(L)},complete:()=>{l=!0,f(),a=Xa(p,r),I.complete()}}),q(m).subscribe(s))})(i)}}function Xa(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new ot({next:()=>{r.unsubscribe(),e()}});return q(t(...n)).subscribe(r)}function tc(e){return we((t,n)=>e<=n)}function he(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++;q(e(c,l)).subscribe(o=O(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Yr(e){return R((t,n)=>{q(e).subscribe(O(n,()=>n.complete(),Rt)),!n.closed&&t.subscribe(n)})}function it(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)}))}):ze}function Ye(...e){let t=hi(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++)q(e[c]).subscribe(O(r,u=>{i[c]=u,!a&&!s[c]&&(s[c]=!0,(a=s.every(ze))&&(s=null))},Rt));n.subscribe(O(r,c=>{if(a){let u=[c,...i];r.next(t?t(...u):u)}}))})}var nc;function Ti(){return nc}function vt(e){let t=nc;return nc=e,t}var Gd=Symbol("NotFound");function ar(e){return e===Gd||e?.name==="\u0275NotFound"}function Wd(e){let t=M(null);try{return e()}finally{M(t)}}var mc="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",x=class extends Error{code;constructor(t,n){super(Tn(t,n)),this.code=t}};function vy(e){return`NG0${Math.abs(e)}`}function Tn(e,t){return`${vy(e)}${t?": "+t:""}`}function K(e){for(let t in e)if(e[t]===K)return t;throw Error("")}function Fi(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Fi).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 yc(e,t){return e?t?`${e} ${t}`:e:t||""}var Ey=K({__forward_ref__:K});function Pi(e){return e.__forward_ref__=Pi,e}function Ue(e){return vc(e)?e():e}function vc(e){return typeof e=="function"&&e.hasOwnProperty(Ey)&&e.__forward_ref__===Pi}function S(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Bt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Li(e){return Dy(e,ji)}function Dy(e,t){return e.hasOwnProperty(t)&&e[t]||null}function by(e){let t=e?.[ji]??null;return t||null}function oc(e){return e&&e.hasOwnProperty(xi)?e[xi]:null}var ji=K({\u0275prov:K}),xi=K({\u0275inj:K}),w=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=S({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ec(e){return e&&!!e.\u0275providers}var Dc=K({\u0275cmp:K}),bc=K({\u0275dir:K}),wc=K({\u0275pipe:K});var Qr=K({\u0275fac:K}),Mn=K({__NG_ELEMENT_ID__:K}),qd=K({__NG_ENV_ID__:K});function xn(e){return Cc(e,"@Component"),e[Dc]||null}function Ic(e){return Cc(e,"@Directive"),e[bc]||null}function Qd(e){return Cc(e,"@Pipe"),e[wc]||null}function Cc(e,t){if(e==null)throw new x(-919,!1)}function no(e){return typeof e=="string"?e:e==null?"":String(e)}var Kd=K({ngErrorCode:K}),wy=K({ngErrorMessage:K}),Iy=K({ngTokenPath:K});function _c(e,t){return Xd("",-200,t)}function Bi(e,t){throw new x(-201,!1)}function Xd(e,t,n){let r=new x(t,e);return r[Kd]=t,r[wy]=e,n&&(r[Iy]=n),r}function Cy(e){return e[Kd]}var ic;function ef(){return ic}function Re(e){let t=ic;return ic=e,t}function Sc(e,t,n){let r=Li(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;Bi(e,"")}var _y={},Cn=_y,sc="__NG_DI_FLAG__",ac=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=_n(n)||0;try{return this.injector.get(t,r&8?null:Cn,r)}catch(o){if(ar(o))return o;throw o}}};function Sy(e,t=0){let n=Ti();if(n===void 0)throw new x(-203,!1);if(n===null)return Sc(e,void 0,t);{let r=Ty(t),o=n.retrieve(e,r);if(ar(o)){if(r.optional)return null;throw o}return o}}function E(e,t=0){return(ef()||Sy)(Ue(e),t)}function g(e,t){return E(e,_n(t))}function _n(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ty(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function cc(e){let t=[];for(let n=0;n<e.length;n++){let r=Ue(e[n]);if(Array.isArray(r)){if(r.length===0)throw new x(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=My(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(E(o,i))}else t.push(E(r))}return t}function tf(e,t){return e[sc]=t,e.prototype[sc]=t,e}function My(e){return e[sc]}function Jt(e,t){let n=e.hasOwnProperty(Qr);return n?e[Qr]:null}function nf(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 rf(e){return e.flat(Number.POSITIVE_INFINITY)}function Vi(e,t){e.forEach(n=>Array.isArray(n)?Vi(n,t):t(n))}function Tc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ro(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function of(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 sf(e,t,n){let r=ur(e,t);return r>=0?e[r|1]=n:(r=~r,of(e,r,t,n)),r}function $i(e,t){let n=ur(e,t);if(n>=0)return e[n|1]}function ur(e,t){return xy(e,t,1)}function xy(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 Nn={},Je=[],Xt=new w(""),Mc=new w("",-1),xc=new w(""),Kr=class{get(t,n=Cn){if(n===Cn){let o=Xd("",-201);throw o.name="\u0275NotFound",o}return n}};function Qe(e){return{\u0275providers:e}}function lr(e){return Qe([{provide:Xt,multi:!0,useValue:e}])}function af(...e){return{\u0275providers:Nc(!0,e),\u0275fromNgModule:!0}}function Nc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Vi(t,s=>{let a=s;Ni(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&cf(o,i),n}function cf(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Ac(o,i=>{t(i,r)})}}function Ni(e,t,n,r){if(e=Ue(e),!e)return!1;let o=null,i=oc(e),s=!i&&xn(e);if(!i&&!s){let c=e.ngModule;if(i=oc(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)Ni(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;Vi(i.imports,l=>{Ni(l,t,n,r)&&(u||=[],u.push(l))}),u!==void 0&&cf(u,t)}if(!a){let u=Jt(o)||(()=>new o);t({provide:o,useFactory:u,deps:Je},o),t({provide:xc,useValue:o,multi:!0},o),t({provide:Xt,useValue:()=>E(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Ac(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Ac(e,t){for(let n of e)Ec(n)&&(n=n.\u0275providers),Array.isArray(n)?Ac(n,t):t(n)}var Ny=K({provide:String,useValue:K});function uf(e){return e!==null&&typeof e=="object"&&Ny in e}function Ay(e){return!!(e&&e.useExisting)}function Ry(e){return!!(e&&e.useFactory)}function Ai(e){return typeof e=="function"}var oo=new w(""),Mi={},Zd={},rc;function io(){return rc===void 0&&(rc=new Kr),rc}var Oe=class{},Sn=class extends Oe{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,lc(t,s=>this.processProvider(s)),this.records.set(Mc,cr(void 0,this)),o.has("environment")&&this.records.set(Oe,cr(void 0,this));let i=this.records.get(oo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(xc,Je,{self:!0}))}retrieve(t,n){let r=_n(n)||0;try{return this.get(t,Cn,r)}catch(o){if(ar(o))return o;throw o}}destroy(){Jr(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 Jr(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Jr(this);let n=vt(this),r=Re(void 0),o;try{return t()}finally{vt(n),Re(r)}}get(t,n=Cn,r){if(Jr(this),t.hasOwnProperty(qd))return t[qd](this);let o=_n(r),i,s=vt(this),a=Re(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=Ly(t)&&Li(t);l&&this.injectableDefInScope(l)?u=cr(uc(t),Mi):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?io():this.parent;return n=o&8&&n===Cn?null:n,c.get(t,n)}catch(c){let u=Cy(c);throw u===-200||u===-201?new x(u,null):c}finally{Re(a),vt(s)}}resolveInjectorInitializers(){let t=M(null),n=vt(this),r=Re(void 0),o;try{let i=this.get(Xt,Je,{self:!0});for(let s of i)s()}finally{vt(n),Re(r),M(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=Ue(t);let n=Ai(t)?t:Ue(t&&t.provide),r=ky(t);if(!Ai(t)&&t.multi===!0){let o=this.records.get(n);o||(o=cr(void 0,Mi,!0),o.factory=()=>cc(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===Zd)throw _c("");return n.value===Mi&&(n.value=Zd,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Py(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{M(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Ue(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 uc(e){let t=Li(e),n=t!==null?t.factory:Jt(e);if(n!==null)return n;if(e instanceof w)throw new x(-204,!1);if(e instanceof Function)return Oy(e);throw new x(-204,!1)}function Oy(e){if(e.length>0)throw new x(-204,!1);let n=by(e);return n!==null?()=>n.factory(e):()=>new e}function ky(e){if(uf(e))return cr(void 0,e.useValue);{let t=lf(e);return cr(t,Mi)}}function lf(e,t,n){let r;if(Ai(e)){let o=Ue(e);return Jt(o)||uc(o)}else if(uf(e))r=()=>Ue(e.useValue);else if(Ry(e))r=()=>e.useFactory(...cc(e.deps||[]));else if(Ay(e))r=(o,i)=>E(Ue(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Ue(e&&(e.useClass||e.provide));if(Fy(e))r=()=>new o(...cc(e.deps));else return Jt(o)||uc(o)}return r}function Jr(e){if(e.destroyed)throw new x(-205,!1)}function cr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Fy(e){return!!e.deps}function Py(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Ly(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function lc(e,t){for(let n of e)Array.isArray(n)?lc(n,t):n&&Ec(n)?lc(n.\u0275providers,t):t(n)}function dr(e,t){let n;e instanceof Sn?(Jr(e),n=e):n=new ac(e);let r,o=vt(n),i=Re(void 0);try{return t()}finally{vt(o),Re(i)}}function df(){return ef()!==void 0||Ti()!=null}var st=0,N=1,k=2,ye=3,Ke=4,Xe=5,fr=6,pr=7,de=8,Vt=9,Et=10,se=11,hr=12,Rc=13,An=14,Ge=15,en=16,Rn=17,Dt=18,$t=19,Oc=20,Lt=21,Ui=22,Qt=23,We=24,Hi=25,tn=26,ve=27,ff=1,kc=6,nn=7,so=8,On=9,ae=10;function rn(e){return Array.isArray(e)&&typeof e[ff]=="object"}function at(e){return Array.isArray(e)&&e[ff]===!0}function Fc(e){return(e.flags&4)!==0}function Ut(e){return e.componentOffset>-1}function zi(e){return(e.flags&1)===1}function kn(e){return!!e.template}function gr(e){return(e[k]&512)!==0}function Fn(e){return(e[k]&256)===256}var pf="svg",hf="math";function et(e){for(;Array.isArray(e);)e=e[st];return e}function Pc(e,t){return et(t[e])}function ct(e,t){return et(t[e.index])}function Gi(e,t){return e.data[t]}function gf(e,t){return e[t]}function Lc(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function ut(e,t){let n=t[e];return rn(n)?n:n[st]}function mf(e){return(e[k]&4)===4}function Wi(e){return(e[k]&128)===128}function yf(e){return at(e[ye])}function bt(e,t){return t==null?null:e[t]}function jc(e){e[Rn]=0}function Bc(e){e[k]&1024||(e[k]|=1024,Wi(e)&&mr(e))}function vf(e,t){for(;e>0;)t=t[An],e--;return t}function ao(e){return!!(e[k]&9216||e[We]?.dirty)}function qi(e){e[Et].changeDetectionScheduler?.notify(8),e[k]&64&&(e[k]|=1024),ao(e)&&mr(e)}function mr(e){e[Et].changeDetectionScheduler?.notify(0);let t=Kt(e);for(;t!==null&&!(t[k]&8192||(t[k]|=8192,!Wi(t)));)t=Kt(t)}function Vc(e,t){if(Fn(e))throw new x(911,!1);e[Lt]===null&&(e[Lt]=[]),e[Lt].push(t)}function Ef(e,t){if(e[Lt]===null)return;let n=e[Lt].indexOf(t);n!==-1&&e[Lt].splice(n,1)}function Kt(e){let t=e[ye];return at(t)?t[ye]:t}function $c(e){return e[pr]??=[]}function Uc(e){return e.cleanup??=[]}function Df(e,t,n,r){let o=$c(t);o.push(n),e.firstCreatePass&&Uc(e).push(r,o.length-1)}var j={lFrame:Ff(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var dc=!1;function bf(){return j.lFrame.elementDepthCount}function wf(){j.lFrame.elementDepthCount++}function Hc(){j.lFrame.elementDepthCount--}function If(){return j.bindingsEnabled}function Cf(){return j.skipHydrationRootTNode!==null}function zc(e){return j.skipHydrationRootTNode===e}function Gc(){j.skipHydrationRootTNode=null}function $(){return j.lFrame.lView}function Me(){return j.lFrame.tView}function te(e){return j.lFrame.contextLView=e,e[de]}function ne(e){return j.lFrame.contextLView=null,e}function qe(){let e=Wc();for(;e!==null&&e.type===64;)e=e.parent;return e}function Wc(){return j.lFrame.currentTNode}function _f(){let e=j.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function yr(e,t){let n=j.lFrame;n.currentTNode=e,n.isParent=t}function qc(){return j.lFrame.isParent}function Sf(){j.lFrame.isParent=!1}function Zc(){return dc}function Xr(e){let t=dc;return dc=e,t}function Tf(){let e=j.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Mf(){return j.lFrame.bindingIndex}function xf(e){return j.lFrame.bindingIndex=e}function Pn(){return j.lFrame.bindingIndex++}function Yc(e){let t=j.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Nf(){return j.lFrame.inI18n}function Af(e,t){let n=j.lFrame;n.bindingIndex=n.bindingRootIndex=e,Zi(t)}function Rf(){return j.lFrame.currentDirectiveIndex}function Zi(e){j.lFrame.currentDirectiveIndex=e}function Of(e){let t=j.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Jc(){return j.lFrame.currentQueryIndex}function Yi(e){j.lFrame.currentQueryIndex=e}function jy(e){let t=e[N];return t.type===2?t.declTNode:t.type===1?e[Xe]:null}function Qc(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=jy(i),o===null||(i=i[An],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=j.lFrame=kf();return r.currentTNode=t,r.lView=e,!0}function Ji(e){let t=kf(),n=e[N];j.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function kf(){let e=j.lFrame,t=e===null?null:e.child;return t===null?Ff(e):t}function Ff(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 Pf(){let e=j.lFrame;return j.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Kc=Pf;function Qi(){let e=Pf();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 Lf(e){return(j.lFrame.contextLView=vf(e,j.lFrame.contextLView))[de]}function Ht(){return j.lFrame.selectedIndex}function on(e){j.lFrame.selectedIndex=e}function Ki(){let e=j.lFrame;return Gi(e.tView,e.selectedIndex)}function Xc(){return j.lFrame.currentNamespace}var jf=!0;function Xi(){return jf}function es(e){jf=e}function fc(e,t=null,n=null,r){let o=Bf(e,t,n,r);return o.resolveInjectorInitializers(),o}function Bf(e,t=null,n=null,r,o=new Set){let i=[n||Je,af(e)],s;return new Sn(i,t||io(),s||null,o)}var ke=class e{static THROW_IF_NOT_FOUND=Cn;static NULL=new Kr;static create(t,n){if(Array.isArray(t))return fc({name:""},n,t,"");{let r=t.name??"";return fc({name:r},t.parent,t.providers,r)}}static \u0275prov=S({token:e,providedIn:"any",factory:()=>E(Mc)});static __NG_ELEMENT_ID__=-1},Pe=new w(""),lt=(()=>{class e{static __NG_ELEMENT_ID__=By;static __NG_ENV_ID__=n=>n}return e})(),Ri=class extends lt{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Fn(this._lView)}onDestroy(t){let n=this._lView;return Vc(n,t),()=>Ef(n,t)}};function By(){return new Ri($())}var eu=!1,Vf=new w(""),sn=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Ot(!1);debugTaskTracker=g(Vf,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new B(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})(),pc=class extends me{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,df()&&(this.destroyRef=g(lt,{optional:!0})??void 0,this.pendingTasks=g(sn,{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 ge&&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)}})}}},Pt=pc;function Oi(...e){}function tu(e){let t,n;function r(){e=Oi;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 $f(e){return queueMicrotask(()=>e()),()=>{e=Oi}}var nu="isAngularZone",eo=nu+"_ID",Vy=0,re=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Pt(!1);onMicrotaskEmpty=new Pt(!1);onStable=new Pt(!1);onError=new Pt(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=eu}=t;if(typeof Zone>"u")throw new x(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Hy(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(nu)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new x(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new x(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,$y,Oi,Oi);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)}},$y={};function ru(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 Uy(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){tu(()=>{e.callbackScheduled=!1,hc(e),e.isCheckStableRunning=!0,ru(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),hc(e)}function Hy(e){let t=()=>{Uy(e)},n=Vy++;e._inner=e._inner.fork({name:"angular",properties:{[nu]:!0,[eo]:n,[eo+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(zy(c))return r.invokeTask(i,s,a,c);try{return Yd(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Jd(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Yd(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Gy(c)&&t(),Jd(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,hc(e),ru(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 hc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Yd(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Jd(e){e._nesting--,ru(e)}var to=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Pt;onMicrotaskEmpty=new Pt;onStable=new Pt;onError=new Pt;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 zy(e){return Uf(e,"__ignore_ng_zone__")}function Gy(e){return Uf(e,"__scheduler_tick__")}function Uf(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Fe=class{_console=console;handleError(t){this._console.error("ERROR",t)}},wt=new w("",{factory:()=>{let e=g(re),t=g(Oe),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Fe),n.handleError(r))})}}}),Hf={provide:Xt,useValue:()=>{let e=g(Fe,{optional:!0})},multi:!0};function vr(e,t){let[n,r,o]=ka(e,t?.equal),i=n,s=i[Ae];return i.set=r,i.update=o,i.asReadonly=ou.bind(i),i}function ou(){let e=this[Ae];if(e.readonlyFn===void 0){let t=()=>this();t[Ae]=e,e.readonlyFn=t}return e.readonlyFn}var ts=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Wy}return e})();function Wy(){return new ts($(),qe())}var jt=class{},Er=new w("",{factory:()=>!0});var ns=new w(""),Dr=(()=>{class e{internalPendingTasks=g(sn);scheduler=g(jt);errorHandler=g(wt);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})(),rs=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:()=>new gc})}return e})(),gc=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}},ki=class{[Ae];constructor(t){this[Ae]=t}destroy(){this[Ae].destroy()}};function co(e,t){let n=t?.injector??g(ke),r=t?.manualCleanup!==!0?n.get(lt):null,o,i=n.get(ts,null,{optional:!0}),s=n.get(jt);return i!==null?(o=Yy(i.view,s,e),r instanceof Ri&&r._lView===i.view&&(r=null)):o=Jy(e,n.get(rs),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new ki(o)}var zf=C(y({},Pa),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=Xr(!1);try{La(this)}finally{Xr(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=M(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],M(e)}}}),qy=C(y({},zf),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(yn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}}),Zy=C(y({},zf),{consumerMarkedDirty(){this.view[k]|=8192,mr(this.view),this.notifier.notify(13)},destroy(){if(yn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[Qt]?.delete(this)}});function Yy(e,t,n){let r=Object.create(Zy);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=Gf(r,n),e[Qt]??=new Set,e[Qt].add(r),r.consumerMarkedDirty(r),r}function Jy(e,t,n){let r=Object.create(qy);return r.fn=Gf(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 Gf(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}function bo(e){return{toString:e}.toString()}var os="__parameters__";function av(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function cv(e,t,n){return bo(()=>{let r=av(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(os)?c[os]:Object.defineProperty(c,os,{value:[]})[os];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 $u=tf(cv("Inject",e=>({token:e})),-1);function uv(e){return typeof e=="function"}function Dp(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var ds=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function lv(e){return e.type.prototype.ngOnChanges&&(e.setInput=fv),dv}function dv(){let e=wp(this),t=e?.current;if(t){let n=e.previous;if(n===Nn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function fv(e,t,n,r,o){let i=this.declaredInputs[r],s=wp(e)||pv(e,{previous:Nn,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new ds(u&&u.currentValue,n,c===Nn),Dp(e,t,o,n)}var bp="__ngSimpleChanges__";function wp(e){return e[bp]||null}function pv(e,t){return e[bp]=t}var Wf=[];var X=function(e,t=null,n){for(let r=0;r<Wf.length;r++){let o=Wf[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 hv(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=lv(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 gv(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 ss(e,t,n){Ip(e,t,3,n)}function as(e,t,n,r){(e[k]&3)===n&&Ip(e,t,n,r)}function iu(e,t){let n=e[k];(n&3)===t&&(n&=16383,n+=1,e[k]=n)}function Ip(e,t,n,r){let o=r!==void 0?e[Rn]&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[Rn]+=65536),(a<i||i==-1)&&(mv(e,n,t,c),e[Rn]=(e[Rn]&4294901760)+c+2),c++}function qf(e,t){X(z.LifecycleHookStart,e,t);let n=M(null);try{t.call(e)}finally{M(n),X(z.LifecycleHookEnd,e,t)}}function mv(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[Rn]>>16&&(e[k]&3)===t&&(e[k]+=16384,qf(a,i)):qf(a,i)}var wr=-1,po=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 yv(e){return(e.flags&8)!==0}function vv(e){return(e.flags&16)!==0}function Ev(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];bv(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Dv(e){return e===3||e===4||e===6}function bv(e){return e.charCodeAt(0)===64}function Cs(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?Zf(e,n,o,null,t[++r]):Zf(e,n,o,null,null))}}return e}function Zf(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 Cp(e){return e!==wr}function fs(e){return e&32767}function wv(e){return e>>16}function ps(e,t){let n=wv(e),r=t;for(;n>0;)r=r[An],n--;return r}var fu=!0;function hs(e){let t=fu;return fu=e,t}var Iv=256,_p=Iv-1,Sp=5,Cv=0,It={};function _v(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Mn)&&(r=n[Mn]),r==null&&(r=n[Mn]=Cv++);let o=r&_p,i=1<<o;t.data[e+(o>>Sp)]|=i}function Tp(e,t){let n=Mp(e,t);if(n!==-1)return n;let r=t[N];r.firstCreatePass&&(e.injectorIndex=t.length,su(r.data,e),su(t,null),su(r.blueprint,null));let o=Uu(e,t),i=e.injectorIndex;if(Cp(o)){let s=fs(o),a=ps(o,t),c=a[N].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function su(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Mp(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Uu(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=Op(o),r===null)return wr;if(n++,o=o[An],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return wr}function Sv(e,t,n){_v(e,t,n)}function xp(e,t,n){if(n&8||e!==void 0)return e;Bi(t,"NodeInjector")}function Np(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Vt],i=Re(void 0);try{return o?o.get(t,r,n&8):Sc(t,r,n&8)}finally{Re(i)}}return xp(r,t,n)}function Ap(e,t,n,r=0,o){if(e!==null){if(t[k]&2048&&!(r&2)){let s=Nv(e,t,n,r,It);if(s!==It)return s}let i=Rp(e,t,n,r,It);if(i!==It)return i}return Np(t,n,r,o)}function Rp(e,t,n,r,o){let i=Mv(n);if(typeof i=="function"){if(!Qc(t,e,r))return r&1?xp(o,n,r):Np(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Bi(n);else return s}finally{Kc()}}else if(typeof i=="number"){let s=null,a=Mp(e,t),c=wr,u=r&1?t[Ge][Xe]:null;for((a===-1||r&4)&&(c=a===-1?Uu(e,t):t[a+8],c===wr||!Jf(r,!1)?a=-1:(s=t[N],a=fs(c),t=ps(c,t)));a!==-1;){let l=t[N];if(Yf(i,a,l.data)){let d=Tv(a,t,n,s,r,u);if(d!==It)return d}c=t[a+8],c!==wr&&Jf(r,t[N].data[a+8]===u)&&Yf(i,a,t)?(s=l,a=fs(c),t=ps(c,t)):a=-1}}return o}function Tv(e,t,n,r,o,i){let s=t[N],a=s.data[e+8],c=r==null?Ut(a)&&fu:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=cs(a,s,n,c,u);return l!==null?gs(t,s,l,a,o):It}function cs(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&&kn(p)&&p.type===n)return c}return null}function gs(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof po){let a=i;if(a.resolving)throw _c("");let c=hs(a.canSeeViewProviders);a.resolving=!0;let u=s[n].type||s[n],l,d=a.injectImpl?Re(a.injectImpl):null,f=Qc(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&hv(n,s[n],t)}finally{d!==null&&Re(d),hs(c),a.resolving=!1,Kc()}}return i}function Mv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Mn)?e[Mn]:void 0;return typeof t=="number"?t>=0?t&_p:xv:t}function Yf(e,t,n){let r=1<<e;return!!(n[t+(e>>Sp)]&r)}function Jf(e,t){return!(e&2)&&!(e&1&&t)}var Ln=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Ap(this._tNode,this._lView,t,_n(r),n)}};function xv(){return new Ln(qe(),$())}function wo(e){return bo(()=>{let t=e.prototype.constructor,n=t[Qr]||pu(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Qr]||pu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function pu(e){return vc(e)?()=>{let t=pu(Ue(e));return t&&t()}:Jt(e)}function Nv(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[k]&2048&&!gr(s);){let a=Rp(i,s,n,r|2,It);if(a!==It)return a;let c=i.parent;if(!c){let u=s[Oc];if(u){let l=u.get(n,It,r&-5);if(l!==It)return l}c=Op(s),s=s[An]}i=c}return o}function Op(e){let t=e[N],n=t.type;return n===2?t.declTNode:n===1?e[Xe]:null}function Av(){return Sr(qe(),$())}function Sr(e,t){return new Tr(ct(e,t))}var Tr=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Av}return e})();function Rv(e){return e instanceof Tr?e.nativeElement:e}function Ov(){return this._results[Symbol.iterator]()}var ms=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 me}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=rf(t);(this._changesDetected=!nf(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]=Ov};function kp(e){return(e.flags&128)===128}var Hu=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(Hu||{}),Fp=new Map,kv=0;function Fv(){return kv++}function Pv(e){Fp.set(e[$t],e)}function hu(e){Fp.delete(e[$t])}var Qf="__ngContext__";function Ir(e,t){rn(t)?(e[Qf]=t[$t],Pv(t)):e[Qf]=t}function Pp(e){return jp(e[hr])}function Lp(e){return jp(e[Ke])}function jp(e){for(;e!==null&&!at(e);)e=e[Ke];return e}var Lv;function zu(e){Lv=e}var _s=new w("",{factory:()=>jv}),jv="ng";var Ss=new w(""),Io=new w("",{providedIn:"platform",factory:()=>"unknown"});var Co=new w("",{factory:()=>g(Pe).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Bp="r";var Vp="di";var $p=!1,Up=new w("",{factory:()=>$p});var Kf=new WeakMap;function Bv(e,t){if(e==null||typeof e!="object")return;let n=Kf.get(e);n||(n=new WeakSet,Kf.set(e,n)),n.add(t)}var Vv=(e,t,n,r)=>{};function $v(e,t,n,r){Vv(e,t,n,r)}function Gu(e){return(e.flags&32)===32}var Uv=()=>null;function Hp(e,t,n=!1){return Uv(e,t,n)}function zp(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];Yi(i),a.contentQueries(2,t[s],s)}}}finally{M(r)}}}function gu(e,t,n){Yi(0);let r=M(null);try{t(e,n)}finally{M(r)}}function Gp(e,t,n){if(Fc(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 ft=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(ft||{});var mu=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${mc})`}};function Wp(e){return e instanceof mu?e.changingThisBreaksApplicationSecurity:e}function Hv(e,t){return e.createText(t)}function zv(e,t,n){e.setValue(t,n)}function qp(e,t,n){return e.createElement(t,n)}function ys(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Zp(e,t,n){e.appendChild(t,n)}function Xf(e,t,n,r,o){r!==null?ys(e,t,n,r,o):Zp(e,t,n)}function Yp(e,t,n,r){e.removeChild(null,t,n,r)}function Gv(e,t,n){e.setAttribute(t,"style",n)}function Wv(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Jp(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Ev(e,t,r),o!==null&&Wv(e,t,o),i!==null&&Gv(e,t,i)}function qv(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 Qp="ng-template";function Zv(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&qv(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Wu(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 Wu(e){return e.type===4&&e.value!==Qp}function Yv(e,t,n){let r=e.type===4&&!n?Qp:e.value;return t===r}function Jv(e,t,n){let r=4,o=e.attrs,i=o!==null?Xv(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!dt(r)&&!dt(c))return!1;if(s&&dt(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!Yv(e,c,n)||c===""&&t.length===1){if(dt(r))return!1;s=!0}}else if(r&8){if(o===null||!Zv(e,o,c,n)){if(dt(r))return!1;s=!0}}else{let u=t[++a],l=Qv(c,o,Wu(e),n);if(l===-1){if(dt(r))return!1;s=!0;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(dt(r))return!1;s=!0}}}}return dt(r)||s}function dt(e){return(e&1)===0}function Qv(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 eE(t,e)}function Kv(e,t,n=!1){for(let r=0;r<t.length;r++)if(Jv(e,t[r],n))return!0;return!1}function Xv(e){for(let t=0;t<e.length;t++){let n=e[t];if(Dv(n))return t}return e.length}function eE(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 ep(e,t){return e?":not("+t.trim()+")":t}function tE(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!==""&&!dt(s)&&(t+=ep(i,o),o=""),r=s,i=i||!dt(r);n++}return o!==""&&(t+=ep(i,o)),t}function nE(e){return e.map(tE).join(",")}function rE(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(!dt(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var tt={};function qu(e,t,n,r,o,i,s,a,c,u,l){let d=ve+r,f=d+o,p=oE(d,f),h=typeof u=="function"?u():u;return p[N]={type:e,blueprint:p,template:n,queries:null,viewQuery:a,declTNode:t,data:p.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:!1,ssrId:l}}function oE(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:tt);return n}function iE(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=qu(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Zu(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[st]=o,d[k]=r|4|128|8|64|1024,(u!==null||e&&e[k]&2048)&&(d[k]|=2048),jc(d),d[ye]=d[An]=e,d[de]=n,d[Et]=s||e&&e[Et],d[se]=a||e&&e[se],d[Vt]=c||e&&e[Vt]||null,d[Xe]=i,d[$t]=Fv(),d[fr]=l,d[Oc]=u,d[Ge]=t.type==2?e[Ge]:d,d}function sE(e,t,n){let r=ct(t,e),o=iE(n),i=e[Et].rendererFactory,s=Yu(e,Zu(e,o,null,Kp(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Kp(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Xp(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 Yu(e,t){return e[hr]?e[Rc][Ke]=t:e[hr]=t,e[Rc]=t,t}function T(e=1){eh(Me(),$(),Ht()+e,!1)}function eh(e,t,n,r){if(!r)if((t[k]&3)===3){let i=e.preOrderCheckHooks;i!==null&&ss(t,i,n)}else{let i=e.preOrderHooks;i!==null&&as(t,i,0,n)}on(n)}var Ts=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Ts||{});function yu(e,t,n,r){let o=M(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Ts.SignalBased)!==0&&(c=t[i][Ae]),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):Dp(t,c,i,r)}finally{M(o)}}var Ct=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Ct||{}),aE;function Ju(e,t){return aE(e,t)}var jR=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var vu=new WeakMap,uo=new WeakSet;function cE(e,t){let n=vu.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),uo.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 uE(e,t){let n=vu.get(e);n?n.includes(t)||n.push(t):vu.set(e,[t])}var jn=new Set,Qu=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Qu||{}),cn=new w(""),tp=new Set;function $n(e){tp.has(e)||(tp.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var th=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})();var nh=new w("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:g(Oe)})});function rh(e,t,n){let r=e.get(nh);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 lE(e,t){let n=e.get(nh);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function dE(e,t){for(let[n,r]of t)rh(e,r.animateFns)}function np(e,t,n,r){let o=e?.[tn]?.enter;t!==null&&o&&o.has(n.index)&&dE(r,o)}function br(e,t,n,r,o,i,s,a){if(o!=null){let c,u=!1;at(o)?c=o:rn(o)&&(u=!0,o=o[st]);let l=et(o);e===0&&r!==null?(np(a,r,i,n),s==null?Zp(t,r,l):ys(t,r,l,s||null,!0)):e===1&&r!==null?(np(a,r,i,n),ys(t,r,l,s||null,!0),cE(i,l)):e===2?(a?.[tn]?.leave?.has(i.index)&&uE(i,l),uo.delete(l),rp(a,i,n,d=>{if(uo.has(l)){uo.delete(l);return}Yp(t,l,u,d)})):e===3&&(uo.delete(l),rp(a,i,n,()=>{t.destroyNode(l)})),c!=null&&CE(t,e,n,c,i,r,s)}}function fE(e,t){oh(e,t),t[st]=null,t[Xe]=null}function pE(e,t,n,r,o,i){r[st]=o,r[Xe]=t,xs(e,r,n,1,o,i)}function oh(e,t){t[Et].changeDetectionScheduler?.notify(9),xs(e,t,t[se],2,null,null)}function hE(e){let t=e[hr];if(!t)return au(e[N],e);for(;t;){let n=null;if(rn(t))n=t[hr];else{let r=t[ae];r&&(n=r)}if(!n){for(;t&&!t[Ke]&&t!==e;)rn(t)&&au(t[N],t),t=t[ye];t===null&&(t=e),rn(t)&&au(t[N],t),n=t&&t[Ke]}t=n}}function Ku(e,t){let n=e[On],r=n.indexOf(t);n.splice(r,1)}function Ms(e,t){if(Fn(t))return;let n=t[se];n.destroyNode&&xs(e,t,n,3,null,null),hE(t)}function au(e,t){if(Fn(t))return;let n=M(null);try{t[k]&=-129,t[k]|=256,t[We]&&yn(t[We]),yE(e,t),mE(e,t),t[N].type===1&&t[se].destroy();let r=t[en];if(r!==null&&at(t[ye])){r!==t[ye]&&Ku(r,t);let o=t[Dt];o!==null&&o.detachView(e)}hu(t)}finally{M(n)}}function rp(e,t,n,r){let o=e?.[tn];if(o==null||o.leave==null||!o.leave.has(t.index))return r(!1);e&&jn.add(e[$t]),rh(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),gE(e,r)}else e&&jn.delete(e[$t]),r(!1)},o)}function gE(e,t){let n=e[tn]?.running;if(n){n.then(()=>{e[tn].running=void 0,jn.delete(e[$t]),t(!0)});return}t(!1)}function mE(e,t){let n=e.cleanup,r=t[pr];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[pr]=null);let o=t[Lt];if(o!==null){t[Lt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Qt];if(i!==null){t[Qt]=null;for(let s of i)s.destroy()}}function yE(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 po)){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];X(z.LifecycleHookStart,a,c);try{c.call(a)}finally{X(z.LifecycleHookEnd,a,c)}}else{X(z.LifecycleHookStart,o,i);try{i.call(o)}finally{X(z.LifecycleHookEnd,o,i)}}}}}function vE(e,t,n){return EE(e,t.parent,n)}function EE(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[st];if(Ut(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===ft.None||o===ft.Emulated)return null}return ct(r,n)}function DE(e,t,n){return wE(e,t,n)}function bE(e,t,n){return e.type&40?ct(e,n):null}var wE=bE,op;function Xu(e,t,n,r){let o=vE(e,r,t),i=t[se],s=r.parent||t[Xe],a=DE(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Xf(i,o,n[c],a,!1);else Xf(i,o,n,a,!1);op!==void 0&&op(i,r,t,n,o)}function lo(e,t){if(t!==null){let n=t.type;if(n&3)return ct(t,e);if(n&4)return Eu(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return lo(e,r);{let o=e[t.index];return at(o)?Eu(-1,o):et(o)}}else{if(n&128)return lo(e,t.next);if(n&32)return Ju(t,e)()||et(e[t.index]);{let r=ih(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Kt(e[Ge]);return lo(o,r)}else return lo(e,t.next)}}}return null}function ih(e,t){if(t!==null){let r=e[Ge][Xe],o=t.projection;return r.projection[o]}return null}function Eu(e,t){let n=ae+e+1;if(n<t.length){let r=t[n],o=r[N].firstChild;if(o!==null)return lo(r,o)}return t[nn]}function el(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Vt];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&Ir(et(c),r),n.flags|=2),!Gu(n))if(u&8)el(e,t,n.child,r,o,i,!1),br(t,e,a,o,c,n,i,r);else if(u&32){let l=Ju(n,r),d;for(;d=l();)br(t,e,a,o,d,n,i,r);br(t,e,a,o,c,n,i,r)}else u&16?IE(e,t,r,n,o,i):br(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function xs(e,t,n,r,o,i){el(n,r,e.firstChild,t,o,i,!1)}function IE(e,t,n,r,o,i){let s=n[Ge],c=s[Xe].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];br(t,e,n[Vt],o,l,r,i,n)}else{let u=c,l=s[ye];kp(r)&&(u.flags|=128),el(e,t,u,l,o,i,!0)}}function CE(e,t,n,r,o,i,s){let a=r[nn],c=et(r);a!==c&&br(t,e,n,i,a,o,s);for(let u=ae;u<r.length;u++){let l=r[u];xs(l[N],l,e,t,i,a)}}function _E(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Ct.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Ct.Important),e.setStyle(n,r,o,i))}}function sh(e,t,n,r,o){let i=Ht(),s=r&2;try{on(-1),s&&t.length>ve&&eh(e,t,ve,!1);let a=s?z.TemplateUpdateStart:z.TemplateCreateStart;X(a,o,n),n(r,o)}finally{on(i);let a=s?z.TemplateUpdateEnd:z.TemplateCreateEnd;X(a,o,n)}}function ah(e,t,n){RE(e,t,n),(n.flags&64)===64&&OE(e,t,n)}function tl(e,t,n=ct){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 SE(e,t,n,r){let i=r.get(Up,$p)||n===ft.ShadowDom||n===ft.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);if(s.tagName.toLowerCase()==="script")throw new x(905,!1);return TE(s),s}function TE(e){ME(e)}var ME=()=>null;function xE(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function NE(e,t,n,r,o,i){let s=t[N];if(nl(e,s,t,n,r)){Ut(e)&&AE(t,e.index);return}e.type&3&&(n=xE(n)),ch(e,t,n,r,o,i)}function ch(e,t,n,r,o,i){if(e.type&3){let s=ct(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function AE(e,t){let n=ut(t,e);n[k]&16||(n[k]|=64)}function RE(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Ut(n)&&sE(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Tp(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=gs(t,e,s,n);if(Ir(c,t),i!==null&&jE(t,s-r,c,a,n,i),kn(a)){let u=ut(n.index,t);u[de]=gs(t,e,s,n)}}}function OE(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Rf();try{on(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Zi(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&kE(c,u)}}finally{on(-1),Zi(s)}}function kE(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function FE(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Kv(t,i.selectors,!1)&&(r??=[],kn(i)?r.unshift(i):r.push(i))}return r}function PE(e,t,n,r,o,i){let s=ct(e,t);LE(t[se],s,i,e.value,n,r,o)}function LE(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?no(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function jE(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];yu(r,n,c,u)}}function uh(e,t,n,r,o){let i=ve+n,s=t[N],a=o(s,t,e,r,n);t[i]=a,yr(e,!0);let c=e.type===2;return c?(Jp(t[se],a,e),(bf()===0||zi(e))&&Ir(a,t),wf()):Ir(a,t),Xi()&&(!c||!Gu(e))&&Xu(s,t,a,e),e}function lh(e){let t=e;return qc()?Sf():(t=t.parent,yr(t,!1)),t}function BE(e,t){let n=e[Vt];if(!n)return;let r;try{r=n.get(wt,null)}catch(o){r=null}r?.(t)}function nl(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];yu(d,n[u],l,o),a=!0}if(i)for(let c of i){let u=n[c],l=t.data[c];yu(l,u,r,o),a=!0}return a}function VE(e,t){let n=ut(t,e),r=n[N];$E(r,n);let o=n[st];o!==null&&n[fr]===null&&(n[fr]=Hp(o,n[Vt])),X(z.ComponentStart);try{rl(r,n,n[de])}finally{X(z.ComponentEnd,n[de])}}function $E(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function rl(e,t,n){Ji(t);try{let r=e.viewQuery;r!==null&&gu(1,r,n);let o=e.template;o!==null&&sh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Dt]?.finishViewCreation(e),e.staticContentQueries&&zp(e,t),e.staticViewQueries&&gu(2,e.viewQuery,n);let i=e.components;i!==null&&UE(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[k]&=-5,Qi()}}function UE(e,t){for(let n=0;n<t.length;n++)VE(e,t[n])}function Ns(e,t,n,r){let o=M(null);try{let i=t.tView,a=e[k]&4096?4096:16,c=Zu(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[en]=u;let l=e[Dt];return l!==null&&(c[Dt]=l.createEmbeddedView(i)),rl(i,c,n),c}finally{M(o)}}function ho(e,t){return!t||t.firstChild===null||kp(e)}function go(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(et(i)),at(i)&&dh(i,r);let s=n.type;if(s&8)go(e,t,n.child,r);else if(s&32){let a=Ju(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=ih(t,n);if(Array.isArray(a))r.push(...a);else{let c=Kt(t[Ge]);go(c[N],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function dh(e,t){for(let n=ae;n<e.length;n++){let r=e[n],o=r[N].firstChild;o!==null&&go(r[N],r,o,t)}e[nn]!==e[st]&&t.push(e[nn])}function fh(e){if(e[Hi]!==null){for(let t of e[Hi])t.impl.addSequence(t);e[Hi].length=0}}var ph=[];function HE(e){return e[We]??zE(e)}function zE(e){let t=ph.pop()??Object.create(WE);return t.lView=e,t}function GE(e){e.lView[We]!==e&&(e.lView=null,ph.push(e))}var WE=C(y({},gn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{mr(e.lView)},consumerOnSignalRead(){this.lView[We]=this}});function qE(e){let t=e[We]??Object.create(ZE);return t.lView=e,t}var ZE=C(y({},gn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Kt(e.lView);for(;t&&!hh(t[N]);)t=Kt(t);t&&Bc(t)},consumerOnSignalRead(){this.lView[We]=this}});function hh(e){return e.type!==2}function gh(e){if(e[Qt]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Qt])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[k]&8192)}}var YE=100;function mh(e,t=0){let r=e[Et].rendererFactory,o=!1;o||r.begin?.();try{JE(e,t)}finally{o||r.end?.()}}function JE(e,t){let n=Zc();try{Xr(!0),Du(e,t);let r=0;for(;ao(e);){if(r===YE)throw new x(103,!1);r++,Du(e,1)}}finally{Xr(n)}}function QE(e,t,n,r){if(Fn(t))return;let o=t[k],i=!1,s=!1;Ji(t);let a=!0,c=null,u=null;i||(hh(e)?(u=HE(t),c=mn(u)):Xo()===null?(a=!1,u=qE(t),c=mn(u)):t[We]&&(yn(t[We]),t[We]=null));try{jc(t),xf(e.bindingStartIndex),n!==null&&sh(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let p=e.preOrderCheckHooks;p!==null&&ss(t,p,null)}else{let p=e.preOrderHooks;p!==null&&as(t,p,0,null),iu(t,0)}if(s||KE(t),gh(t),yh(t,0),e.contentQueries!==null&&zp(e,t),!i)if(l){let p=e.contentCheckHooks;p!==null&&ss(t,p)}else{let p=e.contentHooks;p!==null&&as(t,p,1),iu(t,1)}eD(e,t);let d=e.components;d!==null&&Eh(t,d,0);let f=e.viewQuery;if(f!==null&&gu(2,f,r),!i)if(l){let p=e.viewCheckHooks;p!==null&&ss(t,p)}else{let p=e.viewHooks;p!==null&&as(t,p,2),iu(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ui]){for(let p of t[Ui])p();t[Ui]=null}i||(fh(t),t[k]&=-73)}catch(l){throw i||mr(t),l}finally{u!==null&&(Yn(u,c),a&&GE(u)),Qi()}}function yh(e,t){for(let n=Pp(e);n!==null;n=Lp(n))for(let r=ae;r<n.length;r++){let o=n[r];vh(o,t)}}function KE(e){for(let t=Pp(e);t!==null;t=Lp(t)){if(!(t[k]&2))continue;let n=t[On];for(let r=0;r<n.length;r++){let o=n[r];Bc(o)}}}function XE(e,t,n){X(z.ComponentStart);let r=ut(t,e);try{vh(r,n)}finally{X(z.ComponentEnd,r[de])}}function vh(e,t){Wi(e)&&Du(e,t)}function Du(e,t){let r=e[N],o=e[k],i=e[We],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Br(i)),s||=!1,i&&(i.dirty=!1),e[k]&=-9217,s)QE(r,e,r.template,e[de]);else if(o&8192){let a=M(null);try{gh(e),yh(e,1);let c=r.components;c!==null&&Eh(e,c,1),fh(e)}finally{M(a)}}}function Eh(e,t,n){for(let r=0;r<t.length;r++)XE(e,t[r],n)}function eD(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)on(~o);else{let i=o,s=n[++r],a=n[++r];Af(s,i);let c=t[i];X(z.HostBindingsUpdateStart,c);try{a(2,c)}finally{X(z.HostBindingsUpdateEnd,c)}}}}finally{on(-1)}}function ol(e,t){let n=Zc()?64:1088;for(e[Et].changeDetectionScheduler?.notify(t);e;){e[k]|=n;let r=Kt(e);if(gr(e)&&!r)return e;e=r}return null}function Dh(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function bh(e,t){let n=ae+t;if(n<e.length)return e[n]}function As(e,t,n,r=!0){let o=t[N];if(tD(o,t,e,n),r){let s=Eu(n,e),a=t[se],c=a.parentNode(e[nn]);c!==null&&pE(o,e[Xe],a,t,c,s)}let i=t[fr];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function wh(e,t){let n=mo(e,t);return n!==void 0&&Ms(n[N],n),n}function mo(e,t){if(e.length<=ae)return;let n=ae+t,r=e[n];if(r){let o=r[en];o!==null&&o!==e&&Ku(o,r),t>0&&(e[n-1][Ke]=r[Ke]);let i=ro(e,ae+t);fE(r[N],r);let s=i[Dt];s!==null&&s.detachView(i[N]),r[ye]=null,r[Ke]=null,r[k]&=-129}return r}function tD(e,t,n,r){let o=ae+r,i=n.length;r>0&&(n[o-1][Ke]=t),r<i-ae?(t[Ke]=n[o],Tc(n,ae+r,t)):(n.push(t),t[Ke]=null),t[ye]=n;let s=t[en];s!==null&&n!==s&&Ih(s,t);let a=t[Dt];a!==null&&a.insertView(e),qi(t),t[k]|=128}function Ih(e,t){let n=e[On],r=t[ye];if(rn(r))e[k]|=2;else{let o=r[ye][Ge];t[Ge]!==o&&(e[k]|=2)}n===null?e[On]=[t]:n.push(t)}var an=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[N];return go(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[de]}set context(t){this._lView[de]=t}get destroyed(){return Fn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ye];if(at(t)){let n=t[so],r=n?n.indexOf(this):-1;r>-1&&(mo(t,r),ro(n,r))}this._attachedToViewContainer=!1}Ms(this._lView[N],this._lView)}onDestroy(t){Vc(this._lView,t)}markForCheck(){ol(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[k]&=-129}reattach(){qi(this._lView),this._lView[k]|=128}detectChanges(){this._lView[k]|=1024,mh(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new x(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=gr(this._lView),n=this._lView[en];n!==null&&!t&&Ku(n,this._lView),oh(this._lView[N],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new x(902,!1);this._appRef=t;let n=gr(this._lView),r=this._lView[en];r!==null&&!n&&Ih(r,this._lView),qi(this._lView)}};var Cr=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=nD;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=Ns(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new an(i)}}return e})();function nD(){return il(qe(),$())}function il(e,t){return e.type&4?new Cr(t,e,Sr(e,t)):null}function Rs(e,t,n,r,o){let i=e.data[t];if(i===null)i=rD(e,t,n,r,o),Nf()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=_f();i.injectorIndex=s===null?-1:s.injectorIndex}return yr(i,!0),i}function rD(e,t,n,r,o){let i=Wc(),s=qc(),a=s?i:i&&i.parent,c=e.data[t]=iD(e,a,n,t,r,o);return oD(e,c,i,s),c}function oD(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 iD(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Cf()&&(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:Xc(),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 sD(e){let t=e[kc]??[],r=e[ye][se],o=[];for(let i of t)i.data[Vp]!==void 0?o.push(i):aD(i,r);e[kc]=o}function aD(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Bp];for(;n<o;){let i=r.nextSibling;Yp(t,r,!1),r=i,n++}}}var cD=()=>null,uD=()=>null;function bu(e,t){return cD(e,t)}function Ch(e,t,n){return uD(e,t,n)}var _h=class{},Os=class{},wu=class{resolveComponentFactory(t){throw new x(917,!1)}},ks=class{static NULL=new wu},Bn=class{};var Sh=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:()=>null})}return e})();var us={},Iu=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,us,r);return o!==us||n===us?o:this.parentInjector.get(t,n,r)}};function vs(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=yc(o,a);else if(i==2){let c=a,u=t[++s];r=yc(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function oe(e,t=0){let n=$();if(n===null)return E(e,t);let r=qe();return Ap(r,n,Ue(e),t)}function lD(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}pD(e,t,n,a,i,c,u)}i!==null&&r!==null&&dD(n,r,i)}function dD(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new x(-301,!1);r.push(t[o],i)}}function fD(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function pD(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&&kn(p)&&(c=p,fD(e,n,f)),Sv(Tp(n,t),e,p.type)}ED(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=Xp(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let f=0;f<a;f++){let p=r[f];if(n.mergedAttrs=Cs(n.mergedAttrs,p.hostAttrs),gD(e,n,t,d,p),vD(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++}hD(e,n,i)}function hD(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))ip(0,t,o,r),ip(1,t,o,r),ap(t,r,!1);else{let i=n.get(o);sp(0,t,i,r),sp(1,t,i,r),ap(t,r,!0)}}}function ip(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),Th(t,i)}}function sp(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),Th(t,s)}}function Th(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function ap(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Wu(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 gD(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Jt(o.type,!0)),s=new po(i,kn(o),oe,null);e.blueprint[r]=s,n[r]=s,mD(e,t,r,Xp(e,n,o.hostVars,tt),o)}function mD(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;yD(s)!=a&&s.push(a),s.push(n,r,i)}}function yD(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function vD(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;kn(t)&&(n[""]=e)}}function ED(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Mh(e,t,n,r,o,i,s,a){let c=t[N],u=c.consts,l=bt(u,s),d=Rs(c,e,n,r,l);return i&&lD(c,t,d,bt(u,a),o),d.mergedAttrs=Cs(d.mergedAttrs,d.attrs),d.attrs!==null&&vs(d,d.attrs,!1),d.mergedAttrs!==null&&vs(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function xh(e,t){gv(e,t),Fc(t)&&e.queries.elementEnd(t)}function DD(e,t,n,r,o,i){let s=t.consts,a=bt(s,o),c=Rs(t,e,n,r,a);if(c.mergedAttrs=Cs(c.mergedAttrs,c.attrs),i!=null){let u=bt(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1)}return c.attrs!==null&&vs(c,c.attrs,!1),c.mergedAttrs!==null&&vs(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function bD(e,t,n){return e[t]=n}function _t(e,t,n){if(n===tt)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function wD(e,t,n,r){let o=_t(e,t,n);return _t(e,t+1,r)||o}function ls(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&Bv(o,i);let s=Ut(e)?ut(e.index,t):t;ol(s,5);let a=t[de],c=cp(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=cp(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function cp(e,t,n,r){let o=M(null);try{return X(z.OutputStart,t,n),n(r)!==!1}catch(i){return BE(e,i),!1}finally{X(z.OutputEnd,t,n),M(o)}}function Nh(e,t,n,r,o,i,s,a){let c=zi(e),u=!1,l=null;if(!r&&c&&(l=CD(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=!0}else{let d=ct(e,n),f=r?r(d):d;$v(n,f,i,a),r||(a.__ngNativeEl__=d);let p=o.listen(f,i,a);if(!ID(i)){let h=r?m=>r(et(m[e.index])):e.index;Ah(h,t,n,i,a,p,!1)}}return u}function ID(e){return e.startsWith("animation")||e.startsWith("transition")}function CD(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[pr],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Ah(e,t,n,r,o,i,s){let a=t.firstCreatePass?Uc(t):null,c=$c(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1))}function up(e,t,n,r,o,i){let s=t[n],a=t[N],u=a.data[n].outputs[r],d=s[u].subscribe(i);Ah(e.index,a,t,o,i,d,!0)}var Cu=Symbol("BINDING");function Rh(e){return e.debugInfo?.className||e.type.name||null}var _u=class extends ks{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=xn(t);return new yo(n,this.ngModule)}};function _D(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Ts.SignalBased)!==0};return o&&(i.transform=o),i})}function SD(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function TD(e,t,n){let r=t instanceof Oe?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Iu(n,r):n}function MD(e){let t=e.get(Bn,null);if(t===null)throw new x(407,!1);let n=e.get(Sh,null),r=e.get(jt,null),o=e.get(cn,null,{optional:!0});return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:o}}function xD(e,t){let n=Oh(e);return qp(t,n,n==="svg"?pf:n==="math"?hf:null)}function Oh(e){return(e.selectors[0][0]||"div").toLowerCase()}var yo=class extends Os{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=_D(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=SD(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=nE(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){X(z.DynamicComponentStart);let a=M(null);try{let c=this.componentDef,u=TD(c,o||this.ngModule,t),l=MD(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(Rh(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=ND(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?SE(u,o,a.encapsulation,n):xD(a,u),d=s?.some(lp)||i?.some(h=>typeof h!="function"&&h.bindings.some(lp)),f=Zu(null,c,null,512|Kp(a),null,null,t,u,n,null,Hp(l,n,!0));f[ve]=l,Ji(f);let p=null;try{let h=Mh(ve,f,2,"#host",()=>c.directiveRegistry,!0,0);Jp(u,l,h),Ir(l,f),ah(c,f,h),Gp(c,h,f),xh(c,h),r!==void 0&&RD(h,this.ngContentSelectors,r),p=ut(h.index,f),f[de]=p[de],rl(c,f,null)}catch(h){throw p!==null&&hu(p),hu(f),h}finally{X(z.DynamicComponentEnd),Qi()}return new Es(this.componentType,f,!!d)}};function ND(e,t,n,r){let o=e?["ng-version","21.2.17"]:rE(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[Cu].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[Cu].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=Ic(d);c.push(f)}return qu(0,null,AD(i,s),1,a,c,null,null,null,[o],null)}function AD(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 lp(e){let t=e[Cu].kind;return t==="input"||t==="twoWay"}var Es=class extends _h{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Gi(n[N],ve),this.location=Sr(this._tNode,n),this.instance=ut(this._tNode.index,n)[de],this.hostView=this.changeDetectorRef=new an(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=nl(r,o[N],o,t,n);this.previousInputValues.set(t,n);let s=ut(r.index,o);ol(s,1)}get injector(){return new Ln(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function RD(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 _o=(()=>{class e{static __NG_ELEMENT_ID__=OD}return e})();function OD(){let e=qe();return kh(e,$())}var Su=class e extends _o{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Sr(this._hostTNode,this._hostLView)}get injector(){return new Ln(this._hostTNode,this._hostLView)}get parentInjector(){let t=Uu(this._hostTNode,this._hostLView);if(Cp(t)){let n=ps(t,this._hostLView),r=fs(t),o=n[N].data[r+8];return new Ln(o,n)}else return new Ln(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=dp(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ae}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=bu(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,ho(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!uv(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 yo(xn(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let I=(c?d:this.parentInjector).get(Oe,null);I&&(i=I)}let f=xn(l.componentType??{}),p=bu(this._lContainer,f?.id??null),h=p?.firstChild??null,m=l.create(d,o,h,i,s,a);return this.insertImpl(m.hostView,u,ho(this._hostTNode,p)),m}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(yf(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[ye],u=new e(c,c[Xe],c[ye]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return As(s,o,i,r),t.attachToViewContainerRef(),Tc(cu(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=dp(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=mo(this._lContainer,n);r&&(ro(cu(this._lContainer),n),Ms(r[N],r))}detach(t){let n=this._adjustIndex(t,-1),r=mo(this._lContainer,n);return r&&ro(cu(this._lContainer),n)!=null?new an(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function dp(e){return e[so]}function cu(e){return e[so]||(e[so]=[])}function kh(e,t){let n,r=t[e.index];return at(r)?n=r:(n=Dh(r,t,null,e),t[e.index]=n,Yu(t,n)),FD(n,t,e,r),new Su(n,e,t)}function kD(e,t){let n=e[se],r=n.createComment(""),o=ct(t,e),i=n.parentNode(o);return ys(n,i,r,n.nextSibling(o),!1),r}var FD=jD,PD=()=>!1;function LD(e,t,n){return PD(e,t,n)}function jD(e,t,n,r){if(e[nn])return;let o;n.type&8?o=et(r):o=kD(t,n),e[nn]=o}var Tu=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Mu=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++)sl(t,n).matches!==null&&this.queries[n].setDirty()}},xu=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=WD(t):this.predicate=t}},Nu=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)}},Au=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,BD(n,i)),this.matchTNodeWithReadOption(t,n,cs(n,t,i,!1,!1))}else r===Cr?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,cs(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Tr||o===_o||o===Cr&&n.type&4)this.addMatch(n.index,-2);else{let i=cs(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 BD(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 VD(e,t){return e.type&11?Sr(e,t):e.type&4?il(e,t):null}function $D(e,t,n,r){return n===-1?VD(t,e):n===-2?UD(e,t,r):gs(e,e[N],n,t)}function UD(e,t,n){if(n===Tr)return Sr(t,e);if(n===Cr)return il(t,e);if(n===_o)return kh(t,e)}function Fh(e,t,n,r){let o=t[Dt].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($D(t,l,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function Ru(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Fh(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=ae;d<l.length;d++){let f=l[d];f[en]===f[ye]&&Ru(f[N],f,u,r)}if(l[On]!==null){let d=l[On];for(let f=0;f<d.length;f++){let p=d[f];Ru(p[N],p,u,r)}}}}}return r}function HD(e,t){return e[Dt].queries[t].queryList}function zD(e,t,n){let r=new ms((n&4)===4);return Df(e,t,r,r.destroy),(t[Dt]??=new Mu).queries.push(new Tu(r))-1}function GD(e,t,n){let r=Me();return r.firstCreatePass&&(qD(r,new xu(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),zD(r,$(),t)}function WD(e){return e.split(",").map(t=>t.trim())}function qD(e,t,n){e.queries===null&&(e.queries=new Nu),e.queries.track(new Au(t,n))}function sl(e,t){return e.queries.getByIndex(t)}function ZD(e,t){let n=e[N],r=sl(n,t);return r.crossesNgTemplate?Ru(n,e,t,[]):Fh(n,e,r,t)}var vo=class{};var Eo=class extends vo{injector;componentFactoryResolver=new _u(this);instance=null;constructor(t){super();let n=new Sn([...t.providers,{provide:vo,useValue:this},{provide:ks,useValue:this.componentFactoryResolver}],t.parent||io(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Ph(e,t,n=null){return new Eo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var YD=(()=>{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=Nc(!1,n.type),o=r.length>0?Ph([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(E(Oe))})}return e})();function Ie(e){return bo(()=>{let t=XD(e),n=C(y({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Hu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(YD).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||ft.Emulated,styles:e.styles||Je,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&$n("NgStandalone"),eb(n);let r=e.dependencies;return n.directiveDefs=fp(r,JD),n.pipeDefs=fp(r,Qd),n.id=tb(n),n})}function JD(e){return xn(e)||Ic(e)}function un(e){return bo(()=>({type:e.type,bootstrap:e.bootstrap||Je,declarations:e.declarations||Je,imports:e.imports||Je,exports:e.exports||Je,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function QD(e,t){if(e==null)return Nn;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=Ts.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function KD(e){if(e==null)return Nn;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function al(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 XD(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||Nn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Je,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:QD(e.inputs,t),outputs:KD(e.outputs),debugInfo:null}}function eb(e){e.features?.forEach(t=>t(e))}function fp(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 tb(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 nb(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Cs(e.mergedAttrs,e.attrs);let l=e.tView=qu(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),yr(e,!1);let c=rb(n,t,e,r);Xi()&&Xu(n,t,c,e),Ir(c,t);let u=Dh(c,t,c,e);t[r+ve]=u,Yu(t,u),LD(u,e,t)}function Ds(e,t,n,r,o,i,s,a,c,u,l){let d=n+ve,f;if(t.firstCreatePass){if(f=Rs(t,d,4,s||null,a||null),u!=null){let p=bt(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 nb(f,e,t,n,r,o,i,c),u!=null&&tl(e,f,l),f}var rb=ob;function ob(e,t,n,r){return es(!0),t[se].createComment("")}var cl=new w("");function So(e){return!!e&&typeof e.then=="function"}function Fs(e){return!!e&&typeof e.subscribe=="function"}var Lh=new w("");var ul=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=g(Lh,{optional:!0})??[];injector=g(ke);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=dr(this.injector,o);if(So(i))n.push(i);else if(Fs(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})(),jh=new w("");function Bh(){Oa(()=>{let e="";throw new x(600,e)})}function Vh(e){return e.isBoundToModule}var ib=10;var To=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=g(wt);afterRenderManager=g(th);zonelessEnabled=g(Er);rootEffectScheduler=g(rs);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new me;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=g(sn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(V(n=>!n))}constructor(){g(cn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=g(Oe);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=ke.NULL){return this._injector.get(re).run(()=>{X(z.BootstrapComponentStart);let s=n instanceof Os;if(!this._injector.get(ul).done){let h="";throw new x(405,h)}let c;s?c=n:c=this._injector.get(ks).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let u=Vh(c)?void 0:this._injector.get(vo),l=r||c.selector,d=c.create(o,[],l,u),f=d.location.nativeElement,p=d.injector.get(cl,null);return p?.registerApplication(f),d.onDestroy(()=>{this.detachView(d.hostView),fo(this.components,d),p?.unregisterApplication(f)}),this._loadComponent(d),X(z.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){X(z.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Qu.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw X(z.ChangeDetectionEnd),new x(101,!1);let n=M(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,M(n),this.afterTick.next(),X(z.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Bn,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<ib;){X(z.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{X(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&&!ao(o))continue;let i=r&&!this.zonelessEnabled?0:1;mh(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})=>ao(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;fo(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(jh,[]).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),()=>fo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new x(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function fo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ze(e,t,n,r){let o=$(),i=Pn();if(_t(o,i,t)){let s=Me(),a=Ki();PE(a,o,e,t,n,r)}return Ze}var Ou=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 uu(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function sb(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=uu(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=uu(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),L=n(s,d);if(Object.is(L,I)){let le=n(u,h);Object.is(le,b)?(e.swap(s,a),e.updateValue(a,h),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new bs,i??=hp(e,s,a,n),ku(e,o,s,L))e.updateValue(s,d),s++,a++;else if(i.has(L))o.set(b,e.detach(s)),a--;else{let le=e.create(s,t[s]);e.attach(s,le),s++,a++}}for(;s<=u;)pp(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=uu(s,d,s,f,n);if(p!==0)p<0&&e.updateValue(s,f),s++,l=u.next();else{o??=new bs,i??=hp(e,s,a,n);let h=n(s,f);if(ku(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;)pp(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 ku(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function pp(e,t,n,r,o){if(ku(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function hp(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 bs=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 fe(e,t,n,r,o,i,s,a){$n("NgControlFlow");let c=$(),u=Me(),l=bt(u.consts,i);return Ds(c,u,e,t,n,r,o,l,256,s,a),Mo}function Mo(e,t,n,r,o,i,s,a){$n("NgControlFlow");let c=$(),u=Me(),l=bt(u.consts,i);return Ds(c,u,e,t,n,r,o,l,512,s,a),Mo}function pe(e,t){$n("NgControlFlow");let n=$(),r=Pn(),o=n[r]!==tt?n[r]:-1,i=o!==-1?ws(n,ve+o):void 0,s=0;if(_t(n,r,e)){let a=M(null);try{if(i!==void 0&&wh(i,s),e!==-1){let c=ve+e,u=ws(n,c),l=ju(n[N],c),d=Ch(u,l,n),f=Ns(n,l,t,{dehydratedView:d});As(u,f,s,ho(l,d))}}finally{M(a)}}else if(i!==void 0){let a=bh(i,s);a!==void 0&&(a[de]=t)}}var Fu=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ae}};function ll(e,t){return t}var Pu=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function pt(e,t,n,r,o,i,s,a,c,u,l,d,f){$n("NgControlFlow");let p=$(),h=Me(),m=c!==void 0,b=$(),I=a?s.bind(b[Ge][de]):s,L=new Pu(m,I);b[ve+e]=L,Ds(p,h,e+1,t,n,r,o,bt(h.consts,i),256),m&&Ds(p,h,e+2,c,u,l,d,bt(h.consts,f),512)}var Lu=class extends Ou{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-ae}at(t){return this.getLView(t)[de].$implicit}attach(t,n){let r=n[fr];this.needsIndexUpdate||=t!==this.length,As(this.lContainer,n,t,ho(this.templateTNode,r)),ab(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,cb(this.lContainer,t),ub(this.lContainer,t)}create(t,n){let r=bu(this.lContainer,this.templateTNode.tView.ssrId);return Ns(this.hostLView,this.templateTNode,new Fu(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Ms(t[N],t)}updateValue(t,n){this.getLView(t)[de].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[de].$index=t}getLView(t){return lb(this.lContainer,t)}};function ht(e){let t=M(null),n=Ht();try{let r=$(),o=r[N],i=r[n],s=n+1,a=ws(r,s);if(i.liveCollection===void 0){let u=ju(o,s);i.liveCollection=new Lu(a,r,u)}else i.liveCollection.reset();let c=i.liveCollection;if(sb(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=Pn(),l=c.length===0;if(_t(r,u,l)){let d=n+2,f=ws(r,d);if(l){let p=ju(o,d),h=Ch(f,p,r),m=Ns(r,p,void 0,{dehydratedView:h});As(f,m,0,ho(p,h))}else o.firstUpdatePass&&sD(f),wh(f,0)}}}finally{M(t)}}function ws(e,t){return e[t]}function ab(e,t){if(e.length<=ae)return;let n=ae+t,r=e[n],o=r?r[tn]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Vt];lE(i,o),jn.delete(r[$t]),o.detachedLeaveAnimationFns=void 0}}function cb(e,t){if(e.length<=ae)return;let n=ae+t,r=e[n],o=r?r[tn]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function ub(e,t){return mo(e,t)}function lb(e,t){return bh(e,t)}function ju(e,t){return Gi(e,t)}function Ps(e,t,n){let r=$(),o=Pn();if(_t(r,o,t)){let i=Me(),s=Ki();NE(s,r,e,t,r[se],n)}return Ps}function gp(e,t,n,r,o){nl(t,e,n,o?"class":"style",r)}function xe(e,t,n,r){let o=$(),i=o[N],s=e+ve,a=i.firstCreatePass?Mh(s,o,2,t,FE,If(),n,r):i.data[s];if(Ut(a)){let c=o[Et].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(Rh(u),()=>(mp(e,t,o,a,r),xe))}}return mp(e,t,o,a,r),xe}function mp(e,t,n,r,o){if(uh(r,n,e,t,$h),zi(r)){let i=n[N];ah(i,n,r),Gp(i,r,n)}o!=null&&tl(n,r)}function He(){let e=Me(),t=qe(),n=lh(t);return e.firstCreatePass&&xh(e,n),zc(n)&&Gc(),Hc(),n.classesWithoutHost!=null&&yv(n)&&gp(e,n,$(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&vv(n)&&gp(e,n,$(),n.stylesWithoutHost,!1),He}function St(e,t,n,r){return xe(e,t,n,r),He(),St}function v(e,t,n,r){let o=$(),i=o[N],s=e+ve,a=i.firstCreatePass?DD(s,i,2,t,n,r):i.data[s];return uh(a,o,e,t,$h),r!=null&&tl(o,a),v}function D(){let e=qe(),t=lh(e);return zc(t)&&Gc(),Hc(),D}function Tt(e,t,n,r){return v(e,t,n,r),D(),Tt}var $h=(e,t,n,r,o)=>(es(!0),qp(t[se],r,Xc()));function gt(){return $()}function ce(e,t,n){let r=$(),o=Pn();if(_t(r,o,t)){let i=Me(),s=Ki();ch(s,r,e,t,r[se],n)}return ce}var xo="en-US";var db=xo;function Uh(e){typeof e=="string"&&(db=e.toLowerCase().replace(/_/g,"-"))}function zt(e,t,n){let r=$(),o=Me(),i=qe();return fb(o,r,r[se],i,e,t,n),zt}function G(e,t,n){let r=$(),o=Me(),i=qe();return(i.type&3||n)&&Nh(i,o,r,n,r[se],e,t,ls(i,r,t)),G}function fb(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=ls(r,t,i),Nh(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??=ls(r,t,i),up(r,t,f,p,o,c)}if(u&&u.length)for(let d of u)c??=ls(r,t,i),up(r,t,d,o,o,c)}}function U(e=1){return Lf(e)}function Ls(e,t,n){return GD(e,t,n),Ls}function dl(e){let t=$(),n=Me(),r=Jc();Yi(r+1);let o=sl(n,r);if(e.dirty&&mf(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=ZD(t,r);e.reset(i,Rv),e.notifyOnChanges()}return!0}return!1}function fl(){return HD($(),Jc())}function is(e,t){return e<<17|t<<2}function Vn(e){return e>>17&32767}function pb(e){return(e&2)==2}function hb(e,t){return e&131071|t<<17}function Bu(e){return e|2}function _r(e){return(e&131068)>>2}function lu(e,t){return e&-131069|t<<2}function gb(e){return(e&1)===1}function Vu(e){return e|1}function mb(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Vn(s),c=_r(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||ur(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let f=Vn(e[a+1]);e[r+1]=is(f,a),f!==0&&(e[f+1]=lu(e[f+1],r)),e[a+1]=hb(e[a+1],r)}else e[r+1]=is(a,0),a!==0&&(e[a+1]=lu(e[a+1],r)),a=r;else e[r+1]=is(c,0),a===0?a=r:e[c+1]=lu(e[c+1],r),c=r;u&&(e[r+1]=Bu(e[r+1])),yp(e,l,r,!0),yp(e,l,r,!1),yb(t,l,e,r,i),s=is(a,c),i?t.classBindings=s:t.styleBindings=s}function yb(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&ur(i,t)>=0&&(n[r+1]=Vu(n[r+1]))}function yp(e,t,n,r){let o=e[n+1],i=t===null,s=r?Vn(o):_r(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];vb(c,t)&&(a=!0,e[s+1]=r?Vu(u):Bu(u)),s=r?Vn(u):_r(u)}a&&(e[n+1]=r?Bu(o):Vu(o))}function vb(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?ur(e,t)>=0:!1}function js(e,t,n){return Hh(e,t,n,!1),js}function No(e,t){return Hh(e,t,null,!0),No}function Hh(e,t,n,r){let o=$(),i=Me(),s=Yc(2);if(i.firstUpdatePass&&Db(i,e,s,r),t!==tt&&_t(o,s,t)){let a=i.data[Ht()];_b(i,a,o,o[se],e,o[s+1]=Sb(t,n),r,s)}}function Eb(e,t){return t>=e.expandoStartIndex}function Db(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ht()],s=Eb(e,n);Tb(i,r)&&t===null&&!s&&(t=!1),t=bb(o,i,t,r),mb(o,i,t,n,s,r)}}function bb(e,t,n,r){let o=Of(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=du(null,e,t,n,r),n=Do(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=du(o,e,t,n,r),i===null){let c=wb(e,t,r);c!==void 0&&Array.isArray(c)&&(c=du(null,e,t,c[1],r),c=Do(c,t.attrs,r),Ib(e,t,r,c))}else i=Cb(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function wb(e,t,n){let r=n?t.classBindings:t.styleBindings;if(_r(r)!==0)return e[Vn(r)]}function Ib(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Vn(o)]=r}function Cb(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Do(r,s,n)}return Do(r,t.attrs,n)}function du(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=Do(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Do(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]),sf(e,s,n?!0:t[++i]))}return e===void 0?null:e}function _b(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=gb(u)?vp(c,t,n,o,_r(u),s):void 0;if(!Is(l)){Is(i)||pb(u)&&(i=vp(c,null,n,o,a,s));let d=Pc(Ht(),n);_E(r,s,d,o,i)}}function vp(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===tt&&(f=d?Je:void 0);let p=d?$i(f,r):l===r?f:void 0;if(u&&!Is(p)&&(p=$i(c,r)),Is(p)&&(a=p,s))return a;let h=e[o+1];o=s?Vn(h):_r(h)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=$i(c,r))}return a}function Is(e){return e!==void 0}function Sb(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Fi(Wp(e)))),e}function Tb(e,t){return(e.flags&(t?8:16))!==0}function _(e,t=""){let n=$(),r=Me(),o=e+ve,i=r.firstCreatePass?Rs(r,o,1,t,null):r.data[o],s=Mb(r,n,i,t);n[o]=s,Xi()&&Xu(r,n,s,i),yr(i,!1)}var Mb=(e,t,n,r)=>(es(!0),Hv(t[se],r));function zh(e,t,n,r=""){return _t(e,Pn(),n)?t+no(n)+r:tt}function xb(e,t,n,r,o,i=""){let s=Mf(),a=wD(e,s,n,o);return Yc(2),a?t+no(n)+r+no(o)+i:tt}function Ee(e){return Mt("",e),Ee}function Mt(e,t,n){let r=$(),o=zh(r,e,t,n);return o!==tt&&Gh(r,Ht(),o),Mt}function Bs(e,t,n,r,o){let i=$(),s=xb(i,e,t,n,r,o);return s!==tt&&Gh(i,Ht(),s),Bs}function Gh(e,t,n){let r=Pc(t,e);zv(e[se],r,n)}function pl(e,t,n=""){return zh($(),e,t,n)}function Nb(e,t){let n=e[t];return n===tt?void 0:n}function Ab(e,t,n,r,o,i){let s=t+n;return _t(e,s,o)?bD(e,s+1,i?r.call(i,o):r(o)):Nb(e,s+1)}function Y(e,t){let n=Me(),r,o=e+ve;n.firstCreatePass?(r=Rb(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=Jt(r.type,!0)),s,a=Re(oe);try{let c=hs(!1),u=i();return hs(c),Lc(n,$(),o,u),u}finally{Re(a)}}function Rb(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function J(e,t,n){let r=e+ve,o=$(),i=gf(o,r);return Ob(o,r)?Ab(o,Tf(),t,i.transform,n,i):i.transform(n)}function Ob(e,t){return e[N].data[t].pure}var Wh=(()=>{class e{applicationErrorHandler=g(wt);appRef=g(To);taskService=g(sn);ngZone=g(re);zonelessEnabled=g(Er);tracing=g(cn,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ge;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(eo):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(ns,{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?$f:tu;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(eo+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:jt,useExisting:Wh},{provide:re,useClass:to},{provide:Er,useValue:!0}]}function kb(){return typeof $localize<"u"&&$localize.locale||xo}var Vs=new w("",{factory:()=>g(Vs,{optional:!0,skipSelf:!0})||kb()});var $s=class{destroyed=!1;listeners=null;errorHandler=g(Fe,{optional:!0});destroyRef=g(lt);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new x(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed){console.warn(Tn(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 Un(e){return Wd(e)}function Ao(e,t){return ri(e,t?.equal)}var Yh=Symbol("InputSignalNode#UNSET"),Xb=C(y({},oi),{transformFn:void 0,applyValueToInputSignal(e,t){Qn(e,t)}});function Jh(e,t){let n=Object.create(Xb);n.value=e,n.transformFn=t?.transform;function r(){if(Zn(n),n.value===Yh){let o=null;throw new x(-950,o)}return n.value}return r[Ae]=n,r}function Qh(e){return new $s}function Zh(e,t){return Jh(e,t)}function ew(e){return Jh(Yh,e)}var Kh=(Zh.required=ew,Zh);var tw=(()=>{class e{zone=g(re);changeDetectionScheduler=g(jt);applicationRef=g(To);applicationErrorHandler=g(wt);_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})(),nw=new w("",{factory:()=>!1});function rw({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new re(C(y({},eg()),{scheduleInRootZone:t})),[{provide:Er,useValue:!1},{provide:re,useFactory:e},{provide:Xt,multi:!0,useFactory:()=>{let n=g(tw,{optional:!0});return()=>n.initialize()}},{provide:Xt,multi:!0,useFactory:()=>{let n=g(ow);return()=>{n.initialize()}}},{provide:ns,useValue:t??eu}]}function Xh(e){let t=e?.scheduleInRootZone,n=rw({ngZoneFactory:()=>{let r=eg(e);return r.scheduleInRootZone=t,r.shouldCoalesceEventChangeDetection&&$n("NgZone_CoalesceEvent"),new re(r)},scheduleInRootZone:t});return Qe([{provide:nw,useValue:!0},n])}function eg(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var ow=(()=>{class e{subscription=new ge;initialized=!1;zone=g(re);pendingTasks=g(sn);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 hl=new w(""),iw=new w("");function Ro(e){return!e.moduleRef}function sw(e){let t=Ro(e)?e.r3Injector:e.moduleRef.injector,n=t.get(re);return n.run(()=>{Ro(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(wt),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Ro(e)){let i=()=>t.destroy(),s=e.platformInjector.get(hl);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(hl);s.add(i),e.moduleRef.onDestroy(()=>{fo(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return cw(r,n,()=>{let i=t.get(sn),s=i.add(),a=t.get(ul);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Vs,xo);if(Uh(c||xo),!t.get(iw,!0))return Ro(e)?t.get(To):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Ro(e)){let l=t.get(To);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return aw?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var aw;function cw(e,t,n){try{let r=n();return So(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var Us=null;function uw(e=[],t){return ke.create({name:t,providers:[{provide:oo,useValue:"platform"},{provide:hl,useValue:new Set([()=>Us=null])},...e]})}function lw(e=[]){if(Us)return Us;let t=uw(e);return Us=t,Bh(),dw(t),t}function dw(e){let t=e.get(Ss,null);dr(e,()=>{t?.forEach(n=>n())})}function Oo(){return!1}var fw=1e4;var Pj=fw-1e3;var tg=(()=>{class e{static __NG_ELEMENT_ID__=pw}return e})();function pw(e){return hw(qe(),$(),(e&16)===16)}function hw(e,t,n){if(Ut(e)&&!n){let r=ut(e.index,t);return new an(r,r)}else if(e.type&175){let r=t[Ge];return new an(r,t)}return null}function ng(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;X(z.BootstrapApplicationStart);try{let i=o?.injector??lw(r),s=[qh(),Hf,...n||[]],a=new Eo({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return sw({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{X(z.BootstrapApplicationEnd)}}var rg=null;function dn(){return rg}function gl(e){rg??=e}var ko=class{},Hs=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>g(og),providedIn:"platform"})}return e})();var og=(()=>{class e extends Hs{_location;_history;_doc=g(Pe);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return dn().getBaseHref(this._doc)}onPopState(n){let r=dn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=dn().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 gw(e,t){return new x(2100,!1)}var ml=class{createSubscription(t,n,r){return Un(()=>t.subscribe({next:n,error:r}))}dispose(t){Un(()=>t.unsubscribe())}},yl=class{createSubscription(t,n,r){return t.then(o=>n?.(o),o=>r?.(o)),{unsubscribe:()=>{n=null,r=null}}}dispose(t){t.unsubscribe()}},mw=new yl,yw=new ml,Le=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=g(wt);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(So(n))return mw;if(Fs(n))return yw;throw gw(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)(oe(tg,16))};static \u0275pipe=al({name:"async",type:e,pure:!1})}return e})();var Ne=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=un({type:e});static \u0275inj=Bt({})}return e})();function Fo(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 Hn=class{};var ig="browser";var Po=class{_doc;constructor(t){this._doc=t}manager},zs=(()=>{class e extends Po{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)(E(Pe))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),qs=new w(""),bl=(()=>{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 zs));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof zs);i&&this._plugins.push(i)}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new x(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(E(qs),E(re))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),vl="ng-app-id";function sg(e){for(let t of e)t.remove()}function ag(e,t){let n=t.createElement("style");return n.textContent=e,n}function Ew(e,t,n,r){let o=e.head?.querySelectorAll(`style[${vl}="${t}"],link[${vl}="${t}"]`);if(o)for(let i of o)i.removeAttribute(vl),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 Dl(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var wl=(()=>{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,Ew(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,ag);r?.forEach(o=>this.addUsage(o,this.external,Dl))}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&&(sg(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])sg(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,ag(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Dl(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)(E(Pe),E(_s),E(Co,8),E(Io))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),El={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"},Il=/%COMP%/g;var ug="%COMP%",Dw=`_nghost-${ug}`,bw=`_ngcontent-${ug}`,ww=!0,Iw=new w("",{factory:()=>ww});function Cw(e){return bw.replace(Il,e)}function _w(e){return Dw.replace(Il,e)}function lg(e,t){return t.map(n=>n.replace(Il,e))}var Cl=(()=>{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 Lo(n,s,a,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof Ws?o.applyToHost(n):o instanceof jo&&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 ft.Emulated:i=new Ws(c,u,r,this.appId,l,s,a,d);break;case ft.ShadowDom:return new Gs(c,n,r,s,a,this.nonce,d,u);case ft.ExperimentalIsolatedShadowDom:return new Gs(c,n,r,s,a,this.nonce,d);default:i=new jo(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)(E(bl),E(wl),E(_s),E(Iw),E(Pe),E(re),E(Co),E(cn,8))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),Lo=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(El[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(cg(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(cg(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new x(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=El[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=El[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&(Ct.DashCase|Ct.Important)?t.style.setProperty(n,r,o&Ct.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Ct.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=dn().getGlobalEventTarget(this.doc,t),!t))throw new x(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function cg(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Gs=class extends Lo{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=lg(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=Dl(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)}},jo=class extends Lo{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?lg(c,u):u,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&jn.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Ws=class extends jo{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=Cw(u),this.hostAttr=_w(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 Zs=class e extends ko{supportsDOMEvents=!0;static makeCurrent(){gl(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=Sw();return n==null?null:Tw(n)}resetBaseElement(){Bo=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Fo(document.cookie,t)}},Bo=null;function Sw(){return Bo=Bo||document.head.querySelector("base"),Bo?Bo.getAttribute("href"):null}function Tw(e){return new URL(e,document.baseURI).pathname}var Mw=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),dg=["alt","control","meta","shift"],xw={"\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"},Nw={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},fg=(()=>{class e extends Po{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(()=>dn().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."),dg.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=xw[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"),dg.forEach(s=>{if(s!==o){let a=Nw[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)(E(Pe))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();function _l(e,t,n){return At(this,null,function*(){let r=y({rootComponent:e},Aw(t,n));return ng(r)})}function Aw(e,t){return{platformRef:t?.platformRef,appProviders:[...Pw,...e?.providers??[]],platformProviders:Fw}}function Rw(){Zs.makeCurrent()}function Ow(){return new Fe}function kw(){return zu(document),document}var Fw=[{provide:Io,useValue:ig},{provide:Ss,useValue:Rw,multi:!0},{provide:Pe,useFactory:kw}];var Pw=[{provide:oo,useValue:"root"},{provide:Fe,useFactory:Ow},{provide:qs,useClass:zs,multi:!0},{provide:qs,useClass:fg,multi:!0},Cl,wl,bl,{provide:Bn,useExisting:Cl},{provide:Hn,useClass:Mw},[]];var fn=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 Js=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()}},Qs=class{encodeKey(t){return pg(t)}encodeValue(t){return pg(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Lw(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 jw=/%(\d[a-f0-9])/gi,Bw={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function pg(e){return encodeURIComponent(e).replace(jw,(t,n)=>Bw[n]??t)}function Ys(e){return`${e}`}var Gt=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Qs,t.fromString){if(t.fromObject)throw new x(2805,!1);this.map=Lw(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(Ys):[Ys(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(Ys(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(Ys(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 Vw(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function hg(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function gg(e){return typeof Blob<"u"&&e instanceof Blob}function mg(e){return typeof FormData<"u"&&e instanceof FormData}function $w(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var yg="Content-Type",vg="Accept",Eg="text/plain",Dg="application/json",Uw=`${Dg}, ${Eg}, */*`,Mr=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(Vw(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new x(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache}if(this.headers??=new fn,this.context??=new Js,!this.params)this.params=new Gt,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"||hg(this.body)||gg(this.body)||mg(this.body)||$w(this.body)?this.body:this.body instanceof Gt?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||mg(this.body)?null:gg(this.body)?this.body.type||null:hg(this.body)?null:typeof this.body=="string"?Eg:this.body instanceof Gt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Dg: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,L=t.reportProgress??this.reportProgress,le=t.headers||this.headers,F=t.params||this.params,ee=t.context??this.context;return t.setHeaders!==void 0&&(le=Object.keys(t.setHeaders).reduce((Q,_e)=>Q.set(_e,t.setHeaders[_e]),le)),t.setParams&&(F=Object.keys(t.setParams).reduce((Q,_e)=>Q.set(_e,t.setParams[_e]),F)),new e(n,r,b,{params:F,headers:le,context:ee,reportProgress:L,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})}},Gn=(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})(Gn||{}),Nr=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new fn,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}},Ks=class e extends Nr{constructor(t={}){super(t)}type=Gn.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})}},Vo=class e extends Nr{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Gn.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})}},xr=class extends Nr{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}},Hw=200,zw=204;var Gw=new w("");var Ww=/^\)\]\}',?\n/;var Tl=(()=>{class e{xhrFactory;tracingService=g(cn,{optional:!0});constructor(n){this.xhrFactory=n}maybePropagateTrace(n){return this.tracingService?.propagate?this.tracingService.propagate(n):n}handle(n){if(n.method==="JSONP")throw new x(-2800,!1);let r=this.xhrFactory;return Ft(null).pipe(he(()=>new B(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(vg)||s.setRequestHeader(vg,Uw),!n.headers.has(yg)){let b=n.detectContentTypeHeader();b!==null&&s.setRequestHeader(yg,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 fn(s.getAllResponseHeaders()),L=s.responseURL||n.url;return c=new Ks({headers:I,status:s.status,statusText:b,url:L}),c},l=this.maybePropagateTrace(()=>{let{headers:b,status:I,statusText:L,url:le}=u(),F=null;I!==zw&&(F=typeof s.response>"u"?s.responseText:s.response),I===0&&(I=F?Hw:0);let ee=I>=200&&I<300;if(n.responseType==="json"&&typeof F=="string"){let Q=F;F=F.replace(Ww,"");try{F=F!==""?JSON.parse(F):null}catch(_e){F=Q,ee&&(ee=!1,F={error:_e,text:F})}}ee?(i.next(new Vo({body:F,headers:b,status:I,statusText:L,url:le||void 0})),i.complete()):i.error(new xr({error:F,headers:b,status:I,statusText:L,url:le||void 0}))}),d=this.maybePropagateTrace(b=>{let{url:I}=u(),L=new xr({error:b,status:s.status||0,statusText:s.statusText||"Unknown Error",url:I||void 0});i.error(L)}),f=d;n.timeout&&(f=this.maybePropagateTrace(b=>{let{url:I}=u(),L=new xr({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:I||void 0});i.error(L)}));let p=!1,h=this.maybePropagateTrace(b=>{p||(i.next(u()),p=!0);let I={type:Gn.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:Gn.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:Gn.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)(E(Hn))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function qw(e,t){return t(e)}function Zw(e,t,n){return(r,o)=>dr(n,()=>t(r,i=>e(i,o)))}var bg=new w("",{factory:()=>[]}),wg=new w(""),Ig=new w("",{factory:()=>!0});var Ml=(()=>{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=E(Tl),o},providedIn:"root"})}return e})();var Xs=(()=>{class e{backend;injector;chain=null;pendingTasks=g(Dr);contributeToStability=g(Ig);constructor(n,r){this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(bg),...this.injector.get(wg,[])]));this.chain=r.reduceRight((o,i)=>Zw(o,i,this.injector),qw)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Ya(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(E(Ml),E(Oe))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xl=(()=>{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=E(Xs),o},providedIn:"root"})}return e})();function Sl(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 ea=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Mr)i=n;else{let c;o.headers instanceof fn?c=o.headers:c=new fn(o.headers);let u;o.params&&(o.params instanceof Gt?u=o.params:u=new Gt({fromObject:o.params})),i=new Mr(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=Ft(i).pipe(Wr(c=>this.handler.handle(c)));if(n instanceof Mr||o.observe==="events")return s;let a=s.pipe(we(c=>c instanceof Vo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(V(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new x(2806,!1);return c.body}));case"blob":return a.pipe(V(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new x(2807,!1);return c.body}));case"text":return a.pipe(V(c=>{if(c.body!==null&&typeof c.body!="string")throw new x(2808,!1);return c.body}));default:return a.pipe(V(c=>c.body))}case"response":return a;default:throw new x(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Gt().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,Sl(o,r))}post(n,r,o={}){return this.request("POST",n,Sl(o,r))}put(n,r,o={}){return this.request("PUT",n,Sl(o,r))}static \u0275fac=function(r){return new(r||e)(E(xl))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Yw=new w("",{factory:()=>!0}),Jw="XSRF-TOKEN",Qw=new w("",{factory:()=>Jw}),Kw="X-XSRF-TOKEN",Xw=new w("",{factory:()=>Kw}),eI=(()=>{class e{cookieName=g(Qw);doc=g(Pe);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Fo(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})(),Cg=(()=>{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=E(eI),o},providedIn:"root"})}return e})();function tI(e,t){if(!g(Yw)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=g(Hs).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(Cg).getToken(),r=g(Xw);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function Nl(...e){let t=[ea,Xs,{provide:xl,useExisting:Xs},{provide:Ml,useFactory:()=>g(Gw,{optional:!0})??g(Tl)},{provide:bg,useValue:tI,multi:!0}];for(let n of e)t.push(...n.\u0275providers);return Qe(t)}function ta(e,t){let r=!t?.manualCleanup?t?.injector?.get(lt)??g(lt):null,o=rI(t?.equal),i;t?.requireSync?i=vr({kind:0},{equal:o}):i=vr({kind:1,value:t?.initialValue},{equal:o});let s,a=e.subscribe({next:c=>i.set({kind:1,value:c}),error:c=>{i.set({kind:2,error:c}),s?.()},complete:()=>{s?.()}});if(t?.requireSync&&i().kind===0)throw new x(601,!1);return s=r?.onDestroy(a.unsubscribe.bind(a)),Ao(()=>{let c=i();switch(c.kind){case 1:return c.value;case 2:throw c.error;case 0:throw new x(601,!1)}},{equal:t?.equal})}function rI(e=Object.is){return(t,n)=>t.kind===1&&n.kind===1&&e(t.value,n.value)}var Ol={};function Ll(e,t){if(Ol[e]=(Ol[e]||0)+1,typeof t=="function")return Al(e,(...r)=>C(y({},t(...r)),{type:e}));switch(t?t._as:"empty"){case"empty":return Al(e,()=>({type:e}));case"props":return Al(e,r=>C(y({},r),{type:e}));default:throw new Error("Unexpected config.")}}function Ce(){return{_as:"props",_p:void 0}}function Al(e,t){return Object.defineProperty(t,"type",{value:e,writable:!1})}function oI(e){return e.charAt(0).toUpperCase()+e.substring(1)}function iI(e){return e.charAt(0).toLowerCase()+e.substring(1)}function sI(e,t){if(e==null)throw new Error(`${t} must be defined.`)}function Or(e){let{source:t,events:n}=e;return Object.keys(n).reduce((r,o)=>C(y({},r),{[aI(o)]:Ll(cI(t,o),n[o])}),{})}function De(){return Ce()}function aI(e){return e.trim().split(" ").map((t,n)=>n===0?iI(t):oI(t)).join("")}function cI(e,t){return`[${e}] ${t}`}var Ho="@ngrx/store/init",xt=(()=>{class e extends Ot{constructor(){super({type:Ho})}next(n){if(typeof n=="function")throw new TypeError(`
|
|
6
|
-
Dispatch expected an object, instead it received a function.
|
|
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})(),uI=[xt],Lg=new w("@ngrx/store Internal Root Guard"),_g=new w("@ngrx/store Internal Initial State"),zo=new w("@ngrx/store Initial State"),jg=new w("@ngrx/store Reducer Factory"),Sg=new w("@ngrx/store Internal Reducer Factory Provider"),Bg=new w("@ngrx/store Initial Reducers"),Rl=new w("@ngrx/store Internal Initial Reducers");var Tg=new w("@ngrx/store Internal Store Reducers");var lI=new w("@ngrx/store Internal Store Features");var dI=new w("@ngrx/store Feature Reducers"),Mg=new w("@ngrx/store User Provided Meta Reducers"),na=new w("@ngrx/store Meta Reducers"),xg=new w("@ngrx/store Internal Resolved Meta Reducers"),Ng=new w("@ngrx/store User Runtime Checks Config"),Ag=new w("@ngrx/store Internal User Runtime Checks Config"),$o=new w("@ngrx/store Internal Runtime Checks"),jl=new w("@ngrx/store Check if Action types are unique"),Uo=new w("@ngrx/store Root Store Provider"),ra=new w("@ngrx/store Feature State Provider");function fI(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 pI(e,t){return Object.keys(e).filter(n=>n!==t).reduce((n,r)=>Object.assign(n,{[r]:e[r]}),{})}function Vg(...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 $g(e,t){return Array.isArray(t)&&t.length>0&&(e=Vg.apply(null,[...t,e])),(n,r)=>{let o=e(n);return(i,s)=>(i=i===void 0?r:i,o(i,s))}}function hI(e){let t=Array.isArray(e)&&e.length>0?Vg(...e):n=>n;return(n,r)=>(n=t(n),(o,i)=>(o=o===void 0?r:o,n(o,i)))}var Wn=class extends B{},Ar=class extends xt{},ia="@ngrx/store/update-reducers",oa=(()=>{class e extends Ot{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"?hI(a)(i,c):$g(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=pI(this.reducers,r)}),this.updateReducers(n)}updateReducers(n){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:ia,features:n})}ngOnDestroy(){this.complete()}static{this.\u0275fac=function(r){return new(r||e)(E(Ar),E(zo),E(Bg),E(jg))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})(),gI=[oa,{provide:Wn,useExisting:oa},{provide:Ar,useExisting:xt}],qn=(()=>{class e extends me{ngOnDestroy(){this.complete()}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=wo(e)))(o||e)}})()}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})(),mI=[qn],Rr=class extends B{},Rg=(()=>{class e extends Ot{static{this.INIT=Ho}constructor(n,r,o,i){super(i);let a=n.pipe(kt(zr)).pipe(Ye(r)),c={state:i},u=a.pipe(Zr(yI,c));this.stateSubscription=u.subscribe(({state:l,action:d})=>{this.next(l),o.next(d)}),this.state=ta(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}static{this.\u0275fac=function(r){return new(r||e)(E(xt),E(Wn),E(qn),E(zo))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})();function yI(e={state:void 0},[t,n]){let{state:r}=e;return{state:n(r,t),action:t}}var vI=[Rg,{provide:Rr,useExisting:Rg}],W=(()=>{class e extends B{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 DI.call(null,n,...r)(this)}selectSignal(n,r){return Ao(()=>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){sI(this.injector,"Store Injector");let o=r?.injector??bI()??this.injector;return co(()=>{let i=n();Un(()=>this.dispatch(i))},{injector:o})}static{this.\u0275fac=function(r){return new(r||e)(E(Rr),E(xt),E(oa),E(ke))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})(),EI=[W];function DI(e,t,...n){return function(o){let i;if(typeof e=="string"){let s=[t,...n].filter(Boolean);i=o.pipe(Ka(e,...s))}else if(typeof e=="function")i=o.pipe(V(s=>e(s,t)));else throw new TypeError(`Unexpected type '${typeof e}' in select operator, expected 'string' or 'function'`);return i.pipe(Za())}}function bI(){try{return g(ke)}catch(e){return}}var Bl="https://ngrx.io/guide/store/configuration/runtime-checks";function Og(e){return e===void 0}function kg(e){return e===null}function Ug(e){return Array.isArray(e)}function wI(e){return typeof e=="string"}function II(e){return typeof e=="boolean"}function CI(e){return typeof e=="number"}function Hg(e){return typeof e=="object"&&e!==null}function _I(e){return Hg(e)&&!Ug(e)}function SI(e){if(!_I(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function kl(e){return typeof e=="function"}function TI(e){return kl(e)&&e.hasOwnProperty("\u0275cmp")}function MI(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var xI=!1;function NI(){return xI}function Fg(e,t){return e===t}function AI(e,t,n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!0;return!1}function zg(e,t=Fg,n=Fg){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(!AI(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 ie(...e){return OI(zg)(...e)}function RI(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 OI(e,t={stateFn:RI}){return function(...n){let r=n;if(Array.isArray(r[0])){let[l,...d]=r;r=[...l,...d]}else r.length===1&&kI(r[0])&&(r=FI(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=zg(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 kr(e){return ie(t=>{let n=t[e];return!NI()&&Oo()&&!(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 kI(e){return!!e&&typeof e=="object"&&Object.values(e).every(t=>typeof t=="function")}function FI(e){let t=Object.values(e),n=Object.keys(e),r=(...o)=>n.reduce((i,s,a)=>C(y({},i),{[s]:o[a]}),{});return[...t,r]}function PI(e){return e instanceof w?g(e):e}function Gg(e){return typeof e=="function"?e():e}function LI(e,t){return e.concat(t)}function jI(){if(g(W,{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 BI(e,t){return function(n,r){let o=t.action(r)?Fl(r):r,i=e(n,o);return t.state()?Fl(i):i}}function Fl(e){Object.freeze(e);let t=kl(e);return Object.getOwnPropertyNames(e).forEach(n=>{if(!n.startsWith("\u0275")&&MI(e,n)&&(!t||n!=="caller"&&n!=="callee"&&n!=="arguments")){let r=e[n];(Hg(r)||kl(r))&&!Object.isFrozen(r)&&Fl(r)}}),e}function VI(e,t){return function(n,r){if(t.action(r)){let i=Pl(r);Pg(i,"action")}let o=e(n,r);if(t.state()){let i=Pl(o);Pg(i,"state")}return o}}function Pl(e,t=[]){return(Og(e)||kg(e))&&t.length===0?{path:["root"],value:e}:Object.keys(e).reduce((r,o)=>{if(r)return r;let i=e[o];return TI(i)?r:Og(i)||kg(i)||CI(i)||II(i)||wI(i)||Ug(i)?!1:SI(i)?Pl(i,[...t,o]):{path:[...t,o],value:i}},!1)}function Pg(e,t){if(e===!1)return;let n=e.path.join("."),r=new Error(`Detected unserializable ${t} at "${n}". ${Bl}#strict${t}serializability`);throw r.value=e.value,r.unserializablePath=n,r}function $I(e,t){return function(n,r){if(t.action(r)&&!re.isInAngularZone())throw new Error(`Action '${r.type}' running outside NgZone. ${Bl}#strictactionwithinngzone`);return e(n,r)}}function UI(e){return Oo()?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 HI({strictActionSerializability:e,strictStateSerializability:t}){return n=>e||t?VI(n,{action:r=>e&&!Vl(r),state:()=>t}):n}function zI({strictActionImmutability:e,strictStateImmutability:t}){return n=>e||t?BI(n,{action:r=>e&&!Vl(r),state:()=>t}):n}function Vl(e){return e.type.startsWith("@ngrx")}function GI({strictActionWithinNgZone:e}){return t=>e?$I(t,{action:n=>e&&!Vl(n)}):t}function WI(e){return[{provide:Ag,useValue:e},{provide:Ng,useFactory:ZI,deps:[Ag]},{provide:$o,deps:[Ng],useFactory:UI},{provide:na,multi:!0,deps:[$o],useFactory:zI},{provide:na,multi:!0,deps:[$o],useFactory:HI},{provide:na,multi:!0,deps:[$o],useFactory:GI}]}function qI(){return[{provide:jl,multi:!0,deps:[$o],useFactory:YI}]}function ZI(e){return e}function YI(e){if(!e.strictActionTypeUniqueness)return;let t=Object.entries(Ol).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(", ")}. ${Bl}#strictactiontypeuniqueness`)}function JI(e={},t={}){return[{provide:Lg,useFactory:jI},{provide:_g,useValue:t.initialState},{provide:zo,useFactory:Gg,deps:[_g]},{provide:Rl,useValue:e},{provide:Tg,useExisting:e instanceof w?e:Rl},{provide:Bg,deps:[Rl,[new $u(Tg)]],useFactory:PI},{provide:Mg,useValue:t.metaReducers?t.metaReducers:[]},{provide:xg,deps:[na,Mg],useFactory:LI},{provide:Sg,useValue:t.reducerFactory?t.reducerFactory:fI},{provide:jg,deps:[Sg,xg],useFactory:$g},uI,gI,mI,vI,EI,WI(t.runtimeChecks),qI()]}function QI(){g(xt),g(Wn),g(qn),g(W),g(Lg,{optional:!0}),g(jl,{optional:!0})}var KI=[{provide:Uo,useFactory:QI},lr(()=>g(Uo))];function Wg(e,t){return Qe([...JI(e,t),KI])}function XI(){g(Uo);let e=g(lI),t=g(dI),n=g(oa);g(jl,{optional:!0});let r=e.map((o,i)=>{let a=t.shift()[i];return C(y({},o),{reducers:a,initialState:Gg(o.initialState)})});n.addFeatures(r)}var PV=[{provide:ra,useFactory:XI},lr(()=>g(ra))];function Z(...e){let t=e.pop(),n=e.map(r=>r.type);return{reducer:t,types:n}}function Fr(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=Or({source:"Settings",events:{"Load Settings":De(),"Load Settings Success":Ce(),"Update Setting":Ce(),"Save Settings":De(),"Toggle Settings Panel":De(),"Remove Url From History":Ce()}});var pn=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)(E(W))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})};var sa=class e{constructor(t){this.themeService=t}settingsToggled=Qh();toggleTheme(){this.themeService.toggle()}static \u0275fac=function(n){return new(n||e)(oe(pn))};static \u0275cmp=Ie({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),Tt(2,"img",2),v(3,"span",3),_(4,"Glassbox"),D()(),v(5,"div",4)(6,"button",5),G("click",function(){return r.toggleTheme()}),_(7,"\u{1F313}"),D(),v(8,"button",6),G("click",function(){return r.settingsToggled.emit()}),_(9,"\u2699\uFE0F"),D()()())},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 hn=kr("settings"),aa=ie(hn,e=>e),GV=ie(hn,e=>e.targetUrl),Zg=ie(hn,e=>e.settingsPanelOpen),Yg=ie(hn,e=>e.activeTab),Jg=ie(hn,e=>e.sidebarWidth),Qg=ie(hn,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 Nt=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)(E(ea))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})};var tC=(e,t)=>t.executablePath,nC=(e,t)=>t.path;function rC(e,t){if(e&1){let n=gt();v(0,"div",27)(1,"button",28),G("mousedown",function(){let o=te(n).$implicit,i=U(3);return ne(i.selectUrl(o))}),_(2),D(),v(3,"button",29),G("mousedown",function(o){let i=te(n).$implicit,s=U(3);return ne(s.deleteUrl(i,o))}),_(4,"\u2715"),D()()}if(e&2){let n=t.$implicit;T(2),Ee(n)}}function oC(e,t){if(e&1&&(v(0,"div",9),pt(1,rC,5,1,"div",27,ll),D()),e&2){let n=U();T(),ht(n.targetUrlHistory)}}function iC(e,t){if(e&1&&(v(0,"option",11),_(1),D()),e&2){let n=t.$implicit;ce("value",n.executablePath),T(),Ee(n.name)}}function sC(e,t){if(e&1){let n=gt();v(0,"label",4),Tt(1,"span",5),v(2,"input",30),G("change",function(o){te(n);let i=U(2);return ne(i.updateSetting("browserPath",o))}),D()()}if(e&2){let n=U();T(2),ce("value",n.browserPath)}}function aC(e,t){if(e&1&&(v(0,"option",11),_(1),D()),e&2){let n=t.$implicit;ce("value",n.path),T(),Bs("",n.name," (",n.directory,")")}}function cC(e,t){if(e&1){let n=gt();v(0,"aside",2)(1,"div",3)(2,"label",4)(3,"span",5),_(4,"URL"),D(),v(5,"div",6)(6,"input",7),G("change",function(o){te(n);let i=U();return ne(i.updateSetting("targetUrl",o))})("focus",function(){te(n);let o=U();return ne(o.urlDropdownOpen=!0)})("blur",function(){te(n);let o=U();return ne(o.closeUrlDropdown())}),D(),v(7,"span",8),G("mousedown",function(){te(n);let o=U();return ne(o.urlDropdownOpen=!o.urlDropdownOpen)}),D(),fe(8,oC,3,0,"div",9),D()(),v(9,"label",4)(10,"span",5),_(11,"Browser"),D(),v(12,"select",10),G("change",function(o){te(n);let i=U();return ne(i.selectBrowser(o))}),pt(13,iC,2,2,"option",11,tC),v(15,"option",12),_(16,"Custom path..."),D()()(),fe(17,sC,3,1,"label",4),v(18,"label",4)(19,"span",5),_(20,"Profile"),D(),v(21,"select",10),G("change",function(o){te(n);let i=U();return ne(i.selectProfile(o))}),v(22,"option",13),_(23,"Temp (isolated)"),D(),pt(24,aC,2,3,"option",11,nC),D()()(),v(26,"div",14)(27,"label",15)(28,"span",5),_(29,"Viewport"),D(),v(30,"select",16),G("change",function(o){te(n);let i=U();return ne(i.applyViewportPreset(o))}),v(31,"option",13),_(32,"Custom"),D(),v(33,"option",17),_(34,"1920\xD71080"),D(),v(35,"option",18),_(36,"1280\xD7720"),D(),v(37,"option",19),_(38,"1024\xD7768"),D(),v(39,"option",20),_(40,"375\xD7667 (iPhone SE)"),D(),v(41,"option",21),_(42,"390\xD7844 (iPhone 14)"),D()(),v(43,"span",22)(44,"input",23),G("change",function(o){te(n);let i=U();return ne(i.updateSetting("viewportWidth",o))}),D(),v(45,"span",24),_(46,"\xD7"),D(),v(47,"input",23),G("change",function(o){te(n);let i=U();return ne(i.updateSetting("viewportHeight",o))}),D()()(),v(48,"label",25)(49,"input",26),G("change",function(o){te(n);let i=U();return ne(i.updateSetting("devtools",o))}),D(),_(50," DevTools "),D(),v(51,"label",25)(52,"input",26),G("change",function(o){te(n);let i=U();return ne(i.updateSetting("headed",o))}),D(),_(53," Headed "),D(),v(54,"label",25)(55,"input",26),G("change",function(o){te(n);let i=U();return ne(i.updateSetting("keepBrowserOpen",o))}),D(),_(56," Keep open "),D()()()}if(e&2){let n=t,r=U();T(6),ce("value",n.targetUrl),T(2),pe(r.urlDropdownOpen&&n.targetUrlHistory.length>0?8:-1),T(4),ce("value",n.browserPath||(r.detectedBrowsers[0]==null?null:r.detectedBrowsers[0].executablePath)),T(),ht(r.detectedBrowsers),T(4),pe(r.showCustomBrowserInput?17:-1),T(4),ce("value",n.userDataDir),T(3),ht(r.availableProfiles),T(20),ce("value",n.viewportWidth),T(3),ce("value",n.viewportHeight),T(2),ce("checked",n.devtools),T(3),ce("checked",!n.headless),T(3),ce("checked",n.keepBrowserOpen)}}var ca=class e{constructor(t,n){this.store=t;this.api=n;this.settings$=this.store.select(aa)}isOpen=Kh(!1);settings$;detectedBrowsers=[];detectedBrowserPath="Auto-detect";detectedUserDataDir="Temp (isolated)";showCustomBrowserInput=!1;availableProfiles=[];urlDropdownOpen=!1;ngOnInit(){this.api.getDetectedBrowsers().pipe(we(t=>t.length>0),it(t=>{this.detectedBrowsers=t,this.detectedBrowserPath=t[0].executablePath,this.detectedUserDataDir=t[0].userDataDir}),he(t=>this.settings$.pipe(Yt(1),it(n=>{let r=n.browserPath?t.find(o=>o.executablePath===n.browserPath):t[0];r&&this.loadProfiles(r.userDataDir)})))).subscribe()}loadProfiles(t){this.api.getProfiles(t).pipe(it(n=>{this.availableProfiles=n})).subscribe()}selectBrowser(t){let n=t.target.value;if(n==="custom"){this.showCustomBrowserInput=!0;return}this.showCustomBrowserInput=!1,this.store.dispatch(H.updateSetting({key:"browserPath",value:n}));let r=this.detectedBrowsers.find(o=>o.executablePath===n);r&&(this.detectedUserDataDir=r.userDataDir,this.loadProfiles(r.userDataDir))}selectProfile(t){let n=t.target.value;this.store.dispatch(H.updateSetting({key:"userDataDir",value:n}))}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}))}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=!1}deleteUrl(t,n){n.preventDefault(),n.stopPropagation(),this.store.dispatch(H.removeUrlFromHistory({url:t}))}closeUrlDropdown(){setTimeout(()=>{this.urlDropdownOpen=!1},0)}static \u0275fac=function(n){return new(n||e)(oe(W),oe(Nt))};static \u0275cmp=Ie({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"],["value",""],[1,"settings-options"],[1,"setting"],[1,"input-select",3,"change"],["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),fe(2,cC,57,10,"aside",2),Y(3,"async"),D()()),n&2){let o;Ze("data-open",r.isOpen()||null),T(2),pe((o=J(3,2,r.settings$))?2:-1,o)}},dependencies:[Ne,Le],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 $l=kr("journeys"),Ul=ie($l,e=>e.journeys),Go=ie($l,e=>e.selectedIds),Hl=ie(Ul,Go,(e,t)=>e.filter(n=>t.includes(n.id)).map(n=>n.path)),o$=ie($l,e=>e.loading);var Wt=kr("execution"),Wo=ie(Wt,e=>e.fsmState),ua=ie(Wt,e=>e.actions),la=ie(Wt,e=>e.consoleLogs),Kg=ie(Wt,e=>e.connectionStatus),Xg=ie(Wt,e=>{let t=e.results.filter(o=>o.status==="passed").length,n=e.results.filter(o=>o.status==="failed").length;return{passed:t,failed:n,skipped:0}}),em=ie(Wo,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"})),da=ie(Wt,e=>e.breakpoints),tm=ie(Wt,e=>e.currentJourney),nm=ie(Wt,e=>{let t={};return e.results.forEach(n=>{t[n.journey]=n.status}),t}),rm=ie(Wt,e=>{let t=e.consoleLogs.filter(n=>n.type==="error");return t.length>0?t[t.length-1].message:null});var je=Or({source:"Journeys",events:{"Load Journeys":De(),"Load Journeys Success":Ce(),"Toggle Journey":Ce(),"Select All":De(),"Deselect All":De()}});var uC=(e,t)=>t.id;function lC(e,t){e&1&&Tt(0,"span",9)}function dC(e,t){e&1&&_(0," \u2713 ")}function fC(e,t){e&1&&_(0," \u2717 ")}function pC(e,t){if(e&1){let n=gt();v(0,"li",4)(1,"label",5)(2,"input",6),G("change",function(){let o=te(n).$implicit,i=U();return ne(i.toggleJourney(o.id))}),D(),v(3,"span",7),_(4),D(),v(5,"span",8),fe(6,lC,1,0,"span",9)(7,dC,1,0)(8,fC,1,0),D()()()}if(e&2){let n,r=t.$implicit;Ze("data-status",r.status),T(2),ce("checked",r.selected),T(2),Ee(r.name),T(2),pe((n=r.status)==="running"?6:n==="passed"?7:n==="failed"?8:-1)}}var fa=class e{constructor(t){this.store=t}journeyViews$;ngOnInit(){this.store.dispatch(je.loadJourneys()),this.journeyViews$=Gr([this.store.select(Ul),this.store.select(Go),this.store.select(tm),this.store.select(nm)]).pipe(V(([t,n,r,o])=>t.map(i=>C(y({},i),{selected:n.includes(i.id),status:this.getJourneyStatus(i.path,r,o)}))))}toggleJourney(t){this.store.dispatch(je.toggleJourney({id:t}))}getJourneyStatus(t,n,r){return n===t?"running":r[t]?r[t]:"idle"}static \u0275fac=function(n){return new(n||e)(oe(W))};static \u0275cmp=Ie({type:e,selectors:[["gb-sidebar"]],decls:8,vars:2,consts:[[1,"sidebar"],[1,"sidebar-header"],[1,"sidebar-title"],[1,"journey-list"],[1,"journey-item"],[1,"journey-label"],["type","checkbox",3,"change","checked"],[1,"journey-name"],[1,"journey-status-icon"],[1,"spinner"]],template:function(n,r){n&1&&(v(0,"nav",0)(1,"div",1)(2,"span",2),_(3,"Journeys"),D()(),v(4,"ul",3),pt(5,pC,9,4,"li",4,uC),Y(7,"async"),D()()),n&2&&(T(5),ht(J(7,0,r.journeyViews$)))},dependencies:[Ne,Le],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 .journey-list{list-style:none}gb-sidebar .journey-item{border-bottom:1px solid var(--border-color)}gb-sidebar .journey-item[data-status=running]{background:var(--bg-elevated)}gb-sidebar .journey-item[data-status=passed] .journey-status-icon{color:var(--color-success)}gb-sidebar .journey-item[data-status=failed] .journey-status-icon{color:var(--color-danger)}gb-sidebar .journey-label{display:flex;align-items:center;gap:var(--space-sm);padding:var(--space-sm) var(--space-md);cursor:pointer;font-size:13px}gb-sidebar .journey-label:hover{background:var(--bg-surface)}gb-sidebar .journey-name{flex:1}gb-sidebar .journey-status-icon{font-size:12px;width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center}gb-sidebar .journey-item[data-status=running] .journey-status-icon{animation:none}gb-sidebar .spinner{width:10px;height:10px;border:2px solid var(--border-color);border-top-color:var(--accent-primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes flip{0%,60%{transform:rotate(0)}70%{transform:rotate(180deg)}80%{transform:rotate(180deg)}90%{transform:rotate(360deg)}to{transform:rotate(360deg)}}
|
|
10
|
-
`],encapsulation:2})};var A=Or({source:"Execution",events:{Play:De(),Pause:De(),Resume:De(),Step:De(),Stop:De(),"Update Config":Ce(),"Action Received":Ce(),"Test Started":Ce(),"Test Ended":Ce(),"Log Received":Ce(),"Error Received":Ce(),"Paused By Runner":De(),"Resumed By Runner":De(),"Connection Status Changed":Ce(),"Run Ended":De(),"Toggle Breakpoint":Ce(),"Clear Actions":De(),"Clear Console":De()}});function hC(e,t){if(e&1){let n=gt();v(0,"button",7),G("click",function(){let o=te(n),i=U();return ne(o.canPlay?i.play():i.resume())}),_(1,"\u25B6"),D(),v(2,"button",8),G("click",function(){te(n);let o=U();return ne(o.pause())}),_(3,"\u23F8"),D(),v(4,"button",9),G("click",function(){te(n);let o=U();return ne(o.step())}),_(5,"\u23ED"),D(),v(6,"button",10),G("click",function(){te(n);let o=U();return ne(o.stop())}),_(7,"\u23F9"),D()}if(e&2){let n=t;ce("disabled",!n.canPlay&&!n.canResume)("title",n.canResume?"Resume":"Run"),T(2),ce("disabled",!n.canPause),T(2),ce("disabled",!n.canStep),T(2),ce("disabled",!n.canStop)}}var pa=class e{constructor(t){this.store=t;this.state$=this.store.select(em),this.settings$=this.store.select(hn)}state$;settings$;play(){this.store.dispatch(A.play())}pause(){this.store.dispatch(A.pause())}resume(){this.store.dispatch(A.resume())}step(){this.store.dispatch(A.step())}stop(){this.store.dispatch(A.stop())}onDelayChange(t){let n=parseInt(t.target.value,10),r=this.sliderToDelay(n);this.store.dispatch(H.updateSetting({key:"actionDelay",value:r})),this.store.dispatch(A.updateConfig({actionDelay:r}))}delayToSlider(t){return Math.round(Math.sqrt(t/5e3)*100)}sliderToDelay(t){return Math.round((t/100)**2*5e3)}static \u0275fac=function(n){return new(n||e)(oe(W))};static \u0275cmp=Ie({type:e,selectors:[["gb-toolbar"]],decls:15,vars:12,consts:[[1,"gb-toolbar"],[1,"gb-toolbar__controls"],[1,"gb-toolbar__slider"],[1,"gb-toolbar__slider-label"],["type","range","min","0","max","100",3,"input","value"],[1,"gb-toolbar__slider-value"],[1,"gb-toolbar__state"],[1,"gb-toolbar__btn","gb-toolbar__btn--play",3,"click","disabled","title"],["title","Pause",1,"gb-toolbar__btn",3,"click","disabled"],["title","Step",1,"gb-toolbar__btn",3,"click","disabled"],["title","Stop",1,"gb-toolbar__btn","gb-toolbar__btn--stop",3,"click","disabled"]],template:function(n,r){if(n&1&&(v(0,"div",0)(1,"div",1),fe(2,hC,8,5),Y(3,"async"),D(),v(4,"div",2)(5,"label",3),_(6,"Delay"),D(),v(7,"input",4),Y(8,"async"),G("input",function(i){return r.onDelayChange(i)}),D(),v(9,"span",5),_(10),Y(11,"async"),D()(),v(12,"span",6),_(13),Y(14,"async"),D()()),n&2){let o,i,s,a;T(2),pe((o=J(3,4,r.state$))?2:-1,o),T(5),ce("value",r.delayToSlider(((i=J(8,6,r.settings$))==null?null:i.actionDelay)??0)),T(3),Mt("",((s=J(11,8,r.settings$))==null?null:s.actionDelay)??0,"ms"),T(3),Ee((a=J(14,10,r.state$))==null?null:a.fsmState)}},dependencies:[Ne,Le],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 gC=(e,t)=>t.index;function mC(e,t){e&1&&_(0," \u23F3 ")}function yC(e,t){e&1&&_(0," \u2713 ")}function vC(e,t){e&1&&_(0," \u23F8 ")}function EC(e,t){e&1&&_(0," \u2717 ")}function DC(e,t){if(e&1){let n=gt();v(0,"div",1)(1,"button",3),G("click",function(){let o=te(n).$implicit,i=U();return ne(i.toggleBreakpoint(o.index))}),D(),v(2,"span",4),_(3),D(),v(4,"span",5),_(5),D(),v(6,"span",6),fe(7,mC,1,0)(8,yC,1,0)(9,vC,1,0)(10,EC,1,0),D()()}if(e&2){let n,r=t.$implicit;Ze("data-status",r.status),T(),Ze("aria-label",pl("Toggle breakpoint at action ",r.index))("data-active",r.hasBreakpoint||null),T(2),Ee(r.index),T(2),Ee(r.description),T(2),pe((n=r.status)==="running"?7:n==="complete"?8:n==="breakpoint"?9:n==="failed"?10:-1)}}function bC(e,t){e&1&&(v(0,"div",2),_(1," No actions yet. Run a journey to see the action log. "),D())}var ha=class e{constructor(t){this.store=t;this.actionsWithBreakpoints$=Gr([this.store.select(ua),this.store.select(da)]).pipe(V(([n,r])=>n.map(o=>C(y({},o),{hasBreakpoint:r.includes(o.index)}))))}actionsWithBreakpoints$;toggleBreakpoint(t){this.store.dispatch(A.toggleBreakpoint({index:t}))}static \u0275fac=function(n){return new(n||e)(oe(W))};static \u0275cmp=Ie({type:e,selectors:[["gb-action-log"]],decls:6,vars:5,consts:[[1,"action-log"],[1,"action-item"],[1,"empty-state"],["title","Toggle breakpoint",1,"bp-pin",3,"click"],[1,"action-index"],[1,"action-description"],[1,"action-status-icon"]],template:function(n,r){if(n&1&&(v(0,"div",0),pt(1,DC,11,7,"div",1,gC),Y(3,"async"),fe(4,bC,2,0,"div",2),Y(5,"async"),D()),n&2){let o;T(),ht(J(3,1,r.actionsWithBreakpoints$)),T(3),pe(((o=J(5,3,r.actionsWithBreakpoints$))==null?null:o.length)===0?4:-1)}},dependencies:[Ne,Le],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 wC=["scrollContainer"],IC=(e,t)=>t.timestamp;function CC(e,t){if(e&1&&(v(0,"div",3),_(1),D()),e&2){let n=U().$implicit;T(),Mt("\u2500\u2500 ",n.message," \u2500\u2500")}}function _C(e,t){if(e&1&&(v(0,"div",4),_(1),D()),e&2){let n=U().$implicit;Ze("data-type",n.type),T(),Ee(n.message)}}function SC(e,t){if(e&1&&fe(0,CC,2,1,"div",3)(1,_C,2,2,"div",4),e&2){let n=t.$implicit;pe(n.type==="separator"?0:1)}}function TC(e,t){e&1&&(v(0,"div",2),_(1,"Console output will appear here."),D())}var ga=class e{constructor(t){this.store=t;this.logs$=this.store.select(la),this.subscription=this.logs$.pipe(Qa()).subscribe(([n,r])=>{r.length>n.length&&this.isAtBottom&&setTimeout(()=>this.scrollToBottom(),0)})}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)(oe(W))};static \u0275cmp=Ie({type:e,selectors:[["gb-console-output"]],viewQuery:function(n,r){if(n&1&&Ls(wC,5),n&2){let o;dl(o=fl())&&(r.scrollContainer=o.first)}},decls:7,vars:5,consts:[["scrollContainer",""],[1,"gb-console",3,"scroll"],[1,"gb-console__empty"],[1,"gb-console__separator"],[1,"gb-console__line"]],template:function(n,r){if(n&1&&(v(0,"div",1,0),G("scroll",function(){return r.onScroll()}),pt(2,SC,2,1,null,null,IC),Y(4,"async"),fe(5,TC,2,0,"div",2),Y(6,"async"),D()),n&2){let o;T(2),ht(J(4,1,r.logs$)),T(3),pe(((o=J(6,3,r.logs$))==null?null:o.length)===0?5:-1)}},dependencies:[Ne,Le],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}gb-console-output .gb-console__empty{padding:var(--space-xl);text-align:center;color:var(--text-muted);font-family:var(--font-sans);font-size:13px}
|
|
13
|
-
`],encapsulation:2})};function MC(e,t){if(e&1&&(v(0,"span",6),_(1),D(),v(2,"span",7),_(3),D()),e&2){let n=U();T(),Mt("\u2713 ",n.passed),T(2),Mt("\u2717 ",n.failed)}}function xC(e,t){if(e&1&&fe(0,MC,4,2),e&2){let n=t;pe(n.passed>0||n.failed>0?0:-1)}}var ma=class e{constructor(t){this.store=t;this.connectionStatus$=this.store.select(Kg),this.summary$=this.store.select(Xg),this.fsmState$=this.store.select(Wo)}connectionStatus$;summary$;fsmState$;static \u0275fac=function(n){return new(n||e)(oe(W))};static \u0275cmp=Ie({type:e,selectors:[["gb-footer"]],decls:14,vars:12,consts:[[1,"gb-footer"],[1,"footer-left"],[1,"connection-dot"],[1,"footer-text"],[1,"footer-center"],[1,"footer-right"],[1,"result-passed"],[1,"result-failed"]],template:function(n,r){if(n&1&&(v(0,"footer",0)(1,"div",1),Tt(2,"span",2),Y(3,"async"),v(4,"span",3),_(5),Y(6,"async"),D()(),v(7,"div",4),fe(8,xC,1,1),Y(9,"async"),D(),v(10,"div",5)(11,"span",3),_(12),Y(13,"async"),D()()()),n&2){let o;T(2),Ze("data-status",J(3,4,r.connectionStatus$)),T(3),Ee(J(6,6,r.connectionStatus$)==="connected"?"Connected":"Disconnected"),T(3),pe((o=J(9,8,r.summary$))?8:-1,o),T(4),Ee(J(13,10,r.fsmState$))}},dependencies:[Ne,Le],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 ya=class e{constructor(t){this.store=t}ws=null;reconnectInterval=3e3;messageHandlers=new Map([["action",t=>this.store.dispatch(A.actionReceived({index:t.index,status:t.status,description:t.description}))],["test-start",t=>this.store.dispatch(A.testStarted({journey:t.journey}))],["test-end",t=>this.store.dispatch(A.testEnded({journey:t.journey,status:t.status,duration:t.duration}))],["run-end",()=>this.store.dispatch(A.runEnded())],["log",t=>this.store.dispatch(A.logReceived({message:t.message,journey:t.journey}))],["error",t=>this.store.dispatch(A.errorReceived({message:t.message,journey:t.journey}))],["ui-control",t=>{t.action==="pause"?this.store.dispatch(A.pausedByRunner()):t.action==="resume"&&this.store.dispatch(A.resumedByRunner())}]]);connect(){let n=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;this.ws=new WebSocket(n),this.ws.onopen=()=>{this.store.dispatch(A.connectionStatusChanged({status:"connected"}))},this.ws.onclose=()=>{this.store.dispatch(A.connectionStatusChanged({status:"disconnected"})),setTimeout(()=>this.connect(),this.reconnectInterval)},this.ws.onmessage=r=>{let o=JSON.parse(r.data);this.dispatchMessage(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)(E(W))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})};function AC(e,t){e&1&&(xe(0,"div",12)(1,"span",13),_(2,"\u2717"),He(),xe(3,"span",14),_(4),He()()),e&2&&(T(4),Ee(t))}function RC(e,t){e&1&&St(0,"gb-action-log")}function OC(e,t){e&1&&St(0,"gb-console-output")}var va=class e{constructor(t,n,r){this.wsService=t;this.themeService=n;this.store=r;this.settingsOpen$=this.store.select(Zg),this.activeTab$=this.store.select(Yg),this.sidebarWidth$=this.store.select(Jg),this.fsmState$=this.store.select(Wo),this.lastError$=this.store.select(rm),this.sidebarWidth$.subscribe(o=>this.currentSidebarWidth=o)}settingsOpen$;activeTab$;sidebarWidth$;fsmState$;lastError$;currentSidebarWidth=240;ngOnInit(){this.wsService.connect(),this.themeService.initialize(),this.store.dispatch(H.loadSettings())}toggleSettings(){this.store.dispatch(H.toggleSettingsPanel())}setTab(t){this.store.dispatch(H.updateSetting({key:"activeTab",value:t}))}copyContent(){return At(this,null,function*(){let[t,n,r]=yield Promise.all([ir(this.activeTab$),ir(this.store.select(ua)),ir(this.store.select(la))]),o=t==="actions"?n.map(i=>`[${i.index}] ${i.description}`).join(`
|
|
15
|
-
`):r.map(i=>i.message).join(`
|
|
16
|
-
`);navigator.clipboard.writeText(o)})}clearContent(){return At(this,null,function*(){(yield ir(this.activeTab$))==="actions"?this.store.dispatch(A.clearActions()):this.store.dispatch(A.clearConsole())})}startResize(t){t.preventDefault();let n=t.clientX,r=this.currentSidebarWidth,o=s=>{let a=Math.max(150,Math.min(500,r+(s.clientX-n)));this.currentSidebarWidth=a;let c=document.querySelector("gb-sidebar");c&&(c.style.width=`${a}px`)},i=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i),document.body.style.cursor="",document.body.style.userSelect="",this.store.dispatch(H.updateSetting({key:"sidebarWidth",value:this.currentSidebarWidth}))};document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",o),document.addEventListener("mouseup",i)}static \u0275fac=function(n){return new(n||e)(oe(ya),oe(pn),oe(W))};static \u0275cmp=Ie({type:e,selectors:[["gb-root"]],decls:30,vars:23,consts:[[1,"app-layout"],[3,"settingsToggled"],[3,"isOpen"],[1,"main-layout"],[1,"resize-handle",3,"mousedown"],[1,"content"],[1,"tab-bar"],[1,"tab",3,"click"],[1,"tab-spacer"],["title","Copy to clipboard",1,"tab-action",3,"click"],["title","Clear",1,"tab-action",3,"click"],[1,"tab-content"],[1,"error-banner"],[1,"error-banner__icon"],[1,"error-banner__text"]],template:function(n,r){if(n&1&&(xe(0,"div",0)(1,"gb-header",1),zt("settingsToggled",function(){return r.toggleSettings()}),He(),St(2,"gb-settings-panel",2),Y(3,"async"),xe(4,"div",3),St(5,"gb-sidebar"),Y(6,"async"),xe(7,"div",4),zt("mousedown",function(i){return r.startResize(i)}),He(),xe(8,"main",5),St(9,"gb-toolbar"),xe(10,"div",6)(11,"button",7),Y(12,"async"),zt("click",function(){return r.setTab("actions")}),_(13," Actions "),He(),xe(14,"button",7),Y(15,"async"),zt("click",function(){return r.setTab("console")}),_(16," Console "),He(),St(17,"span",8),xe(18,"button",9),zt("click",function(){return r.copyContent()}),_(19,"\u{1F4CB}"),He(),xe(20,"button",10),zt("click",function(){return r.clearContent()}),_(21,"\u{1F5D1}\uFE0F"),He()(),xe(22,"div",11),fe(23,AC,5,1,"div",12),Y(24,"async"),Y(25,"async"),fe(26,RC,1,0,"gb-action-log"),Y(27,"async"),Mo(28,OC,1,0,"gb-console-output"),He()()(),St(29,"gb-footer"),He()),n&2){let o;T(2),Ps("isOpen",J(3,9,r.settingsOpen$)??!1),T(3),js("width",J(6,11,r.sidebarWidth$)??240,"px"),T(6),No("active",J(12,13,r.activeTab$)==="actions"),T(3),No("active",J(15,15,r.activeTab$)==="console"),T(9),pe((o=J(24,17,r.fsmState$)==="errored"&&J(25,19,r.lastError$))?23:-1,o),T(3),pe(J(27,21,r.activeTab$)==="actions"?26:28)}},dependencies:[Ne,sa,ca,fa,pa,ha,ga,ma,Le],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 kC={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},Ea="__@ngrx/effects_create__";function Be(e,t={}){let n=t.functional?e:e(),r=y(y({},kC),t);return Object.defineProperty(n,Ea,{value:r}),n}function FC(e){return Object.getOwnPropertyNames(e).filter(r=>e[r]&&e[r].hasOwnProperty(Ea)?e[r][Ea].hasOwnProperty("dispatch"):!1).map(r=>{let o=e[r][Ea];return y({propertyName:r},o)})}function PC(e){return FC(e)}function om(e){return Object.getPrototypeOf(e)}function LC(e){return!!e.constructor&&e.constructor.name!=="Object"&&e.constructor.name!=="Function"}function im(e){return typeof e=="function"}function jC(e){return e.filter(im)}function BC(e,t,n){let r=om(e),i=!!r&&r.constructor.name!=="Object"?r.constructor.name:null,s=PC(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(Wa()):d.pipe(Ja()).pipe(V(p=>({effect:e[a],notification:p,propertyName:a,sourceName:i,sourceInstance:e})))});return In(...s)}var VC=10;function sm(e,t,n=VC){return e.pipe($e(r=>(t&&t.handleError(r),n<=1?e:sm(e,t,n-1))))}var Pr=(()=>{class e extends B{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)(E(qn))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Ve(...e){return we(t=>e.some(n=>typeof n=="string"?n===t.type:n.type===t.type))}var $C=new w("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>sm}),UC="@ngrx/effects/init",HC=Ll(UC);function zC(e,t){if(e.notification.kind==="N"){let n=e.notification.value;!GC(n)&&t.handleError(new Error(`Effect ${WC(e)} dispatched an invalid action: ${qC(n)}`))}}function GC(e){return typeof e!="function"&&e&&e.type&&typeof e.type=="string"}function WC({propertyName:e,sourceInstance:t,sourceName:n}){let r=typeof t[e]=="function";return!!n?`"${n}.${String(e)}${r?"()":""}"`:`"${String(e)}()"`}function qC(e){try{return JSON.stringify(e)}catch(t){return e}}var ZC="ngrxOnIdentifyEffects";function YC(e){return zl(e,ZC)}var JC="ngrxOnRunEffects";function QC(e){return zl(e,JC)}var KC="ngrxOnInitEffects";function XC(e){return zl(e,KC)}function zl(e,t){return e&&t in e&&typeof e[t]=="function"}var am=(()=>{class e extends me{constructor(n,r){super(),this.errorHandler=n,this.effectsErrorHandler=r}addEffects(n){this.next(n)}toActions(){return this.pipe(Si(n=>LC(n)?om(n):n),yt(n=>n.pipe(Si(e_))),yt(n=>{let r=n.pipe(sr(i=>t_(this.errorHandler,this.effectsErrorHandler)(i)),V(i=>(zC(i,this.errorHandler),i.notification)),we(i=>i.kind==="N"&&i.value!=null),qa()),o=n.pipe(Yt(1),we(XC),V(i=>i.ngrxOnInitEffects()));return In(r,o)}))}static{this.\u0275fac=function(r){return new(r||e)(E(Fe),E($C))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function e_(e){return YC(e)?e.ngrxOnIdentifyEffects():""}function t_(e,t){return n=>{let r=BC(n,e,t);return QC(n)?n.ngrxOnRunEffects(r):r}}var n_=(()=>{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)(E(am),E(W))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function cm(...e){let t=e.flat(),n=jC(t);return Qe([n,lr(()=>{g(Uo),g(ra,{optional:!0});let r=g(n_),o=g(am),i=!r.isStarted;i&&r.start();for(let s of t){let a=im(s)?g(s):s;o.addEffects(a)}i&&g(W).dispatch(HC())})])}var Zo="PERFORM_ACTION",r_="REFRESH",hm="RESET",gm="ROLLBACK",mm="COMMIT",ym="SWEEP",vm="TOGGLE_ACTION",o_="SET_ACTIONS_ACTIVE",Em="JUMP_TO_STATE",Dm="JUMP_TO_ACTION",rd="IMPORT_STATE",bm="LOCK_CHANGES",wm="PAUSE_RECORDING",Lr=class{constructor(t,n){if(this.action=t,this.timestamp=n,this.type=Zo,typeof t.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}},Gl=class{constructor(){this.type=r_}},Wl=class{constructor(t){this.timestamp=t,this.type=hm}},ql=class{constructor(t){this.timestamp=t,this.type=gm}},Zl=class{constructor(t){this.timestamp=t,this.type=mm}},Yl=class{constructor(){this.type=ym}},Jl=class{constructor(t){this.id=t,this.type=vm}};var Ql=class{constructor(t){this.index=t,this.type=Em}},Kl=class{constructor(t){this.actionId=t,this.type=Dm}},Xl=class{constructor(t){this.nextLiftedState=t,this.type=rd}},ed=class{constructor(t){this.status=t,this.type=bm}},td=class{constructor(t){this.status=t,this.type=wm}};var Ia=new w("@ngrx/store-devtools Options"),um=new w("@ngrx/store-devtools Initial Config");function Im(){return null}var i_="NgRx Store DevTools";function s_(e){let t={maxAge:!1,monitor:Im,actionSanitizer:void 0,stateSanitizer:void 0,name:i_,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 lm(e,t){return e.filter(n=>t.indexOf(n)<0)}function Cm(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 qo(e){return new Lr(e,+Date.now())}function a_(e,t){return Object.keys(t).reduce((n,r)=>{let o=Number(r);return n[o]=_m(e,t[o],o),n},{})}function _m(e,t,n){return C(y({},t),{action:e(t.action,n)})}function c_(e,t){return t.map((n,r)=>({state:Sm(e,n.state,r),error:n.error}))}function Sm(e,t,n){return e(t,n)}function Tm(e){return e.predicate||e.actionsSafelist||e.actionsBlocklist}function u_(e,t,n,r){let o=[],i={},s=[];return e.stagedActionIds.forEach((a,c)=>{let u=e.actionsById[a];u&&(c&&od(e.computedStates[c],u,t,n,r)||(i[a]=u,o.push(a),s.push(e.computedStates[c])))}),C(y({},e),{stagedActionIds:o,actionsById:i,computedStates:s})}function od(e,t,n,r,o){let i=n&&!n(e,t.action),s=r&&!t.action.type.match(r.map(c=>dm(c)).join("|")),a=o&&t.action.type.match(o.map(c=>dm(c)).join("|"));return i||s||a}function dm(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Mm(e){return{ngZone:e?g(re):null,connectInZone:e}}var Ca=(()=>{class e extends xt{static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=wo(e)))(o||e)}})()}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})(),Da={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},nd=new w("@ngrx/store-devtools Redux Devtools Extension"),xm=(()=>{class e{constructor(n,r,o){this.config=r,this.dispatcher=o,this.zoneConfig=Mm(this.config.connectInZone),this.devtoolsExtension=n,this.createActionStreams()}notify(n,r){if(this.devtoolsExtension)if(n.type===Zo){if(r.isLocked||r.isPaused)return;let o=Cm(r);if(Tm(this.config)&&od(o,n,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let i=this.config.stateSanitizer?Sm(this.config.stateSanitizer,o,r.currentStateIndex):o,s=this.config.actionSanitizer?_m(this.config.actionSanitizer,n,r.nextActionId):n;this.sendToReduxDevtools(()=>this.extensionConnection.send(s,i))}else{let o=C(y({},r),{stagedActionIds:r.stagedActionIds,actionsById:this.config.actionSanitizer?a_(this.config.actionSanitizer,r.actionsById):r.actionsById,computedStates:this.config.stateSanitizer?c_(this.config.stateSanitizer,r.computedStates):r.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,o,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new B(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}):be}createActionStreams(){let n=this.createChangesObservable().pipe(ec()),r=n.pipe(we(u=>u.type===Da.START)),o=n.pipe(we(u=>u.type===Da.STOP)),i=n.pipe(we(u=>u.type===Da.DISPATCH),V(u=>this.unwrapAction(u.payload)),Wr(u=>u.type===rd?this.dispatcher.pipe(we(l=>l.type===ia),Ga(1e3),qr(1e3),V(()=>u),$e(()=>Ft(u)),Yt(1)):Ft(u))),a=n.pipe(we(u=>u.type===Da.ACTION),V(u=>this.unwrapAction(u.payload))).pipe(Yr(o)),c=i.pipe(Yr(o));this.start$=r.pipe(Yr(o)),this.actions$=this.start$.pipe(he(()=>a)),this.liftedActions$=this.start$.pipe(he(()=>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)(E(nd),E(Ia),E(Ca))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})(),wa={type:Ho},l_="@ngrx/store-devtools/recompute",d_={type:l_};function Nm(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 ba(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,L=s.indexOf(f)>-1?h:Nm(n,p,m,b,a);u.push(L)}return c&&u.push(e[e.length-1]),u}function f_(e,t){return{monitorState:t(void 0,{}),nextActionId:1,actionsById:{0:qo(wa)},stagedActionIds:[0],skippedActionIds:[],committedState:e,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function p_(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 L(ee){let Q=ee,_e=d.slice(1,Q+1);for(let nt=0;nt<_e.length;nt++)if(m[nt+1].error){Q=nt,_e=d.slice(1,Q+1);break}else delete u[_e[nt]];f=f.filter(nt=>_e.indexOf(nt)===-1),d=[0,...d.slice(Q+1)],p=m[Q].state,m=m.slice(Q),h=h>Q?h-Q:0}function le(){u={0:qo(wa)},l=1,d=[0],f=[],p=m[h].state,h=0,m=[]}let F=0;switch(a.type){case bm:{b=a.status,F=1/0;break}case wm:{I=a.status,I?(d=[...d,l],u[l]=new Lr({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):le();break}case hm:{u={0:qo(wa)},l=1,d=[0],f=[],p=e,h=0,m=[];break}case mm:{le();break}case gm:{u={0:qo(wa)},l=1,d=[0],f=[],h=0,m=[];break}case vm:{let{id:ee}=a;f.indexOf(ee)===-1?f=[ee,...f]:f=f.filter(_e=>_e!==ee),F=d.indexOf(ee);break}case o_:{let{start:ee,end:Q,active:_e}=a,nt=[];for(let Ma=ee;Ma<Q;Ma++)nt.push(Ma);_e?f=lm(f,nt):f=[...f,...nt],F=d.indexOf(ee);break}case Em:{h=a.index,F=1/0;break}case Dm:{let ee=d.indexOf(a.actionId);ee!==-1&&(h=ee),F=1/0;break}case ym:{d=lm(d,f),f=[],h=Math.min(h,d.length-1);break}case Zo:{if(b)return s||t;if(I||s&&od(s.computedStates[h],a,o.predicate,o.actionsSafelist,o.actionsBlocklist)){let Q=m[m.length-1];m=[...m.slice(0,-1),Nm(i,a.action,Q.state,Q.error,n)],F=1/0;break}o.maxAge&&d.length===o.maxAge&&L(1),h===d.length-1&&h++;let ee=l++;u[ee]=a,d=[...d,ee],F=d.length-1;break}case rd:{({monitorState:c,actionsById:u,nextActionId:l,stagedActionIds:d,skippedActionIds:f,committedState:p,currentStateIndex:h,computedStates:m,isLocked:b,isPaused:I}=a.nextLiftedState);break}case Ho:{F=0,o.maxAge&&d.length>o.maxAge&&(m=ba(m,F,i,p,u,d,f,n,I),L(d.length-o.maxAge),F=1/0);break}case ia:{if(m.filter(Q=>Q.error).length>0)F=0,o.maxAge&&d.length>o.maxAge&&(m=ba(m,F,i,p,u,d,f,n,I),L(d.length-o.maxAge),F=1/0);else{if(!I&&!b){h===d.length-1&&h++;let Q=l++;u[Q]=new Lr(a,+Date.now()),d=[...d,Q],F=d.length-1,m=ba(m,F,i,p,u,d,f,n,I)}m=m.map(Q=>C(y({},Q),{state:i(Q.state,d_)})),h=d.length-1,o.maxAge&&d.length>o.maxAge&&L(d.length-o.maxAge),F=1/0}break}default:{F=1/0;break}}return m=ba(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 fm=(()=>{class e{constructor(n,r,o,i,s,a,c,u){let l=f_(c,u.monitor),d=p_(c,l,a,u.monitor,u),f=In(In(r.asObservable().pipe(tc(1)),i.actions$).pipe(V(qo)),n,i.liftedActions$).pipe(kt(zr)),p=o.pipe(V(d)),h=Mm(u.connectInZone),m=new Ur(1);this.liftedStateSubscription=f.pipe(Ye(p),pm(h),Zr(({state:L},[le,F])=>{let ee=F(L,le);return le.type!==Zo&&Tm(u)&&(ee=u_(ee,u.predicate,u.actionsSafelist,u.actionsBlocklist)),i.notify(le,ee),{state:ee,action:le}},{state:l,action:null})).subscribe(({state:L,action:le})=>{if(m.next(L),le.type===Zo){let F=le.action;s.next(F)}}),this.extensionStartSubscription=i.start$.pipe(pm(h)).subscribe(()=>{this.refresh()});let b=m.asObservable(),I=b.pipe(V(Cm));Object.defineProperty(I,"state",{value:ta(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 Lr(n,+Date.now()))}refresh(){this.dispatch(new Gl)}reset(){this.dispatch(new Wl(+Date.now()))}rollback(){this.dispatch(new ql(+Date.now()))}commit(){this.dispatch(new Zl(+Date.now()))}sweep(){this.dispatch(new Yl)}toggleAction(n){this.dispatch(new Jl(n))}jumpToAction(n){this.dispatch(new Kl(n))}jumpToState(n){this.dispatch(new Ql(n))}importState(n){this.dispatch(new Xl(n))}lockChanges(n){this.dispatch(new ed(n))}pauseRecording(n){this.dispatch(new td(n))}static{this.\u0275fac=function(r){return new(r||e)(E(Ca),E(xt),E(Wn),E(xm),E(qn),E(Fe),E(zo),E(Ia))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})();function pm({ngZone:e,connectInZone:t}){return n=>t?new B(r=>n.subscribe({next:o=>e.run(()=>r.next(o)),error:o=>e.run(()=>r.error(o)),complete:()=>e.run(()=>r.complete())})):n}var h_=new w("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function g_(e,t){return!!e||t.monitor!==Im}function m_(){let e="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[e]<"u"?window[e]:null}function y_(e){return e.state}function Am(e={}){return Qe([xm,Ca,fm,{provide:um,useValue:e},{provide:h_,deps:[nd,Ia],useFactory:g_},{provide:nd,useFactory:m_},{provide:Ia,deps:[um],useFactory:s_},{provide:Rr,deps:[fm],useFactory:y_},{provide:Ar,useExisting:Ca}])}var v_={fsmState:"idle",actions:[],breakpoints:[],consoleLogs:[],connectionStatus:"disconnected",results:[],currentJourney:null},Rm=Fr(v_,Z(A.play,e=>C(y({},e),{fsmState:"running",actions:[],consoleLogs:[],results:[]})),Z(A.pause,e=>C(y({},e),{fsmState:"paused"})),Z(A.resume,e=>C(y({},e),{fsmState:"running"})),Z(A.step,e=>C(y({},e),{fsmState:"stepping"})),Z(A.stop,e=>C(y({},e),{fsmState:"idle"})),Z(A.pausedByRunner,e=>C(y({},e),{fsmState:"paused"})),Z(A.resumedByRunner,e=>C(y({},e),{fsmState:"running"})),Z(A.runEnded,e=>C(y({},e),{fsmState:"idle"})),Z(A.actionReceived,(e,{index:t,status:n,description:r})=>{let o=e.actions.find(a=>a.index===t),i=E_(n),s=n==="breakpoint"&&!e.breakpoints.includes(t)?[...e.breakpoints,t]:e.breakpoints;return o?C(y({},e),{breakpoints:s,actions:e.actions.map(a=>a.index===t?C(y({},a),{status:i}):a),fsmState:n==="breakpoint"?"paused":e.fsmState}):C(y({},e),{breakpoints:s,actions:[...e.actions,{index:t,description:r??"",status:i,hasBreakpoint:s.includes(t)}],fsmState:n==="breakpoint"?"paused":e.fsmState})}),Z(A.testStarted,(e,{journey:t})=>C(y({},e),{currentJourney:t,consoleLogs:[...e.consoleLogs,{type:"separator",message:t,timestamp:Date.now()}]})),Z(A.testEnded,(e,{journey:t,status:n,duration:r})=>C(y({},e),{results:[...e.results,{journey:t,status:n,duration:r}],currentJourney:null,actions:n==="failed"?e.actions.map(o=>o.status==="running"?C(y({},o),{status:"failed"}):o):e.actions,fsmState:n==="failed"?"errored":e.fsmState})),Z(A.logReceived,(e,{message:t})=>C(y({},e),{consoleLogs:[...e.consoleLogs,{type:"log",message:t,timestamp:Date.now()}]})),Z(A.errorReceived,(e,{message:t})=>C(y({},e),{consoleLogs:[...e.consoleLogs,{type:"error",message:t,timestamp:Date.now()}]})),Z(A.connectionStatusChanged,(e,{status:t})=>C(y({},e),{connectionStatus:t})),Z(A.toggleBreakpoint,(e,{index:t})=>{let n=e.breakpoints.includes(t);return C(y({},e),{breakpoints:n?e.breakpoints.filter(r=>r!==t):[...e.breakpoints,t]})}),Z(A.clearActions,e=>C(y({},e),{actions:[]})),Z(A.clearConsole,e=>C(y({},e),{consoleLogs:[]})));function E_(e){switch(e){case"start":return"running";case"complete":return"complete";case"breakpoint":return"breakpoint";default:return"pending"}}var D_={journeys:[],selectedIds:[],loading:!1},Om=Fr(D_,Z(je.loadJourneys,e=>C(y({},e),{loading:!0})),Z(je.loadJourneysSuccess,(e,{journeys:t})=>C(y({},e),{journeys:t,selectedIds:e.selectedIds.length>0?e.selectedIds:t.map(n=>n.id),loading:!1})),Z(je.toggleJourney,(e,{id:t})=>{let n=e.selectedIds.includes(t);return C(y({},e),{selectedIds:n?e.selectedIds.filter(r=>r!==t):[...e.selectedIds,t]})}),Z(je.selectAll,e=>C(y({},e),{selectedIds:e.journeys.map(t=>t.id)})),Z(je.deselectAll,e=>C(y({},e),{selectedIds:[]})),Z(H.loadSettingsSuccess,(e,{settings:t})=>{let n=t.selectedJourneyIds;return n&&n.length>0?C(y({},e),{selectedIds:n}):e}));var b_={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:""},km=Fr(b_,Z(H.loadSettingsSuccess,(e,{settings:t})=>y(y({},e),t)),Z(H.updateSetting,(e,{key:t,value:n})=>{let r=C(y({},e),{[t]:n});if(t==="targetUrl"&&typeof n=="string"&&n.trim()){let o=e.targetUrlHistory.filter(i=>i!==n);r.targetUrlHistory=[n,...o].slice(0,10)}return r}),Z(H.toggleSettingsPanel,e=>C(y({},e),{settingsPanelOpen:!e.settingsPanelOpen})),Z(H.removeUrlFromHistory,(e,{url:t})=>C(y({},e),{targetUrlHistory:e.targetUrlHistory.filter(n=>n!==t)})));var _a=class e{actions$=g(Pr);api=g(Nt);store=g(W);play$=Be(()=>this.actions$.pipe(Ve(A.play),Ye(this.store.select(Hl),this.store.select(Qg)),sr(([,t,n])=>this.api.runTests(t,n).pipe($e(()=>be)))),{dispatch:!1});pause$=Be(()=>this.actions$.pipe(Ve(A.pause),he(()=>this.api.pauseTests().pipe($e(()=>be)))),{dispatch:!1});resume$=Be(()=>this.actions$.pipe(Ve(A.resume),he(()=>this.api.resumeTests().pipe($e(()=>be)))),{dispatch:!1});step$=Be(()=>this.actions$.pipe(Ve(A.step),he(()=>this.api.stepTests().pipe($e(()=>be)))),{dispatch:!1});stop$=Be(()=>this.actions$.pipe(Ve(A.stop),he(()=>this.api.stopTests().pipe($e(()=>be)))),{dispatch:!1});updateConfig$=Be(()=>this.actions$.pipe(Ve(A.updateConfig),he(({actionDelay:t})=>this.api.updateConfig({actionDelay:t}).pipe($e(()=>be)))),{dispatch:!1});syncBreakpoints$=Be(()=>this.actions$.pipe(Ve(A.toggleBreakpoint),Ye(this.store.select(da),this.store.select(Hl)),he(([,t,n])=>{let r=n[0]??"";return r?this.api.setBreakpoints(r,t).pipe($e(()=>be)):be})),{dispatch:!1});static \u0275fac=function(n){return new(n||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})};var Sa=class e{actions$=g(Pr);api=g(Nt);store=g(W);themeService=g(pn);loadSettings$=Be(()=>this.actions$.pipe(Ve(H.loadSettings),he(()=>this.api.getSettings()),V(t=>H.loadSettingsSuccess({settings:t}))));applyTheme$=Be(()=>this.actions$.pipe(Ve(H.loadSettingsSuccess),it(({settings:t})=>{this.themeService.applyFromSettings(t.theme)})),{dispatch:!1});saveSettings$=Be(()=>this.actions$.pipe(Ve(H.updateSetting,H.toggleSettingsPanel),qr(500),Ye(this.store.select(aa)),it(([,t])=>{this.api.saveSettings(t).subscribe()})),{dispatch:!1});static \u0275fac=function(n){return new(n||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})};var Ta=class e{actions$=g(Pr);api=g(Nt);store=g(W);loadJourneys$=Be(()=>this.actions$.pipe(Ve(je.loadJourneys),he(()=>this.api.getJourneys()),V(t=>je.loadJourneysSuccess({journeys:t}))));persistSelection$=Be(()=>this.actions$.pipe(Ve(je.toggleJourney,je.selectAll,je.deselectAll),Ye(this.store.select(Go)),it(([,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 Fm={providers:[Xh({eventCoalescing:!0}),Nl(),Wg({execution:Rm,journeys:Om,settings:km}),cm(_a,Sa,Ta),Am({maxAge:50,logOnly:!Oo(),name:"Glassbox"})]};_l(va,Fm).catch(e=>console.error(e));
|