var zE=Object.defineProperty,GE=Object.defineProperties;var WE=Object.getOwnPropertyDescriptors;var Fa=Object.getOwnPropertySymbols;var h0=Object.prototype.hasOwnProperty,p0=Object.prototype.propertyIsEnumerable;var f0=(t,e,i)=>e in t?zE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,b=(t,e)=>{for(var i in e||={})h0.call(e,i)&&f0(t,i,e[i]);if(Fa)for(var i of Fa(e))p0.call(e,i)&&f0(t,i,e[i]);return t},z=(t,e)=>GE(t,WE(e));var Ko=(t,e)=>{var i={};for(var n in t)h0.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&Fa)for(var n of Fa(t))e.indexOf(n)<0&&p0.call(t,n)&&(i[n]=t[n]);return i};var y=(t,e)=>()=>(t&&(e=t(t=0)),e);var QE=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var mt=(t,e,i)=>new Promise((n,r)=>{var o=l=>{try{a(i.next(l))}catch(c){r(c)}},s=l=>{try{a(i.throw(l))}catch(c){r(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,s);a((i=i.apply(t,e)).next())});function m0(t,e){return Object.is(t,e)}function he(t){let e=ut;return ut=t,e}function ZE(){return Yo}function dd(t){if(Yo)throw new Error("");if(ut===null)return;ut.consumerOnSignalRead(t);let e=ut.nextProducerIndex++;if(Pr(ut),e<ut.producerNode.length&&ut.producerNode[e]!==t&&Jo(ut)){let i=ut.producerNode[e];Ba(i,ut.producerIndexOfThis[e])}ut.producerNode[e]!==t&&(ut.producerNode[e]=t,ut.producerIndexOfThis[e]=Jo(ut)?b0(t,ut,e):0),ut.producerLastReadVersion[e]=t.version}function KE(){Pa++}function g0(t){if(!(Jo(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Pa)){if(!t.producerMustRecompute(t)&&!$a(t)){t.dirty=!1,t.lastCleanEpoch=Pa;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Pa}}function v0(t){if(t.liveConsumerNode===void 0)return;let e=Yo;Yo=!0;try{for(let i of t.liveConsumerNode)i.dirty||w0(i)}finally{Yo=e}}function y0(){return ut?.consumerAllowSignalWrites!==!1}function w0(t){t.dirty=!0,v0(t),t.consumerMarkedDirty?.(t)}function Va(t){return t&&(t.nextProducerIndex=0),he(t)}function ja(t,e){if(he(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Jo(t))for(let i=t.nextProducerIndex;i<t.producerNode.length;i++)Ba(t.producerNode[i],t.producerIndexOfThis[i]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function $a(t){Pr(t);for(let e=0;e<t.producerNode.length;e++){let i=t.producerNode[e],n=t.producerLastReadVersion[e];if(n!==i.version||(g0(i),n!==i.version))return!0}return!1}function fd(t){if(Pr(t),Jo(t))for(let e=0;e<t.producerNode.length;e++)Ba(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function b0(t,e,i){if(C0(t),Pr(t),t.liveConsumerNode.length===0)for(let n=0;n<t.producerNode.length;n++)t.producerIndexOfThis[n]=b0(t.producerNode[n],t,n);return t.liveConsumerIndexOfThis.push(i),t.liveConsumerNode.push(e)-1}function Ba(t,e){if(C0(t),Pr(t),t.liveConsumerNode.length===1)for(let n=0;n<t.producerNode.length;n++)Ba(t.producerNode[n],t.producerIndexOfThis[n]);let i=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[i],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[i],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let n=t.liveConsumerIndexOfThis[e],r=t.liveConsumerNode[e];Pr(r),r.producerIndexOfThis[n]=e}}function Jo(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function Pr(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function C0(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function _0(t){let e=Object.create(YE);e.computation=t;let i=()=>{if(g0(e),dd(e),e.value===La)throw e.error;return e.value};return i[Rn]=e,i}function JE(){throw new Error}function E0(){D0()}function x0(t){D0=t}function S0(t){let e=Object.create(T0);e.value=t;let i=()=>(dd(e),e.value);return i[Rn]=e,i}function hd(t,e){y0()||E0(),t.equal(t.value,e)||(t.value=e,ex(t))}function I0(t,e){y0()||E0(),hd(t,e(t.value))}function ex(t){t.version++,KE(),v0(t),XE?.()}function M0(t,e,i){let n=Object.create(tx);i&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=e;let r=l=>{n.cleanupFn=l};function o(l){return l.fn===null&&l.schedule===null}function s(l){o(l)||(fd(l),l.cleanupFn(),l.fn=null,l.schedule=null,l.cleanupFn=ud)}let a=()=>{if(n.fn===null)return;if(ZE())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(n.dirty=!1,n.hasRun&&!$a(n))return;n.hasRun=!0;let l=Va(n);try{n.cleanupFn(),n.cleanupFn=ud,n.fn(r)}finally{ja(n,l)}};return n.ref={notify:()=>w0(n),run:a,cleanup:()=>n.cleanupFn(),destroy:()=>s(n),[Rn]:n},n.ref}var ut,Yo,Pa,Rn,Xo,ld,cd,La,YE,D0,XE,T0,ud,tx,A0=y(()=>{"use strict";ut=null,Yo=!1,Pa=1,Rn=Symbol("SIGNAL");Xo={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};ld=Symbol("UNSET"),cd=Symbol("COMPUTING"),La=Symbol("ERRORED"),YE=z(b({},Xo),{value:ld,dirty:!0,error:null,equal:m0,producerMustRecompute(t){return t.value===ld||t.value===cd},producerRecomputeValue(t){if(t.value===cd)throw new Error("Detected cycle in computations.");let e=t.value;t.value=cd;let i=Va(t),n;try{n=t.computation()}catch(r){n=La,t.error=r}finally{ja(t,i)}if(e!==ld&&e!==La&&n!==La&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}});D0=JE;XE=null;T0=z(b({},Xo),{equal:m0,value:void 0});ud=()=>{},tx=z(b({},Xo),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:ud})});function re(t){return typeof t=="function"}var rt=y(()=>{"use strict"});function Lr(t){let i=t(n=>{Error.call(n),n.stack=new Error().stack});return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}var Ua=y(()=>{"use strict"});var Ha,N0=y(()=>{"use strict";Ua();Ha=Lr(t=>function(i){t(this),this.message=i?`${i.length} errors occurred during unsubscription:
${i.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
  `)}`:"",this.name="UnsubscriptionError",this.errors=i})});function Xi(t,e){if(t){let i=t.indexOf(e);0<=i&&t.splice(i,1)}}var qa=y(()=>{"use strict"});function za(t){return t instanceof He||t&&"closed"in t&&re(t.remove)&&re(t.add)&&re(t.unsubscribe)}function R0(t){re(t)?t():t.unsubscribe()}var He,pd,er=y(()=>{"use strict";rt();N0();qa();He=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:i}=this;if(i)if(this._parentage=null,Array.isArray(i))for(let o of i)o.remove(this);else i.remove(this);let{initialTeardown:n}=this;if(re(n))try{n()}catch(o){e=o instanceof Ha?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{R0(o)}catch(s){e=e??[],s instanceof Ha?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Ha(e)}}add(e){var i;if(e&&e!==this)if(this.closed)R0(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(i=this._finalizers)!==null&&i!==void 0?i:[]).push(e)}}_hasParent(e){let{_parentage:i}=this;return i===e||Array.isArray(i)&&i.includes(e)}_addParent(e){let{_parentage:i}=this;this._parentage=Array.isArray(i)?(i.push(e),i):i?[i,e]:e}_removeParent(e){let{_parentage:i}=this;i===e?this._parentage=null:Array.isArray(i)&&Xi(i,e)}remove(e){let{_finalizers:i}=this;i&&Xi(i,e),e instanceof t&&e._removeParent(this)}};He.EMPTY=(()=>{let t=new He;return t.closed=!0,t})();pd=He.EMPTY});var gn,es=y(()=>{"use strict";gn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var Vr,md=y(()=>{"use strict";Vr={setTimeout(t,e,...i){let{delegate:n}=Vr;return n?.setTimeout?n.setTimeout(t,e,...i):setTimeout(t,e,...i)},clearTimeout(t){let{delegate:e}=Vr;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0}});function Ga(t){Vr.setTimeout(()=>{let{onUnhandledError:e}=gn;if(e)e(t);else throw t})}var gd=y(()=>{"use strict";es();md()});function tr(){}var Wa=y(()=>{"use strict"});function k0(t){return vd("E",void 0,t)}function F0(t){return vd("N",t,void 0)}function vd(t,e,i){return{kind:t,value:e,error:i}}var O0,P0=y(()=>{"use strict";O0=vd("C",void 0,void 0)});function jr(t){if(gn.useDeprecatedSynchronousErrorHandling){let e=!nr;if(e&&(nr={errorThrown:!1,error:null}),t(),e){let{errorThrown:i,error:n}=nr;if(nr=null,i)throw n}}else t()}function L0(t){gn.useDeprecatedSynchronousErrorHandling&&nr&&(nr.errorThrown=!0,nr.error=t)}var nr,Qa=y(()=>{"use strict";es();nr=null});function yd(t,e){return nx.call(t,e)}function Za(t){gn.useDeprecatedSynchronousErrorHandling?L0(t):Ga(t)}function ix(t){throw t}function wd(t,e){let{onStoppedNotification:i}=gn;i&&Vr.setTimeout(()=>i(t,e))}var ir,nx,bd,Jn,rx,Ka=y(()=>{"use strict";rt();er();es();gd();Wa();P0();md();Qa();ir=class extends He{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,za(e)&&e.add(this)):this.destination=rx}static create(e,i,n){return new Jn(e,i,n)}next(e){this.isStopped?wd(F0(e),this):this._next(e)}error(e){this.isStopped?wd(k0(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?wd(O0,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()}}},nx=Function.prototype.bind;bd=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:i}=this;if(i.next)try{i.next(e)}catch(n){Za(n)}}error(e){let{partialObserver:i}=this;if(i.error)try{i.error(e)}catch(n){Za(n)}else Za(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(i){Za(i)}}},Jn=class extends ir{constructor(e,i,n){super();let r;if(re(e)||!e)r={next:e??void 0,error:i??void 0,complete:n??void 0};else{let o;this&&gn.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&yd(e.next,o),error:e.error&&yd(e.error,o),complete:e.complete&&yd(e.complete,o)}):r=e}this.destination=new bd(r)}};rx={closed:!0,next:tr,error:ix,complete:tr}});var $r,Ya=y(()=>{"use strict";$r=typeof Symbol=="function"&&Symbol.observable||"@@observable"});function ot(t){return t}var Xn=y(()=>{"use strict"});function Cd(...t){return _d(t)}function _d(t){return t.length===0?ot:t.length===1?t[0]:function(i){return t.reduce((n,r)=>r(n),i)}}var Dd=y(()=>{"use strict";Xn()});function V0(t){var e;return(e=t??gn.Promise)!==null&&e!==void 0?e:Promise}function ox(t){return t&&re(t.next)&&re(t.error)&&re(t.complete)}function sx(t){return t&&t instanceof ir||ox(t)&&za(t)}var pe,At=y(()=>{"use strict";Ka();er();Ya();Dd();es();rt();Qa();pe=(()=>{class t{constructor(i){i&&(this._subscribe=i)}lift(i){let n=new t;return n.source=this,n.operator=i,n}subscribe(i,n,r){let o=sx(i)?i:new Jn(i,n,r);return jr(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(i){try{return this._subscribe(i)}catch(n){i.error(n)}}forEach(i,n){return n=V0(n),new n((r,o)=>{let s=new Jn({next:a=>{try{i(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(i){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(i)}[$r](){return this}pipe(...i){return _d(i)(this)}toPromise(i){return i=V0(i),new i((n,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>n(o))})}}return t.create=e=>new t(e),t})()});function Ed(t){return re(t?.lift)}function ue(t){return e=>{if(Ed(e))return e.lift(function(i){try{return t(i,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}var Ge=y(()=>{"use strict";rt()});function ae(t,e,i,n,r){return new xd(t,e,i,n,r)}var xd,Je=y(()=>{"use strict";Ka();xd=class extends ir{constructor(e,i,n,r,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=i?function(a){try{i(a)}catch(l){e.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:i}=this;super.unsubscribe(),!i&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}}});function Br(){return ue((t,e)=>{let i=null;t._refCount++;let n=ae(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){i=null;return}let r=t._connection,o=i;i=null,r&&(!o||r===o)&&r.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(i=t.connect())})}var Sd=y(()=>{"use strict";Ge();Je()});var Ur,j0=y(()=>{"use strict";At();er();Sd();Je();Ge();Ur=class extends pe{constructor(e,i){super(),this.source=e,this.subjectFactory=i,this._subject=null,this._refCount=0,this._connection=null,Ed(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new He;let i=this.getSubject();e.add(this.source.subscribe(ae(i,void 0,()=>{this._teardown(),i.complete()},n=>{this._teardown(),i.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=He.EMPTY)}return e}refCount(){return Br()(this)}}});var $0,B0=y(()=>{"use strict";Ua();$0=Lr(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"})});var ge,Ja,ts=y(()=>{"use strict";At();er();B0();qa();Qa();ge=(()=>{class t extends pe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(i){let n=new Ja(this,this);return n.operator=i,n}_throwIfClosed(){if(this.closed)throw new $0}next(i){jr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(i)}})}error(i){jr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=i;let{observers:n}=this;for(;n.length;)n.shift().error(i)}})}complete(){jr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:i}=this;for(;i.length;)i.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var i;return((i=this.observers)===null||i===void 0?void 0:i.length)>0}_trySubscribe(i){return this._throwIfClosed(),super._trySubscribe(i)}_subscribe(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)}_innerSubscribe(i){let{hasError:n,isStopped:r,observers:o}=this;return n||r?pd:(this.currentObservers=null,o.push(i),new He(()=>{this.currentObservers=null,Xi(o,i)}))}_checkFinalizedStatuses(i){let{hasError:n,thrownError:r,isStopped:o}=this;n?i.error(r):o&&i.complete()}asObservable(){let i=new pe;return i.source=this,i}}return t.create=(e,i)=>new Ja(e,i),t})(),Ja=class extends ge{constructor(e,i){super(),this.destination=e,this.source=i}next(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,e)}error(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,e)}complete(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)}_subscribe(e){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&n!==void 0?n:pd}}});var ke,U0=y(()=>{"use strict";ts();ke=class extends ge{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let i=super._subscribe(e);return!i.closed&&e.next(this._value),i}getValue(){let{hasError:e,thrownError:i,_value:n}=this;if(e)throw i;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}}});var ns,Id=y(()=>{"use strict";ns={now(){return(ns.delegate||Date).now()},delegate:void 0}});var Xt,Td=y(()=>{"use strict";ts();Id();Xt=class extends ge{constructor(e=1/0,i=1/0,n=ns){super(),this._bufferSize=e,this._windowTime=i,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=i===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,i)}next(e){let{isStopped:i,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;i||(n.push(e),!r&&n.push(o.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let i=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:r}=this,o=r.slice();for(let s=0;s<o.length&&!e.closed;s+=n?1:2)e.next(o[s]);return this._checkFinalizedStatuses(e),i}_trimBuffer(){let{_bufferSize:e,_timestampProvider:i,_buffer:n,_infiniteTimeWindow:r}=this,o=(r?1:2)*e;if(e<1/0&&o<n.length&&n.splice(0,n.length-o),!r){let s=i.now(),a=0;for(let l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}}}});var Xa,H0=y(()=>{"use strict";er();Xa=class extends He{constructor(e,i){super()}schedule(e,i=0){return this}}});var is,q0=y(()=>{"use strict";is={setInterval(t,e,...i){let{delegate:n}=is;return n?.setInterval?n.setInterval(t,e,...i):setInterval(t,e,...i)},clearInterval(t){let{delegate:e}=is;return(e?.clearInterval||clearInterval)(t)},delegate:void 0}});var el,z0=y(()=>{"use strict";H0();q0();qa();el=class extends Xa{constructor(e,i){super(e,i),this.scheduler=e,this.work=i,this.pending=!1}schedule(e,i=0){var n;if(this.closed)return this;this.state=e;let r=this.id,o=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(o,r,i)),this.pending=!0,this.delay=i,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,i),this}requestAsyncId(e,i,n=0){return is.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,i,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return i;i!=null&&is.clearInterval(i)}execute(e,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,i);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,i){let n=!1,r;try{this.work(e)}catch(o){n=!0,r=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:e,scheduler:i}=this,{actions:n}=i;this.work=this.state=this.scheduler=null,this.pending=!1,Xi(n,this),e!=null&&(this.id=this.recycleAsyncId(i,e,null)),this.delay=null,super.unsubscribe()}}}});var Hr,G0=y(()=>{"use strict";Id();Hr=class t{constructor(e,i=t.now){this.schedulerActionCtor=e,this.now=i}schedule(e,i=0,n){return new this.schedulerActionCtor(this,e).schedule(n,i)}};Hr.now=ns.now});var tl,W0=y(()=>{"use strict";G0();tl=class extends Hr{constructor(e,i=Hr.now){super(e,i),this.actions=[],this._active=!1}flush(e){let{actions:i}=this;if(this._active){i.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=i.shift());if(this._active=!1,n){for(;e=i.shift();)e.unsubscribe();throw n}}}});var Md,Q0,Ad=y(()=>{"use strict";z0();W0();Md=new tl(el),Q0=Md});var gt,rs=y(()=>{"use strict";At();gt=new pe(t=>t.complete())});function nl(t){return t&&re(t.schedule)}var Nd=y(()=>{"use strict";rt()});function Rd(t){return t[t.length-1]}function il(t){return re(Rd(t))?t.pop():void 0}function On(t){return nl(Rd(t))?t.pop():void 0}function Z0(t,e){return typeof Rd(t)=="number"?t.pop():e}var rr=y(()=>{"use strict";rt();Nd()});function Y0(t,e,i,n){function r(o){return o instanceof i?o:new i(function(s){s(o)})}return new(i||(i=Promise))(function(o,s){function a(u){try{c(n.next(u))}catch(d){s(d)}}function l(u){try{c(n.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((n=n.apply(t,e||[])).next())})}function K0(t){var e=typeof Symbol=="function"&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function or(t){return this instanceof or?(this.v=t,this):new or(t)}function J0(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i.apply(t,e||[]),r,o=[];return r={},a("next"),a("throw"),a("return",s),r[Symbol.asyncIterator]=function(){return this},r;function s(g){return function(w){return Promise.resolve(w).then(g,d)}}function a(g,w){n[g]&&(r[g]=function(D){return new Promise(function(S,O){o.push([g,D,S,O])>1||l(g,D)})},w&&(r[g]=w(r[g])))}function l(g,w){try{c(n[g](w))}catch(D){m(o[0][3],D)}}function c(g){g.value instanceof or?Promise.resolve(g.value.v).then(u,d):m(o[0][2],g)}function u(g){l("next",g)}function d(g){l("throw",g)}function m(g,w){g(w),o.shift(),o.length&&l(o[0][0],o[0][1])}}function X0(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],i;return e?e.call(t):(t=typeof K0=="function"?K0(t):t[Symbol.iterator](),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(o){i[o]=t[o]&&function(s){return new Promise(function(a,l){s=t[o](s),r(a,l,s.done,s.value)})}}function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}}var Od=y(()=>{"use strict"});var rl,kd=y(()=>{"use strict";rl=t=>t&&typeof t.length=="number"&&typeof t!="function"});function ol(t){return re(t?.then)}var Fd=y(()=>{"use strict";rt()});function sl(t){return re(t[$r])}var Pd=y(()=>{"use strict";Ya();rt()});function al(t){return Symbol.asyncIterator&&re(t?.[Symbol.asyncIterator])}var Ld=y(()=>{"use strict";rt()});function ll(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}var Vd=y(()=>{"use strict"});function ax(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var cl,jd=y(()=>{"use strict";cl=ax()});function ul(t){return re(t?.[cl])}var $d=y(()=>{"use strict";jd();rt()});function dl(t){return J0(this,arguments,function*(){let i=t.getReader();try{for(;;){let{value:n,done:r}=yield or(i.read());if(r)return yield or(void 0);yield yield or(n)}}finally{i.releaseLock()}})}function fl(t){return re(t?.getReader)}var hl=y(()=>{"use strict";Od();rt()});function Ie(t){if(t instanceof pe)return t;if(t!=null){if(sl(t))return lx(t);if(rl(t))return cx(t);if(ol(t))return ux(t);if(al(t))return ev(t);if(ul(t))return dx(t);if(fl(t))return fx(t)}throw ll(t)}function lx(t){return new pe(e=>{let i=t[$r]();if(re(i.subscribe))return i.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function cx(t){return new pe(e=>{for(let i=0;i<t.length&&!e.closed;i++)e.next(t[i]);e.complete()})}function ux(t){return new pe(e=>{t.then(i=>{e.closed||(e.next(i),e.complete())},i=>e.error(i)).then(null,Ga)})}function dx(t){return new pe(e=>{for(let i of t)if(e.next(i),e.closed)return;e.complete()})}function ev(t){return new pe(e=>{hx(t,e).catch(i=>e.error(i))})}function fx(t){return ev(dl(t))}function hx(t,e){var i,n,r,o;return Y0(this,void 0,void 0,function*(){try{for(i=X0(t);n=yield i.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){r={error:s}}finally{try{n&&!n.done&&(o=i.return)&&(yield o.call(i))}finally{if(r)throw r.error}}e.complete()})}var Nt=y(()=>{"use strict";Od();kd();Fd();At();Pd();Ld();Vd();$d();hl();rt();gd();Ya()});function $t(t,e,i,n=0,r=!1){let o=e.schedule(function(){i(),r?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!r)return o}var qr=y(()=>{"use strict"});function pl(t,e=0){return ue((i,n)=>{i.subscribe(ae(n,r=>$t(n,t,()=>n.next(r),e),()=>$t(n,t,()=>n.complete(),e),r=>$t(n,t,()=>n.error(r),e)))})}var Bd=y(()=>{"use strict";qr();Ge();Je()});function ml(t,e=0){return ue((i,n)=>{n.add(t.schedule(()=>i.subscribe(n),e))})}var Ud=y(()=>{"use strict";Ge()});function tv(t,e){return Ie(t).pipe(ml(e),pl(e))}var nv=y(()=>{"use strict";Nt();Bd();Ud()});function iv(t,e){return Ie(t).pipe(ml(e),pl(e))}var rv=y(()=>{"use strict";Nt();Bd();Ud()});function ov(t,e){return new pe(i=>{let n=0;return e.schedule(function(){n===t.length?i.complete():(i.next(t[n++]),i.closed||this.schedule())})})}var sv=y(()=>{"use strict";At()});function av(t,e){return new pe(i=>{let n;return $t(i,e,()=>{n=t[cl](),$t(i,e,()=>{let r,o;try{({value:r,done:o}=n.next())}catch(s){i.error(s);return}o?i.complete():i.next(r)},0,!0)}),()=>re(n?.return)&&n.return()})}var lv=y(()=>{"use strict";At();jd();rt();qr()});function gl(t,e){if(!t)throw new Error("Iterable cannot be null");return new pe(i=>{$t(i,e,()=>{let n=t[Symbol.asyncIterator]();$t(i,e,()=>{n.next().then(r=>{r.done?i.complete():i.next(r.value)})},0,!0)})})}var Hd=y(()=>{"use strict";At();qr()});function cv(t,e){return gl(dl(t),e)}var uv=y(()=>{"use strict";Hd();hl()});function dv(t,e){if(t!=null){if(sl(t))return tv(t,e);if(rl(t))return ov(t,e);if(ol(t))return iv(t,e);if(al(t))return gl(t,e);if(ul(t))return av(t,e);if(fl(t))return cv(t,e)}throw ll(t)}var fv=y(()=>{"use strict";nv();rv();sv();lv();Hd();Pd();Fd();kd();$d();Ld();Vd();hl();uv()});function _e(t,e){return e?dv(t,e):Ie(t)}var zr=y(()=>{"use strict";fv();Nt()});function G(...t){let e=On(t);return _e(t,e)}var hv=y(()=>{"use strict";rr();zr()});function Gr(t,e){let i=re(t)?t:()=>t,n=r=>r.error(i());return new pe(e?r=>e.schedule(n,0,r):n)}var pv=y(()=>{"use strict";At();rt()});function qd(t){return!!t&&(t instanceof pe||re(t.lift)&&re(t.subscribe))}var mv=y(()=>{"use strict";At();rt()});var ei,os=y(()=>{"use strict";Ua();ei=Lr(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"})});function gv(t){return t instanceof Date&&!isNaN(t)}var vv=y(()=>{"use strict"});function q(t,e){return ue((i,n)=>{let r=0;i.subscribe(ae(n,o=>{n.next(t.call(e,o,r++))}))})}var Wr=y(()=>{"use strict";Ge();Je()});function mx(t,e){return px(e)?t(...e):t(e)}function vl(t){return q(e=>mx(t,e))}var px,zd=y(()=>{"use strict";Wr();({isArray:px}=Array)});function yl(t){if(t.length===1){let e=t[0];if(gx(e))return{args:e,keys:null};if(bx(e)){let i=wx(e);return{args:i.map(n=>e[n]),keys:i}}}return{args:t,keys:null}}function bx(t){return t&&typeof t=="object"&&vx(t)===yx}var gx,vx,yx,wx,Gd=y(()=>{"use strict";({isArray:gx}=Array),{getPrototypeOf:vx,prototype:yx,keys:wx}=Object});function wl(t,e){return t.reduce((i,n,r)=>(i[n]=e[r],i),{})}var Wd=y(()=>{"use strict"});function Qr(...t){let e=On(t),i=il(t),{args:n,keys:r}=yl(t);if(n.length===0)return _e([],e);let o=new pe(Cx(n,e,r?s=>wl(r,s):ot));return i?o.pipe(vl(i)):o}function Cx(t,e,i=ot){return n=>{yv(e,()=>{let{length:r}=t,o=new Array(r),s=r,a=r;for(let l=0;l<r;l++)yv(e,()=>{let c=_e(t[l],e),u=!1;c.subscribe(ae(n,d=>{o[l]=d,u||(u=!0,a--),a||n.next(i(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function yv(t,e,i){t?$t(i,t,e):e()}var wv=y(()=>{"use strict";At();Gd();zr();Xn();zd();rr();Wd();Je();qr()});function bv(t,e,i,n,r,o,s,a){let l=[],c=0,u=0,d=!1,m=()=>{d&&!l.length&&!c&&e.complete()},g=D=>c<n?w(D):l.push(D),w=D=>{o&&e.next(D),c++;let S=!1;Ie(i(D,u++)).subscribe(ae(e,O=>{r?.(O),o?g(O):e.next(O)},()=>{S=!0},void 0,()=>{if(S)try{for(c--;l.length&&c<n;){let O=l.shift();s?$t(e,s,()=>w(O)):w(O)}m()}catch(O){e.error(O)}}))};return t.subscribe(ae(e,g,()=>{d=!0,m()})),()=>{a?.()}}var Cv=y(()=>{"use strict";Nt();qr();Je()});function je(t,e,i=1/0){return re(e)?je((n,r)=>q((o,s)=>e(n,o,r,s))(Ie(t(n,r))),i):(typeof e=="number"&&(i=e),ue((n,r)=>bv(n,r,t,i)))}var Zr=y(()=>{"use strict";Wr();Nt();Ge();Cv();rt()});function ss(t=1/0){return je(ot,t)}var Qd=y(()=>{"use strict";Zr();Xn()});function _v(){return ss(1)}var Dv=y(()=>{"use strict";Qd()});function _i(...t){return _v()(_e(t,On(t)))}var bl=y(()=>{"use strict";Dv();rr();zr()});function Cl(t){return new pe(e=>{Ie(t()).subscribe(e)})}var Ev=y(()=>{"use strict";At();Nt()});function kn(...t){let e=il(t),{args:i,keys:n}=yl(t),r=new pe(o=>{let{length:s}=i;if(!s){o.complete();return}let a=new Array(s),l=s,c=s;for(let u=0;u<s;u++){let d=!1;Ie(i[u]).subscribe(ae(o,m=>{d||(d=!0,c--),a[u]=m},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(n?wl(n,a):a),o.complete())}))}});return e?r.pipe(vl(e)):r}var xv=y(()=>{"use strict";At();Gd();Nt();rr();Je();zd();Wd()});function sr(t=0,e,i=Q0){let n=-1;return e!=null&&(nl(e)?i=e:n=e),new pe(r=>{let o=gv(t)?+t-i.now():t;o<0&&(o=0);let s=0;return i.schedule(function(){r.closed||(r.next(s++),0<=n?this.schedule(void 0,n):r.complete())},o)})}var _l=y(()=>{"use strict";At();Ad();Nd();vv()});function Zd(...t){let e=On(t),i=Z0(t,1/0),n=t;return n.length?n.length===1?Ie(n[0]):ss(i)(_e(n,e)):gt}var Sv=y(()=>{"use strict";Qd();Nt();rs();rr();zr()});function dt(t,e){return ue((i,n)=>{let r=0;i.subscribe(ae(n,o=>t.call(e,o,r++)&&n.next(o)))})}var as=y(()=>{"use strict";Ge();Je()});var Iv=y(()=>{"use strict"});function en(t){return ue((e,i)=>{let n=null,r=!1,o;n=e.subscribe(ae(i,void 0,void 0,s=>{o=Ie(t(s,en(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(i)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(i))})}var Kd=y(()=>{"use strict";Nt();Je();Ge()});function Tv(t,e,i,n,r){return(o,s)=>{let a=i,l=e,c=0;o.subscribe(ae(s,u=>{let d=c++;l=a?t(l,u,d):(a=!0,u),n&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}var Mv=y(()=>{"use strict";Je()});function un(t,e){return re(e)?je(t,e,1):je(t,1)}var Yd=y(()=>{"use strict";Zr();rt()});function Di(t){return ue((e,i)=>{let n=!1;e.subscribe(ae(i,r=>{n=!0,i.next(r)},()=>{n||i.next(t),i.complete()}))})}var Dl=y(()=>{"use strict";Ge();Je()});function We(t){return t<=0?()=>gt:ue((e,i)=>{let n=0;e.subscribe(ae(i,r=>{++n<=t&&(i.next(r),t<=n&&i.complete())}))})}var ls=y(()=>{"use strict";rs();Ge();Je()});function Av(){return ue((t,e)=>{t.subscribe(ae(e,tr))})}var Nv=y(()=>{"use strict";Ge();Je();Wa()});function cs(t){return q(()=>t)}var Jd=y(()=>{"use strict";Wr()});function Xd(t,e){return e?i=>_i(e.pipe(We(1),Av()),i.pipe(Xd(t))):je((i,n)=>Ie(t(i,n)).pipe(We(1),cs(i)))}var Rv=y(()=>{"use strict";bl();ls();Nv();Jd();Zr();Nt()});function Ei(t,e=Md){let i=sr(t,e);return Xd(()=>i)}var Ov=y(()=>{"use strict";Ad();Rv();_l()});function El(t=_x){return ue((e,i)=>{let n=!1;e.subscribe(ae(i,r=>{n=!0,i.next(r)},()=>n?i.complete():i.error(t())))})}function _x(){return new ei}var ef=y(()=>{"use strict";os();Ge();Je()});function xi(t){return ue((e,i)=>{try{e.subscribe(i)}finally{i.add(t)}})}var kv=y(()=>{"use strict";Ge()});function Fn(t,e){let i=arguments.length>=2;return n=>n.pipe(t?dt((r,o)=>t(r,o,n)):ot,We(1),i?Di(e):El(()=>new ei))}var Fv=y(()=>{"use strict";os();as();ls();Dl();ef();Xn()});function Kr(t){return t<=0?()=>gt:ue((e,i)=>{let n=[];e.subscribe(ae(i,r=>{n.push(r),t<n.length&&n.shift()},()=>{for(let r of n)i.next(r);i.complete()},void 0,()=>{n=null}))})}var tf=y(()=>{"use strict";rs();Ge();Je()});function nf(t,e){let i=arguments.length>=2;return n=>n.pipe(t?dt((r,o)=>t(r,o,n)):ot,Kr(1),i?Di(e):El(()=>new ei))}var Pv=y(()=>{"use strict";os();as();tf();ef();Dl();Xn()});function us(t=1/0){let e;t&&typeof t=="object"?e=t:e={count:t};let{count:i=1/0,delay:n,resetOnSuccess:r=!1}=e;return i<=0?ot:ue((o,s)=>{let a=0,l,c=()=>{let u=!1;l=o.subscribe(ae(s,d=>{r&&(a=0),s.next(d)},void 0,d=>{if(a++<i){let m=()=>{l?(l.unsubscribe(),l=null,c()):u=!0};if(n!=null){let g=typeof n=="number"?sr(n):Ie(n(d,a)),w=ae(s,()=>{w.unsubscribe(),m()},()=>{s.complete()});g.subscribe(w)}else m()}else s.error(d)})),u&&(l.unsubscribe(),l=null,c())};c()})}var Lv=y(()=>{"use strict";Ge();Je();Xn();_l();Nt()});function Yr(t,e){return ue(Tv(t,e,arguments.length>=2,!0))}var rf=y(()=>{"use strict";Ge();Mv()});function Vv(t={}){let{connector:e=()=>new ge,resetOnError:i=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=t;return o=>{let s,a,l,c=0,u=!1,d=!1,m=()=>{a?.unsubscribe(),a=void 0},g=()=>{m(),s=l=void 0,u=d=!1},w=()=>{let D=s;g(),D?.unsubscribe()};return ue((D,S)=>{c++,!d&&!u&&m();let O=l=l??e();S.add(()=>{c--,c===0&&!d&&!u&&(a=of(w,r))}),O.subscribe(S),!s&&c>0&&(s=new Jn({next:K=>O.next(K),error:K=>{d=!0,m(),a=of(g,i,K),O.error(K)},complete:()=>{u=!0,m(),a=of(g,n),O.complete()}}),Ie(D).subscribe(s))})(o)}}function of(t,e,...i){if(e===!0){t();return}if(e===!1)return;let n=new Jn({next:()=>{n.unsubscribe(),t()}});return Ie(e(...i)).subscribe(n)}var jv=y(()=>{"use strict";Nt();ts();Ka();Ge()});function Si(t,e,i){let n,r=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:e=1/0,refCount:r=!1,scheduler:i}=t:n=t??1/0,Vv({connector:()=>new Xt(n,e,i),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}var $v=y(()=>{"use strict";Td();jv()});function sf(...t){let e=On(t);return ue((i,n)=>{(e?_i(t,i,e):_i(t,i)).subscribe(n)})}var Bv=y(()=>{"use strict";bl();rr();Ge()});function Qe(t,e){return ue((i,n)=>{let r=null,o=0,s=!1,a=()=>s&&!r&&n.complete();i.subscribe(ae(n,l=>{r?.unsubscribe();let c=0,u=o++;Ie(t(l,u)).subscribe(r=ae(n,d=>n.next(e?e(l,d,u,c++):d),()=>{r=null,a()}))},()=>{s=!0,a()}))})}var af=y(()=>{"use strict";Nt();Ge();Je()});function ds(t){return ue((e,i)=>{Ie(t).subscribe(ae(i,()=>i.complete(),tr)),!i.closed&&e.subscribe(i)})}var Uv=y(()=>{"use strict";Ge();Je();Nt();Wa()});function qe(t,e,i){let n=re(t)||e||i?{next:t,error:e,complete:i}:t;return n?ue((r,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;r.subscribe(ae(o,l=>{var c;(c=n.next)===null||c===void 0||c.call(n,l),o.next(l)},()=>{var l;a=!1,(l=n.complete)===null||l===void 0||l.call(n),o.complete()},l=>{var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,l),o.error(l)},()=>{var l,c;a&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):ot}var lf=y(()=>{"use strict";rt();Ge();Je();Xn()});var Xe=y(()=>{"use strict";At();j0();ts();U0();Td();er();Dd();Xn();mv();os();wv();bl();Ev();xv();zr();Sv();hv();pv();_l();rs();Iv();Kd();Yd();Ov();as();Wr();Zr();Lv();rf();$v();af();ls();lf()});var ar=y(()=>{"use strict";Kd();Yd();Dl();as();kv();Fv();Pv();Wr();Jd();Zr();Sd();rf();Bv();af();ls();tf();Uv();lf()});function ic(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function As(t){return{toString:t}.toString()}function Dx(t){return function(...i){if(t){let n=t(...i);for(let r in n)this[r]=n[r]}}}function Ry(t,e,i){return As(()=>{let n=Dx(e);function r(...o){if(this instanceof r)return n.apply(this,o),this;let s=new r(...o);return a.annotation=s,a;function a(l,c,u){let d=l.hasOwnProperty(xl)?l[xl]:Object.defineProperty(l,xl,{value:[]})[xl];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}function Re(t){for(let e in t)if(t[e]===Re)return e;throw Error("Could not find renamed property on target object.")}function Ex(t,e){for(let i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function Ot(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Ot).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let i=e.indexOf(`
`);return i===-1?e:e.substring(0,i)}function Ef(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}function dn(t){return t.__forward_ref__=dn,t.toString=function(){return Ot(this())},t}function Rt(t){return Oy(t)?t():t}function Oy(t){return typeof t=="function"&&t.hasOwnProperty(xx)&&t.__forward_ref__===dn}function R(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function kt(t){return{providers:t.providers||[],imports:t.imports||[]}}function rc(t){return Hv(t,Fy)||Hv(t,Py)}function ky(t){return rc(t)!==null}function Hv(t,e){return t.hasOwnProperty(e)?t[e]:null}function Sx(t){let e=t&&(t[Fy]||t[Py]);return e||null}function qv(t){return t&&(t.hasOwnProperty(zv)||t.hasOwnProperty(Ix))?t[zv]:null}function Ly(t){return t&&!!t.\u0275providers}function Ut(t){return typeof t=="string"?t:t==null?"":String(t)}function Rx(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Ut(t)}function Ox(t,e){let i=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new N(-200,t)}function Rh(t,e){throw new N(-201,!1)}function Vy(){return xf}function Bt(t){let e=xf;return xf=t,e}function jy(t,e,i){let n=rc(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(i&de.Optional)return null;if(e!==void 0)return e;Rh(t,"Injector")}function Vx(){return to}function Ii(t){let e=to;return to=t,e}function jx(t,e=de.Default){if(to===void 0)throw new N(-203,!1);return to===null?jy(t,void 0,e):to.get(t,e&de.Optional?null:void 0,e)}function M(t,e=de.Default){return(Vy()||jx)(Rt(t),e)}function T(t,e=de.Default){return M(t,oc(e))}function oc(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function If(t){let e=[];for(let i=0;i<t.length;i++){let n=Rt(t[i]);if(Array.isArray(n)){if(n.length===0)throw new N(900,!1);let r,o=de.Default;for(let s=0;s<n.length;s++){let a=n[s],l=$x(a);typeof l=="number"?l===-1?r=a.token:o|=l:r=a}e.push(M(r,o))}else e.push(M(n))}return e}function $y(t,e){return t[Sf]=e,t.prototype[Sf]=e,t}function $x(t){return t[Sf]}function Bx(t,e,i,n){let r=t[jl];throw e[Wv]&&r.unshift(e[Wv]),t.message=Ux(`
`+t.message,r,i,n),t[Fx]=r,t[jl]=null,t}function Ux(t,e,i,n=null){t=t&&t.charAt(0)===`
`&&t.charAt(1)==Lx?t.slice(2):t;let r=Ot(e);if(Array.isArray(e))r=e.map(Ot).join(" -> ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):Ot(a)))}r=`{${o.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${t.replace(Px,`
  `)}`}function ur(t,e){let i=t.hasOwnProperty(Vl);return i?t[Vl]:null}function Hx(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],o=e[n];if(i&&(r=i(r),o=i(o)),o!==r)return!1}return!0}function qx(t){return t.flat(Number.POSITIVE_INFINITY)}function kh(t,e){t.forEach(i=>Array.isArray(i)?kh(i,e):e(i))}function Uy(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function $l(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function zx(t,e,i,n){let r=t.length;if(r==e)t.push(i,n);else if(r===1)t.push(n,t[0]),t[0]=i;else{for(r--,t.push(t[r-1],t[r]);r>e;){let o=r-2;t[r]=t[o],r--}t[e]=i,t[e+1]=n}}function sc(t,e,i){let n=Ns(t,e);return n>=0?t[n|1]=i:(n=~n,zx(t,n,e,i)),n}function cf(t,e){let i=Ns(t,e);if(i>=0)return t[i|1]}function Ns(t,e){return Gx(t,e,1)}function Gx(t,e,i){let n=0,r=t.length>>i;for(;r!==n;){let o=n+(r-n>>1),s=t[o<<i];if(e===s)return o<<i;s>e?r=o:n=o+1}return~(r<<i)}function Wx(t,e,i){let n=t.length;for(;;){let r=t.indexOf(e,i);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=e.length;if(r+o===n||t.charCodeAt(r+o)<=32)return r}i=r+1}}function Tf(t,e,i){let n=0;for(;n<i.length;){let r=i[n];if(typeof r=="number"){if(r!==0)break;n++;let o=i[n++],s=i[n++],a=i[n++];t.setAttribute(e,s,a,o)}else{let o=r,s=i[++n];Qx(o)?t.setProperty(e,o,s):t.setAttribute(e,o,s),n++}}return n}function Gy(t){return t===3||t===4||t===6}function Qx(t){return t.charCodeAt(0)===64}function ps(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let i=-1;for(let n=0;n<e.length;n++){let r=e[n];typeof r=="number"?i=r:i===0||(i===-1||i===2?Qv(t,i,r,null,e[++n]):Qv(t,i,r,null,null))}}return t}function Qv(t,e,i,n,r){let o=0,s=t.length;if(e===-1)s=-1;else for(;o<t.length;){let a=t[o++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=o-1;break}}}for(;o<t.length;){let a=t[o];if(typeof a=="number")break;if(a===i){if(n===null){r!==null&&(t[o+1]=r);return}else if(n===t[o+1]){t[o+2]=r;return}}o++,n!==null&&o++,r!==null&&o++}s!==-1&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,i),n!==null&&t.splice(o++,0,n),r!==null&&t.splice(o++,0,r)}function Zx(t,e,i,n){let r=0;if(n){for(;r<e.length&&typeof e[r]=="string";r+=2)if(e[r]==="class"&&Wx(e[r+1].toLowerCase(),i,0)!==-1)return!0}else if(Fh(t))return!1;if(r=e.indexOf(1,r),r>-1){let o;for(;++r<e.length&&typeof(o=e[r])=="string";)if(o.toLowerCase()===i)return!0}return!1}function Fh(t){return t.type===4&&t.value!==Wy}function Kx(t,e,i){let n=t.type===4&&!i?Wy:t.value;return e===n}function Yx(t,e,i){let n=4,r=t.attrs,o=r!==null?eS(r):0,s=!1;for(let a=0;a<e.length;a++){let l=e[a];if(typeof l=="number"){if(!s&&!vn(n)&&!vn(l))return!1;if(s&&vn(l))continue;s=!1,n=l|n&1;continue}if(!s)if(n&4){if(n=2|n&1,l!==""&&!Kx(t,l,i)||l===""&&e.length===1){if(vn(n))return!1;s=!0}}else if(n&8){if(r===null||!Zx(t,r,l,i)){if(vn(n))return!1;s=!0}}else{let c=e[++a],u=Jx(l,r,Fh(t),i);if(u===-1){if(vn(n))return!1;s=!0;continue}if(c!==""){let d;if(u>o?d="":d=r[u+1].toLowerCase(),n&2&&c!==d){if(vn(n))return!1;s=!0}}}}return vn(n)||s}function vn(t){return(t&1)===0}function Jx(t,e,i,n){if(e===null)return-1;let r=0;if(n||!i){let o=!1;for(;r<e.length;){let s=e[r];if(s===t)return r;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=e[++r];for(;typeof a=="string";)a=e[++r];continue}else{if(s===4)break;if(s===0){r+=4;continue}}r+=o?1:2}return-1}else return tS(e,t)}function Xx(t,e,i=!1){for(let n=0;n<e.length;n++)if(Yx(t,e[n],i))return!0;return!1}function eS(t){for(let e=0;e<t.length;e++){let i=t[e];if(Gy(i))return e}return t.length}function tS(t,e){let i=t.indexOf(4);if(i>-1)for(i++;i<t.length;){let n=t[i];if(typeof n=="number")return-1;if(n===e)return i;i++}return-1}function Zv(t,e){return t?":not("+e.trim()+")":e}function nS(t){let e=t[0],i=1,n=2,r="",o=!1;for(;i<t.length;){let s=t[i];if(typeof s=="string")if(n&2){let a=t[++i];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else n&8?r+="."+s:n&4&&(r+=" "+s);else r!==""&&!vn(s)&&(e+=Zv(o,r),r=""),n=s,o=o||!vn(n);i++}return r!==""&&(e+=Zv(o,r)),e}function iS(t){return t.map(nS).join(",")}function rS(t){let e=[],i=[],n=1,r=2;for(;n<t.length;){let o=t[n];if(typeof o=="string")r===2?o!==""&&e.push(o,t[++n]):r===8&&i.push(o);else{if(!vn(r))break;r=o}n++}return{attrs:e,classes:i}}function V(t){return As(()=>{let e=Jy(t),i=z(b({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===zy.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Vn.Emulated,styles:t.styles||Ht,_:null,schemas:t.schemas||null,tView:null,id:""});Xy(i);let n=t.dependencies;return i.directiveDefs=Yv(n,!1),i.pipeDefs=Yv(n,!0),i.id=aS(i),i})}function oS(t){return dr(t)||Qy(t)}function sS(t){return t!==null}function Ft(t){return As(()=>({type:t.type,bootstrap:t.bootstrap||Ht,declarations:t.declarations||Ht,imports:t.imports||Ht,exports:t.exports||Ht,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Kv(t,e){if(t==null)return io;let i={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],o,s,a=Te.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),e?(i[o]=a!==Te.None?[n,a]:n,e[o]=s):i[o]=n}return i}function Ce(t){return As(()=>{let e=Jy(t);return Xy(e),e})}function fo(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function dr(t){return t[Tx]||null}function Qy(t){return t[Mx]||null}function Zy(t){return t[Ax]||null}function Ky(t){let e=dr(t)||Qy(t)||Zy(t);return e!==null?e.standalone:!1}function Yy(t,e){let i=t[Nx]||null;if(!i&&e===!0)throw new Error(`Type ${Ot(t)} does not have '\u0275mod' property.`);return i}function Jy(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||io,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Ht,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Kv(t.inputs,e),outputs:Kv(t.outputs),debugInfo:null}}function Xy(t){t.features?.forEach(e=>e(t))}function Yv(t,e){if(!t)return null;let i=e?Zy:oS;return()=>(typeof t=="function"?t():t).map(n=>i(n)).filter(sS)}function aS(t){let e=0,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let r of i)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Pt(t){return{\u0275providers:t}}function lS(...t){return{\u0275providers:e1(!0,t),\u0275fromNgModule:!0}}function e1(t,...e){let i=[],n=new Set,r,o=s=>{i.push(s)};return kh(e,s=>{let a=s;Mf(a,o,[],n)&&(r||=[],r.push(a))}),r!==void 0&&t1(r,o),i}function t1(t,e){for(let i=0;i<t.length;i++){let{ngModule:n,providers:r}=t[i];Ph(r,o=>{e(o,n)})}}function Mf(t,e,i,n){if(t=Rt(t),!t)return!1;let r=null,o=qv(t),s=!o&&dr(t);if(!o&&!s){let l=t.ngModule;if(o=qv(l),o)r=l;else return!1}else{if(s&&!s.standalone)return!1;r=t}let a=n.has(r);if(s){if(a)return!1;if(n.add(r),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)Mf(c,e,i,n)}}else if(o){if(o.imports!=null&&!a){n.add(r);let c;try{kh(o.imports,u=>{Mf(u,e,i,n)&&(c||=[],c.push(u))})}finally{}c!==void 0&&t1(c,e)}if(!a){let c=ur(r)||(()=>new r);e({provide:r,useFactory:c,deps:Ht},r),e({provide:qy,useValue:r,multi:!0},r),e({provide:ro,useValue:()=>M(r),multi:!0},r)}let l=o.providers;if(l!=null&&!a){let c=t;Ph(l,u=>{e(u,c)})}}else return!1;return r!==t&&t.providers!==void 0}function Ph(t,e){for(let i of t)Ly(i)&&(i=i.\u0275providers),Array.isArray(i)?Ph(i,e):e(i)}function n1(t){return t!==null&&typeof t=="object"&&cS in t}function uS(t){return!!(t&&t.useExisting)}function dS(t){return!!(t&&t.useFactory)}function oo(t){return typeof t=="function"}function fS(t){return!!t.useClass}function Lh(){return uf===void 0&&(uf=new Bl),uf}function Af(t){let e=rc(t),i=e!==null?e.factory:ur(t);if(i!==null)return i;if(t instanceof L)throw new N(204,!1);if(t instanceof Function)return pS(t);throw new N(204,!1)}function pS(t){if(t.length>0)throw new N(204,!1);let i=Sx(t);return i!==null?()=>i.factory(t):()=>new t}function mS(t){if(n1(t))return Jr(void 0,t.useValue);{let e=i1(t);return Jr(e,Nl)}}function i1(t,e,i){let n;if(oo(t)){let r=Rt(t);return ur(r)||Af(r)}else if(n1(t))n=()=>Rt(t.useValue);else if(dS(t))n=()=>t.useFactory(...If(t.deps||[]));else if(uS(t))n=()=>M(Rt(t.useExisting));else{let r=Rt(t&&(t.useClass||t.provide));if(gS(t))n=()=>new r(...If(t.deps));else return ur(r)||Af(r)}return n}function Jr(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function gS(t){return!!t.deps}function vS(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function yS(t){return typeof t=="function"||typeof t=="object"&&t instanceof L}function Nf(t,e){for(let i of t)Array.isArray(i)?Nf(i,e):i&&Ly(i)?Nf(i.\u0275providers,e):e(i)}function ai(t,e){t instanceof ms&&t.assertNotDestroyed();let i,n=Ii(t),r=Bt(void 0);try{return e()}finally{Ii(n),Bt(r)}}function r1(){return Vy()!==void 0||Vx()!=null}function lc(t){if(!r1())throw new N(-203,!1)}function wS(t){return typeof t=="function"}function lr(t){return Array.isArray(t)&&typeof t[Vh]=="object"}function li(t){return Array.isArray(t)&&t[Vh]===!0}function $h(t){return(t.flags&4)!==0}function uc(t){return t.componentOffset>-1}function dc(t){return(t.flags&1)===1}function ii(t){return!!t.template}function bS(t){return(t[J]&512)!==0}function s1(t,e,i,n){e!==null?e.applyValueToInputSignal(e,n):t[i]=n}function et(){return a1}function a1(t){return t.type.prototype.ngOnChanges&&(t.setInput=_S),CS}function CS(){let t=c1(this),e=t?.current;if(e){let i=t.previous;if(i===io)t.previous=e;else for(let n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function _S(t,e,i,n,r){let o=this.declaredInputs[n],s=c1(t)||DS(t,{previous:io,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new ws(c&&c.currentValue,i,l===io),s1(t,e,r,i)}function c1(t){return t[l1]||null}function DS(t,e){return t[l1]=e}function SS(){return xS}function jn(t){for(;Array.isArray(t);)t=t[Bn];return t}function IS(t){for(;Array.isArray(t);){if(typeof t[Vh]=="object")return t;t=t[Bn]}return null}function d1(t,e){return jn(e[t])}function fn(t,e){return jn(e[t.index])}function Bh(t,e){return t.data[e]}function fc(t,e){return t[e]}function Ni(t,e){let i=e[t];return lr(i)?i:i[Bn]}function TS(t){return(t[J]&4)===4}function Uh(t){return(t[J]&128)===128}function MS(t){return li(t[vt])}function lo(t,e){return e==null?null:t[e]}function f1(t){t[Xr]=0}function AS(t){t[J]&1024||(t[J]|=1024,Uh(t)&&bs(t))}function NS(t,e){for(;t>0;)e=e[ho],t--;return e}function Hh(t){return!!(t[J]&9216||t[fr]?.dirty)}function Rf(t){t[wn].changeDetectionScheduler?.notify(1),Hh(t)?bs(t):t[J]&64&&(SS()?(t[J]|=1024,bs(t)):t[wn].changeDetectionScheduler?.notify())}function bs(t){t[wn].changeDetectionScheduler?.notify();let e=Cs(t);for(;e!==null&&!(e[J]&8192||(e[J]|=8192,!Uh(e)));)e=Cs(e)}function h1(t,e){if((t[J]&256)===256)throw new N(911,!1);t[Ti]===null&&(t[Ti]=[]),t[Ti].push(e)}function RS(t,e){if(t[Ti]===null)return;let i=t[Ti].indexOf(e);i!==-1&&t[Ti].splice(i,1)}function Cs(t){let e=t[vt];return li(e)?e[vt]:e}function OS(){return se.lFrame.elementDepthCount}function kS(){se.lFrame.elementDepthCount++}function FS(){se.lFrame.elementDepthCount--}function p1(){return se.bindingsEnabled}function PS(){return se.skipHydrationRootTNode!==null}function LS(t){return se.skipHydrationRootTNode===t}function VS(){se.skipHydrationRootTNode=null}function X(){return se.lFrame.lView}function Ze(){return se.lFrame.tView}function j(t){return se.lFrame.contextLView=t,t[Et]}function $(t){return se.lFrame.contextLView=null,t}function Lt(){let t=m1();for(;t!==null&&t.type===64;)t=t.parent;return t}function m1(){return se.lFrame.currentTNode}function jS(){let t=se.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function wr(t,e){let i=se.lFrame;i.currentTNode=t,i.isParent=e}function qh(){return se.lFrame.isParent}function g1(){se.lFrame.isParent=!1}function $S(){return se.lFrame.contextLView}function ci(){let t=se.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function zh(){return se.lFrame.bindingIndex}function BS(t){return se.lFrame.bindingIndex=t}function br(){return se.lFrame.bindingIndex++}function Os(t){let e=se.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function US(){return se.lFrame.inI18n}function HS(t,e){let i=se.lFrame;i.bindingIndex=i.bindingRootIndex=t,Of(e)}function qS(){return se.lFrame.currentDirectiveIndex}function Of(t){se.lFrame.currentDirectiveIndex=t}function v1(t){let e=se.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function y1(){return se.lFrame.currentQueryIndex}function Gh(t){se.lFrame.currentQueryIndex=t}function zS(t){let e=t[ne];return e.type===2?e.declTNode:e.type===1?t[_n]:null}function w1(t,e,i){if(i&de.SkipSelf){let r=e,o=t;for(;r=r.parent,r===null&&!(i&de.Host);)if(r=zS(o),r===null||(o=o[ho],r.type&10))break;if(r===null)return!1;e=r,t=o}let n=se.lFrame=b1();return n.currentTNode=e,n.lView=t,!0}function Wh(t){let e=b1(),i=t[ne];se.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function b1(){let t=se.lFrame,e=t===null?null:t.child;return e===null?C1(t):e}function C1(t){let e={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:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function _1(){let t=se.lFrame;return se.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}function Qh(){let t=_1();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function GS(t){return(se.lFrame.contextLView=NS(t,se.lFrame.contextLView))[Et]}function Dn(){return se.lFrame.selectedIndex}function pr(t){se.lFrame.selectedIndex=t}function ks(){let t=se.lFrame;return Bh(t.tView,t.selectedIndex)}function fe(){se.lFrame.currentNamespace=u1}function Me(){WS()}function WS(){se.lFrame.currentNamespace=null}function QS(){return se.lFrame.currentNamespace}function hc(){return E1}function pc(t){E1=t}function ZS(t,e,i){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(n){let s=a1(e);(i.preOrderHooks??=[]).push(t,s),(i.preOrderCheckHooks??=[]).push(t,s)}r&&(i.preOrderHooks??=[]).push(0-t,r),o&&((i.preOrderHooks??=[]).push(t,o),(i.preOrderCheckHooks??=[]).push(t,o))}function mc(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i<n;i++){let o=t.data[i].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=o;s&&(t.contentHooks??=[]).push(-i,s),a&&((t.contentHooks??=[]).push(i,a),(t.contentCheckHooks??=[]).push(i,a)),l&&(t.viewHooks??=[]).push(-i,l),c&&((t.viewHooks??=[]).push(i,c),(t.viewCheckHooks??=[]).push(i,c)),u!=null&&(t.destroyHooks??=[]).push(i,u)}}function Ol(t,e,i){x1(t,e,3,i)}function kl(t,e,i,n){(t[J]&3)===i&&x1(t,e,i,n)}function df(t,e){let i=t[J];(i&3)===e&&(i&=16383,i+=1,t[J]=i)}function x1(t,e,i,n){let r=n!==void 0?t[Xr]&65535:0,o=n??-1,s=e.length-1,a=0;for(let l=r;l<s;l++)if(typeof e[l+1]=="number"){if(a=e[l],n!=null&&a>=n)break}else e[l]<0&&(t[Xr]+=65536),(a<o||o==-1)&&(KS(t,i,e,l),t[Xr]=(t[Xr]&4294901760)+l+2),l++}function ey(t,e){Pn(4,t,e);let i=he(null);try{e.call(t)}finally{he(i),Pn(5,t,e)}}function KS(t,e,i,n){let r=i[n]<0,o=i[n+1],s=r?-i[n]:i[n],a=t[s];r?t[J]>>14<t[Xr]>>16&&(t[J]&3)===e&&(t[J]+=16384,ey(a,o)):ey(a,o)}function YS(t){return t instanceof mr}function JS(t){return(t.flags&8)!==0}function XS(t){return(t.flags&16)!==0}function S1(t){return t!==no}function Hl(t){return t&32767}function eI(t){return t>>16}function ql(t,e){let i=eI(t),n=e;for(;i>0;)n=n[ho],i--;return n}function zl(t){let e=kf;return kf=t,e}function iI(t,e,i){let n;typeof i=="string"?n=i.charCodeAt(0)||0:i.hasOwnProperty(fs)&&(n=i[fs]),n==null&&(n=i[fs]=nI++);let r=n&I1,o=1<<r;e.data[t+(r>>T1)]|=o}function Gl(t,e){let i=M1(t,e);if(i!==-1)return i;let n=e[ne];n.firstCreatePass&&(t.injectorIndex=e.length,ff(n.data,t),ff(e,null),ff(n.blueprint,null));let r=Zh(t,e),o=t.injectorIndex;if(S1(r)){let s=Hl(r),a=ql(r,e),l=a[ne].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|l[s+c]}return e[o+8]=r,o}function ff(t,e){t.push(0,0,0,0,0,0,0,0,e)}function M1(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Zh(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let i=0,n=null,r=e;for(;r!==null;){if(n=k1(r),n===null)return no;if(i++,r=r[ho],n.injectorIndex!==-1)return n.injectorIndex|i<<16}return no}function Ff(t,e,i){iI(t,e,i)}function rI(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let i=t.attrs;if(i){let n=i.length,r=0;for(;r<n;){let o=i[r];if(Gy(o))break;if(o===0)r=r+2;else if(typeof o=="number")for(r++;r<n&&typeof i[r]=="string";)r++;else{if(o===e)return i[r+1];r=r+2}}}return null}function A1(t,e,i){if(i&de.Optional||t!==void 0)return t;Rh(e,"NodeInjector")}function N1(t,e,i,n){if(i&de.Optional&&n===void 0&&(n=null),!(i&(de.Self|de.Host))){let r=t[so],o=Bt(void 0);try{return r?r.get(e,n,i&de.Optional):jy(e,n,i&de.Optional)}finally{Bt(o)}}return A1(n,e,i)}function R1(t,e,i,n=de.Default,r){if(t!==null){if(e[J]&2048&&!(n&de.Self)){let s=lI(t,e,i,n,Ln);if(s!==Ln)return s}let o=O1(t,e,i,n,Ln);if(o!==Ln)return o}return N1(e,i,n,r)}function O1(t,e,i,n,r){let o=sI(i);if(typeof o=="function"){if(!w1(e,t,n))return n&de.Host?A1(r,i,n):N1(e,i,n,r);try{let s;if(s=o(n),s==null&&!(n&de.Optional))Rh(i);else return s}finally{D1()}}else if(typeof o=="number"){let s=null,a=M1(t,e),l=no,c=n&de.Host?e[bn][_n]:null;for((a===-1||n&de.SkipSelf)&&(l=a===-1?Zh(t,e):e[a+8],l===no||!ny(n,!1)?a=-1:(s=e[ne],a=Hl(l),e=ql(l,e)));a!==-1;){let u=e[ne];if(ty(o,a,u.data)){let d=oI(a,e,i,s,n,c);if(d!==Ln)return d}l=e[a+8],l!==no&&ny(n,e[ne].data[a+8]===c)&&ty(o,a,e)?(s=u,a=Hl(l),e=ql(l,e)):a=-1}}return r}function oI(t,e,i,n,r,o){let s=e[ne],a=s.data[t+8],l=n==null?uc(a)&&kf:n!=s&&(a.type&3)!==0,c=r&de.Host&&o===a,u=Fl(a,s,i,l,c);return u!==null?gr(e,s,u,a):Ln}function Fl(t,e,i,n,r){let o=t.providerIndexes,s=e.data,a=o&1048575,l=t.directiveStart,c=t.directiveEnd,u=o>>20,d=n?a:a+u,m=r?a+u:c;for(let g=d;g<m;g++){let w=s[g];if(g<l&&i===w||g>=l&&w.type===i)return g}if(r){let g=s[l];if(g&&ii(g)&&g.type===i)return l}return null}function gr(t,e,i,n){let r=t[i],o=e.data;if(YS(r)){let s=r;s.resolving&&Ox(Rx(o[i]));let a=zl(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?Bt(s.injectImpl):null,u=w1(t,n,de.Default);try{r=t[i]=s.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&ZS(i,o[i],e)}finally{c!==null&&Bt(c),zl(a),s.resolving=!1,D1()}}return r}function sI(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(fs)?t[fs]:void 0;return typeof e=="number"?e>=0?e&I1:aI:e}function ty(t,e,i){let n=1<<t;return!!(i[e+(t>>T1)]&n)}function ny(t,e){return!(t&de.Self)&&!(t&de.Host&&e)}function aI(){return new cr(Lt(),X())}function En(t){return As(()=>{let e=t.prototype.constructor,i=e[Vl]||Pf(e),n=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){let o=r[Vl]||Pf(r);if(o&&o!==i)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Pf(t){return Oy(t)?()=>{let e=Pf(Rt(t));return e&&e()}:ur(t)}function lI(t,e,i,n,r){let o=t,s=e;for(;o!==null&&s!==null&&s[J]&2048&&!(s[J]&512);){let a=O1(o,s,i,n|de.Self,Ln);if(a!==Ln)return a;let l=o.parent;if(!l){let c=s[o1];if(c){let u=c.get(i,Ln,n);if(u!==Ln)return u}l=k1(s),s=s[ho]}o=l}return r}function k1(t){let e=t[ne],i=e.type;return i===2?e.declTNode:i===1?t[_n]:null}function Kh(t){return rI(Lt(),t)}function iy(t,e=null,i=null,n){let r=F1(t,e,i,n);return r.resolveInjectorInitializers(),r}function F1(t,e=null,i=null,n,r=new Set){let o=[i||Ht,lS(t)];return n=n||(typeof t=="object"?void 0:Ot(t)),new ms(o,e||Lh(),n||null,r)}function hf(t){return t[cI]}function uI(){return new Lf(X())}function dI(){return po(Lt(),X())}function po(t,e){return new Oe(fn(t,e))}function fI(t){return t instanceof Oe?t.nativeElement:t}function pf(t){return e=>{setTimeout(t,void 0,e)}}function hI(){return this._results[Symbol.iterator]()}function L1(t){return(t.flags&128)===128}function mI(){return pI++}function gI(t){V1.set(t[cc],t)}function vI(t){V1.delete(t[cc])}function Mi(t,e){lr(e)?(t[ry]=e[cc],gI(e)):t[ry]=e}function j1(t){return B1(t[ys])}function $1(t){return B1(t[yn])}function B1(t){for(;t!==null&&!li(t);)t=t[yn];return t}function U1(t){$f=t}function H1(){if($f!==void 0)return $f;if(typeof document<"u")return document;throw new N(210,!1)}function tp(t,e,i=!1){return CI(t,e,i)}function DI(){if(Sl===void 0&&(Sl=null,ti.trustedTypes))try{Sl=ti.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Sl}function gc(t){return DI()?.createHTML(t)||t}function z1(){if(Il===void 0&&(Il=null,ti.trustedTypes))try{Il=ti.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Il}function oy(t){return z1()?.createHTML(t)||t}function sy(t){return z1()?.createScriptURL(t)||t}function tn(t){return t instanceof ri?t.changingThisBreaksApplicationSecurity:t}function di(t,e){let i=EI(t);if(i!=null&&i!==e){if(i==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${i} (see ${Ny})`)}return i===e}function EI(t){return t instanceof ri&&t.getTypeName()||null}function G1(t){return new Bf(t)}function W1(t){return new Uf(t)}function Q1(t){return new Hf(t)}function Z1(t){return new qf(t)}function K1(t){return new zf(t)}function xI(t){let e=new Wf(t);return SI()?new Gf(e):e}function SI(){try{return!!new window.DOMParser().parseFromString(gc(""),"text/html")}catch{return!1}}function vc(t){return t=String(t),t.match(II)?t:"unsafe:"+t}function fi(t){let e={};for(let i of t.split(","))e[i]=!0;return e}function Fs(...t){let e={};for(let i of t)for(let n in i)i.hasOwnProperty(n)&&(e[n]=!0);return e}function FI(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function PI(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw tw(e);return e}function LI(t){let e=t.firstChild;if(e&&FI(t,e))throw tw(e);return e}function ly(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function tw(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}function cy(t){return t.replace(/&/g,"&amp;").replace(VI,function(e){let i=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((i-55296)*1024+(n-56320)+65536)+";"}).replace(jI,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function np(t,e){let i=null;try{Tl=Tl||xI(t);let n=e?String(e):"";i=Tl.getInertBodyElement(n);let r=5,o=n;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=i.innerHTML,i=Tl.getInertBodyElement(n)}while(n!==o);let a=new Qf().sanitizeChildren(uy(i)||i);return gc(a)}finally{if(i){let n=uy(i)||i;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function uy(t){return"content"in t&&$I(t)?t.content:null}function $I(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}function ht(t){let e=ip();return e?oy(e.sanitize(nn.HTML,t)||""):di(t,"HTML")?oy(tn(t)):np(H1(),Ut(t))}function hi(t){let e=ip();return e?e.sanitize(nn.URL,t)||"":di(t,"URL")?tn(t):vc(Ut(t))}function BI(t){let e=ip();if(e)return sy(e.sanitize(nn.RESOURCE_URL,t)||"");if(di(t,"ResourceURL"))return sy(tn(t));throw new N(904,!1)}function UI(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?BI:hi}function nw(t,e,i){return UI(e,i)(t)}function ip(){let t=X();return t&&t[wn].sanitizer}function GI(t){return t.replace(HI,e=>e.replace(qI,zI))}function yc(t){return t.ownerDocument.defaultView}function wc(t){return t.ownerDocument}function iw(t){return t instanceof Function?t():t}function rp(t,e){return WI(t,e)}function eo(t,e,i,n,r){if(n!=null){let o,s=!1;li(n)?o=n:lr(n)&&(s=!0,n=n[Bn]);let a=jn(n);t===0&&i!==null?r==null?aw(e,i,a):Wl(e,i,a,r||null,!0):t===1&&i!==null?Wl(e,i,a,r||null,!0):t===2?d2(e,a,s):t===3&&e.destroyNode(a),o!=null&&h2(e,t,o,i,r)}}function QI(t,e){return t.createText(e)}function ZI(t,e,i){t.setValue(e,i)}function KI(t,e){return t.createComment(GI(e))}function rw(t,e,i){return t.createElement(e,i)}function YI(t,e){ow(t,e),e[Bn]=null,e[_n]=null}function JI(t,e,i,n,r,o){n[Bn]=r,n[_n]=e,_c(t,n,i,1,r,o)}function ow(t,e){e[wn].changeDetectionScheduler?.notify(1),_c(t,e,e[ze],2,null,null)}function XI(t){let e=t[ys];if(!e)return mf(t[ne],t);for(;e;){let i=null;if(lr(e))i=e[ys];else{let n=e[xt];n&&(i=n)}if(!i){for(;e&&!e[yn]&&e!==t;)lr(e)&&mf(e[ne],e),e=e[vt];e===null&&(e=t),lr(e)&&mf(e[ne],e),i=e&&e[yn]}e=i}}function e2(t,e,i,n){let r=xt+n,o=i.length;n>0&&(i[r-1][yn]=e),n<o-xt?(e[yn]=i[r],Uy(i,xt+n,e)):(i.push(e),e[yn]=null),e[vt]=i;let s=e[Rs];s!==null&&i!==s&&t2(s,e);let a=e[ni];a!==null&&a.insertView(t),Rf(e),e[J]|=128}function t2(t,e){let i=t[ao],r=e[vt][vt][bn];e[bn]!==r&&(t[J]|=jh.HasTransplantedViews),i===null?t[ao]=[e]:i.push(e)}function sw(t,e){let i=t[ao],n=i.indexOf(e);i.splice(n,1)}function _s(t,e){if(t.length<=xt)return;let i=xt+e,n=t[i];if(n){let r=n[Rs];r!==null&&r!==t&&sw(r,n),e>0&&(t[i-1][yn]=n[yn]);let o=$l(t,xt+e);YI(n[ne],n);let s=o[ni];s!==null&&s.detachView(o[ne]),n[vt]=null,n[yn]=null,n[J]&=-129}return n}function bc(t,e){if(!(e[J]&256)){let i=e[ze];i.destroyNode&&_c(t,e,i,3,null,null),XI(e)}}function mf(t,e){if(e[J]&256)return;let i=he(null);try{e[J]&=-129,e[J]|=256,e[fr]&&fd(e[fr]),i2(t,e),n2(t,e),e[ne].type===1&&e[ze].destroy();let n=e[Rs];if(n!==null&&li(e[vt])){n!==e[vt]&&sw(n,e);let r=e[ni];r!==null&&r.detachView(t)}vI(e)}finally{he(i)}}function n2(t,e){let i=t.cleanup,n=e[vs];if(i!==null)for(let o=0;o<i.length-1;o+=2)if(typeof i[o]=="string"){let s=i[o+3];s>=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[i[o+1]];i[o].call(s)}n!==null&&(e[vs]=null);let r=e[Ti];if(r!==null){e[Ti]=null;for(let o=0;o<r.length;o++){let s=r[o];s()}}}function i2(t,e){let i;if(t!=null&&(i=t.destroyHooks)!=null)for(let n=0;n<i.length;n+=2){let r=e[i[n]];if(!(r instanceof mr)){let o=i[n+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=r[o[s]],l=o[s+1];Pn(4,a,l);try{l.call(a)}finally{Pn(5,a,l)}}else{Pn(4,r,o);try{o.call(r)}finally{Pn(5,r,o)}}}}}function r2(t,e,i){return o2(t,e.parent,i)}function o2(t,e,i){let n=e;for(;n!==null&&n.type&40;)e=n,n=e.parent;if(n===null)return i[Bn];{let{componentOffset:r}=n;if(r>-1){let{encapsulation:o}=t.data[n.directiveStart+r];if(o===Vn.None||o===Vn.Emulated)return null}return fn(n,i)}}function Wl(t,e,i,n,r){t.insertBefore(e,i,n,r)}function aw(t,e,i){t.appendChild(e,i)}function dy(t,e,i,n,r){n!==null?Wl(t,e,i,n,r):aw(t,e,i)}function s2(t,e,i,n){t.removeChild(e,i,n)}function op(t,e){return t.parentNode(e)}function a2(t,e){return t.nextSibling(e)}function l2(t,e,i){return u2(t,e,i)}function c2(t,e,i){return t.type&40?fn(t,i):null}function Cc(t,e,i,n){let r=r2(t,n,e),o=e[ze],s=n.parent||e[_n],a=l2(s,n,e);if(r!=null)if(Array.isArray(i))for(let l=0;l<i.length;l++)dy(o,r,i[l],a,!1);else dy(o,r,i,a,!1);fy!==void 0&&fy(o,n,e,i,r)}function Pl(t,e){if(e!==null){let i=e.type;if(i&3)return fn(e,t);if(i&4)return Zf(-1,t[e.index]);if(i&8){let n=e.child;if(n!==null)return Pl(t,n);{let r=t[e.index];return li(r)?Zf(-1,r):jn(r)}}else{if(i&32)return rp(e,t)()||jn(t[e.index]);{let n=lw(t,e);if(n!==null){if(Array.isArray(n))return n[0];let r=Cs(t[bn]);return Pl(r,n)}else return Pl(t,e.next)}}}return null}function lw(t,e){if(e!==null){let n=t[bn][_n],r=e.projection;return n.projection[r]}return null}function Zf(t,e){let i=xt+t+1;if(i<e.length){let n=e[i],r=n[ne].firstChild;if(r!==null)return Pl(n,r)}return e[hr]}function d2(t,e,i){let n=op(t,e);n&&s2(t,n,e,i)}function sp(t,e,i,n,r,o,s){for(;i!=null;){let a=n[i.index],l=i.type;if(s&&e===0&&(a&&Mi(jn(a),n),i.flags|=2),(i.flags&32)!==32)if(l&8)sp(t,e,i.child,n,r,o,!1),eo(e,t,r,a,o);else if(l&32){let c=rp(i,n),u;for(;u=c();)eo(e,t,r,u,o);eo(e,t,r,a,o)}else l&16?f2(t,e,n,i,r,o):eo(e,t,r,a,o);i=s?i.projectionNext:i.next}}function _c(t,e,i,n,r,o){sp(i,n,t.firstChild,e,r,o,!1)}function f2(t,e,i,n,r,o){let s=i[bn],l=s[_n].projection[n.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let u=l[c];eo(e,t,r,u,o)}else{let c=l,u=s[vt];L1(n)&&(c.flags|=128),sp(t,e,c,u,r,o,!0)}}function h2(t,e,i,n,r){let o=i[hr],s=jn(i);o!==s&&eo(e,t,n,o,r);for(let a=xt;a<i.length;a++){let l=i[a];_c(l[ne],l,t,e,n,o)}}function p2(t,e,i,n,r){if(e)r?t.addClass(i,n):t.removeClass(i,n);else{let o=n.indexOf("-")===-1?void 0:oi.DashCase;r==null?t.removeStyle(i,n,o):(typeof r=="string"&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=oi.Important),t.setStyle(i,n,r,o))}}function m2(t,e,i){t.setAttribute(e,"style",i)}function cw(t,e,i){i===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",i)}function uw(t,e,i){let{mergedAttrs:n,classes:r,styles:o}=i;n!==null&&Tf(t,e,n),r!==null&&cw(t,e,r),o!==null&&m2(t,e,o)}function h(t=1){dw(Ze(),X(),Dn()+t,!1)}function dw(t,e,i,n){if(!n)if((e[J]&3)===3){let o=t.preOrderCheckHooks;o!==null&&Ol(e,o,i)}else{let o=t.preOrderHooks;o!==null&&kl(e,o,0,i)}pr(i)}function _(t,e=de.Default){let i=X();if(i===null)return M(t,e);let n=Lt();return R1(n,i,Rt(t),e)}function fw(t,e,i,n,r,o){let s=he(null);try{let a=null;r&Te.SignalBased&&(a=e[n][Rn]),a!==null&&a.transformFn!==void 0&&(o=a.transformFn(o)),r&Te.HasDecoratorInputTransform&&(o=t.inputTransforms[n].call(e,o)),t.setInput!==null?t.setInput(e,a,o,i,n):s1(e,a,n,o)}finally{he(s)}}function g2(t,e){let i=t.hostBindingOpCodes;if(i!==null)try{for(let n=0;n<i.length;n++){let r=i[n];if(r<0)pr(~r);else{let o=r,s=i[++n],a=i[++n];HS(s,o);let l=e[o];a(2,l)}}}finally{pr(-1)}}function Dc(t,e,i,n,r,o,s,a,l,c,u){let d=e.blueprint.slice();return d[Bn]=r,d[J]=n|4|128|8|64,(c!==null||t&&t[J]&2048)&&(d[J]|=2048),f1(d),d[vt]=d[ho]=t,d[Et]=i,d[wn]=s||t&&t[wn],d[ze]=a||t&&t[ze],d[so]=l||t&&t[so]||null,d[_n]=o,d[cc]=mI(),d[gs]=u,d[o1]=c,d[bn]=e.type==2?t[bn]:d,d}function Ps(t,e,i,n,r){let o=t.data[e];if(o===null)o=v2(t,e,i,n,r),US()&&(o.flags|=32);else if(o.type&64){o.type=i,o.value=n,o.attrs=r;let s=jS();o.injectorIndex=s===null?-1:s.injectorIndex}return wr(o,!0),o}function v2(t,e,i,n,r){let o=m1(),s=qh(),a=s?o:o&&o.parent,l=t.data[e]=D2(t,a,i,e,n,r);return t.firstChild===null&&(t.firstChild=l),o!==null&&(s?o.child==null&&l.parent!==null&&(o.child=l):o.next===null&&(o.next=l,l.prev=o)),l}function hw(t,e,i,n){if(i===0)return-1;let r=e.length;for(let o=0;o<i;o++)e.push(n),t.blueprint.push(n),t.data.push(null);return r}function pw(t,e,i,n,r){let o=Dn(),s=n&2;try{pr(-1),s&&e.length>yt&&dw(t,e,yt,!1),Pn(s?2:0,r),i(n,r)}finally{pr(o),Pn(s?3:1,r)}}function ap(t,e,i){if($h(e)){let n=he(null);try{let r=e.directiveStart,o=e.directiveEnd;for(let s=r;s<o;s++){let a=t.data[s];if(a.contentQueries){let l=i[s];a.contentQueries(1,l,s)}}}finally{he(n)}}}function lp(t,e,i){p1()&&(M2(t,e,i,fn(i,e)),(i.flags&64)===64&&vw(t,e,i))}function cp(t,e,i=fn){let n=e.localNames;if(n!==null){let r=e.index+1;for(let o=0;o<n.length;o+=2){let s=n[o+1],a=s===-1?i(e,t):t[s];t[r++]=a}}}function mw(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=up(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function up(t,e,i,n,r,o,s,a,l,c,u){let d=yt+n,m=d+r,g=y2(d,m),w=typeof c=="function"?c():c;return g[ne]={type:t,blueprint:g,template:i,queries:null,viewQuery:a,declTNode:e,data:g.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:m,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 o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:w,incompleteFirstPass:!1,ssrId:u}}function y2(t,e){let i=[];for(let n=0;n<e;n++)i.push(n<t?null:wt);return i}function w2(t,e,i,n){let o=n.get(_I,q1)||i===Vn.ShadowDom,s=t.selectRootElement(e,o);return b2(s),s}function b2(t){C2(t)}function _2(t,e,i,n){let r=bw(e);r.push(i),t.firstCreatePass&&Cw(t).push(n,r.length-1)}function D2(t,e,i,n,r,o){let s=e?e.injectorIndex:-1,a=0;return PS()&&(a|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function hy(t,e,i,n,r){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,l=Te.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=o;if(r!==null){if(!r.hasOwnProperty(o))continue;c=r[o]}t===0?py(n,i,c,a,l):py(n,i,c,a)}return n}function py(t,e,i,n,r){let o;t.hasOwnProperty(i)?(o=t[i]).push(e,n):o=t[i]=[e,n],r!==void 0&&o.push(r)}function E2(t,e,i){let n=e.directiveStart,r=e.directiveEnd,o=t.data,s=e.attrs,a=[],l=null,c=null;for(let u=n;u<r;u++){let d=o[u],m=i?i.get(d):null,g=m?m.inputs:null,w=m?m.outputs:null;l=hy(0,d.inputs,u,l,g),c=hy(1,d.outputs,u,c,w);let D=l!==null&&s!==null&&!Fh(e)?$2(l,u,s):null;a.push(D)}l!==null&&(l.hasOwnProperty("class")&&(e.flags|=8),l.hasOwnProperty("style")&&(e.flags|=16)),e.initialInputs=a,e.inputs=l,e.outputs=c}function x2(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function Ec(t,e,i,n,r,o,s,a){let l=fn(e,i),c=e.inputs,u;!a&&c!=null&&(u=c[n])?(fp(t,i,u,n,r),uc(e)&&S2(i,e.index)):e.type&3?(n=x2(n),r=s!=null?s(r,e.value||"",n):r,o.setProperty(l,n,r)):e.type&12}function S2(t,e){let i=Ni(e,t);i[J]&16||(i[J]|=64)}function dp(t,e,i,n){if(p1()){let r=n===null?null:{"":-1},o=N2(t,i),s,a;o===null?s=a=null:[s,a]=o,s!==null&&gw(t,e,i,s,r,a),r&&R2(i,n,r)}i.mergedAttrs=ps(i.mergedAttrs,i.attrs)}function gw(t,e,i,n,r,o){for(let c=0;c<n.length;c++)Ff(Gl(i,e),t,n[c].type);k2(i,t.data.length,n.length);for(let c=0;c<n.length;c++){let u=n[c];u.providersResolver&&u.providersResolver(u)}let s=!1,a=!1,l=hw(t,e,n.length,null);for(let c=0;c<n.length;c++){let u=n[c];i.mergedAttrs=ps(i.mergedAttrs,u.hostAttrs),F2(t,i,e,l,u),O2(l,u,r),u.contentQueries!==null&&(i.flags|=4),(u.hostBindings!==null||u.hostAttrs!==null||u.hostVars!==0)&&(i.flags|=64);let d=u.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((t.preOrderHooks??=[]).push(i.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(i.index),a=!0),l++}E2(t,i,o)}function I2(t,e,i,n,r){let o=r.hostBindings;if(o){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;T2(s)!=a&&s.push(a),s.push(i,n,o)}}function T2(t){let e=t.length;for(;e>0;){let i=t[--e];if(typeof i=="number"&&i<0)return i}return 0}function M2(t,e,i,n){let r=i.directiveStart,o=i.directiveEnd;uc(i)&&P2(e,i,t.data[r+i.componentOffset]),t.firstCreatePass||Gl(i,e),Mi(n,e);let s=i.initialInputs;for(let a=r;a<o;a++){let l=t.data[a],c=gr(e,t,a,i);if(Mi(c,e),s!==null&&j2(e,a-r,c,l,i,s),ii(l)){let u=Ni(i.index,e);u[Et]=gr(e,t,a,i)}}}function vw(t,e,i){let n=i.directiveStart,r=i.directiveEnd,o=i.index,s=qS();try{pr(o);for(let a=n;a<r;a++){let l=t.data[a],c=e[a];Of(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&A2(l,c)}}finally{pr(-1),Of(s)}}function A2(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function N2(t,e){let i=t.directiveRegistry,n=null,r=null;if(i)for(let o=0;o<i.length;o++){let s=i[o];if(Xx(e,s.selectors,!1))if(n||(n=[]),ii(s))if(s.findHostDirectiveDefs!==null){let a=[];r=r||new Map,s.findHostDirectiveDefs(s,a,r),n.unshift(...a,s);let l=a.length;Kf(t,e,l)}else n.unshift(s),Kf(t,e,0);else r=r||new Map,s.findHostDirectiveDefs?.(s,n,r),n.push(s)}return n===null?null:[n,r]}function Kf(t,e,i){e.componentOffset=i,(t.components??=[]).push(e.index)}function R2(t,e,i){if(e){let n=t.localNames=[];for(let r=0;r<e.length;r+=2){let o=i[e[r+1]];if(o==null)throw new N(-301,!1);n.push(e[r],o)}}}function O2(t,e,i){if(i){if(e.exportAs)for(let n=0;n<e.exportAs.length;n++)i[e.exportAs[n]]=t;ii(e)&&(i[""]=t)}}function k2(t,e,i){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+i,t.providerIndexes=e}function F2(t,e,i,n,r){t.data[n]=r;let o=r.factory||(r.factory=ur(r.type,!0)),s=new mr(o,ii(r),_);t.blueprint[n]=s,i[n]=s,I2(t,e,n,hw(t,i,r.hostVars,wt),r)}function P2(t,e,i){let n=fn(e,t),r=mw(i),o=t[wn].rendererFactory,s=16;i.signals?s=4096:i.onPush&&(s=64);let a=xc(t,Dc(t,r,null,s,n,e,null,o.createRenderer(n,i),null,null,null));t[e.index]=a}function L2(t,e,i,n,r,o){let s=fn(t,e);V2(e[ze],s,o,t.value,i,n,r)}function V2(t,e,i,n,r,o,s){if(o==null)t.removeAttribute(e,r,i);else{let a=s==null?Ut(o):s(o,n||"",r);t.setAttribute(e,r,a,i)}}function j2(t,e,i,n,r,o){let s=o[e];if(s!==null)for(let a=0;a<s.length;){let l=s[a++],c=s[a++],u=s[a++],d=s[a++];fw(n,i,l,c,u,d)}}function $2(t,e,i){let n=null,r=0;for(;r<i.length;){let o=i[r];if(o===0){r+=4;continue}else if(o===5){r+=2;continue}if(typeof o=="number")break;if(t.hasOwnProperty(o)){n===null&&(n=[]);let s=t[o];for(let a=0;a<s.length;a+=3)if(s[a]===e){n.push(o,s[a+1],s[a+2],i[r+1]);break}}r+=2}return n}function yw(t,e,i,n){return[t,!0,0,e,null,n,null,i,null,null]}function ww(t,e){let i=t.contentQueries;if(i!==null){let n=he(null);try{for(let r=0;r<i.length;r+=2){let o=i[r],s=i[r+1];if(s!==-1){let a=t.data[s];Gh(o),a.contentQueries(2,e[s],s)}}}finally{he(n)}}}function xc(t,e){return t[ys]?t[Jv][yn]=e:t[ys]=e,t[Jv]=e,e}function Yf(t,e,i){Gh(0);let n=he(null);try{e(t,i)}finally{he(n)}}function bw(t){return t[vs]||(t[vs]=[])}function Cw(t){return t.cleanup||(t.cleanup=[])}function B2(t,e,i){return(t===null||ii(t))&&(i=IS(i[e.index])),i[ze]}function _w(t,e){let i=t[so],n=i?i.get($n,null):null;n&&n.handleError(e)}function fp(t,e,i,n,r){for(let o=0;o<i.length;){let s=i[o++],a=i[o++],l=i[o++],c=e[s],u=t.data[s];fw(u,c,n,a,l,r)}}function Sc(t,e,i){let n=d1(e,t);ZI(t[ze],n,i)}function U2(t,e){let i=Ni(e,t),n=i[ne];H2(n,i);let r=i[Bn];r!==null&&i[gs]===null&&(i[gs]=tp(r,i[so])),hp(n,i,i[Et])}function H2(t,e){for(let i=e.length;i<t.blueprint.length;i++)e.push(t.blueprint[i])}function hp(t,e,i){Wh(e);try{let n=t.viewQuery;n!==null&&Yf(1,n,i);let r=t.template;r!==null&&pw(t,e,r,1,i),t.firstCreatePass&&(t.firstCreatePass=!1),e[ni]?.finishViewCreation(t),t.staticContentQueries&&ww(t,e),t.staticViewQueries&&Yf(2,t.viewQuery,i);let o=t.components;o!==null&&q2(e,o)}catch(n){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{e[J]&=-5,Qh()}}function q2(t,e){for(let i=0;i<e.length;i++)U2(t,e[i])}function Ic(t,e,i,n){let r=he(null);try{let o=e.tView,a=t[J]&4096?4096:16,l=Dc(t,o,i,a,null,e,null,null,n?.injector??null,n?.embeddedViewInjector??null,n?.dehydratedView??null),c=t[e.index];l[Rs]=c;let u=t[ni];return u!==null&&(l[ni]=u.createEmbeddedView(o)),hp(o,l,i),l}finally{he(r)}}function Dw(t,e){let i=xt+e;if(i<t.length)return t[i]}function Ds(t,e){return!e||e.firstChild===null||L1(t)}function Tc(t,e,i,n=!0){let r=e[ne];if(e2(r,e,t,i),n){let s=Zf(i,t),a=e[ze],l=op(a,t[hr]);l!==null&&JI(r,t[_n],a,e,l,s)}let o=e[gs];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function Ew(t,e){let i=_s(t,e);return i!==void 0&&bc(i[ne],i),i}function Ql(t,e,i,n,r=!1){for(;i!==null;){let o=e[i.index];o!==null&&n.push(jn(o)),li(o)&&z2(o,n);let s=i.type;if(s&8)Ql(t,e,i.child,n);else if(s&32){let a=rp(i,e),l;for(;l=a();)n.push(l)}else if(s&16){let a=lw(e,i);if(Array.isArray(a))n.push(...a);else{let l=Cs(e[bn]);Ql(l[ne],l,a,n,!0)}}i=r?i.projectionNext:i.next}return n}function z2(t,e){for(let i=xt;i<t.length;i++){let n=t[i],r=n[ne].firstChild;r!==null&&Ql(n[ne],n,r,e)}t[hr]!==t[Bn]&&e.push(t[hr])}function G2(t){return t[fr]??W2(t)}function W2(t){let e=xw.pop()??Object.create(Z2);return e.lView=t,e}function Q2(t){t.lView[fr]!==t&&(t.lView=null,xw.push(t))}function Iw(t,e=!0,i=0){let n=t[wn],r=n.rendererFactory,o=!1;o||r.begin?.();try{K2(t,i)}catch(s){throw e&&_w(t,s),s}finally{o||(r.end?.(),n.inlineEffectRunner?.flush())}}function K2(t,e){Jf(t,e);let i=0;for(;Hh(t);){if(i===Sw)throw new N(103,!1);i++,Jf(t,1)}}function Y2(t,e,i,n){let r=e[J];if((r&256)===256)return;let o=!1;!o&&e[wn].inlineEffectRunner?.flush(),Wh(e);let s=null,a=null;!o&&J2(t)&&(a=G2(e),s=Va(a));try{f1(e),BS(t.bindingStartIndex),i!==null&&pw(t,e,i,2,n);let l=(r&3)===3;if(!o)if(l){let d=t.preOrderCheckHooks;d!==null&&Ol(e,d,null)}else{let d=t.preOrderHooks;d!==null&&kl(e,d,0,null),df(e,0)}if(X2(e),Tw(e,0),t.contentQueries!==null&&ww(t,e),!o)if(l){let d=t.contentCheckHooks;d!==null&&Ol(e,d)}else{let d=t.contentHooks;d!==null&&kl(e,d,1),df(e,1)}g2(t,e);let c=t.components;c!==null&&Aw(e,c,0);let u=t.viewQuery;if(u!==null&&Yf(2,u,n),!o)if(l){let d=t.viewCheckHooks;d!==null&&Ol(e,d)}else{let d=t.viewHooks;d!==null&&kl(e,d,2),df(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Rl]){for(let d of e[Rl])d();e[Rl]=null}o||(e[J]&=-73)}catch(l){throw bs(e),l}finally{a!==null&&(ja(a,s),Q2(a)),Qh()}}function J2(t){return t.type!==2}function Tw(t,e){for(let i=j1(t);i!==null;i=$1(i))for(let n=xt;n<i.length;n++){let r=i[n];Mw(r,e)}}function X2(t){for(let e=j1(t);e!==null;e=$1(e)){if(!(e[J]&jh.HasTransplantedViews))continue;let i=e[ao];for(let n=0;n<i.length;n++){let r=i[n],o=r[vt];AS(r)}}}function eT(t,e,i){let n=Ni(e,t);Mw(n,i)}function Mw(t,e){Uh(t)&&Jf(t,e)}function Jf(t,e){let n=t[ne],r=t[J],o=t[fr],s=!!(e===0&&r&16);if(s||=!!(r&64&&e===0),s||=!!(r&1024),s||=!!(o?.dirty&&$a(o)),o&&(o.dirty=!1),t[J]&=-9217,s)Y2(n,t,n.template,t[Et]);else if(r&8192){Tw(t,1);let a=n.components;a!==null&&Aw(t,a,1)}}function Aw(t,e,i){for(let n=0;n<e.length;n++)eT(t,e[n],i)}function pp(t){for(t[wn].changeDetectionScheduler?.notify();t;){t[J]|=64;let e=Cs(t);if(bS(t)&&!e)return t;t=e}return null}function iT(){return mp(Lt(),X())}function mp(t,e){return t.type&4?new nT(e,t,po(t,e)):null}function Es(t,e){return rT(t,e)}function oT(t){let e=Error(`No component factory found for ${Ot(t)}.`);return e[sT]=t,e}function aT(){let t=X(),e=Lt(),i=Ni(e.index,t);return(lr(i)?i:t)[ze]}function Un(t){my.has(t)||(my.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function gy(...t){}function cT(){let t=typeof ti.requestAnimationFrame=="function",e=ti[t?"requestAnimationFrame":"setTimeout"],i=ti[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&i){let n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);let r=i[Zone.__symbol__("OriginalDelegate")];r&&(i=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:i}}function gp(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function dT(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(ti,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,th(t),t.isCheckStableRunning=!0,gp(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),th(t))}function fT(t){let e=()=>{dT(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,o,s,a)=>{if(hT(a))return i.invokeTask(r,o,s,a);try{return vy(t),i.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),yy(t)}},onInvoke:(i,n,r,o,s,a,l)=>{try{return vy(t),i.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),yy(t)}},onHasTask:(i,n,r,o)=>{i.hasTask(r,o),n===r&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,th(t),gp(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(i,n,r,o)=>(i.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function th(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function vy(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function yy(t){t._nesting--,gp(t)}function hT(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}function Kl(t,e,i){let n=i?t.styles:null,r=i?t.classes:null,o=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")o=a;else if(o==1)r=Ef(r,a);else if(o==2){let l=a,c=e[++s];n=Ef(n,l+": "+c+";")}}i?t.styles=n:t.stylesWithoutHost=n,i?t.classes=r:t.classesWithoutHost=r}function wy(t){let e=[];for(let i in t){if(!t.hasOwnProperty(i))continue;let n=t[i];n!==void 0&&e.push({propName:Array.isArray(n)?n[0]:n,templateName:i})}return e}function pT(t){let e=t.toLowerCase();return e==="svg"?u1:e==="math"?ES:null}function mT(t,e){let i=t[ne],n=yt;return t[n]=e,Ps(i,n,2,"#host",null)}function gT(t,e,i,n,r,o,s){let a=r[ne];vT(n,t,e,s);let l=null;e!==null&&(l=tp(e,r[so]));let c=o.rendererFactory.createRenderer(e,i),u=16;i.signals?u=4096:i.onPush&&(u=64);let d=Dc(r,mw(i),null,u,r[t.index],t,o,c,null,null,l);return a.firstCreatePass&&Kf(a,t,n.length-1),xc(r,d),r[t.index]=d}function vT(t,e,i,n){for(let r of t)e.mergedAttrs=ps(e.mergedAttrs,r.hostAttrs);e.mergedAttrs!==null&&(Kl(e,e.mergedAttrs,!0),i!==null&&uw(n,i,e))}function yT(t,e,i,n,r,o){let s=Lt(),a=r[ne],l=fn(s,r);gw(a,r,s,i,null,n);for(let u=0;u<i.length;u++){let d=s.directiveStart+u,m=gr(r,a,d,s);Mi(m,r)}vw(a,r,s),l&&Mi(l,r);let c=gr(r,a,s.directiveStart+s.componentOffset,s);if(t[Et]=r[Et]=c,o!==null)for(let u of o)u(c,e);return ap(a,s,r),c}function wT(t,e,i,n){if(n)Tf(t,i,["ng-version","17.3.11"]);else{let{attrs:r,classes:o}=rS(e.selectors[0]);r&&Tf(t,i,r),o&&o.length>0&&cw(t,i,o.join(" "))}}function bT(t,e,i){let n=t.projection=[];for(let r=0;r<e.length;r++){let o=i[r];n.push(o!=null?Array.from(o):null)}}function CT(){let t=Lt();mc(X()[ne],t)}function _T(){let t=Lt();return Ow(t,X())}function by(t){return t[Ul]}function vf(t){return t[Ul]||(t[Ul]=[])}function Ow(t,e){let i,n=e[t.index];return li(n)?i=n:(i=yw(n,e,null,t),e[t.index]=i,xc(e,i)),xT(i,e,t,n),new Rw(i,t,e)}function ET(t,e){let i=t[ze],n=i.createComment(""),r=fn(e,t),o=op(i,r);return Wl(i,o,n,a2(i,r),!1),n}function IT(t,e,i){return ST(t,e,i)}function TT(t,e,i,n){if(t[hr])return;let r;i.type&8?r=jn(n):r=ET(e,i),t[hr]=r}function MT(t,e){let i=t.localNames;if(i!==null){for(let n=0;n<i.length;n+=2)if(i[n]===e)return i[n+1]}return null}function AT(t,e){return t.type&11?po(t,e):t.type&4?mp(t,e):null}function NT(t,e,i,n){return i===-1?AT(e,t):i===-2?RT(t,e,n):gr(t,t[ne],i,e)}function RT(t,e,i){if(i===Oe)return po(e,t);if(i===Cn)return mp(e,t);if(i===xn)return Ow(e,t)}function kw(t,e,i,n){let r=e[ni].queries[n];if(r.matches===null){let o=t.data,s=i.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let c=s[l];if(c<0)a.push(null);else{let u=o[c];a.push(NT(e,u,s[l+1],i.metadata.read))}}r.matches=a}return r.matches}function ch(t,e,i,n){let r=t.queries.getByIndex(i),o=r.matches;if(o!==null){let s=kw(t,e,r,i);for(let a=0;a<o.length;a+=2){let l=o[a];if(l>0)n.push(s[a/2]);else{let c=o[a+1],u=e[-l];for(let d=xt;d<u.length;d++){let m=u[d];m[Rs]===m[vt]&&ch(m[ne],m,c,n)}if(u[ao]!==null){let d=u[ao];for(let m=0;m<d.length;m++){let g=d[m];ch(g[ne],g,c,n)}}}}}return n}function OT(t,e){return t[ni].queries[e].queryList}function kT(t,e,i){let n=new jf((i&4)===4);return _2(t,e,n,n.destroy),(e[ni]??=new oh).queries.push(new rh(n))-1}function FT(t,e,i){let n=Ze();return n.firstCreatePass&&(LT(n,new sh(t,e,i),-1),(e&2)===2&&(n.staticViewQueries=!0)),kT(n,X(),e)}function PT(t){return t.split(",").map(e=>e.trim())}function LT(t,e,i){t.queries===null&&(t.queries=new ah),t.queries.track(new lh(e,i))}function vp(t,e){return t.queries.getByIndex(e)}function VT(t,e){let i=t[ne],n=vp(i,e);return n.crossesNgTemplate?ch(i,t,e,[]):kw(i,t,n,e)}function jT(t){return typeof t=="function"&&t[Rn]!==void 0}function Ls(t,e){Un("NgSignals");let i=S0(t),n=i[Rn];return e?.equal&&(n.equal=e.equal),i.set=r=>hd(n,r),i.update=r=>I0(n,r),i.asReadonly=$T.bind(i),i}function $T(){let t=this[Rn];if(t.readonlyFn===void 0){let e=()=>this();e[Rn]=t,t.readonlyFn=e}return t.readonlyFn}function Fw(t){return jT(t)&&typeof t.set=="function"}function BT(t){return Object.getPrototypeOf(t.prototype).constructor}function Gt(t){let e=BT(t.type),i=!0,n=[t];for(;e;){let r;if(ii(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new N(903,!1);r=e.\u0275dir}if(r){if(i){n.push(r);let s=t;s.inputs=Ml(t.inputs),s.inputTransforms=Ml(t.inputTransforms),s.declaredInputs=Ml(t.declaredInputs),s.outputs=Ml(t.outputs);let a=r.hostBindings;a&&GT(t,a);let l=r.viewQuery,c=r.contentQueries;if(l&&qT(t,l),c&&zT(t,c),UT(t,r),Ex(t.outputs,r.outputs),ii(r)&&r.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(t),a===Gt&&(i=!1)}}e=Object.getPrototypeOf(e)}HT(n)}function UT(t,e){for(let i in e.inputs){if(!e.inputs.hasOwnProperty(i)||t.inputs.hasOwnProperty(i))continue;let n=e.inputs[i];if(n!==void 0&&(t.inputs[i]=n,t.declaredInputs[i]=e.declaredInputs[i],e.inputTransforms!==null)){let r=Array.isArray(n)?n[0]:n;if(!e.inputTransforms.hasOwnProperty(r))continue;t.inputTransforms??={},t.inputTransforms[r]=e.inputTransforms[r]}}}function HT(t){let e=0,i=null;for(let n=t.length-1;n>=0;n--){let r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=ps(r.hostAttrs,i=ps(i,r.hostAttrs))}}function Ml(t){return t===io?{}:t===Ht?[]:t}function qT(t,e){let i=t.viewQuery;i?t.viewQuery=(n,r)=>{e(n,r),i(n,r)}:t.viewQuery=e}function zT(t,e){let i=t.contentQueries;i?t.contentQueries=(n,r,o)=>{e(n,r,o),i(n,r,o)}:t.contentQueries=e}function GT(t,e){let i=t.hostBindings;i?t.hostBindings=(n,r)=>{e(n,r),i(n,r)}:t.hostBindings=e}function yp(t){let e=t.inputConfig,i={};for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];Array.isArray(r)&&r[3]&&(i[n]=r[3])}t.inputTransforms=i}function wp(t,e,i=null){return new Jl({providers:t,parent:e,debugName:i,runEnvironmentInitializers:!0}).injector}function Pw(t){return QT(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function WT(t,e){if(Array.isArray(t))for(let i=0;i<t.length;i++)e(t[i]);else{let i=t[Symbol.iterator](),n;for(;!(n=i.next()).done;)e(n.value)}}function QT(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function mo(t,e,i){return t[e]=i}function Lw(t,e){return t[e]}function zt(t,e,i){let n=t[e];return Object.is(n,i)?!1:(t[e]=i,!0)}function Ts(t,e,i,n){let r=zt(t,e,i);return zt(t,e+1,n)||r}function Vw(t,e,i,n,r){let o=Ts(t,e,i,n);return zt(t,e+2,r)||o}function bp(t,e,i,n,r,o){let s=Ts(t,e,i,n);return Ts(t,e+2,r,o)||s}function ZT(t){return(t.flags&32)===32}function KT(t,e,i,n,r,o,s,a,l){let c=e.consts,u=Ps(e,t,4,s||null,lo(c,a));dp(e,i,u,lo(c,l)),mc(e,u);let d=u.tView=up(2,u,n,r,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c,null);return e.queries!==null&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}function I(t,e,i,n,r,o,s,a){let l=X(),c=Ze(),u=t+yt,d=c.firstCreatePass?KT(u,c,l,e,i,n,r,o,s):c.data[u];wr(d,!1);let m=YT(c,l,d,t);hc()&&Cc(c,l,m,d),Mi(m,l);let g=yw(m,l,m,d);return l[u]=g,xc(l,g),IT(g,d,l),dc(d)&&lp(c,l,d),s!=null&&cp(l,d,a),I}function JT(t,e,i,n){return pc(!0),e[ze].createComment("")}function U(t,e,i,n){let r=X(),o=br();if(zt(r,o,e)){let s=Ze(),a=ks();L2(a,r,t,e,i,n)}return U}function jw(t,e,i,n){return zt(t,br(),i)?e+Ut(i)+n:wt}function XT(t,e,i,n,r,o){let s=zh(),a=Ts(t,s,i,r);return Os(2),a?e+Ut(i)+n+Ut(r)+o:wt}function eM(t,e,i,n,r,o,s,a){let l=zh(),c=Vw(t,l,i,r,s);return Os(3),c?e+Ut(i)+n+Ut(r)+o+Ut(s)+a:wt}function tM(t,e,i,n,r,o,s,a,l,c){let u=zh(),d=bp(t,u,i,r,s,l);return Os(4),d?e+Ut(i)+n+Ut(r)+o+Ut(s)+a+Ut(l)+c:wt}function Al(t,e){return t<<17|e<<2}function yr(t){return t>>17&32767}function nM(t){return(t&2)==2}function iM(t,e){return t&131071|e<<17}function fh(t){return t|2}function co(t){return(t&131068)>>2}function yf(t,e){return t&-131069|e<<2}function rM(t){return(t&1)===1}function hh(t){return t|1}function oM(t,e,i,n,r,o){let s=o?e.classBindings:e.styleBindings,a=yr(s),l=co(s);t[n]=i;let c=!1,u;if(Array.isArray(i)){let d=i;u=d[1],(u===null||Ns(d,u)>0)&&(c=!0)}else u=i;if(r)if(l!==0){let m=yr(t[a+1]);t[n+1]=Al(m,a),m!==0&&(t[m+1]=yf(t[m+1],n)),t[a+1]=iM(t[a+1],n)}else t[n+1]=Al(a,0),a!==0&&(t[a+1]=yf(t[a+1],n)),a=n;else t[n+1]=Al(l,0),a===0?a=n:t[l+1]=yf(t[l+1],n),l=n;c&&(t[n+1]=fh(t[n+1])),Cy(t,u,n,!0),Cy(t,u,n,!1),sM(e,u,t,n,o),s=Al(a,l),o?e.classBindings=s:e.styleBindings=s}function sM(t,e,i,n,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Ns(o,e)>=0&&(i[n+1]=hh(i[n+1]))}function Cy(t,e,i,n){let r=t[i+1],o=e===null,s=n?yr(r):co(r),a=!1;for(;s!==0&&(a===!1||o);){let l=t[s],c=t[s+1];aM(l,e)&&(a=!0,t[s+1]=n?hh(c):fh(c)),s=n?yr(c):co(c)}a&&(t[i+1]=n?fh(r):hh(r))}function aM(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Ns(t,e)>=0:!1}function $w(t){return t.substring(st.key,st.keyEnd)}function lM(t){return t.substring(st.value,st.valueEnd)}function cM(t){return Hw(t),Bw(t,uo(t,0,st.textEnd))}function Bw(t,e){let i=st.textEnd;return i===e?-1:(e=st.keyEnd=dM(t,st.key=e,i),uo(t,e,i))}function uM(t){return Hw(t),Uw(t,uo(t,0,st.textEnd))}function Uw(t,e){let i=st.textEnd,n=st.key=uo(t,e,i);return i===n?-1:(n=st.keyEnd=fM(t,n,i),n=_y(t,n,i,58),n=st.value=uo(t,n,i),n=st.valueEnd=hM(t,n,i),_y(t,n,i,59))}function Hw(t){st.key=0,st.keyEnd=0,st.value=0,st.valueEnd=0,st.textEnd=t.length}function uo(t,e,i){for(;e<i&&t.charCodeAt(e)<=32;)e++;return e}function dM(t,e,i){for(;e<i&&t.charCodeAt(e)>32;)e++;return e}function fM(t,e,i){let n;for(;e<i&&((n=t.charCodeAt(e))===45||n===95||(n&-33)>=65&&(n&-33)<=90||n>=48&&n<=57);)e++;return e}function _y(t,e,i,n){return e=uo(t,e,i),e<i&&e++,e}function hM(t,e,i){let n=-1,r=-1,o=-1,s=e,a=s;for(;s<i;){let l=t.charCodeAt(s++);if(l===59)return a;l===34||l===39?a=s=Dy(t,l,s,i):e===s-4&&o===85&&r===82&&n===76&&l===40?a=s=Dy(t,41,s,i):l>32&&(a=s),o=r,r=n,n=l&-33}return a}function Dy(t,e,i,n){let r=-1,o=i;for(;o<n;){let s=t.charCodeAt(o++);if(s==e&&r!==92)return o;s==92&&r===92?r=0:r=s}throw new Error}function x(t,e,i){let n=X(),r=br();if(zt(n,r,e)){let o=Ze(),s=ks();Ec(o,s,n,t,e,n[ze],i,!1)}return x}function ph(t,e,i,n,r){let o=e.inputs,s=r?"class":"style";fp(t,i,o[s],s,n)}function Cr(t,e,i){return qw(t,e,i,!1),Cr}function Mc(t,e){return qw(t,e,null,!0),Mc}function Vs(t){zw(Qw,pM,t,!1)}function pM(t,e){for(let i=uM(e);i>=0;i=Uw(e,i))Qw(t,$w(e),lM(e))}function mi(t){zw(CM,mM,t,!0)}function mM(t,e){for(let i=cM(e);i>=0;i=Bw(e,i))sc(t,$w(e),!0)}function qw(t,e,i,n){let r=X(),o=Ze(),s=Os(2);if(o.firstUpdatePass&&Ww(o,t,s,n),e!==wt&&zt(r,s,e)){let a=o.data[Dn()];Zw(o,a,r,r[ze],t,r[s+1]=DM(e,i),n,s)}}function zw(t,e,i,n){let r=Ze(),o=Os(2);r.firstUpdatePass&&Ww(r,null,o,n);let s=X();if(i!==wt&&zt(s,o,i)){let a=r.data[Dn()];if(Kw(a,n)&&!Gw(r,o)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(i=Ef(l,i||"")),ph(r,a,s,i,n)}else _M(r,a,s,s[ze],s[o+1],s[o+1]=bM(t,e,i),n,o)}}function Gw(t,e){return e>=t.expandoStartIndex}function Ww(t,e,i,n){let r=t.data;if(r[i+1]===null){let o=r[Dn()],s=Gw(t,i);Kw(o,n)&&e===null&&!s&&(e=!1),e=gM(r,o,e,n),oM(r,o,e,i,s,n)}}function gM(t,e,i,n){let r=v1(t),o=n?e.residualClasses:e.residualStyles;if(r===null)(n?e.classBindings:e.styleBindings)===0&&(i=wf(null,t,e,i,n),i=Ms(i,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==r)if(i=wf(r,t,e,i,n),o===null){let l=vM(t,e,n);l!==void 0&&Array.isArray(l)&&(l=wf(null,t,e,l[1],n),l=Ms(l,e.attrs,n),yM(t,e,n,l))}else o=wM(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),i}function vM(t,e,i){let n=i?e.classBindings:e.styleBindings;if(co(n)!==0)return t[yr(n)]}function yM(t,e,i,n){let r=i?e.classBindings:e.styleBindings;t[yr(r)]=n}function wM(t,e,i){let n,r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<r;o++){let s=t[o].hostAttrs;n=Ms(n,s,i)}return Ms(n,e.attrs,i)}function wf(t,e,i,n,r){let o=null,s=i.directiveEnd,a=i.directiveStylingLast;for(a===-1?a=i.directiveStart:a++;a<s&&(o=e[a],n=Ms(n,o.hostAttrs,r),o!==t);)a++;return t!==null&&(i.directiveStylingLast=a),n}function Ms(t,e,i){let n=i?1:2,r=-1;if(e!==null)for(let o=0;o<e.length;o++){let s=e[o];typeof s=="number"?r=s:r===n&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),sc(t,s,i?!0:e[++o]))}return t===void 0?null:t}function bM(t,e,i){if(i==null||i==="")return Ht;let n=[],r=tn(i);if(Array.isArray(r))for(let o=0;o<r.length;o++)t(n,r[o],!0);else if(typeof r=="object")for(let o in r)r.hasOwnProperty(o)&&t(n,o,r[o]);else typeof r=="string"&&e(n,r);return n}function Qw(t,e,i){sc(t,e,tn(i))}function CM(t,e,i){let n=String(e);n!==""&&!n.includes(" ")&&sc(t,n,i)}function _M(t,e,i,n,r,o,s,a){r===wt&&(r=Ht);let l=0,c=0,u=0<r.length?r[0]:null,d=0<o.length?o[0]:null;for(;u!==null||d!==null;){let m=l<r.length?r[l+1]:void 0,g=c<o.length?o[c+1]:void 0,w=null,D;u===d?(l+=2,c+=2,m!==g&&(w=d,D=g)):d===null||u!==null&&u<d?(l+=2,w=u):(c+=2,w=d,D=g),w!==null&&Zw(t,e,i,n,w,D,s,a),u=l<r.length?r[l]:null,d=c<o.length?o[c]:null}}function Zw(t,e,i,n,r,o,s,a){if(!(e.type&3))return;let l=t.data,c=l[a+1],u=rM(c)?Ey(l,e,i,r,co(c),s):void 0;if(!Xl(u)){Xl(o)||nM(c)&&(o=Ey(l,null,i,r,a,s));let d=d1(Dn(),i);p2(n,s,d,r,o)}}function Ey(t,e,i,n,r,o){let s=e===null,a;for(;r>0;){let l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=u===null,m=i[r+1];m===wt&&(m=d?Ht:void 0);let g=d?cf(m,n):u===n?m:void 0;if(c&&!Xl(g)&&(g=cf(l,n)),Xl(g)&&(a=g,s))return a;let w=t[r+1];r=s?yr(w):co(w)}if(e!==null){let l=o?e.residualClasses:e.residualStyles;l!=null&&(a=cf(l,n))}return a}function Xl(t){return t!==void 0}function DM(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Ot(tn(t)))),t}function Kw(t,e){return(t.flags&(e?8:16))!==0}function bf(t,e,i,n,r){return t===i&&Object.is(e,n)?1:Object.is(r(t,e),r(i,n))?-1:0}function EM(t,e,i){let n,r,o=0,s=t.length-1;if(Array.isArray(e)){let a=e.length-1;for(;o<=s&&o<=a;){let l=t.at(o),c=e[o],u=bf(o,l,o,c,i);if(u!==0){u<0&&t.updateValue(o,c),o++;continue}let d=t.at(s),m=e[a],g=bf(s,d,a,m,i);if(g!==0){g<0&&t.updateValue(s,m),s--,a--;continue}let w=i(o,l),D=i(s,d),S=i(o,c);if(Object.is(S,D)){let O=i(a,m);Object.is(O,w)?(t.swap(o,s),t.updateValue(s,m),a--,s--):t.move(s,o),t.updateValue(o,c),o++;continue}if(n??=new ec,r??=Sy(t,o,s,i),gh(t,n,o,S))t.updateValue(o,c),o++,s++;else if(r.has(S))n.set(w,t.detach(o)),s--;else{let O=t.create(o,e[o]);t.attach(o,O),o++,s++}}for(;o<=a;)xy(t,n,i,o,e[o]),o++}else if(e!=null){let a=e[Symbol.iterator](),l=a.next();for(;!l.done&&o<=s;){let c=t.at(o),u=l.value,d=bf(o,c,o,u,i);if(d!==0)d<0&&t.updateValue(o,u),o++,l=a.next();else{n??=new ec,r??=Sy(t,o,s,i);let m=i(o,u);if(gh(t,n,o,m))t.updateValue(o,u),o++,s++,l=a.next();else if(!r.has(m))t.attach(o,t.create(o,u)),o++,s++,l=a.next();else{let g=i(o,c);n.set(g,t.detach(o)),s--}}}for(;!l.done;)xy(t,n,i,t.length,l.value),l=a.next()}for(;o<=s;)t.destroy(t.detach(s--));n?.forEach(a=>{t.destroy(a)})}function gh(t,e,i,n){return e!==void 0&&e.has(n)?(t.attach(i,e.get(n)),e.delete(n),!0):!1}function xy(t,e,i,n,r){if(gh(t,e,n,i(n,r)))t.updateValue(n,r);else{let o=t.create(n,r);t.attach(n,o)}}function Sy(t,e,i,n){let r=new Set;for(let o=e;o<=i;o++)r.add(n(o,t.at(o)));return r}function P(t,e,i){Un("NgControlFlow");let n=X(),r=br(),o=bh(n,yt+t),s=0;if(zt(n,r,e)){let a=he(null);try{if(Ew(o,s),e!==-1){let l=Ch(n[ne],yt+e),c=Es(o,l.tView.ssrId),u=Ic(n,l,i,{dehydratedView:c});Tc(o,u,s,Ds(l,c))}}finally{he(a)}}else{let a=Dw(o,s);a!==void 0&&(a[Et]=i)}}function Ct(t,e){return e}function Fe(t,e,i,n,r,o,s,a,l,c,u,d,m){Un("NgControlFlow");let g=l!==void 0,w=X(),D=a?s.bind(w[bn][Et]):s,S=new yh(g,D);w[yt+t]=S,I(t+1,e,i,n,r,o),g&&I(t+2,l,c,u,d,m)}function Pe(t){let e=he(null),i=Dn();try{let n=X(),r=n[ne],o=n[i];if(o.liveCollection===void 0){let a=i+1,l=bh(n,a),c=Ch(r,a);o.liveCollection=new wh(l,n,c)}else o.liveCollection.reset();let s=o.liveCollection;if(EM(s,t,o.trackByFn),s.updateIndexes(),o.hasEmptyBlock){let a=br(),l=s.length===0;if(zt(n,a,l)){let c=i+2,u=bh(n,c);if(l){let d=Ch(r,c),m=Es(u,d.tView.ssrId),g=Ic(n,d,void 0,{dehydratedView:m});Tc(u,g,0,Ds(d,m))}else Ew(u,0)}}}finally{he(e)}}function bh(t,e){return t[e]}function xM(t,e){return _s(t,e)}function SM(t,e){return Dw(t,e)}function Ch(t,e){return Bh(t,e)}function IM(t,e,i,n,r,o){let s=e.consts,a=lo(s,r),l=Ps(e,t,2,n,a);return dp(e,i,l,lo(s,o)),l.attrs!==null&&Kl(l,l.attrs,!1),l.mergedAttrs!==null&&Kl(l,l.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,l),l}function f(t,e,i,n){let r=X(),o=Ze(),s=yt+t,a=r[ze],l=o.firstCreatePass?IM(s,o,r,e,i,n):o.data[s],c=TM(o,r,l,a,e,t);r[s]=c;let u=dc(l);return wr(l,!0),uw(a,c,l),!ZT(l)&&hc()&&Cc(o,r,c,l),OS()===0&&Mi(c,r),kS(),u&&(lp(o,r,l),ap(o,l,r)),n!==null&&cp(r,l),f}function p(){let t=Lt();qh()?g1():(t=t.parent,wr(t,!1));let e=t;LS(e)&&VS(),FS();let i=Ze();return i.firstCreatePass&&(mc(i,t),$h(t)&&i.queries.elementEnd(t)),e.classesWithoutHost!=null&&JS(e)&&ph(i,e,X(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&XS(e)&&ph(i,e,X(),e.stylesWithoutHost,!1),p}function E(t,e,i,n){return f(t,e,i,n),p(),E}function MM(t,e,i,n,r){let o=e.consts,s=lo(o,n),a=Ps(e,t,8,"ng-container",s);s!==null&&Kl(a,s,!0);let l=lo(o,r);return dp(e,i,a,l),e.queries!==null&&e.queries.elementStart(e,a),a}function go(t,e,i){let n=X(),r=Ze(),o=t+yt,s=r.firstCreatePass?MM(o,r,n,e,i):r.data[o];wr(s,!0);let a=AM(r,n,s,t);return n[o]=a,hc()&&Cc(r,n,a,s),Mi(a,n),dc(s)&&(lp(r,n,s),ap(r,s,n)),i!=null&&cp(n,s),go}function vo(){let t=Lt(),e=Ze();return qh()?g1():(t=t.parent,wr(t,!1)),e.firstCreatePass&&(mc(e,t),$h(t)&&e.queries.elementEnd(t)),vo}function Z(){return X()}function Cp(t,e,i){let n=X(),r=br();if(zt(n,r,e)){let o=Ze(),s=ks(),a=v1(o.data),l=B2(a,s,n);Ec(o,s,n,t,e,l,i,!0)}return Cp}function RM(t){typeof t=="string"&&(NM=t.toLowerCase().replace(/_/g,"-"))}function k(t,e,i,n){let r=X(),o=Ze(),s=Lt();return Yw(o,r,r[ze],s,t,e,n),k}function OM(t,e,i,n){let r=t.cleanup;if(r!=null)for(let o=0;o<r.length-1;o+=2){let s=r[o];if(s===i&&r[o+1]===n){let a=e[vs],l=r[o+2];return a.length>l?a[l]:null}typeof s=="string"&&(o+=2)}return null}function Yw(t,e,i,n,r,o,s){let a=dc(n),c=t.firstCreatePass&&Cw(t),u=e[Et],d=bw(e),m=!0;if(n.type&3||s){let D=fn(n,e),S=s?s(D):D,O=d.length,K=s?oe=>s(jn(oe[n.index])):n.index,we=null;if(!s&&a&&(we=OM(t,e,r,n.index)),we!==null){let oe=we.__ngLastListenerFn__||we;oe.__ngNextListenerFn__=o,we.__ngLastListenerFn__=o,m=!1}else{o=Ty(n,e,u,o,!1);let oe=i.listen(S,r,o);d.push(o,oe),c&&c.push(r,K,O,O+1)}}else o=Ty(n,e,u,o,!1);let g=n.outputs,w;if(m&&g!==null&&(w=g[r])){let D=w.length;if(D)for(let S=0;S<D;S+=2){let O=w[S],K=w[S+1],pt=e[O][K].subscribe(o),Le=d.length;d.push(o,pt),c&&c.push(r,n.index,Le,-(Le+1))}}}function Iy(t,e,i,n){let r=he(null);try{return Pn(6,e,i),i(n)!==!1}catch(o){return _w(t,o),!1}finally{Pn(7,e,i),he(r)}}function Ty(t,e,i,n,r){return function o(s){if(s===Function)return n;let a=t.componentOffset>-1?Ni(t.index,e):e;pp(a);let l=Iy(e,i,n,s),c=o.__ngNextListenerFn__;for(;c;)l=Iy(e,i,c,s)&&l,c=c.__ngNextListenerFn__;return r&&l===!1&&s.preventDefault(),l}}function v(t=1){return GS(t)}function Ac(t,e,i){return Jw(t,"",e,"",i),Ac}function Jw(t,e,i,n,r){let o=X(),s=jw(o,e,i,n);if(s!==wt){let a=Ze(),l=ks();Ec(a,l,o,t,s,o[ze],r,!1)}return Jw}function at(t,e,i){FT(t,e,i)}function tt(t){let e=X(),i=Ze(),n=y1();Gh(n+1);let r=vp(i,n);if(t.dirty&&TS(e)===((r.metadata.flags&2)===2)){if(r.matches===null)t.reset([]);else{let o=VT(e,n);t.reset(o,fI),t.notifyOnChanges()}return!0}return!1}function nt(){return OT(X(),y1())}function kM(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}function Xw(t){let e=$S();return fc(e,yt+t)}function C(t,e=""){let i=X(),n=Ze(),r=t+yt,o=n.firstCreatePass?Ps(n,r,1,e,null):n.data[r],s=FM(n,i,o,e,t);i[r]=s,hc()&&Cc(n,i,s,o),wr(o,!1)}function A(t){return me("",t,""),A}function me(t,e,i){let n=X(),r=jw(n,t,e,i);return r!==wt&&Sc(n,Dn(),r),me}function _p(t,e,i,n,r){let o=X(),s=XT(o,t,e,i,n,r);return s!==wt&&Sc(o,Dn(),s),_p}function Dp(t,e,i,n,r,o,s){let a=X(),l=eM(a,t,e,i,n,r,o,s);return l!==wt&&Sc(a,Dn(),l),Dp}function Ep(t,e,i,n,r,o,s,a,l){let c=X(),u=tM(c,t,e,i,n,r,o,s,a,l);return u!==wt&&Sc(c,Dn(),u),Ep}function yo(t,e,i){Fw(e)&&(e=e());let n=X(),r=br();if(zt(n,r,e)){let o=Ze(),s=ks();Ec(o,s,n,t,e,n[ze],i,!1)}return yo}function js(t,e){let i=Fw(t);return i&&t.set(e),i}function wo(t,e){let i=X(),n=Ze(),r=Lt();return Yw(n,i,i[ze],r,t,e),wo}function PM(t,e,i){let n=Ze();if(n.firstCreatePass){let r=ii(t);_h(i,n.data,n.blueprint,r,!0),_h(e,n.data,n.blueprint,r,!1)}}function _h(t,e,i,n,r){if(t=Rt(t),Array.isArray(t))for(let o=0;o<t.length;o++)_h(t[o],e,i,n,r);else{let o=Ze(),s=X(),a=Lt(),l=oo(t)?t:Rt(t.provide),c=i1(t),u=a.providerIndexes&1048575,d=a.directiveStart,m=a.providerIndexes>>20;if(oo(t)||!t.multi){let g=new mr(c,r,_),w=_f(l,e,r?u:u+m,d);w===-1?(Ff(Gl(a,s),o,l),Cf(o,t,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(g),s.push(g)):(i[w]=g,s[w]=g)}else{let g=_f(l,e,u+m,d),w=_f(l,e,u,u+m),D=g>=0&&i[g],S=w>=0&&i[w];if(r&&!S||!r&&!D){Ff(Gl(a,s),o,l);let O=jM(r?VM:LM,i.length,r,n,c);!r&&S&&(i[w].providerFactory=O),Cf(o,t,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(O),s.push(O)}else{let O=eb(i[r?w:g],c,!r&&n);Cf(o,t,g>-1?g:w,O)}!r&&n&&S&&i[w].componentProviders++}}}function Cf(t,e,i,n){let r=oo(e),o=fS(e);if(r||o){let l=(o?Rt(e.useClass):e).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){let u=c.indexOf(i);u===-1?c.push(i,[n,l]):c[u+1].push(n,l)}else c.push(i,l)}}}function eb(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function _f(t,e,i,n){for(let r=i;r<n;r++)if(e[r]===t)return r;return-1}function LM(t,e,i,n){return Dh(this.multi,[])}function VM(t,e,i,n){let r=this.multi,o;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=gr(i,i[ne],this.providerFactory.index,n);o=a.slice(0,s),Dh(r,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],Dh(r,o);return o}function Dh(t,e){for(let i=0;i<t.length;i++){let n=t[i];e.push(n())}return e}function jM(t,e,i,n,r){let o=new mr(t,i,_);return o.multi=[],o.index=e,o.componentProviders=0,eb(o,r,n&&!i),o}function Wt(t,e=[]){return i=>{i.providersResolver=(n,r)=>PM(n,r?r(t):t,e)}}function B(t){Un("NgStandalone"),t.getStandaloneInjector=e=>e.get($M).getOrCreateStandaloneInjector(t)}function Nc(t,e,i){let n=ci()+t,r=X();return r[n]===wt?mo(r,n,i?e.call(i):e()):Lw(r,n)}function Ee(t,e,i,n){return rb(X(),ci(),t,e,i,n)}function St(t,e,i,n,r){return ob(X(),ci(),t,e,i,n,r)}function tb(t,e,i,n,r,o){return sb(X(),ci(),t,e,i,n,r,o)}function nb(t,e,i,n,r,o,s){return BM(X(),ci(),t,e,i,n,r,o,s)}function ib(t,e,i,n,r,o,s,a){let l=ci()+t,c=X(),u=bp(c,l,i,n,r,o);return zt(c,l+4,s)||u?mo(c,l+5,a?e.call(a,i,n,r,o,s):e(i,n,r,o,s)):Lw(c,l+5)}function Rc(t,e){let i=t[e];return i===wt?void 0:i}function rb(t,e,i,n,r,o){let s=e+i;return zt(t,s,r)?mo(t,s+1,o?n.call(o,r):n(r)):Rc(t,s+1)}function ob(t,e,i,n,r,o,s){let a=e+i;return Ts(t,a,r,o)?mo(t,a+2,s?n.call(s,r,o):n(r,o)):Rc(t,a+2)}function sb(t,e,i,n,r,o,s,a){let l=e+i;return Vw(t,l,r,o,s)?mo(t,l+3,a?n.call(a,r,o,s):n(r,o,s)):Rc(t,l+3)}function BM(t,e,i,n,r,o,s,a,l){let c=e+i;return bp(t,c,r,o,s,a)?mo(t,c+4,l?n.call(l,r,o,s,a):n(r,o,s,a)):Rc(t,c+4)}function ki(t,e){let i=Ze(),n,r=t+yt;i.firstCreatePass?(n=UM(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks??=[]).push(r,n.onDestroy)):n=i.data[r];let o=n.factory||(n.factory=ur(n.type,!0)),s,a=Bt(_);try{let l=zl(!1),c=o();return zl(l),kM(i,X(),r,c),c}finally{Bt(a)}}function UM(t,e){if(e)for(let i=e.length-1;i>=0;i--){let n=e[i];if(t===n.name)return n}}function ab(t,e,i){let n=t+yt,r=X(),o=fc(r,n);return xp(r,n)?rb(r,ci(),e,o.transform,i,o):o.transform(i)}function Oc(t,e,i,n){let r=t+yt,o=X(),s=fc(o,r);return xp(o,r)?ob(o,ci(),e,s.transform,i,n,s):s.transform(i,n)}function lb(t,e,i,n,r){let o=t+yt,s=X(),a=fc(s,o);return xp(s,o)?sb(s,ci(),e,a.transform,i,n,r,a):a.transform(i,n,r)}function xp(t,e){return t[ne].data[e].pure}function Fi(t){return!!t&&typeof t.then=="function"}function Sp(t){return!!t&&typeof t.subscribe=="function"}function HM(){x0(()=>{throw new N(600,!1)})}function qM(t){return t.isBoundToModule}function zM(t,e,i){try{let n=i();return Fi(n)?n.catch(r=>{throw e.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function Df(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function GM(t,e,i){!e&&!Eh(t)||WM(t,i,e)}function Eh(t){return Hh(t)}function WM(t,e,i){let n;i?(n=0,t[J]|=1024):t[J]&64?n=0:n=1,Iw(t,e,n)}function ZM(t){return[{provide:De,useFactory:t},{provide:ro,multi:!0,useFactory:()=>{let e=T(QM,{optional:!0});return()=>e.initialize()}},{provide:ro,multi:!0,useFactory:()=>{let e=T(XM);return()=>{e.initialize()}}},{provide:P1,useFactory:KM}]}function KM(){let t=T(De),e=T($n);return i=>t.runOutsideAngular(()=>e.handleError(i))}function YM(t){let e=ZM(()=>new De(JM(t)));return Pt([[],e])}function JM(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}function eA(){return typeof $localize<"u"&&$localize.locale||tc}function tA(t=[],e){return ft.create({name:e,providers:[{provide:ac,useValue:"platform"},{provide:db,useValue:new Set([()=>Ll=null])},...t]})}function nA(t=[]){if(Ll)return Ll;let e=tA(t);return Ll=e,HM(),iA(e),e}function iA(t){t.get(Jh,null)?.forEach(i=>i())}function Pc(){return!1}function rA(t){return oA(Lt(),X(),(t&16)===16)}function oA(t,e,i){if(uc(t)&&!i){let n=Ni(t.index,e);return new vr(n,n)}else if(t.type&47){let n=e[bn];return new vr(n,e)}return null}function My(t,e,i){let n=t.previousIndex;if(n===null)return n;let r=0;return i&&n<i.length&&(r=i[n]),n+e+r}function Ay(){return new Mp([new Sh])}function fb(t){try{let{rootComponent:e,appProviders:i,platformProviders:n}=t,r=nA(n),o=[YM(),...i||[]],a=new Jl({providers:o,parent:r,debugName:"",runEnvironmentInitializers:!1}).injector,l=a.get(De);return l.run(()=>{a.resolveInjectorInitializers();let c=a.get($n,null),u;l.runOutsideAngular(()=>{u=l.onError.subscribe({next:g=>{c.handleError(g)}})});let d=()=>a.destroy(),m=r.get(db);return m.add(d),a.onDestroy(()=>{u.unsubscribe(),m.delete(d)}),zM(c,l,()=>{let g=a.get(ub);return g.runInitializers(),g.donePromise.then(()=>{let w=a.get(Tp,tc);RM(w||tc);let D=a.get(Qt);return e!==void 0&&D.bootstrap(e),D})})})}catch(e){return Promise.reject(e)}}function Pi(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Ap(t,e){Un("NgSignals");let i=_0(t);return e?.equal&&(i[Rn].equal=e.equal),i}function bo(t){let e=he(null);try{return t()}finally{he(e)}}function Bs(t,e){Un("NgSignals"),!e?.injector&&lc(Bs);let i=e?.injector??T(ft),n=e?.manualCleanup!==!0?i.get(Ri):null,r=new Nh(i.get(aA),t,typeof Zone>"u"?null:Zone.current,n,i,e?.allowSignalWrites??!1),o=i.get(It,null,{optional:!0});return!o||!(o._lView[J]&8)?r.watcher.notify():(o._lView[Rl]??=[]).push(r.watcher.notify),r}var Ny,N,xl,ti,xx,Fy,zv,Py,Ix,L,Tx,Mx,Ax,Nx,Vl,fs,Gv,de,xf,kx,hs,Sf,jl,Fx,Px,Lx,Wv,to,Oh,By,io,Ht,ro,Hy,qy,Bl,zy,Vn,Te,Wy,cS,ac,Nl,hS,uf,qt,ms,Bn,ne,J,vt,yn,_n,gs,vs,Et,so,wn,ze,ys,Jv,ho,bn,Rs,Xr,ni,cc,o1,Ti,Rl,fr,yt,Vh,hr,Ul,ao,xt,jh,ws,l1,Xv,Pn,u1,ES,xS,se,D1,E1,no,mr,kf,tI,I1,T1,nI,Ln,cr,ft,cI,$n,P1,Ri,Lf,Oe,Vf,Ae,jf,V1,pI,ry,$f,Yh,yI,Jh,ui,Xh,ep,wI,bI,CI,q1,_I,Sl,Il,ri,Bf,Uf,Hf,qf,zf,Gf,Wf,II,Y1,J1,X1,TI,MI,AI,ay,ew,NI,RI,OI,kI,Qf,VI,jI,Tl,nn,HI,qI,zI,oi,WI,u2,fy,wt,C2,xw,Z2,Sw,vr,Cn,tT,nT,rj,rT,xs,Xf,Zl,sT,eh,pi,si,bt,lT,gf,my,De,uT,Nw,Yl,nh,Ss,ih,xn,DT,Rw,xT,ST,rh,oh,sh,ah,lh,Ai,Is,uh,dh,Jl,Oi,YT,st,mh,ec,vh,yh,wh,TM,AM,tc,NM,FM,$M,kc,cb,$s,ub,Fc,Qt,xh,Ip,QM,XM,Tp,db,Ll,It,Sh,sA,Ih,Th,Mh,nc,Mp,aA,lA,Ah,Nh,F=y(()=>{"use strict";A0();Xe();ar();Ny="https://g.co/ng/security#xss",N=class extends Error{constructor(e,i){super(ic(e,i)),this.code=e}};xl="__parameters__";ti=globalThis;xx=Re({__forward_ref__:Re});Fy=Re({\u0275prov:Re}),zv=Re({\u0275inj:Re}),Py=Re({ngInjectableDef:Re}),Ix=Re({ngInjectorDef:Re}),L=class{constructor(e,i){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof i=="number"?this.__NG_ELEMENT_ID__=i:i!==void 0&&(this.\u0275prov=R({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};Tx=Re({\u0275cmp:Re}),Mx=Re({\u0275dir:Re}),Ax=Re({\u0275pipe:Re}),Nx=Re({\u0275mod:Re}),Vl=Re({\u0275fac:Re}),fs=Re({__NG_ELEMENT_ID__:Re}),Gv=Re({__NG_ENV_ID__:Re});de=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(de||{});kx={},hs=kx,Sf="__NG_DI_FLAG__",jl="ngTempTokenPath",Fx="ngTokenPath",Px=/\n/gm,Lx="\u0275",Wv="__source";Oh=$y(Ry("Optional"),8),By=$y(Ry("SkipSelf"),4);io={},Ht=[],ro=new L(""),Hy=new L("",-1),qy=new L(""),Bl=class{get(e,i=hs){if(i===hs){let n=new Error(`NullInjectorError: No provider for ${Ot(e)}!`);throw n.name="NullInjectorError",n}return i}},zy=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(zy||{}),Vn=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Vn||{}),Te=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(Te||{});Wy="ng-template";cS=Re({provide:String,useValue:Re});ac=new L(""),Nl={},hS={};qt=class{},ms=class extends qt{get destroyed(){return this._destroyed}constructor(e,i,n,r){super(),this.parent=i,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Nf(e,s=>this.processProvider(s)),this.records.set(Hy,Jr(void 0,this)),r.has("environment")&&this.records.set(qt,Jr(void 0,this));let o=this.records.get(ac);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(qy,Ht,de.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=he(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let i=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of i)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),he(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let i=Ii(this),n=Bt(void 0),r;try{return e()}finally{Ii(i),Bt(n)}}get(e,i=hs,n=de.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Gv))return e[Gv](this);n=oc(n);let r,o=Ii(this),s=Bt(void 0);try{if(!(n&de.SkipSelf)){let l=this.records.get(e);if(l===void 0){let c=yS(e)&&rc(e);c&&this.injectableDefInScope(c)?l=Jr(Af(e),Nl):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let a=n&de.Self?Lh():this.parent;return i=n&de.Optional&&i===hs?null:i,a.get(e,i)}catch(a){if(a.name==="NullInjectorError"){if((a[jl]=a[jl]||[]).unshift(Ot(e)),o)throw a;return Bx(a,e,"R3InjectorError",this.source)}else throw a}finally{Bt(s),Ii(o)}}resolveInjectorInitializers(){let e=he(null),i=Ii(this),n=Bt(void 0),r;try{let o=this.get(ro,Ht,de.Self);for(let s of o)s()}finally{Ii(i),Bt(n),he(e)}}toString(){let e=[],i=this.records;for(let n of i.keys())e.push(Ot(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new N(205,!1)}processProvider(e){e=Rt(e);let i=oo(e)?e:Rt(e&&e.provide),n=mS(e);if(!oo(e)&&e.multi===!0){let r=this.records.get(i);r||(r=Jr(void 0,Nl,!0),r.factory=()=>If(r.multi),this.records.set(i,r)),i=e,r.multi.push(e)}this.records.set(i,n)}hydrate(e,i){let n=he(null);try{return i.value===Nl&&(i.value=hS,i.value=i.factory()),typeof i.value=="object"&&i.value&&vS(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}finally{he(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let i=Rt(e.providedIn);return typeof i=="string"?i==="any"||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(e){let i=this._onDestroyHooks.indexOf(e);i!==-1&&this._onDestroyHooks.splice(i,1)}};Bn=0,ne=1,J=2,vt=3,yn=4,_n=5,gs=6,vs=7,Et=8,so=9,wn=10,ze=11,ys=12,Jv=13,ho=14,bn=15,Rs=16,Xr=17,ni=18,cc=19,o1=20,Ti=21,Rl=22,fr=23,yt=25,Vh=1,hr=7,Ul=8,ao=9,xt=10,jh=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(jh||{});ws=class{constructor(e,i,n){this.previousValue=e,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}};et.ngInherit=!0;l1="__ngSimpleChanges__";Xv=null,Pn=function(t,e,i){Xv?.(t,e,i)},u1="svg",ES="math",xS=!1;se={lFrame:C1(null),bindingsEnabled:!0,skipHydrationRootTNode:null};D1=_1;E1=!0;no=-1,mr=class{constructor(e,i,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}};kf=!0;tI=256,I1=tI-1,T1=5,nI=0,Ln={};cr=class{constructor(e,i){this._tNode=e,this._lView=i}get(e,i,n){return R1(this._tNode,this._lView,e,oc(n),i)}};ft=(()=>{let e=class e{static create(n,r){if(Array.isArray(n))return iy({name:""},r,n,"");{let o=n.name??"";return iy({name:o},n.parent,n.providers,o)}}};e.THROW_IF_NOT_FOUND=hs,e.NULL=new Bl,e.\u0275prov=R({token:e,providedIn:"any",factory:()=>M(Hy)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})();cI="ngOriginalError";$n=class{constructor(){this._console=console}handleError(e){let i=this._findOriginalError(e);this._console.error("ERROR",e),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(e){let i=e&&hf(e);for(;i&&hf(i);)i=hf(i);return i||null}},P1=new L("",{providedIn:"root",factory:()=>T($n).handleError.bind(void 0)}),Ri=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=uI,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),Lf=class extends Ri{constructor(e){super(),this._lView=e}onDestroy(e){return h1(this._lView,e),()=>RS(this._lView,e)}};Oe=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=dI;let t=e;return t})();Vf=class extends ge{constructor(e=!1){super(),this.destroyRef=void 0,this.__isAsync=e,r1()&&(this.destroyRef=T(Ri,{optional:!0})??void 0)}emit(e){let i=he(null);try{super.next(e)}finally{he(i)}}subscribe(e,i,n){let r=e,o=i||(()=>null),s=n;if(e&&typeof e=="object"){let l=e;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=pf(o),r&&(r=pf(r)),s&&(s=pf(s)));let a=super.subscribe({next:r,error:o,complete:s});return e instanceof He&&e.add(a),a}};Ae=Vf;jf=class t{get changes(){return this._changes??=new Ae}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let i=t.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=hI)}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,i){return this._results.reduce(e,i)}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,i){this.dirty=!1;let n=qx(e);(this._changesDetected=!Hx(this._results,n,i))&&(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.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};V1=new Map,pI=0;ry="__ngContext__";Yh=new L("",{providedIn:"root",factory:()=>yI}),yI="ng",Jh=new L(""),ui=new L("",{providedIn:"platform",factory:()=>"unknown"}),Xh=new L(""),ep=new L("",{providedIn:"root",factory:()=>H1().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),wI="h",bI="b",CI=()=>null;q1=!1,_I=new L("",{providedIn:"root",factory:()=>q1});ri=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ny})`}},Bf=class extends ri{getTypeName(){return"HTML"}},Uf=class extends ri{getTypeName(){return"Style"}},Hf=class extends ri{getTypeName(){return"Script"}},qf=class extends ri{getTypeName(){return"URL"}},zf=class extends ri{getTypeName(){return"ResourceURL"}};Gf=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let i=new window.DOMParser().parseFromString(gc(e),"text/html").body;return i===null?this.inertDocumentHelper.getInertBodyElement(e):(i.removeChild(i.firstChild),i)}catch{return null}}},Wf=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let i=this.inertDocument.createElement("template");return i.innerHTML=gc(e),i}};II=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;Y1=fi("area,br,col,hr,img,wbr"),J1=fi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),X1=fi("rp,rt"),TI=Fs(X1,J1),MI=Fs(J1,fi("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")),AI=Fs(X1,fi("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")),ay=Fs(Y1,MI,AI,TI),ew=fi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),NI=fi("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"),RI=fi("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"),OI=Fs(ew,NI,RI),kI=fi("script,style,template"),Qf=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let i=e.firstChild,n=!0,r=[];for(;i;){if(i.nodeType===Node.ELEMENT_NODE?n=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,n&&i.firstChild){r.push(i),i=LI(i);continue}for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let o=PI(i);if(o){i=o;break}i=r.pop()}}return this.buf.join("")}startElement(e){let i=ly(e).toLowerCase();if(!ay.hasOwnProperty(i))return this.sanitizedSomething=!0,!kI.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);let n=e.attributes;for(let r=0;r<n.length;r++){let o=n.item(r),s=o.name,a=s.toLowerCase();if(!OI.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=o.value;ew[a]&&(l=vc(l)),this.buf.push(" ",s,'="',cy(l),'"')}return this.buf.push(">"),!0}endElement(e){let i=ly(e).toLowerCase();ay.hasOwnProperty(i)&&!Y1.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(e){this.buf.push(cy(e))}};VI=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jI=/([^\#-~ |!])/g;nn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(nn||{});HI=/^>|^->|<!--|-->|--!>|<!-$/g,qI=/(<|>)/g,zI="\u200B$1\u200B";oi=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(oi||{});u2=c2;wt={};C2=()=>null;xw=[];Z2=z(b({},Xo),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{bs(t.lView)},consumerOnSignalRead(){this.lView[fr]=this}}),Sw=100;vr=class{get rootNodes(){let e=this._lView,i=e[ne];return Ql(i,e,i.firstChild,[])}constructor(e,i,n=!0){this._lView=e,this._cdRefInjectingView=i,this.notifyErrorHandler=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Et]}set context(e){this._lView[Et]=e}get destroyed(){return(this._lView[J]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[vt];if(li(e)){let i=e[Ul],n=i?i.indexOf(this):-1;n>-1&&(_s(e,n),$l(i,n))}this._attachedToViewContainer=!1}bc(this._lView[ne],this._lView)}onDestroy(e){h1(this._lView,e)}markForCheck(){pp(this._cdRefInjectingView||this._lView)}detach(){this._lView[J]&=-129}reattach(){Rf(this._lView),this._lView[J]|=128}detectChanges(){this._lView[J]|=1024,Iw(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new N(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,ow(this._lView[ne],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new N(902,!1);this._appRef=e,Rf(this._lView)}},Cn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=iT;let t=e;return t})(),tT=Cn,nT=class extends tT{constructor(e,i,n){super(),this._declarationLView=e,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,n){let r=Ic(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:n});return new vr(r)}};rj=new RegExp(`^(\\d+)*(${bI}|${wI})*(.*)`),rT=()=>null;xs=class{},Xf=class{},Zl=class{};sT="ngComponent",eh=class{resolveComponentFactory(e){throw oT(e)}},pi=(()=>{let e=class e{};e.NULL=new eh;let t=e;return t})(),si=class{},bt=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>aT();let t=e;return t})();lT=(()=>{let e=class e{};e.\u0275prov=R({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),gf={},my=new Set;De=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ae(!1),this.onMicrotaskEmpty=new Ae(!1),this.onStable=new Ae(!1),this.onError=new Ae(!1),typeof Zone>"u")throw new N(908,!1);Zone.assertZonePatched();let r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&i,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=cT().nativeRequestAnimationFrame,fT(r)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new N(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new N(909,!1)}run(e,i,n){return this._inner.run(e,i,n)}runTask(e,i,n,r){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,e,uT,gy,gy);try{return o.runTask(s,i,n)}finally{o.cancelTask(s)}}runGuarded(e,i,n){return this._inner.runGuarded(e,i,n)}runOutsideAngular(e){return this._outer.run(e)}},uT={};Nw=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let r of n)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=R({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();Yl=class extends pi{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let i=dr(e);return new Ss(i,this.ngModule)}};nh=class{constructor(e,i){this.injector=e,this.parentInjector=i}get(e,i,n){n=oc(n);let r=this.injector.get(e,gf,n);return r!==gf||i===gf?r:this.parentInjector.get(e,i,n)}},Ss=class extends Zl{get inputs(){let e=this.componentDef,i=e.inputTransforms,n=wy(e.inputs);if(i!==null)for(let r of n)i.hasOwnProperty(r.propName)&&(r.transform=i[r.propName]);return n}get outputs(){return wy(this.componentDef.outputs)}constructor(e,i){super(),this.componentDef=e,this.ngModule=i,this.componentType=e.type,this.selector=iS(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!i}create(e,i,n,r){let o=he(null);try{r=r||this.ngModule;let s=r instanceof qt?r:r?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new nh(e,s):e,l=a.get(si,null);if(l===null)throw new N(407,!1);let c=a.get(lT,null),u=a.get(Nw,null),d=a.get(xs,null),m={rendererFactory:l,sanitizer:c,inlineEffectRunner:null,afterRenderEventManager:u,changeDetectionScheduler:d},g=l.createRenderer(null,this.componentDef),w=this.componentDef.selectors[0][0]||"div",D=n?w2(g,n,this.componentDef.encapsulation,a):rw(g,w,pT(w)),S=512;this.componentDef.signals?S|=4096:this.componentDef.onPush||(S|=16);let O=null;D!==null&&(O=tp(D,a,!0));let K=up(0,null,null,1,0,null,null,null,null,null,null),we=Dc(null,K,null,S,null,null,m,g,a,null,O);Wh(we);let oe,pt;try{let Le=this.componentDef,Ve,lt=null;Le.findHostDirectiveDefs?(Ve=[],lt=new Map,Le.findHostDirectiveDefs(Le,Ve,lt),Ve.push(Le)):Ve=[Le];let Yn=mT(we,D),bi=gT(Yn,D,Le,Ve,we,m,g);pt=Bh(K,yt),D&&wT(g,Le,D,n),i!==void 0&&bT(pt,this.ngContentSelectors,i),oe=yT(bi,Le,Ve,lt,we,[CT]),hp(K,we,null)}finally{Qh()}return new ih(this.componentType,oe,po(pt,we),we,pt)}finally{he(o)}}},ih=class extends Xf{constructor(e,i,n,r,o){super(),this.location=n,this._rootLView=r,this._tNode=o,this.previousInputValues=null,this.instance=i,this.hostView=this.changeDetectorRef=new vr(r,void 0,!1),this.componentType=e}setInput(e,i){let n=this._tNode.inputs,r;if(n!==null&&(r=n[e])){if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),i))return;let o=this._rootLView;fp(o[ne],o,r,e,i),this.previousInputValues.set(e,i);let s=Ni(this._tNode.index,o);pp(s)}}get injector(){return new cr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};xn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=_T;let t=e;return t})();DT=xn,Rw=class extends DT{constructor(e,i,n){super(),this._lContainer=e,this._hostTNode=i,this._hostLView=n}get element(){return po(this._hostTNode,this._hostLView)}get injector(){return new cr(this._hostTNode,this._hostLView)}get parentInjector(){let e=Zh(this._hostTNode,this._hostLView);if(S1(e)){let i=ql(e,this._hostLView),n=Hl(e),r=i[ne].data[n+8];return new cr(r,i)}else return new cr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let i=by(this._lContainer);return i!==null&&i[e]||null}get length(){return this._lContainer.length-xt}createEmbeddedView(e,i,n){let r,o;typeof n=="number"?r=n:n!=null&&(r=n.index,o=n.injector);let s=Es(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(i||{},o,s);return this.insertImpl(a,r,Ds(this._hostTNode,s)),a}createComponent(e,i,n,r,o){let s=e&&!wS(e),a;if(s)a=i;else{let w=i||{};a=w.index,n=w.injector,r=w.projectableNodes,o=w.environmentInjector||w.ngModuleRef}let l=s?e:new Ss(dr(e)),c=n||this.parentInjector;if(!o&&l.ngModule==null){let D=(s?c:this.parentInjector).get(qt,null);D&&(o=D)}let u=dr(l.componentType??{}),d=Es(this._lContainer,u?.id??null),m=d?.firstChild??null,g=l.create(c,r,m,o);return this.insertImpl(g.hostView,a,Ds(this._hostTNode,d)),g}insert(e,i){return this.insertImpl(e,i,!0)}insertImpl(e,i,n){let r=e._lView;if(MS(r)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let l=r[vt],c=new Rw(l,l[_n],l[vt]);c.detach(c.indexOf(e))}}let o=this._adjustIndex(i),s=this._lContainer;return Tc(s,r,o,n),e.attachToViewContainerRef(),Uy(vf(s),o,e),e}move(e,i){return this.insert(e,i)}indexOf(e){let i=by(this._lContainer);return i!==null?i.indexOf(e):-1}remove(e){let i=this._adjustIndex(e,-1),n=_s(this._lContainer,i);n&&($l(vf(this._lContainer),i),bc(n[ne],n))}detach(e){let i=this._adjustIndex(e,-1),n=_s(this._lContainer,i);return n&&$l(vf(this._lContainer),i)!=null?new vr(n):null}_adjustIndex(e,i=0){return e??this.length+i}};xT=TT,ST=()=>!1;rh=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},oh=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let i=e.queries;if(i!==null){let n=e.contentQueries!==null?e.contentQueries[0]:i.length,r=[];for(let o=0;o<n;o++){let s=i.getByIndex(o),a=this.queries[s.indexInDeclarationView];r.push(a.clone())}return new t(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let i=0;i<this.queries.length;i++)vp(e,i).matches!==null&&this.queries[i].setDirty()}},sh=class{constructor(e,i,n=null){this.flags=i,this.read=n,typeof e=="string"?this.predicate=PT(e):this.predicate=e}},ah=class t{constructor(e=[]){this.queries=e}elementStart(e,i){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,i)}elementEnd(e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(e)}embeddedTView(e){let i=null;for(let n=0;n<this.length;n++){let r=i!==null?i.length:0,o=this.getByIndex(n).embeddedTView(e,r);o&&(o.indexInDeclarationView=n,i!==null?i.push(o):i=[o])}return i!==null?new t(i):null}template(e,i){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,i)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}},lh=class t{constructor(e,i=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}elementStart(e,i){this.isApplyingToNode(i)&&this.matchTNode(e,i)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,i){this.elementStart(e,i)}embeddedTView(e,i){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,i),new t(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let i=this._declarationNodeIndex,n=e.parent;for(;n!==null&&n.type&8&&n.index!==i;)n=n.parent;return i===(n!==null?n.index:-1)}return this._appliesToNextNode}matchTNode(e,i){let n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){let o=n[r];this.matchTNodeWithReadOption(e,i,MT(i,o)),this.matchTNodeWithReadOption(e,i,Fl(i,e,o,!1,!1))}else n===Cn?i.type&4&&this.matchTNodeWithReadOption(e,i,-1):this.matchTNodeWithReadOption(e,i,Fl(i,e,n,!1,!1))}matchTNodeWithReadOption(e,i,n){if(n!==null){let r=this.metadata.read;if(r!==null)if(r===Oe||r===xn||r===Cn&&i.type&4)this.addMatch(i.index,-2);else{let o=Fl(i,e,r,!1,!1);o!==null&&this.addMatch(i.index,o)}else this.addMatch(i.index,n)}}addMatch(e,i){this.matches===null?this.matches=[e,i]:this.matches.push(e,i)}};Ai=class{},Is=class{},uh=class extends Ai{constructor(e,i,n){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Yl(this);let r=Yy(e);this._bootstrapComponents=iw(r.bootstrap),this._r3Injector=F1(e,i,[{provide:Ai,useValue:this},{provide:pi,useValue:this.componentFactoryResolver},...n],Ot(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},dh=class extends Is{constructor(e){super(),this.moduleType=e}create(e){return new uh(this.moduleType,e,[])}},Jl=class extends Ai{constructor(e){super(),this.componentFactoryResolver=new Yl(this),this.instance=null;let i=new ms([...e.providers,{provide:Ai,useValue:this},{provide:pi,useValue:this.componentFactoryResolver}],e.parent||Lh(),e.debugName,new Set(["environment"]));this.injector=i,e.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};Oi=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ke(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();YT=JT;st={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};mh=class{destroy(e){}updateValue(e,i){}swap(e,i){let n=Math.min(e,i),r=Math.max(e,i),o=this.detach(r);if(r-n>1){let s=this.detach(n);this.attach(n,o),this.attach(r,s)}else this.attach(n,o)}move(e,i){this.attach(i,this.detach(e))}};ec=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let i=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(i)?(this.kvMap.set(e,this._vMap.get(i)),this._vMap.delete(i)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,i){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,i)}else this.kvMap.set(e,i)}forEach(e){for(let[i,n]of this.kvMap)if(e(n,i),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,i)}}};vh=class{constructor(e,i,n){this.lContainer=e,this.$implicit=i,this.$index=n}get $count(){return this.lContainer.length-xt}};yh=class{constructor(e,i,n){this.hasEmptyBlock=e,this.trackByFn=i,this.liveCollection=n}};wh=class extends mh{constructor(e,i,n){super(),this.lContainer=e,this.hostLView=i,this.templateTNode=n,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-xt}at(e){return this.getLView(e)[Et].$implicit}attach(e,i){let n=i[gs];this.needsIndexUpdate||=e!==this.length,Tc(this.lContainer,i,e,Ds(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,xM(this.lContainer,e)}create(e,i){let n=Es(this.lContainer,this.templateTNode.tView.ssrId);return Ic(this.hostLView,this.templateTNode,new vh(this.lContainer,i,e),{dehydratedView:n})}destroy(e){bc(e[ne],e)}updateValue(e,i){this.getLView(e)[Et].$implicit=i}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[Et].$index=e}getLView(e){return SM(this.lContainer,e)}};TM=(t,e,i,n,r,o)=>(pc(!0),rw(n,r,QS()));AM=(t,e,i,n)=>(pc(!0),KI(e[ze],""));tc="en-US",NM=tc;FM=(t,e,i,n,r)=>(pc(!0),QI(e[ze],n));$M=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=e1(!1,n.type),o=r.length>0?wp([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=R({token:e,providedIn:"environment",factory:()=>new e(M(qt))});let t=e;return t})();kc=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),cb=new L("");$s=new L(""),ub=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=T($s,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(Fi(s))n.push(s);else if(Sp(s)){let a=new Promise((l,c)=>{s.subscribe({complete:l,error:c})});n.push(a)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Fc=new L("");Qt=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=T(P1),this.afterRenderEffectManager=T(Nw),this.externalTestViews=new Set,this.beforeRender=new ge,this.afterTick=new ge,this.componentTypes=[],this.components=[],this.isStable=T(Oi).hasPendingTasks.pipe(q(n=>!n)),this._injector=T(qt)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Zl;if(!this._injector.get(ub).done){let g=!o&&Ky(n),w=!1;throw new N(405,w)}let a;o?a=n:a=this._injector.get(pi).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=qM(a)?void 0:this._injector.get(Ai),c=r||a.selector,u=a.create(ft.NULL,[],c,l),d=u.location.nativeElement,m=u.injector.get(cb,null);return m?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),Df(this.components,u),m?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new N(101,!1);let r=he(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,he(r)}}detectChangesInAttachedViews(n){let r=0,o=this.afterRenderEffectManager;for(;;){if(r===Sw)throw new N(103,!1);if(n){let s=r===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:l}of this._views)GM(a,s,l)}if(r++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Eh(s))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Eh(s))))break}}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Df(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Fc,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Df(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new N(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();xh=class{constructor(e,i){this.ngModuleFactory=e,this.componentFactories=i}},Ip=(()=>{let e=class e{compileModuleSync(n){return new dh(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Yy(n),s=iw(o.declarations).reduce((a,l)=>{let c=dr(l);return c&&a.push(new Ss(c)),a},[]);return new xh(r,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),QM=(()=>{let e=class e{constructor(){this.zone=T(De),this.applicationRef=T(Qt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();XM=(()=>{let e=class e{constructor(){this.subscription=new He,this.initialized=!1,this.zone=T(De),this.pendingTasks=T(Oi)}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(()=>{De.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{De.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();Tp=new L("",{providedIn:"root",factory:()=>T(Tp,de.Optional|de.SkipSelf)||eA()}),db=new L(""),Ll=null;It=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=rA;let t=e;return t})();Sh=class{constructor(){}supports(e){return Pw(e)}create(e){return new Ih(e)}},sA=(t,e)=>e,Ih=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||sA}forEachItem(e){let i;for(i=this._itHead;i!==null;i=i._next)e(i)}forEachOperation(e){let i=this._itHead,n=this._removalsHead,r=0,o=null;for(;i||n;){let s=!n||i&&i.currentIndex<My(n,r,o)?i:n,a=My(s,r,o),l=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(i=i._next,s.previousIndex==null)r++;else{o||(o=[]);let c=a-r,u=l-r;if(c!=u){for(let m=0;m<c;m++){let g=m<o.length?o[m]:o[m]=0,w=g+m;u<=w&&w<c&&(o[m]=g+1)}let d=s.previousIndex;o[d]=u-c}}a!==l&&e(s,a,l)}}forEachPreviousItem(e){let i;for(i=this._previousItHead;i!==null;i=i._nextPrevious)e(i)}forEachAddedItem(e){let i;for(i=this._additionsHead;i!==null;i=i._nextAdded)e(i)}forEachMovedItem(e){let i;for(i=this._movesHead;i!==null;i=i._nextMoved)e(i)}forEachRemovedItem(e){let i;for(i=this._removalsHead;i!==null;i=i._nextRemoved)e(i)}forEachIdentityChange(e){let i;for(i=this._identityChangesHead;i!==null;i=i._nextIdentityChange)e(i)}diff(e){if(e==null&&(e=[]),!Pw(e))throw new N(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let i=this._itHead,n=!1,r,o,s;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)o=e[a],s=this._trackByFn(a,o),i===null||!Object.is(i.trackById,s)?(i=this._mismatch(i,o,s,a),n=!0):(n&&(i=this._verifyReinsertion(i,o,s,a)),Object.is(i.item,o)||this._addIdentityChange(i,o)),i=i._next}else r=0,WT(e,a=>{s=this._trackByFn(r,a),i===null||!Object.is(i.trackById,s)?(i=this._mismatch(i,a,s,r),n=!0):(n&&(i=this._verifyReinsertion(i,a,s,r)),Object.is(i.item,a)||this._addIdentityChange(i,a)),i=i._next,r++}),this.length=r;return this._truncate(i),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,i,n,r){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._reinsertAfter(e,o,r)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,r),e!==null?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._moveAfter(e,o,r)):e=this._addAfter(new Th(i,n),o,r)),e}_verifyReinsertion(e,i,n,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;e!==null;){let i=e._next;this._addToRemovals(this._unlink(e)),e=i}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,i,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let r=e._prevRemoved,o=e._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,i,n),this._addToMoves(e,n),e}_moveAfter(e,i,n){return this._unlink(e),this._insertAfter(e,i,n),this._addToMoves(e,n),e}_addAfter(e,i,n){return this._insertAfter(e,i,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,i,n){let r=i===null?this._itHead:i._next;return e._next=r,e._prev=i,r===null?this._itTail=e:r._prev=e,i===null?this._itHead=e:i._next=e,this._linkedRecords===null&&(this._linkedRecords=new nc),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 i=e._prev,n=e._next;return i===null?this._itHead=n:i._next=n,n===null?this._itTail=i:n._prev=i,e}_addToMoves(e,i){return e.previousIndex===i||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new nc),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,i){return e.item=i,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Th=class{constructor(e,i){this.item=e,this.trackById=i,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Mh=class{constructor(){this._head=null,this._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,i){let n;for(n=this._head;n!==null;n=n._nextDup)if((i===null||i<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let i=e._prevDup,n=e._nextDup;return i===null?this._head=n:i._nextDup=n,n===null?this._tail=i:n._prevDup=i,this._head===null}},nc=class{constructor(){this.map=new Map}put(e){let i=e.trackById,n=this.map.get(i);n||(n=new Mh,this.map.set(i,n)),n.add(e)}get(e,i){let n=e,r=this.map.get(n);return r?r.get(e,i):null}remove(e){let i=e.trackById;return this.map.get(i).remove(e)&&this.map.delete(i),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};Mp=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Ay()),deps:[[e,new By,new Oh]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new N(901,!1)}};e.\u0275prov=R({token:e,providedIn:"root",factory:Ay});let t=e;return t})();aA=new L("",{providedIn:"root",factory:()=>T(lA)}),lA=(()=>{let e=class e{};e.\u0275prov=R({token:e,providedIn:"root",factory:()=>new Ah});let t=e;return t})(),Ah=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=T(Oi),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let i=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(i),this.taskId=null})}}enqueue(e){let i=e.creationZone;this.queues.has(i)||this.queues.set(i,new Set);let n=this.queues.get(i);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,i]of this.queues)e===null?this.flushQueue(i):e.run(()=>this.flushQueue(i))}flushQueue(e){for(let i of e)e.delete(i),this.queuedEffectCount--,i.run()}},Nh=class{constructor(e,i,n,r,o,s){this.scheduler=e,this.effectFn=i,this.creationZone=n,this.injector=o,this.watcher=M0(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(i){this.injector.get($n,null,{optional:!0})?.handleError(i)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}});function gi(){return yb}function wb(t){yb??=t}function bb(t,e){if(t.length==0)return e;if(e.length==0)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,i==2?t+e.substring(1):i==1?t+e:t+"/"+e}function hb(t){let e=t.match(/#|\?|$/),i=e&&e.index||t.length,n=i-(t[i-1]==="/"?1:0);return t.slice(0,n)+t.slice(i)}function Li(t){return t&&t[0]!=="?"?"?"+t:t}function dA(){return new _o(M(Hn))}function fA(t,e){if(!t||!e.startsWith(t))return e;let i=e.substring(t.length);return i===""||["/",";","?","#"].includes(i[0])?i:e}function pb(t){return t.replace(/\/index.html$/,"")}function hA(t){if(new RegExp("^(https?:)?//").test(t)){let[,i]=t.split(/\/\/[^\/]+/);return i}return t}function jc(t,e){e=encodeURIComponent(e);for(let i of t.split(";")){let n=i.indexOf("="),[r,o]=n==-1?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===e)return decodeURIComponent(o)}return null}function gb(t,e){t.context.$implicit=e.item}function vb(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Ot(e)}'.`)}function _b(t,e){return new N(2100,!1)}function vA(t){return t===jp}function Bc(t){return t===gA}function yA(t,e){let i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let o=r.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}r=n.nextNode()}}return null}var yb,Lc,$e,Vp,cA,Hn,uA,Cb,_o,Np,mb,it,Rp,$c,Us,Op,kp,Fp,pA,mA,Db,Eb,ve,jp,gA,$p,Pp,Lp,Co,le=y(()=>{"use strict";F();F();yb=null;Lc=class{},$e=new L(""),Vp=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:()=>T(cA),providedIn:"platform"});let t=e;return t})(),cA=(()=>{let e=class e extends Vp{constructor(){super(),this._doc=T($e),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return gi().getBaseHref(this._doc)}onPopState(n){let r=gi().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=gi().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();Hn=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:()=>T(Cb),providedIn:"root"});let t=e;return t})(),uA=new L(""),Cb=(()=>{let e=class e extends Hn{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??T($e).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return bb(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Li(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,s){let a=this.prepareExternalUrl(o+Li(s));this._platformLocation.pushState(n,r,a)}replaceState(n,r,o,s){let a=this.prepareExternalUrl(o+Li(s));this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(r){return new(r||e)(M(Vp),M(uA,8))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),_o=(()=>{let e=class e{constructor(n){this._subject=new Ae,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=hA(hb(pb(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Li(r))}normalize(n){return e.stripTrailingSlash(fA(this._basePath,pb(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Li(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Li(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}};e.normalizeQueryParams=Li,e.joinWithSlash=bb,e.stripTrailingSlash=hb,e.\u0275fac=function(r){return new(r||e)(M(Hn))},e.\u0275prov=R({token:e,factory:()=>dA(),providedIn:"root"});let t=e;return t})();Np=/\s+/,mb=[],it=(()=>{let e=class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=mb,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(Np):mb}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Np):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 o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(Np).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(r){return new(r||e)(_(Oe),_(bt))},e.\u0275dir=Ce({type:e,selectors:[["","ngClass",""]],inputs:{klass:[Te.None,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})(),Rp=class{constructor(e,i,n,r){this.$implicit=e,this.ngForOf=i,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}},$c=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else 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((o,s,a)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new Rp(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)r.remove(s===null?void 0:s);else if(s!==null){let l=r.get(s);r.move(l,a),gb(l,o)}});for(let o=0,s=r.length;o<s;o++){let l=r.get(o).context;l.index=o,l.count=s,l.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let s=r.get(o.currentIndex);gb(s,o)})}static ngTemplateContextGuard(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(_(xn),_(Cn),_(Mp))},e.\u0275dir=Ce({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();Us=(()=>{let e=class e{constructor(n,r){this._viewContainer=n,this._context=new Op,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){vb("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){vb("ngIfElse",n),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 ngTemplateContextGuard(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(_(xn),_(Cn))},e.\u0275dir=Ce({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Op=class{constructor(){this.$implicit=null,this.ngIf=null}};kp=class{createSubscription(e,i){return bo(()=>e.subscribe({next:i,error:n=>{throw n}}))}dispose(e){bo(()=>e.unsubscribe())}},Fp=class{createSubscription(e,i){return e.then(i,n=>{throw n})}dispose(e){}},pA=new Fp,mA=new kp,Db=(()=>{let e=class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(Fi(n))return pA;if(Sp(n))return mA;throw _b(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(r){return new(r||e)(_(It,16))},e.\u0275pipe=fo({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})(),Eb=(()=>{let e=class e{transform(n,r,o){if(n==null)return null;if(!this.supports(n))throw _b(e,n);return n.slice(r,o)}supports(n){return typeof n=="string"||Array.isArray(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=fo({name:"slice",type:e,pure:!1,standalone:!0});let t=e;return t})(),ve=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ft({type:e}),e.\u0275inj=kt({});let t=e;return t})(),jp="browser",gA="server";$p=(()=>{let e=class e{};e.\u0275prov=R({token:e,providedIn:"root",factory:()=>vA(T(ui))?new Pp(T($e),window):new Lp});let t=e;return t})(),Pp=class{constructor(e,i){this.document=e,this.window=i,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let i=yA(this.document,e);i&&(this.scrollToElement(i),i.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let i=e.getBoundingClientRect(),n=i.left+this.window.pageXOffset,r=i.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}};Lp=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},Co=class{}});function ji(t,e){return{type:ie.Trigger,name:t,definitions:e,options:{}}}function vi(t,e=null){return{type:ie.Animate,styles:e,timings:t}}function xb(t,e=null){return{type:ie.Sequence,steps:t,options:e}}function Tt(t){return{type:ie.Style,styles:t,offset:null}}function Uc(t,e,i){return{type:ie.State,name:t,styles:e,options:i}}function yi(t,e,i=null){return{type:ie.Transition,expr:t,animation:e,options:i}}function Sb(t,e,i=null){return{type:ie.Query,selector:t,animation:e,options:i}}function Ib(t,e){return{type:ie.Stagger,timings:t,animation:e}}var ie,qn,Vi,Hs,Hc,Do=y(()=>{"use strict";ie=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(ie||{}),qn="*";Vi=class{constructor(e=0,i=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+i}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},Hs=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let i=0,n=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++i==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let i=e*this.totalTime;this.players.forEach(n=>{let r=n.totalTime?Math.min(1,i/n.totalTime):1;n.setPosition(r)})}getPosition(){let e=this.players.reduce((i,n)=>i===null||n.totalTime>i.totalTime?n:i,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},Hc="!"});function CA(t,e){let i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],l=i.get(s)||[];l.push(a),i.set(s,l)}),i}function Tb(t){return encodeURIComponent(t).replace(_A,(e,i)=>DA[i]??e)}function qc(t){return`${t}`}function EA(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Mb(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Ab(t){return typeof Blob<"u"&&t instanceof Blob}function Nb(t){return typeof FormData<"u"&&t instanceof FormData}function xA(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function Bp(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}function Fb(t,e){return e(t)}function SA(t,e){return(i,n)=>e.intercept(i,{handle:r=>t(r,n)})}function IA(t,e,i){return(n,r)=>ai(i,()=>e(n,o=>t(o,r)))}function AA(){let t=null;return(e,i)=>{t===null&&(t=(T(Qs,{optional:!0})??[]).reduceRight(SA,Fb));let n=T(Oi),r=n.add();return t(e,i).pipe(xi(()=>n.remove(r)))}}function RA(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}function VA(t,e){let i=t.url.toLowerCase();if(!T(Pb)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=T(Qc).getToken(),r=T(PA);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t)}function jA(t,e){return{\u0275kind:t,\u0275providers:e}}function Vb(...t){let e=[Ws,Ob,Rb,{provide:zs,useExisting:Rb},{provide:zc,useExisting:Ob},{provide:zp,useValue:VA,multi:!0},{provide:Pb,useValue:!0},{provide:Qc,useClass:LA}];for(let i of t)e.push(...i.\u0275providers);return Pt(e)}function jb(){return jA(Lb.LegacyInterceptors,[{provide:kb,useFactory:AA},{provide:zp,useExisting:kb,multi:!0}])}var zs,zc,_r,Up,_A,DA,$i,Hp,qs,Bi,Gs,qp,Gc,Ui,Wc,Ws,Qs,zp,TA,MA,Rb,NA,Ob,Pb,OA,kA,FA,PA,Qc,LA,Lb,kb,Eo=y(()=>{"use strict";F();F();Xe();ar();le();le();zs=class{},zc=class{},_r=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
`).forEach(i=>{let n=i.indexOf(":");if(n>0){let r=i.slice(0,n),o=r.toLowerCase(),s=i.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){let i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){let i=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,i);let r=(e.op==="a"?this.headers.get(i):void 0)||[];r.push(...n),this.headers.set(i,r);break;case"d":let o=e.value;if(!o)this.headers.delete(i),this.normalizedNames.delete(i);else{let s=this.headers.get(i);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,s)}break}}setHeaderEntries(e,i){let n=(Array.isArray(i)?i:[i]).map(o=>o.toString()),r=e.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}},Up=class{encodeKey(e){return Tb(e)}encodeValue(e){return Tb(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};_A=/%(\d[a-f0-9])/gi,DA={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};$i=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Up,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=CA(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{let n=e.fromObject[i],r=Array.isArray(n)?n.map(qc):[qc(n)];this.map.set(i,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){let i=[];return Object.keys(e).forEach(n=>{let r=e[n];Array.isArray(r)?r.forEach(o=>{i.push({param:n,value:o,op:"a"})}):i.push({param:n,value:r,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let i=this.encoder.encodeKey(e);return this.map.get(e).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let i=(e.op==="a"?this.map.get(e.param):void 0)||[];i.push(qc(e.value)),this.map.set(e.param,i);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],r=n.indexOf(qc(e.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}},Hp=class{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),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()}};qs=class t{constructor(e,i,n,r){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(EA(this.method)||r?(this.body=n!==void 0?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new _r,this.context??=new Hp,!this.params)this.params=new $i,this.urlWithParams=i;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),l=a===-1?"?":a<i.length-1?"&":"";this.urlWithParams=i+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Mb(this.body)||Ab(this.body)||Nb(this.body)||xA(this.body)?this.body:this.body instanceof $i?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||Nb(this.body)?null:Ab(this.body)?this.body.type||null:Mb(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof $i?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let i=e.method||this.method,n=e.url||this.url,r=e.responseType||this.responseType,o=e.transferCache??this.transferCache,s=e.body!==void 0?e.body:this.body,a=e.withCredentials??this.withCredentials,l=e.reportProgress??this.reportProgress,c=e.headers||this.headers,u=e.params||this.params,d=e.context??this.context;return e.setHeaders!==void 0&&(c=Object.keys(e.setHeaders).reduce((m,g)=>m.set(g,e.setHeaders[g]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((m,g)=>m.set(g,e.setParams[g]),u)),new t(i,n,s,{params:u,headers:c,context:d,reportProgress:l,responseType:r,withCredentials:a,transferCache:o})}},Bi=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Bi||{}),Gs=class{constructor(e,i=Wc.Ok,n="OK"){this.headers=e.headers||new _r,this.status=e.status!==void 0?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},qp=class t extends Gs{constructor(e={}){super(e),this.type=Bi.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Gc=class t extends Gs{constructor(e={}){super(e),this.type=Bi.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Ui=class extends Gs{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,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}},Wc=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(Wc||{});Ws=(()=>{let e=class e{constructor(n){this.handler=n}request(n,r,o={}){let s;if(n instanceof qs)s=n;else{let c;o.headers instanceof _r?c=o.headers:c=new _r(o.headers);let u;o.params&&(o.params instanceof $i?u=o.params:u=new $i({fromObject:o.params})),s=new qs(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=G(s).pipe(un(c=>this.handler.handle(c)));if(n instanceof qs||o.observe==="events")return a;let l=a.pipe(dt(c=>c instanceof Gc));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(q(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return l.pipe(q(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return l.pipe(q(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return l.pipe(q(c=>c.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}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 $i().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Bp(o,r))}post(n,r,o={}){return this.request("POST",n,Bp(o,r))}put(n,r,o={}){return this.request("PUT",n,Bp(o,r))}};e.\u0275fac=function(r){return new(r||e)(M(zs))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let t=e;return t})();Qs=new L(""),zp=new L(""),TA=new L(""),MA=new L("");Rb=(()=>{let e=class e extends zs{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=T(Oi);let o=T(MA,{optional:!0});this.backend=o??n}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(zp),...this.injector.get(TA,[])]));this.chain=o.reduceRight((s,a)=>IA(s,a,this.injector),Fb)}let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(xi(()=>this.pendingTasks.remove(r)))}};e.\u0275fac=function(r){return new(r||e)(M(zc),M(qt))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let t=e;return t})(),NA=/^\)\]\}',?\n/;Ob=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new N(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?_e(r.\u0275loadImpl()):G(null)).pipe(Qe(()=>new pe(s=>{let a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((S,O)=>a.setRequestHeader(S,O.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let S=n.detectContentTypeHeader();S!==null&&a.setRequestHeader("Content-Type",S)}if(n.responseType){let S=n.responseType.toLowerCase();a.responseType=S!=="json"?S:"text"}let l=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let S=a.statusText||"OK",O=new _r(a.getAllResponseHeaders()),K=RA(a)||n.url;return c=new qp({headers:O,status:a.status,statusText:S,url:K}),c},d=()=>{let{headers:S,status:O,statusText:K,url:we}=u(),oe=null;O!==Wc.NoContent&&(oe=typeof a.response>"u"?a.responseText:a.response),O===0&&(O=oe?Wc.Ok:0);let pt=O>=200&&O<300;if(n.responseType==="json"&&typeof oe=="string"){let Le=oe;oe=oe.replace(NA,"");try{oe=oe!==""?JSON.parse(oe):null}catch(Ve){oe=Le,pt&&(pt=!1,oe={error:Ve,text:oe})}}pt?(s.next(new Gc({body:oe,headers:S,status:O,statusText:K,url:we||void 0})),s.complete()):s.error(new Ui({error:oe,headers:S,status:O,statusText:K,url:we||void 0}))},m=S=>{let{url:O}=u(),K=new Ui({error:S,status:a.status||0,statusText:a.statusText||"Unknown Error",url:O||void 0});s.error(K)},g=!1,w=S=>{g||(s.next(u()),g=!0);let O={type:Bi.DownloadProgress,loaded:S.loaded};S.lengthComputable&&(O.total=S.total),n.responseType==="text"&&a.responseText&&(O.partialText=a.responseText),s.next(O)},D=S=>{let O={type:Bi.UploadProgress,loaded:S.loaded};S.lengthComputable&&(O.total=S.total),s.next(O)};return a.addEventListener("load",d),a.addEventListener("error",m),a.addEventListener("timeout",m),a.addEventListener("abort",m),n.reportProgress&&(a.addEventListener("progress",w),l!==null&&a.upload&&a.upload.addEventListener("progress",D)),a.send(l),s.next({type:Bi.Sent}),()=>{a.removeEventListener("error",m),a.removeEventListener("abort",m),a.removeEventListener("load",d),a.removeEventListener("timeout",m),n.reportProgress&&(a.removeEventListener("progress",w),l!==null&&a.upload&&a.upload.removeEventListener("progress",D)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(M(Co))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let t=e;return t})(),Pb=new L(""),OA="XSRF-TOKEN",kA=new L("",{providedIn:"root",factory:()=>OA}),FA="X-XSRF-TOKEN",PA=new L("",{providedIn:"root",factory:()=>FA}),Qc=class{},LA=(()=>{let e=class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=jc(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(M($e),M(ui),M(kA))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let t=e;return t})();Lb=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Lb||{});kb=new L("")});function BA(){return Zs=Zs||document.querySelector("base"),Zs?Zs.getAttribute("href"):null}function UA(t){return new URL(t,document.baseURI).pathname}function QA(t){return zA.replace(Jp,t)}function ZA(t){return qA.replace(Jp,t)}function zb(t,e){return e.map(i=>i.replace(Jp,t))}function $b(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}function Gb(t){return fb(eN(t))}function eN(t){return{appProviders:[...oN,...t?.providers??[]],platformProviders:rN}}function tN(){Zp.makeCurrent()}function nN(){return new $n}function iN(){return U1(document),document}var Qp,Zp,Zs,HA,Kp,Ub,Zc,Gp,Hb,Wp,Jp,qb,qA,zA,GA,WA,Kc,Ks,Yp,Ys,Yc,KA,Bb,YA,JA,XA,rN,oN,Wb,Js,sN,xo=y(()=>{"use strict";F();F();le();Qp=class extends Lc{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Zp=class t extends Qp{static makeCurrent(){wb(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=BA();return i==null?null:UA(i)}resetBaseElement(){Zs=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return jc(document.cookie,e)}},Zs=null;HA=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac});let t=e;return t})(),Kp=new L(""),Ub=(()=>{let e=class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(s=>s.supports(n)),!r)throw new N(5101,!1);return this._eventNameToPlugin.set(n,r),r}};e.\u0275fac=function(r){return new(r||e)(M(Kp),M(De))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let t=e;return t})(),Zc=class{constructor(e){this._doc=e}},Gp="ng-app-id",Hb=(()=>{let e=class e{constructor(n,r,o,s={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Bc(s),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Gp}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=r,s.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===n)return o.delete(r),s.removeAttribute(Gp),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(Gp,this.appId),n.appendChild(a),a}}addStyleToHost(n,r){let o=this.getStyleElement(n,r),s=this.styleRef,a=s.get(r)?.elements;a?a.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(M($e),M(Yh),M(ep,8),M(ui))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let t=e;return t})(),Wp={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/MathML/"},Jp=/%COMP%/g,qb="%COMP%",qA=`_nghost-${qb}`,zA=`_ngcontent-${qb}`,GA=!0,WA=new L("",{providedIn:"root",factory:()=>GA});Kc=(()=>{let e=class e{constructor(n,r,o,s,a,l,c,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=Bc(l),this.defaultRenderer=new Ks(n,a,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Vn.ShadowDom&&(r=z(b({},r),{encapsulation:Vn.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Yc?o.applyToHost(n):o instanceof Ys&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,s=o.get(r.id);if(!s){let a=this.doc,l=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,m=this.platformIsServer;switch(r.encapsulation){case Vn.Emulated:s=new Yc(c,u,r,this.appId,d,a,l,m);break;case Vn.ShadowDom:return new Yp(c,u,n,r,a,l,this.nonce,m);default:s=new Ys(c,u,r,d,a,l,m);break}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(M(Ub),M(Hb),M(Yh),M(WA),M($e),M(ui),M(De),M(ep))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let t=e;return t})(),Ks=class{constructor(e,i,n,r){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(Wp[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){($b(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&($b(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new N(-5104,!1);return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,r){if(r){i=r+":"+i;let o=Wp[r];o?e.setAttributeNS(o,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let r=Wp[n];r?e.removeAttributeNS(r,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,r){r&(oi.DashCase|oi.Important)?e.style.setProperty(i,n,r&oi.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&oi.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e!=null&&(e[i]=n)}setValue(e,i){e.nodeValue=i}listen(e,i,n){if(typeof e=="string"&&(e=gi().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};Yp=class extends Ks{constructor(e,i,n,r,o,s,a,l){super(e,o,s,l),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=zb(r.id,r.styles);for(let u of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ys=class extends Ks{constructor(e,i,n,r,o,s,a,l){super(e,o,s,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=l?zb(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Yc=class extends Ys{constructor(e,i,n,r,o,s,a,l){let c=r+"-"+n.id;super(e,i,n,o,s,a,l,c),this.contentAttr=QA(c),this.hostAttr=ZA(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}},KA=(()=>{let e=class e extends Zc{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}};e.\u0275fac=function(r){return new(r||e)(M($e))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let t=e;return t})(),Bb=["alt","control","meta","shift"],YA={"\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"},JA={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},XA=(()=>{let e=class e extends Zc{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>gi().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(r.pop()),a="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),a="code."),Bb.forEach(u=>{let d=r.indexOf(u);d>-1&&(r.splice(d,1),a+=u+".")}),a+=s,r.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,r){let o=YA[n.key]||n.key,s="";return r.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Bb.forEach(a=>{if(a!==o){let l=JA[a];l(n)&&(s+=a+".")}}),s+=o,s===r)}static eventCallback(n,r,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>r(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(r){return new(r||e)(M($e))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let t=e;return t})();rN=[{provide:ui,useValue:jp},{provide:Jh,useValue:tN,multi:!0},{provide:$e,useFactory:iN,deps:[]}],oN=[{provide:ac,useValue:"root"},{provide:$n,useFactory:nN,deps:[]},{provide:Kp,useClass:KA,multi:!0,deps:[$e,De,ui]},{provide:Kp,useClass:XA,multi:!0,deps:[$e]},Kc,Hb,Ub,{provide:si,useExisting:Kc},{provide:Co,useClass:HA,deps:[]},[]],Wb=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(r){return new(r||e)(M($e))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Js=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=M(sN),o},providedIn:"root"});let t=e;return t})(),sN=(()=>{let e=class e extends Js{constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case nn.NONE:return r;case nn.HTML:return di(r,"HTML")?tn(r):np(this._doc,String(r)).toString();case nn.STYLE:return di(r,"Style")?tn(r):r;case nn.SCRIPT:if(di(r,"Script"))return tn(r);throw new N(5200,!1);case nn.URL:return di(r,"URL")?tn(r):vc(String(r));case nn.RESOURCE_URL:if(di(r,"ResourceURL"))return tn(r);throw new N(5201,!1);default:throw new N(5202,!1)}}bypassSecurityTrustHtml(n){return G1(n)}bypassSecurityTrustStyle(n){return W1(n)}bypassSecurityTrustScript(n){return Q1(n)}bypassSecurityTrustUrl(n){return Z1(n)}bypassSecurityTrustResourceUrl(n){return K1(n)}};e.\u0275fac=function(r){return new(r||e)(M($e))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})()});function aN(t,e){if(t&1){let i=Z();f(0,"button",5),k("click",function(){j(i);let r=v();return $(r.remove())}),f(1,"span",6),C(2,"\xD7"),p()()}}function lN(t,e){if(t&1&&(go(0),C(1),vo()),t&2){let i=v(2);h(),me("[",i.duplicatesCount+1,"]")}}function cN(t,e){if(t&1&&(f(0,"div"),C(1),I(2,lN,2,1,"ng-container",4),p()),t&2){let i=v();mi(i.options.titleClass),U("aria-label",i.title),h(),me(" ",i.title," "),h(),x("ngIf",i.duplicatesCount)}}function uN(t,e){if(t&1&&E(0,"div",7),t&2){let i=v();mi(i.options.messageClass),x("innerHTML",i.message,ht)}}function dN(t,e){if(t&1&&(f(0,"div",8),C(1),p()),t&2){let i=v();mi(i.options.messageClass),U("aria-label",i.message),h(),me(" ",i.message," ")}}function fN(t,e){if(t&1&&(f(0,"div"),E(1,"div",9),p()),t&2){let i=v();h(),Cr("width",i.width+"%")}}function hN(t,e){if(t&1){let i=Z();f(0,"button",5),k("click",function(){j(i);let r=v();return $(r.remove())}),f(1,"span",6),C(2,"\xD7"),p()()}}function pN(t,e){if(t&1&&(go(0),C(1),vo()),t&2){let i=v(2);h(),me("[",i.duplicatesCount+1,"]")}}function mN(t,e){if(t&1&&(f(0,"div"),C(1),I(2,pN,2,1,"ng-container",4),p()),t&2){let i=v();mi(i.options.titleClass),U("aria-label",i.title),h(),me(" ",i.title," "),h(),x("ngIf",i.duplicatesCount)}}function gN(t,e){if(t&1&&E(0,"div",7),t&2){let i=v();mi(i.options.messageClass),x("innerHTML",i.message,ht)}}function vN(t,e){if(t&1&&(f(0,"div",8),C(1),p()),t&2){let i=v();mi(i.options.messageClass),U("aria-label",i.message),h(),me(" ",i.message," ")}}function yN(t,e){if(t&1&&(f(0,"div"),E(1,"div",9),p()),t&2){let i=v();h(),Cr("width",i.width+"%")}}var Qb,om,em,tm,nm,So,Zb,Kb,im,wN,rm,bN,Io,CN,_N,Yb,DN,p$,Xs=y(()=>{"use strict";F();F();Do();le();Xe();xo();Qb=["toast-component",""];om=(()=>{class t{el;constructor(i){this.el=i}getContainerElement(){return this.el.nativeElement}static \u0275fac=function(n){return new(n||t)(_(Oe))};static \u0275dir=Ce({type:t,selectors:[["","toastContainer",""]],exportAs:["toastContainer"],standalone:!0})}return t})(),em=class{_attachedHost;component;viewContainerRef;injector;constructor(e,i){this.component=e,this.injector=i}attach(e,i){return this._attachedHost=e,e.attach(this,i)}detach(){let e=this._attachedHost;if(e)return this._attachedHost=void 0,e.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},tm=class{_attachedPortal;_disposeFn;attach(e,i){return this._attachedPortal=e,this.attachComponentPortal(e,i)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(e){this._disposeFn=e}},nm=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new ge;_activate=new ge;_manualClose=new ge;_resetTimeout=new ge;_countDuplicate=new ge;constructor(e){this._overlayRef=e}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(e,i){e&&this._resetTimeout.next(),i&&this._countDuplicate.next(++this.duplicatesCount)}},So=class{toastId;config;message;title;toastType;toastRef;_onTap=new ge;_onAction=new ge;constructor(e,i,n,r,o,s){this.toastId=e,this.config=i,this.message=n,this.title=r,this.toastType=o,this.toastRef=s,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(e){this._onAction.next(e)}onAction(){return this._onAction.asObservable()}},Zb={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},Kb=new L("ToastConfig"),im=class extends tm{_hostDomElement;_componentFactoryResolver;_appRef;constructor(e,i,n){super(),this._hostDomElement=e,this._componentFactoryResolver=i,this._appRef=n}attachComponentPortal(e,i){let n=this._componentFactoryResolver.resolveComponentFactory(e.component),r;return r=n.create(e.injector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()}),i?this._hostDomElement.insertBefore(this._getComponentRootNode(r),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(r)),r}_getComponentRootNode(e){return e.hostView.rootNodes[0]}},wN=(()=>{class t{_document=T($e);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let i=this._document.createElement("div");i.classList.add("overlay-container"),i.setAttribute("aria-live","polite"),this._document.body.appendChild(i),this._containerElement=i}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rm=class{_portalHost;constructor(e){this._portalHost=e}attach(e,i=!0){return this._portalHost.attach(e,i)}detach(){return this._portalHost.detach()}},bN=(()=>{class t{_overlayContainer=T(wN);_componentFactoryResolver=T(pi);_appRef=T(Qt);_document=T($e);_paneElements=new Map;create(i,n){return this._createOverlayRef(this.getPaneElement(i,n))}getPaneElement(i="",n){return this._paneElements.get(n)||this._paneElements.set(n,{}),this._paneElements.get(n)[i]||(this._paneElements.get(n)[i]=this._createPaneElement(i,n)),this._paneElements.get(n)[i]}_createPaneElement(i,n){let r=this._document.createElement("div");return r.id="toast-container",r.classList.add(i),r.classList.add("toast-container"),n?n.getContainerElement().appendChild(r):this._overlayContainer.getContainerElement().appendChild(r),r}_createPortalHost(i){return new im(i,this._componentFactoryResolver,this._appRef)}_createOverlayRef(i){return new rm(this._createPortalHost(i))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Io=(()=>{class t{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(i,n,r,o,s){this.overlay=n,this._injector=r,this.sanitizer=o,this.ngZone=s,this.toastrConfig=b(b({},i.default),i.config),i.config.iconClasses&&(this.toastrConfig.iconClasses=b(b({},i.default.iconClasses),i.config.iconClasses))}show(i,n,r={},o=""){return this._preBuildNotification(o,i,n,this.applyConfig(r))}success(i,n,r={}){let o=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(o,i,n,this.applyConfig(r))}error(i,n,r={}){let o=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(o,i,n,this.applyConfig(r))}info(i,n,r={}){let o=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(o,i,n,this.applyConfig(r))}warning(i,n,r={}){let o=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(o,i,n,this.applyConfig(r))}clear(i){for(let n of this.toasts)if(i!==void 0){if(n.toastId===i){n.toastRef.manualClose();return}}else n.toastRef.manualClose()}remove(i){let n=this._findToast(i);if(!n||(n.activeToast.toastRef.close(),this.toasts.splice(n.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let r=this.toasts[this.currentlyActive].toastRef;r.isInactive()||(this.currentlyActive=this.currentlyActive+1,r.activate())}return!0}findDuplicate(i="",n="",r,o){let{includeTitleDuplicates:s}=this.toastrConfig;for(let a of this.toasts){let l=s&&a.title===i;if((!s||l)&&a.message===n)return a.toastRef.onDuplicate(r,o),a}return null}applyConfig(i={}){return b(b({},this.toastrConfig),i)}_findToast(i){for(let n=0;n<this.toasts.length;n++)if(this.toasts[n].toastId===i)return{index:n,activeToast:this.toasts[n]};return null}_preBuildNotification(i,n,r,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(i,n,r,o)):this._buildNotification(i,n,r,o)}_buildNotification(i,n,r,o){if(!o.toastComponent)throw new Error("toastComponent required");let s=this.findDuplicate(r,n,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&r||n)&&this.toastrConfig.preventDuplicates&&s!==null)return s;this.previousToastMessage=n;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let l=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let c=n;n&&o.enableHtml&&(c=this.sanitizer.sanitize(nn.HTML,n));let u=new nm(l),d=new So(this.index,o,c,r,i,u),m=[{provide:So,useValue:d}],g=ft.create({providers:m,parent:this._injector}),w=new em(o.toastComponent,g),D=l.attach(w,o.newestOnTop);u.componentInstance=D.instance;let S={toastId:this.index,title:r||"",message:n||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:D};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{S.toastRef.activate()})),this.toasts.push(S),S}static \u0275fac=function(n){return new(n||t)(M(Kb),M(bN),M(ft),M(Js),M(De))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),CN=(()=>{class t{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if(this.state.value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(i,n,r){this.toastrService=i,this.toastPackage=n,this.ngZone=r,this.message=n.message,this.title=n.title,this.options=n.config,this.originalTimeout=n.config.timeOut,this.toastClasses=`${n.toastType} ${n.config.toastClass}`,this.sub=n.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=n.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=n.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=n.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=z(b({},this.state),{value:"active"}),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width===0||this.width===100||!this.options.timeOut)return;let i=new Date().getTime(),n=this.hideTime-i;this.width=n/this.options.timeOut*100,this.options.progressAnimation==="increasing"&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=z(b({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state.value!=="removed"&&(clearTimeout(this.timeout),this.state=z(b({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state.value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state.value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state.value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(i,n){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(i),n)):this.timeout=setTimeout(()=>i(),n)}outsideInterval(i,n){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(i),n)):this.intervalId=setInterval(()=>i(),n)}runInsideAngular(i){this.ngZone?this.ngZone.run(()=>i()):i()}static \u0275fac=function(n){return new(n||t)(_(Io),_(So),_(De))};static \u0275cmp=V({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(n,r){n&1&&k("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),n&2&&(Cp("@flyInOut",r.state),mi(r.toastClasses),Cr("display",r.displayStyle))},standalone:!0,features:[B],attrs:Qb,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(n,r){n&1&&I(0,aN,3,0,"button",0)(1,cN,3,5,"div",1)(2,uN,1,3,"div",2)(3,dN,2,4,"div",3)(4,fN,2,2,"div",4),n&2&&(x("ngIf",r.options.closeButton),h(),x("ngIf",r.title),h(),x("ngIf",r.message&&r.options.enableHtml),h(),x("ngIf",r.message&&!r.options.enableHtml),h(),x("ngIf",r.options.progressBar))},dependencies:[Us],encapsulation:2,data:{animation:[ji("flyInOut",[Uc("inactive",Tt({opacity:0})),Uc("active",Tt({opacity:1})),Uc("removed",Tt({opacity:0})),yi("inactive => active",vi("{{ easeTime }}ms {{ easing }}")),yi("active => removed",vi("{{ easeTime }}ms {{ easing }}"))])]}})}return t})(),_N=z(b({},Zb),{toastComponent:CN}),Yb=(t={})=>Pt([{provide:Kb,useValue:{default:_N,config:t}}]),DN=(()=>{class t{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";get displayStyle(){return this.state==="inactive"?"none":null}state="inactive";timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(i,n,r){this.toastrService=i,this.toastPackage=n,this.appRef=r,this.message=n.message,this.title=n.title,this.options=n.config,this.originalTimeout=n.config.timeOut,this.toastClasses=`${n.toastType} ${n.config.toastClass}`,this.sub=n.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=n.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=n.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=n.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width===0||this.width===100||!this.options.timeOut)return;let i=new Date().getTime(),n=this.hideTime-i;this.width=n/this.options.timeOut*100,this.options.progressAnimation==="increasing"&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state!=="removed"&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(n){return new(n||t)(_(Io),_(So),_(Qt))};static \u0275cmp=V({type:t,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(n,r){n&1&&k("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),n&2&&(mi(r.toastClasses),Cr("display",r.displayStyle))},standalone:!0,features:[B],attrs:Qb,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(n,r){n&1&&I(0,hN,3,0,"button",0)(1,mN,3,5,"div",1)(2,gN,1,3,"div",2)(3,vN,2,4,"div",3)(4,yN,2,2,"div",4),n&2&&(x("ngIf",r.options.closeButton),h(),x("ngIf",r.title),h(),x("ngIf",r.message&&r.options.enableHtml),h(),x("ngIf",r.message&&!r.options.enableHtml),h(),x("ngIf",r.options.progressBar))},dependencies:[Us],encapsulation:2})}return t})(),p$=z(b({},Zb),{toastComponent:DN})});function Ro(t){return new um(t)}function EN(t,e,i){let n=i.path.split("/");if(n.length>t.length||i.pathMatch==="full"&&(e.hasChildren()||n.length<t.length))return null;let r={};for(let o=0;o<n.length;o++){let s=n[o],a=t[o];if(s.startsWith(":"))r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,n.length),posParams:r}}function xN(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;++i)if(!zn(t[i],e[i]))return!1;return!0}function zn(t,e){let i=t?dm(t):void 0,n=e?dm(e):void 0;if(!i||!n||i.length!=n.length)return!1;let r;for(let o=0;o<i.length;o++)if(r=i[o],!rC(t[r],e[r]))return!1;return!0}function dm(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function rC(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;let i=[...t].sort(),n=[...e].sort();return i.every((r,o)=>n[o]===r)}else return t===e}function oC(t){return t.length>0?t[t.length-1]:null}function zi(t){return qd(t)?t:Fi(t)?_e(Promise.resolve(t)):G(t)}function Xb(t,e,i){return SN[i.paths](t.root,e.root,i.matrixParams)&&sC[i.queryParams](t.queryParams,e.queryParams)&&!(i.fragment==="exact"&&t.fragment!==e.fragment)}function IN(t,e){return zn(t,e)}function aC(t,e,i){if(!Er(t.segments,e.segments)||!eu(t.segments,e.segments,i)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!aC(t.children[n],e.children[n],i))return!1;return!0}function TN(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>rC(t[i],e[i]))}function lC(t,e,i){return cC(t,e,e.segments,i)}function cC(t,e,i,n){if(t.segments.length>i.length){let r=t.segments.slice(0,i.length);return!(!Er(r,i)||e.hasChildren()||!eu(r,i,n))}else if(t.segments.length===i.length){if(!Er(t.segments,i)||!eu(t.segments,i,n))return!1;for(let r in e.children)if(!t.children[r]||!lC(t.children[r],e.children[r],n))return!1;return!0}else{let r=i.slice(0,t.segments.length),o=i.slice(t.segments.length);return!Er(t.segments,r)||!eu(t.segments,r,n)||!t.children[ce]?!1:cC(t.children[ce],e,o,n)}}function eu(t,e,i){return e.every((n,r)=>sC[i](t[r].parameters,n.parameters))}function MN(t,e){return Er(t,e)&&t.every((i,n)=>zn(i.parameters,e[n].parameters))}function Er(t,e){return t.length!==e.length?!1:t.every((i,n)=>i.path===e[n].path)}function AN(t,e){let i=[];return Object.entries(t.children).forEach(([n,r])=>{n===ce&&(i=i.concat(e(r,n)))}),Object.entries(t.children).forEach(([n,r])=>{n!==ce&&(i=i.concat(e(r,n)))}),i}function tu(t){return t.segments.map(e=>dC(e)).join("/")}function ea(t,e){if(!t.hasChildren())return tu(t);if(e){let i=t.children[ce]?ea(t.children[ce],!1):"",n=[];return Object.entries(t.children).forEach(([r,o])=>{r!==ce&&n.push(`${r}:${ea(o,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}else{let i=AN(t,(n,r)=>r===ce?[ea(t.children[ce],!1)]:[`${r}:${ea(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[ce]!=null?`${tu(t)}/${i[0]}`:`${tu(t)}/(${i.join("//")})`}}function uC(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Jc(t){return uC(t).replace(/%3B/gi,";")}function RN(t){return encodeURI(t)}function fm(t){return uC(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function nu(t){return decodeURIComponent(t)}function eC(t){return nu(t.replace(/\+/g,"%20"))}function dC(t){return`${fm(t.path)}${ON(t.parameters)}`}function ON(t){return Object.entries(t).map(([e,i])=>`;${fm(e)}=${fm(i)}`).join("")}function kN(t){let e=Object.entries(t).map(([i,n])=>Array.isArray(n)?n.map(r=>`${Jc(i)}=${Jc(r)}`).join("&"):`${Jc(i)}=${Jc(n)}`).filter(i=>i);return e.length?`?${e.join("&")}`:""}function sm(t){let e=t.match(FN);return e?e[0]:""}function LN(t){let e=t.match(PN);return e?e[0]:""}function jN(t){let e=t.match(VN);return e?e[0]:""}function BN(t){let e=t.match($N);return e?e[0]:""}function fC(t){return t.segments.length>0?new xe([],{[ce]:t}):t}function hC(t){let e={};for(let[n,r]of Object.entries(t.children)){let o=hC(r);if(n===ce&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let i=new xe(t.segments,e);return UN(i)}function UN(t){if(t.numberOfChildren===1&&t.children[ce]){let e=t.children[ce];return new xe(t.segments.concat(e.segments),e.children)}return t}function Oo(t){return t instanceof Hi}function HN(t,e,i=null,n=null){let r=pC(t);return mC(r,e,i,n)}function pC(t){let e;function i(o){let s={};for(let l of o.children){let c=i(l);s[l.outlet]=c}let a=new xe(o.url,s);return o===t&&(e=a),a}let n=i(t.root),r=fC(n);return e??r}function mC(t,e,i,n){let r=t;for(;r.parent;)r=r.parent;if(e.length===0)return am(r,r,r,i,n);let o=qN(e);if(o.toRoot())return am(r,r,new xe([],{}),i,n);let s=zN(o,r,t),a=s.processChildren?ia(s.segmentGroup,s.index,o.commands):vC(s.segmentGroup,s.index,o.commands);return am(r,s.segmentGroup,a,i,n)}function ru(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function sa(t){return typeof t=="object"&&t!=null&&t.outlets}function am(t,e,i,n,r){let o={};n&&Object.entries(n).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`});let s;t===e?s=i:s=gC(t,e,i);let a=fC(hC(s));return new Hi(a,o,r)}function gC(t,e,i){let n={};return Object.entries(t.children).forEach(([r,o])=>{o===e?n[r]=i:n[r]=gC(o,e,i)}),new xe(t.segments,n)}function qN(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ou(!0,0,t);let e=0,i=!1,n=t.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?i=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new ou(i,e,n)}function zN(t,e,i){if(t.isAbsolute)return new Ao(e,!0,0);if(!i)return new Ao(e,!1,NaN);if(i.parent===null)return new Ao(i,!0,0);let n=ru(t.commands[0])?0:1,r=i.segments.length-1+n;return GN(i,r,t.numberOfDoubleDots)}function GN(t,e,i){let n=t,r=e,o=i;for(;o>r;){if(o-=r,n=n.parent,!n)throw new N(4005,!1);r=n.segments.length}return new Ao(n,!1,r-o)}function WN(t){return sa(t[0])?t[0].outlets:{[ce]:t}}function vC(t,e,i){if(t??=new xe([],{}),t.segments.length===0&&t.hasChildren())return ia(t,e,i);let n=QN(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new xe(t.segments.slice(0,n.pathIndex),{});return o.children[ce]=new xe(t.segments.slice(n.pathIndex),t.children),ia(o,0,r)}else return n.match&&r.length===0?new xe(t.segments,{}):n.match&&!t.hasChildren()?pm(t,e,i):n.match?ia(t,0,r):pm(t,e,i)}function ia(t,e,i){if(i.length===0)return new xe(t.segments,{});{let n=WN(i),r={};if(Object.keys(n).some(o=>o!==ce)&&t.children[ce]&&t.numberOfChildren===1&&t.children[ce].segments.length===0){let o=ia(t.children[ce],e,i);return new xe(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=vC(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(r[o]=s)}),new xe(t.segments,r)}}function QN(t,e,i){let n=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(n>=i.length)return o;let s=t.segments[r],a=i[n];if(sa(a))break;let l=`${a}`,c=n<i.length-1?i[n+1]:null;if(r>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!nC(l,c,s))return o;n+=2}else{if(!nC(l,{},s))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function pm(t,e,i){let n=t.segments.slice(0,e),r=0;for(;r<i.length;){let o=i[r];if(sa(o)){let l=ZN(o.outlets);return new xe(n,l)}if(r===0&&ru(i[0])){let l=t.segments[e];n.push(new Dr(l.path,tC(i[0]))),r++;continue}let s=sa(o)?o.outlets[ce]:`${o}`,a=r<i.length-1?i[r+1]:null;s&&a&&ru(a)?(n.push(new Dr(s,tC(a))),r+=2):(n.push(new Dr(s,{})),r++)}return new xe(n,{})}function ZN(t){let e={};return Object.entries(t).forEach(([i,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(e[i]=pm(new xe([],{}),0,n))}),e}function tC(t){let e={};return Object.entries(t).forEach(([i,n])=>e[i]=`${n}`),e}function nC(t,e,i){return t==i.path&&zn(e,i.parameters)}function Im(t,e){if(t===e.value)return e;for(let i of e.children){let n=Im(t,i);if(n)return n}return null}function Tm(t,e){if(t===e.value)return[e];for(let i of e.children){let n=Tm(t,i);if(n.length)return n.unshift(e),n}return[]}function Mo(t){let e={};return t&&t.children.forEach(i=>e[i.value.outlet]=i),e}function yC(t){let e=KN(t),i=new ke([new Dr("",{})]),n=new ke({}),r=new ke({}),o=new ke({}),s=new ke(""),a=new Sr(i,n,o,s,r,ce,t,e.root);return a.snapshot=e.root,new lu(new rn(a,[]),e)}function KN(t){let e={},i={},n={},r="",o=new da([],e,n,r,i,ce,t,null,{});return new cu("",new rn(o,[]))}function Vm(t,e,i="emptyOnly"){let n,{routeConfig:r}=t;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:b(b({},e.params),t.params),data:b(b({},e.data),t.data),resolve:b(b(b(b({},t.data),e.data),r?.data),t._resolvedData)}:n={params:b({},t.params),data:b({},t.data),resolve:b(b({},t.data),t._resolvedData??{})},r&&bC(r)&&(n.resolve[pa]=r.title),n}function jm(t,e){e.value._routerState=t,e.children.forEach(i=>jm(t,i))}function wC(t){let e=t.children.length>0?` { ${t.children.map(wC).join(", ")} } `:"";return`${t.value}${e}`}function lm(t){if(t.snapshot){let e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,zn(e.queryParams,i.queryParams)||t.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&t.fragmentSubject.next(i.fragment),zn(e.params,i.params)||t.paramsSubject.next(i.params),xN(e.url,i.url)||t.urlSubject.next(i.url),zn(e.data,i.data)||t.dataSubject.next(i.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Mm(t,e){let i=zn(t.params,e.params)&&MN(t.url,e.url),n=!t.parent!=!e.parent;return i&&!n&&(!t.parent||Mm(t.parent,e.parent))}function bC(t){return typeof t.title=="string"||t.title===null}function YN(t,e,i){let n=fa(t,e._root,i?i._root:void 0);return new lu(n,e)}function fa(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){let n=i.value;n._futureSnapshot=e.value;let r=JN(t,e,i);return new rn(n,r)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>fa(t,a)),s}}let n=XN(e.value),r=e.children.map(o=>fa(t,o));return new rn(n,r)}}function JN(t,e,i){return e.children.map(n=>{for(let r of i.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return fa(t,n,r);return fa(t,n)})}function XN(t){return new Sr(new ke(t.url),new ke(t.params),new ke(t.queryParams),new ke(t.fragment),new ke(t.data),t.outlet,t.component,t)}function _C(t,e){let{redirectTo:i,navigationBehaviorOptions:n}=Oo(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=DC(!1,on.Redirect);return r.url=i,r.navigationBehaviorOptions=n,r}function DC(t,e){let i=new Error(`NavigationCancelingError: ${t||""}`);return i[CC]=!0,i.cancellationCode=e,i}function e3(t){return EC(t)&&Oo(t.url)}function EC(t){return!!t&&t[CC]}function n3(t,e){return t.providers&&!t._injector&&(t._injector=wp(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Bm(t){let e=t.children&&t.children.map(Bm),i=e?z(b({},t),{children:e}):b({},t);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==ce&&(i.component=t3),i}function Gn(t){return t.outlet||ce}function i3(t,e){let i=t.filter(n=>Gn(n)===e);return i.push(...t.filter(n=>Gn(n)!==e)),i}function ma(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}function o3(t,e,i){let n=t._root,r=e?e._root:null;return ta(n,r,i,[n.value])}function s3(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Fo(t,e){let i=Symbol(),n=e.get(t,i);return n===i?typeof t=="function"&&!ky(t)?t:e.get(t):n}function ta(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Mo(e);return t.children.forEach(s=>{a3(s,o[s.value.outlet],i,n.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>oa(a,i.getContext(s),r)),r}function a3(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=l3(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new uu(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ta(t,e,a?a.children:null,n,r):ta(t,e,i,n,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new No(a.outlet.component,s))}else s&&oa(e,a,r),r.canActivateChecks.push(new uu(n)),o.component?ta(t,null,a?a.children:null,n,r):ta(t,null,i,n,r);return r}function l3(t,e,i){if(typeof i=="function")return i(t,e);switch(i){case"pathParamsChange":return!Er(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Er(t.url,e.url)||!zn(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Mm(t,e)||!zn(t.queryParams,e.queryParams);case"paramsChange":default:return!Mm(t,e)}}function oa(t,e,i){let n=Mo(t),r=t.value;Object.entries(n).forEach(([o,s])=>{r.component?e?oa(s,e.children.getContext(o),i):oa(s,null,i):oa(s,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new No(e.outlet.component,r)):i.canDeactivateChecks.push(new No(null,r)):i.canDeactivateChecks.push(new No(null,r))}function ga(t){return typeof t=="function"}function c3(t){return typeof t=="boolean"}function u3(t){return t&&ga(t.canLoad)}function d3(t){return t&&ga(t.canActivate)}function f3(t){return t&&ga(t.canActivateChild)}function h3(t){return t&&ga(t.canDeactivate)}function p3(t){return t&&ga(t.canMatch)}function xC(t){return t instanceof ei||t?.name==="EmptyError"}function ko(){return Qe(t=>Qr(t.map(e=>e.pipe(We(1),sf(Xc)))).pipe(q(e=>{for(let i of e)if(i!==!0){if(i===Xc)return Xc;if(i===!1||i instanceof Hi)return i}return!0}),dt(e=>e!==Xc),We(1)))}function m3(t,e){return je(i=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=i;return s.length===0&&o.length===0?G(z(b({},i),{guardsResult:!0})):g3(s,n,r,t).pipe(je(a=>a&&c3(a)?v3(n,o,t,e):G(a)),q(a=>z(b({},i),{guardsResult:a})))})}function g3(t,e,i,n){return _e(t).pipe(je(r=>_3(r.component,r.route,i,e,n)),Fn(r=>r!==!0,!0))}function v3(t,e,i,n){return _e(e).pipe(un(r=>_i(w3(r.route.parent,n),y3(r.route,n),C3(t,r.path,i),b3(t,r.route,i))),Fn(r=>r!==!0,!0))}function y3(t,e){return t!==null&&e&&e(new Em(t)),G(!0)}function w3(t,e){return t!==null&&e&&e(new _m(t)),G(!0)}function b3(t,e,i){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return G(!0);let r=n.map(o=>Cl(()=>{let s=ma(e)??i,a=Fo(o,s),l=d3(a)?a.canActivate(e,t):ai(s,()=>a(e,t));return zi(l).pipe(Fn())}));return G(r).pipe(ko())}function C3(t,e,i){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>s3(s)).filter(s=>s!==null).map(s=>Cl(()=>{let a=s.guards.map(l=>{let c=ma(s.node)??i,u=Fo(l,c),d=f3(u)?u.canActivateChild(n,t):ai(c,()=>u(n,t));return zi(d).pipe(Fn())});return G(a).pipe(ko())}));return G(o).pipe(ko())}function _3(t,e,i,n,r){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return G(!0);let s=o.map(a=>{let l=ma(e)??r,c=Fo(a,l),u=h3(c)?c.canDeactivate(t,e,i,n):ai(l,()=>c(t,e,i,n));return zi(u).pipe(Fn())});return G(s).pipe(ko())}function D3(t,e,i,n){let r=e.canLoad;if(r===void 0||r.length===0)return G(!0);let o=r.map(s=>{let a=Fo(s,t),l=u3(a)?a.canLoad(e,i):ai(t,()=>a(e,i));return zi(l)});return G(o).pipe(ko(),SC(n))}function SC(t){return Cd(qe(e=>{if(Oo(e))throw _C(t,e)}),q(e=>e===!0))}function E3(t,e,i,n){let r=e.canMatch;if(!r||r.length===0)return G(!0);let o=r.map(s=>{let a=Fo(s,t),l=p3(a)?a.canMatch(e,i):ai(t,()=>a(e,i));return zi(l)});return G(o).pipe(ko(),SC(n))}function To(t){return Gr(new ha(t))}function x3(t){return Gr(new N(4e3,!1))}function S3(t){return Gr(DC(!1,on.GuardRejected))}function I3(t,e,i,n,r){let o=Um(t,e,i);return o.matched?(n=n3(e,n),E3(n,e,i,r).pipe(q(s=>s===!0?o:b({},Om)))):G(o)}function Um(t,e,i){if(e.path==="**")return T3(i);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||i.length>0)?b({},Om):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||EN)(i,t,e);if(!r)return b({},Om);let o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=r.consumed.length>0?b(b({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function T3(t){return{matched:!0,parameters:t.length>0?oC(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function iC(t,e,i,n){return i.length>0&&N3(t,i,n)?{segmentGroup:new xe(e,A3(n,new xe(i,t.children))),slicedSegments:[]}:i.length===0&&R3(t,i,n)?{segmentGroup:new xe(t.segments,M3(t,i,n,t.children)),slicedSegments:i}:{segmentGroup:new xe(t.segments,t.children),slicedSegments:i}}function M3(t,e,i,n){let r={};for(let o of i)if(hu(t,e,o)&&!n[Gn(o)]){let s=new xe([],{});r[Gn(o)]=s}return b(b({},n),r)}function A3(t,e){let i={};i[ce]=e;for(let n of t)if(n.path===""&&Gn(n)!==ce){let r=new xe([],{});i[Gn(n)]=r}return i}function N3(t,e,i){return i.some(n=>hu(t,e,n)&&Gn(n)!==ce)}function R3(t,e,i){return i.some(n=>hu(t,e,n))}function hu(t,e,i){return(t.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function O3(t,e,i,n){return Gn(t)!==n&&(n===ce||!hu(e,i,t))?!1:Um(e,t,i).matched}function k3(t,e,i){return e.length===0&&!t.children[i]}function F3(t,e,i,n,r,o,s="emptyOnly"){return new Fm(t,e,i,n,r,s,o).recognize()}function L3(t){t.sort((e,i)=>e.value.outlet===ce?-1:i.value.outlet===ce?1:e.value.outlet.localeCompare(i.value.outlet))}function V3(t){let e=t.value.routeConfig;return e&&e.path===""}function IC(t){let e=[],i=new Set;for(let n of t){if(!V3(n)){e.push(n);continue}let r=e.find(o=>n.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...n.children),i.add(r)):e.push(n)}for(let n of i){let r=IC(n.children);e.push(new rn(n.value,r))}return e.filter(n=>!i.has(n))}function j3(t){return t.data||{}}function $3(t){return t.resolve||{}}function B3(t,e,i,n,r,o){return je(s=>F3(t,e,i,n,s.extractedUrl,r,o).pipe(q(({state:a,tree:l})=>z(b({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function U3(t,e){return je(i=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return G(i);let o=new Set(r.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let c of TC(l))s.add(c);let a=0;return _e(s).pipe(un(l=>o.has(l)?H3(l,n,t,e):(l.data=Vm(l,l.parent,t).resolve,G(void 0))),qe(()=>a++),Kr(1),je(l=>a===s.size?G(i):gt))})}function TC(t){let e=t.children.map(i=>TC(i)).flat();return[t,...e]}function H3(t,e,i,n){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!bC(r)&&(o[pa]=r.title),q3(o,t,e,n).pipe(q(s=>(t._resolvedData=s,t.data=Vm(t,t.parent,i).resolve,null)))}function q3(t,e,i,n){let r=dm(t);if(r.length===0)return G({});let o={};return _e(r).pipe(je(s=>z3(t[s],e,i,n).pipe(Fn(),qe(a=>{o[s]=a}))),Kr(1),cs(o),en(s=>xC(s)?gt:Gr(s)))}function z3(t,e,i,n){let r=ma(e)??n,o=Fo(t,r),s=o.resolve?o.resolve(e,i):ai(r,()=>o(e,i));return zi(s)}function cm(t){return Qe(e=>{let i=t(e);return i?_e(i).pipe(q(()=>e)):G(e)})}function Q3(t,e,i,n){return zi(t.loadChildren()).pipe(q(AC),je(r=>r instanceof Is||Array.isArray(r)?G(r):_e(e.compileModuleAsync(r))),q(r=>{n&&n(t);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(i).injector,s=o.get(qm,[],{optional:!0,self:!0}).flat()),{routes:s.map(Bm),injector:o}}))}function Z3(t){return t&&typeof t=="object"&&"default"in t}function AC(t){return Z3(t)?t.default:t}function X3(t){return t!==ra}function iR(t,e){t.events.pipe(dt(i=>i instanceof pn||i instanceof qi||i instanceof la||i instanceof xr),q(i=>i instanceof pn||i instanceof xr?na.COMPLETE:(i instanceof qi?i.code===on.Redirect||i.code===on.SupersededByNewNavigation:!1)?na.REDIRECTING:na.FAILED),dt(i=>i!==na.REDIRECTING),We(1)).subscribe(()=>{e()})}function rR(t){throw t}function aR(t){for(let e=0;e<t.length;e++)if(t[e]==null)throw new N(4008,!1)}function lR(t){return!(t instanceof ca)&&!(t instanceof ua)}function RC(t,...e){return Pt([{provide:qm,multi:!0,useValue:t},[],{provide:Sr,useFactory:uR,deps:[Sn]},{provide:Fc,multi:!0,useFactory:dR},e.map(i=>i.\u0275providers)])}function uR(t){return t.routerState.root}function dR(){let t=T(ft);return e=>{let i=t.get(Qt);if(e!==i.components[0])return;let n=t.get(Sn),r=t.get(fR);t.get(hR)===1&&n.initialNavigation(),t.get(pR,null,de.Optional)?.setUpPreloading(),t.get(cR,null,de.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var ce,pa,um,SN,sC,Hi,xe,Dr,Lm,iu,NN,FN,PN,VN,$N,hm,ou,Ao,ra,_t,hn,aa,pn,on,mm,qi,xr,la,su,gm,vm,ym,wm,bm,Cm,_m,Dm,Em,xm,ca,ua,Sm,fu,au,rn,lu,Sr,da,cu,Ir,Am,$m,CC,t3,r3,Nm,uu,No,Xc,ha,du,Rm,Om,km,P3,Fm,MC,G3,Hm,qm,W3,zm,K3,Y3,J3,eR,Pm,tR,NC,nR,na,oR,sR,Sn,Po,cR,fR,hR,pR,Zt=y(()=>{"use strict";F();F();Xe();le();le();ar();xo();ce="primary",pa=Symbol("RouteTitle"),um=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};SN={exact:aC,subset:lC},sC={exact:IN,subset:TN,ignored:()=>!0};Hi=class{constructor(e=new xe([],{}),i={},n=null){this.root=e,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Ro(this.queryParams),this._queryParamMap}toString(){return NN.serialize(this)}},xe=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return tu(this)}},Dr=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap??=Ro(this.parameters),this._parameterMap}toString(){return dC(this)}};Lm=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:()=>new iu,providedIn:"root"});let t=e;return t})(),iu=class{parse(e){let i=new hm(e);return new Hi(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${ea(e.root,!0)}`,n=kN(e.queryParams),r=typeof e.fragment=="string"?`#${RN(e.fragment)}`:"";return`${i}${n}${r}`}},NN=new iu;FN=/^[^\/()?;#]+/;PN=/^[^\/()?;=#]+/;VN=/^[^=?&#]+/;$N=/^[^&#]+/;hm=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new xe([],{}):new xe([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(n[ce]=new xe(e,i)),n}parseSegment(){let e=sm(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new N(4009,!1);return this.capture(e),new Dr(nu(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=LN(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let r=sm(this.remaining);r&&(n=r,this.capture(n))}e[nu(i)]=nu(n)}parseQueryParam(e){let i=jN(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let s=BN(this.remaining);s&&(n=s,this.capture(n))}let r=eC(i),o=eC(n);if(e.hasOwnProperty(r)){let s=e[r];Array.isArray(s)||(s=[s],e[r]=s),s.push(o)}else e[r]=o}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=sm(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new N(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=ce);let s=this.parseChildren();i[o]=Object.keys(s).length===1?s[ce]:new xe([],s),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new N(4011,!1)}};ou=class{constructor(e,i,n){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=n,e&&n.length>0&&ru(n[0]))throw new N(4003,!1);let r=n.find(sa);if(r&&r!==oC(n))throw new N(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};Ao=class{constructor(e,i,n){this.segmentGroup=e,this.processChildren=i,this.index=n}};ra="imperative",_t=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(_t||{}),hn=class{constructor(e,i){this.id=e,this.url=i}},aa=class extends hn{constructor(e,i,n="imperative",r=null){super(e,i),this.type=_t.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},pn=class extends hn{constructor(e,i,n){super(e,i),this.urlAfterRedirects=n,this.type=_t.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},on=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(on||{}),mm=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(mm||{}),qi=class extends hn{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=_t.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},xr=class extends hn{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=_t.NavigationSkipped}},la=class extends hn{constructor(e,i,n,r){super(e,i),this.error=n,this.target=r,this.type=_t.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},su=class extends hn{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=_t.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gm=class extends hn{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=_t.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vm=class extends hn{constructor(e,i,n,r,o){super(e,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o,this.type=_t.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ym=class extends hn{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=_t.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wm=class extends hn{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=_t.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},bm=class{constructor(e){this.route=e,this.type=_t.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Cm=class{constructor(e){this.route=e,this.type=_t.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},_m=class{constructor(e){this.snapshot=e,this.type=_t.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Dm=class{constructor(e){this.snapshot=e,this.type=_t.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Em=class{constructor(e){this.snapshot=e,this.type=_t.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},xm=class{constructor(e){this.snapshot=e,this.type=_t.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ca=class{},ua=class{constructor(e){this.url=e}},Sm=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new fu,this.attachRef=null}},fu=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Sm,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),au=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=Im(e,this._root);return i?i.children.map(n=>n.value):[]}firstChild(e){let i=Im(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=Tm(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return Tm(e,this._root).map(i=>i.value)}};rn=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};lu=class extends au{constructor(e,i){super(e),this.snapshot=i,jm(this,e)}toString(){return this.snapshot.toString()}};Sr=class{constructor(e,i,n,r,o,s,a,l){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(q(c=>c[pa]))??G(void 0),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(q(e=>Ro(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(q(e=>Ro(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};da=class{get title(){return this.data?.[pa]}constructor(e,i,n,r,o,s,a,l,c){this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Ro(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ro(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},cu=class extends au{constructor(e,i){super(i),this.url=e,jm(this,i)}toString(){return wC(this._root)}};Ir=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=ce,this.activateEvents=new Ae,this.deactivateEvents=new Ae,this.attachEvents=new Ae,this.detachEvents=new Ae,this.parentContexts=T(fu),this.location=T(xn),this.changeDetector=T(It),this.environmentInjector=T(qt),this.inputBinder=T($m,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new N(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new N(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new N(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new N(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new Am(n,l,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ce({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[et]});let t=e;return t})(),Am=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,i,n){this.route=e,this.childContexts=i,this.parent=n}get(e,i){return e===Sr?this.route:e===fu?this.childContexts:this.parent.get(e,i)}},$m=new L("");CC="ngNavigationCancelingError";t3=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=V({type:e,selectors:[["ng-component"]],standalone:!0,features:[B],decls:1,vars:0,template:function(r,o){r&1&&E(0,"router-outlet")},dependencies:[Ir],encapsulation:2});let t=e;return t})();r3=(t,e,i,n)=>q(r=>(new Nm(e,r.targetRouterState,r.currentRouterState,i,n).activate(t),r)),Nm=class{constructor(e,i,n,r,o){this.routeReuseStrategy=e,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=o}activate(e){let i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,e),lm(this.futureState.root),this.activateChildRoutes(i,n,e)}deactivateChildRoutes(e,i,n){let r=Mo(i);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],n),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,i,n){let r=e.value,o=i?i.value:null;if(r===o)if(r.component){let s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(e,i,s.children)}else this.deactivateChildRoutes(e,i,n);else o&&this.deactivateRouteAndItsChildren(i,n)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,o=Mo(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,o=Mo(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,i,n){let r=Mo(i);e.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new xm(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Dm(e.value.snapshot))}activateRoutes(e,i,n){let r=e.value,o=i?i.value:null;if(lm(r),r===o)if(r.component){let s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,s.children)}else this.activateChildRoutes(e,i,n);else if(r.component){let s=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),lm(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=ma(r.snapshot);s.attachRef=null,s.route=r,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},uu=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},No=class{constructor(e,i){this.component=e,this.route=i}};Xc=Symbol("INITIAL_VALUE");ha=class{constructor(e){this.segmentGroup=e||null}},du=class extends Error{constructor(e){super(),this.urlTree=e}};Rm=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return G(n);if(r.numberOfChildren>1||!r.children[ce])return x3(e.redirectTo);r=r.children[ce]}}applyRedirectCommands(e,i,n){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,n);if(i.startsWith("/"))throw new du(r);return r}applyRedirectCreateUrlTree(e,i,n,r){let o=this.createSegmentGroup(e,i.root,n,r);return new Hi(o,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let n={};return Object.entries(e).forEach(([r,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);n[r]=i[a]}else n[r]=o}),n}createSegmentGroup(e,i,n,r){let o=this.createSegments(e,i.segments,n,r),s={};return Object.entries(i.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(e,l,n,r)}),new xe(o,s)}createSegments(e,i,n,r){return i.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,r):this.findOrReturn(o,n))}findPosParam(e,i,n){let r=n[i.path.substring(1)];if(!r)throw new N(4001,!1);return r}findOrReturn(e,i){let n=0;for(let r of i){if(r.path===e.path)return i.splice(n),r;n++}return e}},Om={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};km=class{};P3=31,Fm=class{constructor(e,i,n,r,o,s,a){this.injector=e,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Rm(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new N(4002,`'${e.segmentGroup}'`)}recognize(){let e=iC(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(q(i=>{let n=new da([],Object.freeze({}),Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,{},ce,this.rootComponentType,null,{}),r=new rn(n,i),o=new cu("",r),s=HN(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,ce).pipe(en(n=>{if(n instanceof du)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ha?this.noMatchError(n):n}))}inheritParamsAndData(e,i){let n=e.value,r=Vm(n,i,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(e,i,n,r){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,i,n):this.processSegment(e,i,n,n.segments,r,!0).pipe(q(o=>o instanceof rn?[o]:[]))}processChildren(e,i,n){let r=[];for(let o of Object.keys(n.children))o==="primary"?r.unshift(o):r.push(o);return _e(r).pipe(un(o=>{let s=n.children[o],a=i3(i,o);return this.processSegmentGroup(e,a,s,o)}),Yr((o,s)=>(o.push(...s),o)),Di(null),nf(),je(o=>{if(o===null)return To(n);let s=IC(o);return L3(s),G(s)}))}processSegment(e,i,n,r,o,s){return _e(i).pipe(un(a=>this.processSegmentAgainstRoute(a._injector??e,i,a,n,r,o,s).pipe(en(l=>{if(l instanceof ha)return G(null);throw l}))),Fn(a=>!!a),en(a=>{if(xC(a))return k3(n,r,o)?G(new km):To(n);throw a}))}processSegmentAgainstRoute(e,i,n,r,o,s,a){return O3(n,r,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,n,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,n,o,s):To(r):To(r)}expandSegmentAgainstRouteUsingRedirect(e,i,n,r,o,s){let{matched:a,consumedSegments:l,positionalParamSegments:c,remainingSegments:u}=Um(i,r,o);if(!a)return To(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>P3&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(l,r.redirectTo,c);return this.applyRedirects.lineralizeSegments(r,d).pipe(je(m=>this.processSegment(e,n,i,m.concat(u),s,!1)))}matchSegmentAgainstRoute(e,i,n,r,o){let s=I3(i,n,r,e,this.urlSerializer);return n.path==="**"&&(i.children={}),s.pipe(Qe(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,r).pipe(Qe(({routes:l})=>{let c=n._loadedInjector??e,{consumedSegments:u,remainingSegments:d,parameters:m}=a,g=new da(u,m,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,j3(n),Gn(n),n.component??n._loadedComponent??null,n,$3(n)),{segmentGroup:w,slicedSegments:D}=iC(i,u,d,l);if(D.length===0&&w.hasChildren())return this.processChildren(c,l,w).pipe(q(O=>O===null?null:new rn(g,O)));if(l.length===0&&D.length===0)return G(new rn(g,[]));let S=Gn(n)===o;return this.processSegment(c,l,w,D,S?ce:o,!0).pipe(q(O=>new rn(g,O instanceof rn?[O]:[])))}))):To(i)))}getChildConfig(e,i,n){return i.children?G({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?G({routes:i._loadedRoutes,injector:i._loadedInjector}):D3(e,i,n,this.urlSerializer).pipe(je(r=>r?this.configLoader.loadChildren(e,i).pipe(qe(o=>{i._loadedRoutes=o.routes,i._loadedInjector=o.injector})):S3(i))):G({routes:[],injector:e})}};MC=(()=>{let e=class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(s=>s.outlet===ce);return r}getResolvedTitleForRoute(n){return n.data[pa]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:()=>T(G3),providedIn:"root"});let t=e;return t})(),G3=(()=>{let e=class e extends MC{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(M(Wb))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Hm=new L("",{providedIn:"root",factory:()=>({})}),qm=new L(""),W3=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=T(Ip)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return G(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=zi(n.loadComponent()).pipe(q(AC),qe(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),xi(()=>{this.componentLoaders.delete(n)})),o=new Ur(r,()=>new ge).pipe(Br());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return G({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=Q3(r,this.compiler,n,this.onLoadEndListener).pipe(xi(()=>{this.childrenLoaders.delete(r)})),a=new Ur(s,()=>new ge).pipe(Br());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();zm=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:()=>T(K3),providedIn:"root"});let t=e;return t})(),K3=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Y3=new L(""),J3=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ge,this.transitionAbortSubject=new ge,this.configLoader=T(W3),this.environmentInjector=T(qt),this.urlSerializer=T(Lm),this.rootContexts=T(fu),this.location=T(_o),this.inputBindingEnabled=T($m,{optional:!0})!==null,this.titleStrategy=T(MC),this.options=T(Hm,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=T(zm),this.createViewTransition=T(Y3,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>G(void 0),this.rootComponentType=null;let n=o=>this.events.next(new bm(o)),r=o=>this.events.next(new Cm(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(z(b(b({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new ke({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ra,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(dt(s=>s.id!==0),q(s=>z(b({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Qe(s=>{let a=!1,l=!1;return G(s).pipe(Qe(c=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",on.SupersededByNewNavigation),gt;this.currentTransition=s,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?z(b({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&d!=="reload"){let m="";return this.events.next(new xr(c.id,this.urlSerializer.serialize(c.rawUrl),m,mm.IgnoredSameUrlNavigation)),c.resolve(null),gt}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return G(c).pipe(Qe(m=>{let g=this.transitions?.getValue();return this.events.next(new aa(m.id,this.urlSerializer.serialize(m.extractedUrl),m.source,m.restoredState)),g!==this.transitions?.getValue()?gt:Promise.resolve(m)}),B3(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),qe(m=>{s.targetSnapshot=m.targetSnapshot,s.urlAfterRedirects=m.urlAfterRedirects,this.currentNavigation=z(b({},this.currentNavigation),{finalUrl:m.urlAfterRedirects});let g=new su(m.id,this.urlSerializer.serialize(m.extractedUrl),this.urlSerializer.serialize(m.urlAfterRedirects),m.targetSnapshot);this.events.next(g)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:m,extractedUrl:g,source:w,restoredState:D,extras:S}=c,O=new aa(m,this.urlSerializer.serialize(g),w,D);this.events.next(O);let K=yC(this.rootComponentType).snapshot;return this.currentTransition=s=z(b({},c),{targetSnapshot:K,urlAfterRedirects:g,extras:z(b({},S),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=g,G(s)}else{let m="";return this.events.next(new xr(c.id,this.urlSerializer.serialize(c.extractedUrl),m,mm.IgnoredByUrlHandlingStrategy)),c.resolve(null),gt}}),qe(c=>{let u=new gm(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),q(c=>(this.currentTransition=s=z(b({},c),{guards:o3(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),m3(this.environmentInjector,c=>this.events.next(c)),qe(c=>{if(s.guardsResult=c.guardsResult,Oo(c.guardsResult))throw _C(this.urlSerializer,c.guardsResult);let u=new vm(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),dt(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",on.GuardRejected),!1)),cm(c=>{if(c.guards.canActivateChecks.length)return G(c).pipe(qe(u=>{let d=new ym(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),Qe(u=>{let d=!1;return G(u).pipe(U3(this.paramsInheritanceStrategy,this.environmentInjector),qe({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(u,"",on.NoDataFromResolver)}}))}),qe(u=>{let d=new wm(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),cm(c=>{let u=d=>{let m=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&m.push(this.configLoader.loadComponent(d.routeConfig).pipe(qe(g=>{d.component=g}),q(()=>{})));for(let g of d.children)m.push(...u(g));return m};return Qr(u(c.targetSnapshot.root)).pipe(Di(null),We(1))}),cm(()=>this.afterPreactivation()),Qe(()=>{let{currentSnapshot:c,targetSnapshot:u}=s,d=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return d?_e(d).pipe(q(()=>s)):G(s)}),q(c=>{let u=YN(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=z(b({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,s}),qe(()=>{this.events.next(new ca)}),r3(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),We(1),qe({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new pn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),ds(this.transitionAbortSubject.pipe(qe(c=>{throw c}))),xi(()=>{!a&&!l&&this.cancelNavigationTransition(s,"",on.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),en(c=>{if(l=!0,EC(c))this.events.next(new qi(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),e3(c)?this.events.next(new ua(c.url)):s.resolve(!1);else{this.events.next(new la(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(c))}catch(u){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(u)}}return gt}))}))}cancelNavigationTransition(n,r,o){let s=new qi(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();eR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:()=>T(tR),providedIn:"root"});let t=e;return t})(),Pm=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},tR=(()=>{let e=class e extends Pm{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=En(e)))(o||e)}})(),e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),NC=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:()=>T(nR),providedIn:"root"});let t=e;return t})(),nR=(()=>{let e=class e extends NC{constructor(){super(...arguments),this.location=T(_o),this.urlSerializer=T(Lm),this.options=T(Hm,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=T(zm),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Hi,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=yC(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof aa)this.stateMemento=this.createStateMemento();else if(n instanceof xr)this.rawUrlTree=r.initialUrl;else if(n instanceof su){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(o,r)}}else n instanceof ca?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):n instanceof qi&&(n.code===on.GuardRejected||n.code===on.NoDataFromResolver)?this.restoreHistory(r):n instanceof la?this.restoreHistory(r,!0):n instanceof pn&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let s=this.browserPageId,a=b(b({},r.extras.state),this.generateNgRouterState(r.id,s));this.location.replaceState(o,"",a)}else{let s=b(b({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=En(e)))(o||e)}})(),e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),na=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(na||{});oR={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},sR={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Sn=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=T(kc),this.stateManager=T(NC),this.options=T(Hm,{optional:!0})||{},this.pendingTasks=T(Oi),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=T(J3),this.urlSerializer=T(Lm),this.location=T(_o),this.urlHandlingStrategy=T(zm),this._events=new ge,this.errorHandler=this.options.errorHandler||rR,this.navigated=!1,this.routeReuseStrategy=T(eR),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=T(qm,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!T($m,{optional:!0}),this.eventsSubscription=new He,this.isNgZoneEnabled=T(De)instanceof De&&De.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(r,s),r instanceof qi&&r.code!==on.Redirect&&r.code!==on.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof pn)this.navigated=!0;else if(r instanceof ua){let a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),l={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||X3(o.source)};this.scheduleNavigation(a,ra,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}lR(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ra,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=b({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let l=this.parseUrl(n);this.scheduleNavigation(l,r,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Bm),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:l,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:a,d=null;switch(l){case"merge":d=b(b({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let m;try{let g=o?o.snapshot:this.routerState.snapshot.root;m=pC(g)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),m=this.currentUrlTree.root}return mC(m,n,d,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Oo(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,ra,null,r)}navigate(n,r={skipLocationChange:!1}){return aR(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=b({},oR):r===!1?o=b({},sR):o=r,Oo(n))return Xb(this.currentUrlTree,n,o);let s=this.parseUrl(n);return Xb(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,s])=>(s!=null&&(r[o]=s),r),{})}scheduleNavigation(n,r,o,s,a){if(this.disposed)return Promise.resolve(!1);let l,c,u;a?(l=a.resolve,c=a.reject,u=a.promise):u=new Promise((m,g)=>{l=m,c=g});let d=this.pendingTasks.add();return iR(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(m=>Promise.reject(m))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();Po=(()=>{let e=class e{constructor(n,r,o,s,a,l){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=l,this.href=null,this.commands=null,this.onChanges=new ge,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof pn&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,o,s,a){let l=this.urlTree;if(l===null||this.isAnchorElement&&(n!==0||r||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(l,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:nw(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let o=this.renderer,s=this.el.nativeElement;r!==null?o.setAttribute(s,n,r):o.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(r){return new(r||e)(_(Sn),_(Sr),Kh("tabindex"),_(bt),_(Oe),_(Hn))},e.\u0275dir=Ce({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&k("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&U("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[Te.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Pi],skipLocationChange:[Te.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Pi],replaceUrl:[Te.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Pi],routerLink:"routerLink"},standalone:!0,features:[yp,et]});let t=e;return t})(),cR=new L("");fR=new L("",{factory:()=>new ge}),hR=new L("",{providedIn:"root",factory:()=>1}),pR=new L("")});function Wn(t){t||(lc(Wn),t=T(Ri));let e=new pe(i=>t.onDestroy(i.next.bind(i)));return i=>i.pipe(ds(e))}function Gm(t,e){!e?.injector&&lc(Gm);let i=e?.injector??T(ft),n=new Xt(1),r=Bs(()=>{let o;try{o=t()}catch(s){bo(()=>n.error(s));return}bo(()=>n.next(o))},{injector:i,manualCleanup:!0});return i.get(Ri).onDestroy(()=>{r.destroy(),n.complete()}),n.asObservable()}var mu=y(()=>{"use strict";F();Xe();ar();});function OC(t){return t&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function kC(t){return t}function Wm(t,e){e=e||{};let i=e.delimiter||".",n=e.maxDepth,r=e.transformKey||kC,o={};function s(a,l,c){c=c||1,Object.keys(a).forEach(function(u){let d=a[u],m=e.safe&&Array.isArray(d),g=Object.prototype.toString.call(d),w=OC(d),D=g==="[object Object]"||g==="[object Array]",S=l?l+i+r(u):r(u);if(!m&&!w&&D&&Object.keys(d).length&&(!e.maxDepth||c<n))return s(d,S,c+1);o[S]=d})}return s(t),o}function Qm(t,e){e=e||{};let i=e.delimiter||".",n=e.overwrite||!1,r=e.transformKey||kC,o={};if(OC(t)||Object.prototype.toString.call(t)!=="[object Object]")return t;function a(u){let d=Number(u);return isNaN(d)||u.indexOf(".")!==-1||e.object?u:d}function l(u,d,m){return Object.keys(m).reduce(function(g,w){return g[u+i+w]=m[w],g},d)}function c(u){let d=Object.prototype.toString.call(u),m=d==="[object Array]",g=d==="[object Object]";if(u){if(m)return!u.length;if(g)return!Object.keys(u).length}else return!0}return t=Object.keys(t).reduce(function(u,d){let m=Object.prototype.toString.call(t[d]);return!(m==="[object Object]"||m==="[object Array]")||c(t[d])?(u[d]=t[d],u):l(d,u,Wm(t[d],e))},{}),Object.keys(t).forEach(function(u){let d=u.split(i).map(r),m=a(d.shift()),g=a(d[0]),w=o;for(;g!==void 0;){if(m==="__proto__")return;let D=Object.prototype.toString.call(w[m]),S=D==="[object Object]"||D==="[object Array]";if(!n&&!S&&typeof w[m]<"u")return;(n&&!S||!n&&w[m]==null)&&(w[m]=typeof g=="number"&&!e.object?[]:{}),w=w[m],d.length>0&&(m=a(d.shift()),g=a(d[0]))}w[m]=Qm(t[u],e)}),o}var FC=y(()=>{"use strict"});function Zm(t,e){return t&&(Object.prototype.hasOwnProperty.call(t,e)?t[e]:e.split(".").reduce((i,n)=>i?.[n],t))}function mR(t,e,i){t=b({},t);let n=e.split("."),r=n.length-1;return n.reduce((o,s,a)=>(a===r?o[s]=i:o[s]=Array.isArray(o[s])?o[s].slice():b({},o[s]),o&&o[s]),t),t}function jC(t){return t?Array.isArray(t)?t.length:ig(t)?Object.keys(t).length:t?t.length:0:0}function gR(t){return jC(t)===0}function vR(t){return typeof t=="function"}function Lo(t){return typeof t=="string"}function ig(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}function $C(t){return t.replace(/(?:^\w|[A-Z]|\b\w)/g,(e,i)=>i==0?e.toLowerCase():e.toUpperCase()).replace(/\s+|_|-|\//g,"")}function Jm(t){return t==null}function PC(t){return Jm(t)===!1}function BC(t){return t&&typeof t.scope=="string"}function yR(t){return t&&ig(t.loader)}function wR(t){return Qm(t)}function LC(t){return Wm(t,{safe:!0})}function bR(t={}){return z(b(b({},va),t),{missingHandler:b(b({},va.missingHandler),t.missingHandler),flatten:b(b({},va.flatten),t.flatten)})}function _R(t){let[e,i]=t.interpolation;return new RegExp(`${e}([^${e}${i}]*?)${i}`,"g")}function ya(t){if(!t)return"";let e=t.split("/");return e.pop(),e.join("/")}function Gi(t){return t?t.split("/").pop():""}function Xm(t,e,i="|"){if(Lo(t)){let n=t.split(i),r=n.pop();return r===e?[!0,n.toString()]:[!1,r]}return[!1,""]}function SR(t,e){let[i]=Xm(e,"static");return i?!1:!!t.config.reRenderOnLangChange}function IR(t){return t?e=>e:We(1)}function TR(t,e){return Object.keys(t).reduce((i,n)=>(i[`${e}/${n}`]=t[n],i),{})}function GC(t,e){return yR(t)?TR(t.loader,e):void 0}function Km(t){return{scope:ya(t)||null,langName:Gi(t)}}function WC(t){let{path:e,inlineLoader:i,mainLoader:n,data:r}=t;if(i){let o=i[e];if(vR(o)===!1)throw`You're using an inline loader but didn't provide a loader for ${e}`;return i[e]().then(s=>s.default?s.default:s)}return n.getTranslation(e,r)}function MR({mainLoader:t,path:e,data:i,fallbackPath:n,inlineLoader:r}){return(n?[e,n]:[e]).map(s=>{let a=WC({path:s,mainLoader:t,inlineLoader:r,data:i});return _e(a).pipe(q(l=>({translation:l,lang:s})))})}function QC(t){let e=[LR(CR),jR(DR),$R(ER),VR(xR)];return t.config&&e.push(FR(t.config)),t.loader&&e.push(PR(t.loader)),e}function FR(t){return Pt([{provide:Vo,useValue:bR(t)}])}function PR(t){return Pt([{provide:VC,useClass:t}])}function LR(t){return Pt([{provide:UC,useClass:t,deps:[Vo]}])}function VR(t){return Pt([{provide:zC,useClass:t,deps:[Vo]}])}function jR(t){return Pt([{provide:HC,useClass:t}])}function $R(t){return Pt([{provide:qC,useClass:t}])}var Ym,VC,Vo,va,UC,CR,HC,DR,qC,ER,zC,xR,AR,Ke,NR,eg,RR,OR,kR,tg,ng,ee,ye,rB,oB,te=y(()=>{"use strict";F();F();Xe();mu();FC();Ym=class{translations;constructor(e){this.translations=e}getTranslation(e){return G(this.translations.get(e)||{})}},VC=new L("TRANSLOCO_LOADER");Vo=new L("TRANSLOCO_CONFIG",{providedIn:"root",factory:()=>va}),va={defaultLang:"en",reRenderOnLangChange:!1,prodMode:!1,failedRetries:2,fallbackLang:[],availableLangs:[],missingHandler:{logMissingKey:!0,useFallbackTranslation:!1,allowEmpty:!1},flatten:{aot:!1},interpolation:["{{","}}"]};UC=new L("TRANSLOCO_TRANSPILER"),CR=(()=>{class t{config=T(Vo,{optional:!0})??va;get interpolationMatcher(){return _R(this.config)}transpile({value:i,params:n={},translation:r,key:o}){if(Lo(i)){let s,a=i;for(;(s=this.interpolationMatcher.exec(a))!==null;){let[l,c]=s;a=a.replace(l,()=>{let u=c.trim(),d=Zm(n,u);return PC(d)?d:PC(r[u])?this.transpile({params:n,translation:r,key:o,value:r[u]}):""})}return a}else n&&(ig(i)?i=this.handleObject({value:i,params:n,translation:r,key:o}):Array.isArray(i)&&(i=this.handleArray({value:i,params:n,translation:r,key:o})));return i}handleObject({value:i,params:n={},translation:r,key:o}){let s=i;return Object.keys(n).forEach(a=>{let l=this.transpile({value:Zm(s,a),params:Zm(n,a),translation:r,key:o});s=mR(s,a,l)}),s}handleArray(r){var o=r,{value:i}=o,n=Ko(o,["value"]);return i.map(s=>this.transpile(b({value:s},n)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();HC=new L("TRANSLOCO_MISSING_HANDLER"),DR=(()=>{class t{handle(i,n){if(n.missingHandler.logMissingKey&&!n.prodMode){let r=`Missing translation for '${i}'`;console.warn(`%c ${r}`,"font-size: 12px; color: red")}return i}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),qC=new L("TRANSLOCO_INTERCEPTOR"),ER=(()=>{class t{preSaveTranslation(i){return i}preSaveTranslationKey(i,n){return n}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),zC=new L("TRANSLOCO_FALLBACK_STRATEGY"),xR=(()=>{class t{userConfig;constructor(i){this.userConfig=i}getNextLangs(){let i=this.userConfig.fallbackLang;if(!i)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(i)?i:[i]}static \u0275fac=function(n){return new(n||t)(M(Vo))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();Ke=(()=>{class t{loader;parser;missingHandler;interceptor;fallbackStrategy;langChanges$;translations=new Map;cache=new Map;firstFallbackLang;defaultLang="";availableLangs=[];isResolvedMissingOnce=!1;lang;failedLangs=new Set;events=new ge;events$=this.events.asObservable();config;constructor(i,n,r,o,s,a){this.loader=i,this.parser=n,this.missingHandler=r,this.interceptor=o,this.fallbackStrategy=a,this.loader||(this.loader=new Ym(this.translations)),AR=this,this.config=JSON.parse(JSON.stringify(s)),this.setAvailableLangs(this.config.availableLangs||[]),this.setFallbackLangForMissingTranslation(this.config),this.setDefaultLang(this.config.defaultLang),this.lang=new ke(this.getDefaultLang()),this.langChanges$=this.lang.asObservable(),this.events$.pipe(Wn()).subscribe(l=>{l.type==="translationLoadSuccess"&&l.wasFailure&&this.setActiveLang(l.payload.langName)})}getDefaultLang(){return this.defaultLang}setDefaultLang(i){this.defaultLang=i}getActiveLang(){return this.lang.getValue()}setActiveLang(i){return this.parser.onLangChanged?.(i),this.lang.next(i),this.events.next({type:"langChanged",payload:Km(i)}),this}setAvailableLangs(i){this.availableLangs=i}getAvailableLangs(){return this.availableLangs}load(i,n={}){let r=this.cache.get(i);if(r)return r;let o,s=this._isLangScoped(i),a;s&&(a=ya(i));let l={path:i,mainLoader:this.loader,inlineLoader:n.inlineLoader,data:s?{scope:a}:void 0};if(this.useFallbackTranslation(i)){let u=s?`${a}/${this.firstFallbackLang}`:this.firstFallbackLang,d=MR(z(b({},l),{fallbackPath:u}));o=kn(d)}else{let u=WC(l);o=_e(u)}let c=o.pipe(us(this.config.failedRetries),qe(u=>{if(Array.isArray(u)){u.forEach(d=>{this.handleSuccess(d.lang,d.translation),d.lang!==i&&this.cache.set(d.lang,G({}))});return}this.handleSuccess(i,u)}),en(u=>(this.config.prodMode||console.error(`Error while trying to load "${i}"`,u),this.handleFailure(i,n))),Si(1));return this.cache.set(i,c),c}translate(i,n={},r=this.getActiveLang()){if(!i)return i;let{scope:o,resolveLang:s}=this.resolveLangAndScope(r);if(Array.isArray(i))return i.map(c=>this.translate(o?`${o}.${c}`:c,n,s));i=o?`${o}.${i}`:i;let a=this.getTranslation(s),l=a[i];return l?this.parser.transpile({value:l,params:n,translation:a,key:i}):this._handleMissingKey(i,l,n)}selectTranslate(i,n,r,o=!1){let s,a=(c,u)=>this.load(c,u).pipe(q(()=>o?this.translateObject(i,n,c):this.translate(i,n,c)));if(Jm(r))return this.langChanges$.pipe(Qe(c=>a(c)));if(r=Array.isArray(r)?r[0]:r,BC(r)){let c=r;r=c.scope,s=GC(c,c.scope)}if(r=r,this.isLang(r)||this.isScopeWithLang(r))return a(r);let l=r;return this.langChanges$.pipe(Qe(c=>a(`${l}/${c}`,{inlineLoader:s})))}isScopeWithLang(i){return this.isLang(Gi(i))}translateObject(i,n={},r=this.getActiveLang()){if(Lo(i)||Array.isArray(i)){let{resolveLang:s,scope:a}=this.resolveLangAndScope(r);if(Array.isArray(i))return i.map(u=>this.translateObject(a?`${a}.${u}`:u,n,s));let l=this.getTranslation(s);i=a?`${a}.${i}`:i;let c=wR(this.getObjectByKey(l,i));return gR(c)?this.translate(i,n,r):this.parser.transpile({value:c,params:n,translation:l,key:i})}let o=[];for(let[s,a]of this.getEntries(i))o.push(this.translateObject(s,a,r));return o}selectTranslateObject(i,n,r){if(Lo(i)||Array.isArray(i))return this.selectTranslate(i,n,r,!0);let[[o,s],...a]=this.getEntries(i);return this.selectTranslateObject(o,s,r).pipe(q(l=>{let c=[l];for(let[u,d]of a)c.push(this.translateObject(u,d,r));return c}))}getTranslation(i){if(i){if(this.isLang(i))return this.translations.get(i)||{};{let{scope:n,resolveLang:r}=this.resolveLangAndScope(i),o=this.translations.get(r)||{};return this.getObjectByKey(o,n)}}return this.translations}selectTranslation(i){let n=this.langChanges$;if(i){let r=Gi(i)!==i;this.isLang(i)||r?n=G(i):n=this.langChanges$.pipe(q(o=>`${i}/${o}`))}return n.pipe(Qe(r=>this.load(r).pipe(q(()=>this.getTranslation(r)))))}setTranslation(i,n=this.getActiveLang(),r={}){let s=b(b({},{merge:!0,emitChange:!0}),r),a=ya(n),l=i;if(a){let g=this.getMappedScope(a);l=LC({[g]:i})}let c=a?Gi(n):n,u=b(b({},s.merge&&this.getTranslation(c)),l),d=this.config.flatten.aot?u:LC(u),m=this.interceptor.preSaveTranslation(d,c);this.translations.set(c,m),s.emitChange&&this.setActiveLang(this.getActiveLang())}setTranslationKey(i,n,r={}){let o=r.lang||this.getActiveLang(),s=this.interceptor.preSaveTranslationKey(i,n,o),a={[i]:s};this.setTranslation(a,o,z(b({},r),{merge:!0}))}setFallbackLangForMissingTranslation({fallbackLang:i}){let n=Array.isArray(i)?i[0]:i;i&&this.useFallbackTranslation(n)&&(this.firstFallbackLang=n)}_handleMissingKey(i,n,r){if(this.config.missingHandler.allowEmpty&&n==="")return"";if(!this.isResolvedMissingOnce&&this.useFallbackTranslation()){this.isResolvedMissingOnce=!0;let o=this.translate(i,r,this.firstFallbackLang);return this.isResolvedMissingOnce=!1,o}return this.missingHandler.handle(i,this.getMissingHandlerData(),r)}_isLangScoped(i){return this.getAvailableLangsIds().indexOf(i)===-1}isLang(i){return this.getAvailableLangsIds().indexOf(i)!==-1}_loadDependencies(i,n){let r=Gi(i);return this._isLangScoped(i)&&!this.isLoadedTranslation(r)?Qr([this.load(r),this.load(i,{inlineLoader:n})]):this.load(i,{inlineLoader:n})}_completeScopeWithLang(i){return this._isLangScoped(i)&&!this.isLang(Gi(i))?`${i}/${this.getActiveLang()}`:i}_setScopeAlias(i,n){this.config.scopeMapping||(this.config.scopeMapping={}),this.config.scopeMapping[i]=n}ngOnDestroy(){this.cache.clear()}isLoadedTranslation(i){return jC(this.getTranslation(i))}getAvailableLangsIds(){let i=this.getAvailableLangs()[0];return Lo(i)?this.getAvailableLangs():this.getAvailableLangs().map(n=>n.id)}getMissingHandlerData(){return z(b({},this.config),{activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang})}useFallbackTranslation(i){return this.config.missingHandler.useFallbackTranslation&&i!==this.firstFallbackLang}handleSuccess(i,n){this.setTranslation(n,i,{emitChange:!1}),this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:Km(i)}),this.failedLangs.forEach(r=>this.cache.delete(r)),this.failedLangs.clear()}handleFailure(i,n){Jm(n.failedCounter)&&(n.failedCounter=0,n.fallbackLangs||(n.fallbackLangs=this.fallbackStrategy.getNextLangs(i)));let r=i.split("/"),s=n.fallbackLangs[n.failedCounter];if(this.failedLangs.add(i),this.cache.has(s))return this.handleSuccess(s,this.getTranslation(s)),gt;let a=s===r[r.length-1];if(!s||a){let c="Unable to load translation and all the fallback languages";throw r.length>1&&(c+=", did you misspelled the scope name?"),new Error(c)}let l=s;return r.length>1&&(r[r.length-1]=s,l=r.join("/")),n.failedCounter++,this.events.next({type:"translationLoadFailure",payload:Km(i)}),this.load(l,n)}getMappedScope(i){let{scopeMapping:n={}}=this.config;return n[i]||$C(i)}resolveLangAndScope(i){let n=i,r;if(this._isLangScoped(i)){let o=Gi(i),s=this.isLang(o);n=s?o:this.getActiveLang(),r=this.getMappedScope(s?ya(i):i)}return{scope:r,resolveLang:n}}getObjectByKey(i,n){let r={},o=`${n}.`;for(let s in i)s.startsWith(o)&&(r[s.replace(o,"")]=i[s]);return r}getEntries(i){return i instanceof Map?i.entries():Object.entries(i)}static \u0275fac=function(n){return new(n||t)(M(VC,8),M(UC),M(HC),M(qC),M(Vo),M(zC))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),NR=(()=>{class t{html;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=V({type:t,selectors:[["ng-component"]],inputs:{html:"html"},standalone:!0,features:[B],decls:1,vars:1,consts:[[1,"transloco-loader-template",3,"innerHTML"]],template:function(n,r){n&1&&E(0,"div",0),n&2&&x("innerHTML",r.html,ht)},encapsulation:2})}return t})(),eg=class{view;vcr;constructor(e,i){this.view=e,this.vcr=i}attachView(){if(this.view instanceof Cn)this.vcr.createEmbeddedView(this.view);else if(Lo(this.view)){let e=this.vcr.createComponent(NR);e.instance.html=this.view,e.hostView.detectChanges()}else this.vcr.createComponent(this.view)}detachView(){this.vcr.clear()}},RR=new L("TRANSLOCO_LANG"),OR=new L("TRANSLOCO_LOADING_TEMPLATE"),kR=new L("TRANSLOCO_SCOPE"),tg=class{initialized=!1;resolve({inline:e,provider:i,active:n}){let r=n;if(this.initialized)return r=n,r;if(i){let[,o]=Xm(i,"static");r=o}if(e){let[,o]=Xm(e,"static");r=o}return this.initialized=!0,r}resolveLangBasedOnScope(e){return ya(e)?Gi(e):e}resolveLangPath(e,i){return i?`${i}/${e}`:e}},ng=class{service;constructor(e){this.service=e}resolve(e){let{inline:i,provider:n}=e;if(i)return i;if(n){if(BC(n)){let{scope:r,alias:o=$C(r)}=n;return this.service._setScopeAlias(r,o),r}return n}}},ee=(()=>{class t{destroyRef=T(Ri);service=T(Ke);tpl=T(Cn,{optional:!0});providerLang=T(RR,{optional:!0});providerScope=T(kR,{optional:!0});providedLoadingTpl=T(OR,{optional:!0});cdr=T(It);host=T(Oe);vcr=T(xn);renderer=T(bt);view;memo=new Map;key;params={};inlineScope;inlineRead;prefix;inlineLang;inlineTpl;currentLang;loaderTplHandler;initialized=!1;path;langResolver=new tg;scopeResolver=new ng(this.service);strategy=this.tpl===null?"attribute":"structural";static ngTemplateContextGuard(i,n){return!0}ngOnInit(){let i=SR(this.service,this.providerLang||this.inlineLang);if(this.service.langChanges$.pipe(Qe(n=>{let r=this.langResolver.resolve({inline:this.inlineLang,provider:this.providerLang,active:n});return Array.isArray(this.providerScope)?kn(this.providerScope.map(o=>this.resolveScope(r,o))):this.resolveScope(r,this.providerScope)}),IR(i),Wn(this.destroyRef)).subscribe(()=>{this.currentLang=this.langResolver.resolveLangBasedOnScope(this.path),this.strategy==="attribute"?this.attributeStrategy():this.structuralStrategy(this.currentLang,this.prefix||this.inlineRead),this.cdr.markForCheck(),this.initialized=!0}),!this.initialized){let n=this.resolveLoadingContent();n&&(this.loaderTplHandler=new eg(n,this.vcr),this.loaderTplHandler.attachView())}}ngOnChanges(i){this.strategy==="attribute"&&Object.keys(i).some(r=>!i[r].firstChange)&&this.attributeStrategy()}attributeStrategy(){this.detachLoader(),this.renderer.setProperty(this.host.nativeElement,"innerText",this.service.translate(this.key,this.params,this.currentLang))}structuralStrategy(i,n){this.memo.clear();let r=this.getTranslateFn(i,n);this.view?(this.view.context.$implicit=r,this.view.context.currentLang=this.currentLang):(this.detachLoader(),this.view=this.vcr.createEmbeddedView(this.tpl,{$implicit:r,currentLang:this.currentLang}))}getTranslateFn(i,n){return(r,o)=>{let s=n?`${n}.${r}`:r,a=o?`${s}${JSON.stringify(o)}`:s;return this.memo.has(a)||this.memo.set(a,this.service.translate(s,o,i)),this.memo.get(a)}}resolveLoadingContent(){return this.inlineTpl||this.providedLoadingTpl}ngOnDestroy(){this.memo.clear()}detachLoader(){this.loaderTplHandler?.detachView()}resolveScope(i,n){let r=this.scopeResolver.resolve({inline:this.inlineScope,provider:n});this.path=this.langResolver.resolveLangPath(i,r);let o=GC(n,r);return this.service._loadDependencies(this.path,o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Ce({type:t,selectors:[["","transloco",""]],inputs:{key:[Te.None,"transloco","key"],params:[Te.None,"translocoParams","params"],inlineScope:[Te.None,"translocoScope","inlineScope"],inlineRead:[Te.None,"translocoRead","inlineRead"],prefix:[Te.None,"translocoPrefix","prefix"],inlineLang:[Te.None,"translocoLang","inlineLang"],inlineTpl:[Te.None,"translocoLoadingTpl","inlineTpl"]},standalone:!0,features:[et]})}return t})(),ye=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ft({type:t});static \u0275inj=kt({})}return t})();rB=new L("TRANSLOCO_TEST_LANGS - Available testing languages"),oB=new L("TRANSLOCO_TEST_OPTIONS - Testing options")});var BR,ZC,KC=y(()=>{"use strict";BR=[{userId:"wim",question:"Is sports good for our health?",createdAt:new Date,id:"0"},{userId:"wim",question:"Getting results",createdAt:new Date,id:"1"},{userId:"wim",question:"Summarizing stuff",createdAt:new Date,id:"2"},{id:"3",createdAt:new Date,question:`Yes, sports are good for our health. Engagin g in physical exercise has numerous benefits for our overall well-being. Regular sports activities can help improve cardiovascular health, increase muscle strength and endurance, enhance flexibility and balance, and promote weight management. Sports also have positive effects on mental health, reducing stress and anxiety, improving mood, and boosting self-esteem.

According to the search results, several studies highlight the beneficial effects of physical exercise on various health aspects. One study suggests that combining voluntary physical exercise with vitamin D supplementation can improve body weight management, glucose homeostasis, metabolic inflammation, and liver steatosis in obese mice models[^1]. Another study emphasizes the importance of immediate reporting and removal from athletic activity after a concussion to prevent prolonged recovery[^2]. Additionally, exercise has been found to be beneficial in the prevention and treatment of Alzheimer's disease, as it helps maintain cognition and modulates various brain functions[^3]. Furthermore, physical exercise has been shown to improve physical performance and activities of daily living in individuals with Parkinson's disease[^4].

It is important to note that while sports and physical exercise have numerous benefits, it is essential to engage in them safely and appropriately. It is recommended to consult with healthcare professionals or trainers to determine the most suitable sports activities and exercise routines based on individual health conditions and goals.

For more information, you can refer to the following search result links:

1. [Combined Beneficial Effect of Voluntary Physical Exercise and Vitamin D Supplementation in Diet-induced Obese C57BL/6J Mice](http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_2507725074)
2. [Playing through it: Delayed reporting and removal from athletic activity after concussion predicts prolonged recovery](http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_1790457076)
3. [Physical exercise in the prevention and treatment of Alzheimer's disease](http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_2433240112)
4. [Is Physical Exercise Beneficial for Persons with Parkinson?s Disease?](http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_19439155)`,answer:{moreQuestions:[],results:[{id:"proquest_miscellaneous_2507725074",deepLink:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_2507725074",title:"Combined Beneficial Effect of Voluntary Physical Exercise and Vitamin D Supplementation in Diet-induced Obese C57BL/6J Mice",description:"Purpose Physical exercise (PE) combined with nutritional approaches has beneficial effects that are widely advocated to improve metabolic health. Here we used voluntary PE together with vitamin D (VD) supplementation, which has already shown beneficial effects in primary and tertiary prevention in obese mice models, to study their combined additive effects on body weight management, glucose homeostasis, metabolic inflammation, and liver steatosis as key markers of metabolic health. Methods Ten-week-old male C57BL/6J mice were fed a high-fat/sucrose (HFS) diet for 10 wk, then assigned to a 15-wk intervention period with PE, VD supplementation, or both PE and VD supplementation. Morphological, histological, and molecular phenotype data were characterized. Results The HFS-induced increases in body mass, adiposity, and adipocyte hypertrophy were improved by PE but not by VD supplementation. The HFS-induced inflammation (highlighted by chemokines mRNA levels) in inguinal adipose tissue was decreased by PE and/or VD supplementation. Furthermore, the intervention combining PE and VD showed additive effects on restoring insulin sensitivity and improving hepatic steatosis, as demonstrated through a normalization of size and number of hepatic lipid droplets and triglyceride content and a significant molecular-level decrease in the expression of genes coding for key enzymes in hepatic de novo lipogenesis. Conclusions Taken together, our data show beneficial effects of combining PE and VD supplementation on obesity-associated comorbidities such as insulin resistance and hepatic disease in mice. This combined exercise-nutritional support strategy could prove valuable in obesity management programs.",score:39.64586},{id:"proquest_miscellaneous_1790457076",deepLink:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_1790457076",title:"Playing through it: Delayed reporting and removal from athletic activity after concussion predicts prolonged recovery",description:"Preclinical research has demonstrated a window of vulnerability in the immediate aftermath of concussion wherein continued activity and stimulation can impair or prolong neurobehavioral recovery. However, this concept has not been quantified in a human population.Context: To examine the effect of delayed reporting and removal from athletic activity after concussion on recovery time.Objective: Cross-sectional study.Design: A National Collegiate Athletic Association Division I university.Setting: Ninety-seven athletes who sustained a sport-related concussion between 2008 and 2015 were analyzed (age = 20.4 \uFFFD\uFFFD 1.3 years). Athletes were grouped as immediate removal from activity (I-RFA) or delayed removal from activity (D-RFA).Patients or Other Participants: Days missed was defined as the number of days between the concussion-causing event and clearance for return to contact. Associations between RFA group and prolonged (8 or more days') versus normal (7 or fewer days') recovery were also analyzed.Main Outcome Measure(s): Fifty (51.5%) of the 97 athletes did not immediately report concussion symptoms. The D-RFA athletes averaged 4.9 more days missed than the I-RFA athletes. Membership in the specific RFA group predicted days missed even after controlling for sex, concussion history, learning disability or attention-deficit/hyperactivity disorder diagnosis, diagnosed psychological disorder, and acute symptom severity (R 2 change = 0.097, \uFFFD\uFFFD = .319, P = .002). The D-RFA athletes were approximately 2.2 times more likely to have a prolonged recovery (8 or more days) compared with the I-RFA athletes (\uFFFD\uFFFD2 = 10.268, P = .001, \uFFFD\uFFFD = 0.325).Results: Athletes who do not immediately report symptoms of a concussion and continue to participate in athletic activity are at risk for longer recoveries than athletes who immediately report symptoms and are immediately removed from activity. Continuing to participate in athletic activity during the immediate aftermath of a concussion potentially exposes the already injured brain to compounded neuropathophysiologic processes.Conclusions:",score:36.868587},{id:"proquest_miscellaneous_2433240112",deepLink:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_2433240112",title:"Physical exercise in the prevention and treatment of Alzheimer's disease",description:" Low levels of physical activity are a risk factor associated with Alzheimer's disease. Older adults who exercise are more likely to maintain cognition. Exercise modulates amyloid \uFFFD\uFFFD turnover, inflammation, synthesis, and release of neurotrophins, and cerebral blood flow. Dementia is one of the greatest global challenges for health and social care in the 21st century. Alzheimer's disease (AD), the most common type of dementia, is by no means an inevitable consequence of growing old. Several lifestyle factors may increase, or reduce, an individual's risk of developing AD. Much has been written over\uFFFD\uFFFDthe ages about the benefits of exercise and physical activity. Among the risk factors associated with AD is a low level of physical activity. The relationship between physical and mental health was established several years ago. In this review, we discuss the role of exercise (aerobic and resistance) training as a therapeutic strategy for the treatment and prevention of AD. Older adults who exercise are more likely to maintain cognition. We address the main protective mechanism on brain function modulated by physical exercise by examining both human and animal studies. We will pay especial attention to the potential role of exercise in the modulation of amyloid \uFFFD\uFFFD turnover, inflammation, synthesis and release of neurotrophins, and improvements in cerebral blood flow. Promoting changes in lifestyle in presymptomatic and predementia disease stages may have the potential for delaying one-third of dementias worldwide. Multimodal interventions that include the adoption of an active lifestyle should be recommended for older populations.",score:35.97483},{id:"proquest_miscellaneous_19439155",deepLink:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_19439155",title:"Is Physical Exercise Beneficial for Persons with Parkinson's Disease?",description:"To review existing studies evaluating the effectiveness of physical exercise on mortality, strength, balance, mobility, and activities of daily living (ADL) for sufferers of Parkinson's disease (PD). The following databases were searched (1) Cochrane Database of Systematic Reviews, (2) Cumulative Index to Nursing and Allied Health Literature (CINAHL), (3) PubMed and (4) Medline/NARIC (National Rehabilitation Information Center) using combinations of key words Parkinson's disease and physical exercise. Only articles written in English were included. References cited were also examined. Studies were eligible if (1) only patients with PD were included in the intervention study (there were many studies that evaluated the benefits of exercise after stroke, cardiac arrest, sports injuries, surgery, and arthritis, but only a few for patients with PD), (2) the intervention included some form of physical or therapeutic exercise, (3) the effects of the physical exercise were evaluated, and (4) the studies were published in a refereed journal. Because few studies were found that dealt with PD patients exclusively, all studies that evaluated the effectiveness of physical exercise for only PD patients were included. Seven studies met our criteria and were selected. Three of the selected studies were randomized controlled studies, 1 was an open trial, and the other 3 relied on patients' own assessments. Outcomes in the studies were measured in terms of physical improvements in patients with PD, such as improved axial rotation, functional reach, flexibility, balance, muscle strength, short-step gait, and mobility. All studies reviewed show that exercise improves overall performance in PD patients. Improvements were measured using standardized tests and other measurement scales. The results of the present research synthesis support the hypothesis that patients with PD improve their physical performance and activities of daily living through exercise. Future studies should include the development of standardized exercise programs specific for problems associated with PD as well as standardized testing methods for measuring improvements in PD patients. There is also a need for longer term studies (over 1 year) to assess if improvements achieved during the intervention stage are retained long term.",score:35.60303},{id:"proquest_journals_2494054430",deepLink:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_journals_2494054430",title:"Effects of curcumin supplementation on sport and physical exercise: a systematic review",description:'Curcumin is the main phenolic compound in turmeric. It has been investigated recently due to its numerous medicinal properties and health benefits. However, few studies assessed the effects of curcumin supplementation on physical activity practice. Therefore, the purpose of this review is to assess the available evidences with human beings about the potential effects of curcumin supplementation on sport and physical exercise. This systematic review was conducted within the period from January to February, 2019, following the recommendations of the Preferred Reporting Items for Systematic Reviews and Meta-Analyzes (PRISMA) guidelines. The LILACS, Medline, SciELO and PubMed databases were used for the search, with no publication date limit. The following terms, with the respective Boolean operators, were searched: "curcumin" AND sports; "curcumin" AND exercise; curcumin AND "aerobic exercise"; "curcumin" AND "resistance exercise"; "curcumin" AND "endurance exercise"; "curcumin" AND "strength exercise". Eleven papers were selected for this review. Most of the studies displayed positive effects of the curcumin supplementation for athletes and physical exercise practitioners, and no side effects were reported. Participants supplemented with curcumin displayed reduced inflammation and oxidative stress, decreased pain and muscle damage, superior recovery and muscle performance, better psychological and physiological responses (thermal and cardiovascular) during training and improved gastrointestinal function. Curcumin supplementation appears to be safe and beneficial for sport and physical exercise in human beings. PROSPERO (CRD42019126763).',score:35.361366},{id:"proquest_miscellaneous_1797868274",deepLink:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_1797868274",title:"Intraocular pressure and glaucoma: Is physical exercise beneficial or a risk?",description:"AbstractIntraocular pressure may become elevated with muscle exertion, changes in body position and increased respiratory volumes, especially when Valsalva manoeuver mechanisms are involved. All of these factors may be present during physical exercise, especially if hydration levels are increased. This review examines the evidence for intraocular pressure changes during and after physical exercise. Intraocular pressure elevation may result in a reduction in ocular perfusion pressure with the associated possibility of mechanical and/or ischaemic damage to the optic nerve head. A key consideration is the possibility that, rather than being beneficial for patients who are susceptible to glaucomatous pathology, any intraocular pressure elevation could be detrimental. Lower intraocular pressure after exercise may result from its elevation causing accelerated aqueous outflow during exercise. Also examined is the possibility that people who have lower frailty are more likely to exercise as well as less likely to have or develop glaucoma. Consequently, lower prevalence of glaucoma would be expected among people who exercise. The evidence base for this topic is deficient and would be greatly improved by the availability of tonometry assessment during dynamic exercise, more studies which control for hydration levels, and methods for assessing the potential general health benefits of exercise against any possibility of exacerbated glaucomatous pathology for individual patients who are susceptible to such changes.",score:35.205303},{id:"proquest_miscellaneous_912920541",deepLink:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_912920541",title:"Antioxidant supplementation during exercise training: Beneficial or detrimental?",description:"High levels of reactive oxygen species (ROS) produced in skeletal muscle during exercise have been associated with muscle damage and impaired muscle function. Supporting endogenous defence systems with additional oral doses of antioxidants has received much attention as a noninvasive strategy to prevent or reduce oxidative stress, decrease muscle damage and improve exercise performance. Over 150 articles have been published on this topic, with almost all of these being small-scale, low-quality studies. The consistent finding is that antioxidant supplementation attenuates exercise-induced oxidative stress. However, any physiological implications of this have yet to be consistently demonstrated, with most studies reporting no effects on exercise- induced muscle damage and performance. Moreover, a growing body of evidence indicates detrimental effects of antioxidant supplementation on the health and performance benefits of exercise training. Indeed, although ROS are associated with harmful biological events, they are also essential to the development and optimal function of every cell. The aim of this review is to present and discuss 23 studies that have shown that antioxidant supplementation interferes with exercise training-induced adaptations. The main findings of these studies are that, in certain situations, loading the cell with high doses of antioxidants leads to a blunting of the positive effects of exercise training and interferes with important ROS-mediated physiological processes, such as vasodilation and insulin signalling. More research is needed to produce evidence-based guidelines regarding the use of antioxidant supplementation during exercise training. We recommend that an adequate intake of vitamins and minerals through a varied and balanced diet remains the best approach to maintain the optimal antioxidant status in exercising individuals.",score:35.12085},{id:"proquest_journals_229632460",deepLink:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_journals_229632460",title:"The functional effects of physical exercise training in frail older people : a systematic review",description:"This systematic review describes the effect of exercise training on physical performance in frail older people. Randomized controlled trials were identified from searches in PubMed, EMBASE and CENTRAL from January 1995 through August 2007. Two reviewers independently screened the trials for eligibility, rated their quality, and extracted data. Randomized controlled trials that examined the effects on performance-based measures of physical function among frail older adults were included. The systematic search identified 20 studies, examining 23 different exercise programmes. The methodological quality score (0-9) of the trials ranged from 2 to 7 points. Sixteen of the studies were scored as high quality. There was a large variety in the studies concerning sample size, degree of frailty, types of interventions and types of assessments. The majority of the programmes were facility-based, group-exercise programmes that were performed three times a week for 45-60 minutes. The intervention programmes comprised resistance training (n = 9), Tai Chi training (n = 2), or multi-component training (n = 12). Six of the total selected 20 studies did not find a beneficial exercise effect on functional performance. This systematic review suggests that older adults with different levels of abilities can improve their functional performance by regular exercise training. To determine the most appropriate design of the exercise programme (type, intensity, frequency and duration of exercise) for functional improvement or prevention of loss of function, more high-quality trials are needed in which different training protocols are compared.",score:35.112484},{id:"proquest_miscellaneous_2656200313",deepLink:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_2656200313",title:"Can Compression Garments Reduce the Deleterious Effects of Physical Exercise on Muscle Strength? A Systematic Review and Meta-Analyses",description:"The use of compression garments (CGs) during or after training and competition has gained popularity in the last few decades. However, the data concerning CGs' beneficial effects on muscle strength-related outcomes after physical exercise remain inconclusive. The aim was to determine whether wearing CGs during or after physical exercise would facilitate the recovery of muscle strength-related outcomes. A systematic literature search was conducted across five databases (PubMed, SPORTDiscus, Web of Science, Scopus, and EBSCOhost). Data from 19 randomized controlled trials (RCTs) including 350 healthy participants were extracted and meta-analytically computed. Weighted between-study standardized mean differences (SMDs) with respect to their standard errors (SEs) were aggregated and corrected for sample size to compute overall SMDs. The type of physical exercise, the body area and timing of CG application, and the time interval between the end of the exercise and subsequent testing were assessed. CGs produced no strength-sparing effects (SMD [95% confidence interval]) at the following time points (t) after physical exercise: immediately   t < 24: - 0.02 (- 0.22 to 0.19), p = 0.87; 24   t < 48 : - 0.00 (- 0.22 to 0.21), p = 0.98; 48   t < 72 : - 0.03 (- 0.43 to 0.37), p = 0.87; 72   t < 96 : 0.14 (- 0.21 to 0.49), p = 0.43; 96    t: 0.26 (- 0.33 to 0.85), p = 0.38. The body area where the CG was applied had no strength-sparing effects. CGs revealed weak strength-sparing effects after plyometric exercise. Meta-analytical evidence suggests that wearing a CG during or after training does not seem to facilitate the recovery of muscle strength following physical exercise. Practitioners, athletes, coaches, and trainers should reconsider the use of CG as a tool to reduce the effects of physical exercise on muscle strength. PROSPERO CRD42021246753.",score:35.035316},{id:"proquest_miscellaneous_2186621493",deepLink:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_2186621493",title:"The beneficial effects of physical exercise in the brain and related pathophysiological mechanisms in neurodegenerative diseases",description:"Growing evidence has shown the beneficial influence of exercise on humans. Apart from classic cardioprotection, numerous studies have demonstrated that different exercise regimes provide a substantial improvement in various brain functions. Although the underlying mechanism is yet to be determined, emerging evidence for neuroprotection has been established in both humans and experimental animals, with most of the valuable findings in the field of mental health, neurodegenerative diseases, and acquired brain injuries. This review will discuss the recent findings of how exercise could ameliorate brain function in neuropathological states, demonstrated by either clinical or laboratory animal studies. Simultaneously, state-of-the-art molecular mechanisms underlying the exercise-induced neuroprotective effects and comparison between different types of exercise will be discussed in detail. A majority of reports show that physical exercise is associated with enhanced cognition throughout different populations and remains as a fascinating area in scientific research because of its universal protective effects in different brain domain functions. This article is to review what we know about how physical exercise modulates the pathophysiological mechanisms of neurodegeneration.",score:34.911022}]}}],ZC=BR});var rg,YC=y(()=>{"use strict";rg={apiUrl:"http://cdi-researchassistant.preview.summon.serialssolutions.com/cda",deeplinkUrl:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id"}});var JC,XC,e_,t_=y(()=>{"use strict";JC="0.1.18",XC="2025-01-20T10:38:49.668Z",e_="4bdd128"});var gu,og=y(()=>{"use strict";Xe();F();te();gu=(()=>{let e=class e{constructor(n,r){this.translocoService=r,this.language="en",this.locSubscription=null,this.availableLanguages=this.translocoService.getAvailableLangs().map(o=>o.toString()),this.renderer2=n.createRenderer(null,null)}changeLanguage(n){this.language=n,this.locSubscription?.unsubscribe(),this.locSubscription=this.translocoService.load(n).pipe(We(1)).subscribe(()=>{n=="he"||n=="ar"||n=="fa"?this.renderer2.setAttribute(document.getElementsByTagName("html")[0],"dir","rtl"):this.renderer2.setAttribute(document.getElementsByTagName("html")[0],"dir","ltr"),this.translocoService.setActiveLang(n)})}};e.\u0275fac=function(r){return new(r||e)(M(si),M(Ke))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})()});var Se,Mt=y(()=>{"use strict";YC();t_();Xe();F();og();Se=(()=>{let e=class e{get showQuotum(){return this.config.showQuotum??!1}changeEnv(n){this.debug&&(this.config?.apiParams?this.config.apiParams.environment=n:this.config.apiParams={environment:n})}changeCache(n){this.debugCache=n}get features(){return this.featuresfromApi}get showSideNav(){return this.config.showSideNav??null}get currentConfig(){return this.config}get apiUrl(){return this.config.apiUrl??rg.apiUrl}get product(){return this.config.product}get apiParams(){return this.config.apiParams??{}}get language(){return this.languageService.language}constructor(n){this.languageService=n,this.apiParamsDebug=["environment"],this.featuresfromApi=[],this.featuresFromUrl="",this.debugCache="false",this.debug=!1,this.researchHistoryDays=7,this.onConfigChange$=new Xt(1),this.config={isStandalone:!0,apiUrl:rg.apiUrl,height:"100vh",language:n.language,libraryName:"",product:"standalone",showBeta:!0,showSideNav:null,showToast:!0,showQuotum:!1,showAdvanced:!0,streamAnswer:!1,researchHistoryDays:this.researchHistoryDays}}setConfig(n){this.config=b(b({},this.config),n),this.languageService.changeLanguage(this.config.language),this.onConfigChange$.next(this.config)}setStreaming(n){this.config.streamAnswer=n}toggleSideNav(n){this.config&&(this.config.showSideNav=n)}getVersion(){return`Version ${JC}, commit ${e_}, built at ${XC}`}setDebug(n){if(this.debug=n,n&&this.changeCache("false"),!n)for(let r of this.apiParamsDebug)this.config.apiParams&&this.config.apiParams[r]&&delete this.config.apiParams[r]}setFeatures(n){this.featuresfromApi=n,this.setFeaturesFromString(this.featuresFromUrl)}setFeatureFromString(n){this.featuresFromUrl=n,this.setFeaturesFromString(n)}setFeaturesFromString(n){n&&n.includes(":")&&n.split(",").forEach(r=>{let o=r.split(":"),s=this.featuresfromApi.find(a=>a.key===o[0]);s&&(s.value=o[1])})}};e.\u0275fac=function(r){return new(r||e)(M(gu))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})()});var i_,r_=y(()=>{"use strict";F();i_=new L("WindowToken",typeof window<"u"&&window.document?{providedIn:"root",factory:()=>window}:{providedIn:"root",factory:()=>{}})});var jo,o_,wa=y(()=>{"use strict";le();F();r_();Xe();jo=(()=>{class t{constructor(i,n,r){this.ngZone=i,this.document=n,this.window=r,this.copySubject=new ge,this.copyResponse$=this.copySubject.asObservable(),this.config={}}configure(i){this.config=i}copy(i){if(!this.isSupported||!i)return this.pushCopyResponse({isSuccess:!1,content:i});let n=this.copyFromContent(i);return n?this.pushCopyResponse({content:i,isSuccess:n}):this.pushCopyResponse({isSuccess:!1,content:i})}get isSupported(){return!!this.document.queryCommandSupported&&!!this.document.queryCommandSupported("copy")&&!!this.window}isTargetValid(i){if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement){if(i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');return!0}throw new Error("Target should be input or textarea")}copyFromInputElement(i,n=!0){try{this.selectTarget(i);let r=this.copyText();return this.clearSelection(n?i:void 0,this.window),r&&this.isCopySuccessInIE11()}catch{return!1}}isCopySuccessInIE11(){let i=this.window.clipboardData;return!(i&&i.getData&&!i.getData("Text"))}copyFromContent(i,n=this.document.body){if(this.tempTextArea&&!n.contains(this.tempTextArea)&&this.destroy(this.tempTextArea.parentElement||void 0),!this.tempTextArea){this.tempTextArea=this.createTempTextArea(this.document,this.window);try{n.appendChild(this.tempTextArea)}catch{throw new Error("Container should be a Dom element")}}this.tempTextArea.value=i;let r=this.copyFromInputElement(this.tempTextArea,!1);return this.config.cleanUpAfterCopy&&this.destroy(this.tempTextArea.parentElement||void 0),r}destroy(i=this.document.body){this.tempTextArea&&(i.removeChild(this.tempTextArea),this.tempTextArea=void 0)}selectTarget(i){return i.select(),i.setSelectionRange(0,i.value.length),i.value.length}copyText(){return this.document.execCommand("copy")}clearSelection(i,n){i&&i.focus(),n.getSelection()?.removeAllRanges()}createTempTextArea(i,n){let r=i.documentElement.getAttribute("dir")==="rtl",o;o=i.createElement("textarea"),o.style.fontSize="12pt",o.style.border="0",o.style.padding="0",o.style.margin="0",o.style.position="absolute",o.style[r?"right":"left"]="-9999px";let s=n.pageYOffset||i.documentElement.scrollTop;return o.style.top=s+"px",o.setAttribute("readonly",""),o}pushCopyResponse(i){this.copySubject.observers.length>0&&this.ngZone.run(()=>{this.copySubject.next(i)})}pushCopyReponse(i){this.pushCopyResponse(i)}}return t.\u0275fac=function(i){return new(i||t)(M(De),M($e),M(i_,8))},t.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),o_=(()=>{class t{}return t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=kt({imports:[ve]}),t})()});var Qn,$o=y(()=>{"use strict";F();Xe();F();Xs();Mt();wa();te();Qn=(()=>{let e=class e{constructor(n,r,o,s){this.toastr=n,this.config=r,this.clipboard=o,this.translocoService=s,this.toastSource$=new ge,this.appEventSource$=new ge,this.onToast$=this.toastSource$.asObservable().pipe(Si(1)),this.appEvents$=this.appEventSource$.asObservable().pipe(Si(1)),this.clipboard.copyResponse$.subscribe(a=>{a.isSuccess&&this.toast({type:"info",title:this.translocoService.translate("action.copytitle"),message:a.successMessage??"Success",options:{}})})}toast(n){this.config.currentConfig?.showToast?this.toastr[n.type](n.message,n.title,b({},n.options)):this.toastSource$.next(n)}log(n,r={},o="info"){Pc()&&console[o](n,r)}emitAppEvent(n){this.appEventSource$.next(n)}};e.\u0275fac=function(r){return new(r||e)(M(Io),M(Se),M(jo),M(Ke))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})()});var Wi,Ca=y(()=>{"use strict";F();Wi=(()=>{let e=class e{get clientKey(){return this.user.clientKey}get userId(){return this.user.userId}get user(){return this._user}get quotum(){return this._user.quotum??-1}set quotum(n){this._user.quotum=n}constructor(){this.setUser({id:"default",quotum:-1,quotumMax:-1})}setUser(n){let r={id:"default",clientKey:"exl.PRIMO_RA.PPRD",userId:new Date().getFullYear()+new Date().getDay()+"-uitest",quotum:-1,quotumMax:-1};this._user=b(b({},r),n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})()});var Ne,jt=y(()=>{"use strict";F();Xe();Eo();KC();mu();F();Eo();Zt();Mt();$o();te();Ca();Ne=(()=>{let e=class e{get currentResearchSessionId(){return this.currentResearchSession?.id??"session-not-initialized"}get clientKey(){return this.user.clientKey}get userId(){return this.user.userId}get isDebug(){return this.config.debug??!1}get user(){return this.userService.user}get researchSession(){return this.currentResearchSession}get qandas(){return this.currentResearchSession?.qandas||[]}get onSessionChanged(){return this.currentResearchSession$.asObservable()}onLoadingChanged(){return this.isLoading$.asObservable()}constructor(n,r,o,s,a,l,c){this.http=n,this.router=r,this.config=o,this.message=s,this.appRef=a,this.translocoService=l,this.userService=c,this.currentResearchSession$=new ke(void 0),this.debugInfo=[],this.errorStatusTypes=new Map,this.knownAnswers=["aG93IG1hbnkgcm9hZHMgbXVzdCBhIG1hbiB3YWxrIGRvd24=","dWx0aW1hdGUgcXVlc3Rpb24gb2YgbGlmZQ==","bWVhbmluZyBvZiBsaWZl","dWx0aW1hdGUgYW5zd2Vy"].map(u=>new RegExp(atob(u),"i")),this.isLoading$=new ke(!1),this.currentQandA=Ls(void 0),this.currentAdvancedOptions=Ap(()=>this.currentQandA()?.answer?.advanced),this.currentQandA$=Gm(this.currentQandA),this.currentQuestion$=new ke({question:"",regenerate:!1}),this.initialized=!1,l.selectTranslate("research.status.answering").subscribe(()=>{this.initialized||this.initializeUser(),this.initializeStatusMessages()})}initializeUser(){this.startNewResearchSession(),this.initialized=!0;let n="";this.config.currentConfig?.isStandalone&&(n=`user=${this.user.userId}&pckey=${this.user.clientKey}`),this.config.debug&&(n!=""&&(n+="&"),n+="debug=true"),this.http.post(`${this.config.apiUrl}/init?${n}`,{}).subscribe({next:r=>{r.features&&(r.features.forEach(o=>{o.change=s=>{console.log("Feature changed",o.key,s)}}),this.config.setFeatures(r.features)),this.user.quotumMax=r.maxRemaining,this.user.quotum=r.remaining,r.researchSessions?.length>0&&(this.researchHistory.researchSessions=[...this.researchHistory.researchSessions,...r.researchSessions.map(o=>z(b({},o),{qandas:[]}))])},error:r=>{console.error(r)}})}mockChats(n=ZC){for(let r of n)r.id=this.getId(r.question,"mock"),this.qandas.push(r)}getAnswerStream(n,r){return mt(this,null,function*(){this.isLoading$.next(!0),this.researchHistory.researchSessions.length===0&&this.startNewResearchSession(),(this.router?.url?.indexOf("research")===-1||this.router?.url?.indexOf("research/new")>-1)&&(yield this.routeIfNeeded("/research"));let o={id:this.getId(n,"user"),question:n,answer:{answer$:new ke(""),advanced:r??void 0}};this.qandas.push(o),this.cancelOngoingRequests(),this.evtSource&&(this.evtSource.close(),this.appRef.tick()),this.registerStatus(o,"searching");let s="";if(this.config.currentConfig?.showAdvanced&&r)for(let[a,l]of Object.entries(r))typeof l<"u"&&l!==null&&(s+=`&${a}=${encodeURIComponent(l)}`);this.evtSource=new EventSource(`${this.config.apiUrl}/answer-stream?query=${n}&user=${this.userId}&pckey=${this.clientKey}&ui_language=${this.translocoService.getActiveLang()}${s}`),this.evtSource.onerror=a=>{o.error=!0,console.error(a),this.evtSource.close(),this.handleError(o,a),this.appRef.tick()},this.currentResearchSession.qandas.push(o),this.evtSource.onmessage=a=>{let l=JSON.parse(a.data);if(a===null){console.log("EMPTY!");return}else l.results?(o.answer&&(o.answer.results=l.results),this.registerStatus(o,"answering")):l.error?o.error=!0:l.status==="summary"?(this.runningAnswer="",o.answer=this.pick(l.summary,"id","createdAt","language","moreQuestions","advanced","improvedQuery","improvedQuerySearch","message","results","feedback","answer"),o.answer&&(o.answer.feedback={id:"tempAnswer"+this.currentResearchSession.qandas.findIndex(c=>c.id===o.id),type:"answer"}),o.answer?.results?.map(c=>c.feedback=c.feedback?c.feedback:{id:`${l.id}-${c.id}`,query:n,type:"record"}),this.finalizeGetAnswer(o,l.remaining),this.evtSource.close(),o.answer?.answer$?.complete()):l.status==="answer"&&(l.answer===""&&(l.answer=`

`),this.runningAnswer=this.runningAnswer?this.runningAnswer.concat(l.answer):l.answer,o.answer&&(o.answer.answer=this.runningAnswer?.slice()),o.answer?.answer$?.next(l.answer));this.appRef.tick()}})}setAnswer(n,r=!1){this.currentQuestion$.next({question:n,regenerate:r})}getAnswer(n,r,o=!1,s=5){return mt(this,null,function*(){this.cancelOngoingRequests();let a=null;return o&&(a=this.qandas.findLast(l=>l.question===n)),this.config.currentConfig.streamAnswer?(this.getAnswerStream(n,r),Promise.resolve(new He)):this.getAnswerNonStreaming(n,r,a,s)})}getAnswerNonStreaming(n,r,o=null,s=5){return mt(this,null,function*(){this.message.emitAppEvent({event:"qanda",status:"requesting",value:n}),this.isLoading$.next(!0),this.researchHistory?.researchSessions?.length===0&&this.startNewResearchSession(),yield this.routeIfNeeded("/research");let a={id:this.getId(n+new Date,"user"),question:n,answer:{advanced:r??void 0}};o&&this.registerStatus(a,"regenerating"),this.registerStatus(a,"searching"),this.qandas.push(a);let l=!o,c=G({}).pipe(Ei(600),q(()=>{this.registerStatus(a,"answering")})),u="";this.config.currentConfig?.isStandalone&&(u=`&user=${this.userId}&pckey=${this.clientKey}`),this.config.debug?(u+="&debug="+(this.createDebugString()??"true"),u+=`&cache=${this.config.debugCache}`):u+=`&cache=${l}`;let d="";if(this.config.currentConfig?.showAdvanced&&r)for(let[D,S]of Object.entries(r))typeof S<"u"&&S!==null&&(d+=`&${D}=${encodeURIComponent(S)}`);let m=`${this.config.apiUrl}/answer?query=${encodeURIComponent(n)}${d}&resultcount=${s}&ui_language=${this.translocoService.getActiveLang()}${u}`,g=this.http.get(m).pipe(us({count:5,delay:D=>{if(D.status===504)return console.log("retrying due to 504"),sr(1e3);throw D}}),q(D=>D),Si()),w=kn([c,g]).pipe(q(D=>D[1]));return this.apiCall=w.subscribe({next:D=>{if(this.message.emitAppEvent({event:"qanda",status:"ready",value:n}),this.optUpdateResearchsessionTopic(n),D.answer){if(this.currentResearchSession.qandas=this.currentResearchSession.qandas.map(S=>{if(S.id===a.id){a=z(b({},a),{answer:this.pick(D,"id","createdAt","advanced","answer","language","moreQuestions","improvedQuery","improvedQuerySearch","message","results","feedback","context")});let O="https://sqa02-na04.alma.exlibrisgroup.com/discovery/search?search_scope=MyInst_and_CI&vid=EXLDEV1_INST:Alma&query=any,contains,"+encodeURIComponent(a.answer?.improvedQuery??"");if(a.answer)if(!a.answer?.improvedQuerySearch)a.answer.improvedQuerySearch=O;else{let K=new URL(a.answer.improvedQuerySearch,window.location.origin);a.answer.improvedQuerySearch=K.toString()}return a.answer?.context?.map(K=>K.message=this.translateContext(K,{improvedQuerySearch:a.answer?.improvedQuerySearch??""})),a.answer&&(a.answer.feedback=D.feedback?D.feedback:{id:D.id,type:"answer",query:n},a.answer.results?.map(K=>K.feedback=K.feedback?K.feedback:{id:`${D.id}-${K.id}`,query:n,type:"record"})),a}else return S}),this.currentResearchSession.count=this.currentResearchSession.qandas.filter(S=>S.answer?.answer).length,this.researchHistory.researchSessions.forEach(S=>{S.id===this.currentResearchSession.id&&(S.count=this.currentResearchSession.count)}),!this.config.currentConfig?.isStandalone){let S=b({sessionId:this.currentResearchSession.id,topic:this.currentResearchSession.topic},this.pick(a,"answer","question"));this.http.post(`${this.config.apiUrl}/saveQuestion`,S).subscribe({error:O=>{console.error(O,a.id)}})}this.config.debug&&(D.logs?this.debugInfo=[D.originalRequest??"",...D.logs]:this.debugInfo=[D.originalRequest??"","no logs found"])}return this.finalizeGetAnswer(a,D.remaining??0),a},error:D=>{this.config.debug&&(D.error.logs?this.debugInfo=[m,D.error.error,...D.error.logs]:this.debugInfo=[m,D.error.error,"no logs found"]),this.handleError(a,D)}}),this.apiCall})}handleError(n,r,o=n.question){this.finalizeGetAnswer(n),r instanceof Ui?r.status===429?(this.registerStatus(n,"quotalimit",r.message),this.message.emitAppEvent({event:"qanda",status:"error",error:"quotalimit",value:o})):r.status===422?(this.registerStatus(n,"unsupported",r.message),this.message.emitAppEvent({event:"qanda",status:"error",error:"unsupported",value:o})):r.status===404?(this.registerStatus(n,"noresults"),this.message.emitAppEvent({event:"qanda",status:"error",error:"noresults",value:o})):r.status===401?(this.registerStatus(n,"unauthorized","To use the assistant, please log in."),this.message.emitAppEvent({event:"qanda",status:"error",error:"unauthorized",value:o})):(this.registerStatus(n,"error",r.message),this.message.emitAppEvent({event:"qanda",status:"error",error:(r.status??"unknown http status")+" - "+r.message,value:o})):(this.registerStatus(n,"error","unknown error"),this.message.emitAppEvent({event:"qanda",status:"error",error:"unknown error",value:o}))}createDebugString(){let r=this.config.features.map(o=>o.value!==o.defaultValue?`${o.key}:${o.value}`:null).filter(o=>o).join(",");return r===""?null:r}finalizeGetAnswer(n,r){this.isLoading$.next(!1),this.currentQandA.set(n),typeof r<"u"&&(this.userService.quotum=r),n&&(n.regenerating=!1,this.optUpdateResearchsessionTopic(n.question),this.visitNewQandA(n))}visitNewQandA(n){this.knownAnswers.find(o=>o.test(n.question))&&(this.message.toast({message:"Psst... don't mind my AI colleague here, the answer is actually just '42'!",title:"The Ultimate Answer",options:{},type:"info"}),this.knownAnswers=[])}routeIfNeeded(n,r){return mt(this,null,function*(){this.router.config.length>0&&(yield this.router.navigate([n],{queryParams:r}))})}createSession(){return{id:this.getId(`${this.user.clientKey}-${this.user.userId}-${new Date().toISOString()}`,"session"),topic:"",qandas:[],count:0,creationDate:new Date().toISOString()}}startNewResearchSession(){this.finalizeGetAnswer(),this.researchHistory||(this.currentResearchSession=this.createSession(),this.currentResearchSession$.next(this.currentResearchSession),this.researchHistory={id:"",researchSessions:[this.currentResearchSession]}),this.currentResearchSession.qandas.length>0&&(this.currentResearchSession=this.createSession(),this.currentResearchSession$.next(this.currentResearchSession),this.researchHistory.researchSessions.push(this.currentResearchSession),this.message.emitAppEvent({event:"session",status:"ready",value:"new"}))}removeHistoryEntry(n){return mt(this,null,function*(){this.cancelOngoingRequests(),this.message.emitAppEvent({event:"session",status:"requesting",value:"remove"});let r=o=>mt(this,null,function*(){this.researchHistory.researchSessions=this.researchHistory.researchSessions.filter(s=>o.id!==s.id),this.startNewResearchSession(),yield this.routeIfNeeded("/research/new")});return this.http.delete(`${this.config.apiUrl}/session/${n.id}`).subscribe({next:()=>mt(this,null,function*(){this.message.emitAppEvent({event:"session",status:"ready",value:"remove"}),r(n)}),error:o=>{r(n),this.message.emitAppEvent({event:"session",status:"error",value:"remove"}),console.error(o)}})})}generateTopicName(n){let r=n.qandas.map(o=>o.question);this.http.post(`${this.config.apiUrl}/session-topic`,r).subscribe({next:o=>{this.message.emitAppEvent({event:"session",status:"ready",value:"topic"}),n.topic=o.topic},error:o=>{console.error(o),this.message.emitAppEvent({event:"session",status:"error",value:"topic"})}})}loadHistoryEntry(n){return mt(this,null,function*(){let r=this.researchHistory.researchSessions.find(o=>n.id===o.id);this.message.emitAppEvent({event:"session",status:"requesting",value:"load"}),this.cancelOngoingRequests(),r&&(this.currentResearchSession=r,this.currentResearchSession$.next(this.currentResearchSession),this.http.get(`${this.config.apiUrl}/session/${n.id}`).subscribe({next:o=>{let s=this.createSession();o.qandas&&(this.currentResearchSession=b(b({},s),o),this.currentResearchSession$.next(this.currentResearchSession)),this.message.emitAppEvent({event:"session",status:"ready",value:"load"})},error:o=>{console.error(o),this.message.emitAppEvent({event:"session",status:"error",value:"load"})}})),yield this.routeIfNeeded("/research")})}removeFeedback(n){return n.reaction="",n.comment="",n.reasons=[],this.message.emitAppEvent({event:"feedback",status:"requesting",value:"remove"}),this.http.delete(`${this.config.apiUrl}/feedback?id=${n.id}`).subscribe({next:()=>{this.message.emitAppEvent({event:"feedback",status:"ready",value:"remove"}),this.message.toast({message:this.translocoService.translate("feedback.removed.success"),title:this.translocoService.translate("feedback.removed.success.title"),options:{},type:"info"})},error:r=>{console.error(r),this.message.emitAppEvent({event:"feedback",status:"error",error:r.message??"unknown",value:"remove"}),this.message.toast({message:this.translocoService.translate("feedback.removed.error"),title:this.translocoService.translate("feedback.removed.error.title"),options:{},type:"error"})}})}sendFeedback(n){return n.userId=this.userId,n.clientKey=this.clientKey,this.message.emitAppEvent({event:"feedback",status:"requesting"}),this.http.post(`${this.config.apiUrl}/feedback`,n).subscribe({next:r=>{this.currentResearchSession.qandas=this.currentResearchSession.qandas.map(o=>(o.id===r.id&&(o=z(b({},o),{answer:this.pick(r,"id","createdAt","answer","advanced","moreQuestions","improvedQuery","improvedQuerySearch","results","feedback")}),o.answer&&(o.answer.feedback=r.feedback?r.feedback:{id:r.id,type:"answer"},o.answer.results?.map(s=>{s.feedback=s.feedback?s.feedback:{id:`${r.id}-${s.id}`,query:r.query,type:"record"}}))),o)),this.message.emitAppEvent({event:"feedback",status:"ready"}),this.message.toast({message:this.translocoService.translate("feedback.submitted.success"),title:this.translocoService.translate("feedback.submitted.success.title"),options:{},type:"info"})},error:()=>{this.message.emitAppEvent({event:"feedback",status:"error",value:"Error sending feedback"}),this.message.toast({message:this.translocoService.translate("feedback.submitted.error"),title:this.translocoService.translate("feedback.submitted.error.title"),options:{},type:"error"})}})}close(){this.evtSource&&this.evtSource.close()}getLastQuestion(){if(this.qandas.length){let n=this.qandas[this.qandas.length-1];if(n)return n.question}return""}cancelOngoingRequests(){this.apiCall?.unsubscribe(),this.isLoading$.next(!1),this.evtSource?.close();let n=this.qandas.find(r=>r.question&&!r.answer?.answer);n&&(this.currentResearchSession.qandas=this.currentResearchSession.qandas.filter(r=>r.id!==n.id))}registerStatus(n,r,o=""){let s={type:r,text:`research.status.${r}`,error:this.errorStatusTypes.get(r)??!1,info:o};n.statusMessages||(n.statusMessages=[]),n.statusMessages.push(s),n.error=s.error}cyrb53(n,r=0){let o=3735928559^r,s=1103547991^r;for(let a=0,l;a<n.length;a++)l=n.charCodeAt(a),o=Math.imul(o^l,2654435761),s=Math.imul(s^l,1597334677);return o=Math.imul(o^o>>>16,2246822507),o^=Math.imul(s^s>>>13,3266489909),s=Math.imul(s^s>>>16,2246822507),s^=Math.imul(o^o>>>13,3266489909),4294967296*(2097151&s)+(o>>>0)}getId(n,r){return`${r}-${this.cyrb53(n)}`}pick(n,...r){return Object.fromEntries(r.filter(o=>o in n).map(o=>[o,n[o]]))}optUpdateResearchsessionTopic(n){this.currentResearchSession.topic===""&&(this.currentResearchSession.topic=n)}initializeStatusMessages(){this.errorStatusTypes.clear(),this.errorStatusTypes.set("error",!0),this.errorStatusTypes.set("noresults",!0),this.errorStatusTypes.set("quotalimit",!0),this.errorStatusTypes.set("unsupported",!0)}translateContext(n,r){let o=`answer.context.message.${n.type.toLocaleLowerCase()}`,s;if(n.values||r){let a={};if(n.values)for(let l=0;l<n.values.length;l++)a[`value${l}`]=n.values[l];r&&(a=b(b({},a),r)),s=this.translocoService.translate(o,a)}else s=this.translocoService.translate(o);return s&&s!==o?n.type.toLocaleLowerCase()==="info"||n.type.toLocaleLowerCase()==="debug"?`${s} ${n.message}`:s:n.message}};e.\u0275fac=function(r){return new(r||e)(M(Ws),M(Sn),M(Se),M(Qn),M(Qt),M(Ke),M(Wi))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})()});var Be,sn=y(()=>{"use strict";Xe();Zt();F();Ca();Zt();jt();Be=(()=>{let e=class e{onEvent(){return this.statistics.asObservable()}constructor(n,r,o){this.user=n,this.router=r,this.research=o,this.statistics=new Xt}initialize(){this.trackNavigation().subscribe(n=>{this.pageView(n.url)})}trackNavigation(){return this.router.events.pipe(dt(n=>n instanceof pn),q(n=>({url:n.urlAfterRedirects})),Ei(0))}pageView(n,r="url"){return this.sendEvent({action:"pageView",category:"navigation",label:r,value:n,question:this.research?.qandas[this.research?.qandas?.length-1]?.question??null})}sendEvent(n,r=new Date){n.date=r,n.session=this.research.currentResearchSessionId,this.statistics.next(n)}search(n,r="inputbox"){this.sendEvent({action:r,category:"search",label:"question",value:n,question:n})}};e.\u0275fac=function(r){return new(r||e)(M(Wi),M(Sn),M(Ne))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})()});function qR(t,e){if(t&1&&(f(0,"span",4),C(1),p()),t&2){let i=v().$implicit,n=v(2);h(),me("(",i("research.session.xquestions",Ee(1,HR,n.session.count)),")")}}function zR(t,e){if(t&1){let i=Z();f(0,"div",0)(1,"button",2),k("click",function(){j(i);let r=v(2);return $(r.loadHistoryEntry(r.session))}),f(2,"span",3),C(3),p(),I(4,qR,2,3,"span",4),p(),f(5,"button",5),k("click",function(){j(i);let r=v(2);return $(r.removeHistoryEntry(r.session))}),fe(),f(6,"svg",6),E(7,"path",7),p()()()}if(t&2){let i=e.$implicit,n=v(2);x("ngClass",St(5,UR,n.session.id===n.currentResearchSession.id,n.session.id!==n.currentResearchSession.id)),U("title",n.session.niceDate),h(3),me(" ",n.session.topic===""?i("research.session.newsession"):n.session.topic," "),h(),P(4,n.session.count>1?4:-1),h(),U("aria-label",i("research.session.delete"))}}function GR(t,e){t&1&&I(0,zR,8,8,"div",1)}var UR,HR,s_,a_=y(()=>{"use strict";le();te();F();jt();sn();le();UR=(t,e)=>({"gradient-border":t,"border-neutral-200 hover:border-neutral-400 text-neutral-700":e}),HR=t=>({count:t});s_=(()=>{let e=class e{get currentResearchSession(){return this.research.researchSession}constructor(n,r){this.research=n,this.stats=r}ngOnInit(){this.session.niceDate=new Date(this.session.creationDate).toLocaleString()}removeHistoryEntry(n){this.stats.sendEvent({category:"session",action:"remove",label:"sessionid",value:n.id}),this.research.removeHistoryEntry(n)}loadHistoryEntry(n){this.stats.sendEvent({category:"session",action:"load",label:"sessionid",value:n.id}),this.research.loadHistoryEntry(n)}changeName(n){this.stats.sendEvent({category:"session",action:"rename",label:"sessionid",value:n.id}),this.research.generateTopicName(n)}};e.\u0275fac=function(r){return new(r||e)(_(Ne),_(Be))},e.\u0275cmp=V({type:e,selectors:[["app-research-session"]],inputs:{session:"session"},standalone:!0,features:[B],decls:1,vars:1,consts:[[1,"-mt-2","group/rhb","flex","border-2","items-center","justify-between","rounded-[0.575rem]","p-2","bg-white","text-sm","font-thin","hover:border-cdra-green-main","focus:border-cdra-green-main",3,"ngClass"],["class","-mt-2 group/rhb flex border-2 items-center justify-between rounded-[0.575rem] p-2 bg-white text-sm font-thin hover:border-cdra-green-main focus:border-cdra-green-main",3,"ngClass",4,"transloco"],[1,"t-research-history-entry","text-start","font-normal","leading-5",3,"click"],[1,"line-clamp-3"],[1,"font-bold","text-[#666666]"],[1,"t-research-history-entry-remove","right-0","transition-opacity","duration-200","lg:opacity-0","group-hover/rhb:opacity-100","group-focus-within/rhb:opacity-100",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6 19C6 20.1 6.9 21 8 21H16C17.1 21 18 20.1 18 19V7H6V19ZM19 4H15.5L14.5 3H9.5L8.5 4H5V6H19V4Z","fill","#595959"]],template:function(r,o){r&1&&I(0,GR,1,0,"div",0),r&2&&P(0,o.session.count>0?0:-1)},dependencies:[ee,ve,it]});let t=e;return t})()});function ZR(t,e){if(t&1&&E(0,"app-research-session",5),t&2){let i=e.$implicit;x("session",i)}}function KR(t,e){if(t&1&&(f(0,"h3",4),C(1),p(),Fe(2,ZR,1,1,"app-research-session",5,ag)),t&2){let i=v(2).$implicit,n=v();h(),A(i("researchhistory.today")),h(),Pe(n.researchHistory.today)}}function YR(t,e){if(t&1&&E(0,"app-research-session",5),t&2){let i=e.$implicit;x("session",i)}}function JR(t,e){if(t&1&&(f(0,"h3",4),C(1),p(),Fe(2,YR,1,1,"app-research-session",5,ag)),t&2){let i=v(2).$implicit,n=v();h(),A(i("researchhistory.lastxdays",Ee(1,QR,n.days))),h(),Pe(n.researchHistory.lastxdays)}}function XR(t,e){if(t&1&&E(0,"app-research-session",5),t&2){let i=e.$implicit;x("session",i)}}function eO(t,e){if(t&1&&(f(0,"h3",4),C(1),p(),Fe(2,XR,1,1,"app-research-session",5,ag)),t&2){let i=e.$implicit;h(),A(i.year),h(),Pe(i.sessions)}}function tO(t,e){if(t&1&&Fe(0,eO,4,1,null,null,WR),t&2){let i=v(3);Pe(i.researchHistory.older)}}function nO(t,e){if(t&1&&I(0,KR,4,1)(1,JR,4,3)(2,tO,2,0),t&2){let i=v(2);P(0,i.researchHistory.today.length>0?0:-1),h(),P(1,i.researchHistory.lastxdays.length>0?1:-1),h(),P(2,i.hasOlderSessions?2:-1)}}function iO(t,e){if(t&1&&(f(0,"div",6),C(1),p()),t&2){let i=v().$implicit;h(),A(i("researchhistory.empty"))}}function rO(t,e){if(t&1&&(f(0,"div",1)(1,"h2",2),C(2),p(),f(3,"div",3),I(4,nO,3,3)(5,iO,2,1),p()()),t&2){let i=e.$implicit,n=v();h(2),A(i("researchhistory.title")),h(2),P(4,n.shouldShowSessions?4:5)}}var ag,WR,QR,l_,c_=y(()=>{"use strict";le();te();a_();F();jt();Mt();ag=(t,e)=>e.id,WR=(t,e)=>e.year,QR=t=>({days:t});l_=(()=>{let e=class e{get days(){return this.config.currentConfig.researchHistoryDays}get shouldShowSessions(){return this.research.researchHistory.researchSessions.length>0&&this.research.researchHistory.researchSessions.find(n=>n.count>0)}get hasOlderSessions(){return this.researchHistory.older&&Object.keys(this.researchHistory.older).length>0}today(n){let r=new Date;r.setHours(0,0,0,0);let o=n.filter(s=>new Date(s.creationDate)>r&&s.count>0);return o.sort((s,a)=>new Date(a.creationDate).getTime()-new Date(s.creationDate).getTime()),o}lastXDays(n,r){let o=new Date;o.setHours(0,0,0,0);let s=new Date(Date.now()-n*24*60*60*1e3);s.setHours(0,0,0,0);let a=r.filter(l=>new Date(l.creationDate)>s&&new Date(l.creationDate)<o&&l.count>0);return a.sort((l,c)=>new Date(c.creationDate).getTime()-new Date(l.creationDate).getTime()),a}get researchHistory(){let n=new Date(Date.now()-this.days*24*60*60*1e3);n.setHours(0,0,0,0);let r=this.research.researchHistory.researchSessions.filter(s=>new Date(s.creationDate)<n&&s.count>0),o={};return r.forEach(s=>{let a=new Date(s.creationDate).getFullYear();o[a]||(o[a]=[]),o[a].push(s)}),{today:this.today(this.research.researchHistory.researchSessions),lastxdays:this.lastXDays(this.days,this.research.researchHistory.researchSessions),older:Object.entries(o).map(([s,a])=>({year:+s,sessions:a})).sort((s,a)=>a.year-s.year)}}get currentResearchSession(){return this.research.researchSession}constructor(n,r){this.research=n,this.config=r}};e.\u0275fac=function(r){return new(r||e)(_(Ne),_(Se))},e.\u0275cmp=V({type:e,selectors:[["app-research-history"]],standalone:!0,features:[B],decls:1,vars:0,consts:[["class","my-2 pe-1",4,"transloco"],[1,"my-2","pe-1"],[1,"text-xl","font-bold","text-black"],[1,"flex","gap-3","flex-col"],[1,"me-1","text-gray-500","pt-2","text-sm"],[3,"session"],[1,"t-research-history-empty","text-black","mt-2"]],template:function(r,o){r&1&&I(0,rO,6,2,"div",0)},dependencies:[ve,ee,s_]});let t=e;return t})()});function aO(){let t=gi()?gi().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}function Qi(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function b_(t){return t!=null&&typeof t.length=="number"}function uO(t){return e=>{if(Qi(e.value)||Qi(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i<t?{min:{min:t,actual:e.value}}:null}}function dO(t){return e=>{if(Qi(e.value)||Qi(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}function C_(t){return Qi(t.value)?{required:!0}:null}function fO(t){return t.value===!0?null:{required:!0}}function hO(t){return Qi(t.value)||cO.test(t.value)?null:{email:!0}}function pO(t){return e=>Qi(e.value)||!b_(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}function mO(t){return e=>b_(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function gO(t){if(!t)return wu;let e,i;return typeof t=="string"?(i="",t.charAt(0)!=="^"&&(i+="^"),i+=t,t.charAt(t.length-1)!=="$"&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),n=>{if(Qi(n.value))return null;let r=n.value;return e.test(r)?null:{pattern:{requiredPattern:i,actualValue:r}}}}function wu(t){return null}function __(t){return t!=null}function D_(t){return Fi(t)?_e(t):t}function E_(t){let e={};return t.forEach(i=>{e=i!=null?b(b({},e),i):e}),Object.keys(e).length===0?null:e}function x_(t,e){return e.map(i=>i(t))}function vO(t){return!t.validate}function S_(t){return t.map(e=>vO(e)?e:i=>e.validate(i))}function I_(t){if(!t)return null;let e=t.filter(__);return e.length==0?null:function(i){return E_(x_(i,e))}}function T_(t){return t!=null?I_(S_(t)):null}function M_(t){if(!t)return null;let e=t.filter(__);return e.length==0?null:function(i){let n=x_(i,e).map(D_);return kn(n).pipe(q(E_))}}function A_(t){return t!=null?M_(S_(t)):null}function u_(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function N_(t){return t._rawValidators}function R_(t){return t._rawAsyncValidators}function lg(t){return t?Array.isArray(t)?t:[t]:[]}function bu(t,e){return Array.isArray(t)?t.includes(e):t===e}function d_(t,e){let i=lg(e);return lg(t).forEach(r=>{bu(i,r)||i.push(r)}),i}function f_(t,e){return lg(e).filter(i=>!bu(t,i))}function pg(t){return(Tu(t)?t.validators:t)||null}function wO(t){return Array.isArray(t)?T_(t):t||null}function mg(t,e){return(Tu(e)?e.asyncValidators:t)||null}function bO(t){return Array.isArray(t)?A_(t):t||null}function Tu(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function O_(t,e,i){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new N(1e3,"");if(!n[i])throw new N(1001,"")}function k_(t,e,i){t._forEachChild((n,r)=>{if(i[r]===void 0)throw new N(1002,"")})}function F_(t,e){return[...e.path,t]}function ug(t,e,i=Au){gg(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),_O(t,e),EO(t,e),DO(t,e),CO(t,e)}function h_(t,e,i=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),xu(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Eu(t,e){t.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function CO(t,e){if(e.valueAccessor.setDisabledState){let i=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}function gg(t,e){let i=N_(t);e.validator!==null?t.setValidators(u_(i,e.validator)):typeof i=="function"&&t.setValidators([i]);let n=R_(t);e.asyncValidator!==null?t.setAsyncValidators(u_(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();Eu(e._rawValidators,r),Eu(e._rawAsyncValidators,r)}function xu(t,e){let i=!1;if(t!==null){if(e.validator!==null){let r=N_(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==e.validator);o.length!==r.length&&(i=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let r=R_(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==e.asyncValidator);o.length!==r.length&&(i=!0,t.setAsyncValidators(o))}}}let n=()=>{};return Eu(e._rawValidators,n),Eu(e._rawAsyncValidators,n),i}function _O(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&P_(t,e)})}function DO(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&P_(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function P_(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function EO(t,e){let i=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}function xO(t,e){t==null,gg(t,e)}function SO(t,e){return xu(t,e)}function L_(t,e){if(!t.hasOwnProperty("model"))return!1;let i=t.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function IO(t){return Object.getPrototypeOf(t.constructor)===Ea}function TO(t,e){t._syncPendingControls(),e.forEach(i=>{let n=i.control;n.updateOn==="submit"&&n._pendingChange&&(i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function V_(t,e){if(!e)return null;Array.isArray(e);let i,n,r;return e.forEach(o=>{o.constructor===Zi?i=o:IO(o)?n=o:r=o}),r||n||i||null}function MO(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function p_(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function m_(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}function $_(t,e){return t==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function PO(t){return t.split(":")[0]}function v_(t,e){return t==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function VO(t){return t.split(":")[0]}function y_(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var w_,Ea,Mn,oO,fg,sO,lO,Zi,Su,hg,cO,Uo,Cu,Tr,Mr,_u,yO,tU,qo,Iu,_a,yu,Bo,Da,Ho,Du,cg,Mu,Au,Tn,AO,NO,g_,vg,Nu,RO,yg,j_,OO,xa,kO,Sa,FO,Ru,Ou,LO,B_,ku,jO,$O,wg,U_,dg,Fu,zo,Pu,Zn=y(()=>{"use strict";F();F();le();Xe();ar();w_=(()=>{let e=class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}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)}};e.\u0275fac=function(r){return new(r||e)(_(bt),_(Oe))},e.\u0275dir=Ce({type:e});let t=e;return t})(),Ea=(()=>{let e=class e extends w_{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=En(e)))(o||e)}})(),e.\u0275dir=Ce({type:e,features:[Gt]});let t=e;return t})(),Mn=new L(""),oO={provide:Mn,useExisting:dn(()=>fg),multi:!0},fg=(()=>{let e=class e extends Ea{writeValue(n){this.setProperty("checked",n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=En(e)))(o||e)}})(),e.\u0275dir=Ce({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){r&1&&k("change",function(a){return o.onChange(a.target.checked)})("blur",function(){return o.onTouched()})},features:[Wt([oO]),Gt]});let t=e;return t})(),sO={provide:Mn,useExisting:dn(()=>Zi),multi:!0};lO=new L(""),Zi=(()=>{let e=class e extends w_{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!aO())}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)}};e.\u0275fac=function(r){return new(r||e)(_(bt),_(Oe),_(lO,8))},e.\u0275dir=Ce({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(r,o){r&1&&k("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Wt([sO]),Gt]});let t=e;return t})();Su=new L(""),hg=new L(""),cO=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Uo=class{static min(e){return uO(e)}static max(e){return dO(e)}static required(e){return C_(e)}static requiredTrue(e){return fO(e)}static email(e){return hO(e)}static minLength(e){return pO(e)}static maxLength(e){return mO(e)}static pattern(e){return gO(e)}static nullValidator(e){return wu(e)}static compose(e){return I_(e)}static composeAsync(e){return M_(e)}};Cu=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=T_(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=A_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_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,i){return this.control?this.control.hasError(e,i):!1}getError(e,i){return this.control?this.control.getError(e,i):null}},Tr=class extends Cu{get formDirective(){return null}get path(){return null}},Mr=class extends Cu{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},_u=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},yO={"[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"},tU=z(b({},yO),{"[class.ng-submitted]":"isSubmitted"}),qo=(()=>{let e=class e extends _u{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(_(Mr,2))},e.\u0275dir=Ce({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Mc("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Gt]});let t=e;return t})(),Iu=(()=>{let e=class e extends _u{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(_(Tr,10))},e.\u0275dir=Ce({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&Mc("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[Gt]});let t=e;return t})(),_a="VALID",yu="INVALID",Bo="PENDING",Da="DISABLED";Ho=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(i)}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 valid(){return this.status===_a}get invalid(){return this.status===yu}get pending(){return this.status==Bo}get disabled(){return this.status===Da}get enabled(){return this.status!==Da}get dirty(){return!this.pristine}get untouched(){return!this.touched}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(d_(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(d_(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(f_(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(f_(e,this._rawAsyncValidators))}hasValidator(e){return bu(this._rawValidators,e)}hasAsyncValidator(e){return bu(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(i=>{i.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Bo,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=Da,this.errors=null,this._forEachChild(n=>{n.disable(z(b({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(z(b({},e),{skipPristineCheck:i})),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=_a,this._forEachChild(n=>{n.enable(z(b({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(z(b({},e),{skipPristineCheck:i})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===_a||this.status===Bo)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Da:_a}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Bo,this._hasOwnPendingAsyncValidator=!0;let i=D_(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,i={}){this.errors=e,this._updateControlsErrors(i.emitEvent!==!1)}get(e){let i=e;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((n,r)=>n&&n._find(r),this)}getError(e,i){let n=i?this.get(i):this;return n&&n.errors?n.errors[e]:null}hasError(e,i){return!!this.getError(e,i)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Ae,this.statusChanges=new Ae}_calculateStatus(){return this._allControlsDisabled()?Da:this.errors?yu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Bo)?Bo:this._anyControlsHaveStatus(yu)?yu:_a}_anyControlsHaveStatus(e){return this._anyControls(i=>i.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Tu(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let i=this._parent&&this._parent.dirty;return!e&&!!i&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=wO(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=bO(this._rawAsyncValidators)}},Du=class extends Ho{constructor(e,i,n){super(pg(i),mg(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,i){return this.controls[e]?this.controls[e]:(this.controls[e]=i,i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange),i)}addControl(e,i,n={}){this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}setControl(e,i,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],i&&this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,i={}){k_(this,!0,e),Object.keys(e).forEach(n=>{O_(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(Object.keys(e).forEach(n=>{let r=this.controls[n];r&&r.patchValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e={},i={}){this._forEachChild((n,r)=>{n.reset(e?e[r]:null,{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i),this._updateTouched(i),this.updateValueAndValidity(i)}getRawValue(){return this._reduceChildren({},(e,i,n)=>(e[n]=i.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(i,n)=>n._syncPendingControls()?!0:i);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(i=>{let n=this.controls[i];n&&e(n,i)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[i,n]of Object.entries(this.controls))if(this.contains(i)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(i,n,r)=>((n.enabled||this.disabled)&&(i[r]=n.value),i))}_reduceChildren(e,i){let n=e;return this._forEachChild((r,o)=>{n=i(n,r,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}},cg=class extends Du{},Mu=new L("CallSetDisabledState",{providedIn:"root",factory:()=>Au}),Au="always";Tn=class extends Ho{constructor(e=null,i,n){super(pg(i),mg(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Tu(i)&&(i.nonNullable||i.initialValueIsDefault)&&(m_(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,i={}){this.value=this._pendingValue=e,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(e,i={}){this.setValue(e,i)}reset(e=this.defaultValue,i={}){this._applyFormState(e),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){p_(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){p_(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){m_(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}},AO=t=>t instanceof Tn,NO={provide:Mr,useExisting:dn(()=>vg)},g_=Promise.resolve(),vg=(()=>{let e=class e extends Mr{constructor(n,r,o,s,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new Tn,this._registered=!1,this.name="",this.update=new Ae,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=V_(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),L_(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(){ug(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){g_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Pi(r);g_.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?F_(n,this._parent):[n]}};e.\u0275fac=function(r){return new(r||e)(_(Tr,9),_(Su,10),_(hg,10),_(Mn,10),_(It,8),_(Mu,8))},e.\u0275dir=Ce({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[Te.None,"disabled","isDisabled"],model:[Te.None,"ngModel","model"],options:[Te.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Wt([NO]),Gt,et]});let t=e;return t})(),Nu=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ce({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})(),RO={provide:Mn,useExisting:dn(()=>yg),multi:!0},yg=(()=>{let e=class e extends Ea{writeValue(n){let r=n??"";this.setProperty("value",r)}registerOnChange(n){this.onChange=r=>{n(r==""?null:parseFloat(r))}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=En(e)))(o||e)}})(),e.\u0275dir=Ce({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){r&1&&k("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[Wt([RO]),Gt]});let t=e;return t})(),j_=new L(""),OO={provide:Tr,useExisting:dn(()=>xa)},xa=(()=>{let e=class e extends Tr{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ae,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(xu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let r=this.form.get(n.path);return ug(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){h_(n.control||null,n,!1),MO(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this.submitted=!0,TO(this.form,this.directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,o=this.form.get(n.path);r!==o&&(h_(r||null,n),AO(o)&&(ug(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);xO(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&SO(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){gg(this.form,this),this._oldForm&&xu(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(_(Su,10),_(hg,10),_(Mu,8))},e.\u0275dir=Ce({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&k("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[Te.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Wt([OO]),Gt,et]});let t=e;return t})(),kO={provide:Mr,useExisting:dn(()=>Sa)},Sa=(()=>{let e=class e extends Mr{set isDisabled(n){}constructor(n,r,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new Ae,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=V_(this,s)}ngOnChanges(n){this._added||this._setUpControl(),L_(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return F_(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(_(Tr,13),_(Su,10),_(hg,10),_(Mn,10),_(j_,8))},e.\u0275dir=Ce({type:e,selectors:[["","formControlName",""]],inputs:{name:[Te.None,"formControlName","name"],isDisabled:[Te.None,"disabled","isDisabled"],model:[Te.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Wt([kO]),Gt,et]});let t=e;return t})(),FO={provide:Mn,useExisting:dn(()=>Ru),multi:!0};Ru=(()=>{let e=class e extends Ea{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let r=this._getOptionId(n),o=$_(r,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=PO(n);return this._optionMap.has(r)?this._optionMap.get(r):n}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=En(e)))(o||e)}})(),e.\u0275dir=Ce({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){r&1&&k("change",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[Wt([FO]),Gt]});let t=e;return t})(),Ou=(()=>{let e=class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue($_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(r){return new(r||e)(_(Oe),_(bt),_(Ru,9))},e.\u0275dir=Ce({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})(),LO={provide:Mn,useExisting:dn(()=>B_),multi:!0};B_=(()=>{let e=class e extends Ea{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let r;if(Array.isArray(n)){let o=n.map(s=>this._getOptionId(s));r=(s,a)=>{s._setSelected(o.indexOf(a.toString())>-1)}}else r=(o,s)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let o=[],s=r.selectedOptions;if(s!==void 0){let a=s;for(let l=0;l<a.length;l++){let c=a[l],u=this._getOptionValue(c.value);o.push(u)}}else{let a=r.options;for(let l=0;l<a.length;l++){let c=a[l];if(c.selected){let u=this._getOptionValue(c.value);o.push(u)}}}this.value=o,n(o)}}_registerOption(n){let r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){let r=VO(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=En(e)))(o||e)}})(),e.\u0275dir=Ce({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){r&1&&k("change",function(a){return o.onChange(a.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[Wt([LO]),Gt]});let t=e;return t})(),ku=(()=>{let e=class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(v_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(v_(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(r){return new(r||e)(_(Oe),_(bt),_(B_,9))},e.\u0275dir=Ce({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})(),jO=(()=>{let e=class e{constructor(){this._validator=wu}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):wu,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ce({type:e,features:[et]});let t=e;return t})(),$O={provide:Su,useExisting:dn(()=>wg),multi:!0},wg=(()=>{let e=class e extends jO{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Pi,this.createValidator=n=>C_}enabled(n){return n}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=En(e)))(o||e)}})(),e.\u0275dir=Ce({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,o){r&2&&U("required",o._enabled?"":null)},inputs:{required:"required"},features:[Wt([$O]),Gt]});let t=e;return t})(),U_=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ft({type:e}),e.\u0275inj=kt({});let t=e;return t})(),dg=class extends Ho{constructor(e,i,n){super(pg(i),mg(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,i={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}insert(e,i,n={}){this.controls.splice(e,0,i),this._registerControl(i),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,i={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:i.emitEvent})}setControl(e,i,n={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),i&&(this.controls.splice(r,0,i),this._registerControl(i)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,i={}){k_(this,!1,e),e.forEach((n,r)=>{O_(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(e.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e=[],i={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i),this._updateTouched(i),this.updateValueAndValidity(i)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(i=>i._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((i,n)=>n._syncPendingControls()?!0:i,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((i,n)=>{e(i,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(i=>i.enabled&&e(i))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};Fu=(()=>{let e=class e{constructor(){this.useNonNullable=!1}get nonNullable(){let n=new e;return n.useNonNullable=!0,n}group(n,r=null){let o=this._reduceControls(n),s={};return y_(r)?s=r:r!==null&&(s.validators=r.validator,s.asyncValidators=r.asyncValidator),new Du(o,s)}record(n,r=null){let o=this._reduceControls(n);return new cg(o,r)}control(n,r,o){let s={};return this.useNonNullable?(y_(r)?s=r:(s.validators=r,s.asyncValidators=o),new Tn(n,z(b({},s),{nonNullable:!0}))):new Tn(n,r,o)}array(n,r,o){let s=n.map(a=>this._createControl(a));return new dg(s,r,o)}_reduceControls(n){let r={};return Object.keys(n).forEach(o=>{r[o]=this._createControl(n[o])}),r}_createControl(n){if(n instanceof Tn)return n;if(n instanceof Ho)return n;if(Array.isArray(n)){let r=n[0],o=n.length>1?n[1]:null,s=n.length>2?n[2]:null;return this.control(r,o,s)}else return this.control(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),zo=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Mu,useValue:n.callSetDisabledState??Au}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ft({type:e}),e.\u0275inj=kt({imports:[U_]});let t=e;return t})(),Pu=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:j_,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Mu,useValue:n.callSetDisabledState??Au}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ft({type:e}),e.\u0275inj=kt({imports:[U_]});let t=e;return t})()});function BO(t,e){if(t&1){let i=Z();f(0,"input",8),k("change",function(){j(i);let r=v();return $(r.feature.change(r.feature.value))}),wo("ngModelChange",function(r){j(i);let o=v();return js(o.feature.value,r)||(o.feature.value=r),$(r)}),p()}if(t&2){let i=v();yo("ngModel",i.feature.value),U("id","form_"+i.feature.key)}}function UO(t,e){if(t&1){let i=Z();f(0,"input",9),k("change",function(){j(i);let r=v();return $(r.feature.change(r.feature.value))}),wo("ngModelChange",function(r){j(i);let o=v();return js(o.feature.value,r)||(o.feature.value=r),$(r)}),p()}if(t&2){let i=v();yo("ngModel",i.feature.value),U("id","form_"+i.feature.key)}}function HO(t,e){if(t&1){let i=Z();f(0,"input",10),k("change",function(){j(i);let r=v();return $(r.feature.change(r.feature.value))}),wo("ngModelChange",function(r){j(i);let o=v();return js(o.feature.value,r)||(o.feature.value=r),$(r)}),p()}if(t&2){let i=v();yo("ngModel",i.feature.value),U("id","form_"+i.feature.key)("step",i.determineStep(i.feature.type))}}function qO(t,e){if(t&1&&(f(0,"option",12),C(1),p()),t&2){let i=e.$implicit;x("value",i),h(),A(i)}}function zO(t,e){if(t&1){let i=Z();f(0,"select",11),k("change",function(){j(i);let r=v();return $(r.feature.change(r.feature.value))}),wo("ngModelChange",function(r){j(i);let o=v();return js(o.feature.value,r)||(o.feature.value=r),$(r)}),Fe(1,qO,2,2,"option",12,Ct),p()}if(t&2){let i=v();yo("ngModel",i.feature.value),U("id","form_"+i.feature.key),h(),Pe(i.feature.valueOptions)}}var H_,q_=y(()=>{"use strict";Zn();F();Zn();H_=(()=>{let e=class e{constructor(){}determineStep(n){return n==="double"||n==="float"?.1:1}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=V({type:e,selectors:[["app-feature"]],inputs:{feature:"feature"},standalone:!0,features:[B],decls:10,vars:7,consts:[[1,"w-full","pb-1","mb-1"],[1,"bg-cdra-blue-light-100","rounded","flex","py-1","me-1"],[1,"text-xs","ps-2","inline-flex","w-full","self-center"],["type","checkbox",1,"t-sidenav-feature-checkbox","text-xs","border","border-gray-400","me-2",3,"ngModel"],["type","text",1,"t-sidenav-feature-input","text-xs","border","border-gray-400","min-w-10","me-2",3,"ngModel"],["type","number",1,"t-sidenav-feature-input","text-xs","border","border-gray-400","min-w-10","me-2",3,"ngModel"],[1,"t-sidenav-feature-select","text-xs","border","border-gray-200","max-w-24","w-fit","me-2",3,"ngModel"],[1,"text-xs","italic","text-center"],["type","checkbox",1,"t-sidenav-feature-checkbox","text-xs","border","border-gray-400","me-2",3,"change","ngModelChange","ngModel"],["type","text",1,"t-sidenav-feature-input","text-xs","border","border-gray-400","min-w-10","me-2",3,"change","ngModelChange","ngModel"],["type","number",1,"t-sidenav-feature-input","text-xs","border","border-gray-400","min-w-10","me-2",3,"change","ngModelChange","ngModel"],[1,"t-sidenav-feature-select","text-xs","border","border-gray-200","max-w-24","w-fit","me-2",3,"change","ngModelChange","ngModel"],[3,"value"]],template:function(r,o){r&1&&(f(0,"div",0)(1,"div",1)(2,"label",2),C(3),p(),I(4,BO,1,2,"input",3)(5,UO,1,2,"input",4)(6,HO,1,3,"input",5)(7,zO,3,2,"select",6),p(),f(8,"p",7),C(9),p()()),r&2&&(h(2),U("for","form_"+o.feature.key),h(),me(" ",o.feature.key,""),h(),P(4,o.feature.type==="boolean"?4:-1),h(),P(5,o.feature.type==="string"?5:-1),h(),P(6,o.feature.type==="integer"||o.feature.type==="double"?6:-1),h(),P(7,o.feature.type==="enum"?7:-1),h(2),A(o.feature.description))},dependencies:[zo,Ou,ku,Zi,yg,fg,Ru,qo,vg],encapsulation:2});let t=e;return t})()});function GO(t,e){if(t&1&&E(0,"app-feature",2),t&2){let i=e.$implicit;x("feature",i)}}function WO(t,e){if(t&1&&E(0,"app-feature",2),t&2){let i=e.$implicit;x("feature",i)}}function QO(t,e){if(t&1&&(f(0,"label",3),C(1,"Logs:"),p(),f(2,"textarea",4),C(3),p()),t&2){let i=v(2);h(3),A(i.debugInfo)}}function ZO(t,e){t&1&&(f(0,"div",5),C(1,"If 'logs' is checked, logs will be shown here."),p())}function KO(t,e){if(t&1&&(f(0,"h3"),C(1,"Debug"),p(),Fe(2,WO,1,1,"app-feature",2,Ct),I(4,QO,4,1)(5,ZO,2,0)),t&2){let i=v();h(2),Pe(i.debugFeatures),h(2),P(4,i.showLogs?4:5)}}function YO(t,e){if(t&1&&E(0,"app-feature",2),t&2){let i=e.$implicit;x("feature",i)}}function JO(t,e){if(t&1&&(f(0,"h3"),C(1,"Experimental"),p(),Fe(2,YO,1,1,"app-feature",2,Ct)),t&2){let i=v();h(2),Pe(i.experimentalFeatures)}}function XO(t,e){if(t&1&&E(0,"app-feature",2),t&2){let i=e.$implicit;x("feature",i)}}function ek(t,e){if(t&1&&(f(0,"h3",6),C(1,"Features"),p(),Fe(2,XO,1,1,"app-feature",2,Ct)),t&2){let i=v();h(2),Pe(i.features)}}var z_,G_=y(()=>{"use strict";q_();F();jt();og();Mt();z_=(()=>{let e=class e{get debugInfo(){return JSON.stringify(this.research.debugInfo,null,1)}get debugFeatures(){return this.config?.features.filter(n=>n.featureType==="DEBUG")}get features(){return this.config?.features.filter(n=>n.featureType==="FEATURE")}get showLogs(){return this.config.features.find(n=>n.key==="logs")?.value}get experimentalFeatures(){return this.config?.features.filter(n=>n.featureType==="EXPERIMENTAL")}get currentEnvironment(){return this.config?.apiParams.environment??"prod"}get currentQA(){return this.research.researchSession?.qandas[this.research.researchSession.qandas.length-1]?.answer?.id??"no qanda"}constructor(n,r,o){this.research=n,this.languageService=r,this.config=o,this.envs=["ci","preview","prod","test"],this.uiOnlyDebugFeatures=[{key:"cache",description:"Cache the answer or not",featureType:"DEBUG",type:"boolean",change:s=>this.changeCache(s.toString()),value:this.config.debugCache==="true"},{key:"language",description:"UI Language",featureType:"DEBUG",type:"enum",value:this.languageService.language,change:s=>this.changeLanguage(s.toString()),valueOptions:this.languageService.availableLanguages}]}changeLanguage(n){this.languageService.changeLanguage(n)}changeEnv(n){this.config.changeEnv(n)}changeCache(n){this.config.changeCache(n)}};e.\u0275fac=function(r){return new(r||e)(_(Ne),_(gu),_(Se))},e.\u0275cmp=V({type:e,selectors:[["app-debug-sidebar"]],standalone:!0,features:[B],decls:10,vars:3,consts:[[1,"items-center","gap-2","justify-center","py-3","text-xs"],[1,"uppercase"],[3,"feature"],["for","debugInfo",1,"italic"],["id","debugInfo","readonly","",1,"w-full","h-20","border"],[1,"italic"],[1,"border-b"]],template:function(r,o){r&1&&(f(0,"div",0)(1,"h2",1),C(2,"Debug info"),p(),f(3,"h3"),C(4,"UI debug"),p(),Fe(5,GO,1,1,"app-feature",2,Ct),I(7,KO,6,1)(8,JO,4,0)(9,ek,4,0),p()),r&2&&(h(5),Pe(o.uiOnlyDebugFeatures),h(2),P(7,o.debugFeatures.length?7:-1),h(),P(8,o.experimentalFeatures.length?8:-1),h(),P(9,o.features.length?9:-1))},dependencies:[H_]});let t=e;return t})()});function nk(t,e){t&1&&E(0,"app-debug-sidebar")}function ik(t,e){if(t&1){let i=Z();f(0,"div",1)(1,"a",2),k("click",function(){j(i);let r=v();return $(r.startNewResearchSession())}),f(2,"span",3),C(3),p()(),f(4,"div",4),E(5,"app-research-history"),I(6,nk,1,0,"app-debug-sidebar"),p(),f(7,"div",5)(8,"p"),C(9),p(),f(10,"a",6),k("click",function(){j(i);let r=v();return $(r.log("help",r.helpLink,!1))}),C(11),p(),f(12,"a",7),k("click",function(){j(i);let r=v();return $(r.log("disclaimer","https://clarivate.com/ai/academia/policy/"))}),C(13),p()()()}if(t&2){let i=e.$implicit,n=v();h(),x("routerLink",Nc(8,tk)),U("aria-label",i("sidebar.newresearchbutton")),h(2),A(i("sidebar.newresearchbutton")),h(3),P(6,n.debugEnabled?6:-1),h(3),A(i("sidebar.disclaimer")),h(),x("routerLink",n.helpLink),h(),A(i("sidebar.helplink")),h(2),me(" ",i("sidebar.disclaimer.link")," ")}}var tk,W_,Q_=y(()=>{"use strict";Zt();c_();le();te();G_();F();jt();Mt();sn();te();tk=()=>["/research/new"];W_=(()=>{let e=class e{get debugEnabled(){return this.config.debug}constructor(n,r,o){this.research=n,this.config=r,this.stats=o,this.disclaimerLink="/pages/disclaimer",this.helpLink="/pages/help"}startNewResearchSession(){this.research.startNewResearchSession(),this.stats.sendEvent({category:"navigation",action:"new-session",label:"origin",value:"sidebar"})}log(n,r,o=!0){this.stats.sendEvent({category:"navigation",action:n,label:"url",value:r}),o&&this.stats.pageView(r)}};e.\u0275fac=function(r){return new(r||e)(_(Ne),_(Se),_(Be))},e.\u0275cmp=V({type:e,selectors:[["app-sidebar"]],inputs:{disclaimerLink:"disclaimerLink",helpLink:"helpLink",libraryName:"libraryName"},standalone:!0,features:[B],decls:1,vars:0,consts:[["class","t-sidenav grid grid-rows-[auto_5rem] lg:grid-rows-[min-content_auto_8rem]  h-[calc(var(--ra-height,100vh)-5rem)]",4,"transloco"],[1,"t-sidenav","grid","grid-rows-[auto_5rem]","lg:grid-rows-[min-content_auto_8rem]","h-[calc(var(--ra-height,100vh)-5rem)]"],[1,"t-header-new-research-button","h-12","gradient-border","border-2","rounded-full","mb-2","p-3","flex-row","text-cdra-blue-light-main","font-bold","hidden","items-center","w-fit","lg:flex",3,"click","routerLink"],[1,"hidden","mx-2","text-center","w-fit","font-bold","leading-4","lg:inline","group-data-[showsidenav=true]:inline"],["tabindex","0",1,"mb-auto","h-full","overflow-y-auto"],[1,"t-sidenav-disclaimer","flex","flex-col","justify-end","gap-1","py-1","h-fit","text-sm"],[1,"t-sidenav-help-link","underline","me-2","hover:decoration-2",3,"click","routerLink"],["href","https://clarivate.com/ai/academia/policy/","target","_blank",1,"underline","hover:decoration-2",3,"click"]],template:function(r,o){r&1&&I(0,ik,14,9,"div",0)},dependencies:[ve,z_,Po,l_,ye,ee],encapsulation:2});let t=e;return t})()});var Go,Vu=y(()=>{"use strict";Zt();Xe();F();Zt();$o();Go=(()=>{let e=class e{get previousUrl(){return this.urlHistory[this.urlHistory.length-2]}get currentUrl(){return this.urlHistory[this.urlHistory.length-1]}constructor(n,r){this.router=n,this.message=r,this.urlHistory=[]}initialize(){this.router.events.pipe(dt(n=>n instanceof pn)).subscribe(n=>{this.urlHistory.push(n.url),n.url!=="/"&&n.url.indexOf("/research")===-1&&this.message.emitAppEvent({event:"navigation",status:"ready",value:n.url}),setTimeout(()=>{this.focusOnFirstRelevantItem()})})}focusOnFirstRelevantItem(){let n=document.getElementsByTagName("cdi-research-assistant").item(0),o=(n&&n.shadowRoot?n.shadowRoot:document).querySelectorAll("[data-focus-on-load]").item(0);o&&setTimeout(()=>o.focus(),0)}goBack(){this.urlHistory.pop();let n=this.urlHistory.pop();n&&this.router.navigateByUrl(n)}};e.\u0275fac=function(r){return new(r||e)(M(Sn),M(Qn))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})()});function ak(t,e){if(t&1&&(f(0,"div",15),C(1),p()),t&2){let i=v().$implicit;h(),A(i("app.beta"))}}function lk(t,e){if(t&1){let i=Z();f(0,"div",8)(1,"a",9),fe(),f(2,"svg",10),E(3,"path",11)(4,"path",12)(5,"path",13),p(),Me(),f(6,"h1",14),C(7),I(8,ak,2,1,"div",15),p()(),f(9,"a",16),k("click",function(){j(i);let r=v();return $(r.startNewResearchSession())}),fe(),f(10,"svg",17),E(11,"path",18)(12,"path",19),p(),Me(),f(13,"span",20),C(14),p()(),f(15,"button",21),k("click",function(r){j(i);let o=v();return r.stopPropagation(),$(o.toggleSideNavMobile())}),fe(),f(16,"svg",22),E(17,"path",23)(18,"path",24)(19,"path",25),p()(),Me(),f(20,"button",26,0),k("click",function(r){j(i);let o=v();return r.stopPropagation(),$(o.toggleSideNav(!1))}),fe(),f(22,"svg",27),E(23,"path",23)(24,"path",24)(25,"path",25),p()()()}if(t&2){let i=e.$implicit,n=v();h(),U("aria-label",i("navigation.menu")),h(6),me("",i("app.title")," "),h(),P(8,n.showBeta?8:-1),h(),x("routerLink",Nc(11,ok)),U("aria-label",i("sidebar.newresearchbutton")),h(),x("ngClass",Ee(12,sk,n.hideNewSessionButton())),h(4),A(i("sidebar.newresearchbutton")),h(),U("aria-label",n.labelSideNavToggleButton)("aria-expanded",n.sideNavShowing),h(5),U("aria-label",n.labelSideNavToggleButton)("aria-expanded",n.sideNavShowing)}}var rk,ok,sk,K_,Y_=y(()=>{"use strict";Zt();Q_();te();le();F();Mt();jt();Vu();te();sn();le();rk=["sidenavToggleButton"],ok=()=>["/research/new"],sk=t=>({invisible:t});K_=(()=>{let e=class e{get sideNavShowing(){return this.config.showSideNav}get showBeta(){return this.config.currentConfig.showBeta}onClick(){this.config.showSideNav===!0&&this.config.toggleSideNav(null)}keyEvent(n){n.key==="Escape"&&this.config.toggleSideNav(null)}constructor(n,r,o,s,a){this.config=n,this.research=r,this.nav=o,this.translocoService=s,this.stats=a,this.labelSideNavToggleButton=""}ngOnInit(){this.setLabel()}hideNewSessionButton(){return this.nav.currentUrl==="/"||this.nav.currentUrl==="/research/new"}toggleSideNav(n){typeof n<"u"?this.config.toggleSideNav(n):this.config.toggleSideNav(!this.config.showSideNav),this.stats.sendEvent({category:"navigation",action:"toggle-sidenav",label:"open",value:""+this.config.showSideNav}),setTimeout(()=>{let r=this.sidenavToggleButtons.find(o=>o?.nativeElement?.checkVisibility()??!1);r&&r.nativeElement.focus()},50),this.setLabel()}toggleSideNavMobile(){this.config.showSideNav===!0?this.config.toggleSideNav(null):this.config.toggleSideNav(!0),this.stats.sendEvent({category:"navigation",action:"toggle-sidenav-mobile",label:"open",value:""+this.config.showSideNav}),this.setLabel()}startNewResearchSession(){this.research.startNewResearchSession(),this.stats.sendEvent({category:"navigation",action:"new-session",label:"origin",value:"header"})}setLabel(){this.translocoService.selectTranslate("sidebar.togglehide").subscribe(n=>{this.labelSideNavToggleButton=n,this.sideNavShowing===!1&&(this.labelSideNavToggleButton=this.translocoService.translate("sidebar.toggleshow"))})}};e.\u0275fac=function(r){return new(r||e)(_(Se),_(Ne),_(Go),_(Ke),_(Be))},e.\u0275cmp=V({type:e,selectors:[["app-navigation"]],viewQuery:function(r,o){if(r&1&&at(rk,5),r&2){let s;tt(s=nt())&&(o.sidenavToggleButtons=s)}},hostAttrs:[1,"contents"],hostBindings:function(r,o){r&1&&k("click",function(){return o.onClick()},!1,wc)("keyup",function(a){return o.keyEvent(a)})},standalone:!0,features:[B],decls:9,vars:2,consts:[["sidenavToggleButton",""],["class",`t-header grid grid-cols-[auto_1fr_auto] gap-2 text-black py-2 justify-items-center
            h-16
            group-data-[showsidenav=true]:grid-cols-[1fr_auto]
            group-data-[showsidenav=true]:px-5
            group-data-[showsidenav=true]:justify-items-start
            group-data-[showsidenav=false]:hidden
            lg:p-5
            lg:grid-cols-[1fr_auto]
            lg:justify-items-start`,4,"transloco"],["aria-controls","sidenav",1,"t-header-sidenav-expand","p-4","bg-cdra-blue-light-100","text-cdra-blue-light-800","rounded-e-md","hidden","lg:group-data-[showsidenav=false]:block","group-data-[showsidenav=true]:hidden",3,"click"],["aria-hidden","true","width","22","height","15","viewBox","0 0 22 15","fill","none","xmlns","http://www.w3.org/2000/svg",1,"-scale-x-100","stroke-2","focus:stroke-[3]","hover:stroke-[3]"],["d","M5.83333 7.49548L21 7.49548","stroke","currentColor","stroke-linecap","round","stroke-linejoin","round"],["d","M12.3334 14L5.83337 7.5L12.3334 1","stroke","currentColor","stroke-linecap","round","stroke-linejoin","round"],["d","M1.5 14L1.5 1","stroke","currentColor","stroke-linecap","round","stroke-linejoin","round"],["id","sidenav",1,"t-header-sidenav","hidden","px-5","h-full","lg:block","group-data-[showsidenav=false]:hidden","group-data-[showsidenav=true]:block"],[1,"t-header","grid","grid-cols-[auto_1fr_auto]","gap-2","text-black","py-2","justify-items-center","h-16","group-data-[showsidenav=true]:grid-cols-[1fr_auto]","group-data-[showsidenav=true]:px-5","group-data-[showsidenav=true]:justify-items-start","group-data-[showsidenav=false]:hidden","lg:p-5","lg:grid-cols-[1fr_auto]","lg:justify-items-start"],["routerLink","/",1,"t-header-header-new-research","order-2","grow","inline-flex","items-center","group-data-[showsidenav=true]:order-1","group-data-[showsidenav=true]:hidden","lg:group-data-[showsidenav=true]:inline-flex","lg:inline-flex","lg:order-1"],["aria-hidden","true","width","30","height","29","viewBox","0 0 30 29","fill","none","xmlns","http://www.w3.org/2000/svg",1,"assistant-logo","shrink-0","text-cdra-blue-light-main"],["fill-rule","evenodd","clip-rule","evenodd","d","M19.5636 18.1855C14.1524 18.1855 9.78182 13.7976 9.78182 8.40369C9.78182 13.7976 5.39388 18.1855 0 18.1855C5.39388 18.1855 9.78182 22.5561 9.78182 27.95C9.78182 22.5561 14.1524 18.1855 19.5636 18.1855Z","fill","currentColor"],["fill-rule","evenodd","clip-rule","evenodd","d","M29.6055 23.2328C26.6397 23.2328 24.2463 20.8221 24.2463 17.8737C24.2463 20.8221 21.8355 23.2328 18.8871 23.2328C21.8355 23.2328 24.2463 25.6263 24.2463 28.592C24.2463 25.6263 26.6397 23.2328 29.6055 23.2328Z","fill","currentColor"],["fill-rule","evenodd","clip-rule","evenodd","d","M26.5184 6.92954C22.9109 6.92954 19.9972 4.01581 19.9972 0.408325C19.9972 4.01581 17.0834 6.92954 13.476 6.92954C17.0834 6.92954 19.9972 9.84327 19.9972 13.4508C19.9972 9.84327 22.9109 6.92954 26.5184 6.92954Z","fill","currentColor"],[1,"inline","ps-2","text-xl","font-bold","leading-5"],[1,"inline-block","whitespace-nowrap","rounded-full","bg-cdra-blue-dark-600","px-1.5","pb-0.5","pt-0.5","text-center","uppercase","align-super","text-xs","font-bold","leading-none","text-white"],[1,"t-header-landing-link","flex","items-center","pe-2","order-3","flex-row","rounded-full","text-cdra-blue-light-main","lg:hidden","group-data-[showsidenav=true]:gradient-border","group-data-[showsidenav=true]:order-1","group-data-[showsidenav=true]:p-2","group-data-[showsidenav=true]:hover:border-cdra-green-main","group-data-[showsidenav=true]:focus:border-cdra-green-main","group-data-[showsidenav=true]:border-2",3,"click","routerLink"],["aria-hidden","true","width","32","height","32","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg",1,"shrink-0","group-data-[showsidenav=true]:hidden",3,"ngClass"],["d","M23.79 14.38C22.4374 14.0998 21.2225 13.3622 20.3501 12.2912C19.4776 11.2202 19.0009 9.88136 19 8.5C18.9993 8.16461 19.0294 7.82987 19.09 7.5H2C1.73502 7.50077 1.48111 7.60637 1.29374 7.79374C1.10637 7.98111 1.00077 8.23502 1 8.5V22.5C1.00077 22.765 1.10637 23.0189 1.29374 23.2063C1.48111 23.3936 1.73502 23.4992 2 23.5H5.53L10.23 29.14C10.3617 29.2981 10.539 29.4117 10.7376 29.4653C10.9362 29.519 11.1466 29.5102 11.34 29.44C11.5339 29.3711 11.7016 29.2436 11.8198 29.0752C11.9381 28.9068 12.001 28.7058 12 28.5V23.5H24C24.265 23.4992 24.5189 23.3936 24.7063 23.2063C24.8936 23.0189 24.9992 22.765 25 22.5V14.5C24.5936 14.5027 24.188 14.4625 23.79 14.38ZM7 17.5C6.60444 17.5 6.21776 17.3827 5.88886 17.1629C5.55996 16.9432 5.30362 16.6308 5.15224 16.2654C5.00087 15.8999 4.96126 15.4978 5.03843 15.1098C5.1156 14.7219 5.30608 14.3655 5.58579 14.0858C5.86549 13.8061 6.22186 13.6156 6.60982 13.5384C6.99778 13.4613 7.39991 13.5009 7.76537 13.6522C8.13082 13.8036 8.44318 14.06 8.66294 14.3889C8.8827 14.7178 9 15.1044 9 15.5C8.99844 16.03 8.78723 16.5378 8.41249 16.9125C8.03776 17.2872 7.52995 17.4984 7 17.5ZM13 17.5C12.6044 17.5 12.2178 17.3827 11.8889 17.1629C11.56 16.9432 11.3036 16.6308 11.1522 16.2654C11.0009 15.8999 10.9613 15.4978 11.0384 15.1098C11.1156 14.7219 11.3061 14.3655 11.5858 14.0858C11.8655 13.8061 12.2219 13.6156 12.6098 13.5384C12.9978 13.4613 13.3999 13.5009 13.7654 13.6522C14.1308 13.8036 14.4432 14.06 14.6629 14.3889C14.8827 14.7178 15 15.1044 15 15.5C14.9984 16.03 14.7872 16.5378 14.4125 16.9125C14.0378 17.2872 13.53 17.4984 13 17.5ZM19 17.5C18.6044 17.5 18.2178 17.3827 17.8889 17.1629C17.56 16.9432 17.3036 16.6308 17.1522 16.2654C17.0009 15.8999 16.9613 15.4978 17.0384 15.1098C17.1156 14.7219 17.3061 14.3655 17.5858 14.0858C17.8655 13.8061 18.2219 13.6156 18.6098 13.5384C18.9978 13.4613 19.3999 13.5009 19.7654 13.6522C20.1308 13.8036 20.4432 14.06 20.6629 14.3889C20.8827 14.7178 21 15.1044 21 15.5C20.9984 16.03 20.7872 16.5378 20.4125 16.9125C20.0378 17.2872 19.53 17.4984 19 17.5Z","fill","currentColor"],["d","M25.0001 3.5C23.846 3.5001 22.7275 3.89949 21.8344 4.63041C20.9412 5.36132 20.3285 6.37873 20.1001 7.51C20.0312 7.83544 19.9977 8.16736 20.0001 8.5C20.0015 9.65071 20.3988 10.7659 21.1254 11.6582C21.852 12.5505 22.8635 13.1656 23.9901 13.4C24.3221 13.4704 24.6608 13.5039 25.0001 13.5C26.3262 13.5 27.598 12.9732 28.5357 12.0355C29.4733 11.0979 30.0001 9.82608 30.0001 8.5C30.0001 7.17392 29.4733 5.90215 28.5357 4.96447C27.598 4.02678 26.3262 3.5 25.0001 3.5ZM27.0001 9.61H26.0001V10.5C26.0001 10.7652 25.8948 11.0196 25.7072 11.2071C25.5197 11.3946 25.2653 11.5 25.0001 11.5C24.7349 11.5 24.4806 11.3946 24.293 11.2071C24.1055 11.0196 24.0001 10.7652 24.0001 10.5V9.61H23.0001C22.7349 9.61 22.4806 9.50464 22.293 9.31711C22.1055 9.12957 22.0001 8.87522 22.0001 8.61C22.0001 8.34478 22.1055 8.09043 22.293 7.90289C22.4806 7.71536 22.7349 7.61 23.0001 7.61H24.0001V6.5C24.0001 6.23478 24.1055 5.98043 24.293 5.79289C24.4806 5.60536 24.7349 5.5 25.0001 5.5C25.2653 5.5 25.5197 5.60536 25.7072 5.79289C25.8948 5.98043 26.0001 6.23478 26.0001 6.5V7.61H27.0001C27.2653 7.61 27.5197 7.71536 27.7072 7.90289C27.8948 8.09043 28.0001 8.34478 28.0001 8.61C28.0001 8.87522 27.8948 9.12957 27.7072 9.31711C27.5197 9.50464 27.2653 9.61 27.0001 9.61Z","fill","currentColor"],[1,"hidden","mx-2","text-center","w-fit","font-bold","leading-4","lg:inline","group-data-[showsidenav=true]:inline"],["aria-controls","sidenav",1,"t-header-mobile-sidenav-button","px-2","order-1","lg:order-2","lg:hidden","group-data-[showsidenav=true]:order-2",3,"click"],["aria-hidden","true","width","22","height","15","viewBox","0 0 22 15","fill","none","xmlns","http://www.w3.org/2000/svg",1,"-scale-x-100","group-data-[showsidenav=true]:scale-x-100","stroke-2","focus:stroke-[3]","hover:stroke-[3]"],["d","M5.83333 7.49548L21 7.49548","stroke","#898989","stroke-linecap","round","stroke-linejoin","round"],["d","M12.3334 14L5.83337 7.5L12.3334 1","stroke","#898989","stroke-linecap","round","stroke-linejoin","round"],["d","M1.5 14L1.5 1","stroke","#898989","stroke-linecap","round","stroke-linejoin","round"],["aria-controls","sidenav",1,"t-header-sidenav-button","px-2","order-1","lg:order-2","hidden","lg:block","group-data-[showsidenav=true]:order-2",3,"click"],["aria-hidden","true","width","22","height","15","viewBox","0 0 22 15","fill","none","xmlns","http://www.w3.org/2000/svg",1,"scale-x-100","stroke-2","focus:stroke-[3]","hover:stroke-[3]"]],template:function(r,o){if(r&1){let s=Z();I(0,lk,26,14,"div",1),f(1,"button",2,0),k("click",function(l){return j(s),l.stopPropagation(),$(o.toggleSideNav())}),fe(),f(3,"svg",3),E(4,"path",4)(5,"path",5)(6,"path",6),p()(),Me(),f(7,"aside",7),E(8,"app-sidebar"),p()}r&2&&(h(),U("aria-expanded",o.sideNavShowing)("aria-label",o.labelSideNavToggleButton))},dependencies:[ve,it,Po,W_,ye,ee],encapsulation:2});let t=e;return t})()});function ck(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,i)=>{let n=i.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function uk(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return ck(e)}catch{return atob(e)}}function J_(t,e){if(typeof t!="string")throw new Ar("Invalid token specified: must be a string");e||(e={});let i=e.header===!0?0:1,n=t.split(".")[i];if(typeof n!="string")throw new Ar(`Invalid token specified: missing part #${i+1}`);let r;try{r=uk(n)}catch(o){throw new Ar(`Invalid token specified: invalid base64 for part #${i+1} (${o.message})`)}try{return JSON.parse(r)}catch(o){throw new Ar(`Invalid token specified: invalid json for part #${i+1} (${o.message})`)}}var Ar,X_=y(()=>{"use strict";Ar=class extends Error{};Ar.prototype.name="InvalidTokenError"});function dk(t,e){if(t&1&&(f(0,"div",3),E(1,"div",4),p()),t&2){let i=e.$implicit,n=v();Vs(Ee(3,eD,n.height)),U("aria-label",i("app.loader"))}}function fk(t,e){if(t&1){let i=Z();f(0,"div",5)(1,"button",6),k("click",function(){j(i);let r=v();return $(r.skipTo("default-search"))}),C(2),p(),f(3,"nav",7),E(4,"app-navigation"),p(),E(5,"div",8),f(6,"main",9),E(7,"router-outlet"),p()()}if(t&2){let i=e.$implicit,n=v();Vs(Ee(4,eD,n.height)),U("data-showsidenav",n.showSideNavCurrent),h(2),A(i("landing.skiplink"))}}var eD,tD,nD=y(()=>{"use strict";le();F();Xs();Y_();Zt();X_();te();Xe();F();Mt();jt();$o();Xs();Zt();le();te();sn();Ca();eD=t=>({height:t});tD=(()=>{let e=class e{get showSideNavCurrent(){return this.config.showSideNav}constructor(n,r,o,s,a,l,c,u,d,m,g){this.config=n,this.research=r,this.message=o,this.toastr=s,this.renderer2=a,this.elRef=l,this.router=c,this.viewport=u,this.transloco=d,this.statsService=m,this.user=g,this.height="100%",this.libraryName="Library",this.clientKey=null,this.product="primo",this.language="en",this.apiUrl="/cda",this.showsToasts="true",this.sourceUrl=import.meta.url,this.token="",this.showSideNav="",this.apiParams="",this.showBeta="true",this.apiJwt="",this.query="",this.debug="false",this.showQuotum="false",this.streaming="false",this.showAdvanced="false",this.researchHistoryDays=this.config.researchHistoryDays.toString(),this.toast=new Ae,this.stats=new Ae,this.application=new Ae,this.elements=[],this.initialQuery="",this.translationLoaded=new ke(!1),this.router.navigateByUrl("/"),m.onEvent().subscribe(w=>{this.stats.emit(w)}),this.transloco.selectTranslate("research.status.answering").pipe(We(1)).subscribe(()=>{this.translationLoaded.next(!0)}),o.appEvents$.subscribe(w=>{this.application.emit(w)}),o.emitAppEvent({event:"application",status:"initializing"})}visibilityChangeHandler(){this.elRef.nativeElement.ownerDocument.hidden&&this.research.close()}skipTo(n){this.viewport.scrollToAnchor(n)}ngOnChanges(){this.loadConfigFromInputs()}ngOnInit(){this.loadConfigFromInputs(),this.elRef.nativeElement.ownerDocument?.documentElement?.style?.setProperty("--ra-height",this.height),this.toastr.overlayContainer=this.toastContainer,this.message.onToast$.subscribe(a=>{this.toast.emit(a)});let n=new URL("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@200..900&display=swap",this.sourceUrl);this.addStylesheetElement(n,this.elRef.nativeElement.getRootNode().getElementsByTagName("head")[0]);let r=new URL("cdra-styles.css?version=4807068e9c",this.sourceUrl);if(this.addStylesheetElement(r),this.showsToasts){let a=new URL("cdra-toastr.css?version=371323cb86",this.sourceUrl);this.addStylesheetElement(a)}let o=this.renderer2.createElement("style"),s=this.renderer2.createText(`@font-face {
         font-family: 'RegularClarivate-Bold';
         src: url('${new URL("/assets/fonts/RegularClarivate-Bold.woff2",this.sourceUrl)}') format('woff2'), url('${new URL("assets/fonts/RegularClarivate-Bold.woff",this.sourceUrl)}') format('woff');
         font-display: swap;
      }`);o.appendChild(s),this.renderer2.appendChild(this.elRef.nativeElement.getRootNode().getElementsByTagName("head")[0],o),this.elements.push(o),this.message.emitAppEvent({event:"application",status:"ready"})}loadConfigFromInputs(){this.translationLoaded.asObservable().pipe().subscribe(o=>{o&&this.query!==this.initialQuery&&(this.initialQuery=this.query,this.statsService.search(this.query,"webcomponent"),this.research.getAnswer(this.query,null).then(()=>{this.query=""}))});let n={};if(this.apiJwt){let o=sessionStorage.getItem(this.apiJwt);if(o)try{n=J_(o)}catch(s){console.error("Issue decoding token from sessionStorage",s)}}let r={id:"",userId:n.user??"webcomponent-user",clientKey:this.clientKey||"exl.PRIMO_RA.PPRD",quotum:-1,quotumMax:-1};this.user.setUser(r),this.debug&&this.debug!=="false"&&(this.config.setDebug(!0),this.config.setFeatureFromString(this.debug)),this.config.setConfig({isStandalone:!1,showToast:this.showsToasts==="true",height:this.height,libraryName:this.libraryName,product:this.product,language:this.language,apiUrl:this.apiUrl,showSideNav:null,showBeta:this.showBeta==="true",apiParams:this.apiParams?JSON.parse(this.apiParams):{},apiJwt:this.apiJwt,sourceUrl:this.sourceUrl,showQuotum:this.showQuotum==="true",streamAnswer:this.streaming==="true",showAdvanced:this.showAdvanced==="true",researchHistoryDays:this.researchHistoryDays?parseInt(this.researchHistoryDays):this.config.researchHistoryDays})}ngOnDestroy(){for(let n of this.elements)this.renderer2.removeChild(this.elRef.nativeElement.shadowRoot,n)}addStylesheetElement(n,r=this.elRef.nativeElement.shadowRoot){let o=this.renderer2.createElement("link");this.renderer2.setProperty(o,"rel","stylesheet"),this.renderer2.setProperty(o,"href",n),this.renderer2.appendChild(r,o),this.elements.push(o)}};e.\u0275fac=function(r){return new(r||e)(_(Se),_(Ne),_(Qn),_(Io),_(bt),_(Oe),_(Sn),_($p),_(Ke),_(Be),_(Wi))},e.\u0275cmp=V({type:e,selectors:[["app-root"]],viewQuery:function(r,o){if(r&1&&at(om,7),r&2){let s;tt(s=nt())&&(o.toastContainer=s.first)}},hostBindings:function(r,o){r&1&&k("visibilitychange",function(a){return o.visibilityChangeHandler(a)},!1,wc)},inputs:{height:"height",libraryName:"libraryName",clientKey:"clientKey",product:"product",language:"language",apiUrl:"apiUrl",showsToasts:"showsToasts",sourceUrl:"sourceUrl",token:"token",showSideNav:"showSideNav",apiParams:"apiParams",showBeta:"showBeta",apiJwt:"apiJwt",query:"query",debug:"debug",showQuotum:"showQuotum",streaming:"streaming",showAdvanced:"showAdvanced",researchHistoryDays:"researchHistoryDays"},outputs:{toast:"toast",stats:"stats",application:"application"},standalone:!0,features:[et,B],decls:3,vars:0,consts:[["class","loader-container",3,"style",4,"transloco"],["aria-live","polite","toastContainer",""],["class","component-container !opacity-100 group h-screen flex-col lg:flex-row bg-zinc-100 gap-x-2 md:gap-x-5 font-sourcesans scale-[1]",3,"style",4,"transloco"],[1,"loader-container"],[1,"loader",2,"height","50px","width","50px"],[1,"component-container","!opacity-100","group","h-screen","flex-col","lg:flex-row","bg-zinc-100","gap-x-2","md:gap-x-5","font-sourcesans","scale-[1]"],[1,"skiplink","absolute","left-1/2",3,"click"],[1,"flex","flex-col","w-full","bg-white","border-b-2","border-b-zinc-400","z-20","h-auto","lg:shadow-none","lg:my-5","lg:ms-5","lg:w-1/4","lg:border-none","lg:rounded-lg","group-data-[showsidenav=true]:absolute","group-data-[showsidenav=true]:shadow-xl","group-data-[showsidenav=true]:border-left-1","group-data-[showsidenav=true]:w-3/4","group-data-[showsidenav=true]:h-full","lg:group-data-[showsidenav=true]:w-1/4","lg:group-data-[showsidenav=true]:shadow-none","lg:group-data-[showsidenav=true]:relative","lg:group-data-[showsidenav=true]:h-auto","group-data-[showsidenav=false]:ms-0","group-data-[showsidenav=false]:basis-0","group-data-[showsidenav=false]:bg-transparent"],[1,"hidden","lg:group-data-[showsidenav=true]:hidden","group-data-[showsidenav=true]:block","group-data-[showsidenav=true]:fixed","inset-0","bg-black","bg-opacity-55","z-10"],[1,"flex","overflow-y-clip","bg-white","w-full","justify-center","h-[calc(100%-4rem)]","lg:w-3/4","lg:h-auto","lg:my-5","lg:me-5","lg:rounded-lg","lg:group-data-[showsidenav=true]:w-3/4","lg:group-data-[showsidenav=false]:w-full"]],template:function(r,o){r&1&&(I(0,dk,2,5,"div",0),E(1,"div",1),I(2,fk,8,6,"div",2))},dependencies:[ve,K_,Ir,om,ee],styles:[`
.component-container {
   transition : opacity 0.1s linear;
   opacity: 0;
}
.loader-container {
   display: flex;
   justify-content: center;
   align-items: center;
}
.loader {
   border: 2px solid #DCEEFB;
   border-bottom-color: #135a99;
   border-radius: 50%;
   display: inline-block;
   box-sizing: border-box;
   animation: rotation 1s linear infinite;
}

@keyframes rotation {
   0% {
         transform: rotate(0deg);
   }
   100% {
         transform: rotate(360deg);
   }
}
/* will be overridden by external CSS to show */
.component-container {
   display: hidden;
}
/* webfont is also loaded, but via JS due to path */
`],encapsulation:3});let t=e;return t})()});function hk(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function pk(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}function mk(t){return typeof t=="function"}function gk(t,e){if(!bg){let i=Element.prototype;bg=i.matches||i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE?bg.call(t,e):!1}function vk(t,e){return t===e||t!==t&&e!==e}function yk(t){let e={};return t.forEach(({propName:i,templateName:n,transform:r})=>{e[hk(n)]=[i,r]}),e}function wk(t,e){return e.get(pi).resolveComponentFactory(t).inputs}function bk(t,e){let i=t.childNodes,n=e.map(()=>[]),r=-1;e.some((o,s)=>o==="*"?(r=s,!0):!1);for(let o=0,s=i.length;o<s;++o){let a=i[o],l=Ck(a,e,r);l!==-1&&n[l].push(a)}return n}function Ck(t,e,i){let n=i;return pk(t)&&e.some((r,o)=>r!=="*"&&gk(t,r)?(n=o,!0):!1),n}function iD(t,e){let i=wk(t,e.injector),n=e.strategyFactory||new Cg(t,e.injector),r=yk(i),s=class s extends Dg{get ngElementStrategy(){if(!this._ngElementStrategy){let l=this._ngElementStrategy=n.create(this.injector||e.injector);i.forEach(({propName:c,transform:u})=>{if(!this.hasOwnProperty(c))return;let d=this[c];delete this[c],l.setInputValue(c,d,u)})}return this._ngElementStrategy}constructor(l){super(),this.injector=l}attributeChangedCallback(l,c,u,d){let[m,g]=r[l];this.ngElementStrategy.setInputValue(m,u,g)}connectedCallback(){let l=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),l=!0),this.ngElementStrategy.connect(this),l||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(l=>{let c=new CustomEvent(l.name,{detail:l.value});this.dispatchEvent(c)})}};s.observedAttributes=Object.keys(r);let o=s;return i.forEach(({propName:a,transform:l})=>{Object.defineProperty(o.prototype,a,{get(){return this.ngElementStrategy.getInputValue(a)},set(c){this.ngElementStrategy.setInputValue(a,c,l)},configurable:!0,enumerable:!0})}),o}var ju,bg,_k,Cg,_g,Dg,rD=y(()=>{"use strict";F();Xe();ar();ju={schedule(t,e){let i=setTimeout(t,e);return()=>clearTimeout(i)},scheduleBeforeRender(t){if(typeof window>"u")return ju.schedule(t,0);if(typeof window.requestAnimationFrame>"u")return ju.schedule(t,16);let e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};_k=10,Cg=class{constructor(e,i){this.componentFactory=i.get(pi).resolveComponentFactory(e)}create(e){return new _g(this.componentFactory,e)}},_g=class{constructor(e,i){this.componentFactory=e,this.injector=i,this.eventEmitters=new Xt(1),this.events=this.eventEmitters.pipe(Qe(n=>Zd(...n))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:n})=>n)),this.ngZone=this.injector.get(De),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=ju.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},_k))})}getInputValue(e){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,i,n){this.runInZone(()=>{if(n&&(i=n.call(this.componentRef?.instance,i)),this.componentRef===null){this.initialInputValues.set(e,i);return}vk(i,this.getInputValue(e))&&!(i===void 0&&this.unchangedInputs.has(e))||(this.recordInputChange(e,i),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=i,this.scheduleDetectChanges())})}initializeComponent(e){let i=ft.create({providers:[],parent:this.injector}),n=bk(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(i,n,e),this.viewChangeDetectorRef=this.componentRef.injector.get(It),this.implementsOnChanges=mk(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Qt).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e,transform:i})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e),i)}),this.initialInputValues.clear()}initializeOutputs(e){let i=this.componentFactory.outputs.map(({propName:n,templateName:r})=>e.instance[n].pipe(q(s=>({name:r,value:s}))));this.eventEmitters.next(i)}callNgOnChanges(e){if(!this.implementsOnChanges||this.inputChanges===null)return;let i=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(i)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=ju.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,i){if(!this.implementsOnChanges)return;this.inputChanges===null&&(this.inputChanges={});let n=this.inputChanges[e];if(n){n.currentValue=i;return}let r=this.unchangedInputs.has(e),o=r?void 0:this.getInputValue(e);this.inputChanges[e]=new ws(o,i,r)}detectChanges(){this.componentRef!==null&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}},Dg=class extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}});function oD(t){return new N(3e3,!1)}function Dk(){return new N(3100,!1)}function Ek(){return new N(3101,!1)}function xk(t){return new N(3001,!1)}function Sk(t){return new N(3003,!1)}function Ik(t){return new N(3004,!1)}function Tk(t,e){return new N(3005,!1)}function Mk(){return new N(3006,!1)}function Ak(){return new N(3007,!1)}function Nk(t,e){return new N(3008,!1)}function Rk(t){return new N(3002,!1)}function Ok(t,e,i,n,r){return new N(3010,!1)}function kk(){return new N(3011,!1)}function Fk(){return new N(3012,!1)}function Pk(){return new N(3200,!1)}function Lk(){return new N(3202,!1)}function Vk(){return new N(3013,!1)}function jk(t){return new N(3014,!1)}function $k(t){return new N(3015,!1)}function Bk(t){return new N(3016,!1)}function Uk(t,e){return new N(3404,!1)}function Hk(t){return new N(3502,!1)}function qk(t){return new N(3503,!1)}function zk(){return new N(3300,!1)}function Gk(t){return new N(3504,!1)}function Wk(t){return new N(3301,!1)}function Qk(t,e){return new N(3302,!1)}function Zk(t){return new N(3303,!1)}function Kk(t,e){return new N(3400,!1)}function Yk(t){return new N(3401,!1)}function Jk(t){return new N(3402,!1)}function Xk(t,e){return new N(3505,!1)}function Ki(t){switch(t.length){case 0:return new Vi;case 1:return t[0];default:return new Hs(t)}}function wD(t,e,i=new Map,n=new Map){let r=[],o=[],s=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),u=c==s,d=u&&a||new Map;l.forEach((m,g)=>{let w=g,D=m;if(g!=="offset")switch(w=t.normalizePropertyName(w,r),D){case Hc:D=i.get(g);break;case qn:D=n.get(g);break;default:D=t.normalizeStyleValue(g,w,D,r);break}d.set(w,D)}),u||o.push(d),a=d,s=c}),r.length)throw Hk(r);return o}function Gg(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&Eg(i,"start",t)));break;case"done":t.onDone(()=>n(i&&Eg(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&Eg(i,"destroy",t)));break}}function Eg(t,e,i){let n=i.totalTime,r=!!i.disabled,o=Wg(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,n??t.totalTime,r),s=t._data;return s!=null&&(o._data=s),o}function Wg(t,e,i,n,r="",o=0,s){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:r,totalTime:o,disabled:!!s}}function ln(t,e,i){let n=t.get(e);return n||t.set(e,n=i),n}function sD(t){let e=t.indexOf(":"),i=t.substring(1,e),n=t.slice(e+1);return[i,n]}function Qg(t){let e=t.parentNode||t.host||null;return e===eF?null:e}function tF(t){return t.substring(1,6)=="ebkit"}function nF(t){Nr||(Nr=iF()||{},aD=Nr.style?"WebkitAppearance"in Nr.style:!1);let e=!0;return Nr.style&&!tF(t)&&(e=t in Nr.style,!e&&aD&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Nr.style)),e}function iF(){return typeof document<"u"?document.body:null}function bD(t,e){for(;e;){if(e===t)return!0;e=Qg(e)}return!1}function CD(t,e,i){if(i)return Array.from(t.querySelectorAll(e));let n=t.querySelector(e);return n?[n]:[]}function wi(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Rg(parseFloat(e[1]),e[2])}function Rg(t,e){switch(e){case"s":return t*rF;default:return t}}function Gu(t,e,i){return t.hasOwnProperty("duration")?t:sF(t,e,i)}function sF(t,e,i){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,s="";if(typeof t=="string"){let a=t.match(n);if(a===null)return e.push(oD(t)),{duration:0,delay:0,easing:""};r=Rg(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(o=Rg(parseFloat(l),a[4]));let c=a[5];c&&(s=c)}else r=t;if(!i){let a=!1,l=e.length;r<0&&(e.push(Dk()),a=!0),o<0&&(e.push(Ek()),a=!0),a&&e.splice(l,0,oD(t))}return{duration:r,delay:o,easing:s}}function aF(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function Kn(t,e,i){e.forEach((n,r)=>{let o=Kg(r);i&&!i.has(r)&&i.set(r,t.style[o]),t.style[o]=n})}function Or(t,e){e.forEach((i,n)=>{let r=Kg(n);t.style[r]=""})}function Ia(t){return Array.isArray(t)?t.length==1?t[0]:xb(t):t}function lF(t,e,i){let n=e.params||{},r=ED(t);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||i.push(xk(o))})}function ED(t){let e=[];if(typeof t=="string"){let i;for(;i=Og.exec(t);)e.push(i[1]);Og.lastIndex=0}return e}function Ma(t,e,i){let n=`${t}`,r=n.replace(Og,(o,s)=>{let a=e[s];return a==null&&(i.push(Sk(s)),a=""),a.toString()});return r==n?t:r}function Kg(t){return t.replace(cF,(...e)=>e[1].toUpperCase())}function uF(t,e){return t===0||e===0}function dF(t,e,i){if(i.size&&e.length){let n=e[0],r=[];if(i.forEach((o,s)=>{n.has(s)||r.push(s),n.set(s,o)}),r.length)for(let o=1;o<e.length;o++){let s=e[o];r.forEach(a=>s.set(a,Yg(t,a)))}}return e}function an(t,e,i){switch(e.type){case ie.Trigger:return t.visitTrigger(e,i);case ie.State:return t.visitState(e,i);case ie.Transition:return t.visitTransition(e,i);case ie.Sequence:return t.visitSequence(e,i);case ie.Group:return t.visitGroup(e,i);case ie.Animate:return t.visitAnimate(e,i);case ie.Keyframes:return t.visitKeyframes(e,i);case ie.Style:return t.visitStyle(e,i);case ie.Reference:return t.visitReference(e,i);case ie.AnimateChild:return t.visitAnimateChild(e,i);case ie.AnimateRef:return t.visitAnimateRef(e,i);case ie.Query:return t.visitQuery(e,i);case ie.Stagger:return t.visitStagger(e,i);default:throw Ik(e.type)}}function Yg(t,e){return window.getComputedStyle(t)[e]}function hF(t,e){let i=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>pF(n,i,e)):i.push(t),i}function pF(t,e,i){if(t[0]==":"){let l=mF(t,i);if(typeof l=="function"){e.push(l);return}t=l}let n=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return i.push($k(t)),e;let r=n[1],o=n[2],s=n[3];e.push(cD(r,s));let a=r==Qu&&s==Qu;o[0]=="<"&&!a&&e.push(cD(s,r))}function mF(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,n)=>parseFloat(n)>parseFloat(i);case":decrement":return(i,n)=>parseFloat(n)<parseFloat(i);default:return e.push(Bk(t)),"* => *"}}function cD(t,e){let i=Bu.has(t)||Uu.has(t),n=Bu.has(e)||Uu.has(e);return(r,o)=>{let s=t==Qu||t==r,a=e==Qu||e==o;return!s&&i&&typeof r=="boolean"&&(s=r?Bu.has(t):Uu.has(t)),!a&&n&&typeof o=="boolean"&&(a=o?Bu.has(e):Uu.has(e)),s&&a}}function SD(t,e,i,n){return new kg(t).build(e,i,n)}function vF(t){let e=!!t.split(/\s*,\s*/).find(i=>i==xD);return e&&(t=t.replace(gF,"")),t=t.replace(/@\*/g,zu).replace(/@\w+/g,i=>zu+"-"+i.slice(1)).replace(/:animating/g,Ng),[t,e]}function yF(t){return t?b({},t):null}function wF(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(i=>{if(i instanceof Map&&i.has("offset")){let n=i;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}return e}function bF(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=Gu(t,e).duration;return xg(o,0,"")}let i=t;if(i.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=xg(0,0,"");return o.dynamic=!0,o.strValue=i,o}let r=Gu(i,e);return xg(r.duration,r.delay,r.easing)}function Rr(t){return t?(t=b({},t),t.params&&(t.params=yF(t.params))):t={},t}function xg(t,e,i){return{duration:t,delay:e,easing:i}}function Jg(t,e,i,n,r,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}function ID(t,e,i,n,r,o=new Map,s=new Map,a,l,c=[]){return new Pg().buildKeyframes(t,e,i,n,r,o,s,a,l,c)}function dD(t,e=3){let i=Math.pow(10,e-1);return Math.round(t*i)/i}function SF(t,e){let i=new Map,n;return t.forEach(r=>{if(r==="*"){n??=e.keys();for(let o of n)i.set(o,qn)}else for(let[o,s]of r)i.set(o,s)}),i}function fD(t,e,i,n,r,o,s,a,l,c,u,d,m){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:i,fromStyles:o,toState:n,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:m}}function IF(t,e,i,n,r){return t.some(o=>o(e,i,n,r))}function TD(t,e){let i=b({},e);return Object.entries(t).forEach(([n,r])=>{r!=null&&(i[n]=r)}),i}function TF(t,e,i){return new $g(t,e,i)}function MF(t,e,i){let n=[(s,a)=>!0],r={type:ie.Sequence,steps:[],options:null},o={type:ie.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new Yu(t,o,e)}function hD(t,e,i){t.has(e)?t.has(i)||t.set(i,t.get(e)):t.has(i)&&t.set(e,t.get(i))}function LF(t,e,i){let n=t.get(e);if(n){if(n.length){let r=n.indexOf(i);n.splice(r,1)}n.length==0&&t.delete(e)}return n}function VF(t){return t??null}function Hu(t){return t&&t.nodeType===1}function jF(t){return t=="start"||t=="done"}function mD(t,e){let i=t.style.display;return t.style.display=e??"none",i}function gD(t,e,i,n,r){let o=[];i.forEach(l=>o.push(mD(l)));let s=[];n.forEach((l,c)=>{let u=new Map;l.forEach(d=>{let m=e.computeStyle(c,d,r);u.set(d,m),(!m||m.length==0)&&(c[An]=PF,s.push(c))}),t.set(c,u)});let a=0;return i.forEach(l=>mD(l,o[a++])),s}function vD(t,e){let i=new Map;if(t.forEach(a=>i.set(a,[])),e.length==0)return i;let n=1,r=new Set(e),o=new Map;function s(a){if(!a)return n;let l=o.get(a);if(l)return l;let c=a.parentNode;return i.has(c)?l=c:r.has(c)?l=n:l=s(c),o.set(a,l),l}return e.forEach(a=>{let l=s(a);l!==n&&i.get(l).push(a)}),i}function mn(t,e){t.classList?.add(e)}function Wo(t,e){t.classList?.remove(e)}function $F(t,e,i){Ki(i).onDone(()=>t.processLeaveNode(e))}function BF(t){let e=[];return AD(t,e),e}function AD(t,e){for(let i=0;i<t.length;i++){let n=t[i];n instanceof Hs?AD(n.players,e):e.push(n)}}function UF(t,e){let i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let r=0;r<i.length;r++){let o=i[r];if(!e.hasOwnProperty(o)||t[o]!==e[o])return!1}return!0}function yD(t,e,i){let n=i.get(t);if(!n)return!1;let r=e.get(t);return r?n.forEach(o=>r.add(o)):e.set(t,n),i.delete(t),!0}function HF(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=Mg(e[0]),e.length>1&&(n=Mg(e[e.length-1]))):e instanceof Map&&(i=Mg(e)),i||n?new qg(t,i,n):null}function Mg(t){let e=null;return t.forEach((i,n)=>{qF(n)&&(e=e||new Map,e.set(n,i))}),e}function qF(t){return t==="display"||t==="position"}function zF(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function GF(t){let e=t.indexOf("."),i=t.substring(0,e),n=t.slice(e+1);return[i,n]}var eF,Nr,aD,Zg,Xg,kr,Fr,rF,_D,oF,DD,Ag,$u,zu,lD,Ng,Og,cF,fF,Wu,Qu,Bu,Uu,xD,gF,uD,kg,Fg,Aa,CF,_F,DF,EF,xF,Pg,Zu,Lg,Ku,Vg,Sg,Yu,jg,$g,AF,Bg,pD,NF,Ig,RF,OF,kF,FF,MD,PF,An,Na,Ta,Tg,Ug,Hg,Ra,Zo,Qo,qg,Ju,Xu,qu,ND,ed,zg,td,e0=y(()=>{"use strict";Do();F();F();eF=typeof document>"u"?null:document.documentElement;Nr=null,aD=!1;Zg=(()=>{let e=class e{validateStyleProperty(n){return nF(n)}matchesElement(n,r){return!1}containsElement(n,r){return bD(n,r)}getParentElement(n){return Qg(n)}query(n,r,o){return CD(n,r,o)}computeStyle(n,r,o){return o||""}animate(n,r,o,s,a,l=[],c){return new Vi(o,s)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac});let t=e;return t})(),Xg=class Xg{};Xg.NOOP=new Zg;kr=Xg,Fr=class{},rF=1e3,_D="{{",oF="}}",DD="ng-enter",Ag="ng-leave",$u="ng-trigger",zu=".ng-trigger",lD="ng-animating",Ng=".ng-animating";Og=new RegExp(`${_D}\\s*(.+?)\\s*${oF}`,"g");cF=/-+([a-z0-9])/g;fF=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Wu=class extends Fr{normalizePropertyName(e,i){return Kg(e)}normalizeStyleValue(e,i,n,r){let o="",s=n.toString().trim();if(fF.has(i)&&n!==0&&n!=="0")if(typeof n=="number")o="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(Tk(e,n))}return s+o}},Qu="*";Bu=new Set(["true","1"]),Uu=new Set(["false","0"]);xD=":self",gF=new RegExp(`s*${xD}s*,?`,"g");uD="",kg=class{constructor(e){this._driver=e}build(e,i,n){let r=new Fg(i);return this._resetContextStyleTimingState(r),an(this,Ia(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=uD,e.collectedStyles=new Map,e.collectedStyles.set(uD,new Map),e.currentTime=0}visitTrigger(e,i){let n=i.queryCount=0,r=i.depCount=0,o=[],s=[];return e.name.charAt(0)=="@"&&i.errors.push(Mk()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),a.type==ie.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,i))}),l.name=c}else if(a.type==ie.Transition){let l=this.visitTransition(a,i);n+=l.queryCount,r+=l.depCount,s.push(l)}else i.errors.push(Ak())}),{type:ie.Trigger,name:e.name,states:o,transitions:s,queryCount:n,depCount:r,options:null}}visitState(e,i){let n=this.visitStyle(e.styles,i),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){let o=new Set,s=r||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{ED(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&i.errors.push(Nk(e.name,[...o.values()]))}return{type:ie.State,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,i){i.queryCount=0,i.depCount=0;let n=an(this,Ia(e.animation),i),r=hF(e.expr,i.errors);return{type:ie.Transition,matchers:r,animation:n,queryCount:i.queryCount,depCount:i.depCount,options:Rr(e.options)}}visitSequence(e,i){return{type:ie.Sequence,steps:e.steps.map(n=>an(this,n,i)),options:Rr(e.options)}}visitGroup(e,i){let n=i.currentTime,r=0,o=e.steps.map(s=>{i.currentTime=n;let a=an(this,s,i);return r=Math.max(r,i.currentTime),a});return i.currentTime=r,{type:ie.Group,steps:o,options:Rr(e.options)}}visitAnimate(e,i){let n=bF(e.timings,i.errors);i.currentAnimateTimings=n;let r,o=e.styles?e.styles:Tt({});if(o.type==ie.Keyframes)r=this.visitKeyframes(o,i);else{let s=e.styles,a=!1;if(!s){a=!0;let c={};n.easing&&(c.easing=n.easing),s=Tt(c)}i.currentTime+=n.duration+n.delay;let l=this.visitStyle(s,i);l.isEmptyStep=a,r=l}return i.currentAnimateTimings=null,{type:ie.Animate,timings:n,style:r,options:null}}visitStyle(e,i){let n=this._makeStyleAst(e,i);return this._validateStyleAst(n,i),n}_makeStyleAst(e,i){let n=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===qn?n.push(a):i.errors.push(Rk(a)):n.push(new Map(Object.entries(a)));let o=!1,s=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let l of a.values())if(l.toString().indexOf(_D)>=0){o=!0;break}}}),{type:ie.Style,styles:n,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,i){let n=i.currentAnimateTimings,r=i.currentTime,o=i.currentTime;n&&o>0&&(o-=n.duration+n.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let c=i.collectedStyles.get(i.currentQuerySelector),u=c.get(l),d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(i.errors.push(Ok(l,u.startTime,u.endTime,o,r)),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),i.options&&lF(a,i.options,i.errors)})})}visitKeyframes(e,i){let n={type:ie.Keyframes,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(kk()),n;let r=1,o=0,s=[],a=!1,l=!1,c=0,u=e.steps.map(O=>{let K=this._makeStyleAst(O,i),we=K.offset!=null?K.offset:wF(K.styles),oe=0;return we!=null&&(o++,oe=K.offset=we),l=l||oe<0||oe>1,a=a||oe<c,c=oe,s.push(oe),K});l&&i.errors.push(Fk()),a&&i.errors.push(Pk());let d=e.steps.length,m=0;o>0&&o<d?i.errors.push(Lk()):o==0&&(m=r/(d-1));let g=d-1,w=i.currentTime,D=i.currentAnimateTimings,S=D.duration;return u.forEach((O,K)=>{let we=m>0?K==g?1:m*K:s[K],oe=we*S;i.currentTime=w+D.delay+oe,D.duration=oe,this._validateStyleAst(O,i),O.offset=we,n.styles.push(O)}),n}visitReference(e,i){return{type:ie.Reference,animation:an(this,Ia(e.animation),i),options:Rr(e.options)}}visitAnimateChild(e,i){return i.depCount++,{type:ie.AnimateChild,options:Rr(e.options)}}visitAnimateRef(e,i){return{type:ie.AnimateRef,animation:this.visitReference(e.animation,i),options:Rr(e.options)}}visitQuery(e,i){let n=i.currentQuerySelector,r=e.options||{};i.queryCount++,i.currentQuery=e;let[o,s]=vF(e.selector);i.currentQuerySelector=n.length?n+" "+o:o,ln(i.collectedStyles,i.currentQuerySelector,new Map);let a=an(this,Ia(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=n,{type:ie.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:Rr(e.options)}}visitStagger(e,i){i.currentQuery||i.errors.push(Vk());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Gu(e.timings,i.errors,!0);return{type:ie.Stagger,animation:an(this,Ia(e.animation),i),timings:n,options:null}}};Fg=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};Aa=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,i){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...i)}has(e){return this._map.has(e)}clear(){this._map.clear()}},CF=1,_F=":enter",DF=new RegExp(_F,"g"),EF=":leave",xF=new RegExp(EF,"g");Pg=class{buildKeyframes(e,i,n,r,o,s,a,l,c,u=[]){c=c||new Aa;let d=new Lg(e,i,c,r,o,u,[]);d.options=l;let m=l.delay?wi(l.delay):0;d.currentTimeline.delayNextStep(m),d.currentTimeline.setStyles([s],null,d.errors,l),an(this,n,d);let g=d.timelines.filter(w=>w.containsAnimation());if(g.length&&a.size){let w;for(let D=g.length-1;D>=0;D--){let S=g[D];if(S.element===i){w=S;break}}w&&!w.allowOnlyTimelineStyles()&&w.setStyles([a],null,d.errors,l)}return g.length?g.map(w=>w.buildKeyframes()):[Jg(i,[],[],[],0,m,"",!1)]}visitTrigger(e,i){}visitState(e,i){}visitTransition(e,i){}visitAnimateChild(e,i){let n=i.subInstructions.get(i.element);if(n){let r=i.createSubContext(e.options),o=i.currentTimeline.currentTime,s=this._visitSubInstructions(n,r,r.options);o!=s&&i.transformIntoNewTimeline(s)}i.previousNode=e}visitAnimateRef(e,i){let n=i.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,n),this.visitReference(e.animation,n),i.transformIntoNewTimeline(n.currentTimeline.currentTime),i.previousNode=e}_applyAnimationRefDelays(e,i,n){for(let r of e){let o=r?.delay;if(o){let s=typeof o=="number"?o:wi(Ma(o,r?.params??{},i.errors));n.delayNextStep(s)}}}_visitSubInstructions(e,i,n){let o=i.currentTimeline.currentTime,s=n.duration!=null?wi(n.duration):null,a=n.delay!=null?wi(n.delay):null;return s!==0&&e.forEach(l=>{let c=i.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(e,i){i.updateOptions(e.options,!0),an(this,e.animation,i),i.previousNode=e}visitSequence(e,i){let n=i.subContextCount,r=i,o=e.options;if(o&&(o.params||o.delay)&&(r=i.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==ie.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Zu);let s=wi(o.delay);r.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>an(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),i.previousNode=e}visitGroup(e,i){let n=[],r=i.currentTimeline.currentTime,o=e.options&&e.options.delay?wi(e.options.delay):0;e.steps.forEach(s=>{let a=i.createSubContext(e.options);o&&a.delayNextStep(o),an(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(s=>i.currentTimeline.mergeTimelineCollectedStyles(s)),i.transformIntoNewTimeline(r),i.previousNode=e}_visitTiming(e,i){if(e.dynamic){let n=e.strValue,r=i.params?Ma(n,i.params,i.errors):n;return Gu(r,i.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,i){let n=i.currentAnimateTimings=this._visitTiming(e.timings,i),r=i.currentTimeline;n.delay&&(i.incrementTime(n.delay),r.snapshotCurrentStyles());let o=e.style;o.type==ie.Keyframes?this.visitKeyframes(o,i):(i.incrementTime(n.duration),this.visitStyle(o,i),r.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}visitStyle(e,i){let n=i.currentTimeline,r=i.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();let o=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(o):n.setStyles(e.styles,o,i.errors,i.options),i.previousNode=e}visitKeyframes(e,i){let n=i.currentAnimateTimings,r=i.currentTimeline.duration,o=n.duration,a=i.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*o),a.setStyles(l.styles,l.easing,i.errors,i.options),a.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(r+o),i.previousNode=e}visitQuery(e,i){let n=i.currentTimeline.currentTime,r=e.options||{},o=r.delay?wi(r.delay):0;o&&(i.previousNode.type===ie.Style||n==0&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Zu);let s=n,a=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,i.errors);i.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{i.currentQueryIndex=u;let d=i.createSubContext(e.options,c);o&&d.delayNextStep(o),c===i.element&&(l=d.currentTimeline),an(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let m=d.currentTimeline.currentTime;s=Math.max(s,m)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(s),l&&(i.currentTimeline.mergeTimelineCollectedStyles(l),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}visitStagger(e,i){let n=i.parentContext,r=i.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(i.currentQueryTotal-1),l=s*i.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let u=i.currentTimeline;l&&u.delayNextStep(l);let d=u.currentTime;an(this,e.animation,i),i.previousNode=e,n.currentStaggerTime=r.currentTime-d+(r.startTime-n.currentTimeline.startTime)}},Zu={},Lg=class t{constructor(e,i,n,r,o,s,a,l){this._driver=e,this.element=i,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Zu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ku(this._driver,i,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,i){if(!e)return;let n=e,r=this.options;n.duration!=null&&(r.duration=wi(n.duration)),n.delay!=null&&(r.delay=wi(n.delay));let o=n.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!i||!s.hasOwnProperty(a))&&(s[a]=Ma(o[a],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let i=this.options.params;if(i){let n=e.params={};Object.keys(i).forEach(r=>{n[r]=i[r]})}}return e}createSubContext(e=null,i,n){let r=i||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=Zu,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,i,n){let r={duration:i??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},o=new Vg(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,i,n,r,o,s){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(DF,"."+this._enterClassName),e=e.replace(xF,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!o&&a.length==0&&s.push(jk(i)),a}},Ku=class t{constructor(e,i,n,r){this._driver=e,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let i=this._keyframes.size===1&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,i){return this.applyStylesToKeyframe(),new t(this._driver,e,i||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=CF,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[i,n]of this._globalTimelineStyles)this._backFill.set(i,n||qn),this._currentKeyframe.set(i,qn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,i,n,r){i&&this._previousKeyframe.set("easing",i);let o=r&&r.params||{},s=SF(e,this._globalTimelineStyles);for(let[a,l]of s){let c=Ma(l,o,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??qn),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,i)=>{this._currentKeyframe.set(i,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,e)}))}snapshotCurrentStyles(){for(let[e,i]of this._localTimelineStyles)this._pendingStyles.set(e,i),this._updateStyle(e,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let i in this._currentKeyframe)e.push(i);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((i,n)=>{let r=this._styleSummary.get(n);(!r||i.time>r.time)&&this._updateStyle(n,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,i=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((u,d)=>{u===Hc?e.add(d):u===qn&&i.add(d)}),n||c.set("offset",l/this.duration),r.push(c)});let o=[...e.values()],s=[...i.values()];if(n){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Jg(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}},Vg=class extends Ku{constructor(e,i,n,r,o,s,a=!1){super(e,i,s.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:i,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&i){let o=[],s=n+i,a=i/s,l=new Map(e[0]);l.set("offset",0),o.push(l);let c=new Map(e[0]);c.set("offset",dD(a)),o.push(c);let u=e.length-1;for(let d=1;d<=u;d++){let m=new Map(e[d]),g=m.get("offset"),w=i+g*n;m.set("offset",dD(w/s)),o.push(m)}n=s,i=0,r="",e=o}return Jg(this.element,e,this.preStyleProps,this.postStyleProps,n,i,r,!0)}};Sg={},Yu=class{constructor(e,i,n){this._triggerName=e,this.ast=i,this._stateStyles=n}match(e,i,n,r){return IF(this.ast.matchers,e,i,n,r)}buildStyles(e,i,n){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(i,n):new Map}build(e,i,n,r,o,s,a,l,c,u){let d=[],m=this.ast.options&&this.ast.options.params||Sg,g=a&&a.params||Sg,w=this.buildStyles(n,g,d),D=l&&l.params||Sg,S=this.buildStyles(r,D,d),O=new Set,K=new Map,we=new Map,oe=r==="void",pt={params:TD(D,m),delay:this.ast.options?.delay},Le=u?[]:ID(e,i,this.ast.animation,o,s,w,S,pt,c,d),Ve=0;return Le.forEach(lt=>{Ve=Math.max(lt.duration+lt.delay,Ve)}),d.length?fD(i,this._triggerName,n,r,oe,w,S,[],[],K,we,Ve,d):(Le.forEach(lt=>{let Yn=lt.element,bi=ln(K,Yn,new Set);lt.preStyleProps.forEach(Yi=>bi.add(Yi));let l0=ln(we,Yn,new Set);lt.postStyleProps.forEach(Yi=>l0.add(Yi)),Yn!==i&&O.add(Yn)}),fD(i,this._triggerName,n,r,oe,w,S,Le,[...O.values()],K,we,Ve))}};jg=class{constructor(e,i,n){this.styles=e,this.defaultParams=i,this.normalizer=n}buildStyles(e,i){let n=new Map,r=TD(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=Ma(s,r,i));let l=this.normalizer.normalizePropertyName(a,i);s=this.normalizer.normalizeStyleValue(a,l,s,i),n.set(a,s)})}),n}};$g=class{constructor(e,i,n){this.name=e,this.ast=i,this._normalizer=n,this.transitionFactories=[],this.states=new Map,i.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new jg(r.style,o,n))}),hD(this.states,"true","1"),hD(this.states,"false","0"),i.transitions.forEach(r=>{this.transitionFactories.push(new Yu(e,r,this.states))}),this.fallbackTransition=MF(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,i,n,r){return this.transitionFactories.find(s=>s.match(e,i,n,r))||null}matchStyles(e,i,n){return this.fallbackTransition.buildStyles(e,i,n)}};AF=new Aa,Bg=class{constructor(e,i,n){this.bodyNode=e,this._driver=i,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,i){let n=[],r=[],o=SD(this._driver,i,n,r);if(n.length)throw qk(n);r.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,i,n){let r=e.element,o=wD(this._normalizer,e.keyframes,i,n);return this._driver.animate(r,o,e.duration,e.delay,e.easing,[],!0)}create(e,i,n={}){let r=[],o=this._animations.get(e),s,a=new Map;if(o?(s=ID(this._driver,i,o,DD,Ag,new Map,new Map,n,AF,r),s.forEach(u=>{let d=ln(a,u.element,new Map);u.postStyleProps.forEach(m=>d.set(m,null))})):(r.push(zk()),s=[]),r.length)throw Gk(r);a.forEach((u,d)=>{u.forEach((m,g)=>{u.set(g,this._driver.computeStyle(d,g,qn))})});let l=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),c=Ki(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);let n=this.players.indexOf(i);n>=0&&this.players.splice(n,1)}_getPlayer(e){let i=this._playersById.get(e);if(!i)throw Wk(e);return i}listen(e,i,n,r){let o=Wg(i,"","","");return Gg(this._getPlayer(e),n,o,r),()=>{}}command(e,i,n,r){if(n=="register"){this.register(e,r[0]);return}if(n=="create"){let s=r[0]||{};this.create(e,i,s);return}let o=this._getPlayer(e);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},pD="ng-animate-queued",NF=".ng-animate-queued",Ig="ng-animate-disabled",RF=".ng-animate-disabled",OF="ng-star-inserted",kF=".ng-star-inserted",FF=[],MD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},PF={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},An="__ng_removed",Na=class{get params(){return this.options.params}constructor(e,i=""){this.namespaceId=i;let n=e&&e.hasOwnProperty("value"),r=n?e.value:e;if(this.value=VF(r),n){let o=e,{value:s}=o,a=Ko(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let i=e.params;if(i){let n=this.options.params;Object.keys(i).forEach(r=>{n[r]==null&&(n[r]=i[r])})}}},Ta="void",Tg=new Na(Ta),Ug=class{constructor(e,i,n){this.id=e,this.hostElement=i,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,mn(i,this._hostClassName)}listen(e,i,n,r){if(!this._triggers.has(i))throw Qk(n,i);if(n==null||n.length==0)throw Zk(i);if(!jF(n))throw Kk(n,i);let o=ln(this._elementListeners,e,[]),s={name:i,phase:n,callback:r};o.push(s);let a=ln(this._engine.statesByElement,e,new Map);return a.has(i)||(mn(e,$u),mn(e,$u+"-"+i),a.set(i,Tg)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(i)||a.delete(i)})}}register(e,i){return this._triggers.has(e)?!1:(this._triggers.set(e,i),!0)}_getTrigger(e){let i=this._triggers.get(e);if(!i)throw Yk(e);return i}trigger(e,i,n,r=!0){let o=this._getTrigger(i),s=new Ra(this.id,i,e),a=this._engine.statesByElement.get(e);a||(mn(e,$u),mn(e,$u+"-"+i),this._engine.statesByElement.set(e,a=new Map));let l=a.get(i),c=new Na(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(i,c),l||(l=Tg),!(c.value===Ta)&&l.value===c.value){if(!UF(l.params,c.params)){let D=[],S=o.matchStyles(l.value,l.params,D),O=o.matchStyles(c.value,c.params,D);D.length?this._engine.reportError(D):this._engine.afterFlush(()=>{Or(e,S),Kn(e,O)})}return}let m=ln(this._engine.playersByElement,e,[]);m.forEach(D=>{D.namespaceId==this.id&&D.triggerName==i&&D.queued&&D.destroy()});let g=o.matchTransition(l.value,c.value,e,c.params),w=!1;if(!g){if(!r)return;g=o.fallbackTransition,w=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:g,fromState:l,toState:c,player:s,isFallbackTransition:w}),w||(mn(e,pD),s.onStart(()=>{Wo(e,pD)})),s.onDone(()=>{let D=this.players.indexOf(s);D>=0&&this.players.splice(D,1);let S=this._engine.playersByElement.get(e);if(S){let O=S.indexOf(s);O>=0&&S.splice(O,1)}}),this.players.push(s),m.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(i=>i.delete(e)),this._elementListeners.forEach((i,n)=>{this._elementListeners.set(n,i.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let i=this._engine.playersByElement.get(e);i&&(i.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,i){let n=this._engine.driver.query(e,zu,!0);n.forEach(r=>{if(r[An])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,i,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,i,n,r){let o=this._engine.statesByElement.get(e),s=new Map;if(o){let a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){let u=this.trigger(e,c,Ta,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,s),n&&Ki(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let i=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(i&&n){let r=new Set;i.forEach(o=>{let s=o.name;if(r.has(s))return;r.add(s);let l=this._triggers.get(s).fallbackTransition,c=n.get(s)||Tg,u=new Na(Ta),d=new Ra(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,i){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),this.triggerLeaveAnimation(e,i,!0))return;let r=!1;if(n.totalAnimations){let o=n.players.length?n.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else{let s=e;for(;s=s.parentNode;)if(n.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,i);else{let o=e[An];(!o||o===MD)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,i))}}insertNode(e,i){mn(e,this._hostClassName)}drainQueuedTransitions(e){let i=[];return this._queue.forEach(n=>{let r=n.player;if(r.destroyed)return;let o=n.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==n.triggerName){let l=Wg(o,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Gg(n.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):i.push(n)}),this._queue=[],i.sort((n,r)=>{let o=n.transition.ast.depCount,s=r.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(e){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Hg=class{_onRemovalComplete(e,i){this.onRemovalComplete(e,i)}constructor(e,i,n,r){this.bodyNode=e,this.driver=i,this._normalizer=n,this.scheduler=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,s)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(i=>{i.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,i){let n=new Ug(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(n,i):(this.newHostElements.set(i,n),this.collectEnterElement(i)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,i){let n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let s=!1,a=this.driver.getParentElement(i);for(;a;){let l=r.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||n.unshift(e)}else n.push(e);return r.set(i,e),e}register(e,i){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,i)),n}registerTrigger(e,i,n){let r=this._namespaceLookup[e];r&&r.register(i,n)&&this.totalAnimations++}destroy(e,i){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(i),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let i=new Set,n=this.statesByElement.get(e);if(n){for(let r of n.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&i.add(o)}}return i}trigger(e,i,n,r){if(Hu(i)){let o=this._fetchNamespace(e);if(o)return o.trigger(i,n,r),!0}return!1}insertNode(e,i,n,r){if(!Hu(i))return;let o=i[An];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(i);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(i,n)}r&&this.collectEnterElement(i)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),mn(e,Ig)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Wo(e,Ig))}removeNode(e,i,n){if(Hu(i)){this.scheduler?.notify();let r=e?this._fetchNamespace(e):null;r?r.removeNode(i,n):this.markElementAsRemoved(e,i,!1,n);let o=this.namespacesByHostElement.get(i);o&&o.id!==e&&o.removeNode(i,n)}else this._onRemovalComplete(i,n)}markElementAsRemoved(e,i,n,r,o){this.collectedLeaveElements.push(i),i[An]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,i,n,r,o){return Hu(i)?this._fetchNamespace(e).listen(i,n,r,o):()=>{}}_buildInstruction(e,i,n,r,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,i,o)}destroyInnerAnimations(e){let i=this.driver.query(e,zu,!0);i.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(i=this.driver.query(e,Ng,!0),i.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let i=this.playersByElement.get(e);i&&i.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let i=this.playersByQueriedElement.get(e);i&&i.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ki(this.players).onDone(()=>e());e()})}processLeaveNode(e){let i=e[An];if(i&&i.setForRemoval){if(e[An]=MD,i.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}e.classList?.contains(Ig)&&this.markElementAsDisabled(e,!1),this.driver.query(e,RF,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let r=this.collectedEnterElements[n];mn(r,OF)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{i=this._flushAnimations(n,e)}finally{for(let r=0;r<n.length;r++)n[r]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let r=this.collectedLeaveElements[n];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],i.length?Ki(i).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(e){throw Jk(e)}_flushAnimations(e,i){let n=new Aa,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(H=>{u.add(H);let Q=this.driver.query(H,NF,!0);for(let Y=0;Y<Q.length;Y++)u.add(Q[Y])});let d=this.bodyNode,m=Array.from(this.statesByElement.keys()),g=vD(m,this.collectedEnterElements),w=new Map,D=0;g.forEach((H,Q)=>{let Y=DD+D++;w.set(Q,Y),H.forEach(be=>mn(be,Y))});let S=[],O=new Set,K=new Set;for(let H=0;H<this.collectedLeaveElements.length;H++){let Q=this.collectedLeaveElements[H],Y=Q[An];Y&&Y.setForRemoval&&(S.push(Q),O.add(Q),Y.hasAnimation?this.driver.query(Q,kF,!0).forEach(be=>O.add(be)):K.add(Q))}let we=new Map,oe=vD(m,Array.from(O));oe.forEach((H,Q)=>{let Y=Ag+D++;we.set(Q,Y),H.forEach(be=>mn(be,Y))}),e.push(()=>{g.forEach((H,Q)=>{let Y=w.get(Q);H.forEach(be=>Wo(be,Y))}),oe.forEach((H,Q)=>{let Y=we.get(Q);H.forEach(be=>Wo(be,Y))}),S.forEach(H=>{this.processLeaveNode(H)})});let pt=[],Le=[];for(let H=this._namespaceList.length-1;H>=0;H--)this._namespaceList[H].drainQueuedTransitions(i).forEach(Y=>{let be=Y.player,ct=Y.element;if(pt.push(be),this.collectedEnterElements.length){let Dt=ct[An];if(Dt&&Dt.setForMove){if(Dt.previousTriggersValues&&Dt.previousTriggersValues.has(Y.triggerName)){let Ji=Dt.previousTriggersValues.get(Y.triggerName),cn=this.statesByElement.get(Y.element);if(cn&&cn.has(Y.triggerName)){let ka=cn.get(Y.triggerName);ka.value=Ji,cn.set(Y.triggerName,ka)}}be.destroy();return}}let Nn=!d||!this.driver.containsElement(d,ct),Jt=we.get(ct),Ci=w.get(ct),Ue=this._buildInstruction(Y,n,Ci,Jt,Nn);if(Ue.errors&&Ue.errors.length){Le.push(Ue);return}if(Nn){be.onStart(()=>Or(ct,Ue.fromStyles)),be.onDestroy(()=>Kn(ct,Ue.toStyles)),r.push(be);return}if(Y.isFallbackTransition){be.onStart(()=>Or(ct,Ue.fromStyles)),be.onDestroy(()=>Kn(ct,Ue.toStyles)),r.push(be);return}let d0=[];Ue.timelines.forEach(Dt=>{Dt.stretchStartingKeyframe=!0,this.disabledNodes.has(Dt.element)||d0.push(Dt)}),Ue.timelines=d0,n.append(ct,Ue.timelines);let qE={instruction:Ue,player:be,element:ct};s.push(qE),Ue.queriedElements.forEach(Dt=>ln(a,Dt,[]).push(be)),Ue.preStyleProps.forEach((Dt,Ji)=>{if(Dt.size){let cn=l.get(Ji);cn||l.set(Ji,cn=new Set),Dt.forEach((ka,ad)=>cn.add(ad))}}),Ue.postStyleProps.forEach((Dt,Ji)=>{let cn=c.get(Ji);cn||c.set(Ji,cn=new Set),Dt.forEach((ka,ad)=>cn.add(ad))})});if(Le.length){let H=[];Le.forEach(Q=>{H.push(Xk(Q.triggerName,Q.errors))}),pt.forEach(Q=>Q.destroy()),this.reportError(H)}let Ve=new Map,lt=new Map;s.forEach(H=>{let Q=H.element;n.has(Q)&&(lt.set(Q,Q),this._beforeAnimationBuild(H.player.namespaceId,H.instruction,Ve))}),r.forEach(H=>{let Q=H.element;this._getPreviousPlayers(Q,!1,H.namespaceId,H.triggerName,null).forEach(be=>{ln(Ve,Q,[]).push(be),be.destroy()})});let Yn=S.filter(H=>yD(H,l,c)),bi=new Map;gD(bi,this.driver,K,c,qn).forEach(H=>{yD(H,l,c)&&Yn.push(H)});let Yi=new Map;g.forEach((H,Q)=>{gD(Yi,this.driver,new Set(H),l,Hc)}),Yn.forEach(H=>{let Q=bi.get(H),Y=Yi.get(H);bi.set(H,new Map([...Q?.entries()??[],...Y?.entries()??[]]))});let sd=[],c0=[],u0={};s.forEach(H=>{let{element:Q,player:Y,instruction:be}=H;if(n.has(Q)){if(u.has(Q)){Y.onDestroy(()=>Kn(Q,be.toStyles)),Y.disabled=!0,Y.overrideTotalTime(be.totalTime),r.push(Y);return}let ct=u0;if(lt.size>1){let Jt=Q,Ci=[];for(;Jt=Jt.parentNode;){let Ue=lt.get(Jt);if(Ue){ct=Ue;break}Ci.push(Jt)}Ci.forEach(Ue=>lt.set(Ue,ct))}let Nn=this._buildAnimation(Y.namespaceId,be,Ve,o,Yi,bi);if(Y.setRealPlayer(Nn),ct===u0)sd.push(Y);else{let Jt=this.playersByElement.get(ct);Jt&&Jt.length&&(Y.parentPlayer=Ki(Jt)),r.push(Y)}}else Or(Q,be.fromStyles),Y.onDestroy(()=>Kn(Q,be.toStyles)),c0.push(Y),u.has(Q)&&r.push(Y)}),c0.forEach(H=>{let Q=o.get(H.element);if(Q&&Q.length){let Y=Ki(Q);H.setRealPlayer(Y)}}),r.forEach(H=>{H.parentPlayer?H.syncPlayerEvents(H.parentPlayer):H.destroy()});for(let H=0;H<S.length;H++){let Q=S[H],Y=Q[An];if(Wo(Q,Ag),Y&&Y.hasAnimation)continue;let be=[];if(a.size){let Nn=a.get(Q);Nn&&Nn.length&&be.push(...Nn);let Jt=this.driver.query(Q,Ng,!0);for(let Ci=0;Ci<Jt.length;Ci++){let Ue=a.get(Jt[Ci]);Ue&&Ue.length&&be.push(...Ue)}}let ct=be.filter(Nn=>!Nn.destroyed);ct.length?$F(this,Q,ct):this.processLeaveNode(Q)}return S.length=0,sd.forEach(H=>{this.players.push(H),H.onDone(()=>{H.destroy();let Q=this.players.indexOf(H);this.players.splice(Q,1)}),H.play()}),sd}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,i,n,r,o){let s=[];if(i){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let l=!o||o==Ta;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(n||r)&&(s=s.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(e,i,n){let r=i.triggerName,o=i.element,s=i.isRemovalTransition?void 0:e,a=i.isRemovalTransition?void 0:r;for(let l of i.timelines){let c=l.element,u=c!==o,d=ln(n,c,[]);this._getPreviousPlayers(c,u,s,a,i.toState).forEach(g=>{let w=g.getRealPlayer();w.beforeDestroy&&w.beforeDestroy(),g.destroy(),d.push(g)})}Or(o,i.fromStyles)}_buildAnimation(e,i,n,r,o,s){let a=i.triggerName,l=i.element,c=[],u=new Set,d=new Set,m=i.timelines.map(w=>{let D=w.element;u.add(D);let S=D[An];if(S&&S.removedBeforeQueried)return new Vi(w.duration,w.delay);let O=D!==l,K=BF((n.get(D)||FF).map(Ve=>Ve.getRealPlayer())).filter(Ve=>{let lt=Ve;return lt.element?lt.element===D:!1}),we=o.get(D),oe=s.get(D),pt=wD(this._normalizer,w.keyframes,we,oe),Le=this._buildPlayer(w,pt,K);if(w.subTimeline&&r&&d.add(D),O){let Ve=new Ra(e,a,D);Ve.setRealPlayer(Le),c.push(Ve)}return Le});c.forEach(w=>{ln(this.playersByQueriedElement,w.element,[]).push(w),w.onDone(()=>LF(this.playersByQueriedElement,w.element,w))}),u.forEach(w=>mn(w,lD));let g=Ki(m);return g.onDestroy(()=>{u.forEach(w=>Wo(w,lD)),Kn(l,i.toStyles)}),d.forEach(w=>{ln(r,w,[]).push(g)}),g}_buildPlayer(e,i,n){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,n):new Vi(e.duration,e.delay)}},Ra=class{constructor(e,i,n){this.namespaceId=e,this.triggerName=i,this.element=n,this._player=new Vi,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((i,n)=>{i.forEach(r=>Gg(e,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let i=this._player;i.triggerCallback&&e.onStart(()=>i.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,i){ln(this._queuedCallbacks,e,[]).push(i)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let i=this._player;i.triggerCallback&&i.triggerCallback(e)}};Zo=class{constructor(e,i,n,r){this._driver=i,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new Hg(e.body,i,n,r),this._timelineEngine=new Bg(e.body,i,n),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s)}registerTrigger(e,i,n,r,o){let s=e+"-"+r,a=this._triggerCache[s];if(!a){let l=[],c=[],u=SD(this._driver,o,l,c);if(l.length)throw Uk(r,l);c.length&&void 0,a=TF(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(i,r,a)}register(e,i){this._transitionEngine.register(e,i)}destroy(e,i){this._transitionEngine.destroy(e,i)}onInsert(e,i,n,r){this._transitionEngine.insertNode(e,i,n,r)}onRemove(e,i,n){this._transitionEngine.removeNode(e,i,n)}disableAnimations(e,i){this._transitionEngine.markElementAsDisabled(e,i)}process(e,i,n,r){if(n.charAt(0)=="@"){let[o,s]=sD(n),a=r;this._timelineEngine.command(o,i,s,a)}else this._transitionEngine.trigger(e,i,n,r)}listen(e,i,n,r,o){if(n.charAt(0)=="@"){let[s,a]=sD(n);return this._timelineEngine.listen(s,i,a,o)}return this._transitionEngine.listen(e,i,n,r,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};Qo=class Qo{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let r=Qo.initialStylesByElement.get(e);r||Qo.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Kn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Kn(this._element,this._initialStyles),this._endStyles&&(Kn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Qo.initialStylesByElement.delete(this._element),this._startStyles&&(Or(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Or(this._element,this._endStyles),this._endStyles=null),Kn(this._element,this._initialStyles),this._state=3)}};Qo.initialStylesByElement=new WeakMap;qg=Qo;Ju=class{constructor(e,i,n,r){this.element=e,this.keyframes=i,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let i=[];return e.forEach(n=>{i.push(Object.fromEntries(n))}),i}_triggerWebAnimation(e,i,n){return e.animate(this._convertKeyframesToObject(i),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{r!=="offset"&&e.set(r,this._finished?n:Yg(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let i=e==="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},Xu=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,i){return!1}containsElement(e,i){return bD(e,i)}getParentElement(e){return Qg(e)}query(e,i,n){return CD(e,i,n)}computeStyle(e,i,n){return Yg(e,i)}animate(e,i,n,r,o,s=[]){let a=r==0?"both":"forwards",l={duration:n,delay:r,fill:a};o&&(l.easing=o);let c=new Map,u=s.filter(g=>g instanceof Ju);uF(n,r)&&u.forEach(g=>{g.currentSnapshot.forEach((w,D)=>c.set(D,w))});let d=aF(i).map(g=>new Map(g));d=dF(e,d,c);let m=HF(e,d);return new Ju(e,d,l,m)}},qu="@",ND="@.disabled",ed=class{constructor(e,i,n,r){this.namespaceId=e,this.delegate=i,this.engine=n,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,i){return this.delegate.createElement(e,i)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}insertBefore(e,i,n,r=!0){this.delegate.insertBefore(e,i,n),this.engine.onInsert(this.namespaceId,i,e,r)}removeChild(e,i,n){this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(e,i){return this.delegate.selectRootElement(e,i)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,i,n,r){this.delegate.setAttribute(e,i,n,r)}removeAttribute(e,i,n){this.delegate.removeAttribute(e,i,n)}addClass(e,i){this.delegate.addClass(e,i)}removeClass(e,i){this.delegate.removeClass(e,i)}setStyle(e,i,n,r){this.delegate.setStyle(e,i,n,r)}removeStyle(e,i,n){this.delegate.removeStyle(e,i,n)}setProperty(e,i,n){i.charAt(0)==qu&&i==ND?this.disableAnimations(e,!!n):this.delegate.setProperty(e,i,n)}setValue(e,i){this.delegate.setValue(e,i)}listen(e,i,n){return this.delegate.listen(e,i,n)}disableAnimations(e,i){this.engine.disableAnimations(e,i)}},zg=class extends ed{constructor(e,i,n,r,o){super(i,n,r,o),this.factory=e,this.namespaceId=i}setProperty(e,i,n){i.charAt(0)==qu?i.charAt(1)=="."&&i==ND?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,i.slice(1),n):this.delegate.setProperty(e,i,n)}listen(e,i,n){if(i.charAt(0)==qu){let r=zF(e),o=i.slice(1),s="";return o.charAt(0)!=qu&&([o,s]=GF(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,i,n)}};td=class{constructor(e,i,n){this.delegate=e,this.engine=i,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(r,o)=>{let s=o?.parentNode(r);s&&o.removeChild(s,r)}}createRenderer(e,i){let n="",r=this.delegate.createRenderer(e,i);if(!e||!i?.data?.animation){let c=this._rendererCache,u=c.get(r);if(!u){let d=()=>c.delete(r);u=new ed(n,r,this.engine,d),c.set(r,u)}return u}let o=i.id,s=i.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,e,c.name,c)};return i.data.animation.forEach(a),new zg(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>i(n));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([i,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}});function ZF(){return new Wu}function KF(t,e,i){return new td(t,e,i)}function OD(){return Un("NgEagerAnimations"),[...YF]}var QF,RD,YF,XU,kD=y(()=>{"use strict";F();F();xo();e0();e0();le();QF=(()=>{let e=class e extends Zo{constructor(n,r,o){super(n,r,o,T(xs,{optional:!0}))}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(M($e),M(kr),M(Fr))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let t=e;return t})();RD=[{provide:Fr,useFactory:ZF},{provide:Zo,useClass:QF},{provide:si,useFactory:KF,deps:[Kc,Zo,De]}],YF=[{provide:kr,useFactory:()=>new Xu},{provide:Xh,useValue:"BrowserAnimations"},...RD],XU=[{provide:kr,useClass:Zg},{provide:Xh,useValue:"NoopAnimations"},...RD]});var FD,PD=y(()=>{"use strict";Eo();Xe();F();FD=(()=>{let e=class e{constructor(){}intercept(n,r){return r.handle(n).pipe(q(o=>{if(o.type===Bi.Response&&o.body?.error)throw new Ui(o.body);return o}))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac});let t=e;return t})()});var LD,t0,VD=y(()=>{"use strict";le();F();F();LD=(()=>{let e=class e extends Hn{constructor(){super(),this.internalBaseHref="/",this.internalPath="/",this.internalTitle="",this.urlChanges=[],this._subject=new Ae,this.stateChanges=[]}simulatePopState(n){this.internalPath=n,this._subject.emit(new t0(this.path()))}path(n=!1){return this.internalPath}prepareExternalUrl(n){return n.startsWith("/")&&this.internalBaseHref.endsWith("/")?this.internalBaseHref+n.substring(1):this.internalBaseHref+n}pushState(n,r,o,s){this.stateChanges.push(n),this.internalTitle=r;let a=o+(s.length>0?"?"+s:"");this.internalPath=a;let l=this.prepareExternalUrl(a);this.urlChanges.push(l)}replaceState(n,r,o,s){this.stateChanges[(this.stateChanges.length||1)-1]=n,this.internalTitle=r;let a=o+(s.length>0?"?"+s:"");this.internalPath=a;let l=this.prepareExternalUrl(a);this.urlChanges.push("replace: "+l)}onPopState(n){this._subject.subscribe({next:n})}getBaseHref(){return this.internalBaseHref}back(){if(this.urlChanges.length>0){this.urlChanges.pop(),this.stateChanges.pop();let n=this.urlChanges.length>0?this.urlChanges[this.urlChanges.length-1]:"";this.simulatePopState(n)}}forward(){throw"not implemented"}getState(){return this.stateChanges[(this.stateChanges.length||1)-1]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac});let t=e;return t})(),t0=class{constructor(e){this.newUrl=e,this.pop=!0,this.type="popstate"}}});function JF(t,e){if(t&1&&(f(0,"div",1)(1,"h2",2),C(2),p(),E(3,"div",3),p()),t&2){let i=e.$implicit;h(2),A(i("disclaimer.title")),h(),x("innerHTML",i("disclaimer.text"),ht)}}var jD,$D=y(()=>{"use strict";te();F();te();jD=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=V({type:e,selectors:[["app-disclaimer"]],standalone:!0,features:[B],decls:1,vars:0,consts:[["class","flex flex-col gap-3 p-5",4,"transloco"],[1,"flex","flex-col","gap-3","p-5"],[1,"t-page-title","text-2xl","font-bold"],[1,"contents",3,"innerHTML"]],template:function(r,o){r&1&&I(0,JF,4,2,"div",0)},dependencies:[ye,ee],encapsulation:2});let t=e;return t})()});function XF(t,e){if(t&1&&(f(0,"div",1)(1,"h2",2),C(2),p(),f(3,"div"),C(4),p()()),t&2){let i=e.$implicit;h(2),A(i("privacy.title")),h(2),A(i("privacy.page"))}}var BD,UD=y(()=>{"use strict";te();F();te();BD=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=V({type:e,selectors:[["app-privacy"]],standalone:!0,features:[B],decls:1,vars:0,consts:[["class","flex flex-col",4,"transloco"],[1,"flex","flex-col"],[1,"text-3xl","font-bold"]],template:function(r,o){r&1&&I(0,XF,5,2,"div",0)},dependencies:[ye,ee],encapsulation:2});let t=e;return t})()});function e4(t,e){if(t&1&&(f(0,"option",2),C(1),p()),t&2){let i=e.$implicit,n=v().$implicit,r=v();x("selected",r.isSelected(i))("value",i.value),h(),A(n(r.multiOption.translationPrefix+"."+i.value))}}function t4(t,e){if(t&1){let i=Z();f(0,"select",1),k("change",function(r){j(i);let o=v();return $(o.onChanged(r))}),Fe(1,e4,2,3,"option",2,Ct),p()}if(t&2){let i=e.$implicit,n=v();x("ngClass",n.getClass())("ariaLabel",i(n.multiOption.translationPrefix)),h(),Pe(n.options)}}var HD,qD=y(()=>{"use strict";le();F();te();Zn();F();le();Zn();HD=(()=>{let e=class e{writeValue(n){this.multiOption=n,this.options=n.options}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}constructor(n){this._elementRef=n,this.selected=new Ae,this.autoFocus=!1,this.onChanged=r=>{let o=r.target,s=this.multiOption.options.find(a=>a.value===o.value);s&&(this.multiOption.defaultValue===o.value?this.multiOption.selected=null:this.multiOption.selected=o.value,this.selected.emit(s),this.onChange(this.multiOption))}}ngOnInit(){setTimeout(()=>{this.autoFocus&&this._elementRef.nativeElement.querySelector("select").focus()},50)}isSelected(n){return this.multiOption.selected===n.value}getClass(){let n=["t-search-dropdown-"+this.multiOption.translationPrefix.replace("dropdown.","")];return this.multiOption.selected&&(n=[...n,"font-bold","text-cdra-blue-light-700"]),n}};e.\u0275fac=function(r){return new(r||e)(_(Oe))},e.\u0275cmp=V({type:e,selectors:[["app-search-dropdown"]],inputs:{autoFocus:"autoFocus"},outputs:{selected:"selected"},standalone:!0,features:[Wt([{provide:Mn,multi:!0,useExisting:e}]),B],decls:1,vars:0,consts:[["class","form-select appearance-none pr-8 pl-2 py-2 bg-no-repeat rounded shadow",3,"ngClass","ariaLabel","change",4,"transloco"],[1,"form-select","appearance-none","pr-8","pl-2","py-2","bg-no-repeat","rounded","shadow",3,"change","ngClass","ariaLabel"],[1,"text-neutral-600","leading-tight",3,"selected","value"]],template:function(r,o){r&1&&I(0,t4,3,2,"select",0)},dependencies:[ve,it,zo,Ou,ku,ee],encapsulation:2});let t=e;return t})()});function i4(t,e){if(t&1){let i=Z();f(0,"label",1)(1,"input",2),k("change",function(){j(i);let r=v();return $(r.select())}),p(),C(2),p()}if(t&2){let i=e.$implicit,n=v();x("ngClass",Ee(3,n4,n.option.selected)),h(),x("checked",n.option.selected),h(),me(" ",i(n.option.translationPrefix+"."+n.option.value),`
`)}}var n4,zD,GD=y(()=>{"use strict";F();le();te();Zn();F();le();n4=t=>({"font-bold text-cdra-blue-light-700":t});zD=(()=>{let e=class e{constructor(){this.disabled=!1,this.selected=new Ae}writeValue(n){this.option=n}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}setDisabledState(n){this.disabled=n}select(){this.selected.emit(this.option),this.option.selected===this.option.value?(this.option.selected=null,this.onChange(null)):(this.option.selected=this.option.value,this.onChange(this.option))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=V({type:e,selectors:[["app-search-selectbutton"]],outputs:{selected:"selected"},standalone:!0,features:[Wt([{provide:Mn,multi:!0,useExisting:e}]),B],decls:1,vars:0,consts:[["class","h-9 justify-center items-center inline-flex gap-2",3,"ngClass",4,"transloco"],[1,"h-9","justify-center","items-center","inline-flex","gap-2",3,"ngClass"],["type","button","type","checkbox",1,"py-1.5","justify-center","items-center","gap-1","flex",3,"change","checked"]],template:function(r,o){r&1&&I(0,i4,3,5,"label",0)},dependencies:[ve,it,zo,ee],encapsulation:2});let t=e;return t})()});var WD,QD=y(()=>{"use strict";F();WD=(()=>{let e=class e{constructor(n){this.elementRef=n,this.inputElement=this.elementRef.nativeElement}ngOnInit(){this.inputElement.focus()}};e.\u0275fac=function(r){return new(r||e)(_(Oe))},e.\u0275dir=Ce({type:e,selectors:[["","autoFocus",""]],standalone:!0});let t=e;return t})()});function u4(t,e){if(t&1&&(f(0,"div",4),C(1),p()),t&2){let i=v().$implicit,n=v();x("ngClass",St(2,a4,!n.showAdvanced,n.showAdvanced)),h(),A(i("chat.loadinganswer"))}}function d4(t,e){if(t&1&&(f(0,"div",18)(1,"div",19),C(2),p()()),t&2){let i=v(3);h(2),A(i.advancedAplied)}}function f4(t,e){if(t&1){let i=Z();f(0,"button",15),k("click",function(){j(i);let r=v(2);return $(r.toggleAdvanced())}),fe(),f(1,"svg",16),E(2,"path",17),p(),I(3,d4,3,1,"div",18),p()}if(t&2){let i=v().$implicit,n=v();x("ariaLabel",n.advancedAplied?i("searchbox.button.advanced.amountapplied",Ee(3,l4,n.advancedAplied)):i("searchbox.button.advanced"))("ariaExpanded",n.showAdvanced),h(3),P(3,n.advancedAplied?3:-1)}}function h4(t,e){if(t&1&&(f(0,"div",8),C(1),p()),t&2){let i=v(2);h(),_p("",i.quotum,"/",i.quotumMax,"")}}function p4(t,e){if(t&1&&(f(0,"label",29),C(1),E(2,"input",30),p(),f(3,"label",29),C(4),E(5,"input",31),p()),t&2){let i=v(3).$implicit,n=v();h(),me("",i("searchbox.date.fromyear")," "),h(),Ac("placeholder",i("searchbox.date.yyyy")),x("ngClass",Ee(8,ZD,n.inputForm.controls.fromyear.invalid))("ariaLabel",i("searchbox.date.fromyear.full")),h(2),me("",i("searchbox.date.toyear")," "),h(),Ac("placeholder",i("searchbox.date.yyyy")),x("ngClass",Ee(10,ZD,n.inputForm.controls.toyear.invalid))("ariaLabel",i("searchbox.date.toyear.full"))}}function m4(t,e){t&1&&E(0,"app-search-selectbutton",25)}function g4(t,e){t&1&&E(0,"input",32)}function v4(t,e){if(t&1){let i=Z();f(0,"button",33),k("click",function(){j(i);let r=v(4);return $(r.resetForm())}),fe(),f(1,"svg",34)(2,"g"),E(3,"path",35)(4,"path",36),p()(),Me(),f(5,"span",37),C(6),p()()}if(t&2){let i=v(3).$implicit;h(6),A(i("searchbox.reset"))}}function y4(t,e){if(t&1&&(f(0,"div",28),C(1),p()),t&2){let i,n=v(3).$implicit,r=v();h(),A(n((i=(i=r.inputForm.controls.fromyear.errors==null?null:r.inputForm.controls.fromyear.errors.label)!==null&&i!==void 0?i:r.inputForm.controls.toyear.errors==null?null:r.inputForm.controls.toyear.errors.label)!==null&&i!==void 0?i:"validate.date.invalid"))}}function w4(t,e){if(t&1){let i=Z();f(0,"div",21),E(1,"app-search-dropdown",23)(2,"app-search-dropdown",24),I(3,p4,6,12)(4,m4,1,0,"app-search-selectbutton",25)(5,g4,1,0),f(6,"button",26),k("click",function(){j(i);let r=v(3);return $(r.skipToSearch())}),C(7),p(),I(8,v4,7,1,"button",27)(9,y4,2,1,"div",28),p()}if(t&2){let i=v(2).$implicit,n=v();h(),x("autoFocus",!0),h(2),P(3,(n.inputForm.controls.date.value==null?null:n.inputForm.controls.date.value.selected)==="custom"?3:-1),h(),P(4,n.enableOnline?4:5),h(3),A(i("searchbox.skiplink.searchbox")),h(),P(8,n.inputForm.controls.contentType.value!=null&&n.inputForm.controls.contentType.value.selected||n.inputForm.controls.date.value!=null&&n.inputForm.controls.date.value.selected||n.inputForm.controls.online.value!=null&&n.inputForm.controls.online.value.selected?8:-1),h(),P(9,n.inputForm.controls.toyear.errors||n.inputForm.controls.fromyear.errors?9:-1)}}function b4(t,e){if(t&1){let i=Z();f(0,"button",38),k("click",function(r){j(i);let o=v(3);return $(o.skipToLastQuestion(r))}),C(1),p()}if(t&2){let i=v(2).$implicit;h(),A(i("searchbox.skiplink"))}}function C4(t,e){if(t&1&&(f(0,"div",20),I(1,w4,10,6,"div",21),p(),I(2,b4,2,1,"button",22)),t&2){let i=v(2);x("ngClass",nb(3,c4,!i.showAdvanced,i.showAdvanced,!i.advancedAplied,i.advancedAplied)),h(),P(1,i.showAdvanced?1:-1),h(),P(2,i.hasAnswer?2:-1)}}function _4(t,e){if(t&1){let i=Z();f(0,"form",2),k("ngSubmit",function(){j(i);let r=v();return $(r.onSubmit())}),f(1,"div",3),I(2,u4,2,5,"div",4),f(3,"div",5),I(4,f4,4,5,"button",6),f(5,"input",7,0),k("keyup.arrowup",function(){j(i);let r=v();return $(r.getPreviousQuestion())}),p(),I(7,h4,2,2,"div",8),f(8,"button",9),fe(),f(9,"svg",10)(10,"g",11),E(11,"path",12),p(),f(12,"defs")(13,"clipPath",13),E(14,"rect",14),p()()()()(),I(15,C4,3,8),p()()}if(t&2){let i=e.$implicit,n=v();x("formGroup",n.inputForm),h(),x("ngClass",tb(11,o4,n.inDebugMode,!n.inDebugMode,n.smallSearchBox)),h(),P(2,n.chatLoading?2:-1),h(2),P(4,n.showAdvancedSearch?4:-1),h(),x("ariaLabel",i(n.helpText))("ngClass",Ee(15,s4,n.inDebugMode)),U("placeholder",i(n.helpText)),h(2),P(7,n.showQuotum?7:-1),h(),x("disabled",n.inputForm.touched?n.inputForm.invalid:!1),U("aria-label",i("searchbox.askyourquestion")),h(7),P(15,n.showAdvancedSearch?15:-1)}}var r4,o4,s4,a4,l4,c4,ZD,nd,n0=y(()=>{"use strict";le();mu();Zn();te();qD();GD();QD();F();jt();Zn();Mt();sn();le();te();r4=["searchbox"],o4=(t,e,i)=>({"border-red-700 focus-within:border-red-400 text-red-800":t,"border-neutral-400 focus-within:border-cdra-blue-light-400 text-neutral-900":e,"xl:w-[calc(85%-2rem)] md:w-[calc(77%-2rem)] sm:w-[calc(70%-2rem)]":i}),s4=t=>({"placeholder-red-700":t}),a4=(t,e)=>({"bottom-16":t,"bottom-32":e}),l4=t=>({amount:t}),c4=(t,e,i,n)=>({"h-0 opacity-0 duration-0":t,"h-full min-h-14 opacity-100 border-t-[1px] duration-300":e,"bg-neutral-100":i,"bg-neutral-200":n}),ZD=t=>({"outline outline-red-500":t});nd=(()=>{let e=class e{keyEvent(n){n.key==="F8"&&n.shiftKey&&(this.config.currentConfig.streamAnswer=!this.config.currentConfig.streamAnswer,console.log(`Stream answer testing is ${this.config.currentConfig.streamAnswer?"enabled":"disabled"} for now)`)),n.key==="F9"&&n.shiftKey&&(this.config.setDebug(!this.config.debug),this.config.debug&&(this.helpText=this.config.getVersion())),n.key==="/"&&this.searchBox.nativeElement.focus()}get hasAnswer(){return(this.research.researchSession?.qandas??0).length>0}get quotum(){return this.research.user.quotum}get quotumMax(){return this.research.user.quotumMax}get showQuotum(){return this.config.showQuotum!==!1&&this.quotumMax>0}get lastQuestion(){return this.research.qandas[this.research.qandas.length-1]}get smallSearchBox(){return!this.config.currentConfig.isStandalone}get showAdvancedSearch(){return this.config.currentConfig.showAdvanced}constructor(n,r,o,s,a){this.research=n,this.formBuilder=r,this.el=o,this.config=s,this.stats=a,this.streamAnswer=!1,this.inDebugMode=!1,this.enableOnline=!1,this.contentTypeOptions={defaultValue:"alltypes",translationPrefix:"dropdown.contenttype",selected:null,options:[{value:"alltypes"},{value:"articles"},{value:"peer-reviewed"},{value:"books"}]},this.dateOptions={defaultValue:"alldates",translationPrefix:"dropdown.date",selected:null,options:[{value:"alldates",selected:null},{value:"last12months",selected:null},{value:"last5years"},{value:"last10years"},{value:"custom"}]},this.onlineOption={value:"online",selected:null,translationPrefix:"select.search"},this.initialHelpText="searchbox.placeholder.askresearchquestion",this.helpText=this.initialHelpText,this.showAdvanced=!1,this.chatLoading=!1,this.advancedAplied=0,this.inputForm=this.formBuilder.group({input:new Tn("",{updateOn:"change",validators:[Uo.required]}),fromyear:new Tn("",{updateOn:"blur",validators:[this.yearValidator()]}),toyear:new Tn("",{updateOn:"blur",validators:[this.yearValidator()]}),contentType:null,date:null,online:null,regenerate:!1}),this.research.onLoadingChanged().pipe(Wn()).subscribe(l=>{this.chatLoading=l}),this.hookupForm(),this.research.currentQandA$.pipe(Wn()).subscribe(()=>{this.updateFormWithCurrentQandA(),this.updatePlaceholderText()}),this.research.currentQuestion$.pipe(Wn()).subscribe(l=>{this.inputForm.patchValue({input:l.question,regenerate:l.regenerate}),this.searchBox?.nativeElement?.focus()}),this.research.onSessionChanged.pipe(Wn()).subscribe(()=>{this.updatePlaceholderText(),this.inputForm.patchValue({input:"",contentType:b({},this.contentTypeOptions),date:b({},this.dateOptions),online:b({},this.onlineOption)}),this.focusIfNeeded()})}shouldDetect(n){let r=n+".detect";n==="contentType"&&(r="type.detect");let o=this.inputForm.get(n)?.dirty??!1,s=!0,a=this.research.currentQandA()?.answer?.advanced?.[r];return o&&(this.inputForm.get(n)?.value===null||this.inputForm.get(n)?.value?.selected===null)?s=a??!1:(o||a===!1)&&(s=!1),s}hookupForm(){this.inputForm.valueChanges.pipe(Wn()).subscribe(n=>{this.advancedAplied=0,n.contentType?.selected&&this.advancedAplied++,n.date?.selected&&this.advancedAplied++,this.enableOnline&&n.online?.selected&&this.advancedAplied++,n.date?.selected!=="custom"&&(this.inputForm.controls.fromyear.setValue("",{emitEvent:!1}),this.inputForm.controls.toyear.setValue("",{emitEvent:!1}))})}yearValidator(){return n=>n.value?(this.inputForm.controls.toyear.setErrors(null),this.inputForm.controls.fromyear.setErrors(null),n.value&&!n.value.match(/^\d{4}$/)?{text:"Year should be a number",label:"validate.year.number"}:n.value&&parseInt(n.value)>new Date().getFullYear()?{text:"Year should be in the past",label:"validate.year.past"}:this.inputForm.controls.fromyear.value&&this.inputForm.controls.toyear.value&&parseInt(this.inputForm.controls.toyear.value)-parseInt(this.inputForm.controls.fromyear.value)<0?{text:"To year should be smaller than from year",label:"validate.year.fromsmallerthanto"}:null):null}ngOnInit(){this.updatePlaceholderText(),this.inputForm.updateValueAndValidity()}updateFormWithCurrentQandA(){this.research.currentQandA()?.answer?.advanced?(this.inputForm.patchValue(b({contentType:this.buildContentTypeOptionFromAnswer(this.research.currentQandA()),online:this.buildOnlineOptionFromAnswer(this.research.currentQandA())},this.buildDateOptionFromAnswer(this.research.currentQandA()))),(this.research.currentQandA()?.answer?.advanced?.["date.value"]||this.research.currentQandA()?.answer?.advanced?.["type.value"]||this.research.currentQandA()?.answer?.advanced?.["online.value"])&&(this.research.currentQandA()?.answer?.advanced?.["date.detect"]===!1||this.research.currentQandA()?.answer?.advanced?.["type.detect"]===!1||this.enableOnline&&this.research.currentQandA()?.answer?.advanced?.["online.detect"]===!1||this.config.currentConfig.showAdvanced&&(this.showAdvanced=!0))):this.inputForm.patchValue({contentType:b({},this.contentTypeOptions),date:b({},this.dateOptions),online:b({},this.onlineOption)})}ngAfterViewInit(){this.focusIfNeeded()}focusIfNeeded(){this.hasAnswer||this.searchBox?.nativeElement?.focus()}updatePlaceholderText(){(this.research.qandas.length??0)===0?this.helpText=this.initialHelpText:this.helpText="searchbox.placeholder.askresearchquestionnext"}getPreviousQuestion(){let n=this.lastQuestion;n&&this.inputForm.setValue(b({input:n.question??"",contentType:this.buildContentTypeOptionFromAnswer(n),online:this.buildOnlineOptionFromAnswer(n),regenerate:!1},this.buildDateOptionFromAnswer(n)))}buildContentTypeOptionFromAnswer(n){return n?z(b({},this.contentTypeOptions),{selected:n.answer?.advanced?.["type.value"]??null}):z(b({},this.contentTypeOptions),{selected:null})}buildDateOptionFromAnswer(n){if(!n)return{date:z(b({},this.dateOptions),{selected:null}),fromyear:"0",toyear:""};let r=n.answer?.advanced?.["date.value"];if(r){let o=this.parseDateToLabel(r);if(o.match(/^\d{4}-\d{4}$/)){let[s,a]=o.split("-");return{date:z(b({},this.dateOptions),{selected:"custom"}),fromyear:s,toyear:a}}else return{date:z(b({},this.dateOptions),{selected:o}),fromyear:"",toyear:""}}return{date:z(b({},this.dateOptions),{selected:n.answer?.advanced?.["date.value"]??null}),fromyear:"",toyear:""}}buildOnlineOptionFromAnswer(n){return n?z(b({},this.onlineOption),{selected:n.answer?.advanced?.["online.value"]}):z(b({},this.onlineOption),{selected:null})}parseDateToLabel(n){let r=n.split("-"),o=parseInt(r[0]),s=parseInt(r[1]),a=new Date().getFullYear();return o===a-1&&s===a?"last12months":o===a-5&&s===a?"last5years":o===a-10&&s===a?"last10years":n}onSubmit(){let n=this.inputForm.value.input;if(!n)return;let r=this.buildAdvancedObject();this.inputForm.patchValue({input:""}),this.research.getAnswer(n,r,this.inputForm?.value?.regenerate??!1).then(()=>{this.updatePlaceholderText(),this.research.qandas.length===1?this.stats.search(n,"inputbox_new"):this.stats.search(n,"inputbox_followup")})}buildAdvancedObject(){let n=this.research.currentQandA(),r=n?.answer?.advanced?.topic??n?.answer?.advanced?.previous??n?.question??"",o=this.buildDateOptionFromAnswer(n),s=this.inputForm.value.fromyear!==""&&this.inputForm.value.toyear!==""?this.inputForm.value.fromyear===o.fromyear&&this.inputForm.value.toyear===o.toyear:!0;return{previous:r,"type.detect":this.shouldDetect("contentType"),"type.value":this.inputForm.value.contentType?.selected??null,"online.detect":this.shouldDetect("online"),"online.value":this.inputForm.value.online?.selected??null,"date.detect":this.shouldDetect("date")&&s,"date.value":this.getDateValue(this.inputForm.value.date?.selected,this.inputForm.value.fromyear,this.inputForm.value.toyear)}}resetForm(){this.inputForm.patchValue({contentType:b({},this.contentTypeOptions),date:b({},this.dateOptions),online:b({},this.onlineOption),fromyear:"",toyear:""}),setTimeout(()=>{this.el.nativeElement.querySelector('[formcontrolname="contentType"] > select')?.focus()},50)}toggleAdvanced(){this.showAdvanced=!this.showAdvanced}skipToSearch(){setTimeout(()=>{this.el.nativeElement.querySelector("#default-search")?.focus()},50)}skipToLastQuestion(n){n.currentTarget?.blur();let r=this.el.nativeElement.getRootNode();if(!r){console.warn("Weird! no root doc?");return}let o=r.querySelectorAll(".answer, .t-error"),s=o?.length>0?o[o.length-1]:null;o.length===0&&(s=r.getElementById("chat-container"),s||(s=r.getElementById("landing"))),s&&(s.scrollIntoView({behavior:"smooth"}),s?.focus())}getDateValue(n,r,o){return n==="custom"&&r&&o?`${r}-${o}`:n&&n==="alldates"?null:n&&n==="last12months"?new Date().getFullYear()-1+"-"+new Date().getFullYear():n&&n==="last5years"?new Date().getFullYear()-5+"-"+new Date().getFullYear():n&&n==="last10years"?new Date().getFullYear()-10+"-"+new Date().getFullYear():null}};e.\u0275fac=function(r){return new(r||e)(_(Ne),_(Fu),_(Oe),_(Se),_(Be))},e.\u0275cmp=V({type:e,selectors:[["app-searchbox"]],viewQuery:function(r,o){if(r&1&&at(r4,5),r&2){let s;tt(s=nt())&&(o.searchBox=s.first)}},hostBindings:function(r,o){r&1&&k("keyup",function(a){return o.keyEvent(a)},!1,yc)},standalone:!0,features:[B],decls:1,vars:0,consts:[["searchbox",""],["class","flex justify-center",3,"formGroup","ngSubmit",4,"transloco"],[1,"flex","justify-center",3,"ngSubmit","formGroup"],[1,"peer","relative","flex","flex-col","justify-center","items-center","mx-4","mb-2","transition-[height]","h-full","shadow-md","rounded-xl","border","bg-white","w-[calc(100%-2rem)]",3,"ngClass"],[1,"t-qanda-loading","absolute","text-sm","animate-pulse","left-2",3,"ngClass"],[1,"t-searchbox-contents","inline-flex","w-full","h-14","items-center"],["type","button","aria-controls","advanced-search",1,"ms-4","inline-flex","items-center",3,"ariaLabel","ariaExpanded"],["type","search","autocomplete","off","formControlName","input","id","default-search","required","",1,"t-searchbox","peer","bg-transparent","grow","h-full","ps-4","pe-2","focus:ring-0","focus-visible:outline-none",3,"keyup.arrowup","ariaLabel","ngClass"],[1,"t-search-quotum","text-slate-500","px-4"],["type","submit",1,"t-search-submit","border-2","gradient-border","me-4","rounded-full","p-[2px]","hover:border-cdra-green-main","focus:border-cdra-green-main","disabled:opacity-60",3,"disabled"],["viewBox","0 0 25 25","fill","none","xmlns","http://www.w3.org/2000/svg",1,"h-6","w-6"],["clip-path","url(#clip0_3143_9149)"],["d","M12.5527 4.59192L11.1427 6.00192L16.7227 11.5919H4.55273V13.5919H16.7227L11.1427 19.1819L12.5527 20.5919L20.5527 12.5919L12.5527 4.59192Z","fill","#28739E"],["id","clip0_3143_9149"],["width","24","height","24","fill","currentColor","transform","translate(0.552734 0.591919)"],["type","button","aria-controls","advanced-search",1,"ms-4","inline-flex","items-center",3,"click","ariaLabel","ariaExpanded"],["viewBox","0 0 24 25","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-6","h-6","shrink-0"],["d","M0.75 4.7308H12.169C12.5131 6.29731 13.9121 7.47336 15.5805 7.47336C17.2488 7.47336 18.6478 6.29736 18.9919 4.7308H23.25C23.6642 4.7308 24 4.39498 24 3.9808C24 3.56661 23.6642 3.2308 23.25 3.2308H18.9915C18.6467 1.66508 17.2459 0.488281 15.5805 0.488281C13.9141 0.488281 12.5139 1.66489 12.1693 3.2308H0.75C0.335812 3.2308 0 3.56661 0 3.9808C0 4.39498 0.335812 4.7308 0.75 4.7308ZM13.588 3.98277C13.588 3.98009 13.588 3.97738 13.588 3.9747C13.5913 2.87937 14.4851 1.98833 15.5805 1.98833C16.6743 1.98833 17.5681 2.87816 17.5728 3.97297L17.573 3.98398C17.5712 5.08119 16.6781 5.97341 15.5805 5.97341C14.4833 5.97341 13.5904 5.08208 13.5879 3.98553L13.588 3.98277ZM23.25 20.269H18.9915C18.6467 18.7033 17.2459 17.5265 15.5805 17.5265C13.9141 17.5265 12.5139 18.7031 12.1693 20.269H0.75C0.335812 20.269 0 20.6047 0 21.019C0 21.4332 0.335812 21.769 0.75 21.769H12.169C12.5131 23.3355 13.9121 24.5115 15.5805 24.5115C17.2488 24.5115 18.6478 23.3355 18.9919 21.769H23.25C23.6642 21.769 24 21.4332 24 21.019C24 20.6047 23.6642 20.269 23.25 20.269ZM15.5805 23.0115C14.4833 23.0115 13.5904 22.1202 13.5879 21.0237L13.588 21.0209C13.588 21.0182 13.588 21.0155 13.588 21.0129C13.5913 19.9175 14.4851 19.0265 15.5805 19.0265C16.6743 19.0265 17.5681 19.9163 17.5728 21.011L17.573 21.0221C17.5714 22.1194 16.6782 23.0115 15.5805 23.0115ZM23.25 11.7499H11.831C11.4869 10.1834 10.0879 9.00739 8.41955 9.00739C6.75117 9.00739 5.35223 10.1834 5.00808 11.7499H0.75C0.335812 11.7499 0 12.0857 0 12.4999C0 12.9141 0.335812 13.2499 0.75 13.2499H5.00845C5.35331 14.8156 6.75413 15.9924 8.41955 15.9924C10.0859 15.9924 11.4861 14.8158 11.8307 13.2499H23.25C23.6642 13.2499 24 12.9141 24 12.4999C24 12.0857 23.6642 11.7499 23.25 11.7499ZM10.412 12.4979C10.412 12.5007 10.412 12.5033 10.412 12.506C10.4087 13.6013 9.51492 14.4924 8.41955 14.4924C7.32572 14.4924 6.43191 13.6025 6.42717 12.5078L6.42703 12.4968C6.42867 11.3995 7.32188 10.5074 8.41955 10.5074C9.5167 10.5074 10.4096 11.3987 10.4121 12.4953L10.412 12.4979Z","fill","#929292"],[1,"ms-1","w-4","h-4","bg-cdra-blue-dark-600","rounded-full","text-center","flex","justify-center","items-center"],[1,"text-white","text-xs","font-bold","contents","leading-6"],["id","advanced-search",1,"t-advanced-search","w-full","transition-all","ps-2","items-center","rounded-b-xl","border-gray-400","shadow-inner",3,"ngClass"],[1,"flex","flex-wrap","gap-3","ms-1","my-3","items-center","justify-start"],["tabindex","0",1,"skiplink","styled","hidden","lg:block","absolute","left-1/2","bottom-20"],["formControlName","contentType",3,"autoFocus"],["formControlName","date"],["formControlName","online"],["type","button",1,"skiplink","hidden","lg:block",3,"click"],["type","button",1,"t-reset-form","text-cdra-blue-light-400","text-sm","ms-auto","me-2"],["role","alert",1,"text-red-700","text-sm","break-before-auto"],[1,"inline-flex","items-center"],["autoFocus","","formControlName","fromyear",1,"t-search-date-from","h-9","ms-1","w-12","text-center",3,"placeholder","ngClass","ariaLabel"],["formControlName","toyear",1,"t-search-date-to","h-9","ms-1","w-12","text-center",3,"placeholder","ngClass","ariaLabel"],["type","hidden","formControlName","online"],["type","button",1,"t-reset-form","text-cdra-blue-light-400","text-sm","ms-auto","me-2",3,"click"],["version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","viewBox","0 0 480 480",0,"xml","space","preserve",1,"w-4","h-4","fill-neutral-700"],["d","M381.7,118.4c-7.4-0.6-13.9,4.9-14.5,12.4l-24.9,309.9c0,0.4,0,0.7,0,1.1c0,6.2-5,11.2-11.2,11.2H147.6 c-6.2,0-11.2-5-11.2-11.2c0-0.4,0-0.7,0-1.1l-24.9-309.9c-0.6-7.4-7.1-13-14.5-12.4s-13,7.1-12.4,14.5l24.9,309.5 c0.3,17.5,12.4,32.1,28.6,36.4c1.7,0.8,3.6,1.2,5.6,1.2h4h183.4h4c2,0,3.9-0.4,5.6-1.2c16.3-4.2,28.3-18.9,28.6-36.4L394.1,133 C394.7,125.5,389.1,119,381.7,118.4z"],["d","M429.2,69.3H311.1V38.2c0-21-17.1-38.2-38.2-38.2h-65.8c-21,0-38.2,17.1-38.2,38.2v31.2h-118c-7.5,0-13.5,6-13.5,13.5 s6,13.5,13.5,13.5h378.2c7.5,0,13.5-6,13.5-13.5S436.6,69.3,429.2,69.3z M284.1,69.3h-88V38.2c0-6.2,5-11.2,11.2-11.2h65.8 c6.2,0,11.2,5,11.2,11.2v31.1H284.1z"],[1,"sr-only"],["tabindex","0",1,"skiplink","styled","hidden","lg:block","absolute","left-1/2","bottom-20",3,"click"]],template:function(r,o){r&1&&I(0,_4,16,17,"form",1)},dependencies:[ve,it,Pu,Nu,Zi,qo,Iu,wg,xa,Sa,WD,ye,ee,HD,zD],encapsulation:2});let t=e;return t})()});function D4(t,e){if(t&1&&(f(0,"div",10),C(1),p()),t&2){let i=v().$implicit;h(),A(i("app.beta"))}}function E4(t,e){if(t&1&&(f(0,"div",13),C(1),p()),t&2){let i=v().$implicit;h(),A(i("landing.message.quotalimit"))}}function x4(t,e){t&1&&E(0,"app-searchbox")}function S4(t,e){if(t&1){let i=Z();f(0,"a",23),k("click",function(r){let o=j(i).$implicit,s=v(2);return $(s.getAnswer(r,o.question))}),f(1,"div",24)(2,"span",25),C(3),p()(),fe(),f(4,"svg",26)(5,"g"),E(6,"path",27),p()()()}if(t&2){let i=e.$implicit;h(3),A(i.question)}}function I4(t,e){if(t&1&&(f(0,"div",1)(1,"div",2)(2,"div",3)(3,"h2",4),fe(),f(4,"svg",5),E(5,"path",6)(6,"path",7)(7,"path",8),p(),Me(),f(8,"span",9),C(9),p(),I(10,D4,2,1,"div",10),p(),f(11,"p",11),C(12),p(),f(13,"div",12),I(14,E4,2,1,"div",13)(15,x4,1,0),p()(),f(16,"div",14)(17,"div",15)(18,"h3",16),C(19),p(),f(20,"div",17),fe(),f(21,"svg",18),E(22,"path",19),p(),Me(),f(23,"a",20),C(24),p()()(),f(25,"div",21),I(26,S4,7,1,"a",22),ki(27,"slice"),p()()()()),t&2){let i=e.$implicit,n=v();h(9),A(i("app.title")),h(),P(10,n.showBeta?10:-1),h(2),A(i("landing.subtitle")),h(2),P(14,n.quotumLimitExceeded?14:15),h(5),A(i("landing.examplequestions.title")),h(4),x("routerLink",n.helpLink),h(),A(i("sidebar.helplink")),h(2),x("ngForOf",lb(27,8,n.initialQuestions,0,4))}}var i0,KD=y(()=>{"use strict";n0();Zt();le();te();F();jt();te();Mt();Ca();sn();le();i0=(()=>{let e=class e{get showBeta(){return this.config.currentConfig.showBeta}get quotumLimitExceeded(){return this.user.quotum===0}constructor(n,r,o,s,a){this.research=n,this.config=o,this.user=s,this.stats=a,this.helpLink="/pages/help",r.selectTranslate("landing.research.question1").subscribe(()=>{this.initialQuestions=[{id:"question1",question:r.translate("landing.research.question1")},{id:"question2",question:r.translate("landing.research.question2")},{id:"question3",question:r.translate("landing.research.question3")},{id:"question4",question:r.translate("landing.research.question4")}]})}getAnswer(n,r){n.preventDefault(),this.research.getAnswer(r,null),this.stats.search(r,"landing")}};e.\u0275fac=function(r){return new(r||e)(_(Ne),_(Ke),_(Se),_(Wi),_(Be))},e.\u0275cmp=V({type:e,selectors:[["app-landing"]],hostAttrs:[1,"contents"],inputs:{helpLink:"helpLink"},standalone:!0,features:[B],decls:1,vars:0,consts:[["id","landing","class","flex flex-col my-auto p-2",4,"transloco"],["id","landing",1,"flex","flex-col","my-auto","p-2"],[1,"flex","flex-col","justify-center","items-center","gap-10"],[1,"w-full","text-center"],[1,"text-3xl","font-bold","hidden","sm:block"],["width","31","height","30","viewBox","0 0 31 30","fill","currentColor","xmlns","http://www.w3.org/2000/svg",1,"inline","me-4","text-cdra-blue-light-main"],["fill-rule","evenodd","clip-rule","evenodd","d","M20.4851 18.6146C14.819 18.6146 10.2425 14.02 10.2425 8.37207C10.2425 14.02 5.64793 18.6146 0 18.6146C5.64793 18.6146 10.2425 23.1911 10.2425 28.839C10.2425 23.1911 14.819 18.6146 20.4851 18.6146Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M31.0001 23.8992C27.8946 23.8992 25.3885 21.3749 25.3885 18.2876C25.3885 21.3749 22.8641 23.8992 19.7769 23.8992C22.8641 23.8992 25.3885 26.4054 25.3885 29.5108C25.3885 26.4054 27.8946 23.8992 31.0001 23.8992Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M27.7676 6.82836C23.9902 6.82836 20.9392 3.77739 20.9392 0C20.9392 3.77739 17.8882 6.82836 14.1108 6.82836C17.8882 6.82836 20.9392 9.87933 20.9392 13.6567C20.9392 9.87933 23.9902 6.82836 27.7676 6.82836Z"],[1,"pe-2"],[1,"inline-block","whitespace-nowrap","rounded-full","bg-cdra-blue-dark-600","px-2","py-1","text-center","uppercase","align-super","text-xs","font-bold","leading-none","text-white"],[1,"text-xl","mt-3"],[1,"t-searchbox","w-full","mt-6"],["aria-live","polite",1,"t-quota-exceeded","p-2","border","border-red-700","bg-red-100","text-red-900","text-lg","text-center"],[1,"m-4","mt-10"],[1,"flex","flex-row","justify-between","items-center","mb-2"],[1,"font-bold","mb-2","lg:text-lg"],[1,"flex","items-start"],["aria-hidden","true","width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg",1,"shrink-0"],["d","M11 18H13V16H11V18ZM12 2C10.6868 2 9.38642 2.25866 8.17317 2.7612C6.95991 3.26375 5.85752 4.00035 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C5.85752 19.9997 6.95991 20.7362 8.17317 21.2388C9.38642 21.7413 10.6868 22 12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 10.6868 21.7413 9.38642 21.2388 8.17317C20.7362 6.95991 19.9997 5.85752 19.0711 4.92893C18.1425 4.00035 17.0401 3.26375 15.8268 2.7612C14.6136 2.25866 13.3132 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 6C10.9391 6 9.92172 6.42143 9.17157 7.17157C8.42143 7.92172 8 8.93913 8 10H10C10 9.46957 10.2107 8.96086 10.5858 8.58579C10.9609 8.21071 11.4696 8 12 8C12.5304 8 13.0391 8.21071 13.4142 8.58579C13.7893 8.96086 14 9.46957 14 10C14 12 11 11.75 11 15H13C13 12.75 16 12.5 16 10C16 8.93913 15.5786 7.92172 14.8284 7.17157C14.0783 6.42143 13.0609 6 12 6Z","fill","#424242"],[1,"t-sidenav-help-link","ms-1","underline","hover:decoration-2",3,"routerLink"],[1,"grid","grid-cols-1","sm:grid-cols-2","gap-3","scroll-mb-20","items-stretch"],["href","#","class","t-example-question flex flex-row items-center w-full bg-cdra-blue-light-50 shadow rounded-md p-4 text-gray-700 hover:shadow-[0_0_0_2px_inset] hover:shadow-cdra-blue-light-400",3,"click",4,"ngFor","ngForOf"],["href","#",1,"t-example-question","flex","flex-row","items-center","w-full","bg-cdra-blue-light-50","shadow","rounded-md","p-4","text-gray-700","hover:shadow-[0_0_0_2px_inset]","hover:shadow-cdra-blue-light-400",3,"click"],[1,"w-5/6"],[1,"text-base"],["viewBox","0 0 25 25","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-7","ms-auto"],["d","M12.0527 4.09192L10.6427 5.50192L16.2227 11.0919H4.0527V13.0919H16.2227L10.6427 18.6819L12.0527 20.0919L20.0527 12.0919L12.0527 4.09192Z","fill","#28739E"]],template:function(r,o){r&1&&I(0,I4,28,12,"div",0)},dependencies:[ve,$c,Eb,nd,Po,ye,ee],encapsulation:2});let t=e;return t})()});function T4(t,e){if(t&1&&(f(0,"div",1)(1,"h2"),C(2),p()()),t&2){let i=e.$implicit;h(2),A(i("user.title"))}}var YD,JD=y(()=>{"use strict";te();F();te();YD=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=V({type:e,selectors:[["app-user"]],standalone:!0,features:[B],decls:1,vars:0,consts:[["class","flex flex-col gap-4 h-full",4,"transloco"],[1,"flex","flex-col","gap-4","h-full"]],template:function(r,o){r&1&&I(0,T4,3,1,"div",0)},dependencies:[ye,ee],encapsulation:2});let t=e;return t})()});var XD,eE=y(()=>{"use strict";Zt();F();XD=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=V({type:e,selectors:[["app-research"]],hostAttrs:[1,"contents"],standalone:!0,features:[B],decls:1,vars:0,template:function(r,o){r&1&&E(0,"router-outlet")},dependencies:[Ir],encapsulation:2});let t=e;return t})()});var tE,nE=y(()=>{"use strict";F();tE=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=V({type:e,selectors:[["app-history"]],standalone:!0,features:[B],decls:2,vars:0,template:function(r,o){r&1&&(f(0,"p"),C(1,"history works!"),p())}});let t=e;return t})()});var iE,rE=y(()=>{"use strict";F();iE=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=V({type:e,selectors:[["app-bookmarks"]],standalone:!0,features:[B],decls:2,vars:0,template:function(r,o){r&1&&(f(0,"p"),C(1,"bookmarks works!"),p())}});let t=e;return t})()});var oE,sE=y(()=>{"use strict";F();oE=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=V({type:e,selectors:[["app-documents"]],standalone:!0,features:[B],decls:2,vars:0,template:function(r,o){r&1&&(f(0,"p"),C(1,"documents works!"),p())}});let t=e;return t})()});var aE,lE=y(()=>{"use strict";F();aE=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=V({type:e,selectors:[["app-topics"]],standalone:!0,features:[B],decls:2,vars:0,template:function(r,o){r&1&&(f(0,"p"),C(1,"topics works!"),p())}});let t=e;return t})()});function M4(t,e){if(t&1&&(f(0,"div",3)(1,"h3",4),C(2),p()()),t&2){let i=e.$implicit;h(2),A(i("research.related.title"))}}function A4(t,e){if(t&1){let i=Z();f(0,"li",2)(1,"button",5),k("click",function(){let r=j(i).$implicit,o=v();return $(o.askQuestion(r))}),fe(),f(2,"svg",6),E(3,"rect",7)(4,"path",8)(5,"path",9),f(6,"defs")(7,"linearGradient",10),E(8,"stop",11)(9,"stop",12),p(),f(10,"linearGradient",13),E(11,"stop",11)(12,"stop",12),p()()(),Me(),f(13,"span"),C(14),p()()()}if(t&2){let i=e.$implicit;h(14),A(i)}}var cE,uE=y(()=>{"use strict";te();F();jt();sn();te();cE=(()=>{let e=class e{constructor(n,r){this.research=n,this.stats=r}askQuestion(n){this.research.setAnswer(n),this.stats.search(n,"more-questions")}};e.\u0275fac=function(r){return new(r||e)(_(Ne),_(Be))},e.\u0275cmp=V({type:e,selectors:[["app-more-questions"]],inputs:{questions:"questions"},standalone:!0,features:[B],decls:4,vars:0,consts:[["class","flex items-center mt-8 mb-2",4,"transloco"],[1,"t-follow-up-questions","list-none","flex","flex-wrap","gap-2"],[1,"t-follow-up-question"],[1,"flex","items-center","mt-8","mb-2"],[1,"inline","text-xl","font-bold"],[1,"p-2","bg-cdra-blue-light-200","rounded-lg","text-black","mb-2","w-fit","focus:ring-2","hover:ring-2","ring-cdra-blue-light-main","inline-flex","text-start","gap-2",3,"click"],["width","23","height","22","viewBox","0 0 23 22","fill","none","xmlns","http://www.w3.org/2000/svg",1,"shrink-0"],["x","0.105438","width","22","height","22","rx","11","fill","white"],["d","M15.4939 7.64596C15.3752 5.35849 13.487 3.53048 11.1954 3.48428C11.1654 3.48369 11.1356 3.4834 11.1057 3.4834C8.91901 3.4834 7.0562 5.09528 6.75321 7.26662C6.72511 7.46792 6.71088 7.67358 6.71088 7.87793C6.71088 8.60604 7.30112 9.19629 8.02924 9.19629C8.75735 9.19629 9.3476 8.60604 9.3476 7.87793C9.3476 7.79511 9.35331 7.71208 9.36465 7.63107C9.48734 6.75196 10.2501 6.1028 11.1423 6.12047C11.5824 6.12935 12.0025 6.30621 12.3253 6.61855C12.6478 6.93059 12.838 7.34402 12.8607 7.78257C12.8861 8.27095 12.7154 8.73439 12.3801 9.08757C12.0444 9.44106 11.5918 9.63574 11.1054 9.63574C10.3773 9.63574 9.78702 10.226 9.78702 10.9541V13.5615C9.78702 14.2896 10.3773 14.8799 11.1054 14.8799C11.8335 14.8799 12.4237 14.2896 12.4237 13.5615V12.0683C13.129 11.8455 13.7761 11.4467 14.2922 10.9031C15.1303 10.0203 15.5571 8.86359 15.4939 7.64596Z","fill","url(#paint0_linear_3194_923)"],["d","M11.1054 18.5166C11.8335 18.5166 12.4238 17.9264 12.4238 17.1982C12.4238 16.4701 11.8335 15.8799 11.1054 15.8799C10.3773 15.8799 9.78708 16.4701 9.78708 17.1982C9.78708 17.9264 10.3773 18.5166 11.1054 18.5166Z","fill","url(#paint1_linear_3194_923)"],["id","paint0_linear_3194_923","x1","11.1054","y1","3.4834","x2","11.1054","y2","14.8799","gradientUnits","userSpaceOnUse"],["stop-color","#AA99ED"],["offset","1","stop-color","#5EAAE0"],["id","paint1_linear_3194_923","x1","11.1054","y1","15.8799","x2","11.1054","y2","18.5166","gradientUnits","userSpaceOnUse"]],template:function(r,o){r&1&&(I(0,M4,3,1,"div",0),f(1,"ul",1),Fe(2,A4,15,1,"li",2,Ct),p()),r&2&&(h(2),Pe(o.questions))},dependencies:[ye,ee]});let t=e;return t})()});function R4(t,e){if(t&1){let i=Z();f(0,"label")(1,"input",21),k("change",function(r){j(i);let o=v(3);return $(o.onCheckboxChange(r,o.feedbackGoodReasons))}),p(),f(2,"span"),C(3),p()()}if(t&2){let i=e.$implicit,n=v(2).$implicit;h(),x("value",i.value),h(2),A(n(i.text))}}function O4(t,e){if(t&1&&(f(0,"div",16),C(1),p(),f(2,"form",17),I(3,R4,4,2,"label",18),f(4,"div",19),C(5),p(),E(6,"textarea",20),p()),t&2){let i=v().$implicit,n=v();h(),A(i("helptext.whygood",Ee(5,Oa,n.typeLocalization))),h(),x("formGroup",n.feedbackGood),h(),x("ngForOf",n.feedbackGoodOptions[n.type]),h(2),A(i("helptext.explain",Ee(7,Oa,n.typeLocalization))),h(),U("placeholder",i("nopersonalinfo"))}}function k4(t,e){if(t&1){let i=Z();f(0,"label")(1,"input",21),k("change",function(r){j(i);let o=v(3);return $(o.onCheckboxChange(r,o.feedbackBadReasons))}),p(),f(2,"span"),C(3),p()()}if(t&2){let i=e.$implicit,n=v(2).$implicit;h(),x("value",i.value),h(2),A(n(i.text))}}function F4(t,e){if(t&1&&(f(0,"div",16),C(1),p(),f(2,"form",17),I(3,k4,4,2,"label",18),f(4,"div",19),C(5),p(),E(6,"textarea",20),p()),t&2){let i=v().$implicit,n=v();h(),A(i("helptext.whybad",Ee(5,Oa,n.typeLocalization))),h(),x("formGroup",n.feedbackBad),h(),x("ngForOf",n.feedbackBadOptions[n.type]),h(2),A(i("helptext.explain",Ee(7,Oa,n.typeLocalization))),h(),U("placeholder",i("nopersonalinfo"))}}function P4(t,e){if(t&1){let i=Z();f(0,"dialog",2,0)(2,"button",3),k("click",function(){j(i);let r=v();return $(r.cancel())}),fe(),f(3,"svg",4)(4,"g",5),E(5,"path",6),p(),f(6,"defs")(7,"clipPath",7),E(8,"rect",8),p()()()(),Me(),f(9,"h2",9),C(10),p(),I(11,O4,7,9)(12,F4,7,9),f(13,"div",10)(14,"button",11),k("click",function(){j(i);let r=v();return $(r.submit())}),f(15,"div",12),C(16),p()(),f(17,"button",13),k("click",function(){j(i);let r=v();return $(r.cancel())}),f(18,"div",14),C(19),p()()(),E(20,"br"),f(21,"div",15)(22,"i"),C(23),p()()()}if(t&2){let i=e.$implicit,n=v();h(2),U("aria-label",i("close.dialog")),h(8),A(i("title")),h(),P(11,(n.feedback==null?null:n.feedback.reaction)==="thumbs_up"?11:(n.feedback==null?null:n.feedback.reaction)==="thumbs_down"?12:-1),h(3),x("disabled",n.isFormInvalid()),h(2),A(i("submit")),h(3),A(i("cancel")),h(4),A(i("helptext.terms",Ee(7,Oa,n.typeLocalization)))}}var N4,Oa,id,r0=y(()=>{"use strict";le();Zn();te();F();Zn();sn();jt();te();le();N4=["dialog"],Oa=t=>({typeLocalization:t});id=(()=>{let e=class e{constructor(n,r,o,s){this.fb=n,this.stats=r,this.research=o,this.translocoService=s,this.showModal=!1,this.ratingText="",this.feedbackGoodOptions={answer:[{value:"Answered my question/request",text:"good.answered"},{value:"Gave me accurate information",text:"good.accurate"},{value:"Sources met my expectations",text:"good.expectations"},{value:"Made my research task easier",text:"good.easier"},{value:"Other",text:"other"}],record:[{value:"Relevant to my question",text:"good.relevant"},{value:"Gave me accurate information",text:"good.accurate"},{value:"Up to date",text:"good.uptodate"},{value:"I like the author(s), journal or publisher",text:"good.like"},{value:"Other",text:"other"}]},this.feedbackBadOptions={answer:[{value:"Didn\u2019t answer my question/request",text:"bad.didntanswer"},{value:"Offensive, inappropriate or biased",text:"bad.biased"},{value:"Gave me inaccurate information",text:"bad.inaccurate"},{value:"Sources didn\u2019t meet my expectations",text:"bad.expectations"},{value:"Other",text:"other"}],record:[{value:"Not relevant to my question",text:"bad.notrelevant"},{value:"Gave me inaccurate information",text:"bad.inaccurate"},{value:"Out of date",text:"bad.outofdate"},{value:"Issue with the author(s), journal or publisher",text:"bad.unlike"},{value:"Other",text:"other"}]},this.feedbackGood=this.createFeedbackFormGroup(),this.feedbackBad=this.createFeedbackFormGroup()}ngOnInit(){this.feedback&&(this.feedback.reaction==="thumbs_up"&&(this.feedbackGood=this.fb.group({comment:this.feedback.comment??"",reasons:this.fb.array(this.feedback.reasons??[])})),this.feedback.reaction==="thumbs_down"&&(this.feedbackBad=this.fb.group({comment:this.feedback.comment??"",reasons:this.fb.array(this.feedback.reasons??[])})))}get typeLocalization(){return this.type==="answer"?this.translocoService.translate("rating.type.overview"):this.type==="record"?this.translocoService.translate("rating.type.source"):""}get feedbackBadReasons(){return this.feedbackBad.get("reasons")}get feedbackGoodReasons(){return this.feedbackGood.get("reasons")}onCheckboxChange(n,r){let o=n.target;if(o.checked)r.push(new Tn(o.value));else{let s=r.controls.findIndex(a=>a.value===o.value);s!==-1&&r.removeAt(s)}}ngOnChanges(n){this.dialog?.nativeElement&&n.feedback&&typeof n.feedback.currentValue<"u"&&(n.feedback.currentValue?.reaction==="thumbs_down"||n.feedback.currentValue?.reaction==="thumbs_up")&&(this.feedbackGood=this.createFeedbackFormGroup(),this.feedbackBad=this.createFeedbackFormGroup(),this.dialog.nativeElement.showModal())}cancel(){this.feedback&&(this.feedback.reaction=this.currentReaction??void 0),this.close()}close(){this.showModal=!1,this.dialog.nativeElement.close()}submit(){this.feedback&&!this.isFormInvalid()?(this.feedback.reaction==="thumbs_up"&&(this.feedback.comment=this.feedbackGood.get("comment")?.value??"",this.feedback.reasons=this.feedbackGood.get("reasons")?.value??[]),this.feedback.reaction==="thumbs_down"&&(this.feedback.comment=this.feedbackBad.get("comment")?.value??"",this.feedback.reasons=this.feedbackBad.get("reasons")?.value??[]),this.feedback.answer=this.answer?.answer,this.feedback.answerId=this.answer?.id,this.feedback.sourceId=this.sourceId,this.type==="record"?this.stats.sendEvent({category:"feedback",action:this.feedback.reaction,label:"sourceId",value:this.feedback.sourceId,question:this.feedback.query}):this.stats.sendEvent({category:"feedback",action:this.feedback.reaction,label:"answerId",value:this.feedback.answerId,question:this.feedback.query}),this.research.sendFeedback(this.feedback)):(console.warn("weird, there is no feedback?"),this.cancel()),this.close()}isFormInvalid(){return this.feedback?.reaction==="thumbs_down"?this.feedbackBad.invalid:this.feedback?.reaction==="thumbs_up"?this.feedbackGood.invalid:!1}createFeedbackFormGroup(){return this.fb.group({comment:"",reasons:this.fb.array([],Uo.required)})}};e.\u0275fac=function(r){return new(r||e)(_(Fu),_(Be),_(Ne),_(Ke))},e.\u0275cmp=V({type:e,selectors:[["app-rating-dialog"]],viewQuery:function(r,o){if(r&1&&at(N4,5),r&2){let s;tt(s=nt())&&(o.dialog=s.first)}},inputs:{showModal:"showModal",type:"type",source:"source",feedback:"feedback",currentReaction:"currentReaction",answer:"answer",sourceId:"sourceId"},standalone:!0,features:[et,B],decls:1,vars:1,consts:[["dialog",""],["class","t-rating-dialog w-[50%] p-5 rounded-lg  bg-white shadow border border-neutral-300","role","dialog","aria-labelledby","rating-title",4,"transloco","translocoPrefix"],["role","dialog","aria-labelledby","rating-title",1,"t-rating-dialog","w-[50%]","p-5","rounded-lg","bg-white","shadow","border","border-neutral-300"],[1,"float-end","ms-2",3,"click"],["aria-hidden","true","width","24","height","25","viewBox","0 0 24 25","fill","none","xmlns","http://www.w3.org/2000/svg"],["clip-path","url(#clip0_2589_1608)"],["d","M19 6.84533L17.59 5.43533L12 11.0253L6.41 5.43533L5 6.84533L10.59 12.4353L5 18.0253L6.41 19.4353L12 13.8453L17.59 19.4353L19 18.0253L13.41 12.4353L19 6.84533Z","fill","#828282"],["id","clip0_2589_1608"],["width","24","height","24","fill","white","transform","translate(0 0.435333)"],["id","rating-title",1,"text-xl","font-bold"],[1,"flex","flex-row","gap-2","mt-4"],[1,"t-rating-submit","p-2","bg-cdra-blue-light-main","rounded",3,"click","disabled"],[1,"text-white","text","font-normal","leading-tight"],[1,"t-rating-cancel","p-2","bg-zinc-300","rounded","border","border-zinc-400",3,"click"],[1,"text-black","font-normal","leading-tight"],[1,"mt-4-italic"],[1,"my-4"],[1,"t-rating-reasons","flex","flex-col","gap-2",3,"formGroup"],[4,"ngFor","ngForOf"],[1,"mt-4"],["formControlName","comment",1,"t-rating-comments","p-2","w-full","h-24","mt-2","border","border-zinc-400"],["type","checkbox","required","",1,"me-1",3,"change","value"]],template:function(r,o){r&1&&I(0,P4,24,9,"dialog",1),r&2&&x("translocoPrefix","rating")},dependencies:[ve,$c,Pu,Nu,Zi,qo,Iu,xa,Sa,ye,ee]});let t=e;return t})()});var dE,fE=y(()=>{"use strict";F();dE=(()=>{let e=class e{transform(n,r="."){if(n==null)return null;if(typeof n!="string")throw new Error("value for endWithChar not a string");return n&&n+r}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=fo({name:"endWithChar",type:e,pure:!0,standalone:!0});let t=e;return t})()});function q4(t,e){if(t&1&&(f(0,"h3",11),C(1),p()),t&2){let i=e.$implicit;h(),A(i("sources.title"))}}function z4(t,e){t&1&&E(0,"div",53)}function G4(t,e){if(t&1&&(f(0,"div",63),C(1),p()),t&2){let i=v(2).$implicit;h(),me("Debug score: ",i.score," ")}}function W4(t,e){if(t&1){let i=Z();f(0,"button",79),k("click",function(r){j(i);let o=v(2).$implicit,s=v(2);return $(s.readMore(r,o))}),C(1),p()}if(t&2){let i=v(2).$implicit,n=v().$implicit;U("aria-controls","source_more_"+i.id),h(),A(n("sources.selectedsource.readmore"))}}function Q4(t,e){if(t&1){let i=Z();f(0,"a",80),k("click",function(){j(i);let r=v(2).$implicit,o=v(2);return $(o.downloadPdf(r))}),fe(),f(1,"svg",81),E(2,"path",82),p(),Me(),f(3,"span",83),C(4),p()()}if(t&2){let i=v(2).$implicit,n=v().$implicit;x("href",i.pdfLink,hi),h(4),A(n("sources.selectedsource.downloadpdf"))}}function Z4(t,e){if(t&1){let i=Z();f(0,"a",84),k("click",function(){j(i);let r=v(2).$implicit,o=v(2);return $(o.fullTextOnline(r))}),fe(),f(1,"svg",81),E(2,"path",85),p(),Me(),f(3,"span",83),C(4),p()()}if(t&2){let i=v(2).$implicit,n=v().$implicit;x("href",i.htmlLink,hi),h(4),A(n("sources.selectedsource.fulltextonline"))}}function K4(t,e){if(t&1){let i=Z();f(0,"a",86),k("click",function(){j(i);let r=v(2).$implicit,o=v(2);return $(o.getDeeplink(r))}),C(1),p()}if(t&2){let i=v(2).$implicit,n=v().$implicit;x("href",i==null?null:i.deepLink,hi),h(),A(n("sources.selectedsource.alldetails"))}}function Y4(t,e){if(t&1){let i=Z();f(0,"a",86),k("click",function(){j(i);let r=v(2).$implicit,o=v(2);return $(o.getQuickLookLink(r))}),C(1),p()}if(t&2){let i=v(2).$implicit,n=v().$implicit;x("href",i==null?null:i.deepLink,hi),h(),A(n("sources.selectedsource.alldetails"))}}function J4(t,e){if(t&1){let i=Z();f(0,"li",54,1),E(2,"app-rating-dialog",55,2),f(4,"button",56,3),k("click",function(){j(i);let r=v().$implicit,o=v(2);return $(o.closeSourceView(r))}),fe(),f(6,"svg",57)(7,"g",58),E(8,"path",59),p(),f(9,"defs")(10,"clipPath",60),E(11,"rect",61),p()()()(),Me(),f(12,"article")(13,"h4",62),C(14),p(),I(15,G4,2,1,"div",63),f(16,"div",64),C(17),ki(18,"endWithChar"),ki(19,"endWithChar"),ki(20,"endWithChar"),p(),f(21,"div",65)(22,"strong"),C(23),p(),f(24,"div",66,4),C(26),p(),I(27,W4,2,2,"button",67),p(),f(28,"div",68),I(29,Q4,5,2,"a",69)(30,Z4,5,2,"a",70)(31,K4,2,2,"a",71)(32,Y4,2,2,"a",71),f(33,"div",72)(34,"div",73)(35,"button",74),k("click",function(){j(i);let r=v().$implicit,o=v(2);return $(o.rateThisSource(r,"thumbs_up"))}),fe(),f(36,"svg",75),E(37,"path",76),p()(),Me(),f(38,"button",77),k("click",function(){j(i);let r=v().$implicit,o=v(2);return $(o.rateThisSource(r,"thumbs_down"))}),fe(),f(39,"svg",78),E(40,"path",76),p()()()()()()()}if(t&2){let i,n=v(),r=n.$implicit,o=n.$index,s=v().$implicit,a=v();x("ngClass",a.getClassForSourceSelected(o)),U("id","source_"+r.id)("aria-label",s("source.details")),h(2),x("type","record")("feedback",r.feedback)("currentReaction",a.currentReaction)("answer",a.answer)("sourceId",r.id),h(2),U("aria-label",s("close.source.view")),h(10),A(r.title),h(),P(15,a.isDebug?15:-1),h(2),Ep("",Oc(18,30,(i=r.authors==null||(i=r.authors.slice(0,3))==null?null:i.join("; "))!==null&&i!==void 0?i:"",".")," ",((i=r.authors==null?null:r.authors.length)!==null&&i!==void 0?i:0)>3?a.authorEtAlLabel:""," ",Oc(19,33,r.publication,".")," ",Oc(20,36,r.year,"."),""),h(6),A(s("sources.selectedsource.abstract")),h(),x("ngClass",Ee(39,H4,r.readmore===!1)),U("id","source_more_"+r.id)("data-id",r.id),h(2),A(r.description),h(),P(27,r.readmore?27:-1),h(2),P(29,r.pdfLink?29:-1),h(),P(30,r.htmlLink?30:-1),h(),P(31,r.deepLink?31:-1),h(),P(32,r.quickLookLink?32:-1),h(2),U("aria-label",s("action.rate.source")),h(),U("aria-label",s("rating.source.thumbsup")),h(),x("ngClass",St(41,hE,(r.feedback==null?null:r.feedback.reaction)==="thumbs_up",(r.feedback==null?null:r.feedback.reaction)!=="thumbs_up")),h(2),U("aria-label",s("rating.source.thumbsdown")),h(),x("ngClass",St(44,hE,(r.feedback==null?null:r.feedback.reaction)==="thumbs_down",(r.feedback==null?null:r.feedback.reaction)!=="thumbs_down"))}}function X4(t,e){if(t&1){let i=Z();f(0,"li",42)(1,"button",43,0),k("click",function(){let r=j(i).$implicit,o=v(2);return $(o.selectSource(r))}),f(3,"article")(4,"div",44)(5,"div",45)(6,"div",46)(7,"div",47),C(8),p()(),f(9,"div",48),C(10),p()()(),f(11,"div",49)(12,"h4",50),C(13),p(),f(14,"div",51),C(15),p()(),f(16,"span",52),C(17),p()()(),I(18,z4,1,0,"div",53),p(),I(19,J4,41,47,"li",54)}if(t&2){let i,n=e.$implicit,r=e.$index,o=v().$implicit,s=v();x("ngClass",ib(16,U4,r===0,r===1,r===2,r===3,r===4)),h(),U("aria-label",s.getSourceTitle(r))("title",s.isDebug?n.score:s.getSourceTitle(r))("aria-expanded",n.selected)("aria-describedby","source_description_"+n.id),h(7),me(" ",n.referenceNumber," "),h(2),me(" ",s.getContentTypeLocalization(n.contentType)," "),h(2),U("id","source_title_"+n.referenceNumber),h(),me(" ",n.title," "),h(2),Dp(" ",n.authors==null?null:n.authors[0]," ",((i=n.authors==null?null:n.authors.length)!==null&&i!==void 0?i:0)>1?s.authorEtAlLabel:""," ",n.year," "),h(),U("id","source_description_"+n.id),h(),me(" ",o("source.details.description")," "),h(),P(18,n.selected?18:-1),h(),P(19,n.selected?19:-1)}}function eP(t,e){if(t&1){let i=Z();f(0,"ul",12),Fe(1,X4,20,22,null,null,B4),f(3,"li",13)(4,"a",14),k("click",function(){j(i);let r=v();return $(r.viewRelated())}),fe(),f(5,"svg",15),E(6,"circle",16)(7,"path",17)(8,"path",17)(9,"path",18)(10,"path",19)(11,"path",20)(12,"path",21)(13,"path",22)(14,"path",23)(15,"path",24)(16,"path",25)(17,"path",26)(18,"path",27),f(19,"defs")(20,"linearGradient",28),E(21,"stop")(22,"stop",29),p(),f(23,"linearGradient",30),E(24,"stop",31)(25,"stop",29),p(),f(26,"linearGradient",32),E(27,"stop",31)(28,"stop",29),p(),f(29,"linearGradient",33),E(30,"stop",34)(31,"stop",35),p(),f(32,"linearGradient",36),E(33,"stop",34)(34,"stop",35),p(),f(35,"linearGradient",37),E(36,"stop",34)(37,"stop",35),p(),f(38,"linearGradient",38),E(39,"stop",34)(40,"stop",35),p(),f(41,"linearGradient",39),E(42,"stop")(43,"stop",40),p()()(),Me(),E(44,"div",41),p()()()}if(t&2){let i=e.$implicit,n=v();x("@fadeIn",void 0),h(),Pe(n.sources),h(3),x("href",n.relatedResultsLink,hi),h(40),x("innerHTML",i("sources.relatedresultsfromlibrary"),ht)}}var L4,V4,j4,$4,B4,U4,H4,hE,o0,pE=y(()=>{"use strict";F();le();r0();fE();te();Do();F();wa();jt();te();sn();$o();xo();le();L4=["selectedSourceEl"],V4=["ratingdialog"],j4=["sourceButton"],$4=["abstract"],B4=(t,e)=>e.id,U4=(t,e,i,n,r)=>({"order-1":t,"order-2":e,"order-3":i,"order-4":n,"order-5":r}),H4=t=>({"line-clamp-none":t}),hE=(t,e)=>({"fill-cdra-blue-light-400":t,"fill-white":e});o0=(()=>{let e=class e{get isDebug(){return this.research.isDebug}constructor(n,r,o,s,a,l){this.clipboard=n,this.research=r,this.translocoService=o,this.stats=s,this.message=a,this.domSanitizer=l,this.authorEtAlLabel=this.translocoService.translate("sources.etal"),this.relatedResultsLink="#",Bs(()=>{this.selectedSource().source!=null&&setTimeout(()=>{this.focusOnSource(this.selectedSource().index);for(let c of this.abstracts)this.markTextTruncated(c.nativeElement)},0)})}ngOnInit(){if(this.answer&&this.answer.results){let{results:n,improvedQuery:r,improvedQuerySearch:o,id:s}=this.answer;this.sources=n,this.improvedQuery=r,this.improvedQuerySearch=o,this.id=s}this.relatedResultsLink=this.domSanitizer.bypassSecurityTrustUrl((this.improvedQuerySearch??"#")+"&lang="+this.translocoService.getActiveLang())}ngAfterViewInit(){for(let n of this.abstracts)this.markTextTruncated(n.nativeElement)}markTextTruncated(n){let r=n.scrollHeight>n.clientHeight,o=n.attributes.getNamedItem("data-id")?.value;if(o){let s=this.sources.find(a=>a.id===o);s&&(s.readmore=r)}}keyEvent(n){if(n.key==="Escape"){let r=this.sources.find(o=>o.selected);r&&this.closeSourceView(r)}}rateThisSource(n,r){n.feedback?(this.currentReaction=n.feedback.reaction,n.feedback.reaction===r?(n.feedback.reaction="",this.stats.sendEvent({category:"feedback-remove",action:r,label:"sourceId",value:n.id,question:this.question}),this.research.removeFeedback(n.feedback)):n.feedback.reaction=r,n.feedback=b({},n.feedback)):console.warn("something odd is happening, source has no feedback")}copyText(){let n=this.sources.find(r=>r.selected);if(n){let r=this.translocoService.translate("sources.selectedsource.abstract"),o=`${n.title}. ${n.authors?.join(", ")??""}${n.description?`\r
`+r+n.description:""}\r
$DOI: {selectedSource.doi}`;this.clipboard.copy(o),this.stats.sendEvent({category:"source",action:"copy",label:"sourceId",value:n.id,question:this.question})}}selectSource(n,r=!1){!r&&n?.selected?(this.stats.sendEvent({category:"source",action:"collapse-from-sourcecard",label:"sourceId",value:n?.id,question:this.question}),this.closeSourceView(n)):(this.sources.map(o=>o.selected=!1),n&&(n.selected=!0,r?this.stats.sendEvent({category:"source",action:"expand-from-annotation",label:"sourceId",value:n?.id,question:this.question}):this.stats.sendEvent({category:"source",action:"expand-from-sourcecard",label:"sourceId",value:n.id,question:this.question}),this.selectedSource.set({source:n,index:this.sources.indexOf(n)+1})))}closeSourceView(n){this.sources.map(o=>o.selected=!1),this.sources.indexOf(n)!==-1&&this.selectedSource.set({source:null,index:-1})}downloadPdf(n){this.stats.sendEvent({category:"source",action:"pdf",label:"sourceId",value:n.id,question:this.question})}fullTextOnline(n){this.stats.sendEvent({category:"source",action:"fulltext",label:"sourceId",value:n.id,question:this.question})}getDeeplink(n){this.stats.sendEvent({category:"source",action:"deeplink",label:"sourceId",value:n.id,question:this.question}),this.message.emitAppEvent({event:"source",status:"click",value:n.deepLink})}getQuickLookLink(n){this.stats.sendEvent({category:"source",action:"quickLookLink",label:"sourceId",value:n.id,question:this.question}),this.message.emitAppEvent({event:"source",status:"click",value:n.quickLookLink})}viewRelated(){this.stats.sendEvent({category:"source",action:"search-library",label:"answerId",value:this.answer?.id,question:this.question})}getSourceTitle(n){let r=this.answer?.results?.[n]?.title;return n=n+1,r?this.translocoService.translate("answer.sourcetitle",{index:n,title:r}):this.translocoService.translate("answer.sourcetitledefault",{index:n})}readMore(n,r){let o=n.target.parentElement;r.readmore&&setTimeout(()=>{for(let s of this.abstracts)s.nativeElement.scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"}),s.nativeElement.focus()},0),r.readmore=!r.readmore,o&&o.focus(),this.stats.sendEvent({category:"source",action:"readmore",label:"sourceId",value:r.id,question:this.question})}getClassForSourceSelected(n){switch(n){case 0:return"order-1 md:order-4";case 1:return"order-2 md:order-4";case 2:return"order-3  md:order-4";case 3:return"order-4  md:order-7";case 4:return"order-5  md:order-7";default:return""}}focusOnSource(n){n=n-1;let r=this.sourceButtons.toArray()[n];r&&(r.nativeElement.scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"}),r.nativeElement.focus({preventScroll:!0}))}getContentTypeLocalization(n){if(!n)return"";n=n.replace(/[^a-zA-Z0-9]/g,"_").toLowerCase();let r=this.translocoService.translate("content_type."+n);return r==="content_type."+n?n:r}};e.\u0275fac=function(r){return new(r||e)(_(jo),_(Ne),_(Ke),_(Be),_(Qn),_(Js))},e.\u0275cmp=V({type:e,selectors:[["app-sources"]],viewQuery:function(r,o){if(r&1&&(at(L4,5),at(V4,5),at(j4,5),at($4,5)),r&2){let s;tt(s=nt())&&(o.selectedSourceEl=s.first),tt(s=nt())&&(o.ratingdialogEl=s.first),tt(s=nt())&&(o.sourceButtons=s),tt(s=nt())&&(o.abstracts=s)}},hostBindings:function(r,o){r&1&&k("keyup",function(a){return o.keyEvent(a)},!1,yc)},inputs:{selectedSource:"selectedSource",answer:"answer",question:"question"},standalone:!0,features:[B],decls:6,vars:0,consts:[["sourceButton",""],["selectedSourceEl",""],["ratingdialog",""],["closeButton",""],["abstract",""],["tabindex","-1",1,"t-answer","answer","flex","flex-col","mb-2","mt-6","scroll-m-8"],[1,"icon-title-container","flex","items-center"],["width","24px","height","24px","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8 8H13M8 12H16M8 16H11M7.2 4H16.8C17.9201 4 18.4802 4 18.908 4.21799C19.2843 4.40973 19.5903 4.71569 19.782 5.09202C20 5.51984 20 6.0799 20 7.2V16.8C20 17.9201 20 18.4802 19.782 18.908C19.5903 19.2843 19.2843 19.5903 18.908 19.782C18.4802 20 17.9201 20 16.8 20H7.2C6.0799 20 5.51984 20 5.09202 19.782C4.71569 19.5903 4.40973 19.2843 4.21799 18.908C4 18.4802 4 17.9201 4 16.8V7.2C4 6.0799 4 5.51984 4.21799 5.09202C4.40973 4.71569 4.71569 4.40973 5.09202 4.21799C5.51984 4 6.0799 4 7.2 4Z","stroke","#000000","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["class","inline text-xl text-black font-bold mx-2",4,"transloco"],["role","list","class","t-sources list-none grid grid-cols-1 md:grid-cols-3 lg:grid-cols-6 gap-3 h-fit",4,"transloco"],[1,"inline","text-xl","text-black","font-bold","mx-2"],["role","list",1,"t-sources","list-none","grid","grid-cols-1","md:grid-cols-3","lg:grid-cols-6","gap-3","h-fit"],[1,"t-source-relatedresults","order-6","flex","leading-none","rounded-lg","p-2","text-center","shadow","border-[3px]","gradient-border-blue","hover:border-black","focus:border-black"],["target","_blank",1,"flex","flex-col","items-center","justify-center","w-full",3,"click","href"],["width","66","height","65","viewBox","0 0 66 65","fill","none","xmlns","http://www.w3.org/2000/svg",1,"h-16","w-16","flex-shrink-0","mb-1"],["cx","33","cy","32.5","r","32.5","fill","white"],["d","M31.979 13.5384L48.1621 21.6169L47.6587 22.2047H16.5662L16.0555 21.6085L31.979 13.5384ZM31.9749 12L13.873 21.1739L15.9346 23.5784H48.2913L50.3519 21.1739L31.9749 12Z","fill","#1D1D1B"],["d","M22.8093 21.2604L22.1881 20.0348L31.9978 15.0632L41.7105 19.9118L41.0966 21.1406L32.003 16.6016L22.8093 21.2604Z","fill","url(#paint0_linear_3137_2813)"],["d","M15.6745 29.1065H19.2773V27.7316H16.7952V22.6124H15.6745V29.1065Z","fill","url(#paint1_linear_3137_2813)"],["d","M48.2933 29.0126H43.8773V27.6379H46.9197V22.5194H48.2933V29.0126Z","fill","url(#paint2_linear_3137_2813)"],["d","M24.3446 42.2118H22.9793V26.7896H20.555V42.2118H19.1886V25.4159H24.3446V42.2118Z","fill","url(#paint3_linear_3137_2813)"],["d","M31.2902 42.2117H29.9238V26.7895H27.5006V42.2117H26.1342V25.4158H31.2902V42.2117Z","fill","url(#paint4_linear_3137_2813)"],["d","M38.2348 42.2117H36.8694V26.7895H34.4451V42.2117H33.0787V25.4158H38.2348V42.2117Z","fill","url(#paint5_linear_3137_2813)"],["d","M45.1803 42.2117H43.8139V26.7895H41.3907V42.2117H40.0243V25.4158H45.1803V42.2117Z","fill","url(#paint6_linear_3137_2813)"],["d","M47.3761 44.4191H16.86V45.7865H47.3761V44.4191Z","fill","url(#paint7_linear_3137_2813)"],["d","M43.3958 47.1468H16.3359L18.5944 43.0601H45.0259V41.6927H17.8159L13.9345 48.5142H45.7722","fill","#1D1D1B"],["d","M20.8914 47.1466H47.9504L45.6918 43.0599H34.5939V41.6925H46.4704L50.3517 48.514H18.514","fill","#1D1D1B"],["id","paint0_linear_3137_2813","x1","31.9491","y1","15.1804","x2","31.9491","y2","20.6804","gradientUnits","userSpaceOnUse"],["offset","1","stop-opacity","0"],["id","paint1_linear_3137_2813","x1","17.409","y1","28.2716","x2","15.1966","y2","25.0286","gradientUnits","userSpaceOnUse"],["offset","0.1839"],["id","paint2_linear_3137_2813","x1","46.1673","y1","28.1778","x2","48.1864","y2","24.5497","gradientUnits","userSpaceOnUse"],["id","paint3_linear_3137_2813","x1","19.2458","y1","29.5431","x2","29.2199","y2","46.4394","gradientUnits","userSpaceOnUse"],["offset","6.35783e-07","stop-color","#B175E1"],["offset","1","stop-color","#319AF0"],["id","paint4_linear_3137_2813","x1","24.3874","y1","26.4877","x2","34.3615","y2","43.3841","gradientUnits","userSpaceOnUse"],["id","paint5_linear_3137_2813","x1","29.5289","y1","23.4325","x2","39.503","y2","40.3289","gradientUnits","userSpaceOnUse"],["id","paint6_linear_3137_2813","x1","34.6704","y1","20.3773","x2","44.6445","y2","37.2737","gradientUnits","userSpaceOnUse"],["id","paint7_linear_3137_2813","x1","33.838","y1","45.1031","x2","48.3864","y2","45.1031","gradientUnits","userSpaceOnUse"],["offset","0.9365","stop-opacity","0"],[1,"break-words-deprecated",3,"innerHTML"],[1,"relative",3,"ngClass"],[1,"t-source","h-full","w-full","bg-cdra-blue-light-100","shadow","rounded-lg","flex-col","inline-flex","p-2","text-start","ring-cdra-blue-light-main","focus:ring-2","hover:ring-2","scroll-mt-10",3,"click"],[1,"flex-col","justify-center","flex","min-h-8","mb-1","w-full","overflow-hidden","text-ellipsis"],[1,"justify-start","gap-1","inline-flex","items-center"],[1,"rounded-full","bg-gradient-to-l","from-cdra-blue-light-main","from-20%","to-cdra-green-main","size-5","inline-flex","justify-center","items-center","flex-shrink-0"],[1,"text-white","text-center","text-sm","font-bold"],[1,"text-cdra-blue-light-main","text-xs","font-bold","uppercase"],[1,"flex","flex-col","gap-2","flex-grow","justify-between"],[1,"t-source-title","text-black","font-sourcesans","leading-[1.1rem]","line-clamp-5","break-words-deprecated"],[1,"t-source-publication","text-neutral-700","leading-none","text-sm","line-clamp-2"],[1,"sr-only"],[1,"absolute","left-[calc(50%-0.75rem)]","w-0","h-0","-bottom-4","border-l-[10px]","border-l-transparent","border-b-[14px]","border-b-cdra-blue-light-100","border-r-[10px]","border-r-transparent"],["tabindex","-1",1,"t-source-selected","gap-x-0","lg:order-7","lg:col-span-6","md:col-span-3","p-4","shadow","bg-cdra-blue-light-100","rounded-lg",3,"ngClass"],[3,"type","feedback","currentReaction","answer","sourceId"],[1,"t-source-selected-close","float-end","ms-4",3,"click"],["aria-hidden","true","width","24","height","25","viewBox","0 0 24 25","fill","none","xmlns","http://www.w3.org/2000/svg"],["clip-path","url(#clip0_2589_1608)"],["d","M19 6.84533L17.59 5.43533L12 11.0253L6.41 5.43533L5 6.84533L10.59 12.4353L5 18.0253L6.41 19.4353L12 13.8453L17.59 19.4353L19 18.0253L13.41 12.4353L19 6.84533Z","fill","#828282"],["id","clip0_2589_1608"],["width","24","height","24","fill","white","transform","translate(0 0.435333)"],[1,"t-source-selected-title","text-xl","font-bold","head"],[1,"t-score","text-sm"],[1,"t-source-selected-author","text-base","my-2"],[1,"t-source-selected-abstract","text-base","my-2"],["tabindex","-1",1,"line-clamp-5",3,"ngClass"],["aria-expanded","false",1,"t-source-selected-read-more","font-bold","text-cdra-blue-light-main","underline"],[1,"flex","flex-col","md:flex-row","gap-2","items-center"],["target","_blank",1,"t-source-selected-downloadpdf","inline-flex","justify-center","p-2","rounded-md","border","border-blue-cdra-light-main","bg-cdra-blue-light-main","text-white",3,"href"],["target","_blank",1,"t-source-selected-fulltext","inline-flex","justify-center","p-2","rounded-md","border","border-blue-cdra-light-main","bg-cdra-blue-light-main","text-white",3,"href"],["target","_blank",1,"t-source-selected-view-all","inline-flex","justify-center","p-2","rounded-md","border","border-cdra-blue-light-main",3,"href"],[1,"self-center","lg:self-auto","lg:ms-auto","inline-flex","items-center","gap-2","text-stone-500","hover:text-black","focus:text-black","me-4"],["role","group","tabindex","0"],[1,"t-source-selected-rating-thumbsup",3,"click"],["aria-hidden","true","height","24","width","24","viewBox","0 0 18 18","xmlns","http://www.w3.org/2000/svg","fill","#000000",1,"stroke-cdra-blue-light-700","hover:stroke-cdra-blue-light-900",3,"ngClass"],["d","M6.956 1.745C7.021.81 7.908.087 8.864.325l.261.066c.463.116.874.456 1.012.965.22.816.533 2.511.062 4.51a9.84 9.84 0 0 1 .443-.051c.713-.065 1.669-.072 2.516.21.518.173.994.681 1.2 1.273.184.532.16 1.162-.234 1.733.058.119.103.242.138.363.077.27.113.567.113.856 0 .289-.036.586-.113.856-.039.135-.09.273-.16.404.169.387.107.819-.003 1.148a3.163 3.163 0 0 1-.488.901c.054.152.076.312.076.465 0 .305-.089.625-.253.912C13.1 15.522 12.437 16 11.5 16H8c-.605 0-1.07-.081-1.466-.218a4.82 4.82 0 0 1-.97-.484l-.048-.03c-.504-.307-.999-.609-2.068-.722C2.682 14.464 2 13.846 2 13V9c0-.85.685-1.432 1.357-1.615.849-.232 1.574-.787 2.132-1.41.56-.627.914-1.28 1.039-1.639.199-.575.356-1.539.428-2.59z"],[1,"t-source-selected-rating-thumbsdown",3,"click"],["aria-hidden","true","height","24","width","24","viewBox","0 0 18 18","xmlns","http://www.w3.org/2000/svg","fill","#000000",1,"-scale-y-100","stroke-cdra-blue-light-700","hover:stroke-cdra-blue-light-900",3,"ngClass"],["aria-expanded","false",1,"t-source-selected-read-more","font-bold","text-cdra-blue-light-main","underline",3,"click"],["target","_blank",1,"t-source-selected-downloadpdf","inline-flex","justify-center","p-2","rounded-md","border","border-blue-cdra-light-main","bg-cdra-blue-light-main","text-white",3,"click","href"],["width","20","height","21","viewBox","0 0 20 21","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.377 11.6758L10.3828 11.6484C10.4961 11.1816 10.6387 10.5996 10.5273 10.0723C10.4531 9.65625 10.1465 9.49414 9.88477 9.48242C9.57617 9.46875 9.30078 9.64453 9.23242 9.90039C9.10352 10.3691 9.21875 11.0098 9.42969 11.8262C9.16406 12.459 8.74023 13.3789 8.42969 13.9258C7.85156 14.2246 7.07617 14.6855 6.96094 15.2676C6.9375 15.375 6.96484 15.5117 7.0293 15.6348C7.10156 15.7715 7.2168 15.877 7.35156 15.9277C7.41016 15.9492 7.48047 15.9668 7.5625 15.9668C7.90625 15.9668 8.46289 15.6895 9.20508 14.416C9.31836 14.3789 9.43555 14.3398 9.54883 14.3008C10.0801 14.1211 10.6309 13.9336 11.1289 13.8496C11.6797 14.1445 12.3066 14.334 12.7324 14.334C13.1543 14.334 13.3203 14.084 13.3828 13.9336C13.4922 13.6699 13.4395 13.3379 13.2617 13.1602C13.0039 12.9062 12.377 12.8398 11.4004 12.9609C10.9199 12.668 10.6055 12.2695 10.377 11.6758ZM8.23438 14.6426C7.96289 15.0371 7.75781 15.2344 7.64648 15.3203C7.77734 15.0801 8.0332 14.8262 8.23438 14.6426ZM9.94531 10.043C10.0469 10.2168 10.0332 10.7422 9.95508 11.0078C9.85938 10.6191 9.8457 10.0684 9.90234 10.0039C9.91797 10.0059 9.93164 10.0176 9.94531 10.043ZM9.91406 12.3965C10.123 12.7578 10.3867 13.0684 10.6777 13.2988C10.2559 13.3945 9.87109 13.5527 9.52734 13.6934C9.44531 13.7266 9.36523 13.7598 9.28711 13.791C9.54688 13.3203 9.76367 12.7871 9.91406 12.3965ZM12.9531 13.6758C12.9551 13.6797 12.957 13.6855 12.9453 13.6934H12.9414L12.9375 13.6992C12.9219 13.709 12.7617 13.8027 12.0723 13.5312C12.8652 13.4941 12.9512 13.6738 12.9531 13.6758ZM16.6914 6.09375L12.4883 1.89063C12.3711 1.77344 12.2129 1.70703 12.0469 1.70703H3.75C3.4043 1.70703 3.125 1.98633 3.125 2.33203V18.582C3.125 18.9277 3.4043 19.207 3.75 19.207H16.25C16.5957 19.207 16.875 18.9277 16.875 18.582V6.53711C16.875 6.37109 16.8086 6.21094 16.6914 6.09375ZM15.4336 6.82422H11.7578V3.14844L15.4336 6.82422ZM15.4688 17.8008H4.53125V3.11328H10.4297V7.33203C10.4297 7.54959 10.5161 7.75824 10.67 7.91208C10.8238 8.06592 11.0324 8.15234 11.25 8.15234H15.4688V17.8008Z","fill","white"],[1,"ms-1"],["target","_blank",1,"t-source-selected-fulltext","inline-flex","justify-center","p-2","rounded-md","border","border-blue-cdra-light-main","bg-cdra-blue-light-main","text-white",3,"click","href"],["d","M10.654 15.1074C10.7414 15.1945 10.8107 15.298 10.8581 15.412C10.9054 15.5259 10.9297 15.6481 10.9297 15.7715C10.9297 15.8949 10.9054 16.017 10.8581 16.131C10.8107 16.245 10.7414 16.3484 10.654 16.4355L10.1899 16.8996C9.31057 17.779 8.11791 18.273 6.8743 18.273C5.6307 18.273 4.43804 17.779 3.55868 16.8996C2.67932 16.0202 2.1853 14.8276 2.1853 13.584C2.1853 12.3404 2.67932 11.1477 3.55868 10.2684L5.44305 8.38476C6.28796 7.53776 7.42476 7.04588 8.62057 7.00986C9.81639 6.97383 10.9807 7.39641 11.8751 8.19101C11.9674 8.27309 12.0427 8.37255 12.0966 8.48371C12.1505 8.59488 12.182 8.71557 12.1892 8.8389C12.1965 8.96222 12.1794 9.08577 12.1389 9.20249C12.0984 9.3192 12.0353 9.4268 11.9532 9.51914C11.8711 9.61147 11.7717 9.68674 11.6605 9.74064C11.5493 9.79454 11.4287 9.82601 11.3053 9.83326C11.182 9.84052 11.0585 9.82341 10.9417 9.78292C10.825 9.74242 10.7174 9.67934 10.6251 9.59726C10.0888 9.12096 9.39074 8.86756 8.67377 8.88891C7.9568 8.91026 7.27508 9.20473 6.76805 9.71211L4.88524 11.5934C4.35771 12.1209 4.06135 12.8364 4.06135 13.5824C4.06135 14.3285 4.35771 15.0439 4.88524 15.5715C5.41277 16.099 6.12826 16.3954 6.8743 16.3954C7.62035 16.3954 8.33583 16.099 8.86337 15.5715L9.32743 15.1074C9.4145 15.0203 9.51789 14.9511 9.6317 14.9039C9.74551 14.8567 9.86751 14.8325 9.99071 14.8325C10.1139 14.8325 10.2359 14.8567 10.3497 14.9039C10.4635 14.9511 10.5669 15.0203 10.654 15.1074ZM16.4415 4.01367C15.5614 3.13566 14.369 2.64258 13.1259 2.64258C11.8827 2.64258 10.6903 3.13566 9.81024 4.01367L9.34618 4.47773C9.17006 4.65385 9.07112 4.89272 9.07112 5.14179C9.07112 5.39087 9.17006 5.62974 9.34618 5.80586C9.5223 5.98198 9.76117 6.08092 10.0102 6.08092C10.2593 6.08092 10.4982 5.98198 10.6743 5.80586L11.1384 5.34179C11.6659 4.81426 12.3814 4.5179 13.1274 4.5179C13.8735 4.5179 14.589 4.81426 15.1165 5.34179C15.644 5.86933 15.9404 6.58481 15.9404 7.33086C15.9404 8.0769 15.644 8.79239 15.1165 9.31992L13.2329 11.2043C12.7254 11.7115 12.0433 12.0055 11.3262 12.0263C10.609 12.047 9.91105 11.793 9.37509 11.316C9.28275 11.2339 9.17515 11.1709 9.05844 11.1304C8.94172 11.0899 8.81817 11.0728 8.69484 11.08C8.57152 11.0873 8.45082 11.1187 8.33966 11.1726C8.2285 11.2265 8.12904 11.3018 8.04696 11.3941C7.96488 11.4865 7.9018 11.5941 7.86131 11.7108C7.82081 11.8275 7.80371 11.9511 7.81096 12.0744C7.81821 12.1977 7.84969 12.3184 7.90359 12.4296C7.95748 12.5407 8.03275 12.6402 8.12509 12.7223C9.01882 13.5167 10.1824 13.9395 11.3776 13.9042C12.5729 13.8689 13.7095 13.3782 14.5548 12.5324L16.4391 10.6488C17.3182 9.76896 17.8121 8.57624 17.8126 7.33251C17.813 6.08879 17.3199 4.89571 16.4415 4.01523V4.01367Z","fill","white"],["target","_blank",1,"t-source-selected-view-all","inline-flex","justify-center","p-2","rounded-md","border","border-cdra-blue-light-main",3,"click","href"]],template:function(r,o){r&1&&(f(0,"div",5)(1,"div",6),fe(),f(2,"svg",7),E(3,"path",8),p(),I(4,q4,2,1,"h3",9),p()(),I(5,eP,45,3,"ul",10))},dependencies:[ve,it,id,dE,ye,ee],data:{animation:[ji("fadeIn",[yi("* => *",[Sb(":enter",[Tt({opacity:0}),Ib(100,[vi("0.8s",Tt({opacity:1}))])],{optional:!0})])])]}});let t=e;return t})()});function nP(t,e){if(t&1&&(f(0,"div",8),fe(),f(1,"svg",22),E(2,"path",23),p(),Me(),f(3,"a",24),C(4),p()()),t&2){let i=v(2).$implicit;h(3),x("href",i("action.customlinkuri"),hi),h(),A(i("action.customlink"))}}function iP(t,e){if(t&1){let i=Z();E(0,"app-rating-dialog",7,0),I(2,nP,5,2,"div",8),f(3,"div",9)(4,"div",10)(5,"button",11),k("click",function(){j(i);let r=v(2);return $(r.rateThisAnswer("thumbs_up"))}),fe(),f(6,"svg",12),E(7,"path",13),p()(),Me(),f(8,"button",14),k("click",function(){j(i);let r=v(2);return $(r.rateThisAnswer("thumbs_down"))}),fe(),f(9,"svg",15),E(10,"path",13),p()()()(),Me(),f(11,"button",16,1),k("click",function(){j(i);let r=Xw(12),o=v(2);return $(o.copyText(r))}),fe(),f(13,"svg",17)(14,"g",18),E(15,"path",19),p(),f(16,"defs")(17,"clipPath",20),E(18,"rect",21),p()()(),Me(),f(19,"span"),C(20),p()()}if(t&2){let i=v().$implicit,n=v();x("type","answer")("feedback",n.qanda.answer==null?null:n.qanda.answer.feedback)("currentReaction",n.currentReaction)("answer",n.qanda.answer),h(2),P(2,n.showCiteLink()?2:-1),h(2),U("aria-label",i("action.rate.answer")),h(),U("aria-label",i("rating.answer.thumbsup")),h(),x("ngClass",St(11,mE,(n.qanda.answer==null||n.qanda.answer.feedback==null?null:n.qanda.answer.feedback.reaction)==="thumbs_up",(n.qanda.answer==null||n.qanda.answer.feedback==null?null:n.qanda.answer.feedback.reaction)!=="thumbs_up")),h(2),U("aria-label",i("rating.answer.thumbsdown")),h(),x("ngClass",St(14,mE,(n.qanda.answer==null||n.qanda.answer.feedback==null?null:n.qanda.answer.feedback.reaction)==="thumbs_down",(n.qanda.answer==null||n.qanda.answer.feedback==null?null:n.qanda.answer.feedback.reaction)!=="thumbs_down")),h(11),A(i("action.copytext"))}}function rP(t,e){if(t&1){let i=Z();f(0,"div",3),I(1,iP,21,17),f(2,"button",4),k("click",function(){j(i);let r=v();return $(r.regenerateAnswer())}),fe(),f(3,"svg",5),E(4,"path",6),p(),Me(),f(5,"span"),C(6),p()()()}if(t&2){let i=e.$implicit,n=v();h(),P(1,n.qanda.error?-1:1),h(5),A(i("action.tryagain"))}}var tP,mE,rd,s0=y(()=>{"use strict";wa();le();r0();te();F();wa();jt();te();Mt();sn();le();tP=["ratingdialog"],mE=(t,e)=>({"fill-cdra-blue-light-300 stroke-cdra-blue-light-700":t,"fill-white":e});rd=(()=>{let e=class e{constructor(n,r,o,s,a){this.clipboard=n,this.research=r,this.translocoService=o,this.config=s,this.stats=a}rateThisAnswer(n){this.qanda.regenerating||this.qanda.answer?.feedback&&(this.qanda.answer?.feedback?.reaction===n?(this.stats.sendEvent({category:"feedback-remove",action:n,label:"answerId",value:this.qanda.answer.id,question:this.qanda.question}),this.research.removeFeedback(this.qanda.answer.feedback),this.currentReaction=void 0):(this.currentReaction=this.qanda.answer.feedback.reaction,this.qanda.answer.feedback.reaction=n),this.qanda.answer.feedback=b({},this.qanda.answer.feedback))}showCiteLink(){let n=this.translocoService.translate("action.customlinkuri");return n==="action.customlinkuri"||n==="-"||n?.toLocaleUpperCase()==="NOT_DEFINED"?"":this.translocoService.getTranslation("action.customlinkuri")}copyText(n){let r=this.translocoService.translate("sources.selectedsource.abstract"),o=new URL(window.location.href),s="";for(let[l,c]of(this.qanda?.answer?.results??[]).entries()){let u="";c.authors&&(u=c.authors.join(", ")),c.year&&(u+=`. ${c.year}.`);let d="";c.description&&(d=`\r
${r} ${c.description}`),c.deepLink&&(d+=`\r
${o.origin+c.deepLink}`),s+=`${l+1}. ${c.title}\r
${u}${d}\r
\r
`}let a=`${this.qanda.question}\r
\r
${this.qanda.answer?.answer}\r
\r
${s}`;this.config.debug&&(a+=`\r
\r
QANDA ID: ${this.qanda?.answer?.id}`),this.stats.sendEvent({category:"answer",action:"copy",label:"answerId",value:this.qanda.answer?.id,question:this.qanda.question}),this.clipboard.copy(a),n.focus()}regenerateAnswer(){return mt(this,null,function*(){this.qanda.regenerating||(this.stats.sendEvent({category:"answer",action:"regenerate",label:"answerId",value:this.qanda.answer?.id,question:this.qanda.question}),this.research.setAnswer(this.qanda.question,!0))})}};e.\u0275fac=function(r){return new(r||e)(_(jo),_(Ne),_(Ke),_(Se),_(Be))},e.\u0275cmp=V({type:e,selectors:[["app-action-bar"]],viewQuery:function(r,o){if(r&1&&at(tP,5),r&2){let s;tt(s=nt())&&(o.ratingDialog=s.first)}},inputs:{qanda:"qanda"},standalone:!0,features:[B],decls:1,vars:0,consts:[["ratingdialog",""],["copyButton",""],["class","t-action-bar inline-flex gap-2","role","menubar",4,"transloco"],["role","menubar",1,"t-action-bar","inline-flex","gap-2"],["role","menuitem",1,"t-regenerate","inline-flex","items-center","gap-1","text-stone-500","hover:text-black","focus:text-black",3,"click"],["width","22","height","22","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.7071 1.29289C14.0976 1.68342 14.0976 2.31658 13.7071 2.70711L12.4053 4.00896C17.1877 4.22089 21 8.16524 21 13C21 17.9706 16.9706 22 12 22C7.02944 22 3 17.9706 3 13C3 12.4477 3.44772 12 4 12C4.55228 12 5 12.4477 5 13C5 16.866 8.13401 20 12 20C15.866 20 19 16.866 19 13C19 9.2774 16.0942 6.23349 12.427 6.01281L13.7071 7.29289C14.0976 7.68342 14.0976 8.31658 13.7071 8.70711C13.3166 9.09763 12.6834 9.09763 12.2929 8.70711L9.29289 5.70711C9.10536 5.51957 9 5.26522 9 5C9 4.73478 9.10536 4.48043 9.29289 4.29289L12.2929 1.29289C12.6834 0.902369 13.3166 0.902369 13.7071 1.29289Z","fill","currentColor"],[3,"type","feedback","currentReaction","answer"],[1,"t-howto-cite","inline-flex","items-center","gap-1","me-2"],[1,"inline-flex","items-center","gap-2","text-stone-500","hover:text-black","focus:text-black","me-1"],["role","group","tabindex","0",1,"inline-flex"],["role","menuitem",1,"t-rating-thumbsup","me-1",3,"click"],["aria-hidden","true","height","24","width","24","viewBox","0 0 18 18","xmlns","http://www.w3.org/2000/svg","fill","#000000",1,"stroke-stone-500","hover:stroke-stone-700",3,"ngClass"],["d","M6.956 1.745C7.021.81 7.908.087 8.864.325l.261.066c.463.116.874.456 1.012.965.22.816.533 2.511.062 4.51a9.84 9.84 0 0 1 .443-.051c.713-.065 1.669-.072 2.516.21.518.173.994.681 1.2 1.273.184.532.16 1.162-.234 1.733.058.119.103.242.138.363.077.27.113.567.113.856 0 .289-.036.586-.113.856-.039.135-.09.273-.16.404.169.387.107.819-.003 1.148a3.163 3.163 0 0 1-.488.901c.054.152.076.312.076.465 0 .305-.089.625-.253.912C13.1 15.522 12.437 16 11.5 16H8c-.605 0-1.07-.081-1.466-.218a4.82 4.82 0 0 1-.97-.484l-.048-.03c-.504-.307-.999-.609-2.068-.722C2.682 14.464 2 13.846 2 13V9c0-.85.685-1.432 1.357-1.615.849-.232 1.574-.787 2.132-1.41.56-.627.914-1.28 1.039-1.639.199-.575.356-1.539.428-2.59z"],["role","menuitem",1,"t-rating-thumbsdown",3,"click"],["aria-hidden","true","height","24","width","24","viewBox","0 0 18 18","xmlns","http://www.w3.org/2000/svg","fill","#000000",1,"-scale-y-100","stroke-stone-500","hover:stroke-stone-700",3,"ngClass"],["role","menuitem",1,"t-copy","inline-flex","items-center","gap-1","text-stone-500","hover:text-black","focus:text-black",3,"click"],["aria-hidden","true","width","22","height","22","viewBox","0 0 22 22","fill","none","xmlns","http://www.w3.org/2000/svg"],["clip-path","url(#clip0_787_3972)"],["d","M13.4556 21.9461H5.62158C3.81225 21.9461 2.34033 20.4741 2.34033 18.6648V7.54958C2.34033 5.74024 3.81225 4.26833 5.62158 4.26833H13.4556C15.2649 4.26833 16.7368 5.74024 16.7368 7.54958V18.6648C16.7368 20.4741 15.2649 21.9461 13.4556 21.9461ZM5.62158 5.90895C4.717 5.90895 3.98096 6.64499 3.98096 7.54958V18.6648C3.98096 19.5694 4.717 20.3054 5.62158 20.3054H13.4556C14.3602 20.3054 15.0962 19.5694 15.0962 18.6648V7.54958C15.0962 6.64499 14.3602 5.90895 13.4556 5.90895H5.62158ZM20.0181 16.614V4.22731C20.0181 2.41798 18.5462 0.94606 16.7368 0.94606H7.63135C7.17825 0.94606 6.81104 1.31328 6.81104 1.76637C6.81104 2.21947 7.17825 2.58669 7.63135 2.58669H16.7368C17.6414 2.58669 18.3774 3.32272 18.3774 4.22731V16.614C18.3774 17.0671 18.7447 17.4343 19.1978 17.4343C19.6508 17.4343 20.0181 17.0671 20.0181 16.614Z","fill","currentColor"],["id","clip0_787_3972"],["width","21","height","21","fill","white","transform","translate(0.699707 0.94606)"],["viewBox","0 0 15 14","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-4","h-4"],["d","M7.96875 0C4.10475 0 0.96875 3.136 0.96875 7C0.96875 10.864 4.10475 14 7.96875 14C11.8327 14 14.9688 10.864 14.9688 7C14.9688 3.136 11.8327 0 7.96875 0ZM8.66875 11.9H7.26875V10.5H8.66875V11.9ZM10.1177 6.475L9.48775 7.119C8.98375 7.63 8.66875 8.05 8.66875 9.1H7.26875V8.75C7.26875 7.98 7.58375 7.28 8.08775 6.769L8.95575 5.887C9.21475 5.635 9.36875 5.285 9.36875 4.9C9.36875 4.13 8.73875 3.5 7.96875 3.5C7.19875 3.5 6.56875 4.13 6.56875 4.9H5.16875C5.16875 3.353 6.42175 2.1 7.96875 2.1C9.51575 2.1 10.7688 3.353 10.7688 4.9C10.7688 5.516 10.5167 6.076 10.1177 6.475Z","fill","#2871A4"],["target","_blank",1,"underline","text-cdra-blue-dark-600",3,"href"]],template:function(r,o){r&1&&I(0,rP,7,2,"div",2)},dependencies:[ve,it,o_,id,ye,ee]});let t=e;return t})()});function sP(t,e){if(t&1&&(f(0,"div",1),E(1,"span",2),p()),t&2){let i=e.$implicit,n=v();U("aria-label",i("app.loader")),h(),Vs(St(3,oP,n.height,n.height))}}var oP,od,a0=y(()=>{"use strict";te();F();oP=(t,e)=>({height:t,width:e});od=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=V({type:e,selectors:[["app-loader"]],inputs:{loading:"loading",message:"message",height:"height"},standalone:!0,features:[B],decls:1,vars:0,consts:[["class","me-2",4,"transloco"],[1,"me-2"],[1,"loader"]],template:function(r,o){r&1&&I(0,sP,2,6,"div",0)},dependencies:[ee]});let t=e;return t})()});function aP(t,e){t&1&&E(0,"app-loader",2)}function lP(t,e){if(t&1&&(f(0,"div",0),I(1,aP,1,0,"app-loader",2),f(2,"p",3),C(3),p()()),t&2){let i=e.$implicit,n=v(2);x("@fadeIn",void 0)("ngClass","t-status-message-"+n.status),h(),P(1,n.shouldShowLoader?1:-1),h(2),A(i(n.status.text))}}function cP(t,e){t&1&&I(0,lP,4,4,"div",1)}function uP(t,e){if(t&1&&(f(0,"p",6),C(1),p(),f(2,"h3",7),C(3),p(),f(4,"ul",8)(5,"li"),C(6),p(),f(7,"li"),C(8),p(),f(9,"li"),C(10),p()()),t&2){let i=v().$implicit,n=v(2);h(),A(i(n.status.text)),h(2),A(i("status.suggestions.title")),h(3),A(i("status.noresults.suggestion.tryrephrasing")),h(2),A(i("status.noresults.suggestion.checkspelling")),h(2),A(i("status.noresults.suggestion.askdifferent"))}}function dP(t,e){if(t&1&&(f(0,"p",9),C(1),p(),f(2,"h3",7),C(3),p(),f(4,"ul",8)(5,"li"),C(6),p(),f(7,"li"),C(8),p()()),t&2){let i=v().$implicit,n=v(2);h(),A(i(n.status.text)),h(2),A(i("status.suggestions.title")),h(3),A(i("status.unsupported.suggestion.askdifferent")),h(2),A(i("status.unsupported.suggestion.rephrase"))}}function fP(t,e){if(t&1&&(f(0,"p",10),C(1),p()),t&2){let i=v().$implicit,n=v(2);h(),A(i(n.status.text))}}function hP(t,e){if(t&1&&(f(0,"p",11),C(1),p(),f(2,"h3",7),C(3),p(),f(4,"ul",8)(5,"li"),C(6),p(),f(7,"li"),C(8),p()(),f(9,"div",12),E(10,"app-action-bar",13),p()),t&2){let i=v().$implicit,n=v(2);h(),A(i(n.status.text)),h(2),A(i("status.suggestions.title")),h(3),A(i("status.error.suggestion.retry")),h(2),A(i("status.error.suggestion.contactlibrarian")),h(2),x("qanda",n.qanda)}}function pP(t,e){if(t&1&&(f(0,"div",5),I(1,uP,11,5)(2,dP,9,4)(3,fP,2,1)(4,hP,11,5),p()),t&2){let i=v(2);x("@fadeIn",void 0)("ngClass","t-status-message-"+i.status),h(),P(1,i.status.type==="noresults"?1:i.status.type==="unsupported"?2:i.status.type==="quotalimit"?3:4)}}function mP(t,e){t&1&&I(0,pP,5,3,"div",4)}var gE,vE=y(()=>{"use strict";s0();Do();le();te();a0();F();le();te();gE=(()=>{let e=class e{constructor(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=V({type:e,selectors:[["app-status-message"]],inputs:{qanda:"qanda",status:"status",shouldShowLoader:"shouldShowLoader"},standalone:!0,features:[B],decls:2,vars:1,consts:[["role","alert",1,"t-status-message","flex","items-center","w-full","text-black","transition-opacity","ease-in","duration-700","opacity-100",3,"ngClass"],["class","t-status-message flex items-center w-full text-black transition-opacity ease-in duration-700 opacity-100","role","alert",3,"ngClass",4,"transloco"],["height","16px"],[1,"t-status-message-text","inline","text-base"],["class","w-full my-2 p-4 bg-cdra-blue-dark-100 border border-cdra-blue-light-300 rounded-md","role","alert",3,"ngClass",4,"transloco"],["role","alert",1,"w-full","my-2","p-4","bg-cdra-blue-dark-100","border","border-cdra-blue-light-300","rounded-md",3,"ngClass"],[1,"t-status-noresults-text"],[1,"font-bold","my-2"],[1,"list-disc","list-inside"],[1,"t-status-unsupported-text"],[1,"t-status-quotalimit-text","inline","text-lg"],[1,"t-message-error-text"],[1,"self-end","mt-4"],[3,"qanda"]],template:function(r,o){r&1&&I(0,cP,1,0,"div",0)(1,mP,1,0),r&2&&P(0,o.status.error?1:0)},dependencies:[ve,it,od,rd,ye,ee],data:{animation:[ji("fadeIn",[yi(":enter",[Tt({opacity:.2}),vi("200ms ease-in",Tt({opacity:1}))])])]}});let t=e;return t})()});function vP(t,e){if(t&1&&E(0,"span",3),t&2){let i=v().$implicit;x("innerText",i+" ")}}function yP(t,e){if(t&1){let i=Z();f(0,"button",5),k("click",function(){let r=j(i).$implicit,o=v(5);return $(o.parent.selectSource(r))}),f(1,"span",6),C(2),p(),f(3,"span",7),C(4),p()()}if(t&2){let i=e.$implicit,n=v(3).$implicit,r=v(2);x("ngClass",St(8,gP,r.parent.selectedSourceIndex===i,r.parent.selectedSourceIndex!==i)),U("aria-label",n("answer.sourcetitledefault",Ee(11,yE,i)))("title",n("answer.sourcetitledefault",Ee(13,yE,i)))("aria-describedby","source_title_"+i)("aria-describedby","source_description_"+i),h(),U("id","source_description_"+i),h(),me(" ",n("source.details.description")," "),h(2),me(" ",i," ")}}function wP(t,e){if(t&1&&Fe(0,yP,5,15,"button",4,Ct),t&2){let i=v().$implicit,n=v(3);Pe(n.getAnnotations(i))}}function bP(t,e){if(t&1&&I(0,vP,1,1,"span",3)(1,wP,2,0),t&2){let i=e.$implicit,n=v(3);P(0,n.isString(i)?0:1)}}function CP(t,e){if(t&1&&(f(0,"p",2),Fe(1,bP,2,1,null,null,Ct),p()),t&2){let i=v().ngIf,n=v();U("lang",n.language),h(),Pe(i)}}function _P(t,e){t&1&&(go(0),I(1,CP,3,1,"p",1),vo())}var gP,yE,wE,bE=y(()=>{"use strict";te();le();Xe();F();Mt();te();le();gP=(t,e)=>({"bg-gradient-to-l from-cdra-blue-light-main from-20% to-cdra-green-main  ":t,"bg-stone-500":e}),yE=t=>({index:t});wE=(()=>{let e=class e{constructor(n,r){this.cdr=n,this.config=r,this.language="en"}ngOnInit(){this.parent.scrolltoRelevantElement(),this.buildAnswer()}isString(n){return typeof n=="string"}getAnnotations(n){return n}buildAnswer(){let n,r=this.config.currentConfig.streamAnswer;this.parent.qanda.answer?.answer$?n=this.parent.qanda.answer?.answer$:(n=G(this.parent.qanda.answer?.answer??""),r=!1),n&&(this.answer$=n.pipe(un(o=>{let s=o.split(/(\s|\n)/);return _e(s).pipe(un(a=>{let l=this.extractAnnotations(a);return l.length>0?G(l).pipe(r?Ei(10):ot):G(a).pipe(r?Ei(10):ot)}))}),Yr((o,s)=>[...o,s],[])).pipe(qe(()=>this.cdr.detectChanges())))}ngOnDestroy(){this.parent.qanda.answer?.answer$?.unsubscribe()}ngOnChanges(n){this.parent.scrolltoRelevantElement()}extractAnnotations(n){let r=[],o;for(;o=this.parent.regex.exec(n);)r=r.concat(o[1].split(/, ?/g).map(s=>parseInt(s)));return r}};e.\u0275fac=function(r){return new(r||e)(_(It),_(Se))},e.\u0275cmp=V({type:e,selectors:[["app-answer"]],inputs:{answer:"answer",parent:"parent",language:"language"},standalone:!0,features:[et,B],decls:2,vars:3,consts:[[4,"ngIf"],["class","t-summary","aria-live","polite",4,"transloco"],["aria-live","polite",1,"t-summary"],[3,"innerText"],[1,"t-source-annotation","rounded-full","size-4","me-1","inline-flex","justify-center","items-center","flex-shrink-0","align-super","hover:bg-gradient-to-l","hover:from-cdra-blue-light-main","from-20%","hover:to-cdra-green-main",3,"ngClass"],[1,"t-source-annotation","rounded-full","size-4","me-1","inline-flex","justify-center","items-center","flex-shrink-0","align-super","hover:bg-gradient-to-l","hover:from-cdra-blue-light-main","from-20%","hover:to-cdra-green-main",3,"click","ngClass"],[1,"sr-only"],["aria-hidden","true",1,"text-white","text-center","text-sm","font-bold"]],template:function(r,o){r&1&&(I(0,_P,2,0,"ng-container",0),ki(1,"async")),r&2&&x("ngIf",ab(1,1,o.answer$))},dependencies:[ye,ee,ve,it,Us,Db]});let t=e;return t})()});function TP(t,e){if(t&1&&(fe(),f(0,"svg",7)(1,"g",8),E(2,"path",9),p(),f(3,"defs")(4,"clipPath",10),E(5,"rect",11),p()()(),Me(),f(6,"h2",12),C(7),p()),t&2){let i=v().$implicit,n=v();U("aria-label",i("question.title")),h(7),me(" ",n.qanda.question," ")}}function MP(t,e){if(t&1&&(f(0,"div",4,0),E(2,"app-status-message",13),p()),t&2){let i=e.$implicit,n=e.$index,r=e.$count,o=v(2);x("ngClass",Ee(4,xP,i.error)),h(2),x("qanda",o.qanda)("status",i)("shouldShowLoader",n===r-1&&!(o.qanda.answer&&o.qanda.answer.answer)&&!i.error)}}function AP(t,e){if(t&1&&E(0,"app-sources",5),t&2){let i=v(2);x("selectedSource",i.selectedSource)("question",i.qanda.question)("answer",i.qanda.answer)}}function NP(t,e){t&1&&(fe(),f(0,"svg",27),E(1,"path",31),f(2,"defs")(3,"linearGradient",32),E(4,"stop",33)(5,"stop",34),p()()())}function RP(t,e){if(t&1){let i=Z();f(0,"button",35),k("click",function(r){j(i);let o=v().$implicit,s=v(4);return $(s.readMore(r,o))}),C(1),p()}if(t&2){let i=v().$implicit,n=v(3).$implicit;U("aria-controls","source_more_"+i.type),h(),A(n("sources.selectedsource.readmore"))}}function OP(t,e){if(t&1&&(f(0,"div",26),I(1,NP,6,0,":svg:svg",27),f(2,"div",28),E(3,"p",29,1),I(5,RP,2,2,"button",30),p()()),t&2){let i=e.$implicit,n=e.$index;x("ngClass",St(7,SP,i.type!=="DEBUG",i.type==="DEBUG")),h(),P(1,i.type!=="DEBUG"?1:-1),h(2),x("ngClass",Ee(10,IP,i.readmore===!1))("innerHTML",i.message,ht),U("id","context_"+n)("data-id","context_"+n),h(2),P(5,i.readmore?5:-1)}}function kP(t,e){if(t&1&&Fe(0,OP,6,12,"div",26,Ct),t&2){let i=v(3);Pe(i.qanda.answer.context)}}function FP(t,e){if(t&1&&(f(0,"span",14),C(1),p(),f(2,"div",15,0)(4,"div",16),fe(),f(5,"svg",17),E(6,"path",18)(7,"path",19)(8,"path",20),p(),Me(),f(9,"h3",21),C(10),p()(),I(11,kP,2,0),f(12,"div",22),E(13,"app-answer",23),f(14,"div",24),E(15,"app-action-bar",25),p()()()),t&2){let i,n=v().$implicit,r=v();h(),A(n("summary.loaded")),h(),x("@fadeIn",void 0),h(8),me(" ",n("answer.title")," "),h(),P(11,r.qanda.answer.context?11:-1),h(2),x("parent",r)("answer",r.qanda.answer.answer)("language",(i=r.qanda.answer.language)!==null&&i!==void 0?i:"en"),h(2),x("qanda",r.qanda)}}function PP(t,e){if(t&1&&E(0,"app-more-questions",6),t&2){let i=v(2);x("@fadeIn",void 0)("questions",i.qanda.answer.moreQuestions)}}function LP(t,e){if(t&1&&(f(0,"div")(1,"div",3,0),I(3,TP,8,2),p(),Fe(4,MP,3,6,"div",4,Ct),I(6,AP,1,3,"app-sources",5)(7,FP,16,8)(8,PP,1,2,"app-more-questions",6),p()),t&2){let i=v();h(3),P(3,i.qanda.question?3:-1),h(),Pe(i.qanda.statusMessages),h(2),P(6,i.qanda.answer&&i.qanda.answer.results&&i.qanda.answer.results.length>0?6:-1),h(),P(7,i.qanda.answer&&i.qanda.answer.answer?7:-1),h(),P(8,i.qanda.answer&&i.qanda.answer.moreQuestions&&i.qanda.answer.moreQuestions.length>0?8:-1)}}var DP,EP,xP,SP,IP,CE,_E=y(()=>{"use strict";F();uE();pE();s0();le();vE();Do();te();bE();F();te();sn();Mt();le();DP=["scrollToMe"],EP=["context"],xP=t=>({"t-error":t}),SP=(t,e)=>({"gradient-border-blue bg-cdra-blue-light-200":t,"border-red-500 bg-red-200":e}),IP=t=>({"line-clamp-none":t});CE=(()=>{let e=class e{get selectedSourceIndex(){return(this.qanda.answer?.results?.findIndex(r=>r.selected)??-2)+1}get isStreaming(){return this.config.currentConfig.streamAnswer??!1}constructor(n,r,o,s){this.translocoService=n,this.stats=r,this.renderer=o,this.config=s,this.regex=/\[([1-5]+(?:,\s*\d+)?)\]/g,this.selectedSource=Ls({source:null,index:-1}),this.linkClickListeners=[],this.streamingCompleted=!1,this.answer=[]}getSourceTitle(n){let r=this.qanda.answer?.results?.[n-1]?.title;return r?this.translocoService.translate("answer.sourcetitle",{index:n,title:r}):this.translocoService.translate("answer.sourcetitledefault",{index:n})}scrolltoRelevantElement(){let n=this.scrollToMeEls?.last.nativeElement;(n?.classList??null)?.contains("answer")&&(n=this.scrollToMeEls.first.nativeElement),n?.scrollIntoView({behavior:"smooth"})}ngAfterViewInit(){this.scrolltoRelevantElement(),this.scrollToMeEls.changes.subscribe(()=>{this.scrolltoRelevantElement()})}ngOnChanges(n){n.qanda?.firstChange||(this.createAnswerWithAnnotations(),setTimeout(()=>{this.scrolltoRelevantElement();for(let r of this.contexts){this.markTextTruncated(r.nativeElement);let o=r.nativeElement.getElementsByTagName("a");if(o.length>0)for(let s of o){let a=this.renderer.listen(s,"click",()=>{this.stats.sendEvent({category:"context",action:"click-link",label:"link",value:s.href,question:this.qanda.question}),s.classList.contains("t-context-improved-query-search ")&&this.stats.sendEvent({category:"context",action:"related",label:"answerId",value:this.qanda.answer?.id,question:this.qanda.question})});this.linkClickListeners.push(a)}}}))}ngOnDestroy(){this.linkClickListeners.forEach(n=>n())}createAnswerWithAnnotations(){if(!this.qanda.answer?.answer)return;this.answer=[];let n,r=0;for(;n=this.regex.exec(this.qanda.answer.answer);){let o=n[1].split(/, ?/g).map(a=>parseInt(a)),s=this.qanda.answer.answer.substring(r,n.index);this.answer.length>1&&this.answer[this.answer.length-1].line.length===0&&(this.answer[this.answer.length-1]?.index?.[0]??-1)===o[0]||this.answer.push({line:s.trim(),index:o}),r=this.regex.lastIndex}r>0&&r<this.qanda.answer.answer.length&&this.answer.push({line:this.qanda.answer.answer.substring(r)}),r===0&&this.answer.push({line:this.qanda.answer?.answer})}selectSource(n){n=n-1,this.qanda?.answer?.results?.[n]&&(this.qanda.answer.results.map(r=>r.selected=!1),this.qanda.answer.results[n].selected=!0,this.selectedSource.set({source:this.qanda.answer.results[n],index:n+1}),this.stats.sendEvent({category:"source",action:"select-annotation",label:"sourceId",value:this.qanda.answer.id,question:this.qanda.question}))}readMore(n,r){r.readmore=!r.readmore,this.stats.sendEvent({category:"context",action:"readmore",label:"answerContext",value:r.message,question:this.qanda.question})}markTextTruncated(n){let r=n.scrollHeight>n.clientHeight,o=n.attributes.getNamedItem("data-id")?.value;if(o&&this.qanda.answer?.context){let s=parseInt(o.replace("context_","")),a=this.qanda.answer.context[s];a&&(a.readmore=r)}}};e.\u0275fac=function(r){return new(r||e)(_(Ke),_(Be),_(bt),_(Se))},e.\u0275cmp=V({type:e,selectors:[["app-question-and-answer"]],viewQuery:function(r,o){if(r&1&&(at(o0,5),at(DP,5),at(EP,5)),r&2){let s;tt(s=nt())&&(o.sourcesComponent=s.first),tt(s=nt())&&(o.scrollToMeEls=s),tt(s=nt())&&(o.contexts=s)}},inputs:{qanda:"qanda"},standalone:!0,features:[et,B],decls:1,vars:0,consts:[["scrollToMe",""],["context",""],[4,"transloco"],[1,"t-question","flex","flex-inline","flex-row","items-center","scroll-m-4","mb-4"],[1,"t-status-container",3,"ngClass"],[3,"selectedSource","question","answer"],[3,"questions"],["viewBox","0 0 31 30","fill","none","xmlns","http://www.w3.org/2000/svg",1,"shrink-0","inline","me-2","w-8"],["clip-path","url(#clip0_3194_1386)"],["d","M15.1054 2.5C8.20544 2.5 2.60544 8.1 2.60544 15C2.60544 21.9 8.20544 27.5 15.1054 27.5C22.0054 27.5 27.6054 21.9 27.6054 15C27.6054 8.1 22.0054 2.5 15.1054 2.5ZM15.1054 6.25C17.1804 6.25 18.8554 7.925 18.8554 10C18.8554 12.075 17.1804 13.75 15.1054 13.75C13.0304 13.75 11.3554 12.075 11.3554 10C11.3554 7.925 13.0304 6.25 15.1054 6.25ZM15.1054 24C11.9804 24 9.21794 22.4 7.60544 19.975C7.64294 17.4875 12.6054 16.125 15.1054 16.125C17.5929 16.125 22.5679 17.4875 22.6054 19.975C20.9929 22.4 18.2304 24 15.1054 24Z","fill","black"],["id","clip0_3194_1386"],["width","30","height","30","fill","white","transform","translate(0.105438)"],[1,"t-question-text","inline","font-bold","text-2xl","text-black"],[3,"qanda","status","shouldShowLoader"],["aria-live","polite","aria-atomic","true",1,"sr-only"],["tabindex","-1",1,"t-answer","answer","flex","flex-col","mb-8","scroll-m-"],[1,"flex","items-center","w-full","mt-8","mb-2"],["aria-hidden","true","viewBox","0 0 31 30","fill","currentColor","xmlns","http://www.w3.org/2000/svg",1,"inline","me-2","text-cdra-blue-light-main","h-5"],["fill-rule","evenodd","clip-rule","evenodd","d","M20.4851 18.6146C14.819 18.6146 10.2425 14.02 10.2425 8.37207C10.2425 14.02 5.64793 18.6146 0 18.6146C5.64793 18.6146 10.2425 23.1911 10.2425 28.839C10.2425 23.1911 14.819 18.6146 20.4851 18.6146Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M31.0001 23.8992C27.8946 23.8992 25.3885 21.3749 25.3885 18.2876C25.3885 21.3749 22.8641 23.8992 19.7769 23.8992C22.8641 23.8992 25.3885 26.4054 25.3885 29.5108C25.3885 26.4054 27.8946 23.8992 31.0001 23.8992Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M27.7676 6.82836C23.9902 6.82836 20.9392 3.77739 20.9392 0C20.9392 3.77739 17.8882 6.82836 14.1108 6.82836C17.8882 6.82836 20.9392 9.87933 20.9392 13.6567C20.9392 9.87933 23.9902 6.82836 27.7676 6.82836Z"],[1,"inline","text-xl","text-black","font-bold"],[1,"flex","flex-col","font-normal","text-black"],[3,"parent","answer","language"],[1,"self-end","mt-4"],[3,"qanda"],[1,"t-answer-message","mb-2","border-2","rounded-md","inline-flex","items-center","p-2","w-full",3,"ngClass"],["viewBox","0 0 22 22","fill","none","xmlns","http://www.w3.org/2000/svg",1,"shrink-0","w-5","h-5","me-1"],[1,"flex","flex-col","relative"],[1,"line-clamp-2",3,"ngClass","innerHTML"],["aria-expanded","false",1,"t-answer-message-context-read-more","absolute","bg-gradient-to-l","from-cdra-blue-light-200","from-85%","ps-6","place-self-end","bottom-0","font-bold","text-cdra-blue-light-main","underline"],["d","M10.5523 0.5C4.75407 0.5 0.0527344 5.20133 0.0527344 10.9996C0.0527344 16.7978 4.75407 21.5 10.5523 21.5C16.3505 21.5 21.0527 16.7978 21.0527 10.9996C21.0527 5.20133 16.3505 0.5 10.5523 0.5ZM12.7381 16.7729C12.1976 16.9862 11.7674 17.148 11.4447 17.26C11.123 17.372 10.7487 17.428 10.323 17.428C9.66873 17.428 9.1594 17.268 8.79673 16.9489C8.43407 16.6298 8.25362 16.2253 8.25362 15.7338C8.25362 15.5427 8.26696 15.3471 8.29362 15.148C8.32118 14.9489 8.36473 14.7249 8.42429 14.4733L9.10073 12.084C9.16029 11.8547 9.21185 11.6369 9.25274 11.4342C9.29362 11.2298 9.31318 11.0422 9.31318 10.8716C9.31318 10.5676 9.25007 10.3542 9.12473 10.2342C8.99762 10.1142 8.75851 10.0556 8.40207 10.0556C8.22785 10.0556 8.04829 10.0813 7.86429 10.1356C7.68207 10.1916 7.52385 10.2422 7.39407 10.292L7.57273 9.556C8.0154 9.37556 8.4394 9.22089 8.84385 9.09289C9.24829 8.96311 9.63051 8.89911 9.99051 8.89911C10.6403 8.89911 11.1416 9.05733 11.4945 9.37022C11.8456 9.684 12.0225 10.092 12.0225 10.5933C12.0225 10.6973 12.0101 10.8804 11.9861 11.1418C11.9621 11.404 11.9167 11.6431 11.851 11.8627L11.1781 14.2449C11.123 14.436 11.0741 14.6547 11.0296 14.8991C10.9861 15.1436 10.9647 15.3302 10.9647 15.4556C10.9647 15.772 11.035 15.988 11.1772 16.1027C11.3176 16.2173 11.5638 16.2751 11.9123 16.2751C12.0767 16.2751 12.2607 16.2458 12.4687 16.1889C12.675 16.132 12.8243 16.0813 12.9185 16.0378L12.7381 16.7729ZM12.619 7.10356C12.3052 7.39511 11.9274 7.54089 11.4856 7.54089C11.0447 7.54089 10.6643 7.39511 10.3478 7.10356C10.0332 6.812 9.87407 6.45733 9.87407 6.04311C9.87407 5.62978 10.0341 5.27422 10.3478 4.98C10.6643 4.68489 11.0447 4.53822 11.4856 4.53822C11.9274 4.53822 12.3061 4.68489 12.619 4.98C12.9327 5.27422 13.0901 5.62978 13.0901 6.04311C13.0901 6.45822 12.9327 6.812 12.619 7.10356Z","fill","url(#paint0_linear_3505_5222)"],["id","paint0_linear_3505_5222","x1","10.5527","y1","0.5","x2","10.5527","y2","21.5","gradientUnits","userSpaceOnUse"],["stop-color","#68B7C5"],["offset","1","stop-color","#155C9A"],["aria-expanded","false",1,"t-answer-message-context-read-more","absolute","bg-gradient-to-l","from-cdra-blue-light-200","from-85%","ps-6","place-self-end","bottom-0","font-bold","text-cdra-blue-light-main","underline",3,"click"]],template:function(r,o){r&1&&I(0,LP,9,4,"div",2)},dependencies:[ve,it,cE,o0,gE,rd,ye,ee,wE],data:{animation:[ji("fadeIn",[yi(":enter",[Tt({opacity:.2}),vi("200ms ease-in",Tt({opacity:1}))])])]}});let t=e;return t})()});function jP(t,e){t&1&&E(0,"div",7)}function $P(t,e){if(t&1&&(I(0,jP,1,0,"div",7),f(1,"div",4,0),E(4,"app-question-and-answer",8),p()),t&2){let i=e.$implicit,n=e.$index,r=e.$index;P(0,r!==0?0:-1),h(),U("id","qanda-"+n),h(3),x("qanda",i)}}function BP(t,e){t&1&&E(0,"app-loader",9)}function UP(t,e){if(t&1&&(f(0,"div",5)(1,"span"),C(2),p(),I(3,BP,1,0,"app-loader",9),p()),t&2){let i=v().$implicit,n=v();h(2),A(i("chat.answerplaceholder")),h(),P(3,n.shouldShowLoader?3:-1)}}function HP(t,e){if(t&1&&(f(0,"div",2)(1,"div",3),Fe(2,$P,5,3,"div",4,VP,!1,UP,4,2,"div",5),p(),f(5,"div",6),E(6,"app-searchbox"),p()()),t&2){let i=v();h(2),Pe(i.qandas)}}var VP,DE,EE=y(()=>{"use strict";n0();le();_E();te();a0();F();jt();$o();te();VP=(t,e)=>e.id;DE=(()=>{let e=class e{get qandas(){return this.research.qandas}constructor(n,r){this.research=n,this.messages=r,this.shouldShowLoader=!1,this.messages.appEvents$.subscribe(o=>{o.event==="session"&&(o.status==="requesting"?this.shouldShowLoader=!0:this.shouldShowLoader=!1)})}};e.\u0275fac=function(r){return new(r||e)(_(Ne),_(Qn))},e.\u0275cmp=V({type:e,selectors:[["app-chat"]],hostAttrs:[1,"contents"],standalone:!0,features:[B],decls:1,vars:0,consts:[["chat","","scrollToMe",""],["class","relative flex flex-col h-full w-full",4,"transloco"],[1,"relative","flex","flex-col","h-full","w-full"],["id","chat-container","aria-live","polite",1,"t-chat-container","mb-auto","w-full","overflow-auto","text-start","p-5"],[1,"t-qanda","me-2"],[1,"t-qanda-empty","text-center","text-gray-400","mt-5"],[1,"t-qanda-searchbox","mt-5","text-center"],[1,"border","border-gray-300","w-4/5","ms-[10%]","my-8"],[3,"qanda"],["height","16px",1,"mt-2"]],template:function(r,o){r&1&&I(0,HP,7,1,"div",1)},dependencies:[ve,nd,CE,ye,ee,od],encapsulation:2});let t=e;return t})()});function qP(t,e){if(t&1&&(f(0,"div",1)(1,"h2",2),C(2),p(),E(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8),p()),t&2){let i=e.$implicit;h(2),A(i("help.title")),h(),x("innerHTML",i("help.text.intro"),ht),h(),x("innerHTML",i("help.text.howgenerated"),ht),h(),x("innerHTML",i("help.text.formulategoodquestion"),ht),h(),x("innerHTML",i("help.text.supportedquestions"),ht),h(),x("innerHTML",i("help.text.unsupportedquestions"),ht),h(),x("innerHTML",i("help.text.shareyourthoughts"),ht)}}var xE,SE=y(()=>{"use strict";te();F();te();xE=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=V({type:e,selectors:[["app-help"]],standalone:!0,features:[B],decls:1,vars:0,consts:[["class","p-5",4,"transloco"],[1,"p-5"],[1,"t-page-title","text-2xl","font-bold"],[1,"t-help-intro","text-base",3,"innerHTML"],[1,"t-help-howgenerated","text-base",3,"innerHTML"],[1,"t-help-formulategoodquestion","text-base",3,"innerHTML"],[1,"t-help-supportedquestions","text-base",3,"innerHTML"],[1,"t-help-unsupportedquestions","text-base",3,"innerHTML"],[1,"t-help-shareyourthoughts","text-base",3,"innerHTML"]],template:function(r,o){r&1&&I(0,qP,9,7,"div",0)},dependencies:[ye,ee]});let t=e;return t})()});function zP(t,e){if(t&1){let i=Z();f(0,"button",2),k("click",function(){j(i);let r=v(2);return $(r.goBack())}),C(1),p()}if(t&2){let i=e.$implicit;h(),me(" ",i("pages.backlink"),"")}}function GP(t,e){t&1&&I(0,zP,2,1,"button",1)}var IE,TE=y(()=>{"use strict";te();F();Vu();te();IE=(()=>{let e=class e{constructor(n){this.navigation=n}shouldShow(){return this.navigation.previousUrl!==void 0}goBack(){this.navigation.goBack()}};e.\u0275fac=function(r){return new(r||e)(_(Go))},e.\u0275cmp=V({type:e,selectors:[["app-go-back"]],standalone:!0,features:[B],decls:1,vars:1,consts:[[1,"t-go-back","cursor-pointer","font-bold"],["class","t-go-back cursor-pointer font-bold",3,"click",4,"transloco"],[1,"t-go-back","cursor-pointer","font-bold",3,"click"]],template:function(r,o){r&1&&I(0,GP,1,0,"button",0),r&2&&P(0,o.shouldShow()?0:-1)},dependencies:[ye,ee]});let t=e;return t})()});var ME,AE=y(()=>{"use strict";TE();Zt();F();ME=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=V({type:e,selectors:[["app-pages"]],hostAttrs:[1,"contents"],standalone:!0,features:[B],decls:5,vars:0,consts:[["id","page-content","data-focus-on-load","true","tabindex","-1",1,"inline-flex","flex-col"],[1,"p-5"],[1,"overflow-auto"]],template:function(r,o){r&1&&(f(0,"div",0)(1,"div",1),E(2,"app-go-back"),p(),f(3,"div",2),E(4,"router-outlet"),p()())},dependencies:[IE,Ir],encapsulation:2});let t=e;return t})()});var NE,RE=y(()=>{"use strict";$D();UD();KD();JD();eE();nE();rE();sE();lE();EE();SE();AE();NE=[{path:"",component:i0},{path:"pages",component:ME,children:[{path:"disclaimer",component:jD},{path:"privacy",component:BD},{path:"help",component:xE},{path:"user",component:YD,children:[]}]},{path:"research",component:XD,children:[{path:"new",component:i0},{path:"bookmarks",component:iE},{path:"documents",component:oE},{path:"history",component:tE},{path:"topics",component:aE},{path:"**",component:DE}]}]});var OE,kE=y(()=>{"use strict";F();Mt();OE=(()=>{let e=class e{get jwtToken(){return this.config.currentConfig?.apiJwt}constructor(n){this.config=n}intercept(n,r){return this.jwtToken&&(n=n.clone({setHeaders:{Authorization:"Bearer "+sessionStorage.getItem(this.jwtToken)}})),r.handle(n)}};e.\u0275fac=function(r){return new(r||e)(M(Se))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let t=e;return t})()});var FE,PE=y(()=>{"use strict";F();Mt();FE=(()=>{let e=class e{get apiParams(){return this.config.apiParams}get apiUrl(){return this.config.apiUrl}constructor(n){this.config=n}intercept(n,r){return this.apiParams&&n.url.indexOf(this.apiUrl??"")>-1&&(n=n.clone({setParams:z(b({},this.apiParams),{product:this.config.product})})),r.handle(n)}};e.\u0275fac=function(r){return new(r||e)(M(Se))},e.\u0275prov=R({token:e,factory:e.\u0275fac});let t=e;return t})()});var LE,VE=y(()=>{"use strict";F();Eo();Mt();Xe();F();LE=(()=>{let e=class e{constructor(n){this.injector=n,this.http=T(Ws)}getTranslation(n){return this.injector.get(Se).onConfigChange$.pipe(We(1),je(o=>{let s=new URLSearchParams,a=o.apiParams;for(let d in a)s.set(d,a[d]);s.set("lang",n);let l=new URL(`assets/i18n/${n}.json`,o.sourceUrl),c=this.http.get(`${o.apiUrl}/translations?${s.toString()}`).pipe(en(()=>G({}))),u=this.http.get(l.toString());return kn([c,u])}),q(o=>b(b({},o[1]),o[0])))}};e.\u0275fac=function(r){return new(r||e)(M(ft))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})()});function jE(t,e){t.initialize(),e.initialize()}var $E=y(()=>{"use strict"});var BE,UE=y(()=>{"use strict";le();Eo();F();kD();Xs();PD();VD();RE();Zt();kE();PE();VE();te();$E();sn();Vu();BE={providers:[RC(NE),Vb(jb()),{provide:Qs,useClass:FD,multi:!0},{provide:Qs,useClass:OE,multi:!0},{provide:Qs,useClass:FE,multi:!0},{provide:Hn,useClass:LD},OD(),Yb({positionClass:"toast-position",closeButton:!0,preventDuplicates:!0,progressBar:!0,timeOut:7e3}),QC({config:{availableLangs:["ar","ca","cs","cy","da","de","en","es","el","eu","fi","fr","ga","gl","haw","he","hu","hi","is","it","la","ja","ko","lt","mi","ms","nb","nn","no","nl","pl","pt","ru","sv","th","tr","uk","zh-tw","zh"],defaultLang:"en",reRenderOnLangChange:!0,prodMode:!Pc()},loader:LE}),{provide:$s,useFactory:jE,deps:[Be,Go]}]}});var WP=QE(HE=>{nD();xo();rD();UE();mt(HE,null,function*(){let t=yield Gb(BE),e=iD(tD,{injector:t.injector});customElements.define("cdi-research-assistant",e)})});export default WP();
//# sourceMappingURL=main.js.map
