@mbubela/oaa-assistant 0.0.4 → 0.0.6
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,10 +1,10 @@
|
|
|
1
|
-
"use strict";var WebComponents=(()=>{var
|
|
1
|
+
"use strict";var WebComponents=(()=>{var Oi=Object.defineProperty;var ff=Object.getOwnPropertyDescriptor;var pf=Object.getOwnPropertyNames;var gf=Object.prototype.hasOwnProperty;var mf=(e,t)=>{for(var n in t)Oi(e,n,{get:t[n],enumerable:!0})},vf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of pf(t))!gf.call(e,i)&&i!==n&&Oi(e,i,{get:()=>t[i],enumerable:!(r=ff(t,i))||r.enumerable});return e};var yf=e=>vf(Oi({},"__esModule",{value:!0}),e);var z_={};mf(z_,{initializeApp:()=>hf});var bf=Object.defineProperty,Cf=Object.defineProperties,wf=Object.getOwnPropertyDescriptors,ma=Object.getOwnPropertySymbols,_f=Object.prototype.hasOwnProperty,xf=Object.prototype.propertyIsEnumerable,va=(e,t,n)=>t in e?bf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,t)=>{for(var n in t||={})_f.call(t,n)&&va(e,n,t[n]);if(ma)for(var n of ma(t))xf.call(t,n)&&va(e,n,t[n]);return e},N=(e,t)=>Cf(e,wf(t)),X=(e,t,n)=>new Promise((r,i)=>{var s=l=>{try{a(n.next(l))}catch(u){i(u)}},o=l=>{try{a(n.throw(l))}catch(u){i(u)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(s,o);a((n=n.apply(e,t)).next())}),is;function Zl(){return is}function Xe(e){let t=is;return is=e,t}var kf=Symbol("NotFound");function Ks(e){return e===kf||e?.name==="\u0275NotFound"}var te=null,ur=!1,Xs=1,Sf=null,Ve=Symbol("SIGNAL");function I(e){let t=te;return te=e,t}function Of(){return te}var ti={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 ql(e){if(ur)throw new Error("");if(te===null)return;te.consumerOnSignalRead(e);let t=te.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=te.recomputing;if(r&&(n=t!==void 0?t.nextProducer:te.producers,n!==void 0&&n.producer===e)){te.producersTail=n,n.lastReadVersion=e.version;return}let i=e.consumersTail;if(i!==void 0&&i.consumer===te&&(!r||Pf(i,te)))return;let s=Wt(te),o={producer:e,consumer:te,nextProducer:n,prevConsumer:i,lastReadVersion:e.version,nextConsumer:void 0};te.producersTail=o,t!==void 0?t.nextProducer=o:te.producers=o,s&&Xl(e,o)}function Ef(){Xs++}function Gl(e){if(!(Wt(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Xs)){if(!e.producerMustRecompute(e)&&!Jl(e)){ya(e);return}e.producerRecomputeValue(e),ya(e)}}function Wl(e){if(e.consumers===void 0)return;let t=ur;ur=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Tf(r)}}finally{ur=t}}function Ql(){return te?.consumerAllowSignalWrites!==!1}function Tf(e){e.dirty=!0,Wl(e),e.consumerMarkedDirty?.(e)}function ya(e){e.dirty=!1,e.lastCleanEpoch=Xs}function ss(e){return e&&Mf(e),I(e)}function Mf(e){e.producersTail=void 0,e.recomputing=!0}function Yl(e,t){I(t),e&&If(e)}function If(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Wt(e))do n=eo(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function Jl(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Gl(n),r!==n.version))return!0}return!1}function Kl(e){if(Wt(e)){let t=e.producers;for(;t!==void 0;)t=eo(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Xl(e,t){let n=e.consumersTail,r=Wt(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 i=e.producers;i!==void 0;i=i.nextProducer)Xl(i.producer,i)}function eo(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,i=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=i:t.consumersTail=i,i!==void 0)i.nextConsumer=r;else if(t.consumers=r,!Wt(t)){let s=t.producers;for(;s!==void 0;)s=eo(s)}return n}function Wt(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function eu(e){Sf?.(e)}function Pf(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 tu(e,t){return Object.is(e,t)}function Df(e,t){let n=Object.create(Af);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Gl(n),ql(n),n.value===cr)throw n.error;return n.value};return r[Ve]=n,eu(n),r}var Ei=Symbol("UNSET"),Ti=Symbol("COMPUTING"),cr=Symbol("ERRORED"),Af=N(M({},ti),{value:Ei,dirty:!0,error:null,equal:tu,kind:"computed",producerMustRecompute(e){return e.value===Ei||e.value===Ti},producerRecomputeValue(e){if(e.value===Ti)throw new Error("");let t=e.value;e.value=Ti;let n=ss(e),r,i=!1;try{r=e.computation(),I(null),i=t!==Ei&&t!==cr&&r!==cr&&e.equal(t,r)}catch(s){r=cr,e.error=s}finally{Yl(e,n)}if(i){e.value=t;return}e.value=r,e.version++}});function Vf(){throw new Error}var nu=Vf;function ru(e){nu(e)}function Nf(e){nu=e}var Rf=null;function Ff(e,t){let n=Object.create(Hf);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Lf(n);return r[Ve]=n,eu(n),[r,i=>iu(n,i),i=>jf(n,i)]}function Lf(e){return ql(e),e.value}function iu(e,t){Ql()||ru(e),e.equal(e.value,t)||(e.value=t,zf(e))}function jf(e,t){Ql()||ru(e),iu(e,t(e.value))}var Hf=N(M({},ti),{equal:tu,value:void 0,kind:"signal"});function zf(e){e.version++,Ef(),Wl(e),Rf?.(e)}function $(e){return typeof e=="function"}function ni(e){let t=e(n=>{Error.call(n),n.stack=new Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Mi=ni(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:
|
|
2
2
|
${t.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
|
|
3
|
-
`)}`:"",this.name="UnsubscriptionError",this.errors=t});function or(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var we=class Ni{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 s of n)s.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(N(r))try{r()}catch(s){t=s instanceof ni?s.errors:[s]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let s of i)try{Ho(s)}catch(o){t=t??[],o instanceof ni?t=[...t,...o.errors]:t.push(o)}}if(t)throw new ni(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Ho(t);else{if(t instanceof Ni){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)&&or(n,t)}remove(t){let{_finalizers:n}=this;n&&or(n,t),t instanceof Ni&&t._removeParent(this)}};we.EMPTY=(()=>{let e=new we;return e.closed=!0,e})();var Sa=we.EMPTY;function Ta(e){return e instanceof we||e&&"closed"in e&&N(e.remove)&&N(e.add)&&N(e.unsubscribe)}function Ho(e){N(e)?e():e.unsubscribe()}var dt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},lr={setTimeout(e,t,...n){let{delegate:r}=lr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=lr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ia(e){lr.setTimeout(()=>{let{onUnhandledError:t}=dt;if(t)t(e);else throw e})}function zo(){}var lf=Is("C",void 0,void 0);function af(e){return Is("E",void 0,e)}function uf(e){return Is("N",e,void 0)}function Is(e,t,n){return{kind:e,value:t,error:n}}var Ye=null;function $n(e){if(dt.useDeprecatedSynchronousErrorHandling){let t=!Ye;if(t&&(Ye={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Ye;if(Ye=null,n)throw r}}else e()}function cf(e){dt.useDeprecatedSynchronousErrorHandling&&Ye&&(Ye.errorThrown=!0,Ye.error=e)}var Os=class extends we{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Ta(e)&&e.add(this)):this.destination=pf}static create(e,t,n){return new St(e,t,n)}next(e){this.isStopped?ii(uf(e),this):this._next(e)}error(e){this.isStopped?ii(af(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?ii(lf,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},df=Function.prototype.bind;function ri(e,t){return df.call(e,t)}var hf=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(n){Mn(n)}}error(e){let{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(n){Mn(n)}else Mn(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){Mn(t)}}},St=class extends Os{constructor(e,t,n){super();let r;if(N(e)||!e)r={next:e??void 0,error:t??void 0,complete:n??void 0};else{let i;this&&dt.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&ri(e.next,i),error:e.error&&ri(e.error,i),complete:e.complete&&ri(e.complete,i)}):r=e}this.destination=new hf(r)}};function Mn(e){dt.useDeprecatedSynchronousErrorHandling?cf(e):Ia(e)}function ff(e){throw e}function ii(e,t){let{onStoppedNotification:n}=dt;n&&lr.setTimeout(()=>n(e,t))}var pf={closed:!0,next:zo,error:ff,complete:zo},Ms=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ps(e){return e}function gf(e){return e.length===0?Ps:e.length===1?e[0]:function(t){return e.reduce((n,r)=>r(n),t)}}var U=(()=>{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,i){let s=yf(n)?n:new St(n,r,i);return $n(()=>{let{operator:o,source:l}=this;s.add(o?o.call(s,l):l?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Bo(r),new r((i,s)=>{let o=new St({next:l=>{try{n(l)}catch(a){s(a),o.unsubscribe()}},error:s,complete:i});this.subscribe(o)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Ms](){return this}pipe(...n){return gf(n)(this)}toPromise(n){return n=Bo(n),new n((r,i)=>{let s;this.subscribe(o=>s=o,o=>i(o),()=>r(s))})}}return e.create=t=>new e(t),e})();function Bo(e){var t;return(t=e??dt.Promise)!==null&&t!==void 0?t:Promise}function mf(e){return e&&N(e.next)&&N(e.error)&&N(e.complete)}function yf(e){return e&&e instanceof Os||mf(e)&&Ta(e)}function vf(e){return N(e?.lift)}function me(e){return t=>{if(vf(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 oe(e,t,n,r,i){return new bf(e,t,n,r,i)}var bf=class extends Os{constructor(e,t,n,r,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=t?function(o){try{t(o)}catch(l){e.error(l)}}:super._next,this._error=r?function(o){try{r(o)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(o){e.error(o)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:t}=this;super.unsubscribe(),!t&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}},_f=Ts(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}),qe=(()=>{class e extends U{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Uo(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new _f}next(n){$n(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){$n(()=>{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(){$n(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:s}=this;return r||i?Sa:(this.currentObservers=null,s.push(n),new we(()=>{this.currentObservers=null,or(s,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:s}=this;r?n.error(i):s&&n.complete()}asObservable(){let n=new U;return n.source=this,n}}return e.create=(t,n)=>new Uo(t,n),e})(),Uo=class extends qe{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.next)===null||n===void 0||n.call(t,e)}error(e){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.error)===null||n===void 0||n.call(t,e)}complete(){var e,t;(t=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||t===void 0||t.call(e)}_subscribe(e){var t,n;return(n=(t=this.source)===null||t===void 0?void 0:t.subscribe(e))!==null&&n!==void 0?n:Sa}},Oa=class extends qe{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){let{hasError:e,thrownError:t,_value:n}=this;if(e)throw t;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}},Ds={now(){return(Ds.delegate||Date).now()},delegate:void 0},Ma=class extends qe{constructor(e=1/0,t=1/0,n=Ds){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){let{isStopped:t,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:i,_windowTime:s}=this;t||(n.push(e),!r&&n.push(i.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let t=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:r}=this,i=r.slice();for(let s=0;s<i.length&&!e.closed;s+=n?1:2)e.next(i[s]);return this._checkFinalizedStatuses(e),t}_trimBuffer(){let{_bufferSize:e,_timestampProvider:t,_buffer:n,_infiniteTimeWindow:r}=this,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){let s=t.now(),o=0;for(let l=1;l<n.length&&n[l]<=s;l+=2)o=l;o&&n.splice(0,o+1)}}},wf=class extends we{constructor(e,t){super()}schedule(e,t=0){return this}},ar={setInterval(e,t,...n){let{delegate:r}=ar;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=ar;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},Cf=class extends wf{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){var n;if(this.closed)return this;this.state=e;let r=this.id,i=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(i,this.id,t),this}requestAsyncId(e,t,n=0){return ar.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return t;t!=null&&ar.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,t);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,r;try{this.work(e)}catch(i){n=!0,r=i||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:e,scheduler:t}=this,{actions:n}=t;this.work=this.state=this.scheduler=null,this.pending=!1,or(n,this),e!=null&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}},Ri=class Pa{constructor(t,n=Pa.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Ri.now=Ds.now;var xf=class extends Ri{constructor(e,t=Ri.now){super(e,t),this.actions=[],this._active=!1}flush(e){let{actions:t}=this;if(this._active){t.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},kf=new xf(Cf),Ef=kf,Da=new U(e=>e.complete());function Aa(e){return e&&N(e.schedule)}function As(e){return e[e.length-1]}function Sf(e){return N(As(e))?e.pop():void 0}function Va(e){return Aa(As(e))?e.pop():void 0}function Tf(e,t){return typeof As(e)=="number"?e.pop():t}function If(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(c){try{u(r.next(c))}catch(d){o(d)}}function a(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):i(c.value).then(l,a)}u((r=r.apply(e,t||[])).next())})}function Zo(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 Ct(e){return this instanceof Ct?(this.v=e,this):new Ct(e)}function Of(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(h){return function(p){return Promise.resolve(p).then(h,d)}}function l(h,p){r[h]&&(i[h]=function(g){return new Promise(function(m,S){s.push([h,g,m,S])>1||a(h,g)})},p&&(i[h]=p(i[h])))}function a(h,p){try{u(r[h](p))}catch(g){f(s[0][3],g)}}function u(h){h.value instanceof Ct?Promise.resolve(h.value.v).then(c,d):f(s[0][2],h)}function c(h){a("next",h)}function d(h){a("throw",h)}function f(h,p){h(p),s.shift(),s.length&&a(s[0][0],s[0][1])}}function Mf(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 Zo=="function"?Zo(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(o){return new Promise(function(l,a){o=e[s](o),i(l,a,o.done,o.value)})}}function i(s,o,l,a){Promise.resolve(a).then(function(u){s({value:u,done:l})},o)}}var Na=e=>e&&typeof e.length=="number"&&typeof e!="function";function Ra(e){return N(e?.then)}function Fa(e){return N(e[Ms])}function La(e){return Symbol.asyncIterator&&N(e?.[Symbol.asyncIterator])}function ja(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 Pf(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ha=Pf();function za(e){return N(e?.[Ha])}function Ba(e){return Of(this,arguments,function*(){let t=e.getReader();try{for(;;){let{value:n,done:r}=yield Ct(t.read());if(r)return yield Ct(void 0);yield yield Ct(n)}}finally{t.releaseLock()}})}function Ua(e){return N(e?.getReader)}function ue(e){if(e instanceof U)return e;if(e!=null){if(Fa(e))return Df(e);if(Na(e))return Af(e);if(Ra(e))return Vf(e);if(La(e))return Za(e);if(za(e))return Nf(e);if(Ua(e))return Rf(e)}throw ja(e)}function Df(e){return new U(t=>{let n=e[Ms]();if(N(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Af(e){return new U(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Vf(e){return new U(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Ia)})}function Nf(e){return new U(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Za(e){return new U(t=>{Ff(e,t).catch(n=>t.error(n))})}function Rf(e){return Za(Ba(e))}function Ff(e,t){var n,r,i,s;return If(this,void 0,void 0,function*(){try{for(n=Mf(e);r=yield n.next(),!r.done;){let o=r.value;if(t.next(o),t.closed)return}}catch(o){i={error:o}}finally{try{r&&!r.done&&(s=n.return)&&(yield s.call(n))}finally{if(i)throw i.error}}t.complete()})}function Be(e,t,n,r=0,i=!1){let s=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(s),!i)return s}function qa(e,t=0){return me((n,r)=>{n.subscribe(oe(r,i=>Be(r,e,()=>r.next(i),t),()=>Be(r,e,()=>r.complete(),t),i=>Be(r,e,()=>r.error(i),t)))})}function Ga(e,t=0){return me((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Lf(e,t){return ue(e).pipe(Ga(t),qa(t))}function jf(e,t){return ue(e).pipe(Ga(t),qa(t))}function Hf(e,t){return new U(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function zf(e,t){return new U(n=>{let r;return Be(n,t,()=>{r=e[Ha](),Be(n,t,()=>{let i,s;try{({value:i,done:s}=r.next())}catch(o){n.error(o);return}s?n.complete():n.next(i)},0,!0)}),()=>N(r?.return)&&r.return()})}function Wa(e,t){if(!e)throw new Error("Iterable cannot be null");return new U(n=>{Be(n,t,()=>{let r=e[Symbol.asyncIterator]();Be(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Bf(e,t){return Wa(Ba(e),t)}function Uf(e,t){if(e!=null){if(Fa(e))return Lf(e,t);if(Na(e))return Hf(e,t);if(Ra(e))return jf(e,t);if(La(e))return Wa(e,t);if(za(e))return zf(e,t);if(Ua(e))return Bf(e,t)}throw ja(e)}function Vs(e,t){return t?Uf(e,t):ue(e)}function Oe(...e){let t=Va(e);return Vs(e,t)}function Zf(e,t){let n=N(e)?e:()=>e,r=i=>i.error(n());return new U(t?i=>t.schedule(r,0,i):r)}function qf(e){return!!e&&(e instanceof U||N(e.lift)&&N(e.subscribe))}var Gf=Ts(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Wf(e,t){let n=typeof t=="object";return new Promise((r,i)=>{let s=new St({next:o=>{r(o),s.unsubscribe()},error:i,complete:()=>{n?r(t.defaultValue):i(new Gf)}});e.subscribe(s)})}function $f(e){return e instanceof Date&&!isNaN(e)}function fe(e,t){return me((n,r)=>{let i=0;n.subscribe(oe(r,s=>{r.next(e.call(t,s,i++))}))})}var{isArray:Qf}=Array;function Yf(e,t){return Qf(t)?e(...t):e(t)}function Jf(e){return fe(t=>Yf(e,t))}var{isArray:Kf}=Array,{getPrototypeOf:Xf,prototype:ep,keys:tp}=Object;function np(e){if(e.length===1){let t=e[0];if(Kf(t))return{args:t,keys:null};if(rp(t)){let n=tp(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function rp(e){return e&&typeof e=="object"&&Xf(e)===ep}function ip(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function sp(e,t,n,r,i,s,o,l){let a=[],u=0,c=0,d=!1,f=()=>{d&&!a.length&&!u&&t.complete()},h=g=>u<r?p(g):a.push(g),p=g=>{s&&t.next(g),u++;let m=!1;ue(n(g,c++)).subscribe(oe(t,S=>{i?.(S),s?h(S):t.next(S)},()=>{m=!0},void 0,()=>{if(m)try{for(u--;a.length&&u<r;){let S=a.shift();o?Be(t,o,()=>p(S)):p(S)}f()}catch(S){t.error(S)}}))};return e.subscribe(oe(t,h,()=>{d=!0,f()})),()=>{l?.()}}function ur(e,t,n=1/0){return N(t)?ur((r,i)=>fe((s,o)=>t(r,s,i,o))(ue(e(r,i))),n):(typeof t=="number"&&(n=t),me((r,i)=>sp(r,i,e,n)))}function op(e=1/0){return ur(Ps,e)}function lp(...e){let t=Sf(e),{args:n,keys:r}=np(e),i=new U(s=>{let{length:o}=n;if(!o){s.complete();return}let l=new Array(o),a=o,u=o;for(let c=0;c<o;c++){let d=!1;ue(n[c]).subscribe(oe(s,f=>{d||(d=!0,u--),l[c]=f},()=>a--,void 0,()=>{(!a||!d)&&(u||s.next(r?ip(r,l):l),s.complete())}))}});return t?i.pipe(Jf(t)):i}function $a(e=0,t,n=Ef){let r=-1;return t!=null&&(Aa(t)?n=t:r=t),new U(i=>{let s=$f(e)?+e-n.now():e;s<0&&(s=0);let o=0;return n.schedule(function(){i.closed||(i.next(o++),0<=r?this.schedule(void 0,r):i.complete())},s)})}function ap(...e){let t=Va(e),n=Tf(e,1/0),r=e;return r.length?r.length===1?ue(r[0]):op(n)(Vs(r,t)):Da}function cr(e,t){return me((n,r)=>{let i=0;n.subscribe(oe(r,s=>e.call(t,s,i++)&&r.next(s)))})}function Ns(e){return me((t,n)=>{let r=null,i=!1,s;r=t.subscribe(oe(n,void 0,void 0,o=>{s=ue(e(o,Ns(e)(t))),r?(r.unsubscribe(),r=null,s.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,s.subscribe(n))})}function Qa(e,t){return N(t)?ur(e,t,1):ur(e,1)}function Ya(e){return e<=0?()=>Da:me((t,n)=>{let r=0;t.subscribe(oe(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function Ja(e){return me((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function up(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:r,resetOnSuccess:i=!1}=t;return n<=0?Ps:me((s,o)=>{let l=0,a,u=()=>{let c=!1;a=s.subscribe(oe(o,d=>{i&&(l=0),o.next(d)},void 0,d=>{if(l++<n){let f=()=>{a?(a.unsubscribe(),a=null,u()):c=!0};if(r!=null){let h=typeof r=="number"?$a(r):ue(r(d,l)),p=oe(o,()=>{p.unsubscribe(),f()},()=>{o.complete()});h.subscribe(p)}else f()}else o.error(d)})),c&&(a.unsubscribe(),a=null,u())};u()})}function cp(e={}){let{connector:t=()=>new qe,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return s=>{let o,l,a,u=0,c=!1,d=!1,f=()=>{l?.unsubscribe(),l=void 0},h=()=>{f(),o=a=void 0,c=d=!1},p=()=>{let g=o;h(),g?.unsubscribe()};return me((g,m)=>{u++,!d&&!c&&f();let S=a=a??t();m.add(()=>{u--,u===0&&!d&&!c&&(l=si(p,i))}),S.subscribe(m),!o&&u>0&&(o=new St({next:ce=>S.next(ce),error:ce=>{d=!0,f(),l=si(h,n,ce),S.error(ce)},complete:()=>{c=!0,f(),l=si(h,r),S.complete()}}),ue(g).subscribe(o))})(s)}}function si(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new St({next:()=>{r.unsubscribe(),e()}});return ue(t(...n)).subscribe(r)}function qo(e,t,n){let r,i=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:i=!1,scheduler:n}=e:r=e??1/0,cp({connector:()=>new Ma(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Ka(e,t){return me((n,r)=>{let i=null,s=0,o=!1,l=()=>o&&!i&&r.complete();n.subscribe(oe(r,a=>{i?.unsubscribe();let u=0,c=s++;ue(e(a,c)).subscribe(i=oe(r,d=>r.next(t?t(a,d,c,u++):d),()=>{i=null,l()}))},()=>{o=!0,l()}))})}function dp(e){let t=k(null);try{return e()}finally{k(t)}}var Xa="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",v=class extends Error{code;constructor(e,t){super(fp(e,t)),this.code=e}};function hp(e){return`NG0${Math.abs(e)}`}function fp(e,t){return`${hp(e)}${t?": "+t:""}`}var He=globalThis;function O(e){for(let t in e)if(e[t]===O)return t;throw Error("")}function pp(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Tt(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Tt).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 Go(e,t){return e?t?`${e} ${t}`:e:t||""}var gp=O({__forward_ref__:O});function Vr(e){return e.__forward_ref__=Vr,e.toString=function(){return Tt(this())},e}function Y(e){return eu(e)?e():e}function eu(e){return typeof e=="function"&&e.hasOwnProperty(gp)&&e.__forward_ref__===Vr}function E(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Nr(e){return{providers:e.providers||[],imports:e.imports||[]}}function Rs(e){return mp(e,tu)}function mp(e,t){return e.hasOwnProperty(t)&&e[t]||null}function yp(e){return(e?.[tu]??null)||null}function Wo(e){return e&&e.hasOwnProperty($o)?e[$o]:null}var tu=O({\u0275prov:O}),$o=O({\u0275inj:O}),C=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,t){this._desc=e,this.\u0275prov=void 0,typeof t=="number"?this.__NG_ELEMENT_ID__=t:t!==void 0&&(this.\u0275prov=E({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function nu(e){return e&&!!e.\u0275providers}var vp=O({\u0275cmp:O}),bp=O({\u0275dir:O}),_p=O({\u0275pipe:O}),dr=O({\u0275fac:O}),tn=O({__NG_ELEMENT_ID__:O}),Qo=O({__NG_ENV_ID__:O});function Rr(e){return typeof e=="string"?e:e==null?"":String(e)}function wp(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Rr(e)}var ru=O({ngErrorCode:O}),Cp=O({ngErrorMessage:O}),xp=O({ngTokenPath:O});function iu(e,t){return su("",-200,t)}function Fs(e,t){throw new v(-201,!1)}function su(e,t,n){let r=new v(t,e);return r[ru]=t,r[Cp]=e,n&&(r[xp]=n),r}function kp(e){return e[ru]}var Fi;function ou(){return Fi}function re(e){let t=Fi;return Fi=e,t}function lu(e,t,n){let r=Rs(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;Fs(e,"Injector")}var Ep={},Ke=Ep,Sp="__NG_DI_FLAG__",Tp=class{injector;constructor(e){this.injector=e}retrieve(e,t){let n=dn(t)||0;try{return this.injector.get(e,n&8?null:Ke,n)}catch(r){if(ks(r))return r;throw r}}};function Ip(e,t=0){let n=ha();if(n===void 0)throw new v(-203,!1);if(n===null)return lu(e,void 0,t);{let r=Op(t),i=n.retrieve(e,r);if(ks(i)){if(r.optional)return null;throw i}return i}}function y(e,t=0){return(ou()||Ip)(Y(e),t)}function b(e,t){return y(e,dn(t))}function dn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Op(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Li(e){let t=[];for(let n=0;n<e.length;n++){let r=Y(e[n]);if(Array.isArray(r)){if(r.length===0)throw new v(900,!1);let i,s=0;for(let o=0;o<r.length;o++){let l=r[o],a=Mp(l);typeof a=="number"?a===-1?i=l.token:s|=a:i=l}t.push(y(i,s))}else t.push(y(r))}return t}function Mp(e){return e[Sp]}function It(e,t){return e.hasOwnProperty(dr)?e[dr]:null}function Pp(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],s=t[r];if(n&&(i=n(i),s=n(s)),s!==i)return!1}return!0}function Dp(e){return e.flat(Number.POSITIVE_INFINITY)}function Ls(e,t){e.forEach(n=>Array.isArray(n)?Ls(n,t):t(n))}function au(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function hr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ap(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let s=i-2;e[i]=e[s],i--}e[t]=n,e[t+1]=r}}function Vp(e,t,n){let r=bn(e,t);return r>=0?e[r|1]=n:(r=~r,Ap(e,r,t,n)),r}function oi(e,t){let n=bn(e,t);if(n>=0)return e[n|1]}function bn(e,t){return Np(e,t,1)}function Np(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let s=r+(i-r>>1),o=e[s<<n];if(t===o)return s<<n;o>t?i=s:r=s+1}return~(i<<n)}var tt={},ie=[],Ot=new C(""),uu=new C("",-1),cu=new C(""),du=class{get(e,t=Ke){if(t===Ke){let n=su("",-201);throw n.name="\u0275NotFound",n}return t}};function hn(e){return e[vp]||null}function hu(e){return e[bp]||null}function Rp(e){return e[_p]||null}function Fr(e){return{\u0275providers:e}}function Fp(e){return Fr([{provide:Ot,multi:!0,useValue:e}])}function Lp(...e){return{\u0275providers:fu(!0,e),\u0275fromNgModule:!0}}function fu(e,...t){let n=[],r=new Set,i,s=o=>{n.push(o)};return Ls(t,o=>{let l=o;ji(l,s,[],r)&&(i||=[],i.push(l))}),i!==void 0&&pu(i,s),n}function pu(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];js(i,s=>{t(s,r)})}}function ji(e,t,n,r){if(e=Y(e),!e)return!1;let i=null,s=Wo(e),o=!s&&hn(e);if(!s&&!o){let a=e.ngModule;if(s=Wo(a),s)i=a;else return!1}else{if(o&&!o.standalone)return!1;i=e}let l=r.has(i);if(o){if(l)return!1;if(r.add(i),o.dependencies){let a=typeof o.dependencies=="function"?o.dependencies():o.dependencies;for(let u of a)ji(u,t,n,r)}}else if(s){if(s.imports!=null&&!l){r.add(i);let u;Ls(s.imports,c=>{ji(c,t,n,r)&&(u||=[],u.push(c))}),u!==void 0&&pu(u,t)}if(!l){let u=It(i)||(()=>new i);t({provide:i,useFactory:u,deps:ie},i),t({provide:cu,useValue:i,multi:!0},i),t({provide:Ot,useValue:()=>y(i),multi:!0},i)}let a=s.providers;if(a!=null&&!l){let u=e;js(a,c=>{t(c,u)})}}else return!1;return i!==e&&e.providers!==void 0}function js(e,t){for(let n of e)nu(n)&&(n=n.\u0275providers),Array.isArray(n)?js(n,t):t(n)}var jp=O({provide:String,useValue:O});function gu(e){return e!==null&&typeof e=="object"&&jp in e}function Hp(e){return!!(e&&e.useExisting)}function zp(e){return!!(e&&e.useFactory)}function Mt(e){return typeof e=="function"}function Bp(e){return!!e.useClass}var Hs=new C(""),Qn={},Yo={},li;function zs(){return li===void 0&&(li=new du),li}var Pe=class{},Bs=class extends Pe{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,zi(e,s=>this.processProvider(s)),this.records.set(uu,bt(void 0,this)),r.has("environment")&&this.records.set(Pe,bt(void 0,this));let i=this.records.get(Hs);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(cu,ie,{self:!0}))}retrieve(e,t){let n=dn(t)||0;try{return this.get(e,Ke,n)}catch(r){if(ks(r))return r;throw r}}destroy(){Kt(this),this._destroyed=!0;let e=k(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),k(e)}}onDestroy(e){return Kt(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){Kt(this);let t=Le(this),n=re(void 0),r;try{return e()}finally{Le(t),re(n)}}get(e,t=Ke,n){if(Kt(this),e.hasOwnProperty(Qo))return e[Qo](this);let r=dn(n),i,s=Le(this),o=re(void 0);try{if(!(r&4)){let a=this.records.get(e);if(a===void 0){let u=Wp(e)&&Rs(e);u&&this.injectableDefInScope(u)?a=bt(Hi(e),Qn):a=null,this.records.set(e,a)}if(a!=null)return this.hydrate(e,a,r)}let l=r&2?zs():this.parent;return t=r&8&&t===Ke?null:t,l.get(e,t)}catch(l){let a=kp(l);throw a===-200||a===-201?new v(a,null):l}finally{re(o),Le(s)}}resolveInjectorInitializers(){let e=k(null),t=Le(this),n=re(void 0),r;try{let i=this.get(Ot,ie,{self:!0});for(let s of i)s()}finally{Le(t),re(n),k(e)}}toString(){let e=[],t=this.records;for(let n of t.keys())e.push(Tt(n));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=Y(e);let t=Mt(e)?e:Y(e&&e.provide),n=Zp(e);if(!Mt(e)&&e.multi===!0){let r=this.records.get(t);r||(r=bt(void 0,Qn,!0),r.factory=()=>Li(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,n)}hydrate(e,t,n){let r=k(null);try{if(t.value===Yo)throw iu(Tt(e));return t.value===Qn&&(t.value=Yo,t.value=t.factory(void 0,n)),typeof t.value=="object"&&t.value&&Gp(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{k(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=Y(e.providedIn);return typeof t=="string"?t==="any"||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){let t=this._onDestroyHooks.indexOf(e);t!==-1&&this._onDestroyHooks.splice(t,1)}};function Hi(e){let t=Rs(e),n=t!==null?t.factory:It(e);if(n!==null)return n;if(e instanceof C)throw new v(204,!1);if(e instanceof Function)return Up(e);throw new v(204,!1)}function Up(e){if(e.length>0)throw new v(204,!1);let t=yp(e);return t!==null?()=>t.factory(e):()=>new e}function Zp(e){if(gu(e))return bt(void 0,e.useValue);{let t=mu(e);return bt(t,Qn)}}function mu(e,t,n){let r;if(Mt(e)){let i=Y(e);return It(i)||Hi(i)}else if(gu(e))r=()=>Y(e.useValue);else if(zp(e))r=()=>e.useFactory(...Li(e.deps||[]));else if(Hp(e))r=(i,s)=>y(Y(e.useExisting),s!==void 0&&s&8?8:void 0);else{let i=Y(e&&(e.useClass||e.provide));if(qp(e))r=()=>new i(...Li(e.deps));else return It(i)||Hi(i)}return r}function Kt(e){if(e.destroyed)throw new v(205,!1)}function bt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function qp(e){return!!e.deps}function Gp(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Wp(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function zi(e,t){for(let n of e)Array.isArray(n)?zi(n,t):n&&nu(n)?zi(n.\u0275providers,t):t(n)}function Us(e,t){let n;e instanceof Bs?(Kt(e),n=e):n=new Tp(e);let r,i=Le(n),s=re(void 0);try{return t()}finally{Le(i),re(s)}}function $p(){return ou()!==void 0||ha()!=null}var Ne=0,_=1,w=2,W=3,pe=4,ye=5,fr=6,pr=7,K=8,nt=9,De=10,H=11,fn=12,Jo=13,jt=14,Ce=15,rt=16,_t=17,Ae=18,Lr=19,yu=20,Ue=21,ai=22,gr=23,se=24,ui=25,mr=26,le=27,vu=1,it=7,yr=8,Pt=9,te=10;function Ze(e){return Array.isArray(e)&&typeof e[vu]=="object"}function Re(e){return Array.isArray(e)&&e[vu]===!0}function bu(e){return(e.flags&4)!==0}function Ht(e){return e.componentOffset>-1}function jr(e){return(e.flags&1)===1}function Ve(e){return!!e.template}function vr(e){return(e[w]&512)!==0}function zt(e){return(e[w]&256)===256}var _u="svg",Qp="math";function xe(e){for(;Array.isArray(e);)e=e[Ne];return e}function wu(e,t){return xe(t[e])}function Se(e,t){return xe(t[e.index])}function Cu(e,t){return e.data[t]}function ke(e,t){let n=t[e];return Ze(n)?n:n[Ne]}function Yp(e){return(e[w]&4)===4}function Zs(e){return(e[w]&128)===128}function Jp(e){return Re(e[W])}function Dt(e,t){return t==null?null:e[t]}function xu(e){e[_t]=0}function qs(e){e[w]&1024||(e[w]|=1024,Zs(e)&&Hr(e))}function Kp(e,t){for(;e>0;)t=t[jt],e--;return t}function pn(e){return!!(e[w]&9216||e[se]?.dirty)}function Bi(e){e[De].changeDetectionScheduler?.notify(8),e[w]&64&&(e[w]|=1024),pn(e)&&Hr(e)}function Hr(e){e[De].changeDetectionScheduler?.notify(0);let t=st(e);for(;t!==null&&!(t[w]&8192||(t[w]|=8192,!Zs(t)));)t=st(t)}function ku(e,t){if(zt(e))throw new v(911,!1);e[Ue]===null&&(e[Ue]=[]),e[Ue].push(t)}function Xp(e,t){if(e[Ue]===null)return;let n=e[Ue].indexOf(t);n!==-1&&e[Ue].splice(n,1)}function st(e){let t=e[W];return Re(t)?t[W]:t}function Eu(e){return e[pr]??=[]}function Su(e){return e.cleanup??=[]}function eg(e,t,n,r){let i=Eu(t);i.push(n),e.firstCreatePass&&Su(e).push(r,i.length-1)}var x={lFrame:Fu(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Ui=!1;function tg(){return x.lFrame.elementDepthCount}function ng(){x.lFrame.elementDepthCount++}function Tu(){x.lFrame.elementDepthCount--}function Iu(){return x.bindingsEnabled}function rg(){return x.skipHydrationRootTNode!==null}function Ou(e){return x.skipHydrationRootTNode===e}function Mu(){x.skipHydrationRootTNode=null}function T(){return x.lFrame.lView}function X(){return x.lFrame.tView}function ig(e){return x.lFrame.contextLView=e,e[K]}function sg(e){return x.lFrame.contextLView=null,e}function ne(){let e=Pu();for(;e!==null&&e.type===64;)e=e.parent;return e}function Pu(){return x.lFrame.currentTNode}function og(){let e=x.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function _n(e,t){let n=x.lFrame;n.currentTNode=e,n.isParent=t}function Du(){return x.lFrame.isParent}function lg(){x.lFrame.isParent=!1}function Au(){return Ui}function Ko(e){let t=Ui;return Ui=e,t}function ag(e){return x.lFrame.bindingIndex=e}function zr(){return x.lFrame.bindingIndex++}function ug(e){let t=x.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function cg(){return x.lFrame.inI18n}function dg(e,t){let n=x.lFrame;n.bindingIndex=n.bindingRootIndex=e,Zi(t)}function hg(){return x.lFrame.currentDirectiveIndex}function Zi(e){x.lFrame.currentDirectiveIndex=e}function fg(e){let t=x.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Vu(){return x.lFrame.currentQueryIndex}function Gs(e){x.lFrame.currentQueryIndex=e}function pg(e){let t=e[_];return t.type===2?t.declTNode:t.type===1?e[ye]:null}function Nu(e,t,n){if(n&4){let i=t,s=e;for(;(i=i.parent,i===null&&!(n&1))&&(i=pg(s),!(i===null||(s=s[jt],i.type&10))););if(i===null)return!1;t=i,e=s}let r=x.lFrame=Ru();return r.currentTNode=t,r.lView=e,!0}function Ws(e){let t=Ru(),n=e[_];x.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ru(){let e=x.lFrame,t=e===null?null:e.child;return t===null?Fu(e):t}function Fu(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 Lu(){let e=x.lFrame;return x.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var ju=Lu;function $s(){let e=Lu();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 gg(e){return(x.lFrame.contextLView=Kp(e,x.lFrame.contextLView))[K]}function Bt(){return x.lFrame.selectedIndex}function ot(e){x.lFrame.selectedIndex=e}function Qs(){let e=x.lFrame;return Cu(e.tView,e.selectedIndex)}function mg(){x.lFrame.currentNamespace=_u}function yg(){return x.lFrame.currentNamespace}var Hu=!0;function Ys(){return Hu}function Js(e){Hu=e}function Xo(e,t=null,n=null,r){let i=vg(e,t,n,r);return i.resolveInjectorInitializers(),i}function vg(e,t=null,n=null,r,i=new Set){let s=[n||ie,Lp(e)];return r=r||(typeof e=="object"?void 0:Tt(e)),new Bs(s,t||zs(),r||null,i)}var Br=class zu{static THROW_IF_NOT_FOUND=Ke;static NULL=new du;static create(t,n){if(Array.isArray(t))return Xo({name:""},n,t,"");{let r=t.name??"";return Xo({name:r},t.parent,t.providers,r)}}static \u0275prov=E({token:zu,providedIn:"any",factory:()=>y(uu)});static __NG_ELEMENT_ID__=-1},Ee=new C(""),Ks=(()=>{class e{static __NG_ELEMENT_ID__=_g;static __NG_ENV_ID__=n=>n}return e})(),bg=class extends Ks{_lView;constructor(e){super(),this._lView=e}get destroyed(){return zt(this._lView)}onDestroy(e){let t=this._lView;return ku(t,e),()=>Xp(t,e)}};function _g(){return new bg(T())}var wn=class{_console=console;handleError(e){this._console.error("ERROR",e)}},Ge=new C("",{providedIn:"root",factory:()=>{let e=b(Pe),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(wn),t.handleError(n))}}}),wg={provide:Ot,useValue:()=>{b(wn)},multi:!0},Cg=new C("",{providedIn:"root",factory:()=>{let e=b(Ee).defaultView;if(!e)return;let t=b(Ge),n=s=>{t(s.reason),s.preventDefault()},r=s=>{s.error?t(s.error):t(new Error(s.message,{cause:s})),s.preventDefault()},i=()=>{e.addEventListener("unhandledrejection",n),e.addEventListener("error",r)};typeof Zone<"u"?Zone.root.run(i):i(),b(Ks).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n)})}});function xg(){return Fr([Fp(()=>{b(Cg)})])}function ci(e,t){let[n,r,i]=tf(e,t?.equal),s=n,o=s[Me];return s.set=r,s.update=i,s.asReadonly=kg.bind(s),s}function kg(){let e=this[Me];if(e.readonlyFn===void 0){let t=()=>this();t[Me]=e,e.readonlyFn=t}return e.readonlyFn}var Cn=class{},Xs=new C("",{providedIn:"root",factory:()=>!1}),Bu=new C(""),Uu=new C(""),Ut=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Oa(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new U(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),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(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=E({token:e,providedIn:"root",factory:()=>new e})}return e})(),Zu=(()=>{class e{internalPendingTasks=b(Ut);scheduler=b(Cn);errorHandler=b(Ge);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=E({token:e,providedIn:"root",factory:()=>new e})}return e})();function br(...e){}var Eg=(()=>{class e{static \u0275prov=E({token:e,providedIn:"root",factory:()=>new Sg})}return e})(),Sg=class{dirtyEffectCount=0;queues=new Map;add(e){this.enqueue(e),this.schedule(e)}schedule(e){e.dirty&&this.dirtyEffectCount++}remove(e){let t=e.zone,n=this.queues.get(t);n.has(e)&&(n.delete(e),e.dirty&&this.dirtyEffectCount--)}enqueue(e){let t=e.zone;this.queues.has(t)||this.queues.set(t,new Set);let n=this.queues.get(t);n.has(e)||n.add(e)}flush(){for(;this.dirtyEffectCount>0;){let e=!1;for(let[t,n]of this.queues)t===null?e||=this.flushQueue(n):e||=t.run(()=>this.flushQueue(n));e||(this.dirtyEffectCount=0)}}flushQueue(e){let t=!1;for(let n of e)n.dirty&&(this.dirtyEffectCount--,t=!0,n.run());return t}};function Ur(e){return{toString:e}.toString()}function Tg(e){return typeof e=="function"}var Ig=class{previousValue;currentValue;firstChange;constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}};function qu(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var Gu=(()=>{let e=()=>Wu;return e.ngInherit=!0,e})();function Wu(e){return e.type.prototype.ngOnChanges&&(e.setInput=Mg),Og}function Og(){let e=Qu(this),t=e?.current;if(t){let n=e.previous;if(n===tt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Mg(e,t,n,r,i){let s=this.declaredInputs[r],o=Qu(e)||Pg(e,{previous:tt,current:null}),l=o.current||(o.current={}),a=o.previous,u=a[s];l[s]=new Ig(u&&u.currentValue,n,a===tt),qu(e,t,i,n)}var $u="__ngSimpleChanges__";function Qu(e){return e[$u]||null}function Pg(e,t){return e[$u]=t}var el=[],P=function(e,t=null,n){for(let r=0;r<el.length;r++){let i=el[r];i(e,t,n)}};function Dg(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){let o=Wu(t);(n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o)}i&&(n.preOrderHooks??=[]).push(0-e,i),s&&((n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s))}function Yu(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:o,ngAfterViewInit:l,ngAfterViewChecked:a,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),o&&((e.contentHooks??=[]).push(n,o),(e.contentCheckHooks??=[]).push(n,o)),l&&(e.viewHooks??=[]).push(-n,l),a&&((e.viewHooks??=[]).push(n,a),(e.viewCheckHooks??=[]).push(n,a)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function Yn(e,t,n){Ju(e,t,3,n)}function Jn(e,t,n,r){(e[w]&3)===n&&Ju(e,t,n,r)}function di(e,t){let n=e[w];(n&3)===t&&(n&=16383,n+=1,e[w]=n)}function Ju(e,t,n,r){let i=r!==void 0?e[_t]&65535:0,s=r??-1,o=t.length-1,l=0;for(let a=i;a<o;a++)if(typeof t[a+1]=="number"){if(l=t[a],r!=null&&l>=r)break}else t[a]<0&&(e[_t]+=65536),(l<s||s==-1)&&(Ag(e,n,t,a),e[_t]=(e[_t]&4294901760)+a+2),a++}function tl(e,t){P(4,e,t);let n=k(null);try{t.call(e)}finally{k(n),P(5,e,t)}}function Ag(e,t,n,r){let i=n[r]<0,s=n[r+1],o=i?-n[r]:n[r],l=e[o];i?e[w]>>14<e[_t]>>16&&(e[w]&3)===t&&(e[w]+=16384,tl(l,s)):tl(l,s)}var xt=-1,xn=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,n,r){this.factory=e,this.name=r,this.canSeeViewProviders=t,this.injectImpl=n}};function Vg(e){return(e.flags&8)!==0}function Ng(e){return(e.flags&16)!==0}function Rg(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let s=n[r++],o=n[r++],l=n[r++];e.setAttribute(t,o,l,s)}else{let s=i,o=n[++r];Lg(s)?e.setProperty(t,s,o):e.setAttribute(t,s,o),r++}}return r}function Fg(e){return e===3||e===4||e===6}function Lg(e){return e.charCodeAt(0)===64}function At(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 i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?nl(e,n,i,null,t[++r]):nl(e,n,i,null,null))}}return e}function nl(e,t,n,r,i){let s=0,o=e.length;if(t===-1)o=-1;else for(;s<e.length;){let l=e[s++];if(typeof l=="number"){if(l===t){o=-1;break}else if(l>t){o=s-1;break}}}for(;s<e.length;){let l=e[s];if(typeof l=="number")break;if(l===n){i!==null&&(e[s+1]=i);return}s++,i!==null&&s++}o!==-1&&(e.splice(o,0,t),s=o+1),e.splice(s++,0,n),i!==null&&e.splice(s++,0,i)}function Ku(e){return e!==xt}function _r(e){return e&32767}function jg(e){return e>>16}function wr(e,t){let n=jg(e),r=t;for(;n>0;)r=r[jt],n--;return r}var qi=!0;function rl(e){let t=qi;return qi=e,t}var Hg=256,Xu=Hg-1,ec=5,zg=0,be={};function Bg(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(tn)&&(r=n[tn]),r==null&&(r=n[tn]=zg++);let i=r&Xu,s=1<<i;t.data[e+(i>>ec)]|=s}function Cr(e,t){let n=tc(e,t);if(n!==-1)return n;let r=t[_];r.firstCreatePass&&(e.injectorIndex=t.length,hi(r.data,e),hi(t,null),hi(r.blueprint,null));let i=eo(e,t),s=e.injectorIndex;if(Ku(i)){let o=_r(i),l=wr(i,t),a=l[_].data;for(let u=0;u<8;u++)t[s+u]=l[o+u]|a[o+u]}return t[s+8]=i,s}function hi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function tc(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function eo(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=oc(i),r===null)return xt;if(n++,i=i[jt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return xt}function Gi(e,t,n){Bg(e,t,n)}function nc(e,t,n){if(n&8||e!==void 0)return e;Fs(t,"NodeInjector")}function rc(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let i=e[nt],s=re(void 0);try{return i?i.get(t,r,n&8):lu(t,r,n&8)}finally{re(s)}}return nc(r,t,n)}function ic(e,t,n,r=0,i){if(e!==null){if(t[w]&2048&&!(r&2)){let o=Wg(e,t,n,r,be);if(o!==be)return o}let s=sc(e,t,n,r,be);if(s!==be)return s}return rc(t,n,r,i)}function sc(e,t,n,r,i){let s=Zg(n);if(typeof s=="function"){if(!Nu(t,e,r))return r&1?nc(i,n,r):rc(t,n,r,i);try{let o;if(o=s(r),o==null&&!(r&8))Fs(n);else return o}finally{ju()}}else if(typeof s=="number"){let o=null,l=tc(e,t),a=xt,u=r&1?t[Ce][ye]:null;for((l===-1||r&4)&&(a=l===-1?eo(e,t):t[l+8],a===xt||!sl(r,!1)?l=-1:(o=t[_],l=_r(a),t=wr(a,t)));l!==-1;){let c=t[_];if(il(s,l,c.data)){let d=Ug(l,t,n,o,r,u);if(d!==be)return d}a=t[l+8],a!==xt&&sl(r,t[_].data[l+8]===u)&&il(s,l,t)?(o=c,l=_r(a),t=wr(a,t)):l=-1}}return i}function Ug(e,t,n,r,i,s){let o=t[_],l=o.data[e+8],a=r==null?Ht(l)&&qi:r!=o&&(l.type&3)!==0,u=i&1&&s===l,c=Kn(l,o,n,a,u);return c!==null?gn(t,o,c,l,i):be}function Kn(e,t,n,r,i){let s=e.providerIndexes,o=t.data,l=s&1048575,a=e.directiveStart,u=e.directiveEnd,c=s>>20,d=r?l:l+c,f=i?l+c:u;for(let h=d;h<f;h++){let p=o[h];if(h<a&&n===p||h>=a&&p.type===n)return h}if(i){let h=o[a];if(h&&Ve(h)&&h.type===n)return a}return null}function gn(e,t,n,r,i){let s=e[n],o=t.data;if(s instanceof xn){let l=s;if(l.resolving){let h=wp(o[n]);throw iu(h)}let a=rl(l.canSeeViewProviders);l.resolving=!0;let u=o[n].type||o[n],c,d=l.injectImpl?re(l.injectImpl):null,f=Nu(e,r,0);try{s=e[n]=l.factory(void 0,i,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&Dg(n,o[n],t)}finally{d!==null&&re(d),rl(a),l.resolving=!1,ju()}}return s}function Zg(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(tn)?e[tn]:void 0;return typeof t=="number"?t>=0?t&Xu:qg:t}function il(e,t,n){let r=1<<e;return!!(n[t+(e>>ec)]&r)}function sl(e,t){return!(e&2)&&!(e&1&&t)}var nn=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return ic(this._tNode,this._lView,e,dn(n),t)}};function qg(){return new nn(ne(),T())}function Gg(e){return Ur(()=>{let t=e.prototype.constructor,n=t[dr]||Wi(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let s=i[dr]||Wi(i);if(s&&s!==n)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function Wi(e){return eu(e)?()=>{let t=Wi(Y(e));return t&&t()}:It(e)}function Wg(e,t,n,r,i){let s=e,o=t;for(;s!==null&&o!==null&&o[w]&2048&&!vr(o);){let l=sc(s,o,n,r|2,be);if(l!==be)return l;let a=s.parent;if(!a){let u=o[yu];if(u){let c=u.get(n,be,r);if(c!==be)return c}a=oc(o),o=o[jt]}s=a}return i}function oc(e){let t=e[_],n=t.type;return n===2?t.declTNode:n===1?e[ye]:null}function $g(){return Zt(ne(),T())}function Zt(e,t){return new qt(Se(e,t))}var qt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=$g}return e})();function Qg(e){return e instanceof qt?e.nativeElement:e}function Yg(){return this._results[Symbol.iterator]()}var Jg=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 qe}constructor(e=!1){this._emitDistinctChangesOnly=e}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;let n=Dp(e);(this._changesDetected=!Pp(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=Yg};function lc(e){return(e.flags&128)===128}var ac=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(ac||{}),uc=new Map,Kg=0;function Xg(){return Kg++}function em(e){uc.set(e[Lr],e)}function $i(e){uc.delete(e[Lr])}var ol="__ngContext__";function Vt(e,t){Ze(t)?(e[ol]=t[Lr],em(t)):e[ol]=t}function cc(e){return hc(e[fn])}function dc(e){return hc(e[pe])}function hc(e){for(;e!==null&&!Re(e);)e=e[pe];return e}var Qi;function tm(e){Qi=e}function fc(){if(Qi!==void 0)return Qi;if(typeof document<"u")return document;throw new v(210,!1)}var pc=new C("",{providedIn:"root",factory:()=>nm}),nm="ng",gc=new C(""),to=new C("",{providedIn:"platform",factory:()=>"unknown"}),mc=new C("",{providedIn:"root",factory:()=>fc().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),rm="h",im="b",yc=!1,sm=new C("",{providedIn:"root",factory:()=>yc}),om=(e,t,n,r)=>{};function lm(e,t,n,r){om(e,t,n,r)}function vc(e){return(e.flags&32)===32}var am=()=>null;function bc(e,t,n=!1){return am(e,t,n)}function _c(e,t){let n=e.contentQueries;if(n!==null){let r=k(null);try{for(let i=0;i<n.length;i+=2){let s=n[i],o=n[i+1];if(o!==-1){let l=e.data[o];Gs(s),l.contentQueries(2,t[o],o)}}}finally{k(r)}}}function Yi(e,t,n){Gs(0);let r=k(null);try{t(e,n)}finally{k(r)}}function wc(e,t,n){if(bu(t)){let r=k(null);try{let i=t.directiveStart,s=t.directiveEnd;for(let o=i;o<s;o++){let l=e.data[o];if(l.contentQueries){let a=n[o];l.contentQueries(1,a,o)}}}finally{k(r)}}}var lt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(lt||{}),Pn;function um(){if(Pn===void 0&&(Pn=null,He.trustedTypes))try{Pn=He.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Pn}function Zr(e){return um()?.createHTML(e)||e}var Dn;function cm(){if(Dn===void 0&&(Dn=null,He.trustedTypes))try{Dn=He.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Dn}function ll(e){return cm()?.createHTML(e)||e}var ht=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Xa})`}},dm=class extends ht{getTypeName(){return"HTML"}},hm=class extends ht{getTypeName(){return"Style"}},fm=class extends ht{getTypeName(){return"Script"}},pm=class extends ht{getTypeName(){return"URL"}},gm=class extends ht{getTypeName(){return"ResourceURL"}};function Qe(e){return e instanceof ht?e.changingThisBreaksApplicationSecurity:e}function vt(e,t){let n=mm(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Xa})`)}return n===t}function mm(e){return e instanceof ht&&e.getTypeName()||null}function ym(e){return new dm(e)}function vm(e){return new hm(e)}function bm(e){return new fm(e)}function _m(e){return new pm(e)}function wm(e){return new gm(e)}function Cm(e){let t=new km(e);return Em()?new xm(t):t}var xm=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let t=new window.DOMParser().parseFromString(Zr(e),"text/html").body;return t===null?this.inertDocumentHelper.getInertBodyElement(e):(t.firstChild?.remove(),t)}catch{return null}}},km=class{defaultDoc;inertDocument;constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let t=this.inertDocument.createElement("template");return t.innerHTML=Zr(e),t}};function Em(){try{return!!new window.DOMParser().parseFromString(Zr(""),"text/html")}catch{return!1}}var Sm=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Cc(e){return e=String(e),e.match(Sm)?e:"unsafe:"+e}function Fe(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function kn(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var xc=Fe("area,br,col,hr,img,wbr"),kc=Fe("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ec=Fe("rp,rt"),Tm=kn(Ec,kc),Im=kn(kc,Fe("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Om=kn(Ec,Fe("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),al=kn(xc,Im,Om,Tm),Sc=Fe("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Mm=Fe("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Pm=Fe("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Dm=kn(Sc,Mm,Pm),Am=Fe("script,style,template"),Vm=class{sanitizedSomething=!1;buf=[];sanitizeChildren(e){let t=e.firstChild,n=!0,r=[];for(;t;){if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild){r.push(t),t=Fm(t);continue}for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=Rm(t);if(i){t=i;break}t=r.pop()}}return this.buf.join("")}startElement(e){let t=ul(e).toLowerCase();if(!al.hasOwnProperty(t))return this.sanitizedSomething=!0,!Am.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);let n=e.attributes;for(let r=0;r<n.length;r++){let i=n.item(r),s=i.name,o=s.toLowerCase();if(!Dm.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let l=i.value;Sc[o]&&(l=Cc(l)),this.buf.push(" ",s,'="',cl(l),'"')}return this.buf.push(">"),!0}endElement(e){let t=ul(e).toLowerCase();al.hasOwnProperty(t)&&!xc.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(cl(e))}};function Nm(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Rm(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Tc(t);return t}function Fm(e){let t=e.firstChild;if(t&&Nm(e,t))throw Tc(t);return t}function ul(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Tc(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Lm=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jm=/([^\#-~ |!])/g;function cl(e){return e.replace(/&/g,"&").replace(Lm,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(jm,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var An;function Ic(e,t){let n=null;try{An=An||Cm(e);let r=t?String(t):"";n=An.getInertBodyElement(r);let i=5,s=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=n.innerHTML,n=An.getInertBodyElement(r)}while(r!==s);let o=new Vm().sanitizeChildren(dl(n)||n);return Zr(o)}finally{if(n){let r=dl(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function dl(e){return"content"in e&&Hm(e)?e.content:null}function Hm(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}function zm(e,t){return e.createText(t)}function Bm(e,t,n){e.setValue(t,n)}function Oc(e,t,n){return e.createElement(t,n)}function xr(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Mc(e,t,n){e.appendChild(t,n)}function hl(e,t,n,r,i){r!==null?xr(e,t,n,r,i):Mc(e,t,n)}function Um(e,t,n,r){e.removeChild(null,t,n,r)}function Zm(e,t,n){e.setAttribute(t,"style",n)}function qm(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Pc(e,t,n){let{mergedAttrs:r,classes:i,styles:s}=n;r!==null&&Rg(e,t,r),i!==null&&qm(e,t,i),s!==null&&Zm(e,t,s)}var je=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e})(je||{});function Dc(e){let t=Gm();return t?ll(t.sanitize(je.HTML,e)||""):vt(e,"HTML")?ll(Qe(e)):Ic(fc(),Rr(e))}function Gm(){let e=T();return e&&e[De].sanitizer}function Wm(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let s=t.length;if(i+s===r||e.charCodeAt(i+s)<=32)return i}n=i+1}}var Ac="ng-template";function $m(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&Wm(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(no(e))return!1;if(i=t.indexOf(1,i),i>-1){let s;for(;++i<t.length&&typeof(s=t[i])=="string";)if(s.toLowerCase()===n)return!0}return!1}function no(e){return e.type===4&&e.value!==Ac}function Qm(e,t,n){let r=e.type===4&&!n?Ac:e.value;return t===r}function Ym(e,t,n){let r=4,i=e.attrs,s=i!==null?Xm(i):0,o=!1;for(let l=0;l<t.length;l++){let a=t[l];if(typeof a=="number"){if(!o&&!de(r)&&!de(a))return!1;if(o&&de(a))continue;o=!1,r=a|r&1;continue}if(!o)if(r&4){if(r=2|r&1,a!==""&&!Qm(e,a,n)||a===""&&t.length===1){if(de(r))return!1;o=!0}}else if(r&8){if(i===null||!$m(e,i,a,n)){if(de(r))return!1;o=!0}}else{let u=t[++l],c=Jm(a,i,no(e),n);if(c===-1){if(de(r))return!1;o=!0;continue}if(u!==""){let d;if(c>s?d="":d=i[c+1].toLowerCase(),r&2&&u!==d){if(de(r))return!1;o=!0}}}}return de(r)||o}function de(e){return(e&1)===0}function Jm(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let s=!1;for(;i<t.length;){let o=t[i];if(o===e)return i;if(o===3||o===6)s=!0;else if(o===1||o===2){let l=t[++i];for(;typeof l=="string";)l=t[++i];continue}else{if(o===4)break;if(o===0){i+=4;continue}}i+=s?1:2}return-1}else return ey(t,e)}function Km(e,t,n=!1){for(let r=0;r<t.length;r++)if(Ym(e,t[r],n))return!0;return!1}function Xm(e){for(let t=0;t<e.length;t++){let n=e[t];if(Fg(n))return t}return e.length}function ey(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 fl(e,t){return e?":not("+t.trim()+")":t}function ty(e){let t=e[0],n=1,r=2,i="",s=!1;for(;n<e.length;){let o=e[n];if(typeof o=="string")if(r&2){let l=e[++n];i+="["+o+(l.length>0?'="'+l+'"':"")+"]"}else r&8?i+="."+o:r&4&&(i+=" "+o);else i!==""&&!de(o)&&(t+=fl(s,i),i=""),r=o,s=s||!de(r);n++}return i!==""&&(t+=fl(s,i)),t}function ny(e){return e.map(ty).join(",")}function ry(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let s=e[r];if(typeof s=="string")i===2?s!==""&&t.push(s,e[++r]):i===8&&n.push(s);else{if(!de(i))break;i=s}r++}return n.length&&t.push(1,...n),t}var ft={};function ro(e,t,n,r,i,s,o,l,a,u,c){let d=le+r,f=d+i,h=iy(d,f),p=typeof u=="function"?u():u;return h[_]={type:e,blueprint:h,template:n,queries:null,viewQuery:l,declTNode:t,data:h.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 s=="function"?s():s,pipeRegistry:typeof o=="function"?o():o,firstChild:null,schemas:a,consts:p,incompleteFirstPass:!1,ssrId:c}}function iy(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:ft);return n}function sy(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=ro(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function io(e,t,n,r,i,s,o,l,a,u,c){let d=t.blueprint.slice();return d[Ne]=i,d[w]=r|4|128|8|64|1024,(u!==null||e&&e[w]&2048)&&(d[w]|=2048),xu(d),d[W]=d[jt]=e,d[K]=n,d[De]=o||e&&e[De],d[H]=l||e&&e[H],d[nt]=a||e&&e[nt]||null,d[ye]=s,d[Lr]=Xg(),d[fr]=c,d[yu]=u,d[Ce]=t.type==2?e[Ce]:d,d}function oy(e,t,n){let r=Se(t,e),i=sy(n),s=e[De].rendererFactory,o=so(e,io(e,i,null,Vc(n),r,t,null,s.createRenderer(r,n),null,null,null));return e[t.index]=o}function Vc(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Nc(e,t,n,r){if(n===0)return-1;let i=t.length;for(let s=0;s<n;s++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function so(e,t){return e[fn]?e[Jo][pe]=t:e[fn]=t,e[Jo]=t,t}function j(e=1){Rc(X(),T(),Bt()+e,!1)}function Rc(e,t,n,r){if(!r)if((t[w]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Yn(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Jn(t,i,0,n)}ot(n)}var qr=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(qr||{});function Ji(e,t,n,r){let i=k(null);try{let[s,o,l]=e.inputs[n],a=null;(o&qr.SignalBased)!==0&&(a=t[s][Me]),a!==null&&a.transformFn!==void 0?r=a.transformFn(r):l!==null&&(r=l.call(t,r)),e.setInput!==null?e.setInput(t,a,r,n,s):qu(t,a,s,r)}finally{k(i)}}var Je=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Je||{}),ly;function oo(e,t){return ly(e,t)}var kr=new Set,Fc=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Fc||{}),lo=new C(""),pl=new Set;function Lc(e){pl.has(e)||(pl.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var jc=!1,ay=class extends qe{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,$p()&&(this.destroyRef=b(Ks,{optional:!0})??void 0,this.pendingTasks=b(Ut,{optional:!0})??void 0)}emit(e){let t=k(null);try{super.next(e)}finally{k(t)}}subscribe(e,t,n){let r=e,i=t||(()=>null),s=n;if(e&&typeof e=="object"){let l=e;r=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=this.wrapInTimeout(i),r&&(r=this.wrapInTimeout(r)),s&&(s=this.wrapInTimeout(s)));let o=super.subscribe({next:r,error:i,complete:s});return e instanceof we&&e.add(o),o}wrapInTimeout(e){return t=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{e(t)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}},D=ay;function Hc(e){let t,n;function r(){e=br;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function gl(e){return queueMicrotask(()=>e()),()=>{e=br}}var ao="isAngularZone",Er=ao+"_ID",uy=0,J=class Ki{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new D(!1);onMicrotaskEmpty=new D(!1);onStable=new D(!1);onError=new D(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:s=jc}=t;if(typeof Zone>"u")throw new v(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&r,o.shouldCoalesceRunChangeDetection=i,o.callbackScheduled=!1,o.scheduleInRootZone=s,hy(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(ao)===!0}static assertInAngularZone(){if(!Ki.isInAngularZone())throw new v(909,!1)}static assertNotInAngularZone(){if(Ki.isInAngularZone())throw new v(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+i,t,cy,br,br);try{return s.runTask(o,n,r)}finally{s.cancelTask(o)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},cy={};function uo(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 dy(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Hc(()=>{e.callbackScheduled=!1,Xi(e),e.isCheckStableRunning=!0,uo(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Xi(e)}function hy(e){let t=()=>{dy(e)},n=uy++;e._inner=e._inner.fork({name:"angular",properties:{[ao]:!0,[Er]:n,[Er+n]:!0},onInvokeTask:(r,i,s,o,l,a)=>{if(py(a))return r.invokeTask(s,o,l,a);try{return ml(e),r.invokeTask(s,o,l,a)}finally{(e.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),yl(e)}},onInvoke:(r,i,s,o,l,a,u)=>{try{return ml(e),r.invoke(s,o,l,a,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!gy(a)&&t(),yl(e)}},onHasTask:(r,i,s,o)=>{r.hasTask(s,o),i===s&&(o.change=="microTask"?(e._hasPendingMicrotasks=o.microTask,Xi(e),uo(e)):o.change=="macroTask"&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,i,s,o)=>(r.handleError(s,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}function Xi(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function ml(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function yl(e){e._nesting--,uo(e)}var fy=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new D;onMicrotaskEmpty=new D;onStable=new D;onError=new D;run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}};function py(e){return zc(e,"__ignore_ng_zone__")}function gy(e){return zc(e,"__scheduler_tick__")}function zc(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var my=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=E({token:e,providedIn:"root",factory:()=>new e})}return e})(),yy=new C("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function Bc(e,t,n){let r=e.get(yy);if(Array.isArray(t))for(let i of t)r.queue.add(i),n?.detachedLeaveAnimationFns?.push(i);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function vy(e,t){for(let[n,r]of t)Bc(e,r.animateFns)}function vl(e,t,n,r){let i=e?.[mr]?.enter;t!==null&&i&&i.has(n.index)&&vy(r,i)}function wt(e,t,n,r,i,s,o,l){if(i!=null){let a,u=!1;Re(i)?a=i:Ze(i)&&(u=!0,i=i[Ne]);let c=xe(i);e===0&&r!==null?(vl(l,r,s,n),o==null?Mc(t,r,c):xr(t,r,c,o||null,!0)):e===1&&r!==null?(vl(l,r,s,n),xr(t,r,c,o||null,!0)):e===2?bl(l,s,n,d=>{Um(t,c,u,d)}):e===3&&bl(l,s,n,()=>{t.destroyNode(c)}),a!=null&&Py(t,e,n,a,s,r,o)}}function by(e,t){Uc(e,t),t[Ne]=null,t[ye]=null}function _y(e,t,n,r,i,s){r[Ne]=i,r[ye]=t,Gr(e,r,n,1,i,s)}function Uc(e,t){t[De].changeDetectionScheduler?.notify(9),Gr(e,t,t[H],2,null,null)}function wy(e){let t=e[fn];if(!t)return fi(e[_],e);for(;t;){let n=null;if(Ze(t))n=t[fn];else{let r=t[te];r&&(n=r)}if(!n){for(;t&&!t[pe]&&t!==e;)Ze(t)&&fi(t[_],t),t=t[W];t===null&&(t=e),Ze(t)&&fi(t[_],t),n=t&&t[pe]}t=n}}function co(e,t){let n=e[Pt],r=n.indexOf(t);n.splice(r,1)}function Zc(e,t){if(zt(t))return;let n=t[H];n.destroyNode&&Gr(e,t,n,3,null,null),wy(t)}function fi(e,t){if(zt(t))return;let n=k(null);try{t[w]&=-129,t[w]|=256,t[se]&&ba(t[se]),ky(e,t),xy(e,t),t[_].type===1&&t[H].destroy();let r=t[rt];if(r!==null&&Re(t[W])){r!==t[W]&&co(r,t);let i=t[Ae];i!==null&&i.detachView(e)}$i(t)}finally{k(n)}}function bl(e,t,n,r){let i=e?.[mr];if(i==null||i.leave==null||!i.leave.has(t.index))return r(!1);e&&kr.add(e),Bc(n,()=>{if(i.leave&&i.leave.has(t.index)){let s=i.leave.get(t.index),o=[];if(s){for(let l=0;l<s.animateFns.length;l++){let a=s.animateFns[l],{promise:u}=a();o.push(u)}i.detachedLeaveAnimationFns=void 0}i.running=Promise.allSettled(o),Cy(e,r)}else e&&kr.delete(e),r(!1)},i)}function Cy(e,t){let n=e[mr]?.running;if(n){n.then(()=>{e[mr].running=void 0,kr.delete(e),t(!0)});return}t(!1)}function xy(e,t){let n=e.cleanup,r=t[pr];if(n!==null)for(let o=0;o<n.length-1;o+=2)if(typeof n[o]=="string"){let l=n[o+3];l>=0?r[l]():r[-l].unsubscribe(),o+=2}else{let l=r[n[o+1]];n[o].call(l)}r!==null&&(t[pr]=null);let i=t[Ue];if(i!==null){t[Ue]=null;for(let o=0;o<i.length;o++){let l=i[o];l()}}let s=t[gr];if(s!==null){t[gr]=null;for(let o of s)o.destroy()}}function ky(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof xn)){let s=n[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){let l=i[s[o]],a=s[o+1];P(4,l,a);try{a.call(l)}finally{P(5,l,a)}}else{P(4,i,s);try{s.call(i)}finally{P(5,i,s)}}}}}function Ey(e,t,n){return Sy(e,t.parent,n)}function Sy(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ne];if(Ht(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===lt.None||i===lt.Emulated)return null}return Se(r,n)}function Ty(e,t,n){return Oy(e,t,n)}function Iy(e,t,n){return e.type&40?Se(e,n):null}var Oy=Iy,_l;function ho(e,t,n,r){let i=Ey(e,r,t),s=t[H],o=r.parent||t[ye],l=Ty(o,r,t);if(i!=null)if(Array.isArray(n))for(let a=0;a<n.length;a++)hl(s,i,n[a],l,!1);else hl(s,i,n,l,!1);_l!==void 0&&_l(s,r,t,n,i)}function Xt(e,t){if(t!==null){let n=t.type;if(n&3)return Se(t,e);if(n&4)return es(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Xt(e,r);{let i=e[t.index];return Re(i)?es(-1,i):xe(i)}}else{if(n&128)return Xt(e,t.next);if(n&32)return oo(t,e)()||xe(e[t.index]);{let r=qc(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=st(e[Ce]);return Xt(i,r)}else return Xt(e,t.next)}}}return null}function qc(e,t){if(t!==null){let n=e[Ce][ye],r=t.projection;return n.projection[r]}return null}function es(e,t){let n=te+e+1;if(n<t.length){let r=t[n],i=r[_].firstChild;if(i!==null)return Xt(r,i)}return t[it]}function fo(e,t,n,r,i,s,o){for(;n!=null;){let l=r[nt];if(n.type===128){n=n.next;continue}let a=r[n.index],u=n.type;if(o&&t===0&&(a&&Vt(xe(a),r),n.flags|=2),!vc(n))if(u&8)fo(e,t,n.child,r,i,s,!1),wt(t,e,l,i,a,n,s,r);else if(u&32){let c=oo(n,r),d;for(;d=c();)wt(t,e,l,i,d,n,s,r);wt(t,e,l,i,a,n,s,r)}else u&16?My(e,t,r,n,i,s):wt(t,e,l,i,a,n,s,r);n=o?n.projectionNext:n.next}}function Gr(e,t,n,r,i,s){fo(n,r,e.firstChild,t,i,s,!1)}function My(e,t,n,r,i,s){let o=n[Ce],l=o[ye].projection[r.projection];if(Array.isArray(l))for(let a=0;a<l.length;a++){let u=l[a];wt(t,e,n[nt],i,u,r,s,n)}else{let a=l,u=o[W];lc(r)&&(a.flags|=128),fo(e,t,a,u,i,s,!0)}}function Py(e,t,n,r,i,s,o){let l=r[it],a=xe(r);l!==a&&wt(t,e,n,s,l,i,o);for(let u=te;u<r.length;u++){let c=r[u];Gr(c[_],c,e,t,s,l)}}function Dy(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let s=r.indexOf("-")===-1?void 0:Je.DashCase;i==null?e.removeStyle(n,r,s):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),s|=Je.Important),e.setStyle(n,r,i,s))}}function Gc(e,t,n,r,i){let s=Bt(),o=r&2;try{ot(-1),o&&t.length>le&&Rc(e,t,le,!1),P(o?2:0,i,n),n(r,i)}finally{ot(s),P(o?3:1,i,n)}}function po(e,t,n){jy(e,t,n),(n.flags&64)===64&&Hy(e,t,n)}function go(e,t,n=Se){let r=t.localNames;if(r!==null){let i=t.index+1;for(let s=0;s<r.length;s+=2){let o=r[s+1],l=o===-1?n(t,e):e[o];e[i++]=l}}}function Ay(e,t,n,r){let i=r.get(sm,yc)||n===lt.ShadowDom,s=e.selectRootElement(t,i);return Vy(s),s}function Vy(e){Ny(e)}var Ny=()=>null;function Ry(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Fy(e,t,n,r,i,s){let o=t[_];if(mo(e,o,t,n,r)){Ht(e)&&Ly(t,e.index);return}e.type&3&&(n=Ry(n)),Wc(e,t,n,r,i,s)}function Wc(e,t,n,r,i,s){if(e.type&3){let o=Se(e,t);r=s!=null?s(r,e.value||"",n):r,i.setProperty(o,n,r)}else e.type&12}function Ly(e,t){let n=ke(t,e);n[w]&16||(n[w]|=64)}function jy(e,t,n){let r=n.directiveStart,i=n.directiveEnd;Ht(n)&&oy(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Cr(n,t);let s=n.initialInputs;for(let o=r;o<i;o++){let l=e.data[o],a=gn(t,e,o,n);if(Vt(a,t),s!==null&&Zy(t,o-r,a,l,n,s),Ve(l)){let u=ke(n.index,t);u[K]=gn(t,e,o,n)}}}function Hy(e,t,n){let r=n.directiveStart,i=n.directiveEnd,s=n.index,o=hg();try{ot(s);for(let l=r;l<i;l++){let a=e.data[l],u=t[l];Zi(l),(a.hostBindings!==null||a.hostVars!==0||a.hostAttrs!==null)&&zy(a,u)}}finally{ot(-1),Zi(o)}}function zy(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function $c(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let s=n[i];Km(t,s.selectors,!1)&&(r??=[],Ve(s)?r.unshift(s):r.push(s))}return r}function By(e,t,n,r,i,s){let o=Se(e,t);Uy(t[H],o,s,e.value,n,r,i)}function Uy(e,t,n,r,i,s,o){if(s==null)e.removeAttribute(t,i,n);else{let l=o==null?Rr(s):o(s,r||"",i);e.setAttribute(t,i,l,n)}}function Zy(e,t,n,r,i,s){let o=s[t];if(o!==null)for(let l=0;l<o.length;l+=2){let a=o[l],u=o[l+1];Ji(r,n,a,u)}}function Qc(e,t,n,r,i){let s=le+n,o=t[_],l=i(o,t,e,r,n);t[s]=l,_n(e,!0);let a=e.type===2;return a?(Pc(t[H],l,e),(tg()===0||jr(e))&&Vt(l,t),ng()):Vt(l,t),Ys()&&(!a||!vc(e))&&ho(o,t,l,e),e}function Yc(e){let t=e;return Du()?lg():(t=t.parent,_n(t,!1)),t}function qy(e,t){let n=e[nt];if(!n)return;let r;try{r=n.get(Ge,null)}catch{r=null}r?.(t)}function mo(e,t,n,r,i){let s=e.inputs?.[r],o=e.hostDirectiveInputs?.[r],l=!1;if(o)for(let a=0;a<o.length;a+=2){let u=o[a],c=o[a+1],d=t.data[u];Ji(d,n[u],c,i),l=!0}if(s)for(let a of s){let u=n[a],c=t.data[a];Ji(c,u,r,i),l=!0}return l}function Gy(e,t){let n=ke(t,e),r=n[_];Wy(r,n);let i=n[Ne];i!==null&&n[fr]===null&&(n[fr]=bc(i,n[nt])),P(18),yo(r,n,n[K]),P(19,n[K])}function Wy(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function yo(e,t,n){Ws(t);try{let r=e.viewQuery;r!==null&&Yi(1,r,n);let i=e.template;i!==null&&Gc(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Ae]?.finishViewCreation(e),e.staticContentQueries&&_c(e,t),e.staticViewQueries&&Yi(2,e.viewQuery,n);let s=e.components;s!==null&&$y(t,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[w]&=-5,$s()}}function $y(e,t){for(let n=0;n<t.length;n++)Gy(e,t[n])}function Qy(e,t,n,r){let i=k(null);try{let s=t.tView,o=e[w]&4096?4096:16,l=io(e,s,n,o,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),a=e[t.index];l[rt]=a;let u=e[Ae];return u!==null&&(l[Ae]=u.createEmbeddedView(s)),yo(s,l,n),l}finally{k(i)}}function wl(e,t){return!t||t.firstChild===null||lc(e)}function Sr(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let s=t[n.index];s!==null&&r.push(xe(s)),Re(s)&&Yy(s,r);let o=n.type;if(o&8)Sr(e,t,n.child,r);else if(o&32){let l=oo(n,t),a;for(;a=l();)r.push(a)}else if(o&16){let l=qc(t,n);if(Array.isArray(l))r.push(...l);else{let a=st(t[Ce]);Sr(a[_],a,l,r,!0)}}n=i?n.projectionNext:n.next}return r}function Yy(e,t){for(let n=te;n<e.length;n++){let r=e[n],i=r[_].firstChild;i!==null&&Sr(r[_],r,i,t)}e[it]!==e[Ne]&&t.push(e[it])}function Jc(e){if(e[ui]!==null){for(let t of e[ui])t.impl.addSequence(t);e[ui].length=0}}var Kc=[];function Jy(e){return e[se]??Ky(e)}function Ky(e){let t=Kc.pop()??Object.create(ev);return t.lView=e,t}function Xy(e){e.lView[se]!==e&&(e.lView=null,Kc.push(e))}var ev=Q(z({},Ar),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Hr(e.lView)},consumerOnSignalRead(){this.lView[se]=this}});function tv(e){let t=e[se]??Object.create(nv);return t.lView=e,t}var nv=Q(z({},Ar),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=st(e.lView);for(;t&&!Xc(t[_]);)t=st(t);t&&qs(t)},consumerOnSignalRead(){this.lView[se]=this}});function Xc(e){return e.type!==2}function ed(e){if(e[gr]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[gr])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[w]&8192)}}var rv=100;function td(e,t=0){let n=e[De].rendererFactory,r=!1;r||n.begin?.();try{iv(e,t)}finally{r||n.end?.()}}function iv(e,t){let n=Au();try{Ko(!0),ts(e,t);let r=0;for(;pn(e);){if(r===rv)throw new v(103,!1);r++,ts(e,1)}}finally{Ko(n)}}function sv(e,t,n,r){if(zt(t))return;let i=t[w],s=!1,o=!1;Ws(t);let l=!0,a=null,u=null;s||(Xc(e)?(u=Jy(t),a=Vi(u)):Zh()===null?(l=!1,u=tv(t),a=Vi(u)):t[se]&&(ba(t[se]),t[se]=null));try{xu(t),ag(e.bindingStartIndex),n!==null&&Gc(e,t,n,2,r);let c=(i&3)===3;if(!s)if(c){let h=e.preOrderCheckHooks;h!==null&&Yn(t,h,null)}else{let h=e.preOrderHooks;h!==null&&Jn(t,h,0,null),di(t,0)}if(o||ov(t),ed(t),nd(t,0),e.contentQueries!==null&&_c(e,t),!s)if(c){let h=e.contentCheckHooks;h!==null&&Yn(t,h)}else{let h=e.contentHooks;h!==null&&Jn(t,h,1),di(t,1)}av(e,t);let d=e.components;d!==null&&id(t,d,0);let f=e.viewQuery;if(f!==null&&Yi(2,f,r),!s)if(c){let h=e.viewCheckHooks;h!==null&&Yn(t,h)}else{let h=e.viewHooks;h!==null&&Jn(t,h,2),di(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[ai]){for(let h of t[ai])h();t[ai]=null}s||(Jc(t),t[w]&=-73)}catch(c){throw s||Hr(t),c}finally{u!==null&&(ya(u,a),l&&Xy(u)),$s()}}function nd(e,t){for(let n=cc(e);n!==null;n=dc(n))for(let r=te;r<n.length;r++){let i=n[r];rd(i,t)}}function ov(e){for(let t=cc(e);t!==null;t=dc(t)){if(!(t[w]&2))continue;let n=t[Pt];for(let r=0;r<n.length;r++){let i=n[r];qs(i)}}}function lv(e,t,n){P(18);let r=ke(t,e);rd(r,n),P(19,r[K])}function rd(e,t){Zs(e)&&ts(e,t)}function ts(e,t){let n=e[_],r=e[w],i=e[se],s=!!(t===0&&r&16);if(s||=!!(r&64&&t===0),s||=!!(r&1024),s||=!!(i?.dirty&&va(i)),s||=!1,i&&(i.dirty=!1),e[w]&=-9217,s)sv(n,e,n.template,e[K]);else if(r&8192){let o=k(null);try{ed(e),nd(e,1);let l=n.components;l!==null&&id(e,l,1),Jc(e)}finally{k(o)}}}function id(e,t,n){for(let r=0;r<t.length;r++)lv(e,t[r],n)}function av(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)ot(~i);else{let s=i,o=n[++r],l=n[++r];dg(o,s);let a=t[s];P(24,a),l(2,a),P(25,a)}}}finally{ot(-1)}}function vo(e,t){let n=Au()?64:1088;for(e[De].changeDetectionScheduler?.notify(t);e;){e[w]|=n;let r=st(e);if(vr(e)&&!r)return e;e=r}return null}function sd(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function uv(e,t,n,r=!0){let i=t[_];if(cv(i,t,e,n),r){let o=es(n,e),l=t[H],a=l.parentNode(e[it]);a!==null&&_y(i,e[ye],l,t,a,o)}let s=t[fr];s!==null&&s.firstChild!==null&&(s.firstChild=null)}function ns(e,t){if(e.length<=te)return;let n=te+t,r=e[n];if(r){let i=r[rt];i!==null&&i!==e&&co(i,r),t>0&&(e[n-1][pe]=r[pe]);let s=hr(e,te+t);by(r[_],r);let o=s[Ae];o!==null&&o.detachView(s[_]),r[W]=null,r[pe]=null,r[w]&=-129}return r}function cv(e,t,n,r){let i=te+r,s=n.length;r>0&&(n[i-1][pe]=t),r<s-te?(t[pe]=n[i],au(n,te+r,t)):(n.push(t),t[pe]=null),t[W]=n;let o=t[rt];o!==null&&n!==o&&od(o,t);let l=t[Ae];l!==null&&l.insertView(e),Bi(t),t[w]|=128}function od(e,t){let n=e[Pt],r=t[W];if(Ze(r))e[w]|=2;else{let i=r[W][Ce];t[Ce]!==i&&(e[w]|=2)}n===null?e[Pt]=[t]:n.push(t)}var mn=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let e=this._lView,t=e[_];return Sr(t,e,t.firstChild,[])}constructor(e,t){this._lView=e,this._cdRefInjectingView=t}get context(){return this._lView[K]}set context(e){this._lView[K]=e}get destroyed(){return zt(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[W];if(Re(e)){let t=e[yr],n=t?t.indexOf(this):-1;n>-1&&(ns(e,n),hr(t,n))}this._attachedToViewContainer=!1}Zc(this._lView[_],this._lView)}onDestroy(e){ku(this._lView,e)}markForCheck(){vo(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[w]&=-129}reattach(){Bi(this._lView),this._lView[w]|=128}detectChanges(){this._lView[w]|=1024,td(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new v(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=vr(this._lView),t=this._lView[rt];t!==null&&!e&&co(t,this._lView),Uc(this._lView[_],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new v(902,!1);this._appRef=e;let t=vr(this._lView),n=this._lView[rt];n!==null&&!t&&od(n,this._lView),Bi(this._lView)}};function dv(e){return pn(e._lView)||!!(e._lView[w]&64)}function hv(e){qs(e._lView)}var Nt=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=fv;constructor(n,r,i){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,i){let s=Qy(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:i});return new mn(s)}}return e})();function fv(){return bo(ne(),T())}function bo(e,t){return e.type&4?new Nt(t,e,Zt(e,t)):null}function Wr(e,t,n,r,i){let s=e.data[t];if(s===null)s=pv(e,t,n,r,i),cg()&&(s.flags|=32);else if(s.type&64){s.type=n,s.value=r,s.attrs=i;let o=og();s.injectorIndex=o===null?-1:o.injectorIndex}return _n(s,!0),s}function pv(e,t,n,r,i){let s=Pu(),o=Du(),l=o?s:s&&s.parent,a=e.data[t]=mv(e,l,n,t,r,i);return gv(e,a,s,o),a}function gv(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 mv(e,t,n,r,i,s){let o=t?t.injectorIndex:-1,l=0;return rg()&&(l|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:l,providerIndexes:0,value:i,attrs:s,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}}var zw=new RegExp(`^(\\d+)*(${im}|${rm})*(.*)`),yv=()=>null;function Cl(e,t){return yv(e,t)}var vv=class{},ld=class{},bv=class{resolveComponentFactory(e){throw new v(917,!1)}},En=class{static NULL=new bv},_o=class{},ad=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>_v()}return e})();function _v(){let e=T(),t=ne(),n=ke(t.index,e);return(Ze(n)?n:e)[H]}var wv=(()=>{class e{static \u0275prov=E({token:e,providedIn:"root",factory:()=>null})}return e})(),pi={},Cv=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){let r=this.injector.get(e,pi,n);return r!==pi||t===pi?r:this.parentInjector.get(e,t,n)}};function Tr(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,s=0;if(t!==null)for(let o=0;o<t.length;o++){let l=t[o];if(typeof l=="number")s=l;else if(s==1)i=Go(i,l);else if(s==2){let a=l,u=t[++o];r=Go(r,a+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function A(e,t=0){let n=T();if(n===null)return y(e,t);let r=ne();return ic(r,n,Y(e),t)}function ud(e,t,n,r,i){let s=r===null?null:{"":-1},o=i(e,n);if(o!==null){let l=o,a=null,u=null;for(let c of o)if(c.resolveHostDirectives!==null){[l,a,u]=c.resolveHostDirectives(o);break}Ev(e,t,n,l,s,a,u)}s!==null&&r!==null&&xv(n,r,s)}function xv(e,t,n){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let s=n[t[i+1]];if(s==null)throw new v(-301,!1);r.push(t[i],s)}}function kv(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Ev(e,t,n,r,i,s,o){let l=r.length,a=!1;for(let f=0;f<l;f++){let h=r[f];!a&&Ve(h)&&(a=!0,kv(e,n,f)),Gi(Cr(n,t),e,h.type)}Pv(n,e.data.length,l);for(let f=0;f<l;f++){let h=r[f];h.providersResolver&&h.providersResolver(h)}let u=!1,c=!1,d=Nc(e,t,l,null);l>0&&(n.directiveToIndex=new Map);for(let f=0;f<l;f++){let h=r[f];if(n.mergedAttrs=At(n.mergedAttrs,h.hostAttrs),Tv(e,n,t,d,h),Mv(d,h,i),o!==null&&o.has(h)){let[g,m]=o.get(h);n.directiveToIndex.set(h.type,[d,g+n.directiveStart,m+n.directiveStart])}else(s===null||!s.has(h))&&n.directiveToIndex.set(h.type,d);h.contentQueries!==null&&(n.flags|=4),(h.hostBindings!==null||h.hostAttrs!==null||h.hostVars!==0)&&(n.flags|=64);let p=h.type.prototype;!u&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!c&&(p.ngOnChanges||p.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),c=!0),d++}Sv(e,n,s)}function Sv(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))xl(0,t,i,r),xl(1,t,i,r),El(t,r,!1);else{let s=n.get(i);kl(0,t,s,r),kl(1,t,s,r),El(t,r,!0)}}}function xl(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let s in i)if(i.hasOwnProperty(s)){let o;e===0?o=t.inputs??={}:o=t.outputs??={},o[s]??=[],o[s].push(r),cd(t,s)}}function kl(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let s in i)if(i.hasOwnProperty(s)){let o=i[s],l;e===0?l=t.hostDirectiveInputs??={}:l=t.hostDirectiveOutputs??={},l[o]??=[],l[o].push(r,s),cd(t,o)}}function cd(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function El(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:s}=e;if(r===null||!n&&i===null||n&&s===null||no(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let o=null,l=0;for(;l<r.length;){let a=r[l];if(a===0){l+=4;continue}else if(a===5){l+=2;continue}else if(typeof a=="number")break;if(!n&&i.hasOwnProperty(a)){let u=i[a];for(let c of u)if(c===t){o??=[],o.push(a,r[l+1]);break}}else if(n&&s.hasOwnProperty(a)){let u=s[a];for(let c=0;c<u.length;c+=2)if(u[c]===t){o??=[],o.push(u[c+1],r[l+1]);break}}l+=2}e.initialInputs??=[],e.initialInputs.push(o)}function Tv(e,t,n,r,i){e.data[r]=i;let s=i.factory||(i.factory=It(i.type,!0)),o=new xn(s,Ve(i),A,null);e.blueprint[r]=o,n[r]=o,Iv(e,t,r,Nc(e,n,i.hostVars,ft),i)}function Iv(e,t,n,r,i){let s=i.hostBindings;if(s){let o=e.hostBindingOpCodes;o===null&&(o=e.hostBindingOpCodes=[]);let l=~t.index;Ov(o)!=l&&o.push(l),o.push(n,r,s)}}function Ov(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Mv(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ve(t)&&(n[""]=e)}}function Pv(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function dd(e,t,n,r,i,s,o,l){let a=t[_],u=a.consts,c=Dt(u,o),d=Wr(a,e,n,r,c);return s&&ud(a,t,d,Dt(u,l),i),d.mergedAttrs=At(d.mergedAttrs,d.attrs),d.attrs!==null&&Tr(d,d.attrs,!1),d.mergedAttrs!==null&&Tr(d,d.mergedAttrs,!0),a.queries!==null&&a.queries.elementStart(a,d),d}function hd(e,t){Yu(e,t),bu(t)&&e.queries.elementEnd(t)}function Dv(e,t,n,r,i,s){let o=t.consts,l=Dt(o,i),a=Wr(t,e,n,r,l);if(a.mergedAttrs=At(a.mergedAttrs,a.attrs),s!=null){let u=Dt(o,s);a.localNames=[];for(let c=0;c<u.length;c+=2)a.localNames.push(u[c],-1)}return a.attrs!==null&&Tr(a,a.attrs,!1),a.mergedAttrs!==null&&Tr(a,a.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,a),a}function fd(e){return Vv(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Av(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function Vv(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Sn(e,t,n){if(n===ft)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Xn(e,t,n){return function r(i){let s=Ht(e)?ke(e.index,t):t;vo(s,5);let o=t[K],l=Sl(t,o,n,i),a=r.__ngNextListenerFn__;for(;a;)l=Sl(t,o,a,i)&&l,a=a.__ngNextListenerFn__;return l}}function Sl(e,t,n,r){let i=k(null);try{return P(6,t,n),n(r)!==!1}catch(s){return qy(e,s),!1}finally{P(7,t,n),k(i)}}function pd(e,t,n,r,i,s,o,l){let a=jr(e),u=!1,c=null;if(!r&&a&&(c=Rv(t,n,s,e.index)),c!==null){let d=c.__ngLastListenerFn__||c;d.__ngNextListenerFn__=o,c.__ngLastListenerFn__=o,u=!0}else{let d=Se(e,n),f=r?r(d):d;lm(n,f,s,l);let h=i.listen(f,s,l);if(!Nv(s)){let p=r?g=>r(xe(g[e.index])):e.index;gd(p,t,n,s,l,h,!1)}}return u}function Nv(e){return e.startsWith("animation")||e.startsWith("transition")}function Rv(e,t,n,r){let i=e.cleanup;if(i!=null)for(let s=0;s<i.length-1;s+=2){let o=i[s];if(o===n&&i[s+1]===r){let l=t[pr],a=i[s+2];return l&&l.length>a?l[a]:null}typeof o=="string"&&(s+=2)}return null}function gd(e,t,n,r,i,s,o){let l=t.firstCreatePass?Su(t):null,a=Eu(n),u=a.length;a.push(i,s),l&&l.push(r,e,u,(u+1)*(o?-1:1))}function Tl(e,t,n,r,i,s){let o=t[n],l=t[_],a=l.data[n].outputs[r],u=o[a].subscribe(s);gd(e.index,l,t,i,s,u,!0)}var rs=Symbol("BINDING"),Fv=class extends En{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let t=hn(e);return new md(t,this.ngModule)}};function Lv(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],s={propName:n,templateName:t,isSignal:(r&qr.SignalBased)!==0};return i&&(s.transform=i),s})}function jv(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function Hv(e,t,n){let r=t instanceof Pe?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Cv(n,r):n}function zv(e){let t=e.get(_o,null);if(t===null)throw new v(407,!1);let n=e.get(wv,null),r=e.get(Cn,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function Bv(e,t){let n=Uv(e);return Oc(t,n,n==="svg"?_u:n==="math"?Qp:null)}function Uv(e){return(e.selectors[0][0]||"div").toLowerCase()}var md=class extends ld{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=Lv(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=jv(this.componentDef.outputs),this.cachedOutputs}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=ny(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,r,i,s){P(22);let o=k(null);try{let l=this.componentDef,a=Zv(n,l,s,i),u=Hv(l,r||this.ngModule,e),c=zv(u),d=c.rendererFactory.createRenderer(null,l),f=n?Ay(d,n,l.encapsulation,u):Bv(l,d),h=s?.some(Il)||i?.some(m=>typeof m!="function"&&m.bindings.some(Il)),p=io(null,a,null,512|Vc(l),null,null,c,d,u,null,bc(f,u,!0));p[le]=f,Ws(p);let g=null;try{let m=dd(le,p,2,"#host",()=>a.directiveRegistry,!0,0);Pc(d,f,m),Vt(f,p),po(a,p,m),wc(a,m,p),hd(a,m),t!==void 0&&Wv(m,this.ngContentSelectors,t),g=ke(m.index,p),p[K]=g[K],yo(a,p,null)}catch(m){throw g!==null&&$i(g),$i(p),m}finally{P(23),$s()}return new Gv(this.componentType,p,!!h)}finally{k(o)}}};function Zv(e,t,n,r){let i=e?["ng-version","20.3.15"]:ry(t.selectors[0]),s=null,o=null,l=0;if(n)for(let u of n)l+=u[rs].requiredVars,u.create&&(u.targetIdx=0,(s??=[]).push(u)),u.update&&(u.targetIdx=0,(o??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let c=r[u];if(typeof c!="function")for(let d of c.bindings){l+=d[rs].requiredVars;let f=u+1;d.create&&(d.targetIdx=f,(s??=[]).push(d)),d.update&&(d.targetIdx=f,(o??=[]).push(d))}}let a=[t];if(r)for(let u of r){let c=typeof u=="function"?u:u.type,d=hu(c);a.push(d)}return ro(0,null,qv(s,o),1,l,a,null,null,null,[i],null)}function qv(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 Il(e){let t=e[rs].kind;return t==="input"||t==="twoWay"}var Gv=class extends vv{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t,n){super(),this._rootLView=t,this._hasInputBindings=n,this._tNode=Cu(t[_],le),this.location=Zt(this._tNode,t),this.instance=ke(this._tNode.index,t)[K],this.hostView=this.changeDetectorRef=new mn(t,void 0),this.componentType=e}setInput(e,t){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),t))return;let r=this._rootLView,i=mo(n,r[_],r,e,t);this.previousInputValues.set(e,t);let s=ke(n.index,r);vo(s,1)}get injector(){return new nn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function Wv(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let s=n[i];r.push(s!=null&&s.length?Array.from(s):null)}}var Tn=(()=>{class e{static __NG_ELEMENT_ID__=$v}return e})();function $v(){let e=ne();return vd(e,T())}var Qv=Tn,yd=class extends Qv{_lContainer;_hostTNode;_hostLView;constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return Zt(this._hostTNode,this._hostLView)}get injector(){return new nn(this._hostTNode,this._hostLView)}get parentInjector(){let e=eo(this._hostTNode,this._hostLView);if(Ku(e)){let t=wr(e,this._hostLView),n=_r(e),r=t[_].data[n+8];return new nn(r,t)}else return new nn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let t=Ol(this._lContainer);return t!==null&&t[e]||null}get length(){return this._lContainer.length-te}createEmbeddedView(e,t,n){let r,i;typeof n=="number"?r=n:n!=null&&(r=n.index,i=n.injector);let s=Cl(this._lContainer,e.ssrId),o=e.createEmbeddedViewImpl(t||{},i,s);return this.insertImpl(o,r,wl(this._hostTNode,s)),o}createComponent(e,t,n,r,i,s,o){let l=e&&!Tg(e),a;if(l)a=t;else{let g=t||{};a=g.index,n=g.injector,r=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef,s=g.directives,o=g.bindings}let u=l?e:new md(hn(e)),c=n||this.parentInjector;if(!i&&u.ngModule==null){let g=(l?c:this.parentInjector).get(Pe,null);g&&(i=g)}let d=hn(u.componentType??{}),f=Cl(this._lContainer,d?.id??null),h=f?.firstChild??null,p=u.create(c,r,h,i,s,o);return this.insertImpl(p.hostView,a,wl(this._hostTNode,f)),p}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(e,t,n){let r=e._lView;if(Jp(r)){let o=this.indexOf(e);if(o!==-1)this.detach(o);else{let l=r[W],a=new yd(l,l[ye],l[W]);a.detach(a.indexOf(e))}}let i=this._adjustIndex(t),s=this._lContainer;return uv(s,r,i,n),e.attachToViewContainerRef(),au(gi(s),i,e),e}move(e,t){return this.insert(e,t)}indexOf(e){let t=Ol(this._lContainer);return t!==null?t.indexOf(e):-1}remove(e){let t=this._adjustIndex(e,-1),n=ns(this._lContainer,t);n&&(hr(gi(this._lContainer),t),Zc(n[_],n))}detach(e){let t=this._adjustIndex(e,-1),n=ns(this._lContainer,t);return n&&hr(gi(this._lContainer),t)!=null?new mn(n):null}_adjustIndex(e,t=0){return e??this.length+t}};function Ol(e){return e[yr]}function gi(e){return e[yr]||(e[yr]=[])}function vd(e,t){let n,r=t[e.index];return Re(r)?n=r:(n=sd(r,t,null,e),t[e.index]=n,so(t,n)),Jv(n,t,e,r),new yd(n,e,t)}function Yv(e,t){let n=e[H],r=n.createComment(""),i=Se(t,e),s=n.parentNode(i);return xr(n,s,r,n.nextSibling(i),!1),r}var Jv=e0,Kv=()=>!1;function Xv(e,t,n){return Kv(e,t,n)}function e0(e,t,n,r){if(e[it])return;let i;n.type&8?i=xe(r):i=Yv(t,n),e[it]=i}var t0=class bd{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new bd(this.queryList)}setDirty(){this.queryList.setDirty()}},n0=class _d{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,i=[];for(let s=0;s<r;s++){let o=n.getByIndex(s),l=this.queries[o.indexInDeclarationView];i.push(l.clone())}return new _d(i)}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++)wo(t,n).matches!==null&&this.queries[n].setDirty()}},r0=class{flags;read;predicate;constructor(e,t,n=null){this.flags=t,this.read=n,typeof e=="string"?this.predicate=f0(e):this.predicate=e}},i0=class wd{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 i=n!==null?n.length:0,s=this.getByIndex(r).embeddedTView(t,i);s&&(s.indexInDeclarationView=r,n!==null?n.push(s):n=[s])}return n!==null?new wd(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)}},s0=class Cd{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 Cd(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 i=0;i<r.length;i++){let s=r[i];this.matchTNodeWithReadOption(t,n,o0(n,s)),this.matchTNodeWithReadOption(t,n,Kn(n,t,s,!1,!1))}else r===Nt?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Kn(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===qt||i===Tn||i===Nt&&n.type&4)this.addMatch(n.index,-2);else{let s=Kn(n,t,i,!1,!1);s!==null&&this.addMatch(n.index,s)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function o0(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 l0(e,t){return e.type&11?Zt(e,t):e.type&4?bo(e,t):null}function a0(e,t,n,r){return n===-1?l0(t,e):n===-2?u0(e,t,r):gn(e,e[_],n,t)}function u0(e,t,n){if(n===qt)return Zt(t,e);if(n===Nt)return bo(t,e);if(n===Tn)return vd(t,e)}function xd(e,t,n,r){let i=t[Ae].queries[r];if(i.matches===null){let s=e.data,o=n.matches,l=[];for(let a=0;o!==null&&a<o.length;a+=2){let u=o[a];if(u<0)l.push(null);else{let c=s[u];l.push(a0(t,c,o[a+1],n.metadata.read))}}i.matches=l}return i.matches}function is(e,t,n,r){let i=e.queries.getByIndex(n),s=i.matches;if(s!==null){let o=xd(e,t,i,n);for(let l=0;l<s.length;l+=2){let a=s[l];if(a>0)r.push(o[l/2]);else{let u=s[l+1],c=t[-a];for(let d=te;d<c.length;d++){let f=c[d];f[rt]===f[W]&&is(f[_],f,u,r)}if(c[Pt]!==null){let d=c[Pt];for(let f=0;f<d.length;f++){let h=d[f];is(h[_],h,u,r)}}}}}return r}function c0(e,t){return e[Ae].queries[t].queryList}function d0(e,t,n){let r=new Jg((n&4)===4);return eg(e,t,r,r.destroy),(t[Ae]??=new n0).queries.push(new t0(r))-1}function h0(e,t,n){let r=X();return r.firstCreatePass&&(p0(r,new r0(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),d0(r,T(),t)}function f0(e){return e.split(",").map(t=>t.trim())}function p0(e,t,n){e.queries===null&&(e.queries=new i0),e.queries.track(new s0(t,n))}function wo(e,t){return e.queries.getByIndex(t)}function g0(e,t){let n=e[_],r=wo(n,t);return r.crossesNgTemplate?is(n,e,t,[]):xd(n,e,r,t)}var ss=class{},kd=class extends ss{injector;componentFactoryResolver=new Fv(this);instance=null;constructor(e){super();let t=new Bs([...e.providers,{provide:ss,useValue:this},{provide:En,useValue:this.componentFactoryResolver}],e.parent||zs(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function m0(e,t,n=null){return new kd({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var y0=(()=>{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=fu(!1,n.type),i=r.length>0?m0([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=E({token:e,providedIn:"environment",factory:()=>new e(y(Pe))})}return e})();function pt(e){return Ur(()=>{let t=Ed(e),n=Q(z({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ac.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(y0).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||lt.Emulated,styles:e.styles||ie,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Lc("NgStandalone"),Sd(n);let r=e.dependencies;return n.directiveDefs=Ml(r,v0),n.pipeDefs=Ml(r,Rp),n.id=C0(n),n})}function v0(e){return hn(e)||hu(e)}function $r(e){return Ur(()=>({type:e.type,bootstrap:e.bootstrap||ie,declarations:e.declarations||ie,imports:e.imports||ie,exports:e.exports||ie,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function b0(e,t){if(e==null)return tt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],s,o,l,a;Array.isArray(i)?(l=i[0],s=i[1],o=i[2]??s,a=i[3]||null):(s=i,o=i,l=qr.None,a=null),n[s]=[r,l,a],t[s]=o}return n}function _0(e){if(e==null)return tt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function gt(e){return Ur(()=>{let t=Ed(e);return Sd(t),t})}function w0(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 Ed(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||tt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||ie,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:b0(e.inputs,t),outputs:_0(e.outputs),debugInfo:null}}function Sd(e){e.features?.forEach(t=>t(e))}function Ml(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let i of n){let s=t(i);s!==null&&r.push(s)}return r}:null}function C0(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 x0(e){return Object.getPrototypeOf(e.prototype).constructor}function In(e){let t=x0(e.type),n=!0,r=[e];for(;t;){let i;if(Ve(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new v(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let o=e;o.inputs=mi(e.inputs),o.declaredInputs=mi(e.declaredInputs),o.outputs=mi(e.outputs);let l=i.hostBindings;l&&I0(e,l);let a=i.viewQuery,u=i.contentQueries;if(a&&S0(e,a),u&&T0(e,u),k0(e,i),pp(e.outputs,i.outputs),Ve(i)&&i.data.animation){let c=e.data;c.animation=(c.animation||[]).concat(i.data.animation)}}let s=i.features;if(s)for(let o=0;o<s.length;o++){let l=s[o];l&&l.ngInherit&&l(e),l===In&&(n=!1)}}t=Object.getPrototypeOf(t)}E0(r)}function k0(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function E0(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=At(i.hostAttrs,n=At(n,i.hostAttrs))}}function mi(e){return e===tt?{}:e===ie?[]:e}function S0(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function T0(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,s)=>{t(r,i,s),n(r,i,s)}:e.contentQueries=t}function I0(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function O0(e,t,n,r,i,s,o,l){if(n.firstCreatePass){e.mergedAttrs=At(e.mergedAttrs,e.attrs);let c=e.tView=ro(2,e,i,s,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),c.queries=n.queries.embeddedTView(e))}l&&(e.flags|=l),_n(e,!1);let a=P0(n,t,e,r);Ys()&&ho(n,t,a,e),Vt(a,t);let u=sd(a,t,a,e);t[r+le]=u,so(t,u),Xv(u,e,t)}function M0(e,t,n,r,i,s,o,l,a,u,c){let d=n+le,f;return t.firstCreatePass?(f=Wr(t,d,4,o||null,l||null),Iu()&&ud(t,e,f,Dt(t.consts,u),$c),Yu(t,f)):f=t.data[d],O0(f,e,t,n,r,i,s,a),jr(f)&&po(t,e,f),u!=null&&go(e,f,c),f}function Gt(e,t,n,r,i,s,o,l){let a=T(),u=X(),c=Dt(u.consts,s);return M0(a,u,e,t,n,r,i,c,void 0,o,l),Gt}var P0=D0;function D0(e,t,n,r){return Js(!0),t[H].createComment("")}var A0=new C("");function Co(e){return!!e&&typeof e.then=="function"}function V0(e){return!!e&&typeof e.subscribe=="function"}var Td=new C(""),Id=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=b(Td,{optional:!0})??[];injector=b(Br);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let s=Us(this.injector,i);if(Co(s))n.push(s);else if(V0(s)){let o=new Promise((l,a)=>{s.subscribe({complete:l,error:a})});n.push(o)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(n){return new(n||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),N0=new C("");function R0(){Xh(()=>{let e="";throw new v(600,e)})}function F0(e){return e.isBoundToModule}var L0=10,yn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=b(Ge);afterRenderManager=b(my);zonelessEnabled=b(Xs);rootEffectScheduler=b(Eg);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new qe;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=b(Ut);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(fe(n=>!n))}constructor(){b(lo,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=b(Pe);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,i=Br.NULL){return this._injector.get(J).run(()=>{P(10);let s=n instanceof ld;if(!this._injector.get(Id).done){let f="";throw new v(405,f)}let o;s?o=n:o=this._injector.get(En).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let l=F0(o)?void 0:this._injector.get(ss),a=r||o.selector,u=o.create(i,[],a,l),c=u.location.nativeElement,d=u.injector.get(A0,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),er(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),P(11,u),u})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){P(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Fc.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new v(101,!1);let n=k(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,k(n),this.afterTick.next(),P(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(_o,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<L0;)P(14),this.synchronizeOnce(),P(15)}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:i}of this.allViews){if(!r&&!pn(i))continue;let s=r&&!this.zonelessEnabled?0:1;td(i,s),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})=>pn(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;er(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(r){this.internalErrorHandler(r)}this.components.push(n),this._injector.get(N0,[]).forEach(r=>r(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),()=>er(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new v(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function er(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Od(e,t,n,r){let i=T(),s=zr();if(Sn(i,s,t)){let o=X(),l=Qs();By(l,i,e,t,n,r)}return Od}var Bw=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function q(e,t,n){let r=T(),i=zr();if(Sn(r,i,t)){let s=X(),o=Qs();Fy(o,r,e,t,r[H],n)}return q}function Pl(e,t,n,r,i){mo(t,e,n,i?"class":"style",r)}function V(e,t,n,r){let i=T(),s=i[_],o=e+le,l=s.firstCreatePass?dd(o,i,2,t,$c,Iu(),n,r):s.data[o];if(Qc(l,i,e,t,Pd),jr(l)){let a=i[_];po(a,i,l),wc(a,l,i)}return r!=null&&go(i,l),V}function R(){let e=X(),t=ne(),n=Yc(t);return e.firstCreatePass&&hd(e,n),Ou(n)&&Mu(),Tu(),n.classesWithoutHost!=null&&Vg(n)&&Pl(e,n,T(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&Ng(n)&&Pl(e,n,T(),n.stylesWithoutHost,!1),R}function ge(e,t,n,r){return V(e,t,n,r),R(),ge}function xo(e,t,n,r){let i=T(),s=i[_],o=e+le,l=s.firstCreatePass?Dv(o,s,2,t,n,r):s.data[o];return Qc(l,i,e,t,Pd),r!=null&&go(i,l),xo}function ko(){let e=ne(),t=Yc(e);return Ou(t)&&Mu(),Tu(),ko}function Md(e,t,n,r){return xo(e,t,n,r),ko(),Md}var Pd=(e,t,n,r,i)=>(Js(!0),Oc(t[H],r,yg()));function j0(){return T()}function Dd(e,t,n){let r=T(),i=zr();if(Sn(r,i,t)){let s=X(),o=Qs();Wc(o,r,e,t,r[H],n)}return Dd}var Vn=void 0;function H0(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var z0=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Vn,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Vn,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Vn,"{1} 'at' {0}",Vn],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",H0],yi={};function ve(e){let t=B0(e),n=Dl(t);if(n)return n;let r=t.split("-")[0];if(n=Dl(r),n)return n;if(r==="en")return z0;throw new v(701,!1)}function Dl(e){return e in yi||(yi[e]=He.ng&&He.ng.common&&He.ng.common.locales&&He.ng.common.locales[e]),yi[e]}var B=(function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e})(B||{});function B0(e){return e.toLowerCase().replace(/_/g,"-")}var Ir="en-US",U0=Ir;function Z0(e){typeof e=="string"&&(U0=e.toLowerCase().replace(/_/g,"-"))}function _e(e,t,n){let r=T(),i=X(),s=ne();return q0(i,r,r[H],s,e,t,n),_e}function Ad(e,t,n){let r=T(),i=X(),s=ne();return(s.type&3||n)&&pd(s,i,r,n,r[H],e,t,Xn(s,r,t)),Ad}function q0(e,t,n,r,i,s,o){let l=!0,a=null;if((r.type&3||o)&&(a??=Xn(r,t,s),pd(r,e,t,o,n,i,s,a)&&(l=!1)),l){let u=r.outputs?.[i],c=r.hostDirectiveOutputs?.[i];if(c&&c.length)for(let d=0;d<c.length;d+=2){let f=c[d],h=c[d+1];a??=Xn(r,t,s),Tl(r,t,f,h,i,a)}if(u&&u.length)for(let d of u)a??=Xn(r,t,s),Tl(r,t,d,i,i,a)}}function at(e=1){return gg(e)}function G0(e,t,n){h0(e,t,n)}function W0(e){let t=T(),n=X(),r=Vu();Gs(r+1);let i=wo(n,r);if(e.dirty&&Yp(t)===((i.metadata.flags&2)===2)){if(i.matches===null)e.reset([]);else{let s=g0(t,r);e.reset(s,Qg),e.notifyOnChanges()}return!0}return!1}function $0(){return c0(T(),Vu())}function Nn(e,t){return e<<17|t<<2}function ut(e){return e>>17&32767}function Q0(e){return(e&2)==2}function Y0(e,t){return e&131071|t<<17}function os(e){return e|2}function Rt(e){return(e&131068)>>2}function vi(e,t){return e&-131069|t<<2}function J0(e){return(e&1)===1}function ls(e){return e|1}function K0(e,t,n,r,i,s){let o=s?t.classBindings:t.styleBindings,l=ut(o),a=Rt(o);e[r]=n;let u=!1,c;if(Array.isArray(n)){let d=n;c=d[1],(c===null||bn(d,c)>0)&&(u=!0)}else c=n;if(i)if(a!==0){let d=ut(e[l+1]);e[r+1]=Nn(d,l),d!==0&&(e[d+1]=vi(e[d+1],r)),e[l+1]=Y0(e[l+1],r)}else e[r+1]=Nn(l,0),l!==0&&(e[l+1]=vi(e[l+1],r)),l=r;else e[r+1]=Nn(a,0),l===0?l=r:e[a+1]=vi(e[a+1],r),a=r;u&&(e[r+1]=os(e[r+1])),Al(e,c,r,!0),Al(e,c,r,!1),X0(t,c,e,r,s),o=Nn(l,a),s?t.classBindings=o:t.styleBindings=o}function X0(e,t,n,r,i){let s=i?e.residualClasses:e.residualStyles;s!=null&&typeof t=="string"&&bn(s,t)>=0&&(n[r+1]=ls(n[r+1]))}function Al(e,t,n,r){let i=e[n+1],s=t===null,o=r?ut(i):Rt(i),l=!1;for(;o!==0&&(l===!1||s);){let a=e[o],u=e[o+1];e1(a,t)&&(l=!0,e[o+1]=r?ls(u):os(u)),o=r?ut(u):Rt(u)}l&&(e[n+1]=r?os(i):ls(i))}function e1(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?bn(e,t)>=0:!1}function Vd(e,t,n){return Nd(e,t,n,!1),Vd}function ct(e,t){return Nd(e,t,null,!0),ct}function Nd(e,t,n,r){let i=T(),s=X(),o=ug(2);if(s.firstUpdatePass&&n1(s,e,o,r),t!==ft&&Sn(i,o,t)){let l=s.data[Bt()];l1(s,l,i,i[H],e,i[o+1]=a1(t,n),r,o)}}function t1(e,t){return t>=e.expandoStartIndex}function n1(e,t,n,r){let i=e.data;if(i[n+1]===null){let s=i[Bt()],o=t1(e,n);u1(s,r)&&t===null&&!o&&(t=!1),t=r1(i,s,t,r),K0(i,s,t,n,o,r)}}function r1(e,t,n,r){let i=fg(e),s=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=bi(null,e,t,n,r),n=vn(n,t.attrs,r),s=null);else{let o=t.directiveStylingLast;if(o===-1||e[o]!==i)if(n=bi(i,e,t,n,r),s===null){let l=i1(e,t,r);l!==void 0&&Array.isArray(l)&&(l=bi(null,e,t,l[1],r),l=vn(l,t.attrs,r),s1(e,t,r,l))}else s=o1(e,t,r)}return s!==void 0&&(r?t.residualClasses=s:t.residualStyles=s),n}function i1(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Rt(r)!==0)return e[ut(r)]}function s1(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[ut(i)]=r}function o1(e,t,n){let r,i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<i;s++){let o=e[s].hostAttrs;r=vn(r,o,n)}return vn(r,t.attrs,n)}function bi(e,t,n,r,i){let s=null,o=n.directiveEnd,l=n.directiveStylingLast;for(l===-1?l=n.directiveStart:l++;l<o&&(s=t[l],r=vn(r,s.hostAttrs,i),s!==e);)l++;return e!==null&&(n.directiveStylingLast=l),r}function vn(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let s=0;s<t.length;s++){let o=t[s];typeof o=="number"?i=o:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Vp(e,o,n?!0:t[++s]))}return e===void 0?null:e}function l1(e,t,n,r,i,s,o,l){if(!(t.type&3))return;let a=e.data,u=a[l+1],c=J0(u)?Vl(a,t,n,i,Rt(u),o):void 0;if(!Or(c)){Or(s)||Q0(u)&&(s=Vl(a,null,n,i,l,o));let d=wu(Bt(),n);Dy(r,o,d,i,s)}}function Vl(e,t,n,r,i,s){let o=t===null,l;for(;i>0;){let a=e[i],u=Array.isArray(a),c=u?a[1]:a,d=c===null,f=n[i+1];f===ft&&(f=d?ie:void 0);let h=d?oi(f,r):c===r?f:void 0;if(u&&!Or(h)&&(h=oi(a,r)),Or(h)&&(l=h,o))return l;let p=e[i+1];i=o?ut(p):Rt(p)}if(t!==null){let a=s?t.residualClasses:t.residualStyles;a!=null&&(l=oi(a,r))}return l}function Or(e){return e!==void 0}function a1(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Tt(Qe(e)))),e}function u1(e,t){return(e.flags&(t?8:16))!==0}function Xe(e,t=""){let n=T(),r=X(),i=e+le,s=r.firstCreatePass?Wr(r,i,1,t,null):r.data[i],o=c1(r,n,s,t,e);n[i]=o,Ys()&&ho(r,n,o,s),_n(s,!1)}var c1=(e,t,n,r,i)=>(Js(!0),zm(t[H],r));function d1(e,t,n,r=""){return Sn(e,zr(),n)?t+Rr(n)+r:ft}function kt(e){return Eo("",e),kt}function Eo(e,t,n){let r=T(),i=d1(r,e,t,n);return i!==ft&&h1(r,Bt(),i),Eo}function h1(e,t,n){let r=wu(t,e);Bm(e[H],r,n)}function f1(e,t,n){let r=X();if(r.firstCreatePass){let i=Ve(e);as(n,r.data,r.blueprint,i,!0),as(t,r.data,r.blueprint,i,!1)}}function as(e,t,n,r,i){if(e=Y(e),Array.isArray(e))for(let s=0;s<e.length;s++)as(e[s],t,n,r,i);else{let s=X(),o=T(),l=ne(),a=Mt(e)?e:Y(e.provide),u=mu(e),c=l.providerIndexes&1048575,d=l.directiveStart,f=l.providerIndexes>>20;if(Mt(e)||!e.multi){let h=new xn(u,i,A,null),p=wi(a,t,i?c:c+f,d);p===-1?(Gi(Cr(l,o),s,a),_i(s,e,t.length),t.push(a),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(h),o.push(h)):(n[p]=h,o[p]=h)}else{let h=wi(a,t,c+f,d),p=wi(a,t,c,c+f),g=h>=0&&n[h],m=p>=0&&n[p];if(i&&!m||!i&&!g){Gi(Cr(l,o),s,a);let S=m1(i?g1:p1,n.length,i,r,u,e);!i&&m&&(n[p].providerFactory=S),_i(s,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(S),o.push(S)}else{let S=Rd(n[i?p:h],u,!i&&r);_i(s,e,h>-1?h:p,S)}!i&&r&&m&&n[p].componentProviders++}}}function _i(e,t,n,r){let i=Mt(t),s=Bp(t);if(i||s){let o=(s?Y(t.useClass):t).prototype.ngOnDestroy;if(o){let l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let a=l.indexOf(n);a===-1?l.push(n,[r,o]):l[a+1].push(r,o)}else l.push(n,o)}}}function Rd(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function wi(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function p1(e,t,n,r,i){return us(this.multi,[])}function g1(e,t,n,r,i){let s=this.multi,o;if(this.providerFactory){let l=this.providerFactory.componentProviders,a=gn(r,r[_],this.providerFactory.index,i);o=a.slice(0,l),us(s,o);for(let u=l;u<a.length;u++)o.push(a[u])}else o=[],us(s,o);return o}function us(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function m1(e,t,n,r,i,s){let o=new xn(e,n,A,null);return o.multi=[],o.index=t,o.componentProviders=0,Rd(o,i,r&&!n),o}function Fd(e,t=[]){return n=>{n.providersResolver=(r,i)=>f1(r,i?i(e):e,t)}}var y1=(()=>{class e{zone=b(J);changeDetectionScheduler=b(Cn);applicationRef=b(yn);applicationErrorHandler=b(Ge);_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(n){return new(n||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),v1=new C("",{factory:()=>!1});function Ld({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new J(Q(z({},jd()),{scheduleInRootZone:n})),[{provide:J,useFactory:e},{provide:Ot,multi:!0,useFactory:()=>{let r=b(y1,{optional:!0});return()=>r.initialize()}},{provide:Ot,multi:!0,useFactory:()=>{let r=b(_1);return()=>{r.initialize()}}},t===!0?{provide:Bu,useValue:!0}:[],{provide:Uu,useValue:n??jc},{provide:Ge,useFactory:()=>{let r=b(J),i=b(Pe),s;return o=>{r.runOutsideAngular(()=>{i.destroyed&&!s?setTimeout(()=>{throw o}):(s??=i.get(wn),s.handleError(o))})}}}]}function b1(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=Ld({ngZoneFactory:()=>{let i=jd(e);return i.scheduleInRootZone=n,i.shouldCoalesceEventChangeDetection&&Lc("NgZone_CoalesceEvent"),new J(i)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return Fr([{provide:v1,useValue:!0},{provide:Xs,useValue:!1},r])}function jd(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var _1=(()=>{class e{subscription=new we;initialized=!1;zone=b(J);pendingTasks=b(Ut);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(()=>{J.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{J.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),w1=(()=>{class e{applicationErrorHandler=b(Ge);appRef=b(yn);taskService=b(Ut);ngZone=b(J);zonelessEnabled=b(Xs);tracing=b(lo,{optional:!0});disableScheduling=b(Bu,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new we;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Er):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(b(Uu,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof fy||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;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,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let i=this.useMicrotaskScheduler?gl:Hc;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Er+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.taskService.remove(n),this.applicationErrorHandler(r)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,gl(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}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(n){return new(n||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function C1(){return typeof $localize<"u"&&$localize.locale||Ir}var So=new C("",{providedIn:"root",factory:()=>b(So,{optional:!0,skipSelf:!0})||C1()});function mt(e){return dp(e)}function Ci(e,t){return Yh(e,t?.equal)}var Uw=class{[Me];constructor(e){this[Me]=e}destroy(){this[Me].destroy()}},x1=new C("");x1.__NG_ELEMENT_ID__=e=>{let t=ne();if(t===null)throw new v(204,!1);if(t.type&2)return t.value;if(e&8)return null;throw new v(204,!1)};var cs=new C(""),k1=new C("");function Qt(e){return!e.moduleRef}function E1(e){let t=Qt(e)?e.r3Injector:e.moduleRef.injector,n=t.get(J);return n.run(()=>{Qt(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Ge),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:r})}),Qt(e)){let s=()=>t.destroy(),o=e.platformInjector.get(cs);o.add(s),t.onDestroy(()=>{i.unsubscribe(),o.delete(s)})}else{let s=()=>e.moduleRef.destroy(),o=e.platformInjector.get(cs);o.add(s),e.moduleRef.onDestroy(()=>{er(e.allPlatformModules,e.moduleRef),i.unsubscribe(),o.delete(s)})}return T1(r,n,()=>{let s=t.get(Ut),o=s.add(),l=t.get(Id);return l.runInitializers(),l.donePromise.then(()=>{let a=t.get(So,Ir);if(Z0(a||Ir),!t.get(k1,!0))return Qt(e)?t.get(yn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Qt(e)){let u=t.get(yn);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return S1?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{s.remove(o)})})})}var S1;function T1(e,t,n){try{let r=n();return Co(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var tr=null;function I1(e=[],t){return Br.create({name:t,providers:[{provide:Hs,useValue:"platform"},{provide:cs,useValue:new Set([()=>tr=null])},...e]})}function O1(e=[]){if(tr)return tr;let t=I1(e);return tr=t,R0(),M1(t),t}function M1(e){let t=e.get(gc,null);Us(e,()=>{t?.forEach(n=>n())})}var P1=(()=>{class e{static __NG_ELEMENT_ID__=D1}return e})();function D1(e){return A1(ne(),T(),(e&16)===16)}function A1(e,t,n){if(Ht(e)&&!n){let r=ke(e.index,t);return new mn(r,r)}else if(e.type&175){let r=t[Ce];return new mn(r,t)}return null}var V1=class{constructor(){}supports(e){return fd(e)}create(e){return new R1(e)}},N1=(e,t)=>t,R1=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(e){this._trackByFn=e||N1}forEachItem(e){let t;for(t=this._itHead;t!==null;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,i=null;for(;t||n;){let s=!n||t&&t.currentIndex<Rl(n,r,i)?t:n,o=Rl(s,r,i),l=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(t=t._next,s.previousIndex==null)r++;else{i||(i=[]);let a=o-r,u=l-r;if(a!=u){for(let d=0;d<a;d++){let f=d<i.length?i[d]:i[d]=0,h=f+d;u<=h&&h<a&&(i[d]=f+1)}let c=s.previousIndex;i[c]=u-a}}o!==l&&e(s,o,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;t!==null;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;t!==null;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;t!==null;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;t!==null;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;t!==null;t=t._nextIdentityChange)e(t)}diff(e){if(e==null&&(e=[]),!fd(e))throw new v(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._itHead,n=!1,r,i,s;if(Array.isArray(e)){this.length=e.length;for(let o=0;o<this.length;o++)i=e[o],s=this._trackByFn(o,i),t===null||!Object.is(t.trackById,s)?(t=this._mismatch(t,i,s,o),n=!0):(n&&(t=this._verifyReinsertion(t,i,s,o)),Object.is(t.item,i)||this._addIdentityChange(t,i)),t=t._next}else r=0,Av(e,o=>{s=this._trackByFn(r,o),t===null||!Object.is(t.trackById,s)?(t=this._mismatch(t,o,s,r),n=!0):(n&&(t=this._verifyReinsertion(t,o,s,r)),Object.is(t.item,o)||this._addIdentityChange(t,o)),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let i;return e===null?i=this._itTail:(i=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,r),e!==null?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):e=this._addAfter(new F1(t,n),i,r)),e}_verifyReinsertion(e,t,n,r){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return i!==null?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;e!==null;){let t=e._next;this._addToRemovals(this._unlink(e)),e=t}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let r=e._prevRemoved,i=e._nextRemoved;return r===null?this._removalsHead=i:r._nextRemoved=i,i===null?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){let r=t===null?this._itHead:t._next;return e._next=r,e._prev=t,r===null?this._itTail=e:r._prev=e,t===null?this._itHead=e:t._next=e,this._linkedRecords===null&&(this._linkedRecords=new Nl),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let t=e._prev,n=e._next;return t===null?this._itHead=n:t._next=n,n===null?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Nl),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},F1=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(e,t){this.item=e,this.trackById=t}},L1=class{_head=null;_tail=null;add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;n!==null;n=n._nextDup)if((t===null||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let t=e._prevDup,n=e._nextDup;return t===null?this._head=n:t._nextDup=n,n===null?this._tail=t:n._prevDup=t,this._head===null}},Nl=class{map=new Map;put(e){let t=e.trackById,n=this.map.get(t);n||(n=new L1,this.map.set(t,n)),n.add(e)}get(e,t){let n=e,r=this.map.get(n);return r?r.get(e,t):null}remove(e){let t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Rl(e,t,n){let r=e.previousIndex;if(r===null)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}function Fl(){return new Hd([new V1])}var Hd=(()=>{class e{factories;static \u0275prov=E({token:e,providedIn:"root",factory:Fl});constructor(n){this.factories=n}static create(n,r){if(r!=null){let i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:()=>{let r=b(e,{optional:!0,skipSelf:!0});return e.create(n,r||Fl())}}}find(n){let r=this.factories.find(i=>i.supports(n));if(r!=null)return r;throw new v(901,!1)}}return e})();function j1(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:i}=e;P(8);try{let s=i?.injector??O1(r),o=[Ld({}),{provide:Cn,useExisting:w1},wg,...n||[]],l=new kd({providers:o,parent:s,debugName:"",runEnvironmentInitializers:!1});return E1({r3Injector:l.injector,platformInjector:s,rootComponent:t})}catch(s){return Promise.reject(s)}finally{P(9)}}function H1(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var z1={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function B1(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function U1(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var xi;function Z1(e,t){if(!xi){let n=Element.prototype;xi=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?xi.call(e,t):!1}function q1(e){let t={};return e.forEach(({propName:n,templateName:r,transform:i})=>{t[B1(r)]=[n,i]}),t}function G1(e,t){return t.get(En).resolveComponentFactory(e).inputs}function W1(e,t){let n=e.childNodes,r=t.map(()=>[]),i=-1;t.some((s,o)=>s==="*"?(i=o,!0):!1);for(let s=0,o=n.length;s<o;++s){let l=n[s],a=$1(l,t,i);a!==-1&&r[a].push(l)}return r}function $1(e,t,n){let r=n;return U1(e)&&t.some((i,s)=>i!=="*"&&Z1(e,i)?(r=s,!0):!1),r}var Q1=10,Y1=class{componentFactory;inputMap=new Map;constructor(e,t){this.componentFactory=t.get(En).resolveComponentFactory(e);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(e){return new J1(this.componentFactory,e,this.inputMap)}},J1=class{componentFactory;injector;inputMap;eventEmitters=new Ma(1);events=this.eventEmitters.pipe(Ka(e=>ap(...e)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(e,t,n){this.componentFactory=e,this.injector=t,this.inputMap=n,this.ngZone=this.injector.get(J),this.appRef=this.injector.get(yn),this.cdScheduler=t.get(Cn),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=z1.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},Q1))})}getInputValue(e){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){if(this.componentRef===null){this.initialInputValues.set(e,t);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(e)??e,t),dv(this.componentRef.hostView)&&(hv(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(e){let t=Br.create({providers:[],parent:this.injector}),n=W1(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[e,t]of this.initialInputValues)this.setInputValue(e,t);this.initialInputValues.clear()}initializeOutputs(e){let t=this.componentFactory.outputs.map(({propName:n,templateName:r})=>{let i=e.instance[n];return new U(s=>{let o=i.subscribe(l=>s.next({name:r,value:l}));return()=>o.unsubscribe()})});this.eventEmitters.next(t)}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}},K1=class extends HTMLElement{ngElementEventsSubscription=null};function X1(e,t){let n=G1(e,t.injector),r=t.strategyFactory||new Y1(e,t.injector),i=q1(n);class s extends K1{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let l=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:a,transform:u})=>{if(!this.hasOwnProperty(a))return;let c=this[a];delete this[a],l.setInputValue(a,c,u)})}return this._ngElementStrategy}_ngElementStrategy;constructor(l){super(),this.injector=l}attributeChangedCallback(l,a,u,c){let[d,f]=i[l];this.ngElementStrategy.setInputValue(d,u,f)}connectedCallback(){let l=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),l=!0),this.ngElementStrategy.connect(this),l||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(l=>{let a=new CustomEvent(l.name,{detail:l.value});this.dispatchEvent(a)})}}return n.forEach(({propName:o,transform:l})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a,l)},configurable:!0,enumerable:!0})}),s}var zd=null;function Mr(){return zd}function eb(e){zd??=e}var tb=class{},$=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})($||{}),I=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(I||{}),ee=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(ee||{}),ze={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function nb(e){return ve(e)[B.LocaleId]}function rb(e,t,n){let r=ve(e),i=[r[B.DayPeriodsFormat],r[B.DayPeriodsStandalone]],s=ae(i,t);return ae(s,n)}function ib(e,t,n){let r=ve(e),i=[r[B.DaysFormat],r[B.DaysStandalone]],s=ae(i,t);return ae(s,n)}function sb(e,t,n){let r=ve(e),i=[r[B.MonthsFormat],r[B.MonthsStandalone]],s=ae(i,t);return ae(s,n)}function ob(e,t){let n=ve(e)[B.Eras];return ae(n,t)}function Rn(e,t){let n=ve(e);return ae(n[B.DateFormat],t)}function Fn(e,t){let n=ve(e);return ae(n[B.TimeFormat],t)}function Ln(e,t){let n=ve(e)[B.DateTimeFormat];return ae(n,t)}function Qr(e,t){let n=ve(e),r=n[B.NumberSymbols][t];if(typeof r>"u"){if(t===ze.CurrencyDecimal)return n[B.NumberSymbols][ze.Decimal];if(t===ze.CurrencyGroup)return n[B.NumberSymbols][ze.Group]}return r}function Bd(e){if(!e[B.ExtraData])throw new v(2303,!1)}function lb(e){let t=ve(e);return Bd(t),(t[B.ExtraData][2]||[]).map(n=>typeof n=="string"?ki(n):[ki(n[0]),ki(n[1])])}function ab(e,t,n){let r=ve(e);Bd(r);let i=[r[B.ExtraData][0],r[B.ExtraData][1]],s=ae(i,t)||[];return ae(s,n)||[]}function ae(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new v(2304,!1)}function ki(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var ub=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,jn={},cb=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function db(e,t,n,r){let i=_b(e);t=Te(n,t)||t;let s=[],o;for(;t;)if(o=cb.exec(t),o){s=s.concat(o.slice(1));let u=s.pop();if(!u)break;t=u}else{s.push(t);break}let l=i.getTimezoneOffset();r&&(l=Zd(r,l),i=bb(i,r));let a="";return s.forEach(u=>{let c=yb(u);a+=c?c(i,n,l):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),a}function Pr(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Te(e,t){let n=nb(e);if(jn[n]??={},jn[n][t])return jn[n][t];let r="";switch(t){case"shortDate":r=Rn(e,ee.Short);break;case"mediumDate":r=Rn(e,ee.Medium);break;case"longDate":r=Rn(e,ee.Long);break;case"fullDate":r=Rn(e,ee.Full);break;case"shortTime":r=Fn(e,ee.Short);break;case"mediumTime":r=Fn(e,ee.Medium);break;case"longTime":r=Fn(e,ee.Long);break;case"fullTime":r=Fn(e,ee.Full);break;case"short":let i=Te(e,"shortTime"),s=Te(e,"shortDate");r=Hn(Ln(e,ee.Short),[i,s]);break;case"medium":let o=Te(e,"mediumTime"),l=Te(e,"mediumDate");r=Hn(Ln(e,ee.Medium),[o,l]);break;case"long":let a=Te(e,"longTime"),u=Te(e,"longDate");r=Hn(Ln(e,ee.Long),[a,u]);break;case"full":let c=Te(e,"fullTime"),d=Te(e,"fullDate");r=Hn(Ln(e,ee.Full),[c,d]);break}return r&&(jn[n][t]=r),r}function Hn(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function he(e,t,n="-",r,i){let s="";(e<0||i&&e<=0)&&(i?e=-e+1:(e=-e,s=n));let o=String(e);for(;o.length<t;)o="0"+o;return r&&(o=o.slice(o.length-t)),s+o}function hb(e,t){return he(e,3).substring(0,t)}function L(e,t,n=0,r=!1,i=!1){return function(s,o){let l=fb(e,s);if((n>0||l>-n)&&(l+=n),e===3)l===0&&n===-12&&(l=12);else if(e===6)return hb(l,t);let a=Qr(o,ze.MinusSign);return he(l,t,a,r,i)}}function fb(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new v(2301,!1)}}function M(e,t,n=$.Format,r=!1){return function(i,s){return pb(i,s,e,t,n,r)}}function pb(e,t,n,r,i,s){switch(n){case 2:return sb(t,i,r)[e.getMonth()];case 1:return ib(t,i,r)[e.getDay()];case 0:let o=e.getHours(),l=e.getMinutes();if(s){let u=lb(t),c=ab(t,i,r),d=u.findIndex(f=>{if(Array.isArray(f)){let[h,p]=f,g=o>=h.hours&&l>=h.minutes,m=o<p.hours||o===p.hours&&l<p.minutes;if(h.hours<p.hours){if(g&&m)return!0}else if(g||m)return!0}else if(f.hours===o&&f.minutes===l)return!0;return!1});if(d!==-1)return c[d]}return rb(t,i,r)[o<12?0:1];case 3:return ob(t,r)[e.getFullYear()<=0?0:1];default:let a=n;throw new v(2302,!1)}}function zn(e){return function(t,n,r){let i=-1*r,s=Qr(n,ze.MinusSign),o=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case 0:return(i>=0?"+":"")+he(o,2,s)+he(Math.abs(i%60),2,s);case 1:return"GMT"+(i>=0?"+":"")+he(o,1,s);case 2:return"GMT"+(i>=0?"+":"")+he(o,2,s)+":"+he(Math.abs(i%60),2,s);case 3:return r===0?"Z":(i>=0?"+":"")+he(o,2,s)+":"+he(Math.abs(i%60),2,s);default:throw new v(2310,!1)}}}var gb=0,nr=4;function mb(e){let t=Pr(e,gb,1).getDay();return Pr(e,0,1+(t<=nr?nr:nr+7)-t)}function Ud(e){let t=e.getDay(),n=t===0?-3:nr-t;return Pr(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Ei(e,t=!1){return function(n,r){let i;if(t){let s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,o=n.getDate();i=1+Math.floor((o+s)/7)}else{let s=Ud(n),o=mb(s.getFullYear()),l=s.getTime()-o.getTime();i=1+Math.round(l/6048e5)}return he(i,e,Qr(r,ze.MinusSign))}}function Bn(e,t=!1){return function(n,r){let i=Ud(n).getFullYear();return he(i,e,Qr(r,ze.MinusSign),t)}}var Si={};function yb(e){if(Si[e])return Si[e];let t;switch(e){case"G":case"GG":case"GGG":t=M(3,I.Abbreviated);break;case"GGGG":t=M(3,I.Wide);break;case"GGGGG":t=M(3,I.Narrow);break;case"y":t=L(0,1,0,!1,!0);break;case"yy":t=L(0,2,0,!0,!0);break;case"yyy":t=L(0,3,0,!1,!0);break;case"yyyy":t=L(0,4,0,!1,!0);break;case"Y":t=Bn(1);break;case"YY":t=Bn(2,!0);break;case"YYY":t=Bn(3);break;case"YYYY":t=Bn(4);break;case"M":case"L":t=L(1,1,1);break;case"MM":case"LL":t=L(1,2,1);break;case"MMM":t=M(2,I.Abbreviated);break;case"MMMM":t=M(2,I.Wide);break;case"MMMMM":t=M(2,I.Narrow);break;case"LLL":t=M(2,I.Abbreviated,$.Standalone);break;case"LLLL":t=M(2,I.Wide,$.Standalone);break;case"LLLLL":t=M(2,I.Narrow,$.Standalone);break;case"w":t=Ei(1);break;case"ww":t=Ei(2);break;case"W":t=Ei(1,!0);break;case"d":t=L(2,1);break;case"dd":t=L(2,2);break;case"c":case"cc":t=L(7,1);break;case"ccc":t=M(1,I.Abbreviated,$.Standalone);break;case"cccc":t=M(1,I.Wide,$.Standalone);break;case"ccccc":t=M(1,I.Narrow,$.Standalone);break;case"cccccc":t=M(1,I.Short,$.Standalone);break;case"E":case"EE":case"EEE":t=M(1,I.Abbreviated);break;case"EEEE":t=M(1,I.Wide);break;case"EEEEE":t=M(1,I.Narrow);break;case"EEEEEE":t=M(1,I.Short);break;case"a":case"aa":case"aaa":t=M(0,I.Abbreviated);break;case"aaaa":t=M(0,I.Wide);break;case"aaaaa":t=M(0,I.Narrow);break;case"b":case"bb":case"bbb":t=M(0,I.Abbreviated,$.Standalone,!0);break;case"bbbb":t=M(0,I.Wide,$.Standalone,!0);break;case"bbbbb":t=M(0,I.Narrow,$.Standalone,!0);break;case"B":case"BB":case"BBB":t=M(0,I.Abbreviated,$.Format,!0);break;case"BBBB":t=M(0,I.Wide,$.Format,!0);break;case"BBBBB":t=M(0,I.Narrow,$.Format,!0);break;case"h":t=L(3,1,-12);break;case"hh":t=L(3,2,-12);break;case"H":t=L(3,1);break;case"HH":t=L(3,2);break;case"m":t=L(4,1);break;case"mm":t=L(4,2);break;case"s":t=L(5,1);break;case"ss":t=L(5,2);break;case"S":t=L(6,1);break;case"SS":t=L(6,2);break;case"SSS":t=L(6,3);break;case"Z":case"ZZ":case"ZZZ":t=zn(0);break;case"ZZZZZ":t=zn(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=zn(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=zn(2);break;default:return null}return Si[e]=t,t}function Zd(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function vb(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function bb(e,t,n){let r=e.getTimezoneOffset(),i=Zd(t,r);return vb(e,-1*(i-r))}function _b(e){if(Ll(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[i,s=1,o=1]=e.split("-").map(l=>+l);return Pr(i,s-1,o)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(ub))return wb(r)}let t=new Date(e);if(!Ll(t))throw new v(2311,!1);return t}function wb(e){let t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,s=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let o=Number(e[4]||0)-n,l=Number(e[5]||0)-r,a=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return s.call(t,o,l,a,u),t}function Ll(e){return e instanceof Date&&!isNaN(e.valueOf())}var Cb=class{$implicit;ngForOf;index;count;constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},qd=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,i){this._viewContainer=n,this._template=r,this._differs=i}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((i,s,o)=>{if(i.previousIndex==null)r.createEmbeddedView(this._template,new Cb(i.item,this._ngForOf,-1,-1),o===null?void 0:o);else if(o==null)r.remove(s===null?void 0:s);else if(s!==null){let l=r.get(s);r.move(l,o),jl(l,i)}});for(let i=0,s=r.length;i<s;i++){let o=r.get(i).context;o.index=i,o.count=s,o.ngForOf=this._ngForOf}n.forEachIdentityChange(i=>{let s=r.get(i.currentIndex);jl(s,i)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(n){return new(n||e)(A(Tn),A(Nt),A(Hd))};static \u0275dir=gt({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function jl(e,t){e.context.$implicit=t.item}var To=(()=>{class e{_viewContainer;_context=new xb;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Hl(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Hl(n,!1),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(n){return new(n||e)(A(Tn),A(Nt))};static \u0275dir=gt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),xb=class{$implicit=null;ngIf=null};function Hl(e,t){if(e&&!e.createEmbeddedView)throw new v(2020,!1)}function kb(e,t){return new v(2100,!1)}var Eb="mediumDate",Sb=new C(""),Tb=new C(""),Gd=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,i){this.locale=n,this.defaultTimezone=r,this.defaultOptions=i}transform(n,r,i,s){if(n==null||n===""||n!==n)return null;try{let o=r??this.defaultOptions?.dateFormat??Eb,l=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return db(n,o,s||this.locale,l)}catch(o){throw kb(e,o.message)}}static \u0275fac=function(n){return new(n||e)(A(So,16),A(Sb,24),A(Tb,24))};static \u0275pipe=w0({name:"date",type:e,pure:!0})}return e})(),We=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=$r({type:e});static \u0275inj=Nr({})}return e})();function Wd(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,s]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(s)}return null}var $d=class{},Qd="browser";function Ib(e){return e===Qd}var Yd=class{_doc;constructor(e){this._doc=e}manager},ds=(()=>{class e extends Yd{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,s){return n.addEventListener(r,i,s),()=>this.removeEventListener(n,r,i,s)}removeEventListener(n,r,i,s){return n.removeEventListener(r,i,s)}static \u0275fac=function(n){return new(n||e)(y(Ee))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),hs=new C(""),Jd=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this});let i=n.filter(o=>!(o instanceof ds));this._plugins=i.slice().reverse();let s=n.find(o=>o instanceof ds);s&&this._plugins.push(s)}addEventListener(n,r,i,s){return this._findPluginFor(r).addEventListener(n,r,i,s)}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 v(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(n){return new(n||e)(y(hs),y(J))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),Ti="ng-app-id";function zl(e){for(let t of e)t.remove()}function Bl(e,t){let n=t.createElement("style");return n.textContent=e,n}function Ob(e,t,n,r){let i=e.head?.querySelectorAll(`style[${Ti}="${t}"],link[${Ti}="${t}"]`);if(i)for(let s of i)s.removeAttribute(Ti),s instanceof HTMLLinkElement?r.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&n.set(s.textContent,{usage:0,elements:[s]})}function fs(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Kd=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,i,s={}){this.doc=n,this.appId=r,this.nonce=i,Ob(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,Bl);r?.forEach(i=>this.addUsage(i,this.external,fs))}removeStyles(n,r){for(let i of n)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(n,r,i){let s=r.get(n);s?s.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(o=>this.addElement(o,i(n,this.doc)))})}removeUsage(n,r){let i=r.get(n);i&&(i.usage--,i.usage<=0&&(zl(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])zl(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,Bl(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,fs(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(n){return new(n||e)(y(Ee),y(pc),y(mc,8),y(to))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),Ii={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"},Io=/%COMP%/g,Xd="%COMP%",Mb=`_nghost-${Xd}`,Pb=`_ngcontent-${Xd}`,Db=!0,Ab=new C("",{providedIn:"root",factory:()=>Db});function Vb(e){return Pb.replace(Io,e)}function Nb(e){return Mb.replace(Io,e)}function eh(e,t){return t.map(n=>n.replace(Io,e))}var Ul=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,s,o,l,a=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=o,this.ngZone=l,this.nonce=a,this.tracingService=u,this.platformIsServer=!1,this.defaultRenderer=new Oo(n,o,l,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let i=this.getOrCreateRenderer(n,r);return i instanceof ql?i.applyToHost(n):i instanceof ps&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,s=i.get(r.id);if(!s){let o=this.doc,l=this.ngZone,a=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,d=this.platformIsServer,f=this.tracingService;switch(r.encapsulation){case lt.Emulated:s=new ql(a,u,r,this.appId,c,o,l,d,f);break;case lt.ShadowDom:return new Rb(a,u,n,r,o,l,this.nonce,d,f);default:s=new ps(a,u,r,c,o,l,d,f);break}i.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(n){return new(n||e)(y(Jd),y(Kd),y(pc),y(Ab),y(Ee),y(J),y(mc),y(lo,8))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),Oo=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,n,r,i){this.eventManager=e,this.doc=t,this.ngZone=n,this.platformIsServer=r,this.tracingService=i}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS(Ii[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(Zl(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(Zl(e)?e.content:e).insertBefore(t,n)}removeChild(e,t){t.remove()}selectRootElement(e,t){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new v(-5104,!1);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;let i=Ii[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=Ii[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(Je.DashCase|Je.Important)?e.style.setProperty(t,n,r&Je.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&Je.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e!=null&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n,r){if(typeof e=="string"&&(e=Mr().getGlobalEventTarget(this.doc,e),!e))throw new v(5102,!1);let i=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,t,i)),this.eventManager.addEventListener(e,t,i,r)}decoratePreventDefault(e){return t=>{if(t==="__ngUnwrap__")return e;e(t)===!1&&t.preventDefault()}}};function Zl(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Rb=class extends Oo{sharedStylesHost;hostEl;shadowRoot;constructor(e,t,n,r,i,s,o,l,a){super(e,i,s,l,a),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=eh(r.id,u);for(let d of u){let f=document.createElement("style");o&&f.setAttribute("nonce",o),f.textContent=d,this.shadowRoot.appendChild(f)}let c=r.getExternalStyles?.();if(c)for(let d of c){let f=fs(d,i);o&&f.setAttribute("nonce",o),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},ps=class extends Oo{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,r,i,s,o,l,a){super(e,i,s,o,l),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let u=n.styles;this.styles=a?eh(a,u):u,this.styleUrls=n.getExternalStyles?.(a)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&kr.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ql=class extends ps{contentAttr;hostAttr;constructor(e,t,n,r,i,s,o,l,a){let u=r+"-"+n.id;super(e,t,n,i,s,o,l,a,u),this.contentAttr=Vb(u),this.hostAttr=Nb(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){let n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}},Fb=class th extends tb{supportsDOMEvents=!0;static makeCurrent(){eb(new th)}onAndCancel(t,n,r,i){return t.addEventListener(n,r,i),()=>{t.removeEventListener(n,r,i)}}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=Lb();return n==null?null:jb(n)}resetBaseElement(){en=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Wd(document.cookie,t)}},en=null;function Lb(){return en=en||document.head.querySelector("base"),en?en.getAttribute("href"):null}function jb(e){return new URL(e,document.baseURI).pathname}var Hb=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||e)};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),Gl=["alt","control","meta","shift"],zb={"\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"},Bb={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Ub=(()=>{class e extends Yd{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i,s){let o=e.parseEventName(r),l=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Mr().onAndCancel(n,o.domEventName,l,s))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let s=e._normalizeKey(r.pop()),o="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),o="code."),Gl.forEach(u=>{let c=r.indexOf(u);c>-1&&(r.splice(c,1),o+=u+".")}),o+=s,r.length!=0||s.length===0)return null;let a={};return a.domEventName=i,a.fullKey=o,a}static matchEventFullKeyCode(n,r){let i=zb[n.key]||n.key,s="";return r.indexOf("code.")>-1&&(i=n.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Gl.forEach(o=>{if(o!==i){let l=Bb[o];l(n)&&(s+=o+".")}}),s+=i,s===r)}static eventCallback(n,r,i){return s=>{e.matchEventFullKeyCode(s,n)&&i.runGuarded(()=>r(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(n){return new(n||e)(y(Ee))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})();function Zb(e){return j1(qb(e))}function qb(e){return{appProviders:[...Yb,...e?.providers??[]],platformProviders:Qb}}function Gb(){Fb.makeCurrent()}function Wb(){return new wn}function $b(){return tm(document),document}var Qb=[{provide:to,useValue:Qd},{provide:gc,useValue:Gb,multi:!0},{provide:Ee,useFactory:$b}],Yb=[{provide:Hs,useValue:"root"},{provide:wn,useFactory:Wb},{provide:hs,useClass:ds,multi:!0,deps:[Ee]},{provide:hs,useClass:Ub,multi:!0,deps:[Ee]},Ul,Kd,Jd,{provide:_o,useExisting:Ul},{provide:$d,useClass:Hb},[]],Mo=class{},Yr=class{},Ft=class rr{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 i=n.slice(0,r),s=n.slice(r+1).trim();this.addHeaderEntry(i,s)}})}: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 rr?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 rr;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof rr?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 i=(t.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let s=t.value;if(!s)this.headers.delete(n),this.normalizedNames.delete(n);else{let o=this.headers.get(n);if(!o)return;o=o.filter(l=>s.indexOf(l)===-1),o.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,o)}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(s=>s.toString()),i=t.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}},Jb=class{encodeKey(e){return Wl(e)}encodeValue(e){return Wl(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Kb(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(r=>{let i=r.indexOf("="),[s,o]=i==-1?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,i)),t.decodeValue(r.slice(i+1))],l=n.get(s)||[];l.push(o),n.set(s,l)}),n}var Xb=/%(\d[a-f0-9])/gi,e_={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Wl(e){return encodeURIComponent(e).replace(Xb,(t,n)=>e_[n]??t)}function Un(e){return`${e}`}var et=class nh{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Jb,t.fromString){if(t.fromObject)throw new v(2805,!1);this.map=Kb(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],i=Array.isArray(r)?r.map(Un):[Un(r)];this.map.set(n,i)})):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 i=t[r];Array.isArray(i)?i.forEach(s=>{n.push({param:r,value:s,op:"a"})}):n.push({param:r,value:i,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 nh({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(Un(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],i=r.indexOf(Un(t.value));i!==-1&&r.splice(i,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)}},t_=class{map=new Map;set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function n_(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function $l(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Ql(e){return typeof Blob<"u"&&e instanceof Blob}function Yl(e){return typeof FormData<"u"&&e instanceof FormData}function r_(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Jl="Content-Type",Kl="Accept",rh="X-Request-URL",ih="text/plain",sh="application/json",i_=`${sh}, ${ih}, */*`,rn=class oh{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,i){this.url=n,this.method=t.toUpperCase();let s;if(n_(this.method)||i?(this.body=r!==void 0?r:null,s=i):s=r,s){if(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,this.keepalive=!!s.keepalive,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),s.priority&&(this.priority=s.priority),s.cache&&(this.cache=s.cache),s.credentials&&(this.credentials=s.credentials),typeof s.timeout=="number"){if(s.timeout<1||!Number.isInteger(s.timeout))throw new v(2822,"");this.timeout=s.timeout}s.mode&&(this.mode=s.mode),s.redirect&&(this.redirect=s.redirect),s.integrity&&(this.integrity=s.integrity),s.referrer&&(this.referrer=s.referrer),this.transferCache=s.transferCache}if(this.headers??=new Ft,this.context??=new t_,!this.params)this.params=new et,this.urlWithParams=n;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=n;else{let l=n.indexOf("?"),a=l===-1?"?":l<n.length-1?"&":"";this.urlWithParams=n+a+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||$l(this.body)||Ql(this.body)||Yl(this.body)||r_(this.body)?this.body:this.body instanceof et?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||Yl(this.body)?null:Ql(this.body)?this.body.type||null:$l(this.body)?null:typeof this.body=="string"?ih:this.body instanceof et?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?sh:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,s=t.keepalive??this.keepalive,o=t.priority||this.priority,l=t.cache||this.cache,a=t.mode||this.mode,u=t.redirect||this.redirect,c=t.credentials||this.credentials,d=t.referrer||this.referrer,f=t.integrity||this.integrity,h=t.transferCache??this.transferCache,p=t.timeout??this.timeout,g=t.body!==void 0?t.body:this.body,m=t.withCredentials??this.withCredentials,S=t.reportProgress??this.reportProgress,ce=t.headers||this.headers,Z=t.params||this.params,Wt=t.context??this.context;return t.setHeaders!==void 0&&(ce=Object.keys(t.setHeaders).reduce(($t,$e)=>$t.set($e,t.setHeaders[$e]),ce)),t.setParams&&(Z=Object.keys(t.setParams).reduce(($t,$e)=>$t.set($e,t.setParams[$e]),Z)),new oh(n,r,g,{params:Z,headers:ce,context:Wt,reportProgress:S,responseType:i,withCredentials:m,transferCache:h,keepalive:s,cache:l,priority:o,timeout:p,mode:a,redirect:u,credentials:c,referrer:d,integrity:f})}},Et=(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})(Et||{}),Po=class{headers;status;statusText;url;ok;type;redirected;constructor(e,t=200,n="OK"){this.headers=e.headers||new Ft,this.status=e.status!==void 0?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.redirected=e.redirected,this.ok=this.status>=200&&this.status<300}},s_=class lh extends Po{constructor(t={}){super(t)}type=Et.ResponseHeader;clone(t={}){return new lh({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})}},Jr=class ah extends Po{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Et.Response;clone(t={}){return new ah({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})}},Oi=class extends Po{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},o_=200,l_=204;function Mi(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}}var uh=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,i={}){let s;if(n instanceof rn)s=n;else{let a;i.headers instanceof Ft?a=i.headers:a=new Ft(i.headers);let u;i.params&&(i.params instanceof et?u=i.params:u=new et({fromObject:i.params})),s=new rn(n,r,i.body!==void 0?i.body:null,{headers:a,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache,keepalive:i.keepalive,priority:i.priority,cache:i.cache,mode:i.mode,redirect:i.redirect,credentials:i.credentials,referrer:i.referrer,integrity:i.integrity,timeout:i.timeout})}let o=Oe(s).pipe(Qa(a=>this.handler.handle(a)));if(n instanceof rn||i.observe==="events")return o;let l=o.pipe(cr(a=>a instanceof Jr));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(fe(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new v(2806,!1);return a.body}));case"blob":return l.pipe(fe(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new v(2807,!1);return a.body}));case"text":return l.pipe(fe(a=>{if(a.body!==null&&typeof a.body!="string")throw new v(2808,!1);return a.body}));case"json":default:return l.pipe(fe(a=>a.body))}case"response":return l;default:throw new v(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 et().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,i={}){return this.request("PATCH",n,Mi(i,r))}post(n,r,i={}){return this.request("POST",n,Mi(i,r))}put(n,r,i={}){return this.request("PUT",n,Mi(i,r))}static \u0275fac=function(n){return new(n||e)(y(Mo))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),a_=new C("");function ch(e,t){return t(e)}function u_(e,t){return(n,r)=>t.intercept(n,{handle:i=>e(i,r)})}function c_(e,t,n){return(r,i)=>Us(n,()=>t(r,s=>e(s,i)))}var d_=new C(""),Do=new C(""),h_=new C(""),dh=new C("",{providedIn:"root",factory:()=>!0});function f_(){let e=null;return(t,n)=>{e===null&&(e=(b(d_,{optional:!0})??[]).reduceRight(u_,ch));let r=b(Zu);if(b(dh)){let i=r.add();return e(t,n).pipe(Ja(i))}else return e(t,n)}}var Xl=(()=>{class e extends Mo{backend;injector;chain=null;pendingTasks=b(Zu);contributeToStability=b(dh);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Do),...this.injector.get(h_,[])]));this.chain=r.reduceRight((i,s)=>c_(i,s,this.injector),ch)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(Ja(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(n){return new(n||e)(y(Yr),y(Pe))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),p_=/^\)\]\}',?\n/,g_=RegExp(`^${rh}:`,"m");function m_(e){return"responseURL"in e&&e.responseURL?e.responseURL:g_.test(e.getAllResponseHeaders())?e.getResponseHeader(rh):null}var ea=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new v(-2800,!1);let r=this.xhrFactory;return Oe(null).pipe(Ka(()=>new U(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((g,m)=>s.setRequestHeader(g,m.join(","))),n.headers.has(Kl)||s.setRequestHeader(Kl,i_),!n.headers.has(Jl)){let g=n.detectContentTypeHeader();g!==null&&s.setRequestHeader(Jl,g)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let g=n.responseType.toLowerCase();s.responseType=g!=="json"?g:"text"}let o=n.serializeBody(),l=null,a=()=>{if(l!==null)return l;let g=s.statusText||"OK",m=new Ft(s.getAllResponseHeaders()),S=m_(s)||n.url;return l=new s_({headers:m,status:s.status,statusText:g,url:S}),l},u=()=>{let{headers:g,status:m,statusText:S,url:ce}=a(),Z=null;m!==l_&&(Z=typeof s.response>"u"?s.responseText:s.response),m===0&&(m=Z?o_:0);let Wt=m>=200&&m<300;if(n.responseType==="json"&&typeof Z=="string"){let $t=Z;Z=Z.replace(p_,"");try{Z=Z!==""?JSON.parse(Z):null}catch($e){Z=$t,Wt&&(Wt=!1,Z={error:$e,text:Z})}}Wt?(i.next(new Jr({body:Z,headers:g,status:m,statusText:S,url:ce||void 0})),i.complete()):i.error(new Oi({error:Z,headers:g,status:m,statusText:S,url:ce||void 0}))},c=g=>{let{url:m}=a(),S=new Oi({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:m||void 0});i.error(S)},d=c;n.timeout&&(d=g=>{let{url:m}=a(),S=new Oi({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:m||void 0});i.error(S)});let f=!1,h=g=>{f||(i.next(a()),f=!0);let m={type:Et.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(m.total=g.total),n.responseType==="text"&&s.responseText&&(m.partialText=s.responseText),i.next(m)},p=g=>{let m={type:Et.UploadProgress,loaded:g.loaded};g.lengthComputable&&(m.total=g.total),i.next(m)};return s.addEventListener("load",u),s.addEventListener("error",c),s.addEventListener("timeout",d),s.addEventListener("abort",c),n.reportProgress&&(s.addEventListener("progress",h),o!==null&&s.upload&&s.upload.addEventListener("progress",p)),s.send(o),i.next({type:Et.Sent}),()=>{s.removeEventListener("error",c),s.removeEventListener("abort",c),s.removeEventListener("load",u),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",h),o!==null&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(n){return new(n||e)(y($d))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),hh=new C(""),y_="XSRF-TOKEN",v_=new C("",{providedIn:"root",factory:()=>y_}),b_="X-XSRF-TOKEN",__=new C("",{providedIn:"root",factory:()=>b_}),fh=class{},w_=(()=>{class e{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r){this.doc=n,this.cookieName=r}getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Wd(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(n){return new(n||e)(y(Ee),y(v_))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),C_=/^(?:https?:)?\/\//i;function x_(e,t){if(!b(hh)||e.method==="GET"||e.method==="HEAD"||C_.test(e.url))return t(e);let n=b(fh).getToken(),r=b(__);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}var ph=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e})(ph||{});function k_(e,t){return{\u0275kind:e,\u0275providers:t}}function E_(...e){let t=[uh,ea,Xl,{provide:Mo,useExisting:Xl},{provide:Yr,useFactory:()=>b(a_,{optional:!0})??b(ea)},{provide:Do,useValue:x_,multi:!0},{provide:hh,useValue:!0},{provide:fh,useClass:w_}];for(let n of e)t.push(...n.\u0275providers);return Fr(t)}var ta=new C("");function S_(){return k_(ph.LegacyInterceptors,[{provide:ta,useFactory:f_},{provide:Do,useExisting:ta,multi:!0}])}var gh=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=E({token:e,factory:function(n){let r=null;return n?r=new(n||e):r=y(T_),r},providedIn:"root"})}return e})(),T_=(()=>{class e extends gh{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case je.NONE:return r;case je.HTML:return vt(r,"HTML")?Qe(r):Ic(this._doc,String(r)).toString();case je.STYLE:return vt(r,"Style")?Qe(r):r;case je.SCRIPT:if(vt(r,"Script"))return Qe(r);throw new v(5200,!1);case je.URL:return vt(r,"URL")?Qe(r):Cc(String(r));case je.RESOURCE_URL:if(vt(r,"ResourceURL"))return Qe(r);throw new v(5201,!1);default:throw new v(5202,!1)}}bypassSecurityTrustHtml(n){return ym(n)}bypassSecurityTrustStyle(n){return vm(n)}bypassSecurityTrustScript(n){return bm(n)}bypassSecurityTrustUrl(n){return _m(n)}bypassSecurityTrustResourceUrl(n){return wm(n)}static \u0275fac=function(n){return new(n||e)(y(Ee))};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),mh={},I_={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(e,t){mh[e]=t,I_[t]=e});function O_(e){for(var t=[],n=0,r=0,i=0;i<e.length;i+=1){var s=mh[e[i]];if(s===void 0)throw new Error("Invalid character ("+e[i]+")");var o=s&32;if(s&=31,r+=s<<n,o)n+=5;else{var l=r&1;r>>>=1,l?t.push(r===0?-2147483648:-r):t.push(r),r=n=0}}return t}var ir="TOKEN_LOGGER_CONFIG",M_=class{constructor(e){this.config=this._clone(e)}get level(){return this.config.level}get serverLogLevel(){return this.config.serverLogLevel}updateConfig(e){this.config=this._clone(e)}partialUpdateConfig(e){e&&Object.keys(e).forEach(t=>{this.config[t]=e[t]})}getConfig(){return this._clone(this.config)}_clone(e){let t={level:null};return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}},sn="TOKEN_LOGGER_CONFIG_ENGINE_FACTORY",P_=class{provideConfigEngine(e){return new M_(e)}},on="TOKEN_LOGGER_MAPPER_SERVICE",D_=(()=>{class e{constructor(n){this.httpBackend=n,this.sourceMapCache=new Map,this.logPositionCache=new Map}getLogPosition(n,r){let i=this.getStackLine(n);if(!i)return Oe({fileName:"",lineNumber:0,columnNumber:0});let s=this.getLocalPosition(i);if(!n.enableSourceMaps)return Oe(s);let o=this.getSourceMapLocation(i);return this.getSourceMap(o,s)}getStackLine(n){let r=new Error;try{throw r}catch{try{let i=4;return r.stack.split(`
|
|
3
|
+
`)}`:"",this.name="UnsubscriptionError",this.errors=t});function Tr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Ne=class os{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 s of n)s.remove(this);else n.remove(this);let{initialTeardown:r}=this;if($(r))try{r()}catch(s){t=s instanceof Mi?s.errors:[s]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let s of i)try{ba(s)}catch(o){t=t??[],o instanceof Mi?t=[...t,...o.errors]:t.push(o)}}if(t)throw new Mi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)ba(t);else{if(t instanceof os){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)&&Tr(n,t)}remove(t){let{_finalizers:n}=this;n&&Tr(n,t),t instanceof os&&t._removeParent(this)}};Ne.EMPTY=(()=>{let e=new Ne;return e.closed=!0,e})();var su=Ne.EMPTY;function ou(e){return e instanceof Ne||e&&"closed"in e&&$(e.remove)&&$(e.add)&&$(e.unsubscribe)}function ba(e){$(e)?e():e.unsubscribe()}var St={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Mr={setTimeout(e,t,...n){let{delegate:r}=Mr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Mr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function au(e){Mr.setTimeout(()=>{let{onUnhandledError:t}=St;if(t)t(e);else throw e})}function Ca(){}var Bf=to("C",void 0,void 0);function Uf(e){return to("E",void 0,e)}function $f(e){return to("N",e,void 0)}function to(e,t,n){return{kind:e,value:t,error:n}}var dt=null;function dr(e){if(St.useDeprecatedSynchronousErrorHandling){let t=!dt;if(t&&(dt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=dt;if(dt=null,n)throw r}}else e()}function Zf(e){St.useDeprecatedSynchronousErrorHandling&&dt&&(dt.errorThrown=!0,dt.error=e)}var no=class extends Ne{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,ou(e)&&e.add(this)):this.destination=Qf}static create(e,t,n){return new Lt(e,t,n)}next(e){this.isStopped?Pi($f(e),this):this._next(e)}error(e){this.isStopped?Pi(Uf(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Pi(Bf,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},qf=Function.prototype.bind;function Ii(e,t){return qf.call(e,t)}var Gf=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(n){Gn(n)}}error(e){let{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(n){Gn(n)}else Gn(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){Gn(t)}}},Lt=class extends no{constructor(e,t,n){super();let r;if($(e)||!e)r={next:e??void 0,error:t??void 0,complete:n??void 0};else{let i;this&&St.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&Ii(e.next,i),error:e.error&&Ii(e.error,i),complete:e.complete&&Ii(e.complete,i)}):r=e}this.destination=new Gf(r)}};function Gn(e){St.useDeprecatedSynchronousErrorHandling?Zf(e):au(e)}function Wf(e){throw e}function Pi(e,t){let{onStoppedNotification:n}=St;n&&Mr.setTimeout(()=>n(e,t))}var Qf={closed:!0,next:Ca,error:Wf,complete:Ca},ro=typeof Symbol=="function"&&Symbol.observable||"@@observable";function io(e){return e}function Yf(e){return e.length===0?io:e.length===1?e[0]:function(t){return e.reduce((n,r)=>r(n),t)}}var J=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){let s=Kf(n)?n:new Lt(n,r,i);return dr(()=>{let{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=wa(r),new r((i,s)=>{let o=new Lt({next:a=>{try{n(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:i});this.subscribe(o)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[ro](){return this}pipe(...n){return Yf(n)(this)}toPromise(n){return n=wa(n),new n((r,i)=>{let s;this.subscribe(o=>s=o,o=>i(o),()=>r(s))})}}return e.create=t=>new e(t),e})();function wa(e){var t;return(t=e??St.Promise)!==null&&t!==void 0?t:Promise}function Jf(e){return e&&$(e.next)&&$(e.error)&&$(e.complete)}function Kf(e){return e&&e instanceof no||Jf(e)&&ou(e)}function Xf(e){return $(e?.lift)}function be(e){return t=>{if(Xf(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 de(e,t,n,r,i){return new ep(e,t,n,r,i)}var ep=class extends no{constructor(e,t,n,r,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=t?function(o){try{t(o)}catch(a){e.error(a)}}:super._next,this._error=r?function(o){try{r(o)}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(o){e.error(o)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:t}=this;super.unsubscribe(),!t&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}},tp=ni(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}),st=(()=>{class e extends J{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new _a(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new tp}next(n){dr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){dr(()=>{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(){dr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:s}=this;return r||i?su:(this.currentObservers=null,s.push(n),new Ne(()=>{this.currentObservers=null,Tr(s,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:s}=this;r?n.error(i):s&&n.complete()}asObservable(){let n=new J;return n.source=this,n}}return e.create=(t,n)=>new _a(t,n),e})(),_a=class extends st{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.next)===null||n===void 0||n.call(t,e)}error(e){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.error)===null||n===void 0||n.call(t,e)}complete(){var e,t;(t=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||t===void 0||t.call(e)}_subscribe(e){var t,n;return(n=(t=this.source)===null||t===void 0?void 0:t.subscribe(e))!==null&&n!==void 0?n:su}},lu=class extends st{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){let{hasError:e,thrownError:t,_value:n}=this;if(e)throw t;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}},so={now(){return(so.delegate||Date).now()},delegate:void 0},uu=class extends st{constructor(e=1/0,t=1/0,n=so){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){let{isStopped:t,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:i,_windowTime:s}=this;t||(n.push(e),!r&&n.push(i.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let t=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:r}=this,i=r.slice();for(let s=0;s<i.length&&!e.closed;s+=n?1:2)e.next(i[s]);return this._checkFinalizedStatuses(e),t}_trimBuffer(){let{_bufferSize:e,_timestampProvider:t,_buffer:n,_infiniteTimeWindow:r}=this,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){let s=t.now(),o=0;for(let a=1;a<n.length&&n[a]<=s;a+=2)o=a;o&&n.splice(0,o+1)}}},np=class extends Ne{constructor(e,t){super()}schedule(e,t=0){return this}},Ir={setInterval(e,t,...n){let{delegate:r}=Ir;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Ir;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},rp=class extends np{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){var n;if(this.closed)return this;this.state=e;let r=this.id,i=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(i,this.id,t),this}requestAsyncId(e,t,n=0){return Ir.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return t;t!=null&&Ir.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,t);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,r;try{this.work(e)}catch(i){n=!0,r=i||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:e,scheduler:t}=this,{actions:n}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Tr(n,this),e!=null&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}},as=class cu{constructor(t,n=cu.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};as.now=so.now;var ip=class extends as{constructor(e,t=as.now){super(e,t),this.actions=[],this._active=!1}flush(e){let{actions:t}=this;if(this._active){t.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},du=new ip(rp),sp=du,hu=new J(e=>e.complete());function fu(e){return e&&$(e.schedule)}function oo(e){return e[e.length-1]}function op(e){return $(oo(e))?e.pop():void 0}function pu(e){return fu(oo(e))?e.pop():void 0}function ap(e,t){return typeof oo(e)=="number"?e.pop():t}function lp(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):i(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function xa(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 Vt(e){return this instanceof Vt?(this.v=e,this):new Vt(e)}function up(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(h){return function(p){return Promise.resolve(p).then(h,d)}}function a(h,p){r[h]&&(i[h]=function(m){return new Promise(function(b,D){s.push([h,m,b,D])>1||l(h,m)})},p&&(i[h]=p(i[h])))}function l(h,p){try{u(r[h](p))}catch(m){f(s[0][3],m)}}function u(h){h.value instanceof Vt?Promise.resolve(h.value.v).then(c,d):f(s[0][2],h)}function c(h){l("next",h)}function d(h){l("throw",h)}function f(h,p){h(p),s.shift(),s.length&&l(s[0][0],s[0][1])}}function cp(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 xa=="function"?xa(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(o){return new Promise(function(a,l){o=e[s](o),i(a,l,o.done,o.value)})}}function i(s,o,a,l){Promise.resolve(l).then(function(u){s({value:u,done:a})},o)}}var gu=e=>e&&typeof e.length=="number"&&typeof e!="function";function mu(e){return $(e?.then)}function vu(e){return $(e[ro])}function yu(e){return Symbol.asyncIterator&&$(e?.[Symbol.asyncIterator])}function bu(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 dp(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Cu=dp();function wu(e){return $(e?.[Cu])}function _u(e){return up(this,arguments,function*(){let t=e.getReader();try{for(;;){let{value:n,done:r}=yield Vt(t.read());if(r)return yield Vt(void 0);yield yield Vt(n)}}finally{t.releaseLock()}})}function xu(e){return $(e?.getReader)}function fe(e){if(e instanceof J)return e;if(e!=null){if(vu(e))return hp(e);if(gu(e))return fp(e);if(mu(e))return pp(e);if(yu(e))return ku(e);if(wu(e))return gp(e);if(xu(e))return mp(e)}throw bu(e)}function hp(e){return new J(t=>{let n=e[ro]();if($(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function fp(e){return new J(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function pp(e){return new J(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,au)})}function gp(e){return new J(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function ku(e){return new J(t=>{vp(e,t).catch(n=>t.error(n))})}function mp(e){return ku(_u(e))}function vp(e,t){var n,r,i,s;return lp(this,void 0,void 0,function*(){try{for(n=cp(e);r=yield n.next(),!r.done;){let o=r.value;if(t.next(o),t.closed)return}}catch(o){i={error:o}}finally{try{r&&!r.done&&(s=n.return)&&(yield s.call(n))}finally{if(i)throw i.error}}t.complete()})}function $e(e,t,n,r=0,i=!1){let s=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(s),!i)return s}function Su(e,t=0){return be((n,r)=>{n.subscribe(de(r,i=>$e(r,e,()=>r.next(i),t),()=>$e(r,e,()=>r.complete(),t),i=>$e(r,e,()=>r.error(i),t)))})}function Ou(e,t=0){return be((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function yp(e,t){return fe(e).pipe(Ou(t),Su(t))}function bp(e,t){return fe(e).pipe(Ou(t),Su(t))}function Cp(e,t){return new J(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function wp(e,t){return new J(n=>{let r;return $e(n,t,()=>{r=e[Cu](),$e(n,t,()=>{let i,s;try{({value:i,done:s}=r.next())}catch(o){n.error(o);return}s?n.complete():n.next(i)},0,!0)}),()=>$(r?.return)&&r.return()})}function Eu(e,t){if(!e)throw new Error("Iterable cannot be null");return new J(n=>{$e(n,t,()=>{let r=e[Symbol.asyncIterator]();$e(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function _p(e,t){return Eu(_u(e),t)}function xp(e,t){if(e!=null){if(vu(e))return yp(e,t);if(gu(e))return Cp(e,t);if(mu(e))return bp(e,t);if(yu(e))return Eu(e,t);if(wu(e))return wp(e,t);if(xu(e))return _p(e,t)}throw bu(e)}function ao(e,t){return t?xp(e,t):fe(e)}function Ue(...e){let t=pu(e);return ao(e,t)}function Tu(e,t){let n=$(e)?e:()=>e,r=i=>i.error(n());return new J(t?i=>t.schedule(r,0,i):r)}function kp(e){return!!e&&(e instanceof J||$(e.lift)&&$(e.subscribe))}var Sp=ni(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function ut(e,t){let n=typeof t=="object";return new Promise((r,i)=>{let s=new Lt({next:o=>{r(o),s.unsubscribe()},error:i,complete:()=>{n?r(t.defaultValue):i(new Sp)}});e.subscribe(s)})}function Mu(e){return e instanceof Date&&!isNaN(e)}var Op=ni(e=>function(t=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t});function lt(e,t){let{first:n,each:r,with:i=Ep,scheduler:s=t??du,meta:o=null}=Mu(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return be((a,l)=>{let u,c,d=null,f=0,h=p=>{c=$e(l,s,()=>{try{u.unsubscribe(),fe(i({meta:o,lastValue:d,seen:f})).subscribe(l)}catch(m){l.error(m)}},p)};u=a.subscribe(de(l,p=>{c?.unsubscribe(),f++,l.next(d=p),r>0&&h(r)},void 0,void 0,()=>{c?.closed||c?.unsubscribe(),d=null})),!f&&h(n!=null?typeof n=="number"?n:+n-s.now():r)})}function Ep(e){throw new Op(e)}function ke(e,t){return be((n,r)=>{let i=0;n.subscribe(de(r,s=>{r.next(e.call(t,s,i++))}))})}var{isArray:Tp}=Array;function Mp(e,t){return Tp(t)?e(...t):e(t)}function Ip(e){return ke(t=>Mp(e,t))}var{isArray:Pp}=Array,{getPrototypeOf:Dp,prototype:Ap,keys:Vp}=Object;function Np(e){if(e.length===1){let t=e[0];if(Pp(t))return{args:t,keys:null};if(Rp(t)){let n=Vp(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Rp(e){return e&&typeof e=="object"&&Dp(e)===Ap}function Fp(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function Lp(e,t,n,r,i,s,o,a){let l=[],u=0,c=0,d=!1,f=()=>{d&&!l.length&&!u&&t.complete()},h=m=>u<r?p(m):l.push(m),p=m=>{s&&t.next(m),u++;let b=!1;fe(n(m,c++)).subscribe(de(t,D=>{i?.(D),s?h(D):t.next(D)},()=>{b=!0},void 0,()=>{if(b)try{for(u--;l.length&&u<r;){let D=l.shift();o?$e(t,o,()=>p(D)):p(D)}f()}catch(D){t.error(D)}}))};return e.subscribe(de(t,h,()=>{d=!0,f()})),()=>{a?.()}}function Pr(e,t,n=1/0){return $(t)?Pr((r,i)=>ke((s,o)=>t(r,s,i,o))(fe(e(r,i))),n):(typeof t=="number"&&(n=t),be((r,i)=>Lp(r,i,e,n)))}function jp(e=1/0){return Pr(io,e)}function Hp(...e){let t=op(e),{args:n,keys:r}=Np(e),i=new J(s=>{let{length:o}=n;if(!o){s.complete();return}let a=new Array(o),l=o,u=o;for(let c=0;c<o;c++){let d=!1;fe(n[c]).subscribe(de(s,f=>{d||(d=!0,u--),a[c]=f},()=>l--,void 0,()=>{(!l||!d)&&(u||s.next(r?Fp(r,a):a),s.complete())}))}});return t?i.pipe(Ip(t)):i}function Iu(e=0,t,n=sp){let r=-1;return t!=null&&(fu(t)?n=t:r=t),new J(i=>{let s=Mu(e)?+e-n.now():e;s<0&&(s=0);let o=0;return n.schedule(function(){i.closed||(i.next(o++),0<=r?this.schedule(void 0,r):i.complete())},s)})}function zp(...e){let t=pu(e),n=ap(e,1/0),r=e;return r.length?r.length===1?fe(r[0]):jp(n)(ao(r,t)):hu}function Dr(e,t){return be((n,r)=>{let i=0;n.subscribe(de(r,s=>e.call(t,s,i++)&&r.next(s)))})}function De(e){return be((t,n)=>{let r=null,i=!1,s;r=t.subscribe(de(n,void 0,void 0,o=>{s=fe(e(o,De(e)(t))),r?(r.unsubscribe(),r=null,s.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,s.subscribe(n))})}function Pu(e,t){return $(t)?Pr(e,t,1):Pr(e,1)}function Du(e){return e<=0?()=>hu:be((t,n)=>{let r=0;t.subscribe(de(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function Au(e){return be((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Bp(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:r,resetOnSuccess:i=!1}=t;return n<=0?io:be((s,o)=>{let a=0,l,u=()=>{let c=!1;l=s.subscribe(de(o,d=>{i&&(a=0),o.next(d)},void 0,d=>{if(a++<n){let f=()=>{l?(l.unsubscribe(),l=null,u()):c=!0};if(r!=null){let h=typeof r=="number"?Iu(r):fe(r(d,a)),p=de(o,()=>{p.unsubscribe(),f()},()=>{o.complete()});h.subscribe(p)}else f()}else o.error(d)})),c&&(l.unsubscribe(),l=null,u())};u()})}function Up(e={}){let{connector:t=()=>new st,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return s=>{let o,a,l,u=0,c=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),o=l=void 0,c=d=!1},p=()=>{let m=o;h(),m?.unsubscribe()};return be((m,b)=>{u++,!d&&!c&&f();let D=l=l??t();b.add(()=>{u--,u===0&&!d&&!c&&(a=Di(p,i))}),D.subscribe(b),!o&&u>0&&(o=new Lt({next:we=>D.next(we),error:we=>{d=!0,f(),a=Di(h,n,we),D.error(we)},complete:()=>{c=!0,f(),a=Di(h,r),D.complete()}}),fe(m).subscribe(o))})(s)}}function Di(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Lt({next:()=>{r.unsubscribe(),e()}});return fe(t(...n)).subscribe(r)}function ka(e,t,n){let r,i=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:i=!1,scheduler:n}=e:r=e??1/0,Up({connector:()=>new uu(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Vu(e,t){return be((n,r)=>{let i=null,s=0,o=!1,a=()=>o&&!i&&r.complete();n.subscribe(de(r,l=>{i?.unsubscribe();let u=0,c=s++;fe(e(l,c)).subscribe(i=de(r,d=>r.next(t?t(l,d,c,u++):d),()=>{i=null,a()}))},()=>{o=!0,a()}))})}function $p(e){let t=I(null);try{return e()}finally{I(t)}}var Nu="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",w=class extends Error{code;constructor(e,t){super(qp(e,t)),this.code=e}};function Zp(e){return`NG0${Math.abs(e)}`}function qp(e,t){return`${Zp(e)}${t?": "+t:""}`}var tt=globalThis;function H(e){for(let t in e)if(e[t]===H)return t;throw Error("")}function Gp(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function jt(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(jt).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 Sa(e,t){return e?t?`${e} ${t}`:e:t||""}var Wp=H({__forward_ref__:H});function Nn(e){return e.__forward_ref__=Nn,e.toString=function(){return jt(this())},e}function ie(e){return Ru(e)?e():e}function Ru(e){return typeof e=="function"&&e.hasOwnProperty(Wp)&&e.__forward_ref__===Nn}function O(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ri(e){return{providers:e.providers||[],imports:e.imports||[]}}function lo(e){return Qp(e,Fu)}function Qp(e,t){return e.hasOwnProperty(t)&&e[t]||null}function Yp(e){return(e?.[Fu]??null)||null}function Oa(e){return e&&e.hasOwnProperty(Ea)?e[Ea]:null}var Fu=H({\u0275prov:H}),Ea=H({\u0275inj:H}),k=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,t){this._desc=e,this.\u0275prov=void 0,typeof t=="number"?this.__NG_ELEMENT_ID__=t:t!==void 0&&(this.\u0275prov=O({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Lu(e){return e&&!!e.\u0275providers}var Jp=H({\u0275cmp:H}),Kp=H({\u0275dir:H}),Xp=H({\u0275pipe:H}),Ar=H({\u0275fac:H}),vn=H({__NG_ELEMENT_ID__:H}),Ta=H({__NG_ENV_ID__:H});function ii(e){return typeof e=="string"?e:e==null?"":String(e)}function eg(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():ii(e)}var ju=H({ngErrorCode:H}),tg=H({ngErrorMessage:H}),ng=H({ngTokenPath:H});function Hu(e,t){return zu("",-200,t)}function uo(e,t){throw new w(-201,!1)}function zu(e,t,n){let r=new w(t,e);return r[ju]=t,r[tg]=e,n&&(r[ng]=n),r}function rg(e){return e[ju]}var ls;function Bu(){return ls}function ge(e){let t=ls;return ls=e,t}function Uu(e,t,n){let r=lo(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;uo(e,"Injector")}var ig={},ft=ig,sg="__NG_DI_FLAG__",og=class{injector;constructor(e){this.injector=e}retrieve(e,t){let n=On(t)||0;try{return this.injector.get(e,n&8?null:ft,n)}catch(r){if(Ks(r))return r;throw r}}};function ag(e,t=0){let n=Zl();if(n===void 0)throw new w(-203,!1);if(n===null)return Uu(e,void 0,t);{let r=lg(t),i=n.retrieve(e,r);if(Ks(i)){if(r.optional)return null;throw i}return i}}function C(e,t=0){return(Bu()||ag)(ie(e),t)}function v(e,t){return C(e,On(t))}function On(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function lg(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function us(e){let t=[];for(let n=0;n<e.length;n++){let r=ie(e[n]);if(Array.isArray(r)){if(r.length===0)throw new w(900,!1);let i,s=0;for(let o=0;o<r.length;o++){let a=r[o],l=ug(a);typeof l=="number"?l===-1?i=a.token:s|=l:i=a}t.push(C(i,s))}else t.push(C(r))}return t}function ug(e){return e[sg]}function Ht(e,t){return e.hasOwnProperty(Ar)?e[Ar]:null}function cg(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],s=t[r];if(n&&(i=n(i),s=n(s)),s!==i)return!1}return!0}function dg(e){return e.flat(Number.POSITIVE_INFINITY)}function co(e,t){e.forEach(n=>Array.isArray(n)?co(n,t):t(n))}function $u(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Vr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function hg(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let s=i-2;e[i]=e[s],i--}e[t]=n,e[t+1]=r}}function fg(e,t,n){let r=Rn(e,t);return r>=0?e[r|1]=n:(r=~r,hg(e,r,t,n)),r}function Ai(e,t){let n=Rn(e,t);if(n>=0)return e[n|1]}function Rn(e,t){return pg(e,t,1)}function pg(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let s=r+(i-r>>1),o=e[s<<n];if(t===o)return s<<n;o>t?i=s:r=s+1}return~(i<<n)}var pt={},me=[],zt=new k(""),Zu=new k("",-1),qu=new k(""),Gu=class{get(e,t=ft){if(t===ft){let n=zu("",-201);throw n.name="\u0275NotFound",n}return t}};function En(e){return e[Jp]||null}function Wu(e){return e[Kp]||null}function gg(e){return e[Xp]||null}function si(e){return{\u0275providers:e}}function mg(e){return si([{provide:zt,multi:!0,useValue:e}])}function vg(...e){return{\u0275providers:Qu(!0,e),\u0275fromNgModule:!0}}function Qu(e,...t){let n=[],r=new Set,i,s=o=>{n.push(o)};return co(t,o=>{let a=o;cs(a,s,[],r)&&(i||=[],i.push(a))}),i!==void 0&&Yu(i,s),n}function Yu(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];ho(i,s=>{t(s,r)})}}function cs(e,t,n,r){if(e=ie(e),!e)return!1;let i=null,s=Oa(e),o=!s&&En(e);if(!s&&!o){let l=e.ngModule;if(s=Oa(l),s)i=l;else return!1}else{if(o&&!o.standalone)return!1;i=e}let a=r.has(i);if(o){if(a)return!1;if(r.add(i),o.dependencies){let l=typeof o.dependencies=="function"?o.dependencies():o.dependencies;for(let u of l)cs(u,t,n,r)}}else if(s){if(s.imports!=null&&!a){r.add(i);let u;co(s.imports,c=>{cs(c,t,n,r)&&(u||=[],u.push(c))}),u!==void 0&&Yu(u,t)}if(!a){let u=Ht(i)||(()=>new i);t({provide:i,useFactory:u,deps:me},i),t({provide:qu,useValue:i,multi:!0},i),t({provide:zt,useValue:()=>C(i),multi:!0},i)}let l=s.providers;if(l!=null&&!a){let u=e;ho(l,c=>{t(c,u)})}}else return!1;return i!==e&&e.providers!==void 0}function ho(e,t){for(let n of e)Lu(n)&&(n=n.\u0275providers),Array.isArray(n)?ho(n,t):t(n)}var yg=H({provide:String,useValue:H});function Ju(e){return e!==null&&typeof e=="object"&&yg in e}function bg(e){return!!(e&&e.useExisting)}function Cg(e){return!!(e&&e.useFactory)}function Bt(e){return typeof e=="function"}function wg(e){return!!e.useClass}var fo=new k(""),hr={},Ma={},Vi;function po(){return Vi===void 0&&(Vi=new Gu),Vi}var qe=class{},go=class extends qe{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,hs(e,s=>this.processProvider(s)),this.records.set(Zu,Pt(void 0,this)),r.has("environment")&&this.records.set(qe,Pt(void 0,this));let i=this.records.get(fo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(qu,me,{self:!0}))}retrieve(e,t){let n=On(t)||0;try{return this.get(e,ft,n)}catch(r){if(Ks(r))return r;throw r}}destroy(){pn(this),this._destroyed=!0;let e=I(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),I(e)}}onDestroy(e){return pn(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){pn(this);let t=Xe(this),n=ge(void 0),r;try{return e()}finally{Xe(t),ge(n)}}get(e,t=ft,n){if(pn(this),e.hasOwnProperty(Ta))return e[Ta](this);let r=On(n),i,s=Xe(this),o=ge(void 0);try{if(!(r&4)){let l=this.records.get(e);if(l===void 0){let u=Og(e)&&lo(e);u&&this.injectableDefInScope(u)?l=Pt(ds(e),hr):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l,r)}let a=r&2?po():this.parent;return t=r&8&&t===ft?null:t,a.get(e,t)}catch(a){let l=rg(a);throw l===-200||l===-201?new w(l,null):a}finally{ge(o),Xe(s)}}resolveInjectorInitializers(){let e=I(null),t=Xe(this),n=ge(void 0),r;try{let i=this.get(zt,me,{self:!0});for(let s of i)s()}finally{Xe(t),ge(n),I(e)}}toString(){let e=[],t=this.records;for(let n of t.keys())e.push(jt(n));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=ie(e);let t=Bt(e)?e:ie(e&&e.provide),n=xg(e);if(!Bt(e)&&e.multi===!0){let r=this.records.get(t);r||(r=Pt(void 0,hr,!0),r.factory=()=>us(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,n)}hydrate(e,t,n){let r=I(null);try{if(t.value===Ma)throw Hu(jt(e));return t.value===hr&&(t.value=Ma,t.value=t.factory(void 0,n)),typeof t.value=="object"&&t.value&&Sg(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{I(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=ie(e.providedIn);return typeof t=="string"?t==="any"||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){let t=this._onDestroyHooks.indexOf(e);t!==-1&&this._onDestroyHooks.splice(t,1)}};function ds(e){let t=lo(e),n=t!==null?t.factory:Ht(e);if(n!==null)return n;if(e instanceof k)throw new w(204,!1);if(e instanceof Function)return _g(e);throw new w(204,!1)}function _g(e){if(e.length>0)throw new w(204,!1);let t=Yp(e);return t!==null?()=>t.factory(e):()=>new e}function xg(e){if(Ju(e))return Pt(void 0,e.useValue);{let t=Ku(e);return Pt(t,hr)}}function Ku(e,t,n){let r;if(Bt(e)){let i=ie(e);return Ht(i)||ds(i)}else if(Ju(e))r=()=>ie(e.useValue);else if(Cg(e))r=()=>e.useFactory(...us(e.deps||[]));else if(bg(e))r=(i,s)=>C(ie(e.useExisting),s!==void 0&&s&8?8:void 0);else{let i=ie(e&&(e.useClass||e.provide));if(kg(e))r=()=>new i(...us(e.deps));else return Ht(i)||ds(i)}return r}function pn(e){if(e.destroyed)throw new w(205,!1)}function Pt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function kg(e){return!!e.deps}function Sg(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Og(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function hs(e,t){for(let n of e)Array.isArray(n)?hs(n,t):n&&Lu(n)?hs(n.\u0275providers,t):t(n)}function mo(e,t){let n;e instanceof go?(pn(e),n=e):n=new og(e);let r,i=Xe(n),s=ge(void 0);try{return t()}finally{Xe(i),ge(s)}}function Eg(){return Bu()!==void 0||Zl()!=null}var Ye=0,_=1,x=2,ne=3,Se=4,Te=5,Nr=6,Rr=7,ae=8,gt=9,Ge=10,Z=11,Tn=12,Ia=13,Qt=14,Re=15,mt=16,Dt=17,We=18,oi=19,Xu=20,rt=21,Ni=22,Fr=23,ve=24,Ri=25,Lr=26,he=27,ec=1,vt=7,jr=8,Ut=9,ce=10;function it(e){return Array.isArray(e)&&typeof e[ec]=="object"}function Je(e){return Array.isArray(e)&&e[ec]===!0}function tc(e){return(e.flags&4)!==0}function Yt(e){return e.componentOffset>-1}function Fn(e){return(e.flags&1)===1}function Qe(e){return!!e.template}function Hr(e){return(e[x]&512)!==0}function Jt(e){return(e[x]&256)===256}var nc="svg",Tg="math";function Fe(e){for(;Array.isArray(e);)e=e[Ye];return e}function rc(e,t){return Fe(t[e])}function He(e,t){return Fe(t[e.index])}function ic(e,t){return e.data[t]}function Le(e,t){let n=t[e];return it(n)?n:n[Ye]}function Mg(e){return(e[x]&4)===4}function vo(e){return(e[x]&128)===128}function Ig(e){return Je(e[ne])}function $t(e,t){return t==null?null:e[t]}function sc(e){e[Dt]=0}function yo(e){e[x]&1024||(e[x]|=1024,vo(e)&&ai(e))}function Pg(e,t){for(;e>0;)t=t[Qt],e--;return t}function Mn(e){return!!(e[x]&9216||e[ve]?.dirty)}function fs(e){e[Ge].changeDetectionScheduler?.notify(8),e[x]&64&&(e[x]|=1024),Mn(e)&&ai(e)}function ai(e){e[Ge].changeDetectionScheduler?.notify(0);let t=yt(e);for(;t!==null&&!(t[x]&8192||(t[x]|=8192,!vo(t)));)t=yt(t)}function oc(e,t){if(Jt(e))throw new w(911,!1);e[rt]===null&&(e[rt]=[]),e[rt].push(t)}function Dg(e,t){if(e[rt]===null)return;let n=e[rt].indexOf(t);n!==-1&&e[rt].splice(n,1)}function yt(e){let t=e[ne];return Je(t)?t[ne]:t}function ac(e){return e[Rr]??=[]}function lc(e){return e.cleanup??=[]}function Ag(e,t,n,r){let i=ac(t);i.push(n),e.firstCreatePass&&lc(e).push(r,i.length-1)}var E={lFrame:yc(null),bindingsEnabled:!0,skipHydrationRootTNode:null},ps=!1;function Vg(){return E.lFrame.elementDepthCount}function Ng(){E.lFrame.elementDepthCount++}function uc(){E.lFrame.elementDepthCount--}function bo(){return E.bindingsEnabled}function Rg(){return E.skipHydrationRootTNode!==null}function cc(e){return E.skipHydrationRootTNode===e}function dc(){E.skipHydrationRootTNode=null}function V(){return E.lFrame.lView}function ee(){return E.lFrame.tView}function W(e){return E.lFrame.contextLView=e,e[ae]}function Q(e){return E.lFrame.contextLView=null,e}function oe(){let e=hc();for(;e!==null&&e.type===64;)e=e.parent;return e}function hc(){return E.lFrame.currentTNode}function Fg(){let e=E.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Ln(e,t){let n=E.lFrame;n.currentTNode=e,n.isParent=t}function fc(){return E.lFrame.isParent}function Lg(){E.lFrame.isParent=!1}function pc(){return ps}function Pa(e){let t=ps;return ps=e,t}function jg(e){return E.lFrame.bindingIndex=e}function jn(){return E.lFrame.bindingIndex++}function Hg(e){let t=E.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function zg(){return E.lFrame.inI18n}function Bg(e,t){let n=E.lFrame;n.bindingIndex=n.bindingRootIndex=e,gs(t)}function Ug(){return E.lFrame.currentDirectiveIndex}function gs(e){E.lFrame.currentDirectiveIndex=e}function $g(e){let t=E.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function gc(){return E.lFrame.currentQueryIndex}function Co(e){E.lFrame.currentQueryIndex=e}function Zg(e){let t=e[_];return t.type===2?t.declTNode:t.type===1?e[Te]:null}function mc(e,t,n){if(n&4){let i=t,s=e;for(;(i=i.parent,i===null&&!(n&1))&&(i=Zg(s),!(i===null||(s=s[Qt],i.type&10))););if(i===null)return!1;t=i,e=s}let r=E.lFrame=vc();return r.currentTNode=t,r.lView=e,!0}function wo(e){let t=vc(),n=e[_];E.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function vc(){let e=E.lFrame,t=e===null?null:e.child;return t===null?yc(e):t}function yc(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 bc(){let e=E.lFrame;return E.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Cc=bc;function _o(){let e=bc();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 qg(e){return(E.lFrame.contextLView=Pg(e,E.lFrame.contextLView))[ae]}function Kt(){return E.lFrame.selectedIndex}function bt(e){E.lFrame.selectedIndex=e}function li(){let e=E.lFrame;return ic(e.tView,e.selectedIndex)}function Gg(){E.lFrame.currentNamespace=nc}function Wg(){return E.lFrame.currentNamespace}var wc=!0;function xo(){return wc}function ui(e){wc=e}function Da(e,t=null,n=null,r){let i=Qg(e,t,n,r);return i.resolveInjectorInitializers(),i}function Qg(e,t=null,n=null,r,i=new Set){let s=[n||me,vg(e)];return r=r||(typeof e=="object"?void 0:jt(e)),new go(s,t||po(),r||null,i)}var ci=class _c{static THROW_IF_NOT_FOUND=ft;static NULL=new Gu;static create(t,n){if(Array.isArray(t))return Da({name:""},n,t,"");{let r=t.name??"";return Da({name:r},t.parent,t.providers,r)}}static \u0275prov=O({token:_c,providedIn:"any",factory:()=>C(Zu)});static __NG_ELEMENT_ID__=-1},je=new k(""),ko=(()=>{class e{static __NG_ELEMENT_ID__=Jg;static __NG_ENV_ID__=n=>n}return e})(),Yg=class extends ko{_lView;constructor(e){super(),this._lView=e}get destroyed(){return Jt(this._lView)}onDestroy(e){let t=this._lView;return oc(t,e),()=>Dg(t,e)}};function Jg(){return new Yg(V())}var Hn=class{_console=console;handleError(e){this._console.error("ERROR",e)}},ot=new k("",{providedIn:"root",factory:()=>{let e=v(qe),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(Hn),t.handleError(n))}}}),Kg={provide:zt,useValue:()=>{v(Hn)},multi:!0},Xg=new k("",{providedIn:"root",factory:()=>{let e=v(je).defaultView;if(!e)return;let t=v(ot),n=s=>{t(s.reason),s.preventDefault()},r=s=>{s.error?t(s.error):t(new Error(s.message,{cause:s})),s.preventDefault()},i=()=>{e.addEventListener("unhandledrejection",n),e.addEventListener("error",r)};typeof Zone<"u"?Zone.root.run(i):i(),v(ko).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n)})}});function em(){return si([mg(()=>{v(Xg)})])}function tm(e){return typeof e=="function"&&e[Ve]!==void 0}function ue(e,t){let[n,r,i]=Ff(e,t?.equal),s=n,o=s[Ve];return s.set=r,s.update=i,s.asReadonly=nm.bind(s),s}function nm(){let e=this[Ve];if(e.readonlyFn===void 0){let t=()=>this();t[Ve]=e,e.readonlyFn=t}return e.readonlyFn}function xc(e){return tm(e)&&typeof e.set=="function"}var zn=class{},So=new k("",{providedIn:"root",factory:()=>!1}),kc=new k(""),Sc=new k(""),Xt=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new lu(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new J(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(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=O({token:e,providedIn:"root",factory:()=>new e})}return e})(),Oc=(()=>{class e{internalPendingTasks=v(Xt);scheduler=v(zn);errorHandler=v(ot);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=O({token:e,providedIn:"root",factory:()=>new e})}return e})();function zr(...e){}var rm=(()=>{class e{static \u0275prov=O({token:e,providedIn:"root",factory:()=>new im})}return e})(),im=class{dirtyEffectCount=0;queues=new Map;add(e){this.enqueue(e),this.schedule(e)}schedule(e){e.dirty&&this.dirtyEffectCount++}remove(e){let t=e.zone,n=this.queues.get(t);n.has(e)&&(n.delete(e),e.dirty&&this.dirtyEffectCount--)}enqueue(e){let t=e.zone;this.queues.has(t)||this.queues.set(t,new Set);let n=this.queues.get(t);n.has(e)||n.add(e)}flush(){for(;this.dirtyEffectCount>0;){let e=!1;for(let[t,n]of this.queues)t===null?e||=this.flushQueue(n):e||=t.run(()=>this.flushQueue(n));e||(this.dirtyEffectCount=0)}}flushQueue(e){let t=!1;for(let n of e)n.dirty&&(this.dirtyEffectCount--,t=!0,n.run());return t}};function di(e){return{toString:e}.toString()}function sm(e){return typeof e=="function"}var om=class{previousValue;currentValue;firstChange;constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}};function Ec(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var hi=(()=>{let e=()=>Tc;return e.ngInherit=!0,e})();function Tc(e){return e.type.prototype.ngOnChanges&&(e.setInput=lm),am}function am(){let e=Ic(this),t=e?.current;if(t){let n=e.previous;if(n===pt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function lm(e,t,n,r,i){let s=this.declaredInputs[r],o=Ic(e)||um(e,{previous:pt,current:null}),a=o.current||(o.current={}),l=o.previous,u=l[s];a[s]=new om(u&&u.currentValue,n,l===pt),Ec(e,t,i,n)}var Mc="__ngSimpleChanges__";function Ic(e){return e[Mc]||null}function um(e,t){return e[Mc]=t}var Aa=[],B=function(e,t=null,n){for(let r=0;r<Aa.length;r++){let i=Aa[r];i(e,t,n)}};function cm(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){let o=Tc(t);(n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o)}i&&(n.preOrderHooks??=[]).push(0-e,i),s&&((n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s))}function Pc(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:o,ngAfterViewInit:a,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),o&&((e.contentHooks??=[]).push(n,o),(e.contentCheckHooks??=[]).push(n,o)),a&&(e.viewHooks??=[]).push(-n,a),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function fr(e,t,n){Dc(e,t,3,n)}function pr(e,t,n,r){(e[x]&3)===n&&Dc(e,t,n,r)}function Fi(e,t){let n=e[x];(n&3)===t&&(n&=16383,n+=1,e[x]=n)}function Dc(e,t,n,r){let i=r!==void 0?e[Dt]&65535:0,s=r??-1,o=t.length-1,a=0;for(let l=i;l<o;l++)if(typeof t[l+1]=="number"){if(a=t[l],r!=null&&a>=r)break}else t[l]<0&&(e[Dt]+=65536),(a<s||s==-1)&&(dm(e,n,t,l),e[Dt]=(e[Dt]&4294901760)+l+2),l++}function Va(e,t){B(4,e,t);let n=I(null);try{t.call(e)}finally{I(n),B(5,e,t)}}function dm(e,t,n,r){let i=n[r]<0,s=n[r+1],o=i?-n[r]:n[r],a=e[o];i?e[x]>>14<e[Dt]>>16&&(e[x]&3)===t&&(e[x]+=16384,Va(a,s)):Va(a,s)}var Nt=-1,Bn=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,n,r){this.factory=e,this.name=r,this.canSeeViewProviders=t,this.injectImpl=n}};function hm(e){return(e.flags&8)!==0}function fm(e){return(e.flags&16)!==0}function pm(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let s=n[r++],o=n[r++],a=n[r++];e.setAttribute(t,o,a,s)}else{let s=i,o=n[++r];mm(s)?e.setProperty(t,s,o):e.setAttribute(t,s,o),r++}}return r}function gm(e){return e===3||e===4||e===6}function mm(e){return e.charCodeAt(0)===64}function Zt(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 i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?Na(e,n,i,null,t[++r]):Na(e,n,i,null,null))}}return e}function Na(e,t,n,r,i){let s=0,o=e.length;if(t===-1)o=-1;else for(;s<e.length;){let a=e[s++];if(typeof a=="number"){if(a===t){o=-1;break}else if(a>t){o=s-1;break}}}for(;s<e.length;){let a=e[s];if(typeof a=="number")break;if(a===n){i!==null&&(e[s+1]=i);return}s++,i!==null&&s++}o!==-1&&(e.splice(o,0,t),s=o+1),e.splice(s++,0,n),i!==null&&e.splice(s++,0,i)}function Ac(e){return e!==Nt}function Br(e){return e&32767}function vm(e){return e>>16}function Ur(e,t){let n=vm(e),r=t;for(;n>0;)r=r[Qt],n--;return r}var ms=!0;function Ra(e){let t=ms;return ms=e,t}var ym=256,Vc=ym-1,Nc=5,bm=0,Ae={};function Cm(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(vn)&&(r=n[vn]),r==null&&(r=n[vn]=bm++);let i=r&Vc,s=1<<i;t.data[e+(i>>Nc)]|=s}function $r(e,t){let n=Rc(e,t);if(n!==-1)return n;let r=t[_];r.firstCreatePass&&(e.injectorIndex=t.length,Li(r.data,e),Li(t,null),Li(r.blueprint,null));let i=Oo(e,t),s=e.injectorIndex;if(Ac(i)){let o=Br(i),a=Ur(i,t),l=a[_].data;for(let u=0;u<8;u++)t[s+u]=a[o+u]|l[o+u]}return t[s+8]=i,s}function Li(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Rc(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Oo(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=Bc(i),r===null)return Nt;if(n++,i=i[Qt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Nt}function vs(e,t,n){Cm(e,t,n)}function Fc(e,t,n){if(n&8||e!==void 0)return e;uo(t,"NodeInjector")}function Lc(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let i=e[gt],s=ge(void 0);try{return i?i.get(t,r,n&8):Uu(t,r,n&8)}finally{ge(s)}}return Fc(r,t,n)}function jc(e,t,n,r=0,i){if(e!==null){if(t[x]&2048&&!(r&2)){let o=km(e,t,n,r,Ae);if(o!==Ae)return o}let s=Hc(e,t,n,r,Ae);if(s!==Ae)return s}return Lc(t,n,r,i)}function Hc(e,t,n,r,i){let s=_m(n);if(typeof s=="function"){if(!mc(t,e,r))return r&1?Fc(i,n,r):Lc(t,n,r,i);try{let o;if(o=s(r),o==null&&!(r&8))uo(n);else return o}finally{Cc()}}else if(typeof s=="number"){let o=null,a=Rc(e,t),l=Nt,u=r&1?t[Re][Te]:null;for((a===-1||r&4)&&(l=a===-1?Oo(e,t):t[a+8],l===Nt||!La(r,!1)?a=-1:(o=t[_],a=Br(l),t=Ur(l,t)));a!==-1;){let c=t[_];if(Fa(s,a,c.data)){let d=wm(a,t,n,o,r,u);if(d!==Ae)return d}l=t[a+8],l!==Nt&&La(r,t[_].data[a+8]===u)&&Fa(s,a,t)?(o=c,a=Br(l),t=Ur(l,t)):a=-1}}return i}function wm(e,t,n,r,i,s){let o=t[_],a=o.data[e+8],l=r==null?Yt(a)&&ms:r!=o&&(a.type&3)!==0,u=i&1&&s===a,c=gr(a,o,n,l,u);return c!==null?In(t,o,c,a,i):Ae}function gr(e,t,n,r,i){let s=e.providerIndexes,o=t.data,a=s&1048575,l=e.directiveStart,u=e.directiveEnd,c=s>>20,d=r?a:a+c,f=i?a+c:u;for(let h=d;h<f;h++){let p=o[h];if(h<l&&n===p||h>=l&&p.type===n)return h}if(i){let h=o[l];if(h&&Qe(h)&&h.type===n)return l}return null}function In(e,t,n,r,i){let s=e[n],o=t.data;if(s instanceof Bn){let a=s;if(a.resolving){let h=eg(o[n]);throw Hu(h)}let l=Ra(a.canSeeViewProviders);a.resolving=!0;let u=o[n].type||o[n],c,d=a.injectImpl?ge(a.injectImpl):null,f=mc(e,r,0);try{s=e[n]=a.factory(void 0,i,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&cm(n,o[n],t)}finally{d!==null&&ge(d),Ra(l),a.resolving=!1,Cc()}}return s}function _m(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(vn)?e[vn]:void 0;return typeof t=="number"?t>=0?t&Vc:xm:t}function Fa(e,t,n){let r=1<<e;return!!(n[t+(e>>Nc)]&r)}function La(e,t){return!(e&2)&&!(e&1&&t)}var yn=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return jc(this._tNode,this._lView,e,On(n),t)}};function xm(){return new yn(oe(),V())}function zc(e){return di(()=>{let t=e.prototype.constructor,n=t[Ar]||ys(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let s=i[Ar]||ys(i);if(s&&s!==n)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function ys(e){return Ru(e)?()=>{let t=ys(ie(e));return t&&t()}:Ht(e)}function km(e,t,n,r,i){let s=e,o=t;for(;s!==null&&o!==null&&o[x]&2048&&!Hr(o);){let a=Hc(s,o,n,r|2,Ae);if(a!==Ae)return a;let l=s.parent;if(!l){let u=o[Xu];if(u){let c=u.get(n,Ae,r);if(c!==Ae)return c}l=Bc(o),o=o[Qt]}s=l}return i}function Bc(e){let t=e[_],n=t.type;return n===2?t.declTNode:n===1?e[Te]:null}function Sm(){return en(oe(),V())}function en(e,t){return new tn(He(e,t))}var tn=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Sm}return e})();function Om(e){return e instanceof tn?e.nativeElement:e}function Em(){return this._results[Symbol.iterator]()}var Tm=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 st}constructor(e=!1){this._emitDistinctChangesOnly=e}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;let n=dg(e);(this._changesDetected=!cg(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=Em};function Uc(e){return(e.flags&128)===128}var $c=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})($c||{}),Zc=new Map,Mm=0;function Im(){return Mm++}function Pm(e){Zc.set(e[oi],e)}function bs(e){Zc.delete(e[oi])}var ja="__ngContext__";function qt(e,t){it(t)?(e[ja]=t[oi],Pm(t)):e[ja]=t}function qc(e){return Wc(e[Tn])}function Gc(e){return Wc(e[Se])}function Wc(e){for(;e!==null&&!Je(e);)e=e[Se];return e}var Cs;function Dm(e){Cs=e}function Qc(){if(Cs!==void 0)return Cs;if(typeof document<"u")return document;throw new w(210,!1)}var Yc=new k("",{providedIn:"root",factory:()=>Am}),Am="ng",Jc=new k(""),Eo=new k("",{providedIn:"platform",factory:()=>"unknown"}),Kc=new k("",{providedIn:"root",factory:()=>Qc().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),Vm="h",Nm="b",Xc=!1,Rm=new k("",{providedIn:"root",factory:()=>Xc}),Fm=(e,t,n,r)=>{};function Lm(e,t,n,r){Fm(e,t,n,r)}function ed(e){return(e.flags&32)===32}var jm=()=>null;function td(e,t,n=!1){return jm(e,t,n)}function nd(e,t){let n=e.contentQueries;if(n!==null){let r=I(null);try{for(let i=0;i<n.length;i+=2){let s=n[i],o=n[i+1];if(o!==-1){let a=e.data[o];Co(s),a.contentQueries(2,t[o],o)}}}finally{I(r)}}}function ws(e,t,n){Co(0);let r=I(null);try{t(e,n)}finally{I(r)}}function To(e,t,n){if(tc(t)){let r=I(null);try{let i=t.directiveStart,s=t.directiveEnd;for(let o=i;o<s;o++){let a=e.data[o];if(a.contentQueries){let l=n[o];a.contentQueries(1,l,o)}}}finally{I(r)}}}var Ct=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(Ct||{}),Wn;function Hm(){if(Wn===void 0&&(Wn=null,tt.trustedTypes))try{Wn=tt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Wn}function fi(e){return Hm()?.createHTML(e)||e}var Qn;function zm(){if(Qn===void 0&&(Qn=null,tt.trustedTypes))try{Qn=tt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Qn}function Ha(e){return zm()?.createHTML(e)||e}var Ot=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Nu})`}},Bm=class extends Ot{getTypeName(){return"HTML"}},Um=class extends Ot{getTypeName(){return"Style"}},$m=class extends Ot{getTypeName(){return"Script"}},Zm=class extends Ot{getTypeName(){return"URL"}},qm=class extends Ot{getTypeName(){return"ResourceURL"}};function ct(e){return e instanceof Ot?e.changingThisBreaksApplicationSecurity:e}function It(e,t){let n=Gm(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Nu})`)}return n===t}function Gm(e){return e instanceof Ot&&e.getTypeName()||null}function Wm(e){return new Bm(e)}function Qm(e){return new Um(e)}function Ym(e){return new $m(e)}function Jm(e){return new Zm(e)}function Km(e){return new qm(e)}function Xm(e){let t=new tv(e);return nv()?new ev(t):t}var ev=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let t=new window.DOMParser().parseFromString(fi(e),"text/html").body;return t===null?this.inertDocumentHelper.getInertBodyElement(e):(t.firstChild?.remove(),t)}catch{return null}}},tv=class{defaultDoc;inertDocument;constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let t=this.inertDocument.createElement("template");return t.innerHTML=fi(e),t}};function nv(){try{return!!new window.DOMParser().parseFromString(fi(""),"text/html")}catch{return!1}}var rv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function rd(e){return e=String(e),e.match(rv)?e:"unsafe:"+e}function Ke(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Un(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var id=Ke("area,br,col,hr,img,wbr"),sd=Ke("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),od=Ke("rp,rt"),iv=Un(od,sd),sv=Un(sd,Ke("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ov=Un(od,Ke("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),za=Un(id,sv,ov,iv),ad=Ke("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),av=Ke("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),lv=Ke("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),uv=Un(ad,av,lv),cv=Ke("script,style,template"),dv=class{sanitizedSomething=!1;buf=[];sanitizeChildren(e){let t=e.firstChild,n=!0,r=[];for(;t;){if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild){r.push(t),t=pv(t);continue}for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=fv(t);if(i){t=i;break}t=r.pop()}}return this.buf.join("")}startElement(e){let t=Ba(e).toLowerCase();if(!za.hasOwnProperty(t))return this.sanitizedSomething=!0,!cv.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);let n=e.attributes;for(let r=0;r<n.length;r++){let i=n.item(r),s=i.name,o=s.toLowerCase();if(!uv.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let a=i.value;ad[o]&&(a=rd(a)),this.buf.push(" ",s,'="',Ua(a),'"')}return this.buf.push(">"),!0}endElement(e){let t=Ba(e).toLowerCase();za.hasOwnProperty(t)&&!id.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Ua(e))}};function hv(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function fv(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw ld(t);return t}function pv(e){let t=e.firstChild;if(t&&hv(e,t))throw ld(t);return t}function Ba(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function ld(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var gv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,mv=/([^\#-~ |!])/g;function Ua(e){return e.replace(/&/g,"&").replace(gv,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(mv,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Yn;function ud(e,t){let n=null;try{Yn=Yn||Xm(e);let r=t?String(t):"";n=Yn.getInertBodyElement(r);let i=5,s=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=n.innerHTML,n=Yn.getInertBodyElement(r)}while(r!==s);let o=new dv().sanitizeChildren($a(n)||n);return fi(o)}finally{if(n){let r=$a(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function $a(e){return"content"in e&&vv(e)?e.content:null}function vv(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var yv=/^>|^->|<!--|-->|--!>|<!-$/g,bv=/(<|>)/g,Cv="\u200B$1\u200B";function wv(e){return e.replace(yv,t=>t.replace(bv,Cv))}function _v(e,t){return e.createText(t)}function xv(e,t,n){e.setValue(t,n)}function kv(e,t){return e.createComment(wv(t))}function cd(e,t,n){return e.createElement(t,n)}function Zr(e,t,n,r,i){e.insertBefore(t,n,r,i)}function dd(e,t,n){e.appendChild(t,n)}function Za(e,t,n,r,i){r!==null?Zr(e,t,n,r,i):dd(e,t,n)}function Sv(e,t,n,r){e.removeChild(null,t,n,r)}function Ov(e,t,n){e.setAttribute(t,"style",n)}function Ev(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function hd(e,t,n){let{mergedAttrs:r,classes:i,styles:s}=n;r!==null&&pm(e,t,r),i!==null&&Ev(e,t,i),s!==null&&Ov(e,t,s)}var et=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e})(et||{});function fd(e){let t=Tv();return t?Ha(t.sanitize(et.HTML,e)||""):It(e,"HTML")?Ha(ct(e)):ud(Qc(),ii(e))}function Tv(){let e=V();return e&&e[Ge].sanitizer}function Mv(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let s=t.length;if(i+s===r||e.charCodeAt(i+s)<=32)return i}n=i+1}}var pd="ng-template";function Iv(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&Mv(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(Mo(e))return!1;if(i=t.indexOf(1,i),i>-1){let s;for(;++i<t.length&&typeof(s=t[i])=="string";)if(s.toLowerCase()===n)return!0}return!1}function Mo(e){return e.type===4&&e.value!==pd}function Pv(e,t,n){let r=e.type===4&&!n?pd:e.value;return t===r}function Dv(e,t,n){let r=4,i=e.attrs,s=i!==null?Nv(i):0,o=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!o&&!_e(r)&&!_e(l))return!1;if(o&&_e(l))continue;o=!1,r=l|r&1;continue}if(!o)if(r&4){if(r=2|r&1,l!==""&&!Pv(e,l,n)||l===""&&t.length===1){if(_e(r))return!1;o=!0}}else if(r&8){if(i===null||!Iv(e,i,l,n)){if(_e(r))return!1;o=!0}}else{let u=t[++a],c=Av(l,i,Mo(e),n);if(c===-1){if(_e(r))return!1;o=!0;continue}if(u!==""){let d;if(c>s?d="":d=i[c+1].toLowerCase(),r&2&&u!==d){if(_e(r))return!1;o=!0}}}}return _e(r)||o}function _e(e){return(e&1)===0}function Av(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let s=!1;for(;i<t.length;){let o=t[i];if(o===e)return i;if(o===3||o===6)s=!0;else if(o===1||o===2){let a=t[++i];for(;typeof a=="string";)a=t[++i];continue}else{if(o===4)break;if(o===0){i+=4;continue}}i+=s?1:2}return-1}else return Rv(t,e)}function Vv(e,t,n=!1){for(let r=0;r<t.length;r++)if(Dv(e,t[r],n))return!0;return!1}function Nv(e){for(let t=0;t<e.length;t++){let n=e[t];if(gm(n))return t}return e.length}function Rv(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 qa(e,t){return e?":not("+t.trim()+")":t}function Fv(e){let t=e[0],n=1,r=2,i="",s=!1;for(;n<e.length;){let o=e[n];if(typeof o=="string")if(r&2){let a=e[++n];i+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+o:r&4&&(i+=" "+o);else i!==""&&!_e(o)&&(t+=qa(s,i),i=""),r=o,s=s||!_e(r);n++}return i!==""&&(t+=qa(s,i)),t}function Lv(e){return e.map(Fv).join(",")}function jv(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let s=e[r];if(typeof s=="string")i===2?s!==""&&t.push(s,e[++r]):i===8&&n.push(s);else{if(!_e(i))break;i=s}r++}return n.length&&t.push(1,...n),t}var Et={};function Io(e,t,n,r,i,s,o,a,l,u,c){let d=he+r,f=d+i,h=Hv(d,f),p=typeof u=="function"?u():u;return h[_]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.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 s=="function"?s():s,pipeRegistry:typeof o=="function"?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1,ssrId:c}}function Hv(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Et);return n}function zv(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Io(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Po(e,t,n,r,i,s,o,a,l,u,c){let d=t.blueprint.slice();return d[Ye]=i,d[x]=r|4|128|8|64|1024,(u!==null||e&&e[x]&2048)&&(d[x]|=2048),sc(d),d[ne]=d[Qt]=e,d[ae]=n,d[Ge]=o||e&&e[Ge],d[Z]=a||e&&e[Z],d[gt]=l||e&&e[gt]||null,d[Te]=s,d[oi]=Im(),d[Nr]=c,d[Xu]=u,d[Re]=t.type==2?e[Re]:d,d}function Bv(e,t,n){let r=He(t,e),i=zv(n),s=e[Ge].rendererFactory,o=Do(e,Po(e,i,null,gd(n),r,t,null,s.createRenderer(r,n),null,null,null));return e[t.index]=o}function gd(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function md(e,t,n,r){if(n===0)return-1;let i=t.length;for(let s=0;s<n;s++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function Do(e,t){return e[Tn]?e[Ia][Se]=t:e[Tn]=t,e[Ia]=t,t}function S(e=1){vd(ee(),V(),Kt()+e,!1)}function vd(e,t,n,r){if(!r)if((t[x]&3)===3){let i=e.preOrderCheckHooks;i!==null&&fr(t,i,n)}else{let i=e.preOrderHooks;i!==null&&pr(t,i,0,n)}bt(n)}var pi=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(pi||{});function _s(e,t,n,r){let i=I(null);try{let[s,o,a]=e.inputs[n],l=null;(o&pi.SignalBased)!==0&&(l=t[s][Ve]),l!==null&&l.transformFn!==void 0?r=l.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,l,r,n,s):Ec(t,l,s,r)}finally{I(i)}}var ht=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(ht||{}),Uv;function Ao(e,t){return Uv(e,t)}var qr=new Set,yd=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(yd||{}),Vo=new k(""),Ga=new Set;function bd(e){Ga.has(e)||(Ga.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Cd=!1,$v=class extends st{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,Eg()&&(this.destroyRef=v(ko,{optional:!0})??void 0,this.pendingTasks=v(Xt,{optional:!0})??void 0)}emit(e){let t=I(null);try{super.next(e)}finally{I(t)}}subscribe(e,t,n){let r=e,i=t||(()=>null),s=n;if(e&&typeof e=="object"){let a=e;r=a.next?.bind(a),i=a.error?.bind(a),s=a.complete?.bind(a)}this.__isAsync&&(i=this.wrapInTimeout(i),r&&(r=this.wrapInTimeout(r)),s&&(s=this.wrapInTimeout(s)));let o=super.subscribe({next:r,error:i,complete:s});return e instanceof Ne&&e.add(o),o}wrapInTimeout(e){return t=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{e(t)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}},R=$v;function wd(e){let t,n;function r(){e=zr;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Wa(e){return queueMicrotask(()=>e()),()=>{e=zr}}var No="isAngularZone",Gr=No+"_ID",Zv=0,se=class xs{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new R(!1);onMicrotaskEmpty=new R(!1);onStable=new R(!1);onError=new R(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:s=Cd}=t;if(typeof Zone>"u")throw new w(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&r,o.shouldCoalesceRunChangeDetection=i,o.callbackScheduled=!1,o.scheduleInRootZone=s,Wv(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(No)===!0}static assertInAngularZone(){if(!xs.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(xs.isInAngularZone())throw new w(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+i,t,qv,zr,zr);try{return s.runTask(o,n,r)}finally{s.cancelTask(o)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},qv={};function Ro(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 Gv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){wd(()=>{e.callbackScheduled=!1,ks(e),e.isCheckStableRunning=!0,Ro(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),ks(e)}function Wv(e){let t=()=>{Gv(e)},n=Zv++;e._inner=e._inner.fork({name:"angular",properties:{[No]:!0,[Gr]:n,[Gr+n]:!0},onInvokeTask:(r,i,s,o,a,l)=>{if(Yv(l))return r.invokeTask(s,o,a,l);try{return Qa(e),r.invokeTask(s,o,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ya(e)}},onInvoke:(r,i,s,o,a,l,u)=>{try{return Qa(e),r.invoke(s,o,a,l,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Jv(l)&&t(),Ya(e)}},onHasTask:(r,i,s,o)=>{r.hasTask(s,o),i===s&&(o.change=="microTask"?(e._hasPendingMicrotasks=o.microTask,ks(e),Ro(e)):o.change=="macroTask"&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,i,s,o)=>(r.handleError(s,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}function ks(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Qa(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ya(e){e._nesting--,Ro(e)}var Qv=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new R;onMicrotaskEmpty=new R;onStable=new R;onError=new R;run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}};function Yv(e){return _d(e,"__ignore_ng_zone__")}function Jv(e){return _d(e,"__scheduler_tick__")}function _d(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Kv=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=O({token:e,providedIn:"root",factory:()=>new e})}return e})(),Xv=new k("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function xd(e,t,n){let r=e.get(Xv);if(Array.isArray(t))for(let i of t)r.queue.add(i),n?.detachedLeaveAnimationFns?.push(i);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function ey(e,t){for(let[n,r]of t)xd(e,r.animateFns)}function Ja(e,t,n,r){let i=e?.[Lr]?.enter;t!==null&&i&&i.has(n.index)&&ey(r,i)}function At(e,t,n,r,i,s,o,a){if(i!=null){let l,u=!1;Je(i)?l=i:it(i)&&(u=!0,i=i[Ye]);let c=Fe(i);e===0&&r!==null?(Ja(a,r,s,n),o==null?dd(t,r,c):Zr(t,r,c,o||null,!0)):e===1&&r!==null?(Ja(a,r,s,n),Zr(t,r,c,o||null,!0)):e===2?Ka(a,s,n,d=>{Sv(t,c,u,d)}):e===3&&Ka(a,s,n,()=>{t.destroyNode(c)}),l!=null&&fy(t,e,n,l,s,r,o)}}function ty(e,t){kd(e,t),t[Ye]=null,t[Te]=null}function ny(e,t,n,r,i,s){r[Ye]=i,r[Te]=t,gi(e,r,n,1,i,s)}function kd(e,t){t[Ge].changeDetectionScheduler?.notify(9),gi(e,t,t[Z],2,null,null)}function ry(e){let t=e[Tn];if(!t)return ji(e[_],e);for(;t;){let n=null;if(it(t))n=t[Tn];else{let r=t[ce];r&&(n=r)}if(!n){for(;t&&!t[Se]&&t!==e;)it(t)&&ji(t[_],t),t=t[ne];t===null&&(t=e),it(t)&&ji(t[_],t),n=t&&t[Se]}t=n}}function Fo(e,t){let n=e[Ut],r=n.indexOf(t);n.splice(r,1)}function Sd(e,t){if(Jt(t))return;let n=t[Z];n.destroyNode&&gi(e,t,n,3,null,null),ry(t)}function ji(e,t){if(Jt(t))return;let n=I(null);try{t[x]&=-129,t[x]|=256,t[ve]&&Kl(t[ve]),oy(e,t),sy(e,t),t[_].type===1&&t[Z].destroy();let r=t[mt];if(r!==null&&Je(t[ne])){r!==t[ne]&&Fo(r,t);let i=t[We];i!==null&&i.detachView(e)}bs(t)}finally{I(n)}}function Ka(e,t,n,r){let i=e?.[Lr];if(i==null||i.leave==null||!i.leave.has(t.index))return r(!1);e&&qr.add(e),xd(n,()=>{if(i.leave&&i.leave.has(t.index)){let s=i.leave.get(t.index),o=[];if(s){for(let a=0;a<s.animateFns.length;a++){let l=s.animateFns[a],{promise:u}=l();o.push(u)}i.detachedLeaveAnimationFns=void 0}i.running=Promise.allSettled(o),iy(e,r)}else e&&qr.delete(e),r(!1)},i)}function iy(e,t){let n=e[Lr]?.running;if(n){n.then(()=>{e[Lr].running=void 0,qr.delete(e),t(!0)});return}t(!1)}function sy(e,t){let n=e.cleanup,r=t[Rr];if(n!==null)for(let o=0;o<n.length-1;o+=2)if(typeof n[o]=="string"){let a=n[o+3];a>=0?r[a]():r[-a].unsubscribe(),o+=2}else{let a=r[n[o+1]];n[o].call(a)}r!==null&&(t[Rr]=null);let i=t[rt];if(i!==null){t[rt]=null;for(let o=0;o<i.length;o++){let a=i[o];a()}}let s=t[Fr];if(s!==null){t[Fr]=null;for(let o of s)o.destroy()}}function oy(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof Bn)){let s=n[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){let a=i[s[o]],l=s[o+1];B(4,a,l);try{l.call(a)}finally{B(5,a,l)}}else{B(4,i,s);try{s.call(i)}finally{B(5,i,s)}}}}}function ay(e,t,n){return ly(e,t.parent,n)}function ly(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ye];if(Yt(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===Ct.None||i===Ct.Emulated)return null}return He(r,n)}function uy(e,t,n){return dy(e,t,n)}function cy(e,t,n){return e.type&40?He(e,n):null}var dy=cy,Xa;function Lo(e,t,n,r){let i=ay(e,r,t),s=t[Z],o=r.parent||t[Te],a=uy(o,r,t);if(i!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Za(s,i,n[l],a,!1);else Za(s,i,n,a,!1);Xa!==void 0&&Xa(s,r,t,n,i)}function gn(e,t){if(t!==null){let n=t.type;if(n&3)return He(t,e);if(n&4)return Ss(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return gn(e,r);{let i=e[t.index];return Je(i)?Ss(-1,i):Fe(i)}}else{if(n&128)return gn(e,t.next);if(n&32)return Ao(t,e)()||Fe(e[t.index]);{let r=Od(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=yt(e[Re]);return gn(i,r)}else return gn(e,t.next)}}}return null}function Od(e,t){if(t!==null){let n=e[Re][Te],r=t.projection;return n.projection[r]}return null}function Ss(e,t){let n=ce+e+1;if(n<t.length){let r=t[n],i=r[_].firstChild;if(i!==null)return gn(r,i)}return t[vt]}function jo(e,t,n,r,i,s,o){for(;n!=null;){let a=r[gt];if(n.type===128){n=n.next;continue}let l=r[n.index],u=n.type;if(o&&t===0&&(l&&qt(Fe(l),r),n.flags|=2),!ed(n))if(u&8)jo(e,t,n.child,r,i,s,!1),At(t,e,a,i,l,n,s,r);else if(u&32){let c=Ao(n,r),d;for(;d=c();)At(t,e,a,i,d,n,s,r);At(t,e,a,i,l,n,s,r)}else u&16?hy(e,t,r,n,i,s):At(t,e,a,i,l,n,s,r);n=o?n.projectionNext:n.next}}function gi(e,t,n,r,i,s){jo(n,r,e.firstChild,t,i,s,!1)}function hy(e,t,n,r,i,s){let o=n[Re],a=o[Te].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++){let u=a[l];At(t,e,n[gt],i,u,r,s,n)}else{let l=a,u=o[ne];Uc(r)&&(l.flags|=128),jo(e,t,l,u,i,s,!0)}}function fy(e,t,n,r,i,s,o){let a=r[vt],l=Fe(r);a!==l&&At(t,e,n,s,a,i,o);for(let u=ce;u<r.length;u++){let c=r[u];gi(c[_],c,e,t,s,a)}}function py(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let s=r.indexOf("-")===-1?void 0:ht.DashCase;i==null?e.removeStyle(n,r,s):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),s|=ht.Important),e.setStyle(n,r,i,s))}}function Ed(e,t,n,r,i){let s=Kt(),o=r&2;try{bt(-1),o&&t.length>he&&vd(e,t,he,!1),B(o?2:0,i,n),n(r,i)}finally{bt(s),B(o?3:1,i,n)}}function mi(e,t,n){Cy(e,t,n),(n.flags&64)===64&&wy(e,t,n)}function vi(e,t,n=He){let r=t.localNames;if(r!==null){let i=t.index+1;for(let s=0;s<r.length;s+=2){let o=r[s+1],a=o===-1?n(t,e):e[o];e[i++]=a}}}function gy(e,t,n,r){let i=r.get(Rm,Xc)||n===Ct.ShadowDom,s=e.selectRootElement(t,i);return my(s),s}function my(e){vy(e)}var vy=()=>null;function yy(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Td(e,t,n,r,i,s){let o=t[_];if(Uo(e,o,t,n,r)){Yt(e)&&by(t,e.index);return}e.type&3&&(n=yy(n)),Md(e,t,n,r,i,s)}function Md(e,t,n,r,i,s){if(e.type&3){let o=He(e,t);r=s!=null?s(r,e.value||"",n):r,i.setProperty(o,n,r)}else e.type&12}function by(e,t){let n=Le(t,e);n[x]&16||(n[x]|=64)}function Cy(e,t,n){let r=n.directiveStart,i=n.directiveEnd;Yt(n)&&Bv(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||$r(n,t);let s=n.initialInputs;for(let o=r;o<i;o++){let a=e.data[o],l=In(t,e,o,n);if(qt(l,t),s!==null&&Sy(t,o-r,l,a,n,s),Qe(a)){let u=Le(n.index,t);u[ae]=In(t,e,o,n)}}}function wy(e,t,n){let r=n.directiveStart,i=n.directiveEnd,s=n.index,o=Ug();try{bt(s);for(let a=r;a<i;a++){let l=e.data[a],u=t[a];gs(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&_y(l,u)}}finally{bt(-1),gs(o)}}function _y(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Ho(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let s=n[i];Vv(t,s.selectors,!1)&&(r??=[],Qe(s)?r.unshift(s):r.push(s))}return r}function xy(e,t,n,r,i,s){let o=He(e,t);ky(t[Z],o,s,e.value,n,r,i)}function ky(e,t,n,r,i,s,o){if(s==null)e.removeAttribute(t,i,n);else{let a=o==null?ii(s):o(s,r||"",i);e.setAttribute(t,i,a,n)}}function Sy(e,t,n,r,i,s){let o=s[t];if(o!==null)for(let a=0;a<o.length;a+=2){let l=o[a],u=o[a+1];_s(r,n,l,u)}}function zo(e,t,n,r,i){let s=he+n,o=t[_],a=i(o,t,e,r,n);t[s]=a,Ln(e,!0);let l=e.type===2;return l?(hd(t[Z],a,e),(Vg()===0||Fn(e))&&qt(a,t),Ng()):qt(a,t),xo()&&(!l||!ed(e))&&Lo(o,t,a,e),e}function Bo(e){let t=e;return fc()?Lg():(t=t.parent,Ln(t,!1)),t}function Oy(e,t){let n=e[gt];if(!n)return;let r;try{r=n.get(ot,null)}catch{r=null}r?.(t)}function Uo(e,t,n,r,i){let s=e.inputs?.[r],o=e.hostDirectiveInputs?.[r],a=!1;if(o)for(let l=0;l<o.length;l+=2){let u=o[l],c=o[l+1],d=t.data[u];_s(d,n[u],c,i),a=!0}if(s)for(let l of s){let u=n[l],c=t.data[l];_s(c,u,r,i),a=!0}return a}function Ey(e,t){let n=Le(t,e),r=n[_];Ty(r,n);let i=n[Ye];i!==null&&n[Nr]===null&&(n[Nr]=td(i,n[gt])),B(18),$o(r,n,n[ae]),B(19,n[ae])}function Ty(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function $o(e,t,n){wo(t);try{let r=e.viewQuery;r!==null&&ws(1,r,n);let i=e.template;i!==null&&Ed(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[We]?.finishViewCreation(e),e.staticContentQueries&&nd(e,t),e.staticViewQueries&&ws(2,e.viewQuery,n);let s=e.components;s!==null&&My(t,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[x]&=-5,_o()}}function My(e,t){for(let n=0;n<t.length;n++)Ey(e,t[n])}function Iy(e,t,n,r){let i=I(null);try{let s=t.tView,o=e[x]&4096?4096:16,a=Po(e,s,n,o,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];a[mt]=l;let u=e[We];return u!==null&&(a[We]=u.createEmbeddedView(s)),$o(s,a,n),a}finally{I(i)}}function el(e,t){return!t||t.firstChild===null||Uc(e)}function Wr(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let s=t[n.index];s!==null&&r.push(Fe(s)),Je(s)&&Py(s,r);let o=n.type;if(o&8)Wr(e,t,n.child,r);else if(o&32){let a=Ao(n,t),l;for(;l=a();)r.push(l)}else if(o&16){let a=Od(t,n);if(Array.isArray(a))r.push(...a);else{let l=yt(t[Re]);Wr(l[_],l,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function Py(e,t){for(let n=ce;n<e.length;n++){let r=e[n],i=r[_].firstChild;i!==null&&Wr(r[_],r,i,t)}e[vt]!==e[Ye]&&t.push(e[vt])}function Id(e){if(e[Ri]!==null){for(let t of e[Ri])t.impl.addSequence(t);e[Ri].length=0}}var Pd=[];function Dy(e){return e[ve]??Ay(e)}function Ay(e){let t=Pd.pop()??Object.create(Ny);return t.lView=e,t}function Vy(e){e.lView[ve]!==e&&(e.lView=null,Pd.push(e))}var Ny=N(M({},ti),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{ai(e.lView)},consumerOnSignalRead(){this.lView[ve]=this}});function Ry(e){let t=e[ve]??Object.create(Fy);return t.lView=e,t}var Fy=N(M({},ti),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=yt(e.lView);for(;t&&!Dd(t[_]);)t=yt(t);t&&yo(t)},consumerOnSignalRead(){this.lView[ve]=this}});function Dd(e){return e.type!==2}function Ad(e){if(e[Fr]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Fr])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[x]&8192)}}var Ly=100;function Vd(e,t=0){let n=e[Ge].rendererFactory,r=!1;r||n.begin?.();try{jy(e,t)}finally{r||n.end?.()}}function jy(e,t){let n=pc();try{Pa(!0),Os(e,t);let r=0;for(;Mn(e);){if(r===Ly)throw new w(103,!1);r++,Os(e,1)}}finally{Pa(n)}}function Hy(e,t,n,r){if(Jt(t))return;let i=t[x],s=!1,o=!1;wo(t);let a=!0,l=null,u=null;s||(Dd(e)?(u=Dy(t),l=ss(u)):Of()===null?(a=!1,u=Ry(t),l=ss(u)):t[ve]&&(Kl(t[ve]),t[ve]=null));try{sc(t),jg(e.bindingStartIndex),n!==null&&Ed(e,t,n,2,r);let c=(i&3)===3;if(!s)if(c){let h=e.preOrderCheckHooks;h!==null&&fr(t,h,null)}else{let h=e.preOrderHooks;h!==null&&pr(t,h,0,null),Fi(t,0)}if(o||zy(t),Ad(t),Nd(t,0),e.contentQueries!==null&&nd(e,t),!s)if(c){let h=e.contentCheckHooks;h!==null&&fr(t,h)}else{let h=e.contentHooks;h!==null&&pr(t,h,1),Fi(t,1)}Uy(e,t);let d=e.components;d!==null&&Fd(t,d,0);let f=e.viewQuery;if(f!==null&&ws(2,f,r),!s)if(c){let h=e.viewCheckHooks;h!==null&&fr(t,h)}else{let h=e.viewHooks;h!==null&&pr(t,h,2),Fi(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ni]){for(let h of t[Ni])h();t[Ni]=null}s||(Id(t),t[x]&=-73)}catch(c){throw s||ai(t),c}finally{u!==null&&(Yl(u,l),a&&Vy(u)),_o()}}function Nd(e,t){for(let n=qc(e);n!==null;n=Gc(n))for(let r=ce;r<n.length;r++){let i=n[r];Rd(i,t)}}function zy(e){for(let t=qc(e);t!==null;t=Gc(t)){if(!(t[x]&2))continue;let n=t[Ut];for(let r=0;r<n.length;r++){let i=n[r];yo(i)}}}function By(e,t,n){B(18);let r=Le(t,e);Rd(r,n),B(19,r[ae])}function Rd(e,t){vo(e)&&Os(e,t)}function Os(e,t){let n=e[_],r=e[x],i=e[ve],s=!!(t===0&&r&16);if(s||=!!(r&64&&t===0),s||=!!(r&1024),s||=!!(i?.dirty&&Jl(i)),s||=!1,i&&(i.dirty=!1),e[x]&=-9217,s)Hy(n,e,n.template,e[ae]);else if(r&8192){let o=I(null);try{Ad(e),Nd(e,1);let a=n.components;a!==null&&Fd(e,a,1),Id(e)}finally{I(o)}}}function Fd(e,t,n){for(let r=0;r<t.length;r++)By(e,t[r],n)}function Uy(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)bt(~i);else{let s=i,o=n[++r],a=n[++r];Bg(o,s);let l=t[s];B(24,l),a(2,l),B(25,l)}}}finally{bt(-1)}}function Zo(e,t){let n=pc()?64:1088;for(e[Ge].changeDetectionScheduler?.notify(t);e;){e[x]|=n;let r=yt(e);if(Hr(e)&&!r)return e;e=r}return null}function Ld(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function $y(e,t,n,r=!0){let i=t[_];if(Zy(i,t,e,n),r){let o=Ss(n,e),a=t[Z],l=a.parentNode(e[vt]);l!==null&&ny(i,e[Te],a,t,l,o)}let s=t[Nr];s!==null&&s.firstChild!==null&&(s.firstChild=null)}function Es(e,t){if(e.length<=ce)return;let n=ce+t,r=e[n];if(r){let i=r[mt];i!==null&&i!==e&&Fo(i,r),t>0&&(e[n-1][Se]=r[Se]);let s=Vr(e,ce+t);ty(r[_],r);let o=s[We];o!==null&&o.detachView(s[_]),r[ne]=null,r[Se]=null,r[x]&=-129}return r}function Zy(e,t,n,r){let i=ce+r,s=n.length;r>0&&(n[i-1][Se]=t),r<s-ce?(t[Se]=n[i],$u(n,ce+r,t)):(n.push(t),t[Se]=null),t[ne]=n;let o=t[mt];o!==null&&n!==o&&jd(o,t);let a=t[We];a!==null&&a.insertView(e),fs(t),t[x]|=128}function jd(e,t){let n=e[Ut],r=t[ne];if(it(r))e[x]|=2;else{let i=r[ne][Re];t[Re]!==i&&(e[x]|=2)}n===null?e[Ut]=[t]:n.push(t)}var Pn=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let e=this._lView,t=e[_];return Wr(t,e,t.firstChild,[])}constructor(e,t){this._lView=e,this._cdRefInjectingView=t}get context(){return this._lView[ae]}set context(e){this._lView[ae]=e}get destroyed(){return Jt(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[ne];if(Je(e)){let t=e[jr],n=t?t.indexOf(this):-1;n>-1&&(Es(e,n),Vr(t,n))}this._attachedToViewContainer=!1}Sd(this._lView[_],this._lView)}onDestroy(e){oc(this._lView,e)}markForCheck(){Zo(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[x]&=-129}reattach(){fs(this._lView),this._lView[x]|=128}detectChanges(){this._lView[x]|=1024,Vd(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Hr(this._lView),t=this._lView[mt];t!==null&&!e&&Fo(t,this._lView),kd(this._lView[_],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=e;let t=Hr(this._lView),n=this._lView[mt];n!==null&&!t&&jd(n,this._lView),fs(this._lView)}};function qy(e){return Mn(e._lView)||!!(e._lView[x]&64)}function Gy(e){yo(e._lView)}var wt=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=Wy;constructor(n,r,i){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,i){let s=Iy(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:i});return new Pn(s)}}return e})();function Wy(){return qo(oe(),V())}function qo(e,t){return e.type&4?new wt(t,e,en(e,t)):null}function yi(e,t,n,r,i){let s=e.data[t];if(s===null)s=Qy(e,t,n,r,i),zg()&&(s.flags|=32);else if(s.type&64){s.type=n,s.value=r,s.attrs=i;let o=Fg();s.injectorIndex=o===null?-1:o.injectorIndex}return Ln(s,!0),s}function Qy(e,t,n,r,i){let s=hc(),o=fc(),a=o?s:s&&s.parent,l=e.data[t]=Jy(e,a,n,t,r,i);return Yy(e,l,s,o),l}function Yy(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 Jy(e,t,n,r,i,s){let o=t?t.injectorIndex:-1,a=0;return Rg()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:s,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}}var U_=new RegExp(`^(\\d+)*(${Nm}|${Vm})*(.*)`),Ky=()=>null;function tl(e,t){return Ky(e,t)}var Xy=class{},Hd=class{},e0=class{resolveComponentFactory(e){throw new w(917,!1)}},$n=class{static NULL=new e0},Go=class{},zd=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>t0()}return e})();function t0(){let e=V(),t=oe(),n=Le(t.index,e);return(it(n)?n:e)[Z]}var n0=(()=>{class e{static \u0275prov=O({token:e,providedIn:"root",factory:()=>null})}return e})(),Hi={},r0=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){let r=this.injector.get(e,Hi,n);return r!==Hi||t===Hi?r:this.parentInjector.get(e,t,n)}};function Qr(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,s=0;if(t!==null)for(let o=0;o<t.length;o++){let a=t[o];if(typeof a=="number")s=a;else if(s==1)i=Sa(i,a);else if(s==2){let l=a,u=t[++o];r=Sa(r,l+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function j(e,t=0){let n=V();if(n===null)return C(e,t);let r=oe();return jc(r,n,ie(e),t)}function Bd(e,t,n,r,i){let s=r===null?null:{"":-1},o=i(e,n);if(o!==null){let a=o,l=null,u=null;for(let c of o)if(c.resolveHostDirectives!==null){[a,l,u]=c.resolveHostDirectives(o);break}o0(e,t,n,a,s,l,u)}s!==null&&r!==null&&i0(n,r,s)}function i0(e,t,n){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let s=n[t[i+1]];if(s==null)throw new w(-301,!1);r.push(t[i],s)}}function s0(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function o0(e,t,n,r,i,s,o){let a=r.length,l=!1;for(let f=0;f<a;f++){let h=r[f];!l&&Qe(h)&&(l=!0,s0(e,n,f)),vs($r(n,t),e,h.type)}h0(n,e.data.length,a);for(let f=0;f<a;f++){let h=r[f];h.providersResolver&&h.providersResolver(h)}let u=!1,c=!1,d=md(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let f=0;f<a;f++){let h=r[f];if(n.mergedAttrs=Zt(n.mergedAttrs,h.hostAttrs),l0(e,n,t,d,h),d0(d,h,i),o!==null&&o.has(h)){let[m,b]=o.get(h);n.directiveToIndex.set(h.type,[d,m+n.directiveStart,b+n.directiveStart])}else(s===null||!s.has(h))&&n.directiveToIndex.set(h.type,d);h.contentQueries!==null&&(n.flags|=4),(h.hostBindings!==null||h.hostAttrs!==null||h.hostVars!==0)&&(n.flags|=64);let p=h.type.prototype;!u&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!c&&(p.ngOnChanges||p.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),c=!0),d++}a0(e,n,s)}function a0(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))nl(0,t,i,r),nl(1,t,i,r),il(t,r,!1);else{let s=n.get(i);rl(0,t,s,r),rl(1,t,s,r),il(t,r,!0)}}}function nl(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let s in i)if(i.hasOwnProperty(s)){let o;e===0?o=t.inputs??={}:o=t.outputs??={},o[s]??=[],o[s].push(r),Ud(t,s)}}function rl(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let s in i)if(i.hasOwnProperty(s)){let o=i[s],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[o]??=[],a[o].push(r,s),Ud(t,o)}}function Ud(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function il(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:s}=e;if(r===null||!n&&i===null||n&&s===null||Mo(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let o=null,a=0;for(;a<r.length;){let l=r[a];if(l===0){a+=4;continue}else if(l===5){a+=2;continue}else if(typeof l=="number")break;if(!n&&i.hasOwnProperty(l)){let u=i[l];for(let c of u)if(c===t){o??=[],o.push(l,r[a+1]);break}}else if(n&&s.hasOwnProperty(l)){let u=s[l];for(let c=0;c<u.length;c+=2)if(u[c]===t){o??=[],o.push(u[c+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(o)}function l0(e,t,n,r,i){e.data[r]=i;let s=i.factory||(i.factory=Ht(i.type,!0)),o=new Bn(s,Qe(i),j,null);e.blueprint[r]=o,n[r]=o,u0(e,t,r,md(e,n,i.hostVars,Et),i)}function u0(e,t,n,r,i){let s=i.hostBindings;if(s){let o=e.hostBindingOpCodes;o===null&&(o=e.hostBindingOpCodes=[]);let a=~t.index;c0(o)!=a&&o.push(a),o.push(n,r,s)}}function c0(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function d0(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Qe(t)&&(n[""]=e)}}function h0(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Wo(e,t,n,r,i,s,o,a){let l=t[_],u=l.consts,c=$t(u,o),d=yi(l,e,n,r,c);return s&&Bd(l,t,d,$t(u,a),i),d.mergedAttrs=Zt(d.mergedAttrs,d.attrs),d.attrs!==null&&Qr(d,d.attrs,!1),d.mergedAttrs!==null&&Qr(d,d.mergedAttrs,!0),l.queries!==null&&l.queries.elementStart(l,d),d}function Qo(e,t){Pc(e,t),tc(t)&&e.queries.elementEnd(t)}function f0(e,t,n,r,i,s){let o=t.consts,a=$t(o,i),l=yi(t,e,n,r,a);if(l.mergedAttrs=Zt(l.mergedAttrs,l.attrs),s!=null){let u=$t(o,s);l.localNames=[];for(let c=0;c<u.length;c+=2)l.localNames.push(u[c],-1)}return l.attrs!==null&&Qr(l,l.attrs,!1),l.mergedAttrs!==null&&Qr(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function $d(e){return g0(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function p0(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function g0(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function nn(e,t,n){if(n===Et)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function mr(e,t,n){return function r(i){let s=Yt(e)?Le(e.index,t):t;Zo(s,5);let o=t[ae],a=sl(t,o,n,i),l=r.__ngNextListenerFn__;for(;l;)a=sl(t,o,l,i)&&a,l=l.__ngNextListenerFn__;return a}}function sl(e,t,n,r){let i=I(null);try{return B(6,t,n),n(r)!==!1}catch(s){return Oy(e,s),!1}finally{B(7,t,n),I(i)}}function Zd(e,t,n,r,i,s,o,a){let l=Fn(e),u=!1,c=null;if(!r&&l&&(c=v0(t,n,s,e.index)),c!==null){let d=c.__ngLastListenerFn__||c;d.__ngNextListenerFn__=o,c.__ngLastListenerFn__=o,u=!0}else{let d=He(e,n),f=r?r(d):d;Lm(n,f,s,a);let h=i.listen(f,s,a);if(!m0(s)){let p=r?m=>r(Fe(m[e.index])):e.index;qd(p,t,n,s,a,h,!1)}}return u}function m0(e){return e.startsWith("animation")||e.startsWith("transition")}function v0(e,t,n,r){let i=e.cleanup;if(i!=null)for(let s=0;s<i.length-1;s+=2){let o=i[s];if(o===n&&i[s+1]===r){let a=t[Rr],l=i[s+2];return a&&a.length>l?a[l]:null}typeof o=="string"&&(s+=2)}return null}function qd(e,t,n,r,i,s,o){let a=t.firstCreatePass?lc(t):null,l=ac(n),u=l.length;l.push(i,s),a&&a.push(r,e,u,(u+1)*(o?-1:1))}function ol(e,t,n,r,i,s){let o=t[n],a=t[_],l=a.data[n].outputs[r],u=o[l].subscribe(s);qd(e.index,a,t,i,s,u,!0)}var Ts=Symbol("BINDING"),y0=class extends $n{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let t=En(e);return new Gd(t,this.ngModule)}};function b0(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],s={propName:n,templateName:t,isSignal:(r&pi.SignalBased)!==0};return i&&(s.transform=i),s})}function C0(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function w0(e,t,n){let r=t instanceof qe?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new r0(n,r):n}function _0(e){let t=e.get(Go,null);if(t===null)throw new w(407,!1);let n=e.get(n0,null),r=e.get(zn,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function x0(e,t){let n=k0(e);return cd(t,n,n==="svg"?nc:n==="math"?Tg:null)}function k0(e){return(e.selectors[0][0]||"div").toLowerCase()}var Gd=class extends Hd{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=b0(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=C0(this.componentDef.outputs),this.cachedOutputs}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=Lv(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,r,i,s){B(22);let o=I(null);try{let a=this.componentDef,l=S0(n,a,s,i),u=w0(a,r||this.ngModule,e),c=_0(u),d=c.rendererFactory.createRenderer(null,a),f=n?gy(d,n,a.encapsulation,u):x0(a,d),h=s?.some(al)||i?.some(b=>typeof b!="function"&&b.bindings.some(al)),p=Po(null,l,null,512|gd(a),null,null,c,d,u,null,td(f,u,!0));p[he]=f,wo(p);let m=null;try{let b=Wo(he,p,2,"#host",()=>l.directiveRegistry,!0,0);hd(d,f,b),qt(f,p),mi(l,p,b),To(l,b,p),Qo(l,b),t!==void 0&&T0(b,this.ngContentSelectors,t),m=Le(b.index,p),p[ae]=m[ae],$o(l,p,null)}catch(b){throw m!==null&&bs(m),bs(p),b}finally{B(23),_o()}return new E0(this.componentType,p,!!h)}finally{I(o)}}};function S0(e,t,n,r){let i=e?["ng-version","20.3.15"]:jv(t.selectors[0]),s=null,o=null,a=0;if(n)for(let u of n)a+=u[Ts].requiredVars,u.create&&(u.targetIdx=0,(s??=[]).push(u)),u.update&&(u.targetIdx=0,(o??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let c=r[u];if(typeof c!="function")for(let d of c.bindings){a+=d[Ts].requiredVars;let f=u+1;d.create&&(d.targetIdx=f,(s??=[]).push(d)),d.update&&(d.targetIdx=f,(o??=[]).push(d))}}let l=[t];if(r)for(let u of r){let c=typeof u=="function"?u:u.type,d=Wu(c);l.push(d)}return Io(0,null,O0(s,o),1,a,l,null,null,null,[i],null)}function O0(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 al(e){let t=e[Ts].kind;return t==="input"||t==="twoWay"}var E0=class extends Xy{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t,n){super(),this._rootLView=t,this._hasInputBindings=n,this._tNode=ic(t[_],he),this.location=en(this._tNode,t),this.instance=Le(this._tNode.index,t)[ae],this.hostView=this.changeDetectorRef=new Pn(t,void 0),this.componentType=e}setInput(e,t){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),t))return;let r=this._rootLView,i=Uo(n,r[_],r,e,t);this.previousInputValues.set(e,t);let s=Le(n.index,r);Zo(s,1)}get injector(){return new yn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function T0(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let s=n[i];r.push(s!=null&&s.length?Array.from(s):null)}}var rn=(()=>{class e{static __NG_ELEMENT_ID__=M0}return e})();function M0(){let e=oe();return Qd(e,V())}var I0=rn,Wd=class extends I0{_lContainer;_hostTNode;_hostLView;constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return en(this._hostTNode,this._hostLView)}get injector(){return new yn(this._hostTNode,this._hostLView)}get parentInjector(){let e=Oo(this._hostTNode,this._hostLView);if(Ac(e)){let t=Ur(e,this._hostLView),n=Br(e),r=t[_].data[n+8];return new yn(r,t)}else return new yn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let t=ll(this._lContainer);return t!==null&&t[e]||null}get length(){return this._lContainer.length-ce}createEmbeddedView(e,t,n){let r,i;typeof n=="number"?r=n:n!=null&&(r=n.index,i=n.injector);let s=tl(this._lContainer,e.ssrId),o=e.createEmbeddedViewImpl(t||{},i,s);return this.insertImpl(o,r,el(this._hostTNode,s)),o}createComponent(e,t,n,r,i,s,o){let a=e&&!sm(e),l;if(a)l=t;else{let m=t||{};l=m.index,n=m.injector,r=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef,s=m.directives,o=m.bindings}let u=a?e:new Gd(En(e)),c=n||this.parentInjector;if(!i&&u.ngModule==null){let m=(a?c:this.parentInjector).get(qe,null);m&&(i=m)}let d=En(u.componentType??{}),f=tl(this._lContainer,d?.id??null),h=f?.firstChild??null,p=u.create(c,r,h,i,s,o);return this.insertImpl(p.hostView,l,el(this._hostTNode,f)),p}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(e,t,n){let r=e._lView;if(Ig(r)){let o=this.indexOf(e);if(o!==-1)this.detach(o);else{let a=r[ne],l=new Wd(a,a[Te],a[ne]);l.detach(l.indexOf(e))}}let i=this._adjustIndex(t),s=this._lContainer;return $y(s,r,i,n),e.attachToViewContainerRef(),$u(zi(s),i,e),e}move(e,t){return this.insert(e,t)}indexOf(e){let t=ll(this._lContainer);return t!==null?t.indexOf(e):-1}remove(e){let t=this._adjustIndex(e,-1),n=Es(this._lContainer,t);n&&(Vr(zi(this._lContainer),t),Sd(n[_],n))}detach(e){let t=this._adjustIndex(e,-1),n=Es(this._lContainer,t);return n&&Vr(zi(this._lContainer),t)!=null?new Pn(n):null}_adjustIndex(e,t=0){return e??this.length+t}};function ll(e){return e[jr]}function zi(e){return e[jr]||(e[jr]=[])}function Qd(e,t){let n,r=t[e.index];return Je(r)?n=r:(n=Ld(r,t,null,e),t[e.index]=n,Do(t,n)),D0(n,t,e,r),new Wd(n,e,t)}function P0(e,t){let n=e[Z],r=n.createComment(""),i=He(t,e),s=n.parentNode(i);return Zr(n,s,r,n.nextSibling(i),!1),r}var D0=N0,A0=()=>!1;function V0(e,t,n){return A0(e,t,n)}function N0(e,t,n,r){if(e[vt])return;let i;n.type&8?i=Fe(r):i=P0(t,n),e[vt]=i}var R0=class Yd{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new Yd(this.queryList)}setDirty(){this.queryList.setDirty()}},F0=class Jd{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,i=[];for(let s=0;s<r;s++){let o=n.getByIndex(s),a=this.queries[o.indexInDeclarationView];i.push(a.clone())}return new Jd(i)}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++)Yo(t,n).matches!==null&&this.queries[n].setDirty()}},L0=class{flags;read;predicate;constructor(e,t,n=null){this.flags=t,this.read=n,typeof e=="string"?this.predicate=W0(e):this.predicate=e}},j0=class Kd{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 i=n!==null?n.length:0,s=this.getByIndex(r).embeddedTView(t,i);s&&(s.indexInDeclarationView=r,n!==null?n.push(s):n=[s])}return n!==null?new Kd(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)}},H0=class Xd{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 Xd(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 i=0;i<r.length;i++){let s=r[i];this.matchTNodeWithReadOption(t,n,z0(n,s)),this.matchTNodeWithReadOption(t,n,gr(n,t,s,!1,!1))}else r===wt?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,gr(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===tn||i===rn||i===wt&&n.type&4)this.addMatch(n.index,-2);else{let s=gr(n,t,i,!1,!1);s!==null&&this.addMatch(n.index,s)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function z0(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 B0(e,t){return e.type&11?en(e,t):e.type&4?qo(e,t):null}function U0(e,t,n,r){return n===-1?B0(t,e):n===-2?$0(e,t,r):In(e,e[_],n,t)}function $0(e,t,n){if(n===tn)return en(t,e);if(n===wt)return qo(t,e);if(n===rn)return Qd(t,e)}function eh(e,t,n,r){let i=t[We].queries[r];if(i.matches===null){let s=e.data,o=n.matches,a=[];for(let l=0;o!==null&&l<o.length;l+=2){let u=o[l];if(u<0)a.push(null);else{let c=s[u];a.push(U0(t,c,o[l+1],n.metadata.read))}}i.matches=a}return i.matches}function Ms(e,t,n,r){let i=e.queries.getByIndex(n),s=i.matches;if(s!==null){let o=eh(e,t,i,n);for(let a=0;a<s.length;a+=2){let l=s[a];if(l>0)r.push(o[a/2]);else{let u=s[a+1],c=t[-l];for(let d=ce;d<c.length;d++){let f=c[d];f[mt]===f[ne]&&Ms(f[_],f,u,r)}if(c[Ut]!==null){let d=c[Ut];for(let f=0;f<d.length;f++){let h=d[f];Ms(h[_],h,u,r)}}}}}return r}function Z0(e,t){return e[We].queries[t].queryList}function q0(e,t,n){let r=new Tm((n&4)===4);return Ag(e,t,r,r.destroy),(t[We]??=new F0).queries.push(new R0(r))-1}function G0(e,t,n){let r=ee();return r.firstCreatePass&&(Q0(r,new L0(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),q0(r,V(),t)}function W0(e){return e.split(",").map(t=>t.trim())}function Q0(e,t,n){e.queries===null&&(e.queries=new j0),e.queries.track(new H0(t,n))}function Yo(e,t){return e.queries.getByIndex(t)}function Y0(e,t){let n=e[_],r=Yo(n,t);return r.crossesNgTemplate?Ms(n,e,t,[]):eh(n,e,r,t)}var Is=class{},th=class extends Is{injector;componentFactoryResolver=new y0(this);instance=null;constructor(e){super();let t=new go([...e.providers,{provide:Is,useValue:this},{provide:$n,useValue:this.componentFactoryResolver}],e.parent||po(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function J0(e,t,n=null){return new th({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var K0=(()=>{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=Qu(!1,n.type),i=r.length>0?J0([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=O({token:e,providedIn:"environment",factory:()=>new e(C(qe))})}return e})();function Me(e){return di(()=>{let t=nh(e),n=N(M({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===$c.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(K0).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ct.Emulated,styles:e.styles||me,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&bd("NgStandalone"),rh(n);let r=e.dependencies;return n.directiveDefs=ul(r,X0),n.pipeDefs=ul(r,gg),n.id=r1(n),n})}function X0(e){return En(e)||Wu(e)}function bi(e){return di(()=>({type:e.type,bootstrap:e.bootstrap||me,declarations:e.declarations||me,imports:e.imports||me,exports:e.exports||me,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function e1(e,t){if(e==null)return pt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],s,o,a,l;Array.isArray(i)?(a=i[0],s=i[1],o=i[2]??s,l=i[3]||null):(s=i,o=i,a=pi.None,l=null),n[s]=[r,a,l],t[s]=o}return n}function t1(e){if(e==null)return pt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Ie(e){return di(()=>{let t=nh(e);return rh(t),t})}function n1(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 nh(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||pt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||me,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:e1(e.inputs,t),outputs:t1(e.outputs),debugInfo:null}}function rh(e){e.features?.forEach(t=>t(e))}function ul(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let i of n){let s=t(i);s!==null&&r.push(s)}return r}:null}function r1(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 i1(e){return Object.getPrototypeOf(e.prototype).constructor}function sn(e){let t=i1(e.type),n=!0,r=[e];for(;t;){let i;if(Qe(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new w(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let o=e;o.inputs=Bi(e.inputs),o.declaredInputs=Bi(e.declaredInputs),o.outputs=Bi(e.outputs);let a=i.hostBindings;a&&u1(e,a);let l=i.viewQuery,u=i.contentQueries;if(l&&a1(e,l),u&&l1(e,u),s1(e,i),Gp(e.outputs,i.outputs),Qe(i)&&i.data.animation){let c=e.data;c.animation=(c.animation||[]).concat(i.data.animation)}}let s=i.features;if(s)for(let o=0;o<s.length;o++){let a=s[o];a&&a.ngInherit&&a(e),a===sn&&(n=!1)}}t=Object.getPrototypeOf(t)}o1(r)}function s1(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function o1(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Zt(i.hostAttrs,n=Zt(n,i.hostAttrs))}}function Bi(e){return e===pt?{}:e===me?[]:e}function a1(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function l1(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,s)=>{t(r,i,s),n(r,i,s)}:e.contentQueries=t}function u1(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function c1(e,t,n,r,i,s,o,a){if(n.firstCreatePass){e.mergedAttrs=Zt(e.mergedAttrs,e.attrs);let c=e.tView=Io(2,e,i,s,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),c.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),Ln(e,!1);let l=h1(n,t,e,r);xo()&&Lo(n,t,l,e),qt(l,t);let u=Ld(l,t,l,e);t[r+he]=u,Do(t,u),V0(u,e,t)}function d1(e,t,n,r,i,s,o,a,l,u,c){let d=n+he,f;return t.firstCreatePass?(f=yi(t,d,4,o||null,a||null),bo()&&Bd(t,e,f,$t(t.consts,u),Ho),Pc(t,f)):f=t.data[d],c1(f,e,t,n,r,i,s,l),Fn(f)&&mi(t,e,f),u!=null&&vi(e,f,c),f}function pe(e,t,n,r,i,s,o,a){let l=V(),u=ee(),c=$t(u.consts,s);return d1(l,u,e,t,n,r,i,c,void 0,o,a),pe}var h1=f1;function f1(e,t,n,r){return ui(!0),t[Z].createComment("")}var p1=new k("");function Jo(e){return!!e&&typeof e.then=="function"}function g1(e){return!!e&&typeof e.subscribe=="function"}var ih=new k(""),sh=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=v(ih,{optional:!0})??[];injector=v(ci);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let s=mo(this.injector,i);if(Jo(s))n.push(s);else if(g1(s)){let o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});n.push(o)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(n){return new(n||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),m1=new k("");function v1(){Nf(()=>{let e="";throw new w(600,e)})}function y1(e){return e.isBoundToModule}var b1=10,Dn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=v(ot);afterRenderManager=v(Kv);zonelessEnabled=v(So);rootEffectScheduler=v(rm);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new st;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=v(Xt);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(ke(n=>!n))}constructor(){v(Vo,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=v(qe);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,i=ci.NULL){return this._injector.get(se).run(()=>{B(10);let s=n instanceof Hd;if(!this._injector.get(sh).done){let f="";throw new w(405,f)}let o;s?o=n:o=this._injector.get($n).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let a=y1(o)?void 0:this._injector.get(Is),l=r||o.selector,u=o.create(i,[],l,a),c=u.location.nativeElement,d=u.injector.get(p1,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),vr(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),B(11,u),u})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){B(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(yd.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new w(101,!1);let n=I(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,I(n),this.afterTick.next(),B(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Go,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<b1;)B(14),this.synchronizeOnce(),B(15)}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:i}of this.allViews){if(!r&&!Mn(i))continue;let s=r&&!this.zonelessEnabled?0:1;Vd(i,s),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})=>Mn(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;vr(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(r){this.internalErrorHandler(r)}this.components.push(n),this._injector.get(m1,[]).forEach(r=>r(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),()=>vr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new w(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function vr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ko(e,t,n,r){let i=V(),s=jn();if(nn(i,s,t)){let o=ee(),a=li();xy(a,i,e,t,n,r)}return Ko}var $_=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function P(e,t,n){let r=V(),i=jn();if(nn(r,i,t)){let s=ee(),o=li();Td(o,r,e,t,r[Z],n)}return P}function cl(e,t,n,r,i){Uo(t,e,n,i?"class":"style",r)}function g(e,t,n,r){let i=V(),s=i[_],o=e+he,a=s.firstCreatePass?Wo(o,i,2,t,Ho,bo(),n,r):s.data[o];if(zo(a,i,e,t,ah),Fn(a)){let l=i[_];mi(l,i,a),To(l,a,i)}return r!=null&&vi(i,a),g}function y(){let e=ee(),t=oe(),n=Bo(t);return e.firstCreatePass&&Qo(e,n),cc(n)&&dc(),uc(),n.classesWithoutHost!=null&&hm(n)&&cl(e,n,V(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&fm(n)&&cl(e,n,V(),n.stylesWithoutHost,!1),y}function U(e,t,n,r){return g(e,t,n,r),y(),U}function Xo(e,t,n,r){let i=V(),s=i[_],o=e+he,a=s.firstCreatePass?f0(o,s,2,t,n,r):s.data[o];return zo(a,i,e,t,ah),r!=null&&vi(i,a),Xo}function ea(){let e=oe(),t=Bo(e);return cc(t)&&dc(),uc(),ea}function oh(e,t,n,r){return Xo(e,t,n,r),ea(),oh}var ah=(e,t,n,r,i)=>(ui(!0),cd(t[Z],r,Wg()));function lh(e,t,n){let r=V(),i=r[_],s=e+he,o=i.firstCreatePass?Wo(s,r,8,"ng-container",Ho,bo(),t,n):i.data[s];if(zo(o,r,e,"ng-container",C1),Fn(o)){let a=r[_];mi(a,r,o),To(a,o,r)}return n!=null&&vi(r,o),lh}function uh(){let e=ee(),t=oe(),n=Bo(t);return e.firstCreatePass&&Qo(e,n),uh}var C1=(e,t,n,r,i)=>(ui(!0),kv(t[Z],""));function on(){return V()}function ch(e,t,n){let r=V(),i=jn();if(nn(r,i,t)){let s=ee(),o=li();Md(o,r,e,t,r[Z],n)}return ch}var Jn=void 0;function w1(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var _1=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Jn,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Jn,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Jn,"{1} 'at' {0}",Jn],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",w1],Ui={};function Pe(e){let t=x1(e),n=dl(t);if(n)return n;let r=t.split("-")[0];if(n=dl(r),n)return n;if(r==="en")return _1;throw new w(701,!1)}function dl(e){return e in Ui||(Ui[e]=tt.ng&&tt.ng.common&&tt.ng.common.locales&&tt.ng.common.locales[e]),Ui[e]}var Y=(function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e})(Y||{});function x1(e){return e.toLowerCase().replace(/_/g,"-")}var Yr="en-US",k1=Yr;function S1(e){typeof e=="string"&&(k1=e.toLowerCase().replace(/_/g,"-"))}function T(e,t,n){let r=V(),i=ee(),s=oe();return hh(i,r,r[Z],s,e,t,n),T}function dh(e,t,n){let r=V(),i=ee(),s=oe();return(s.type&3||n)&&Zd(s,i,r,n,r[Z],e,t,mr(s,r,t)),dh}function hh(e,t,n,r,i,s,o){let a=!0,l=null;if((r.type&3||o)&&(l??=mr(r,t,s),Zd(r,e,t,o,n,i,s,l)&&(a=!1)),a){let u=r.outputs?.[i],c=r.hostDirectiveOutputs?.[i];if(c&&c.length)for(let d=0;d<c.length;d+=2){let f=c[d],h=c[d+1];l??=mr(r,t,s),ol(r,t,f,h,i,l)}if(u&&u.length)for(let d of u)l??=mr(r,t,s),ol(r,t,d,i,i,l)}}function A(e=1){return qg(e)}function O1(e,t,n){G0(e,t,n)}function E1(e){let t=V(),n=ee(),r=gc();Co(r+1);let i=Yo(n,r);if(e.dirty&&Mg(t)===((i.metadata.flags&2)===2)){if(i.matches===null)e.reset([]);else{let s=Y0(t,r);e.reset(s,Om),e.notifyOnChanges()}return!0}return!1}function T1(){return Z0(V(),gc())}function Kn(e,t){return e<<17|t<<2}function _t(e){return e>>17&32767}function M1(e){return(e&2)==2}function I1(e,t){return e&131071|t<<17}function Ps(e){return e|2}function Gt(e){return(e&131068)>>2}function $i(e,t){return e&-131069|t<<2}function P1(e){return(e&1)===1}function Ds(e){return e|1}function D1(e,t,n,r,i,s){let o=s?t.classBindings:t.styleBindings,a=_t(o),l=Gt(o);e[r]=n;let u=!1,c;if(Array.isArray(n)){let d=n;c=d[1],(c===null||Rn(d,c)>0)&&(u=!0)}else c=n;if(i)if(l!==0){let d=_t(e[a+1]);e[r+1]=Kn(d,a),d!==0&&(e[d+1]=$i(e[d+1],r)),e[a+1]=I1(e[a+1],r)}else e[r+1]=Kn(a,0),a!==0&&(e[a+1]=$i(e[a+1],r)),a=r;else e[r+1]=Kn(l,0),a===0?a=r:e[l+1]=$i(e[l+1],r),l=r;u&&(e[r+1]=Ps(e[r+1])),hl(e,c,r,!0),hl(e,c,r,!1),A1(t,c,e,r,s),o=Kn(a,l),s?t.classBindings=o:t.styleBindings=o}function A1(e,t,n,r,i){let s=i?e.residualClasses:e.residualStyles;s!=null&&typeof t=="string"&&Rn(s,t)>=0&&(n[r+1]=Ds(n[r+1]))}function hl(e,t,n,r){let i=e[n+1],s=t===null,o=r?_t(i):Gt(i),a=!1;for(;o!==0&&(a===!1||s);){let l=e[o],u=e[o+1];V1(l,t)&&(a=!0,e[o+1]=r?Ds(u):Ps(u)),o=r?_t(u):Gt(u)}a&&(e[n+1]=r?Ps(i):Ds(i))}function V1(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Rn(e,t)>=0:!1}function fh(e,t,n){return ph(e,t,n,!1),fh}function Ee(e,t){return ph(e,t,null,!0),Ee}function ph(e,t,n,r){let i=V(),s=ee(),o=Hg(2);if(s.firstUpdatePass&&R1(s,e,o,r),t!==Et&&nn(i,o,t)){let a=s.data[Kt()];z1(s,a,i,i[Z],e,i[o+1]=B1(t,n),r,o)}}function N1(e,t){return t>=e.expandoStartIndex}function R1(e,t,n,r){let i=e.data;if(i[n+1]===null){let s=i[Kt()],o=N1(e,n);U1(s,r)&&t===null&&!o&&(t=!1),t=F1(i,s,t,r),D1(i,s,t,n,o,r)}}function F1(e,t,n,r){let i=$g(e),s=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Zi(null,e,t,n,r),n=An(n,t.attrs,r),s=null);else{let o=t.directiveStylingLast;if(o===-1||e[o]!==i)if(n=Zi(i,e,t,n,r),s===null){let a=L1(e,t,r);a!==void 0&&Array.isArray(a)&&(a=Zi(null,e,t,a[1],r),a=An(a,t.attrs,r),j1(e,t,r,a))}else s=H1(e,t,r)}return s!==void 0&&(r?t.residualClasses=s:t.residualStyles=s),n}function L1(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Gt(r)!==0)return e[_t(r)]}function j1(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[_t(i)]=r}function H1(e,t,n){let r,i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<i;s++){let o=e[s].hostAttrs;r=An(r,o,n)}return An(r,t.attrs,n)}function Zi(e,t,n,r,i){let s=null,o=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<o&&(s=t[a],r=An(r,s.hostAttrs,i),s!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function An(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let s=0;s<t.length;s++){let o=t[s];typeof o=="number"?i=o:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),fg(e,o,n?!0:t[++s]))}return e===void 0?null:e}function z1(e,t,n,r,i,s,o,a){if(!(t.type&3))return;let l=e.data,u=l[a+1],c=P1(u)?fl(l,t,n,i,Gt(u),o):void 0;if(!Jr(c)){Jr(s)||M1(u)&&(s=fl(l,null,n,i,a,o));let d=rc(Kt(),n);py(r,o,d,i,s)}}function fl(e,t,n,r,i,s){let o=t===null,a;for(;i>0;){let l=e[i],u=Array.isArray(l),c=u?l[1]:l,d=c===null,f=n[i+1];f===Et&&(f=d?me:void 0);let h=d?Ai(f,r):c===r?f:void 0;if(u&&!Jr(h)&&(h=Ai(l,r)),Jr(h)&&(a=h,o))return a;let p=e[i+1];i=o?_t(p):Gt(p)}if(t!==null){let l=s?t.residualClasses:t.residualStyles;l!=null&&(a=Ai(l,r))}return a}function Jr(e){return e!==void 0}function B1(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=jt(ct(e)))),e}function U1(e,t){return(e.flags&(t?8:16))!==0}function F(e,t=""){let n=V(),r=ee(),i=e+he,s=r.firstCreatePass?yi(r,i,1,t,null):r.data[i],o=$1(r,n,s,t,e);n[i]=o,xo()&&Lo(r,n,o,s),Ln(s,!1)}var $1=(e,t,n,r,i)=>(ui(!0),_v(t[Z],r));function Z1(e,t,n,r=""){return nn(e,jn(),n)?t+ii(n)+r:Et}function Oe(e){return Vn("",e),Oe}function Vn(e,t,n){let r=V(),i=Z1(r,e,t,n);return i!==Et&&q1(r,Kt(),i),Vn}function q1(e,t,n){let r=rc(t,e);xv(e[Z],r,n)}function ta(e,t,n){xc(t)&&(t=t());let r=V(),i=jn();if(nn(r,i,t)){let s=ee(),o=li();Td(o,r,e,t,r[Z],n)}return ta}function gh(e,t){let n=xc(e);return n&&e.set(t),n}function na(e,t){let n=V(),r=ee(),i=oe();return hh(r,n,n[Z],i,e,t),na}function G1(e,t,n){let r=ee();if(r.firstCreatePass){let i=Qe(e);As(n,r.data,r.blueprint,i,!0),As(t,r.data,r.blueprint,i,!1)}}function As(e,t,n,r,i){if(e=ie(e),Array.isArray(e))for(let s=0;s<e.length;s++)As(e[s],t,n,r,i);else{let s=ee(),o=V(),a=oe(),l=Bt(e)?e:ie(e.provide),u=Ku(e),c=a.providerIndexes&1048575,d=a.directiveStart,f=a.providerIndexes>>20;if(Bt(e)||!e.multi){let h=new Bn(u,i,j,null),p=Gi(l,t,i?c:c+f,d);p===-1?(vs($r(a,o),s,l),qi(s,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(h),o.push(h)):(n[p]=h,o[p]=h)}else{let h=Gi(l,t,c+f,d),p=Gi(l,t,c,c+f),m=h>=0&&n[h],b=p>=0&&n[p];if(i&&!b||!i&&!m){vs($r(a,o),s,l);let D=Y1(i?Q1:W1,n.length,i,r,u,e);!i&&b&&(n[p].providerFactory=D),qi(s,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(D),o.push(D)}else{let D=mh(n[i?p:h],u,!i&&r);qi(s,e,h>-1?h:p,D)}!i&&r&&b&&n[p].componentProviders++}}}function qi(e,t,n,r){let i=Bt(t),s=wg(t);if(i||s){let o=(s?ie(t.useClass):t).prototype.ngOnDestroy;if(o){let a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let l=a.indexOf(n);l===-1?a.push(n,[r,o]):a[l+1].push(r,o)}else a.push(n,o)}}}function mh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Gi(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function W1(e,t,n,r,i){return Vs(this.multi,[])}function Q1(e,t,n,r,i){let s=this.multi,o;if(this.providerFactory){let a=this.providerFactory.componentProviders,l=In(r,r[_],this.providerFactory.index,i);o=l.slice(0,a),Vs(s,o);for(let u=a;u<l.length;u++)o.push(l[u])}else o=[],Vs(s,o);return o}function Vs(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function Y1(e,t,n,r,i,s){let o=new Bn(e,n,j,null);return o.multi=[],o.index=t,o.componentProviders=0,mh(o,i,r&&!n),o}function ra(e,t=[]){return n=>{n.providersResolver=(r,i)=>G1(r,i?i(e):e,t)}}var J1=(()=>{class e{zone=v(se);changeDetectionScheduler=v(zn);applicationRef=v(Dn);applicationErrorHandler=v(ot);_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(n){return new(n||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),K1=new k("",{factory:()=>!1});function vh({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new se(N(M({},yh()),{scheduleInRootZone:n})),[{provide:se,useFactory:e},{provide:zt,multi:!0,useFactory:()=>{let r=v(J1,{optional:!0});return()=>r.initialize()}},{provide:zt,multi:!0,useFactory:()=>{let r=v(eb);return()=>{r.initialize()}}},t===!0?{provide:kc,useValue:!0}:[],{provide:Sc,useValue:n??Cd},{provide:ot,useFactory:()=>{let r=v(se),i=v(qe),s;return o=>{r.runOutsideAngular(()=>{i.destroyed&&!s?setTimeout(()=>{throw o}):(s??=i.get(Hn),s.handleError(o))})}}}]}function X1(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=vh({ngZoneFactory:()=>{let i=yh(e);return i.scheduleInRootZone=n,i.shouldCoalesceEventChangeDetection&&bd("NgZone_CoalesceEvent"),new se(i)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return si([{provide:K1,useValue:!0},{provide:So,useValue:!1},r])}function yh(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var eb=(()=>{class e{subscription=new Ne;initialized=!1;zone=v(se);pendingTasks=v(Xt);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(()=>{se.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{se.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),tb=(()=>{class e{applicationErrorHandler=v(ot);appRef=v(Dn);taskService=v(Xt);ngZone=v(se);zonelessEnabled=v(So);tracing=v(Vo,{optional:!0});disableScheduling=v(kc,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ne;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Gr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(v(Sc,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Qv||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;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,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let i=this.useMicrotaskScheduler?Wa:wd;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Gr+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.taskService.remove(n),this.applicationErrorHandler(r)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Wa(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}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(n){return new(n||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function nb(){return typeof $localize<"u"&&$localize.locale||Yr}var ia=new k("",{providedIn:"root",factory:()=>v(ia,{optional:!0,skipSelf:!0})||nb()});function Tt(e){return $p(e)}function Rt(e,t){return Df(e,t?.equal)}var Z_=class{[Ve];constructor(e){this[Ve]=e}destroy(){this[Ve].destroy()}},rb=new k("");rb.__NG_ELEMENT_ID__=e=>{let t=oe();if(t===null)throw new w(204,!1);if(t.type&2)return t.value;if(e&8)return null;throw new w(204,!1)};var Ns=new k(""),ib=new k("");function dn(e){return!e.moduleRef}function sb(e){let t=dn(e)?e.r3Injector:e.moduleRef.injector,n=t.get(se);return n.run(()=>{dn(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(ot),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:r})}),dn(e)){let s=()=>t.destroy(),o=e.platformInjector.get(Ns);o.add(s),t.onDestroy(()=>{i.unsubscribe(),o.delete(s)})}else{let s=()=>e.moduleRef.destroy(),o=e.platformInjector.get(Ns);o.add(s),e.moduleRef.onDestroy(()=>{vr(e.allPlatformModules,e.moduleRef),i.unsubscribe(),o.delete(s)})}return ab(r,n,()=>{let s=t.get(Xt),o=s.add(),a=t.get(sh);return a.runInitializers(),a.donePromise.then(()=>{let l=t.get(ia,Yr);if(S1(l||Yr),!t.get(ib,!0))return dn(e)?t.get(Dn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(dn(e)){let u=t.get(Dn);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return ob?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{s.remove(o)})})})}var ob;function ab(e,t,n){try{let r=n();return Jo(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var yr=null;function lb(e=[],t){return ci.create({name:t,providers:[{provide:fo,useValue:"platform"},{provide:Ns,useValue:new Set([()=>yr=null])},...e]})}function ub(e=[]){if(yr)return yr;let t=lb(e);return yr=t,v1(),cb(t),t}function cb(e){let t=e.get(Jc,null);mo(e,()=>{t?.forEach(n=>n())})}var db=(()=>{class e{static __NG_ELEMENT_ID__=hb}return e})();function hb(e){return fb(oe(),V(),(e&16)===16)}function fb(e,t,n){if(Yt(e)&&!n){let r=Le(e.index,t);return new Pn(r,r)}else if(e.type&175){let r=t[Re];return new Pn(r,t)}return null}var pb=class{constructor(){}supports(e){return $d(e)}create(e){return new mb(e)}},gb=(e,t)=>t,mb=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(e){this._trackByFn=e||gb}forEachItem(e){let t;for(t=this._itHead;t!==null;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,i=null;for(;t||n;){let s=!n||t&&t.currentIndex<gl(n,r,i)?t:n,o=gl(s,r,i),a=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(t=t._next,s.previousIndex==null)r++;else{i||(i=[]);let l=o-r,u=a-r;if(l!=u){for(let d=0;d<l;d++){let f=d<i.length?i[d]:i[d]=0,h=f+d;u<=h&&h<l&&(i[d]=f+1)}let c=s.previousIndex;i[c]=u-l}}o!==a&&e(s,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;t!==null;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;t!==null;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;t!==null;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;t!==null;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;t!==null;t=t._nextIdentityChange)e(t)}diff(e){if(e==null&&(e=[]),!$d(e))throw new w(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._itHead,n=!1,r,i,s;if(Array.isArray(e)){this.length=e.length;for(let o=0;o<this.length;o++)i=e[o],s=this._trackByFn(o,i),t===null||!Object.is(t.trackById,s)?(t=this._mismatch(t,i,s,o),n=!0):(n&&(t=this._verifyReinsertion(t,i,s,o)),Object.is(t.item,i)||this._addIdentityChange(t,i)),t=t._next}else r=0,p0(e,o=>{s=this._trackByFn(r,o),t===null||!Object.is(t.trackById,s)?(t=this._mismatch(t,o,s,r),n=!0):(n&&(t=this._verifyReinsertion(t,o,s,r)),Object.is(t.item,o)||this._addIdentityChange(t,o)),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let i;return e===null?i=this._itTail:(i=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,r),e!==null?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):e=this._addAfter(new vb(t,n),i,r)),e}_verifyReinsertion(e,t,n,r){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return i!==null?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;e!==null;){let t=e._next;this._addToRemovals(this._unlink(e)),e=t}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let r=e._prevRemoved,i=e._nextRemoved;return r===null?this._removalsHead=i:r._nextRemoved=i,i===null?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){let r=t===null?this._itHead:t._next;return e._next=r,e._prev=t,r===null?this._itTail=e:r._prev=e,t===null?this._itHead=e:t._next=e,this._linkedRecords===null&&(this._linkedRecords=new pl),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let t=e._prev,n=e._next;return t===null?this._itHead=n:t._next=n,n===null?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new pl),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},vb=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(e,t){this.item=e,this.trackById=t}},yb=class{_head=null;_tail=null;add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;n!==null;n=n._nextDup)if((t===null||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let t=e._prevDup,n=e._nextDup;return t===null?this._head=n:t._nextDup=n,n===null?this._tail=t:n._prevDup=t,this._head===null}},pl=class{map=new Map;put(e){let t=e.trackById,n=this.map.get(t);n||(n=new yb,this.map.set(t,n)),n.add(e)}get(e,t){let n=e,r=this.map.get(n);return r?r.get(e,t):null}remove(e){let t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function gl(e,t,n){let r=e.previousIndex;if(r===null)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}function ml(){return new bh([new pb])}var bh=(()=>{class e{factories;static \u0275prov=O({token:e,providedIn:"root",factory:ml});constructor(n){this.factories=n}static create(n,r){if(r!=null){let i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:()=>{let r=v(e,{optional:!0,skipSelf:!0});return e.create(n,r||ml())}}}find(n){let r=this.factories.find(i=>i.supports(n));if(r!=null)return r;throw new w(901,!1)}}return e})();function bb(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:i}=e;B(8);try{let s=i?.injector??ub(r),o=[vh({}),{provide:zn,useExisting:tb},Kg,...n||[]],a=new th({providers:o,parent:s,debugName:"",runEnvironmentInitializers:!1});return sb({r3Injector:a.injector,platformInjector:s,rootComponent:t})}catch(s){return Promise.reject(s)}finally{B(9)}}function Cb(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var wb={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function _b(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function xb(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var Wi;function kb(e,t){if(!Wi){let n=Element.prototype;Wi=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?Wi.call(e,t):!1}function Sb(e){let t={};return e.forEach(({propName:n,templateName:r,transform:i})=>{t[_b(r)]=[n,i]}),t}function Ob(e,t){return t.get($n).resolveComponentFactory(e).inputs}function Eb(e,t){let n=e.childNodes,r=t.map(()=>[]),i=-1;t.some((s,o)=>s==="*"?(i=o,!0):!1);for(let s=0,o=n.length;s<o;++s){let a=n[s],l=Tb(a,t,i);l!==-1&&r[l].push(a)}return r}function Tb(e,t,n){let r=n;return xb(e)&&t.some((i,s)=>i!=="*"&&kb(e,i)?(r=s,!0):!1),r}var Mb=10,Ib=class{componentFactory;inputMap=new Map;constructor(e,t){this.componentFactory=t.get($n).resolveComponentFactory(e);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(e){return new Pb(this.componentFactory,e,this.inputMap)}},Pb=class{componentFactory;injector;inputMap;eventEmitters=new uu(1);events=this.eventEmitters.pipe(Vu(e=>zp(...e)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(e,t,n){this.componentFactory=e,this.injector=t,this.inputMap=n,this.ngZone=this.injector.get(se),this.appRef=this.injector.get(Dn),this.cdScheduler=t.get(zn),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=wb.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},Mb))})}getInputValue(e){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){if(this.componentRef===null){this.initialInputValues.set(e,t);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(e)??e,t),qy(this.componentRef.hostView)&&(Gy(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(e){let t=ci.create({providers:[],parent:this.injector}),n=Eb(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[e,t]of this.initialInputValues)this.setInputValue(e,t);this.initialInputValues.clear()}initializeOutputs(e){let t=this.componentFactory.outputs.map(({propName:n,templateName:r})=>{let i=e.instance[n];return new J(s=>{let o=i.subscribe(a=>s.next({name:r,value:a}));return()=>o.unsubscribe()})});this.eventEmitters.next(t)}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}},Db=class extends HTMLElement{ngElementEventsSubscription=null};function Ab(e,t){let n=Ob(e,t.injector),r=t.strategyFactory||new Ib(e,t.injector),i=Sb(n);class s extends Db{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:l,transform:u})=>{if(!this.hasOwnProperty(l))return;let c=this[l];delete this[l],a.setInputValue(l,c,u)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,u,c){let[d,f]=i[a];this.ngElementStrategy.setInputValue(d,u,f)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return n.forEach(({propName:o,transform:a})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(l){this.ngElementStrategy.setInputValue(o,l,a)},configurable:!0,enumerable:!0})}),s}var Ch=null;function Kr(){return Ch}function Vb(e){Ch??=e}var Nb=class{},re=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(re||{}),L=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(L||{}),le=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(le||{}),nt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Rb(e){return Pe(e)[Y.LocaleId]}function Fb(e,t,n){let r=Pe(e),i=[r[Y.DayPeriodsFormat],r[Y.DayPeriodsStandalone]],s=ye(i,t);return ye(s,n)}function Lb(e,t,n){let r=Pe(e),i=[r[Y.DaysFormat],r[Y.DaysStandalone]],s=ye(i,t);return ye(s,n)}function jb(e,t,n){let r=Pe(e),i=[r[Y.MonthsFormat],r[Y.MonthsStandalone]],s=ye(i,t);return ye(s,n)}function Hb(e,t){let n=Pe(e)[Y.Eras];return ye(n,t)}function Xn(e,t){let n=Pe(e);return ye(n[Y.DateFormat],t)}function er(e,t){let n=Pe(e);return ye(n[Y.TimeFormat],t)}function tr(e,t){let n=Pe(e)[Y.DateTimeFormat];return ye(n,t)}function Ci(e,t){let n=Pe(e),r=n[Y.NumberSymbols][t];if(typeof r>"u"){if(t===nt.CurrencyDecimal)return n[Y.NumberSymbols][nt.Decimal];if(t===nt.CurrencyGroup)return n[Y.NumberSymbols][nt.Group]}return r}function wh(e){if(!e[Y.ExtraData])throw new w(2303,!1)}function zb(e){let t=Pe(e);return wh(t),(t[Y.ExtraData][2]||[]).map(n=>typeof n=="string"?Qi(n):[Qi(n[0]),Qi(n[1])])}function Bb(e,t,n){let r=Pe(e);wh(r);let i=[r[Y.ExtraData][0],r[Y.ExtraData][1]],s=ye(i,t)||[];return ye(s,n)||[]}function ye(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new w(2304,!1)}function Qi(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var Ub=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,nr={},$b=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function Zb(e,t,n,r){let i=eC(e);t=ze(n,t)||t;let s=[],o;for(;t;)if(o=$b.exec(t),o){s=s.concat(o.slice(1));let u=s.pop();if(!u)break;t=u}else{s.push(t);break}let a=i.getTimezoneOffset();r&&(a=xh(r,a),i=Xb(i,r));let l="";return s.forEach(u=>{let c=Jb(u);l+=c?c(i,n,a):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Xr(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function ze(e,t){let n=Rb(e);if(nr[n]??={},nr[n][t])return nr[n][t];let r="";switch(t){case"shortDate":r=Xn(e,le.Short);break;case"mediumDate":r=Xn(e,le.Medium);break;case"longDate":r=Xn(e,le.Long);break;case"fullDate":r=Xn(e,le.Full);break;case"shortTime":r=er(e,le.Short);break;case"mediumTime":r=er(e,le.Medium);break;case"longTime":r=er(e,le.Long);break;case"fullTime":r=er(e,le.Full);break;case"short":let i=ze(e,"shortTime"),s=ze(e,"shortDate");r=rr(tr(e,le.Short),[i,s]);break;case"medium":let o=ze(e,"mediumTime"),a=ze(e,"mediumDate");r=rr(tr(e,le.Medium),[o,a]);break;case"long":let l=ze(e,"longTime"),u=ze(e,"longDate");r=rr(tr(e,le.Long),[l,u]);break;case"full":let c=ze(e,"fullTime"),d=ze(e,"fullDate");r=rr(tr(e,le.Full),[c,d]);break}return r&&(nr[n][t]=r),r}function rr(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function xe(e,t,n="-",r,i){let s="";(e<0||i&&e<=0)&&(i?e=-e+1:(e=-e,s=n));let o=String(e);for(;o.length<t;)o="0"+o;return r&&(o=o.slice(o.length-t)),s+o}function qb(e,t){return xe(e,3).substring(0,t)}function G(e,t,n=0,r=!1,i=!1){return function(s,o){let a=Gb(e,s);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return qb(a,t);let l=Ci(o,nt.MinusSign);return xe(a,t,l,r,i)}}function Gb(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new w(2301,!1)}}function z(e,t,n=re.Format,r=!1){return function(i,s){return Wb(i,s,e,t,n,r)}}function Wb(e,t,n,r,i,s){switch(n){case 2:return jb(t,i,r)[e.getMonth()];case 1:return Lb(t,i,r)[e.getDay()];case 0:let o=e.getHours(),a=e.getMinutes();if(s){let u=zb(t),c=Bb(t,i,r),d=u.findIndex(f=>{if(Array.isArray(f)){let[h,p]=f,m=o>=h.hours&&a>=h.minutes,b=o<p.hours||o===p.hours&&a<p.minutes;if(h.hours<p.hours){if(m&&b)return!0}else if(m||b)return!0}else if(f.hours===o&&f.minutes===a)return!0;return!1});if(d!==-1)return c[d]}return Fb(t,i,r)[o<12?0:1];case 3:return Hb(t,r)[e.getFullYear()<=0?0:1];default:let l=n;throw new w(2302,!1)}}function ir(e){return function(t,n,r){let i=-1*r,s=Ci(n,nt.MinusSign),o=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case 0:return(i>=0?"+":"")+xe(o,2,s)+xe(Math.abs(i%60),2,s);case 1:return"GMT"+(i>=0?"+":"")+xe(o,1,s);case 2:return"GMT"+(i>=0?"+":"")+xe(o,2,s)+":"+xe(Math.abs(i%60),2,s);case 3:return r===0?"Z":(i>=0?"+":"")+xe(o,2,s)+":"+xe(Math.abs(i%60),2,s);default:throw new w(2310,!1)}}}var Qb=0,br=4;function Yb(e){let t=Xr(e,Qb,1).getDay();return Xr(e,0,1+(t<=br?br:br+7)-t)}function _h(e){let t=e.getDay(),n=t===0?-3:br-t;return Xr(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Yi(e,t=!1){return function(n,r){let i;if(t){let s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,o=n.getDate();i=1+Math.floor((o+s)/7)}else{let s=_h(n),o=Yb(s.getFullYear()),a=s.getTime()-o.getTime();i=1+Math.round(a/6048e5)}return xe(i,e,Ci(r,nt.MinusSign))}}function sr(e,t=!1){return function(n,r){let i=_h(n).getFullYear();return xe(i,e,Ci(r,nt.MinusSign),t)}}var Ji={};function Jb(e){if(Ji[e])return Ji[e];let t;switch(e){case"G":case"GG":case"GGG":t=z(3,L.Abbreviated);break;case"GGGG":t=z(3,L.Wide);break;case"GGGGG":t=z(3,L.Narrow);break;case"y":t=G(0,1,0,!1,!0);break;case"yy":t=G(0,2,0,!0,!0);break;case"yyy":t=G(0,3,0,!1,!0);break;case"yyyy":t=G(0,4,0,!1,!0);break;case"Y":t=sr(1);break;case"YY":t=sr(2,!0);break;case"YYY":t=sr(3);break;case"YYYY":t=sr(4);break;case"M":case"L":t=G(1,1,1);break;case"MM":case"LL":t=G(1,2,1);break;case"MMM":t=z(2,L.Abbreviated);break;case"MMMM":t=z(2,L.Wide);break;case"MMMMM":t=z(2,L.Narrow);break;case"LLL":t=z(2,L.Abbreviated,re.Standalone);break;case"LLLL":t=z(2,L.Wide,re.Standalone);break;case"LLLLL":t=z(2,L.Narrow,re.Standalone);break;case"w":t=Yi(1);break;case"ww":t=Yi(2);break;case"W":t=Yi(1,!0);break;case"d":t=G(2,1);break;case"dd":t=G(2,2);break;case"c":case"cc":t=G(7,1);break;case"ccc":t=z(1,L.Abbreviated,re.Standalone);break;case"cccc":t=z(1,L.Wide,re.Standalone);break;case"ccccc":t=z(1,L.Narrow,re.Standalone);break;case"cccccc":t=z(1,L.Short,re.Standalone);break;case"E":case"EE":case"EEE":t=z(1,L.Abbreviated);break;case"EEEE":t=z(1,L.Wide);break;case"EEEEE":t=z(1,L.Narrow);break;case"EEEEEE":t=z(1,L.Short);break;case"a":case"aa":case"aaa":t=z(0,L.Abbreviated);break;case"aaaa":t=z(0,L.Wide);break;case"aaaaa":t=z(0,L.Narrow);break;case"b":case"bb":case"bbb":t=z(0,L.Abbreviated,re.Standalone,!0);break;case"bbbb":t=z(0,L.Wide,re.Standalone,!0);break;case"bbbbb":t=z(0,L.Narrow,re.Standalone,!0);break;case"B":case"BB":case"BBB":t=z(0,L.Abbreviated,re.Format,!0);break;case"BBBB":t=z(0,L.Wide,re.Format,!0);break;case"BBBBB":t=z(0,L.Narrow,re.Format,!0);break;case"h":t=G(3,1,-12);break;case"hh":t=G(3,2,-12);break;case"H":t=G(3,1);break;case"HH":t=G(3,2);break;case"m":t=G(4,1);break;case"mm":t=G(4,2);break;case"s":t=G(5,1);break;case"ss":t=G(5,2);break;case"S":t=G(6,1);break;case"SS":t=G(6,2);break;case"SSS":t=G(6,3);break;case"Z":case"ZZ":case"ZZZ":t=ir(0);break;case"ZZZZZ":t=ir(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ir(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=ir(2);break;default:return null}return Ji[e]=t,t}function xh(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Kb(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Xb(e,t,n){let r=e.getTimezoneOffset(),i=xh(t,r);return Kb(e,-1*(i-r))}function eC(e){if(vl(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[i,s=1,o=1]=e.split("-").map(a=>+a);return Xr(i,s-1,o)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(Ub))return tC(r)}let t=new Date(e);if(!vl(t))throw new w(2311,!1);return t}function tC(e){let t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,s=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let o=Number(e[4]||0)-n,a=Number(e[5]||0)-r,l=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return s.call(t,o,a,l,u),t}function vl(e){return e instanceof Date&&!isNaN(e.valueOf())}var nC=class{$implicit;ngForOf;index;count;constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},wi=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,i){this._viewContainer=n,this._template=r,this._differs=i}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((i,s,o)=>{if(i.previousIndex==null)r.createEmbeddedView(this._template,new nC(i.item,this._ngForOf,-1,-1),o===null?void 0:o);else if(o==null)r.remove(s===null?void 0:s);else if(s!==null){let a=r.get(s);r.move(a,o),yl(a,i)}});for(let i=0,s=r.length;i<s;i++){let o=r.get(i).context;o.index=i,o.count=s,o.ngForOf=this._ngForOf}n.forEachIdentityChange(i=>{let s=r.get(i.currentIndex);yl(s,i)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(n){return new(n||e)(j(rn),j(wt),j(bh))};static \u0275dir=Ie({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function yl(e,t){e.context.$implicit=t.item}var an=(()=>{class e{_viewContainer;_context=new rC;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){bl(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){bl(n,!1),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(n){return new(n||e)(j(rn),j(wt))};static \u0275dir=Ie({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),rC=class{$implicit=null;ngIf=null};function bl(e,t){if(e&&!e.createEmbeddedView)throw new w(2020,!1)}var iC=class{_viewContainerRef;_templateRef;_created=!1;constructor(e,t){this._viewContainerRef=e,this._templateRef=t}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}},kh=(()=>{class e{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(n){this._ngSwitch=n,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(n){this._defaultViews.push(n)}_matchCase(n){let r=n===this._ngSwitch;return this._lastCasesMatched||=r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(n){if(this._defaultViews.length>0&&n!==this._defaultUsed){this._defaultUsed=n;for(let r of this._defaultViews)r.enforceState(n)}}static \u0275fac=function(n){return new(n||e)};static \u0275dir=Ie({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return e})(),sC=(()=>{class e{ngSwitch;_view;ngSwitchCase;constructor(n,r,i){this.ngSwitch=i,i._addCase(),this._view=new iC(n,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(n){return new(n||e)(j(rn),j(wt),j(kh,9))};static \u0275dir=Ie({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return e})();function oC(e,t){return new w(2100,!1)}var aC="mediumDate",lC=new k(""),uC=new k(""),Sh=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,i){this.locale=n,this.defaultTimezone=r,this.defaultOptions=i}transform(n,r,i,s){if(n==null||n===""||n!==n)return null;try{let o=r??this.defaultOptions?.dateFormat??aC,a=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Zb(n,o,s||this.locale,a)}catch(o){throw oC(e,o.message)}}static \u0275fac=function(n){return new(n||e)(j(ia,16),j(lC,24),j(uC,24))};static \u0275pipe=n1({name:"date",type:e,pure:!0})}return e})(),Ce=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=bi({type:e});static \u0275inj=ri({})}return e})();function Oh(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,s]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(s)}return null}var Eh=class{},Th="browser";function cC(e){return e===Th}var Mh=class{_doc;constructor(e){this._doc=e}manager},Rs=(()=>{class e extends Mh{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,s){return n.addEventListener(r,i,s),()=>this.removeEventListener(n,r,i,s)}removeEventListener(n,r,i,s){return n.removeEventListener(r,i,s)}static \u0275fac=function(n){return new(n||e)(C(je))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),Fs=new k(""),Ih=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this});let i=n.filter(o=>!(o instanceof Rs));this._plugins=i.slice().reverse();let s=n.find(o=>o instanceof Rs);s&&this._plugins.push(s)}addEventListener(n,r,i,s){return this._findPluginFor(r).addEventListener(n,r,i,s)}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 w(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(n){return new(n||e)(C(Fs),C(se))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),Ki="ng-app-id";function Cl(e){for(let t of e)t.remove()}function wl(e,t){let n=t.createElement("style");return n.textContent=e,n}function dC(e,t,n,r){let i=e.head?.querySelectorAll(`style[${Ki}="${t}"],link[${Ki}="${t}"]`);if(i)for(let s of i)s.removeAttribute(Ki),s instanceof HTMLLinkElement?r.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&n.set(s.textContent,{usage:0,elements:[s]})}function Ls(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Ph=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,i,s={}){this.doc=n,this.appId=r,this.nonce=i,dC(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,wl);r?.forEach(i=>this.addUsage(i,this.external,Ls))}removeStyles(n,r){for(let i of n)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(n,r,i){let s=r.get(n);s?s.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(o=>this.addElement(o,i(n,this.doc)))})}removeUsage(n,r){let i=r.get(n);i&&(i.usage--,i.usage<=0&&(Cl(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Cl(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,wl(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,Ls(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(n){return new(n||e)(C(je),C(Yc),C(Kc,8),C(Eo))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),Xi={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"},sa=/%COMP%/g,Dh="%COMP%",hC=`_nghost-${Dh}`,fC=`_ngcontent-${Dh}`,pC=!0,gC=new k("",{providedIn:"root",factory:()=>pC});function mC(e){return fC.replace(sa,e)}function vC(e){return hC.replace(sa,e)}function Ah(e,t){return t.map(n=>n.replace(sa,e))}var _l=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,s,o,a,l=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=o,this.ngZone=a,this.nonce=l,this.tracingService=u,this.platformIsServer=!1,this.defaultRenderer=new oa(n,o,a,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let i=this.getOrCreateRenderer(n,r);return i instanceof kl?i.applyToHost(n):i instanceof js&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,s=i.get(r.id);if(!s){let o=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,d=this.platformIsServer,f=this.tracingService;switch(r.encapsulation){case Ct.Emulated:s=new kl(l,u,r,this.appId,c,o,a,d,f);break;case Ct.ShadowDom:return new yC(l,u,n,r,o,a,this.nonce,d,f);default:s=new js(l,u,r,c,o,a,d,f);break}i.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(n){return new(n||e)(C(Ih),C(Ph),C(Yc),C(gC),C(je),C(se),C(Kc),C(Vo,8))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),oa=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,n,r,i){this.eventManager=e,this.doc=t,this.ngZone=n,this.platformIsServer=r,this.tracingService=i}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS(Xi[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(xl(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(xl(e)?e.content:e).insertBefore(t,n)}removeChild(e,t){t.remove()}selectRootElement(e,t){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new w(-5104,!1);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;let i=Xi[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=Xi[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(ht.DashCase|ht.Important)?e.style.setProperty(t,n,r&ht.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&ht.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e!=null&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n,r){if(typeof e=="string"&&(e=Kr().getGlobalEventTarget(this.doc,e),!e))throw new w(5102,!1);let i=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,t,i)),this.eventManager.addEventListener(e,t,i,r)}decoratePreventDefault(e){return t=>{if(t==="__ngUnwrap__")return e;e(t)===!1&&t.preventDefault()}}};function xl(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var yC=class extends oa{sharedStylesHost;hostEl;shadowRoot;constructor(e,t,n,r,i,s,o,a,l){super(e,i,s,a,l),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=Ah(r.id,u);for(let d of u){let f=document.createElement("style");o&&f.setAttribute("nonce",o),f.textContent=d,this.shadowRoot.appendChild(f)}let c=r.getExternalStyles?.();if(c)for(let d of c){let f=Ls(d,i);o&&f.setAttribute("nonce",o),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},js=class extends oa{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,r,i,s,o,a,l){super(e,i,s,o,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let u=n.styles;this.styles=l?Ah(l,u):u,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&qr.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},kl=class extends js{contentAttr;hostAttr;constructor(e,t,n,r,i,s,o,a,l){let u=r+"-"+n.id;super(e,t,n,i,s,o,a,l,u),this.contentAttr=mC(u),this.hostAttr=vC(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){let n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}},bC=class Vh extends Nb{supportsDOMEvents=!0;static makeCurrent(){Vb(new Vh)}onAndCancel(t,n,r,i){return t.addEventListener(n,r,i),()=>{t.removeEventListener(n,r,i)}}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=CC();return n==null?null:wC(n)}resetBaseElement(){mn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Oh(document.cookie,t)}},mn=null;function CC(){return mn=mn||document.head.querySelector("base"),mn?mn.getAttribute("href"):null}function wC(e){return new URL(e,document.baseURI).pathname}var _C=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||e)};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),Sl=["alt","control","meta","shift"],xC={"\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"},kC={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},SC=(()=>{class e extends Mh{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i,s){let o=e.parseEventName(r),a=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Kr().onAndCancel(n,o.domEventName,a,s))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let s=e._normalizeKey(r.pop()),o="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),o="code."),Sl.forEach(u=>{let c=r.indexOf(u);c>-1&&(r.splice(c,1),o+=u+".")}),o+=s,r.length!=0||s.length===0)return null;let l={};return l.domEventName=i,l.fullKey=o,l}static matchEventFullKeyCode(n,r){let i=xC[n.key]||n.key,s="";return r.indexOf("code.")>-1&&(i=n.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Sl.forEach(o=>{if(o!==i){let a=kC[o];a(n)&&(s+=o+".")}}),s+=i,s===r)}static eventCallback(n,r,i){return s=>{e.matchEventFullKeyCode(s,n)&&i.runGuarded(()=>r(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(n){return new(n||e)(C(je))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})();function OC(e){return bb(EC(e))}function EC(e){return{appProviders:[...DC,...e?.providers??[]],platformProviders:PC}}function TC(){bC.makeCurrent()}function MC(){return new Hn}function IC(){return Dm(document),document}var PC=[{provide:Eo,useValue:Th},{provide:Jc,useValue:TC,multi:!0},{provide:je,useFactory:IC}],DC=[{provide:fo,useValue:"root"},{provide:Hn,useFactory:MC},{provide:Fs,useClass:Rs,multi:!0,deps:[je]},{provide:Fs,useClass:SC,multi:!0,deps:[je]},_l,Ph,Ih,{provide:Go,useExisting:_l},{provide:Eh,useClass:_C},[]],aa=class{},_i=class{},xt=class Cr{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 i=n.slice(0,r),s=n.slice(r+1).trim();this.addHeaderEntry(i,s)}})}: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 Cr?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 Cr;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Cr?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 i=(t.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let s=t.value;if(!s)this.headers.delete(n),this.normalizedNames.delete(n);else{let o=this.headers.get(n);if(!o)return;o=o.filter(a=>s.indexOf(a)===-1),o.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,o)}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(s=>s.toString()),i=t.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}},AC=class{encodeKey(e){return Ol(e)}encodeValue(e){return Ol(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function VC(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(r=>{let i=r.indexOf("="),[s,o]=i==-1?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,i)),t.decodeValue(r.slice(i+1))],a=n.get(s)||[];a.push(o),n.set(s,a)}),n}var NC=/%(\d[a-f0-9])/gi,RC={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ol(e){return encodeURIComponent(e).replace(NC,(t,n)=>RC[n]??t)}function or(e){return`${e}`}var Ze=class Nh{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new AC,t.fromString){if(t.fromObject)throw new w(2805,!1);this.map=VC(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],i=Array.isArray(r)?r.map(or):[or(r)];this.map.set(n,i)})):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 i=t[r];Array.isArray(i)?i.forEach(s=>{n.push({param:r,value:s,op:"a"})}):n.push({param:r,value:i,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 Nh({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(or(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],i=r.indexOf(or(t.value));i!==-1&&r.splice(i,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)}},FC=class{map=new Map;set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function LC(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function El(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Tl(e){return typeof Blob<"u"&&e instanceof Blob}function Ml(e){return typeof FormData<"u"&&e instanceof FormData}function jC(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Il="Content-Type",Pl="Accept",Rh="X-Request-URL",Fh="text/plain",Lh="application/json",HC=`${Lh}, ${Fh}, */*`,bn=class jh{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,i){this.url=n,this.method=t.toUpperCase();let s;if(LC(this.method)||i?(this.body=r!==void 0?r:null,s=i):s=r,s){if(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,this.keepalive=!!s.keepalive,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),s.priority&&(this.priority=s.priority),s.cache&&(this.cache=s.cache),s.credentials&&(this.credentials=s.credentials),typeof s.timeout=="number"){if(s.timeout<1||!Number.isInteger(s.timeout))throw new w(2822,"");this.timeout=s.timeout}s.mode&&(this.mode=s.mode),s.redirect&&(this.redirect=s.redirect),s.integrity&&(this.integrity=s.integrity),s.referrer&&(this.referrer=s.referrer),this.transferCache=s.transferCache}if(this.headers??=new xt,this.context??=new FC,!this.params)this.params=new Ze,this.urlWithParams=n;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),l=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+l+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||El(this.body)||Tl(this.body)||Ml(this.body)||jC(this.body)?this.body:this.body instanceof Ze?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||Ml(this.body)?null:Tl(this.body)?this.body.type||null:El(this.body)?null:typeof this.body=="string"?Fh:this.body instanceof Ze?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Lh:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,s=t.keepalive??this.keepalive,o=t.priority||this.priority,a=t.cache||this.cache,l=t.mode||this.mode,u=t.redirect||this.redirect,c=t.credentials||this.credentials,d=t.referrer||this.referrer,f=t.integrity||this.integrity,h=t.transferCache??this.transferCache,p=t.timeout??this.timeout,m=t.body!==void 0?t.body:this.body,b=t.withCredentials??this.withCredentials,D=t.reportProgress??this.reportProgress,we=t.headers||this.headers,K=t.params||this.params,un=t.context??this.context;return t.setHeaders!==void 0&&(we=Object.keys(t.setHeaders).reduce((cn,at)=>cn.set(at,t.setHeaders[at]),we)),t.setParams&&(K=Object.keys(t.setParams).reduce((cn,at)=>cn.set(at,t.setParams[at]),K)),new jh(n,r,m,{params:K,headers:we,context:un,reportProgress:D,responseType:i,withCredentials:b,transferCache:h,keepalive:s,cache:a,priority:o,timeout:p,mode:l,redirect:u,credentials:c,referrer:d,integrity:f})}},Ft=(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})(Ft||{}),la=class{headers;status;statusText;url;ok;type;redirected;constructor(e,t=200,n="OK"){this.headers=e.headers||new xt,this.status=e.status!==void 0?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.redirected=e.redirected,this.ok=this.status>=200&&this.status<300}},zC=class Hh extends la{constructor(t={}){super(t)}type=Ft.ResponseHeader;clone(t={}){return new Hh({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})}},xi=class zh extends la{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Ft.Response;clone(t={}){return new zh({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})}},es=class extends la{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},BC=200,UC=204;function ts(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}}var ua=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,i={}){let s;if(n instanceof bn)s=n;else{let l;i.headers instanceof xt?l=i.headers:l=new xt(i.headers);let u;i.params&&(i.params instanceof Ze?u=i.params:u=new Ze({fromObject:i.params})),s=new bn(n,r,i.body!==void 0?i.body:null,{headers:l,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache,keepalive:i.keepalive,priority:i.priority,cache:i.cache,mode:i.mode,redirect:i.redirect,credentials:i.credentials,referrer:i.referrer,integrity:i.integrity,timeout:i.timeout})}let o=Ue(s).pipe(Pu(l=>this.handler.handle(l)));if(n instanceof bn||i.observe==="events")return o;let a=o.pipe(Dr(l=>l instanceof xi));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(ke(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new w(2806,!1);return l.body}));case"blob":return a.pipe(ke(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new w(2807,!1);return l.body}));case"text":return a.pipe(ke(l=>{if(l.body!==null&&typeof l.body!="string")throw new w(2808,!1);return l.body}));case"json":default:return a.pipe(ke(l=>l.body))}case"response":return a;default:throw new w(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 Ze().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,i={}){return this.request("PATCH",n,ts(i,r))}post(n,r,i={}){return this.request("POST",n,ts(i,r))}put(n,r,i={}){return this.request("PUT",n,ts(i,r))}static \u0275fac=function(n){return new(n||e)(C(aa))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),$C=new k("");function Bh(e,t){return t(e)}function ZC(e,t){return(n,r)=>t.intercept(n,{handle:i=>e(i,r)})}function qC(e,t,n){return(r,i)=>mo(n,()=>t(r,s=>e(s,i)))}var GC=new k(""),ca=new k(""),WC=new k(""),Uh=new k("",{providedIn:"root",factory:()=>!0});function QC(){let e=null;return(t,n)=>{e===null&&(e=(v(GC,{optional:!0})??[]).reduceRight(ZC,Bh));let r=v(Oc);if(v(Uh)){let i=r.add();return e(t,n).pipe(Au(i))}else return e(t,n)}}var Dl=(()=>{class e extends aa{backend;injector;chain=null;pendingTasks=v(Oc);contributeToStability=v(Uh);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(ca),...this.injector.get(WC,[])]));this.chain=r.reduceRight((i,s)=>qC(i,s,this.injector),Bh)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(Au(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(n){return new(n||e)(C(_i),C(qe))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),YC=/^\)\]\}',?\n/,JC=RegExp(`^${Rh}:`,"m");function KC(e){return"responseURL"in e&&e.responseURL?e.responseURL:JC.test(e.getAllResponseHeaders())?e.getResponseHeader(Rh):null}var Al=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new w(-2800,!1);let r=this.xhrFactory;return Ue(null).pipe(Vu(()=>new J(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((m,b)=>s.setRequestHeader(m,b.join(","))),n.headers.has(Pl)||s.setRequestHeader(Pl,HC),!n.headers.has(Il)){let m=n.detectContentTypeHeader();m!==null&&s.setRequestHeader(Il,m)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let m=n.responseType.toLowerCase();s.responseType=m!=="json"?m:"text"}let o=n.serializeBody(),a=null,l=()=>{if(a!==null)return a;let m=s.statusText||"OK",b=new xt(s.getAllResponseHeaders()),D=KC(s)||n.url;return a=new zC({headers:b,status:s.status,statusText:m,url:D}),a},u=()=>{let{headers:m,status:b,statusText:D,url:we}=l(),K=null;b!==UC&&(K=typeof s.response>"u"?s.responseText:s.response),b===0&&(b=K?BC:0);let un=b>=200&&b<300;if(n.responseType==="json"&&typeof K=="string"){let cn=K;K=K.replace(YC,"");try{K=K!==""?JSON.parse(K):null}catch(at){K=cn,un&&(un=!1,K={error:at,text:K})}}un?(i.next(new xi({body:K,headers:m,status:b,statusText:D,url:we||void 0})),i.complete()):i.error(new es({error:K,headers:m,status:b,statusText:D,url:we||void 0}))},c=m=>{let{url:b}=l(),D=new es({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:b||void 0});i.error(D)},d=c;n.timeout&&(d=m=>{let{url:b}=l(),D=new es({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:b||void 0});i.error(D)});let f=!1,h=m=>{f||(i.next(l()),f=!0);let b={type:Ft.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(b.total=m.total),n.responseType==="text"&&s.responseText&&(b.partialText=s.responseText),i.next(b)},p=m=>{let b={type:Ft.UploadProgress,loaded:m.loaded};m.lengthComputable&&(b.total=m.total),i.next(b)};return s.addEventListener("load",u),s.addEventListener("error",c),s.addEventListener("timeout",d),s.addEventListener("abort",c),n.reportProgress&&(s.addEventListener("progress",h),o!==null&&s.upload&&s.upload.addEventListener("progress",p)),s.send(o),i.next({type:Ft.Sent}),()=>{s.removeEventListener("error",c),s.removeEventListener("abort",c),s.removeEventListener("load",u),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",h),o!==null&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(n){return new(n||e)(C(Eh))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),$h=new k(""),XC="XSRF-TOKEN",ew=new k("",{providedIn:"root",factory:()=>XC}),tw="X-XSRF-TOKEN",nw=new k("",{providedIn:"root",factory:()=>tw}),Zh=class{},rw=(()=>{class e{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r){this.doc=n,this.cookieName=r}getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Oh(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(n){return new(n||e)(C(je),C(ew))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),iw=/^(?:https?:)?\/\//i;function sw(e,t){if(!v($h)||e.method==="GET"||e.method==="HEAD"||iw.test(e.url))return t(e);let n=v(Zh).getToken(),r=v(nw);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}var qh=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e})(qh||{});function ow(e,t){return{\u0275kind:e,\u0275providers:t}}function aw(...e){let t=[ua,Al,Dl,{provide:aa,useExisting:Dl},{provide:_i,useFactory:()=>v($C,{optional:!0})??v(Al)},{provide:ca,useValue:sw,multi:!0},{provide:$h,useValue:!0},{provide:Zh,useClass:rw}];for(let n of e)t.push(...n.\u0275providers);return si(t)}var Vl=new k("");function lw(){return ow(qh.LegacyInterceptors,[{provide:Vl,useFactory:QC},{provide:ca,useExisting:Vl,multi:!0}])}var Gh=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=O({token:e,factory:function(n){let r=null;return n?r=new(n||e):r=C(uw),r},providedIn:"root"})}return e})(),uw=(()=>{class e extends Gh{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case et.NONE:return r;case et.HTML:return It(r,"HTML")?ct(r):ud(this._doc,String(r)).toString();case et.STYLE:return It(r,"Style")?ct(r):r;case et.SCRIPT:if(It(r,"Script"))return ct(r);throw new w(5200,!1);case et.URL:return It(r,"URL")?ct(r):rd(String(r));case et.RESOURCE_URL:if(It(r,"ResourceURL"))return ct(r);throw new w(5201,!1);default:throw new w(5202,!1)}}bypassSecurityTrustHtml(n){return Wm(n)}bypassSecurityTrustStyle(n){return Qm(n)}bypassSecurityTrustScript(n){return Ym(n)}bypassSecurityTrustUrl(n){return Jm(n)}bypassSecurityTrustResourceUrl(n){return Km(n)}static \u0275fac=function(n){return new(n||e)(C(je))};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Wh={},cw={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(e,t){Wh[e]=t,cw[t]=e});function dw(e){for(var t=[],n=0,r=0,i=0;i<e.length;i+=1){var s=Wh[e[i]];if(s===void 0)throw new Error("Invalid character ("+e[i]+")");var o=s&32;if(s&=31,r+=s<<n,o)n+=5;else{var a=r&1;r>>>=1,a?t.push(r===0?-2147483648:-r):t.push(r),r=n=0}}return t}var wr="TOKEN_LOGGER_CONFIG",hw=class{constructor(e){this.config=this._clone(e)}get level(){return this.config.level}get serverLogLevel(){return this.config.serverLogLevel}updateConfig(e){this.config=this._clone(e)}partialUpdateConfig(e){e&&Object.keys(e).forEach(t=>{this.config[t]=e[t]})}getConfig(){return this._clone(this.config)}_clone(e){let t={level:null};return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}},Cn="TOKEN_LOGGER_CONFIG_ENGINE_FACTORY",fw=class{provideConfigEngine(e){return new hw(e)}},wn="TOKEN_LOGGER_MAPPER_SERVICE",pw=(()=>{class e{constructor(n){this.httpBackend=n,this.sourceMapCache=new Map,this.logPositionCache=new Map}getLogPosition(n,r){let i=this.getStackLine(n);if(!i)return Ue({fileName:"",lineNumber:0,columnNumber:0});let s=this.getLocalPosition(i);if(!n.enableSourceMaps)return Ue(s);let o=this.getSourceMapLocation(i);return this.getSourceMap(o,s)}getStackLine(n){let r=new Error;try{throw r}catch{try{let i=4;return r.stack.split(`
|
|
6
6
|
`)[0].includes(".js:")||(i=i+1),r.stack.split(`
|
|
7
|
-
`)[i+(n.proxiedSteps||0)]}catch{return null}}}getLocalPosition(n){let r=n.lastIndexOf("/"),i=n.indexOf(")");i<0&&(i=void 0);let s=n.substring(r+1,i).split(":");return s.length===3?{fileName:s[0],lineNumber:+s[1],columnNumber:+s[2]}:{fileName:"unknown",lineNumber:0,columnNumber:0}}getTranspileLocation(n){let r=n.indexOf("(");r<0&&(r=n.lastIndexOf("@"),r<0&&(r=n.lastIndexOf(" ")));let i=n.indexOf(")");return i<0&&(i=void 0),n.substring(r+1,i)}getSourceMapLocation(n){let r=this.getTranspileLocation(n),i=r.substring(0,r.lastIndexOf(":"));return i.substring(0,i.lastIndexOf(":"))+".map"}getMapping(n,r){let i=0,s=0,o=0,l=n.mappings.split(";");for(let a=0;a<l.length;a++){let u=0,c=l[a].split(",");for(let d=0;d<c.length;d++){let f=O_(c[d]);if(f.length>=4&&(u+=f[0],i+=f[1],s+=f[2],o+=f[3]),a===r.lineNumber){if(u===r.columnNumber)return{fileName:n.sources[i],lineNumber:s,columnNumber:o};if(d+1===c.length)return{fileName:n.sources[i],lineNumber:s,columnNumber:0}}}}return{fileName:"unknown",lineNumber:0,columnNumber:0}}getSourceMap(n,r){let i=new rn("GET",n),s=`${r.fileName}:${r.lineNumber}:${r.columnNumber}`;if(this.logPositionCache.has(s))return this.logPositionCache.get(s);this.sourceMapCache.has(n)||(this.httpBackend?this.sourceMapCache.set(n,this.httpBackend.handle(i).pipe(cr(l=>l instanceof Jr),fe(l=>l.body),up(3),qo(1))):(console.error("NGXLogger : Can't get sourcemap because HttpBackend is not provided. You need to import HttpClientModule"),this.sourceMapCache.set(n,Oe(null))));let o=this.sourceMapCache.get(n).pipe(fe(l=>l?this.getMapping(l,r):r),Ns(()=>Oe(r)),qo(1));return this.logPositionCache.set(s,o),o}}return e.\u0275fac=function(t){return new(t||e)(y(Yr,8))},e.\u0275prov=E({token:e,factory:e.\u0275fac}),e})(),ln="TOKEN_LOGGER_METADATA_SERVICE",A_=(()=>{class e{constructor(n){this.datePipe=n}computeTimestamp(n){let r=()=>new Date().toISOString();return n.timestampFormat?this.datePipe?this.datePipe.transform(new Date,n.timestampFormat):(console.error("NGXLogger : Can't use timeStampFormat because DatePipe is not provided. You need to provide DatePipe"),r()):r()}getMetadata(n,r,i,s){let o={level:n,additional:s};return i&&typeof i=="function"?o.message=i():o.message=i,o.timestamp=this.computeTimestamp(r),o}}return e.\u0275fac=function(t){return new(t||e)(y(Gd,8))},e.\u0275prov=E({token:e,factory:e.\u0275fac}),e})(),an="TOKEN_LOGGER_RULES_SERVICE",V_=(()=>{class e{shouldCallWriter(n,r,i,s){return!r.disableConsoleLogging&&n>=r.level}shouldCallServer(n,r,i,s){return!!r.serverLoggingUrl&&n>=r.serverLogLevel}shouldCallMonitor(n,r,i,s){return this.shouldCallWriter(n,r,i,s)||this.shouldCallServer(n,r,i,s)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac}),e})(),un="TOKEN_LOGGER_SERVER_SERVICE",N_=(()=>{class e{constructor(n,r){this.httpBackend=n,this.ngZone=r,this.serverCallsQueue=[],this.flushingQueue=new Oa(!1)}ngOnDestroy(){this.flushingQueue&&(this.flushingQueue.complete(),this.flushingQueue=null),this.addToQueueTimer&&(this.addToQueueTimer.unsubscribe(),this.addToQueueTimer=null)}secureErrorObject(n){return n?.stack}secureAdditionalParameters(n){return n==null?null:n.map((r,i)=>{try{return r instanceof Error?this.secureErrorObject(r):(typeof r=="object"&&JSON.stringify(r),r)}catch{return`The additional[${i}] value could not be parsed using JSON.stringify().`}})}secureMessage(n){try{if(n instanceof Error)return this.secureErrorObject(n);typeof n!="string"&&(n=JSON.stringify(n,null,2))}catch{n='The provided "message" value could not be parsed with JSON.stringify().'}return n}alterHttpRequest(n){return n}logOnServer(n,r,i){if(!this.httpBackend)return console.error("NGXLogger : Can't log on server because HttpBackend is not provided. You need to import HttpClientModule"),Oe(null);let s=new rn("POST",n,r,i||{}),o=Oe(s),l=this.alterHttpRequest(s);return qf(l)?o=l:l?o=Oe(l):console.warn("NGXLogger : alterHttpRequest returned an invalid request. Using default one instead"),o.pipe(Qa(a=>a?this.httpBackend.handle(a):(console.warn("NGXLogger : alterHttpRequest returned an invalid request (observable). Using default one instead"),this.httpBackend.handle(s))),cr(a=>a instanceof Jr),fe(a=>a.body))}customiseRequestBody(n){return n}flushQueue(n){this.flushingQueue.next(!0),this.addToQueueTimer&&(this.addToQueueTimer.unsubscribe(),this.addToQueueTimer=null),this.serverCallsQueue&&this.serverCallsQueue.length>0&&this.sendToServerAction(this.serverCallsQueue,n),this.serverCallsQueue=[],this.flushingQueue.next(!1)}sendToServerAction(n,r){let i,s=a=>{let u=z({},a);return u.additional=this.secureAdditionalParameters(u.additional),u.message=this.secureMessage(u.message),u};Array.isArray(n)?(i=[],n.forEach(a=>{i.push(s(a))})):i=s(n),i=this.customiseRequestBody(i);let o=r.customHttpHeaders||new Ft;o.has("Content-Type")||o.set("Content-Type","application/json");let l=()=>{this.logOnServer(r.serverLoggingUrl,i,{headers:o,params:r.customHttpParams||new et,responseType:r.httpResponseType||"json",withCredentials:r.withCredentials||!1}).pipe(Ns(a=>(console.error("NGXLogger: Failed to log on server",a),Zf(a)))).subscribe()};if(r.serverCallsOutsideNgZone===!0){if(!this.ngZone){console.error("NGXLogger: NgZone is not provided and serverCallsOutsideNgZone is set to true");return}this.ngZone.runOutsideAngular(l)}else l()}sendToServer(n,r){if((!r.serverCallsBatchSize||r.serverCallsBatchSize<=0)&&(!r.serverCallsTimer||r.serverCallsTimer<=0)){this.sendToServerAction(n,r);return}let i=()=>{this.serverCallsQueue.push(z({},n)),r.serverCallsBatchSize&&this.serverCallsQueue.length>r.serverCallsBatchSize&&this.flushQueue(r),r.serverCallsTimer>0&&!this.addToQueueTimer&&(this.addToQueueTimer=$a(r.serverCallsTimer).subscribe(s=>{this.flushQueue(r)}))};this.flushingQueue.value===!0?this.flushingQueue.pipe(cr(s=>s===!1),Ya(1)).subscribe(s=>{i()}):i()}}return e.\u0275fac=function(t){return new(t||e)(y(Yr,8),y(J,8))},e.\u0275prov=E({token:e,factory:e.\u0275fac}),e})(),cn="TOKEN_LOGGER_WRITER_SERVICE",F=(function(e){return e[e.TRACE=0]="TRACE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.LOG=3]="LOG",e[e.WARN=4]="WARN",e[e.ERROR=5]="ERROR",e[e.FATAL=6]="FATAL",e[e.OFF=7]="OFF",e})(F||{}),R_=["purple","teal","gray","gray","red","red","red"],F_=(()=>{class e{constructor(n){this.platformId=n,this.prepareMetaStringFuncs=[this.getTimestampToWrite,this.getLevelToWrite,this.getFileDetailsToWrite,this.getContextToWrite],this.isIE=Ib(n)&&navigator&&navigator.userAgent&&!!(navigator.userAgent.indexOf("MSIE")!==-1||navigator.userAgent.match(/Trident\//)||navigator.userAgent.match(/Edge\//)),this.logFunc=this.isIE?this.logIE.bind(this):this.logModern.bind(this)}getTimestampToWrite(n,r){return n.timestamp}getLevelToWrite(n,r){return F[n.level]}getFileDetailsToWrite(n,r){return r.disableFileDetails===!0?"":`[${n.fileName}:${n.lineNumber}:${n.columnNumber}]`}getContextToWrite(n,r){return r.context?`{${r.context}}`:""}prepareMetaString(n,r){let i="";return this.prepareMetaStringFuncs.forEach(s=>{let o=s(n,r);o&&(i=i+" "+o)}),i.trim()}getColor(n,r){let i=r.colorScheme??R_;if(n.level!==F.OFF)return i[n.level]}logIE(n,r,i){let s=n.additional||[];switch(n.level){case F.WARN:console.warn(`${i} `,n.message,...s);break;case F.ERROR:case F.FATAL:console.error(`${i} `,n.message,...s);break;case F.INFO:console.info(`${i} `,n.message,...s);break;default:console.log(`${i} `,n.message,...s)}}logModern(n,r,i){let s=this.getColor(n,r),o=n.additional||[];switch(n.level){case F.WARN:console.warn(`%c${i}`,`color:${s}`,n.message,...o);break;case F.ERROR:case F.FATAL:console.error(`%c${i}`,`color:${s}`,n.message,...o);break;case F.INFO:console.info(`%c${i}`,`color:${s}`,n.message,...o);break;case F.DEBUG:console.debug(`%c${i}`,`color:${s}`,n.message,...o);break;default:console.log(`%c${i}`,`color:${s}`,n.message,...o)}}writeMessage(n,r){let i=this.prepareMetaString(n,r);this.logFunc(n,r,i)}}return e.\u0275fac=function(t){return new(t||e)(y(to))},e.\u0275prov=E({token:e,factory:e.\u0275fac}),e})(),gs=(()=>{class e{constructor(n,r,i,s,o,l,a){this.metadataService=i,this.ruleService=s,this.mapperService=o,this.writerService=l,this.serverService=a,this.configEngine=r.provideConfigEngine(n)}get level(){return this.configEngine.level}get serverLogLevel(){return this.configEngine.serverLogLevel}trace(n,...r){this._log(F.TRACE,n,r)}debug(n,...r){this._log(F.DEBUG,n,r)}info(n,...r){this._log(F.INFO,n,r)}log(n,...r){this._log(F.LOG,n,r)}warn(n,...r){this._log(F.WARN,n,r)}error(n,...r){this._log(F.ERROR,n,r)}fatal(n,...r){this._log(F.FATAL,n,r)}setCustomHttpHeaders(n){let r=this.getConfigSnapshot();r.customHttpHeaders=n,this.updateConfig(r)}setCustomParams(n){let r=this.getConfigSnapshot();r.customHttpParams=n,this.updateConfig(r)}setWithCredentialsOptionValue(n){let r=this.getConfigSnapshot();r.withCredentials=n,this.updateConfig(r)}registerMonitor(n){this._loggerMonitor=n}updateConfig(n){this.configEngine.updateConfig(n)}partialUpdateConfig(n){this.configEngine.partialUpdateConfig(n)}getConfigSnapshot(){return this.configEngine.getConfig()}flushServerQueue(){this.serverService.flushQueue(this.getConfigSnapshot())}_log(n,r,i=[]){let s=this.configEngine.getConfig(),o=this.ruleService.shouldCallWriter(n,s,r,i),l=this.ruleService.shouldCallServer(n,s,r,i),a=this.ruleService.shouldCallMonitor(n,s,r,i);if(!o&&!l&&!a)return;let u=this.metadataService.getMetadata(n,s,r,i);this.mapperService.getLogPosition(s,u).pipe(Ya(1)).subscribe(c=>{c&&(u.fileName=c.fileName,u.lineNumber=c.lineNumber,u.columnNumber=c.columnNumber),a&&this._loggerMonitor&&this._loggerMonitor.onLog(u,s),o&&this.writerService.writeMessage(u,s),l&&this.serverService.sendToServer(u,s)})}}return e.\u0275fac=function(t){return new(t||e)(y(ir),y(sn),y(ln),y(an),y(on),y(cn),y(un))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),L_=(()=>{class e{constructor(n,r,i,s,o,l,a){this.logger=n,this.configEngineFactory=r,this.metadataService=i,this.ruleService=s,this.mapperService=o,this.writerService=l,this.serverService=a}create(n,r,i,s){return this.getNewInstance({config:n,serverService:r,logMonitor:i,mapperService:s})}getNewInstance(n){let r=new gs(n?.config??this.logger.getConfigSnapshot(),n?.configEngineFactory??this.configEngineFactory,n?.metadataService??this.metadataService,n?.ruleService??this.ruleService,n?.mapperService??this.mapperService,n?.writerService??this.writerService,n?.serverService??this.serverService);return n?.partialConfig&&r.partialUpdateConfig(n.partialConfig),n?.logMonitor&&r.registerMonitor(n.logMonitor),r}}return e.\u0275fac=function(t){return new(t||e)(y(gs),y(sn),y(ln),y(an),y(on),y(cn),y(un))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),j_=(()=>{class e{static forRoot(n,r){if(r||(r={}),!r.configProvider)r.configProvider={provide:ir,useValue:n||{}};else if(r.configProvider.provide!==ir)throw new Error(`Wrong injection token for configProvider, it should be ${ir} and you used ${r.configProvider.provide}`);if(!r.configEngineFactoryProvider)r.configEngineFactoryProvider={provide:sn,useClass:P_};else if(r.configEngineFactoryProvider.provide!==sn)throw new Error(`Wrong injection token for configEngineFactoryProvider, it should be '${sn}' and you used '${r.configEngineFactoryProvider.provide}'`);if(!r.metadataProvider)r.metadataProvider={provide:ln,useClass:A_};else if(r.metadataProvider.provide!==ln)throw new Error(`Wrong injection token for metadataProvider, it should be '${ln}' and you used '${r.metadataProvider.provide}'`);if(!r.ruleProvider)r.ruleProvider={provide:an,useClass:V_};else if(r.ruleProvider.provide!==an)throw new Error(`Wrong injection token for ruleProvider, it should be '${an}' and you used '${r.ruleProvider.provide}'`);if(!r.mapperProvider)r.mapperProvider={provide:on,useClass:D_};else if(r.mapperProvider.provide!==on)throw new Error(`Wrong injection token for mapperProvider, it should be '${on}' and you used '${r.mapperProvider.provide}'`);if(!r.writerProvider)r.writerProvider={provide:cn,useClass:F_};else if(r.writerProvider.provide!==cn)throw new Error(`Wrong injection token for writerProvider, it should be '${cn}' and you used '${r.writerProvider.provide}'`);if(!r.serverProvider)r.serverProvider={provide:un,useClass:N_};else if(r.serverProvider.provide!==un)throw new Error(`Wrong injection token for serverProvider, it should be '${un}' and you used '${r.writerProvider.provide}'`);return{ngModule:e,providers:[gs,r.configProvider,r.configEngineFactoryProvider,r.metadataProvider,r.ruleProvider,r.mapperProvider,r.writerProvider,r.serverProvider,L_]}}static forChild(){return{ngModule:e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=$r({type:e}),e.\u0275inj=Nr({imports:[[We]]}),e})(),na={sparkle:{viewBox:"0 0 51 51",path:'<path d="M25.5 0L27.7528 6.13139C30.6703 14.0717 36.9283 20.3297 44.8686 23.2472L51 25.5L44.8686 27.7528C36.9283 30.6703 30.6703 36.9283 27.7528 44.8686L25.5 51L23.2471 44.8686C20.3297 36.9283 14.0717 30.6703 6.13139 27.7528L0 25.5L6.13139 23.2471C14.0717 20.3297 20.3297 14.0717 23.2472 6.13139L25.5 0Z" fill="url(#paint0_linear_1_3105)"/>',defs:`<defs>
|
|
7
|
+
`)[i+(n.proxiedSteps||0)]}catch{return null}}}getLocalPosition(n){let r=n.lastIndexOf("/"),i=n.indexOf(")");i<0&&(i=void 0);let s=n.substring(r+1,i).split(":");return s.length===3?{fileName:s[0],lineNumber:+s[1],columnNumber:+s[2]}:{fileName:"unknown",lineNumber:0,columnNumber:0}}getTranspileLocation(n){let r=n.indexOf("(");r<0&&(r=n.lastIndexOf("@"),r<0&&(r=n.lastIndexOf(" ")));let i=n.indexOf(")");return i<0&&(i=void 0),n.substring(r+1,i)}getSourceMapLocation(n){let r=this.getTranspileLocation(n),i=r.substring(0,r.lastIndexOf(":"));return i.substring(0,i.lastIndexOf(":"))+".map"}getMapping(n,r){let i=0,s=0,o=0,a=n.mappings.split(";");for(let l=0;l<a.length;l++){let u=0,c=a[l].split(",");for(let d=0;d<c.length;d++){let f=dw(c[d]);if(f.length>=4&&(u+=f[0],i+=f[1],s+=f[2],o+=f[3]),l===r.lineNumber){if(u===r.columnNumber)return{fileName:n.sources[i],lineNumber:s,columnNumber:o};if(d+1===c.length)return{fileName:n.sources[i],lineNumber:s,columnNumber:0}}}}return{fileName:"unknown",lineNumber:0,columnNumber:0}}getSourceMap(n,r){let i=new bn("GET",n),s=`${r.fileName}:${r.lineNumber}:${r.columnNumber}`;if(this.logPositionCache.has(s))return this.logPositionCache.get(s);this.sourceMapCache.has(n)||(this.httpBackend?this.sourceMapCache.set(n,this.httpBackend.handle(i).pipe(Dr(a=>a instanceof xi),ke(a=>a.body),Bp(3),ka(1))):(console.error("NGXLogger : Can't get sourcemap because HttpBackend is not provided. You need to import HttpClientModule"),this.sourceMapCache.set(n,Ue(null))));let o=this.sourceMapCache.get(n).pipe(ke(a=>a?this.getMapping(a,r):r),De(()=>Ue(r)),ka(1));return this.logPositionCache.set(s,o),o}}return e.\u0275fac=function(t){return new(t||e)(C(_i,8))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),_n="TOKEN_LOGGER_METADATA_SERVICE",gw=(()=>{class e{constructor(n){this.datePipe=n}computeTimestamp(n){let r=()=>new Date().toISOString();return n.timestampFormat?this.datePipe?this.datePipe.transform(new Date,n.timestampFormat):(console.error("NGXLogger : Can't use timeStampFormat because DatePipe is not provided. You need to provide DatePipe"),r()):r()}getMetadata(n,r,i,s){let o={level:n,additional:s};return i&&typeof i=="function"?o.message=i():o.message=i,o.timestamp=this.computeTimestamp(r),o}}return e.\u0275fac=function(t){return new(t||e)(C(Sh,8))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),xn="TOKEN_LOGGER_RULES_SERVICE",mw=(()=>{class e{shouldCallWriter(n,r,i,s){return!r.disableConsoleLogging&&n>=r.level}shouldCallServer(n,r,i,s){return!!r.serverLoggingUrl&&n>=r.serverLogLevel}shouldCallMonitor(n,r,i,s){return this.shouldCallWriter(n,r,i,s)||this.shouldCallServer(n,r,i,s)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),kn="TOKEN_LOGGER_SERVER_SERVICE",vw=(()=>{class e{constructor(n,r){this.httpBackend=n,this.ngZone=r,this.serverCallsQueue=[],this.flushingQueue=new lu(!1)}ngOnDestroy(){this.flushingQueue&&(this.flushingQueue.complete(),this.flushingQueue=null),this.addToQueueTimer&&(this.addToQueueTimer.unsubscribe(),this.addToQueueTimer=null)}secureErrorObject(n){return n?.stack}secureAdditionalParameters(n){return n==null?null:n.map((r,i)=>{try{return r instanceof Error?this.secureErrorObject(r):(typeof r=="object"&&JSON.stringify(r),r)}catch{return`The additional[${i}] value could not be parsed using JSON.stringify().`}})}secureMessage(n){try{if(n instanceof Error)return this.secureErrorObject(n);typeof n!="string"&&(n=JSON.stringify(n,null,2))}catch{n='The provided "message" value could not be parsed with JSON.stringify().'}return n}alterHttpRequest(n){return n}logOnServer(n,r,i){if(!this.httpBackend)return console.error("NGXLogger : Can't log on server because HttpBackend is not provided. You need to import HttpClientModule"),Ue(null);let s=new bn("POST",n,r,i||{}),o=Ue(s),a=this.alterHttpRequest(s);return kp(a)?o=a:a?o=Ue(a):console.warn("NGXLogger : alterHttpRequest returned an invalid request. Using default one instead"),o.pipe(Pu(l=>l?this.httpBackend.handle(l):(console.warn("NGXLogger : alterHttpRequest returned an invalid request (observable). Using default one instead"),this.httpBackend.handle(s))),Dr(l=>l instanceof xi),ke(l=>l.body))}customiseRequestBody(n){return n}flushQueue(n){this.flushingQueue.next(!0),this.addToQueueTimer&&(this.addToQueueTimer.unsubscribe(),this.addToQueueTimer=null),this.serverCallsQueue&&this.serverCallsQueue.length>0&&this.sendToServerAction(this.serverCallsQueue,n),this.serverCallsQueue=[],this.flushingQueue.next(!1)}sendToServerAction(n,r){let i,s=l=>{let u=M({},l);return u.additional=this.secureAdditionalParameters(u.additional),u.message=this.secureMessage(u.message),u};Array.isArray(n)?(i=[],n.forEach(l=>{i.push(s(l))})):i=s(n),i=this.customiseRequestBody(i);let o=r.customHttpHeaders||new xt;o.has("Content-Type")||o.set("Content-Type","application/json");let a=()=>{this.logOnServer(r.serverLoggingUrl,i,{headers:o,params:r.customHttpParams||new Ze,responseType:r.httpResponseType||"json",withCredentials:r.withCredentials||!1}).pipe(De(l=>(console.error("NGXLogger: Failed to log on server",l),Tu(l)))).subscribe()};if(r.serverCallsOutsideNgZone===!0){if(!this.ngZone){console.error("NGXLogger: NgZone is not provided and serverCallsOutsideNgZone is set to true");return}this.ngZone.runOutsideAngular(a)}else a()}sendToServer(n,r){if((!r.serverCallsBatchSize||r.serverCallsBatchSize<=0)&&(!r.serverCallsTimer||r.serverCallsTimer<=0)){this.sendToServerAction(n,r);return}let i=()=>{this.serverCallsQueue.push(M({},n)),r.serverCallsBatchSize&&this.serverCallsQueue.length>r.serverCallsBatchSize&&this.flushQueue(r),r.serverCallsTimer>0&&!this.addToQueueTimer&&(this.addToQueueTimer=Iu(r.serverCallsTimer).subscribe(s=>{this.flushQueue(r)}))};this.flushingQueue.value===!0?this.flushingQueue.pipe(Dr(s=>s===!1),Du(1)).subscribe(s=>{i()}):i()}}return e.\u0275fac=function(t){return new(t||e)(C(_i,8),C(se,8))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),Sn="TOKEN_LOGGER_WRITER_SERVICE",q=(function(e){return e[e.TRACE=0]="TRACE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.LOG=3]="LOG",e[e.WARN=4]="WARN",e[e.ERROR=5]="ERROR",e[e.FATAL=6]="FATAL",e[e.OFF=7]="OFF",e})(q||{}),yw=["purple","teal","gray","gray","red","red","red"],bw=(()=>{class e{constructor(n){this.platformId=n,this.prepareMetaStringFuncs=[this.getTimestampToWrite,this.getLevelToWrite,this.getFileDetailsToWrite,this.getContextToWrite],this.isIE=cC(n)&&navigator&&navigator.userAgent&&!!(navigator.userAgent.indexOf("MSIE")!==-1||navigator.userAgent.match(/Trident\//)||navigator.userAgent.match(/Edge\//)),this.logFunc=this.isIE?this.logIE.bind(this):this.logModern.bind(this)}getTimestampToWrite(n,r){return n.timestamp}getLevelToWrite(n,r){return q[n.level]}getFileDetailsToWrite(n,r){return r.disableFileDetails===!0?"":`[${n.fileName}:${n.lineNumber}:${n.columnNumber}]`}getContextToWrite(n,r){return r.context?`{${r.context}}`:""}prepareMetaString(n,r){let i="";return this.prepareMetaStringFuncs.forEach(s=>{let o=s(n,r);o&&(i=i+" "+o)}),i.trim()}getColor(n,r){let i=r.colorScheme??yw;if(n.level!==q.OFF)return i[n.level]}logIE(n,r,i){let s=n.additional||[];switch(n.level){case q.WARN:console.warn(`${i} `,n.message,...s);break;case q.ERROR:case q.FATAL:console.error(`${i} `,n.message,...s);break;case q.INFO:console.info(`${i} `,n.message,...s);break;default:console.log(`${i} `,n.message,...s)}}logModern(n,r,i){let s=this.getColor(n,r),o=n.additional||[];switch(n.level){case q.WARN:console.warn(`%c${i}`,`color:${s}`,n.message,...o);break;case q.ERROR:case q.FATAL:console.error(`%c${i}`,`color:${s}`,n.message,...o);break;case q.INFO:console.info(`%c${i}`,`color:${s}`,n.message,...o);break;case q.DEBUG:console.debug(`%c${i}`,`color:${s}`,n.message,...o);break;default:console.log(`%c${i}`,`color:${s}`,n.message,...o)}}writeMessage(n,r){let i=this.prepareMetaString(n,r);this.logFunc(n,r,i)}}return e.\u0275fac=function(t){return new(t||e)(C(Eo))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),kt=(()=>{class e{constructor(n,r,i,s,o,a,l){this.metadataService=i,this.ruleService=s,this.mapperService=o,this.writerService=a,this.serverService=l,this.configEngine=r.provideConfigEngine(n)}get level(){return this.configEngine.level}get serverLogLevel(){return this.configEngine.serverLogLevel}trace(n,...r){this._log(q.TRACE,n,r)}debug(n,...r){this._log(q.DEBUG,n,r)}info(n,...r){this._log(q.INFO,n,r)}log(n,...r){this._log(q.LOG,n,r)}warn(n,...r){this._log(q.WARN,n,r)}error(n,...r){this._log(q.ERROR,n,r)}fatal(n,...r){this._log(q.FATAL,n,r)}setCustomHttpHeaders(n){let r=this.getConfigSnapshot();r.customHttpHeaders=n,this.updateConfig(r)}setCustomParams(n){let r=this.getConfigSnapshot();r.customHttpParams=n,this.updateConfig(r)}setWithCredentialsOptionValue(n){let r=this.getConfigSnapshot();r.withCredentials=n,this.updateConfig(r)}registerMonitor(n){this._loggerMonitor=n}updateConfig(n){this.configEngine.updateConfig(n)}partialUpdateConfig(n){this.configEngine.partialUpdateConfig(n)}getConfigSnapshot(){return this.configEngine.getConfig()}flushServerQueue(){this.serverService.flushQueue(this.getConfigSnapshot())}_log(n,r,i=[]){let s=this.configEngine.getConfig(),o=this.ruleService.shouldCallWriter(n,s,r,i),a=this.ruleService.shouldCallServer(n,s,r,i),l=this.ruleService.shouldCallMonitor(n,s,r,i);if(!o&&!a&&!l)return;let u=this.metadataService.getMetadata(n,s,r,i);this.mapperService.getLogPosition(s,u).pipe(Du(1)).subscribe(c=>{c&&(u.fileName=c.fileName,u.lineNumber=c.lineNumber,u.columnNumber=c.columnNumber),l&&this._loggerMonitor&&this._loggerMonitor.onLog(u,s),o&&this.writerService.writeMessage(u,s),a&&this.serverService.sendToServer(u,s)})}}return e.\u0275fac=function(t){return new(t||e)(C(wr),C(Cn),C(_n),C(xn),C(wn),C(Sn),C(kn))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Cw=(()=>{class e{constructor(n,r,i,s,o,a,l){this.logger=n,this.configEngineFactory=r,this.metadataService=i,this.ruleService=s,this.mapperService=o,this.writerService=a,this.serverService=l}create(n,r,i,s){return this.getNewInstance({config:n,serverService:r,logMonitor:i,mapperService:s})}getNewInstance(n){let r=new kt(n?.config??this.logger.getConfigSnapshot(),n?.configEngineFactory??this.configEngineFactory,n?.metadataService??this.metadataService,n?.ruleService??this.ruleService,n?.mapperService??this.mapperService,n?.writerService??this.writerService,n?.serverService??this.serverService);return n?.partialConfig&&r.partialUpdateConfig(n.partialConfig),n?.logMonitor&&r.registerMonitor(n.logMonitor),r}}return e.\u0275fac=function(t){return new(t||e)(C(kt),C(Cn),C(_n),C(xn),C(wn),C(Sn),C(kn))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ww=(()=>{class e{static forRoot(n,r){if(r||(r={}),!r.configProvider)r.configProvider={provide:wr,useValue:n||{}};else if(r.configProvider.provide!==wr)throw new Error(`Wrong injection token for configProvider, it should be ${wr} and you used ${r.configProvider.provide}`);if(!r.configEngineFactoryProvider)r.configEngineFactoryProvider={provide:Cn,useClass:fw};else if(r.configEngineFactoryProvider.provide!==Cn)throw new Error(`Wrong injection token for configEngineFactoryProvider, it should be '${Cn}' and you used '${r.configEngineFactoryProvider.provide}'`);if(!r.metadataProvider)r.metadataProvider={provide:_n,useClass:gw};else if(r.metadataProvider.provide!==_n)throw new Error(`Wrong injection token for metadataProvider, it should be '${_n}' and you used '${r.metadataProvider.provide}'`);if(!r.ruleProvider)r.ruleProvider={provide:xn,useClass:mw};else if(r.ruleProvider.provide!==xn)throw new Error(`Wrong injection token for ruleProvider, it should be '${xn}' and you used '${r.ruleProvider.provide}'`);if(!r.mapperProvider)r.mapperProvider={provide:wn,useClass:pw};else if(r.mapperProvider.provide!==wn)throw new Error(`Wrong injection token for mapperProvider, it should be '${wn}' and you used '${r.mapperProvider.provide}'`);if(!r.writerProvider)r.writerProvider={provide:Sn,useClass:bw};else if(r.writerProvider.provide!==Sn)throw new Error(`Wrong injection token for writerProvider, it should be '${Sn}' and you used '${r.writerProvider.provide}'`);if(!r.serverProvider)r.serverProvider={provide:kn,useClass:vw};else if(r.serverProvider.provide!==kn)throw new Error(`Wrong injection token for serverProvider, it should be '${kn}' and you used '${r.writerProvider.provide}'`);return{ngModule:e,providers:[kt,r.configProvider,r.configEngineFactoryProvider,r.metadataProvider,r.ruleProvider,r.mapperProvider,r.writerProvider,r.serverProvider,Cw]}}static forChild(){return{ngModule:e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bi({type:e}),e.\u0275inj=ri({imports:[[Ce]]}),e})(),Nl={sparkle:{viewBox:"0 0 51 51",path:'<path d="M25.5 0L27.7528 6.13139C30.6703 14.0717 36.9283 20.3297 44.8686 23.2472L51 25.5L44.8686 27.7528C36.9283 30.6703 30.6703 36.9283 27.7528 44.8686L25.5 51L23.2471 44.8686C20.3297 36.9283 14.0717 30.6703 6.13139 27.7528L0 25.5L6.13139 23.2471C14.0717 20.3297 20.3297 14.0717 23.2472 6.13139L25.5 0Z" fill="url(#paint0_linear_1_3105)"/>',defs:`<defs>
|
|
8
8
|
<linearGradient id="paint0_linear_1_3105" x1="12.75" y1="7.08333" x2="46.75" y2="42.5" gradientUnits="userSpaceOnUse">
|
|
9
9
|
<stop stop-color="#FFBDB2"/>
|
|
10
10
|
<stop offset="1" stop-color="#FF5337"/>
|
|
@@ -20,7 +20,8 @@ ${t.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
|
|
|
20
20
|
<path d="M21 21l-4.35-4.35" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>`},edit:{viewBox:"0 0 24 24",path:`<path d="M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
21
21
|
<path d="M18.5 2.5a2.121 2.121 0 013 3L12 15l-4 1 1-4 9.5-9.5z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"/>`},check:{viewBox:"0 0 24 24",path:'<polyline points="20 6 9 17 4 12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"/>'},"chevron-left":{viewBox:"0 0 24 24",path:'<polyline points="15 18 9 12 15 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"/>'},"more-horizontal":{viewBox:"0 0 24 24",path:`<circle cx="12" cy="12" r="1.5" fill="currentColor"/>
|
|
22
22
|
<circle cx="19" cy="12" r="1.5" fill="currentColor"/>
|
|
23
|
-
<circle cx="5" cy="12" r="1.5" fill="currentColor"/>`}},Ao=class ms{constructor(t){this.sanitizer=t}name="";width="24";height="24";fill="none";dropShadow="";get viewBox(){return na[this.name]?.viewBox||"0 0 24 24"}get svgContent(){let t=na[this.name];if(!t)return"";let n=t.path+(t.defs||"");return this.sanitizer.bypassSecurityTrustHtml(n)}static \u0275fac=function(t){return new(t||ms)(A(gh))};static \u0275cmp=pt({type:ms,selectors:[["app-icon"]],inputs:{name:"name",width:"width",height:"height",fill:"fill",dropShadow:"dropShadow"},decls:1,vars:7,consts:[["xmlns","http://www.w3.org/2000/svg",3,"innerHTML"]],template:function(t,n){t&1&&(mg(),Md(0,"svg",0)),t&2&&(Vd("filter",n.dropShadow),Dd("innerHTML",n.svgContent,Dc),Od("width",n.width)("height",n.height)("viewBox",n.viewBox)("fill",n.fill))},dependencies:[We],styles:["[_nghost-%COMP%]{display:inline-block;line-height:0}"]})},Ie={TITLE:"App Agent",WELCOME:{GREETING:"Hi!",TEXT:"Welcome to Open as App!",DESCRIPTION:"I'm your AI assistant, and I'm here to help you get started.",PERSONALIZATION:"To personalize my guidance, could you tell me what you're hoping to do?"},INPUT:{PLACEHOLDER:"Ask me anything..."},SUGGESTIONS:["Summarize data","What are the key columns","What is this app about"]},H_=class ys{title=Ie.TITLE;menuClick=new D;closeClick=new D;onMenuClick(){this.menuClick.emit()}onCloseClick(){this.closeClick.emit()}static \u0275fac=function(t){return new(t||ys)};static \u0275cmp=pt({type:ys,selectors:[["app-header"]],inputs:{title:"title"},outputs:{menuClick:"menuClick",closeClick:"closeClick"},decls:9,vars:1,consts:[[1,"header"],["aria-label","Menu",1,"icon-button","menu-button",3,"click"],["name","menu","width","24","height","24"],[1,"header-title"],["name","sparkle","width","24","height","24",1,"title-icon"],["aria-label","Close",1,"icon-button","close-button",3,"click"],["name","close","width","24","height","24"]],template:function(t,n){t&1&&(V(0,"div",0)(1,"button",1),_e("click",function(){return n.onMenuClick()}),ge(2,"app-icon",2),R(),V(3,"div",3),ge(4,"app-icon",4),V(5,"span"),Xe(6),R()(),V(7,"button",5),_e("click",function(){return n.onCloseClick()}),ge(8,"app-icon",6),R()()),t&2&&(j(6),kt(n.title))},dependencies:[We,Ao],styles:[".header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background:#fff;border-bottom:1px solid #f0f0f0;height:64px;box-sizing:border-box}.icon-button[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;border-radius:8px;transition:background-color .2s;color:#333}.icon-button[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.icon-button[_ngcontent-%COMP%]:active{background-color:#e0e0e0}.header-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:20px;font-weight:600;color:#ff6b6b;flex:1;justify-content:center}.title-icon[_ngcontent-%COMP%]{width:24px;height:24px}.menu-button[_ngcontent-%COMP%], .close-button[_ngcontent-%COMP%]{width:40px;height:40px}.close-button[_ngcontent-%COMP%]{background-color:#f5f5f5;border-radius:50%}.close-button[_ngcontent-%COMP%]:hover{background-color:#e8e8e8}"]})},z_=class vs{text="";disabled=!1;buttonClick=new D;onClick(){this.disabled||this.buttonClick.emit(this.text)}static \u0275fac=function(t){return new(t||vs)};static \u0275cmp=pt({type:vs,selectors:[["app-suggestion-button"]],inputs:{text:"text",disabled:"disabled"},outputs:{buttonClick:"buttonClick"},decls:2,vars:3,consts:[[1,"suggestion-button",3,"click"]],template:function(t,n){t&1&&(xo(0,"button",0),Ad("click",function(){return n.onClick()}),Xe(1),ko()),t&2&&(ct("disabled",n.disabled),j(),Eo(" ",n.text," "))},dependencies:[We],styles:[".suggestion-button[_ngcontent-%COMP%]{background:#fff;border:1.5px solid #FF6B6B;border-radius:8px;padding:14px 24px;font-size:15px;font-weight:500;color:#ff6b6b;cursor:pointer;transition:all .2s ease;white-space:nowrap;box-shadow:0 2px 4px #0000000d;display:inline-block;width:auto;text-align:center}.suggestion-button[_ngcontent-%COMP%]:hover:not(.disabled){background:#fff5f5;border-color:#ff5252;transform:translateY(-1px);box-shadow:0 4px 8px #ff6b6b26}.suggestion-button[_ngcontent-%COMP%]:active:not(.disabled){transform:translateY(0);box-shadow:0 2px 4px #0000000d}.suggestion-button.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}"]})},yh=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(n){return new(n||e)(A(ad),A(qt))};static \u0275dir=gt({type:e})}return e})(),B_=(()=>{class e extends yh{static \u0275fac=(()=>{let n;return function(r){return(n||(n=Gg(e)))(r||e)}})();static \u0275dir=gt({type:e,features:[In]})}return e})(),vh=new C(""),U_={provide:vh,useExisting:Vr(()=>Vo),multi:!0};function Z_(){let e=Mr()?Mr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var q_=new C(""),Vo=(()=>{class e extends yh{_compositionMode;_composing=!1;constructor(n,r,i){super(n,r),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!Z_())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(n){return new(n||e)(A(ad),A(qt),A(q_,8))};static \u0275dir=gt({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){n&1&&_e("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},standalone:!1,features:[Fd([U_]),In]})}return e})(),G_=new C(""),W_=new C("");function bh(e){return e!=null}function _h(e){return Co(e)?Vs(e):e}function wh(e){let t={};return e.forEach(n=>{t=n!=null?z(z({},t),n):t}),Object.keys(t).length===0?null:t}function Ch(e,t){return t.map(n=>n(e))}function $_(e){return!e.validate}function xh(e){return e.map(t=>$_(t)?t:n=>t.validate(n))}function Q_(e){if(!e)return null;let t=e.filter(bh);return t.length==0?null:function(n){return wh(Ch(n,t))}}function kh(e){return e!=null?Q_(xh(e)):null}function Y_(e){if(!e)return null;let t=e.filter(bh);return t.length==0?null:function(n){let r=Ch(n,t).map(_h);return lp(r).pipe(fe(wh))}}function Eh(e){return e!=null?Y_(xh(e)):null}function ra(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function J_(e){return e._rawValidators}function K_(e){return e._rawAsyncValidators}function bs(e){return e?Array.isArray(e)?e:[e]:[]}function Dr(e,t){return Array.isArray(e)?e.includes(t):e===t}function ia(e,t){let n=bs(t);return bs(e).forEach(r=>{Dr(n,r)||n.push(r)}),n}function sa(e,t){return bs(t).filter(n=>!Dr(e,n))}var Sh=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=kh(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Eh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},X_=class extends Sh{name;get formDirective(){return null}get path(){return null}},No=class extends Sh{_parent=null;name=null;valueAccessor=null},ew=class{_cd;constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},tw={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Zw=Q(z({},tw),{"[class.ng-submitted]":"isSubmitted"}),nw=(()=>{class e extends ew{constructor(n){super(n)}static \u0275fac=function(n){return new(n||e)(A(No,2))};static \u0275dir=gt({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&ct("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[In]})}return e})(),Yt="VALID",Zn="INVALID",yt="PENDING",Jt="DISABLED",On=class{},oa=class extends On{value;source;constructor(e,t){super(),this.value=e,this.source=t}},Pi=class extends On{pristine;source;constructor(e,t){super(),this.pristine=e,this.source=t}},Di=class extends On{touched;source;constructor(e,t){super(),this.touched=e,this.source=t}},qn=class extends On{status;source;constructor(e,t){super(),this.status=e,this.source=t}},rw=class extends On{source;constructor(e){super(),this.source=e}};function iw(e){return(Kr(e)?e.validators:e)||null}function sw(e){return Array.isArray(e)?kh(e):e||null}function ow(e,t){return(Kr(t)?t.asyncValidators:e)||null}function lw(e){return Array.isArray(e)?Eh(e):e||null}function Kr(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var aw=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(e,t){this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return mt(this.statusReactive)}set status(e){mt(()=>this.statusReactive.set(e))}_status=Ci(()=>this.statusReactive());statusReactive=ci(void 0);get valid(){return this.status===Yt}get invalid(){return this.status===Zn}get pending(){return this.status==yt}get disabled(){return this.status===Jt}get enabled(){return this.status!==Jt}errors;get pristine(){return mt(this.pristineReactive)}set pristine(e){mt(()=>this.pristineReactive.set(e))}_pristine=Ci(()=>this.pristineReactive());pristineReactive=ci(!0);get dirty(){return!this.pristine}get touched(){return mt(this.touchedReactive)}set touched(e){mt(()=>this.touchedReactive.set(e))}_touched=Ci(()=>this.touchedReactive());touchedReactive=ci(!1);get untouched(){return!this.touched}_events=new qe;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(ia(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(ia(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(sa(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(sa(e,this._rawAsyncValidators))}hasValidator(e){return Dr(this._rawValidators,e)}hasAsyncValidator(e){return Dr(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let t=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(Q(z({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new Di(!0,n))}markAllAsDirty(e={}){this.markAsDirty({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsDirty(e))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),t&&e.emitEvent!==!1&&this._events.next(new Di(!1,n))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(Q(z({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new Pi(!1,n))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),t&&e.emitEvent!==!1&&this._events.next(new Pi(!0,n))}markAsPending(e={}){this.status=yt;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new qn(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(Q(z({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=Jt,this.errors=null,this._forEachChild(r=>{r.disable(Q(z({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new oa(this.value,n)),this._events.next(new qn(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Q(z({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=Yt,this._forEachChild(n=>{n.enable(Q(z({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Q(z({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Yt||this.status===yt)&&this._runAsyncValidator(n,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new oa(this.value,t)),this._events.next(new qn(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(Q(z({},e),{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Jt:Yt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=yt,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:e!==!1};let n=_h(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((n,r)=>n&&n._find(r),this)}getError(e,t){let n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new qn(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,n)}_initObservables(){this.valueChanges=new D,this.statusChanges=new D}_calculateStatus(){return this._allControlsDisabled()?Jt:this.errors?Zn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(yt)?yt:this._anyControlsHaveStatus(Zn)?Zn:Yt}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),r&&this._events.next(new Pi(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new Di(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Kr(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=sw(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=lw(this._rawAsyncValidators)}},Th=new C("",{providedIn:"root",factory:()=>Ro}),Ro="always";function uw(e,t){return[...t.path,e]}function cw(e,t,n=Ro){hw(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),fw(e,t),gw(e,t),pw(e,t),dw(e,t)}function la(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function dw(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function hw(e,t){let n=J_(e);t.validator!==null?e.setValidators(ra(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=K_(e);t.asyncValidator!==null?e.setAsyncValidators(ra(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();la(t._rawValidators,i),la(t._rawAsyncValidators,i)}function fw(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Ih(e,t)})}function pw(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Ih(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Ih(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function gw(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function mw(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function yw(e){return Object.getPrototypeOf(e.constructor)===B_}function vw(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(s=>{s.constructor===Vo?n=s:yw(s)?r=s:i=s}),i||r||n||null}function aa(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function ua(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var bw=class extends aw{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,t,n){super(iw(t),ow(n,t)),this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Kr(t)&&(t.nonNullable||t.initialValueIsDefault)&&(ua(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1,t?.emitEvent!==!1&&this._events.next(new rw(this))}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){aa(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){aa(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){ua(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},_w={provide:No,useExisting:Vr(()=>Oh)},ca=Promise.resolve(),Oh=(()=>{class e extends No{_changeDetectorRef;callSetDisabledState;control=new bw;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new D;constructor(n,r,i,s,o,l){super(),this._changeDetectorRef=o,this.callSetDisabledState=l,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=vw(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),mw(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){cw(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){ca.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,i=r!==0&&H1(r);ca.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?uw(n,this._parent):[n]}static \u0275fac=function(n){return new(n||e)(A(X_,9),A(G_,10),A(W_,10),A(vh,10),A(P1,8),A(Th,8))};static \u0275dir=gt({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Fd([_w]),In,Gu]})}return e})(),ww=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=$r({type:e});static \u0275inj=Nr({})}return e})(),Cw=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Th,useValue:n.callSetDisabledState??Ro}]}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=$r({type:e});static \u0275inj=Nr({imports:[ww]})}return e})(),xw=class _s{placeholder=Ie.INPUT.PLACEHOLDER;disabled=!1;value="";voiceStatus={state:"idle",transcript:"",interimTranscript:""};valueChange=new D;submitMessage=new D;voiceClick=new D;addClick=new D;get isListening(){return this.voiceStatus.state==="listening"}get displayValue(){if(this.isListening){let t=this.voiceStatus.transcript||"",n=this.voiceStatus.interimTranscript||"";return t+(t&&n?" ":"")+n}return this.value}get displayPlaceholder(){return this.isListening?"Listening... Speak now":this.placeholder}onInputChange(t){!this.isListening&&t!==void 0&&(this.value=t,this.valueChange.emit(this.value))}onSubmit(){if(this.value.trim()&&!this.isListening){let t=this.value;this.value="",this.valueChange.emit(this.value),this.submitMessage.emit(t)}}onVoiceClick(){this.voiceClick.emit()}onAddClick(){this.addClick.emit()}static \u0275fac=function(t){return new(t||_s)};static \u0275cmp=pt({type:_s,selectors:[["app-input-field"]],inputs:{placeholder:"placeholder",disabled:"disabled",value:"value",voiceStatus:"voiceStatus"},outputs:{valueChange:"valueChange",submitMessage:"submitMessage",voiceClick:"voiceClick",addClick:"addClick"},decls:7,vars:8,consts:[[1,"input-container"],[1,"input-wrapper"],["aria-label","Add",1,"icon-button","add-button",3,"click"],["name","add","width","24","height","24"],["type","text",1,"input-field",3,"ngModelChange","keyup.enter","ngModel","placeholder","disabled","readonly"],["aria-label","Voice input",1,"icon-button","voice-button",3,"click"],["name","microphone","width","24","height","24","fill","currentColor"]],template:function(t,n){t&1&&(V(0,"div",0)(1,"div",1)(2,"button",2),_e("click",function(){return n.onAddClick()}),ge(3,"app-icon",3),R(),V(4,"input",4),_e("ngModelChange",function(r){return n.onInputChange(r)})("keyup.enter",function(){return n.onSubmit()}),R(),V(5,"button",5),_e("click",function(){return n.onVoiceClick()}),ge(6,"app-icon",6),R()()()),t&2&&(j(4),ct("listening",n.isListening),q("ngModel",n.displayValue)("placeholder",n.displayPlaceholder)("disabled",n.disabled||n.isListening)("readonly",n.isListening),j(),ct("active",n.isListening))},dependencies:[We,Cw,Vo,nw,Oh,Ao],styles:[".input-container[_ngcontent-%COMP%]{padding:16px 20px;background:#fff;border-top:1px solid #f0f0f0}.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;background:#f8f8f8;border-radius:12px;padding:8px 16px;transition:background-color .2s}.input-wrapper[_ngcontent-%COMP%]:focus-within{background:#f0f0f0}.input-field[_ngcontent-%COMP%]{flex:1;border:none;background:transparent;font-size:15px;color:#333;outline:none;padding:8px 0}.input-field[_ngcontent-%COMP%]::placeholder{color:#999}.input-field[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.input-field.listening[_ngcontent-%COMP%]{color:#ff6b6b;font-style:italic}.icon-button[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color .2s;color:#666;min-width:40px;min-height:40px}.icon-button[_ngcontent-%COMP%]:hover{background-color:#0000000d;color:#333}.icon-button[_ngcontent-%COMP%]:active{background-color:#0000001a}.voice-button.active[_ngcontent-%COMP%]{color:#ff6b6b;animation:_ngcontent-%COMP%_pulse 1.5s ease-in-out infinite}@keyframes _ngcontent-%COMP%_pulse{0%,to{opacity:1}50%{opacity:.6}}"]})};function kw(e,t){e&1&&(V(0,"div",6),ge(1,"span")(2,"span")(3,"span"),R())}function Ew(e,t){if(e&1&&ge(0,"div",7),e&2){let n=at();q("innerHTML",n.message.text,Dc)}}var Sw=class ws{message;get isUser(){return this.message.sender==="user"}get isAssistant(){return this.message.sender==="assistant"}static \u0275fac=function(t){return new(t||ws)};static \u0275cmp=pt({type:ws,selectors:[["app-message"]],inputs:{message:"message"},decls:6,vars:8,consts:[[1,"message"],[1,"message-container"],[1,"message-content"],[1,"message-bubble"],["class","typing-indicator",4,"ngIf"],["class","message-text",3,"innerHTML",4,"ngIf"],[1,"typing-indicator"],[1,"message-text",3,"innerHTML"]],template:function(t,n){t&1&&(V(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),Gt(4,kw,4,0,"div",4)(5,Ew,1,1,"div",5),R()()()()),t&2&&(ct("user",n.isUser)("assistant",n.isAssistant),j(3),ct("typing",n.message.isTyping),j(),q("ngIf",n.message.isTyping),j(),q("ngIf",!n.message.isTyping))},dependencies:[We,To],styles:[".message[_ngcontent-%COMP%]{display:flex;margin-bottom:16px;animation:_ngcontent-%COMP%_fadeIn .3s ease-in}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.message-container[_ngcontent-%COMP%]{display:flex;align-items:flex-start;max-width:100%;width:100%}.message.user[_ngcontent-%COMP%] .message-container[_ngcontent-%COMP%]{justify-content:flex-end}.message-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-width:85%}.message.user[_ngcontent-%COMP%] .message-content[_ngcontent-%COMP%]{align-items:flex-end}.message-bubble[_ngcontent-%COMP%]{padding:12px 16px;border-radius:10px;word-wrap:break-word;width:fit-content}.message.user[_ngcontent-%COMP%] .message-bubble[_ngcontent-%COMP%]{background:#ff6b4a;color:#fff;border-radius:10px;box-shadow:0 1px 2px #0000001a}.message.assistant[_ngcontent-%COMP%] .message-bubble[_ngcontent-%COMP%]{background:transparent;color:#2c3e50;border:none;box-shadow:none;padding:0}.message-bubble.typing[_ngcontent-%COMP%]{padding:16px;min-width:60px}.message-text[_ngcontent-%COMP%]{margin:0;line-height:1.5;font-size:14px;white-space:normal}.message-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 8px}.message-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-child{margin-bottom:0}.message-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .message-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .message-text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .message-text[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .message-text[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .message-text[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{margin:12px 0 8px;font-weight:600}.message-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]:first-child, .message-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]:first-child, .message-text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]:first-child, .message-text[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]:first-child, .message-text[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]:first-child, .message-text[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]:first-child{margin-top:0}.message-text[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .message-text[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:8px 0;padding-left:24px}.message-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:4px 0}.message-text[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:600}.message-text[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{font-style:italic}.message-text[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:#0000000d;padding:2px 4px;border-radius:3px;font-family:Courier New,monospace;font-size:13px}.message-text[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{background:#0000000d;padding:12px;border-radius:6px;overflow-x:auto;margin:8px 0}.message-text[_ngcontent-%COMP%] pre[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:none;padding:0}.typing-indicator[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;height:16px}.typing-indicator[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:8px;height:8px;border-radius:50%;background-color:#95a5a6;animation:_ngcontent-%COMP%_typing 1.4s infinite}.typing-indicator[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){animation-delay:.2s}.typing-indicator[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){animation-delay:.4s}@keyframes _ngcontent-%COMP%_typing{0%,60%,to{transform:translateY(0);opacity:.5}30%{transform:translateY(-10px);opacity:1}}@media (max-width: 768px){.message-bubble[_ngcontent-%COMP%]{max-width:90%}}"]})},Tw=["messagesContainer"];function Iw(e,t){if(e&1&&ge(0,"app-message",7),e&2){let n=t.$implicit;q("message",n)}}function Ow(e,t){if(e&1&&(V(0,"div",5),Gt(1,Iw,1,1,"app-message",6),R()),e&2){let n=at();j(),q("ngForOf",n.messages)("ngForTrackBy",n.trackByMessageId)}}function Mw(e,t){e&1&&(V(0,"div",8)(1,"p",9),Xe(2,"Start a conversation by typing a message or selecting a suggestion below."),R()())}var Pw=class Cs{messages=[];messagesContainer;shouldScroll=!1;ngAfterViewChecked(){this.shouldScroll&&(this.scrollToBottom(),this.shouldScroll=!1)}ngOnChanges(t){t.messages&&(this.shouldScroll=!0)}trackByMessageId(t,n){return n.id}scrollToBottom(){try{this.messagesContainer&&(this.messagesContainer.nativeElement.scrollTop=this.messagesContainer.nativeElement.scrollHeight)}catch(t){console.error("Error scrolling to bottom:",t)}}static \u0275fac=function(t){return new(t||Cs)};static \u0275cmp=pt({type:Cs,selectors:[["app-chat-history"]],viewQuery:function(t,n){if(t&1&&G0(Tw,5),t&2){let r;W0(r=$0())&&(n.messagesContainer=r.first)}},inputs:{messages:"messages"},features:[Gu],decls:5,vars:2,consts:[["messagesContainer",""],[1,"chat-history"],[1,"messages-container"],["class","messages-list",4,"ngIf"],["class","empty-state",4,"ngIf"],[1,"messages-list"],[3,"message",4,"ngFor","ngForOf","ngForTrackBy"],[3,"message"],[1,"empty-state"],[1,"empty-text"]],template:function(t,n){t&1&&(V(0,"div",1)(1,"div",2,0),Gt(3,Ow,2,2,"div",3)(4,Mw,3,0,"div",4),R()()),t&2&&(j(3),q("ngIf",n.messages.length>0),j(),q("ngIf",n.messages.length===0))},dependencies:[We,qd,To,Sw],styles:[".chat-history[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow:hidden;width:100%;min-height:0;max-height:100%}.messages-container[_ngcontent-%COMP%]{flex:1;overflow-y:auto;overflow-x:hidden;padding:16px;scroll-behavior:smooth;min-height:0;-webkit-overflow-scrolling:touch}.messages-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px}.messages-container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:transparent}.messages-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#0003;border-radius:3px}.messages-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#0000004d}.messages-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.empty-state[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;padding:32px}.empty-text[_ngcontent-%COMP%]{color:#95a5a6;font-size:14px;text-align:center;line-height:1.6;max-width:400px}"]})};function Dw(e,t){if(e&1&&(V(0,"div",7)(1,"div",8),ge(2,"app-icon",9),R(),V(3,"h1",10),Xe(4),R(),V(5,"p",11),Xe(6),R(),V(7,"p",12),Xe(8),R()()),e&2){let n=at();j(4),kt(n.greeting),j(2),kt(n.welcomeText),j(2),kt(n.description)}}function Aw(e,t){if(e&1&&ge(0,"app-chat-history",13),e&2){let n=at();q("messages",n.messages)}}function Vw(e,t){if(e&1){let n=j0();V(0,"app-suggestion-button",18),_e("buttonClick",function(r){ig(n);let i=at(2);return sg(i.onSuggestionClick(r))}),R()}if(e&2){let n=t.$implicit,r=at(2);q("text",n)("disabled",r.isLoading)}}function Nw(e,t){if(e&1&&(V(0,"div",14)(1,"p",15),Xe(2),R(),V(3,"div",16),Gt(4,Vw,1,2,"app-suggestion-button",17),R()()),e&2){let n=at();j(2),kt(n.personalizationText),j(2),q("ngForOf",n.suggestions)}}var Rw=class xs{title=Ie.TITLE;greeting=Ie.WELCOME.GREETING;welcomeText=Ie.WELCOME.TEXT;description=Ie.WELCOME.DESCRIPTION;personalizationText=Ie.WELCOME.PERSONALIZATION;inputPlaceholder=Ie.INPUT.PLACEHOLDER;suggestions=[...Ie.SUGGESTIONS];messages=[];hasMessages=!1;isLoading=!1;voiceStatus={state:"idle",transcript:"",interimTranscript:""};inputValue="";menuClick=new D;closeClick=new D;suggestionClick=new D;messageSubmit=new D;voiceClick=new D;addClick=new D;inputValueChange=new D;onMenuClick(){this.menuClick.emit()}onCloseClick(){this.closeClick.emit()}onSuggestionClick(t){this.suggestionClick.emit(t)}onMessageSubmit(t){this.messageSubmit.emit(t)}onVoiceClick(){this.voiceClick.emit()}onAddClick(){this.addClick.emit()}onInputValueChange(t){this.inputValueChange.emit(t)}static \u0275fac=function(t){return new(t||xs)};static \u0275cmp=pt({type:xs,selectors:[["app-assistant"]],inputs:{title:"title",greeting:"greeting",welcomeText:"welcomeText",description:"description",personalizationText:"personalizationText",inputPlaceholder:"inputPlaceholder",suggestions:"suggestions",messages:"messages",hasMessages:"hasMessages",isLoading:"isLoading",voiceStatus:"voiceStatus",inputValue:"inputValue"},outputs:{menuClick:"menuClick",closeClick:"closeClick",suggestionClick:"suggestionClick",messageSubmit:"messageSubmit",voiceClick:"voiceClick",addClick:"addClick",inputValueChange:"inputValueChange"},decls:7,vars:8,consts:[[1,"assistant-page"],[3,"menuClick","closeClick","title"],[1,"content"],["class","welcome-container",4,"ngIf"],[3,"messages",4,"ngIf"],["class","personalization-section",4,"ngIf"],[3,"valueChange","submitMessage","voiceClick","addClick","placeholder","disabled","voiceStatus","value"],[1,"welcome-container"],[1,"icon-wrapper"],["name","sparkle","width","64","height","64","dropShadow","drop-shadow(0 4px 8px rgba(255, 107, 107, 0.2))",1,"sparkle-icon"],[1,"greeting"],[1,"welcome-text"],[1,"description"],[3,"messages"],[1,"personalization-section"],[1,"personalization-text"],[1,"suggestions"],[3,"text","disabled","buttonClick",4,"ngFor","ngForOf"],[3,"buttonClick","text","disabled"]],template:function(t,n){t&1&&(V(0,"div",0)(1,"app-header",1),_e("menuClick",function(){return n.onMenuClick()})("closeClick",function(){return n.onCloseClick()}),R(),V(2,"div",2),Gt(3,Dw,9,3,"div",3)(4,Aw,1,1,"app-chat-history",4)(5,Nw,5,2,"div",5),R(),V(6,"app-input-field",6),_e("valueChange",function(r){return n.onInputValueChange(r)})("submitMessage",function(r){return n.onMessageSubmit(r)})("voiceClick",function(){return n.onVoiceClick()})("addClick",function(){return n.onAddClick()}),R()()),t&2&&(j(),q("title",n.title),j(2),q("ngIf",!n.hasMessages),j(),q("ngIf",n.hasMessages),j(),q("ngIf",!n.hasMessages),j(),q("placeholder",n.inputPlaceholder)("disabled",n.isLoading)("voiceStatus",n.voiceStatus)("value",n.inputValue))},dependencies:[We,qd,To,H_,z_,xw,Ao,Pw],styles:[".assistant-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100vh;max-height:100vh;background:#fff;font-family:Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;overflow:hidden}.content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0;position:relative}app-chat-history[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.welcome-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:20px 24px 30px;text-align:center;flex:1}.icon-wrapper[_ngcontent-%COMP%]{margin-bottom:16px}.greeting[_ngcontent-%COMP%]{font-size:28px;font-weight:700;margin:0 0 12px;color:#1a1a1a}.welcome-text[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0 0 12px;color:#333}.description[_ngcontent-%COMP%]{font-size:15px;font-weight:400;margin:0 0 20px;color:#666;max-width:400px;line-height:1.4}.personalization-section[_ngcontent-%COMP%]{padding:0 24px 24px;display:flex;flex-direction:column;align-items:center;gap:16px;flex-shrink:0}.personalization-text[_ngcontent-%COMP%]{font-size:15px;color:#666;margin:0;text-align:center;max-width:400px;line-height:1.4}.suggestions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;max-width:400px}@media (max-width: 768px){.suggestions[_ngcontent-%COMP%]{max-width:100%}}"]})},Fw=class sr{constructor(t){this.http=t}config=null;loadConfig(){return da(this,null,function*(){try{this.config=yield Wf(this.http.get("/config.json")),console.log("Configuration loaded:",this.config?.environmentName)}catch(t){console.error("Failed to load configuration, using defaults",t),this.config={apiUrl:"https://localhost:7592",apiTimeout:3e4,environmentName:"local"}}})}get apiUrl(){return this.config?.apiUrl||"https://localhost:7592"}get apiTimeout(){return this.config?.apiTimeout||3e4}get environmentName(){return this.config?.environmentName||"local"}getConfig(){return this.config||{apiUrl:"https://localhost:7592",apiTimeout:3e4,environmentName:"local"}}static \u0275fac=function(t){return new(t||sr)(y(uh))};static \u0275prov=E({token:sr,factory:sr.\u0275fac,providedIn:"root"})},Lw={production:!0};function Mh(e){return()=>e.loadConfig()}da(null,null,function*(){if(customElements.get("app-assistant")){console.log("\u26A0\uFE0F Web Component already registered, skipping...");return}let e=yield Zb({providers:[xg(),b1({eventCoalescing:!0}),E_(S_()),{provide:Td,useFactory:Mh,deps:[Fw],multi:!0},Gd,j_.forRoot({level:Lw.production?F.WARN:F.DEBUG,serverLogLevel:F.ERROR,disableConsoleLogging:!1,enableSourceMaps:!0,timestampFormat:"short"}).providers||[]]}),t=X1(Rw,{injector:e.injector});customElements.define("app-assistant",t),console.log("\u2705 Web Component registered: app-assistant")});return Rh(jw);})();
|
|
23
|
+
<circle cx="5" cy="12" r="1.5" fill="currentColor"/>`}},ln=class Hs{constructor(t){this.sanitizer=t}name="";width="24";height="24";fill="none";dropShadow="";get viewBox(){return Nl[this.name]?.viewBox||"0 0 24 24"}get svgContent(){let t=Nl[this.name];if(!t)return"";let n=t.path+(t.defs||"");return this.sanitizer.bypassSecurityTrustHtml(n)}static \u0275fac=function(t){return new(t||Hs)(j(Gh))};static \u0275cmp=Me({type:Hs,selectors:[["app-icon"]],inputs:{name:"name",width:"width",height:"height",fill:"fill",dropShadow:"dropShadow"},decls:1,vars:7,consts:[["xmlns","http://www.w3.org/2000/svg",3,"innerHTML"]],template:function(t,n){t&1&&(Gg(),oh(0,"svg",0)),t&2&&(fh("filter",n.dropShadow),ch("innerHTML",n.svgContent,fd),Ko("width",n.width)("height",n.height)("viewBox",n.viewBox)("fill",n.fill))},dependencies:[Ce],styles:["[_nghost-%COMP%]{display:inline-block;line-height:0}"]})},Be={TITLE:"App Agent",WELCOME:{GREETING:"Hi!",TEXT:"Welcome to Open as App!",DESCRIPTION:"I'm your AI assistant, and I'm here to help you get started.",PERSONALIZATION:"To personalize my guidance, could you tell me what you're hoping to do?"},INPUT:{PLACEHOLDER:"Ask me anything..."},SUGGESTIONS:["Summarize data","What are the key columns","What is this app about"]},_w=class zs{title=Be.TITLE;menuClick=new R;closeClick=new R;onMenuClick(){this.menuClick.emit()}onCloseClick(){this.closeClick.emit()}static \u0275fac=function(t){return new(t||zs)};static \u0275cmp=Me({type:zs,selectors:[["app-header"]],inputs:{title:"title"},outputs:{menuClick:"menuClick",closeClick:"closeClick"},decls:9,vars:1,consts:[[1,"header"],["aria-label","Menu",1,"icon-button","menu-button",3,"click"],["name","menu","width","24","height","24"],[1,"header-title"],["name","sparkle","width","24","height","24",1,"title-icon"],["aria-label","Close",1,"icon-button","close-button",3,"click"],["name","close","width","24","height","24"]],template:function(t,n){t&1&&(g(0,"div",0)(1,"button",1),T("click",function(){return n.onMenuClick()}),U(2,"app-icon",2),y(),g(3,"div",3),U(4,"app-icon",4),g(5,"span"),F(6),y()(),g(7,"button",5),T("click",function(){return n.onCloseClick()}),U(8,"app-icon",6),y()()),t&2&&(S(6),Oe(n.title))},dependencies:[Ce,ln],styles:[".header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background:#fff;border-bottom:1px solid #f0f0f0;height:64px;box-sizing:border-box}.icon-button[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;border-radius:8px;transition:background-color .2s;color:#333}.icon-button[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.icon-button[_ngcontent-%COMP%]:active{background-color:#e0e0e0}.header-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:20px;font-weight:600;color:#ff6b6b;flex:1;justify-content:center}.title-icon[_ngcontent-%COMP%]{width:24px;height:24px}.menu-button[_ngcontent-%COMP%], .close-button[_ngcontent-%COMP%]{width:40px;height:40px}.close-button[_ngcontent-%COMP%]{background-color:#f5f5f5;border-radius:50%}.close-button[_ngcontent-%COMP%]:hover{background-color:#e8e8e8}"]})},xw=class Bs{text="";disabled=!1;buttonClick=new R;onClick(){this.disabled||this.buttonClick.emit(this.text)}static \u0275fac=function(t){return new(t||Bs)};static \u0275cmp=Me({type:Bs,selectors:[["app-suggestion-button"]],inputs:{text:"text",disabled:"disabled"},outputs:{buttonClick:"buttonClick"},decls:2,vars:3,consts:[[1,"suggestion-button",3,"click"]],template:function(t,n){t&1&&(Xo(0,"button",0),dh("click",function(){return n.onClick()}),F(1),ea()),t&2&&(Ee("disabled",n.disabled),S(),Vn(" ",n.text," "))},dependencies:[Ce],styles:[".suggestion-button[_ngcontent-%COMP%]{background:#fff;border:1.5px solid #FF6B6B;border-radius:8px;padding:14px 24px;font-size:15px;font-weight:500;color:#ff6b6b;cursor:pointer;transition:all .2s ease;white-space:nowrap;box-shadow:0 2px 4px #0000000d;display:inline-block;width:auto;text-align:center}.suggestion-button[_ngcontent-%COMP%]:hover:not(.disabled){background:#fff5f5;border-color:#ff5252;transform:translateY(-1px);box-shadow:0 4px 8px #ff6b6b26}.suggestion-button[_ngcontent-%COMP%]:active:not(.disabled){transform:translateY(0);box-shadow:0 2px 4px #0000000d}.suggestion-button.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}"]})},Qh=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(n){return new(n||e)(j(zd),j(tn))};static \u0275dir=Ie({type:e})}return e})(),kw=(()=>{class e extends Qh{static \u0275fac=(()=>{let n;return function(r){return(n||(n=zc(e)))(r||e)}})();static \u0275dir=Ie({type:e,features:[sn]})}return e})(),Yh=new k(""),Sw={provide:Yh,useExisting:Nn(()=>Zn),multi:!0};function Ow(){let e=Kr()?Kr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var Ew=new k(""),Zn=(()=>{class e extends Qh{_compositionMode;_composing=!1;constructor(n,r,i){super(n,r),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!Ow())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(n){return new(n||e)(j(zd),j(tn),j(Ew,8))};static \u0275dir=Ie({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){n&1&&T("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},standalone:!1,features:[ra([Sw]),sn]})}return e})();function Tw(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var Jh=new k(""),Mw=new k("");function Iw(e){return t=>{let n=t.value?.length??Tw(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function Rl(e){return null}function Kh(e){return e!=null}function Xh(e){return Jo(e)?ao(e):e}function ef(e){let t={};return e.forEach(n=>{t=n!=null?M(M({},t),n):t}),Object.keys(t).length===0?null:t}function tf(e,t){return t.map(n=>n(e))}function Pw(e){return!e.validate}function nf(e){return e.map(t=>Pw(t)?t:n=>t.validate(n))}function Dw(e){if(!e)return null;let t=e.filter(Kh);return t.length==0?null:function(n){return ef(tf(n,t))}}function rf(e){return e!=null?Dw(nf(e)):null}function Aw(e){if(!e)return null;let t=e.filter(Kh);return t.length==0?null:function(n){let r=tf(n,t).map(Xh);return Hp(r).pipe(ke(ef))}}function sf(e){return e!=null?Aw(nf(e)):null}function Fl(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Vw(e){return e._rawValidators}function Nw(e){return e._rawAsyncValidators}function Us(e){return e?Array.isArray(e)?e:[e]:[]}function ei(e,t){return Array.isArray(e)?e.includes(t):e===t}function Ll(e,t){let n=Us(t);return Us(e).forEach(r=>{ei(n,r)||n.push(r)}),n}function jl(e,t){return Us(t).filter(n=>!ei(e,n))}var of=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=rf(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=sf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},Rw=class extends of{name;get formDirective(){return null}get path(){return null}},da=class extends of{_parent=null;name=null;valueAccessor=null},Fw=class{_cd;constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Lw={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},q_=N(M({},Lw),{"[class.ng-submitted]":"isSubmitted"}),ha=(()=>{class e extends Fw{constructor(n){super(n)}static \u0275fac=function(n){return new(n||e)(j(da,2))};static \u0275dir=Ie({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&Ee("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[sn]})}return e})(),hn="VALID",ar="INVALID",Mt="PENDING",fn="DISABLED",qn=class{},Hl=class extends qn{value;source;constructor(e,t){super(),this.value=e,this.source=t}},ns=class extends qn{pristine;source;constructor(e,t){super(),this.pristine=e,this.source=t}},rs=class extends qn{touched;source;constructor(e,t){super(),this.touched=e,this.source=t}},lr=class extends qn{status;source;constructor(e,t){super(),this.status=e,this.source=t}},jw=class extends qn{source;constructor(e){super(),this.source=e}};function Hw(e){return(ki(e)?e.validators:e)||null}function zw(e){return Array.isArray(e)?rf(e):e||null}function Bw(e,t){return(ki(t)?t.asyncValidators:e)||null}function Uw(e){return Array.isArray(e)?sf(e):e||null}function ki(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var $w=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(e,t){this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Tt(this.statusReactive)}set status(e){Tt(()=>this.statusReactive.set(e))}_status=Rt(()=>this.statusReactive());statusReactive=ue(void 0);get valid(){return this.status===hn}get invalid(){return this.status===ar}get pending(){return this.status==Mt}get disabled(){return this.status===fn}get enabled(){return this.status!==fn}errors;get pristine(){return Tt(this.pristineReactive)}set pristine(e){Tt(()=>this.pristineReactive.set(e))}_pristine=Rt(()=>this.pristineReactive());pristineReactive=ue(!0);get dirty(){return!this.pristine}get touched(){return Tt(this.touchedReactive)}set touched(e){Tt(()=>this.touchedReactive.set(e))}_touched=Rt(()=>this.touchedReactive());touchedReactive=ue(!1);get untouched(){return!this.touched}_events=new st;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Ll(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Ll(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(jl(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(jl(e,this._rawAsyncValidators))}hasValidator(e){return ei(this._rawValidators,e)}hasAsyncValidator(e){return ei(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let t=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(N(M({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new rs(!0,n))}markAllAsDirty(e={}){this.markAsDirty({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsDirty(e))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),t&&e.emitEvent!==!1&&this._events.next(new rs(!1,n))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(N(M({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new ns(!1,n))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),t&&e.emitEvent!==!1&&this._events.next(new ns(!0,n))}markAsPending(e={}){this.status=Mt;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new lr(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(N(M({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=fn,this.errors=null,this._forEachChild(r=>{r.disable(N(M({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Hl(this.value,n)),this._events.next(new lr(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(N(M({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=hn,this._forEachChild(n=>{n.enable(N(M({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(N(M({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===hn||this.status===Mt)&&this._runAsyncValidator(n,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Hl(this.value,t)),this._events.next(new lr(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(N(M({},e),{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?fn:hn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=Mt,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:e!==!1};let n=Xh(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((n,r)=>n&&n._find(r),this)}getError(e,t){let n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new lr(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,n)}_initObservables(){this.valueChanges=new R,this.statusChanges=new R}_calculateStatus(){return this._allControlsDisabled()?fn:this.errors?ar:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Mt)?Mt:this._anyControlsHaveStatus(ar)?ar:hn}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),r&&this._events.next(new ns(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new rs(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){ki(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=zw(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=Uw(this._rawAsyncValidators)}},af=new k("",{providedIn:"root",factory:()=>fa}),fa="always";function Zw(e,t){return[...t.path,e]}function qw(e,t,n=fa){Ww(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),Qw(e,t),Jw(e,t),Yw(e,t),Gw(e,t)}function zl(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Gw(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function Ww(e,t){let n=Vw(e);t.validator!==null?e.setValidators(Fl(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=Nw(e);t.asyncValidator!==null?e.setAsyncValidators(Fl(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();zl(t._rawValidators,i),zl(t._rawAsyncValidators,i)}function Qw(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&lf(e,t)})}function Yw(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&lf(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function lf(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Jw(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function Kw(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function Xw(e){return Object.getPrototypeOf(e.constructor)===kw}function e_(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(s=>{s.constructor===Zn?n=s:Xw(s)?r=s:i=s}),i||r||n||null}function Bl(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ul(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var t_=class extends $w{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,t,n){super(Hw(t),Bw(n,t)),this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ki(t)&&(t.nonNullable||t.initialValueIsDefault)&&(Ul(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1,t?.emitEvent!==!1&&this._events.next(new jw(this))}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Bl(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Bl(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){Ul(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},n_={provide:da,useExisting:Nn(()=>Si)},$l=Promise.resolve(),Si=(()=>{class e extends da{_changeDetectorRef;callSetDisabledState;control=new t_;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new R;constructor(n,r,i,s,o,a){super(),this._changeDetectorRef=o,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=e_(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),Kw(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){qw(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){$l.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,i=r!==0&&Cb(r);$l.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?Zw(n,this._parent):[n]}static \u0275fac=function(n){return new(n||e)(j(Rw,9),j(Jh,10),j(Mw,10),j(Yh,10),j(db,8),j(af,8))};static \u0275dir=Ie({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[ra([n_]),sn,hi]})}return e})();function r_(e){return typeof e=="number"?e:parseInt(e,10)}var i_=(()=>{class e{_validator=Rl;_onChange;_enabled;ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Rl,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}static \u0275fac=function(n){return new(n||e)};static \u0275dir=Ie({type:e,features:[hi]})}return e})(),s_={provide:Jh,useExisting:Nn(()=>uf),multi:!0},uf=(()=>{class e extends i_{maxlength;inputName="maxlength";normalizeInput=n=>r_(n);createValidator=n=>Iw(n);static \u0275fac=(()=>{let n;return function(r){return(n||(n=zc(e)))(r||e)}})();static \u0275dir=Ie({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&Ko("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[ra([s_]),sn]})}return e})(),o_=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=bi({type:e});static \u0275inj=ri({})}return e})(),pa=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:af,useValue:n.callSetDisabledState??fa}]}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=bi({type:e});static \u0275inj=ri({imports:[o_]})}return e})(),a_=class $s{placeholder=Be.INPUT.PLACEHOLDER;disabled=!1;value="";voiceStatus={state:"idle",transcript:"",interimTranscript:""};valueChange=new R;submitMessage=new R;voiceClick=new R;addClick=new R;get isListening(){return this.voiceStatus.state==="listening"}get displayValue(){if(this.isListening){let t=this.voiceStatus.transcript||"",n=this.voiceStatus.interimTranscript||"";return t+(t&&n?" ":"")+n}return this.value}get displayPlaceholder(){return this.isListening?"Listening... Speak now":this.placeholder}onInputChange(t){!this.isListening&&t!==void 0&&(this.value=t,this.valueChange.emit(this.value))}onSubmit(){if(this.value.trim()&&!this.isListening){let t=this.value;this.value="",this.valueChange.emit(this.value),this.submitMessage.emit(t)}}onVoiceClick(){this.voiceClick.emit()}onAddClick(){this.addClick.emit()}static \u0275fac=function(t){return new(t||$s)};static \u0275cmp=Me({type:$s,selectors:[["app-input-field"]],inputs:{placeholder:"placeholder",disabled:"disabled",value:"value",voiceStatus:"voiceStatus"},outputs:{valueChange:"valueChange",submitMessage:"submitMessage",voiceClick:"voiceClick",addClick:"addClick"},decls:7,vars:8,consts:[[1,"input-container"],[1,"input-wrapper"],["aria-label","Add",1,"icon-button","add-button",3,"click"],["name","add","width","24","height","24"],["type","text",1,"input-field",3,"ngModelChange","keyup.enter","ngModel","placeholder","disabled","readonly"],["aria-label","Voice input",1,"icon-button","voice-button",3,"click"],["name","microphone","width","24","height","24","fill","currentColor"]],template:function(t,n){t&1&&(g(0,"div",0)(1,"div",1)(2,"button",2),T("click",function(){return n.onAddClick()}),U(3,"app-icon",3),y(),g(4,"input",4),T("ngModelChange",function(r){return n.onInputChange(r)})("keyup.enter",function(){return n.onSubmit()}),y(),g(5,"button",5),T("click",function(){return n.onVoiceClick()}),U(6,"app-icon",6),y()()()),t&2&&(S(4),Ee("listening",n.isListening),P("ngModel",n.displayValue)("placeholder",n.displayPlaceholder)("disabled",n.disabled||n.isListening)("readonly",n.isListening),S(),Ee("active",n.isListening))},dependencies:[Ce,pa,Zn,ha,Si,ln],styles:[".input-container[_ngcontent-%COMP%]{padding:16px 20px;background:#fff;border-top:1px solid #f0f0f0}.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;background:#f8f8f8;border-radius:12px;padding:8px 16px;transition:background-color .2s}.input-wrapper[_ngcontent-%COMP%]:focus-within{background:#f0f0f0}.input-field[_ngcontent-%COMP%]{flex:1;border:none;background:transparent;font-size:15px;color:#333;outline:none;padding:8px 0}.input-field[_ngcontent-%COMP%]::placeholder{color:#999}.input-field[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.input-field.listening[_ngcontent-%COMP%]{color:#ff6b6b;font-style:italic}.icon-button[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color .2s;color:#666;min-width:40px;min-height:40px}.icon-button[_ngcontent-%COMP%]:hover{background-color:#0000000d;color:#333}.icon-button[_ngcontent-%COMP%]:active{background-color:#0000001a}.voice-button.active[_ngcontent-%COMP%]{color:#ff6b6b;animation:_ngcontent-%COMP%_pulse 1.5s ease-in-out infinite}@keyframes _ngcontent-%COMP%_pulse{0%,to{opacity:1}50%{opacity:.6}}"]})};function l_(e,t){e&1&&(g(0,"div",6),U(1,"span")(2,"span")(3,"span"),y())}function u_(e,t){if(e&1&&U(0,"div",7),e&2){let n=A();P("innerHTML",n.message.text,fd)}}var c_=class Zs{message;get isUser(){return this.message.sender==="user"}get isAssistant(){return this.message.sender==="assistant"}static \u0275fac=function(t){return new(t||Zs)};static \u0275cmp=Me({type:Zs,selectors:[["app-message"]],inputs:{message:"message"},decls:6,vars:8,consts:[[1,"message"],[1,"message-container"],[1,"message-content"],[1,"message-bubble"],["class","typing-indicator",4,"ngIf"],["class","message-text",3,"innerHTML",4,"ngIf"],[1,"typing-indicator"],[1,"message-text",3,"innerHTML"]],template:function(t,n){t&1&&(g(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),pe(4,l_,4,0,"div",4)(5,u_,1,1,"div",5),y()()()()),t&2&&(Ee("user",n.isUser)("assistant",n.isAssistant),S(3),Ee("typing",n.message.isTyping),S(),P("ngIf",n.message.isTyping),S(),P("ngIf",!n.message.isTyping))},dependencies:[Ce,an],styles:[".message[_ngcontent-%COMP%]{display:flex;margin-bottom:16px;animation:_ngcontent-%COMP%_fadeIn .3s ease-in}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.message-container[_ngcontent-%COMP%]{display:flex;align-items:flex-start;max-width:100%;width:100%}.message.user[_ngcontent-%COMP%] .message-container[_ngcontent-%COMP%]{justify-content:flex-end}.message-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-width:85%}.message.user[_ngcontent-%COMP%] .message-content[_ngcontent-%COMP%]{align-items:flex-end}.message-bubble[_ngcontent-%COMP%]{padding:12px 16px;border-radius:10px;word-wrap:break-word;width:fit-content}.message.user[_ngcontent-%COMP%] .message-bubble[_ngcontent-%COMP%]{background:#ff6b4a;color:#fff;border-radius:10px;box-shadow:0 1px 2px #0000001a}.message.assistant[_ngcontent-%COMP%] .message-bubble[_ngcontent-%COMP%]{background:transparent;color:#2c3e50;border:none;box-shadow:none;padding:0}.message-bubble.typing[_ngcontent-%COMP%]{padding:16px;min-width:60px}.message-text[_ngcontent-%COMP%]{margin:0;line-height:1.5;font-size:14px;white-space:normal}.message-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 8px}.message-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-child{margin-bottom:0}.message-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .message-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .message-text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .message-text[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .message-text[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .message-text[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{margin:12px 0 8px;font-weight:600}.message-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]:first-child, .message-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]:first-child, .message-text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]:first-child, .message-text[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]:first-child, .message-text[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]:first-child, .message-text[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]:first-child{margin-top:0}.message-text[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .message-text[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:8px 0;padding-left:24px}.message-text[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:4px 0}.message-text[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:600}.message-text[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{font-style:italic}.message-text[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:#0000000d;padding:2px 4px;border-radius:3px;font-family:Courier New,monospace;font-size:13px}.message-text[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{background:#0000000d;padding:12px;border-radius:6px;overflow-x:auto;margin:8px 0}.message-text[_ngcontent-%COMP%] pre[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:none;padding:0}.typing-indicator[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;height:16px}.typing-indicator[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:8px;height:8px;border-radius:50%;background-color:#95a5a6;animation:_ngcontent-%COMP%_typing 1.4s infinite}.typing-indicator[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){animation-delay:.2s}.typing-indicator[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){animation-delay:.4s}@keyframes _ngcontent-%COMP%_typing{0%,60%,to{transform:translateY(0);opacity:.5}30%{transform:translateY(-10px);opacity:1}}@media (max-width: 768px){.message-bubble[_ngcontent-%COMP%]{max-width:90%}}"]})},d_=["messagesContainer"];function h_(e,t){if(e&1&&U(0,"app-message",7),e&2){let n=t.$implicit;P("message",n)}}function f_(e,t){if(e&1&&(g(0,"div",5),pe(1,h_,1,1,"app-message",6),y()),e&2){let n=A();S(),P("ngForOf",n.messages)("ngForTrackBy",n.trackByMessageId)}}function p_(e,t){e&1&&(g(0,"div",8)(1,"p",9),F(2,"Start a conversation by typing a message or selecting a suggestion below."),y()())}var g_=class qs{messages=[];messagesContainer;shouldScroll=!1;ngAfterViewChecked(){this.shouldScroll&&(this.scrollToBottom(),this.shouldScroll=!1)}ngOnChanges(t){t.messages&&(this.shouldScroll=!0)}trackByMessageId(t,n){return n.id}scrollToBottom(){try{this.messagesContainer&&(this.messagesContainer.nativeElement.scrollTop=this.messagesContainer.nativeElement.scrollHeight)}catch(t){console.error("Error scrolling to bottom:",t)}}static \u0275fac=function(t){return new(t||qs)};static \u0275cmp=Me({type:qs,selectors:[["app-chat-history"]],viewQuery:function(t,n){if(t&1&&O1(d_,5),t&2){let r;E1(r=T1())&&(n.messagesContainer=r.first)}},inputs:{messages:"messages"},features:[hi],decls:5,vars:2,consts:[["messagesContainer",""],[1,"chat-history"],[1,"messages-container"],["class","messages-list",4,"ngIf"],["class","empty-state",4,"ngIf"],[1,"messages-list"],[3,"message",4,"ngFor","ngForOf","ngForTrackBy"],[3,"message"],[1,"empty-state"],[1,"empty-text"]],template:function(t,n){t&1&&(g(0,"div",1)(1,"div",2,0),pe(3,f_,2,2,"div",3)(4,p_,3,0,"div",4),y()()),t&2&&(S(3),P("ngIf",n.messages.length>0),S(),P("ngIf",n.messages.length===0))},dependencies:[Ce,wi,an,c_],styles:[".chat-history[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow:hidden;width:100%;min-height:0;max-height:100%}.messages-container[_ngcontent-%COMP%]{flex:1;overflow-y:auto;overflow-x:hidden;padding:16px;scroll-behavior:smooth;min-height:0;-webkit-overflow-scrolling:touch}.messages-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px}.messages-container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:transparent}.messages-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#0003;border-radius:3px}.messages-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#0000004d}.messages-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.empty-state[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;padding:32px}.empty-text[_ngcontent-%COMP%]{color:#95a5a6;font-size:14px;text-align:center;line-height:1.6;max-width:400px}"]})};function m_(e,t){if(e&1){let n=on();g(0,"div",1),T("click",function(){W(n);let r=A();return Q(r.onOverlayClick())}),g(1,"div",2),T("click",function(r){W(n);let i=A();return Q(i.onModalClick(r))}),g(2,"div",3)(3,"button",4),T("click",function(){W(n);let r=A();return Q(r.onBackClick())}),U(4,"app-icon",5),y(),g(5,"h2",6),F(6,"Rename Chat"),y(),g(7,"button",7),T("click",function(){W(n);let r=A();return Q(r.onCloseClick())}),U(8,"app-icon",8),y()(),g(9,"div",9)(10,"input",10),na("ngModelChange",function(r){W(n);let i=A();return gh(i.editedTitle,r)||(i.editedTitle=r),Q(r)}),T("keydown",function(r){W(n);let i=A();return Q(i.onInputKeydown(r))}),y()(),g(11,"div",11)(12,"button",12),T("click",function(){W(n);let r=A();return Q(r.onCancel())}),F(13," Cancel "),y(),g(14,"button",13),T("click",function(){W(n);let r=A();return Q(r.onSave())}),F(15," Save "),y()()()()}if(e&2){let n=A();S(10),ta("ngModel",n.editedTitle),P("maxlength",500)}}var v_=class Gs{isOpen=!1;currentTitle="";close=new R;save=new R;editedTitle="";ngOnChanges(t){t.isOpen&&this.isOpen&&(this.editedTitle=this.currentTitle),t.currentTitle&&(this.editedTitle=this.currentTitle)}onBackClick(){this.close.emit()}onCloseClick(){this.close.emit()}onCancel(){this.close.emit()}onSave(){let t=this.editedTitle.trim();t&&t!==this.currentTitle&&this.save.emit(t),this.close.emit()}onOverlayClick(){this.close.emit()}onModalClick(t){t.stopPropagation()}onInputKeydown(t){t.key==="Enter"?(t.preventDefault(),this.onSave()):t.key==="Escape"&&(t.preventDefault(),this.onCancel())}static \u0275fac=function(t){return new(t||Gs)};static \u0275cmp=Me({type:Gs,selectors:[["app-rename-modal"]],inputs:{isOpen:"isOpen",currentTitle:"currentTitle"},outputs:{close:"close",save:"save"},features:[hi],decls:1,vars:1,consts:[["class","modal-overlay",3,"click",4,"ngIf"],[1,"modal-overlay",3,"click"],[1,"modal-container",3,"click"],[1,"modal-header"],["aria-label","Back",1,"icon-button","back-button",3,"click"],["name","chevron-left","width","24","height","24"],[1,"modal-title"],["aria-label","Close",1,"icon-button","close-button",3,"click"],["name","close","width","24","height","24"],[1,"modal-body"],["type","text","placeholder","Enter chat name","autofocus","",1,"rename-input",3,"ngModelChange","keydown","ngModel","maxlength"],[1,"modal-footer"],[1,"btn","btn-cancel",3,"click"],[1,"btn","btn-save",3,"click"]],template:function(t,n){t&1&&pe(0,m_,16,2,"div",0),t&2&&P("ngIf",n.isOpen)},dependencies:[Ce,an,pa,Zn,ha,uf,Si,ln],styles:[".modal-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#00000080;display:flex;align-items:flex-end;justify-content:center;z-index:1000;animation:_ngcontent-%COMP%_fadeIn .2s ease-out}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0}to{opacity:1}}.modal-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:16px 16px 0 0;width:100%;max-width:600px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 -2px 24px #00000026;animation:_ngcontent-%COMP%_slideUp .3s ease-out}@keyframes _ngcontent-%COMP%_slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.modal-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e5e7eb;gap:12px}.modal-title[_ngcontent-%COMP%]{flex:1;text-align:center;font-size:18px;font-weight:600;color:#111827;margin:0}.icon-button[_ngcontent-%COMP%]{background:none;border:none;padding:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:8px;color:#6b7280;transition:all .2s ease}.icon-button[_ngcontent-%COMP%]:hover{background-color:#f3f4f6;color:#111827}.icon-button[_ngcontent-%COMP%]:active{transform:scale(.95)}.back-button[_ngcontent-%COMP%], .close-button[_ngcontent-%COMP%]{flex-shrink:0}.modal-body[_ngcontent-%COMP%]{padding:24px 20px;flex:1;overflow-y:auto}.rename-input[_ngcontent-%COMP%]{width:100%;padding:12px 16px;font-size:16px;border:1px solid #d1d5db;border-radius:8px;outline:none;transition:all .2s ease;font-family:inherit;color:#111827}.rename-input[_ngcontent-%COMP%]:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.rename-input[_ngcontent-%COMP%]::placeholder{color:#9ca3af}.modal-footer[_ngcontent-%COMP%]{display:flex;gap:12px;padding:16px 20px;border-top:1px solid #e5e7eb}.btn[_ngcontent-%COMP%]{flex:1;padding:12px 24px;font-size:16px;font-weight:500;border-radius:8px;border:none;cursor:pointer;transition:all .2s ease;font-family:inherit}.btn[_ngcontent-%COMP%]:active{transform:scale(.98)}.btn-cancel[_ngcontent-%COMP%]{background-color:#fff;color:#374151;border:1px solid #d1d5db}.btn-cancel[_ngcontent-%COMP%]:hover{background-color:#f9fafb;border-color:#9ca3af}.btn-save[_ngcontent-%COMP%]{background-color:#ef4444;color:#fff}.btn-save[_ngcontent-%COMP%]:hover{background-color:#dc2626}.btn-save[_ngcontent-%COMP%]:disabled{background-color:#fca5a5;cursor:not-allowed}@media (min-width: 768px){.modal-overlay[_ngcontent-%COMP%]{align-items:center}.modal-container[_ngcontent-%COMP%]{border-radius:16px;max-height:400px}}"]})};function y_(e,t){e&1&&(g(0,"div",22),U(1,"div",23),g(2,"p",24),F(3,"Loading conversations..."),y()())}function b_(e,t){if(e&1){let n=on();g(0,"div",36)(1,"button",37),T("click",function(r){W(n);let i=A().$implicit,s=A(2);return Q(s.onEditClick(i.id,i.title,r))}),U(2,"app-icon",38),g(3,"span"),F(4,"Rename"),y()(),g(5,"button",39),T("click",function(r){W(n);let i=A().$implicit,s=A(2);return Q(s.onDeleteClick(i.id,r))}),U(6,"app-icon",40),g(7,"span"),F(8,"Delete"),y()()()}}function C_(e,t){if(e&1){let n=on();g(0,"div",27),T("click",function(){let r=W(n).$implicit,i=A(2);return Q(i.onConversationClick(r.id))}),g(1,"div",28)(2,"div",29)(3,"span",30),F(4),y()(),g(5,"span",31),F(6),y()(),g(7,"div",32)(8,"button",33),T("click",function(r){let i=W(n).$implicit,s=A(2);return Q(s.toggleMenu(i.id,r))}),U(9,"app-icon",34),y(),pe(10,b_,9,0,"div",35),y()()}if(e&2){let n=t.$implicit,r=A(2);S(4),Oe(n.title),S(2),Oe(n.date),S(4),P("ngIf",r.isMenuOpen(n.id))}}function w_(e,t){if(e&1&&(g(0,"div",25),pe(1,C_,11,3,"div",26),y()),e&2){let n=A();S(),P("ngForOf",n.conversations)}}function __(e,t){e&1&&(g(0,"div",41)(1,"p"),F(2,"No conversations yet"),y()())}var x_=class Ws{isOpen=!1;conversations=[];isLoading=!1;backClick=new R;settingsClick=new R;closeClick=new R;conversationClick=new R;deleteClick=new R;newChatClick=new R;searchChange=new R;titleUpdate=new R;searchQuery="";isRenameModalOpen=!1;renamingConversationId=null;renamingConversationTitle="";activeMenuId=null;onBackClick(){this.backClick.emit()}onSettingsClick(){this.settingsClick.emit()}onCloseClick(){this.closeClick.emit()}onOverlayClick(){this.closeClick.emit(),this.closeMenu()}onConversationClick(t){this.conversationClick.emit(t)}onDeleteClick(t,n){n.stopPropagation(),this.deleteClick.emit(t),this.closeMenu()}onNewChatClick(){this.newChatClick.emit()}onSearchChange(){this.searchChange.emit(this.searchQuery)}onEditClick(t,n,r){r.stopPropagation(),this.renamingConversationId=t,this.renamingConversationTitle=n,this.isRenameModalOpen=!0,this.closeMenu()}onRenameModalClose(){this.isRenameModalOpen=!1,this.renamingConversationId=null,this.renamingConversationTitle=""}onRenameModalSave(t){this.renamingConversationId&&t.trim()&&this.titleUpdate.emit({id:this.renamingConversationId,title:t.trim()})}toggleMenu(t,n){n.stopPropagation(),this.activeMenuId===t?this.activeMenuId=null:this.activeMenuId=t}closeMenu(){this.activeMenuId=null}isMenuOpen(t){return this.activeMenuId===t}onSidebarClick(){this.closeMenu()}static \u0275fac=function(t){return new(t||Ws)};static \u0275cmp=Me({type:Ws,selectors:[["app-sidebar"]],inputs:{isOpen:"isOpen",conversations:"conversations",isLoading:"isLoading"},outputs:{backClick:"backClick",settingsClick:"settingsClick",closeClick:"closeClick",conversationClick:"conversationClick",deleteClick:"deleteClick",newChatClick:"newChatClick",searchChange:"searchChange",titleUpdate:"titleUpdate"},decls:25,vars:10,consts:[[1,"sidebar-overlay",3,"click"],[1,"sidebar",3,"click"],[1,"sidebar-header"],[1,"back-text-button",3,"click"],["name","chevron-left","width","16","height","16"],[1,"header-actions"],["aria-label","Settings",1,"icon-button","settings-button",3,"click"],["name","settings","width","20","height","20"],["aria-label","Close",1,"icon-button","close-button",3,"click"],["name","close","width","20","height","20"],[1,"sidebar-content"],[1,"conversations-title"],["class","loading-container",4,"ngIf"],["class","conversations-list",4,"ngIf"],["class","empty-conversations",4,"ngIf"],[1,"sidebar-footer"],[1,"search-container"],["name","search","width","18","height","18",1,"search-icon"],["type","text","placeholder","Search",1,"search-input",3,"ngModelChange","input","ngModel"],["aria-label","New Chat",1,"icon-button","new-chat-button",3,"click"],["name","edit","width","20","height","20"],[3,"close","save","isOpen","currentTitle"],[1,"loading-container"],[1,"spinner"],[1,"loading-text"],[1,"conversations-list"],["class","conversation-item",3,"click",4,"ngFor","ngForOf"],[1,"conversation-item",3,"click"],[1,"conversation-info"],[1,"conversation-title-container"],[1,"conversation-title"],[1,"conversation-date"],[1,"menu-container"],["aria-label","More options",1,"icon-button","menu-button",3,"click"],["name","more-horizontal","width","20","height","20"],["class","context-menu",4,"ngIf"],[1,"context-menu"],[1,"menu-item",3,"click"],["name","edit","width","16","height","16"],[1,"menu-item","delete-item",3,"click"],["name","trash","width","16","height","16"],[1,"empty-conversations"]],template:function(t,n){t&1&&(g(0,"div",0),T("click",function(){return n.onOverlayClick()}),y(),g(1,"div",1),T("click",function(){return n.onSidebarClick()}),g(2,"div",2)(3,"button",3),T("click",function(){return n.onBackClick()}),U(4,"app-icon",4),g(5,"span"),F(6,"Back to Chat"),y()(),g(7,"div",5)(8,"button",6),T("click",function(){return n.onSettingsClick()}),U(9,"app-icon",7),y(),g(10,"button",8),T("click",function(){return n.onCloseClick()}),U(11,"app-icon",9),y()()(),g(12,"div",10)(13,"h3",11),F(14,"Conversations"),y(),pe(15,y_,4,0,"div",12)(16,w_,2,1,"div",13)(17,__,3,0,"div",14),y(),g(18,"div",15)(19,"div",16),U(20,"app-icon",17),g(21,"input",18),na("ngModelChange",function(r){return gh(n.searchQuery,r)||(n.searchQuery=r),r}),T("input",function(){return n.onSearchChange()}),y()(),g(22,"button",19),T("click",function(){return n.onNewChatClick()}),U(23,"app-icon",20),y()()(),g(24,"app-rename-modal",21),T("close",function(){return n.onRenameModalClose()})("save",function(r){return n.onRenameModalSave(r)}),y()),t&2&&(Ee("visible",n.isOpen),S(),Ee("open",n.isOpen),S(14),P("ngIf",n.isLoading),S(),P("ngIf",!n.isLoading&&n.conversations.length>0),S(),P("ngIf",!n.isLoading&&n.conversations.length===0),S(4),ta("ngModel",n.searchQuery),S(3),P("isOpen",n.isRenameModalOpen)("currentTitle",n.renamingConversationTitle))},dependencies:[Ce,wi,an,pa,Zn,ha,Si,ln,v_],styles:[".sidebar-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background:#0006;z-index:998;opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease}.sidebar-overlay.visible[_ngcontent-%COMP%]{opacity:1;visibility:visible}.sidebar[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:85%;max-width:400px;height:100%;background:#fff;z-index:999;transform:translate(-100%);transition:transform .3s ease;display:flex;flex-direction:column;box-shadow:2px 0 8px #0000001a}.sidebar.open[_ngcontent-%COMP%]{transform:translate(0)}.sidebar-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid #e8ecf1}.back-text-button[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;background:none;border:none;cursor:pointer;font-size:16px;font-weight:500;color:#1a1a1a;padding:8px;border-radius:8px;transition:background .2s ease}.back-text-button[_ngcontent-%COMP%]:hover{background:#f5f7fa}.header-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.icon-button[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;border-radius:8px;transition:background .2s ease;color:#5f6368}.icon-button[_ngcontent-%COMP%]:hover{background:#f5f7fa;color:#1a1a1a}.icon-button[_ngcontent-%COMP%]:active{background:#e8ecf1}.sidebar-content[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding:16px}.conversations-title[_ngcontent-%COMP%]{font-size:13px;font-weight:500;color:#95a5a6;text-transform:uppercase;letter-spacing:.5px;margin:0 0 16px}.conversations-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.conversation-item[_ngcontent-%COMP%]{display:flex;align-items:center;padding:12px;background:#fff;border-radius:8px;cursor:pointer;transition:background .2s ease;gap:12px;position:relative}.conversation-item[_ngcontent-%COMP%]:hover{background:#f5f7fa}.conversation-info[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}.conversation-title-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;min-width:0}.conversation-title[_ngcontent-%COMP%]{flex:1;font-size:14px;font-weight:500;color:#1a1a1a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-date[_ngcontent-%COMP%]{font-size:12px;color:#95a5a6}.menu-container[_ngcontent-%COMP%]{position:relative}.menu-button[_ngcontent-%COMP%]{opacity:0;transition:opacity .2s ease}.conversation-item[_ngcontent-%COMP%]:hover .menu-button[_ngcontent-%COMP%], .menu-button[_ngcontent-%COMP%]:focus, .menu-container[_ngcontent-%COMP%]:focus-within .menu-button[_ngcontent-%COMP%]{opacity:1}.context-menu[_ngcontent-%COMP%]{position:absolute;top:100%;right:0;background:#fff;border-radius:8px;box-shadow:0 4px 12px #00000026;border:1px solid #e8ecf1;padding:4px;min-width:140px;z-index:1000;display:flex;flex-direction:column;gap:2px}.menu-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:8px 12px;border:none;background:none;width:100%;text-align:left;cursor:pointer;border-radius:6px;font-size:14px;color:#1a1a1a;transition:background .2s ease}.menu-item[_ngcontent-%COMP%]:hover{background:#f5f7fa}.menu-item[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%]{color:#5f6368}.delete-item[_ngcontent-%COMP%]{color:#dc3545}.delete-item[_ngcontent-%COMP%]:hover{background:#fee}.delete-item[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%]{color:#dc3545}.loading-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;gap:16px}.spinner[_ngcontent-%COMP%]{width:40px;height:40px;border:3px solid #f5f7fa;border-top-color:#ff5337;border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}.loading-text[_ngcontent-%COMP%]{color:#95a5a6;font-size:14px;margin:0}.empty-conversations[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:40px 20px;text-align:center}.empty-conversations[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#95a5a6;font-size:14px;margin:0}.sidebar-footer[_ngcontent-%COMP%]{padding:16px;border-top:1px solid #e8ecf1;display:flex;align-items:center;gap:12px}.search-container[_ngcontent-%COMP%]{flex:1;position:relative;display:flex;align-items:center;background:#f5f7fa;border-radius:8px;padding:8px 12px;gap:8px}.search-icon[_ngcontent-%COMP%]{flex-shrink:0;color:#95a5a6}.search-input[_ngcontent-%COMP%]{flex:1;border:none;background:none;font-size:14px;color:#1a1a1a;outline:none;padding:0}.search-input[_ngcontent-%COMP%]::placeholder{color:#95a5a6}.new-chat-button[_ngcontent-%COMP%]{flex-shrink:0;background:#fff;border:1px solid #e8ecf1;border-radius:8px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.new-chat-button[_ngcontent-%COMP%]:hover{background:#f5f7fa;border-color:#d0d7de}@media (max-width: 480px){.sidebar[_ngcontent-%COMP%]{width:100%;max-width:none}}"]})},cf=class _r{toasts=ue([]);toasts$=this.toasts.asReadonly();show(t,n="info",r=3e3){let i=Math.random().toString(36).substring(7),s={id:i,message:t,type:n,duration:r};this.toasts.update(o=>[...o,s]),r>0&&setTimeout(()=>this.remove(i),r)}success(t,n){this.show(t,"success",n)}error(t,n){this.show(t,"error",n)}warning(t,n){this.show(t,"warning",n)}info(t,n){this.show(t,"info",n)}remove(t){this.toasts.update(n=>n.filter(r=>r.id!==t))}static \u0275fac=function(t){return new(t||_r)};static \u0275prov=O({token:_r,factory:_r.\u0275fac,providedIn:"root"})};function k_(e,t){e&1&&(g(0,"span"),F(1,"\u2713"),y())}function S_(e,t){e&1&&(g(0,"span"),F(1,"\u2715"),y())}function O_(e,t){e&1&&(g(0,"span"),F(1,"\u26A0"),y())}function E_(e,t){e&1&&(g(0,"span"),F(1,"\u2139"),y())}function T_(e,t){if(e&1){let n=on();g(0,"div",2)(1,"div",3)(2,"span",4),lh(3,5),pe(4,k_,2,0,"span",6)(5,S_,2,0,"span",6)(6,O_,2,0,"span",6)(7,E_,2,0,"span",6),uh(),y(),g(8,"span",7),F(9),y()(),g(10,"button",8),T("click",function(){let r=W(n).$implicit,i=A();return Q(i.onClose(r.id))}),F(11,"\u2715"),y()()}if(e&2){let n=t.$implicit;Ee("success",n.type==="success")("error",n.type==="error")("warning",n.type==="warning")("info",n.type==="info"),S(3),P("ngSwitch",n.type),S(),P("ngSwitchCase","success"),S(),P("ngSwitchCase","error"),S(),P("ngSwitchCase","warning"),S(),P("ngSwitchCase","info"),S(2),Oe(n.message)}}var M_=class Qs{toastService=v(cf);toasts=this.toastService.toasts$;onClose(t){this.toastService.remove(t)}static \u0275fac=function(t){return new(t||Qs)};static \u0275cmp=Me({type:Qs,selectors:[["app-toast-container"]],decls:2,vars:1,consts:[[1,"toast-container"],["class","toast",3,"success","error","warning","info",4,"ngFor","ngForOf"],[1,"toast"],[1,"toast-content"],[1,"toast-icon"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"toast-message"],[1,"toast-close",3,"click"]],template:function(t,n){t&1&&(g(0,"div",0),pe(1,T_,12,14,"div",1),y()),t&2&&(S(),P("ngForOf",n.toasts()))},dependencies:[Ce,wi,kh,sC],styles:[".toast-container[_ngcontent-%COMP%]{position:fixed;top:20px;right:20px;z-index:9999;display:flex;flex-direction:column;gap:12px;max-width:400px}.toast[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-radius:8px;box-shadow:0 4px 12px #00000026;background:#fff;min-width:300px;animation:_ngcontent-%COMP%_slideIn .3s ease-out}@keyframes _ngcontent-%COMP%_slideIn{0%{transform:translate(400px);opacity:0}to{transform:translate(0);opacity:1}}.toast-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;flex:1}.toast-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;font-size:14px;font-weight:700}.toast.success[_ngcontent-%COMP%]{border-left:4px solid #10b981}.toast.success[_ngcontent-%COMP%] .toast-icon[_ngcontent-%COMP%]{background:#10b981;color:#fff}.toast.error[_ngcontent-%COMP%]{border-left:4px solid #ef4444}.toast.error[_ngcontent-%COMP%] .toast-icon[_ngcontent-%COMP%]{background:#ef4444;color:#fff}.toast.warning[_ngcontent-%COMP%]{border-left:4px solid #f59e0b}.toast.warning[_ngcontent-%COMP%] .toast-icon[_ngcontent-%COMP%]{background:#f59e0b;color:#fff}.toast.info[_ngcontent-%COMP%]{border-left:4px solid #3b82f6}.toast.info[_ngcontent-%COMP%] .toast-icon[_ngcontent-%COMP%]{background:#3b82f6;color:#fff}.toast-message[_ngcontent-%COMP%]{flex:1;font-size:14px;color:#2c3e50;line-height:1.4}.toast-close[_ngcontent-%COMP%]{background:none;border:none;color:#95a5a6;cursor:pointer;font-size:18px;padding:4px 8px;display:flex;align-items:center;justify-content:center;transition:color .2s}.toast-close[_ngcontent-%COMP%]:hover{color:#2c3e50}@media (max-width: 768px){.toast-container[_ngcontent-%COMP%]{top:10px;right:10px;left:10px;max-width:none}.toast[_ngcontent-%COMP%]{min-width:auto}}"]})},df=class xr{isOpenSignal=ue(!1);configSignal=ue(null);resolveCallback=null;isOpen$=this.isOpenSignal.asReadonly();config$=this.configSignal.asReadonly();confirm(t){return this.configSignal.set(M({confirmText:"Confirm",cancelText:"Cancel",confirmColor:"primary"},t)),this.isOpenSignal.set(!0),new Promise(n=>{this.resolveCallback=n})}close(t){this.isOpenSignal.set(!1),this.resolveCallback&&(this.resolveCallback(t),this.resolveCallback=null)}static \u0275fac=function(t){return new(t||xr)};static \u0275prov=O({token:xr,factory:xr.\u0275fac,providedIn:"root"})};function I_(e,t){if(e&1){let n=on();g(0,"div",1),T("click",function(){W(n);let r=A();return Q(r.onOverlayClick())}),g(1,"div",2),T("click",function(r){W(n);let i=A();return Q(i.onModalClick(r))}),g(2,"div",3)(3,"button",4),T("click",function(){W(n);let r=A();return Q(r.onBackClick())}),U(4,"app-icon",5),y(),g(5,"h2",6),F(6),y(),g(7,"button",7),T("click",function(){W(n);let r=A();return Q(r.onCloseClick())}),U(8,"app-icon",8),y()(),g(9,"div",9)(10,"p",10),F(11),y()(),g(12,"div",11)(13,"button",12),T("click",function(){W(n);let r=A();return Q(r.onCancel())}),F(14),y(),g(15,"button",13),T("click",function(){W(n);let r=A();return Q(r.onConfirm())}),F(16),y()()()()}if(e&2){let n,r,i,s,o,a,l=A();S(6),Oe(((n=l.config())==null?null:n.title)||"Back"),S(5),Oe((r=l.config())==null?null:r.message),S(3),Vn(" ",((i=l.config())==null?null:i.cancelText)||"Cancel"," "),S(),Ee("btn-danger",((s=l.config())==null?null:s.confirmColor)==="danger")("btn-primary",((o=l.config())==null?null:o.confirmColor)==="primary"),S(),Vn(" ",((a=l.config())==null?null:a.confirmText)||"Confirm"," ")}}var P_=class Ys{confirmationService=v(df);isOpen=this.confirmationService.isOpen$;config=this.confirmationService.config$;onConfirm(){this.confirmationService.close(!0)}onCancel(){this.confirmationService.close(!1)}onBackClick(){this.confirmationService.close(!1)}onCloseClick(){this.confirmationService.close(!1)}onOverlayClick(){this.confirmationService.close(!1)}onModalClick(t){t.stopPropagation()}static \u0275fac=function(t){return new(t||Ys)};static \u0275cmp=Me({type:Ys,selectors:[["app-confirmation-modal"]],decls:1,vars:1,consts:[["class","modal-overlay",3,"click",4,"ngIf"],[1,"modal-overlay",3,"click"],[1,"modal-container",3,"click"],[1,"modal-header"],["aria-label","Back",1,"icon-button","back-button",3,"click"],["name","chevron-left","width","24","height","24"],[1,"modal-title"],["aria-label","Close",1,"icon-button","close-button",3,"click"],["name","close","width","24","height","24"],[1,"modal-body"],[1,"modal-message"],[1,"modal-footer"],[1,"btn","btn-cancel",3,"click"],[1,"btn","btn-confirm",3,"click"]],template:function(t,n){t&1&&pe(0,I_,17,8,"div",0),t&2&&P("ngIf",n.isOpen())},dependencies:[Ce,an,ln],styles:[".modal-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#00000080;display:flex;align-items:flex-end;justify-content:center;z-index:10000;animation:_ngcontent-%COMP%_fadeIn .2s ease-out}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0}to{opacity:1}}.modal-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:16px 16px 0 0;width:100%;max-width:600px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 -2px 24px #00000026;animation:_ngcontent-%COMP%_slideUp .3s ease-out}@keyframes _ngcontent-%COMP%_slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.modal-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e5e7eb;gap:12px}.modal-title[_ngcontent-%COMP%]{flex:1;text-align:center;font-size:18px;font-weight:600;color:#111827;margin:0}.icon-button[_ngcontent-%COMP%]{background:none;border:none;padding:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:8px;color:#6b7280;transition:all .2s ease}.icon-button[_ngcontent-%COMP%]:hover{background-color:#f3f4f6;color:#111827}.icon-button[_ngcontent-%COMP%]:active{transform:scale(.95)}.back-button[_ngcontent-%COMP%], .close-button[_ngcontent-%COMP%]{flex-shrink:0}.modal-body[_ngcontent-%COMP%]{padding:32px 20px;flex:1;overflow-y:auto}.modal-message[_ngcontent-%COMP%]{margin:0;font-size:16px;line-height:1.5;color:#111827;text-align:left}.modal-footer[_ngcontent-%COMP%]{display:flex;gap:12px;padding:16px 20px;border-top:1px solid #e5e7eb}.btn[_ngcontent-%COMP%]{flex:1;padding:12px 24px;font-size:16px;font-weight:500;border-radius:8px;border:none;cursor:pointer;transition:all .2s ease;font-family:inherit}.btn[_ngcontent-%COMP%]:active{transform:scale(.98)}.btn-cancel[_ngcontent-%COMP%]{background-color:#fff;color:#374151;border:1px solid #d1d5db}.btn-cancel[_ngcontent-%COMP%]:hover{background-color:#f9fafb;border-color:#9ca3af}.btn-confirm[_ngcontent-%COMP%]{color:#fff}.btn-primary[_ngcontent-%COMP%]{background-color:#3b82f6}.btn-primary[_ngcontent-%COMP%]:hover{background-color:#2563eb}.btn-danger[_ngcontent-%COMP%]{background-color:#ef4444}.btn-danger[_ngcontent-%COMP%]:hover{background-color:#dc2626}.btn-danger[_ngcontent-%COMP%]:disabled, .btn-primary[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}@media (min-width: 768px){.modal-overlay[_ngcontent-%COMP%]{align-items:center}.modal-container[_ngcontent-%COMP%]{border-radius:16px;max-height:500px}}"]})},ga=class kr{constructor(t){this.http=t}config=null;loadConfig(){return X(this,null,function*(){try{this.config=yield ut(this.http.get("/config.json")),console.log("Configuration loaded:",this.config?.environmentName)}catch(t){console.error("Failed to load configuration, using defaults",t),this.config={apiUrl:"https://ca-oaa-ai-dev-we-api.proudforest-87e29140.westeurope.azurecontainerapps.io",apiTimeout:3e4,environmentName:"dev"}}})}get apiUrl(){return this.config?.apiUrl||"https://ca-oaa-ai-dev-we-api.proudforest-87e29140.westeurope.azurecontainerapps.io"}get apiTimeout(){return this.config?.apiTimeout||3e4}get environmentName(){return this.config?.environmentName||"dev"}getConfig(){return this.config||{apiUrl:"https://ca-oaa-ai-dev-we-api.proudforest-87e29140.westeurope.azurecontainerapps.io",apiTimeout:3e4,environmentName:"dev"}}setConfig(t){this.config=t,console.log("Configuration updated:",this.config.environmentName)}static \u0275fac=function(t){return new(t||kr)(C(ua))};static \u0275prov=O({token:kr,factory:kr.\u0275fac,providedIn:"root"})},D_=class Sr{http=v(ua);logger=v(kt);config=v(ga);get apiUrl(){return this.config.apiUrl}get timeout(){return this.config.apiTimeout}mockToken="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyMTIzIiwibmFtZSI6IlRlc3QgVXNlciIsImlhdCI6MTUxNjIzOTAyMn0.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c";getHeaders(){return new xt({"Content-Type":"application/json",Authorization:`Bearer ${this.mockToken}`})}createConversation(t){return this.http.post(`${this.apiUrl}/conversations`,t,{headers:this.getHeaders()}).pipe(lt(this.timeout),De(this.handleError))}getConversations(t,n,r=0,i=50){let s=new Ze().set("offset",r.toString()).set("limit",i.toString());return t&&(s=s.set("status",t)),n&&(s=s.set("search",n)),this.http.get(`${this.apiUrl}/conversations`,{headers:this.getHeaders(),params:s}).pipe(lt(this.timeout),De(this.handleError))}getConversation(t){return this.http.get(`${this.apiUrl}/conversations/${t}`,{headers:this.getHeaders()}).pipe(lt(this.timeout),De(this.handleError))}deleteConversation(t){return this.http.delete(`${this.apiUrl}/conversations/${t}`,{headers:this.getHeaders()}).pipe(lt(this.timeout),De(this.handleError))}updateConversationTitle(t,n){return this.http.patch(`${this.apiUrl}/conversations/${t}/title`,n,{headers:this.getHeaders()}).pipe(lt(this.timeout),De(this.handleError))}sendMessage(t,n){return this.http.post(`${this.apiUrl}/conversations/${t}/messages`,n,{headers:this.getHeaders()}).pipe(lt(this.timeout),De(this.handleError))}getMessages(t,n=0,r=100){let i=new Ze().set("offset",n.toString()).set("limit",r.toString());return this.http.get(`${this.apiUrl}/conversations/${t}/messages`,{headers:this.getHeaders(),params:i}).pipe(lt(this.timeout),De(this.handleError))}handleError=t=>{this.logger.error("API Error:",t);let n="An error occurred";return t.error instanceof ErrorEvent?n=`Error: ${t.error.message}`:n=`Error Code: ${t.status}
|
|
24
|
+
Message: ${t.message}`,Tu(()=>new Error(n))};static \u0275fac=function(t){return new(t||Sr)};static \u0275prov=O({token:Sr,factory:Sr.\u0275fac,providedIn:"root"})},A_=class Or{apiService=v(D_);logger=v(kt);chatState=ue({messages:[],isLoading:!1,currentInput:""});currentConversationId=null;mockAppId="00000000-0000-0000-0000-000000000001";typingSimulationDelay=500;getState(){return this.chatState.asReadonly()}addMessage(t,n){let r={id:this.generateId(),text:t,sender:n,timestamp:new Date,isTyping:!1};this.chatState.update(i=>N(M({},i),{messages:[...i.messages,r]}))}sendMessage(t){return X(this,null,function*(){try{this.addMessage(t,"user"),this.chatState.update(i=>N(M({},i),{isLoading:!0})),this.currentConversationId||(yield this.createConversation());let n={id:"typing-"+Date.now(),text:"",sender:"assistant",timestamp:new Date,isTyping:!0};this.chatState.update(i=>N(M({},i),{messages:[...i.messages,n]})),yield this.delay(this.typingSimulationDelay);let r=yield ut(this.apiService.sendMessage(this.currentConversationId,{message:t}));this.chatState.update(i=>N(M({},i),{messages:i.messages.filter(s=>s.id!==n.id),isLoading:!1})),this.addMessage(r.assistantMessage,"assistant")}catch(n){this.logger.error("Error sending message:",n),this.chatState.update(r=>N(M({},r),{messages:r.messages.filter(i=>!i.isTyping),isLoading:!1})),this.addMessage("Sorry, I encountered an error. Please try again.","assistant")}})}createConversation(){return X(this,null,function*(){try{let t=yield ut(this.apiService.createConversation({appId:this.mockAppId,title:"New Chat"}));this.currentConversationId=t.id}catch(t){throw this.logger.error("Error creating conversation:",t),t}})}loadConversation(t){return X(this,null,function*(){try{this.chatState.update(r=>N(M({},r),{isLoading:!0}));let n=(yield ut(this.apiService.getMessages(t))).messages.map(r=>({id:r.id,text:r.content,sender:r.role==="user"?"user":"assistant",timestamp:new Date(r.createdAt),isTyping:!1}));this.currentConversationId=t,this.chatState.update(r=>N(M({},r),{messages:n,isLoading:!1}))}catch(n){this.logger.error("Error loading conversation:",n),this.chatState.update(r=>N(M({},r),{isLoading:!1}))}})}clearChat(){this.chatState.update(t=>N(M({},t),{messages:[]})),this.currentConversationId=null}getCurrentConversationId(){return this.currentConversationId}getConversations(t,n,r=0,i=50){return X(this,null,function*(){try{return yield ut(this.apiService.getConversations(t,n,r,i))}catch(s){throw this.logger.error("Error loading conversations:",s),s}})}deleteConversation(t){return X(this,null,function*(){try{yield ut(this.apiService.deleteConversation(t)),this.currentConversationId===t&&this.clearChat()}catch(n){throw this.logger.error("Error deleting conversation:",n),n}})}updateConversationTitle(t,n){return X(this,null,function*(){try{yield ut(this.apiService.updateConversationTitle(t,{title:n}))}catch(r){throw this.logger.error("Error updating conversation title:",r),r}})}generateId(){return`msg-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}delay(t){return new Promise(n=>setTimeout(n,t))}static \u0275fac=function(t){return new(t||Or)};static \u0275prov=O({token:Or,factory:Or.\u0275fac,providedIn:"root"})},V_=class Er{constructor(t){this.logger=t,this.initializeRecognition()}recognition=null;isSupported=!1;resolveStop=null;statusSignal=ue({state:"idle",transcript:"",interimTranscript:""});getStatus(){return this.statusSignal.asReadonly()}isVoiceRecognitionSupported(){return this.isSupported}getCurrentTranscript(){return this.statusSignal().transcript}initializeRecognition(){let t=window.SpeechRecognition||window.webkitSpeechRecognition;if(!t){this.logger.warn("Speech Recognition API is not supported in this browser"),this.isSupported=!1;return}this.isSupported=!0,this.recognition=new t,this.recognition.continuous=!0,this.recognition.interimResults=!0,this.recognition.lang="en-US",this.recognition.maxAlternatives=1,this.recognition.onstart=()=>{this.logger.debug("Voice recognition started"),this.statusSignal.update(n=>N(M({},n),{state:"listening",errorMessage:void 0}))},this.recognition.onresult=n=>{let r="",i=this.statusSignal().transcript;this.logger.debug("Voice recognition onresult event",{resultIndex:n.resultIndex,resultsLength:n.results.length});for(let s=n.resultIndex;s<n.results.length;s++){let o=n.results[s][0].transcript,a=n.results[s].isFinal;this.logger.debug(`Result ${s}:`,{transcript:o,isFinal:a}),a?i+=o+" ":r+=o}this.statusSignal.update(s=>N(M({},s),{transcript:i.trim(),interimTranscript:r.trim()})),this.logger.debug("Updated status:",{transcript:i.trim(),interimTranscript:r.trim()})},this.recognition.onerror=n=>{this.logger.error("Voice recognition error:",n.error);let r="Voice recognition error";switch(n.error){case"no-speech":r="No speech detected. Please try again.";break;case"audio-capture":r="No microphone found. Please check your microphone.";break;case"not-allowed":r="Microphone access denied. Please allow microphone access.";break;case"network":r="Network error occurred. Please check your connection.";break;default:r=`Voice recognition error: ${n.error}`}this.statusSignal.update(i=>N(M({},i),{state:"error",errorMessage:r}))},this.recognition.onend=()=>{this.logger.debug("Voice recognition ended");let n=this.statusSignal().transcript;this.logger.debug("Final transcript:",n),this.resolveStop&&(this.resolveStop({transcript:n.trim(),success:n.trim().length>0}),this.resolveStop=null),this.statusSignal.set({state:"idle",transcript:"",interimTranscript:"",errorMessage:void 0})}}startListening(t="en-US"){if(!this.isSupported){this.statusSignal.set({state:"error",transcript:"",interimTranscript:"",errorMessage:"Voice recognition is not supported in this browser"});return}if(this.statusSignal().state==="listening"){this.logger.warn("Voice recognition is already active");return}this.statusSignal.set({state:"listening",transcript:"",interimTranscript:"",errorMessage:void 0});try{this.recognition.lang=t,this.recognition.start()}catch(n){this.logger.error("Failed to start voice recognition:",n),this.statusSignal.update(r=>N(M({},r),{state:"error",errorMessage:"Failed to start voice recognition"}))}}stopListening(){return X(this,null,function*(){return this.isSupported?this.statusSignal().state!=="listening"?{transcript:"",success:!1}:new Promise(t=>{this.resolveStop=t,this.statusSignal.update(n=>N(M({},n),{state:"processing"}));try{this.recognition.stop()}catch(n){this.logger.error("Failed to stop voice recognition:",n),this.resolveStop=null,this.statusSignal.set({state:"idle",transcript:"",interimTranscript:"",errorMessage:void 0}),t({transcript:"",success:!1})}}):{transcript:"",success:!1}})}cancelListening(){if(this.isSupported){if(this.statusSignal().state==="listening")try{this.recognition.abort()}catch(t){this.logger.error("Failed to cancel voice recognition:",t)}this.resolveStop&&(this.resolveStop({transcript:"",success:!1}),this.resolveStop=null),this.statusSignal.set({state:"idle",transcript:"",interimTranscript:"",errorMessage:void 0})}}static \u0275fac=function(t){return new(t||Er)(C(kt))};static \u0275prov=O({token:Er,factory:Er.\u0275fac,providedIn:"root"})};function N_(e,t){if(e&1&&(g(0,"div",8)(1,"div",9),U(2,"app-icon",10),y(),g(3,"h1",11),F(4),y(),g(5,"p",12),F(6),y(),g(7,"p",13),F(8),y()()),e&2){let n=A();S(4),Oe(n.greeting),S(2),Oe(n.welcomeText),S(2),Oe(n.description)}}function R_(e,t){if(e&1&&U(0,"app-chat-history",14),e&2){let n=A();P("messages",n.messages())}}function F_(e,t){if(e&1){let n=on();g(0,"app-suggestion-button",19),T("buttonClick",function(r){W(n);let i=A(2);return Q(i.onSuggestionClick(r))}),y()}if(e&2){let n=t.$implicit,r=A(2);P("text",n)("disabled",r.isLoading())}}function L_(e,t){if(e&1&&(g(0,"div",15)(1,"p",16),F(2),y(),g(3,"div",17),pe(4,F_,1,2,"app-suggestion-button",18),y()()),e&2){let n=A();S(2),Oe(n.personalizationText),S(2),P("ngForOf",n.suggestions)}}var j_=class Js{chatService=v(A_);toastService=v(cf);confirmationService=v(df);voiceRecognition=v(V_);configService=v(ga);logger=v(kt);_apiUrl;_apiTimeout;set apiUrl(t){this._apiUrl=t,t&&this.updateConfig()}get apiUrl(){return this._apiUrl}set apiTimeout(t){this._apiTimeout=t,t&&this.updateConfig()}get apiTimeout(){return this._apiTimeout}set config(t){t&&(this.configService.setConfig(t),console.log("Config updated via Input:",t))}title=Be.TITLE;greeting=Be.WELCOME.GREETING;welcomeText=Be.WELCOME.TEXT;description=Be.WELCOME.DESCRIPTION;personalizationText=Be.WELCOME.PERSONALIZATION;inputPlaceholder=Be.INPUT.PLACEHOLDER;suggestions=[...Be.SUGGESTIONS];chatState=this.chatService.getState();messages=Rt(()=>this.chatState().messages);isLoading=Rt(()=>this.chatState().isLoading);hasMessages=Rt(()=>this.messages().length>0);voiceStatus=this.voiceRecognition.getStatus();sidebarOpenSignal=ue(!1);isSidebarOpen=this.sidebarOpenSignal.asReadonly();conversationsSignal=ue([]);conversations=this.conversationsSignal.asReadonly();isLoadingConversationsSignal=ue(!1);isLoadingConversations=this.isLoadingConversationsSignal.asReadonly();searchQuerySignal=ue("");inputValueSignal=ue("");inputValue=this.inputValueSignal.asReadonly();ngOnInit(){console.log("AssistantPage initialized with config:",this.configService.getConfig())}updateConfig(){let t=this.configService.getConfig();this.configService.setConfig({apiUrl:this._apiUrl||t.apiUrl,apiTimeout:this._apiTimeout||t.apiTimeout,environmentName:t.environmentName}),console.log("Config updated:",this.configService.getConfig())}onMenuClick(){return X(this,null,function*(){this.sidebarOpenSignal.set(!0),this.searchQuerySignal.set(""),yield this.loadConversations()})}onCloseClick(){this.chatService.clearChat()}onSuggestionClick(t){return X(this,null,function*(){yield this.chatService.sendMessage(t)})}onMessageSubmit(t){return X(this,null,function*(){t.trim()&&(this.inputValueSignal.set(""),yield this.chatService.sendMessage(t))})}onInputValueChange(t){this.inputValueSignal.set(t)}onVoiceClick(){return X(this,null,function*(){let t=this.voiceStatus();if(!this.voiceRecognition.isVoiceRecognitionSupported()){this.toastService.error("Voice recognition is not supported in your browser. Please try Chrome, Edge, or Safari.");return}if(t.state==="listening"){let n=yield this.voiceRecognition.stopListening();this.logger.debug("Voice recognition result:",n),n.success&&n.transcript?(this.inputValueSignal.set(n.transcript),this.toastService.success("Voice input captured. Click send when ready.")):this.toastService.warning("No speech detected. Please try again.")}else t.state==="idle"?(this.voiceRecognition.startListening(),this.toastService.info("Listening... Click the microphone button again when done.")):t.state==="error"&&this.toastService.error(t.errorMessage||"Voice recognition error")})}onAddClick(){this.toastService.info("Attachment feature coming soon!")}onSidebarBackClick(){this.sidebarOpenSignal.set(!1)}onSidebarSettingsClick(){this.toastService.info("Settings feature coming soon!")}onSidebarCloseClick(){this.sidebarOpenSignal.set(!1)}onConversationClick(t){return X(this,null,function*(){this.sidebarOpenSignal.set(!1);try{yield this.chatService.loadConversation(t)}catch(n){this.logger.error("Failed to load conversation:",n),this.toastService.error("Failed to load conversation. Please try again.")}})}onConversationDeleteClick(t){return X(this,null,function*(){if(this.logger.debug("Delete conversation:",t),!!(yield this.confirmationService.confirm({title:"Delete Conversation",message:"Are you sure you want to delete this conversation? This action cannot be undone.",confirmText:"Delete",cancelText:"Cancel",confirmColor:"danger"})))try{yield this.chatService.deleteConversation(t);let n=this.conversationsSignal();this.conversationsSignal.set(n.filter(r=>r.id!==t)),this.toastService.success("Conversation deleted successfully")}catch(n){this.logger.error("Failed to delete conversation:",n),this.toastService.error("Failed to delete conversation. Please try again.")}})}onNewChatClick(){this.chatService.clearChat(),this.sidebarOpenSignal.set(!1)}onSearchChange(t){return X(this,null,function*(){this.searchQuerySignal.set(t),yield this.loadConversations()})}onConversationTitleUpdate(t){return X(this,null,function*(){try{yield this.chatService.updateConversationTitle(t.id,t.title);let n=this.conversationsSignal();this.conversationsSignal.set(n.map(r=>r.id===t.id?N(M({},r),{title:t.title}):r)),this.toastService.success("Conversation title updated")}catch(n){this.logger.error("Failed to update conversation title:",n),this.toastService.error("Failed to update conversation title. Please try again.")}})}loadConversations(){return X(this,null,function*(){if(!this.isLoadingConversationsSignal()){this.isLoadingConversationsSignal.set(!0);try{let t=this.searchQuerySignal(),n=(yield this.chatService.getConversations(void 0,t||void 0)).conversations.map(r=>({id:r.id,title:r.title||"Untitled Conversation",date:new Date(r.createdAt).toLocaleDateString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric"})}));this.conversationsSignal.set(n)}catch(t){this.logger.error("Failed to load conversations:",t)}finally{this.isLoadingConversationsSignal.set(!1)}}})}static \u0275fac=function(t){return new(t||Js)};static \u0275cmp=Me({type:Js,selectors:[["app-assistant"]],inputs:{apiUrl:"apiUrl",apiTimeout:"apiTimeout",config:"config",title:"title",greeting:"greeting",welcomeText:"welcomeText",description:"description",personalizationText:"personalizationText",inputPlaceholder:"inputPlaceholder",suggestions:"suggestions"},decls:10,vars:11,consts:[[3,"backClick","settingsClick","closeClick","conversationClick","deleteClick","newChatClick","searchChange","titleUpdate","isOpen","conversations","isLoading"],[1,"assistant-page"],[3,"menuClick","closeClick","title"],[1,"content"],["class","welcome-container",4,"ngIf"],[3,"messages",4,"ngIf"],["class","personalization-section",4,"ngIf"],[3,"valueChange","submitMessage","voiceClick","addClick","placeholder","disabled","voiceStatus","value"],[1,"welcome-container"],[1,"icon-wrapper"],["name","sparkle","width","64","height","64","dropShadow","drop-shadow(0 4px 8px rgba(255, 107, 107, 0.2))",1,"sparkle-icon"],[1,"greeting"],[1,"welcome-text"],[1,"description"],[3,"messages"],[1,"personalization-section"],[1,"personalization-text"],[1,"suggestions"],[3,"text","disabled","buttonClick",4,"ngFor","ngForOf"],[3,"buttonClick","text","disabled"]],template:function(t,n){t&1&&(g(0,"app-sidebar",0),T("backClick",function(){return n.onSidebarBackClick()})("settingsClick",function(){return n.onSidebarSettingsClick()})("closeClick",function(){return n.onSidebarCloseClick()})("conversationClick",function(r){return n.onConversationClick(r)})("deleteClick",function(r){return n.onConversationDeleteClick(r)})("newChatClick",function(){return n.onNewChatClick()})("searchChange",function(r){return n.onSearchChange(r)})("titleUpdate",function(r){return n.onConversationTitleUpdate(r)}),y(),g(1,"div",1)(2,"app-header",2),T("menuClick",function(){return n.onMenuClick()})("closeClick",function(){return n.onCloseClick()}),y(),g(3,"div",3),pe(4,N_,9,3,"div",4)(5,R_,1,1,"app-chat-history",5)(6,L_,5,2,"div",6),y(),g(7,"app-input-field",7),T("valueChange",function(r){return n.onInputValueChange(r)})("submitMessage",function(r){return n.onMessageSubmit(r)})("voiceClick",function(){return n.onVoiceClick()})("addClick",function(){return n.onAddClick()}),y()(),U(8,"app-toast-container")(9,"app-confirmation-modal")),t&2&&(P("isOpen",n.isSidebarOpen())("conversations",n.conversations())("isLoading",n.isLoadingConversations()),S(2),P("title",n.title),S(2),P("ngIf",!n.hasMessages()),S(),P("ngIf",n.hasMessages()),S(),P("ngIf",!n.hasMessages()),S(),P("placeholder",n.inputPlaceholder)("disabled",n.isLoading())("voiceStatus",n.voiceStatus())("value",n.inputValue()))},dependencies:[Ce,wi,an,_w,xw,a_,ln,g_,x_,M_,P_],styles:[".assistant-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100vh;max-height:100vh;background:#fff;font-family:Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;overflow:hidden}.content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0;position:relative}app-chat-history[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.welcome-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:20px 24px 30px;text-align:center;flex:1}.icon-wrapper[_ngcontent-%COMP%]{margin-bottom:16px}.greeting[_ngcontent-%COMP%]{font-size:28px;font-weight:700;margin:0 0 12px;color:#1a1a1a}.welcome-text[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0 0 12px;color:#333}.description[_ngcontent-%COMP%]{font-size:15px;font-weight:400;margin:0 0 20px;color:#666;max-width:400px;line-height:1.4}.personalization-section[_ngcontent-%COMP%]{padding:0 24px 24px;display:flex;flex-direction:column;align-items:center;gap:16px;flex-shrink:0}.personalization-text[_ngcontent-%COMP%]{font-size:15px;color:#666;margin:0;text-align:center;max-width:400px;line-height:1.4}.suggestions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;max-width:400px}@media (max-width: 768px){.suggestions[_ngcontent-%COMP%]{max-width:100%}}"]})},H_={production:!0};function hf(e){return()=>e.loadConfig()}X(null,null,function*(){if(customElements.get("app-assistant")){console.log("\u26A0\uFE0F Web Component already registered, skipping...");return}let e=yield OC({providers:[em(),X1({eventCoalescing:!0}),aw(lw()),{provide:ih,useFactory:hf,deps:[ga],multi:!0},Sh,ww.forRoot({level:H_.production?q.WARN:q.DEBUG,serverLogLevel:q.ERROR,disableConsoleLogging:!1,enableSourceMaps:!0,timestampFormat:"short"}).providers||[]]}),t=Ab(j_,{injector:e.injector});customElements.define("app-assistant",t),console.log("\u2705 Web Component registered: app-assistant")});return yf(z_);})();
|
|
24
25
|
/*! Bundled license information:
|
|
25
26
|
|
|
26
27
|
@angular/core/fesm2022/not_found.mjs:
|
|
@@ -59,7 +60,6 @@ ${t.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
|
|
|
59
60
|
@angular/core/fesm2022/debug_node.mjs:
|
|
60
61
|
@angular/core/fesm2022/debug_node.mjs:
|
|
61
62
|
@angular/core/fesm2022/debug_node.mjs:
|
|
62
|
-
@angular/core/fesm2022/debug_node.mjs:
|
|
63
63
|
@angular/core/fesm2022/core.mjs:
|
|
64
64
|
@angular/core/fesm2022/core.mjs:
|
|
65
65
|
@angular/core/fesm2022/core.mjs:
|