@mbubela/oaa-assistant 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/bundles/web-components.js +9 -9
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";var WebComponents=(()=>{var
|
|
2
|
-
${t.map((n,
|
|
3
|
-
`)}`:"",this.name="UnsubscriptionError",this.errors=t});function Pr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Fe=class cs{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(q(r))try{r()}catch(s){t=s instanceof Li?s.errors:[s]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let s of i)try{Oa(s)}catch(o){t=t??[],o instanceof Li?t=[...t,...o.errors]:t.push(o)}}if(t)throw new Li(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Oa(t);else{if(t instanceof cs){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)&&Pr(n,t)}remove(t){let{_finalizers:n}=this;n&&Pr(n,t),t instanceof cs&&t._removeParent(this)}};Fe.EMPTY=(()=>{let e=new Fe;return e.closed=!0,e})();var pu=Fe.EMPTY;function fu(e){return e instanceof Fe||e&&"closed"in e&&q(e.remove)&&q(e.add)&&q(e.unsubscribe)}function Oa(e){q(e)?e():e.unsubscribe()}var Ot={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ir={setTimeout(e,t,...n){let{delegate:r}=Ir;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Ir;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function gu(e){Ir.setTimeout(()=>{let{onUnhandledError:t}=Ot;if(t)t(e);else throw e})}function ds(){}var Kp=oo("C",void 0,void 0);function Jp(e){return oo("E",void 0,e)}function Xp(e){return oo("N",e,void 0)}function oo(e,t,n){return{kind:e,value:t,error:n}}var gt=null;function dr(e){if(Ot.useDeprecatedSynchronousErrorHandling){let t=!gt;if(t&&(gt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=gt;if(gt=null,n)throw r}}else e()}function ef(e){Ot.useDeprecatedSynchronousErrorHandling&>&&(gt.errorThrown=!0,gt.error=e)}var ao=class extends Fe{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,fu(e)&&e.add(this)):this.destination=sf}static create(e,t,n){return new Bt(e,t,n)}next(e){this.isStopped?Ai(Xp(e),this):this._next(e)}error(e){this.isStopped?Ai(Jp(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Ai(Kp,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()}}},tf=Function.prototype.bind;function Di(e,t){return tf.call(e,t)}var nf=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)}}},Bt=class extends ao{constructor(e,t,n){super();let r;if(q(e)||!e)r={next:e??void 0,error:t??void 0,complete:n??void 0};else{let i;this&&Ot.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&Di(e.next,i),error:e.error&&Di(e.error,i),complete:e.complete&&Di(e.complete,i)}):r=e}this.destination=new nf(r)}};function Gn(e){Ot.useDeprecatedSynchronousErrorHandling?ef(e):gu(e)}function rf(e){throw e}function Ai(e,t){let{onStoppedNotification:n}=Ot;n&&Ir.setTimeout(()=>n(e,t))}var sf={closed:!0,next:ds,error:rf,complete:ds},lo=typeof Symbol=="function"&&Symbol.observable||"@@observable";function uo(e){return e}function of(e){return e.length===0?uo: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=lf(n)?n:new Bt(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=Ea(r),new r((i,s)=>{let o=new Bt({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)}[lo](){return this}pipe(...n){return of(n)(this)}toPromise(n){return n=Ea(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 Ea(e){var t;return(t=e??Ot.Promise)!==null&&t!==void 0?t:Promise}function af(e){return e&&q(e.next)&&q(e.error)&&q(e.complete)}function lf(e){return e&&e instanceof ao||af(e)&&fu(e)}function uf(e){return q(e?.lift)}function ge(e){return t=>{if(uf(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 ue(e,t,n,r,i){return new cf(e,t,n,r,i)}var cf=class extends ao{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))}}},df=si(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}),Je=(()=>{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 Ta(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new df}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?pu:(this.currentObservers=null,s.push(n),new Fe(()=>{this.currentObservers=null,Pr(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 Ta(t,n),e})(),Ta=class extends Je{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:pu}},mu=class extends Je{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)}},co={now(){return(co.delegate||Date).now()},delegate:void 0},vu=class extends Je{constructor(e=1/0,t=1/0,n=co){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)}}},hf=class extends Fe{constructor(e,t){super()}schedule(e,t=0){return this}},Lr={setInterval(e,t,...n){let{delegate:r}=Lr;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Lr;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},pf=class extends hf{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 Lr.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&&Lr.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,Pr(n,this),e!=null&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}},hs=class yu{constructor(t,n=yu.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};hs.now=co.now;var ff=class extends hs{constructor(e,t=hs.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}}},Cu=new ff(pf),gf=Cu,bu=new J(e=>e.complete());function wu(e){return e&&q(e.schedule)}function ho(e){return e[e.length-1]}function mf(e){return q(ho(e))?e.pop():void 0}function _u(e){return wu(ho(e))?e.pop():void 0}function vf(e,t){return typeof ho(e)=="number"?e.pop():t}function yf(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 Pa(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 Ht(e){return this instanceof Ht?(this.v=e,this):new Ht(e)}function Cf(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(g){return Promise.resolve(g).then(h,d)}}function a(h,g){r[h]&&(i[h]=function(y){return new Promise(function(C,R){s.push([h,y,C,R])>1||l(h,y)})},g&&(i[h]=g(i[h])))}function l(h,g){try{u(r[h](g))}catch(y){p(s[0][3],y)}}function u(h){h.value instanceof Ht?Promise.resolve(h.value.v).then(c,d):p(s[0][2],h)}function c(h){l("next",h)}function d(h){l("throw",h)}function p(h,g){h(g),s.shift(),s.length&&l(s[0][0],s[0][1])}}function bf(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 Pa=="function"?Pa(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 xu=e=>e&&typeof e.length=="number"&&typeof e!="function";function ku(e){return q(e?.then)}function Su(e){return q(e[lo])}function Mu(e){return Symbol.asyncIterator&&q(e?.[Symbol.asyncIterator])}function Ou(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 wf(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Eu=wf();function Tu(e){return q(e?.[Eu])}function Pu(e){return Cf(this,arguments,function*(){let t=e.getReader();try{for(;;){let{value:n,done:r}=yield Ht(t.read());if(r)return yield Ht(void 0);yield yield Ht(n)}}finally{t.releaseLock()}})}function Iu(e){return q(e?.getReader)}function de(e){if(e instanceof J)return e;if(e!=null){if(Su(e))return _f(e);if(xu(e))return xf(e);if(ku(e))return kf(e);if(Mu(e))return Lu(e);if(Tu(e))return Sf(e);if(Iu(e))return Mf(e)}throw Ou(e)}function _f(e){return new J(t=>{let n=e[lo]();if(q(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function xf(e){return new J(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function kf(e){return new J(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,gu)})}function Sf(e){return new J(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Lu(e){return new J(t=>{Of(e,t).catch(n=>t.error(n))})}function Mf(e){return Lu(Pu(e))}function Of(e,t){var n,r,i,s;return yf(this,void 0,void 0,function*(){try{for(n=bf(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 qe(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 Du(e,t=0){return ge((n,r)=>{n.subscribe(ue(r,i=>qe(r,e,()=>r.next(i),t),()=>qe(r,e,()=>r.complete(),t),i=>qe(r,e,()=>r.error(i),t)))})}function Au(e,t=0){return ge((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Ef(e,t){return de(e).pipe(Au(t),Du(t))}function Tf(e,t){return de(e).pipe(Au(t),Du(t))}function Pf(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 If(e,t){return new J(n=>{let r;return qe(n,t,()=>{r=e[Eu](),qe(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)}),()=>q(r?.return)&&r.return()})}function Vu(e,t){if(!e)throw new Error("Iterable cannot be null");return new J(n=>{qe(n,t,()=>{let r=e[Symbol.asyncIterator]();qe(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Lf(e,t){return Vu(Pu(e),t)}function Df(e,t){if(e!=null){if(Su(e))return Ef(e,t);if(xu(e))return Pf(e,t);if(ku(e))return Tf(e,t);if(Mu(e))return Vu(e,t);if(Tu(e))return If(e,t);if(Iu(e))return Lf(e,t)}throw Ou(e)}function po(e,t){return t?Df(e,t):de(e)}function $e(...e){let t=_u(e);return po(e,t)}function fo(e,t){let n=q(e)?e:()=>e,r=i=>i.error(n());return new J(t?i=>t.schedule(r,0,i):r)}function Af(e){return!!e&&(e instanceof J||q(e.lift)&&q(e.subscribe))}var Vf=si(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function nt(e,t){let n=typeof t=="object";return new Promise((r,i)=>{let s=new Bt({next:o=>{r(o),s.unsubscribe()},error:i,complete:()=>{n?r(t.defaultValue):i(new Vf)}});e.subscribe(s)})}function Ru(e){return e instanceof Date&&!isNaN(e)}var Rf=si(e=>function(t=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t});function pt(e,t){let{first:n,each:r,with:i=Nf,scheduler:s=t??Cu,meta:o=null}=Ru(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return ge((a,l)=>{let u,c,d=null,p=0,h=g=>{c=qe(l,s,()=>{try{u.unsubscribe(),de(i({meta:o,lastValue:d,seen:p})).subscribe(l)}catch(y){l.error(y)}},g)};u=a.subscribe(ue(l,g=>{c?.unsubscribe(),p++,l.next(d=g),r>0&&h(r)},void 0,void 0,()=>{c?.closed||c?.unsubscribe(),d=null})),!p&&h(n!=null?typeof n=="number"?n:+n-s.now():r)})}function Nf(e){throw new Rf(e)}function Te(e,t){return ge((n,r)=>{let i=0;n.subscribe(ue(r,s=>{r.next(e.call(t,s,i++))}))})}var{isArray:Ff}=Array;function Hf(e,t){return Ff(t)?e(...t):e(t)}function jf(e){return Te(t=>Hf(e,t))}var{isArray:zf}=Array,{getPrototypeOf:Bf,prototype:Uf,keys:Zf}=Object;function $f(e){if(e.length===1){let t=e[0];if(zf(t))return{args:t,keys:null};if(qf(t)){let n=Zf(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function qf(e){return e&&typeof e=="object"&&Bf(e)===Uf}function Gf(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function Wf(e,t,n,r,i,s,o,a){let l=[],u=0,c=0,d=!1,p=()=>{d&&!l.length&&!u&&t.complete()},h=y=>u<r?g(y):l.push(y),g=y=>{s&&t.next(y),u++;let C=!1;de(n(y,c++)).subscribe(ue(t,R=>{i?.(R),s?h(R):t.next(R)},()=>{C=!0},void 0,()=>{if(C)try{for(u--;l.length&&u<r;){let R=l.shift();o?qe(t,o,()=>g(R)):g(R)}p()}catch(R){t.error(R)}}))};return e.subscribe(ue(t,h,()=>{d=!0,p()})),()=>{a?.()}}function Dr(e,t,n=1/0){return q(t)?Dr((r,i)=>Te((s,o)=>t(r,s,i,o))(de(e(r,i))),n):(typeof t=="number"&&(n=t),ge((r,i)=>Wf(r,i,e,n)))}function Qf(e=1/0){return Dr(uo,e)}function Yf(...e){let t=mf(e),{args:n,keys:r}=$f(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;de(n[c]).subscribe(ue(s,p=>{d||(d=!0,u--),a[c]=p},()=>l--,void 0,()=>{(!l||!d)&&(u||s.next(r?Gf(r,a):a),s.complete())}))}});return t?i.pipe(jf(t)):i}function Nu(e=0,t,n=gf){let r=-1;return t!=null&&(wu(t)?n=t:r=t),new J(i=>{let s=Ru(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 Kf(...e){let t=_u(e),n=vf(e,1/0),r=e;return r.length?r.length===1?de(r[0]):Qf(n)(po(r,t)):bu}function Ar(e,t){return ge((n,r)=>{let i=0;n.subscribe(ue(r,s=>e.call(t,s,i++)&&r.next(s)))})}function Oe(e){return ge((t,n)=>{let r=null,i=!1,s;r=t.subscribe(ue(n,void 0,void 0,o=>{s=de(e(o,Oe(e)(t))),r?(r.unsubscribe(),r=null,s.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,s.subscribe(n))})}function Fu(e,t){return q(t)?Dr(e,t,1):Dr(e,1)}function Hu(e){return e<=0?()=>bu:ge((t,n)=>{let r=0;t.subscribe(ue(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function ju(e){return ge((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Jf(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?uo:ge((s,o)=>{let a=0,l,u=()=>{let c=!1;l=s.subscribe(ue(o,d=>{i&&(a=0),o.next(d)},void 0,d=>{if(a++<n){let p=()=>{l?(l.unsubscribe(),l=null,u()):c=!0};if(r!=null){let h=typeof r=="number"?Nu(r):de(r(d,a)),g=ue(o,()=>{g.unsubscribe(),p()},()=>{o.complete()});h.subscribe(g)}else p()}else o.error(d)})),c&&(l.unsubscribe(),l=null,u())};u()})}function Xf(e={}){let{connector:t=()=>new Je,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return s=>{let o,a,l,u=0,c=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},h=()=>{p(),o=l=void 0,c=d=!1},g=()=>{let y=o;h(),y?.unsubscribe()};return ge((y,C)=>{u++,!d&&!c&&p();let R=l=l??t();C.add(()=>{u--,u===0&&!d&&!c&&(a=Vi(g,i))}),R.subscribe(C),!o&&u>0&&(o=new Bt({next:Se=>R.next(Se),error:Se=>{d=!0,p(),a=Vi(h,n,Se),R.error(Se)},complete:()=>{c=!0,p(),a=Vi(h,r),R.complete()}}),de(y).subscribe(o))})(s)}}function Vi(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Bt({next:()=>{r.unsubscribe(),e()}});return de(t(...n)).subscribe(r)}function Ia(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,Xf({connector:()=>new vu(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function zu(e,t){return ge((n,r)=>{let i=null,s=0,o=!1,a=()=>o&&!i&&r.complete();n.subscribe(ue(r,l=>{i?.unsubscribe();let u=0,c=s++;de(e(l,c)).subscribe(i=ue(r,d=>r.next(t?t(l,d,c,u++):d),()=>{i=null,a()}))},()=>{o=!0,a()}))})}function e1(e){return ge((t,n)=>{de(e).subscribe(ue(n,()=>n.complete(),ds)),!n.closed&&t.subscribe(n)})}function t1(e){let t=A(null);try{return e()}finally{A(t)}}var Bu="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",w=class extends Error{code;constructor(e,t){super(r1(e,t)),this.code=e}};function n1(e){return`NG0${Math.abs(e)}`}function r1(e,t){return`${n1(e)}${t?": "+t:""}`}var ot=globalThis;function U(e){for(let t in e)if(e[t]===U)return t;throw Error("")}function i1(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ut(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Ut).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 La(e,t){return e?t?`${e} ${t}`:e:t||""}var s1=U({__forward_ref__:U});function Vn(e){return e.__forward_ref__=Vn,e.toString=function(){return Ut(this())},e}function se(e){return Uu(e)?e():e}function Uu(e){return typeof e=="function"&&e.hasOwnProperty(s1)&&e.__forward_ref__===Vn}function E(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function oi(e){return{providers:e.providers||[],imports:e.imports||[]}}function go(e){return o1(e,Zu)}function o1(e,t){return e.hasOwnProperty(t)&&e[t]||null}function a1(e){return(e?.[Zu]??null)||null}function Da(e){return e&&e.hasOwnProperty(Aa)?e[Aa]:null}var Zu=U({\u0275prov:U}),Aa=U({\u0275inj:U}),M=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 $u(e){return e&&!!e.\u0275providers}var l1=U({\u0275cmp:U}),u1=U({\u0275dir:U}),c1=U({\u0275pipe:U}),Vr=U({\u0275fac:U}),vn=U({__NG_ELEMENT_ID__:U}),Va=U({__NG_ENV_ID__:U});function ai(e){return typeof e=="string"?e:e==null?"":String(e)}function d1(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():ai(e)}var qu=U({ngErrorCode:U}),h1=U({ngErrorMessage:U}),p1=U({ngTokenPath:U});function Gu(e,t){return Wu("",-200,t)}function mo(e,t){throw new w(-201,!1)}function Wu(e,t,n){let r=new w(t,e);return r[qu]=t,r[h1]=e,n&&(r[p1]=n),r}function f1(e){return e[qu]}var ps;function Qu(){return ps}function ve(e){let t=ps;return ps=e,t}function Yu(e,t,n){let r=go(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;mo(e,"Injector")}var g1={},vt=g1,m1="__NG_DI_FLAG__",v1=class{injector;constructor(e){this.injector=e}retrieve(e,t){let n=Mn(t)||0;try{return this.injector.get(e,n&8?null:vt,n)}catch(r){if(ro(r))return r;throw r}}};function y1(e,t=0){let n=Xl();if(n===void 0)throw new w(-203,!1);if(n===null)return Yu(e,void 0,t);{let r=C1(t),i=n.retrieve(e,r);if(ro(i)){if(r.optional)return null;throw i}return i}}function b(e,t=0){return(Qu()||y1)(se(e),t)}function v(e,t){return b(e,Mn(t))}function Mn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function C1(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function fs(e){let t=[];for(let n=0;n<e.length;n++){let r=se(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=b1(a);typeof l=="number"?l===-1?i=a.token:s|=l:i=a}t.push(b(i,s))}else t.push(b(r))}return t}function b1(e){return e[m1]}function Zt(e,t){return e.hasOwnProperty(Vr)?e[Vr]:null}function w1(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 _1(e){return e.flat(Number.POSITIVE_INFINITY)}function vo(e,t){e.forEach(n=>Array.isArray(n)?vo(n,t):t(n))}function Ku(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Rr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function x1(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 k1(e,t,n){let r=Rn(e,t);return r>=0?e[r|1]=n:(r=~r,x1(e,r,t,n)),r}function Ri(e,t){let n=Rn(e,t);if(n>=0)return e[n|1]}function Rn(e,t){return S1(e,t,1)}function S1(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 yt={},ye=[],$t=new M(""),Ju=new M("",-1),Xu=new M(""),ec=class{get(e,t=vt){if(t===vt){let n=Wu("",-201);throw n.name="\u0275NotFound",n}return t}};function On(e){return e[l1]||null}function tc(e){return e[u1]||null}function M1(e){return e[c1]||null}function li(e){return{\u0275providers:e}}function O1(e){return li([{provide:$t,multi:!0,useValue:e}])}function E1(...e){return{\u0275providers:nc(!0,e),\u0275fromNgModule:!0}}function nc(e,...t){let n=[],r=new Set,i,s=o=>{n.push(o)};return vo(t,o=>{let a=o;gs(a,s,[],r)&&(i||=[],i.push(a))}),i!==void 0&&rc(i,s),n}function rc(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];yo(i,s=>{t(s,r)})}}function gs(e,t,n,r){if(e=se(e),!e)return!1;let i=null,s=Da(e),o=!s&&On(e);if(!s&&!o){let l=e.ngModule;if(s=Da(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)gs(u,t,n,r)}}else if(s){if(s.imports!=null&&!a){r.add(i);let u;vo(s.imports,c=>{gs(c,t,n,r)&&(u||=[],u.push(c))}),u!==void 0&&rc(u,t)}if(!a){let u=Zt(i)||(()=>new i);t({provide:i,useFactory:u,deps:ye},i),t({provide:Xu,useValue:i,multi:!0},i),t({provide:$t,useValue:()=>b(i),multi:!0},i)}let l=s.providers;if(l!=null&&!a){let u=e;yo(l,c=>{t(c,u)})}}else return!1;return i!==e&&e.providers!==void 0}function yo(e,t){for(let n of e)$u(n)&&(n=n.\u0275providers),Array.isArray(n)?yo(n,t):t(n)}var T1=U({provide:String,useValue:U});function ic(e){return e!==null&&typeof e=="object"&&T1 in e}function P1(e){return!!(e&&e.useExisting)}function I1(e){return!!(e&&e.useFactory)}function qt(e){return typeof e=="function"}function L1(e){return!!e.useClass}var Co=new M(""),hr={},Ra={},Ni;function bo(){return Ni===void 0&&(Ni=new ec),Ni}var We=class{},wo=class extends We{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,vs(e,s=>this.processProvider(s)),this.records.set(Ju,Rt(void 0,this)),r.has("environment")&&this.records.set(We,Rt(void 0,this));let i=this.records.get(Co);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Xu,ye,{self:!0}))}retrieve(e,t){let n=Mn(t)||0;try{return this.get(e,vt,n)}catch(r){if(ro(r))return r;throw r}}destroy(){fn(this),this._destroyed=!0;let e=A(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(),A(e)}}onDestroy(e){return fn(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){fn(this);let t=rt(this),n=ve(void 0),r;try{return e()}finally{rt(t),ve(n)}}get(e,t=vt,n){if(fn(this),e.hasOwnProperty(Va))return e[Va](this);let r=Mn(n),i,s=rt(this),o=ve(void 0);try{if(!(r&4)){let l=this.records.get(e);if(l===void 0){let u=N1(e)&&go(e);u&&this.injectableDefInScope(u)?l=Rt(ms(e),hr):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l,r)}let a=r&2?bo():this.parent;return t=r&8&&t===vt?null:t,a.get(e,t)}catch(a){let l=f1(a);throw l===-200||l===-201?new w(l,null):a}finally{ve(o),rt(s)}}resolveInjectorInitializers(){let e=A(null),t=rt(this),n=ve(void 0),r;try{let i=this.get($t,ye,{self:!0});for(let s of i)s()}finally{rt(t),ve(n),A(e)}}toString(){let e=[],t=this.records;for(let n of t.keys())e.push(Ut(n));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=se(e);let t=qt(e)?e:se(e&&e.provide),n=A1(e);if(!qt(e)&&e.multi===!0){let r=this.records.get(t);r||(r=Rt(void 0,hr,!0),r.factory=()=>fs(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,n)}hydrate(e,t,n){let r=A(null);try{if(t.value===Ra)throw Gu(Ut(e));return t.value===hr&&(t.value=Ra,t.value=t.factory(void 0,n)),typeof t.value=="object"&&t.value&&R1(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{A(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=se(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 ms(e){let t=go(e),n=t!==null?t.factory:Zt(e);if(n!==null)return n;if(e instanceof M)throw new w(204,!1);if(e instanceof Function)return D1(e);throw new w(204,!1)}function D1(e){if(e.length>0)throw new w(204,!1);let t=a1(e);return t!==null?()=>t.factory(e):()=>new e}function A1(e){if(ic(e))return Rt(void 0,e.useValue);{let t=sc(e);return Rt(t,hr)}}function sc(e,t,n){let r;if(qt(e)){let i=se(e);return Zt(i)||ms(i)}else if(ic(e))r=()=>se(e.useValue);else if(I1(e))r=()=>e.useFactory(...fs(e.deps||[]));else if(P1(e))r=(i,s)=>b(se(e.useExisting),s!==void 0&&s&8?8:void 0);else{let i=se(e&&(e.useClass||e.provide));if(V1(e))r=()=>new i(...fs(e.deps));else return Zt(i)||ms(i)}return r}function fn(e){if(e.destroyed)throw new w(205,!1)}function Rt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function V1(e){return!!e.deps}function R1(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function N1(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function vs(e,t){for(let n of e)Array.isArray(n)?vs(n,t):n&&$u(n)?vs(n.\u0275providers,t):t(n)}function _o(e,t){let n;e instanceof wo?(fn(e),n=e):n=new v1(e);let r,i=rt(n),s=ve(void 0);try{return t()}finally{rt(i),ve(s)}}function F1(){return Qu()!==void 0||Xl()!=null}var Xe=0,k=1,S=2,ne=3,Pe=4,De=5,Nr=6,Fr=7,ce=8,Ct=9,Qe=10,G=11,En=12,Na=13,en=14,He=15,bt=16,Nt=17,Ye=18,ui=19,oc=20,lt=21,Fi=22,Hr=23,Ce=24,Hi=25,jr=26,fe=27,ac=1,wt=7,zr=8,Gt=9,pe=10;function ut(e){return Array.isArray(e)&&typeof e[ac]=="object"}function et(e){return Array.isArray(e)&&e[ac]===!0}function lc(e){return(e.flags&4)!==0}function tn(e){return e.componentOffset>-1}function Nn(e){return(e.flags&1)===1}function Ke(e){return!!e.template}function Br(e){return(e[S]&512)!==0}function nn(e){return(e[S]&256)===256}var uc="svg",H1="math";function je(e){for(;Array.isArray(e);)e=e[Xe];return e}function cc(e,t){return je(t[e])}function Ue(e,t){return je(t[e.index])}function dc(e,t){return e.data[t]}function ze(e,t){let n=t[e];return ut(n)?n:n[Xe]}function j1(e){return(e[S]&4)===4}function xo(e){return(e[S]&128)===128}function z1(e){return et(e[ne])}function Wt(e,t){return t==null?null:e[t]}function hc(e){e[Nt]=0}function ko(e){e[S]&1024||(e[S]|=1024,xo(e)&&ci(e))}function B1(e,t){for(;e>0;)t=t[en],e--;return t}function Tn(e){return!!(e[S]&9216||e[Ce]?.dirty)}function ys(e){e[Qe].changeDetectionScheduler?.notify(8),e[S]&64&&(e[S]|=1024),Tn(e)&&ci(e)}function ci(e){e[Qe].changeDetectionScheduler?.notify(0);let t=_t(e);for(;t!==null&&!(t[S]&8192||(t[S]|=8192,!xo(t)));)t=_t(t)}function pc(e,t){if(nn(e))throw new w(911,!1);e[lt]===null&&(e[lt]=[]),e[lt].push(t)}function U1(e,t){if(e[lt]===null)return;let n=e[lt].indexOf(t);n!==-1&&e[lt].splice(n,1)}function _t(e){let t=e[ne];return et(t)?t[ne]:t}function fc(e){return e[Fr]??=[]}function gc(e){return e.cleanup??=[]}function Z1(e,t,n,r){let i=fc(t);i.push(n),e.firstCreatePass&&gc(e).push(r,i.length-1)}var I={lFrame:Sc(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Cs=!1;function $1(){return I.lFrame.elementDepthCount}function q1(){I.lFrame.elementDepthCount++}function mc(){I.lFrame.elementDepthCount--}function So(){return I.bindingsEnabled}function G1(){return I.skipHydrationRootTNode!==null}function vc(e){return I.skipHydrationRootTNode===e}function yc(){I.skipHydrationRootTNode=null}function F(){return I.lFrame.lView}function ee(){return I.lFrame.tView}function L(e){return I.lFrame.contextLView=e,e[ce]}function D(e){return I.lFrame.contextLView=null,e}function ae(){let e=Cc();for(;e!==null&&e.type===64;)e=e.parent;return e}function Cc(){return I.lFrame.currentTNode}function W1(){let e=I.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Fn(e,t){let n=I.lFrame;n.currentTNode=e,n.isParent=t}function bc(){return I.lFrame.isParent}function Q1(){I.lFrame.isParent=!1}function wc(){return Cs}function Fa(e){let t=Cs;return Cs=e,t}function Y1(){let e=I.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function K1(e){return I.lFrame.bindingIndex=e}function Hn(){return I.lFrame.bindingIndex++}function J1(e){let t=I.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function X1(){return I.lFrame.inI18n}function eg(e,t){let n=I.lFrame;n.bindingIndex=n.bindingRootIndex=e,bs(t)}function tg(){return I.lFrame.currentDirectiveIndex}function bs(e){I.lFrame.currentDirectiveIndex=e}function ng(e){let t=I.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function _c(){return I.lFrame.currentQueryIndex}function Mo(e){I.lFrame.currentQueryIndex=e}function rg(e){let t=e[k];return t.type===2?t.declTNode:t.type===1?e[De]:null}function xc(e,t,n){if(n&4){let i=t,s=e;for(;(i=i.parent,i===null&&!(n&1))&&(i=rg(s),!(i===null||(s=s[en],i.type&10))););if(i===null)return!1;t=i,e=s}let r=I.lFrame=kc();return r.currentTNode=t,r.lView=e,!0}function Oo(e){let t=kc(),n=e[k];I.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function kc(){let e=I.lFrame,t=e===null?null:e.child;return t===null?Sc(e):t}function Sc(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 Mc(){let e=I.lFrame;return I.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Oc=Mc;function Eo(){let e=Mc();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 ig(e){return(I.lFrame.contextLView=B1(e,I.lFrame.contextLView))[ce]}function rn(){return I.lFrame.selectedIndex}function xt(e){I.lFrame.selectedIndex=e}function di(){let e=I.lFrame;return dc(e.tView,e.selectedIndex)}function sg(){I.lFrame.currentNamespace=uc}function og(){return I.lFrame.currentNamespace}var Ec=!0;function To(){return Ec}function hi(e){Ec=e}function Ha(e,t=null,n=null,r){let i=ag(e,t,n,r);return i.resolveInjectorInitializers(),i}function ag(e,t=null,n=null,r,i=new Set){let s=[n||ye,E1(e)];return r=r||(typeof e=="object"?void 0:Ut(e)),new wo(s,t||bo(),r||null,i)}var pi=class Tc{static THROW_IF_NOT_FOUND=vt;static NULL=new ec;static create(t,n){if(Array.isArray(t))return Ha({name:""},n,t,"");{let r=t.name??"";return Ha({name:r},t.parent,t.providers,r)}}static \u0275prov=E({token:Tc,providedIn:"any",factory:()=>b(Ju)});static __NG_ELEMENT_ID__=-1},Be=new M(""),Po=(()=>{class e{static __NG_ELEMENT_ID__=ug;static __NG_ENV_ID__=n=>n}return e})(),lg=class extends Po{_lView;constructor(e){super(),this._lView=e}get destroyed(){return nn(this._lView)}onDestroy(e){let t=this._lView;return pc(t,e),()=>U1(t,e)}};function ug(){return new lg(F())}var jn=class{_console=console;handleError(e){this._console.error("ERROR",e)}},ct=new M("",{providedIn:"root",factory:()=>{let e=v(We),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(jn),t.handleError(n))}}}),cg={provide:$t,useValue:()=>{v(jn)},multi:!0},dg=new M("",{providedIn:"root",factory:()=>{let e=v(Be).defaultView;if(!e)return;let t=v(ct),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(Po).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n)})}});function hg(){return li([O1(()=>{v(dg)})])}function pg(e){return typeof e=="function"&&e[Ne]!==void 0}function le(e,t){let[n,r,i]=qp(e,t?.equal),s=n,o=s[Ne];return s.set=r,s.update=i,s.asReadonly=fg.bind(s),s}function fg(){let e=this[Ne];if(e.readonlyFn===void 0){let t=()=>this();t[Ne]=e,e.readonlyFn=t}return e.readonlyFn}function Pc(e){return pg(e)&&typeof e.set=="function"}var zn=class{},Io=new M("",{providedIn:"root",factory:()=>!1}),Ic=new M(""),Lc=new M(""),sn=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new mu(!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=E({token:e,providedIn:"root",factory:()=>new e})}return e})(),Dc=(()=>{class e{internalPendingTasks=v(sn);scheduler=v(zn);errorHandler=v(ct);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 Ur(...e){}var gg=(()=>{class e{static \u0275prov=E({token:e,providedIn:"root",factory:()=>new mg})}return e})(),mg=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 fi(e){return{toString:e}.toString()}function vg(e){return typeof e=="function"}var yg=class{previousValue;currentValue;firstChange;constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}};function Ac(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var gi=(()=>{let e=()=>Vc;return e.ngInherit=!0,e})();function Vc(e){return e.type.prototype.ngOnChanges&&(e.setInput=bg),Cg}function Cg(){let e=Nc(this),t=e?.current;if(t){let n=e.previous;if(n===yt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function bg(e,t,n,r,i){let s=this.declaredInputs[r],o=Nc(e)||wg(e,{previous:yt,current:null}),a=o.current||(o.current={}),l=o.previous,u=l[s];a[s]=new yg(u&&u.currentValue,n,l===yt),Ac(e,t,i,n)}var Rc="__ngSimpleChanges__";function Nc(e){return e[Rc]||null}function wg(e,t){return e[Rc]=t}var ja=[],$=function(e,t=null,n){for(let r=0;r<ja.length;r++){let i=ja[r];i(e,t,n)}};function _g(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){let o=Vc(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 Fc(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 pr(e,t,n){Hc(e,t,3,n)}function fr(e,t,n,r){(e[S]&3)===n&&Hc(e,t,n,r)}function ji(e,t){let n=e[S];(n&3)===t&&(n&=16383,n+=1,e[S]=n)}function Hc(e,t,n,r){let i=r!==void 0?e[Nt]&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[Nt]+=65536),(a<s||s==-1)&&(xg(e,n,t,l),e[Nt]=(e[Nt]&4294901760)+l+2),l++}function za(e,t){$(4,e,t);let n=A(null);try{t.call(e)}finally{A(n),$(5,e,t)}}function xg(e,t,n,r){let i=n[r]<0,s=n[r+1],o=i?-n[r]:n[r],a=e[o];i?e[S]>>14<e[Nt]>>16&&(e[S]&3)===t&&(e[S]+=16384,za(a,s)):za(a,s)}var jt=-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 kg(e){return(e.flags&8)!==0}function Sg(e){return(e.flags&16)!==0}function Mg(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];Eg(s)?e.setProperty(t,s,o):e.setAttribute(t,s,o),r++}}return r}function Og(e){return e===3||e===4||e===6}function Eg(e){return e.charCodeAt(0)===64}function Qt(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?Ba(e,n,i,null,t[++r]):Ba(e,n,i,null,null))}}return e}function Ba(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 jc(e){return e!==jt}function Zr(e){return e&32767}function Tg(e){return e>>16}function $r(e,t){let n=Tg(e),r=t;for(;n>0;)r=r[en],n--;return r}var ws=!0;function Ua(e){let t=ws;return ws=e,t}var Pg=256,zc=Pg-1,Bc=5,Ig=0,Re={};function Lg(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(vn)&&(r=n[vn]),r==null&&(r=n[vn]=Ig++);let i=r&zc,s=1<<i;t.data[e+(i>>Bc)]|=s}function qr(e,t){let n=Uc(e,t);if(n!==-1)return n;let r=t[k];r.firstCreatePass&&(e.injectorIndex=t.length,zi(r.data,e),zi(t,null),zi(r.blueprint,null));let i=Lo(e,t),s=e.injectorIndex;if(jc(i)){let o=Zr(i),a=$r(i,t),l=a[k].data;for(let u=0;u<8;u++)t[s+u]=a[o+u]|l[o+u]}return t[s+8]=i,s}function zi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Uc(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Lo(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=Qc(i),r===null)return jt;if(n++,i=i[en],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return jt}function _s(e,t,n){Lg(e,t,n)}function Zc(e,t,n){if(n&8||e!==void 0)return e;mo(t,"NodeInjector")}function $c(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let i=e[Ct],s=ve(void 0);try{return i?i.get(t,r,n&8):Yu(t,r,n&8)}finally{ve(s)}}return Zc(r,t,n)}function qc(e,t,n,r=0,i){if(e!==null){if(t[S]&2048&&!(r&2)){let o=Rg(e,t,n,r,Re);if(o!==Re)return o}let s=Gc(e,t,n,r,Re);if(s!==Re)return s}return $c(t,n,r,i)}function Gc(e,t,n,r,i){let s=Ag(n);if(typeof s=="function"){if(!xc(t,e,r))return r&1?Zc(i,n,r):$c(t,n,r,i);try{let o;if(o=s(r),o==null&&!(r&8))mo(n);else return o}finally{Oc()}}else if(typeof s=="number"){let o=null,a=Uc(e,t),l=jt,u=r&1?t[He][De]:null;for((a===-1||r&4)&&(l=a===-1?Lo(e,t):t[a+8],l===jt||!$a(r,!1)?a=-1:(o=t[k],a=Zr(l),t=$r(l,t)));a!==-1;){let c=t[k];if(Za(s,a,c.data)){let d=Dg(a,t,n,o,r,u);if(d!==Re)return d}l=t[a+8],l!==jt&&$a(r,t[k].data[a+8]===u)&&Za(s,a,t)?(o=c,a=Zr(l),t=$r(l,t)):a=-1}}return i}function Dg(e,t,n,r,i,s){let o=t[k],a=o.data[e+8],l=r==null?tn(a)&&ws:r!=o&&(a.type&3)!==0,u=i&1&&s===a,c=gr(a,o,n,l,u);return c!==null?Pn(t,o,c,a,i):Re}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,p=i?a+c:u;for(let h=d;h<p;h++){let g=o[h];if(h<l&&n===g||h>=l&&g.type===n)return h}if(i){let h=o[l];if(h&&Ke(h)&&h.type===n)return l}return null}function Pn(e,t,n,r,i){let s=e[n],o=t.data;if(s instanceof Bn){let a=s;if(a.resolving){let h=d1(o[n]);throw Gu(h)}let l=Ua(a.canSeeViewProviders);a.resolving=!0;let u=o[n].type||o[n],c,d=a.injectImpl?ve(a.injectImpl):null,p=xc(e,r,0);try{s=e[n]=a.factory(void 0,i,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&_g(n,o[n],t)}finally{d!==null&&ve(d),Ua(l),a.resolving=!1,Oc()}}return s}function Ag(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&zc:Vg:t}function Za(e,t,n){let r=1<<e;return!!(n[t+(e>>Bc)]&r)}function $a(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 qc(this._tNode,this._lView,e,Mn(n),t)}};function Vg(){return new yn(ae(),F())}function Wc(e){return fi(()=>{let t=e.prototype.constructor,n=t[Vr]||xs(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let s=i[Vr]||xs(i);if(s&&s!==n)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function xs(e){return Uu(e)?()=>{let t=xs(se(e));return t&&t()}:Zt(e)}function Rg(e,t,n,r,i){let s=e,o=t;for(;s!==null&&o!==null&&o[S]&2048&&!Br(o);){let a=Gc(s,o,n,r|2,Re);if(a!==Re)return a;let l=s.parent;if(!l){let u=o[oc];if(u){let c=u.get(n,Re,r);if(c!==Re)return c}l=Qc(o),o=o[en]}s=l}return i}function Qc(e){let t=e[k],n=t.type;return n===2?t.declTNode:n===1?e[De]:null}function Ng(){return on(ae(),F())}function on(e,t){return new Et(Ue(e,t))}var Et=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Ng}return e})();function Fg(e){return e instanceof Et?e.nativeElement:e}function Hg(){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 Je}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=_1(e);(this._changesDetected=!w1(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]=Hg};function Yc(e){return(e.flags&128)===128}var Kc=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(Kc||{}),Jc=new Map,zg=0;function Bg(){return zg++}function Ug(e){Jc.set(e[ui],e)}function ks(e){Jc.delete(e[ui])}var qa="__ngContext__";function Yt(e,t){ut(t)?(e[qa]=t[ui],Ug(t)):e[qa]=t}function Xc(e){return td(e[En])}function ed(e){return td(e[Pe])}function td(e){for(;e!==null&&!et(e);)e=e[Pe];return e}var Ss;function Zg(e){Ss=e}function nd(){if(Ss!==void 0)return Ss;if(typeof document<"u")return document;throw new w(210,!1)}var rd=new M("",{providedIn:"root",factory:()=>$g}),$g="ng",id=new M(""),Do=new M("",{providedIn:"platform",factory:()=>"unknown"}),sd=new M("",{providedIn:"root",factory:()=>nd().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),qg="h",Gg="b",od=!1,Wg=new M("",{providedIn:"root",factory:()=>od}),Qg=(e,t,n,r)=>{};function Yg(e,t,n,r){Qg(e,t,n,r)}function ad(e){return(e.flags&32)===32}var Kg=()=>null;function ld(e,t,n=!1){return Kg(e,t,n)}function ud(e,t){let n=e.contentQueries;if(n!==null){let r=A(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];Mo(s),a.contentQueries(2,t[o],o)}}}finally{A(r)}}}function Ms(e,t,n){Mo(0);let r=A(null);try{t(e,n)}finally{A(r)}}function Ao(e,t,n){if(lc(t)){let r=A(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{A(r)}}}var kt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(kt||{}),Wn;function Jg(){if(Wn===void 0&&(Wn=null,ot.trustedTypes))try{Wn=ot.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Wn}function mi(e){return Jg()?.createHTML(e)||e}var Qn;function Xg(){if(Qn===void 0&&(Qn=null,ot.trustedTypes))try{Qn=ot.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Qn}function Ga(e){return Xg()?.createHTML(e)||e}var Tt=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Bu})`}},e0=class extends Tt{getTypeName(){return"HTML"}},t0=class extends Tt{getTypeName(){return"Style"}},n0=class extends Tt{getTypeName(){return"Script"}},r0=class extends Tt{getTypeName(){return"URL"}},i0=class extends Tt{getTypeName(){return"ResourceURL"}};function ft(e){return e instanceof Tt?e.changingThisBreaksApplicationSecurity:e}function Vt(e,t){let n=s0(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Bu})`)}return n===t}function s0(e){return e instanceof Tt&&e.getTypeName()||null}function o0(e){return new e0(e)}function a0(e){return new t0(e)}function l0(e){return new n0(e)}function u0(e){return new r0(e)}function c0(e){return new i0(e)}function d0(e){let t=new p0(e);return f0()?new h0(t):t}var h0=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let t=new window.DOMParser().parseFromString(mi(e),"text/html").body;return t===null?this.inertDocumentHelper.getInertBodyElement(e):(t.firstChild?.remove(),t)}catch{return null}}},p0=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=mi(e),t}};function f0(){try{return!!new window.DOMParser().parseFromString(mi(""),"text/html")}catch{return!1}}var g0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function cd(e){return e=String(e),e.match(g0)?e:"unsafe:"+e}function tt(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 dd=tt("area,br,col,hr,img,wbr"),hd=tt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),pd=tt("rp,rt"),m0=Un(pd,hd),v0=Un(hd,tt("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")),y0=Un(pd,tt("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")),Wa=Un(dd,v0,y0,m0),fd=tt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),C0=tt("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"),b0=tt("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"),w0=Un(fd,C0,b0),_0=tt("script,style,template"),x0=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=M0(t);continue}for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=S0(t);if(i){t=i;break}t=r.pop()}}return this.buf.join("")}startElement(e){let t=Qa(e).toLowerCase();if(!Wa.hasOwnProperty(t))return this.sanitizedSomething=!0,!_0.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(!w0.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let a=i.value;fd[o]&&(a=cd(a)),this.buf.push(" ",s,'="',Ya(a),'"')}return this.buf.push(">"),!0}endElement(e){let t=Qa(e).toLowerCase();Wa.hasOwnProperty(t)&&!dd.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Ya(e))}};function k0(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function S0(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw gd(t);return t}function M0(e){let t=e.firstChild;if(t&&k0(e,t))throw gd(t);return t}function Qa(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function gd(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var O0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,E0=/([^\#-~ |!])/g;function Ya(e){return e.replace(/&/g,"&").replace(O0,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(E0,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Yn;function md(e,t){let n=null;try{Yn=Yn||d0(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 x0().sanitizeChildren(Ka(n)||n);return mi(o)}finally{if(n){let r=Ka(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Ka(e){return"content"in e&&T0(e)?e.content:null}function T0(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var P0=/^>|^->|<!--|-->|--!>|<!-$/g,I0=/(<|>)/g,L0="\u200B$1\u200B";function D0(e){return e.replace(P0,t=>t.replace(I0,L0))}function A0(e,t){return e.createText(t)}function V0(e,t,n){e.setValue(t,n)}function R0(e,t){return e.createComment(D0(t))}function vd(e,t,n){return e.createElement(t,n)}function Gr(e,t,n,r,i){e.insertBefore(t,n,r,i)}function yd(e,t,n){e.appendChild(t,n)}function Ja(e,t,n,r,i){r!==null?Gr(e,t,n,r,i):yd(e,t,n)}function N0(e,t,n,r){e.removeChild(null,t,n,r)}function F0(e,t,n){e.setAttribute(t,"style",n)}function H0(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Cd(e,t,n){let{mergedAttrs:r,classes:i,styles:s}=n;r!==null&&Mg(e,t,r),i!==null&&H0(e,t,i),s!==null&&F0(e,t,s)}var it=(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})(it||{});function bd(e){let t=j0();return t?Ga(t.sanitize(it.HTML,e)||""):Vt(e,"HTML")?Ga(ft(e)):md(nd(),ai(e))}function j0(){let e=F();return e&&e[Qe].sanitizer}function z0(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 wd="ng-template";function B0(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&z0(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(Vo(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 Vo(e){return e.type===4&&e.value!==wd}function U0(e,t,n){let r=e.type===4&&!n?wd:e.value;return t===r}function Z0(e,t,n){let r=4,i=e.attrs,s=i!==null?G0(i):0,o=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!o&&!Me(r)&&!Me(l))return!1;if(o&&Me(l))continue;o=!1,r=l|r&1;continue}if(!o)if(r&4){if(r=2|r&1,l!==""&&!U0(e,l,n)||l===""&&t.length===1){if(Me(r))return!1;o=!0}}else if(r&8){if(i===null||!B0(e,i,l,n)){if(Me(r))return!1;o=!0}}else{let u=t[++a],c=$0(l,i,Vo(e),n);if(c===-1){if(Me(r))return!1;o=!0;continue}if(u!==""){let d;if(c>s?d="":d=i[c+1].toLowerCase(),r&2&&u!==d){if(Me(r))return!1;o=!0}}}}return Me(r)||o}function Me(e){return(e&1)===0}function $0(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 W0(t,e)}function q0(e,t,n=!1){for(let r=0;r<t.length;r++)if(Z0(e,t[r],n))return!0;return!1}function G0(e){for(let t=0;t<e.length;t++){let n=e[t];if(Og(n))return t}return e.length}function W0(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 Xa(e,t){return e?":not("+t.trim()+")":t}function Q0(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!==""&&!Me(o)&&(t+=Xa(s,i),i=""),r=o,s=s||!Me(r);n++}return i!==""&&(t+=Xa(s,i)),t}function Y0(e){return e.map(Q0).join(",")}function K0(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(!Me(i))break;i=s}r++}return n.length&&t.push(1,...n),t}var dt={};function Ro(e,t,n,r,i,s,o,a,l,u,c){let d=fe+r,p=d+i,h=J0(d,p),g=typeof u=="function"?u():u;return h[k]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof s=="function"?s():s,pipeRegistry:typeof o=="function"?o():o,firstChild:null,schemas:l,consts:g,incompleteFirstPass:!1,ssrId:c}}function J0(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:dt);return n}function X0(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 No(e,t,n,r,i,s,o,a,l,u,c){let d=t.blueprint.slice();return d[Xe]=i,d[S]=r|4|128|8|64|1024,(u!==null||e&&e[S]&2048)&&(d[S]|=2048),hc(d),d[ne]=d[en]=e,d[ce]=n,d[Qe]=o||e&&e[Qe],d[G]=a||e&&e[G],d[Ct]=l||e&&e[Ct]||null,d[De]=s,d[ui]=Bg(),d[Nr]=c,d[oc]=u,d[He]=t.type==2?e[He]:d,d}function em(e,t,n){let r=Ue(t,e),i=X0(n),s=e[Qe].rendererFactory,o=Fo(e,No(e,i,null,_d(n),r,t,null,s.createRenderer(r,n),null,null,null));return e[t.index]=o}function _d(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function xd(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 Fo(e,t){return e[En]?e[Na][Pe]=t:e[En]=t,e[Na]=t,t}function _(e=1){kd(ee(),F(),rn()+e,!1)}function kd(e,t,n,r){if(!r)if((t[S]&3)===3){let i=e.preOrderCheckHooks;i!==null&&pr(t,i,n)}else{let i=e.preOrderHooks;i!==null&&fr(t,i,0,n)}xt(n)}var vi=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(vi||{});function Os(e,t,n,r){let i=A(null);try{let[s,o,a]=e.inputs[n],l=null;(o&vi.SignalBased)!==0&&(l=t[s][Ne]),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):Ac(t,l,s,r)}finally{A(i)}}var mt=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(mt||{}),tm;function Ho(e,t){return tm(e,t)}var Wr=new Set,Sd=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Sd||{}),jo=new M(""),el=new Set;function Md(e){el.has(e)||(el.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Od=!1,nm=class extends Je{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,F1()&&(this.destroyRef=v(Po,{optional:!0})??void 0,this.pendingTasks=v(sn,{optional:!0})??void 0)}emit(e){let t=A(null);try{super.next(e)}finally{A(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 Fe&&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)}})}}},N=nm;function Ed(e){let t,n;function r(){e=Ur;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 tl(e){return queueMicrotask(()=>e()),()=>{e=Ur}}var zo="isAngularZone",Qr=zo+"_ID",rm=0,oe=class Es{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new N(!1);onMicrotaskEmpty=new N(!1);onStable=new N(!1);onError=new N(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:s=Od}=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,om(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(zo)===!0}static assertInAngularZone(){if(!Es.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(Es.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,im,Ur,Ur);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)}},im={};function Bo(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 sm(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Ed(()=>{e.callbackScheduled=!1,Ts(e),e.isCheckStableRunning=!0,Bo(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Ts(e)}function om(e){let t=()=>{sm(e)},n=rm++;e._inner=e._inner.fork({name:"angular",properties:{[zo]:!0,[Qr]:n,[Qr+n]:!0},onInvokeTask:(r,i,s,o,a,l)=>{if(lm(l))return r.invokeTask(s,o,a,l);try{return nl(e),r.invokeTask(s,o,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),rl(e)}},onInvoke:(r,i,s,o,a,l,u)=>{try{return nl(e),r.invoke(s,o,a,l,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!um(l)&&t(),rl(e)}},onHasTask:(r,i,s,o)=>{r.hasTask(s,o),i===s&&(o.change=="microTask"?(e._hasPendingMicrotasks=o.microTask,Ts(e),Bo(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 Ts(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function nl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function rl(e){e._nesting--,Bo(e)}var am=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new N;onMicrotaskEmpty=new N;onStable=new N;onError=new N;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 lm(e){return Td(e,"__ignore_ng_zone__")}function um(e){return Td(e,"__scheduler_tick__")}function Td(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var cm=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=E({token:e,providedIn:"root",factory:()=>new e})}return e})(),dm=new M("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function Pd(e,t,n){let r=e.get(dm);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 hm(e,t){for(let[n,r]of t)Pd(e,r.animateFns)}function il(e,t,n,r){let i=e?.[jr]?.enter;t!==null&&i&&i.has(n.index)&&hm(r,i)}function Ft(e,t,n,r,i,s,o,a){if(i!=null){let l,u=!1;et(i)?l=i:ut(i)&&(u=!0,i=i[Xe]);let c=je(i);e===0&&r!==null?(il(a,r,s,n),o==null?yd(t,r,c):Gr(t,r,c,o||null,!0)):e===1&&r!==null?(il(a,r,s,n),Gr(t,r,c,o||null,!0)):e===2?sl(a,s,n,d=>{N0(t,c,u,d)}):e===3&&sl(a,s,n,()=>{t.destroyNode(c)}),l!=null&&Sm(t,e,n,l,s,r,o)}}function pm(e,t){Id(e,t),t[Xe]=null,t[De]=null}function fm(e,t,n,r,i,s){r[Xe]=i,r[De]=t,yi(e,r,n,1,i,s)}function Id(e,t){t[Qe].changeDetectionScheduler?.notify(9),yi(e,t,t[G],2,null,null)}function gm(e){let t=e[En];if(!t)return Bi(e[k],e);for(;t;){let n=null;if(ut(t))n=t[En];else{let r=t[pe];r&&(n=r)}if(!n){for(;t&&!t[Pe]&&t!==e;)ut(t)&&Bi(t[k],t),t=t[ne];t===null&&(t=e),ut(t)&&Bi(t[k],t),n=t&&t[Pe]}t=n}}function Uo(e,t){let n=e[Gt],r=n.indexOf(t);n.splice(r,1)}function Ld(e,t){if(nn(t))return;let n=t[G];n.destroyNode&&yi(e,t,n,3,null,null),gm(t)}function Bi(e,t){if(nn(t))return;let n=A(null);try{t[S]&=-129,t[S]|=256,t[Ce]&&ou(t[Ce]),ym(e,t),vm(e,t),t[k].type===1&&t[G].destroy();let r=t[bt];if(r!==null&&et(t[ne])){r!==t[ne]&&Uo(r,t);let i=t[Ye];i!==null&&i.detachView(e)}ks(t)}finally{A(n)}}function sl(e,t,n,r){let i=e?.[jr];if(i==null||i.leave==null||!i.leave.has(t.index))return r(!1);e&&Wr.add(e),Pd(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),mm(e,r)}else e&&Wr.delete(e),r(!1)},i)}function mm(e,t){let n=e[jr]?.running;if(n){n.then(()=>{e[jr].running=void 0,Wr.delete(e),t(!0)});return}t(!1)}function vm(e,t){let n=e.cleanup,r=t[Fr];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[Fr]=null);let i=t[lt];if(i!==null){t[lt]=null;for(let o=0;o<i.length;o++){let a=i[o];a()}}let s=t[Hr];if(s!==null){t[Hr]=null;for(let o of s)o.destroy()}}function ym(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];$(4,a,l);try{l.call(a)}finally{$(5,a,l)}}else{$(4,i,s);try{s.call(i)}finally{$(5,i,s)}}}}}function Cm(e,t,n){return bm(e,t.parent,n)}function bm(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Xe];if(tn(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===kt.None||i===kt.Emulated)return null}return Ue(r,n)}function wm(e,t,n){return xm(e,t,n)}function _m(e,t,n){return e.type&40?Ue(e,n):null}var xm=_m,ol;function Zo(e,t,n,r){let i=Cm(e,r,t),s=t[G],o=r.parent||t[De],a=wm(o,r,t);if(i!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Ja(s,i,n[l],a,!1);else Ja(s,i,n,a,!1);ol!==void 0&&ol(s,r,t,n,i)}function gn(e,t){if(t!==null){let n=t.type;if(n&3)return Ue(t,e);if(n&4)return Ps(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return gn(e,r);{let i=e[t.index];return et(i)?Ps(-1,i):je(i)}}else{if(n&128)return gn(e,t.next);if(n&32)return Ho(t,e)()||je(e[t.index]);{let r=Dd(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=_t(e[He]);return gn(i,r)}else return gn(e,t.next)}}}return null}function Dd(e,t){if(t!==null){let n=e[He][De],r=t.projection;return n.projection[r]}return null}function Ps(e,t){let n=pe+e+1;if(n<t.length){let r=t[n],i=r[k].firstChild;if(i!==null)return gn(r,i)}return t[wt]}function $o(e,t,n,r,i,s,o){for(;n!=null;){let a=r[Ct];if(n.type===128){n=n.next;continue}let l=r[n.index],u=n.type;if(o&&t===0&&(l&&Yt(je(l),r),n.flags|=2),!ad(n))if(u&8)$o(e,t,n.child,r,i,s,!1),Ft(t,e,a,i,l,n,s,r);else if(u&32){let c=Ho(n,r),d;for(;d=c();)Ft(t,e,a,i,d,n,s,r);Ft(t,e,a,i,l,n,s,r)}else u&16?km(e,t,r,n,i,s):Ft(t,e,a,i,l,n,s,r);n=o?n.projectionNext:n.next}}function yi(e,t,n,r,i,s){$o(n,r,e.firstChild,t,i,s,!1)}function km(e,t,n,r,i,s){let o=n[He],a=o[De].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++){let u=a[l];Ft(t,e,n[Ct],i,u,r,s,n)}else{let l=a,u=o[ne];Yc(r)&&(l.flags|=128),$o(e,t,l,u,i,s,!0)}}function Sm(e,t,n,r,i,s,o){let a=r[wt],l=je(r);a!==l&&Ft(t,e,n,s,a,i,o);for(let u=pe;u<r.length;u++){let c=r[u];yi(c[k],c,e,t,s,a)}}function Mm(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let s=r.indexOf("-")===-1?void 0:mt.DashCase;i==null?e.removeStyle(n,r,s):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),s|=mt.Important),e.setStyle(n,r,i,s))}}function Ad(e,t,n,r,i){let s=rn(),o=r&2;try{xt(-1),o&&t.length>fe&&kd(e,t,fe,!1),$(o?2:0,i,n),n(r,i)}finally{xt(s),$(o?3:1,i,n)}}function Ci(e,t,n){Lm(e,t,n),(n.flags&64)===64&&Dm(e,t,n)}function bi(e,t,n=Ue){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 Om(e,t,n,r){let i=r.get(Wg,od)||n===kt.ShadowDom,s=e.selectRootElement(t,i);return Em(s),s}function Em(e){Tm(e)}var Tm=()=>null;function Pm(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Vd(e,t,n,r,i,s){let o=t[k];if(Qo(e,o,t,n,r)){tn(e)&&Im(t,e.index);return}e.type&3&&(n=Pm(n)),Rd(e,t,n,r,i,s)}function Rd(e,t,n,r,i,s){if(e.type&3){let o=Ue(e,t);r=s!=null?s(r,e.value||"",n):r,i.setProperty(o,n,r)}else e.type&12}function Im(e,t){let n=ze(t,e);n[S]&16||(n[S]|=64)}function Lm(e,t,n){let r=n.directiveStart,i=n.directiveEnd;tn(n)&&em(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||qr(n,t);let s=n.initialInputs;for(let o=r;o<i;o++){let a=e.data[o],l=Pn(t,e,o,n);if(Yt(l,t),s!==null&&Nm(t,o-r,l,a,n,s),Ke(a)){let u=ze(n.index,t);u[ce]=Pn(t,e,o,n)}}}function Dm(e,t,n){let r=n.directiveStart,i=n.directiveEnd,s=n.index,o=tg();try{xt(s);for(let a=r;a<i;a++){let l=e.data[a],u=t[a];bs(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&Am(l,u)}}finally{xt(-1),bs(o)}}function Am(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function qo(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let s=n[i];q0(t,s.selectors,!1)&&(r??=[],Ke(s)?r.unshift(s):r.push(s))}return r}function Vm(e,t,n,r,i,s){let o=Ue(e,t);Rm(t[G],o,s,e.value,n,r,i)}function Rm(e,t,n,r,i,s,o){if(s==null)e.removeAttribute(t,i,n);else{let a=o==null?ai(s):o(s,r||"",i);e.setAttribute(t,i,a,n)}}function Nm(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];Os(r,n,l,u)}}function Go(e,t,n,r,i){let s=fe+n,o=t[k],a=i(o,t,e,r,n);t[s]=a,Fn(e,!0);let l=e.type===2;return l?(Cd(t[G],a,e),($1()===0||Nn(e))&&Yt(a,t),q1()):Yt(a,t),To()&&(!l||!ad(e))&&Zo(o,t,a,e),e}function Wo(e){let t=e;return bc()?Q1():(t=t.parent,Fn(t,!1)),t}function Fm(e,t){let n=e[Ct];if(!n)return;let r;try{r=n.get(ct,null)}catch{r=null}r?.(t)}function Qo(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];Os(d,n[u],c,i),a=!0}if(s)for(let l of s){let u=n[l],c=t.data[l];Os(c,u,r,i),a=!0}return a}function Hm(e,t){let n=ze(t,e),r=n[k];jm(r,n);let i=n[Xe];i!==null&&n[Nr]===null&&(n[Nr]=ld(i,n[Ct])),$(18),Yo(r,n,n[ce]),$(19,n[ce])}function jm(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Yo(e,t,n){Oo(t);try{let r=e.viewQuery;r!==null&&Ms(1,r,n);let i=e.template;i!==null&&Ad(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Ye]?.finishViewCreation(e),e.staticContentQueries&&ud(e,t),e.staticViewQueries&&Ms(2,e.viewQuery,n);let s=e.components;s!==null&&zm(t,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[S]&=-5,Eo()}}function zm(e,t){for(let n=0;n<t.length;n++)Hm(e,t[n])}function Bm(e,t,n,r){let i=A(null);try{let s=t.tView,o=e[S]&4096?4096:16,a=No(e,s,n,o,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];a[bt]=l;let u=e[Ye];return u!==null&&(a[Ye]=u.createEmbeddedView(s)),Yo(s,a,n),a}finally{A(i)}}function al(e,t){return!t||t.firstChild===null||Yc(e)}function Yr(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(je(s)),et(s)&&Um(s,r);let o=n.type;if(o&8)Yr(e,t,n.child,r);else if(o&32){let a=Ho(n,t),l;for(;l=a();)r.push(l)}else if(o&16){let a=Dd(t,n);if(Array.isArray(a))r.push(...a);else{let l=_t(t[He]);Yr(l[k],l,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function Um(e,t){for(let n=pe;n<e.length;n++){let r=e[n],i=r[k].firstChild;i!==null&&Yr(r[k],r,i,t)}e[wt]!==e[Xe]&&t.push(e[wt])}function Nd(e){if(e[Hi]!==null){for(let t of e[Hi])t.impl.addSequence(t);e[Hi].length=0}}var Fd=[];function Zm(e){return e[Ce]??$m(e)}function $m(e){let t=Fd.pop()??Object.create(Gm);return t.lView=e,t}function qm(e){e.lView[Ce]!==e&&(e.lView=null,Fd.push(e))}var Gm=V(T({},ii),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{ci(e.lView)},consumerOnSignalRead(){this.lView[Ce]=this}});function Wm(e){let t=e[Ce]??Object.create(Qm);return t.lView=e,t}var Qm=V(T({},ii),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=_t(e.lView);for(;t&&!Hd(t[k]);)t=_t(t);t&&ko(t)},consumerOnSignalRead(){this.lView[Ce]=this}});function Hd(e){return e.type!==2}function jd(e){if(e[Hr]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Hr])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[S]&8192)}}var Ym=100;function zd(e,t=0){let n=e[Qe].rendererFactory,r=!1;r||n.begin?.();try{Km(e,t)}finally{r||n.end?.()}}function Km(e,t){let n=wc();try{Fa(!0),Is(e,t);let r=0;for(;Tn(e);){if(r===Ym)throw new w(103,!1);r++,Is(e,1)}}finally{Fa(n)}}function Jm(e,t,n,r){if(nn(t))return;let i=t[S],s=!1,o=!1;Oo(t);let a=!0,l=null,u=null;s||(Hd(e)?(u=Zm(t),l=us(u)):Vp()===null?(a=!1,u=Wm(t),l=us(u)):t[Ce]&&(ou(t[Ce]),t[Ce]=null));try{hc(t),K1(e.bindingStartIndex),n!==null&&Ad(e,t,n,2,r);let c=(i&3)===3;if(!s)if(c){let h=e.preOrderCheckHooks;h!==null&&pr(t,h,null)}else{let h=e.preOrderHooks;h!==null&&fr(t,h,0,null),ji(t,0)}if(o||Xm(t),jd(t),Bd(t,0),e.contentQueries!==null&&ud(e,t),!s)if(c){let h=e.contentCheckHooks;h!==null&&pr(t,h)}else{let h=e.contentHooks;h!==null&&fr(t,h,1),ji(t,1)}t2(e,t);let d=e.components;d!==null&&Zd(t,d,0);let p=e.viewQuery;if(p!==null&&Ms(2,p,r),!s)if(c){let h=e.viewCheckHooks;h!==null&&pr(t,h)}else{let h=e.viewHooks;h!==null&&fr(t,h,2),ji(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Fi]){for(let h of t[Fi])h();t[Fi]=null}s||(Nd(t),t[S]&=-73)}catch(c){throw s||ci(t),c}finally{u!==null&&(iu(u,l),a&&qm(u)),Eo()}}function Bd(e,t){for(let n=Xc(e);n!==null;n=ed(n))for(let r=pe;r<n.length;r++){let i=n[r];Ud(i,t)}}function Xm(e){for(let t=Xc(e);t!==null;t=ed(t)){if(!(t[S]&2))continue;let n=t[Gt];for(let r=0;r<n.length;r++){let i=n[r];ko(i)}}}function e2(e,t,n){$(18);let r=ze(t,e);Ud(r,n),$(19,r[ce])}function Ud(e,t){xo(e)&&Is(e,t)}function Is(e,t){let n=e[k],r=e[S],i=e[Ce],s=!!(t===0&&r&16);if(s||=!!(r&64&&t===0),s||=!!(r&1024),s||=!!(i?.dirty&&su(i)),s||=!1,i&&(i.dirty=!1),e[S]&=-9217,s)Jm(n,e,n.template,e[ce]);else if(r&8192){let o=A(null);try{jd(e),Bd(e,1);let a=n.components;a!==null&&Zd(e,a,1),Nd(e)}finally{A(o)}}}function Zd(e,t,n){for(let r=0;r<t.length;r++)e2(e,t[r],n)}function t2(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)xt(~i);else{let s=i,o=n[++r],a=n[++r];eg(o,s);let l=t[s];$(24,l),a(2,l),$(25,l)}}}finally{xt(-1)}}function Ko(e,t){let n=wc()?64:1088;for(e[Qe].changeDetectionScheduler?.notify(t);e;){e[S]|=n;let r=_t(e);if(Br(e)&&!r)return e;e=r}return null}function $d(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function n2(e,t,n,r=!0){let i=t[k];if(r2(i,t,e,n),r){let o=Ps(n,e),a=t[G],l=a.parentNode(e[wt]);l!==null&&fm(i,e[De],a,t,l,o)}let s=t[Nr];s!==null&&s.firstChild!==null&&(s.firstChild=null)}function Ls(e,t){if(e.length<=pe)return;let n=pe+t,r=e[n];if(r){let i=r[bt];i!==null&&i!==e&&Uo(i,r),t>0&&(e[n-1][Pe]=r[Pe]);let s=Rr(e,pe+t);pm(r[k],r);let o=s[Ye];o!==null&&o.detachView(s[k]),r[ne]=null,r[Pe]=null,r[S]&=-129}return r}function r2(e,t,n,r){let i=pe+r,s=n.length;r>0&&(n[i-1][Pe]=t),r<s-pe?(t[Pe]=n[i],Ku(n,pe+r,t)):(n.push(t),t[Pe]=null),t[ne]=n;let o=t[bt];o!==null&&n!==o&&qd(o,t);let a=t[Ye];a!==null&&a.insertView(e),ys(t),t[S]|=128}function qd(e,t){let n=e[Gt],r=t[ne];if(ut(r))e[S]|=2;else{let i=r[ne][He];t[He]!==i&&(e[S]|=2)}n===null?e[Gt]=[t]:n.push(t)}var In=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let e=this._lView,t=e[k];return Yr(t,e,t.firstChild,[])}constructor(e,t){this._lView=e,this._cdRefInjectingView=t}get context(){return this._lView[ce]}set context(e){this._lView[ce]=e}get destroyed(){return nn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[ne];if(et(e)){let t=e[zr],n=t?t.indexOf(this):-1;n>-1&&(Ls(e,n),Rr(t,n))}this._attachedToViewContainer=!1}Ld(this._lView[k],this._lView)}onDestroy(e){pc(this._lView,e)}markForCheck(){Ko(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[S]&=-129}reattach(){ys(this._lView),this._lView[S]|=128}detectChanges(){this._lView[S]|=1024,zd(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Br(this._lView),t=this._lView[bt];t!==null&&!e&&Uo(t,this._lView),Id(this._lView[k],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=e;let t=Br(this._lView),n=this._lView[bt];n!==null&&!t&&qd(n,this._lView),ys(this._lView)}};function i2(e){return Tn(e._lView)||!!(e._lView[S]&64)}function s2(e){ko(e._lView)}var St=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=o2;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=Bm(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:i});return new In(s)}}return e})();function o2(){return Jo(ae(),F())}function Jo(e,t){return e.type&4?new St(t,e,on(e,t)):null}function wi(e,t,n,r,i){let s=e.data[t];if(s===null)s=a2(e,t,n,r,i),X1()&&(s.flags|=32);else if(s.type&64){s.type=n,s.value=r,s.attrs=i;let o=W1();s.injectorIndex=o===null?-1:o.injectorIndex}return Fn(s,!0),s}function a2(e,t,n,r,i){let s=Cc(),o=bc(),a=o?s:s&&s.parent,l=e.data[t]=u2(e,a,n,t,r,i);return l2(e,l,s,o),l}function l2(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 u2(e,t,n,r,i,s){let o=t?t.injectorIndex:-1,a=0;return G1()&&(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 l3=new RegExp(`^(\\d+)*(${Gg}|${qg})*(.*)`),c2=()=>null;function ll(e,t){return c2(e,t)}var d2=class{},Gd=class{},h2=class{resolveComponentFactory(e){throw new w(917,!1)}},Zn=class{static NULL=new h2},Xo=class{},ea=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>p2()}return e})();function p2(){let e=F(),t=ae(),n=ze(t.index,e);return(ut(n)?n:e)[G]}var f2=(()=>{class e{static \u0275prov=E({token:e,providedIn:"root",factory:()=>null})}return e})(),Ui={},g2=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){let r=this.injector.get(e,Ui,n);return r!==Ui||t===Ui?r:this.parentInjector.get(e,t,n)}};function Kr(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=La(i,a);else if(s==2){let l=a,u=t[++o];r=La(r,l+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function j(e,t=0){let n=F();if(n===null)return b(e,t);let r=ae();return qc(r,n,se(e),t)}function Wd(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}y2(e,t,n,a,s,l,u)}s!==null&&r!==null&&m2(n,r,s)}function m2(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 v2(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function y2(e,t,n,r,i,s,o){let a=r.length,l=!1;for(let p=0;p<a;p++){let h=r[p];!l&&Ke(h)&&(l=!0,v2(e,n,p)),_s(qr(n,t),e,h.type)}k2(n,e.data.length,a);for(let p=0;p<a;p++){let h=r[p];h.providersResolver&&h.providersResolver(h)}let u=!1,c=!1,d=xd(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let h=r[p];if(n.mergedAttrs=Qt(n.mergedAttrs,h.hostAttrs),b2(e,n,t,d,h),x2(d,h,i),o!==null&&o.has(h)){let[y,C]=o.get(h);n.directiveToIndex.set(h.type,[d,y+n.directiveStart,C+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 g=h.type.prototype;!u&&(g.ngOnChanges||g.ngOnInit||g.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!c&&(g.ngOnChanges||g.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),c=!0),d++}C2(e,n,s)}function C2(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))ul(0,t,i,r),ul(1,t,i,r),dl(t,r,!1);else{let s=n.get(i);cl(0,t,s,r),cl(1,t,s,r),dl(t,r,!0)}}}function ul(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),Qd(t,s)}}function cl(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),Qd(t,o)}}function Qd(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function dl(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:s}=e;if(r===null||!n&&i===null||n&&s===null||Vo(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 b2(e,t,n,r,i){e.data[r]=i;let s=i.factory||(i.factory=Zt(i.type,!0)),o=new Bn(s,Ke(i),j,null);e.blueprint[r]=o,n[r]=o,w2(e,t,r,xd(e,n,i.hostVars,dt),i)}function w2(e,t,n,r,i){let s=i.hostBindings;if(s){let o=e.hostBindingOpCodes;o===null&&(o=e.hostBindingOpCodes=[]);let a=~t.index;_2(o)!=a&&o.push(a),o.push(n,r,s)}}function _2(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function x2(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ke(t)&&(n[""]=e)}}function k2(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ta(e,t,n,r,i,s,o,a){let l=t[k],u=l.consts,c=Wt(u,o),d=wi(l,e,n,r,c);return s&&Wd(l,t,d,Wt(u,a),i),d.mergedAttrs=Qt(d.mergedAttrs,d.attrs),d.attrs!==null&&Kr(d,d.attrs,!1),d.mergedAttrs!==null&&Kr(d,d.mergedAttrs,!0),l.queries!==null&&l.queries.elementStart(l,d),d}function na(e,t){Fc(e,t),lc(t)&&e.queries.elementEnd(t)}function S2(e,t,n,r,i,s){let o=t.consts,a=Wt(o,i),l=wi(t,e,n,r,a);if(l.mergedAttrs=Qt(l.mergedAttrs,l.attrs),s!=null){let u=Wt(o,s);l.localNames=[];for(let c=0;c<u.length;c+=2)l.localNames.push(u[c],-1)}return l.attrs!==null&&Kr(l,l.attrs,!1),l.mergedAttrs!==null&&Kr(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function Yd(e){return O2(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function M2(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 O2(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function E2(e,t,n){return e[t]=n}function Pt(e,t,n){if(n===dt)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=tn(e)?ze(e.index,t):t;Ko(s,5);let o=t[ce],a=hl(t,o,n,i),l=r.__ngNextListenerFn__;for(;l;)a=hl(t,o,l,i)&&a,l=l.__ngNextListenerFn__;return a}}function hl(e,t,n,r){let i=A(null);try{return $(6,t,n),n(r)!==!1}catch(s){return Fm(e,s),!1}finally{$(7,t,n),A(i)}}function Kd(e,t,n,r,i,s,o,a){let l=Nn(e),u=!1,c=null;if(!r&&l&&(c=P2(t,n,s,e.index)),c!==null){let d=c.__ngLastListenerFn__||c;d.__ngNextListenerFn__=o,c.__ngLastListenerFn__=o,u=!0}else{let d=Ue(e,n),p=r?r(d):d;Yg(n,p,s,a);let h=i.listen(p,s,a);if(!T2(s)){let g=r?y=>r(je(y[e.index])):e.index;Jd(g,t,n,s,a,h,!1)}}return u}function T2(e){return e.startsWith("animation")||e.startsWith("transition")}function P2(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[Fr],l=i[s+2];return a&&a.length>l?a[l]:null}typeof o=="string"&&(s+=2)}return null}function Jd(e,t,n,r,i,s,o){let a=t.firstCreatePass?gc(t):null,l=fc(n),u=l.length;l.push(i,s),a&&a.push(r,e,u,(u+1)*(o?-1:1))}function pl(e,t,n,r,i,s){let o=t[n],a=t[k],l=a.data[n].outputs[r],u=o[l].subscribe(s);Jd(e.index,a,t,i,s,u,!0)}var Ds=Symbol("BINDING"),I2=class extends Zn{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let t=On(e);return new Xd(t,this.ngModule)}};function L2(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],s={propName:n,templateName:t,isSignal:(r&vi.SignalBased)!==0};return i&&(s.transform=i),s})}function D2(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function A2(e,t,n){let r=t instanceof We?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new g2(n,r):n}function V2(e){let t=e.get(Xo,null);if(t===null)throw new w(407,!1);let n=e.get(f2,null),r=e.get(zn,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function R2(e,t){let n=N2(e);return vd(t,n,n==="svg"?uc:n==="math"?H1:null)}function N2(e){return(e.selectors[0][0]||"div").toLowerCase()}var Xd=class extends Gd{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=L2(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=D2(this.componentDef.outputs),this.cachedOutputs}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=Y0(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,r,i,s){$(22);let o=A(null);try{let a=this.componentDef,l=F2(n,a,s,i),u=A2(a,r||this.ngModule,e),c=V2(u),d=c.rendererFactory.createRenderer(null,a),p=n?Om(d,n,a.encapsulation,u):R2(a,d),h=s?.some(fl)||i?.some(C=>typeof C!="function"&&C.bindings.some(fl)),g=No(null,l,null,512|_d(a),null,null,c,d,u,null,ld(p,u,!0));g[fe]=p,Oo(g);let y=null;try{let C=ta(fe,g,2,"#host",()=>l.directiveRegistry,!0,0);Cd(d,p,C),Yt(p,g),Ci(l,g,C),Ao(l,C,g),na(l,C),t!==void 0&&z2(C,this.ngContentSelectors,t),y=ze(C.index,g),g[ce]=y[ce],Yo(l,g,null)}catch(C){throw y!==null&&ks(y),ks(g),C}finally{$(23),Eo()}return new j2(this.componentType,g,!!h)}finally{A(o)}}};function F2(e,t,n,r){let i=e?["ng-version","20.3.15"]:K0(t.selectors[0]),s=null,o=null,a=0;if(n)for(let u of n)a+=u[Ds].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[Ds].requiredVars;let p=u+1;d.create&&(d.targetIdx=p,(s??=[]).push(d)),d.update&&(d.targetIdx=p,(o??=[]).push(d))}}let l=[t];if(r)for(let u of r){let c=typeof u=="function"?u:u.type,d=tc(c);l.push(d)}return Ro(0,null,H2(s,o),1,a,l,null,null,null,[i],null)}function H2(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 fl(e){let t=e[Ds].kind;return t==="input"||t==="twoWay"}var j2=class extends d2{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t,n){super(),this._rootLView=t,this._hasInputBindings=n,this._tNode=dc(t[k],fe),this.location=on(this._tNode,t),this.instance=ze(this._tNode.index,t)[ce],this.hostView=this.changeDetectorRef=new In(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=Qo(n,r[k],r,e,t);this.previousInputValues.set(e,t);let s=ze(n.index,r);Ko(s,1)}get injector(){return new yn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function z2(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 an=(()=>{class e{static __NG_ELEMENT_ID__=B2}return e})();function B2(){let e=ae();return th(e,F())}var U2=an,eh=class extends U2{_lContainer;_hostTNode;_hostLView;constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return on(this._hostTNode,this._hostLView)}get injector(){return new yn(this._hostTNode,this._hostLView)}get parentInjector(){let e=Lo(this._hostTNode,this._hostLView);if(jc(e)){let t=$r(e,this._hostLView),n=Zr(e),r=t[k].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=gl(this._lContainer);return t!==null&&t[e]||null}get length(){return this._lContainer.length-pe}createEmbeddedView(e,t,n){let r,i;typeof n=="number"?r=n:n!=null&&(r=n.index,i=n.injector);let s=ll(this._lContainer,e.ssrId),o=e.createEmbeddedViewImpl(t||{},i,s);return this.insertImpl(o,r,al(this._hostTNode,s)),o}createComponent(e,t,n,r,i,s,o){let a=e&&!vg(e),l;if(a)l=t;else{let y=t||{};l=y.index,n=y.injector,r=y.projectableNodes,i=y.environmentInjector||y.ngModuleRef,s=y.directives,o=y.bindings}let u=a?e:new Xd(On(e)),c=n||this.parentInjector;if(!i&&u.ngModule==null){let y=(a?c:this.parentInjector).get(We,null);y&&(i=y)}let d=On(u.componentType??{}),p=ll(this._lContainer,d?.id??null),h=p?.firstChild??null,g=u.create(c,r,h,i,s,o);return this.insertImpl(g.hostView,l,al(this._hostTNode,p)),g}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(e,t,n){let r=e._lView;if(z1(r)){let o=this.indexOf(e);if(o!==-1)this.detach(o);else{let a=r[ne],l=new eh(a,a[De],a[ne]);l.detach(l.indexOf(e))}}let i=this._adjustIndex(t),s=this._lContainer;return n2(s,r,i,n),e.attachToViewContainerRef(),Ku(Zi(s),i,e),e}move(e,t){return this.insert(e,t)}indexOf(e){let t=gl(this._lContainer);return t!==null?t.indexOf(e):-1}remove(e){let t=this._adjustIndex(e,-1),n=Ls(this._lContainer,t);n&&(Rr(Zi(this._lContainer),t),Ld(n[k],n))}detach(e){let t=this._adjustIndex(e,-1),n=Ls(this._lContainer,t);return n&&Rr(Zi(this._lContainer),t)!=null?new In(n):null}_adjustIndex(e,t=0){return e??this.length+t}};function gl(e){return e[zr]}function Zi(e){return e[zr]||(e[zr]=[])}function th(e,t){let n,r=t[e.index];return et(r)?n=r:(n=$d(r,t,null,e),t[e.index]=n,Fo(t,n)),$2(n,t,e,r),new eh(n,e,t)}function Z2(e,t){let n=e[G],r=n.createComment(""),i=Ue(t,e),s=n.parentNode(i);return Gr(n,s,r,n.nextSibling(i),!1),r}var $2=W2,q2=()=>!1;function G2(e,t,n){return q2(e,t,n)}function W2(e,t,n,r){if(e[wt])return;let i;n.type&8?i=je(r):i=Z2(t,n),e[wt]=i}var Q2=class nh{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new nh(this.queryList)}setDirty(){this.queryList.setDirty()}},Y2=class rh{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 rh(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++)ra(t,n).matches!==null&&this.queries[n].setDirty()}},K2=class{flags;read;predicate;constructor(e,t,n=null){this.flags=t,this.read=n,typeof e=="string"?this.predicate=av(e):this.predicate=e}},J2=class ih{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 ih(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)}},X2=class sh{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 sh(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,ev(n,s)),this.matchTNodeWithReadOption(t,n,gr(n,t,s,!1,!1))}else r===St?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===Et||i===an||i===St&&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 ev(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 tv(e,t){return e.type&11?on(e,t):e.type&4?Jo(e,t):null}function nv(e,t,n,r){return n===-1?tv(t,e):n===-2?rv(e,t,r):Pn(e,e[k],n,t)}function rv(e,t,n){if(n===Et)return on(t,e);if(n===St)return Jo(t,e);if(n===an)return th(t,e)}function oh(e,t,n,r){let i=t[Ye].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(nv(t,c,o[l+1],n.metadata.read))}}i.matches=a}return i.matches}function As(e,t,n,r){let i=e.queries.getByIndex(n),s=i.matches;if(s!==null){let o=oh(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=pe;d<c.length;d++){let p=c[d];p[bt]===p[ne]&&As(p[k],p,u,r)}if(c[Gt]!==null){let d=c[Gt];for(let p=0;p<d.length;p++){let h=d[p];As(h[k],h,u,r)}}}}}return r}function iv(e,t){return e[Ye].queries[t].queryList}function sv(e,t,n){let r=new jg((n&4)===4);return Z1(e,t,r,r.destroy),(t[Ye]??=new Y2).queries.push(new Q2(r))-1}function ov(e,t,n){let r=ee();return r.firstCreatePass&&(lv(r,new K2(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),sv(r,F(),t)}function av(e){return e.split(",").map(t=>t.trim())}function lv(e,t,n){e.queries===null&&(e.queries=new J2),e.queries.track(new X2(t,n))}function ra(e,t){return e.queries.getByIndex(t)}function uv(e,t){let n=e[k],r=ra(n,t);return r.crossesNgTemplate?As(n,e,t,[]):oh(n,e,r,t)}var Vs=class{},ah=class extends Vs{injector;componentFactoryResolver=new I2(this);instance=null;constructor(e){super();let t=new wo([...e.providers,{provide:Vs,useValue:this},{provide:Zn,useValue:this.componentFactoryResolver}],e.parent||bo(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function cv(e,t,n=null){return new ah({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var dv=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=nc(!1,n.type),i=r.length>0?cv([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(b(We))})}return e})();function Ae(e){return fi(()=>{let t=lh(e),n=V(T({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Kc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(dv).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||kt.Emulated,styles:e.styles||ye,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Md("NgStandalone"),uh(n);let r=e.dependencies;return n.directiveDefs=ml(r,hv),n.pipeDefs=ml(r,M1),n.id=mv(n),n})}function hv(e){return On(e)||tc(e)}function _i(e){return fi(()=>({type:e.type,bootstrap:e.bootstrap||ye,declarations:e.declarations||ye,imports:e.imports||ye,exports:e.exports||ye,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function pv(e,t){if(e==null)return yt;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=vi.None,l=null),n[s]=[r,a,l],t[s]=o}return n}function fv(e){if(e==null)return yt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function _e(e){return fi(()=>{let t=lh(e);return uh(t),t})}function gv(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 lh(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||yt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||ye,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:pv(e.inputs,t),outputs:fv(e.outputs),debugInfo:null}}function uh(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 mv(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 vv(e){return Object.getPrototypeOf(e.prototype).constructor}function ln(e){let t=vv(e.type),n=!0,r=[e];for(;t;){let i;if(Ke(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=$i(e.inputs),o.declaredInputs=$i(e.declaredInputs),o.outputs=$i(e.outputs);let a=i.hostBindings;a&&_v(e,a);let l=i.viewQuery,u=i.contentQueries;if(l&&bv(e,l),u&&wv(e,u),yv(e,i),i1(e.outputs,i.outputs),Ke(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===ln&&(n=!1)}}t=Object.getPrototypeOf(t)}Cv(r)}function yv(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 Cv(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=Qt(i.hostAttrs,n=Qt(n,i.hostAttrs))}}function $i(e){return e===yt?{}:e===ye?[]:e}function bv(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function wv(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,s)=>{t(r,i,s),n(r,i,s)}:e.contentQueries=t}function _v(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function xv(e,t,n,r,i,s,o,a){if(n.firstCreatePass){e.mergedAttrs=Qt(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))}a&&(e.flags|=a),Fn(e,!1);let l=Sv(n,t,e,r);To()&&Zo(n,t,l,e),Yt(l,t);let u=$d(l,t,l,e);t[r+fe]=u,Fo(t,u),G2(u,e,t)}function kv(e,t,n,r,i,s,o,a,l,u,c){let d=n+fe,p;return t.firstCreatePass?(p=wi(t,d,4,o||null,a||null),So()&&Wd(t,e,p,Wt(t.consts,u),qo),Fc(t,p)):p=t.data[d],xv(p,e,t,n,r,i,s,l),Nn(p)&&Ci(t,e,p),u!=null&&bi(e,p,c),p}function re(e,t,n,r,i,s,o,a){let l=F(),u=ee(),c=Wt(u.consts,s);return kv(l,u,e,t,n,r,i,c,void 0,o,a),re}var Sv=Mv;function Mv(e,t,n,r){return hi(!0),t[G].createComment("")}var Ov=new M("");function ia(e){return!!e&&typeof e.then=="function"}function Ev(e){return!!e&&typeof e.subscribe=="function"}var ch=new M(""),dh=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=v(ch,{optional:!0})??[];injector=v(pi);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let s=_o(this.injector,i);if(ia(s))n.push(s);else if(Ev(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=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Tv=new M("");function Pv(){Zp(()=>{let e="";throw new w(600,e)})}function Iv(e){return e.isBoundToModule}var Lv=10,Ln=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=v(ct);afterRenderManager=v(cm);zonelessEnabled=v(Io);rootEffectScheduler=v(gg);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Je;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=v(sn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Te(n=>!n))}constructor(){v(jo,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=v(We);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,i=pi.NULL){return this._injector.get(oe).run(()=>{$(10);let s=n instanceof Gd;if(!this._injector.get(dh).done){let p="";throw new w(405,p)}let o;s?o=n:o=this._injector.get(Zn).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let a=Iv(o)?void 0:this._injector.get(Vs),l=r||o.selector,u=o.create(i,[],l,a),c=u.location.nativeElement,d=u.injector.get(Ov,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),vr(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),$(11,u),u})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){$(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Sd.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new w(101,!1);let n=A(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,A(n),this.afterTick.next(),$(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Xo,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<Lv;)$(14),this.synchronizeOnce(),$(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&&!Tn(i))continue;let s=r&&!this.zonelessEnabled?0:1;zd(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})=>Tn(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(Tv,[]).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=E({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 sa(e,t,n,r){let i=F(),s=Hn();if(Pt(i,s,t)){let o=ee(),a=di();Vm(a,i,e,t,n,r)}return sa}var u3=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function P(e,t,n){let r=F(),i=Hn();if(Pt(r,i,t)){let s=ee(),o=di();Vd(o,r,e,t,r[G],n)}return P}function vl(e,t,n,r,i){Qo(t,e,n,i?"class":"style",r)}function f(e,t,n,r){let i=F(),s=i[k],o=e+fe,a=s.firstCreatePass?ta(o,i,2,t,qo,So(),n,r):s.data[o];if(Go(a,i,e,t,ph),Nn(a)){let l=i[k];Ci(l,i,a),Ao(l,a,i)}return r!=null&&bi(i,a),f}function m(){let e=ee(),t=ae(),n=Wo(t);return e.firstCreatePass&&na(e,n),vc(n)&&yc(),mc(),n.classesWithoutHost!=null&&kg(n)&&vl(e,n,F(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&Sg(n)&&vl(e,n,F(),n.stylesWithoutHost,!1),m}function H(e,t,n,r){return f(e,t,n,r),m(),H}function oa(e,t,n,r){let i=F(),s=i[k],o=e+fe,a=s.firstCreatePass?S2(o,s,2,t,n,r):s.data[o];return Go(a,i,e,t,ph),r!=null&&bi(i,a),oa}function aa(){let e=ae(),t=Wo(e);return vc(t)&&yc(),mc(),aa}function hh(e,t,n,r){return oa(e,t,n,r),aa(),hh}var ph=(e,t,n,r,i)=>(hi(!0),vd(t[G],r,og()));function la(e,t,n){let r=F(),i=r[k],s=e+fe,o=i.firstCreatePass?ta(s,r,8,"ng-container",qo,So(),t,n):i.data[s];if(Go(o,r,e,"ng-container",Dv),Nn(o)){let a=r[k];Ci(a,r,o),Ao(a,o,r)}return n!=null&&bi(r,o),la}function ua(){let e=ee(),t=ae(),n=Wo(t);return e.firstCreatePass&&na(e,n),ua}var Dv=(e,t,n,r,i)=>(hi(!0),R0(t[G],""));function xe(){return F()}function fh(e,t,n){let r=F(),i=Hn();if(Pt(r,i,t)){let s=ee(),o=di();Rd(o,r,e,t,r[G],n)}return fh}var Kn=void 0;function Av(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var Vv=["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"]],Kn,[["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"]],Kn,[["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}",Kn,"{1} 'at' {0}",Kn],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Av],qi={};function Ve(e){let t=Rv(e),n=yl(t);if(n)return n;let r=t.split("-")[0];if(n=yl(r),n)return n;if(r==="en")return Vv;throw new w(701,!1)}function yl(e){return e in qi||(qi[e]=ot.ng&&ot.ng.common&&ot.ng.common.locales&&ot.ng.common.locales[e]),qi[e]}var K=(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})(K||{});function Rv(e){return e.toLowerCase().replace(/_/g,"-")}var Jr="en-US",Nv=Jr;function Fv(e){typeof e=="string"&&(Nv=e.toLowerCase().replace(/_/g,"-"))}function x(e,t,n){let r=F(),i=ee(),s=ae();return mh(i,r,r[G],s,e,t,n),x}function gh(e,t,n){let r=F(),i=ee(),s=ae();return(s.type&3||n)&&Kd(s,i,r,n,r[G],e,t,mr(s,r,t)),gh}function mh(e,t,n,r,i,s,o){let a=!0,l=null;if((r.type&3||o)&&(l??=mr(r,t,s),Kd(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 p=c[d],h=c[d+1];l??=mr(r,t,s),pl(r,t,p,h,i,l)}if(u&&u.length)for(let d of u)l??=mr(r,t,s),pl(r,t,d,i,i,l)}}function O(e=1){return ig(e)}function vh(e,t,n){ov(e,t,n)}function yh(e){let t=F(),n=ee(),r=_c();Mo(r+1);let i=ra(n,r);if(e.dirty&&j1(t)===((i.metadata.flags&2)===2)){if(i.matches===null)e.reset([]);else{let s=uv(t,r);e.reset(s,Fg),e.notifyOnChanges()}return!0}return!1}function Ch(){return iv(F(),_c())}function Jn(e,t){return e<<17|t<<2}function Mt(e){return e>>17&32767}function Hv(e){return(e&2)==2}function jv(e,t){return e&131071|t<<17}function Rs(e){return e|2}function Kt(e){return(e&131068)>>2}function Gi(e,t){return e&-131069|t<<2}function zv(e){return(e&1)===1}function Ns(e){return e|1}function Bv(e,t,n,r,i,s){let o=s?t.classBindings:t.styleBindings,a=Mt(o),l=Kt(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=Mt(e[a+1]);e[r+1]=Jn(d,a),d!==0&&(e[d+1]=Gi(e[d+1],r)),e[a+1]=jv(e[a+1],r)}else e[r+1]=Jn(a,0),a!==0&&(e[a+1]=Gi(e[a+1],r)),a=r;else e[r+1]=Jn(l,0),a===0?a=r:e[l+1]=Gi(e[l+1],r),l=r;u&&(e[r+1]=Rs(e[r+1])),Cl(e,c,r,!0),Cl(e,c,r,!1),Uv(t,c,e,r,s),o=Jn(a,l),s?t.classBindings=o:t.styleBindings=o}function Uv(e,t,n,r,i){let s=i?e.residualClasses:e.residualStyles;s!=null&&typeof t=="string"&&Rn(s,t)>=0&&(n[r+1]=Ns(n[r+1]))}function Cl(e,t,n,r){let i=e[n+1],s=t===null,o=r?Mt(i):Kt(i),a=!1;for(;o!==0&&(a===!1||s);){let l=e[o],u=e[o+1];Zv(l,t)&&(a=!0,e[o+1]=r?Ns(u):Rs(u)),o=r?Mt(u):Kt(u)}a&&(e[n+1]=r?Rs(i):Ns(i))}function Zv(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 bh(e,t,n){return wh(e,t,n,!1),bh}function Ie(e,t){return wh(e,t,null,!0),Ie}function wh(e,t,n,r){let i=F(),s=ee(),o=J1(2);if(s.firstUpdatePass&&qv(s,e,o,r),t!==dt&&Pt(i,o,t)){let a=s.data[rn()];Kv(s,a,i,i[G],e,i[o+1]=Jv(t,n),r,o)}}function $v(e,t){return t>=e.expandoStartIndex}function qv(e,t,n,r){let i=e.data;if(i[n+1]===null){let s=i[rn()],o=$v(e,n);Xv(s,r)&&t===null&&!o&&(t=!1),t=Gv(i,s,t,r),Bv(i,s,t,n,o,r)}}function Gv(e,t,n,r){let i=ng(e),s=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Wi(null,e,t,n,r),n=Dn(n,t.attrs,r),s=null);else{let o=t.directiveStylingLast;if(o===-1||e[o]!==i)if(n=Wi(i,e,t,n,r),s===null){let a=Wv(e,t,r);a!==void 0&&Array.isArray(a)&&(a=Wi(null,e,t,a[1],r),a=Dn(a,t.attrs,r),Qv(e,t,r,a))}else s=Yv(e,t,r)}return s!==void 0&&(r?t.residualClasses=s:t.residualStyles=s),n}function Wv(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Kt(r)!==0)return e[Mt(r)]}function Qv(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Mt(i)]=r}function Yv(e,t,n){let r,i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<i;s++){let o=e[s].hostAttrs;r=Dn(r,o,n)}return Dn(r,t.attrs,n)}function Wi(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=Dn(r,s.hostAttrs,i),s!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Dn(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]),k1(e,o,n?!0:t[++s]))}return e===void 0?null:e}function Kv(e,t,n,r,i,s,o,a){if(!(t.type&3))return;let l=e.data,u=l[a+1],c=zv(u)?bl(l,t,n,i,Kt(u),o):void 0;if(!Xr(c)){Xr(s)||Hv(u)&&(s=bl(l,null,n,i,a,o));let d=cc(rn(),n);Mm(r,o,d,i,s)}}function bl(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,p=n[i+1];p===dt&&(p=d?ye:void 0);let h=d?Ri(p,r):c===r?p:void 0;if(u&&!Xr(h)&&(h=Ri(l,r)),Xr(h)&&(a=h,o))return a;let g=e[i+1];i=o?Mt(g):Kt(g)}if(t!==null){let l=s?t.residualClasses:t.residualStyles;l!=null&&(a=Ri(l,r))}return a}function Xr(e){return e!==void 0}function Jv(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Ut(ft(e)))),e}function Xv(e,t){return(e.flags&(t?8:16))!==0}function z(e,t=""){let n=F(),r=ee(),i=e+fe,s=r.firstCreatePass?wi(r,i,1,t,null):r.data[i],o=ey(r,n,s,t,e);n[i]=o,To()&&Zo(r,n,o,s),Fn(s,!1)}var ey=(e,t,n,r,i)=>(hi(!0),A0(t[G],r));function ty(e,t,n,r=""){return Pt(e,Hn(),n)?t+ai(n)+r:dt}function be(e){return An("",e),be}function An(e,t,n){let r=F(),i=ty(r,e,t,n);return i!==dt&&ny(r,rn(),i),An}function ny(e,t,n){let r=cc(t,e);V0(e[G],r,n)}function ca(e,t,n){Pc(t)&&(t=t());let r=F(),i=Hn();if(Pt(r,i,t)){let s=ee(),o=di();Vd(o,r,e,t,r[G],n)}return ca}function _h(e,t){let n=Pc(e);return n&&e.set(t),n}function da(e,t){let n=F(),r=ee(),i=ae();return mh(r,n,n[G],i,e,t),da}function ry(e,t,n){let r=ee();if(r.firstCreatePass){let i=Ke(e);Fs(n,r.data,r.blueprint,i,!0),Fs(t,r.data,r.blueprint,i,!1)}}function Fs(e,t,n,r,i){if(e=se(e),Array.isArray(e))for(let s=0;s<e.length;s++)Fs(e[s],t,n,r,i);else{let s=ee(),o=F(),a=ae(),l=qt(e)?e:se(e.provide),u=sc(e),c=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(qt(e)||!e.multi){let h=new Bn(u,i,j,null),g=Yi(l,t,i?c:c+p,d);g===-1?(_s(qr(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[g]=h,o[g]=h)}else{let h=Yi(l,t,c+p,d),g=Yi(l,t,c,c+p),y=h>=0&&n[h],C=g>=0&&n[g];if(i&&!C||!i&&!y){_s(qr(a,o),s,l);let R=oy(i?sy:iy,n.length,i,r,u,e);!i&&C&&(n[g].providerFactory=R),Qi(s,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(R),o.push(R)}else{let R=xh(n[i?g:h],u,!i&&r);Qi(s,e,h>-1?h:g,R)}!i&&r&&C&&n[g].componentProviders++}}}function Qi(e,t,n,r){let i=qt(t),s=L1(t);if(i||s){let o=(s?se(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 xh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Yi(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function iy(e,t,n,r,i){return Hs(this.multi,[])}function sy(e,t,n,r,i){let s=this.multi,o;if(this.providerFactory){let a=this.providerFactory.componentProviders,l=Pn(r,r[k],this.providerFactory.index,i);o=l.slice(0,a),Hs(s,o);for(let u=a;u<l.length;u++)o.push(l[u])}else o=[],Hs(s,o);return o}function Hs(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function oy(e,t,n,r,i,s){let o=new Bn(e,n,j,null);return o.multi=[],o.index=t,o.componentProviders=0,xh(o,i,r&&!n),o}function ha(e,t=[]){return n=>{n.providersResolver=(r,i)=>ry(r,i?i(e):e,t)}}function ay(e,t,n,r){return uy(F(),Y1(),e,t,n,r)}function ly(e,t){let n=e[t];return n===dt?void 0:n}function uy(e,t,n,r,i,s){let o=t+n;return Pt(e,o,i)?E2(e,o+1,s?r.call(s,i):r(i)):ly(e,o+1)}var cy=(()=>{class e{zone=v(oe);changeDetectionScheduler=v(zn);applicationRef=v(Ln);applicationErrorHandler=v(ct);_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})(),dy=new M("",{factory:()=>!1});function kh({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new oe(V(T({},Sh()),{scheduleInRootZone:n})),[{provide:oe,useFactory:e},{provide:$t,multi:!0,useFactory:()=>{let r=v(cy,{optional:!0});return()=>r.initialize()}},{provide:$t,multi:!0,useFactory:()=>{let r=v(py);return()=>{r.initialize()}}},t===!0?{provide:Ic,useValue:!0}:[],{provide:Lc,useValue:n??Od},{provide:ct,useFactory:()=>{let r=v(oe),i=v(We),s;return o=>{r.runOutsideAngular(()=>{i.destroyed&&!s?setTimeout(()=>{throw o}):(s??=i.get(jn),s.handleError(o))})}}}]}function hy(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=kh({ngZoneFactory:()=>{let i=Sh(e);return i.scheduleInRootZone=n,i.shouldCoalesceEventChangeDetection&&Md("NgZone_CoalesceEvent"),new oe(i)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return li([{provide:dy,useValue:!0},{provide:Io,useValue:!1},r])}function Sh(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var py=(()=>{class e{subscription=new Fe;initialized=!1;zone=v(oe);pendingTasks=v(sn);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{oe.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{oe.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})(),fy=(()=>{class e{applicationErrorHandler=v(ct);appRef=v(Ln);taskService=v(sn);ngZone=v(oe);zonelessEnabled=v(Io);tracing=v(jo,{optional:!0});disableScheduling=v(Ic,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Fe;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Qr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(v(Lc,{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 am||!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?tl:Ed;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(Qr+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,tl(()=>{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 gy(){return typeof $localize<"u"&&$localize.locale||Jr}var pa=new M("",{providedIn:"root",factory:()=>v(pa,{optional:!0,skipSelf:!0})||gy()});function Dt(e){return t1(e)}function st(e,t){return zp(e,t?.equal)}var c3=class{[Ne];constructor(e){this[Ne]=e}destroy(){this[Ne].destroy()}},my=new M("");my.__NG_ELEMENT_ID__=e=>{let t=ae();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 js=new M(""),vy=new M("");function dn(e){return!e.moduleRef}function yy(e){let t=dn(e)?e.r3Injector:e.moduleRef.injector,n=t.get(oe);return n.run(()=>{dn(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(ct),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:r})}),dn(e)){let s=()=>t.destroy(),o=e.platformInjector.get(js);o.add(s),t.onDestroy(()=>{i.unsubscribe(),o.delete(s)})}else{let s=()=>e.moduleRef.destroy(),o=e.platformInjector.get(js);o.add(s),e.moduleRef.onDestroy(()=>{vr(e.allPlatformModules,e.moduleRef),i.unsubscribe(),o.delete(s)})}return by(r,n,()=>{let s=t.get(sn),o=s.add(),a=t.get(dh);return a.runInitializers(),a.donePromise.then(()=>{let l=t.get(pa,Jr);if(Fv(l||Jr),!t.get(vy,!0))return dn(e)?t.get(Ln):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(dn(e)){let u=t.get(Ln);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return Cy?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{s.remove(o)})})})}var Cy;function by(e,t,n){try{let r=n();return ia(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var yr=null;function wy(e=[],t){return pi.create({name:t,providers:[{provide:Co,useValue:"platform"},{provide:js,useValue:new Set([()=>yr=null])},...e]})}function _y(e=[]){if(yr)return yr;let t=wy(e);return yr=t,Pv(),xy(t),t}function xy(e){let t=e.get(id,null);_o(e,()=>{t?.forEach(n=>n())})}var ky=(()=>{class e{static __NG_ELEMENT_ID__=Sy}return e})();function Sy(e){return My(ae(),F(),(e&16)===16)}function My(e,t,n){if(tn(e)&&!n){let r=ze(e.index,t);return new In(r,r)}else if(e.type&175){let r=t[He];return new In(r,t)}return null}var Oy=class{constructor(){}supports(e){return Yd(e)}create(e){return new Ty(e)}},Ey=(e,t)=>t,Ty=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||Ey}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<_l(n,r,i)?t:n,o=_l(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 p=d<i.length?i[d]:i[d]=0,h=p+d;u<=h&&h<l&&(i[d]=p+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=[]),!Yd(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,M2(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 Py(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 wl),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 wl),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}},Py=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}},Iy=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}},wl=class{map=new Map;put(e){let t=e.trackById,n=this.map.get(t);n||(n=new Iy,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 _l(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 xl(){return new Mh([new Oy])}var Mh=(()=>{class e{factories;static \u0275prov=E({token:e,providedIn:"root",factory:xl});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||xl())}}}find(n){let r=this.factories.find(i=>i.supports(n));if(r!=null)return r;throw new w(901,!1)}}return e})();function Ly(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:i}=e;$(8);try{let s=i?.injector??_y(r),o=[kh({}),{provide:zn,useExisting:fy},cg,...n||[]],a=new ah({providers:o,parent:s,debugName:"",runEnvironmentInitializers:!1});return yy({r3Injector:a.injector,platformInjector:s,rootComponent:t})}catch(s){return Promise.reject(s)}finally{$(9)}}function Dy(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var Ay={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function Vy(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Ry(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var Ki;function Ny(e,t){if(!Ki){let n=Element.prototype;Ki=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?Ki.call(e,t):!1}function Fy(e){let t={};return e.forEach(({propName:n,templateName:r,transform:i})=>{t[Vy(r)]=[n,i]}),t}function Hy(e,t){return t.get(Zn).resolveComponentFactory(e).inputs}function jy(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=zy(a,t,i);l!==-1&&r[l].push(a)}return r}function zy(e,t,n){let r=n;return Ry(e)&&t.some((i,s)=>i!=="*"&&Ny(e,i)?(r=s,!0):!1),r}var By=10,Uy=class{componentFactory;inputMap=new Map;constructor(e,t){this.componentFactory=t.get(Zn).resolveComponentFactory(e);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(e){return new Zy(this.componentFactory,e,this.inputMap)}},Zy=class{componentFactory;injector;inputMap;eventEmitters=new vu(1);events=this.eventEmitters.pipe(zu(e=>Kf(...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(oe),this.appRef=this.injector.get(Ln),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=Ay.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},By))})}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),i2(this.componentRef.hostView)&&(s2(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(e){let t=pi.create({providers:[],parent:this.injector}),n=jy(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()}},$y=class extends HTMLElement{ngElementEventsSubscription=null};function qy(e,t){let n=Hy(e,t.injector),r=t.strategyFactory||new Uy(e,t.injector),i=Fy(n);class s extends $y{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,p]=i[a];this.ngElementStrategy.setInputValue(d,u,p)}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 Oh=null;function ei(){return Oh}function Gy(e){Oh??=e}var Wy=class{},ie=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(ie||{}),B=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(B||{}),he=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(he||{}),at={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 Qy(e){return Ve(e)[K.LocaleId]}function Yy(e,t,n){let r=Ve(e),i=[r[K.DayPeriodsFormat],r[K.DayPeriodsStandalone]],s=we(i,t);return we(s,n)}function Ky(e,t,n){let r=Ve(e),i=[r[K.DaysFormat],r[K.DaysStandalone]],s=we(i,t);return we(s,n)}function Jy(e,t,n){let r=Ve(e),i=[r[K.MonthsFormat],r[K.MonthsStandalone]],s=we(i,t);return we(s,n)}function Xy(e,t){let n=Ve(e)[K.Eras];return we(n,t)}function Xn(e,t){let n=Ve(e);return we(n[K.DateFormat],t)}function er(e,t){let n=Ve(e);return we(n[K.TimeFormat],t)}function tr(e,t){let n=Ve(e)[K.DateTimeFormat];return we(n,t)}function xi(e,t){let n=Ve(e),r=n[K.NumberSymbols][t];if(typeof r>"u"){if(t===at.CurrencyDecimal)return n[K.NumberSymbols][at.Decimal];if(t===at.CurrencyGroup)return n[K.NumberSymbols][at.Group]}return r}function Eh(e){if(!e[K.ExtraData])throw new w(2303,!1)}function eC(e){let t=Ve(e);return Eh(t),(t[K.ExtraData][2]||[]).map(n=>typeof n=="string"?Ji(n):[Ji(n[0]),Ji(n[1])])}function tC(e,t,n){let r=Ve(e);Eh(r);let i=[r[K.ExtraData][0],r[K.ExtraData][1]],s=we(i,t)||[];return we(s,n)||[]}function we(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new w(2304,!1)}function Ji(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var nC=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,nr={},rC=/((?:[^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 iC(e,t,n,r){let i=pC(e);t=Ze(n,t)||t;let s=[],o;for(;t;)if(o=rC.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=Ph(r,a),i=hC(i,r));let l="";return s.forEach(u=>{let c=cC(u);l+=c?c(i,n,a):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function ti(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=Qy(e);if(nr[n]??={},nr[n][t])return nr[n][t];let r="";switch(t){case"shortDate":r=Xn(e,he.Short);break;case"mediumDate":r=Xn(e,he.Medium);break;case"longDate":r=Xn(e,he.Long);break;case"fullDate":r=Xn(e,he.Full);break;case"shortTime":r=er(e,he.Short);break;case"mediumTime":r=er(e,he.Medium);break;case"longTime":r=er(e,he.Long);break;case"fullTime":r=er(e,he.Full);break;case"short":let i=Ze(e,"shortTime"),s=Ze(e,"shortDate");r=rr(tr(e,he.Short),[i,s]);break;case"medium":let o=Ze(e,"mediumTime"),a=Ze(e,"mediumDate");r=rr(tr(e,he.Medium),[o,a]);break;case"long":let l=Ze(e,"longTime"),u=Ze(e,"longDate");r=rr(tr(e,he.Long),[l,u]);break;case"full":let c=Ze(e,"fullTime"),d=Ze(e,"fullDate");r=rr(tr(e,he.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 Ee(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 sC(e,t){return Ee(e,3).substring(0,t)}function Q(e,t,n=0,r=!1,i=!1){return function(s,o){let a=oC(e,s);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return sC(a,t);let l=xi(o,at.MinusSign);return Ee(a,t,l,r,i)}}function oC(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=ie.Format,r=!1){return function(i,s){return aC(i,s,e,t,n,r)}}function aC(e,t,n,r,i,s){switch(n){case 2:return Jy(t,i,r)[e.getMonth()];case 1:return Ky(t,i,r)[e.getDay()];case 0:let o=e.getHours(),a=e.getMinutes();if(s){let u=eC(t),c=tC(t,i,r),d=u.findIndex(p=>{if(Array.isArray(p)){let[h,g]=p,y=o>=h.hours&&a>=h.minutes,C=o<g.hours||o===g.hours&&a<g.minutes;if(h.hours<g.hours){if(y&&C)return!0}else if(y||C)return!0}else if(p.hours===o&&p.minutes===a)return!0;return!1});if(d!==-1)return c[d]}return Yy(t,i,r)[o<12?0:1];case 3:return Xy(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=xi(n,at.MinusSign),o=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case 0:return(i>=0?"+":"")+Ee(o,2,s)+Ee(Math.abs(i%60),2,s);case 1:return"GMT"+(i>=0?"+":"")+Ee(o,1,s);case 2:return"GMT"+(i>=0?"+":"")+Ee(o,2,s)+":"+Ee(Math.abs(i%60),2,s);case 3:return r===0?"Z":(i>=0?"+":"")+Ee(o,2,s)+":"+Ee(Math.abs(i%60),2,s);default:throw new w(2310,!1)}}}var lC=0,Cr=4;function uC(e){let t=ti(e,lC,1).getDay();return ti(e,0,1+(t<=Cr?Cr:Cr+7)-t)}function Th(e){let t=e.getDay(),n=t===0?-3:Cr-t;return ti(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Xi(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=Th(n),o=uC(s.getFullYear()),a=s.getTime()-o.getTime();i=1+Math.round(a/6048e5)}return Ee(i,e,xi(r,at.MinusSign))}}function sr(e,t=!1){return function(n,r){let i=Th(n).getFullYear();return Ee(i,e,xi(r,at.MinusSign),t)}}var es={};function cC(e){if(es[e])return es[e];let t;switch(e){case"G":case"GG":case"GGG":t=Z(3,B.Abbreviated);break;case"GGGG":t=Z(3,B.Wide);break;case"GGGGG":t=Z(3,B.Narrow);break;case"y":t=Q(0,1,0,!1,!0);break;case"yy":t=Q(0,2,0,!0,!0);break;case"yyy":t=Q(0,3,0,!1,!0);break;case"yyyy":t=Q(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=Q(1,1,1);break;case"MM":case"LL":t=Q(1,2,1);break;case"MMM":t=Z(2,B.Abbreviated);break;case"MMMM":t=Z(2,B.Wide);break;case"MMMMM":t=Z(2,B.Narrow);break;case"LLL":t=Z(2,B.Abbreviated,ie.Standalone);break;case"LLLL":t=Z(2,B.Wide,ie.Standalone);break;case"LLLLL":t=Z(2,B.Narrow,ie.Standalone);break;case"w":t=Xi(1);break;case"ww":t=Xi(2);break;case"W":t=Xi(1,!0);break;case"d":t=Q(2,1);break;case"dd":t=Q(2,2);break;case"c":case"cc":t=Q(7,1);break;case"ccc":t=Z(1,B.Abbreviated,ie.Standalone);break;case"cccc":t=Z(1,B.Wide,ie.Standalone);break;case"ccccc":t=Z(1,B.Narrow,ie.Standalone);break;case"cccccc":t=Z(1,B.Short,ie.Standalone);break;case"E":case"EE":case"EEE":t=Z(1,B.Abbreviated);break;case"EEEE":t=Z(1,B.Wide);break;case"EEEEE":t=Z(1,B.Narrow);break;case"EEEEEE":t=Z(1,B.Short);break;case"a":case"aa":case"aaa":t=Z(0,B.Abbreviated);break;case"aaaa":t=Z(0,B.Wide);break;case"aaaaa":t=Z(0,B.Narrow);break;case"b":case"bb":case"bbb":t=Z(0,B.Abbreviated,ie.Standalone,!0);break;case"bbbb":t=Z(0,B.Wide,ie.Standalone,!0);break;case"bbbbb":t=Z(0,B.Narrow,ie.Standalone,!0);break;case"B":case"BB":case"BBB":t=Z(0,B.Abbreviated,ie.Format,!0);break;case"BBBB":t=Z(0,B.Wide,ie.Format,!0);break;case"BBBBB":t=Z(0,B.Narrow,ie.Format,!0);break;case"h":t=Q(3,1,-12);break;case"hh":t=Q(3,2,-12);break;case"H":t=Q(3,1);break;case"HH":t=Q(3,2);break;case"m":t=Q(4,1);break;case"mm":t=Q(4,2);break;case"s":t=Q(5,1);break;case"ss":t=Q(5,2);break;case"S":t=Q(6,1);break;case"SS":t=Q(6,2);break;case"SSS":t=Q(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 es[e]=t,t}function Ph(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function dC(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function hC(e,t,n){let r=e.getTimezoneOffset(),i=Ph(t,r);return dC(e,-1*(i-r))}function pC(e){if(kl(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 ti(i,s-1,o)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(nC))return fC(r)}let t=new Date(e);if(!kl(t))throw new w(2311,!1);return t}function fC(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 kl(e){return e instanceof Date&&!isNaN(e.valueOf())}var ts=/\s+/,Sl=[],gC=(()=>{class e{_ngEl;_renderer;initialClasses=Sl;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(ts):Sl}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(ts):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let i=this.stateMap.get(n);i!==void 0?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],i=n[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(ts).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static \u0275fac=function(n){return new(n||e)(j(Et),j(ea))};static \u0275dir=_e({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})(),mC=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}},ki=(()=>{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 mC(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),Ml(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);Ml(s,i)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(n){return new(n||e)(j(an),j(St),j(Mh))};static \u0275dir=_e({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function Ml(e,t){e.context.$implicit=t.item}var It=(()=>{class e{_viewContainer;_context=new vC;_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){Ol(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Ol(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(an),j(St))};static \u0275dir=_e({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),vC=class{$implicit=null;ngIf=null};function Ol(e,t){if(e&&!e.createEmbeddedView)throw new w(2020,!1)}var yC=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()}},Ih=(()=>{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=_e({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return e})(),CC=(()=>{class e{ngSwitch;_view;ngSwitchCase;constructor(n,r,i){this.ngSwitch=i,i._addCase(),this._view=new yC(n,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(n){return new(n||e)(j(an),j(St),j(Ih,9))};static \u0275dir=_e({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return e})();function bC(e,t){return new w(2100,!1)}var wC="mediumDate",_C=new M(""),xC=new M(""),Lh=(()=>{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??wC,a=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return iC(n,o,s||this.locale,a)}catch(o){throw bC(e,o.message)}}static \u0275fac=function(n){return new(n||e)(j(pa,16),j(_C,24),j(xC,24))};static \u0275pipe=gv({name:"date",type:e,pure:!0})}return e})(),ke=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=_i({type:e});static \u0275inj=oi({})}return e})();function Dh(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 Ah=class{},Vh="browser";function kC(e){return e===Vh}var Rh=class{_doc;constructor(e){this._doc=e}manager},zs=(()=>{class e extends Rh{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)(b(Be))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),Bs=new M(""),Nh=(()=>{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 zs));this._plugins=i.slice().reverse();let s=n.find(o=>o instanceof zs);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)(b(Bs),b(oe))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),ns="ng-app-id";function El(e){for(let t of e)t.remove()}function Tl(e,t){let n=t.createElement("style");return n.textContent=e,n}function SC(e,t,n,r){let i=e.head?.querySelectorAll(`style[${ns}="${t}"],link[${ns}="${t}"]`);if(i)for(let s of i)s.removeAttribute(ns),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 Us(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Fh=(()=>{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,SC(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,Tl);r?.forEach(i=>this.addUsage(i,this.external,Us))}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&&(El(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])El(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,Tl(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,Us(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)(b(Be),b(rd),b(sd,8),b(Do))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),rs={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"},fa=/%COMP%/g,Hh="%COMP%",MC=`_nghost-${Hh}`,OC=`_ngcontent-${Hh}`,EC=!0,TC=new M("",{providedIn:"root",factory:()=>EC});function PC(e){return OC.replace(fa,e)}function IC(e){return MC.replace(fa,e)}function jh(e,t){return t.map(n=>n.replace(fa,e))}var Pl=(()=>{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 ga(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 Ll?i.applyToHost(n):i instanceof Zs&&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,p=this.tracingService;switch(r.encapsulation){case kt.Emulated:s=new Ll(l,u,r,this.appId,c,o,a,d,p);break;case kt.ShadowDom:return new LC(l,u,n,r,o,a,this.nonce,d,p);default:s=new Zs(l,u,r,c,o,a,d,p);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)(b(Nh),b(Fh),b(rd),b(TC),b(Be),b(oe),b(sd),b(jo,8))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),ga=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(rs[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(Il(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(Il(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=rs[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=rs[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&(mt.DashCase|mt.Important)?e.style.setProperty(t,n,r&mt.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&mt.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=ei().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 Il(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var LC=class extends ga{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=jh(r.id,u);for(let d of u){let p=document.createElement("style");o&&p.setAttribute("nonce",o),p.textContent=d,this.shadowRoot.appendChild(p)}let c=r.getExternalStyles?.();if(c)for(let d of c){let p=Us(d,i);o&&p.setAttribute("nonce",o),this.shadowRoot.appendChild(p)}}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)}},Zs=class extends ga{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?jh(l,u):u,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Wr.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Ll=class extends Zs{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=PC(u),this.hostAttr=IC(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}},DC=class zh extends Wy{supportsDOMEvents=!0;static makeCurrent(){Gy(new zh)}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=AC();return n==null?null:VC(n)}resetBaseElement(){mn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Dh(document.cookie,t)}},mn=null;function AC(){return mn=mn||document.head.querySelector("base"),mn?mn.getAttribute("href"):null}function VC(e){return new URL(e,document.baseURI).pathname}var RC=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||e)};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),Dl=["alt","control","meta","shift"],NC={"\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"},FC={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},HC=(()=>{class e extends Rh{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(()=>ei().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."),Dl.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=NC[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"),Dl.forEach(o=>{if(o!==i){let a=FC[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)(b(Be))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})();function jC(e){return Ly(zC(e))}function zC(e){return{appProviders:[...qC,...e?.providers??[]],platformProviders:$C}}function BC(){DC.makeCurrent()}function UC(){return new jn}function ZC(){return Zg(document),document}var $C=[{provide:Do,useValue:Vh},{provide:id,useValue:BC,multi:!0},{provide:Be,useFactory:ZC}],qC=[{provide:Co,useValue:"root"},{provide:jn,useFactory:UC},{provide:Bs,useClass:zs,multi:!0,deps:[Be]},{provide:Bs,useClass:HC,multi:!0,deps:[Be]},Pl,Fh,Nh,{provide:Xo,useExisting:Pl},{provide:Ah,useClass:RC},[]],ma=class{},Si=class{},Jt=class br{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 br?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 br;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof br?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)))}},GC=class{encodeKey(e){return Al(e)}encodeValue(e){return Al(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function WC(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 QC=/%(\d[a-f0-9])/gi,YC={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Al(e){return encodeURIComponent(e).replace(QC,(t,n)=>YC[n]??t)}function or(e){return`${e}`}var Ge=class Bh{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new GC,t.fromString){if(t.fromObject)throw new w(2805,!1);this.map=WC(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 Bh({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)}},KC=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 JC(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Vl(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Rl(e){return typeof Blob<"u"&&e instanceof Blob}function Nl(e){return typeof FormData<"u"&&e instanceof FormData}function XC(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Fl="Content-Type",Hl="Accept",Uh="X-Request-URL",Zh="text/plain",$h="application/json",e5=`${$h}, ${Zh}, */*`,Cn=class qh{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(JC(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 Jt,this.context??=new KC,!this.params)this.params=new Ge,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"||Vl(this.body)||Rl(this.body)||Nl(this.body)||XC(this.body)?this.body:this.body instanceof Ge?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||Nl(this.body)?null:Rl(this.body)?this.body.type||null:Vl(this.body)?null:typeof this.body=="string"?Zh:this.body instanceof Ge?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?$h: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,p=t.integrity||this.integrity,h=t.transferCache??this.transferCache,g=t.timeout??this.timeout,y=t.body!==void 0?t.body:this.body,C=t.withCredentials??this.withCredentials,R=t.reportProgress??this.reportProgress,Se=t.headers||this.headers,X=t.params||this.params,un=t.context??this.context;return t.setHeaders!==void 0&&(Se=Object.keys(t.setHeaders).reduce((cn,ht)=>cn.set(ht,t.setHeaders[ht]),Se)),t.setParams&&(X=Object.keys(t.setParams).reduce((cn,ht)=>cn.set(ht,t.setParams[ht]),X)),new qh(n,r,y,{params:X,headers:Se,context:un,reportProgress:R,responseType:i,withCredentials:C,transferCache:h,keepalive:s,cache:a,priority:o,timeout:g,mode:l,redirect:u,credentials:c,referrer:d,integrity:p})}},zt=(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})(zt||{}),va=class{headers;status;statusText;url;ok;type;redirected;constructor(e,t=200,n="OK"){this.headers=e.headers||new Jt,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}},t5=class Gh extends va{constructor(t={}){super(t)}type=zt.ResponseHeader;clone(t={}){return new Gh({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})}},Mi=class Wh extends va{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=zt.Response;clone(t={}){return new Wh({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})}},is=class extends va{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}},n5=200,r5=204;function ss(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 ya=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,i={}){let s;if(n instanceof Cn)s=n;else{let l;i.headers instanceof Jt?l=i.headers:l=new Jt(i.headers);let u;i.params&&(i.params instanceof Ge?u=i.params:u=new Ge({fromObject:i.params})),s=new Cn(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=$e(s).pipe(Fu(l=>this.handler.handle(l)));if(n instanceof Cn||i.observe==="events")return o;let a=o.pipe(Ar(l=>l instanceof Mi));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(Te(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new w(2806,!1);return l.body}));case"blob":return a.pipe(Te(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new w(2807,!1);return l.body}));case"text":return a.pipe(Te(l=>{if(l.body!==null&&typeof l.body!="string")throw new w(2808,!1);return l.body}));case"json":default:return a.pipe(Te(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 Ge().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,ss(i,r))}post(n,r,i={}){return this.request("POST",n,ss(i,r))}put(n,r,i={}){return this.request("PUT",n,ss(i,r))}static \u0275fac=function(n){return new(n||e)(b(ma))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),i5=new M("");function Qh(e,t){return t(e)}function s5(e,t){return(n,r)=>t.intercept(n,{handle:i=>e(i,r)})}function o5(e,t,n){return(r,i)=>_o(n,()=>t(r,s=>e(s,i)))}var Yh=new M(""),Ca=new M(""),a5=new M(""),Kh=new M("",{providedIn:"root",factory:()=>!0});function l5(){let e=null;return(t,n)=>{e===null&&(e=(v(Yh,{optional:!0})??[]).reduceRight(s5,Qh));let r=v(Dc);if(v(Kh)){let i=r.add();return e(t,n).pipe(ju(i))}else return e(t,n)}}var jl=(()=>{class e extends ma{backend;injector;chain=null;pendingTasks=v(Dc);contributeToStability=v(Kh);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(a5,[])]));this.chain=r.reduceRight((i,s)=>o5(i,s,this.injector),Qh)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(ju(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(n){return new(n||e)(b(Si),b(We))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),u5=/^\)\]\}',?\n/,c5=RegExp(`^${Uh}:`,"m");function d5(e){return"responseURL"in e&&e.responseURL?e.responseURL:c5.test(e.getAllResponseHeaders())?e.getResponseHeader(Uh):null}var zl=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new w(-2800,!1);let r=this.xhrFactory;return $e(null).pipe(zu(()=>new J(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((y,C)=>s.setRequestHeader(y,C.join(","))),n.headers.has(Hl)||s.setRequestHeader(Hl,e5),!n.headers.has(Fl)){let y=n.detectContentTypeHeader();y!==null&&s.setRequestHeader(Fl,y)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let y=n.responseType.toLowerCase();s.responseType=y!=="json"?y:"text"}let o=n.serializeBody(),a=null,l=()=>{if(a!==null)return a;let y=s.statusText||"OK",C=new Jt(s.getAllResponseHeaders()),R=d5(s)||n.url;return a=new t5({headers:C,status:s.status,statusText:y,url:R}),a},u=()=>{let{headers:y,status:C,statusText:R,url:Se}=l(),X=null;C!==r5&&(X=typeof s.response>"u"?s.responseText:s.response),C===0&&(C=X?n5:0);let un=C>=200&&C<300;if(n.responseType==="json"&&typeof X=="string"){let cn=X;X=X.replace(u5,"");try{X=X!==""?JSON.parse(X):null}catch(ht){X=cn,un&&(un=!1,X={error:ht,text:X})}}un?(i.next(new Mi({body:X,headers:y,status:C,statusText:R,url:Se||void 0})),i.complete()):i.error(new is({error:X,headers:y,status:C,statusText:R,url:Se||void 0}))},c=y=>{let{url:C}=l(),R=new is({error:y,status:s.status||0,statusText:s.statusText||"Unknown Error",url:C||void 0});i.error(R)},d=c;n.timeout&&(d=y=>{let{url:C}=l(),R=new is({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:C||void 0});i.error(R)});let p=!1,h=y=>{p||(i.next(l()),p=!0);let C={type:zt.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(C.total=y.total),n.responseType==="text"&&s.responseText&&(C.partialText=s.responseText),i.next(C)},g=y=>{let C={type:zt.UploadProgress,loaded:y.loaded};y.lengthComputable&&(C.total=y.total),i.next(C)};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",g)),s.send(o),i.next({type:zt.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",g)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(n){return new(n||e)(b(Ah))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),Jh=new M(""),h5="XSRF-TOKEN",p5=new M("",{providedIn:"root",factory:()=>h5}),f5="X-XSRF-TOKEN",g5=new M("",{providedIn:"root",factory:()=>f5}),Xh=class{},m5=(()=>{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=Dh(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(n){return new(n||e)(b(Be),b(p5))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),v5=/^(?:https?:)?\/\//i;function y5(e,t){if(!v(Jh)||e.method==="GET"||e.method==="HEAD"||v5.test(e.url))return t(e);let n=v(Xh).getToken(),r=v(g5);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}var ep=(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})(ep||{});function C5(e,t){return{\u0275kind:e,\u0275providers:t}}function b5(...e){let t=[ya,zl,jl,{provide:ma,useExisting:jl},{provide:Si,useFactory:()=>v(i5,{optional:!0})??v(zl)},{provide:Ca,useValue:y5,multi:!0},{provide:Jh,useValue:!0},{provide:Xh,useClass:m5}];for(let n of e)t.push(...n.\u0275providers);return li(t)}var Bl=new M("");function w5(){return C5(ep.LegacyInterceptors,[{provide:Bl,useFactory:l5},{provide:Ca,useExisting:Bl,multi:!0}])}var tp=(()=>{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=b(_5),r},providedIn:"root"})}return e})(),_5=(()=>{class e extends tp{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case it.NONE:return r;case it.HTML:return Vt(r,"HTML")?ft(r):md(this._doc,String(r)).toString();case it.STYLE:return Vt(r,"Style")?ft(r):r;case it.SCRIPT:if(Vt(r,"Script"))return ft(r);throw new w(5200,!1);case it.URL:return Vt(r,"URL")?ft(r):cd(String(r));case it.RESOURCE_URL:if(Vt(r,"ResourceURL"))return ft(r);throw new w(5201,!1);default:throw new w(5202,!1)}}bypassSecurityTrustHtml(n){return o0(n)}bypassSecurityTrustStyle(n){return a0(n)}bypassSecurityTrustScript(n){return l0(n)}bypassSecurityTrustUrl(n){return u0(n)}bypassSecurityTrustResourceUrl(n){return c0(n)}static \u0275fac=function(n){return new(n||e)(b(Be))};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),np={},x5={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(e,t){np[e]=t,x5[t]=e});function k5(e){for(var t=[],n=0,r=0,i=0;i<e.length;i+=1){var s=np[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",S5=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}},bn="TOKEN_LOGGER_CONFIG_ENGINE_FACTORY",M5=class{provideConfigEngine(e){return new S5(e)}},wn="TOKEN_LOGGER_MAPPER_SERVICE",O5=(()=>{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 $e({fileName:"",lineNumber:0,columnNumber:0});let s=this.getLocalPosition(i);if(!n.enableSourceMaps)return $e(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
|
-
`)[0].includes(".js:")||(
|
|
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 p=k5(c[d]);if(p.length>=4&&(u+=p[0],i+=p[1],s+=p[2],o+=p[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 Cn("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(Ar(a=>a instanceof Mi),Te(a=>a.body),Jf(3),Ia(1))):(console.error("NGXLogger : Can't get sourcemap because HttpBackend is not provided. You need to import HttpClientModule"),this.sourceMapCache.set(n,$e(null))));let o=this.sourceMapCache.get(n).pipe(Te(a=>a?this.getMapping(a,r):r),Oe(()=>$e(r)),Ia(1));return this.logPositionCache.set(s,o),o}}return e.\u0275fac=function(t){return new(t||e)(b(Si,8))},e.\u0275prov=E({token:e,factory:e.\u0275fac}),e})(),_n="TOKEN_LOGGER_METADATA_SERVICE",E5=(()=>{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)(b(Lh,8))},e.\u0275prov=E({token:e,factory:e.\u0275fac}),e})(),xn="TOKEN_LOGGER_RULES_SERVICE",T5=(()=>{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})(),kn="TOKEN_LOGGER_SERVER_SERVICE",P5=(()=>{class e{constructor(n,r){this.httpBackend=n,this.ngZone=r,this.serverCallsQueue=[],this.flushingQueue=new mu(!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"),$e(null);let s=new Cn("POST",n,r,i||{}),o=$e(s),a=this.alterHttpRequest(s);return Af(a)?o=a:a?o=$e(a):console.warn("NGXLogger : alterHttpRequest returned an invalid request. Using default one instead"),o.pipe(Fu(l=>l?this.httpBackend.handle(l):(console.warn("NGXLogger : alterHttpRequest returned an invalid request (observable). Using default one instead"),this.httpBackend.handle(s))),Ar(l=>l instanceof Mi),Te(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=T({},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 Jt;o.has("Content-Type")||o.set("Content-Type","application/json");let a=()=>{this.logOnServer(r.serverLoggingUrl,i,{headers:o,params:r.customHttpParams||new Ge,responseType:r.httpResponseType||"json",withCredentials:r.withCredentials||!1}).pipe(Oe(l=>(console.error("NGXLogger: Failed to log on server",l),fo(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(T({},n)),r.serverCallsBatchSize&&this.serverCallsQueue.length>r.serverCallsBatchSize&&this.flushQueue(r),r.serverCallsTimer>0&&!this.addToQueueTimer&&(this.addToQueueTimer=Nu(r.serverCallsTimer).subscribe(s=>{this.flushQueue(r)}))};this.flushingQueue.value===!0?this.flushingQueue.pipe(Ar(s=>s===!1),Hu(1)).subscribe(s=>{i()}):i()}}return e.\u0275fac=function(t){return new(t||e)(b(Si,8),b(oe,8))},e.\u0275prov=E({token:e,factory:e.\u0275fac}),e})(),Sn="TOKEN_LOGGER_WRITER_SERVICE",W=(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})(W||{}),I5=["purple","teal","gray","gray","red","red","red"],L5=(()=>{class e{constructor(n){this.platformId=n,this.prepareMetaStringFuncs=[this.getTimestampToWrite,this.getLevelToWrite,this.getFileDetailsToWrite,this.getContextToWrite],this.isIE=kC(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 W[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??I5;if(n.level!==W.OFF)return i[n.level]}logIE(n,r,i){let s=n.additional||[];switch(n.level){case W.WARN:console.warn(`${i} `,n.message,...s);break;case W.ERROR:case W.FATAL:console.error(`${i} `,n.message,...s);break;case W.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 W.WARN:console.warn(`%c${i}`,`color:${s}`,n.message,...o);break;case W.ERROR:case W.FATAL:console.error(`%c${i}`,`color:${s}`,n.message,...o);break;case W.INFO:console.info(`%c${i}`,`color:${s}`,n.message,...o);break;case W.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)(b(Do))},e.\u0275prov=E({token:e,factory:e.\u0275fac}),e})(),Le=(()=>{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(W.TRACE,n,r)}debug(n,...r){this._log(W.DEBUG,n,r)}info(n,...r){this._log(W.INFO,n,r)}log(n,...r){this._log(W.LOG,n,r)}warn(n,...r){this._log(W.WARN,n,r)}error(n,...r){this._log(W.ERROR,n,r)}fatal(n,...r){this._log(W.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(Hu(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)(b(wr),b(bn),b(_n),b(xn),b(wn),b(Sn),b(kn))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),D5=(()=>{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 Le(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)(b(Le),b(bn),b(_n),b(xn),b(wn),b(Sn),b(kn))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),A5=(()=>{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:bn,useClass:M5};else if(r.configEngineFactoryProvider.provide!==bn)throw new Error(`Wrong injection token for configEngineFactoryProvider, it should be '${bn}' and you used '${r.configEngineFactoryProvider.provide}'`);if(!r.metadataProvider)r.metadataProvider={provide:_n,useClass:E5};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:T5};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:O5};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:L5};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:P5};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:[Le,r.configProvider,r.configEngineFactoryProvider,r.metadataProvider,r.ruleProvider,r.mapperProvider,r.writerProvider,r.serverProvider,D5]}}static forChild(){return{ngModule:e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=_i({type:e}),e.\u0275inj=oi({imports:[[ke]]}),e})(),Ul={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>
|
|
1
|
+
"use strict";var WebComponents=(()=>{var Tr=Object.defineProperty;var _p=Object.getOwnPropertyDescriptor;var xp=Object.getOwnPropertyNames;var kp=Object.prototype.hasOwnProperty;var Sp=(e,t)=>{for(var n in t)Tr(e,n,{get:t[n],enumerable:!0})},Mp=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of xp(t))!kp.call(e,r)&&r!==n&&Tr(e,r,{get:()=>t[r],enumerable:!(i=_p(t,r))||i.enumerable});return e};var Op=e=>Mp(Tr({},"__esModule",{value:!0}),e);var o3={};Sp(o3,{initializeApp:()=>wp});var Ep=Object.defineProperty,Tp=Object.defineProperties,Pp=Object.getOwnPropertyDescriptors,ka=Object.getOwnPropertySymbols,Ip=Object.prototype.hasOwnProperty,Lp=Object.prototype.propertyIsEnumerable,Sa=(e,t,n)=>t in e?Ep(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t)=>{for(var n in t||={})Ip.call(t,n)&&Sa(e,n,t[n]);if(ka)for(var n of ka(t))Lp.call(t,n)&&Sa(e,n,t[n]);return e},V=(e,t)=>Tp(e,Pp(t)),Y=(e,t,n)=>new Promise((i,r)=>{var s=l=>{try{a(n.next(l))}catch(u){r(u)}},o=l=>{try{a(n.throw(l))}catch(u){r(u)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,o);a((n=n.apply(e,t)).next())}),ls;function Xl(){return ls}function it(e){let t=ls;return ls=e,t}var Dp=Symbol("NotFound");function io(e){return e===Dp||e?.name==="\u0275NotFound"}var te=null,ui=!1,ro=1,Ap=null,Ne=Symbol("SIGNAL");function A(e){let t=te;return te=e,t}function Vp(){return te}var rr={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 eu(e){if(ui)throw new Error("");if(te===null)return;te.consumerOnSignalRead(e);let t=te.producersTail;if(t!==void 0&&t.producer===e)return;let n,i=te.recomputing;if(i&&(n=t!==void 0?t.nextProducer:te.producers,n!==void 0&&n.producer===e)){te.producersTail=n,n.lastReadVersion=e.version;return}let r=e.consumersTail;if(r!==void 0&&r.consumer===te&&(!i||jp(r,te)))return;let s=Xt(te),o={producer:e,consumer:te,nextProducer:n,prevConsumer:r,lastReadVersion:e.version,nextConsumer:void 0};te.producersTail=o,t!==void 0?t.nextProducer=o:te.producers=o,s&&au(e,o)}function Rp(){ro++}function tu(e){if(!(Xt(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===ro)){if(!e.producerMustRecompute(e)&&!su(e)){Ma(e);return}e.producerRecomputeValue(e),Ma(e)}}function nu(e){if(e.consumers===void 0)return;let t=ui;ui=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let i=n.consumer;i.dirty||Np(i)}}finally{ui=t}}function iu(){return te?.consumerAllowSignalWrites!==!1}function Np(e){e.dirty=!0,nu(e),e.consumerMarkedDirty?.(e)}function Ma(e){e.dirty=!1,e.lastCleanEpoch=ro}function us(e){return e&&Fp(e),A(e)}function Fp(e){e.producersTail=void 0,e.recomputing=!0}function ru(e,t){A(t),e&&Hp(e)}function Hp(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Xt(e))do n=so(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function su(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,i=t.lastReadVersion;if(i!==n.version||(tu(n),i!==n.version))return!0}return!1}function ou(e){if(Xt(e)){let t=e.producers;for(;t!==void 0;)t=so(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function au(e,t){let n=e.consumersTail,i=Xt(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,!i)for(let r=e.producers;r!==void 0;r=r.nextProducer)au(r.producer,r)}function so(e){let t=e.producer,n=e.nextProducer,i=e.nextConsumer,r=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,i!==void 0?i.prevConsumer=r:t.consumersTail=r,r!==void 0)r.nextConsumer=i;else if(t.consumers=i,!Xt(t)){let s=t.producers;for(;s!==void 0;)s=so(s)}return n}function Xt(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function lu(e){Ap?.(e)}function jp(e,t){let n=t.producersTail;if(n!==void 0){let i=t.producers;do{if(i===e)return!0;if(i===n)break;i=i.nextProducer}while(i!==void 0)}return!1}function uu(e,t){return Object.is(e,t)}function zp(e,t){let n=Object.create(Bp);n.computation=e,t!==void 0&&(n.equal=t);let i=()=>{if(tu(n),eu(n),n.value===ci)throw n.error;return n.value};return i[Ne]=n,lu(n),i}var Pr=Symbol("UNSET"),Ir=Symbol("COMPUTING"),ci=Symbol("ERRORED"),Bp=V(T({},rr),{value:Pr,dirty:!0,error:null,equal:uu,kind:"computed",producerMustRecompute(e){return e.value===Pr||e.value===Ir},producerRecomputeValue(e){if(e.value===Ir)throw new Error("");let t=e.value;e.value=Ir;let n=us(e),i,r=!1;try{i=e.computation(),A(null),r=t!==Pr&&t!==ci&&i!==ci&&e.equal(t,i)}catch(s){i=ci,e.error=s}finally{ru(e,n)}if(r){e.value=t;return}e.value=i,e.version++}});function Up(){throw new Error}var cu=Up;function du(e){cu(e)}function Zp(e){cu=e}var $p=null;function qp(e,t){let n=Object.create(Qp);n.value=e,t!==void 0&&(n.equal=t);let i=()=>Gp(n);return i[Ne]=n,lu(n),[i,r=>hu(n,r),r=>Wp(n,r)]}function Gp(e){return eu(e),e.value}function hu(e,t){iu()||du(e),e.equal(e.value,t)||(e.value=t,Yp(e))}function Wp(e,t){iu()||du(e),hu(e,t(e.value))}var Qp=V(T({},rr),{equal:uu,value:void 0,kind:"signal"});function Yp(e){e.version++,Rp(),nu(e),$p?.(e)}function q(e){return typeof e=="function"}function sr(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 Lr=sr(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:
|
|
2
|
+
${t.map((n,i)=>`${i+1}) ${n.toString()}`).join(`
|
|
3
|
+
`)}`:"",this.name="UnsubscriptionError",this.errors=t});function Pi(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Fe=class cs{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:i}=this;if(q(i))try{i()}catch(s){t=s instanceof Lr?s.errors:[s]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let s of r)try{Oa(s)}catch(o){t=t??[],o instanceof Lr?t=[...t,...o.errors]:t.push(o)}}if(t)throw new Lr(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Oa(t);else{if(t instanceof cs){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)&&Pi(n,t)}remove(t){let{_finalizers:n}=this;n&&Pi(n,t),t instanceof cs&&t._removeParent(this)}};Fe.EMPTY=(()=>{let e=new Fe;return e.closed=!0,e})();var pu=Fe.EMPTY;function fu(e){return e instanceof Fe||e&&"closed"in e&&q(e.remove)&&q(e.add)&&q(e.unsubscribe)}function Oa(e){q(e)?e():e.unsubscribe()}var Ot={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ii={setTimeout(e,t,...n){let{delegate:i}=Ii;return i?.setTimeout?i.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Ii;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function gu(e){Ii.setTimeout(()=>{let{onUnhandledError:t}=Ot;if(t)t(e);else throw e})}function ds(){}var Kp=oo("C",void 0,void 0);function Jp(e){return oo("E",void 0,e)}function Xp(e){return oo("N",e,void 0)}function oo(e,t,n){return{kind:e,value:t,error:n}}var gt=null;function di(e){if(Ot.useDeprecatedSynchronousErrorHandling){let t=!gt;if(t&&(gt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:i}=gt;if(gt=null,n)throw i}}else e()}function ef(e){Ot.useDeprecatedSynchronousErrorHandling&>&&(gt.errorThrown=!0,gt.error=e)}var ao=class extends Fe{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,fu(e)&&e.add(this)):this.destination=sf}static create(e,t,n){return new Bt(e,t,n)}next(e){this.isStopped?Ar(Xp(e),this):this._next(e)}error(e){this.isStopped?Ar(Jp(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Ar(Kp,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()}}},tf=Function.prototype.bind;function Dr(e,t){return tf.call(e,t)}var nf=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)}}},Bt=class extends ao{constructor(e,t,n){super();let i;if(q(e)||!e)i={next:e??void 0,error:t??void 0,complete:n??void 0};else{let r;this&&Ot.useDeprecatedNextContext?(r=Object.create(e),r.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Dr(e.next,r),error:e.error&&Dr(e.error,r),complete:e.complete&&Dr(e.complete,r)}):i=e}this.destination=new nf(i)}};function Gn(e){Ot.useDeprecatedSynchronousErrorHandling?ef(e):gu(e)}function rf(e){throw e}function Ar(e,t){let{onStoppedNotification:n}=Ot;n&&Ii.setTimeout(()=>n(e,t))}var sf={closed:!0,next:ds,error:rf,complete:ds},lo=typeof Symbol=="function"&&Symbol.observable||"@@observable";function uo(e){return e}function of(e){return e.length===0?uo:e.length===1?e[0]:function(t){return e.reduce((n,i)=>i(n),t)}}var J=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let i=new e;return i.source=this,i.operator=n,i}subscribe(n,i,r){let s=lf(n)?n:new Bt(n,i,r);return di(()=>{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(i){n.error(i)}}forEach(n,i){return i=Ea(i),new i((r,s)=>{let o=new Bt({next:a=>{try{n(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:r});this.subscribe(o)})}_subscribe(n){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(n)}[lo](){return this}pipe(...n){return of(n)(this)}toPromise(n){return n=Ea(n),new n((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return e.create=t=>new e(t),e})();function Ea(e){var t;return(t=e??Ot.Promise)!==null&&t!==void 0?t:Promise}function af(e){return e&&q(e.next)&&q(e.error)&&q(e.complete)}function lf(e){return e&&e instanceof ao||af(e)&&fu(e)}function uf(e){return q(e?.lift)}function ge(e){return t=>{if(uf(t))return t.lift(function(n){try{return e(n,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function ue(e,t,n,i,r){return new cf(e,t,n,i,r)}var cf=class extends ao{constructor(e,t,n,i,r,s){super(e),this.onFinalize=r,this.shouldUnsubscribe=s,this._next=t?function(o){try{t(o)}catch(a){e.error(a)}}:super._next,this._error=i?function(o){try{i(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))}}},df=sr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}),Je=(()=>{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 i=new Ta(this,this);return i.operator=n,i}_throwIfClosed(){if(this.closed)throw new df}next(n){di(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(n)}})}error(n){di(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:i}=this;for(;i.length;)i.shift().error(n)}})}complete(){di(()=>{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:i,isStopped:r,observers:s}=this;return i||r?pu:(this.currentObservers=null,s.push(n),new Fe(()=>{this.currentObservers=null,Pi(s,n)}))}_checkFinalizedStatuses(n){let{hasError:i,thrownError:r,isStopped:s}=this;i?n.error(r):s&&n.complete()}asObservable(){let n=new J;return n.source=this,n}}return e.create=(t,n)=>new Ta(t,n),e})(),Ta=class extends Je{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:pu}},mu=class extends Je{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)}},co={now(){return(co.delegate||Date).now()},delegate:void 0},vu=class extends Je{constructor(e=1/0,t=1/0,n=co){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:i,_timestampProvider:r,_windowTime:s}=this;t||(n.push(e),!i&&n.push(r.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let t=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:i}=this,r=i.slice();for(let s=0;s<r.length&&!e.closed;s+=n?1:2)e.next(r[s]);return this._checkFinalizedStatuses(e),t}_trimBuffer(){let{_bufferSize:e,_timestampProvider:t,_buffer:n,_infiniteTimeWindow:i}=this,r=(i?1:2)*e;if(e<1/0&&r<n.length&&n.splice(0,n.length-r),!i){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)}}},hf=class extends Fe{constructor(e,t){super()}schedule(e,t=0){return this}},Li={setInterval(e,t,...n){let{delegate:i}=Li;return i?.setInterval?i.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Li;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},pf=class extends hf{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 i=this.id,r=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return Li.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&&Li.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,i;try{this.work(e)}catch(r){n=!0,i=r||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:e,scheduler:t}=this,{actions:n}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Pi(n,this),e!=null&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}},hs=class yu{constructor(t,n=yu.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,i){return new this.schedulerActionCtor(this,t).schedule(i,n)}};hs.now=co.now;var ff=class extends hs{constructor(e,t=hs.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}}},Cu=new ff(pf),gf=Cu,bu=new J(e=>e.complete());function wu(e){return e&&q(e.schedule)}function ho(e){return e[e.length-1]}function mf(e){return q(ho(e))?e.pop():void 0}function _u(e){return wu(ho(e))?e.pop():void 0}function vf(e,t){return typeof ho(e)=="number"?e.pop():t}function yf(e,t,n,i){function r(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(i.next(c))}catch(d){o(d)}}function l(c){try{u(i.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):r(c.value).then(a,l)}u((i=i.apply(e,t||[])).next())})}function Pa(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ht(e){return this instanceof Ht?(this.v=e,this):new Ht(e)}function Cf(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(e,t||[]),r,s=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),r[Symbol.asyncIterator]=function(){return this},r;function o(h){return function(g){return Promise.resolve(g).then(h,d)}}function a(h,g){i[h]&&(r[h]=function(y){return new Promise(function(C,R){s.push([h,y,C,R])>1||l(h,y)})},g&&(r[h]=g(r[h])))}function l(h,g){try{u(i[h](g))}catch(y){p(s[0][3],y)}}function u(h){h.value instanceof Ht?Promise.resolve(h.value.v).then(c,d):p(s[0][2],h)}function c(h){l("next",h)}function d(h){l("throw",h)}function p(h,g){h(g),s.shift(),s.length&&l(s[0][0],s[0][1])}}function bf(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 Pa=="function"?Pa(e):e[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(s){n[s]=e[s]&&function(o){return new Promise(function(a,l){o=e[s](o),r(a,l,o.done,o.value)})}}function r(s,o,a,l){Promise.resolve(l).then(function(u){s({value:u,done:a})},o)}}var xu=e=>e&&typeof e.length=="number"&&typeof e!="function";function ku(e){return q(e?.then)}function Su(e){return q(e[lo])}function Mu(e){return Symbol.asyncIterator&&q(e?.[Symbol.asyncIterator])}function Ou(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 wf(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Eu=wf();function Tu(e){return q(e?.[Eu])}function Pu(e){return Cf(this,arguments,function*(){let t=e.getReader();try{for(;;){let{value:n,done:i}=yield Ht(t.read());if(i)return yield Ht(void 0);yield yield Ht(n)}}finally{t.releaseLock()}})}function Iu(e){return q(e?.getReader)}function de(e){if(e instanceof J)return e;if(e!=null){if(Su(e))return _f(e);if(xu(e))return xf(e);if(ku(e))return kf(e);if(Mu(e))return Lu(e);if(Tu(e))return Sf(e);if(Iu(e))return Mf(e)}throw Ou(e)}function _f(e){return new J(t=>{let n=e[lo]();if(q(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function xf(e){return new J(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function kf(e){return new J(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,gu)})}function Sf(e){return new J(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Lu(e){return new J(t=>{Of(e,t).catch(n=>t.error(n))})}function Mf(e){return Lu(Pu(e))}function Of(e,t){var n,i,r,s;return yf(this,void 0,void 0,function*(){try{for(n=bf(e);i=yield n.next(),!i.done;){let o=i.value;if(t.next(o),t.closed)return}}catch(o){r={error:o}}finally{try{i&&!i.done&&(s=n.return)&&(yield s.call(n))}finally{if(r)throw r.error}}t.complete()})}function qe(e,t,n,i=0,r=!1){let s=t.schedule(function(){n(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(s),!r)return s}function Du(e,t=0){return ge((n,i)=>{n.subscribe(ue(i,r=>qe(i,e,()=>i.next(r),t),()=>qe(i,e,()=>i.complete(),t),r=>qe(i,e,()=>i.error(r),t)))})}function Au(e,t=0){return ge((n,i)=>{i.add(e.schedule(()=>n.subscribe(i),t))})}function Ef(e,t){return de(e).pipe(Au(t),Du(t))}function Tf(e,t){return de(e).pipe(Au(t),Du(t))}function Pf(e,t){return new J(n=>{let i=0;return t.schedule(function(){i===e.length?n.complete():(n.next(e[i++]),n.closed||this.schedule())})})}function If(e,t){return new J(n=>{let i;return qe(n,t,()=>{i=e[Eu](),qe(n,t,()=>{let r,s;try{({value:r,done:s}=i.next())}catch(o){n.error(o);return}s?n.complete():n.next(r)},0,!0)}),()=>q(i?.return)&&i.return()})}function Vu(e,t){if(!e)throw new Error("Iterable cannot be null");return new J(n=>{qe(n,t,()=>{let i=e[Symbol.asyncIterator]();qe(n,t,()=>{i.next().then(r=>{r.done?n.complete():n.next(r.value)})},0,!0)})})}function Lf(e,t){return Vu(Pu(e),t)}function Df(e,t){if(e!=null){if(Su(e))return Ef(e,t);if(xu(e))return Pf(e,t);if(ku(e))return Tf(e,t);if(Mu(e))return Vu(e,t);if(Tu(e))return If(e,t);if(Iu(e))return Lf(e,t)}throw Ou(e)}function po(e,t){return t?Df(e,t):de(e)}function $e(...e){let t=_u(e);return po(e,t)}function fo(e,t){let n=q(e)?e:()=>e,i=r=>r.error(n());return new J(t?r=>t.schedule(i,0,r):i)}function Af(e){return!!e&&(e instanceof J||q(e.lift)&&q(e.subscribe))}var Vf=sr(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function nt(e,t){let n=typeof t=="object";return new Promise((i,r)=>{let s=new Bt({next:o=>{i(o),s.unsubscribe()},error:r,complete:()=>{n?i(t.defaultValue):r(new Vf)}});e.subscribe(s)})}function Ru(e){return e instanceof Date&&!isNaN(e)}var Rf=sr(e=>function(t=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t});function pt(e,t){let{first:n,each:i,with:r=Nf,scheduler:s=t??Cu,meta:o=null}=Ru(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&i==null)throw new TypeError("No timeout provided.");return ge((a,l)=>{let u,c,d=null,p=0,h=g=>{c=qe(l,s,()=>{try{u.unsubscribe(),de(r({meta:o,lastValue:d,seen:p})).subscribe(l)}catch(y){l.error(y)}},g)};u=a.subscribe(ue(l,g=>{c?.unsubscribe(),p++,l.next(d=g),i>0&&h(i)},void 0,void 0,()=>{c?.closed||c?.unsubscribe(),d=null})),!p&&h(n!=null?typeof n=="number"?n:+n-s.now():i)})}function Nf(e){throw new Rf(e)}function Te(e,t){return ge((n,i)=>{let r=0;n.subscribe(ue(i,s=>{i.next(e.call(t,s,r++))}))})}var{isArray:Ff}=Array;function Hf(e,t){return Ff(t)?e(...t):e(t)}function jf(e){return Te(t=>Hf(e,t))}var{isArray:zf}=Array,{getPrototypeOf:Bf,prototype:Uf,keys:Zf}=Object;function $f(e){if(e.length===1){let t=e[0];if(zf(t))return{args:t,keys:null};if(qf(t)){let n=Zf(t);return{args:n.map(i=>t[i]),keys:n}}}return{args:e,keys:null}}function qf(e){return e&&typeof e=="object"&&Bf(e)===Uf}function Gf(e,t){return e.reduce((n,i,r)=>(n[i]=t[r],n),{})}function Wf(e,t,n,i,r,s,o,a){let l=[],u=0,c=0,d=!1,p=()=>{d&&!l.length&&!u&&t.complete()},h=y=>u<i?g(y):l.push(y),g=y=>{s&&t.next(y),u++;let C=!1;de(n(y,c++)).subscribe(ue(t,R=>{r?.(R),s?h(R):t.next(R)},()=>{C=!0},void 0,()=>{if(C)try{for(u--;l.length&&u<i;){let R=l.shift();o?qe(t,o,()=>g(R)):g(R)}p()}catch(R){t.error(R)}}))};return e.subscribe(ue(t,h,()=>{d=!0,p()})),()=>{a?.()}}function Di(e,t,n=1/0){return q(t)?Di((i,r)=>Te((s,o)=>t(i,s,r,o))(de(e(i,r))),n):(typeof t=="number"&&(n=t),ge((i,r)=>Wf(i,r,e,n)))}function Qf(e=1/0){return Di(uo,e)}function Yf(...e){let t=mf(e),{args:n,keys:i}=$f(e),r=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;de(n[c]).subscribe(ue(s,p=>{d||(d=!0,u--),a[c]=p},()=>l--,void 0,()=>{(!l||!d)&&(u||s.next(i?Gf(i,a):a),s.complete())}))}});return t?r.pipe(jf(t)):r}function Nu(e=0,t,n=gf){let i=-1;return t!=null&&(wu(t)?n=t:i=t),new J(r=>{let s=Ru(e)?+e-n.now():e;s<0&&(s=0);let o=0;return n.schedule(function(){r.closed||(r.next(o++),0<=i?this.schedule(void 0,i):r.complete())},s)})}function Kf(...e){let t=_u(e),n=vf(e,1/0),i=e;return i.length?i.length===1?de(i[0]):Qf(n)(po(i,t)):bu}function Ai(e,t){return ge((n,i)=>{let r=0;n.subscribe(ue(i,s=>e.call(t,s,r++)&&i.next(s)))})}function Oe(e){return ge((t,n)=>{let i=null,r=!1,s;i=t.subscribe(ue(n,void 0,void 0,o=>{s=de(e(o,Oe(e)(t))),i?(i.unsubscribe(),i=null,s.subscribe(n)):r=!0})),r&&(i.unsubscribe(),i=null,s.subscribe(n))})}function Fu(e,t){return q(t)?Di(e,t,1):Di(e,1)}function Hu(e){return e<=0?()=>bu:ge((t,n)=>{let i=0;t.subscribe(ue(n,r=>{++i<=e&&(n.next(r),e<=i&&n.complete())}))})}function ju(e){return ge((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Jf(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:i,resetOnSuccess:r=!1}=t;return n<=0?uo:ge((s,o)=>{let a=0,l,u=()=>{let c=!1;l=s.subscribe(ue(o,d=>{r&&(a=0),o.next(d)},void 0,d=>{if(a++<n){let p=()=>{l?(l.unsubscribe(),l=null,u()):c=!0};if(i!=null){let h=typeof i=="number"?Nu(i):de(i(d,a)),g=ue(o,()=>{g.unsubscribe(),p()},()=>{o.complete()});h.subscribe(g)}else p()}else o.error(d)})),c&&(l.unsubscribe(),l=null,u())};u()})}function Xf(e={}){let{connector:t=()=>new Je,resetOnError:n=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=e;return s=>{let o,a,l,u=0,c=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},h=()=>{p(),o=l=void 0,c=d=!1},g=()=>{let y=o;h(),y?.unsubscribe()};return ge((y,C)=>{u++,!d&&!c&&p();let R=l=l??t();C.add(()=>{u--,u===0&&!d&&!c&&(a=Vr(g,r))}),R.subscribe(C),!o&&u>0&&(o=new Bt({next:Se=>R.next(Se),error:Se=>{d=!0,p(),a=Vr(h,n,Se),R.error(Se)},complete:()=>{c=!0,p(),a=Vr(h,i),R.complete()}}),de(y).subscribe(o))})(s)}}function Vr(e,t,...n){if(t===!0){e();return}if(t===!1)return;let i=new Bt({next:()=>{i.unsubscribe(),e()}});return de(t(...n)).subscribe(i)}function Ia(e,t,n){let i,r=!1;return e&&typeof e=="object"?{bufferSize:i=1/0,windowTime:t=1/0,refCount:r=!1,scheduler:n}=e:i=e??1/0,Xf({connector:()=>new vu(i,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function zu(e,t){return ge((n,i)=>{let r=null,s=0,o=!1,a=()=>o&&!r&&i.complete();n.subscribe(ue(i,l=>{r?.unsubscribe();let u=0,c=s++;de(e(l,c)).subscribe(r=ue(i,d=>i.next(t?t(l,d,c,u++):d),()=>{r=null,a()}))},()=>{o=!0,a()}))})}function e1(e){return ge((t,n)=>{de(e).subscribe(ue(n,()=>n.complete(),ds)),!n.closed&&t.subscribe(n)})}function t1(e){let t=A(null);try{return e()}finally{A(t)}}var Bu="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",w=class extends Error{code;constructor(e,t){super(i1(e,t)),this.code=e}};function n1(e){return`NG0${Math.abs(e)}`}function i1(e,t){return`${n1(e)}${t?": "+t:""}`}var ot=globalThis;function U(e){for(let t in e)if(e[t]===U)return t;throw Error("")}function r1(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ut(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Ut).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 i=n.indexOf(`
|
|
4
|
+
`);return i>=0?n.slice(0,i):n}function La(e,t){return e?t?`${e} ${t}`:e:t||""}var s1=U({__forward_ref__:U});function Vn(e){return e.__forward_ref__=Vn,e.toString=function(){return Ut(this())},e}function se(e){return Uu(e)?e():e}function Uu(e){return typeof e=="function"&&e.hasOwnProperty(s1)&&e.__forward_ref__===Vn}function E(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function or(e){return{providers:e.providers||[],imports:e.imports||[]}}function go(e){return o1(e,Zu)}function o1(e,t){return e.hasOwnProperty(t)&&e[t]||null}function a1(e){return(e?.[Zu]??null)||null}function Da(e){return e&&e.hasOwnProperty(Aa)?e[Aa]:null}var Zu=U({\u0275prov:U}),Aa=U({\u0275inj:U}),M=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 $u(e){return e&&!!e.\u0275providers}var l1=U({\u0275cmp:U}),u1=U({\u0275dir:U}),c1=U({\u0275pipe:U}),Vi=U({\u0275fac:U}),vn=U({__NG_ELEMENT_ID__:U}),Va=U({__NG_ENV_ID__:U});function ar(e){return typeof e=="string"?e:e==null?"":String(e)}function d1(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():ar(e)}var qu=U({ngErrorCode:U}),h1=U({ngErrorMessage:U}),p1=U({ngTokenPath:U});function Gu(e,t){return Wu("",-200,t)}function mo(e,t){throw new w(-201,!1)}function Wu(e,t,n){let i=new w(t,e);return i[qu]=t,i[h1]=e,n&&(i[p1]=n),i}function f1(e){return e[qu]}var ps;function Qu(){return ps}function ve(e){let t=ps;return ps=e,t}function Yu(e,t,n){let i=go(e);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(n&8)return null;if(t!==void 0)return t;mo(e,"Injector")}var g1={},vt=g1,m1="__NG_DI_FLAG__",v1=class{injector;constructor(e){this.injector=e}retrieve(e,t){let n=Mn(t)||0;try{return this.injector.get(e,n&8?null:vt,n)}catch(i){if(io(i))return i;throw i}}};function y1(e,t=0){let n=Xl();if(n===void 0)throw new w(-203,!1);if(n===null)return Yu(e,void 0,t);{let i=C1(t),r=n.retrieve(e,i);if(io(r)){if(i.optional)return null;throw r}return r}}function b(e,t=0){return(Qu()||y1)(se(e),t)}function v(e,t){return b(e,Mn(t))}function Mn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function C1(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function fs(e){let t=[];for(let n=0;n<e.length;n++){let i=se(e[n]);if(Array.isArray(i)){if(i.length===0)throw new w(900,!1);let r,s=0;for(let o=0;o<i.length;o++){let a=i[o],l=b1(a);typeof l=="number"?l===-1?r=a.token:s|=l:r=a}t.push(b(r,s))}else t.push(b(i))}return t}function b1(e){return e[m1]}function Zt(e,t){return e.hasOwnProperty(Vi)?e[Vi]:null}function w1(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){let r=e[i],s=t[i];if(n&&(r=n(r),s=n(s)),s!==r)return!1}return!0}function _1(e){return e.flat(Number.POSITIVE_INFINITY)}function vo(e,t){e.forEach(n=>Array.isArray(n)?vo(n,t):t(n))}function Ku(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ri(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function x1(e,t,n,i){let r=e.length;if(r==t)e.push(n,i);else if(r===1)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;){let s=r-2;e[r]=e[s],r--}e[t]=n,e[t+1]=i}}function k1(e,t,n){let i=Rn(e,t);return i>=0?e[i|1]=n:(i=~i,x1(e,i,t,n)),i}function Rr(e,t){let n=Rn(e,t);if(n>=0)return e[n|1]}function Rn(e,t){return S1(e,t,1)}function S1(e,t,n){let i=0,r=e.length>>n;for(;r!==i;){let s=i+(r-i>>1),o=e[s<<n];if(t===o)return s<<n;o>t?r=s:i=s+1}return~(r<<n)}var yt={},ye=[],$t=new M(""),Ju=new M("",-1),Xu=new M(""),ec=class{get(e,t=vt){if(t===vt){let n=Wu("",-201);throw n.name="\u0275NotFound",n}return t}};function On(e){return e[l1]||null}function tc(e){return e[u1]||null}function M1(e){return e[c1]||null}function lr(e){return{\u0275providers:e}}function O1(e){return lr([{provide:$t,multi:!0,useValue:e}])}function E1(...e){return{\u0275providers:nc(!0,e),\u0275fromNgModule:!0}}function nc(e,...t){let n=[],i=new Set,r,s=o=>{n.push(o)};return vo(t,o=>{let a=o;gs(a,s,[],i)&&(r||=[],r.push(a))}),r!==void 0&&ic(r,s),n}function ic(e,t){for(let n=0;n<e.length;n++){let{ngModule:i,providers:r}=e[n];yo(r,s=>{t(s,i)})}}function gs(e,t,n,i){if(e=se(e),!e)return!1;let r=null,s=Da(e),o=!s&&On(e);if(!s&&!o){let l=e.ngModule;if(s=Da(l),s)r=l;else return!1}else{if(o&&!o.standalone)return!1;r=e}let a=i.has(r);if(o){if(a)return!1;if(i.add(r),o.dependencies){let l=typeof o.dependencies=="function"?o.dependencies():o.dependencies;for(let u of l)gs(u,t,n,i)}}else if(s){if(s.imports!=null&&!a){i.add(r);let u;vo(s.imports,c=>{gs(c,t,n,i)&&(u||=[],u.push(c))}),u!==void 0&&ic(u,t)}if(!a){let u=Zt(r)||(()=>new r);t({provide:r,useFactory:u,deps:ye},r),t({provide:Xu,useValue:r,multi:!0},r),t({provide:$t,useValue:()=>b(r),multi:!0},r)}let l=s.providers;if(l!=null&&!a){let u=e;yo(l,c=>{t(c,u)})}}else return!1;return r!==e&&e.providers!==void 0}function yo(e,t){for(let n of e)$u(n)&&(n=n.\u0275providers),Array.isArray(n)?yo(n,t):t(n)}var T1=U({provide:String,useValue:U});function rc(e){return e!==null&&typeof e=="object"&&T1 in e}function P1(e){return!!(e&&e.useExisting)}function I1(e){return!!(e&&e.useFactory)}function qt(e){return typeof e=="function"}function L1(e){return!!e.useClass}var Co=new M(""),hi={},Ra={},Nr;function bo(){return Nr===void 0&&(Nr=new ec),Nr}var We=class{},wo=class extends We{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,t,n,i){super(),this.parent=t,this.source=n,this.scopes=i,vs(e,s=>this.processProvider(s)),this.records.set(Ju,Rt(void 0,this)),i.has("environment")&&this.records.set(We,Rt(void 0,this));let r=this.records.get(Co);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(Xu,ye,{self:!0}))}retrieve(e,t){let n=Mn(t)||0;try{return this.get(e,vt,n)}catch(i){if(io(i))return i;throw i}}destroy(){fn(this),this._destroyed=!0;let e=A(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(),A(e)}}onDestroy(e){return fn(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){fn(this);let t=it(this),n=ve(void 0),i;try{return e()}finally{it(t),ve(n)}}get(e,t=vt,n){if(fn(this),e.hasOwnProperty(Va))return e[Va](this);let i=Mn(n),r,s=it(this),o=ve(void 0);try{if(!(i&4)){let l=this.records.get(e);if(l===void 0){let u=N1(e)&&go(e);u&&this.injectableDefInScope(u)?l=Rt(ms(e),hi):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l,i)}let a=i&2?bo():this.parent;return t=i&8&&t===vt?null:t,a.get(e,t)}catch(a){let l=f1(a);throw l===-200||l===-201?new w(l,null):a}finally{ve(o),it(s)}}resolveInjectorInitializers(){let e=A(null),t=it(this),n=ve(void 0),i;try{let r=this.get($t,ye,{self:!0});for(let s of r)s()}finally{it(t),ve(n),A(e)}}toString(){let e=[],t=this.records;for(let n of t.keys())e.push(Ut(n));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=se(e);let t=qt(e)?e:se(e&&e.provide),n=A1(e);if(!qt(e)&&e.multi===!0){let i=this.records.get(t);i||(i=Rt(void 0,hi,!0),i.factory=()=>fs(i.multi),this.records.set(t,i)),t=e,i.multi.push(e)}this.records.set(t,n)}hydrate(e,t,n){let i=A(null);try{if(t.value===Ra)throw Gu(Ut(e));return t.value===hi&&(t.value=Ra,t.value=t.factory(void 0,n)),typeof t.value=="object"&&t.value&&R1(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{A(i)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=se(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 ms(e){let t=go(e),n=t!==null?t.factory:Zt(e);if(n!==null)return n;if(e instanceof M)throw new w(204,!1);if(e instanceof Function)return D1(e);throw new w(204,!1)}function D1(e){if(e.length>0)throw new w(204,!1);let t=a1(e);return t!==null?()=>t.factory(e):()=>new e}function A1(e){if(rc(e))return Rt(void 0,e.useValue);{let t=sc(e);return Rt(t,hi)}}function sc(e,t,n){let i;if(qt(e)){let r=se(e);return Zt(r)||ms(r)}else if(rc(e))i=()=>se(e.useValue);else if(I1(e))i=()=>e.useFactory(...fs(e.deps||[]));else if(P1(e))i=(r,s)=>b(se(e.useExisting),s!==void 0&&s&8?8:void 0);else{let r=se(e&&(e.useClass||e.provide));if(V1(e))i=()=>new r(...fs(e.deps));else return Zt(r)||ms(r)}return i}function fn(e){if(e.destroyed)throw new w(205,!1)}function Rt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function V1(e){return!!e.deps}function R1(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function N1(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function vs(e,t){for(let n of e)Array.isArray(n)?vs(n,t):n&&$u(n)?vs(n.\u0275providers,t):t(n)}function _o(e,t){let n;e instanceof wo?(fn(e),n=e):n=new v1(e);let i,r=it(n),s=ve(void 0);try{return t()}finally{it(r),ve(s)}}function F1(){return Qu()!==void 0||Xl()!=null}var Xe=0,k=1,S=2,ne=3,Pe=4,De=5,Ni=6,Fi=7,ce=8,Ct=9,Qe=10,G=11,En=12,Na=13,en=14,He=15,bt=16,Nt=17,Ye=18,ur=19,oc=20,lt=21,Fr=22,Hi=23,Ce=24,Hr=25,ji=26,fe=27,ac=1,wt=7,zi=8,Gt=9,pe=10;function ut(e){return Array.isArray(e)&&typeof e[ac]=="object"}function et(e){return Array.isArray(e)&&e[ac]===!0}function lc(e){return(e.flags&4)!==0}function tn(e){return e.componentOffset>-1}function Nn(e){return(e.flags&1)===1}function Ke(e){return!!e.template}function Bi(e){return(e[S]&512)!==0}function nn(e){return(e[S]&256)===256}var uc="svg",H1="math";function je(e){for(;Array.isArray(e);)e=e[Xe];return e}function cc(e,t){return je(t[e])}function Ue(e,t){return je(t[e.index])}function dc(e,t){return e.data[t]}function ze(e,t){let n=t[e];return ut(n)?n:n[Xe]}function j1(e){return(e[S]&4)===4}function xo(e){return(e[S]&128)===128}function z1(e){return et(e[ne])}function Wt(e,t){return t==null?null:e[t]}function hc(e){e[Nt]=0}function ko(e){e[S]&1024||(e[S]|=1024,xo(e)&&cr(e))}function B1(e,t){for(;e>0;)t=t[en],e--;return t}function Tn(e){return!!(e[S]&9216||e[Ce]?.dirty)}function ys(e){e[Qe].changeDetectionScheduler?.notify(8),e[S]&64&&(e[S]|=1024),Tn(e)&&cr(e)}function cr(e){e[Qe].changeDetectionScheduler?.notify(0);let t=_t(e);for(;t!==null&&!(t[S]&8192||(t[S]|=8192,!xo(t)));)t=_t(t)}function pc(e,t){if(nn(e))throw new w(911,!1);e[lt]===null&&(e[lt]=[]),e[lt].push(t)}function U1(e,t){if(e[lt]===null)return;let n=e[lt].indexOf(t);n!==-1&&e[lt].splice(n,1)}function _t(e){let t=e[ne];return et(t)?t[ne]:t}function fc(e){return e[Fi]??=[]}function gc(e){return e.cleanup??=[]}function Z1(e,t,n,i){let r=fc(t);r.push(n),e.firstCreatePass&&gc(e).push(i,r.length-1)}var I={lFrame:Sc(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Cs=!1;function $1(){return I.lFrame.elementDepthCount}function q1(){I.lFrame.elementDepthCount++}function mc(){I.lFrame.elementDepthCount--}function So(){return I.bindingsEnabled}function G1(){return I.skipHydrationRootTNode!==null}function vc(e){return I.skipHydrationRootTNode===e}function yc(){I.skipHydrationRootTNode=null}function F(){return I.lFrame.lView}function ee(){return I.lFrame.tView}function L(e){return I.lFrame.contextLView=e,e[ce]}function D(e){return I.lFrame.contextLView=null,e}function ae(){let e=Cc();for(;e!==null&&e.type===64;)e=e.parent;return e}function Cc(){return I.lFrame.currentTNode}function W1(){let e=I.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Fn(e,t){let n=I.lFrame;n.currentTNode=e,n.isParent=t}function bc(){return I.lFrame.isParent}function Q1(){I.lFrame.isParent=!1}function wc(){return Cs}function Fa(e){let t=Cs;return Cs=e,t}function Y1(){let e=I.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function K1(e){return I.lFrame.bindingIndex=e}function Hn(){return I.lFrame.bindingIndex++}function J1(e){let t=I.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function X1(){return I.lFrame.inI18n}function eg(e,t){let n=I.lFrame;n.bindingIndex=n.bindingRootIndex=e,bs(t)}function tg(){return I.lFrame.currentDirectiveIndex}function bs(e){I.lFrame.currentDirectiveIndex=e}function ng(e){let t=I.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function _c(){return I.lFrame.currentQueryIndex}function Mo(e){I.lFrame.currentQueryIndex=e}function ig(e){let t=e[k];return t.type===2?t.declTNode:t.type===1?e[De]:null}function xc(e,t,n){if(n&4){let r=t,s=e;for(;(r=r.parent,r===null&&!(n&1))&&(r=ig(s),!(r===null||(s=s[en],r.type&10))););if(r===null)return!1;t=r,e=s}let i=I.lFrame=kc();return i.currentTNode=t,i.lView=e,!0}function Oo(e){let t=kc(),n=e[k];I.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function kc(){let e=I.lFrame,t=e===null?null:e.child;return t===null?Sc(e):t}function Sc(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 Mc(){let e=I.lFrame;return I.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Oc=Mc;function Eo(){let e=Mc();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 rg(e){return(I.lFrame.contextLView=B1(e,I.lFrame.contextLView))[ce]}function rn(){return I.lFrame.selectedIndex}function xt(e){I.lFrame.selectedIndex=e}function dr(){let e=I.lFrame;return dc(e.tView,e.selectedIndex)}function sg(){I.lFrame.currentNamespace=uc}function og(){return I.lFrame.currentNamespace}var Ec=!0;function To(){return Ec}function hr(e){Ec=e}function Ha(e,t=null,n=null,i){let r=ag(e,t,n,i);return r.resolveInjectorInitializers(),r}function ag(e,t=null,n=null,i,r=new Set){let s=[n||ye,E1(e)];return i=i||(typeof e=="object"?void 0:Ut(e)),new wo(s,t||bo(),i||null,r)}var pr=class Tc{static THROW_IF_NOT_FOUND=vt;static NULL=new ec;static create(t,n){if(Array.isArray(t))return Ha({name:""},n,t,"");{let i=t.name??"";return Ha({name:i},t.parent,t.providers,i)}}static \u0275prov=E({token:Tc,providedIn:"any",factory:()=>b(Ju)});static __NG_ELEMENT_ID__=-1},Be=new M(""),Po=(()=>{class e{static __NG_ELEMENT_ID__=ug;static __NG_ENV_ID__=n=>n}return e})(),lg=class extends Po{_lView;constructor(e){super(),this._lView=e}get destroyed(){return nn(this._lView)}onDestroy(e){let t=this._lView;return pc(t,e),()=>U1(t,e)}};function ug(){return new lg(F())}var jn=class{_console=console;handleError(e){this._console.error("ERROR",e)}},ct=new M("",{providedIn:"root",factory:()=>{let e=v(We),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(jn),t.handleError(n))}}}),cg={provide:$t,useValue:()=>{v(jn)},multi:!0},dg=new M("",{providedIn:"root",factory:()=>{let e=v(Be).defaultView;if(!e)return;let t=v(ct),n=s=>{t(s.reason),s.preventDefault()},i=s=>{s.error?t(s.error):t(new Error(s.message,{cause:s})),s.preventDefault()},r=()=>{e.addEventListener("unhandledrejection",n),e.addEventListener("error",i)};typeof Zone<"u"?Zone.root.run(r):r(),v(Po).onDestroy(()=>{e.removeEventListener("error",i),e.removeEventListener("unhandledrejection",n)})}});function hg(){return lr([O1(()=>{v(dg)})])}function pg(e){return typeof e=="function"&&e[Ne]!==void 0}function le(e,t){let[n,i,r]=qp(e,t?.equal),s=n,o=s[Ne];return s.set=i,s.update=r,s.asReadonly=fg.bind(s),s}function fg(){let e=this[Ne];if(e.readonlyFn===void 0){let t=()=>this();t[Ne]=e,e.readonlyFn=t}return e.readonlyFn}function Pc(e){return pg(e)&&typeof e.set=="function"}var zn=class{},Io=new M("",{providedIn:"root",factory:()=>!1}),Ic=new M(""),Lc=new M(""),sn=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new mu(!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=E({token:e,providedIn:"root",factory:()=>new e})}return e})(),Dc=(()=>{class e{internalPendingTasks=v(sn);scheduler=v(zn);errorHandler=v(ct);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let i=this.add();n().catch(this.errorHandler).finally(i)}static \u0275prov=E({token:e,providedIn:"root",factory:()=>new e})}return e})();function Ui(...e){}var gg=(()=>{class e{static \u0275prov=E({token:e,providedIn:"root",factory:()=>new mg})}return e})(),mg=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 fr(e){return{toString:e}.toString()}function vg(e){return typeof e=="function"}var yg=class{previousValue;currentValue;firstChange;constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}};function Ac(e,t,n,i){t!==null?t.applyValueToInputSignal(t,i):e[n]=i}var gr=(()=>{let e=()=>Vc;return e.ngInherit=!0,e})();function Vc(e){return e.type.prototype.ngOnChanges&&(e.setInput=bg),Cg}function Cg(){let e=Nc(this),t=e?.current;if(t){let n=e.previous;if(n===yt)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function bg(e,t,n,i,r){let s=this.declaredInputs[i],o=Nc(e)||wg(e,{previous:yt,current:null}),a=o.current||(o.current={}),l=o.previous,u=l[s];a[s]=new yg(u&&u.currentValue,n,l===yt),Ac(e,t,r,n)}var Rc="__ngSimpleChanges__";function Nc(e){return e[Rc]||null}function wg(e,t){return e[Rc]=t}var ja=[],$=function(e,t=null,n){for(let i=0;i<ja.length;i++){let r=ja[i];r(e,t,n)}};function _g(e,t,n){let{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){let o=Vc(t);(n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o)}r&&(n.preOrderHooks??=[]).push(0-e,r),s&&((n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s))}function Fc(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){let r=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:o,ngAfterViewInit:a,ngAfterViewChecked:l,ngOnDestroy:u}=r;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 pi(e,t,n){Hc(e,t,3,n)}function fi(e,t,n,i){(e[S]&3)===n&&Hc(e,t,n,i)}function jr(e,t){let n=e[S];(n&3)===t&&(n&=16383,n+=1,e[S]=n)}function Hc(e,t,n,i){let r=i!==void 0?e[Nt]&65535:0,s=i??-1,o=t.length-1,a=0;for(let l=r;l<o;l++)if(typeof t[l+1]=="number"){if(a=t[l],i!=null&&a>=i)break}else t[l]<0&&(e[Nt]+=65536),(a<s||s==-1)&&(xg(e,n,t,l),e[Nt]=(e[Nt]&4294901760)+l+2),l++}function za(e,t){$(4,e,t);let n=A(null);try{t.call(e)}finally{A(n),$(5,e,t)}}function xg(e,t,n,i){let r=n[i]<0,s=n[i+1],o=r?-n[i]:n[i],a=e[o];r?e[S]>>14<e[Nt]>>16&&(e[S]&3)===t&&(e[S]+=16384,za(a,s)):za(a,s)}var jt=-1,Bn=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,n,i){this.factory=e,this.name=i,this.canSeeViewProviders=t,this.injectImpl=n}};function kg(e){return(e.flags&8)!==0}function Sg(e){return(e.flags&16)!==0}function Mg(e,t,n){let i=0;for(;i<n.length;){let r=n[i];if(typeof r=="number"){if(r!==0)break;i++;let s=n[i++],o=n[i++],a=n[i++];e.setAttribute(t,o,a,s)}else{let s=r,o=n[++i];Eg(s)?e.setProperty(t,s,o):e.setAttribute(t,s,o),i++}}return i}function Og(e){return e===3||e===4||e===6}function Eg(e){return e.charCodeAt(0)===64}function Qt(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let i=0;i<t.length;i++){let r=t[i];typeof r=="number"?n=r:n===0||(n===-1||n===2?Ba(e,n,r,null,t[++i]):Ba(e,n,r,null,null))}}return e}function Ba(e,t,n,i,r){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){r!==null&&(e[s+1]=r);return}s++,r!==null&&s++}o!==-1&&(e.splice(o,0,t),s=o+1),e.splice(s++,0,n),r!==null&&e.splice(s++,0,r)}function jc(e){return e!==jt}function Zi(e){return e&32767}function Tg(e){return e>>16}function $i(e,t){let n=Tg(e),i=t;for(;n>0;)i=i[en],n--;return i}var ws=!0;function Ua(e){let t=ws;return ws=e,t}var Pg=256,zc=Pg-1,Bc=5,Ig=0,Re={};function Lg(e,t,n){let i;typeof n=="string"?i=n.charCodeAt(0)||0:n.hasOwnProperty(vn)&&(i=n[vn]),i==null&&(i=n[vn]=Ig++);let r=i&zc,s=1<<r;t.data[e+(r>>Bc)]|=s}function qi(e,t){let n=Uc(e,t);if(n!==-1)return n;let i=t[k];i.firstCreatePass&&(e.injectorIndex=t.length,zr(i.data,e),zr(t,null),zr(i.blueprint,null));let r=Lo(e,t),s=e.injectorIndex;if(jc(r)){let o=Zi(r),a=$i(r,t),l=a[k].data;for(let u=0;u<8;u++)t[s+u]=a[o+u]|l[o+u]}return t[s+8]=r,s}function zr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Uc(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Lo(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,i=null,r=t;for(;r!==null;){if(i=Qc(r),i===null)return jt;if(n++,r=r[en],i.injectorIndex!==-1)return i.injectorIndex|n<<16}return jt}function _s(e,t,n){Lg(e,t,n)}function Zc(e,t,n){if(n&8||e!==void 0)return e;mo(t,"NodeInjector")}function $c(e,t,n,i){if(n&8&&i===void 0&&(i=null),(n&3)===0){let r=e[Ct],s=ve(void 0);try{return r?r.get(t,i,n&8):Yu(t,i,n&8)}finally{ve(s)}}return Zc(i,t,n)}function qc(e,t,n,i=0,r){if(e!==null){if(t[S]&2048&&!(i&2)){let o=Rg(e,t,n,i,Re);if(o!==Re)return o}let s=Gc(e,t,n,i,Re);if(s!==Re)return s}return $c(t,n,i,r)}function Gc(e,t,n,i,r){let s=Ag(n);if(typeof s=="function"){if(!xc(t,e,i))return i&1?Zc(r,n,i):$c(t,n,i,r);try{let o;if(o=s(i),o==null&&!(i&8))mo(n);else return o}finally{Oc()}}else if(typeof s=="number"){let o=null,a=Uc(e,t),l=jt,u=i&1?t[He][De]:null;for((a===-1||i&4)&&(l=a===-1?Lo(e,t):t[a+8],l===jt||!$a(i,!1)?a=-1:(o=t[k],a=Zi(l),t=$i(l,t)));a!==-1;){let c=t[k];if(Za(s,a,c.data)){let d=Dg(a,t,n,o,i,u);if(d!==Re)return d}l=t[a+8],l!==jt&&$a(i,t[k].data[a+8]===u)&&Za(s,a,t)?(o=c,a=Zi(l),t=$i(l,t)):a=-1}}return r}function Dg(e,t,n,i,r,s){let o=t[k],a=o.data[e+8],l=i==null?tn(a)&&ws:i!=o&&(a.type&3)!==0,u=r&1&&s===a,c=gi(a,o,n,l,u);return c!==null?Pn(t,o,c,a,r):Re}function gi(e,t,n,i,r){let s=e.providerIndexes,o=t.data,a=s&1048575,l=e.directiveStart,u=e.directiveEnd,c=s>>20,d=i?a:a+c,p=r?a+c:u;for(let h=d;h<p;h++){let g=o[h];if(h<l&&n===g||h>=l&&g.type===n)return h}if(r){let h=o[l];if(h&&Ke(h)&&h.type===n)return l}return null}function Pn(e,t,n,i,r){let s=e[n],o=t.data;if(s instanceof Bn){let a=s;if(a.resolving){let h=d1(o[n]);throw Gu(h)}let l=Ua(a.canSeeViewProviders);a.resolving=!0;let u=o[n].type||o[n],c,d=a.injectImpl?ve(a.injectImpl):null,p=xc(e,i,0);try{s=e[n]=a.factory(void 0,r,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&_g(n,o[n],t)}finally{d!==null&&ve(d),Ua(l),a.resolving=!1,Oc()}}return s}function Ag(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&zc:Vg:t}function Za(e,t,n){let i=1<<e;return!!(n[t+(e>>Bc)]&i)}function $a(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 qc(this._tNode,this._lView,e,Mn(n),t)}};function Vg(){return new yn(ae(),F())}function Wc(e){return fr(()=>{let t=e.prototype.constructor,n=t[Vi]||xs(t),i=Object.prototype,r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){let s=r[Vi]||xs(r);if(s&&s!==n)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function xs(e){return Uu(e)?()=>{let t=xs(se(e));return t&&t()}:Zt(e)}function Rg(e,t,n,i,r){let s=e,o=t;for(;s!==null&&o!==null&&o[S]&2048&&!Bi(o);){let a=Gc(s,o,n,i|2,Re);if(a!==Re)return a;let l=s.parent;if(!l){let u=o[oc];if(u){let c=u.get(n,Re,i);if(c!==Re)return c}l=Qc(o),o=o[en]}s=l}return r}function Qc(e){let t=e[k],n=t.type;return n===2?t.declTNode:n===1?e[De]:null}function Ng(){return on(ae(),F())}function on(e,t){return new Et(Ue(e,t))}var Et=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Ng}return e})();function Fg(e){return e instanceof Et?e.nativeElement:e}function Hg(){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 Je}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=_1(e);(this._changesDetected=!w1(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]=Hg};function Yc(e){return(e.flags&128)===128}var Kc=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(Kc||{}),Jc=new Map,zg=0;function Bg(){return zg++}function Ug(e){Jc.set(e[ur],e)}function ks(e){Jc.delete(e[ur])}var qa="__ngContext__";function Yt(e,t){ut(t)?(e[qa]=t[ur],Ug(t)):e[qa]=t}function Xc(e){return td(e[En])}function ed(e){return td(e[Pe])}function td(e){for(;e!==null&&!et(e);)e=e[Pe];return e}var Ss;function Zg(e){Ss=e}function nd(){if(Ss!==void 0)return Ss;if(typeof document<"u")return document;throw new w(210,!1)}var id=new M("",{providedIn:"root",factory:()=>$g}),$g="ng",rd=new M(""),Do=new M("",{providedIn:"platform",factory:()=>"unknown"}),sd=new M("",{providedIn:"root",factory:()=>nd().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),qg="h",Gg="b",od=!1,Wg=new M("",{providedIn:"root",factory:()=>od}),Qg=(e,t,n,i)=>{};function Yg(e,t,n,i){Qg(e,t,n,i)}function ad(e){return(e.flags&32)===32}var Kg=()=>null;function ld(e,t,n=!1){return Kg(e,t,n)}function ud(e,t){let n=e.contentQueries;if(n!==null){let i=A(null);try{for(let r=0;r<n.length;r+=2){let s=n[r],o=n[r+1];if(o!==-1){let a=e.data[o];Mo(s),a.contentQueries(2,t[o],o)}}}finally{A(i)}}}function Ms(e,t,n){Mo(0);let i=A(null);try{t(e,n)}finally{A(i)}}function Ao(e,t,n){if(lc(t)){let i=A(null);try{let r=t.directiveStart,s=t.directiveEnd;for(let o=r;o<s;o++){let a=e.data[o];if(a.contentQueries){let l=n[o];a.contentQueries(1,l,o)}}}finally{A(i)}}}var kt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(kt||{}),Wn;function Jg(){if(Wn===void 0&&(Wn=null,ot.trustedTypes))try{Wn=ot.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Wn}function mr(e){return Jg()?.createHTML(e)||e}var Qn;function Xg(){if(Qn===void 0&&(Qn=null,ot.trustedTypes))try{Qn=ot.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Qn}function Ga(e){return Xg()?.createHTML(e)||e}var Tt=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Bu})`}},e0=class extends Tt{getTypeName(){return"HTML"}},t0=class extends Tt{getTypeName(){return"Style"}},n0=class extends Tt{getTypeName(){return"Script"}},i0=class extends Tt{getTypeName(){return"URL"}},r0=class extends Tt{getTypeName(){return"ResourceURL"}};function ft(e){return e instanceof Tt?e.changingThisBreaksApplicationSecurity:e}function Vt(e,t){let n=s0(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Bu})`)}return n===t}function s0(e){return e instanceof Tt&&e.getTypeName()||null}function o0(e){return new e0(e)}function a0(e){return new t0(e)}function l0(e){return new n0(e)}function u0(e){return new i0(e)}function c0(e){return new r0(e)}function d0(e){let t=new p0(e);return f0()?new h0(t):t}var h0=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let t=new window.DOMParser().parseFromString(mr(e),"text/html").body;return t===null?this.inertDocumentHelper.getInertBodyElement(e):(t.firstChild?.remove(),t)}catch{return null}}},p0=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=mr(e),t}};function f0(){try{return!!new window.DOMParser().parseFromString(mr(""),"text/html")}catch{return!1}}var g0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function cd(e){return e=String(e),e.match(g0)?e:"unsafe:"+e}function tt(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 i in n)n.hasOwnProperty(i)&&(t[i]=!0);return t}var dd=tt("area,br,col,hr,img,wbr"),hd=tt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),pd=tt("rp,rt"),m0=Un(pd,hd),v0=Un(hd,tt("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")),y0=Un(pd,tt("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")),Wa=Un(dd,v0,y0,m0),fd=tt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),C0=tt("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"),b0=tt("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"),w0=Un(fd,C0,b0),_0=tt("script,style,template"),x0=class{sanitizedSomething=!1;buf=[];sanitizeChildren(e){let t=e.firstChild,n=!0,i=[];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){i.push(t),t=M0(t);continue}for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let r=S0(t);if(r){t=r;break}t=i.pop()}}return this.buf.join("")}startElement(e){let t=Qa(e).toLowerCase();if(!Wa.hasOwnProperty(t))return this.sanitizedSomething=!0,!_0.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);let n=e.attributes;for(let i=0;i<n.length;i++){let r=n.item(i),s=r.name,o=s.toLowerCase();if(!w0.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let a=r.value;fd[o]&&(a=cd(a)),this.buf.push(" ",s,'="',Ya(a),'"')}return this.buf.push(">"),!0}endElement(e){let t=Qa(e).toLowerCase();Wa.hasOwnProperty(t)&&!dd.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Ya(e))}};function k0(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function S0(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw gd(t);return t}function M0(e){let t=e.firstChild;if(t&&k0(e,t))throw gd(t);return t}function Qa(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function gd(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var O0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,E0=/([^\#-~ |!])/g;function Ya(e){return e.replace(/&/g,"&").replace(O0,function(t){let n=t.charCodeAt(0),i=t.charCodeAt(1);return"&#"+((n-55296)*1024+(i-56320)+65536)+";"}).replace(E0,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Yn;function md(e,t){let n=null;try{Yn=Yn||d0(e);let i=t?String(t):"";n=Yn.getInertBodyElement(i);let r=5,s=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=Yn.getInertBodyElement(i)}while(i!==s);let o=new x0().sanitizeChildren(Ka(n)||n);return mr(o)}finally{if(n){let i=Ka(n)||n;for(;i.firstChild;)i.firstChild.remove()}}}function Ka(e){return"content"in e&&T0(e)?e.content:null}function T0(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var P0=/^>|^->|<!--|-->|--!>|<!-$/g,I0=/(<|>)/g,L0="\u200B$1\u200B";function D0(e){return e.replace(P0,t=>t.replace(I0,L0))}function A0(e,t){return e.createText(t)}function V0(e,t,n){e.setValue(t,n)}function R0(e,t){return e.createComment(D0(t))}function vd(e,t,n){return e.createElement(t,n)}function Gi(e,t,n,i,r){e.insertBefore(t,n,i,r)}function yd(e,t,n){e.appendChild(t,n)}function Ja(e,t,n,i,r){i!==null?Gi(e,t,n,i,r):yd(e,t,n)}function N0(e,t,n,i){e.removeChild(null,t,n,i)}function F0(e,t,n){e.setAttribute(t,"style",n)}function H0(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Cd(e,t,n){let{mergedAttrs:i,classes:r,styles:s}=n;i!==null&&Mg(e,t,i),r!==null&&H0(e,t,r),s!==null&&F0(e,t,s)}var rt=(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})(rt||{});function bd(e){let t=j0();return t?Ga(t.sanitize(rt.HTML,e)||""):Vt(e,"HTML")?Ga(ft(e)):md(nd(),ar(e))}function j0(){let e=F();return e&&e[Qe].sanitizer}function z0(e,t,n){let i=e.length;for(;;){let r=e.indexOf(t,n);if(r===-1)return r;if(r===0||e.charCodeAt(r-1)<=32){let s=t.length;if(r+s===i||e.charCodeAt(r+s)<=32)return r}n=r+1}}var wd="ng-template";function B0(e,t,n,i){let r=0;if(i){for(;r<t.length&&typeof t[r]=="string";r+=2)if(t[r]==="class"&&z0(t[r+1].toLowerCase(),n,0)!==-1)return!0}else if(Vo(e))return!1;if(r=t.indexOf(1,r),r>-1){let s;for(;++r<t.length&&typeof(s=t[r])=="string";)if(s.toLowerCase()===n)return!0}return!1}function Vo(e){return e.type===4&&e.value!==wd}function U0(e,t,n){let i=e.type===4&&!n?wd:e.value;return t===i}function Z0(e,t,n){let i=4,r=e.attrs,s=r!==null?G0(r):0,o=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!o&&!Me(i)&&!Me(l))return!1;if(o&&Me(l))continue;o=!1,i=l|i&1;continue}if(!o)if(i&4){if(i=2|i&1,l!==""&&!U0(e,l,n)||l===""&&t.length===1){if(Me(i))return!1;o=!0}}else if(i&8){if(r===null||!B0(e,r,l,n)){if(Me(i))return!1;o=!0}}else{let u=t[++a],c=$0(l,r,Vo(e),n);if(c===-1){if(Me(i))return!1;o=!0;continue}if(u!==""){let d;if(c>s?d="":d=r[c+1].toLowerCase(),i&2&&u!==d){if(Me(i))return!1;o=!0}}}}return Me(i)||o}function Me(e){return(e&1)===0}function $0(e,t,n,i){if(t===null)return-1;let r=0;if(i||!n){let s=!1;for(;r<t.length;){let o=t[r];if(o===e)return r;if(o===3||o===6)s=!0;else if(o===1||o===2){let a=t[++r];for(;typeof a=="string";)a=t[++r];continue}else{if(o===4)break;if(o===0){r+=4;continue}}r+=s?1:2}return-1}else return W0(t,e)}function q0(e,t,n=!1){for(let i=0;i<t.length;i++)if(Z0(e,t[i],n))return!0;return!1}function G0(e){for(let t=0;t<e.length;t++){let n=e[t];if(Og(n))return t}return e.length}function W0(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let i=e[n];if(typeof i=="number")return-1;if(i===t)return n;n++}return-1}function Xa(e,t){return e?":not("+t.trim()+")":t}function Q0(e){let t=e[0],n=1,i=2,r="",s=!1;for(;n<e.length;){let o=e[n];if(typeof o=="string")if(i&2){let a=e[++n];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else i&8?r+="."+o:i&4&&(r+=" "+o);else r!==""&&!Me(o)&&(t+=Xa(s,r),r=""),i=o,s=s||!Me(i);n++}return r!==""&&(t+=Xa(s,r)),t}function Y0(e){return e.map(Q0).join(",")}function K0(e){let t=[],n=[],i=1,r=2;for(;i<e.length;){let s=e[i];if(typeof s=="string")r===2?s!==""&&t.push(s,e[++i]):r===8&&n.push(s);else{if(!Me(r))break;r=s}i++}return n.length&&t.push(1,...n),t}var dt={};function Ro(e,t,n,i,r,s,o,a,l,u,c){let d=fe+i,p=d+r,h=J0(d,p),g=typeof u=="function"?u():u;return h[k]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof s=="function"?s():s,pipeRegistry:typeof o=="function"?o():o,firstChild:null,schemas:l,consts:g,incompleteFirstPass:!1,ssrId:c}}function J0(e,t){let n=[];for(let i=0;i<t;i++)n.push(i<e?null:dt);return n}function X0(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 No(e,t,n,i,r,s,o,a,l,u,c){let d=t.blueprint.slice();return d[Xe]=r,d[S]=i|4|128|8|64|1024,(u!==null||e&&e[S]&2048)&&(d[S]|=2048),hc(d),d[ne]=d[en]=e,d[ce]=n,d[Qe]=o||e&&e[Qe],d[G]=a||e&&e[G],d[Ct]=l||e&&e[Ct]||null,d[De]=s,d[ur]=Bg(),d[Ni]=c,d[oc]=u,d[He]=t.type==2?e[He]:d,d}function em(e,t,n){let i=Ue(t,e),r=X0(n),s=e[Qe].rendererFactory,o=Fo(e,No(e,r,null,_d(n),i,t,null,s.createRenderer(i,n),null,null,null));return e[t.index]=o}function _d(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function xd(e,t,n,i){if(n===0)return-1;let r=t.length;for(let s=0;s<n;s++)t.push(i),e.blueprint.push(i),e.data.push(null);return r}function Fo(e,t){return e[En]?e[Na][Pe]=t:e[En]=t,e[Na]=t,t}function _(e=1){kd(ee(),F(),rn()+e,!1)}function kd(e,t,n,i){if(!i)if((t[S]&3)===3){let r=e.preOrderCheckHooks;r!==null&&pi(t,r,n)}else{let r=e.preOrderHooks;r!==null&&fi(t,r,0,n)}xt(n)}var vr=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(vr||{});function Os(e,t,n,i){let r=A(null);try{let[s,o,a]=e.inputs[n],l=null;(o&vr.SignalBased)!==0&&(l=t[s][Ne]),l!==null&&l.transformFn!==void 0?i=l.transformFn(i):a!==null&&(i=a.call(t,i)),e.setInput!==null?e.setInput(t,l,i,n,s):Ac(t,l,s,i)}finally{A(r)}}var mt=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(mt||{}),tm;function Ho(e,t){return tm(e,t)}var Wi=new Set,Sd=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Sd||{}),jo=new M(""),el=new Set;function Md(e){el.has(e)||(el.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Od=!1,nm=class extends Je{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,F1()&&(this.destroyRef=v(Po,{optional:!0})??void 0,this.pendingTasks=v(sn,{optional:!0})??void 0)}emit(e){let t=A(null);try{super.next(e)}finally{A(t)}}subscribe(e,t,n){let i=e,r=t||(()=>null),s=n;if(e&&typeof e=="object"){let a=e;i=a.next?.bind(a),r=a.error?.bind(a),s=a.complete?.bind(a)}this.__isAsync&&(r=this.wrapInTimeout(r),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let o=super.subscribe({next:i,error:r,complete:s});return e instanceof Fe&&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)}})}}},N=nm;function Ed(e){let t,n;function i(){e=Ui;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),i()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),i()})),()=>i()}function tl(e){return queueMicrotask(()=>e()),()=>{e=Ui}}var zo="isAngularZone",Qi=zo+"_ID",im=0,oe=class Es{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new N(!1);onMicrotaskEmpty=new N(!1);onStable=new N(!1);onError=new N(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:s=Od}=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=!r&&i,o.shouldCoalesceRunChangeDetection=r,o.callbackScheduled=!1,o.scheduleInRootZone=s,om(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(zo)===!0}static assertInAngularZone(){if(!Es.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(Es.isInAngularZone())throw new w(909,!1)}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,r){let s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,rm,Ui,Ui);try{return s.runTask(o,n,i)}finally{s.cancelTask(o)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}},rm={};function Bo(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 sm(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Ed(()=>{e.callbackScheduled=!1,Ts(e),e.isCheckStableRunning=!0,Bo(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Ts(e)}function om(e){let t=()=>{sm(e)},n=im++;e._inner=e._inner.fork({name:"angular",properties:{[zo]:!0,[Qi]:n,[Qi+n]:!0},onInvokeTask:(i,r,s,o,a,l)=>{if(lm(l))return i.invokeTask(s,o,a,l);try{return nl(e),i.invokeTask(s,o,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),il(e)}},onInvoke:(i,r,s,o,a,l,u)=>{try{return nl(e),i.invoke(s,o,a,l,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!um(l)&&t(),il(e)}},onHasTask:(i,r,s,o)=>{i.hasTask(s,o),r===s&&(o.change=="microTask"?(e._hasPendingMicrotasks=o.microTask,Ts(e),Bo(e)):o.change=="macroTask"&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(i,r,s,o)=>(i.handleError(s,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}function Ts(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function nl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function il(e){e._nesting--,Bo(e)}var am=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new N;onMicrotaskEmpty=new N;onStable=new N;onError=new N;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,i){return e.apply(t,n)}};function lm(e){return Td(e,"__ignore_ng_zone__")}function um(e){return Td(e,"__scheduler_tick__")}function Td(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var cm=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=E({token:e,providedIn:"root",factory:()=>new e})}return e})(),dm=new M("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function Pd(e,t,n){let i=e.get(dm);if(Array.isArray(t))for(let r of t)i.queue.add(r),n?.detachedLeaveAnimationFns?.push(r);else i.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);i.scheduler&&i.scheduler(e)}function hm(e,t){for(let[n,i]of t)Pd(e,i.animateFns)}function rl(e,t,n,i){let r=e?.[ji]?.enter;t!==null&&r&&r.has(n.index)&&hm(i,r)}function Ft(e,t,n,i,r,s,o,a){if(r!=null){let l,u=!1;et(r)?l=r:ut(r)&&(u=!0,r=r[Xe]);let c=je(r);e===0&&i!==null?(rl(a,i,s,n),o==null?yd(t,i,c):Gi(t,i,c,o||null,!0)):e===1&&i!==null?(rl(a,i,s,n),Gi(t,i,c,o||null,!0)):e===2?sl(a,s,n,d=>{N0(t,c,u,d)}):e===3&&sl(a,s,n,()=>{t.destroyNode(c)}),l!=null&&Sm(t,e,n,l,s,i,o)}}function pm(e,t){Id(e,t),t[Xe]=null,t[De]=null}function fm(e,t,n,i,r,s){i[Xe]=r,i[De]=t,yr(e,i,n,1,r,s)}function Id(e,t){t[Qe].changeDetectionScheduler?.notify(9),yr(e,t,t[G],2,null,null)}function gm(e){let t=e[En];if(!t)return Br(e[k],e);for(;t;){let n=null;if(ut(t))n=t[En];else{let i=t[pe];i&&(n=i)}if(!n){for(;t&&!t[Pe]&&t!==e;)ut(t)&&Br(t[k],t),t=t[ne];t===null&&(t=e),ut(t)&&Br(t[k],t),n=t&&t[Pe]}t=n}}function Uo(e,t){let n=e[Gt],i=n.indexOf(t);n.splice(i,1)}function Ld(e,t){if(nn(t))return;let n=t[G];n.destroyNode&&yr(e,t,n,3,null,null),gm(t)}function Br(e,t){if(nn(t))return;let n=A(null);try{t[S]&=-129,t[S]|=256,t[Ce]&&ou(t[Ce]),ym(e,t),vm(e,t),t[k].type===1&&t[G].destroy();let i=t[bt];if(i!==null&&et(t[ne])){i!==t[ne]&&Uo(i,t);let r=t[Ye];r!==null&&r.detachView(e)}ks(t)}finally{A(n)}}function sl(e,t,n,i){let r=e?.[ji];if(r==null||r.leave==null||!r.leave.has(t.index))return i(!1);e&&Wi.add(e),Pd(n,()=>{if(r.leave&&r.leave.has(t.index)){let s=r.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)}r.detachedLeaveAnimationFns=void 0}r.running=Promise.allSettled(o),mm(e,i)}else e&&Wi.delete(e),i(!1)},r)}function mm(e,t){let n=e[ji]?.running;if(n){n.then(()=>{e[ji].running=void 0,Wi.delete(e),t(!0)});return}t(!1)}function vm(e,t){let n=e.cleanup,i=t[Fi];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?i[a]():i[-a].unsubscribe(),o+=2}else{let a=i[n[o+1]];n[o].call(a)}i!==null&&(t[Fi]=null);let r=t[lt];if(r!==null){t[lt]=null;for(let o=0;o<r.length;o++){let a=r[o];a()}}let s=t[Hi];if(s!==null){t[Hi]=null;for(let o of s)o.destroy()}}function ym(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let i=0;i<n.length;i+=2){let r=t[n[i]];if(!(r instanceof Bn)){let s=n[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){let a=r[s[o]],l=s[o+1];$(4,a,l);try{l.call(a)}finally{$(5,a,l)}}else{$(4,r,s);try{s.call(r)}finally{$(5,r,s)}}}}}function Cm(e,t,n){return bm(e,t.parent,n)}function bm(e,t,n){let i=t;for(;i!==null&&i.type&168;)t=i,i=t.parent;if(i===null)return n[Xe];if(tn(i)){let{encapsulation:r}=e.data[i.directiveStart+i.componentOffset];if(r===kt.None||r===kt.Emulated)return null}return Ue(i,n)}function wm(e,t,n){return xm(e,t,n)}function _m(e,t,n){return e.type&40?Ue(e,n):null}var xm=_m,ol;function Zo(e,t,n,i){let r=Cm(e,i,t),s=t[G],o=i.parent||t[De],a=wm(o,i,t);if(r!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Ja(s,r,n[l],a,!1);else Ja(s,r,n,a,!1);ol!==void 0&&ol(s,i,t,n,r)}function gn(e,t){if(t!==null){let n=t.type;if(n&3)return Ue(t,e);if(n&4)return Ps(-1,e[t.index]);if(n&8){let i=t.child;if(i!==null)return gn(e,i);{let r=e[t.index];return et(r)?Ps(-1,r):je(r)}}else{if(n&128)return gn(e,t.next);if(n&32)return Ho(t,e)()||je(e[t.index]);{let i=Dd(e,t);if(i!==null){if(Array.isArray(i))return i[0];let r=_t(e[He]);return gn(r,i)}else return gn(e,t.next)}}}return null}function Dd(e,t){if(t!==null){let n=e[He][De],i=t.projection;return n.projection[i]}return null}function Ps(e,t){let n=pe+e+1;if(n<t.length){let i=t[n],r=i[k].firstChild;if(r!==null)return gn(i,r)}return t[wt]}function $o(e,t,n,i,r,s,o){for(;n!=null;){let a=i[Ct];if(n.type===128){n=n.next;continue}let l=i[n.index],u=n.type;if(o&&t===0&&(l&&Yt(je(l),i),n.flags|=2),!ad(n))if(u&8)$o(e,t,n.child,i,r,s,!1),Ft(t,e,a,r,l,n,s,i);else if(u&32){let c=Ho(n,i),d;for(;d=c();)Ft(t,e,a,r,d,n,s,i);Ft(t,e,a,r,l,n,s,i)}else u&16?km(e,t,i,n,r,s):Ft(t,e,a,r,l,n,s,i);n=o?n.projectionNext:n.next}}function yr(e,t,n,i,r,s){$o(n,i,e.firstChild,t,r,s,!1)}function km(e,t,n,i,r,s){let o=n[He],a=o[De].projection[i.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++){let u=a[l];Ft(t,e,n[Ct],r,u,i,s,n)}else{let l=a,u=o[ne];Yc(i)&&(l.flags|=128),$o(e,t,l,u,r,s,!0)}}function Sm(e,t,n,i,r,s,o){let a=i[wt],l=je(i);a!==l&&Ft(t,e,n,s,a,r,o);for(let u=pe;u<i.length;u++){let c=i[u];yr(c[k],c,e,t,s,a)}}function Mm(e,t,n,i,r){if(t)r?e.addClass(n,i):e.removeClass(n,i);else{let s=i.indexOf("-")===-1?void 0:mt.DashCase;r==null?e.removeStyle(n,i,s):(typeof r=="string"&&r.endsWith("!important")&&(r=r.slice(0,-10),s|=mt.Important),e.setStyle(n,i,r,s))}}function Ad(e,t,n,i,r){let s=rn(),o=i&2;try{xt(-1),o&&t.length>fe&&kd(e,t,fe,!1),$(o?2:0,r,n),n(i,r)}finally{xt(s),$(o?3:1,r,n)}}function Cr(e,t,n){Lm(e,t,n),(n.flags&64)===64&&Dm(e,t,n)}function br(e,t,n=Ue){let i=t.localNames;if(i!==null){let r=t.index+1;for(let s=0;s<i.length;s+=2){let o=i[s+1],a=o===-1?n(t,e):e[o];e[r++]=a}}}function Om(e,t,n,i){let r=i.get(Wg,od)||n===kt.ShadowDom,s=e.selectRootElement(t,r);return Em(s),s}function Em(e){Tm(e)}var Tm=()=>null;function Pm(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Vd(e,t,n,i,r,s){let o=t[k];if(Qo(e,o,t,n,i)){tn(e)&&Im(t,e.index);return}e.type&3&&(n=Pm(n)),Rd(e,t,n,i,r,s)}function Rd(e,t,n,i,r,s){if(e.type&3){let o=Ue(e,t);i=s!=null?s(i,e.value||"",n):i,r.setProperty(o,n,i)}else e.type&12}function Im(e,t){let n=ze(t,e);n[S]&16||(n[S]|=64)}function Lm(e,t,n){let i=n.directiveStart,r=n.directiveEnd;tn(n)&&em(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||qi(n,t);let s=n.initialInputs;for(let o=i;o<r;o++){let a=e.data[o],l=Pn(t,e,o,n);if(Yt(l,t),s!==null&&Nm(t,o-i,l,a,n,s),Ke(a)){let u=ze(n.index,t);u[ce]=Pn(t,e,o,n)}}}function Dm(e,t,n){let i=n.directiveStart,r=n.directiveEnd,s=n.index,o=tg();try{xt(s);for(let a=i;a<r;a++){let l=e.data[a],u=t[a];bs(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&Am(l,u)}}finally{xt(-1),bs(o)}}function Am(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function qo(e,t){let n=e.directiveRegistry,i=null;if(n)for(let r=0;r<n.length;r++){let s=n[r];q0(t,s.selectors,!1)&&(i??=[],Ke(s)?i.unshift(s):i.push(s))}return i}function Vm(e,t,n,i,r,s){let o=Ue(e,t);Rm(t[G],o,s,e.value,n,i,r)}function Rm(e,t,n,i,r,s,o){if(s==null)e.removeAttribute(t,r,n);else{let a=o==null?ar(s):o(s,i||"",r);e.setAttribute(t,r,a,n)}}function Nm(e,t,n,i,r,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];Os(i,n,l,u)}}function Go(e,t,n,i,r){let s=fe+n,o=t[k],a=r(o,t,e,i,n);t[s]=a,Fn(e,!0);let l=e.type===2;return l?(Cd(t[G],a,e),($1()===0||Nn(e))&&Yt(a,t),q1()):Yt(a,t),To()&&(!l||!ad(e))&&Zo(o,t,a,e),e}function Wo(e){let t=e;return bc()?Q1():(t=t.parent,Fn(t,!1)),t}function Fm(e,t){let n=e[Ct];if(!n)return;let i;try{i=n.get(ct,null)}catch{i=null}i?.(t)}function Qo(e,t,n,i,r){let s=e.inputs?.[i],o=e.hostDirectiveInputs?.[i],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];Os(d,n[u],c,r),a=!0}if(s)for(let l of s){let u=n[l],c=t.data[l];Os(c,u,i,r),a=!0}return a}function Hm(e,t){let n=ze(t,e),i=n[k];jm(i,n);let r=n[Xe];r!==null&&n[Ni]===null&&(n[Ni]=ld(r,n[Ct])),$(18),Yo(i,n,n[ce]),$(19,n[ce])}function jm(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Yo(e,t,n){Oo(t);try{let i=e.viewQuery;i!==null&&Ms(1,i,n);let r=e.template;r!==null&&Ad(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Ye]?.finishViewCreation(e),e.staticContentQueries&&ud(e,t),e.staticViewQueries&&Ms(2,e.viewQuery,n);let s=e.components;s!==null&&zm(t,s)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{t[S]&=-5,Eo()}}function zm(e,t){for(let n=0;n<t.length;n++)Hm(e,t[n])}function Bm(e,t,n,i){let r=A(null);try{let s=t.tView,o=e[S]&4096?4096:16,a=No(e,s,n,o,null,t,null,null,i?.injector??null,i?.embeddedViewInjector??null,i?.dehydratedView??null),l=e[t.index];a[bt]=l;let u=e[Ye];return u!==null&&(a[Ye]=u.createEmbeddedView(s)),Yo(s,a,n),a}finally{A(r)}}function al(e,t){return!t||t.firstChild===null||Yc(e)}function Yi(e,t,n,i,r=!1){for(;n!==null;){if(n.type===128){n=r?n.projectionNext:n.next;continue}let s=t[n.index];s!==null&&i.push(je(s)),et(s)&&Um(s,i);let o=n.type;if(o&8)Yi(e,t,n.child,i);else if(o&32){let a=Ho(n,t),l;for(;l=a();)i.push(l)}else if(o&16){let a=Dd(t,n);if(Array.isArray(a))i.push(...a);else{let l=_t(t[He]);Yi(l[k],l,a,i,!0)}}n=r?n.projectionNext:n.next}return i}function Um(e,t){for(let n=pe;n<e.length;n++){let i=e[n],r=i[k].firstChild;r!==null&&Yi(i[k],i,r,t)}e[wt]!==e[Xe]&&t.push(e[wt])}function Nd(e){if(e[Hr]!==null){for(let t of e[Hr])t.impl.addSequence(t);e[Hr].length=0}}var Fd=[];function Zm(e){return e[Ce]??$m(e)}function $m(e){let t=Fd.pop()??Object.create(Gm);return t.lView=e,t}function qm(e){e.lView[Ce]!==e&&(e.lView=null,Fd.push(e))}var Gm=V(T({},rr),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{cr(e.lView)},consumerOnSignalRead(){this.lView[Ce]=this}});function Wm(e){let t=e[Ce]??Object.create(Qm);return t.lView=e,t}var Qm=V(T({},rr),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=_t(e.lView);for(;t&&!Hd(t[k]);)t=_t(t);t&&ko(t)},consumerOnSignalRead(){this.lView[Ce]=this}});function Hd(e){return e.type!==2}function jd(e){if(e[Hi]===null)return;let t=!0;for(;t;){let n=!1;for(let i of e[Hi])i.dirty&&(n=!0,i.zone===null||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));t=n&&!!(e[S]&8192)}}var Ym=100;function zd(e,t=0){let n=e[Qe].rendererFactory,i=!1;i||n.begin?.();try{Km(e,t)}finally{i||n.end?.()}}function Km(e,t){let n=wc();try{Fa(!0),Is(e,t);let i=0;for(;Tn(e);){if(i===Ym)throw new w(103,!1);i++,Is(e,1)}}finally{Fa(n)}}function Jm(e,t,n,i){if(nn(t))return;let r=t[S],s=!1,o=!1;Oo(t);let a=!0,l=null,u=null;s||(Hd(e)?(u=Zm(t),l=us(u)):Vp()===null?(a=!1,u=Wm(t),l=us(u)):t[Ce]&&(ou(t[Ce]),t[Ce]=null));try{hc(t),K1(e.bindingStartIndex),n!==null&&Ad(e,t,n,2,i);let c=(r&3)===3;if(!s)if(c){let h=e.preOrderCheckHooks;h!==null&&pi(t,h,null)}else{let h=e.preOrderHooks;h!==null&&fi(t,h,0,null),jr(t,0)}if(o||Xm(t),jd(t),Bd(t,0),e.contentQueries!==null&&ud(e,t),!s)if(c){let h=e.contentCheckHooks;h!==null&&pi(t,h)}else{let h=e.contentHooks;h!==null&&fi(t,h,1),jr(t,1)}t2(e,t);let d=e.components;d!==null&&Zd(t,d,0);let p=e.viewQuery;if(p!==null&&Ms(2,p,i),!s)if(c){let h=e.viewCheckHooks;h!==null&&pi(t,h)}else{let h=e.viewHooks;h!==null&&fi(t,h,2),jr(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Fr]){for(let h of t[Fr])h();t[Fr]=null}s||(Nd(t),t[S]&=-73)}catch(c){throw s||cr(t),c}finally{u!==null&&(ru(u,l),a&&qm(u)),Eo()}}function Bd(e,t){for(let n=Xc(e);n!==null;n=ed(n))for(let i=pe;i<n.length;i++){let r=n[i];Ud(r,t)}}function Xm(e){for(let t=Xc(e);t!==null;t=ed(t)){if(!(t[S]&2))continue;let n=t[Gt];for(let i=0;i<n.length;i++){let r=n[i];ko(r)}}}function e2(e,t,n){$(18);let i=ze(t,e);Ud(i,n),$(19,i[ce])}function Ud(e,t){xo(e)&&Is(e,t)}function Is(e,t){let n=e[k],i=e[S],r=e[Ce],s=!!(t===0&&i&16);if(s||=!!(i&64&&t===0),s||=!!(i&1024),s||=!!(r?.dirty&&su(r)),s||=!1,r&&(r.dirty=!1),e[S]&=-9217,s)Jm(n,e,n.template,e[ce]);else if(i&8192){let o=A(null);try{jd(e),Bd(e,1);let a=n.components;a!==null&&Zd(e,a,1),Nd(e)}finally{A(o)}}}function Zd(e,t,n){for(let i=0;i<t.length;i++)e2(e,t[i],n)}function t2(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let i=0;i<n.length;i++){let r=n[i];if(r<0)xt(~r);else{let s=r,o=n[++i],a=n[++i];eg(o,s);let l=t[s];$(24,l),a(2,l),$(25,l)}}}finally{xt(-1)}}function Ko(e,t){let n=wc()?64:1088;for(e[Qe].changeDetectionScheduler?.notify(t);e;){e[S]|=n;let i=_t(e);if(Bi(e)&&!i)return e;e=i}return null}function $d(e,t,n,i){return[e,!0,0,t,null,i,null,n,null,null]}function n2(e,t,n,i=!0){let r=t[k];if(i2(r,t,e,n),i){let o=Ps(n,e),a=t[G],l=a.parentNode(e[wt]);l!==null&&fm(r,e[De],a,t,l,o)}let s=t[Ni];s!==null&&s.firstChild!==null&&(s.firstChild=null)}function Ls(e,t){if(e.length<=pe)return;let n=pe+t,i=e[n];if(i){let r=i[bt];r!==null&&r!==e&&Uo(r,i),t>0&&(e[n-1][Pe]=i[Pe]);let s=Ri(e,pe+t);pm(i[k],i);let o=s[Ye];o!==null&&o.detachView(s[k]),i[ne]=null,i[Pe]=null,i[S]&=-129}return i}function i2(e,t,n,i){let r=pe+i,s=n.length;i>0&&(n[r-1][Pe]=t),i<s-pe?(t[Pe]=n[r],Ku(n,pe+i,t)):(n.push(t),t[Pe]=null),t[ne]=n;let o=t[bt];o!==null&&n!==o&&qd(o,t);let a=t[Ye];a!==null&&a.insertView(e),ys(t),t[S]|=128}function qd(e,t){let n=e[Gt],i=t[ne];if(ut(i))e[S]|=2;else{let r=i[ne][He];t[He]!==r&&(e[S]|=2)}n===null?e[Gt]=[t]:n.push(t)}var In=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let e=this._lView,t=e[k];return Yi(t,e,t.firstChild,[])}constructor(e,t){this._lView=e,this._cdRefInjectingView=t}get context(){return this._lView[ce]}set context(e){this._lView[ce]=e}get destroyed(){return nn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[ne];if(et(e)){let t=e[zi],n=t?t.indexOf(this):-1;n>-1&&(Ls(e,n),Ri(t,n))}this._attachedToViewContainer=!1}Ld(this._lView[k],this._lView)}onDestroy(e){pc(this._lView,e)}markForCheck(){Ko(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[S]&=-129}reattach(){ys(this._lView),this._lView[S]|=128}detectChanges(){this._lView[S]|=1024,zd(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Bi(this._lView),t=this._lView[bt];t!==null&&!e&&Uo(t,this._lView),Id(this._lView[k],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=e;let t=Bi(this._lView),n=this._lView[bt];n!==null&&!t&&qd(n,this._lView),ys(this._lView)}};function r2(e){return Tn(e._lView)||!!(e._lView[S]&64)}function s2(e){ko(e._lView)}var St=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=o2;constructor(n,i,r){this._declarationLView=n,this._declarationTContainer=i,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,i){return this.createEmbeddedViewImpl(n,i)}createEmbeddedViewImpl(n,i,r){let s=Bm(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:i,dehydratedView:r});return new In(s)}}return e})();function o2(){return Jo(ae(),F())}function Jo(e,t){return e.type&4?new St(t,e,on(e,t)):null}function wr(e,t,n,i,r){let s=e.data[t];if(s===null)s=a2(e,t,n,i,r),X1()&&(s.flags|=32);else if(s.type&64){s.type=n,s.value=i,s.attrs=r;let o=W1();s.injectorIndex=o===null?-1:o.injectorIndex}return Fn(s,!0),s}function a2(e,t,n,i,r){let s=Cc(),o=bc(),a=o?s:s&&s.parent,l=e.data[t]=u2(e,a,n,t,i,r);return l2(e,l,s,o),l}function l2(e,t,n,i){e.firstChild===null&&(e.firstChild=t),n!==null&&(i?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function u2(e,t,n,i,r,s){let o=t?t.injectorIndex:-1,a=0;return G1()&&(a|=128),{type:n,index:i,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,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 l3=new RegExp(`^(\\d+)*(${Gg}|${qg})*(.*)`),c2=()=>null;function ll(e,t){return c2(e,t)}var d2=class{},Gd=class{},h2=class{resolveComponentFactory(e){throw new w(917,!1)}},Zn=class{static NULL=new h2},Xo=class{},ea=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>p2()}return e})();function p2(){let e=F(),t=ae(),n=ze(t.index,e);return(ut(n)?n:e)[G]}var f2=(()=>{class e{static \u0275prov=E({token:e,providedIn:"root",factory:()=>null})}return e})(),Ur={},g2=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){let i=this.injector.get(e,Ur,n);return i!==Ur||t===Ur?i:this.parentInjector.get(e,t,n)}};function Ki(e,t,n){let i=n?e.styles:null,r=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)r=La(r,a);else if(s==2){let l=a,u=t[++o];i=La(i,l+": "+u+";")}}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}function j(e,t=0){let n=F();if(n===null)return b(e,t);let i=ae();return qc(i,n,se(e),t)}function Wd(e,t,n,i,r){let s=i===null?null:{"":-1},o=r(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}y2(e,t,n,a,s,l,u)}s!==null&&i!==null&&m2(n,i,s)}function m2(e,t,n){let i=e.localNames=[];for(let r=0;r<t.length;r+=2){let s=n[t[r+1]];if(s==null)throw new w(-301,!1);i.push(t[r],s)}}function v2(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function y2(e,t,n,i,r,s,o){let a=i.length,l=!1;for(let p=0;p<a;p++){let h=i[p];!l&&Ke(h)&&(l=!0,v2(e,n,p)),_s(qi(n,t),e,h.type)}k2(n,e.data.length,a);for(let p=0;p<a;p++){let h=i[p];h.providersResolver&&h.providersResolver(h)}let u=!1,c=!1,d=xd(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let h=i[p];if(n.mergedAttrs=Qt(n.mergedAttrs,h.hostAttrs),b2(e,n,t,d,h),x2(d,h,r),o!==null&&o.has(h)){let[y,C]=o.get(h);n.directiveToIndex.set(h.type,[d,y+n.directiveStart,C+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 g=h.type.prototype;!u&&(g.ngOnChanges||g.ngOnInit||g.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!c&&(g.ngOnChanges||g.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),c=!0),d++}C2(e,n,s)}function C2(e,t,n){for(let i=t.directiveStart;i<t.directiveEnd;i++){let r=e.data[i];if(n===null||!n.has(r))ul(0,t,r,i),ul(1,t,r,i),dl(t,i,!1);else{let s=n.get(r);cl(0,t,s,i),cl(1,t,s,i),dl(t,i,!0)}}}function ul(e,t,n,i){let r=e===0?n.inputs:n.outputs;for(let s in r)if(r.hasOwnProperty(s)){let o;e===0?o=t.inputs??={}:o=t.outputs??={},o[s]??=[],o[s].push(i),Qd(t,s)}}function cl(e,t,n,i){let r=e===0?n.inputs:n.outputs;for(let s in r)if(r.hasOwnProperty(s)){let o=r[s],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[o]??=[],a[o].push(i,s),Qd(t,o)}}function Qd(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function dl(e,t,n){let{attrs:i,inputs:r,hostDirectiveInputs:s}=e;if(i===null||!n&&r===null||n&&s===null||Vo(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let o=null,a=0;for(;a<i.length;){let l=i[a];if(l===0){a+=4;continue}else if(l===5){a+=2;continue}else if(typeof l=="number")break;if(!n&&r.hasOwnProperty(l)){let u=r[l];for(let c of u)if(c===t){o??=[],o.push(l,i[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],i[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(o)}function b2(e,t,n,i,r){e.data[i]=r;let s=r.factory||(r.factory=Zt(r.type,!0)),o=new Bn(s,Ke(r),j,null);e.blueprint[i]=o,n[i]=o,w2(e,t,i,xd(e,n,r.hostVars,dt),r)}function w2(e,t,n,i,r){let s=r.hostBindings;if(s){let o=e.hostBindingOpCodes;o===null&&(o=e.hostBindingOpCodes=[]);let a=~t.index;_2(o)!=a&&o.push(a),o.push(n,i,s)}}function _2(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function x2(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;Ke(t)&&(n[""]=e)}}function k2(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ta(e,t,n,i,r,s,o,a){let l=t[k],u=l.consts,c=Wt(u,o),d=wr(l,e,n,i,c);return s&&Wd(l,t,d,Wt(u,a),r),d.mergedAttrs=Qt(d.mergedAttrs,d.attrs),d.attrs!==null&&Ki(d,d.attrs,!1),d.mergedAttrs!==null&&Ki(d,d.mergedAttrs,!0),l.queries!==null&&l.queries.elementStart(l,d),d}function na(e,t){Fc(e,t),lc(t)&&e.queries.elementEnd(t)}function S2(e,t,n,i,r,s){let o=t.consts,a=Wt(o,r),l=wr(t,e,n,i,a);if(l.mergedAttrs=Qt(l.mergedAttrs,l.attrs),s!=null){let u=Wt(o,s);l.localNames=[];for(let c=0;c<u.length;c+=2)l.localNames.push(u[c],-1)}return l.attrs!==null&&Ki(l,l.attrs,!1),l.mergedAttrs!==null&&Ki(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function Yd(e){return O2(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function M2(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),i;for(;!(i=n.next()).done;)t(i.value)}}function O2(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function E2(e,t,n){return e[t]=n}function Pt(e,t,n){if(n===dt)return!1;let i=e[t];return Object.is(i,n)?!1:(e[t]=n,!0)}function mi(e,t,n){return function i(r){let s=tn(e)?ze(e.index,t):t;Ko(s,5);let o=t[ce],a=hl(t,o,n,r),l=i.__ngNextListenerFn__;for(;l;)a=hl(t,o,l,r)&&a,l=l.__ngNextListenerFn__;return a}}function hl(e,t,n,i){let r=A(null);try{return $(6,t,n),n(i)!==!1}catch(s){return Fm(e,s),!1}finally{$(7,t,n),A(r)}}function Kd(e,t,n,i,r,s,o,a){let l=Nn(e),u=!1,c=null;if(!i&&l&&(c=P2(t,n,s,e.index)),c!==null){let d=c.__ngLastListenerFn__||c;d.__ngNextListenerFn__=o,c.__ngLastListenerFn__=o,u=!0}else{let d=Ue(e,n),p=i?i(d):d;Yg(n,p,s,a);let h=r.listen(p,s,a);if(!T2(s)){let g=i?y=>i(je(y[e.index])):e.index;Jd(g,t,n,s,a,h,!1)}}return u}function T2(e){return e.startsWith("animation")||e.startsWith("transition")}function P2(e,t,n,i){let r=e.cleanup;if(r!=null)for(let s=0;s<r.length-1;s+=2){let o=r[s];if(o===n&&r[s+1]===i){let a=t[Fi],l=r[s+2];return a&&a.length>l?a[l]:null}typeof o=="string"&&(s+=2)}return null}function Jd(e,t,n,i,r,s,o){let a=t.firstCreatePass?gc(t):null,l=fc(n),u=l.length;l.push(r,s),a&&a.push(i,e,u,(u+1)*(o?-1:1))}function pl(e,t,n,i,r,s){let o=t[n],a=t[k],l=a.data[n].outputs[i],u=o[l].subscribe(s);Jd(e.index,a,t,r,s,u,!0)}var Ds=Symbol("BINDING"),I2=class extends Zn{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let t=On(e);return new Xd(t,this.ngModule)}};function L2(e){return Object.keys(e).map(t=>{let[n,i,r]=e[t],s={propName:n,templateName:t,isSignal:(i&vr.SignalBased)!==0};return r&&(s.transform=r),s})}function D2(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function A2(e,t,n){let i=t instanceof We?t:t?.injector;return i&&e.getStandaloneInjector!==null&&(i=e.getStandaloneInjector(i)||i),i?new g2(n,i):n}function V2(e){let t=e.get(Xo,null);if(t===null)throw new w(407,!1);let n=e.get(f2,null),i=e.get(zn,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:i,ngReflect:!1}}function R2(e,t){let n=N2(e);return vd(t,n,n==="svg"?uc:n==="math"?H1:null)}function N2(e){return(e.selectors[0][0]||"div").toLowerCase()}var Xd=class extends Gd{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=L2(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=D2(this.componentDef.outputs),this.cachedOutputs}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=Y0(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,i,r,s){$(22);let o=A(null);try{let a=this.componentDef,l=F2(n,a,s,r),u=A2(a,i||this.ngModule,e),c=V2(u),d=c.rendererFactory.createRenderer(null,a),p=n?Om(d,n,a.encapsulation,u):R2(a,d),h=s?.some(fl)||r?.some(C=>typeof C!="function"&&C.bindings.some(fl)),g=No(null,l,null,512|_d(a),null,null,c,d,u,null,ld(p,u,!0));g[fe]=p,Oo(g);let y=null;try{let C=ta(fe,g,2,"#host",()=>l.directiveRegistry,!0,0);Cd(d,p,C),Yt(p,g),Cr(l,g,C),Ao(l,C,g),na(l,C),t!==void 0&&z2(C,this.ngContentSelectors,t),y=ze(C.index,g),g[ce]=y[ce],Yo(l,g,null)}catch(C){throw y!==null&&ks(y),ks(g),C}finally{$(23),Eo()}return new j2(this.componentType,g,!!h)}finally{A(o)}}};function F2(e,t,n,i){let r=e?["ng-version","20.3.15"]:K0(t.selectors[0]),s=null,o=null,a=0;if(n)for(let u of n)a+=u[Ds].requiredVars,u.create&&(u.targetIdx=0,(s??=[]).push(u)),u.update&&(u.targetIdx=0,(o??=[]).push(u));if(i)for(let u=0;u<i.length;u++){let c=i[u];if(typeof c!="function")for(let d of c.bindings){a+=d[Ds].requiredVars;let p=u+1;d.create&&(d.targetIdx=p,(s??=[]).push(d)),d.update&&(d.targetIdx=p,(o??=[]).push(d))}}let l=[t];if(i)for(let u of i){let c=typeof u=="function"?u:u.type,d=tc(c);l.push(d)}return Ro(0,null,H2(s,o),1,a,l,null,null,null,[r],null)}function H2(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let i of e)i.create();if(n&2&&t)for(let i of t)i.update()}}function fl(e){let t=e[Ds].kind;return t==="input"||t==="twoWay"}var j2=class extends d2{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t,n){super(),this._rootLView=t,this._hasInputBindings=n,this._tNode=dc(t[k],fe),this.location=on(this._tNode,t),this.instance=ze(this._tNode.index,t)[ce],this.hostView=this.changeDetectorRef=new In(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 i=this._rootLView,r=Qo(n,i[k],i,e,t);this.previousInputValues.set(e,t);let s=ze(n.index,i);Ko(s,1)}get injector(){return new yn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function z2(e,t,n){let i=e.projection=[];for(let r=0;r<t.length;r++){let s=n[r];i.push(s!=null&&s.length?Array.from(s):null)}}var an=(()=>{class e{static __NG_ELEMENT_ID__=B2}return e})();function B2(){let e=ae();return th(e,F())}var U2=an,eh=class extends U2{_lContainer;_hostTNode;_hostLView;constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return on(this._hostTNode,this._hostLView)}get injector(){return new yn(this._hostTNode,this._hostLView)}get parentInjector(){let e=Lo(this._hostTNode,this._hostLView);if(jc(e)){let t=$i(e,this._hostLView),n=Zi(e),i=t[k].data[n+8];return new yn(i,t)}else return new yn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let t=gl(this._lContainer);return t!==null&&t[e]||null}get length(){return this._lContainer.length-pe}createEmbeddedView(e,t,n){let i,r;typeof n=="number"?i=n:n!=null&&(i=n.index,r=n.injector);let s=ll(this._lContainer,e.ssrId),o=e.createEmbeddedViewImpl(t||{},r,s);return this.insertImpl(o,i,al(this._hostTNode,s)),o}createComponent(e,t,n,i,r,s,o){let a=e&&!vg(e),l;if(a)l=t;else{let y=t||{};l=y.index,n=y.injector,i=y.projectableNodes,r=y.environmentInjector||y.ngModuleRef,s=y.directives,o=y.bindings}let u=a?e:new Xd(On(e)),c=n||this.parentInjector;if(!r&&u.ngModule==null){let y=(a?c:this.parentInjector).get(We,null);y&&(r=y)}let d=On(u.componentType??{}),p=ll(this._lContainer,d?.id??null),h=p?.firstChild??null,g=u.create(c,i,h,r,s,o);return this.insertImpl(g.hostView,l,al(this._hostTNode,p)),g}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(e,t,n){let i=e._lView;if(z1(i)){let o=this.indexOf(e);if(o!==-1)this.detach(o);else{let a=i[ne],l=new eh(a,a[De],a[ne]);l.detach(l.indexOf(e))}}let r=this._adjustIndex(t),s=this._lContainer;return n2(s,i,r,n),e.attachToViewContainerRef(),Ku(Zr(s),r,e),e}move(e,t){return this.insert(e,t)}indexOf(e){let t=gl(this._lContainer);return t!==null?t.indexOf(e):-1}remove(e){let t=this._adjustIndex(e,-1),n=Ls(this._lContainer,t);n&&(Ri(Zr(this._lContainer),t),Ld(n[k],n))}detach(e){let t=this._adjustIndex(e,-1),n=Ls(this._lContainer,t);return n&&Ri(Zr(this._lContainer),t)!=null?new In(n):null}_adjustIndex(e,t=0){return e??this.length+t}};function gl(e){return e[zi]}function Zr(e){return e[zi]||(e[zi]=[])}function th(e,t){let n,i=t[e.index];return et(i)?n=i:(n=$d(i,t,null,e),t[e.index]=n,Fo(t,n)),$2(n,t,e,i),new eh(n,e,t)}function Z2(e,t){let n=e[G],i=n.createComment(""),r=Ue(t,e),s=n.parentNode(r);return Gi(n,s,i,n.nextSibling(r),!1),i}var $2=W2,q2=()=>!1;function G2(e,t,n){return q2(e,t,n)}function W2(e,t,n,i){if(e[wt])return;let r;n.type&8?r=je(i):r=Z2(t,n),e[wt]=r}var Q2=class nh{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new nh(this.queryList)}setDirty(){this.queryList.setDirty()}},Y2=class ih{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let i=t.contentQueries!==null?t.contentQueries[0]:n.length,r=[];for(let s=0;s<i;s++){let o=n.getByIndex(s),a=this.queries[o.indexInDeclarationView];r.push(a.clone())}return new ih(r)}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++)ia(t,n).matches!==null&&this.queries[n].setDirty()}},K2=class{flags;read;predicate;constructor(e,t,n=null){this.flags=t,this.read=n,typeof e=="string"?this.predicate=av(e):this.predicate=e}},J2=class rh{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].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 i=0;i<this.length;i++){let r=n!==null?n.length:0,s=this.getByIndex(i).embeddedTView(t,r);s&&(s.indexInDeclarationView=i,n!==null?n.push(s):n=[s])}return n!==null?new rh(n):null}template(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},X2=class sh{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 sh(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,i=t.parent;for(;i!==null&&i.type&8&&i.index!==n;)i=i.parent;return n===(i!==null?i.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){let s=i[r];this.matchTNodeWithReadOption(t,n,ev(n,s)),this.matchTNodeWithReadOption(t,n,gi(n,t,s,!1,!1))}else i===St?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,gi(n,t,i,!1,!1))}matchTNodeWithReadOption(t,n,i){if(i!==null){let r=this.metadata.read;if(r!==null)if(r===Et||r===an||r===St&&n.type&4)this.addMatch(n.index,-2);else{let s=gi(n,t,r,!1,!1);s!==null&&this.addMatch(n.index,s)}else this.addMatch(n.index,i)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function ev(e,t){let n=e.localNames;if(n!==null){for(let i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1]}return null}function tv(e,t){return e.type&11?on(e,t):e.type&4?Jo(e,t):null}function nv(e,t,n,i){return n===-1?tv(t,e):n===-2?iv(e,t,i):Pn(e,e[k],n,t)}function iv(e,t,n){if(n===Et)return on(t,e);if(n===St)return Jo(t,e);if(n===an)return th(t,e)}function oh(e,t,n,i){let r=t[Ye].queries[i];if(r.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(nv(t,c,o[l+1],n.metadata.read))}}r.matches=a}return r.matches}function As(e,t,n,i){let r=e.queries.getByIndex(n),s=r.matches;if(s!==null){let o=oh(e,t,r,n);for(let a=0;a<s.length;a+=2){let l=s[a];if(l>0)i.push(o[a/2]);else{let u=s[a+1],c=t[-l];for(let d=pe;d<c.length;d++){let p=c[d];p[bt]===p[ne]&&As(p[k],p,u,i)}if(c[Gt]!==null){let d=c[Gt];for(let p=0;p<d.length;p++){let h=d[p];As(h[k],h,u,i)}}}}}return i}function rv(e,t){return e[Ye].queries[t].queryList}function sv(e,t,n){let i=new jg((n&4)===4);return Z1(e,t,i,i.destroy),(t[Ye]??=new Y2).queries.push(new Q2(i))-1}function ov(e,t,n){let i=ee();return i.firstCreatePass&&(lv(i,new K2(e,t,n),-1),(t&2)===2&&(i.staticViewQueries=!0)),sv(i,F(),t)}function av(e){return e.split(",").map(t=>t.trim())}function lv(e,t,n){e.queries===null&&(e.queries=new J2),e.queries.track(new X2(t,n))}function ia(e,t){return e.queries.getByIndex(t)}function uv(e,t){let n=e[k],i=ia(n,t);return i.crossesNgTemplate?As(n,e,t,[]):oh(n,e,i,t)}var Vs=class{},ah=class extends Vs{injector;componentFactoryResolver=new I2(this);instance=null;constructor(e){super();let t=new wo([...e.providers,{provide:Vs,useValue:this},{provide:Zn,useValue:this.componentFactoryResolver}],e.parent||bo(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function cv(e,t,n=null){return new ah({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var dv=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=nc(!1,n.type),r=i.length>0?cv([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,r)}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(b(We))})}return e})();function Ae(e){return fr(()=>{let t=lh(e),n=V(T({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Kc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?r=>r.get(dv).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||kt.Emulated,styles:e.styles||ye,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Md("NgStandalone"),uh(n);let i=e.dependencies;return n.directiveDefs=ml(i,hv),n.pipeDefs=ml(i,M1),n.id=mv(n),n})}function hv(e){return On(e)||tc(e)}function _r(e){return fr(()=>({type:e.type,bootstrap:e.bootstrap||ye,declarations:e.declarations||ye,imports:e.imports||ye,exports:e.exports||ye,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function pv(e,t){if(e==null)return yt;let n={};for(let i in e)if(e.hasOwnProperty(i)){let r=e[i],s,o,a,l;Array.isArray(r)?(a=r[0],s=r[1],o=r[2]??s,l=r[3]||null):(s=r,o=r,a=vr.None,l=null),n[s]=[i,a,l],t[s]=o}return n}function fv(e){if(e==null)return yt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function _e(e){return fr(()=>{let t=lh(e);return uh(t),t})}function gv(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 lh(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||yt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||ye,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:pv(e.inputs,t),outputs:fv(e.outputs),debugInfo:null}}function uh(e){e.features?.forEach(t=>t(e))}function ml(e,t){return e?()=>{let n=typeof e=="function"?e():e,i=[];for(let r of n){let s=t(r);s!==null&&i.push(s)}return i}:null}function mv(e){let t=0,n=typeof e.consts=="function"?"":e.consts,i=[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 r of i.join("|"))t=Math.imul(31,t)+r.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function vv(e){return Object.getPrototypeOf(e.prototype).constructor}function ln(e){let t=vv(e.type),n=!0,i=[e];for(;t;){let r;if(Ke(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new w(903,!1);r=t.\u0275dir}if(r){if(n){i.push(r);let o=e;o.inputs=$r(e.inputs),o.declaredInputs=$r(e.declaredInputs),o.outputs=$r(e.outputs);let a=r.hostBindings;a&&_v(e,a);let l=r.viewQuery,u=r.contentQueries;if(l&&bv(e,l),u&&wv(e,u),yv(e,r),r1(e.outputs,r.outputs),Ke(r)&&r.data.animation){let c=e.data;c.animation=(c.animation||[]).concat(r.data.animation)}}let s=r.features;if(s)for(let o=0;o<s.length;o++){let a=s[o];a&&a.ngInherit&&a(e),a===ln&&(n=!1)}}t=Object.getPrototypeOf(t)}Cv(i)}function yv(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let i=t.inputs[n];i!==void 0&&(e.inputs[n]=i,e.declaredInputs[n]=t.declaredInputs[n])}}function Cv(e){let t=0,n=null;for(let i=e.length-1;i>=0;i--){let r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Qt(r.hostAttrs,n=Qt(n,r.hostAttrs))}}function $r(e){return e===yt?{}:e===ye?[]:e}function bv(e,t){let n=e.viewQuery;n?e.viewQuery=(i,r)=>{t(i,r),n(i,r)}:e.viewQuery=t}function wv(e,t){let n=e.contentQueries;n?e.contentQueries=(i,r,s)=>{t(i,r,s),n(i,r,s)}:e.contentQueries=t}function _v(e,t){let n=e.hostBindings;n?e.hostBindings=(i,r)=>{t(i,r),n(i,r)}:e.hostBindings=t}function xv(e,t,n,i,r,s,o,a){if(n.firstCreatePass){e.mergedAttrs=Qt(e.mergedAttrs,e.attrs);let c=e.tView=Ro(2,e,r,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),Fn(e,!1);let l=Sv(n,t,e,i);To()&&Zo(n,t,l,e),Yt(l,t);let u=$d(l,t,l,e);t[i+fe]=u,Fo(t,u),G2(u,e,t)}function kv(e,t,n,i,r,s,o,a,l,u,c){let d=n+fe,p;return t.firstCreatePass?(p=wr(t,d,4,o||null,a||null),So()&&Wd(t,e,p,Wt(t.consts,u),qo),Fc(t,p)):p=t.data[d],xv(p,e,t,n,i,r,s,l),Nn(p)&&Cr(t,e,p),u!=null&&br(e,p,c),p}function ie(e,t,n,i,r,s,o,a){let l=F(),u=ee(),c=Wt(u.consts,s);return kv(l,u,e,t,n,i,r,c,void 0,o,a),ie}var Sv=Mv;function Mv(e,t,n,i){return hr(!0),t[G].createComment("")}var Ov=new M("");function ra(e){return!!e&&typeof e.then=="function"}function Ev(e){return!!e&&typeof e.subscribe=="function"}var ch=new M(""),dh=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i});appInits=v(ch,{optional:!0})??[];injector=v(pr);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let r of this.appInits){let s=_o(this.injector,r);if(ra(s))n.push(s);else if(Ev(s)){let o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});n.push(o)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(r=>{this.reject(r)}),n.length===0&&i(),this.initialized=!0}static \u0275fac=function(n){return new(n||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Tv=new M("");function Pv(){Zp(()=>{let e="";throw new w(600,e)})}function Iv(e){return e.isBoundToModule}var Lv=10,Ln=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=v(ct);afterRenderManager=v(cm);zonelessEnabled=v(Io);rootEffectScheduler=v(gg);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Je;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=v(sn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Te(n=>!n))}constructor(){v(jo,{optional:!0})}whenStable(){let n;return new Promise(i=>{n=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{n.unsubscribe()})}_injector=v(We);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,i){return this.bootstrapImpl(n,i)}bootstrapImpl(n,i,r=pr.NULL){return this._injector.get(oe).run(()=>{$(10);let s=n instanceof Gd;if(!this._injector.get(dh).done){let p="";throw new w(405,p)}let o;s?o=n:o=this._injector.get(Zn).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let a=Iv(o)?void 0:this._injector.get(Vs),l=i||o.selector,u=o.create(r,[],l,a),c=u.location.nativeElement,d=u.injector.get(Ov,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),vi(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),$(11,u),u})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){$(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Sd.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new w(101,!1);let n=A(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,A(n),this.afterTick.next(),$(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Xo,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<Lv;)$(14),this.synchronizeOnce(),$(15)}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let i=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r}of this.allViews){if(!i&&!Tn(r))continue;let s=i&&!this.zonelessEnabled?0:1;zd(r,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})=>Tn(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;vi(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(i){this.internalErrorHandler(i)}this.components.push(n),this._injector.get(Tv,[]).forEach(i=>i(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),()=>vi(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=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function vi(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function sa(e,t,n,i){let r=F(),s=Hn();if(Pt(r,s,t)){let o=ee(),a=dr();Vm(a,r,e,t,n,i)}return sa}var u3=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function P(e,t,n){let i=F(),r=Hn();if(Pt(i,r,t)){let s=ee(),o=dr();Vd(o,i,e,t,i[G],n)}return P}function vl(e,t,n,i,r){Qo(t,e,n,r?"class":"style",i)}function f(e,t,n,i){let r=F(),s=r[k],o=e+fe,a=s.firstCreatePass?ta(o,r,2,t,qo,So(),n,i):s.data[o];if(Go(a,r,e,t,ph),Nn(a)){let l=r[k];Cr(l,r,a),Ao(l,a,r)}return i!=null&&br(r,a),f}function m(){let e=ee(),t=ae(),n=Wo(t);return e.firstCreatePass&&na(e,n),vc(n)&&yc(),mc(),n.classesWithoutHost!=null&&kg(n)&&vl(e,n,F(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&Sg(n)&&vl(e,n,F(),n.stylesWithoutHost,!1),m}function H(e,t,n,i){return f(e,t,n,i),m(),H}function oa(e,t,n,i){let r=F(),s=r[k],o=e+fe,a=s.firstCreatePass?S2(o,s,2,t,n,i):s.data[o];return Go(a,r,e,t,ph),i!=null&&br(r,a),oa}function aa(){let e=ae(),t=Wo(e);return vc(t)&&yc(),mc(),aa}function hh(e,t,n,i){return oa(e,t,n,i),aa(),hh}var ph=(e,t,n,i,r)=>(hr(!0),vd(t[G],i,og()));function la(e,t,n){let i=F(),r=i[k],s=e+fe,o=r.firstCreatePass?ta(s,i,8,"ng-container",qo,So(),t,n):r.data[s];if(Go(o,i,e,"ng-container",Dv),Nn(o)){let a=i[k];Cr(a,i,o),Ao(a,o,i)}return n!=null&&br(i,o),la}function ua(){let e=ee(),t=ae(),n=Wo(t);return e.firstCreatePass&&na(e,n),ua}var Dv=(e,t,n,i,r)=>(hr(!0),R0(t[G],""));function xe(){return F()}function fh(e,t,n){let i=F(),r=Hn();if(Pt(i,r,t)){let s=ee(),o=dr();Rd(o,i,e,t,i[G],n)}return fh}var Kn=void 0;function Av(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var Vv=["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"]],Kn,[["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"]],Kn,[["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}",Kn,"{1} 'at' {0}",Kn],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Av],qr={};function Ve(e){let t=Rv(e),n=yl(t);if(n)return n;let i=t.split("-")[0];if(n=yl(i),n)return n;if(i==="en")return Vv;throw new w(701,!1)}function yl(e){return e in qr||(qr[e]=ot.ng&&ot.ng.common&&ot.ng.common.locales&&ot.ng.common.locales[e]),qr[e]}var K=(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})(K||{});function Rv(e){return e.toLowerCase().replace(/_/g,"-")}var Ji="en-US",Nv=Ji;function Fv(e){typeof e=="string"&&(Nv=e.toLowerCase().replace(/_/g,"-"))}function x(e,t,n){let i=F(),r=ee(),s=ae();return mh(r,i,i[G],s,e,t,n),x}function gh(e,t,n){let i=F(),r=ee(),s=ae();return(s.type&3||n)&&Kd(s,r,i,n,i[G],e,t,mi(s,i,t)),gh}function mh(e,t,n,i,r,s,o){let a=!0,l=null;if((i.type&3||o)&&(l??=mi(i,t,s),Kd(i,e,t,o,n,r,s,l)&&(a=!1)),a){let u=i.outputs?.[r],c=i.hostDirectiveOutputs?.[r];if(c&&c.length)for(let d=0;d<c.length;d+=2){let p=c[d],h=c[d+1];l??=mi(i,t,s),pl(i,t,p,h,r,l)}if(u&&u.length)for(let d of u)l??=mi(i,t,s),pl(i,t,d,r,r,l)}}function O(e=1){return rg(e)}function vh(e,t,n){ov(e,t,n)}function yh(e){let t=F(),n=ee(),i=_c();Mo(i+1);let r=ia(n,i);if(e.dirty&&j1(t)===((r.metadata.flags&2)===2)){if(r.matches===null)e.reset([]);else{let s=uv(t,i);e.reset(s,Fg),e.notifyOnChanges()}return!0}return!1}function Ch(){return rv(F(),_c())}function Jn(e,t){return e<<17|t<<2}function Mt(e){return e>>17&32767}function Hv(e){return(e&2)==2}function jv(e,t){return e&131071|t<<17}function Rs(e){return e|2}function Kt(e){return(e&131068)>>2}function Gr(e,t){return e&-131069|t<<2}function zv(e){return(e&1)===1}function Ns(e){return e|1}function Bv(e,t,n,i,r,s){let o=s?t.classBindings:t.styleBindings,a=Mt(o),l=Kt(o);e[i]=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(r)if(l!==0){let d=Mt(e[a+1]);e[i+1]=Jn(d,a),d!==0&&(e[d+1]=Gr(e[d+1],i)),e[a+1]=jv(e[a+1],i)}else e[i+1]=Jn(a,0),a!==0&&(e[a+1]=Gr(e[a+1],i)),a=i;else e[i+1]=Jn(l,0),a===0?a=i:e[l+1]=Gr(e[l+1],i),l=i;u&&(e[i+1]=Rs(e[i+1])),Cl(e,c,i,!0),Cl(e,c,i,!1),Uv(t,c,e,i,s),o=Jn(a,l),s?t.classBindings=o:t.styleBindings=o}function Uv(e,t,n,i,r){let s=r?e.residualClasses:e.residualStyles;s!=null&&typeof t=="string"&&Rn(s,t)>=0&&(n[i+1]=Ns(n[i+1]))}function Cl(e,t,n,i){let r=e[n+1],s=t===null,o=i?Mt(r):Kt(r),a=!1;for(;o!==0&&(a===!1||s);){let l=e[o],u=e[o+1];Zv(l,t)&&(a=!0,e[o+1]=i?Ns(u):Rs(u)),o=i?Mt(u):Kt(u)}a&&(e[n+1]=i?Rs(r):Ns(r))}function Zv(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 bh(e,t,n){return wh(e,t,n,!1),bh}function Ie(e,t){return wh(e,t,null,!0),Ie}function wh(e,t,n,i){let r=F(),s=ee(),o=J1(2);if(s.firstUpdatePass&&qv(s,e,o,i),t!==dt&&Pt(r,o,t)){let a=s.data[rn()];Kv(s,a,r,r[G],e,r[o+1]=Jv(t,n),i,o)}}function $v(e,t){return t>=e.expandoStartIndex}function qv(e,t,n,i){let r=e.data;if(r[n+1]===null){let s=r[rn()],o=$v(e,n);Xv(s,i)&&t===null&&!o&&(t=!1),t=Gv(r,s,t,i),Bv(r,s,t,n,o,i)}}function Gv(e,t,n,i){let r=ng(e),s=i?t.residualClasses:t.residualStyles;if(r===null)(i?t.classBindings:t.styleBindings)===0&&(n=Wr(null,e,t,n,i),n=Dn(n,t.attrs,i),s=null);else{let o=t.directiveStylingLast;if(o===-1||e[o]!==r)if(n=Wr(r,e,t,n,i),s===null){let a=Wv(e,t,i);a!==void 0&&Array.isArray(a)&&(a=Wr(null,e,t,a[1],i),a=Dn(a,t.attrs,i),Qv(e,t,i,a))}else s=Yv(e,t,i)}return s!==void 0&&(i?t.residualClasses=s:t.residualStyles=s),n}function Wv(e,t,n){let i=n?t.classBindings:t.styleBindings;if(Kt(i)!==0)return e[Mt(i)]}function Qv(e,t,n,i){let r=n?t.classBindings:t.styleBindings;e[Mt(r)]=i}function Yv(e,t,n){let i,r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<r;s++){let o=e[s].hostAttrs;i=Dn(i,o,n)}return Dn(i,t.attrs,n)}function Wr(e,t,n,i,r){let s=null,o=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<o&&(s=t[a],i=Dn(i,s.hostAttrs,r),s!==e);)a++;return e!==null&&(n.directiveStylingLast=a),i}function Dn(e,t,n){let i=n?1:2,r=-1;if(t!==null)for(let s=0;s<t.length;s++){let o=t[s];typeof o=="number"?r=o:r===i&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),k1(e,o,n?!0:t[++s]))}return e===void 0?null:e}function Kv(e,t,n,i,r,s,o,a){if(!(t.type&3))return;let l=e.data,u=l[a+1],c=zv(u)?bl(l,t,n,r,Kt(u),o):void 0;if(!Xi(c)){Xi(s)||Hv(u)&&(s=bl(l,null,n,r,a,o));let d=cc(rn(),n);Mm(i,o,d,r,s)}}function bl(e,t,n,i,r,s){let o=t===null,a;for(;r>0;){let l=e[r],u=Array.isArray(l),c=u?l[1]:l,d=c===null,p=n[r+1];p===dt&&(p=d?ye:void 0);let h=d?Rr(p,i):c===i?p:void 0;if(u&&!Xi(h)&&(h=Rr(l,i)),Xi(h)&&(a=h,o))return a;let g=e[r+1];r=o?Mt(g):Kt(g)}if(t!==null){let l=s?t.residualClasses:t.residualStyles;l!=null&&(a=Rr(l,i))}return a}function Xi(e){return e!==void 0}function Jv(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Ut(ft(e)))),e}function Xv(e,t){return(e.flags&(t?8:16))!==0}function z(e,t=""){let n=F(),i=ee(),r=e+fe,s=i.firstCreatePass?wr(i,r,1,t,null):i.data[r],o=ey(i,n,s,t,e);n[r]=o,To()&&Zo(i,n,o,s),Fn(s,!1)}var ey=(e,t,n,i,r)=>(hr(!0),A0(t[G],i));function ty(e,t,n,i=""){return Pt(e,Hn(),n)?t+ar(n)+i:dt}function be(e){return An("",e),be}function An(e,t,n){let i=F(),r=ty(i,e,t,n);return r!==dt&&ny(i,rn(),r),An}function ny(e,t,n){let i=cc(t,e);V0(e[G],i,n)}function ca(e,t,n){Pc(t)&&(t=t());let i=F(),r=Hn();if(Pt(i,r,t)){let s=ee(),o=dr();Vd(o,i,e,t,i[G],n)}return ca}function _h(e,t){let n=Pc(e);return n&&e.set(t),n}function da(e,t){let n=F(),i=ee(),r=ae();return mh(i,n,n[G],r,e,t),da}function iy(e,t,n){let i=ee();if(i.firstCreatePass){let r=Ke(e);Fs(n,i.data,i.blueprint,r,!0),Fs(t,i.data,i.blueprint,r,!1)}}function Fs(e,t,n,i,r){if(e=se(e),Array.isArray(e))for(let s=0;s<e.length;s++)Fs(e[s],t,n,i,r);else{let s=ee(),o=F(),a=ae(),l=qt(e)?e:se(e.provide),u=sc(e),c=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(qt(e)||!e.multi){let h=new Bn(u,r,j,null),g=Yr(l,t,r?c:c+p,d);g===-1?(_s(qi(a,o),s,l),Qr(s,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),n.push(h),o.push(h)):(n[g]=h,o[g]=h)}else{let h=Yr(l,t,c+p,d),g=Yr(l,t,c,c+p),y=h>=0&&n[h],C=g>=0&&n[g];if(r&&!C||!r&&!y){_s(qi(a,o),s,l);let R=oy(r?sy:ry,n.length,r,i,u,e);!r&&C&&(n[g].providerFactory=R),Qr(s,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),n.push(R),o.push(R)}else{let R=xh(n[r?g:h],u,!r&&i);Qr(s,e,h>-1?h:g,R)}!r&&i&&C&&n[g].componentProviders++}}}function Qr(e,t,n,i){let r=qt(t),s=L1(t);if(r||s){let o=(s?se(t.useClass):t).prototype.ngOnDestroy;if(o){let a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){let l=a.indexOf(n);l===-1?a.push(n,[i,o]):a[l+1].push(i,o)}else a.push(n,o)}}}function xh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Yr(e,t,n,i){for(let r=n;r<i;r++)if(t[r]===e)return r;return-1}function ry(e,t,n,i,r){return Hs(this.multi,[])}function sy(e,t,n,i,r){let s=this.multi,o;if(this.providerFactory){let a=this.providerFactory.componentProviders,l=Pn(i,i[k],this.providerFactory.index,r);o=l.slice(0,a),Hs(s,o);for(let u=a;u<l.length;u++)o.push(l[u])}else o=[],Hs(s,o);return o}function Hs(e,t){for(let n=0;n<e.length;n++){let i=e[n];t.push(i())}return t}function oy(e,t,n,i,r,s){let o=new Bn(e,n,j,null);return o.multi=[],o.index=t,o.componentProviders=0,xh(o,r,i&&!n),o}function ha(e,t=[]){return n=>{n.providersResolver=(i,r)=>iy(i,r?r(e):e,t)}}function ay(e,t,n,i){return uy(F(),Y1(),e,t,n,i)}function ly(e,t){let n=e[t];return n===dt?void 0:n}function uy(e,t,n,i,r,s){let o=t+n;return Pt(e,o,r)?E2(e,o+1,s?i.call(s,r):i(r)):ly(e,o+1)}var cy=(()=>{class e{zone=v(oe);changeDetectionScheduler=v(zn);applicationRef=v(Ln);applicationErrorHandler=v(ct);_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})(),dy=new M("",{factory:()=>!1});function kh({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new oe(V(T({},Sh()),{scheduleInRootZone:n})),[{provide:oe,useFactory:e},{provide:$t,multi:!0,useFactory:()=>{let i=v(cy,{optional:!0});return()=>i.initialize()}},{provide:$t,multi:!0,useFactory:()=>{let i=v(py);return()=>{i.initialize()}}},t===!0?{provide:Ic,useValue:!0}:[],{provide:Lc,useValue:n??Od},{provide:ct,useFactory:()=>{let i=v(oe),r=v(We),s;return o=>{i.runOutsideAngular(()=>{r.destroyed&&!s?setTimeout(()=>{throw o}):(s??=r.get(jn),s.handleError(o))})}}}]}function hy(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,i=kh({ngZoneFactory:()=>{let r=Sh(e);return r.scheduleInRootZone=n,r.shouldCoalesceEventChangeDetection&&Md("NgZone_CoalesceEvent"),new oe(r)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return lr([{provide:dy,useValue:!0},{provide:Io,useValue:!1},i])}function Sh(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var py=(()=>{class e{subscription=new Fe;initialized=!1;zone=v(oe);pendingTasks=v(sn);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{oe.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{oe.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})(),fy=(()=>{class e{applicationErrorHandler=v(ct);appRef=v(Ln);taskService=v(sn);ngZone=v(oe);zonelessEnabled=v(Io);tracing=v(jo,{optional:!0});disableScheduling=v(Ic,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Fe;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Qi):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(v(Lc,{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 am||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let i=!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,i=!0;break}case 12:{this.appRef.dirtyFlags|=16,i=!0;break}case 13:{this.appRef.dirtyFlags|=2,i=!0;break}case 11:{i=!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(i))return;let r=this.useMicrotaskScheduler?tl:Ed;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>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(Qi+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(i){this.taskService.remove(n),this.applicationErrorHandler(i)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,tl(()=>{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 gy(){return typeof $localize<"u"&&$localize.locale||Ji}var pa=new M("",{providedIn:"root",factory:()=>v(pa,{optional:!0,skipSelf:!0})||gy()});function Dt(e){return t1(e)}function st(e,t){return zp(e,t?.equal)}var c3=class{[Ne];constructor(e){this[Ne]=e}destroy(){this[Ne].destroy()}},my=new M("");my.__NG_ELEMENT_ID__=e=>{let t=ae();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 js=new M(""),vy=new M("");function dn(e){return!e.moduleRef}function yy(e){let t=dn(e)?e.r3Injector:e.moduleRef.injector,n=t.get(oe);return n.run(()=>{dn(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let i=t.get(ct),r;if(n.runOutsideAngular(()=>{r=n.onError.subscribe({next:i})}),dn(e)){let s=()=>t.destroy(),o=e.platformInjector.get(js);o.add(s),t.onDestroy(()=>{r.unsubscribe(),o.delete(s)})}else{let s=()=>e.moduleRef.destroy(),o=e.platformInjector.get(js);o.add(s),e.moduleRef.onDestroy(()=>{vi(e.allPlatformModules,e.moduleRef),r.unsubscribe(),o.delete(s)})}return by(i,n,()=>{let s=t.get(sn),o=s.add(),a=t.get(dh);return a.runInitializers(),a.donePromise.then(()=>{let l=t.get(pa,Ji);if(Fv(l||Ji),!t.get(vy,!0))return dn(e)?t.get(Ln):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(dn(e)){let u=t.get(Ln);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return Cy?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{s.remove(o)})})})}var Cy;function by(e,t,n){try{let i=n();return ra(i)?i.catch(r=>{throw t.runOutsideAngular(()=>e(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>e(i)),i}}var yi=null;function wy(e=[],t){return pr.create({name:t,providers:[{provide:Co,useValue:"platform"},{provide:js,useValue:new Set([()=>yi=null])},...e]})}function _y(e=[]){if(yi)return yi;let t=wy(e);return yi=t,Pv(),xy(t),t}function xy(e){let t=e.get(rd,null);_o(e,()=>{t?.forEach(n=>n())})}var ky=(()=>{class e{static __NG_ELEMENT_ID__=Sy}return e})();function Sy(e){return My(ae(),F(),(e&16)===16)}function My(e,t,n){if(tn(e)&&!n){let i=ze(e.index,t);return new In(i,i)}else if(e.type&175){let i=t[He];return new In(i,t)}return null}var Oy=class{constructor(){}supports(e){return Yd(e)}create(e){return new Ty(e)}},Ey=(e,t)=>t,Ty=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||Ey}forEachItem(e){let t;for(t=this._itHead;t!==null;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,i=0,r=null;for(;t||n;){let s=!n||t&&t.currentIndex<_l(n,i,r)?t:n,o=_l(s,i,r),a=s.currentIndex;if(s===n)i--,n=n._nextRemoved;else if(t=t._next,s.previousIndex==null)i++;else{r||(r=[]);let l=o-i,u=a-i;if(l!=u){for(let d=0;d<l;d++){let p=d<r.length?r[d]:r[d]=0,h=p+d;u<=h&&h<l&&(r[d]=p+1)}let c=s.previousIndex;r[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=[]),!Yd(e))throw new w(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._itHead,n=!1,i,r,s;if(Array.isArray(e)){this.length=e.length;for(let o=0;o<this.length;o++)r=e[o],s=this._trackByFn(o,r),t===null||!Object.is(t.trackById,s)?(t=this._mismatch(t,r,s,o),n=!0):(n&&(t=this._verifyReinsertion(t,r,s,o)),Object.is(t.item,r)||this._addIdentityChange(t,r)),t=t._next}else i=0,M2(e,o=>{s=this._trackByFn(i,o),t===null||!Object.is(t.trackById,s)?(t=this._mismatch(t,o,s,i),n=!0):(n&&(t=this._verifyReinsertion(t,o,s,i)),Object.is(t.item,o)||this._addIdentityChange(t,o)),t=t._next,i++}),this.length=i;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,i){let r;return e===null?r=this._itTail:(r=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,r,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,i),e!==null?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):e=this._addAfter(new Py(t,n),r,i)),e}_verifyReinsertion(e,t,n,i){let r=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return r!==null?e=this._reinsertAfter(r,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),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 i=e._prevRemoved,r=e._nextRemoved;return i===null?this._removalsHead=r:i._nextRemoved=r,r===null?this._removalsTail=i:r._prevRemoved=i,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 i=t===null?this._itHead:t._next;return e._next=i,e._prev=t,i===null?this._itTail=e:i._prev=e,t===null?this._itHead=e:t._next=e,this._linkedRecords===null&&(this._linkedRecords=new wl),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 wl),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}},Py=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}},Iy=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}},wl=class{map=new Map;put(e){let t=e.trackById,n=this.map.get(t);n||(n=new Iy,this.map.set(t,n)),n.add(e)}get(e,t){let n=e,i=this.map.get(n);return i?i.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 _l(e,t,n){let i=e.previousIndex;if(i===null)return i;let r=0;return n&&i<n.length&&(r=n[i]),i+t+r}function xl(){return new Mh([new Oy])}var Mh=(()=>{class e{factories;static \u0275prov=E({token:e,providedIn:"root",factory:xl});constructor(n){this.factories=n}static create(n,i){if(i!=null){let r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:()=>{let i=v(e,{optional:!0,skipSelf:!0});return e.create(n,i||xl())}}}find(n){let i=this.factories.find(r=>r.supports(n));if(i!=null)return i;throw new w(901,!1)}}return e})();function Ly(e){let{rootComponent:t,appProviders:n,platformProviders:i,platformRef:r}=e;$(8);try{let s=r?.injector??_y(i),o=[kh({}),{provide:zn,useExisting:fy},cg,...n||[]],a=new ah({providers:o,parent:s,debugName:"",runEnvironmentInitializers:!1});return yy({r3Injector:a.injector,platformInjector:s,rootComponent:t})}catch(s){return Promise.reject(s)}finally{$(9)}}function Dy(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var Ay={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function Vy(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Ry(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var Kr;function Ny(e,t){if(!Kr){let n=Element.prototype;Kr=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?Kr.call(e,t):!1}function Fy(e){let t={};return e.forEach(({propName:n,templateName:i,transform:r})=>{t[Vy(i)]=[n,r]}),t}function Hy(e,t){return t.get(Zn).resolveComponentFactory(e).inputs}function jy(e,t){let n=e.childNodes,i=t.map(()=>[]),r=-1;t.some((s,o)=>s==="*"?(r=o,!0):!1);for(let s=0,o=n.length;s<o;++s){let a=n[s],l=zy(a,t,r);l!==-1&&i[l].push(a)}return i}function zy(e,t,n){let i=n;return Ry(e)&&t.some((r,s)=>r!=="*"&&Ny(e,r)?(i=s,!0):!1),i}var By=10,Uy=class{componentFactory;inputMap=new Map;constructor(e,t){this.componentFactory=t.get(Zn).resolveComponentFactory(e);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(e){return new Zy(this.componentFactory,e,this.inputMap)}},Zy=class{componentFactory;injector;inputMap;eventEmitters=new vu(1);events=this.eventEmitters.pipe(zu(e=>Kf(...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(oe),this.appRef=this.injector.get(Ln),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=Ay.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},By))})}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),r2(this.componentRef.hostView)&&(s2(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(e){let t=pr.create({providers:[],parent:this.injector}),n=jy(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:i})=>{let r=e.instance[n];return new J(s=>{let o=r.subscribe(a=>s.next({name:i,value:a}));return()=>o.unsubscribe()})});this.eventEmitters.next(t)}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}},$y=class extends HTMLElement{ngElementEventsSubscription=null};function qy(e,t){let n=Hy(e,t.injector),i=t.strategyFactory||new Uy(e,t.injector),r=Fy(n);class s extends $y{injector;static observedAttributes=Object.keys(r);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=i.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,p]=r[a];this.ngElementStrategy.setInputValue(d,u,p)}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 Oh=null;function er(){return Oh}function Gy(e){Oh??=e}var Wy=class{},re=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(re||{}),B=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(B||{}),he=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(he||{}),at={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 Qy(e){return Ve(e)[K.LocaleId]}function Yy(e,t,n){let i=Ve(e),r=[i[K.DayPeriodsFormat],i[K.DayPeriodsStandalone]],s=we(r,t);return we(s,n)}function Ky(e,t,n){let i=Ve(e),r=[i[K.DaysFormat],i[K.DaysStandalone]],s=we(r,t);return we(s,n)}function Jy(e,t,n){let i=Ve(e),r=[i[K.MonthsFormat],i[K.MonthsStandalone]],s=we(r,t);return we(s,n)}function Xy(e,t){let n=Ve(e)[K.Eras];return we(n,t)}function Xn(e,t){let n=Ve(e);return we(n[K.DateFormat],t)}function ei(e,t){let n=Ve(e);return we(n[K.TimeFormat],t)}function ti(e,t){let n=Ve(e)[K.DateTimeFormat];return we(n,t)}function xr(e,t){let n=Ve(e),i=n[K.NumberSymbols][t];if(typeof i>"u"){if(t===at.CurrencyDecimal)return n[K.NumberSymbols][at.Decimal];if(t===at.CurrencyGroup)return n[K.NumberSymbols][at.Group]}return i}function Eh(e){if(!e[K.ExtraData])throw new w(2303,!1)}function eC(e){let t=Ve(e);return Eh(t),(t[K.ExtraData][2]||[]).map(n=>typeof n=="string"?Jr(n):[Jr(n[0]),Jr(n[1])])}function tC(e,t,n){let i=Ve(e);Eh(i);let r=[i[K.ExtraData][0],i[K.ExtraData][1]],s=we(r,t)||[];return we(s,n)||[]}function we(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new w(2304,!1)}function Jr(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var nC=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ni={},iC=/((?:[^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 rC(e,t,n,i){let r=pC(e);t=Ze(n,t)||t;let s=[],o;for(;t;)if(o=iC.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=r.getTimezoneOffset();i&&(a=Ph(i,a),r=hC(r,i));let l="";return s.forEach(u=>{let c=cC(u);l+=c?c(r,n,a):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function tr(e,t,n){let i=new Date(0);return i.setFullYear(e,t,n),i.setHours(0,0,0),i}function Ze(e,t){let n=Qy(e);if(ni[n]??={},ni[n][t])return ni[n][t];let i="";switch(t){case"shortDate":i=Xn(e,he.Short);break;case"mediumDate":i=Xn(e,he.Medium);break;case"longDate":i=Xn(e,he.Long);break;case"fullDate":i=Xn(e,he.Full);break;case"shortTime":i=ei(e,he.Short);break;case"mediumTime":i=ei(e,he.Medium);break;case"longTime":i=ei(e,he.Long);break;case"fullTime":i=ei(e,he.Full);break;case"short":let r=Ze(e,"shortTime"),s=Ze(e,"shortDate");i=ii(ti(e,he.Short),[r,s]);break;case"medium":let o=Ze(e,"mediumTime"),a=Ze(e,"mediumDate");i=ii(ti(e,he.Medium),[o,a]);break;case"long":let l=Ze(e,"longTime"),u=Ze(e,"longDate");i=ii(ti(e,he.Long),[l,u]);break;case"full":let c=Ze(e,"fullTime"),d=Ze(e,"fullDate");i=ii(ti(e,he.Full),[c,d]);break}return i&&(ni[n][t]=i),i}function ii(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,i){return t!=null&&i in t?t[i]:n})),e}function Ee(e,t,n="-",i,r){let s="";(e<0||r&&e<=0)&&(r?e=-e+1:(e=-e,s=n));let o=String(e);for(;o.length<t;)o="0"+o;return i&&(o=o.slice(o.length-t)),s+o}function sC(e,t){return Ee(e,3).substring(0,t)}function Q(e,t,n=0,i=!1,r=!1){return function(s,o){let a=oC(e,s);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return sC(a,t);let l=xr(o,at.MinusSign);return Ee(a,t,l,i,r)}}function oC(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,i=!1){return function(r,s){return aC(r,s,e,t,n,i)}}function aC(e,t,n,i,r,s){switch(n){case 2:return Jy(t,r,i)[e.getMonth()];case 1:return Ky(t,r,i)[e.getDay()];case 0:let o=e.getHours(),a=e.getMinutes();if(s){let u=eC(t),c=tC(t,r,i),d=u.findIndex(p=>{if(Array.isArray(p)){let[h,g]=p,y=o>=h.hours&&a>=h.minutes,C=o<g.hours||o===g.hours&&a<g.minutes;if(h.hours<g.hours){if(y&&C)return!0}else if(y||C)return!0}else if(p.hours===o&&p.minutes===a)return!0;return!1});if(d!==-1)return c[d]}return Yy(t,r,i)[o<12?0:1];case 3:return Xy(t,i)[e.getFullYear()<=0?0:1];default:let l=n;throw new w(2302,!1)}}function ri(e){return function(t,n,i){let r=-1*i,s=xr(n,at.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case 0:return(r>=0?"+":"")+Ee(o,2,s)+Ee(Math.abs(r%60),2,s);case 1:return"GMT"+(r>=0?"+":"")+Ee(o,1,s);case 2:return"GMT"+(r>=0?"+":"")+Ee(o,2,s)+":"+Ee(Math.abs(r%60),2,s);case 3:return i===0?"Z":(r>=0?"+":"")+Ee(o,2,s)+":"+Ee(Math.abs(r%60),2,s);default:throw new w(2310,!1)}}}var lC=0,Ci=4;function uC(e){let t=tr(e,lC,1).getDay();return tr(e,0,1+(t<=Ci?Ci:Ci+7)-t)}function Th(e){let t=e.getDay(),n=t===0?-3:Ci-t;return tr(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Xr(e,t=!1){return function(n,i){let r;if(t){let s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,o=n.getDate();r=1+Math.floor((o+s)/7)}else{let s=Th(n),o=uC(s.getFullYear()),a=s.getTime()-o.getTime();r=1+Math.round(a/6048e5)}return Ee(r,e,xr(i,at.MinusSign))}}function si(e,t=!1){return function(n,i){let r=Th(n).getFullYear();return Ee(r,e,xr(i,at.MinusSign),t)}}var es={};function cC(e){if(es[e])return es[e];let t;switch(e){case"G":case"GG":case"GGG":t=Z(3,B.Abbreviated);break;case"GGGG":t=Z(3,B.Wide);break;case"GGGGG":t=Z(3,B.Narrow);break;case"y":t=Q(0,1,0,!1,!0);break;case"yy":t=Q(0,2,0,!0,!0);break;case"yyy":t=Q(0,3,0,!1,!0);break;case"yyyy":t=Q(0,4,0,!1,!0);break;case"Y":t=si(1);break;case"YY":t=si(2,!0);break;case"YYY":t=si(3);break;case"YYYY":t=si(4);break;case"M":case"L":t=Q(1,1,1);break;case"MM":case"LL":t=Q(1,2,1);break;case"MMM":t=Z(2,B.Abbreviated);break;case"MMMM":t=Z(2,B.Wide);break;case"MMMMM":t=Z(2,B.Narrow);break;case"LLL":t=Z(2,B.Abbreviated,re.Standalone);break;case"LLLL":t=Z(2,B.Wide,re.Standalone);break;case"LLLLL":t=Z(2,B.Narrow,re.Standalone);break;case"w":t=Xr(1);break;case"ww":t=Xr(2);break;case"W":t=Xr(1,!0);break;case"d":t=Q(2,1);break;case"dd":t=Q(2,2);break;case"c":case"cc":t=Q(7,1);break;case"ccc":t=Z(1,B.Abbreviated,re.Standalone);break;case"cccc":t=Z(1,B.Wide,re.Standalone);break;case"ccccc":t=Z(1,B.Narrow,re.Standalone);break;case"cccccc":t=Z(1,B.Short,re.Standalone);break;case"E":case"EE":case"EEE":t=Z(1,B.Abbreviated);break;case"EEEE":t=Z(1,B.Wide);break;case"EEEEE":t=Z(1,B.Narrow);break;case"EEEEEE":t=Z(1,B.Short);break;case"a":case"aa":case"aaa":t=Z(0,B.Abbreviated);break;case"aaaa":t=Z(0,B.Wide);break;case"aaaaa":t=Z(0,B.Narrow);break;case"b":case"bb":case"bbb":t=Z(0,B.Abbreviated,re.Standalone,!0);break;case"bbbb":t=Z(0,B.Wide,re.Standalone,!0);break;case"bbbbb":t=Z(0,B.Narrow,re.Standalone,!0);break;case"B":case"BB":case"BBB":t=Z(0,B.Abbreviated,re.Format,!0);break;case"BBBB":t=Z(0,B.Wide,re.Format,!0);break;case"BBBBB":t=Z(0,B.Narrow,re.Format,!0);break;case"h":t=Q(3,1,-12);break;case"hh":t=Q(3,2,-12);break;case"H":t=Q(3,1);break;case"HH":t=Q(3,2);break;case"m":t=Q(4,1);break;case"mm":t=Q(4,2);break;case"s":t=Q(5,1);break;case"ss":t=Q(5,2);break;case"S":t=Q(6,1);break;case"SS":t=Q(6,2);break;case"SSS":t=Q(6,3);break;case"Z":case"ZZ":case"ZZZ":t=ri(0);break;case"ZZZZZ":t=ri(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ri(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=ri(2);break;default:return null}return es[e]=t,t}function Ph(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function dC(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function hC(e,t,n){let i=e.getTimezoneOffset(),r=Ph(t,i);return dC(e,-1*(r-i))}function pC(e){if(kl(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[r,s=1,o=1]=e.split("-").map(a=>+a);return tr(r,s-1,o)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let i;if(i=e.match(nC))return fC(i)}let t=new Date(e);if(!kl(t))throw new w(2311,!1);return t}function fC(e){let t=new Date(0),n=0,i=0,r=e[8]?t.setUTCFullYear:t.setFullYear,s=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let o=Number(e[4]||0)-n,a=Number(e[5]||0)-i,l=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return s.call(t,o,a,l,u),t}function kl(e){return e instanceof Date&&!isNaN(e.valueOf())}var ts=/\s+/,Sl=[],gC=(()=>{class e{_ngEl;_renderer;initialClasses=Sl;rawClass;stateMap=new Map;constructor(n,i){this._ngEl=n,this._renderer=i}set klass(n){this.initialClasses=n!=null?n.trim().split(ts):Sl}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(ts):n}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let i of n)this._updateState(i,!0);else if(n!=null)for(let i of Object.keys(n))this._updateState(i,!!n[i]);this._applyStateDiff()}_updateState(n,i){let r=this.stateMap.get(n);r!==void 0?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(n,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let i=n[0],r=n[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(n,i){n=n.trim(),n.length>0&&n.split(ts).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(n){return new(n||e)(j(Et),j(ea))};static \u0275dir=_e({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})(),mC=class{$implicit;ngForOf;index;count;constructor(e,t,n,i){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=i}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}},kr=(()=>{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,i,r){this._viewContainer=n,this._template=i,this._differs=r}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 i=this._viewContainer;n.forEachOperation((r,s,o)=>{if(r.previousIndex==null)i.createEmbeddedView(this._template,new mC(r.item,this._ngForOf,-1,-1),o===null?void 0:o);else if(o==null)i.remove(s===null?void 0:s);else if(s!==null){let a=i.get(s);i.move(a,o),Ml(a,r)}});for(let r=0,s=i.length;r<s;r++){let o=i.get(r).context;o.index=r,o.count=s,o.ngForOf=this._ngForOf}n.forEachIdentityChange(r=>{let s=i.get(r.currentIndex);Ml(s,r)})}static ngTemplateContextGuard(n,i){return!0}static \u0275fac=function(n){return new(n||e)(j(an),j(St),j(Mh))};static \u0275dir=_e({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function Ml(e,t){e.context.$implicit=t.item}var It=(()=>{class e{_viewContainer;_context=new vC;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,i){this._viewContainer=n,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Ol(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Ol(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,i){return!0}static \u0275fac=function(n){return new(n||e)(j(an),j(St))};static \u0275dir=_e({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),vC=class{$implicit=null;ngIf=null};function Ol(e,t){if(e&&!e.createEmbeddedView)throw new w(2020,!1)}var yC=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()}},Ih=(()=>{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 i=n===this._ngSwitch;return this._lastCasesMatched||=i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(n){if(this._defaultViews.length>0&&n!==this._defaultUsed){this._defaultUsed=n;for(let i of this._defaultViews)i.enforceState(n)}}static \u0275fac=function(n){return new(n||e)};static \u0275dir=_e({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return e})(),CC=(()=>{class e{ngSwitch;_view;ngSwitchCase;constructor(n,i,r){this.ngSwitch=r,r._addCase(),this._view=new yC(n,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(n){return new(n||e)(j(an),j(St),j(Ih,9))};static \u0275dir=_e({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return e})();function bC(e,t){return new w(2100,!1)}var wC="mediumDate",_C=new M(""),xC=new M(""),Lh=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,i,r){this.locale=n,this.defaultTimezone=i,this.defaultOptions=r}transform(n,i,r,s){if(n==null||n===""||n!==n)return null;try{let o=i??this.defaultOptions?.dateFormat??wC,a=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return rC(n,o,s||this.locale,a)}catch(o){throw bC(e,o.message)}}static \u0275fac=function(n){return new(n||e)(j(pa,16),j(_C,24),j(xC,24))};static \u0275pipe=gv({name:"date",type:e,pure:!0})}return e})(),ke=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=_r({type:e});static \u0275inj=or({})}return e})();function Dh(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let i=n.indexOf("="),[r,s]=i==-1?[n,""]:[n.slice(0,i),n.slice(i+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}var Ah=class{},Vh="browser";function kC(e){return e===Vh}var Rh=class{_doc;constructor(e){this._doc=e}manager},zs=(()=>{class e extends Rh{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,r,s){return n.addEventListener(i,r,s),()=>this.removeEventListener(n,i,r,s)}removeEventListener(n,i,r,s){return n.removeEventListener(i,r,s)}static \u0275fac=function(n){return new(n||e)(b(Be))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),Bs=new M(""),Nh=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,i){this._zone=i,n.forEach(o=>{o.manager=this});let r=n.filter(o=>!(o instanceof zs));this._plugins=r.slice().reverse();let s=n.find(o=>o instanceof zs);s&&this._plugins.push(s)}addEventListener(n,i,r,s){return this._findPluginFor(i).addEventListener(n,i,r,s)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(r=>r.supports(n)),!i)throw new w(5101,!1);return this._eventNameToPlugin.set(n,i),i}static \u0275fac=function(n){return new(n||e)(b(Bs),b(oe))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),ns="ng-app-id";function El(e){for(let t of e)t.remove()}function Tl(e,t){let n=t.createElement("style");return n.textContent=e,n}function SC(e,t,n,i){let r=e.head?.querySelectorAll(`style[${ns}="${t}"],link[${ns}="${t}"]`);if(r)for(let s of r)s.removeAttribute(ns),s instanceof HTMLLinkElement?i.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&n.set(s.textContent,{usage:0,elements:[s]})}function Us(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Fh=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,i,r,s={}){this.doc=n,this.appId=i,this.nonce=r,SC(n,i,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,i){for(let r of n)this.addUsage(r,this.inline,Tl);i?.forEach(r=>this.addUsage(r,this.external,Us))}removeStyles(n,i){for(let r of n)this.removeUsage(r,this.inline);i?.forEach(r=>this.removeUsage(r,this.external))}addUsage(n,i,r){let s=i.get(n);s?s.usage++:i.set(n,{usage:1,elements:[...this.hosts].map(o=>this.addElement(o,r(n,this.doc)))})}removeUsage(n,i){let r=i.get(n);r&&(r.usage--,r.usage<=0&&(El(r.elements),i.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])El(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[i,{elements:r}]of this.inline)r.push(this.addElement(n,Tl(i,this.doc)));for(let[i,{elements:r}]of this.external)r.push(this.addElement(n,Us(i,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,i){return this.nonce&&i.setAttribute("nonce",this.nonce),n.appendChild(i)}static \u0275fac=function(n){return new(n||e)(b(Be),b(id),b(sd,8),b(Do))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),is={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"},fa=/%COMP%/g,Hh="%COMP%",MC=`_nghost-${Hh}`,OC=`_ngcontent-${Hh}`,EC=!0,TC=new M("",{providedIn:"root",factory:()=>EC});function PC(e){return OC.replace(fa,e)}function IC(e){return MC.replace(fa,e)}function jh(e,t){return t.map(n=>n.replace(fa,e))}var Pl=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,i,r,s,o,a,l=null,u=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=s,this.doc=o,this.ngZone=a,this.nonce=l,this.tracingService=u,this.platformIsServer=!1,this.defaultRenderer=new ga(n,o,a,this.platformIsServer,this.tracingService)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;let r=this.getOrCreateRenderer(n,i);return r instanceof Ll?r.applyToHost(n):r instanceof Zs&&r.applyStyles(),r}getOrCreateRenderer(n,i){let r=this.rendererByCompId,s=r.get(i.id);if(!s){let o=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,d=this.platformIsServer,p=this.tracingService;switch(i.encapsulation){case kt.Emulated:s=new Ll(l,u,i,this.appId,c,o,a,d,p);break;case kt.ShadowDom:return new LC(l,u,n,i,o,a,this.nonce,d,p);default:s=new Zs(l,u,i,c,o,a,d,p);break}r.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(n){return new(n||e)(b(Nh),b(Fh),b(id),b(TC),b(Be),b(oe),b(sd),b(jo,8))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),ga=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,n,i,r){this.eventManager=e,this.doc=t,this.ngZone=n,this.platformIsServer=i,this.tracingService=r}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS(is[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(Il(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(Il(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,i){if(i){t=i+":"+t;let r=is[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let i=is[n];i?e.removeAttributeNS(i,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,i){i&(mt.DashCase|mt.Important)?e.style.setProperty(t,n,i&mt.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&mt.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,i){if(typeof e=="string"&&(e=er().getGlobalEventTarget(this.doc,e),!e))throw new w(5102,!1);let r=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(r=this.tracingService.wrapEventListener(e,t,r)),this.eventManager.addEventListener(e,t,r,i)}decoratePreventDefault(e){return t=>{if(t==="__ngUnwrap__")return e;e(t)===!1&&t.preventDefault()}}};function Il(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var LC=class extends ga{sharedStylesHost;hostEl;shadowRoot;constructor(e,t,n,i,r,s,o,a,l){super(e,r,s,a,l),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=i.styles;u=jh(i.id,u);for(let d of u){let p=document.createElement("style");o&&p.setAttribute("nonce",o),p.textContent=d,this.shadowRoot.appendChild(p)}let c=i.getExternalStyles?.();if(c)for(let d of c){let p=Us(d,r);o&&p.setAttribute("nonce",o),this.shadowRoot.appendChild(p)}}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)}},Zs=class extends ga{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,i,r,s,o,a,l){super(e,r,s,o,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i;let u=n.styles;this.styles=l?jh(l,u):u,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Wi.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Ll=class extends Zs{contentAttr;hostAttr;constructor(e,t,n,i,r,s,o,a,l){let u=i+"-"+n.id;super(e,t,n,r,s,o,a,l,u),this.contentAttr=PC(u),this.hostAttr=IC(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}},DC=class zh extends Wy{supportsDOMEvents=!0;static makeCurrent(){Gy(new zh)}onAndCancel(t,n,i,r){return t.addEventListener(n,i,r),()=>{t.removeEventListener(n,i,r)}}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=AC();return n==null?null:VC(n)}resetBaseElement(){mn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Dh(document.cookie,t)}},mn=null;function AC(){return mn=mn||document.head.querySelector("base"),mn?mn.getAttribute("href"):null}function VC(e){return new URL(e,document.baseURI).pathname}var RC=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||e)};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),Dl=["alt","control","meta","shift"],NC={"\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"},FC={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},HC=(()=>{class e extends Rh{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,r,s){let o=e.parseEventName(i),a=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>er().onAndCancel(n,o.domEventName,a,s))}static parseEventName(n){let i=n.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let s=e._normalizeKey(i.pop()),o="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),o="code."),Dl.forEach(u=>{let c=i.indexOf(u);c>-1&&(i.splice(c,1),o+=u+".")}),o+=s,i.length!=0||s.length===0)return null;let l={};return l.domEventName=r,l.fullKey=o,l}static matchEventFullKeyCode(n,i){let r=NC[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(r=n.code,s="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),Dl.forEach(o=>{if(o!==r){let a=FC[o];a(n)&&(s+=o+".")}}),s+=r,s===i)}static eventCallback(n,i,r){return s=>{e.matchEventFullKeyCode(s,n)&&r.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(n){return new(n||e)(b(Be))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})();function jC(e){return Ly(zC(e))}function zC(e){return{appProviders:[...qC,...e?.providers??[]],platformProviders:$C}}function BC(){DC.makeCurrent()}function UC(){return new jn}function ZC(){return Zg(document),document}var $C=[{provide:Do,useValue:Vh},{provide:rd,useValue:BC,multi:!0},{provide:Be,useFactory:ZC}],qC=[{provide:Co,useValue:"root"},{provide:jn,useFactory:UC},{provide:Bs,useClass:zs,multi:!0,deps:[Be]},{provide:Bs,useClass:HC,multi:!0,deps:[Be]},Pl,Fh,Nh,{provide:Xo,useExisting:Pl},{provide:Ah,useClass:RC},[]],ma=class{},Sr=class{},Jt=class bi{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 i=n.indexOf(":");if(i>0){let r=n.slice(0,i),s=n.slice(i+1).trim();this.addHeaderEntry(r,s)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,i)=>{this.addHeaderEntry(i,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,i])=>{this.setHeaderEntries(n,i)})}: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 bi?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 bi;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof bi?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 i=t.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(t.name,n);let r=(t.op==="a"?this.headers.get(n):void 0)||[];r.push(...i),this.headers.set(n,r);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 i=t.toLowerCase();this.maybeSetNormalizedName(t,i),this.headers.has(i)?this.headers.get(i).push(n):this.headers.set(i,[n])}setHeaderEntries(t,n){let i=(Array.isArray(n)?n:[n]).map(s=>s.toString()),r=t.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(t,r)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}},GC=class{encodeKey(e){return Al(e)}encodeValue(e){return Al(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function WC(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{let r=i.indexOf("="),[s,o]=r==-1?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,r)),t.decodeValue(i.slice(r+1))],a=n.get(s)||[];a.push(o),n.set(s,a)}),n}var QC=/%(\d[a-f0-9])/gi,YC={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Al(e){return encodeURIComponent(e).replace(QC,(t,n)=>YC[n]??t)}function oi(e){return`${e}`}var Ge=class Bh{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new GC,t.fromString){if(t.fromObject)throw new w(2805,!1);this.map=WC(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let i=t.fromObject[n],r=Array.isArray(i)?i.map(oi):[oi(i)];this.map.set(n,r)})):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(i=>{let r=t[i];Array.isArray(r)?r.forEach(s=>{n.push({param:i,value:s,op:"a"})}):n.push({param:i,value:r,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(i=>n+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new Bh({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(oi(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let i=this.map.get(t.param)||[],r=i.indexOf(oi(t.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}},KC=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 JC(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Vl(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Rl(e){return typeof Blob<"u"&&e instanceof Blob}function Nl(e){return typeof FormData<"u"&&e instanceof FormData}function XC(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Fl="Content-Type",Hl="Accept",Uh="X-Request-URL",Zh="text/plain",$h="application/json",e5=`${$h}, ${Zh}, */*`,Cn=class qh{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,i,r){this.url=n,this.method=t.toUpperCase();let s;if(JC(this.method)||r?(this.body=i!==void 0?i:null,s=r):s=i,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 Jt,this.context??=new KC,!this.params)this.params=new Ge,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"||Vl(this.body)||Rl(this.body)||Nl(this.body)||XC(this.body)?this.body:this.body instanceof Ge?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||Nl(this.body)?null:Rl(this.body)?this.body.type||null:Vl(this.body)?null:typeof this.body=="string"?Zh:this.body instanceof Ge?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?$h:null}clone(t={}){let n=t.method||this.method,i=t.url||this.url,r=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,p=t.integrity||this.integrity,h=t.transferCache??this.transferCache,g=t.timeout??this.timeout,y=t.body!==void 0?t.body:this.body,C=t.withCredentials??this.withCredentials,R=t.reportProgress??this.reportProgress,Se=t.headers||this.headers,X=t.params||this.params,un=t.context??this.context;return t.setHeaders!==void 0&&(Se=Object.keys(t.setHeaders).reduce((cn,ht)=>cn.set(ht,t.setHeaders[ht]),Se)),t.setParams&&(X=Object.keys(t.setParams).reduce((cn,ht)=>cn.set(ht,t.setParams[ht]),X)),new qh(n,i,y,{params:X,headers:Se,context:un,reportProgress:R,responseType:r,withCredentials:C,transferCache:h,keepalive:s,cache:a,priority:o,timeout:g,mode:l,redirect:u,credentials:c,referrer:d,integrity:p})}},zt=(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})(zt||{}),va=class{headers;status;statusText;url;ok;type;redirected;constructor(e,t=200,n="OK"){this.headers=e.headers||new Jt,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}},t5=class Gh extends va{constructor(t={}){super(t)}type=zt.ResponseHeader;clone(t={}){return new Gh({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})}},Mr=class Wh extends va{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=zt.Response;clone(t={}){return new Wh({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})}},rs=class extends va{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}},n5=200,i5=204;function ss(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 ya=(()=>{class e{handler;constructor(n){this.handler=n}request(n,i,r={}){let s;if(n instanceof Cn)s=n;else{let l;r.headers instanceof Jt?l=r.headers:l=new Jt(r.headers);let u;r.params&&(r.params instanceof Ge?u=r.params:u=new Ge({fromObject:r.params})),s=new Cn(n,i,r.body!==void 0?r.body:null,{headers:l,context:r.context,params:u,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache,keepalive:r.keepalive,priority:r.priority,cache:r.cache,mode:r.mode,redirect:r.redirect,credentials:r.credentials,referrer:r.referrer,integrity:r.integrity,timeout:r.timeout})}let o=$e(s).pipe(Fu(l=>this.handler.handle(l)));if(n instanceof Cn||r.observe==="events")return o;let a=o.pipe(Ai(l=>l instanceof Mr));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(Te(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new w(2806,!1);return l.body}));case"blob":return a.pipe(Te(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new w(2807,!1);return l.body}));case"text":return a.pipe(Te(l=>{if(l.body!==null&&typeof l.body!="string")throw new w(2808,!1);return l.body}));case"json":default:return a.pipe(Te(l=>l.body))}case"response":return a;default:throw new w(2809,!1)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new Ge().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,r={}){return this.request("PATCH",n,ss(r,i))}post(n,i,r={}){return this.request("POST",n,ss(r,i))}put(n,i,r={}){return this.request("PUT",n,ss(r,i))}static \u0275fac=function(n){return new(n||e)(b(ma))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),r5=new M("");function Qh(e,t){return t(e)}function s5(e,t){return(n,i)=>t.intercept(n,{handle:r=>e(r,i)})}function o5(e,t,n){return(i,r)=>_o(n,()=>t(i,s=>e(s,r)))}var Yh=new M(""),Ca=new M(""),a5=new M(""),Kh=new M("",{providedIn:"root",factory:()=>!0});function l5(){let e=null;return(t,n)=>{e===null&&(e=(v(Yh,{optional:!0})??[]).reduceRight(s5,Qh));let i=v(Dc);if(v(Kh)){let r=i.add();return e(t,n).pipe(ju(r))}else return e(t,n)}}var jl=(()=>{class e extends ma{backend;injector;chain=null;pendingTasks=v(Dc);contributeToStability=v(Kh);constructor(n,i){super(),this.backend=n,this.injector=i}handle(n){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(Ca),...this.injector.get(a5,[])]));this.chain=i.reduceRight((r,s)=>o5(r,s,this.injector),Qh)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(n,r=>this.backend.handle(r)).pipe(ju(i))}else return this.chain(n,i=>this.backend.handle(i))}static \u0275fac=function(n){return new(n||e)(b(Sr),b(We))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),u5=/^\)\]\}',?\n/,c5=RegExp(`^${Uh}:`,"m");function d5(e){return"responseURL"in e&&e.responseURL?e.responseURL:c5.test(e.getAllResponseHeaders())?e.getResponseHeader(Uh):null}var zl=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new w(-2800,!1);let i=this.xhrFactory;return $e(null).pipe(zu(()=>new J(r=>{let s=i.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((y,C)=>s.setRequestHeader(y,C.join(","))),n.headers.has(Hl)||s.setRequestHeader(Hl,e5),!n.headers.has(Fl)){let y=n.detectContentTypeHeader();y!==null&&s.setRequestHeader(Fl,y)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let y=n.responseType.toLowerCase();s.responseType=y!=="json"?y:"text"}let o=n.serializeBody(),a=null,l=()=>{if(a!==null)return a;let y=s.statusText||"OK",C=new Jt(s.getAllResponseHeaders()),R=d5(s)||n.url;return a=new t5({headers:C,status:s.status,statusText:y,url:R}),a},u=()=>{let{headers:y,status:C,statusText:R,url:Se}=l(),X=null;C!==i5&&(X=typeof s.response>"u"?s.responseText:s.response),C===0&&(C=X?n5:0);let un=C>=200&&C<300;if(n.responseType==="json"&&typeof X=="string"){let cn=X;X=X.replace(u5,"");try{X=X!==""?JSON.parse(X):null}catch(ht){X=cn,un&&(un=!1,X={error:ht,text:X})}}un?(r.next(new Mr({body:X,headers:y,status:C,statusText:R,url:Se||void 0})),r.complete()):r.error(new rs({error:X,headers:y,status:C,statusText:R,url:Se||void 0}))},c=y=>{let{url:C}=l(),R=new rs({error:y,status:s.status||0,statusText:s.statusText||"Unknown Error",url:C||void 0});r.error(R)},d=c;n.timeout&&(d=y=>{let{url:C}=l(),R=new rs({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:C||void 0});r.error(R)});let p=!1,h=y=>{p||(r.next(l()),p=!0);let C={type:zt.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(C.total=y.total),n.responseType==="text"&&s.responseText&&(C.partialText=s.responseText),r.next(C)},g=y=>{let C={type:zt.UploadProgress,loaded:y.loaded};y.lengthComputable&&(C.total=y.total),r.next(C)};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",g)),s.send(o),r.next({type:zt.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",g)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(n){return new(n||e)(b(Ah))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),Jh=new M(""),h5="XSRF-TOKEN",p5=new M("",{providedIn:"root",factory:()=>h5}),f5="X-XSRF-TOKEN",g5=new M("",{providedIn:"root",factory:()=>f5}),Xh=class{},m5=(()=>{class e{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,i){this.doc=n,this.cookieName=i}getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Dh(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(n){return new(n||e)(b(Be),b(p5))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),v5=/^(?:https?:)?\/\//i;function y5(e,t){if(!v(Jh)||e.method==="GET"||e.method==="HEAD"||v5.test(e.url))return t(e);let n=v(Xh).getToken(),i=v(g5);return n!=null&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,n)})),t(e)}var ep=(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})(ep||{});function C5(e,t){return{\u0275kind:e,\u0275providers:t}}function b5(...e){let t=[ya,zl,jl,{provide:ma,useExisting:jl},{provide:Sr,useFactory:()=>v(r5,{optional:!0})??v(zl)},{provide:Ca,useValue:y5,multi:!0},{provide:Jh,useValue:!0},{provide:Xh,useClass:m5}];for(let n of e)t.push(...n.\u0275providers);return lr(t)}var Bl=new M("");function w5(){return C5(ep.LegacyInterceptors,[{provide:Bl,useFactory:l5},{provide:Ca,useExisting:Bl,multi:!0}])}var tp=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=E({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=b(_5),i},providedIn:"root"})}return e})(),_5=(()=>{class e extends tp{_doc;constructor(n){super(),this._doc=n}sanitize(n,i){if(i==null)return null;switch(n){case rt.NONE:return i;case rt.HTML:return Vt(i,"HTML")?ft(i):md(this._doc,String(i)).toString();case rt.STYLE:return Vt(i,"Style")?ft(i):i;case rt.SCRIPT:if(Vt(i,"Script"))return ft(i);throw new w(5200,!1);case rt.URL:return Vt(i,"URL")?ft(i):cd(String(i));case rt.RESOURCE_URL:if(Vt(i,"ResourceURL"))return ft(i);throw new w(5201,!1);default:throw new w(5202,!1)}}bypassSecurityTrustHtml(n){return o0(n)}bypassSecurityTrustStyle(n){return a0(n)}bypassSecurityTrustScript(n){return l0(n)}bypassSecurityTrustUrl(n){return u0(n)}bypassSecurityTrustResourceUrl(n){return c0(n)}static \u0275fac=function(n){return new(n||e)(b(Be))};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),np={},x5={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(e,t){np[e]=t,x5[t]=e});function k5(e){for(var t=[],n=0,i=0,r=0;r<e.length;r+=1){var s=np[e[r]];if(s===void 0)throw new Error("Invalid character ("+e[r]+")");var o=s&32;if(s&=31,i+=s<<n,o)n+=5;else{var a=i&1;i>>>=1,a?t.push(i===0?-2147483648:-i):t.push(i),i=n=0}}return t}var wi="TOKEN_LOGGER_CONFIG",S5=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}},bn="TOKEN_LOGGER_CONFIG_ENGINE_FACTORY",M5=class{provideConfigEngine(e){return new S5(e)}},wn="TOKEN_LOGGER_MAPPER_SERVICE",O5=(()=>{class e{constructor(n){this.httpBackend=n,this.sourceMapCache=new Map,this.logPositionCache=new Map}getLogPosition(n,i){let r=this.getStackLine(n);if(!r)return $e({fileName:"",lineNumber:0,columnNumber:0});let s=this.getLocalPosition(r);if(!n.enableSourceMaps)return $e(s);let o=this.getSourceMapLocation(r);return this.getSourceMap(o,s)}getStackLine(n){let i=new Error;try{throw i}catch{try{let r=4;return i.stack.split(`
|
|
6
|
+
`)[0].includes(".js:")||(r=r+1),i.stack.split(`
|
|
7
|
+
`)[r+(n.proxiedSteps||0)]}catch{return null}}}getLocalPosition(n){let i=n.lastIndexOf("/"),r=n.indexOf(")");r<0&&(r=void 0);let s=n.substring(i+1,r).split(":");return s.length===3?{fileName:s[0],lineNumber:+s[1],columnNumber:+s[2]}:{fileName:"unknown",lineNumber:0,columnNumber:0}}getTranspileLocation(n){let i=n.indexOf("(");i<0&&(i=n.lastIndexOf("@"),i<0&&(i=n.lastIndexOf(" ")));let r=n.indexOf(")");return r<0&&(r=void 0),n.substring(i+1,r)}getSourceMapLocation(n){let i=this.getTranspileLocation(n),r=i.substring(0,i.lastIndexOf(":"));return r.substring(0,r.lastIndexOf(":"))+".map"}getMapping(n,i){let r=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 p=k5(c[d]);if(p.length>=4&&(u+=p[0],r+=p[1],s+=p[2],o+=p[3]),l===i.lineNumber){if(u===i.columnNumber)return{fileName:n.sources[r],lineNumber:s,columnNumber:o};if(d+1===c.length)return{fileName:n.sources[r],lineNumber:s,columnNumber:0}}}}return{fileName:"unknown",lineNumber:0,columnNumber:0}}getSourceMap(n,i){let r=new Cn("GET",n),s=`${i.fileName}:${i.lineNumber}:${i.columnNumber}`;if(this.logPositionCache.has(s))return this.logPositionCache.get(s);this.sourceMapCache.has(n)||(this.httpBackend?this.sourceMapCache.set(n,this.httpBackend.handle(r).pipe(Ai(a=>a instanceof Mr),Te(a=>a.body),Jf(3),Ia(1))):(console.error("NGXLogger : Can't get sourcemap because HttpBackend is not provided. You need to import HttpClientModule"),this.sourceMapCache.set(n,$e(null))));let o=this.sourceMapCache.get(n).pipe(Te(a=>a?this.getMapping(a,i):i),Oe(()=>$e(i)),Ia(1));return this.logPositionCache.set(s,o),o}}return e.\u0275fac=function(t){return new(t||e)(b(Sr,8))},e.\u0275prov=E({token:e,factory:e.\u0275fac}),e})(),_n="TOKEN_LOGGER_METADATA_SERVICE",E5=(()=>{class e{constructor(n){this.datePipe=n}computeTimestamp(n){let i=()=>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"),i()):i()}getMetadata(n,i,r,s){let o={level:n,additional:s};return r&&typeof r=="function"?o.message=r():o.message=r,o.timestamp=this.computeTimestamp(i),o}}return e.\u0275fac=function(t){return new(t||e)(b(Lh,8))},e.\u0275prov=E({token:e,factory:e.\u0275fac}),e})(),xn="TOKEN_LOGGER_RULES_SERVICE",T5=(()=>{class e{shouldCallWriter(n,i,r,s){return!i.disableConsoleLogging&&n>=i.level}shouldCallServer(n,i,r,s){return!!i.serverLoggingUrl&&n>=i.serverLogLevel}shouldCallMonitor(n,i,r,s){return this.shouldCallWriter(n,i,r,s)||this.shouldCallServer(n,i,r,s)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac}),e})(),kn="TOKEN_LOGGER_SERVER_SERVICE",P5=(()=>{class e{constructor(n,i){this.httpBackend=n,this.ngZone=i,this.serverCallsQueue=[],this.flushingQueue=new mu(!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((i,r)=>{try{return i instanceof Error?this.secureErrorObject(i):(typeof i=="object"&&JSON.stringify(i),i)}catch{return`The additional[${r}] 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,i,r){if(!this.httpBackend)return console.error("NGXLogger : Can't log on server because HttpBackend is not provided. You need to import HttpClientModule"),$e(null);let s=new Cn("POST",n,i,r||{}),o=$e(s),a=this.alterHttpRequest(s);return Af(a)?o=a:a?o=$e(a):console.warn("NGXLogger : alterHttpRequest returned an invalid request. Using default one instead"),o.pipe(Fu(l=>l?this.httpBackend.handle(l):(console.warn("NGXLogger : alterHttpRequest returned an invalid request (observable). Using default one instead"),this.httpBackend.handle(s))),Ai(l=>l instanceof Mr),Te(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,i){let r,s=l=>{let u=T({},l);return u.additional=this.secureAdditionalParameters(u.additional),u.message=this.secureMessage(u.message),u};Array.isArray(n)?(r=[],n.forEach(l=>{r.push(s(l))})):r=s(n),r=this.customiseRequestBody(r);let o=i.customHttpHeaders||new Jt;o.has("Content-Type")||o.set("Content-Type","application/json");let a=()=>{this.logOnServer(i.serverLoggingUrl,r,{headers:o,params:i.customHttpParams||new Ge,responseType:i.httpResponseType||"json",withCredentials:i.withCredentials||!1}).pipe(Oe(l=>(console.error("NGXLogger: Failed to log on server",l),fo(l)))).subscribe()};if(i.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,i){if((!i.serverCallsBatchSize||i.serverCallsBatchSize<=0)&&(!i.serverCallsTimer||i.serverCallsTimer<=0)){this.sendToServerAction(n,i);return}let r=()=>{this.serverCallsQueue.push(T({},n)),i.serverCallsBatchSize&&this.serverCallsQueue.length>i.serverCallsBatchSize&&this.flushQueue(i),i.serverCallsTimer>0&&!this.addToQueueTimer&&(this.addToQueueTimer=Nu(i.serverCallsTimer).subscribe(s=>{this.flushQueue(i)}))};this.flushingQueue.value===!0?this.flushingQueue.pipe(Ai(s=>s===!1),Hu(1)).subscribe(s=>{r()}):r()}}return e.\u0275fac=function(t){return new(t||e)(b(Sr,8),b(oe,8))},e.\u0275prov=E({token:e,factory:e.\u0275fac}),e})(),Sn="TOKEN_LOGGER_WRITER_SERVICE",W=(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})(W||{}),I5=["purple","teal","gray","gray","red","red","red"],L5=(()=>{class e{constructor(n){this.platformId=n,this.prepareMetaStringFuncs=[this.getTimestampToWrite,this.getLevelToWrite,this.getFileDetailsToWrite,this.getContextToWrite],this.isIE=kC(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,i){return n.timestamp}getLevelToWrite(n,i){return W[n.level]}getFileDetailsToWrite(n,i){return i.disableFileDetails===!0?"":`[${n.fileName}:${n.lineNumber}:${n.columnNumber}]`}getContextToWrite(n,i){return i.context?`{${i.context}}`:""}prepareMetaString(n,i){let r="";return this.prepareMetaStringFuncs.forEach(s=>{let o=s(n,i);o&&(r=r+" "+o)}),r.trim()}getColor(n,i){let r=i.colorScheme??I5;if(n.level!==W.OFF)return r[n.level]}logIE(n,i,r){let s=n.additional||[];switch(n.level){case W.WARN:console.warn(`${r} `,n.message,...s);break;case W.ERROR:case W.FATAL:console.error(`${r} `,n.message,...s);break;case W.INFO:console.info(`${r} `,n.message,...s);break;default:console.log(`${r} `,n.message,...s)}}logModern(n,i,r){let s=this.getColor(n,i),o=n.additional||[];switch(n.level){case W.WARN:console.warn(`%c${r}`,`color:${s}`,n.message,...o);break;case W.ERROR:case W.FATAL:console.error(`%c${r}`,`color:${s}`,n.message,...o);break;case W.INFO:console.info(`%c${r}`,`color:${s}`,n.message,...o);break;case W.DEBUG:console.debug(`%c${r}`,`color:${s}`,n.message,...o);break;default:console.log(`%c${r}`,`color:${s}`,n.message,...o)}}writeMessage(n,i){let r=this.prepareMetaString(n,i);this.logFunc(n,i,r)}}return e.\u0275fac=function(t){return new(t||e)(b(Do))},e.\u0275prov=E({token:e,factory:e.\u0275fac}),e})(),Le=(()=>{class e{constructor(n,i,r,s,o,a,l){this.metadataService=r,this.ruleService=s,this.mapperService=o,this.writerService=a,this.serverService=l,this.configEngine=i.provideConfigEngine(n)}get level(){return this.configEngine.level}get serverLogLevel(){return this.configEngine.serverLogLevel}trace(n,...i){this._log(W.TRACE,n,i)}debug(n,...i){this._log(W.DEBUG,n,i)}info(n,...i){this._log(W.INFO,n,i)}log(n,...i){this._log(W.LOG,n,i)}warn(n,...i){this._log(W.WARN,n,i)}error(n,...i){this._log(W.ERROR,n,i)}fatal(n,...i){this._log(W.FATAL,n,i)}setCustomHttpHeaders(n){let i=this.getConfigSnapshot();i.customHttpHeaders=n,this.updateConfig(i)}setCustomParams(n){let i=this.getConfigSnapshot();i.customHttpParams=n,this.updateConfig(i)}setWithCredentialsOptionValue(n){let i=this.getConfigSnapshot();i.withCredentials=n,this.updateConfig(i)}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,i,r=[]){let s=this.configEngine.getConfig(),o=this.ruleService.shouldCallWriter(n,s,i,r),a=this.ruleService.shouldCallServer(n,s,i,r),l=this.ruleService.shouldCallMonitor(n,s,i,r);if(!o&&!a&&!l)return;let u=this.metadataService.getMetadata(n,s,i,r);this.mapperService.getLogPosition(s,u).pipe(Hu(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)(b(wi),b(bn),b(_n),b(xn),b(wn),b(Sn),b(kn))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),D5=(()=>{class e{constructor(n,i,r,s,o,a,l){this.logger=n,this.configEngineFactory=i,this.metadataService=r,this.ruleService=s,this.mapperService=o,this.writerService=a,this.serverService=l}create(n,i,r,s){return this.getNewInstance({config:n,serverService:i,logMonitor:r,mapperService:s})}getNewInstance(n){let i=new Le(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&&i.partialUpdateConfig(n.partialConfig),n?.logMonitor&&i.registerMonitor(n.logMonitor),i}}return e.\u0275fac=function(t){return new(t||e)(b(Le),b(bn),b(_n),b(xn),b(wn),b(Sn),b(kn))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),A5=(()=>{class e{static forRoot(n,i){if(i||(i={}),!i.configProvider)i.configProvider={provide:wi,useValue:n||{}};else if(i.configProvider.provide!==wi)throw new Error(`Wrong injection token for configProvider, it should be ${wi} and you used ${i.configProvider.provide}`);if(!i.configEngineFactoryProvider)i.configEngineFactoryProvider={provide:bn,useClass:M5};else if(i.configEngineFactoryProvider.provide!==bn)throw new Error(`Wrong injection token for configEngineFactoryProvider, it should be '${bn}' and you used '${i.configEngineFactoryProvider.provide}'`);if(!i.metadataProvider)i.metadataProvider={provide:_n,useClass:E5};else if(i.metadataProvider.provide!==_n)throw new Error(`Wrong injection token for metadataProvider, it should be '${_n}' and you used '${i.metadataProvider.provide}'`);if(!i.ruleProvider)i.ruleProvider={provide:xn,useClass:T5};else if(i.ruleProvider.provide!==xn)throw new Error(`Wrong injection token for ruleProvider, it should be '${xn}' and you used '${i.ruleProvider.provide}'`);if(!i.mapperProvider)i.mapperProvider={provide:wn,useClass:O5};else if(i.mapperProvider.provide!==wn)throw new Error(`Wrong injection token for mapperProvider, it should be '${wn}' and you used '${i.mapperProvider.provide}'`);if(!i.writerProvider)i.writerProvider={provide:Sn,useClass:L5};else if(i.writerProvider.provide!==Sn)throw new Error(`Wrong injection token for writerProvider, it should be '${Sn}' and you used '${i.writerProvider.provide}'`);if(!i.serverProvider)i.serverProvider={provide:kn,useClass:P5};else if(i.serverProvider.provide!==kn)throw new Error(`Wrong injection token for serverProvider, it should be '${kn}' and you used '${i.writerProvider.provide}'`);return{ngModule:e,providers:[Le,i.configProvider,i.configEngineFactoryProvider,i.metadataProvider,i.ruleProvider,i.mapperProvider,i.writerProvider,i.serverProvider,D5]}}static forChild(){return{ngModule:e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=_r({type:e}),e.\u0275inj=or({imports:[[ke]]}),e})(),Ul={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"/>
|
|
@@ -37,8 +37,8 @@ ${t.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
|
|
|
37
37
|
</clipPath>
|
|
38
38
|
</defs>`},menu:{viewBox:"0 0 16 16",path:'<path d="M2 3.5C2 3.22386 2.22386 3 2.5 3H13.5C13.7761 3 14 3.22386 14 3.5C14 3.77614 13.7761 4 13.5 4H2.5C2.22386 4 2 3.77614 2 3.5ZM2 7.5C2 7.22386 2.22386 7 2.5 7H13.5C13.7761 7 14 7.22386 14 7.5C14 7.77614 13.7761 8 13.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM2 11.5C2 11.2239 2.22386 11 2.5 11H13.5C13.7761 11 14 11.2239 14 11.5C14 11.7761 13.7761 12 13.5 12H2.5C2.22386 12 2 11.7761 2 11.5Z" fill="currentColor"/>'},"list-selection":{viewBox:"0 0 16 16",path:'<path d="M2 3.5C2 3.22386 2.22386 3 2.5 3H10.5C10.7761 3 11 3.22386 11 3.5C11 3.77614 10.7761 4 10.5 4H2.5C2.22386 4 2 3.77614 2 3.5ZM2 11.5C2 11.2239 2.22386 11 2.5 11H9.5C9.77614 11 10 11.2239 10 11.5C10 11.7761 9.77614 12 9.5 12H2.5C2.22386 12 2 11.7761 2 11.5ZM2.5 7C2.22386 7 2 7.22386 2 7.5C2 7.77614 2.22386 8 2.5 8H13.5C13.7761 8 14 7.77614 14 7.5C14 7.22386 13.7761 7 13.5 7H2.5Z" fill="currentColor"/>'},close:{viewBox:"0 0 16 16",path:'<path d="M8.70701 8.00001L12.353 4.35401C12.548 4.15901 12.548 3.84201 12.353 3.64701C12.158 3.45201 11.841 3.45201 11.646 3.64701L8.00001 7.29301L4.35401 3.64701C4.15901 3.45201 3.84201 3.45201 3.64701 3.64701C3.45201 3.84201 3.45201 4.15901 3.64701 4.35401L7.29301 8.00001L3.64701 11.646C3.45201 11.841 3.45201 12.158 3.64701 12.353C3.74501 12.451 3.87301 12.499 4.00101 12.499C4.12901 12.499 4.25701 12.45 4.35501 12.353L8.00101 8.70701L11.647 12.353C11.745 12.451 11.873 12.499 12.001 12.499C12.129 12.499 12.257 12.45 12.355 12.353C12.55 12.158 12.55 11.841 12.355 11.646L8.70901 8.00001H8.70701Z" fill="currentColor"/>'},add:{viewBox:"0 0 16 16",path:'<path d="M8 1.5C8 1.22386 7.77614 1 7.5 1C7.22386 1 7 1.22386 7 1.5V7H1.5C1.22386 7 1 7.22386 1 7.5C1 7.77614 1.22386 8 1.5 8H7V13.5C7 13.7761 7.22386 14 7.5 14C7.77614 14 8 13.7761 8 13.5V8H13.5C13.7761 8 14 7.77614 14 7.5C14 7.22386 13.7761 7 13.5 7H8V1.5Z" fill="currentColor"/>'},microphone:{viewBox:"0 0 16 16",path:'<g transform="scale(0.75, 1) translate(2.67, 0)"><path d="M8 10.9995C9.654 10.9995 11 9.65351 11 7.99951V3.99951C11 2.34551 9.654 0.999512 8 0.999512C6.346 0.999512 5 2.34551 5 3.99951V7.99951C5 9.65351 6.346 10.9995 8 10.9995ZM13 7.49951V7.99951C13 10.5855 11.02 12.6935 8.5 12.9485V14.4995C8.5 14.7755 8.276 14.9995 8 14.9995C7.724 14.9995 7.5 14.7755 7.5 14.4995V12.9485C4.98 12.6935 3 10.5845 3 7.99951V7.49951C3 7.22351 3.224 6.99951 3.5 6.99951C3.776 6.99951 4 7.22351 4 7.49951V7.99951C4 10.2055 5.794 11.9995 8 11.9995C10.206 11.9995 12 10.2055 12 7.99951V7.49951C12 7.22351 12.224 6.99951 12.5 6.99951C12.776 6.99951 13 7.22351 13 7.49951Z" fill="currentColor"/></g>'},"send-filled":{viewBox:"0 0 16 16",path:`<circle cx="8" cy="8" r="7" fill="currentColor"/>
|
|
39
39
|
<path d="M5.14645 7.14645L7.64645 4.64645C7.84171 4.45118 8.15829 4.45118 8.35355 4.64645L10.8536 7.14645C11.0488 7.34171 11.0488 7.65829 10.8536 7.85355C10.6583 8.04882 10.3417 8.04882 10.1464 7.85355L8.5 6.20711V11C8.5 11.2761 8.27614 11.5 8 11.5C7.72386 11.5 7.5 11.2761 7.5 11V6.20711L5.85355 7.85355C5.65829 8.04882 5.34171 8.04882 5.14645 7.85355C4.95118 7.65829 4.95118 7.34171 5.14645 7.14645Z" fill="white"/>`},send:{viewBox:"0 0 16 16",path:'<path d="M1.17683 1.11898C1.32953 0.989634 1.54464 0.963786 1.72363 1.05328L14.7236 7.55328C14.893 7.63797 15 7.8111 15 8.00049C15 8.18987 14.893 8.36301 14.7236 8.4477L1.72363 14.9477C1.54464 15.0372 1.32953 15.0113 1.17683 14.882C1.02414 14.7526 0.96328 14.5447 1.02213 14.3534L2.97688 8.00049L1.02213 1.64754C0.96328 1.45627 1.02414 1.24833 1.17683 1.11898ZM3.8693 8.50049L2.32155 13.5307L13.382 8.00049L2.32155 2.47027L3.8693 7.50049H9.50001C9.77615 7.50049 10 7.72435 10 8.00049C10 8.27663 9.77615 8.50049 9.50001 8.50049H3.8693Z" fill="currentColor"/>'},back:{viewBox:"0 0 16 16",path:'<path d="M13.5 8.5C13.7761 8.5 14 8.27614 14 8C14 7.72386 13.7761 7.5 13.5 7.5L3.80298 7.5L7.83448 3.87165C8.03974 3.68692 8.05638 3.37078 7.87165 3.16552C7.68692 2.96027 7.37077 2.94363 7.16552 3.12836L2.16552 7.62835C2.06016 7.72317 2 7.85826 2 8C2 8.14174 2.06016 8.27683 2.16552 8.37165L7.16552 12.8716C7.37077 13.0564 7.68692 13.0397 7.87165 12.8345C8.05638 12.6292 8.03974 12.3131 7.83448 12.1283L3.80298 8.5L13.5 8.5Z" fill="currentColor"/>'},settings:{viewBox:"0 0 16 16",path:'<path d="M6 9.5C6.93191 9.5 7.71496 10.1374 7.93699 11L13.5 11C13.7761 11 14 11.2239 14 11.5C14 11.7455 13.8231 11.9496 13.5899 11.9919L13.5 12L7.93673 12.001C7.71435 12.8631 6.93155 13.5 6 13.5C5.06845 13.5 4.28565 12.8631 4.06327 12.001L2.5 12C2.22386 12 2 11.7761 2 11.5C2 11.2545 2.17688 11.0504 2.41012 11.0081L2.5 11L4.06301 11C4.28504 10.1374 5.06809 9.5 6 9.5ZM6 10.5C5.44772 10.5 5 10.9477 5 11.5C5 12.0523 5.44772 12.5 6 12.5C6.55228 12.5 7 12.0523 7 11.5C7 10.9477 6.55228 10.5 6 10.5ZM10 2.5C10.9319 2.5 11.715 3.13738 11.937 3.99998L13.5 4C13.7761 4 14 4.22386 14 4.5C14 4.74546 13.8231 4.94961 13.5899 4.99194L13.5 5L11.9367 5.00102C11.7144 5.86312 10.9316 6.5 10 6.5C9.06845 6.5 8.28565 5.86312 8.06327 5.00102L2.5 5C2.22386 5 2 4.77614 2 4.5C2 4.25454 2.17688 4.05039 2.41012 4.00806L2.5 4L8.06301 3.99998C8.28504 3.13738 9.06809 2.5 10 2.5ZM10 3.5C9.44772 3.5 9 3.94772 9 4.5C9 5.05228 9.44772 5.5 10 5.5C10.5523 5.5 11 5.05228 11 4.5C11 3.94772 10.5523 3.5 10 3.5Z" fill="currentColor"/>'},"settings-gear":{viewBox:"0 0 16 16",path:'<path d="M7.99997 6C6.89497 6 5.99997 6.895 5.99997 8C5.99997 9.105 6.89497 10 7.99997 10C9.10497 10 9.99997 9.105 9.99997 8C9.99997 6.895 9.10497 6 7.99997 6ZM7.99997 9C7.44797 9 6.99997 8.552 6.99997 8C6.99997 7.448 7.44797 7 7.99997 7C8.55197 7 8.99997 7.448 8.99997 8C8.99997 8.552 8.55197 9 7.99997 9ZM14.565 9.715L13.279 8.628C13.245 8.599 13.213 8.567 13.184 8.533C12.888 8.186 12.931 7.667 13.279 7.372L14.565 6.285C14.693 6.177 14.742 6.003 14.691 5.844C14.386 4.903 13.882 4.04 13.219 3.308C13.139 3.22 13.027 3.172 12.912 3.172C12.865 3.172 12.818 3.18 12.773 3.196L11.186 3.761C11.144 3.776 11.1 3.788 11.056 3.796C11.006 3.805 10.956 3.81 10.907 3.81C10.515 3.81 10.167 3.532 10.094 3.134L9.79097 1.482C9.76097 1.318 9.63397 1.188 9.46997 1.153C8.98997 1.051 8.49897 1 8.00097 1C7.50297 1 7.01097 1.052 6.53097 1.153C6.36697 1.188 6.23997 1.318 6.20997 1.482L5.90797 3.134C5.89997 3.178 5.88797 3.221 5.87297 3.263C5.75197 3.6 5.43397 3.81 5.09397 3.81C5.00197 3.81 4.90797 3.794 4.81597 3.762L3.22897 3.197C3.18397 3.181 3.13597 3.173 3.08997 3.173C2.97497 3.173 2.86297 3.221 2.78297 3.309C2.11897 4.041 1.61597 4.904 1.30997 5.845C1.25797 6.004 1.30797 6.178 1.43597 6.286L2.72197 7.373C2.75597 7.402 2.78797 7.434 2.81697 7.468C3.11297 7.815 3.06997 8.334 2.72197 8.629L1.43597 9.716C1.30797 9.824 1.25897 9.998 1.30997 10.157C1.61497 11.098 2.11897 11.961 2.78297 12.693C2.86297 12.781 2.97497 12.829 3.08997 12.829C3.13697 12.829 3.18397 12.821 3.22897 12.805L4.81597 12.24C4.85797 12.225 4.90197 12.213 4.94597 12.205C4.99597 12.196 5.04597 12.192 5.09497 12.192C5.48697 12.192 5.83497 12.47 5.90797 12.868L6.20997 14.52C6.23997 14.684 6.36697 14.814 6.53097 14.849C7.01097 14.951 7.50297 15.002 8.00097 15.002C8.49897 15.002 8.99097 14.95 9.46997 14.849C9.63397 14.814 9.76097 14.684 9.79097 14.52L10.094 12.868C10.102 12.824 10.114 12.781 10.129 12.739C10.25 12.402 10.568 12.192 10.908 12.192C11 12.192 11.094 12.208 11.186 12.24L12.772 12.805C12.818 12.821 12.865 12.829 12.911 12.829C13.026 12.829 13.138 12.781 13.218 12.693C13.882 11.961 14.385 11.098 14.69 10.157C14.742 9.998 14.692 9.824 14.564 9.716L14.565 9.715ZM12.728 11.726L11.521 11.296C11.323 11.226 11.117 11.19 10.908 11.19C10.139 11.19 9.44697 11.676 9.18797 12.399C9.15397 12.492 9.12897 12.588 9.11097 12.686L8.88097 13.937C8.59097 13.979 8.29597 14 8.00097 14C7.70597 14 7.41097 13.979 7.11997 13.936L6.89097 12.685C6.73197 11.818 5.97697 11.189 5.09497 11.189C4.98697 11.189 4.87697 11.199 4.76597 11.219C4.66897 11.237 4.57397 11.262 4.47997 11.295L3.27297 11.725C2.90497 11.264 2.61097 10.759 2.39397 10.214L3.36797 9.391C3.74097 9.076 3.96797 8.634 4.00797 8.148C4.04797 7.662 3.89497 7.19 3.57797 6.818C3.51397 6.743 3.44297 6.672 3.36797 6.608L2.39397 5.785C2.61097 5.24 2.90497 4.734 3.27297 4.274L4.47997 4.704C4.67797 4.774 4.88397 4.81 5.09397 4.81C5.86297 4.81 6.55497 4.324 6.81397 3.601C6.84797 3.507 6.87297 3.411 6.89097 3.314L7.11997 2.063C7.41097 2.021 7.70597 1.999 8.00097 1.999C8.29597 1.999 8.59097 2.02 8.88097 2.062L9.10997 3.313C9.26897 4.18 10.024 4.809 10.906 4.809C11.014 4.809 11.124 4.799 11.234 4.779C11.331 4.761 11.427 4.736 11.521 4.703L12.728 4.273C13.096 4.733 13.39 5.239 13.607 5.784L12.634 6.607C12.261 6.922 12.033 7.364 11.994 7.85C11.954 8.336 12.107 8.809 12.424 9.18C12.489 9.256 12.559 9.326 12.635 9.39L13.609 10.213C13.392 10.758 13.098 11.264 12.73 11.724L12.728 11.726Z" fill="currentColor"/>'},"stop-circle-filled":{viewBox:"0 0 16 16",path:`<circle cx="8" cy="8" r="7" fill="currentColor"/>
|
|
40
|
-
<rect x="5.5" y="5.5" width="5" height="5" rx="0.5" fill="white"/>`},trash:{viewBox:"0 0 16 16",path:'<path d="M14 2H10C10 0.897 9.103 0 8 0C6.897 0 6 0.897 6 2H2C1.724 2 1.5 2.224 1.5 2.5C1.5 2.776 1.724 3 2 3H2.54L3.349 12.708C3.456 13.994 4.55 15 5.84 15H10.159C11.449 15 12.543 13.993 12.65 12.708L13.459 3H13.999C14.275 3 14.499 2.776 14.499 2.5C14.499 2.224 14.275 2 13.999 2H14ZM8 1C8.551 1 9 1.449 9 2H7C7 1.449 7.449 1 8 1ZM11.655 12.625C11.591 13.396 10.934 14 10.16 14H5.841C5.067 14 4.41 13.396 4.346 12.625L3.544 3H12.458L11.656 12.625H11.655ZM7 5.5V11.5C7 11.776 6.776 12 6.5 12C6.224 12 6 11.776 6 11.5V5.5C6 5.224 6.224 5 6.5 5C6.776 5 7 5.224 7 5.5ZM10 5.5V11.5C10 11.776 9.776 12 9.5 12C9.224 12 9 11.776 9 11.5V5.5C9 5.224 9.224 5 9.5 5C9.776 5 10 5.224 10 5.5Z" fill="currentColor"/>'},search:{viewBox:"0 0 16 16",path:'<path d="M10.0195 10.7266C9.06578 11.5217 7.83875 12 6.5 12C3.46243 12 1 9.53757 1 6.5C1 3.46243 3.46243 1 6.5 1C9.53757 1 12 3.46243 12 6.5C12 7.83875 11.5217 9.06578 10.7266 10.0195L13.8535 13.1464C14.0488 13.3417 14.0488 13.6583 13.8535 13.8536C13.6583 14.0488 13.3417 14.0488 13.1464 13.8536L10.0195 10.7266ZM11 6.5C11 4.01472 8.98528 2 6.5 2C4.01472 2 2 4.01472 2 6.5C2 8.98528 4.01472 11 6.5 11C8.98528 11 11 8.98528 11 6.5Z" fill="currentColor"/>'},edit:{viewBox:"0 0 16 16",path:'<path d="M14.236 1.76386C13.2123 0.740172 11.5525 0.740171 10.5289 1.76386L2.65722 9.63549C2.28304 10.0097 2.01623 10.4775 1.88467 10.99L1.01571 14.3755C0.971767 14.5467 1.02148 14.7284 1.14646 14.8534C1.27144 14.9783 1.45312 15.028 1.62432 14.9841L5.00978 14.1151C5.52234 13.9836 5.99015 13.7168 6.36433 13.3426L14.236 5.47097C15.2596 4.44728 15.2596 2.78755 14.236 1.76386ZM11.236 2.47097C11.8691 1.8378 12.8957 1.8378 13.5288 2.47097C14.162 3.10413 14.162 4.1307 13.5288 4.76386L12.75 5.54269L10.4571 3.24979L11.236 2.47097ZM9.75002 3.9569L12.0429 6.24979L5.65722 12.6355C5.40969 12.883 5.10023 13.0595 4.76117 13.1465L2.19447 13.8053L2.85327 11.2386C2.9403 10.8996 3.1168 10.5901 3.36433 10.3426L9.75002 3.9569Z" fill="currentColor"/>'},"edit-code":{viewBox:"0 0 20 20",path:'<g clip-path="url(#clip0_edit_code)"><path d="M2.5 15V5C2.5 4.33696 2.76339 3.70107 3.23223 3.23223C3.70107 2.76339 4.33696 2.5 5 2.5H15C15.663 2.5 16.2989 2.76339 16.7678 3.23223C17.2366 3.70107 17.5 4.33696 17.5 5V7.51375C17.555 7.51125 17.6075 7.4975 17.6625 7.4975C18.0388 7.4975 18.4013 7.57125 18.75 7.6825V5C18.75 4.00544 18.3549 3.05161 17.6517 2.34835C16.9484 1.64509 15.9946 1.25 15 1.25H5C4.00544 1.25 3.05161 1.64509 2.34835 2.34835C1.64509 3.05161 1.25 4.00544 1.25 5V15C1.25 15.9946 1.64509 16.9484 2.34835 17.6517C3.05161 18.3549 4.00544 18.75 5 18.75H7.51125C7.52 18.605 7.53375 18.4587 7.56875 18.3137L7.7725 17.5H5C4.33696 17.5 3.70107 17.2366 3.23223 16.7678C2.76339 16.2989 2.5 15.663 2.5 15ZM19.315 9.4325C19.0979 9.21536 18.8402 9.04312 18.5566 8.9256C18.2729 8.80808 17.9689 8.7476 17.6619 8.7476C17.3548 8.7476 17.0508 8.80808 16.7672 8.9256C16.4835 9.04312 16.2258 9.21536 16.0088 9.4325L9.9725 15.4688C9.62058 15.8209 9.37087 16.262 9.25 16.745L8.7825 18.6175C8.73601 18.8038 8.73853 18.999 8.78983 19.184C8.84113 19.3691 8.93946 19.5377 9.07525 19.6735C9.21103 19.8093 9.37965 19.9076 9.5647 19.9589C9.74975 20.0102 9.94493 20.0127 10.1313 19.9662L12.0038 19.4975C12.4867 19.3766 12.9278 19.1269 13.28 18.775L19.3163 12.7388C20.2288 11.8263 20.2288 10.3462 19.3163 9.4325H19.315Z" fill="currentColor"/></g>',defs:'<defs><clipPath id="clip0_edit_code"><rect width="20" height="20" fill="white"/></clipPath></defs>'},check:{viewBox:"0 0 16 16",path:'<path d="M13.6572 3.13573C13.8583 2.9465 14.175 2.95614 14.3643 3.15722C14.5535 3.35831 14.5438 3.675 14.3428 3.86425L5.84277 11.8642C5.64597 12.0494 5.33756 12.0446 5.14648 11.8535L1.64648 8.35351C1.45121 8.15824 1.45121 7.84174 1.64648 7.64647C1.84174 7.45121 2.15825 7.45121 2.35351 7.64647L5.50976 10.8027L13.6572 3.13573Z" fill="currentColor"/>'},"chevron-left":{viewBox:"0 0 16 16",path:'<path d="M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z" fill="currentColor"/>'},"more-horizontal":{viewBox:"0 0 16 16",path:'<path d="M5 8C5 8.55229 4.55228 9 4 9C3.44772 9 3 8.55229 3 8C3 7.44772 3.44772 7 4 7C4.55228 7 5 7.44772 5 8ZM9 8C9 8.55229 8.55229 9 8 9C7.44772 9 7 8.55229 7 8C7 7.44772 7.44772 7 8 7C8.55229 7 9 7.44772 9 8ZM12 9C12.5523 9 13 8.55229 13 8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8C11 8.55229 11.4477 9 12 9Z" fill="currentColor"/>'},copy:{viewBox:"0 0 16 16",path:'<path d="M3 5V12.73C2.4 12.38 2 11.74 2 11V5C2 2.79 3.79 1 6 1H9C9.74 1 10.38 1.4 10.73 2H6C4.35 2 3 3.35 3 5ZM11 15H6C4.897 15 4 14.103 4 13V5C4 3.897 4.897 3 6 3H11C12.103 3 13 3.897 13 5V13C13 14.103 12.103 15 11 15ZM12 5C12 4.448 11.552 4 11 4H6C5.448 4 5 4.448 5 5V13C5 13.552 5.448 14 6 14H11C11.552 14 12 13.552 12 13V5Z" fill="currentColor"/>'},unmute:{viewBox:"0 0 16 16",path:'<path d="M8.69398 2.03934C8.8792 2.11749 8.99961 2.29898 8.99961 2.50001V13.5C8.99961 13.7014 8.87875 13.8832 8.693 13.9611C8.50725 14.039 8.29289 13.9978 8.14921 13.8567L5.22278 10.9817H3.49963C2.67121 10.9817 1.99963 10.3101 1.99963 9.48172V6.49273C1.99963 5.66431 2.67121 4.99273 3.49963 4.99273H5.22402L8.15073 2.14185C8.29474 2.00157 8.50875 1.96119 8.69398 2.03934ZM7.99961 3.68507L5.77617 5.85089C5.68281 5.94184 5.55763 5.99273 5.42729 5.99273H3.49963C3.22349 5.99273 2.99963 6.21659 2.99963 6.49273V9.48172C2.99963 9.75786 3.22349 9.98172 3.49963 9.98172H5.42729C5.55836 9.98172 5.68419 10.0332 5.77769 10.125L7.99961 12.3079V3.68507ZM10.1109 5.18874C10.2828 4.97264 10.5973 4.93682 10.8135 5.10873L10.8143 5.1094L10.8152 5.11015L10.8174 5.11188L10.8228 5.11628L10.8377 5.12882C10.8495 5.13885 10.8648 5.15224 10.8831 5.16904C10.9197 5.20261 10.9685 5.2499 11.0254 5.31119C11.1389 5.43362 11.2853 5.61296 11.4303 5.85143C11.7218 6.33096 12.0039 7.04439 12.0039 7.99855C12.0039 8.95268 11.7218 9.66687 11.4305 10.1471C11.2857 10.3859 11.1393 10.5657 11.0259 10.6884C10.9692 10.7498 10.9204 10.7973 10.8839 10.8309C10.8642 10.849 10.8441 10.8666 10.8236 10.8838L10.8152 10.8907L10.8143 10.8914C10.8143 10.8914 10.368 11.1337 10.1116 10.8129C9.94006 10.5983 9.97396 10.2858 10.1868 10.1128L10.1883 10.1115L10.1876 10.1122L10.1892 10.1108L10.1883 10.1115C10.1912 10.109 10.1975 10.1036 10.2066 10.0952C10.2248 10.0784 10.2543 10.05 10.2914 10.0098C10.3659 9.92923 10.47 9.80248 10.5755 9.62847C10.7851 9.28301 11.0039 8.74609 11.0039 7.99855C11.0039 7.25106 10.7851 6.71522 10.5758 6.3709C10.4703 6.19744 10.3663 6.07121 10.292 5.99105C10.2549 5.95104 10.2255 5.92278 10.2073 5.90613C10.1982 5.89781 10.192 5.89242 10.1891 5.88995L10.1901 5.89071C9.97439 5.71873 9.93908 5.40472 10.1109 5.18874ZM11.8127 3.10886C11.5966 2.93686 11.2821 2.97255 11.1101 3.18858C10.9382 3.40451 10.9743 3.71932 11.19 3.89138L11.2011 3.9006C11.2119 3.90975 11.2295 3.92484 11.2528 3.94582C11.2994 3.98781 11.369 4.05318 11.4538 4.14133C11.6239 4.31792 11.8537 4.58411 12.0841 4.93509C12.5446 5.63643 13.0029 6.66847 13.0029 8.00405C13.0029 9.33953 12.5446 10.3694 12.0845 11.0685C11.8541 11.4184 11.6244 11.6835 11.4545 11.8593C11.3697 11.947 11.3002 12.0121 11.2536 12.0538C11.2303 12.0747 11.2128 12.0897 11.202 12.0988L11.1904 12.1083L11.1895 12.1091C10.9742 12.2808 10.9382 12.5945 11.1093 12.8105C11.2808 13.0269 11.596 13.0628 11.8125 12.8913L11.8455 12.8642C11.864 12.8487 11.8895 12.8268 11.9209 12.7986C11.9838 12.7423 12.0707 12.6607 12.1735 12.5543C12.3789 12.3418 12.6496 12.0286 12.9197 11.6183C13.4604 10.797 14.0029 9.57884 14.0029 8.00405C14.0029 6.42934 13.4605 5.20938 12.9201 4.38627C12.6501 3.97503 12.3795 3.66089 12.1742 3.4477C12.0714 3.34097 11.9846 3.25908 11.9217 3.20255C11.8903 3.17426 11.8649 3.15228 11.8464 3.13665L11.8239 3.11798L11.8169 3.11222L11.8144 3.11024L11.8127 3.10886ZM10.1891 5.88995L10.1877 5.88874L10.1891 5.88995Z" fill="currentColor"/>'},"share-ios":{viewBox:"0 0 16 16",path:'<path d="M12.5713 8.50795V11.5556C12.5713 11.825 12.4509 12.0834 12.2366 12.2739C12.0223 12.4644 11.7316 12.5714 11.4285 12.5714H4.57132C4.26822 12.5714 3.97753 12.4644 3.7632 12.2739C3.54887 12.0834 3.42847 11.825 3.42847 11.5556V8.50795M7.9999 9.52383V3.42859M7.9999 3.42859L5.9999 5.20637M7.9999 3.42859L9.9999 5.20637" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" fill="none"/>'}},Lt=class $s{constructor(t){this.sanitizer=t}name="";width="24";height="24";fill="none";dropShadow="";get viewBox(){return Ul[this.name]?.viewBox||"0 0 24 24"}get svgContent(){let t=Ul[this.name];if(!t)return"";let n=t.path+(t.defs||"");return this.sanitizer.bypassSecurityTrustHtml(n)}static \u0275fac=function(t){return new(t||$s)(j(tp))};static \u0275cmp=Ae({type:$s,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&&(sg(),hh(0,"svg",0)),t&2&&(bh("filter",n.dropShadow),fh("innerHTML",n.svgContent,bd),sa("width",n.width)("height",n.height)("viewBox",n.viewBox)("fill",n.fill))},dependencies:[ke],styles:["[_nghost-%COMP%]{display:inline-block;line-height:0}"]})},me={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:["What is this app about?","Why use an AI Agent?","What will be possible?"],DATE:{LABELS:{TODAY:"Today",YESTERDAY:"Yesterday"},MONTH_NAMES:["January","February","March","April","May","June","July","August","September","October","November","December"]}},V5=class qs{title=me.TITLE;menuClick=new N;closeClick=new N;onMenuClick(){this.menuClick.emit()}onCloseClick(){this.closeClick.emit()}static \u0275fac=function(t){return new(t||qs)};static \u0275cmp=Ae({type:qs,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","list-selection","width","24","height","24"],[1,"header-title"],["name","header-rocket-icon","width","24","height","24",1,"title-icon"],["aria-label","Close",1,"icon-button","header-close-button",3,"click"],["name","close","width","24","height","24"]],template:function(t,n){t&1&&(f(0,"div",0)(1,"button",1),x("click",function(){return n.onMenuClick()}),H(2,"app-icon",2),m(),f(3,"div",3),H(4,"app-icon",4),f(5,"span"),z(6),m()(),f(7,"button",5),x("click",function(){return n.onCloseClick()}),H(8,"app-icon",6),m()()),t&2&&(_(6),be(n.title))},dependencies:[ke,Lt],styles:[".header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#fff;border-bottom:1px solid #f0f0f0;min-height:56px;box-sizing:border-box;flex-shrink:0}@media (max-width: 768px){.header[_ngcontent-%COMP%]{min-height:52px;padding:10px 12px}}.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:#f43e83;flex:1;justify-content:center}.title-icon[_ngcontent-%COMP%]{width:24px;height:24px}.menu-button[_ngcontent-%COMP%], .header-close-button[_ngcontent-%COMP%]{width:40px;height:40px}.header-close-button[_ngcontent-%COMP%]{background-color:#f5f5f5;border-radius:50%}.header-close-button[_ngcontent-%COMP%]:hover{background-color:#e8e8e8}"]})},R5=class Gs{text="";disabled=!1;buttonClick=new N;onClick(){this.disabled||this.buttonClick.emit(this.text)}static \u0275fac=function(t){return new(t||Gs)};static \u0275cmp=Ae({type:Gs,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&&(oa(0,"button",0),gh("click",function(){return n.onClick()}),z(1),aa()),t&2&&(Ie("disabled",n.disabled),_(),An(" ",n.text," "))},dependencies:[ke],styles:[".suggestion-button[_ngcontent-%COMP%]{background:#fff;border:1.5px solid #F43E83;border-radius:8px;padding:14px 24px;font-size:15px;font-weight:500;color:#f43e83;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:#d42c6f;transform:translateY(-1px);box-shadow:0 4px 8px #f43e8326}.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}"]})},rp=(()=>{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(ea),j(Et))};static \u0275dir=_e({type:e})}return e})(),N5=(()=>{class e extends rp{static \u0275fac=(()=>{let n;return function(r){return(n||(n=Wc(e)))(r||e)}})();static \u0275dir=_e({type:e,features:[ln]})}return e})(),ip=new M(""),F5={provide:ip,useExisting:Vn(()=>$n),multi:!0};function H5(){let e=ei()?ei().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var j5=new M(""),$n=(()=>{class e extends rp{_compositionMode;_composing=!1;constructor(n,r,i){super(n,r),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!H5())}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(ea),j(Et),j(j5,8))};static \u0275dir=_e({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&&x("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:[ha([F5]),ln]})}return e})();function z5(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var sp=new M(""),B5=new M("");function U5(e){return t=>{let n=t.value?.length??z5(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function Zl(e){return null}function op(e){return e!=null}function ap(e){return ia(e)?po(e):e}function lp(e){let t={};return e.forEach(n=>{t=n!=null?T(T({},t),n):t}),Object.keys(t).length===0?null:t}function up(e,t){return t.map(n=>n(e))}function Z5(e){return!e.validate}function cp(e){return e.map(t=>Z5(t)?t:n=>t.validate(n))}function $5(e){if(!e)return null;let t=e.filter(op);return t.length==0?null:function(n){return lp(up(n,t))}}function dp(e){return e!=null?$5(cp(e)):null}function q5(e){if(!e)return null;let t=e.filter(op);return t.length==0?null:function(n){let r=up(n,t).map(ap);return Yf(r).pipe(Te(lp))}}function hp(e){return e!=null?q5(cp(e)):null}function $l(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function G5(e){return e._rawValidators}function W5(e){return e._rawAsyncValidators}function Ws(e){return e?Array.isArray(e)?e:[e]:[]}function ni(e,t){return Array.isArray(e)?e.includes(t):e===t}function ql(e,t){let n=Ws(t);return Ws(e).forEach(r=>{ni(n,r)||n.push(r)}),n}function Gl(e,t){return Ws(t).filter(n=>!ni(e,n))}var pp=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=dp(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=hp(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}},Q5=class extends pp{name;get formDirective(){return null}get path(){return null}},ba=class extends pp{_parent=null;name=null;valueAccessor=null},Y5=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}},K5={"[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"},d3=V(T({},K5),{"[class.ng-submitted]":"isSubmitted"}),wa=(()=>{class e extends Y5{constructor(n){super(n)}static \u0275fac=function(n){return new(n||e)(j(ba,2))};static \u0275dir=_e({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&Ie("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:[ln]})}return e})(),hn="VALID",ar="INVALID",At="PENDING",pn="DISABLED",qn=class{},Wl=class extends qn{value;source;constructor(e,t){super(),this.value=e,this.source=t}},os=class extends qn{pristine;source;constructor(e,t){super(),this.pristine=e,this.source=t}},as=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}},J5=class extends qn{source;constructor(e){super(),this.source=e}};function X5(e){return(Oi(e)?e.validators:e)||null}function eb(e){return Array.isArray(e)?dp(e):e||null}function tb(e,t){return(Oi(t)?t.asyncValidators:e)||null}function nb(e){return Array.isArray(e)?hp(e):e||null}function Oi(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var rb=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 Dt(this.statusReactive)}set status(e){Dt(()=>this.statusReactive.set(e))}_status=st(()=>this.statusReactive());statusReactive=le(void 0);get valid(){return this.status===hn}get invalid(){return this.status===ar}get pending(){return this.status==At}get disabled(){return this.status===pn}get enabled(){return this.status!==pn}errors;get pristine(){return Dt(this.pristineReactive)}set pristine(e){Dt(()=>this.pristineReactive.set(e))}_pristine=st(()=>this.pristineReactive());pristineReactive=le(!0);get dirty(){return!this.pristine}get touched(){return Dt(this.touchedReactive)}set touched(e){Dt(()=>this.touchedReactive.set(e))}_touched=st(()=>this.touchedReactive());touchedReactive=le(!1);get untouched(){return!this.touched}_events=new Je;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(ql(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(ql(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Gl(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Gl(e,this._rawAsyncValidators))}hasValidator(e){return ni(this._rawValidators,e)}hasAsyncValidator(e){return ni(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(V(T({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new as(!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 as(!1,n))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(V(T({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new os(!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 os(!0,n))}markAsPending(e={}){this.status=At;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(V(T({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=pn,this.errors=null,this._forEachChild(r=>{r.disable(V(T({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Wl(this.value,n)),this._events.next(new lr(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(V(T({},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(V(T({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(V(T({},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===At)&&this._runAsyncValidator(n,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Wl(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(V(T({},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()?pn:hn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=At,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:e!==!1};let n=ap(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 N,this.statusChanges=new N}_calculateStatus(){return this._allControlsDisabled()?pn:this.errors?ar:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(At)?At: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 os(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new as(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Oi(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=eb(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=nb(this._rawAsyncValidators)}},fp=new M("",{providedIn:"root",factory:()=>_a}),_a="always";function ib(e,t){return[...t.path,e]}function sb(e,t,n=_a){ab(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),lb(e,t),cb(e,t),ub(e,t),ob(e,t)}function Ql(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function ob(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function ab(e,t){let n=G5(e);t.validator!==null?e.setValidators($l(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=W5(e);t.asyncValidator!==null?e.setAsyncValidators($l(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();Ql(t._rawValidators,i),Ql(t._rawAsyncValidators,i)}function lb(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&gp(e,t)})}function ub(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&gp(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function gp(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function cb(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function db(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function hb(e){return Object.getPrototypeOf(e.constructor)===N5}function pb(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(s=>{s.constructor===$n?n=s:hb(s)?r=s:i=s}),i||r||n||null}function Yl(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Kl(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var fb=class extends rb{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,t,n){super(X5(t),tb(n,t)),this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Oi(t)&&(t.nonNullable||t.initialValueIsDefault)&&(Kl(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 J5(this))}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Yl(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Yl(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){Kl(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}},gb={provide:ba,useExisting:Vn(()=>Ei)},Jl=Promise.resolve(),Ei=(()=>{class e extends ba{_changeDetectorRef;callSetDisabledState;control=new fb;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new N;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=pb(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),db(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(){sb(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){Jl.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,i=r!==0&&Dy(r);Jl.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?ib(n,this._parent):[n]}static \u0275fac=function(n){return new(n||e)(j(Q5,9),j(sp,10),j(B5,10),j(ip,10),j(ky,8),j(fp,8))};static \u0275dir=_e({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:[ha([gb]),ln,gi]})}return e})();function mb(e){return typeof e=="number"?e:parseInt(e,10)}var vb=(()=>{class e{_validator=Zl;_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):Zl,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=_e({type:e,features:[gi]})}return e})(),yb={provide:sp,useExisting:Vn(()=>mp),multi:!0},mp=(()=>{class e extends vb{maxlength;inputName="maxlength";normalizeInput=n=>mb(n);createValidator=n=>U5(n);static \u0275fac=(()=>{let n;return function(r){return(n||(n=Wc(e)))(r||e)}})();static \u0275dir=_e({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&sa("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[ha([yb]),ln]})}return e})(),Cb=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=_i({type:e});static \u0275inj=oi({})}return e})(),xa=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:fp,useValue:n.callSetDisabledState??_a}]}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=_i({type:e});static \u0275inj=oi({imports:[Cb]})}return e})();function bb(e,t){if(e&1){let n=xe();f(0,"button",11),x("click",function(){L(n);let r=O();return D(r.onSubmit())}),H(1,"app-icon",12),m()}if(e&2){let n=O();P("disabled",n.disabled||!n.value.trim())}}function wb(e,t){if(e&1){let n=xe();f(0,"button",13),x("click",function(){L(n);let r=O();return D(r.onStopClick())}),H(1,"app-icon",14),m()}}var _b=class Qs{placeholder=me.INPUT.PLACEHOLDER;disabled=!1;value="";voiceStatus={state:"idle",transcript:"",interimTranscript:""};isLoadingResponse=!1;valueChange=new N;submitMessage=new N;voiceClick=new N;addClick=new N;settingsClick=new N;stopClick=new N;get isListening(){return this.voiceStatus.state==="listening"}get displayValue(){if(this.isLoadingResponse)return"Thinking....";if(this.isListening){let t=this.voiceStatus.transcript||"",n=this.voiceStatus.interimTranscript||"";return t+(t&&n?" ":"")+n}return this.value}get displayPlaceholder(){return this.isLoadingResponse?"":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()}onSettingsClick(){this.settingsClick.emit()}onStopClick(){this.stopClick.emit()}static \u0275fac=function(t){return new(t||Qs)};static \u0275cmp=Ae({type:Qs,selectors:[["app-input-field"]],inputs:{placeholder:"placeholder",disabled:"disabled",value:"value",voiceStatus:"voiceStatus",isLoadingResponse:"isLoadingResponse"},outputs:{valueChange:"valueChange",submitMessage:"submitMessage",voiceClick:"voiceClick",addClick:"addClick",settingsClick:"settingsClick",stopClick:"stopClick"},decls:11,vars:12,consts:[[1,"input-container"],[1,"input-wrapper"],["aria-label","Add",1,"icon-button","add-button",3,"click"],["name","add","width","24","height","24"],["aria-label","Settings",1,"icon-button","settings-button",3,"click"],["name","settings","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"],["class","icon-button send-button","aria-label","Send message",3,"disabled","click",4,"ngIf"],["class","icon-button stop-button","aria-label","Stop response",3,"click",4,"ngIf"],["aria-label","Send message",1,"icon-button","send-button",3,"click","disabled"],["name","send-filled","width","24","height","24"],["aria-label","Stop response",1,"icon-button","stop-button",3,"click"],["name","stop-circle-filled","width","24","height","24"]],template:function(t,n){t&1&&(f(0,"div",0)(1,"div",1)(2,"button",2),x("click",function(){return n.onAddClick()}),H(3,"app-icon",3),m(),f(4,"button",4),x("click",function(){return n.onSettingsClick()}),H(5,"app-icon",5),m(),f(6,"input",6),x("ngModelChange",function(r){return n.onInputChange(r)})("keyup.enter",function(){return n.onSubmit()}),m(),f(7,"button",7),x("click",function(){return n.onVoiceClick()}),H(8,"app-icon",8),m(),re(9,bb,2,1,"button",9)(10,wb,2,0,"button",10),m()()),t&2&&(_(6),Ie("listening",n.isListening)("thinking",n.isLoadingResponse),P("ngModel",n.displayValue)("placeholder",n.displayPlaceholder)("disabled",n.disabled||n.isListening)("readonly",n.isListening||n.isLoadingResponse),_(),Ie("active",n.isListening),_(2),P("ngIf",!n.isLoadingResponse),_(),P("ngIf",n.isLoadingResponse))},dependencies:[ke,It,xa,$n,wa,Ei,Lt],styles:[".input-container[_ngcontent-%COMP%]{padding:12px 16px;background:#fff;border-top:1px solid #f0f0f0;flex-shrink:0;box-sizing:border-box}@media (max-width: 768px){.input-container[_ngcontent-%COMP%]{padding:10px 12px}}@media (max-height: 600px){.input-container[_ngcontent-%COMP%]{padding:8px 12px}}.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;background:#f8f8f8;border-radius:12px;padding:8px 16px;transition:background-color .2s;flex-wrap:nowrap}.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;font-family:Roboto Medium,Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:500}.input-field[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.input-field.listening[_ngcontent-%COMP%]{color:#f43e83;font-style:italic}.input-field.thinking[_ngcontent-%COMP%]{color:#999;font-family:Roboto Medium,Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:500}.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:#f43e83;animation:_ngcontent-%COMP%_pulse 1.5s ease-in-out infinite}.send-button[_ngcontent-%COMP%]{color:#333}.send-button[_ngcontent-%COMP%]:disabled{opacity:.3;cursor:not-allowed}.send-button[_ngcontent-%COMP%]:disabled:hover{background-color:transparent}.settings-button[_ngcontent-%COMP%]{color:#666}.stop-button[_ngcontent-%COMP%]{color:#333}@keyframes _ngcontent-%COMP%_pulse{0%,to{opacity:1}50%{opacity:.6}}@media (max-width: 768px){.input-container[_ngcontent-%COMP%]{padding:8px 12px;overflow:hidden}.input-wrapper[_ngcontent-%COMP%]{gap:4px;padding:6px 10px;overflow:hidden}.input-field[_ngcontent-%COMP%]{font-size:14px;padding:6px 0;min-width:0}.icon-button[_ngcontent-%COMP%]{padding:4px;width:28px;height:28px;min-width:28px;min-height:28px;max-width:28px;max-height:28px;flex-shrink:0;display:flex;align-items:center;justify-content:center}.icon-button[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%]{width:20px!important;height:20px!important;display:block!important;vertical-align:middle!important;line-height:0!important}.icon-button[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:20px!important;height:20px!important;display:block!important}}@media (max-width: 400px){.input-wrapper[_ngcontent-%COMP%]{gap:2px;padding:4px 6px}.icon-button[_ngcontent-%COMP%]{padding:2px;width:24px;height:24px;min-width:24px;min-height:24px;max-width:24px;max-height:24px}.icon-button[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%]{width:16px!important;height:16px!important;display:block!important;vertical-align:middle!important;line-height:0!important}.icon-button[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:16px!important;height:16px!important;display:block!important}.send-button[_ngcontent-%COMP%], .stop-button[_ngcontent-%COMP%]{padding:2px;width:24px;height:24px;min-width:24px;min-height:24px;max-width:24px;max-height:24px}.send-button[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%], .stop-button[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%]{width:16px!important;height:16px!important;display:block!important;vertical-align:middle!important;line-height:0!important}.send-button[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], .stop-button[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:16px!important;height:16px!important;display:block!important}.input-field[_ngcontent-%COMP%]{font-size:13px;padding:4px 0}}"]})};function xb(e,t){e&1&&(f(0,"div",7),H(1,"span")(2,"span")(3,"span"),m())}function kb(e,t){if(e&1&&H(0,"div",8),e&2){let n=O();P("innerHTML",n.message.text,bd)}}function Sb(e,t){if(e&1){let n=xe();f(0,"div",9)(1,"button",10),x("click",function(){L(n);let r=O();return D(r.onCopyClick())}),H(2,"app-icon",11),m(),f(3,"button",12),x("click",function(){L(n);let r=O();return D(r.onShareClick())}),H(4,"app-icon",13),m(),f(5,"button",14),x("click",function(){L(n);let r=O();return D(r.onSpeakClick())}),H(6,"app-icon",15),m()()}}var Mb=class Ys{logger=v(Le);message;get isUser(){return this.message.sender==="user"}get isAssistant(){return this.message.sender==="assistant"}onCopyClick(){let t=document.createElement("div");t.innerHTML=this.message.text;let n=t.textContent||t.innerText||"";navigator.clipboard.writeText(n).then(()=>{this.logger.debug("Message copied to clipboard")},r=>{this.logger.error("Failed to copy message:",r)})}onShareClick(){let t=document.createElement("div");t.innerHTML=this.message.text;let n=t.textContent||t.innerText||"";navigator.share?navigator.share({title:"AI Assistant Message",text:n}).then(()=>{this.logger.debug("Message shared successfully")},r=>{this.logger.error("Failed to share message:",r)}):this.onCopyClick()}onSpeakClick(){let t=document.createElement("div");t.innerHTML=this.message.text;let n=t.textContent||t.innerText||"";if("speechSynthesis"in window){window.speechSynthesis.cancel();let r=new SpeechSynthesisUtterance(n);r.lang="en-US",r.rate=1,r.pitch=1,window.speechSynthesis.speak(r)}else this.logger.warn("Speech synthesis not supported in this browser")}static \u0275fac=function(t){return new(t||Ys)};static \u0275cmp=Ae({type:Ys,selectors:[["app-message"]],inputs:{message:"message"},decls:7,vars:9,consts:[[1,"message"],[1,"message-container"],[1,"message-content"],[1,"message-bubble"],["class","typing-indicator",4,"ngIf"],["class","message-text",3,"innerHTML",4,"ngIf"],["class","message-actions",4,"ngIf"],[1,"typing-indicator"],[1,"message-text",3,"innerHTML"],[1,"message-actions"],["aria-label","Copy message","title","Copy",1,"action-button",3,"click"],["name","copy","width","16","height","16"],["aria-label","Share message","title","Share",1,"action-button",3,"click"],["name","share-ios","width","16","height","16"],["aria-label","Read aloud","title","Read aloud",1,"action-button",3,"click"],["name","unmute","width","16","height","16"]],template:function(t,n){t&1&&(f(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),re(4,xb,4,0,"div",4)(5,kb,1,1,"div",5),m(),re(6,Sb,7,0,"div",6),m()()()),t&2&&(Ie("user",n.isUser)("assistant",n.isAssistant),_(3),Ie("typing",n.message.isTyping),_(),P("ngIf",n.message.isTyping),_(),P("ngIf",!n.message.isTyping),_(),P("ngIf",n.isAssistant&&!n.message.isTyping))},dependencies:[ke,It,Lt],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:#808b95;color:#fff;border-radius:10px;box-shadow:0 1px 2px #0000001a;transition:background-color .2s ease}.message.user[_ngcontent-%COMP%]:hover .message-bubble[_ngcontent-%COMP%]{background:#6d7a85}.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}}.message-actions[_ngcontent-%COMP%]{display:flex;gap:4px;margin-top:4px;opacity:0;transition:opacity .2s ease}.message.assistant[_ngcontent-%COMP%]:hover .message-actions[_ngcontent-%COMP%]{opacity:1}.action-button[_ngcontent-%COMP%]{background:none;border:none;padding:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:4px;color:#808b95;transition:all .2s ease}.action-button[_ngcontent-%COMP%]:hover{background-color:#808b951a;color:#6d7a85}.action-button[_ngcontent-%COMP%]:active{transform:scale(.95);background-color:#808b9533}@media (max-width: 768px){.message-bubble[_ngcontent-%COMP%]{max-width:90%}.message-actions[_ngcontent-%COMP%]{opacity:1}.action-button[_ngcontent-%COMP%]{padding:8px}}"]})},Ob=["messagesContainer"];function Eb(e,t){if(e&1&&H(0,"app-message",10),e&2){let n=t.$implicit;P("message",n)}}function Tb(e,t){if(e&1&&(la(0),f(1,"div",7)(2,"span",8),z(3),m()(),re(4,Eb,1,1,"app-message",9),ua()),e&2){let n=t.$implicit,r=O(2);_(3),be(n.date),_(),P("ngForOf",n.messages)("ngForTrackBy",r.trackByMessageId)}}function Pb(e,t){if(e&1&&(f(0,"div",5),re(1,Tb,5,3,"ng-container",6),m()),e&2){let n=O();_(),P("ngForOf",n.messageGroups)}}function Ib(e,t){e&1&&(f(0,"div",11)(1,"p",12),z(2,"Start a conversation by typing a message or selecting a suggestion below."),m()())}var Lb=class Ks{messages=[];canLoadMore=!1;isLoadingMore=!1;loadMore=new N;messagesContainer;messageGroups=[];restoreScrollAfterPrepend=!1;previousScrollHeight=0;suppressNextScroll=!1;lastScrollTop=Number.MAX_SAFE_INTEGER;scrollInitialized=!1;initialScrollPending=!0;initialScrollRequested=!1;get container(){return this.messagesContainer?.nativeElement??null}ngAfterViewChecked(){if(this.restoreScrollAfterPrepend&&this.messagesContainer){let t=this.messagesContainer.nativeElement,n=t.scrollHeight-this.previousScrollHeight;t.scrollTop=n+t.scrollTop,this.restoreScrollAfterPrepend=!1}}ngOnChanges(t){if(!t.messages)return;let n=t.messages.currentValue,r=t.messages.previousValue;this.messageGroups=this.groupMessagesByDate(this.messages),this.initialScrollPending?this.queueInitialScroll():this.hasAppendedMessage(r,n)&&this.scrollToBottomAfterRender()}onScroll(){if(!this.canLoadMore)return;let t=this.container;t&&(this.shouldSkipScroll(t)||this.isNearTop(t.scrollTop)&&this.prepareForLoadMore(t))}trackByMessageId(t,n){return n.id}queueInitialScroll(){this.initialScrollRequested||(this.initialScrollRequested=!0,Promise.resolve().then(()=>{let t=this.container;if(!t||!this.initialScrollPending){this.initialScrollRequested=!1;return}this.scrollToBottom(t),this.initialScrollPending=!1,this.initialScrollRequested=!1}))}scrollToBottomAfterRender(){Promise.resolve().then(()=>{let t=this.container;t&&this.scrollToBottom(t)})}scrollToBottom(t){this.suppressNextScroll=!0,t.scrollTop=t.scrollHeight,this.lastScrollTop=t.scrollTop,this.scrollInitialized=!0}triggerLoadMore(t){if(!this.canLoadMore||this.isLoadingMore)return;let n=t??this.container;n&&(this.previousScrollHeight=n.scrollHeight,this.restoreScrollAfterPrepend=!0),this.loadMore.emit()}hasAppendedMessage(t,n){if(!n||n.length===0)return!1;if(!t||t.length===0)return!0;if(n.length<=t.length)return!1;let r=t[t.length-1]?.id;return n[n.length-1]?.id!==r}shouldSkipScroll(t){let n=t.scrollTop,r=t.scrollHeight,i=t.clientHeight;if(this.suppressNextScroll)return this.suppressNextScroll=!1,this.lastScrollTop=n,!0;if(r<=i+200)return this.lastScrollTop=n,!0;if(!this.scrollInitialized)return this.scrollInitialized=!0,this.lastScrollTop=n,!0;let s=n<this.lastScrollTop;return this.lastScrollTop=n,!s}isNearTop(t){return t<=200}prepareForLoadMore(t){this.suppressNextScroll=!0,this.triggerLoadMore(t)}groupMessagesByDate(t){let n={};return t.forEach(r=>{let i=this.getDateKey(r.timestamp);n[i]||(n[i]=[]),n[i].push(r)}),Object.keys(n).map(r=>({date:this.formatDateLabel(r),messages:n[r]}))}getDateKey(t){let n=new Date(t);return`${n.getFullYear()}-${String(n.getMonth()+1).padStart(2,"0")}-${String(n.getDate()).padStart(2,"0")}`}formatDateLabel(t){let n=new Date,r=new Date(n);r.setDate(r.getDate()-1);let i=this.getDateKey(n),s=this.getDateKey(r);if(t===i)return me.DATE.LABELS.TODAY;if(t===s)return me.DATE.LABELS.YESTERDAY;let[o,a,l]=t.split("-").map(Number),u=new Date(o,a-1,l);return`${l} ${me.DATE.MONTH_NAMES[u.getMonth()]}`}static \u0275fac=function(t){return new(t||Ks)};static \u0275cmp=Ae({type:Ks,selectors:[["app-chat-history"]],viewQuery:function(t,n){if(t&1&&vh(Ob,5),t&2){let r;yh(r=Ch())&&(n.messagesContainer=r.first)}},inputs:{messages:"messages",canLoadMore:"canLoadMore",isLoadingMore:"isLoadingMore"},outputs:{loadMore:"loadMore"},features:[gi],decls:5,vars:2,consts:[["messagesContainer",""],[1,"chat-history"],[1,"messages-container",3,"scroll"],["class","messages-list",4,"ngIf"],["class","empty-state",4,"ngIf"],[1,"messages-list"],[4,"ngFor","ngForOf"],[1,"date-separator"],[1,"date-label"],[3,"message",4,"ngFor","ngForOf","ngForTrackBy"],[3,"message"],[1,"empty-state"],[1,"empty-text"]],template:function(t,n){if(t&1){let r=xe();f(0,"div",1)(1,"div",2,0),x("scroll",function(){return L(r),D(n.onScroll())}),re(3,Pb,2,1,"div",3)(4,Ib,3,0,"div",4),m()()}t&2&&(_(3),P("ngIf",n.messages.length>0),_(),P("ngIf",n.messages.length===0))},dependencies:[ke,ki,It,Mb],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}.date-separator[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin:16px 0 12px}.date-label[_ngcontent-%COMP%]{color:#95a5a6;font-size:13px;font-weight:500;padding:4px 12px;background:#95a5a61a;border-radius:12px}.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 Db(e,t){if(e&1){let n=xe();f(0,"div",1),x("click",function(){L(n);let r=O();return D(r.onOverlayClick())}),f(1,"div",2),x("click",function(r){L(n);let i=O();return D(i.onModalClick(r))}),f(2,"div",3)(3,"button",4),x("click",function(){L(n);let r=O();return D(r.onBackClick())}),H(4,"app-icon",5),m(),f(5,"h2",6),z(6,"Rename Chat"),m(),f(7,"button",7),x("click",function(){L(n);let r=O();return D(r.onCloseClick())}),H(8,"app-icon",8),m()(),f(9,"div",9)(10,"input",10),da("ngModelChange",function(r){L(n);let i=O();return _h(i.editedTitle,r)||(i.editedTitle=r),D(r)}),x("keydown",function(r){L(n);let i=O();return D(i.onInputKeydown(r))}),m()(),f(11,"div",11)(12,"button",12),x("click",function(){L(n);let r=O();return D(r.onCancel())}),z(13," Cancel "),m(),f(14,"button",13),x("click",function(){L(n);let r=O();return D(r.onSave())}),z(15," Save "),m()()()()}if(e&2){let n=O();_(10),ca("ngModel",n.editedTitle),P("maxlength",500)}}var Ab=class Js{isOpen=!1;currentTitle="";close=new N;save=new N;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||Js)};static \u0275cmp=Ae({type:Js,selectors:[["app-rename-modal"]],inputs:{isOpen:"isOpen",currentTitle:"currentTitle"},outputs:{close:"close",save:"save"},features:[gi],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","rename-modal-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&&re(0,Db,16,2,"div",0),t&2&&P("ngIf",n.isOpen)},dependencies:[ke,It,xa,$n,wa,mp,Ei,Lt],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;overflow-x:hidden}@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;box-sizing:border-box;overflow-x:hidden}@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:left;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%], .rename-modal-close-button[_ngcontent-%COMP%]{flex-shrink:0}.modal-body[_ngcontent-%COMP%]{padding:24px 20px;flex:1;overflow-y:auto;overflow-x:hidden;box-sizing:border-box}.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;box-sizing:border-box}.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;box-sizing:border-box}.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:#f43e83;color:#fff}.btn-save[_ngcontent-%COMP%]:hover{background-color:#d63571}.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}}"]})},Vb=["scrollContainer"],Rb=e=>({compact:e});function Nb(e,t){if(e&1){let n=xe();f(0,"div",34)(1,"button",35),x("click",function(r){L(n);let i=O().$implicit,s=O(2);return D(s.onEditClick(i.id,i.title,r))}),H(2,"app-icon",36),f(3,"span"),z(4,"Rename"),m()(),f(5,"button",37),x("click",function(r){L(n);let i=O().$implicit,s=O(2);return D(s.onDeleteClick(i.id,r))}),H(6,"app-icon",38),f(7,"span"),z(8,"Delete"),m()()()}}function Fb(e,t){if(e&1){let n=xe();f(0,"div",25),x("click",function(){let r=L(n).$implicit,i=O(2);return D(i.onConversationClick(r.id))}),f(1,"div",26)(2,"div",27)(3,"span",28),z(4),m()(),f(5,"span",29),z(6),m()(),f(7,"div",30)(8,"button",31),x("click",function(r){let i=L(n).$implicit,s=O(2);return D(s.toggleMenu(i.id,r))}),H(9,"app-icon",32),m(),re(10,Nb,9,0,"div",33),m()()}if(e&2){let n=t.$implicit,r=O(2);_(4),be(n.title),_(2),be(n.date),_(4),P("ngIf",r.isMenuOpen(n.id))}}function Hb(e,t){if(e&1&&(f(0,"div",23),re(1,Fb,11,3,"div",24),m()),e&2){let n=O();_(),P("ngForOf",n.conversations)}}function jb(e,t){if(e&1&&(f(0,"div",39)(1,"div",40),H(2,"div",41),f(3,"p",42),z(4,"Loading conversations..."),m()()()),e&2){let n=O();_(),P("ngClass",ay(1,Rb,!(n.isLoading&&n.conversations.length===0)))}}function zb(e,t){e&1&&(f(0,"div",43)(1,"p"),z(2,"No conversations yet"),m()())}var Bb=class Xs{isOpen=!1;conversations=[];canLoadMore=!1;isLoadingMore=!1;isLoading=!1;scrollContainer;backClick=new N;settingsClick=new N;closeClick=new N;conversationClick=new N;deleteClick=new N;newChatClick=new N;searchChange=new N;titleUpdate=new N;loadMore=new N;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()}onScroll(){if(!this.canLoadMore||this.isLoadingMore||this.isLoading)return;let t=this.scrollContainer?.nativeElement;t&&t.scrollHeight-t.scrollTop-t.clientHeight<=80&&this.loadMore.emit()}static \u0275fac=function(t){return new(t||Xs)};static \u0275cmp=Ae({type:Xs,selectors:[["app-sidebar"]],viewQuery:function(t,n){if(t&1&&vh(Vb,5),t&2){let r;yh(r=Ch())&&(n.scrollContainer=r.first)}},inputs:{isOpen:"isOpen",conversations:"conversations",canLoadMore:"canLoadMore",isLoadingMore:"isLoadingMore",isLoading:"isLoading"},outputs:{backClick:"backClick",settingsClick:"settingsClick",closeClick:"closeClick",conversationClick:"conversationClick",deleteClick:"deleteClick",newChatClick:"newChatClick",searchChange:"searchChange",titleUpdate:"titleUpdate",loadMore:"loadMore"},decls:26,vars:10,consts:[["scrollContainer",""],[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-gear","width","20","height","20"],["aria-label","Close",1,"icon-button","sidebar-close-button",3,"click"],["name","close","width","20","height","20"],[1,"sidebar-content",3,"scroll"],[1,"conversations-title"],["class","conversations-list",4,"ngIf"],["class","load-more",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-code","width","20","height","20"],[3,"close","save","isOpen","currentTitle"],[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,"load-more"],["aria-live","polite",1,"loading-state",3,"ngClass"],["aria-hidden","true",1,"spinner"],[1,"loading-text"],[1,"empty-conversations"]],template:function(t,n){if(t&1){let r=xe();f(0,"div",1),x("click",function(){return L(r),D(n.onOverlayClick())}),m(),f(1,"div",2),x("click",function(){return L(r),D(n.onSidebarClick())}),f(2,"div",3)(3,"button",4),x("click",function(){return L(r),D(n.onBackClick())}),H(4,"app-icon",5),f(5,"span"),z(6,"Back to Chat"),m()(),f(7,"div",6)(8,"button",7),x("click",function(){return L(r),D(n.onSettingsClick())}),H(9,"app-icon",8),m(),f(10,"button",9),x("click",function(){return L(r),D(n.onCloseClick())}),H(11,"app-icon",10),m()()(),f(12,"div",11,0),x("scroll",function(){return L(r),D(n.onScroll())}),f(14,"h3",12),z(15,"Conversations"),m(),re(16,Hb,2,1,"div",13)(17,jb,5,3,"div",14)(18,zb,3,0,"div",15),m(),f(19,"div",16)(20,"div",17),H(21,"app-icon",18),f(22,"input",19),da("ngModelChange",function(i){return L(r),_h(n.searchQuery,i)||(n.searchQuery=i),D(i)}),x("input",function(){return L(r),D(n.onSearchChange())}),m()(),f(23,"button",20),x("click",function(){return L(r),D(n.onNewChatClick())}),H(24,"app-icon",21),m()()(),f(25,"app-rename-modal",22),x("close",function(){return L(r),D(n.onRenameModalClose())})("save",function(i){return L(r),D(n.onRenameModalSave(i))}),m()}t&2&&(Ie("visible",n.isOpen),_(),Ie("open",n.isOpen),_(15),P("ngIf",n.conversations.length>0),_(),P("ngIf",n.isLoading&&n.conversations.length===0||n.isLoadingMore&&n.conversations.length>0),_(),P("ngIf",!n.isLoading&&n.conversations.length===0),_(4),ca("ngModel",n.searchQuery),_(3),P("isOpen",n.isRenameModalOpen)("currentTitle",n.renamingConversationTitle))},dependencies:[ke,gC,ki,It,xa,$n,wa,Ei,Lt,Ab],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}.loading-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:40px 20px;color:#1a1a1a}.spinner[_ngcontent-%COMP%]{width:32px;height:32px;border:3px solid rgba(0,0,0,.1);border-top-color:#2c3e50;border-radius:50%;animation:_ngcontent-%COMP%_spin .9s linear infinite}.loading-text[_ngcontent-%COMP%]{font-size:14px;color:#54606c;margin:0}.loading-state.compact[_ngcontent-%COMP%]{flex-direction:row;padding:12px 16px;gap:10px}.loading-state.compact[_ngcontent-%COMP%] .loading-text[_ngcontent-%COMP%]{font-size:13px}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.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}.load-more[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:12px}.load-more-button[_ngcontent-%COMP%]{background:transparent;border:1px solid rgba(0,0,0,.1);border-radius:999px;color:#2c3e50;font-size:13px;padding:6px 16px;cursor:pointer;transition:background .2s ease,border-color .2s ease}.load-more-button[_ngcontent-%COMP%]:hover:not(:disabled){background:#0000000a;border-color:#0003}.load-more-button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.6}.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:12px 16px;gap:10px}.search-icon[_ngcontent-%COMP%]{flex-shrink:0;color:#95a5a6}.search-input[_ngcontent-%COMP%]{flex:1;border:none;background:none;font-size:15px;color:#1a1a1a;outline:none;padding:0}.search-input[_ngcontent-%COMP%]::placeholder{color:#95a5a6}.new-chat-button[_ngcontent-%COMP%]{flex-shrink:0;background:#f5f7fa;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:#e8ecf1;border-color:#d0d7de}@media (max-width: 768px){.menu-button[_ngcontent-%COMP%]{opacity:1}}@media (max-width: 480px){.sidebar[_ngcontent-%COMP%]{width:100%;max-width:none}}"]})},vp=class _r{toasts=le([]);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=E({token:_r,factory:_r.\u0275fac,providedIn:"root"})};function Ub(e,t){e&1&&(f(0,"span"),z(1,"\u2713"),m())}function Zb(e,t){e&1&&(f(0,"span"),z(1,"\u2715"),m())}function $b(e,t){e&1&&(f(0,"span"),z(1,"\u26A0"),m())}function qb(e,t){e&1&&(f(0,"span"),z(1,"\u2139"),m())}function Gb(e,t){if(e&1){let n=xe();f(0,"div",2)(1,"div",3)(2,"span",4),la(3,5),re(4,Ub,2,0,"span",6)(5,Zb,2,0,"span",6)(6,$b,2,0,"span",6)(7,qb,2,0,"span",6),ua(),m(),f(8,"span",7),z(9),m()(),f(10,"button",8),x("click",function(){let r=L(n).$implicit,i=O();return D(i.onClose(r.id))}),z(11,"\u2715"),m()()}if(e&2){let n=t.$implicit;Ie("success",n.type==="success")("error",n.type==="error")("warning",n.type==="warning")("info",n.type==="info"),_(3),P("ngSwitch",n.type),_(),P("ngSwitchCase","success"),_(),P("ngSwitchCase","error"),_(),P("ngSwitchCase","warning"),_(),P("ngSwitchCase","info"),_(2),be(n.message)}}var Wb=class eo{toastService=v(vp);toasts=this.toastService.toasts$;onClose(t){this.toastService.remove(t)}static \u0275fac=function(t){return new(t||eo)};static \u0275cmp=Ae({type:eo,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&&(f(0,"div",0),re(1,Gb,12,14,"div",1),m()),t&2&&(_(),P("ngForOf",n.toasts()))},dependencies:[ke,ki,Ih,CC],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}}"]})},yp=class xr{isOpenSignal=le(!1);configSignal=le(null);resolveCallback=null;isOpen$=this.isOpenSignal.asReadonly();config$=this.configSignal.asReadonly();confirm(t){return this.configSignal.set(T({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=E({token:xr,factory:xr.\u0275fac,providedIn:"root"})};function Qb(e,t){if(e&1){let n=xe();f(0,"div",1),x("click",function(){L(n);let r=O();return D(r.onOverlayClick())}),f(1,"div",2),x("click",function(r){L(n);let i=O();return D(i.onModalClick(r))}),f(2,"div",3)(3,"button",4),x("click",function(){L(n);let r=O();return D(r.onBackClick())}),H(4,"app-icon",5),m(),f(5,"h2",6),z(6),m(),f(7,"button",7),x("click",function(){L(n);let r=O();return D(r.onCloseClick())}),H(8,"app-icon",8),m()(),f(9,"div",9)(10,"p",10),z(11),m()(),f(12,"div",11)(13,"button",12),x("click",function(){L(n);let r=O();return D(r.onCancel())}),z(14),m(),f(15,"button",13),x("click",function(){L(n);let r=O();return D(r.onConfirm())}),z(16),m()()()()}if(e&2){let n,r,i,s,o,a,l=O();_(6),be(((n=l.config())==null?null:n.title)||"Back"),_(5),be((r=l.config())==null?null:r.message),_(3),An(" ",((i=l.config())==null?null:i.cancelText)||"Cancel"," "),_(),Ie("btn-danger",((s=l.config())==null?null:s.confirmColor)==="danger")("btn-primary",((o=l.config())==null?null:o.confirmColor)==="primary"),_(),An(" ",((a=l.config())==null?null:a.confirmText)||"Confirm"," ")}}var Yb=class to{confirmationService=v(yp);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||to)};static \u0275cmp=Ae({type:to,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","confirmation-modal-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&&re(0,Qb,17,8,"div",0),t&2&&P("ngIf",n.isOpen())},dependencies:[ke,It,Lt],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;overflow-x:hidden}@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;box-sizing:border-box;overflow-x:hidden}@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:left;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%], .confirmation-modal-close-button[_ngcontent-%COMP%]{flex-shrink:0}.modal-body[_ngcontent-%COMP%]{padding:32px 20px;flex:1;overflow-y:auto;overflow-x:hidden;box-sizing:border-box}.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;box-sizing:border-box}.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:#f43e83}.btn-danger[_ngcontent-%COMP%]:hover{background-color:#d63571}.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}}"]})},ri={production:!0,apiUrl:"https://ca-oaa-ai-dev-we-api.proudforest-87e29140.westeurope.azurecontainerapps.io",apiTimeout:6e4,environmentName:"production"},Kb=class kr{http=v(ya);logger=v(Le);get apiUrl(){return ri.apiUrl}get timeout(){return ri.apiTimeout}createConversation(t){return this.http.post(`${this.apiUrl}/conversations`,t).pipe(pt(this.timeout),Oe(this.handleError))}getConversations(t,n,r=0,i=20){let s=new Ge().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`,{params:s}).pipe(pt(this.timeout),Oe(this.handleError))}getConversation(t){return this.http.get(`${this.apiUrl}/conversations/${t}`).pipe(pt(this.timeout),Oe(this.handleError))}deleteConversation(t){return this.http.delete(`${this.apiUrl}/conversations/${t}`).pipe(pt(this.timeout),Oe(this.handleError))}updateConversationTitle(t,n){return this.http.patch(`${this.apiUrl}/conversations/${t}/title`,n).pipe(pt(this.timeout),Oe(this.handleError))}sendMessage(t,n){let r=`${this.apiUrl}/conversations/${t}/messages`;return this.http.post(r,n).pipe(pt(this.timeout),Oe(this.handleError))}getMessages(t,n=0,r=20){let i=new Ge().set("offset",n.toString()).set("limit",r.toString());return this.http.get(`${this.apiUrl}/conversations/${t}/messages`,{params:i}).pipe(pt(this.timeout),Oe(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}
|
|
41
|
-
Message: ${t.message}`,fo(()=>new Error(n))};static \u0275fac=function(t){return new(t||kr)};static \u0275prov=E({token:kr,factory:kr.\u0275fac,providedIn:"root"})},Jb=class Sr{apiService=v(Kb);logger=v(Le);pageSize=10;chatState=le({messages:[],isLoading:!1,currentInput:"",isLoadingMore:!1,hasMoreHistory:!1,pageSize:this.pageSize,currentOffset:0,totalMessages:0});currentConversationId=null;cancelRequest$=new Je;isCancelling=!1;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=>V(T({},i),{messages:[...i.messages,r],totalMessages:i.totalMessages+1}))}sendMessage(t){return Y(this,null,function*(){try{this.isCancelling=!1,this.addMessage(t,"user"),this.chatState.update(i=>V(T({},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=>V(T({},i),{messages:[...i.messages,n]})),yield this.delay(this.typingSimulationDelay);let r=yield nt(this.apiService.sendMessage(this.currentConversationId,{message:t}).pipe(e1(this.cancelRequest$)));this.isCancelling||(this.chatState.update(i=>V(T({},i),{messages:i.messages.filter(s=>s.id!==n.id),isLoading:!1})),this.addMessage(r.assistantMessage,"assistant"))}catch(n){if(this.isCancelling){this.logger.info("Request was cancelled by user");return}this.logger.error("Error sending message:",n),this.chatState.update(r=>V(T({},r),{messages:r.messages.filter(i=>!i.isTyping),isLoading:!1})),this.addMessage("Sorry, I encountered an error. Please try again.","assistant")}})}createConversation(){return Y(this,null,function*(){try{let t=yield nt(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 Y(this,null,function*(){try{this.chatState.update(o=>V(T({},o),{isLoading:!0}));let n=this.pageSize,r=yield nt(this.apiService.getMessages(t,0,n)),i=r.total,s=(r.messages??[]).slice().reverse().map(o=>({id:o.id,text:o.content,sender:o.role==="user"?"user":"assistant",timestamp:new Date(o.createdAt),isTyping:!1}));this.currentConversationId=t,this.chatState.update(o=>V(T({},o),{messages:s,isLoading:!1,hasMoreHistory:r.hasMore,currentOffset:r.offset+s.length,totalMessages:i,pageSize:n,isLoadingMore:!1}))}catch(n){this.logger.error("Error loading conversation:",n),this.chatState.update(r=>V(T({},r),{isLoading:!1}))}})}clearChat(){this.chatState.update(t=>V(T({},t),{messages:[],hasMoreHistory:!1,currentOffset:0,totalMessages:0,isLoadingMore:!1})),this.currentConversationId=null}stopResponse(){this.isCancelling=!0,this.cancelRequest$.next(),this.chatState.update(t=>V(T({},t),{messages:t.messages.filter(n=>!n.isTyping),isLoading:!1}))}getCurrentConversationId(){return this.currentConversationId}getConversations(t,n,r=0,i=20){return Y(this,null,function*(){try{return yield nt(this.apiService.getConversations(t,n,r,i))}catch(s){throw this.logger.error("Error loading conversations:",s),s}})}deleteConversation(t){return Y(this,null,function*(){try{yield nt(this.apiService.deleteConversation(t)),this.currentConversationId===t&&this.clearChat()}catch(n){throw this.logger.error("Error deleting conversation:",n),n}})}updateConversationTitle(t,n){return Y(this,null,function*(){try{yield nt(this.apiService.updateConversationTitle(t,{title:n}))}catch(r){throw this.logger.error("Error updating conversation title:",r),r}})}loadMoreHistory(){return Y(this,null,function*(){let t=this.chatState();if(!this.currentConversationId||t.isLoadingMore||!t.hasMoreHistory)return;let n=t.currentOffset;this.chatState.update(r=>V(T({},r),{isLoadingMore:!0}));try{let r=yield nt(this.apiService.getMessages(this.currentConversationId,n,t.pageSize)),i=(r.messages??[]).slice().reverse().map(o=>({id:o.id,text:o.content,sender:o.role==="user"?"user":"assistant",timestamp:new Date(o.createdAt),isTyping:!1})),s=n+(r.messages?.length??0);this.chatState.update(o=>V(T({},o),{messages:[...i,...o.messages],currentOffset:s,hasMoreHistory:r.hasMore,totalMessages:r.total,isLoadingMore:!1}))}catch(r){this.logger.error("Error loading more messages:",r),this.chatState.update(i=>V(T({},i),{isLoadingMore:!1}))}})}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||Sr)};static \u0275prov=E({token:Sr,factory:Sr.\u0275fac,providedIn:"root"})},Xb=class Mr{constructor(t){this.logger=t,this.initializeRecognition()}recognition=null;isSupported=!1;resolveStop=null;statusSignal=le({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=>V(T({},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=>V(T({},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=>V(T({},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=>V(T({},r),{state:"error",errorMessage:"Failed to start voice recognition"}))}}stopListening(){return Y(this,null,function*(){return this.isSupported?this.statusSignal().state!=="listening"?{transcript:"",success:!1}:new Promise(t=>{this.resolveStop=t,this.statusSignal.update(n=>V(T({},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||Mr)(b(Le))};static \u0275prov=E({token:Mr,factory:Mr.\u0275fac,providedIn:"root"})},Cp=class Or{constructor(t){this.http=t}logger=v(Le);config=null;loadConfig(){return Y(this,null,function*(){try{this.config=yield nt(this.http.get("/config.json")),this.logger.info("Configuration loaded:",this.config?.environmentName)}catch(t){this.logger.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,this.logger.info("Configuration updated:",this.config.environmentName)}static \u0275fac=function(t){return new(t||Or)(b(ya))};static \u0275prov=E({token:Or,factory:Or.\u0275fac,providedIn:"root"})},bp=class Er{logger=v(Le);TOKEN_KEY="jwt_token";CLOCK_SKEW_BUFFER=60;authState=le({isAuthenticated:!1,token:null,user:null});state=this.authState.asReadonly();constructor(){this.initializeAuthState()}initializeAuthState(){let t=this.getToken();if(t){let n=this.getUserFromToken(t);this.authState.set({isAuthenticated:!0,token:t,user:n}),this.logger.debug("Auth state initialized from localStorage",{user:n})}else this.logger.debug("No valid token found in localStorage")}getToken(){try{let t=localStorage.getItem(this.TOKEN_KEY);return t?this.isTokenExpired()?(this.logger.warn("Token found but expired, clearing"),this.clearToken(),null):t:null}catch(t){return this.logger.error("Error reading token from localStorage",t),null}}setToken(t){try{let n=this.decodeToken(t);if(!n){this.logger.error("Cannot store invalid token");return}localStorage.setItem(this.TOKEN_KEY,t);let r=this.getUserFromToken(t);this.authState.set({isAuthenticated:!0,token:t,user:r}),this.logger.debug("Token stored successfully",{exp:n.exp,user:r})}catch(n){throw n instanceof DOMException&&(n.name==="QuotaExceededError"||n.name==="NS_ERROR_DOM_QUOTA_REACHED")?this.logger.error("localStorage quota exceeded",n):this.logger.error("Error storing token",n),n}}isTokenExpired(){try{let t=localStorage.getItem(this.TOKEN_KEY);if(!t)return!0;let n=this.decodeToken(t);if(!n)return!0;let r=n.exp,i=Math.floor(Date.now()/1e3),s=i>r-this.CLOCK_SKEW_BUFFER;return s&&this.logger.debug("Token expired",{exp:r,now:i,diff:r-i}),s}catch(t){return this.logger.error("Error checking token expiration",t),!0}}isAuthenticated(){return this.getToken()!==null}clearToken(){try{localStorage.removeItem(this.TOKEN_KEY),this.authState.set({isAuthenticated:!1,token:null,user:null}),this.logger.debug("Token cleared, user logged out")}catch(t){this.logger.error("Error clearing token",t)}}logout(){this.logger.info("User logged out"),this.clearToken()}getUserFromToken(t){let n=t||this.getToken();if(!n)return null;let r=this.decodeToken(n);return r?{id:r.sub,name:r.name,email:r.email}:null}createValidToken(){let t={alg:"HS256",typ:"JWT"},n=Math.floor(Date.now()/1e3),r={sub:"00000000-0000-0000-0000-000000000000",name:"Development User",email:"dev@localhost",iss:"http://oaa-api.azurewebsites.net/",iat:n,exp:n+1440*60},i=u=>{let c=JSON.stringify(u);return btoa(c).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},s=i(t),o=i(r),a=i({dev:!0}),l=`${s}.${o}.${a}`;return this.logger.debug("Created development token",{exp:r.exp,expiresIn:"24 hours"}),l}validateToken(t){try{let n=this.decodeToken(t);if(!n)return{isValid:!1,isExpired:!1,error:"Invalid token format"};let r=Math.floor(Date.now()/1e3)>n.exp;return{isValid:!r,isExpired:r,payload:n}}catch(n){return{isValid:!1,isExpired:!1,error:n instanceof Error?n.message:"Unknown error"}}}decodeToken(t){try{let n=t.split(".");if(n.length!==3)return this.logger.error("Invalid token format - must have 3 parts"),null;let r=n[1];if(!r)return this.logger.error("Invalid token - missing payload"),null;let i=r.replace(/-/g,"+").replace(/_/g,"/"),s=decodeURIComponent(atob(i).split("").map(a=>"%"+("00"+a.charCodeAt(0).toString(16)).slice(-2)).join("")),o=JSON.parse(s);return!o.sub||!o.exp||!o.iat?(this.logger.error("Invalid token payload - missing required fields"),null):o}catch(n){return this.logger.error("Token decode failed",n),null}}static \u0275fac=function(t){return new(t||Er)};static \u0275prov=E({token:Er,factory:Er.\u0275fac,providedIn:"root"})};function e3(e,t){if(e&1&&(f(0,"div",8)(1,"div",9),H(2,"app-icon",10),m(),f(3,"h1",11),z(4),m(),f(5,"p",12),z(6),m(),f(7,"p",13),z(8),m()()),e&2){let n=O();_(4),be(n.greeting),_(2),be(n.welcomeText),_(2),be(n.description)}}function t3(e,t){if(e&1){let n=xe();f(0,"app-chat-history",14),x("loadMore",function(){L(n);let r=O();return D(r.onLoadMoreHistory())}),m()}if(e&2){let n=O();P("messages",n.messages())("canLoadMore",n.canLoadMoreHistory())("isLoadingMore",n.isLoadingMoreHistory())}}function n3(e,t){if(e&1){let n=xe();f(0,"app-suggestion-button",19),x("buttonClick",function(r){L(n);let i=O(2);return D(i.onSuggestionClick(r))}),m()}if(e&2){let n=t.$implicit,r=O(2);P("text",n)("disabled",r.isLoading())}}function r3(e,t){if(e&1&&(f(0,"div",15)(1,"p",16),z(2),m(),f(3,"div",17),re(4,n3,1,2,"app-suggestion-button",18),m()()),e&2){let n=O();_(2),be(n.personalizationText),_(2),P("ngForOf",n.suggestions)}}var i3=class no{chatService=v(Jb);toastService=v(vp);confirmationService=v(yp);voiceRecognition=v(Xb);configService=v(Cp);authService=v(bp);logger=v(Le);_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),this.logger.debug("Config updated via Input:",t))}set jwtToken(t){t&&t.trim()&&(this.authService.setToken(t),this.logger.debug("JWT token set from parent application"))}title=me.TITLE;greeting=me.WELCOME.GREETING;welcomeText=me.WELCOME.TEXT;description=me.WELCOME.DESCRIPTION;personalizationText=me.WELCOME.PERSONALIZATION;inputPlaceholder=me.INPUT.PLACEHOLDER;suggestions=[...me.SUGGESTIONS];chatState=this.chatService.getState();messages=st(()=>this.chatState().messages);isLoading=st(()=>this.chatState().isLoading);hasMessages=st(()=>this.messages().length>0);canLoadMoreHistory=st(()=>this.chatState().hasMoreHistory);isLoadingMoreHistory=st(()=>this.chatState().isLoadingMore);voiceStatus=this.voiceRecognition.getStatus();sidebarOpenSignal=le(!1);isSidebarOpen=this.sidebarOpenSignal.asReadonly();conversationsSignal=le([]);conversations=this.conversationsSignal.asReadonly();isLoadingConversationsSignal=le(!1);isLoadingConversations=this.isLoadingConversationsSignal.asReadonly();searchQuerySignal=le("");inputValueSignal=le("");inputValue=this.inputValueSignal.asReadonly();ngOnInit(){this.logger.debug("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}),this.logger.debug("Config updated:",this.configService.getConfig())}onMenuClick(){return Y(this,null,function*(){this.sidebarOpenSignal.set(!0),this.searchQuerySignal.set(""),yield this.loadConversations()})}onCloseClick(){this.chatService.clearChat()}onSuggestionClick(t){return Y(this,null,function*(){yield this.chatService.sendMessage(t)})}onMessageSubmit(t){return Y(this,null,function*(){t.trim()&&(this.inputValueSignal.set(""),yield this.chatService.sendMessage(t))})}onInputValueChange(t){this.inputValueSignal.set(t)}onVoiceClick(){return Y(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!")}onSettingsClick(){this.toastService.info("Settings feature coming soon!")}onStopClick(){this.chatService.stopResponse(),this.toastService.info("Response stopped")}onLoadMoreHistory(){return Y(this,null,function*(){yield this.chatService.loadMoreHistory()})}onSidebarBackClick(){this.sidebarOpenSignal.set(!1)}onSidebarSettingsClick(){this.toastService.info("Settings feature coming soon!")}onSidebarCloseClick(){this.sidebarOpenSignal.set(!1)}onConversationClick(t){return Y(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 Y(this,null,function*(){if(this.logger.debug("Delete conversation:",t),!!(yield this.confirmationService.confirm({title:"Back",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 Y(this,null,function*(){this.searchQuerySignal.set(t),yield this.loadConversations()})}onConversationTitleUpdate(t){return Y(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?V(T({},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 Y(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||no)};static \u0275cmp=Ae({type:no,selectors:[["app-assistant"]],inputs:{apiUrl:"apiUrl",apiTimeout:"apiTimeout",config:"config",jwtToken:"jwtToken",title:"title",greeting:"greeting",welcomeText:"welcomeText",description:"description",personalizationText:"personalizationText",inputPlaceholder:"inputPlaceholder",suggestions:"suggestions"},decls:10,vars:12,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","canLoadMore","isLoadingMore","loadMore",4,"ngIf"],["class","personalization-section",4,"ngIf"],[3,"valueChange","submitMessage","voiceClick","addClick","settingsClick","stopClick","placeholder","disabled","voiceStatus","value","isLoadingResponse"],[1,"welcome-container"],[1,"icon-wrapper"],["name","welcome-rocket-icon","width","64","height","64","dropShadow","drop-shadow(0 4px 8px rgba(244, 62, 131, 0.2))",1,"sparkle-icon"],[1,"greeting"],[1,"welcome-text"],[1,"description"],[3,"loadMore","messages","canLoadMore","isLoadingMore"],[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&&(f(0,"app-sidebar",0),x("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)}),m(),f(1,"div",1)(2,"app-header",2),x("menuClick",function(){return n.onMenuClick()})("closeClick",function(){return n.onCloseClick()}),m(),f(3,"div",3),re(4,e3,9,3,"div",4)(5,t3,1,3,"app-chat-history",5)(6,r3,5,2,"div",6),m(),f(7,"app-input-field",7),x("valueChange",function(r){return n.onInputValueChange(r)})("submitMessage",function(r){return n.onMessageSubmit(r)})("voiceClick",function(){return n.onVoiceClick()})("addClick",function(){return n.onAddClick()})("settingsClick",function(){return n.onSettingsClick()})("stopClick",function(){return n.onStopClick()}),m()(),H(8,"app-toast-container")(9,"app-confirmation-modal")),t&2&&(P("isOpen",n.isSidebarOpen())("conversations",n.conversations())("isLoading",n.isLoadingConversations()),_(2),P("title",n.title),_(2),P("ngIf",!n.hasMessages()),_(),P("ngIf",n.hasMessages()),_(),P("ngIf",!n.hasMessages()),_(),P("placeholder",n.inputPlaceholder)("disabled",n.isLoading())("voiceStatus",n.voiceStatus())("value",n.inputValue())("isLoadingResponse",n.isLoading()))},dependencies:[ke,ki,It,V5,R5,_b,Lt,Lb,Bb,Wb,Yb],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%;overflow:hidden}.assistant-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;max-height:100%;width:100%;background:#fff;font-family:Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;overflow:hidden;position:relative}.content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;min-height:0;position:relative;-webkit-overflow-scrolling:touch}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:center;padding:16px 20px;text-align:center;flex-shrink:0}.icon-wrapper[_ngcontent-%COMP%]{margin-bottom:12px;flex-shrink:0}.greeting[_ngcontent-%COMP%]{font-size:24px;font-weight:700;margin:0 0 8px;color:#1a1a1a;flex-shrink:0}.welcome-text[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0 0 8px;color:#333;flex-shrink:0}.description[_ngcontent-%COMP%]{font-size:14px;font-weight:400;margin:0 0 12px;color:#666;max-width:400px;line-height:1.4;flex-shrink:0}.personalization-section[_ngcontent-%COMP%]{padding:0 20px 16px;display:flex;flex-direction:column;align-items:center;gap:12px;flex-shrink:0;max-width:100%;box-sizing:border-box}.personalization-text[_ngcontent-%COMP%]{font-size:14px;color:#666;margin:0;text-align:center;max-width:400px;line-height:1.4;flex-shrink:0}.suggestions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;max-width:400px;flex-shrink:0}@media (max-width: 768px){.greeting[_ngcontent-%COMP%]{font-size:20px}.welcome-text[_ngcontent-%COMP%]{font-size:15px}.description[_ngcontent-%COMP%]{font-size:13px;margin-bottom:8px}.welcome-container[_ngcontent-%COMP%]{padding:12px 16px}.personalization-section[_ngcontent-%COMP%]{padding:0 16px 12px;gap:10px}.personalization-text[_ngcontent-%COMP%]{font-size:13px}.suggestions[_ngcontent-%COMP%]{max-width:100%;gap:8px}.icon-wrapper[_ngcontent-%COMP%]{margin-bottom:8px}}@media (max-height: 600px){.greeting[_ngcontent-%COMP%]{font-size:18px;margin-bottom:6px}.welcome-text[_ngcontent-%COMP%]{font-size:14px;margin-bottom:6px}.description[_ngcontent-%COMP%]{font-size:12px;margin-bottom:8px}.welcome-container[_ngcontent-%COMP%]{padding:8px 16px}.personalization-section[_ngcontent-%COMP%]{padding:0 16px 8px;gap:8px}.icon-wrapper[_ngcontent-%COMP%]{margin-bottom:6px}.icon-wrapper[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%]{transform:scale(.8)}}"]})},s3=class Tr{authService=v(bp);logger=v(Le);isLoggingOut=!1;PUBLIC_ENDPOINTS=["/config.json","/assets/"];intercept(t,n){if(this.isPublicEndpoint(t.url))return this.logger.debug("Public endpoint, skipping auth",{url:t.url}),n.handle(t);let r=this.authService.getToken();if(!r&&!ri.production&&(this.logger.debug("No token found in localStorage, creating development token"),r=this.authService.createValidToken(),this.authService.setToken(r)),!r)return this.logger.debug("No token available, proceeding without auth header"),n.handle(t);let i=t.clone({setHeaders:{Authorization:`Bearer ${r}`}});return this.logger.debug("Added Authorization header to request",{url:t.url}),n.handle(i).pipe(Oe(s=>(s.status===401?this.handle401Error(s):s.status===403?this.handle403Error(s):s.status===0&&this.handleNetworkError(s),fo(()=>s))))}isPublicEndpoint(t){return this.PUBLIC_ENDPOINTS.some(n=>t.includes(n))}handle401Error(t){if(this.isLoggingOut){this.logger.debug("Logout already in progress, skipping");return}this.isLoggingOut=!0,this.logger.warn("401 Unauthorized - authentication failed, logging out",{url:t.url,message:t.message}),this.authService.logout(),setTimeout(()=>{this.isLoggingOut=!1},1e3)}handle403Error(t){this.logger.warn("403 Forbidden - insufficient permissions",{url:t.url,message:t.message})}handleNetworkError(t){this.logger.error("Network error - server unreachable or timeout",{url:t.url,message:t.message})}static \u0275fac=function(t){return new(t||Tr)};static \u0275prov=E({token:Tr,factory:Tr.\u0275fac})};function wp(e){return()=>e.loadConfig()}Y(null,null,function*(){if(customElements.get("app-assistant"))return;let e=yield jC({providers:[hg(),hy({eventCoalescing:!0}),b5(w5()),{provide:Yh,useClass:s3,multi:!0},{provide:ch,useFactory:wp,deps:[Cp],multi:!0},Lh,A5.forRoot({level:ri.production?W.WARN:W.DEBUG,serverLogLevel:W.ERROR,disableConsoleLogging:!1,enableSourceMaps:!0,timestampFormat:"short"}).providers||[]]}),t=qy(i3,{injector:e.injector});customElements.define("app-assistant",t)});return Op(o3);})();
|
|
40
|
+
<rect x="5.5" y="5.5" width="5" height="5" rx="0.5" fill="white"/>`},trash:{viewBox:"0 0 16 16",path:'<path d="M14 2H10C10 0.897 9.103 0 8 0C6.897 0 6 0.897 6 2H2C1.724 2 1.5 2.224 1.5 2.5C1.5 2.776 1.724 3 2 3H2.54L3.349 12.708C3.456 13.994 4.55 15 5.84 15H10.159C11.449 15 12.543 13.993 12.65 12.708L13.459 3H13.999C14.275 3 14.499 2.776 14.499 2.5C14.499 2.224 14.275 2 13.999 2H14ZM8 1C8.551 1 9 1.449 9 2H7C7 1.449 7.449 1 8 1ZM11.655 12.625C11.591 13.396 10.934 14 10.16 14H5.841C5.067 14 4.41 13.396 4.346 12.625L3.544 3H12.458L11.656 12.625H11.655ZM7 5.5V11.5C7 11.776 6.776 12 6.5 12C6.224 12 6 11.776 6 11.5V5.5C6 5.224 6.224 5 6.5 5C6.776 5 7 5.224 7 5.5ZM10 5.5V11.5C10 11.776 9.776 12 9.5 12C9.224 12 9 11.776 9 11.5V5.5C9 5.224 9.224 5 9.5 5C9.776 5 10 5.224 10 5.5Z" fill="currentColor"/>'},search:{viewBox:"0 0 16 16",path:'<path d="M10.0195 10.7266C9.06578 11.5217 7.83875 12 6.5 12C3.46243 12 1 9.53757 1 6.5C1 3.46243 3.46243 1 6.5 1C9.53757 1 12 3.46243 12 6.5C12 7.83875 11.5217 9.06578 10.7266 10.0195L13.8535 13.1464C14.0488 13.3417 14.0488 13.6583 13.8535 13.8536C13.6583 14.0488 13.3417 14.0488 13.1464 13.8536L10.0195 10.7266ZM11 6.5C11 4.01472 8.98528 2 6.5 2C4.01472 2 2 4.01472 2 6.5C2 8.98528 4.01472 11 6.5 11C8.98528 11 11 8.98528 11 6.5Z" fill="currentColor"/>'},edit:{viewBox:"0 0 16 16",path:'<path d="M14.236 1.76386C13.2123 0.740172 11.5525 0.740171 10.5289 1.76386L2.65722 9.63549C2.28304 10.0097 2.01623 10.4775 1.88467 10.99L1.01571 14.3755C0.971767 14.5467 1.02148 14.7284 1.14646 14.8534C1.27144 14.9783 1.45312 15.028 1.62432 14.9841L5.00978 14.1151C5.52234 13.9836 5.99015 13.7168 6.36433 13.3426L14.236 5.47097C15.2596 4.44728 15.2596 2.78755 14.236 1.76386ZM11.236 2.47097C11.8691 1.8378 12.8957 1.8378 13.5288 2.47097C14.162 3.10413 14.162 4.1307 13.5288 4.76386L12.75 5.54269L10.4571 3.24979L11.236 2.47097ZM9.75002 3.9569L12.0429 6.24979L5.65722 12.6355C5.40969 12.883 5.10023 13.0595 4.76117 13.1465L2.19447 13.8053L2.85327 11.2386C2.9403 10.8996 3.1168 10.5901 3.36433 10.3426L9.75002 3.9569Z" fill="currentColor"/>'},"edit-code":{viewBox:"0 0 20 20",path:'<g clip-path="url(#clip0_edit_code)"><path d="M2.5 15V5C2.5 4.33696 2.76339 3.70107 3.23223 3.23223C3.70107 2.76339 4.33696 2.5 5 2.5H15C15.663 2.5 16.2989 2.76339 16.7678 3.23223C17.2366 3.70107 17.5 4.33696 17.5 5V7.51375C17.555 7.51125 17.6075 7.4975 17.6625 7.4975C18.0388 7.4975 18.4013 7.57125 18.75 7.6825V5C18.75 4.00544 18.3549 3.05161 17.6517 2.34835C16.9484 1.64509 15.9946 1.25 15 1.25H5C4.00544 1.25 3.05161 1.64509 2.34835 2.34835C1.64509 3.05161 1.25 4.00544 1.25 5V15C1.25 15.9946 1.64509 16.9484 2.34835 17.6517C3.05161 18.3549 4.00544 18.75 5 18.75H7.51125C7.52 18.605 7.53375 18.4587 7.56875 18.3137L7.7725 17.5H5C4.33696 17.5 3.70107 17.2366 3.23223 16.7678C2.76339 16.2989 2.5 15.663 2.5 15ZM19.315 9.4325C19.0979 9.21536 18.8402 9.04312 18.5566 8.9256C18.2729 8.80808 17.9689 8.7476 17.6619 8.7476C17.3548 8.7476 17.0508 8.80808 16.7672 8.9256C16.4835 9.04312 16.2258 9.21536 16.0088 9.4325L9.9725 15.4688C9.62058 15.8209 9.37087 16.262 9.25 16.745L8.7825 18.6175C8.73601 18.8038 8.73853 18.999 8.78983 19.184C8.84113 19.3691 8.93946 19.5377 9.07525 19.6735C9.21103 19.8093 9.37965 19.9076 9.5647 19.9589C9.74975 20.0102 9.94493 20.0127 10.1313 19.9662L12.0038 19.4975C12.4867 19.3766 12.9278 19.1269 13.28 18.775L19.3163 12.7388C20.2288 11.8263 20.2288 10.3462 19.3163 9.4325H19.315Z" fill="currentColor"/></g>',defs:'<defs><clipPath id="clip0_edit_code"><rect width="20" height="20" fill="white"/></clipPath></defs>'},check:{viewBox:"0 0 16 16",path:'<path d="M13.6572 3.13573C13.8583 2.9465 14.175 2.95614 14.3643 3.15722C14.5535 3.35831 14.5438 3.675 14.3428 3.86425L5.84277 11.8642C5.64597 12.0494 5.33756 12.0446 5.14648 11.8535L1.64648 8.35351C1.45121 8.15824 1.45121 7.84174 1.64648 7.64647C1.84174 7.45121 2.15825 7.45121 2.35351 7.64647L5.50976 10.8027L13.6572 3.13573Z" fill="currentColor"/>'},"chevron-left":{viewBox:"0 0 16 16",path:'<path d="M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z" fill="currentColor"/>'},"more-horizontal":{viewBox:"0 0 16 16",path:'<path d="M5 8C5 8.55229 4.55228 9 4 9C3.44772 9 3 8.55229 3 8C3 7.44772 3.44772 7 4 7C4.55228 7 5 7.44772 5 8ZM9 8C9 8.55229 8.55229 9 8 9C7.44772 9 7 8.55229 7 8C7 7.44772 7.44772 7 8 7C8.55229 7 9 7.44772 9 8ZM12 9C12.5523 9 13 8.55229 13 8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8C11 8.55229 11.4477 9 12 9Z" fill="currentColor"/>'},copy:{viewBox:"0 0 16 16",path:'<path d="M3 5V12.73C2.4 12.38 2 11.74 2 11V5C2 2.79 3.79 1 6 1H9C9.74 1 10.38 1.4 10.73 2H6C4.35 2 3 3.35 3 5ZM11 15H6C4.897 15 4 14.103 4 13V5C4 3.897 4.897 3 6 3H11C12.103 3 13 3.897 13 5V13C13 14.103 12.103 15 11 15ZM12 5C12 4.448 11.552 4 11 4H6C5.448 4 5 4.448 5 5V13C5 13.552 5.448 14 6 14H11C11.552 14 12 13.552 12 13V5Z" fill="currentColor"/>'},unmute:{viewBox:"0 0 16 16",path:'<path d="M8.69398 2.03934C8.8792 2.11749 8.99961 2.29898 8.99961 2.50001V13.5C8.99961 13.7014 8.87875 13.8832 8.693 13.9611C8.50725 14.039 8.29289 13.9978 8.14921 13.8567L5.22278 10.9817H3.49963C2.67121 10.9817 1.99963 10.3101 1.99963 9.48172V6.49273C1.99963 5.66431 2.67121 4.99273 3.49963 4.99273H5.22402L8.15073 2.14185C8.29474 2.00157 8.50875 1.96119 8.69398 2.03934ZM7.99961 3.68507L5.77617 5.85089C5.68281 5.94184 5.55763 5.99273 5.42729 5.99273H3.49963C3.22349 5.99273 2.99963 6.21659 2.99963 6.49273V9.48172C2.99963 9.75786 3.22349 9.98172 3.49963 9.98172H5.42729C5.55836 9.98172 5.68419 10.0332 5.77769 10.125L7.99961 12.3079V3.68507ZM10.1109 5.18874C10.2828 4.97264 10.5973 4.93682 10.8135 5.10873L10.8143 5.1094L10.8152 5.11015L10.8174 5.11188L10.8228 5.11628L10.8377 5.12882C10.8495 5.13885 10.8648 5.15224 10.8831 5.16904C10.9197 5.20261 10.9685 5.2499 11.0254 5.31119C11.1389 5.43362 11.2853 5.61296 11.4303 5.85143C11.7218 6.33096 12.0039 7.04439 12.0039 7.99855C12.0039 8.95268 11.7218 9.66687 11.4305 10.1471C11.2857 10.3859 11.1393 10.5657 11.0259 10.6884C10.9692 10.7498 10.9204 10.7973 10.8839 10.8309C10.8642 10.849 10.8441 10.8666 10.8236 10.8838L10.8152 10.8907L10.8143 10.8914C10.8143 10.8914 10.368 11.1337 10.1116 10.8129C9.94006 10.5983 9.97396 10.2858 10.1868 10.1128L10.1883 10.1115L10.1876 10.1122L10.1892 10.1108L10.1883 10.1115C10.1912 10.109 10.1975 10.1036 10.2066 10.0952C10.2248 10.0784 10.2543 10.05 10.2914 10.0098C10.3659 9.92923 10.47 9.80248 10.5755 9.62847C10.7851 9.28301 11.0039 8.74609 11.0039 7.99855C11.0039 7.25106 10.7851 6.71522 10.5758 6.3709C10.4703 6.19744 10.3663 6.07121 10.292 5.99105C10.2549 5.95104 10.2255 5.92278 10.2073 5.90613C10.1982 5.89781 10.192 5.89242 10.1891 5.88995L10.1901 5.89071C9.97439 5.71873 9.93908 5.40472 10.1109 5.18874ZM11.8127 3.10886C11.5966 2.93686 11.2821 2.97255 11.1101 3.18858C10.9382 3.40451 10.9743 3.71932 11.19 3.89138L11.2011 3.9006C11.2119 3.90975 11.2295 3.92484 11.2528 3.94582C11.2994 3.98781 11.369 4.05318 11.4538 4.14133C11.6239 4.31792 11.8537 4.58411 12.0841 4.93509C12.5446 5.63643 13.0029 6.66847 13.0029 8.00405C13.0029 9.33953 12.5446 10.3694 12.0845 11.0685C11.8541 11.4184 11.6244 11.6835 11.4545 11.8593C11.3697 11.947 11.3002 12.0121 11.2536 12.0538C11.2303 12.0747 11.2128 12.0897 11.202 12.0988L11.1904 12.1083L11.1895 12.1091C10.9742 12.2808 10.9382 12.5945 11.1093 12.8105C11.2808 13.0269 11.596 13.0628 11.8125 12.8913L11.8455 12.8642C11.864 12.8487 11.8895 12.8268 11.9209 12.7986C11.9838 12.7423 12.0707 12.6607 12.1735 12.5543C12.3789 12.3418 12.6496 12.0286 12.9197 11.6183C13.4604 10.797 14.0029 9.57884 14.0029 8.00405C14.0029 6.42934 13.4605 5.20938 12.9201 4.38627C12.6501 3.97503 12.3795 3.66089 12.1742 3.4477C12.0714 3.34097 11.9846 3.25908 11.9217 3.20255C11.8903 3.17426 11.8649 3.15228 11.8464 3.13665L11.8239 3.11798L11.8169 3.11222L11.8144 3.11024L11.8127 3.10886ZM10.1891 5.88995L10.1877 5.88874L10.1891 5.88995Z" fill="currentColor"/>'},"share-ios":{viewBox:"0 0 16 16",path:'<path d="M12.5713 8.50795V11.5556C12.5713 11.825 12.4509 12.0834 12.2366 12.2739C12.0223 12.4644 11.7316 12.5714 11.4285 12.5714H4.57132C4.26822 12.5714 3.97753 12.4644 3.7632 12.2739C3.54887 12.0834 3.42847 11.825 3.42847 11.5556V8.50795M7.9999 9.52383V3.42859M7.9999 3.42859L5.9999 5.20637M7.9999 3.42859L9.9999 5.20637" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" fill="none"/>'}},Lt=class $s{constructor(t){this.sanitizer=t}name="";width="24";height="24";fill="none";dropShadow="";get viewBox(){return Ul[this.name]?.viewBox||"0 0 24 24"}get svgContent(){let t=Ul[this.name];if(!t)return"";let n=t.path+(t.defs||"");return this.sanitizer.bypassSecurityTrustHtml(n)}static \u0275fac=function(t){return new(t||$s)(j(tp))};static \u0275cmp=Ae({type:$s,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&&(sg(),hh(0,"svg",0)),t&2&&(bh("filter",n.dropShadow),fh("innerHTML",n.svgContent,bd),sa("width",n.width)("height",n.height)("viewBox",n.viewBox)("fill",n.fill))},dependencies:[ke],styles:["[_nghost-%COMP%]{display:inline-block;line-height:0}"]})},me={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:["What is this app about?","Why use an AI Agent?","What will be possible?"],DATE:{LABELS:{TODAY:"Today",YESTERDAY:"Yesterday"},MONTH_NAMES:["January","February","March","April","May","June","July","August","September","October","November","December"]}},V5=class qs{title=me.TITLE;menuClick=new N;closeClick=new N;onMenuClick(){this.menuClick.emit()}onCloseClick(){this.closeClick.emit()}static \u0275fac=function(t){return new(t||qs)};static \u0275cmp=Ae({type:qs,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","list-selection","width","24","height","24"],[1,"header-title"],["name","header-rocket-icon","width","24","height","24",1,"title-icon"],["aria-label","Close",1,"icon-button","header-close-button",3,"click"],["name","close","width","24","height","24"]],template:function(t,n){t&1&&(f(0,"div",0)(1,"button",1),x("click",function(){return n.onMenuClick()}),H(2,"app-icon",2),m(),f(3,"div",3),H(4,"app-icon",4),f(5,"span"),z(6),m()(),f(7,"button",5),x("click",function(){return n.onCloseClick()}),H(8,"app-icon",6),m()()),t&2&&(_(6),be(n.title))},dependencies:[ke,Lt],styles:[".header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#fff;border-bottom:1px solid #f0f0f0;min-height:56px;box-sizing:border-box;flex-shrink:0}@media (max-width: 768px){.header[_ngcontent-%COMP%]{min-height:52px;padding:10px 12px}}.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:#f43e83;flex:1;justify-content:center}.title-icon[_ngcontent-%COMP%]{width:24px;height:24px}.menu-button[_ngcontent-%COMP%], .header-close-button[_ngcontent-%COMP%]{width:40px;height:40px}.header-close-button[_ngcontent-%COMP%]{background-color:#f5f5f5;border-radius:50%}.header-close-button[_ngcontent-%COMP%]:hover{background-color:#e8e8e8}"]})},R5=class Gs{text="";disabled=!1;buttonClick=new N;onClick(){this.disabled||this.buttonClick.emit(this.text)}static \u0275fac=function(t){return new(t||Gs)};static \u0275cmp=Ae({type:Gs,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&&(oa(0,"button",0),gh("click",function(){return n.onClick()}),z(1),aa()),t&2&&(Ie("disabled",n.disabled),_(),An(" ",n.text," "))},dependencies:[ke],styles:[".suggestion-button[_ngcontent-%COMP%]{background:#fff;border:1.5px solid #F43E83;border-radius:8px;padding:14px 24px;font-size:15px;font-weight:500;color:#f43e83;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:#d42c6f;transform:translateY(-1px);box-shadow:0 4px 8px #f43e8326}.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}"]})},ip=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,i){this._renderer=n,this._elementRef=i}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}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(ea),j(Et))};static \u0275dir=_e({type:e})}return e})(),N5=(()=>{class e extends ip{static \u0275fac=(()=>{let n;return function(i){return(n||(n=Wc(e)))(i||e)}})();static \u0275dir=_e({type:e,features:[ln]})}return e})(),rp=new M(""),F5={provide:rp,useExisting:Vn(()=>$n),multi:!0};function H5(){let e=er()?er().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var j5=new M(""),$n=(()=>{class e extends ip{_compositionMode;_composing=!1;constructor(n,i,r){super(n,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!H5())}writeValue(n){let i=n??"";this.setProperty("value",i)}_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(ea),j(Et),j(j5,8))};static \u0275dir=_e({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,i){n&1&&x("input",function(r){return i._handleInput(r.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(r){return i._compositionEnd(r.target.value)})},standalone:!1,features:[ha([F5]),ln]})}return e})();function z5(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var sp=new M(""),B5=new M("");function U5(e){return t=>{let n=t.value?.length??z5(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function Zl(e){return null}function op(e){return e!=null}function ap(e){return ra(e)?po(e):e}function lp(e){let t={};return e.forEach(n=>{t=n!=null?T(T({},t),n):t}),Object.keys(t).length===0?null:t}function up(e,t){return t.map(n=>n(e))}function Z5(e){return!e.validate}function cp(e){return e.map(t=>Z5(t)?t:n=>t.validate(n))}function $5(e){if(!e)return null;let t=e.filter(op);return t.length==0?null:function(n){return lp(up(n,t))}}function dp(e){return e!=null?$5(cp(e)):null}function q5(e){if(!e)return null;let t=e.filter(op);return t.length==0?null:function(n){let i=up(n,t).map(ap);return Yf(i).pipe(Te(lp))}}function hp(e){return e!=null?q5(cp(e)):null}function $l(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function G5(e){return e._rawValidators}function W5(e){return e._rawAsyncValidators}function Ws(e){return e?Array.isArray(e)?e:[e]:[]}function nr(e,t){return Array.isArray(e)?e.includes(t):e===t}function ql(e,t){let n=Ws(t);return Ws(e).forEach(i=>{nr(n,i)||n.push(i)}),n}function Gl(e,t){return Ws(t).filter(n=>!nr(e,n))}var pp=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=dp(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=hp(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}},Q5=class extends pp{name;get formDirective(){return null}get path(){return null}},ba=class extends pp{_parent=null;name=null;valueAccessor=null},Y5=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}},K5={"[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"},d3=V(T({},K5),{"[class.ng-submitted]":"isSubmitted"}),wa=(()=>{class e extends Y5{constructor(n){super(n)}static \u0275fac=function(n){return new(n||e)(j(ba,2))};static \u0275dir=_e({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,i){n&2&&Ie("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},standalone:!1,features:[ln]})}return e})(),hn="VALID",ai="INVALID",At="PENDING",pn="DISABLED",qn=class{},Wl=class extends qn{value;source;constructor(e,t){super(),this.value=e,this.source=t}},os=class extends qn{pristine;source;constructor(e,t){super(),this.pristine=e,this.source=t}},as=class extends qn{touched;source;constructor(e,t){super(),this.touched=e,this.source=t}},li=class extends qn{status;source;constructor(e,t){super(),this.status=e,this.source=t}},J5=class extends qn{source;constructor(e){super(),this.source=e}};function X5(e){return(Or(e)?e.validators:e)||null}function eb(e){return Array.isArray(e)?dp(e):e||null}function tb(e,t){return(Or(t)?t.asyncValidators:e)||null}function nb(e){return Array.isArray(e)?hp(e):e||null}function Or(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var ib=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 Dt(this.statusReactive)}set status(e){Dt(()=>this.statusReactive.set(e))}_status=st(()=>this.statusReactive());statusReactive=le(void 0);get valid(){return this.status===hn}get invalid(){return this.status===ai}get pending(){return this.status==At}get disabled(){return this.status===pn}get enabled(){return this.status!==pn}errors;get pristine(){return Dt(this.pristineReactive)}set pristine(e){Dt(()=>this.pristineReactive.set(e))}_pristine=st(()=>this.pristineReactive());pristineReactive=le(!0);get dirty(){return!this.pristine}get touched(){return Dt(this.touchedReactive)}set touched(e){Dt(()=>this.touchedReactive.set(e))}_touched=st(()=>this.touchedReactive());touchedReactive=le(!1);get untouched(){return!this.touched}_events=new Je;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(ql(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(ql(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Gl(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Gl(e,this._rawAsyncValidators))}hasValidator(e){return nr(this._rawValidators,e)}hasAsyncValidator(e){return nr(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(V(T({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new as(!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(i=>{i.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 as(!1,n))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(V(T({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new os(!1,n))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),t&&e.emitEvent!==!1&&this._events.next(new os(!0,n))}markAsPending(e={}){this.status=At;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new li(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(V(T({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=pn,this.errors=null,this._forEachChild(i=>{i.disable(V(T({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Wl(this.value,n)),this._events.next(new li(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(V(T({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=hn,this._forEachChild(n=>{n.enable(V(T({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(V(T({},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===At)&&this._runAsyncValidator(n,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Wl(this.value,t)),this._events.next(new li(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(V(T({},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()?pn:hn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=At,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:e!==!1};let n=ap(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{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,i)=>n&&n._find(i),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 li(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,n)}_initObservables(){this.valueChanges=new N,this.statusChanges=new N}_calculateStatus(){return this._allControlsDisabled()?pn:this.errors?ai:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(At)?At:this._anyControlsHaveStatus(ai)?ai: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(),i=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),i&&this._events.next(new os(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new as(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Or(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=eb(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=nb(this._rawAsyncValidators)}},fp=new M("",{providedIn:"root",factory:()=>_a}),_a="always";function rb(e,t){return[...t.path,e]}function sb(e,t,n=_a){ab(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),lb(e,t),cb(e,t),ub(e,t),ob(e,t)}function Ql(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function ob(e,t){if(t.valueAccessor.setDisabledState){let n=i=>{t.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function ab(e,t){let n=G5(e);t.validator!==null?e.setValidators($l(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let i=W5(e);t.asyncValidator!==null?e.setAsyncValidators($l(i,t.asyncValidator)):typeof i=="function"&&e.setAsyncValidators([i]);let r=()=>e.updateValueAndValidity();Ql(t._rawValidators,r),Ql(t._rawAsyncValidators,r)}function lb(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&gp(e,t)})}function ub(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&gp(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function gp(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function cb(e,t){let n=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function db(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function hb(e){return Object.getPrototypeOf(e.constructor)===N5}function pb(e,t){if(!t)return null;Array.isArray(t);let n,i,r;return t.forEach(s=>{s.constructor===$n?n=s:hb(s)?i=s:r=s}),r||i||n||null}function Yl(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Kl(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var fb=class extends ib{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,t,n){super(X5(t),tb(n,t)),this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Or(t)&&(t.nonNullable||t.initialValueIsDefault)&&(Kl(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 J5(this))}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Yl(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Yl(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){Kl(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}},gb={provide:ba,useExisting:Vn(()=>Er)},Jl=Promise.resolve(),Er=(()=>{class e extends ba{_changeDetectorRef;callSetDisabledState;control=new fb;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new N;constructor(n,i,r,s,o,a){super(),this._changeDetectorRef=o,this.callSetDisabledState=a,this._parent=n,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=pb(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let i=n.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),db(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(){sb(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){Jl.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let i=n.isDisabled.currentValue,r=i!==0&&Dy(i);Jl.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?rb(n,this._parent):[n]}static \u0275fac=function(n){return new(n||e)(j(Q5,9),j(sp,10),j(B5,10),j(rp,10),j(ky,8),j(fp,8))};static \u0275dir=_e({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:[ha([gb]),ln,gr]})}return e})();function mb(e){return typeof e=="number"?e:parseInt(e,10)}var vb=(()=>{class e{_validator=Zl;_onChange;_enabled;ngOnChanges(n){if(this.inputName in n){let i=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):Zl,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=_e({type:e,features:[gr]})}return e})(),yb={provide:sp,useExisting:Vn(()=>mp),multi:!0},mp=(()=>{class e extends vb{maxlength;inputName="maxlength";normalizeInput=n=>mb(n);createValidator=n=>U5(n);static \u0275fac=(()=>{let n;return function(i){return(n||(n=Wc(e)))(i||e)}})();static \u0275dir=_e({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,i){n&2&&sa("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[ha([yb]),ln]})}return e})(),Cb=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=_r({type:e});static \u0275inj=or({})}return e})(),xa=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:fp,useValue:n.callSetDisabledState??_a}]}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=_r({type:e});static \u0275inj=or({imports:[Cb]})}return e})();function bb(e,t){if(e&1){let n=xe();f(0,"button",11),x("click",function(){L(n);let i=O();return D(i.onSubmit())}),H(1,"app-icon",12),m()}if(e&2){let n=O();P("disabled",n.disabled||!n.value.trim())}}function wb(e,t){if(e&1){let n=xe();f(0,"button",13),x("click",function(){L(n);let i=O();return D(i.onStopClick())}),H(1,"app-icon",14),m()}}var _b=class Qs{placeholder=me.INPUT.PLACEHOLDER;disabled=!1;value="";voiceStatus={state:"idle",transcript:"",interimTranscript:""};isLoadingResponse=!1;valueChange=new N;submitMessage=new N;voiceClick=new N;addClick=new N;settingsClick=new N;stopClick=new N;get isListening(){return this.voiceStatus.state==="listening"}get displayValue(){if(this.isLoadingResponse)return"Thinking....";if(this.isListening){let t=this.voiceStatus.transcript||"",n=this.voiceStatus.interimTranscript||"";return t+(t&&n?" ":"")+n}return this.value}get displayPlaceholder(){return this.isLoadingResponse?"":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()}onSettingsClick(){this.settingsClick.emit()}onStopClick(){this.stopClick.emit()}static \u0275fac=function(t){return new(t||Qs)};static \u0275cmp=Ae({type:Qs,selectors:[["app-input-field"]],inputs:{placeholder:"placeholder",disabled:"disabled",value:"value",voiceStatus:"voiceStatus",isLoadingResponse:"isLoadingResponse"},outputs:{valueChange:"valueChange",submitMessage:"submitMessage",voiceClick:"voiceClick",addClick:"addClick",settingsClick:"settingsClick",stopClick:"stopClick"},decls:11,vars:12,consts:[[1,"input-container"],[1,"input-wrapper"],["aria-label","Add",1,"icon-button","add-button",3,"click"],["name","add","width","24","height","24"],["aria-label","Settings",1,"icon-button","settings-button",3,"click"],["name","settings","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"],["class","icon-button send-button","aria-label","Send message",3,"disabled","click",4,"ngIf"],["class","icon-button stop-button","aria-label","Stop response",3,"click",4,"ngIf"],["aria-label","Send message",1,"icon-button","send-button",3,"click","disabled"],["name","send-filled","width","24","height","24"],["aria-label","Stop response",1,"icon-button","stop-button",3,"click"],["name","stop-circle-filled","width","24","height","24"]],template:function(t,n){t&1&&(f(0,"div",0)(1,"div",1)(2,"button",2),x("click",function(){return n.onAddClick()}),H(3,"app-icon",3),m(),f(4,"button",4),x("click",function(){return n.onSettingsClick()}),H(5,"app-icon",5),m(),f(6,"input",6),x("ngModelChange",function(i){return n.onInputChange(i)})("keyup.enter",function(){return n.onSubmit()}),m(),f(7,"button",7),x("click",function(){return n.onVoiceClick()}),H(8,"app-icon",8),m(),ie(9,bb,2,1,"button",9)(10,wb,2,0,"button",10),m()()),t&2&&(_(6),Ie("listening",n.isListening)("thinking",n.isLoadingResponse),P("ngModel",n.displayValue)("placeholder",n.displayPlaceholder)("disabled",n.disabled||n.isListening)("readonly",n.isListening||n.isLoadingResponse),_(),Ie("active",n.isListening),_(2),P("ngIf",!n.isLoadingResponse),_(),P("ngIf",n.isLoadingResponse))},dependencies:[ke,It,xa,$n,wa,Er,Lt],styles:[".input-container[_ngcontent-%COMP%]{padding:12px 16px;background:#fff;border-top:1px solid #f0f0f0;flex-shrink:0;box-sizing:border-box}@media (max-width: 768px){.input-container[_ngcontent-%COMP%]{padding:10px 12px}}@media (max-height: 600px){.input-container[_ngcontent-%COMP%]{padding:8px 12px}}.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;background:#f8f8f8;border-radius:12px;padding:8px 16px;transition:background-color .2s;flex-wrap:nowrap}.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;font-family:Roboto Medium,Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:500}.input-field[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.input-field.listening[_ngcontent-%COMP%]{color:#f43e83;font-style:italic}.input-field.thinking[_ngcontent-%COMP%]{color:#999;font-family:Roboto Medium,Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:500}.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:#f43e83;animation:_ngcontent-%COMP%_pulse 1.5s ease-in-out infinite}.send-button[_ngcontent-%COMP%]{color:#333}.send-button[_ngcontent-%COMP%]:disabled{opacity:.3;cursor:not-allowed}.send-button[_ngcontent-%COMP%]:disabled:hover{background-color:transparent}.settings-button[_ngcontent-%COMP%]{color:#666}.stop-button[_ngcontent-%COMP%]{color:#333}@keyframes _ngcontent-%COMP%_pulse{0%,to{opacity:1}50%{opacity:.6}}@media (max-width: 768px){.input-container[_ngcontent-%COMP%]{padding:6px 8px;overflow:hidden}.input-wrapper[_ngcontent-%COMP%]{gap:0;padding:0 4px;overflow:hidden;height:36px;min-height:36px;max-height:36px}.input-field[_ngcontent-%COMP%]{font-size:14px;padding:0 4px;min-width:0;height:36px;line-height:36px}.icon-button[_ngcontent-%COMP%]{padding:0;width:28px;height:28px;min-width:28px;min-height:28px;max-width:28px;max-height:28px;flex-shrink:0;display:flex;align-items:center;justify-content:center}.icon-button[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%]{width:20px!important;height:20px!important;display:block!important;vertical-align:middle!important;line-height:0!important}.icon-button[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:20px!important;height:20px!important;display:block!important}}@media (max-width: 400px){.input-wrapper[_ngcontent-%COMP%]{gap:2px;padding:4px 6px}.icon-button[_ngcontent-%COMP%]{padding:2px;width:24px;height:24px;min-width:24px;min-height:24px;max-width:24px;max-height:24px}.icon-button[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%]{width:16px!important;height:16px!important;display:block!important;vertical-align:middle!important;line-height:0!important}.icon-button[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:16px!important;height:16px!important;display:block!important}.send-button[_ngcontent-%COMP%], .stop-button[_ngcontent-%COMP%]{padding:2px;width:24px;height:24px;min-width:24px;min-height:24px;max-width:24px;max-height:24px}.send-button[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%], .stop-button[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%]{width:16px!important;height:16px!important;display:block!important;vertical-align:middle!important;line-height:0!important}.send-button[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], .stop-button[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:16px!important;height:16px!important;display:block!important}.input-field[_ngcontent-%COMP%]{font-size:13px;padding:4px 0}}"]})};function xb(e,t){e&1&&(f(0,"div",7),H(1,"span")(2,"span")(3,"span"),m())}function kb(e,t){if(e&1&&H(0,"div",8),e&2){let n=O();P("innerHTML",n.message.text,bd)}}function Sb(e,t){if(e&1){let n=xe();f(0,"div",9)(1,"button",10),x("click",function(){L(n);let i=O();return D(i.onCopyClick())}),H(2,"app-icon",11),m(),f(3,"button",12),x("click",function(){L(n);let i=O();return D(i.onShareClick())}),H(4,"app-icon",13),m(),f(5,"button",14),x("click",function(){L(n);let i=O();return D(i.onSpeakClick())}),H(6,"app-icon",15),m()()}}var Mb=class Ys{logger=v(Le);message;get isUser(){return this.message.sender==="user"}get isAssistant(){return this.message.sender==="assistant"}onCopyClick(){let t=document.createElement("div");t.innerHTML=this.message.text;let n=t.textContent||t.innerText||"";navigator.clipboard.writeText(n).then(()=>{this.logger.debug("Message copied to clipboard")},i=>{this.logger.error("Failed to copy message:",i)})}onShareClick(){let t=document.createElement("div");t.innerHTML=this.message.text;let n=t.textContent||t.innerText||"";navigator.share?navigator.share({title:"AI Assistant Message",text:n}).then(()=>{this.logger.debug("Message shared successfully")},i=>{this.logger.error("Failed to share message:",i)}):this.onCopyClick()}onSpeakClick(){let t=document.createElement("div");t.innerHTML=this.message.text;let n=t.textContent||t.innerText||"";if("speechSynthesis"in window){window.speechSynthesis.cancel();let i=new SpeechSynthesisUtterance(n);i.lang="en-US",i.rate=1,i.pitch=1,window.speechSynthesis.speak(i)}else this.logger.warn("Speech synthesis not supported in this browser")}static \u0275fac=function(t){return new(t||Ys)};static \u0275cmp=Ae({type:Ys,selectors:[["app-message"]],inputs:{message:"message"},decls:7,vars:9,consts:[[1,"message"],[1,"message-container"],[1,"message-content"],[1,"message-bubble"],["class","typing-indicator",4,"ngIf"],["class","message-text",3,"innerHTML",4,"ngIf"],["class","message-actions",4,"ngIf"],[1,"typing-indicator"],[1,"message-text",3,"innerHTML"],[1,"message-actions"],["aria-label","Copy message","title","Copy",1,"action-button",3,"click"],["name","copy","width","16","height","16"],["aria-label","Share message","title","Share",1,"action-button",3,"click"],["name","share-ios","width","16","height","16"],["aria-label","Read aloud","title","Read aloud",1,"action-button",3,"click"],["name","unmute","width","16","height","16"]],template:function(t,n){t&1&&(f(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),ie(4,xb,4,0,"div",4)(5,kb,1,1,"div",5),m(),ie(6,Sb,7,0,"div",6),m()()()),t&2&&(Ie("user",n.isUser)("assistant",n.isAssistant),_(3),Ie("typing",n.message.isTyping),_(),P("ngIf",n.message.isTyping),_(),P("ngIf",!n.message.isTyping),_(),P("ngIf",n.isAssistant&&!n.message.isTyping))},dependencies:[ke,It,Lt],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:#808b95;color:#fff;border-radius:10px;box-shadow:0 1px 2px #0000001a;transition:background-color .2s ease}.message.user[_ngcontent-%COMP%]:hover .message-bubble[_ngcontent-%COMP%]{background:#6d7a85}.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}}.message-actions[_ngcontent-%COMP%]{display:flex;gap:4px;margin-top:4px;opacity:0;transition:opacity .2s ease}.message.assistant[_ngcontent-%COMP%]:hover .message-actions[_ngcontent-%COMP%]{opacity:1}.action-button[_ngcontent-%COMP%]{background:none;border:none;padding:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:4px;color:#808b95;transition:all .2s ease}.action-button[_ngcontent-%COMP%]:hover{background-color:#808b951a;color:#6d7a85}.action-button[_ngcontent-%COMP%]:active{transform:scale(.95);background-color:#808b9533}@media (max-width: 768px){.message-bubble[_ngcontent-%COMP%]{max-width:90%}.message-actions[_ngcontent-%COMP%]{opacity:1}.action-button[_ngcontent-%COMP%]{padding:8px}}"]})},Ob=["messagesContainer"];function Eb(e,t){if(e&1&&H(0,"app-message",10),e&2){let n=t.$implicit;P("message",n)}}function Tb(e,t){if(e&1&&(la(0),f(1,"div",7)(2,"span",8),z(3),m()(),ie(4,Eb,1,1,"app-message",9),ua()),e&2){let n=t.$implicit,i=O(2);_(3),be(n.date),_(),P("ngForOf",n.messages)("ngForTrackBy",i.trackByMessageId)}}function Pb(e,t){if(e&1&&(f(0,"div",5),ie(1,Tb,5,3,"ng-container",6),m()),e&2){let n=O();_(),P("ngForOf",n.messageGroups)}}function Ib(e,t){e&1&&(f(0,"div",11)(1,"p",12),z(2,"Start a conversation by typing a message or selecting a suggestion below."),m()())}var Lb=class Ks{messages=[];canLoadMore=!1;isLoadingMore=!1;loadMore=new N;messagesContainer;messageGroups=[];restoreScrollAfterPrepend=!1;previousScrollHeight=0;suppressNextScroll=!1;lastScrollTop=Number.MAX_SAFE_INTEGER;scrollInitialized=!1;initialScrollPending=!0;initialScrollRequested=!1;get container(){return this.messagesContainer?.nativeElement??null}ngAfterViewChecked(){if(this.restoreScrollAfterPrepend&&this.messagesContainer){let t=this.messagesContainer.nativeElement,n=t.scrollHeight-this.previousScrollHeight;t.scrollTop=n+t.scrollTop,this.restoreScrollAfterPrepend=!1}}ngOnChanges(t){if(!t.messages)return;let n=t.messages.currentValue,i=t.messages.previousValue;this.messageGroups=this.groupMessagesByDate(this.messages),this.initialScrollPending?this.queueInitialScroll():this.hasAppendedMessage(i,n)&&this.scrollToBottomAfterRender()}onScroll(){if(!this.canLoadMore)return;let t=this.container;t&&(this.shouldSkipScroll(t)||this.isNearTop(t.scrollTop)&&this.prepareForLoadMore(t))}trackByMessageId(t,n){return n.id}queueInitialScroll(){this.initialScrollRequested||(this.initialScrollRequested=!0,Promise.resolve().then(()=>{let t=this.container;if(!t||!this.initialScrollPending){this.initialScrollRequested=!1;return}this.scrollToBottom(t),this.initialScrollPending=!1,this.initialScrollRequested=!1}))}scrollToBottomAfterRender(){Promise.resolve().then(()=>{let t=this.container;t&&this.scrollToBottom(t)})}scrollToBottom(t){this.suppressNextScroll=!0,t.scrollTop=t.scrollHeight,this.lastScrollTop=t.scrollTop,this.scrollInitialized=!0}triggerLoadMore(t){if(!this.canLoadMore||this.isLoadingMore)return;let n=t??this.container;n&&(this.previousScrollHeight=n.scrollHeight,this.restoreScrollAfterPrepend=!0),this.loadMore.emit()}hasAppendedMessage(t,n){if(!n||n.length===0)return!1;if(!t||t.length===0)return!0;if(n.length<=t.length)return!1;let i=t[t.length-1]?.id;return n[n.length-1]?.id!==i}shouldSkipScroll(t){let n=t.scrollTop,i=t.scrollHeight,r=t.clientHeight;if(this.suppressNextScroll)return this.suppressNextScroll=!1,this.lastScrollTop=n,!0;if(i<=r+200)return this.lastScrollTop=n,!0;if(!this.scrollInitialized)return this.scrollInitialized=!0,this.lastScrollTop=n,!0;let s=n<this.lastScrollTop;return this.lastScrollTop=n,!s}isNearTop(t){return t<=200}prepareForLoadMore(t){this.suppressNextScroll=!0,this.triggerLoadMore(t)}groupMessagesByDate(t){let n={};return t.forEach(i=>{let r=this.getDateKey(i.timestamp);n[r]||(n[r]=[]),n[r].push(i)}),Object.keys(n).map(i=>({date:this.formatDateLabel(i),messages:n[i]}))}getDateKey(t){let n=new Date(t);return`${n.getFullYear()}-${String(n.getMonth()+1).padStart(2,"0")}-${String(n.getDate()).padStart(2,"0")}`}formatDateLabel(t){let n=new Date,i=new Date(n);i.setDate(i.getDate()-1);let r=this.getDateKey(n),s=this.getDateKey(i);if(t===r)return me.DATE.LABELS.TODAY;if(t===s)return me.DATE.LABELS.YESTERDAY;let[o,a,l]=t.split("-").map(Number),u=new Date(o,a-1,l);return`${l} ${me.DATE.MONTH_NAMES[u.getMonth()]}`}static \u0275fac=function(t){return new(t||Ks)};static \u0275cmp=Ae({type:Ks,selectors:[["app-chat-history"]],viewQuery:function(t,n){if(t&1&&vh(Ob,5),t&2){let i;yh(i=Ch())&&(n.messagesContainer=i.first)}},inputs:{messages:"messages",canLoadMore:"canLoadMore",isLoadingMore:"isLoadingMore"},outputs:{loadMore:"loadMore"},features:[gr],decls:5,vars:2,consts:[["messagesContainer",""],[1,"chat-history"],[1,"messages-container",3,"scroll"],["class","messages-list",4,"ngIf"],["class","empty-state",4,"ngIf"],[1,"messages-list"],[4,"ngFor","ngForOf"],[1,"date-separator"],[1,"date-label"],[3,"message",4,"ngFor","ngForOf","ngForTrackBy"],[3,"message"],[1,"empty-state"],[1,"empty-text"]],template:function(t,n){if(t&1){let i=xe();f(0,"div",1)(1,"div",2,0),x("scroll",function(){return L(i),D(n.onScroll())}),ie(3,Pb,2,1,"div",3)(4,Ib,3,0,"div",4),m()()}t&2&&(_(3),P("ngIf",n.messages.length>0),_(),P("ngIf",n.messages.length===0))},dependencies:[ke,kr,It,Mb],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}.date-separator[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin:16px 0 12px}.date-label[_ngcontent-%COMP%]{color:#95a5a6;font-size:13px;font-weight:500;padding:4px 12px;background:#95a5a61a;border-radius:12px}.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 Db(e,t){if(e&1){let n=xe();f(0,"div",1),x("click",function(){L(n);let i=O();return D(i.onOverlayClick())}),f(1,"div",2),x("click",function(i){L(n);let r=O();return D(r.onModalClick(i))}),f(2,"div",3)(3,"button",4),x("click",function(){L(n);let i=O();return D(i.onBackClick())}),H(4,"app-icon",5),m(),f(5,"h2",6),z(6,"Rename Chat"),m(),f(7,"button",7),x("click",function(){L(n);let i=O();return D(i.onCloseClick())}),H(8,"app-icon",8),m()(),f(9,"div",9)(10,"input",10),da("ngModelChange",function(i){L(n);let r=O();return _h(r.editedTitle,i)||(r.editedTitle=i),D(i)}),x("keydown",function(i){L(n);let r=O();return D(r.onInputKeydown(i))}),m()(),f(11,"div",11)(12,"button",12),x("click",function(){L(n);let i=O();return D(i.onCancel())}),z(13," Cancel "),m(),f(14,"button",13),x("click",function(){L(n);let i=O();return D(i.onSave())}),z(15," Save "),m()()()()}if(e&2){let n=O();_(10),ca("ngModel",n.editedTitle),P("maxlength",500)}}var Ab=class Js{isOpen=!1;currentTitle="";close=new N;save=new N;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||Js)};static \u0275cmp=Ae({type:Js,selectors:[["app-rename-modal"]],inputs:{isOpen:"isOpen",currentTitle:"currentTitle"},outputs:{close:"close",save:"save"},features:[gr],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","rename-modal-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&&ie(0,Db,16,2,"div",0),t&2&&P("ngIf",n.isOpen)},dependencies:[ke,It,xa,$n,wa,mp,Er,Lt],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;overflow-x:hidden}@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;box-sizing:border-box;overflow-x:hidden}@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:left;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%], .rename-modal-close-button[_ngcontent-%COMP%]{flex-shrink:0}.modal-body[_ngcontent-%COMP%]{padding:24px 20px;flex:1;overflow-y:auto;overflow-x:hidden;box-sizing:border-box}.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;box-sizing:border-box}.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;box-sizing:border-box}.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:#f43e83;color:#fff}.btn-save[_ngcontent-%COMP%]:hover{background-color:#d63571}.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}}"]})},Vb=["scrollContainer"],Rb=e=>({compact:e});function Nb(e,t){if(e&1){let n=xe();f(0,"div",34)(1,"button",35),x("click",function(i){L(n);let r=O().$implicit,s=O(2);return D(s.onEditClick(r.id,r.title,i))}),H(2,"app-icon",36),f(3,"span"),z(4,"Rename"),m()(),f(5,"button",37),x("click",function(i){L(n);let r=O().$implicit,s=O(2);return D(s.onDeleteClick(r.id,i))}),H(6,"app-icon",38),f(7,"span"),z(8,"Delete"),m()()()}}function Fb(e,t){if(e&1){let n=xe();f(0,"div",25),x("click",function(){let i=L(n).$implicit,r=O(2);return D(r.onConversationClick(i.id))}),f(1,"div",26)(2,"div",27)(3,"span",28),z(4),m()(),f(5,"span",29),z(6),m()(),f(7,"div",30)(8,"button",31),x("click",function(i){let r=L(n).$implicit,s=O(2);return D(s.toggleMenu(r.id,i))}),H(9,"app-icon",32),m(),ie(10,Nb,9,0,"div",33),m()()}if(e&2){let n=t.$implicit,i=O(2);_(4),be(n.title),_(2),be(n.date),_(4),P("ngIf",i.isMenuOpen(n.id))}}function Hb(e,t){if(e&1&&(f(0,"div",23),ie(1,Fb,11,3,"div",24),m()),e&2){let n=O();_(),P("ngForOf",n.conversations)}}function jb(e,t){if(e&1&&(f(0,"div",39)(1,"div",40),H(2,"div",41),f(3,"p",42),z(4,"Loading conversations..."),m()()()),e&2){let n=O();_(),P("ngClass",ay(1,Rb,!(n.isLoading&&n.conversations.length===0)))}}function zb(e,t){e&1&&(f(0,"div",43)(1,"p"),z(2,"No conversations yet"),m()())}var Bb=class Xs{isOpen=!1;conversations=[];canLoadMore=!1;isLoadingMore=!1;isLoading=!1;scrollContainer;backClick=new N;settingsClick=new N;closeClick=new N;conversationClick=new N;deleteClick=new N;newChatClick=new N;searchChange=new N;titleUpdate=new N;loadMore=new N;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,i){i.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()}onScroll(){if(!this.canLoadMore||this.isLoadingMore||this.isLoading)return;let t=this.scrollContainer?.nativeElement;t&&t.scrollHeight-t.scrollTop-t.clientHeight<=80&&this.loadMore.emit()}static \u0275fac=function(t){return new(t||Xs)};static \u0275cmp=Ae({type:Xs,selectors:[["app-sidebar"]],viewQuery:function(t,n){if(t&1&&vh(Vb,5),t&2){let i;yh(i=Ch())&&(n.scrollContainer=i.first)}},inputs:{isOpen:"isOpen",conversations:"conversations",canLoadMore:"canLoadMore",isLoadingMore:"isLoadingMore",isLoading:"isLoading"},outputs:{backClick:"backClick",settingsClick:"settingsClick",closeClick:"closeClick",conversationClick:"conversationClick",deleteClick:"deleteClick",newChatClick:"newChatClick",searchChange:"searchChange",titleUpdate:"titleUpdate",loadMore:"loadMore"},decls:26,vars:10,consts:[["scrollContainer",""],[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-gear","width","20","height","20"],["aria-label","Close",1,"icon-button","sidebar-close-button",3,"click"],["name","close","width","20","height","20"],[1,"sidebar-content",3,"scroll"],[1,"conversations-title"],["class","conversations-list",4,"ngIf"],["class","load-more",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-code","width","20","height","20"],[3,"close","save","isOpen","currentTitle"],[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,"load-more"],["aria-live","polite",1,"loading-state",3,"ngClass"],["aria-hidden","true",1,"spinner"],[1,"loading-text"],[1,"empty-conversations"]],template:function(t,n){if(t&1){let i=xe();f(0,"div",1),x("click",function(){return L(i),D(n.onOverlayClick())}),m(),f(1,"div",2),x("click",function(){return L(i),D(n.onSidebarClick())}),f(2,"div",3)(3,"button",4),x("click",function(){return L(i),D(n.onBackClick())}),H(4,"app-icon",5),f(5,"span"),z(6,"Back to Chat"),m()(),f(7,"div",6)(8,"button",7),x("click",function(){return L(i),D(n.onSettingsClick())}),H(9,"app-icon",8),m(),f(10,"button",9),x("click",function(){return L(i),D(n.onCloseClick())}),H(11,"app-icon",10),m()()(),f(12,"div",11,0),x("scroll",function(){return L(i),D(n.onScroll())}),f(14,"h3",12),z(15,"Conversations"),m(),ie(16,Hb,2,1,"div",13)(17,jb,5,3,"div",14)(18,zb,3,0,"div",15),m(),f(19,"div",16)(20,"div",17),H(21,"app-icon",18),f(22,"input",19),da("ngModelChange",function(r){return L(i),_h(n.searchQuery,r)||(n.searchQuery=r),D(r)}),x("input",function(){return L(i),D(n.onSearchChange())}),m()(),f(23,"button",20),x("click",function(){return L(i),D(n.onNewChatClick())}),H(24,"app-icon",21),m()()(),f(25,"app-rename-modal",22),x("close",function(){return L(i),D(n.onRenameModalClose())})("save",function(r){return L(i),D(n.onRenameModalSave(r))}),m()}t&2&&(Ie("visible",n.isOpen),_(),Ie("open",n.isOpen),_(15),P("ngIf",n.conversations.length>0),_(),P("ngIf",n.isLoading&&n.conversations.length===0||n.isLoadingMore&&n.conversations.length>0),_(),P("ngIf",!n.isLoading&&n.conversations.length===0),_(4),ca("ngModel",n.searchQuery),_(3),P("isOpen",n.isRenameModalOpen)("currentTitle",n.renamingConversationTitle))},dependencies:[ke,gC,kr,It,xa,$n,wa,Er,Lt,Ab],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}.loading-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:40px 20px;color:#1a1a1a}.spinner[_ngcontent-%COMP%]{width:32px;height:32px;border:3px solid rgba(0,0,0,.1);border-top-color:#2c3e50;border-radius:50%;animation:_ngcontent-%COMP%_spin .9s linear infinite}.loading-text[_ngcontent-%COMP%]{font-size:14px;color:#54606c;margin:0}.loading-state.compact[_ngcontent-%COMP%]{flex-direction:row;padding:12px 16px;gap:10px}.loading-state.compact[_ngcontent-%COMP%] .loading-text[_ngcontent-%COMP%]{font-size:13px}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.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}.load-more[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:12px}.load-more-button[_ngcontent-%COMP%]{background:transparent;border:1px solid rgba(0,0,0,.1);border-radius:999px;color:#2c3e50;font-size:13px;padding:6px 16px;cursor:pointer;transition:background .2s ease,border-color .2s ease}.load-more-button[_ngcontent-%COMP%]:hover:not(:disabled){background:#0000000a;border-color:#0003}.load-more-button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.6}.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:12px 16px;gap:10px}.search-icon[_ngcontent-%COMP%]{flex-shrink:0;color:#95a5a6}.search-input[_ngcontent-%COMP%]{flex:1;border:none;background:none;font-size:15px;color:#1a1a1a;outline:none;padding:0}.search-input[_ngcontent-%COMP%]::placeholder{color:#95a5a6}.new-chat-button[_ngcontent-%COMP%]{flex-shrink:0;background:#f5f7fa;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:#e8ecf1;border-color:#d0d7de}@media (max-width: 768px){.menu-button[_ngcontent-%COMP%]{opacity:1}}@media (max-width: 480px){.sidebar[_ngcontent-%COMP%]{width:100%;max-width:none}}"]})},vp=class _i{toasts=le([]);toasts$=this.toasts.asReadonly();show(t,n="info",i=3e3){let r=Math.random().toString(36).substring(7),s={id:r,message:t,type:n,duration:i};this.toasts.update(o=>[...o,s]),i>0&&setTimeout(()=>this.remove(r),i)}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(i=>i.id!==t))}static \u0275fac=function(t){return new(t||_i)};static \u0275prov=E({token:_i,factory:_i.\u0275fac,providedIn:"root"})};function Ub(e,t){e&1&&(f(0,"span"),z(1,"\u2713"),m())}function Zb(e,t){e&1&&(f(0,"span"),z(1,"\u2715"),m())}function $b(e,t){e&1&&(f(0,"span"),z(1,"\u26A0"),m())}function qb(e,t){e&1&&(f(0,"span"),z(1,"\u2139"),m())}function Gb(e,t){if(e&1){let n=xe();f(0,"div",2)(1,"div",3)(2,"span",4),la(3,5),ie(4,Ub,2,0,"span",6)(5,Zb,2,0,"span",6)(6,$b,2,0,"span",6)(7,qb,2,0,"span",6),ua(),m(),f(8,"span",7),z(9),m()(),f(10,"button",8),x("click",function(){let i=L(n).$implicit,r=O();return D(r.onClose(i.id))}),z(11,"\u2715"),m()()}if(e&2){let n=t.$implicit;Ie("success",n.type==="success")("error",n.type==="error")("warning",n.type==="warning")("info",n.type==="info"),_(3),P("ngSwitch",n.type),_(),P("ngSwitchCase","success"),_(),P("ngSwitchCase","error"),_(),P("ngSwitchCase","warning"),_(),P("ngSwitchCase","info"),_(2),be(n.message)}}var Wb=class eo{toastService=v(vp);toasts=this.toastService.toasts$;onClose(t){this.toastService.remove(t)}static \u0275fac=function(t){return new(t||eo)};static \u0275cmp=Ae({type:eo,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&&(f(0,"div",0),ie(1,Gb,12,14,"div",1),m()),t&2&&(_(),P("ngForOf",n.toasts()))},dependencies:[ke,kr,Ih,CC],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}}"]})},yp=class xi{isOpenSignal=le(!1);configSignal=le(null);resolveCallback=null;isOpen$=this.isOpenSignal.asReadonly();config$=this.configSignal.asReadonly();confirm(t){return this.configSignal.set(T({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||xi)};static \u0275prov=E({token:xi,factory:xi.\u0275fac,providedIn:"root"})};function Qb(e,t){if(e&1){let n=xe();f(0,"div",1),x("click",function(){L(n);let i=O();return D(i.onOverlayClick())}),f(1,"div",2),x("click",function(i){L(n);let r=O();return D(r.onModalClick(i))}),f(2,"div",3)(3,"button",4),x("click",function(){L(n);let i=O();return D(i.onBackClick())}),H(4,"app-icon",5),m(),f(5,"h2",6),z(6),m(),f(7,"button",7),x("click",function(){L(n);let i=O();return D(i.onCloseClick())}),H(8,"app-icon",8),m()(),f(9,"div",9)(10,"p",10),z(11),m()(),f(12,"div",11)(13,"button",12),x("click",function(){L(n);let i=O();return D(i.onCancel())}),z(14),m(),f(15,"button",13),x("click",function(){L(n);let i=O();return D(i.onConfirm())}),z(16),m()()()()}if(e&2){let n,i,r,s,o,a,l=O();_(6),be(((n=l.config())==null?null:n.title)||"Back"),_(5),be((i=l.config())==null?null:i.message),_(3),An(" ",((r=l.config())==null?null:r.cancelText)||"Cancel"," "),_(),Ie("btn-danger",((s=l.config())==null?null:s.confirmColor)==="danger")("btn-primary",((o=l.config())==null?null:o.confirmColor)==="primary"),_(),An(" ",((a=l.config())==null?null:a.confirmText)||"Confirm"," ")}}var Yb=class to{confirmationService=v(yp);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||to)};static \u0275cmp=Ae({type:to,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","confirmation-modal-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&&ie(0,Qb,17,8,"div",0),t&2&&P("ngIf",n.isOpen())},dependencies:[ke,It,Lt],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;overflow-x:hidden}@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;box-sizing:border-box;overflow-x:hidden}@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:left;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%], .confirmation-modal-close-button[_ngcontent-%COMP%]{flex-shrink:0}.modal-body[_ngcontent-%COMP%]{padding:32px 20px;flex:1;overflow-y:auto;overflow-x:hidden;box-sizing:border-box}.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;box-sizing:border-box}.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:#f43e83}.btn-danger[_ngcontent-%COMP%]:hover{background-color:#d63571}.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}}"]})},ir={production:!0,apiUrl:"https://ca-oaa-ai-dev-we-api.proudforest-87e29140.westeurope.azurecontainerapps.io",apiTimeout:6e4,environmentName:"production"},Kb=class ki{http=v(ya);logger=v(Le);get apiUrl(){return ir.apiUrl}get timeout(){return ir.apiTimeout}createConversation(t){return this.http.post(`${this.apiUrl}/conversations`,t).pipe(pt(this.timeout),Oe(this.handleError))}getConversations(t,n,i=0,r=20){let s=new Ge().set("offset",i.toString()).set("limit",r.toString());return t&&(s=s.set("status",t)),n&&(s=s.set("search",n)),this.http.get(`${this.apiUrl}/conversations`,{params:s}).pipe(pt(this.timeout),Oe(this.handleError))}getConversation(t){return this.http.get(`${this.apiUrl}/conversations/${t}`).pipe(pt(this.timeout),Oe(this.handleError))}deleteConversation(t){return this.http.delete(`${this.apiUrl}/conversations/${t}`).pipe(pt(this.timeout),Oe(this.handleError))}updateConversationTitle(t,n){return this.http.patch(`${this.apiUrl}/conversations/${t}/title`,n).pipe(pt(this.timeout),Oe(this.handleError))}sendMessage(t,n){let i=`${this.apiUrl}/conversations/${t}/messages`;return this.http.post(i,n).pipe(pt(this.timeout),Oe(this.handleError))}getMessages(t,n=0,i=20){let r=new Ge().set("offset",n.toString()).set("limit",i.toString());return this.http.get(`${this.apiUrl}/conversations/${t}/messages`,{params:r}).pipe(pt(this.timeout),Oe(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}
|
|
41
|
+
Message: ${t.message}`,fo(()=>new Error(n))};static \u0275fac=function(t){return new(t||ki)};static \u0275prov=E({token:ki,factory:ki.\u0275fac,providedIn:"root"})},Jb=class Si{apiService=v(Kb);logger=v(Le);pageSize=10;chatState=le({messages:[],isLoading:!1,currentInput:"",isLoadingMore:!1,hasMoreHistory:!1,pageSize:this.pageSize,currentOffset:0,totalMessages:0});currentConversationId=null;cancelRequest$=new Je;isCancelling=!1;mockAppId="00000000-0000-0000-0000-000000000001";typingSimulationDelay=500;getState(){return this.chatState.asReadonly()}addMessage(t,n){let i={id:this.generateId(),text:t,sender:n,timestamp:new Date,isTyping:!1};this.chatState.update(r=>V(T({},r),{messages:[...r.messages,i],totalMessages:r.totalMessages+1}))}sendMessage(t){return Y(this,null,function*(){try{this.isCancelling=!1,this.addMessage(t,"user"),this.chatState.update(r=>V(T({},r),{isLoading:!0})),this.currentConversationId||(yield this.createConversation());let n={id:"typing-"+Date.now(),text:"",sender:"assistant",timestamp:new Date,isTyping:!0};this.chatState.update(r=>V(T({},r),{messages:[...r.messages,n]})),yield this.delay(this.typingSimulationDelay);let i=yield nt(this.apiService.sendMessage(this.currentConversationId,{message:t}).pipe(e1(this.cancelRequest$)));this.isCancelling||(this.chatState.update(r=>V(T({},r),{messages:r.messages.filter(s=>s.id!==n.id),isLoading:!1})),this.addMessage(i.assistantMessage,"assistant"))}catch(n){if(this.isCancelling){this.logger.info("Request was cancelled by user");return}this.logger.error("Error sending message:",n),this.chatState.update(i=>V(T({},i),{messages:i.messages.filter(r=>!r.isTyping),isLoading:!1})),this.addMessage("Sorry, I encountered an error. Please try again.","assistant")}})}createConversation(){return Y(this,null,function*(){try{let t=yield nt(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 Y(this,null,function*(){try{this.chatState.update(o=>V(T({},o),{isLoading:!0}));let n=this.pageSize,i=yield nt(this.apiService.getMessages(t,0,n)),r=i.total,s=(i.messages??[]).slice().reverse().map(o=>({id:o.id,text:o.content,sender:o.role==="user"?"user":"assistant",timestamp:new Date(o.createdAt),isTyping:!1}));this.currentConversationId=t,this.chatState.update(o=>V(T({},o),{messages:s,isLoading:!1,hasMoreHistory:i.hasMore,currentOffset:i.offset+s.length,totalMessages:r,pageSize:n,isLoadingMore:!1}))}catch(n){this.logger.error("Error loading conversation:",n),this.chatState.update(i=>V(T({},i),{isLoading:!1}))}})}clearChat(){this.chatState.update(t=>V(T({},t),{messages:[],hasMoreHistory:!1,currentOffset:0,totalMessages:0,isLoadingMore:!1})),this.currentConversationId=null}stopResponse(){this.isCancelling=!0,this.cancelRequest$.next(),this.chatState.update(t=>V(T({},t),{messages:t.messages.filter(n=>!n.isTyping),isLoading:!1}))}getCurrentConversationId(){return this.currentConversationId}getConversations(t,n,i=0,r=20){return Y(this,null,function*(){try{return yield nt(this.apiService.getConversations(t,n,i,r))}catch(s){throw this.logger.error("Error loading conversations:",s),s}})}deleteConversation(t){return Y(this,null,function*(){try{yield nt(this.apiService.deleteConversation(t)),this.currentConversationId===t&&this.clearChat()}catch(n){throw this.logger.error("Error deleting conversation:",n),n}})}updateConversationTitle(t,n){return Y(this,null,function*(){try{yield nt(this.apiService.updateConversationTitle(t,{title:n}))}catch(i){throw this.logger.error("Error updating conversation title:",i),i}})}loadMoreHistory(){return Y(this,null,function*(){let t=this.chatState();if(!this.currentConversationId||t.isLoadingMore||!t.hasMoreHistory)return;let n=t.currentOffset;this.chatState.update(i=>V(T({},i),{isLoadingMore:!0}));try{let i=yield nt(this.apiService.getMessages(this.currentConversationId,n,t.pageSize)),r=(i.messages??[]).slice().reverse().map(o=>({id:o.id,text:o.content,sender:o.role==="user"?"user":"assistant",timestamp:new Date(o.createdAt),isTyping:!1})),s=n+(i.messages?.length??0);this.chatState.update(o=>V(T({},o),{messages:[...r,...o.messages],currentOffset:s,hasMoreHistory:i.hasMore,totalMessages:i.total,isLoadingMore:!1}))}catch(i){this.logger.error("Error loading more messages:",i),this.chatState.update(r=>V(T({},r),{isLoadingMore:!1}))}})}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||Si)};static \u0275prov=E({token:Si,factory:Si.\u0275fac,providedIn:"root"})},Xb=class Mi{constructor(t){this.logger=t,this.initializeRecognition()}recognition=null;isSupported=!1;resolveStop=null;statusSignal=le({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=>V(T({},n),{state:"listening",errorMessage:void 0}))},this.recognition.onresult=n=>{let i="",r=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?r+=o+" ":i+=o}this.statusSignal.update(s=>V(T({},s),{transcript:r.trim(),interimTranscript:i.trim()})),this.logger.debug("Updated status:",{transcript:r.trim(),interimTranscript:i.trim()})},this.recognition.onerror=n=>{this.logger.error("Voice recognition error:",n.error);let i="Voice recognition error";switch(n.error){case"no-speech":i="No speech detected. Please try again.";break;case"audio-capture":i="No microphone found. Please check your microphone.";break;case"not-allowed":i="Microphone access denied. Please allow microphone access.";break;case"network":i="Network error occurred. Please check your connection.";break;default:i=`Voice recognition error: ${n.error}`}this.statusSignal.update(r=>V(T({},r),{state:"error",errorMessage:i}))},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(i=>V(T({},i),{state:"error",errorMessage:"Failed to start voice recognition"}))}}stopListening(){return Y(this,null,function*(){return this.isSupported?this.statusSignal().state!=="listening"?{transcript:"",success:!1}:new Promise(t=>{this.resolveStop=t,this.statusSignal.update(n=>V(T({},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||Mi)(b(Le))};static \u0275prov=E({token:Mi,factory:Mi.\u0275fac,providedIn:"root"})},Cp=class Oi{constructor(t){this.http=t}logger=v(Le);config=null;loadConfig(){return Y(this,null,function*(){try{this.config=yield nt(this.http.get("/config.json")),this.logger.info("Configuration loaded:",this.config?.environmentName)}catch(t){this.logger.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,this.logger.info("Configuration updated:",this.config.environmentName)}static \u0275fac=function(t){return new(t||Oi)(b(ya))};static \u0275prov=E({token:Oi,factory:Oi.\u0275fac,providedIn:"root"})},bp=class Ei{logger=v(Le);TOKEN_KEY="jwt_token";CLOCK_SKEW_BUFFER=60;authState=le({isAuthenticated:!1,token:null,user:null});state=this.authState.asReadonly();constructor(){this.initializeAuthState()}initializeAuthState(){let t=this.getToken();if(t){let n=this.getUserFromToken(t);this.authState.set({isAuthenticated:!0,token:t,user:n}),this.logger.debug("Auth state initialized from localStorage",{user:n})}else this.logger.debug("No valid token found in localStorage")}getToken(){try{let t=localStorage.getItem(this.TOKEN_KEY);return t?this.isTokenExpired()?(this.logger.warn("Token found but expired, clearing"),this.clearToken(),null):t:null}catch(t){return this.logger.error("Error reading token from localStorage",t),null}}setToken(t){try{let n=this.decodeToken(t);if(!n){this.logger.error("Cannot store invalid token");return}localStorage.setItem(this.TOKEN_KEY,t);let i=this.getUserFromToken(t);this.authState.set({isAuthenticated:!0,token:t,user:i}),this.logger.debug("Token stored successfully",{exp:n.exp,user:i})}catch(n){throw n instanceof DOMException&&(n.name==="QuotaExceededError"||n.name==="NS_ERROR_DOM_QUOTA_REACHED")?this.logger.error("localStorage quota exceeded",n):this.logger.error("Error storing token",n),n}}isTokenExpired(){try{let t=localStorage.getItem(this.TOKEN_KEY);if(!t)return!0;let n=this.decodeToken(t);if(!n)return!0;let i=n.exp,r=Math.floor(Date.now()/1e3),s=r>i-this.CLOCK_SKEW_BUFFER;return s&&this.logger.debug("Token expired",{exp:i,now:r,diff:i-r}),s}catch(t){return this.logger.error("Error checking token expiration",t),!0}}isAuthenticated(){return this.getToken()!==null}clearToken(){try{localStorage.removeItem(this.TOKEN_KEY),this.authState.set({isAuthenticated:!1,token:null,user:null}),this.logger.debug("Token cleared, user logged out")}catch(t){this.logger.error("Error clearing token",t)}}logout(){this.logger.info("User logged out"),this.clearToken()}getUserFromToken(t){let n=t||this.getToken();if(!n)return null;let i=this.decodeToken(n);return i?{id:i.sub,name:i.name,email:i.email}:null}createValidToken(){let t={alg:"HS256",typ:"JWT"},n=Math.floor(Date.now()/1e3),i={sub:"00000000-0000-0000-0000-000000000000",name:"Development User",email:"dev@localhost",iss:"http://oaa-api.azurewebsites.net/",iat:n,exp:n+1440*60},r=u=>{let c=JSON.stringify(u);return btoa(c).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},s=r(t),o=r(i),a=r({dev:!0}),l=`${s}.${o}.${a}`;return this.logger.debug("Created development token",{exp:i.exp,expiresIn:"24 hours"}),l}validateToken(t){try{let n=this.decodeToken(t);if(!n)return{isValid:!1,isExpired:!1,error:"Invalid token format"};let i=Math.floor(Date.now()/1e3)>n.exp;return{isValid:!i,isExpired:i,payload:n}}catch(n){return{isValid:!1,isExpired:!1,error:n instanceof Error?n.message:"Unknown error"}}}decodeToken(t){try{let n=t.split(".");if(n.length!==3)return this.logger.error("Invalid token format - must have 3 parts"),null;let i=n[1];if(!i)return this.logger.error("Invalid token - missing payload"),null;let r=i.replace(/-/g,"+").replace(/_/g,"/"),s=decodeURIComponent(atob(r).split("").map(a=>"%"+("00"+a.charCodeAt(0).toString(16)).slice(-2)).join("")),o=JSON.parse(s);return!o.sub||!o.exp||!o.iat?(this.logger.error("Invalid token payload - missing required fields"),null):o}catch(n){return this.logger.error("Token decode failed",n),null}}static \u0275fac=function(t){return new(t||Ei)};static \u0275prov=E({token:Ei,factory:Ei.\u0275fac,providedIn:"root"})};function e3(e,t){if(e&1&&(f(0,"div",8)(1,"div",9),H(2,"app-icon",10),m(),f(3,"h1",11),z(4),m(),f(5,"p",12),z(6),m(),f(7,"p",13),z(8),m()()),e&2){let n=O();_(4),be(n.greeting),_(2),be(n.welcomeText),_(2),be(n.description)}}function t3(e,t){if(e&1){let n=xe();f(0,"app-chat-history",14),x("loadMore",function(){L(n);let i=O();return D(i.onLoadMoreHistory())}),m()}if(e&2){let n=O();P("messages",n.messages())("canLoadMore",n.canLoadMoreHistory())("isLoadingMore",n.isLoadingMoreHistory())}}function n3(e,t){if(e&1){let n=xe();f(0,"app-suggestion-button",19),x("buttonClick",function(i){L(n);let r=O(2);return D(r.onSuggestionClick(i))}),m()}if(e&2){let n=t.$implicit,i=O(2);P("text",n)("disabled",i.isLoading())}}function i3(e,t){if(e&1&&(f(0,"div",15)(1,"p",16),z(2),m(),f(3,"div",17),ie(4,n3,1,2,"app-suggestion-button",18),m()()),e&2){let n=O();_(2),be(n.personalizationText),_(2),P("ngForOf",n.suggestions)}}var r3=class no{chatService=v(Jb);toastService=v(vp);confirmationService=v(yp);voiceRecognition=v(Xb);configService=v(Cp);authService=v(bp);logger=v(Le);_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),this.logger.debug("Config updated via Input:",t))}set jwtToken(t){t&&t.trim()&&(this.authService.setToken(t),this.logger.debug("JWT token set from parent application"))}title=me.TITLE;greeting=me.WELCOME.GREETING;welcomeText=me.WELCOME.TEXT;description=me.WELCOME.DESCRIPTION;personalizationText=me.WELCOME.PERSONALIZATION;inputPlaceholder=me.INPUT.PLACEHOLDER;suggestions=[...me.SUGGESTIONS];chatState=this.chatService.getState();messages=st(()=>this.chatState().messages);isLoading=st(()=>this.chatState().isLoading);hasMessages=st(()=>this.messages().length>0);canLoadMoreHistory=st(()=>this.chatState().hasMoreHistory);isLoadingMoreHistory=st(()=>this.chatState().isLoadingMore);voiceStatus=this.voiceRecognition.getStatus();sidebarOpenSignal=le(!1);isSidebarOpen=this.sidebarOpenSignal.asReadonly();conversationsSignal=le([]);conversations=this.conversationsSignal.asReadonly();isLoadingConversationsSignal=le(!1);isLoadingConversations=this.isLoadingConversationsSignal.asReadonly();searchQuerySignal=le("");inputValueSignal=le("");inputValue=this.inputValueSignal.asReadonly();ngOnInit(){this.logger.debug("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}),this.logger.debug("Config updated:",this.configService.getConfig())}onMenuClick(){return Y(this,null,function*(){this.sidebarOpenSignal.set(!0),this.searchQuerySignal.set(""),yield this.loadConversations()})}onCloseClick(){this.chatService.clearChat()}onSuggestionClick(t){return Y(this,null,function*(){yield this.chatService.sendMessage(t)})}onMessageSubmit(t){return Y(this,null,function*(){t.trim()&&(this.inputValueSignal.set(""),yield this.chatService.sendMessage(t))})}onInputValueChange(t){this.inputValueSignal.set(t)}onVoiceClick(){return Y(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!")}onSettingsClick(){this.toastService.info("Settings feature coming soon!")}onStopClick(){this.chatService.stopResponse(),this.toastService.info("Response stopped")}onLoadMoreHistory(){return Y(this,null,function*(){yield this.chatService.loadMoreHistory()})}onSidebarBackClick(){this.sidebarOpenSignal.set(!1)}onSidebarSettingsClick(){this.toastService.info("Settings feature coming soon!")}onSidebarCloseClick(){this.sidebarOpenSignal.set(!1)}onConversationClick(t){return Y(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 Y(this,null,function*(){if(this.logger.debug("Delete conversation:",t),!!(yield this.confirmationService.confirm({title:"Back",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(i=>i.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 Y(this,null,function*(){this.searchQuerySignal.set(t),yield this.loadConversations()})}onConversationTitleUpdate(t){return Y(this,null,function*(){try{yield this.chatService.updateConversationTitle(t.id,t.title);let n=this.conversationsSignal();this.conversationsSignal.set(n.map(i=>i.id===t.id?V(T({},i),{title:t.title}):i)),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 Y(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(i=>({id:i.id,title:i.title||"Untitled Conversation",date:new Date(i.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||no)};static \u0275cmp=Ae({type:no,selectors:[["app-assistant"]],inputs:{apiUrl:"apiUrl",apiTimeout:"apiTimeout",config:"config",jwtToken:"jwtToken",title:"title",greeting:"greeting",welcomeText:"welcomeText",description:"description",personalizationText:"personalizationText",inputPlaceholder:"inputPlaceholder",suggestions:"suggestions"},decls:10,vars:12,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","canLoadMore","isLoadingMore","loadMore",4,"ngIf"],["class","personalization-section",4,"ngIf"],[3,"valueChange","submitMessage","voiceClick","addClick","settingsClick","stopClick","placeholder","disabled","voiceStatus","value","isLoadingResponse"],[1,"welcome-container"],[1,"icon-wrapper"],["name","welcome-rocket-icon","width","64","height","64","dropShadow","drop-shadow(0 4px 8px rgba(244, 62, 131, 0.2))",1,"sparkle-icon"],[1,"greeting"],[1,"welcome-text"],[1,"description"],[3,"loadMore","messages","canLoadMore","isLoadingMore"],[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&&(f(0,"app-sidebar",0),x("backClick",function(){return n.onSidebarBackClick()})("settingsClick",function(){return n.onSidebarSettingsClick()})("closeClick",function(){return n.onSidebarCloseClick()})("conversationClick",function(i){return n.onConversationClick(i)})("deleteClick",function(i){return n.onConversationDeleteClick(i)})("newChatClick",function(){return n.onNewChatClick()})("searchChange",function(i){return n.onSearchChange(i)})("titleUpdate",function(i){return n.onConversationTitleUpdate(i)}),m(),f(1,"div",1)(2,"app-header",2),x("menuClick",function(){return n.onMenuClick()})("closeClick",function(){return n.onCloseClick()}),m(),f(3,"div",3),ie(4,e3,9,3,"div",4)(5,t3,1,3,"app-chat-history",5)(6,i3,5,2,"div",6),m(),f(7,"app-input-field",7),x("valueChange",function(i){return n.onInputValueChange(i)})("submitMessage",function(i){return n.onMessageSubmit(i)})("voiceClick",function(){return n.onVoiceClick()})("addClick",function(){return n.onAddClick()})("settingsClick",function(){return n.onSettingsClick()})("stopClick",function(){return n.onStopClick()}),m()(),H(8,"app-toast-container")(9,"app-confirmation-modal")),t&2&&(P("isOpen",n.isSidebarOpen())("conversations",n.conversations())("isLoading",n.isLoadingConversations()),_(2),P("title",n.title),_(2),P("ngIf",!n.hasMessages()),_(),P("ngIf",n.hasMessages()),_(),P("ngIf",!n.hasMessages()),_(),P("placeholder",n.inputPlaceholder)("disabled",n.isLoading())("voiceStatus",n.voiceStatus())("value",n.inputValue())("isLoadingResponse",n.isLoading()))},dependencies:[ke,kr,It,V5,R5,_b,Lt,Lb,Bb,Wb,Yb],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%;overflow:hidden}.assistant-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;max-height:100%;width:100%;background:#fff;font-family:Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;overflow:hidden;position:relative}.content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;min-height:0;position:relative;-webkit-overflow-scrolling:touch}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:center;padding:16px 20px;text-align:center;flex-shrink:0}.icon-wrapper[_ngcontent-%COMP%]{margin-bottom:12px;flex-shrink:0}.greeting[_ngcontent-%COMP%]{font-size:24px;font-weight:700;margin:0 0 8px;color:#1a1a1a;flex-shrink:0}.welcome-text[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0 0 8px;color:#333;flex-shrink:0}.description[_ngcontent-%COMP%]{font-size:14px;font-weight:400;margin:0 0 12px;color:#666;max-width:400px;line-height:1.4;flex-shrink:0}.personalization-section[_ngcontent-%COMP%]{padding:0 20px 16px;display:flex;flex-direction:column;align-items:center;gap:12px;flex-shrink:0;max-width:100%;box-sizing:border-box}.personalization-text[_ngcontent-%COMP%]{font-size:14px;color:#666;margin:0;text-align:center;max-width:400px;line-height:1.4;flex-shrink:0}.suggestions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;max-width:400px;flex-shrink:0}@media (max-width: 768px){.greeting[_ngcontent-%COMP%]{font-size:20px}.welcome-text[_ngcontent-%COMP%]{font-size:15px}.description[_ngcontent-%COMP%]{font-size:13px;margin-bottom:8px}.welcome-container[_ngcontent-%COMP%]{padding:12px 16px}.personalization-section[_ngcontent-%COMP%]{padding:0 16px 12px;gap:10px}.personalization-text[_ngcontent-%COMP%]{font-size:13px}.suggestions[_ngcontent-%COMP%]{max-width:100%;gap:8px}.icon-wrapper[_ngcontent-%COMP%]{margin-bottom:8px}}@media (max-height: 600px){.greeting[_ngcontent-%COMP%]{font-size:18px;margin-bottom:6px}.welcome-text[_ngcontent-%COMP%]{font-size:14px;margin-bottom:6px}.description[_ngcontent-%COMP%]{font-size:12px;margin-bottom:8px}.welcome-container[_ngcontent-%COMP%]{padding:8px 16px}.personalization-section[_ngcontent-%COMP%]{padding:0 16px 8px;gap:8px}.icon-wrapper[_ngcontent-%COMP%]{margin-bottom:6px}.icon-wrapper[_ngcontent-%COMP%] app-icon[_ngcontent-%COMP%]{transform:scale(.8)}}"]})},s3=class Ti{authService=v(bp);logger=v(Le);isLoggingOut=!1;PUBLIC_ENDPOINTS=["/config.json","/assets/"];intercept(t,n){if(this.isPublicEndpoint(t.url))return this.logger.debug("Public endpoint, skipping auth",{url:t.url}),n.handle(t);let i=this.authService.getToken();if(!i&&!ir.production&&(this.logger.debug("No token found in localStorage, creating development token"),i=this.authService.createValidToken(),this.authService.setToken(i)),!i)return this.logger.debug("No token available, proceeding without auth header"),n.handle(t);let r=t.clone({setHeaders:{Authorization:`Bearer ${i}`}});return this.logger.debug("Added Authorization header to request",{url:t.url}),n.handle(r).pipe(Oe(s=>(s.status===401?this.handle401Error(s):s.status===403?this.handle403Error(s):s.status===0&&this.handleNetworkError(s),fo(()=>s))))}isPublicEndpoint(t){return this.PUBLIC_ENDPOINTS.some(n=>t.includes(n))}handle401Error(t){if(this.isLoggingOut){this.logger.debug("Logout already in progress, skipping");return}this.isLoggingOut=!0,this.logger.warn("401 Unauthorized - authentication failed, logging out",{url:t.url,message:t.message}),this.authService.logout(),setTimeout(()=>{this.isLoggingOut=!1},1e3)}handle403Error(t){this.logger.warn("403 Forbidden - insufficient permissions",{url:t.url,message:t.message})}handleNetworkError(t){this.logger.error("Network error - server unreachable or timeout",{url:t.url,message:t.message})}static \u0275fac=function(t){return new(t||Ti)};static \u0275prov=E({token:Ti,factory:Ti.\u0275fac})};function wp(e){return()=>e.loadConfig()}Y(null,null,function*(){if(customElements.get("app-assistant"))return;let e=yield jC({providers:[hg(),hy({eventCoalescing:!0}),b5(w5()),{provide:Yh,useClass:s3,multi:!0},{provide:ch,useFactory:wp,deps:[Cp],multi:!0},Lh,A5.forRoot({level:ir.production?W.WARN:W.DEBUG,serverLogLevel:W.ERROR,disableConsoleLogging:!1,enableSourceMaps:!0,timestampFormat:"short"}).providers||[]]}),t=qy(r3,{injector:e.injector});customElements.define("app-assistant",t)});return Op(o3);})();
|
|
42
42
|
/*! Bundled license information:
|
|
43
43
|
|
|
44
44
|
@angular/core/fesm2022/not_found.mjs:
|