kc-sdk 7.0.392-rc → 7.0.545-rc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/main.js CHANGED
@@ -1,14 +1,13 @@
1
- var Vg=Object.defineProperty,jg=Object.defineProperties;var Bg=Object.getOwnPropertyDescriptors;var mc=Object.getOwnPropertySymbols;var Hg=Object.prototype.hasOwnProperty,Ug=Object.prototype.propertyIsEnumerable;var gc=(e,t,n)=>t in e?Vg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t)=>{for(var n in t||={})Hg.call(t,n)&&gc(e,n,t[n]);if(mc)for(var n of mc(t))Ug.call(t,n)&&gc(e,n,t[n]);return e},K=(e,t)=>jg(e,Bg(t));var Xn=(e,t,n)=>new Promise((r,o)=>{var i=l=>{try{a(n.next(l))}catch(c){o(c)}},s=l=>{try{a(n.throw(l))}catch(c){o(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(i,s);a((n=n.apply(e,t)).next())});function Ts(e,t){return Object.is(e,t)}var te=null,Ur=!1,Ms=1,be=Symbol("SIGNAL");function R(e){let t=te;return te=e,t}function yc(){return te}var tr={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:()=>{}};function Ns(e){if(Ur)throw new Error("");if(te===null)return;te.consumerOnSignalRead(e);let t=te.nextProducerIndex++;if(zr(te),t<te.producerNode.length&&te.producerNode[t]!==e&&er(te)){let n=te.producerNode[t];Wr(n,te.producerIndexOfThis[t])}te.producerNode[t]!==e&&(te.producerNode[t]=e,te.producerIndexOfThis[t]=er(te)?wc(e,te,t):0),te.producerLastReadVersion[t]=e.version}function $g(){Ms++}function As(e){if(!(er(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Ms)){if(!e.producerMustRecompute(e)&&!Os(e)){xs(e);return}e.producerRecomputeValue(e),xs(e)}}function vc(e){if(e.liveConsumerNode===void 0)return;let t=Ur;Ur=!0;try{for(let n of e.liveConsumerNode)n.dirty||Gg(n)}finally{Ur=t}}function Dc(){return te?.consumerAllowSignalWrites!==!1}function Gg(e){e.dirty=!0,vc(e),e.consumerMarkedDirty?.(e)}function xs(e){e.dirty=!1,e.lastCleanEpoch=Ms}function Gr(e){return e&&(e.nextProducerIndex=0),R(e)}function ks(e,t){if(R(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(er(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Wr(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Os(e){zr(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(As(n),r!==n.version))return!0}return!1}function Rs(e){if(zr(e),er(e))for(let t=0;t<e.producerNode.length;t++)Wr(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function wc(e,t,n){if(Ec(e),e.liveConsumerNode.length===0&&Ic(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=wc(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function Wr(e,t){if(Ec(e),e.liveConsumerNode.length===1&&Ic(e))for(let r=0;r<e.producerNode.length;r++)Wr(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];zr(o),o.producerIndexOfThis[r]=t}}function er(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function zr(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Ec(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Ic(e){return e.producerNode!==void 0}function _c(e){let t=Object.create(Wg);t.computation=e;let n=()=>{if(As(t),Ns(t),t.value===$r)throw t.error;return t.value};return n[be]=t,n}var bs=Symbol("UNSET"),Ss=Symbol("COMPUTING"),$r=Symbol("ERRORED"),Wg=K(V({},tr),{value:bs,dirty:!0,error:null,equal:Ts,producerMustRecompute(e){return e.value===bs||e.value===Ss},producerRecomputeValue(e){if(e.value===Ss)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Ss;let n=Gr(e),r;try{r=e.computation()}catch(o){r=$r,e.error=o}finally{ks(e,n)}if(t!==bs&&t!==$r&&r!==$r&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function zg(){throw new Error}var Cc=zg;function bc(){Cc()}function Sc(e){Cc=e}var qg=null;function xc(e){let t=Object.create(Mc);t.value=e;let n=()=>(Ns(t),t.value);return n[be]=t,n}function Fs(e,t){Dc()||bc(),e.equal(e.value,t)||(e.value=t,Zg(e))}function Tc(e,t){Dc()||bc(),Fs(e,t(e.value))}var Mc=K(V({},tr),{equal:Ts,value:void 0});function Zg(e){e.version++,$g(),vc(e),qg?.()}function M(e){return typeof e=="function"}function qr(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Zr=qr(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
1
+ var jm=Object.defineProperty,Bm=Object.defineProperties;var Hm=Object.getOwnPropertyDescriptors;var Ic=Object.getOwnPropertySymbols;var Um=Object.prototype.hasOwnProperty,$m=Object.prototype.propertyIsEnumerable;var bc=(e,t,n)=>t in e?jm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P=(e,t)=>{for(var n in t||={})Um.call(t,n)&&bc(e,n,t[n]);if(Ic)for(var n of Ic(t))$m.call(t,n)&&bc(e,n,t[n]);return e},G=(e,t)=>Bm(e,Hm(t));function xs(e,t){return Object.is(e,t)}var Y=null,Ur=!1,Ms=1,Ae=Symbol("SIGNAL");function N(e){let t=Y;return Y=e,t}function Ns(){return Y}var Kn={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,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Wr(e){if(Ur)throw new Error("");if(Y===null)return;Y.consumerOnSignalRead(e);let t=Y.nextProducerIndex++;if(qr(Y),t<Y.producerNode.length&&Y.producerNode[t]!==e&&Zn(Y)){let n=Y.producerNode[t];zr(n,Y.producerIndexOfThis[t])}Y.producerNode[t]!==e&&(Y.producerNode[t]=e,Y.producerIndexOfThis[t]=Zn(Y)?Sc(e,Y,t):0),Y.producerLastReadVersion[t]=e.version}function Cc(){Ms++}function As(e){if(!(Zn(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Ms)){if(!e.producerMustRecompute(e)&&!Fs(e)){Ts(e);return}e.producerRecomputeValue(e),Ts(e)}}function ks(e){if(e.liveConsumerNode===void 0)return;let t=Ur;Ur=!0;try{for(let n of e.liveConsumerNode)n.dirty||Wm(n)}finally{Ur=t}}function Os(){return Y?.consumerAllowSignalWrites!==!1}function Wm(e){e.dirty=!0,ks(e),e.consumerMarkedDirty?.(e)}function Ts(e){e.dirty=!1,e.lastCleanEpoch=Ms}function Gr(e){return e&&(e.nextProducerIndex=0),N(e)}function Rs(e,t){if(N(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Zn(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)zr(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Fs(e){qr(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(As(n),r!==n.version))return!0}return!1}function Ps(e){if(qr(e),Zn(e))for(let t=0;t<e.producerNode.length;t++)zr(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function Sc(e,t,n){if(Tc(e),e.liveConsumerNode.length===0&&xc(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=Sc(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function zr(e,t){if(Tc(e),e.liveConsumerNode.length===1&&xc(e))for(let r=0;r<e.producerNode.length;r++)zr(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];qr(o),o.producerIndexOfThis[r]=t}}function Zn(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function qr(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Tc(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function xc(e){return e.producerNode!==void 0}function Ls(e,t){let n=Object.create(Gm);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(As(n),Wr(n),n.value===$r)throw n.error;return n.value};return r[Ae]=n,r}var Cs=Symbol("UNSET"),Ss=Symbol("COMPUTING"),$r=Symbol("ERRORED"),Gm=G(P({},Kn),{value:Cs,dirty:!0,error:null,equal:xs,kind:"computed",producerMustRecompute(e){return e.value===Cs||e.value===Ss},producerRecomputeValue(e){if(e.value===Ss)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Ss;let n=Gr(e),r,o=!1;try{r=e.computation(),N(null),o=t!==Cs&&t!==$r&&r!==$r&&e.equal(t,r)}catch(i){r=$r,e.error=i}finally{Rs(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function zm(){throw new Error}var Mc=zm;function Nc(e){Mc(e)}function Vs(e){Mc=e}var qm=null;function js(e,t){let n=Object.create(Hs);n.value=e,t!==void 0&&(n.equal=t);let r=()=>(Wr(n),n.value);return r[Ae]=n,r}function Zr(e,t){Os()||Nc(e),e.equal(e.value,t)||(e.value=t,Zm(e))}function Bs(e,t){Os()||Nc(e),Zr(e,t(e.value))}var Hs=G(P({},Kn),{equal:xs,value:void 0,kind:"signal"});function Zm(e){e.version++,Cc(),ks(e),qm?.()}function Us(e){let t=N(null);try{return e()}finally{N(t)}}var $s;function Yn(){return $s}function Je(e){let t=$s;return $s=e,t}var Kr=Symbol("NotFound");function A(e){return typeof e=="function"}function Yr(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Jr=Yr(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
2
  ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
- `)}`:"",this.name="UnsubscriptionError",this.errors=n});function nr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ie=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(M(r))try{r()}catch(i){t=i instanceof Zr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Nc(i)}catch(s){t=t??[],s instanceof Zr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Zr(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Nc(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&nr(n,t)}remove(t){let{_finalizers:n}=this;n&&nr(n,t),t instanceof e&&t._removeParent(this)}};ie.EMPTY=(()=>{let e=new ie;return e.closed=!0,e})();var Ps=ie.EMPTY;function Kr(e){return e instanceof ie||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function Nc(e){M(e)?e():e.unsubscribe()}var Re={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var rn={setTimeout(e,t,...n){let{delegate:r}=rn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=rn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Yr(e){rn.setTimeout(()=>{let{onUnhandledError:t}=Re;if(t)t(e);else throw e})}function Ls(){}var Ac=Vs("C",void 0,void 0);function kc(e){return Vs("E",void 0,e)}function Oc(e){return Vs("N",e,void 0)}function Vs(e,t,n){return{kind:e,value:t,error:n}}var Pt=null;function on(e){if(Re.useDeprecatedSynchronousErrorHandling){let t=!Pt;if(t&&(Pt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Pt;if(Pt=null,n)throw r}}else e()}function Rc(e){Re.useDeprecatedSynchronousErrorHandling&&Pt&&(Pt.errorThrown=!0,Pt.error=e)}var Lt=class extends ie{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Kr(t)&&t.add(this)):this.destination=Qg}static create(t,n,r){return new sn(t,n,r)}next(t){this.isStopped?Bs(Oc(t),this):this._next(t)}error(t){this.isStopped?Bs(kc(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Bs(Ac,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Kg=Function.prototype.bind;function js(e,t){return Kg.call(e,t)}var Hs=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Qr(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Qr(r)}else Qr(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Qr(n)}}},sn=class extends Lt{constructor(t,n,r){super();let o;if(M(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Re.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&js(t.next,i),error:t.error&&js(t.error,i),complete:t.complete&&js(t.complete,i)}):o=t}this.destination=new Hs(o)}};function Qr(e){Re.useDeprecatedSynchronousErrorHandling?Rc(e):Yr(e)}function Yg(e){throw e}function Bs(e,t){let{onStoppedNotification:n}=Re;n&&rn.setTimeout(()=>n(e,t))}var Qg={closed:!0,next:Ls,error:Yg,complete:Ls};var an=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Fc(e){return e}function Pc(e){return e.length===0?Fc:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var z=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Xg(n)?n:new sn(n,r,o);return on(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Lc(r),new r((o,i)=>{let s=new sn({next:a=>{try{n(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[an](){return this}pipe(...n){return Pc(n)(this)}toPromise(n){return n=Lc(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Lc(e){var t;return(t=e??Re.Promise)!==null&&t!==void 0?t:Promise}function Jg(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function Xg(e){return e&&e instanceof Lt||Jg(e)&&Kr(e)}function ey(e){return M(e?.lift)}function fe(e){return t=>{if(ey(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function pe(e,t,n,r,o){return new Us(e,t,n,r,o)}var Us=class extends Lt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var Vc=qr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Qe=(()=>{class e extends z{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Jr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Vc}next(n){on(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){on(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){on(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Ps:(this.currentObservers=null,i.push(n),new ie(()=>{this.currentObservers=null,nr(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new z;return n.source=this,n}}return e.create=(t,n)=>new Jr(t,n),e})(),Jr=class extends Qe{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Ps}};var rr=class extends Qe{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};function jc(e){return e&&M(e.schedule)}function Bc(e){return e[e.length-1]}function Hc(e){return M(Bc(e))?e.pop():void 0}function Uc(e){return jc(Bc(e))?e.pop():void 0}function Gc(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{c(r.next(u))}catch(d){s(d)}}function l(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):o(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}function $c(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Vt(e){return this instanceof Vt?(this.v=e,this):new Vt(e)}function Wc(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(m){return new Promise(function(y,w){i.push([f,m,y,w])>1||l(f,m)})},h&&(o[f]=h(o[f])))}function l(f,h){try{c(r[f](h))}catch(m){p(i[0][3],m)}}function c(f){f.value instanceof Vt?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){l("next",f)}function d(f){l("throw",f)}function p(f,h){f(h),i.shift(),i.length&&l(i[0][0],i[0][1])}}function zc(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof $c=="function"?$c(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,l){s=e[i](s),o(a,l,s.done,s.value)})}}function o(i,s,a,l){Promise.resolve(l).then(function(c){i({value:c,done:a})},s)}}var Xr=e=>e&&typeof e.length=="number"&&typeof e!="function";function eo(e){return M(e?.then)}function to(e){return M(e[an])}function no(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function ro(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function ty(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var oo=ty();function io(e){return M(e?.[oo])}function so(e){return Wc(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Vt(n.read());if(o)return yield Vt(void 0);yield yield Vt(r)}}finally{n.releaseLock()}})}function ao(e){return M(e?.getReader)}function he(e){if(e instanceof z)return e;if(e!=null){if(to(e))return ny(e);if(Xr(e))return ry(e);if(eo(e))return oy(e);if(no(e))return qc(e);if(io(e))return iy(e);if(ao(e))return sy(e)}throw ro(e)}function ny(e){return new z(t=>{let n=e[an]();if(M(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ry(e){return new z(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function oy(e){return new z(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Yr)})}function iy(e){return new z(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function qc(e){return new z(t=>{ay(e,t).catch(n=>t.error(n))})}function sy(e){return qc(so(e))}function ay(e,t){var n,r,o,i;return Gc(this,void 0,void 0,function*(){try{for(n=zc(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function Se(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function lo(e,t=0){return fe((n,r)=>{n.subscribe(pe(r,o=>Se(r,e,()=>r.next(o),t),()=>Se(r,e,()=>r.complete(),t),o=>Se(r,e,()=>r.error(o),t)))})}function co(e,t=0){return fe((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Zc(e,t){return he(e).pipe(co(t),lo(t))}function Kc(e,t){return he(e).pipe(co(t),lo(t))}function Yc(e,t){return new z(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Qc(e,t){return new z(n=>{let r;return Se(n,t,()=>{r=e[oo](),Se(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>M(r?.return)&&r.return()})}function uo(e,t){if(!e)throw new Error("Iterable cannot be null");return new z(n=>{Se(n,t,()=>{let r=e[Symbol.asyncIterator]();Se(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Jc(e,t){return uo(so(e),t)}function Xc(e,t){if(e!=null){if(to(e))return Zc(e,t);if(Xr(e))return Yc(e,t);if(eo(e))return Kc(e,t);if(no(e))return uo(e,t);if(io(e))return Qc(e,t);if(ao(e))return Jc(e,t)}throw ro(e)}function jt(e,t){return t?Xc(e,t):he(e)}function fo(...e){let t=Uc(e);return jt(e,t)}function me(e,t){return fe((n,r)=>{let o=0;n.subscribe(pe(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:ly}=Array;function cy(e,t){return ly(t)?e(...t):e(t)}function eu(e){return me(t=>cy(e,t))}var{isArray:uy}=Array,{getPrototypeOf:dy,prototype:fy,keys:py}=Object;function tu(e){if(e.length===1){let t=e[0];if(uy(t))return{args:t,keys:null};if(hy(t)){let n=py(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function hy(e){return e&&typeof e=="object"&&dy(e)===fy}function nu(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function ru(e,t,n,r,o,i,s,a){let l=[],c=0,u=0,d=!1,p=()=>{d&&!l.length&&!c&&t.complete()},f=m=>c<r?h(m):l.push(m),h=m=>{i&&t.next(m),c++;let y=!1;he(n(m,u++)).subscribe(pe(t,w=>{o?.(w),i?f(w):t.next(w)},()=>{y=!0},void 0,()=>{if(y)try{for(c--;l.length&&c<r;){let w=l.shift();s?Se(t,s,()=>h(w)):h(w)}p()}catch(w){t.error(w)}}))};return e.subscribe(pe(t,f,()=>{d=!0,p()})),()=>{a?.()}}function po(e,t,n=1/0){return M(t)?po((r,o)=>me((i,s)=>t(r,i,o,s))(he(e(r,o))),n):(typeof t=="number"&&(n=t),fe((r,o)=>ru(r,o,e,n)))}function $s(...e){let t=Hc(e),{args:n,keys:r}=tu(e),o=new z(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),l=s,c=s;for(let u=0;u<s;u++){let d=!1;he(n[u]).subscribe(pe(i,p=>{d||(d=!0,c--),a[u]=p},()=>l--,void 0,()=>{(!l||!d)&&(c||i.next(r?nu(r,a):a),i.complete())}))}});return t?o.pipe(eu(t)):o}function Gs(e,t){return fe((n,r)=>{let o=0;n.subscribe(pe(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Ws(e,t){return M(t)?po(e,t,1):po(e,1)}function ho(e){return fe((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function zs(e,t){return fe((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(pe(r,l=>{o?.unsubscribe();let c=0,u=i++;he(e(l,u)).subscribe(o=pe(r,d=>r.next(t?t(l,d,u,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}var my="https://g.co/ng/security#xss",S=class extends Error{code;constructor(t,n){super(qo(t,n)),this.code=t}};function qo(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function gr(e){return{toString:e}.toString()}var mo="__parameters__";function gy(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function $u(e,t,n){return gr(()=>{let r=gy(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(l,c,u){let d=l.hasOwnProperty(mo)?l[mo]:Object.defineProperty(l,mo,{value:[]})[mo];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function H(e){for(let t in e)if(e[t]===H)return t;throw Error("Could not find renamed property on target object.")}function yy(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function De(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(De).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(`
4
- `);return n===-1?t:t.substring(0,n)}function ou(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var vy=H({__forward_ref__:H});function Ve(e){return e.__forward_ref__=Ve,e.toString=function(){return De(this())},e}function se(e){return Gu(e)?e():e}function Gu(e){return typeof e=="function"&&e.hasOwnProperty(vy)&&e.__forward_ref__===Ve}function k(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function vt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Za(e){return iu(e,Wu)||iu(e,zu)}function iu(e,t){return e.hasOwnProperty(t)?e[t]:null}function Dy(e){let t=e&&(e[Wu]||e[zu]);return t||null}function su(e){return e&&(e.hasOwnProperty(au)||e.hasOwnProperty(wy))?e[au]:null}var Wu=H({\u0275prov:H}),au=H({\u0275inj:H}),zu=H({ngInjectableDef:H}),wy=H({ngInjectorDef:H}),_=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=k({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function qu(e){return e&&!!e.\u0275providers}var Ey=H({\u0275cmp:H}),Iy=H({\u0275dir:H}),_y=H({\u0275pipe:H});var _o=H({\u0275fac:H}),ar=H({__NG_ELEMENT_ID__:H}),lu=H({__NG_ENV_ID__:H});function Ka(e){return typeof e=="string"?e:e==null?"":String(e)}function Cy(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Ka(e)}function by(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new S(-200,e)}function Ya(e,t){throw new S(-201,!1)}var N=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(N||{}),ia;function Zu(){return ia}function xe(e){let t=ia;return ia=e,t}function Ku(e,t,n){let r=Za(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&N.Optional)return null;if(t!==void 0)return t;Ya(e,"Injector")}var Sy={},lr=Sy,sa="__NG_DI_FLAG__",Co="ngTempTokenPath",xy="ngTokenPath",Ty=/\n/gm,My="\u0275",cu="__source",dn;function Ny(){return dn}function ut(e){let t=dn;return dn=e,t}function Ay(e,t=N.Default){if(dn===void 0)throw new S(-203,!1);return dn===null?Ku(e,void 0,t):dn.get(e,t&N.Optional?null:void 0,t)}function x(e,t=N.Default){return(Zu()||Ay)(se(e),t)}function C(e,t=N.Default){return x(e,Zo(t))}function Zo(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function aa(e){let t=[];for(let n=0;n<e.length;n++){let r=se(e[n]);if(Array.isArray(r)){if(r.length===0)throw new S(900,!1);let o,i=N.Default;for(let s=0;s<r.length;s++){let a=r[s],l=ky(a);typeof l=="number"?l===-1?o=a.token:i|=l:o=a}t.push(x(o,i))}else t.push(x(r))}return t}function Yu(e,t){return e[sa]=t,e.prototype[sa]=t,e}function ky(e){return e[sa]}function Oy(e,t,n,r){let o=e[Co];throw t[cu]&&o.unshift(t[cu]),e.message=Ry(`
5
- `+e.message,o,n,r),e[xy]=o,e[Co]=null,e}function Ry(e,t,n,r=null){e=e&&e.charAt(0)===`
6
- `&&e.charAt(1)==My?e.slice(2):e;let o=De(t);if(Array.isArray(t))o=t.map(De).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):De(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Ty,`
7
- `)}`}var Qu=Yu($u("Optional"),8);var Fy=Yu($u("SkipSelf"),4);function pn(e,t){let n=e.hasOwnProperty(_o);return n?e[_o]:null}function Qa(e,t){e.forEach(n=>Array.isArray(n)?Qa(n,t):t(n))}function Ju(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function bo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Py(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Ly(e,t,n){let r=yr(e,t);return r>=0?e[r|1]=n:(r=~r,Py(e,r,t,n)),r}function qs(e,t){let n=yr(e,t);if(n>=0)return e[n|1]}function yr(e,t){return Vy(e,t,1)}function Vy(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var hn={},Te=[],cr=new _(""),Xu=new _("",-1),ed=new _(""),So=class{get(t,n=lr){if(n===lr){let r=new Error(`NullInjectorError: No provider for ${De(t)}!`);throw r.name="NullInjectorError",r}return n}};function mn(e){return e[Ey]||null}function td(e){return e[Iy]||null}function nd(e){return e[_y]||null}function jy(e){let t=mn(e)||td(e)||nd(e);return t!==null?t.standalone:!1}function Ja(e){return{\u0275providers:e}}function By(...e){return{\u0275providers:rd(!0,e),\u0275fromNgModule:!0}}function rd(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Qa(t,s=>{let a=s;la(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&od(o,i),n}function od(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Xa(o,i=>{t(i,r)})}}function la(e,t,n,r){if(e=se(e),!e)return!1;let o=null,i=su(e),s=!i&&mn(e);if(!i&&!s){let l=e.ngModule;if(i=su(l),i)o=l;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)la(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{Qa(i.imports,u=>{la(u,t,n,r)&&(c||=[],c.push(u))})}finally{}c!==void 0&&od(c,t)}if(!a){let c=pn(o)||(()=>new o);t({provide:o,useFactory:c,deps:Te},o),t({provide:ed,useValue:o,multi:!0},o),t({provide:cr,useValue:()=>x(o),multi:!0},o)}let l=i.providers;if(l!=null&&!a){let c=e;Xa(l,u=>{t(u,c)})}}else return!1;return o!==e&&e.providers!==void 0}function Xa(e,t){for(let n of e)qu(n)&&(n=n.\u0275providers),Array.isArray(n)?Xa(n,t):t(n)}var Hy=H({provide:String,useValue:H});function id(e){return e!==null&&typeof e=="object"&&Hy in e}function Uy(e){return!!(e&&e.useExisting)}function $y(e){return!!(e&&e.useFactory)}function gn(e){return typeof e=="function"}function Gy(e){return!!e.useClass}var Ko=new _(""),vo={},Wy={},Zs;function el(){return Zs===void 0&&(Zs=new So),Zs}var Ge=class{},ur=class extends Ge{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,ua(t,s=>this.processProvider(s)),this.records.set(Xu,ln(void 0,this)),o.has("environment")&&this.records.set(Ge,ln(void 0,this));let i=this.records.get(Ko);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ed,Te,N.Self))}destroy(){ir(this),this._destroyed=!0;let t=R(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),R(t)}}onDestroy(t){return ir(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){ir(this);let n=ut(this),r=xe(void 0),o;try{return t()}finally{ut(n),xe(r)}}get(t,n=lr,r=N.Default){if(ir(this),t.hasOwnProperty(lu))return t[lu](this);r=Zo(r);let o,i=ut(this),s=xe(void 0);try{if(!(r&N.SkipSelf)){let l=this.records.get(t);if(l===void 0){let c=Yy(t)&&Za(t);c&&this.injectableDefInScope(c)?l=ln(ca(t),vo):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l)}let a=r&N.Self?el():this.parent;return n=r&N.Optional&&n===lr?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Co]=a[Co]||[]).unshift(De(t)),i)throw a;return Oy(a,t,"R3InjectorError",this.source)}else throw a}finally{xe(s),ut(i)}}resolveInjectorInitializers(){let t=R(null),n=ut(this),r=xe(void 0),o;try{let i=this.get(cr,Te,N.Self);for(let s of i)s()}finally{ut(n),xe(r),R(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(De(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=se(t);let n=gn(t)?t:se(t&&t.provide),r=qy(t);if(!gn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=ln(void 0,vo,!0),o.factory=()=>aa(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=R(null);try{return n.value===vo&&(n.value=Wy,n.value=n.factory()),typeof n.value=="object"&&n.value&&Ky(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{R(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=se(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function ca(e){let t=Za(e),n=t!==null?t.factory:pn(e);if(n!==null)return n;if(e instanceof _)throw new S(204,!1);if(e instanceof Function)return zy(e);throw new S(204,!1)}function zy(e){if(e.length>0)throw new S(204,!1);let n=Dy(e);return n!==null?()=>n.factory(e):()=>new e}function qy(e){if(id(e))return ln(void 0,e.useValue);{let t=sd(e);return ln(t,vo)}}function sd(e,t,n){let r;if(gn(e)){let o=se(e);return pn(o)||ca(o)}else if(id(e))r=()=>se(e.useValue);else if($y(e))r=()=>e.useFactory(...aa(e.deps||[]));else if(Uy(e))r=()=>x(se(e.useExisting));else{let o=se(e&&(e.useClass||e.provide));if(Zy(e))r=()=>new o(...aa(e.deps));else return pn(o)||ca(o)}return r}function ir(e){if(e.destroyed)throw new S(205,!1)}function ln(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Zy(e){return!!e.deps}function Ky(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Yy(e){return typeof e=="function"||typeof e=="object"&&e instanceof _}function ua(e,t){for(let n of e)Array.isArray(n)?ua(n,t):n&&qu(n)?ua(n.\u0275providers,t):t(n)}function Yo(e,t){e instanceof ur&&ir(e);let n,r=ut(e),o=xe(void 0);try{return t()}finally{ut(r),xe(o)}}function Qy(){return Zu()!==void 0||Ny()!=null}function Jy(e){return typeof e=="function"}var et=0,A=1,I=2,ae=3,Pe=4,je=5,xo=6,To=7,Le=8,yn=9,pt=10,ne=11,dr=12,uu=13,Cn=14,We=15,vn=16,cn=17,Dn=18,Qo=19,ad=20,dt=21,Ks=22,Mo=23,we=24,Je=25,ld=1;var Ht=7,No=8,Ao=9,Me=10,ko=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(ko||{});function ft(e){return Array.isArray(e)&&typeof e[ld]=="object"}function tt(e){return Array.isArray(e)&&e[ld]===!0}function cd(e){return(e.flags&4)!==0}function Jo(e){return e.componentOffset>-1}function tl(e){return(e.flags&1)===1}function ht(e){return!!e.template}function da(e){return(e[I]&512)!==0}var fa=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function ud(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var bn=(()=>{let e=()=>dd;return e.ngInherit=!0,e})();function dd(e){return e.type.prototype.ngOnChanges&&(e.setInput=ev),Xy}function Xy(){let e=pd(this),t=e?.current;if(t){let n=e.previous;if(n===hn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ev(e,t,n,r,o){let i=this.declaredInputs[r],s=pd(e)||tv(e,{previous:hn,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[i];a[i]=new fa(c&&c.currentValue,n,l===hn),ud(e,t,o,n)}var fd="__ngSimpleChanges__";function pd(e){return e[fd]||null}function tv(e,t){return e[fd]=t}var du=null;var Ue=function(e,t,n){du?.(e,t,n)},nv="svg",rv="math";function ze(e){for(;Array.isArray(e);)e=e[et];return e}function hd(e,t){return ze(t[e])}function Ne(e,t){return ze(t[e.index])}function md(e,t){return e.data[t]}function ov(e,t){return e[t]}function Dt(e,t){let n=t[e];return ft(n)?n:n[et]}function nl(e){return(e[I]&128)===128}function iv(e){return tt(e[ae])}function Oo(e,t){return t==null?null:e[t]}function gd(e){e[cn]=0}function rl(e){e[I]&1024||(e[I]|=1024,nl(e)&&ei(e))}function sv(e,t){for(;e>0;)t=t[Cn],e--;return t}function Xo(e){return!!(e[I]&9216||e[we]?.dirty)}function pa(e){e[pt].changeDetectionScheduler?.notify(9),e[I]&64&&(e[I]|=1024),Xo(e)&&ei(e)}function ei(e){e[pt].changeDetectionScheduler?.notify(0);let t=Ut(e);for(;t!==null&&!(t[I]&8192||(t[I]|=8192,!nl(t)));)t=Ut(t)}function yd(e,t){if((e[I]&256)===256)throw new S(911,!1);e[dt]===null&&(e[dt]=[]),e[dt].push(t)}function av(e,t){if(e[dt]===null)return;let n=e[dt].indexOf(t);n!==-1&&e[dt].splice(n,1)}function Ut(e){let t=e[ae];return tt(t)?t[ae]:t}var T={lFrame:Sd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ha=!1;function lv(){return T.lFrame.elementDepthCount}function cv(){T.lFrame.elementDepthCount++}function uv(){T.lFrame.elementDepthCount--}function vd(){return T.bindingsEnabled}function dv(){return T.skipHydrationRootTNode!==null}function fv(e){return T.skipHydrationRootTNode===e}function pv(){T.skipHydrationRootTNode=null}function j(){return T.lFrame.lView}function Ee(){return T.lFrame.tView}function U(e){return T.lFrame.contextLView=e,e[Le]}function $(e){return T.lFrame.contextLView=null,e}function ye(){let e=Dd();for(;e!==null&&e.type===64;)e=e.parent;return e}function Dd(){return T.lFrame.currentTNode}function hv(){let e=T.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function vr(e,t){let n=T.lFrame;n.currentTNode=e,n.isParent=t}function wd(){return T.lFrame.isParent}function mv(){T.lFrame.isParent=!1}function gv(){return T.lFrame.contextLView}function Ed(){return ha}function fu(e){let t=ha;return ha=e,t}function Id(){let e=T.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function yv(e){return T.lFrame.bindingIndex=e}function ti(){return T.lFrame.bindingIndex++}function vv(e){let t=T.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Dv(){return T.lFrame.inI18n}function wv(e,t){let n=T.lFrame;n.bindingIndex=n.bindingRootIndex=e,ma(t)}function Ev(){return T.lFrame.currentDirectiveIndex}function ma(e){T.lFrame.currentDirectiveIndex=e}function Iv(e){let t=T.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function _d(e){T.lFrame.currentQueryIndex=e}function _v(e){let t=e[A];return t.type===2?t.declTNode:t.type===1?e[je]:null}function Cd(e,t,n){if(n&N.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&N.Host);)if(o=_v(i),o===null||(i=i[Cn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=T.lFrame=bd();return r.currentTNode=t,r.lView=e,!0}function ol(e){let t=bd(),n=e[A];T.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function bd(){let e=T.lFrame,t=e===null?null:e.child;return t===null?Sd(e):t}function Sd(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function xd(){let e=T.lFrame;return T.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Td=xd;function il(){let e=xd();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Cv(e){return(T.lFrame.contextLView=sv(e,T.lFrame.contextLView))[Le]}function Sn(){return T.lFrame.selectedIndex}function $t(e){T.lFrame.selectedIndex=e}function sl(){let e=T.lFrame;return md(e.tView,e.selectedIndex)}function bv(){return T.lFrame.currentNamespace}var Md=!0;function al(){return Md}function ll(e){Md=e}function Sv(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=dd(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function cl(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),l&&(e.viewHooks??=[]).push(-n,l),c&&((e.viewHooks??=[]).push(n,c),(e.viewCheckHooks??=[]).push(n,c)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function Do(e,t,n){Nd(e,t,3,n)}function wo(e,t,n,r){(e[I]&3)===n&&Nd(e,t,n,r)}function Ys(e,t){let n=e[I];(n&3)===t&&(n&=16383,n+=1,e[I]=n)}function Nd(e,t,n,r){let o=r!==void 0?e[cn]&65535:0,i=r??-1,s=t.length-1,a=0;for(let l=o;l<s;l++)if(typeof t[l+1]=="number"){if(a=t[l],r!=null&&a>=r)break}else t[l]<0&&(e[cn]+=65536),(a<i||i==-1)&&(xv(e,n,t,l),e[cn]=(e[cn]&4294901760)+l+2),l++}function pu(e,t){Ue(4,e,t);let n=R(null);try{t.call(e)}finally{R(n),Ue(5,e,t)}}function xv(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[I]>>14<e[cn]>>16&&(e[I]&3)===t&&(e[I]+=16384,pu(a,i)):pu(a,i)}var fn=-1,Gt=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function Tv(e){return e instanceof Gt}function Mv(e){return(e.flags&8)!==0}function Nv(e){return(e.flags&16)!==0}function ga(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];kv(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Av(e){return e===3||e===4||e===6}function kv(e){return e.charCodeAt(0)===64}function fr(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?hu(e,n,o,null,t[++r]):hu(e,n,o,null,null))}}return e}function hu(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){if(r===null){o!==null&&(e[i+1]=o);return}else if(r===e[i+1]){e[i+2]=o;return}}i++,r!==null&&i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),r!==null&&e.splice(i++,0,r),o!==null&&e.splice(i++,0,o)}var Qs={},ya=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Zo(r);let o=this.injector.get(t,Qs,r);return o!==Qs||n===Qs?o:this.parentInjector.get(t,n,r)}};function Ad(e){return e!==fn}function Ro(e){return e&32767}function Ov(e){return e>>16}function Fo(e,t){let n=Ov(e),r=t;for(;n>0;)r=r[Cn],n--;return r}var va=!0;function mu(e){let t=va;return va=e,t}var Rv=256,kd=Rv-1,Od=5,Fv=0,$e={};function Pv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(ar)&&(r=n[ar]),r==null&&(r=n[ar]=Fv++);let o=r&kd,i=1<<o;t.data[e+(o>>Od)]|=i}function Po(e,t){let n=Rd(e,t);if(n!==-1)return n;let r=t[A];r.firstCreatePass&&(e.injectorIndex=t.length,Js(r.data,e),Js(t,null),Js(r.blueprint,null));let o=ul(e,t),i=e.injectorIndex;if(Ad(o)){let s=Ro(o),a=Fo(o,t),l=a[A].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|l[s+c]}return t[i+8]=o,i}function Js(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Rd(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function ul(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=jd(o),r===null)return fn;if(n++,o=o[Cn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return fn}function Da(e,t,n){Pv(e,t,n)}function Fd(e,t,n){if(n&N.Optional||e!==void 0)return e;Ya(t,"NodeInjector")}function Pd(e,t,n,r){if(n&N.Optional&&r===void 0&&(r=null),!(n&(N.Self|N.Host))){let o=e[yn],i=xe(void 0);try{return o?o.get(t,r,n&N.Optional):Ku(t,r,n&N.Optional)}finally{xe(i)}}return Fd(r,t,n)}function Ld(e,t,n,r=N.Default,o){if(e!==null){if(t[I]&2048&&!(r&N.Self)){let s=Hv(e,t,n,r,$e);if(s!==$e)return s}let i=Vd(e,t,n,r,$e);if(i!==$e)return i}return Pd(t,n,r,o)}function Vd(e,t,n,r,o){let i=jv(n);if(typeof i=="function"){if(!Cd(t,e,r))return r&N.Host?Fd(o,n,r):Pd(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&N.Optional))Ya(n);else return s}finally{Td()}}else if(typeof i=="number"){let s=null,a=Rd(e,t),l=fn,c=r&N.Host?t[We][je]:null;for((a===-1||r&N.SkipSelf)&&(l=a===-1?ul(e,t):t[a+8],l===fn||!yu(r,!1)?a=-1:(s=t[A],a=Ro(l),t=Fo(l,t)));a!==-1;){let u=t[A];if(gu(i,a,u.data)){let d=Lv(a,t,n,s,r,c);if(d!==$e)return d}l=t[a+8],l!==fn&&yu(r,t[A].data[a+8]===c)&&gu(i,a,t)?(s=u,a=Ro(l),t=Fo(l,t)):a=-1}}return o}function Lv(e,t,n,r,o,i){let s=t[A],a=s.data[e+8],l=r==null?Jo(a)&&va:r!=s&&(a.type&3)!==0,c=o&N.Host&&i===a,u=Vv(a,s,n,l,c);return u!==null?wn(t,s,u,a):$e}function Vv(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,l=e.directiveStart,c=e.directiveEnd,u=i>>20,d=r?a:a+u,p=o?a+u:c;for(let f=d;f<p;f++){let h=s[f];if(f<l&&n===h||f>=l&&h.type===n)return f}if(o){let f=s[l];if(f&&ht(f)&&f.type===n)return l}return null}function wn(e,t,n,r){let o=e[n],i=t.data;if(Tv(o)){let s=o;s.resolving&&by(Cy(i[n]));let a=mu(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?xe(s.injectImpl):null,u=Cd(e,r,N.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Sv(n,i[n],t)}finally{c!==null&&xe(c),mu(a),s.resolving=!1,Td()}}return o}function jv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(ar)?e[ar]:void 0;return typeof t=="number"?t>=0?t&kd:Bv:t}function gu(e,t,n){let r=1<<e;return!!(n[t+(e>>Od)]&r)}function yu(e,t){return!(e&N.Self)&&!(e&N.Host&&t)}var Bt=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Ld(this._tNode,this._lView,t,Zo(r),n)}};function Bv(){return new Bt(ye(),j())}function xn(e){return gr(()=>{let t=e.prototype.constructor,n=t[_o]||wa(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[_o]||wa(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function wa(e){return Gu(e)?()=>{let t=wa(se(e));return t&&t()}:pn(e)}function Hv(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[I]&2048&&!(s[I]&512);){let a=Vd(i,s,n,r|N.Self,$e);if(a!==$e)return a;let l=i.parent;if(!l){let c=s[ad];if(c){let u=c.get(n,$e,r);if(u!==$e)return u}l=jd(s),s=s[Cn]}i=l}return o}function jd(e){let t=e[A],n=t.type;return n===2?t.declTNode:n===1?e[je]:null}function vu(e,t=null,n=null,r){let o=Uv(e,t,n,r);return o.resolveInjectorInitializers(),o}function Uv(e,t=null,n=null,r,o=new Set){let i=[n||Te,By(e)];return r=r||(typeof e=="object"?void 0:De(e)),new ur(i,t||el(),r||null,o)}var Wt=class e{static THROW_IF_NOT_FOUND=lr;static NULL=new So;static create(t,n){if(Array.isArray(t))return vu({name:""},n,t,"");{let r=t.name??"";return vu({name:r},t.parent,t.providers,r)}}static \u0275prov=k({token:e,providedIn:"any",factory:()=>x(Xu)});static __NG_ELEMENT_ID__=-1};var $v=new _("");$v.__NG_ELEMENT_ID__=e=>{let t=ye();if(t===null)throw new S(204,!1);if(t.type&2)return t.value;if(e&N.Optional)return null;throw new S(204,!1)};var Bd=!1,Hd=(()=>{class e{static __NG_ELEMENT_ID__=Gv;static __NG_ENV_ID__=n=>n}return e})(),Ea=class extends Hd{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return yd(this._lView,t),()=>av(this._lView,t)}};function Gv(){return new Ea(j())}var pr=class{},dl=new _("",{providedIn:"root",factory:()=>!1});var Ud=new _(""),$d=new _(""),Yt=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new rr(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=k({token:e,providedIn:"root",factory:()=>new e})}return e})();var Ia=class extends Qe{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Qy()&&(this.destroyRef=C(Hd,{optional:!0})??void 0,this.pendingTasks=C(Yt,{optional:!0})??void 0)}emit(t){let n=R(null);try{super.next(t)}finally{R(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof ie&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},ge=Ia;function Lo(...e){}function Gd(e){let t,n;function r(){e=Lo;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Du(e){return queueMicrotask(()=>e()),()=>{e=Lo}}var fl="isAngularZone",Vo=fl+"_ID",Wv=0,Y=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new ge(!1);onMicrotaskEmpty=new ge(!1);onStable=new ge(!1);onError=new ge(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Bd}=t;if(typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Zv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(fl)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new S(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,zv,Lo,Lo);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},zv={};function pl(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function qv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Gd(()=>{e.callbackScheduled=!1,_a(e),e.isCheckStableRunning=!0,pl(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),_a(e)}function Zv(e){let t=()=>{qv(e)},n=Wv++;e._inner=e._inner.fork({name:"angular",properties:{[fl]:!0,[Vo]:n,[Vo+n]:!0},onInvokeTask:(r,o,i,s,a,l)=>{if(Kv(l))return r.invokeTask(i,s,a,l);try{return wu(e),r.invokeTask(i,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Eu(e)}},onInvoke:(r,o,i,s,a,l,c)=>{try{return wu(e),r.invoke(i,s,a,l,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Yv(l)&&t(),Eu(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,_a(e),pl(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function _a(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function wu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Eu(e){e._nesting--,pl(e)}var Ca=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new ge;onMicrotaskEmpty=new ge;onStable=new ge;onError=new ge;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Kv(e){return Wd(e,"__ignore_ng_zone__")}function Yv(e){return Wd(e,"__scheduler_tick__")}function Wd(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var mt=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Qv=new _("",{providedIn:"root",factory:()=>{let e=C(Y),t=C(mt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Jv(){return ni(ye(),j())}function ni(e,t){return new nt(Ne(e,t))}var nt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Jv}return e})();function zd(e){return(e.flags&128)===128}var qd=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(qd||{}),Zd=new Map,Xv=0;function eD(){return Xv++}function tD(e){Zd.set(e[Qo],e)}function ba(e){Zd.delete(e[Qo])}var Iu="__ngContext__";function zt(e,t){ft(t)?(e[Iu]=t[Qo],tD(t)):e[Iu]=t}function Kd(e){return Qd(e[dr])}function Yd(e){return Qd(e[Pe])}function Qd(e){for(;e!==null&&!tt(e);)e=e[Pe];return e}var Sa;function Jd(e){Sa=e}function nD(){if(Sa!==void 0)return Sa;if(typeof document<"u")return document;throw new S(210,!1)}var hl=new _("",{providedIn:"root",factory:()=>rD}),rD="ng",ml=new _(""),wt=new _("",{providedIn:"platform",factory:()=>"unknown"});var gl=new _("",{providedIn:"root",factory:()=>nD().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var oD="h",iD="b";var Xd=!1,sD=new _("",{providedIn:"root",factory:()=>Xd});var ef=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(ef||{}),tf=new _(""),_u=new Set;function Dr(e){_u.has(e)||(_u.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var aD=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=k({token:e,providedIn:"root",factory:()=>new e})}return e})();var lD=()=>null;function yl(e,t,n=!1){return lD(e,t,n)}var qe=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(qe||{});var xa=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${my})`}};function vl(e){return e instanceof xa?e.changingThisBreaksApplicationSecurity:e}var gt=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(gt||{}),Xe=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Xe||{}),cD;function Dl(e,t){return cD(e,t)}function un(e,t,n,r,o){if(r!=null){let i,s=!1;tt(r)?i=r:ft(r)&&(s=!0,r=r[et]);let a=ze(r);e===0&&n!==null?o==null?af(t,n,a):jo(t,n,a,o||null,!0):e===1&&n!==null?jo(t,n,a,o||null,!0):e===2?CD(t,a,s):e===3&&t.destroyNode(a),i!=null&&SD(t,e,i,n,o)}}function uD(e,t){return e.createText(t)}function dD(e,t,n){e.setValue(t,n)}function nf(e,t,n){return e.createElement(t,n)}function fD(e,t){rf(e,t),t[et]=null,t[je]=null}function pD(e,t,n,r,o,i){r[et]=o,r[je]=t,ri(e,r,n,1,o,i)}function rf(e,t){t[pt].changeDetectionScheduler?.notify(10),ri(e,t,t[ne],2,null,null)}function hD(e){let t=e[dr];if(!t)return Xs(e[A],e);for(;t;){let n=null;if(ft(t))n=t[dr];else{let r=t[Me];r&&(n=r)}if(!n){for(;t&&!t[Pe]&&t!==e;)ft(t)&&Xs(t[A],t),t=t[ae];t===null&&(t=e),ft(t)&&Xs(t[A],t),n=t&&t[Pe]}t=n}}function mD(e,t,n,r){let o=Me+r,i=n.length;r>0&&(n[o-1][Pe]=t),r<i-Me?(t[Pe]=n[o],Ju(n,Me+r,t)):(n.push(t),t[Pe]=null),t[ae]=n;let s=t[vn];s!==null&&n!==s&&of(s,t);let a=t[Dn];a!==null&&a.insertView(e),pa(t),t[I]|=128}function of(e,t){let n=e[Ao],r=t[ae];if(ft(r))e[I]|=ko.HasTransplantedViews;else{let o=r[ae][We];t[We]!==o&&(e[I]|=ko.HasTransplantedViews)}n===null?e[Ao]=[t]:n.push(t)}function wl(e,t){let n=e[Ao],r=n.indexOf(t);n.splice(r,1)}function Ta(e,t){if(e.length<=Me)return;let n=Me+t,r=e[n];if(r){let o=r[vn];o!==null&&o!==e&&wl(o,r),t>0&&(e[n-1][Pe]=r[Pe]);let i=bo(e,Me+t);fD(r[A],r);let s=i[Dn];s!==null&&s.detachView(i[A]),r[ae]=null,r[Pe]=null,r[I]&=-129}return r}function sf(e,t){if(!(t[I]&256)){let n=t[ne];n.destroyNode&&ri(e,t,n,3,null,null),hD(t)}}function Xs(e,t){if(t[I]&256)return;let n=R(null);try{t[I]&=-129,t[I]|=256,t[we]&&Rs(t[we]),yD(e,t),gD(e,t),t[A].type===1&&t[ne].destroy();let r=t[vn];if(r!==null&&tt(t[ae])){r!==t[ae]&&wl(r,t);let o=t[Dn];o!==null&&o.detachView(e)}ba(t)}finally{R(n)}}function gD(e,t){let n=e.cleanup,r=t[To];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[To]=null);let o=t[dt];if(o!==null){t[dt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Mo];if(i!==null){t[Mo]=null;for(let s of i)s.destroy()}}function yD(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Gt)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],l=i[s+1];Ue(4,a,l);try{l.call(a)}finally{Ue(5,a,l)}}else{Ue(4,o,i);try{i.call(o)}finally{Ue(5,o,i)}}}}}function vD(e,t,n){return DD(e,t.parent,n)}function DD(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[et];{let{componentOffset:o}=r;if(o>-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===qe.None||i===qe.Emulated)return null}return Ne(r,n)}}function jo(e,t,n,r,o){e.insertBefore(t,n,r,o)}function af(e,t,n){e.appendChild(t,n)}function Cu(e,t,n,r,o){r!==null?jo(e,t,n,r,o):af(e,t,n)}function lf(e,t){return e.parentNode(t)}function wD(e,t){return e.nextSibling(t)}function ED(e,t,n){return _D(e,t,n)}function ID(e,t,n){return e.type&40?Ne(e,n):null}var _D=ID,bu;function El(e,t,n,r){let o=vD(e,r,t),i=t[ne],s=r.parent||t[je],a=ED(s,r,t);if(o!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Cu(i,o,n[l],a,!1);else Cu(i,o,n,a,!1);bu!==void 0&&bu(i,r,t,n,o)}function sr(e,t){if(t!==null){let n=t.type;if(n&3)return Ne(t,e);if(n&4)return Ma(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return sr(e,r);{let o=e[t.index];return tt(o)?Ma(-1,o):ze(o)}}else{if(n&128)return sr(e,t.next);if(n&32)return Dl(t,e)()||ze(e[t.index]);{let r=cf(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Ut(e[We]);return sr(o,r)}else return sr(e,t.next)}}}return null}function cf(e,t){if(t!==null){let r=e[We][je],o=t.projection;return r.projection[o]}return null}function Ma(e,t){let n=Me+e+1;if(n<t.length){let r=t[n],o=r[A].firstChild;if(o!==null)return sr(r,o)}return t[Ht]}function CD(e,t,n){e.removeChild(null,t,n)}function Il(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],l=n.type;if(s&&t===0&&(a&&zt(ze(a),r),n.flags|=2),(n.flags&32)!==32)if(l&8)Il(e,t,n.child,r,o,i,!1),un(t,e,o,a,i);else if(l&32){let c=Dl(n,r),u;for(;u=c();)un(t,e,o,u,i);un(t,e,o,a,i)}else l&16?bD(e,t,r,n,o,i):un(t,e,o,a,i);n=s?n.projectionNext:n.next}}function ri(e,t,n,r,o,i){Il(n,r,e.firstChild,t,o,i,!1)}function bD(e,t,n,r,o,i){let s=n[We],l=s[je].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let u=l[c];un(t,e,o,u,i)}else{let c=l,u=s[ae];zd(r)&&(c.flags|=128),Il(e,t,c,u,o,i,!0)}}function SD(e,t,n,r,o){let i=n[Ht],s=ze(n);i!==s&&un(t,e,r,i,o);for(let a=Me;a<n.length;a++){let l=n[a];ri(l[A],l,e,t,r,i)}}function xD(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Xe.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Xe.Important),e.setStyle(n,r,o,i))}}function TD(e,t,n){e.setAttribute(t,"style",n)}function uf(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function df(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&ga(e,t,r),o!==null&&uf(e,t,o),i!==null&&TD(e,t,i)}function MD(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var ff="ng-template";function ND(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&MD(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(_l(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function _l(e){return e.type===4&&e.value!==ff}function AD(e,t,n){let r=e.type===4&&!n?ff:e.value;return t===r}function kD(e,t,n){let r=4,o=e.attrs,i=o!==null?FD(o):0,s=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!s&&!Fe(r)&&!Fe(l))return!1;if(s&&Fe(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!AD(e,l,n)||l===""&&t.length===1){if(Fe(r))return!1;s=!0}}else if(r&8){if(o===null||!ND(e,o,l,n)){if(Fe(r))return!1;s=!0}}else{let c=t[++a],u=OD(l,o,_l(e),n);if(u===-1){if(Fe(r))return!1;s=!0;continue}if(c!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&c!==d){if(Fe(r))return!1;s=!0}}}}return Fe(r)||s}function Fe(e){return(e&1)===0}function OD(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return PD(t,e)}function RD(e,t,n=!1){for(let r=0;r<t.length;r++)if(kD(e,t[r],n))return!0;return!1}function FD(e){for(let t=0;t<e.length;t++){let n=e[t];if(Av(n))return t}return e.length}function PD(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Su(e,t){return e?":not("+t.trim()+")":t}function LD(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Fe(s)&&(t+=Su(i,o),o=""),r=s,i=i||!Fe(r);n++}return o!==""&&(t+=Su(i,o)),t}function VD(e){return e.map(LD).join(",")}function jD(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!Fe(o))break;o=i}r++}return{attrs:t,classes:n}}var Qt={};function D(e=1){pf(Ee(),j(),Sn()+e,!1)}function pf(e,t,n,r){if(!r)if((t[I]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Do(t,i,n)}else{let i=e.preOrderHooks;i!==null&&wo(t,i,0,n)}$t(n)}function E(e,t=N.Default){let n=j();if(n===null)return x(e,t);let r=ye();return Ld(r,n,se(e),t)}function hf(e,t,n,r,o,i){let s=R(null);try{let a=null;o&gt.SignalBased&&(a=t[r][be]),a!==null&&a.transformFn!==void 0&&(i=a.transformFn(i)),o&gt.HasDecoratorInputTransform&&(i=e.inputTransforms[r].call(t,i)),e.setInput!==null?e.setInput(t,a,i,n,r):ud(t,a,r,i)}finally{R(s)}}function BD(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)$t(~o);else{let i=o,s=n[++r],a=n[++r];wv(s,i);let l=t[i];a(2,l)}}}finally{$t(-1)}}function oi(e,t,n,r,o,i,s,a,l,c,u){let d=t.blueprint.slice();return d[et]=o,d[I]=r|4|128|8|64|1024,(c!==null||e&&e[I]&2048)&&(d[I]|=2048),gd(d),d[ae]=d[Cn]=e,d[Le]=n,d[pt]=s||e&&e[pt],d[ne]=a||e&&e[ne],d[yn]=l||e&&e[yn]||null,d[je]=i,d[Qo]=eD(),d[xo]=u,d[ad]=c,d[We]=t.type==2?e[We]:d,d}function ii(e,t,n,r,o){let i=e.data[t];if(i===null)i=HD(e,t,n,r,o),Dv()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=hv();i.injectorIndex=s===null?-1:s.injectorIndex}return vr(i,!0),i}function HD(e,t,n,r,o){let i=Dd(),s=wd(),a=s?i:i&&i.parent,l=e.data[t]=zD(e,a,n,t,r,o);return e.firstChild===null&&(e.firstChild=l),i!==null&&(s?i.child==null&&l.parent!==null&&(i.child=l):i.next===null&&(i.next=l,l.prev=i)),l}function mf(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function gf(e,t,n,r,o){let i=Sn(),s=r&2;try{$t(-1),s&&t.length>Je&&pf(e,t,Je,!1),Ue(s?2:0,o),n(r,o)}finally{$t(i),Ue(s?3:1,o)}}function yf(e,t,n){if(cd(t)){let r=R(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let l=n[s];a.contentQueries(1,l,s)}}}finally{R(r)}}}function vf(e,t,n){vd()&&(JD(e,t,n,Ne(n,t)),(n.flags&64)===64&&Cf(e,t,n))}function Df(e,t,n=Ne){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function wf(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Cl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Cl(e,t,n,r,o,i,s,a,l,c,u){let d=Je+r,p=d+o,f=UD(d,p),h=typeof c=="function"?c():c;return f[A]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:h,incompleteFirstPass:!1,ssrId:u}}function UD(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Qt);return n}function $D(e,t,n,r){let i=r.get(sD,Xd)||n===qe.ShadowDom,s=e.selectRootElement(t,i);return GD(s),s}function GD(e){WD(e)}var WD=()=>null;function zD(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return dv()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function xu(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,l=gt.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?Tu(r,n,c,a,l):Tu(r,n,c,a)}return r}function Tu(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function qD(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],l=null,c=null;for(let u=r;u<o;u++){let d=i[u],p=n?n.get(d):null,f=p?p.inputs:null,h=p?p.outputs:null;l=xu(0,d.inputs,u,l,f),c=xu(1,d.outputs,u,c,h);let m=l!==null&&s!==null&&!_l(t)?cw(l,u,s):null;a.push(m)}l!==null&&(l.hasOwnProperty("class")&&(t.flags|=8),l.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=l,t.outputs=c}function ZD(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Ef(e,t,n,r,o,i,s,a){let l=Ne(t,n),c=t.inputs,u;!a&&c!=null&&(u=c[r])?(bl(e,n,u,r,o),Jo(t)&&KD(n,t.index)):t.type&3?(r=ZD(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(l,r,o)):t.type&12}function KD(e,t){let n=Dt(t,e);n[I]&16||(n[I]|=64)}function If(e,t,n,r){if(vd()){let o=r===null?null:{"":-1},i=ew(e,n),s,a;i===null?s=a=null:[s,a]=i,s!==null&&_f(e,t,n,s,o,a),o&&tw(n,r,o)}n.mergedAttrs=fr(n.mergedAttrs,n.attrs)}function _f(e,t,n,r,o,i){for(let c=0;c<r.length;c++)Da(Po(n,t),e,r[c].type);rw(n,e.data.length,r.length);for(let c=0;c<r.length;c++){let u=r[c];u.providersResolver&&u.providersResolver(u)}let s=!1,a=!1,l=mf(e,t,r.length,null);for(let c=0;c<r.length;c++){let u=r[c];n.mergedAttrs=fr(n.mergedAttrs,u.hostAttrs),ow(e,n,t,l,u),nw(l,u,o),u.contentQueries!==null&&(n.flags|=4),(u.hostBindings!==null||u.hostAttrs!==null||u.hostVars!==0)&&(n.flags|=64);let d=u.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),a=!0),l++}qD(e,n,i)}function YD(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;QD(s)!=a&&s.push(a),s.push(n,r,i)}}function QD(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function JD(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;Jo(n)&&iw(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Po(n,t),zt(r,t);let s=n.initialInputs;for(let a=o;a<i;a++){let l=e.data[a],c=wn(t,e,a,n);if(zt(c,t),s!==null&&lw(t,a-o,c,l,n,s),ht(l)){let u=Dt(n.index,t);u[Le]=wn(t,e,a,n)}}}function Cf(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Ev();try{$t(i);for(let a=r;a<o;a++){let l=e.data[a],c=t[a];ma(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&XD(l,c)}}finally{$t(-1),ma(s)}}function XD(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function ew(e,t){let n=e.directiveRegistry,r=null,o=null;if(n)for(let i=0;i<n.length;i++){let s=n[i];if(RD(t,s.selectors,!1))if(r||(r=[]),ht(s))if(s.findHostDirectiveDefs!==null){let a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),r.unshift(...a,s);let l=a.length;Na(e,t,l)}else r.unshift(s),Na(e,t,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,r,o),r.push(s)}return r===null?null:[r,o]}function Na(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function tw(e,t,n){if(t){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new S(-301,!1);r.push(t[o],i)}}}function nw(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;ht(t)&&(n[""]=e)}}function rw(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ow(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=pn(o.type,!0)),s=new Gt(i,ht(o),E);e.blueprint[r]=s,n[r]=s,YD(e,t,r,mf(e,n,o.hostVars,Qt),o)}function bf(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function iw(e,t,n){let r=Ne(t,e),o=wf(n),i=e[pt].rendererFactory,s=si(e,oi(e,o,null,bf(n),r,t,null,i.createRenderer(r,n),null,null,null));e[t.index]=s}function sw(e,t,n,r,o,i){let s=Ne(e,t);aw(t[ne],s,i,e.value,n,r,o)}function aw(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?Ka(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function lw(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;){let l=s[a++],c=s[a++],u=s[a++],d=s[a++];hf(r,n,l,c,u,d)}}function cw(e,t,n){let r=null,o=0;for(;o<n.length;){let i=n[o];if(i===0){o+=4;continue}else if(i===5){o+=2;continue}if(typeof i=="number")break;if(e.hasOwnProperty(i)){r===null&&(r=[]);let s=e[i];for(let a=0;a<s.length;a+=3)if(s[a]===t){r.push(i,s[a+1],s[a+2],n[o+1]);break}}o+=2}return r}function Sf(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function xf(e,t){let n=e.contentQueries;if(n!==null){let r=R(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];_d(i),a.contentQueries(2,t[s],s)}}}finally{R(r)}}}function si(e,t){return e[dr]?e[uu][Pe]=t:e[dr]=t,e[uu]=t,t}function Aa(e,t,n){_d(0);let r=R(null);try{t(e,n)}finally{R(r)}}function uw(e){return e[To]??=[]}function dw(e){return e.cleanup??=[]}function Tf(e,t){let n=e[yn],r=n?n.get(mt,null):null;r&&r.handleError(t)}function bl(e,t,n,r,o){for(let i=0;i<n.length;){let s=n[i++],a=n[i++],l=n[i++],c=t[s],u=e.data[s];hf(u,c,r,a,l,o)}}function fw(e,t,n){let r=hd(t,e);dD(e[ne],r,n)}function pw(e,t){let n=Dt(t,e),r=n[A];hw(r,n);let o=n[et];o!==null&&n[xo]===null&&(n[xo]=yl(o,n[yn])),Sl(r,n,n[Le])}function hw(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Sl(e,t,n){ol(t);try{let r=e.viewQuery;r!==null&&Aa(1,r,n);let o=e.template;o!==null&&gf(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Dn]?.finishViewCreation(e),e.staticContentQueries&&xf(e,t),e.staticViewQueries&&Aa(2,e.viewQuery,n);let i=e.components;i!==null&&mw(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[I]&=-5,il()}}function mw(e,t){for(let n=0;n<t.length;n++)pw(e,t[n])}function gw(e,t,n,r){let o=R(null);try{let i=t.tView,a=e[I]&4096?4096:16,l=oi(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),c=e[t.index];l[vn]=c;let u=e[Dn];return u!==null&&(l[Dn]=u.createEmbeddedView(i)),Sl(i,l,n),l}finally{R(o)}}function Mu(e,t){return!t||t.firstChild===null||zd(e)}function yw(e,t,n,r=!0){let o=t[A];if(mD(o,t,e,n),r){let s=Ma(n,e),a=t[ne],l=lf(a,e[Ht]);l!==null&&pD(o,e[je],a,t,l,s)}let i=t[xo];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Bo(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(ze(i)),tt(i)&&vw(i,r);let s=n.type;if(s&8)Bo(e,t,n.child,r);else if(s&32){let a=Dl(n,t),l;for(;l=a();)r.push(l)}else if(s&16){let a=cf(t,n);if(Array.isArray(a))r.push(...a);else{let l=Ut(t[We]);Bo(l[A],l,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function vw(e,t){for(let n=Me;n<e.length;n++){let r=e[n],o=r[A].firstChild;o!==null&&Bo(r[A],r,o,t)}e[Ht]!==e[et]&&t.push(e[Ht])}var Mf=[];function Dw(e){return e[we]??ww(e)}function ww(e){let t=Mf.pop()??Object.create(Iw);return t.lView=e,t}function Ew(e){e.lView[we]!==e&&(e.lView=null,Mf.push(e))}var Iw=K(V({},tr),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{ei(e.lView)},consumerOnSignalRead(){this.lView[we]=this}});function _w(e){let t=e[we]??Object.create(Cw);return t.lView=e,t}var Cw=K(V({},tr),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Ut(e.lView);for(;t&&!Nf(t[A]);)t=Ut(t);t&&rl(t)},consumerOnSignalRead(){this.lView[we]=this}});function Nf(e){return e.type!==2}function Af(e){if(e[Mo]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Mo])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[I]&8192)}}var bw=100;function kf(e,t=!0,n=0){let o=e[pt].rendererFactory,i=!1;i||o.begin?.();try{Sw(e,n)}catch(s){throw t&&Tf(e,s),s}finally{i||o.end?.()}}function Sw(e,t){let n=Ed();try{fu(!0),ka(e,t);let r=0;for(;Xo(e);){if(r===bw)throw new S(103,!1);r++,ka(e,1)}}finally{fu(n)}}function xw(e,t,n,r){let o=t[I];if((o&256)===256)return;let i=!1,s=!1;ol(t);let a=!0,l=null,c=null;i||(Nf(e)?(c=Dw(t),l=Gr(c)):yc()===null?(a=!1,c=_w(t),l=Gr(c)):t[we]&&(Rs(t[we]),t[we]=null));try{gd(t),yv(e.bindingStartIndex),n!==null&&gf(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=e.preOrderCheckHooks;f!==null&&Do(t,f,null)}else{let f=e.preOrderHooks;f!==null&&wo(t,f,0,null),Ys(t,0)}if(s||Tw(t),Af(t),Of(t,0),e.contentQueries!==null&&xf(e,t),!i)if(u){let f=e.contentCheckHooks;f!==null&&Do(t,f)}else{let f=e.contentHooks;f!==null&&wo(t,f,1),Ys(t,1)}BD(e,t);let d=e.components;d!==null&&Ff(t,d,0);let p=e.viewQuery;if(p!==null&&Aa(2,p,r),!i)if(u){let f=e.viewCheckHooks;f!==null&&Do(t,f)}else{let f=e.viewHooks;f!==null&&wo(t,f,2),Ys(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ks]){for(let f of t[Ks])f();t[Ks]=null}i||(t[I]&=-73)}catch(u){throw i||ei(t),u}finally{c!==null&&(ks(c,l),a&&Ew(c)),il()}}function Of(e,t){for(let n=Kd(e);n!==null;n=Yd(n))for(let r=Me;r<n.length;r++){let o=n[r];Rf(o,t)}}function Tw(e){for(let t=Kd(e);t!==null;t=Yd(t)){if(!(t[I]&ko.HasTransplantedViews))continue;let n=t[Ao];for(let r=0;r<n.length;r++){let o=n[r];rl(o)}}}function Mw(e,t,n){let r=Dt(t,e);Rf(r,n)}function Rf(e,t){nl(e)&&ka(e,t)}function ka(e,t){let r=e[A],o=e[I],i=e[we],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Os(i)),s||=!1,i&&(i.dirty=!1),e[I]&=-9217,s)xw(r,e,r.template,e[Le]);else if(o&8192){Af(e),Of(e,1);let a=r.components;a!==null&&Ff(e,a,1)}}function Ff(e,t,n){for(let r=0;r<t.length;r++)Mw(e,t[r],n)}function xl(e,t){let n=Ed()?64:1088;for(e[pt].changeDetectionScheduler?.notify(t);e;){e[I]|=n;let r=Ut(e);if(da(e)&&!r)return e;e=r}return null}var qt=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,n=t[A];return Bo(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[Le]}get dirty(){return!!(this._lView[I]&9280)||!!this._lView[we]?.dirty}set context(t){this._lView[Le]=t}get destroyed(){return(this._lView[I]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ae];if(tt(t)){let n=t[No],r=n?n.indexOf(this):-1;r>-1&&(Ta(t,r),bo(n,r))}this._attachedToViewContainer=!1}sf(this._lView[A],this._lView)}onDestroy(t){yd(this._lView,t)}markForCheck(){xl(this._cdRefInjectingView||this._lView,4)}markForRefresh(){rl(this._cdRefInjectingView||this._lView)}detach(){this._lView[I]&=-129}reattach(){pa(this._lView),this._lView[I]|=128}detectChanges(){this._lView[I]|=1024,kf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=da(this._lView),n=this._lView[vn];n!==null&&!t&&wl(n,this._lView),rf(this._lView[A],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=t;let n=da(this._lView),r=this._lView[vn];r!==null&&!n&&of(r,this._lView),pa(this._lView)}},ai=(()=>{class e{static __NG_ELEMENT_ID__=kw}return e})(),Nw=ai,Aw=class extends Nw{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=gw(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new qt(o)}};function kw(){return Ow(ye(),j())}function Ow(e,t){return e.type&4?new Aw(t,e,ni(e,t)):null}var Zk=new RegExp(`^(\\d+)*(${iD}|${oD})*(.*)`);var Rw=()=>null;function Nu(e,t){return Rw(e,t)}var Oa=class{},Ho=class{},Ra=class{resolveComponentFactory(t){throw Error(`No component factory found for ${De(t)}.`)}},hr=class{static NULL=new Ra},En=class{},Et=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>Fw()}return e})();function Fw(){let e=j(),t=ye(),n=Dt(t.index,e);return(ft(n)?n:e)[ne]}var Pw=(()=>{class e{static \u0275prov=k({token:e,providedIn:"root",factory:()=>null})}return e})();function Fa(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=ou(o,a);else if(i==2){let l=a,c=t[++s];r=ou(r,l+": "+c+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}var Pa=class extends hr{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=mn(t);return new Uo(n,this.ngModule)}};function Au(e,t){let n=[];for(let r in e){if(!e.hasOwnProperty(r))continue;let o=e[r];if(o===void 0)continue;let i=Array.isArray(o),s=i?o[0]:o,a=i?o[1]:gt.None;t?n.push({propName:s,templateName:r,isSignal:(a&gt.SignalBased)!==0}):n.push({propName:s,templateName:r})}return n}function Lw(e){let t=e.toLowerCase();return t==="svg"?nv:t==="math"?rv:null}var Uo=class extends Ho{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){let t=this.componentDef,n=t.inputTransforms,r=Au(t.inputs,!0);if(n!==null)for(let o of r)n.hasOwnProperty(o.propName)&&(o.transform=n[o.propName]);return r}get outputs(){return Au(this.componentDef.outputs,!1)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=VD(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=R(null);try{o=o||this.ngModule;let s=o instanceof Ge?o:o?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new ya(t,s):t,l=a.get(En,null);if(l===null)throw new S(407,!1);let c=a.get(Pw,null),u=a.get(pr,null),d={rendererFactory:l,sanitizer:c,changeDetectionScheduler:u},p=l.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",h=r?$D(p,r,this.componentDef.encapsulation,a):nf(p,f,Lw(f)),m=512;this.componentDef.signals?m|=4096:this.componentDef.onPush||(m|=16);let y=null;h!==null&&(y=yl(h,a,!0));let w=Cl(0,null,null,1,0,null,null,null,null,null,null),L=oi(null,w,null,m,null,null,d,p,a,null,y);ol(L);let F,W,Z=null;try{let ee=this.componentDef,Ye,Cs=null;ee.findHostDirectiveDefs?(Ye=[],Cs=new Map,ee.findHostDirectiveDefs(ee,Ye,Cs),Ye.push(ee)):Ye=[ee];let Lg=Vw(L,h);Z=jw(Lg,h,ee,Ye,L,d,p),W=md(w,Je),h&&Uw(p,ee,h,r),n!==void 0&&$w(W,this.ngContentSelectors,n),F=Hw(Z,ee,Ye,Cs,L,[Gw]),Sl(w,L,null)}catch(ee){throw Z!==null&&ba(Z),ba(L),ee}finally{il()}return new La(this.componentType,F,ni(W,L),L,W)}finally{R(i)}}},La=class extends Oa{location;_rootLView;_tNode;instance;hostView;changeDetectorRef;componentType;previousInputValues=null;constructor(t,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new qt(o,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode.inputs,o;if(r!==null&&(o=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let i=this._rootLView;bl(i[A],i,o,t,n),this.previousInputValues.set(t,n);let s=Dt(this._tNode.index,i);xl(s,1)}}get injector(){return new Bt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function Vw(e,t){let n=e[A],r=Je;return e[r]=t,ii(n,r,2,"#host",null)}function jw(e,t,n,r,o,i,s){let a=o[A];Bw(r,e,t,s);let l=null;t!==null&&(l=yl(t,o[yn]));let c=i.rendererFactory.createRenderer(t,n),u=oi(o,wf(n),null,bf(n),o[e.index],e,i,c,null,null,l);return a.firstCreatePass&&Na(a,e,r.length-1),si(o,u),o[e.index]=u}function Bw(e,t,n,r){for(let o of e)t.mergedAttrs=fr(t.mergedAttrs,o.hostAttrs);t.mergedAttrs!==null&&(Fa(t,t.mergedAttrs,!0),n!==null&&df(r,n,t))}function Hw(e,t,n,r,o,i){let s=ye(),a=o[A],l=Ne(s,o);_f(a,o,s,n,null,r);for(let u=0;u<n.length;u++){let d=s.directiveStart+u,p=wn(o,a,d,s);zt(p,o)}Cf(a,o,s),l&&zt(l,o);let c=wn(o,a,s.directiveStart+s.componentOffset,s);if(e[Le]=o[Le]=c,i!==null)for(let u of i)u(c,t);return yf(a,s,o),c}function Uw(e,t,n,r){if(r)ga(e,n,["ng-version","19.0.5"]);else{let{attrs:o,classes:i}=jD(t.selectors[0]);o&&ga(e,n,o),i&&i.length>0&&uf(e,n,i.join(" "))}}function $w(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}function Gw(){let e=ye();cl(j()[A],e)}var li=(()=>{class e{static __NG_ELEMENT_ID__=Ww}return e})();function Ww(){let e=ye();return qw(e,j())}var zw=li,Pf=class extends zw{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return ni(this._hostTNode,this._hostLView)}get injector(){return new Bt(this._hostTNode,this._hostLView)}get parentInjector(){let t=ul(this._hostTNode,this._hostLView);if(Ad(t)){let n=Fo(t,this._hostLView),r=Ro(t),o=n[A].data[r+8];return new Bt(o,n)}else return new Bt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=ku(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Me}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Nu(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Mu(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!Jy(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let l=s?t:new Uo(mn(t)),c=r||this.parentInjector;if(!i&&l.ngModule==null){let m=(s?c:this.parentInjector).get(Ge,null);m&&(i=m)}let u=mn(l.componentType??{}),d=Nu(this._lContainer,u?.id??null),p=d?.firstChild??null,f=l.create(c,o,p,i);return this.insertImpl(f.hostView,a,Mu(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(iv(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=o[ae],c=new Pf(l,l[je],l[ae]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return yw(s,o,i,r),t.attachToViewContainerRef(),Ju(ea(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=ku(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Ta(this._lContainer,n);r&&(bo(ea(this._lContainer),n),sf(r[A],r))}detach(t){let n=this._adjustIndex(t,-1),r=Ta(this._lContainer,n);return r&&bo(ea(this._lContainer),n)!=null?new qt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function ku(e){return e[No]}function ea(e){return e[No]||(e[No]=[])}function qw(e,t){let n,r=t[e.index];return tt(r)?n=r:(n=Sf(r,t,null,e),t[e.index]=n,si(t,n)),Kw(n,t,e,r),new Pf(n,e,t)}function Zw(e,t){let n=e[ne],r=n.createComment(""),o=Ne(t,e),i=lf(n,o);return jo(n,i,r,wD(n,o),!1),r}var Kw=Jw,Yw=()=>!1;function Qw(e,t,n){return Yw(e,t,n)}function Jw(e,t,n,r){if(e[Ht])return;let o;n.type&8?o=ze(r):o=Zw(t,n),e[Ht]=o}function Xw(e){return typeof e=="function"&&e[be]!==void 0}function wr(e,t){Dr("NgSignals");let n=xc(e),r=n[be];return t?.equal&&(r.equal=t.equal),n.set=o=>Fs(r,o),n.update=o=>Tc(r,o),n.asReadonly=eE.bind(n),n}function eE(){let e=this[be];if(e.readonlyFn===void 0){let t=()=>this();t[be]=e,e.readonlyFn=t}return e.readonlyFn}function Lf(e){return Xw(e)&&typeof e.set=="function"}var In=class{};var $o=class extends In{injector;componentFactoryResolver=new Pa(this);instance=null;constructor(t){super();let n=new ur([...t.providers,{provide:In,useValue:this},{provide:hr,useValue:this.componentFactoryResolver}],t.parent||el(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function tE(e,t,n=null){return new $o({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var nE=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=rd(!1,n.type),o=r.length>0?tE([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()}}static \u0275prov=k({token:e,providedIn:"environment",factory:()=>new e(x(Ge))})}return e})();function ci(e){return gr(()=>{let t=Vf(e),n=K(V({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===qd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(nE).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||qe.Emulated,styles:e.styles||Te,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Dr("NgStandalone"),jf(n);let r=e.dependencies;return n.directiveDefs=Ru(r,!1),n.pipeDefs=Ru(r,!0),n.id=iE(n),n})}function rE(e){return mn(e)||td(e)}function oE(e){return e!==null}function It(e){return gr(()=>({type:e.type,bootstrap:e.bootstrap||Te,declarations:e.declarations||Te,imports:e.imports||Te,exports:e.exports||Te,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Ou(e,t){if(e==null)return hn;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=gt.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==gt.None?[r,a]:r,t[i]=s):n[i]=r}return n}function Q(e){return gr(()=>{let t=Vf(e);return jf(t),t})}function Vf(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||hn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Te,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ou(e.inputs,t),outputs:Ou(e.outputs),debugInfo:null}}function jf(e){e.features?.forEach(t=>t(e))}function Ru(e,t){if(!e)return null;let n=t?nd:rE;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(oE)}function iE(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function sE(e){return Object.getPrototypeOf(e.prototype).constructor}function Ie(e){let t=sE(e.type),n=!0,r=[e];for(;t;){let o;if(ht(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new S(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=go(e.inputs),s.inputTransforms=go(e.inputTransforms),s.declaredInputs=go(e.declaredInputs),s.outputs=go(e.outputs);let a=o.hostBindings;a&&dE(e,a);let l=o.viewQuery,c=o.contentQueries;if(l&&cE(e,l),c&&uE(e,c),aE(e,o),yy(e.outputs,o.outputs),ht(o)&&o.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===Ie&&(n=!1)}}t=Object.getPrototypeOf(t)}lE(r)}function aE(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];if(r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],t.inputTransforms!==null)){let o=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(o))continue;e.inputTransforms??={},e.inputTransforms[o]=t.inputTransforms[o]}}}function lE(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=fr(o.hostAttrs,n=fr(n,o.hostAttrs))}}function go(e){return e===hn?{}:e===Te?[]:e}function cE(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function uE(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function dE(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function Bf(e){return pE(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function fE(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function pE(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Hf(e,t,n){return e[t]=n}function yt(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function hE(e,t,n,r){let o=yt(e,t,n);return yt(e,t+1,r)||o}function mE(e){return(e.flags&32)===32}function gE(e,t,n,r,o,i,s,a,l){let c=t.consts,u=ii(t,e,4,s||null,a||null);If(t,n,u,Oo(c,l)),cl(t,u);let d=u.tView=Cl(2,u,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}function yE(e,t,n,r,o,i,s,a,l,c){let u=n+Je,d=t.firstCreatePass?gE(u,t,e,r,o,i,s,a,l):t.data[u];vr(d,!1);let p=vE(t,e,d,n);al()&&El(t,e,p,d),zt(p,e);let f=Sf(p,e,p,d);return e[u]=f,si(e,f),Qw(f,d,e),tl(d)&&vf(t,e,d),l!=null&&Df(e,d,c),d}function le(e,t,n,r,o,i,s,a){let l=j(),c=Ee(),u=Oo(c.consts,i);return yE(l,c,e,t,n,r,o,u,s,a),le}var vE=DE;function DE(e,t,n,r){return ll(!0),t[ne].createComment("")}var Uf=new _("");function Er(e){return!!e&&typeof e.then=="function"}function $f(e){return!!e&&typeof e.subscribe=="function"}var wE=new _("");var Gf=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=C(wE,{optional:!0})??[];injector=C(Wt);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Yo(this.injector,o);if(Er(i))n.push(i);else if($f(i)){let s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),EE=(()=>{class e{static \u0275prov=k({token:e,providedIn:"root",factory:()=>new Va})}return e})(),Va=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},Wf=new _("");function IE(){Sc(()=>{throw new S(600,!1)})}function _E(e){return e.isBoundToModule}var CE=10;function bE(e,t,n){try{let r=n();return Er(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Zt=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=C(Qv);afterRenderManager=C(aD);zonelessEnabled=C(dl);rootEffectScheduler=C(EE);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Qe;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=C(Yt).hasPendingTasks.pipe(me(n=>!n));constructor(){C(tf,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=C(Ge);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Ho;if(!this._injector.get(Gf).done){let p=!o&&jy(n),f=!1;throw new S(405,f)}let s;o?s=n:s=this._injector.get(hr).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=_E(s)?void 0:this._injector.get(In),l=r||s.selector,c=s.create(Wt.NULL,[],l,a),u=c.location.nativeElement,d=c.injector.get(Uf,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Eo(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick=()=>{if(this.tracingSnapshot!==null){let r=this.tracingSnapshot;this.tracingSnapshot=null,r.run(ef.CHANGE_DETECTION,this._tick),r.dispose();return}if(this._runningTick)throw new S(101,!1);let n=R(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,R(n),this.afterTick.next()}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(En,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let n=0;for(;this.dirtyFlags!==0&&n++<CE;)this.synchronizeOnce()}synchronizeOnce(){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)SE(r,o,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Xo(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Eo(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Wf,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Eo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new S(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Eo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function SE(e,t,n,r){if(!n&&!Xo(e))return;kf(e,t,n&&!r?0:1)}function Tl(e,t,n,r){let o=j(),i=ti();if(yt(o,i,t)){let s=Ee(),a=sl();sw(a,o,e,t,n,r)}return Tl}function xE(e,t,n,r){return yt(e,ti(),n)?t+Ka(n)+r:Qt}function yo(e,t){return e<<17|t<<2}function Kt(e){return e>>17&32767}function TE(e){return(e&2)==2}function ME(e,t){return e&131071|t<<17}function ja(e){return e|2}function _n(e){return(e&131068)>>2}function ta(e,t){return e&-131069|t<<2}function NE(e){return(e&1)===1}function Ba(e){return e|1}function AE(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Kt(s),l=_n(s);e[r]=n;let c=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||yr(d,u)>0)&&(c=!0)}else u=n;if(o)if(l!==0){let p=Kt(e[a+1]);e[r+1]=yo(p,a),p!==0&&(e[p+1]=ta(e[p+1],r)),e[a+1]=ME(e[a+1],r)}else e[r+1]=yo(a,0),a!==0&&(e[a+1]=ta(e[a+1],r)),a=r;else e[r+1]=yo(l,0),a===0?a=r:e[l+1]=ta(e[l+1],r),l=r;c&&(e[r+1]=ja(e[r+1])),Fu(e,u,r,!0),Fu(e,u,r,!1),kE(t,u,e,r,i),s=yo(a,l),i?t.classBindings=s:t.styleBindings=s}function kE(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&yr(i,t)>=0&&(n[r+1]=Ba(n[r+1]))}function Fu(e,t,n,r){let o=e[n+1],i=t===null,s=r?Kt(o):_n(o),a=!1;for(;s!==0&&(a===!1||i);){let l=e[s],c=e[s+1];OE(l,t)&&(a=!0,e[s+1]=r?Ba(c):ja(c)),s=r?Kt(c):_n(c)}a&&(e[n+1]=r?ja(o):Ba(o))}function OE(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?yr(e,t)>=0:!1}function b(e,t,n){let r=j(),o=ti();if(yt(r,o,t)){let i=Ee(),s=sl();Ef(i,s,r,e,t,r[ne],n,!1)}return b}function Pu(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";bl(e,n,i[s],s,r)}function ui(e,t){return RE(e,t,null,!0),ui}function RE(e,t,n,r){let o=j(),i=Ee(),s=vv(2);if(i.firstUpdatePass&&PE(i,e,s,r),t!==Qt&&yt(o,s,t)){let a=i.data[Sn()];HE(i,a,o,o[ne],e,o[s+1]=UE(t,n),r,s)}}function FE(e,t){return t>=e.expandoStartIndex}function PE(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Sn()],s=FE(e,n);$E(i,r)&&t===null&&!s&&(t=!1),t=LE(o,i,t,r),AE(o,i,t,n,s,r)}}function LE(e,t,n,r){let o=Iv(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=na(null,e,t,n,r),n=mr(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=na(o,e,t,n,r),i===null){let l=VE(e,t,r);l!==void 0&&Array.isArray(l)&&(l=na(null,e,t,l[1],r),l=mr(l,t.attrs,r),jE(e,t,r,l))}else i=BE(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function VE(e,t,n){let r=n?t.classBindings:t.styleBindings;if(_n(r)!==0)return e[Kt(r)]}function jE(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Kt(o)]=r}function BE(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=mr(r,s,n)}return mr(r,t.attrs,n)}function na(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=mr(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function mr(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Ly(e,s,n?!0:t[++i]))}return e===void 0?null:e}function HE(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let l=e.data,c=l[a+1],u=NE(c)?Lu(l,t,n,o,_n(c),s):void 0;if(!Go(u)){Go(i)||TE(c)&&(i=Lu(l,null,n,o,a,s));let d=hd(Sn(),n);xD(r,s,d,o,i)}}function Lu(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let l=e[o],c=Array.isArray(l),u=c?l[1]:l,d=u===null,p=n[o+1];p===Qt&&(p=d?Te:void 0);let f=d?qs(p,r):u===r?p:void 0;if(c&&!Go(f)&&(f=qs(l,r)),Go(f)&&(a=f,s))return a;let h=e[o+1];o=s?Kt(h):_n(h)}if(t!==null){let l=i?t.residualClasses:t.residualStyles;l!=null&&(a=qs(l,r))}return a}function Go(e){return e!==void 0}function UE(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=De(vl(e)))),e}function $E(e,t){return(e.flags&(t?8:16))!==0}function GE(e,t,n,r,o,i){let s=t.consts,a=Oo(s,o),l=ii(t,e,2,r,a);return If(t,n,l,Oo(s,i)),l.attrs!==null&&Fa(l,l.attrs,!1),l.mergedAttrs!==null&&Fa(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function v(e,t,n,r){let o=j(),i=Ee(),s=Je+e,a=o[ne],l=i.firstCreatePass?GE(s,i,o,t,n,r):i.data[s],c=WE(i,o,l,a,t,e);o[s]=c;let u=tl(l);return vr(l,!0),df(a,c,l),!mE(l)&&al()&&El(i,o,c,l),lv()===0&&zt(c,o),cv(),u&&(vf(i,o,l),yf(i,l,o)),r!==null&&Df(o,l),v}function g(){let e=ye();wd()?mv():(e=e.parent,vr(e,!1));let t=e;fv(t)&&pv(),uv();let n=Ee();return n.firstCreatePass&&(cl(n,e),cd(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&Mv(t)&&Pu(n,t,j(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Nv(t)&&Pu(n,t,j(),t.stylesWithoutHost,!1),g}function oe(e,t,n,r){return v(e,t,n,r),g(),oe}var WE=(e,t,n,r,o,i)=>(ll(!0),nf(r,o,bv()));function Ae(){return j()}var Wo="en-US";var zE=Wo;function qE(e){typeof e=="string"&&(zE=e.toLowerCase().replace(/_/g,"-"))}var ZE=(e,t,n)=>{};function q(e,t,n,r){let o=j(),i=Ee(),s=ye();return zf(i,o,o[ne],s,e,t,r),q}function KE(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[To],l=o[i+2];return a.length>l?a[l]:null}typeof s=="string"&&(i+=2)}return null}function zf(e,t,n,r,o,i,s){let a=tl(r),c=e.firstCreatePass&&dw(e),u=t[Le],d=uw(t),p=!0;if(r.type&3||s){let m=Ne(r,t),y=s?s(m):m,w=d.length,L=s?W=>s(ze(W[r.index])):r.index,F=null;if(!s&&a&&(F=KE(e,t,o,r.index)),F!==null){let W=F.__ngLastListenerFn__||F;W.__ngNextListenerFn__=i,F.__ngLastListenerFn__=i,p=!1}else{i=ju(r,t,u,i),ZE(m,o,i);let W=n.listen(y,o,i);d.push(i,W),c&&c.push(o,L,w,w+1)}}else i=ju(r,t,u,i);let f=r.outputs,h;if(p&&f!==null&&(h=f[o])){let m=h.length;if(m)for(let y=0;y<m;y+=2){let w=h[y],L=h[y+1],Z=t[w][L].subscribe(i),ee=d.length;d.push(i,Z),c&&c.push(o,r.index,ee,-(ee+1))}}}function Vu(e,t,n,r){let o=R(null);try{return Ue(6,t,n),n(r)!==!1}catch(i){return Tf(e,i),!1}finally{Ue(7,t,n),R(o)}}function ju(e,t,n,r){return function o(i){if(i===Function)return r;let s=e.componentOffset>-1?Dt(e.index,t):t;xl(s,5);let a=Vu(t,n,r,i),l=o.__ngNextListenerFn__;for(;l;)a=Vu(t,n,l,i)&&a,l=l.__ngNextListenerFn__;return a}}function P(e=1){return Cv(e)}function qf(e){let t=gv();return ov(t,Je+e)}function O(e,t=""){let n=j(),r=Ee(),o=e+Je,i=r.firstCreatePass?ii(r,o,1,t,null):r.data[o],s=YE(r,n,i,t,e);n[o]=s,al()&&El(r,n,s,i),vr(i,!1)}var YE=(e,t,n,r,o)=>(ll(!0),uD(t[ne],r));function Ze(e){return Tn("",e,""),Ze}function Tn(e,t,n){let r=j(),o=xE(r,e,t,n);return o!==Qt&&fw(r,Sn(),o),Tn}function _e(e,t,n){Lf(t)&&(t=t());let r=j(),o=ti();if(yt(r,o,t)){let i=Ee(),s=sl();Ef(i,s,r,e,t,r[ne],n,!1)}return _e}function ke(e,t){let n=Lf(e);return n&&e.set(t),n}function Ce(e,t){let n=j(),r=Ee(),o=ye();return zf(r,n,n[ne],o,e,t),Ce}function QE(e,t,n){let r=Ee();if(r.firstCreatePass){let o=ht(e);Ha(n,r.data,r.blueprint,o,!0),Ha(t,r.data,r.blueprint,o,!1)}}function Ha(e,t,n,r,o){if(e=se(e),Array.isArray(e))for(let i=0;i<e.length;i++)Ha(e[i],t,n,r,o);else{let i=Ee(),s=j(),a=ye(),l=gn(e)?e:se(e.provide),c=sd(e),u=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(gn(e)||!e.multi){let f=new Gt(c,o,E),h=oa(l,t,o?u:u+p,d);h===-1?(Da(Po(a,s),i,l),ra(i,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=oa(l,t,u+p,d),h=oa(l,t,u,u+p),m=f>=0&&n[f],y=h>=0&&n[h];if(o&&!y||!o&&!m){Da(Po(a,s),i,l);let w=eI(o?XE:JE,n.length,o,r,c);!o&&y&&(n[h].providerFactory=w),ra(i,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(w),s.push(w)}else{let w=Zf(n[o?h:f],c,!o&&r);ra(i,e,f>-1?f:h,w)}!o&&r&&y&&n[h].componentProviders++}}}function ra(e,t,n,r){let o=gn(t),i=Gy(t);if(o||i){let l=(i?se(t.useClass):t).prototype.ngOnDestroy;if(l){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=c.indexOf(n);u===-1?c.push(n,[r,l]):c[u+1].push(r,l)}else c.push(n,l)}}}function Zf(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function oa(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function JE(e,t,n,r){return Ua(this.multi,[])}function XE(e,t,n,r){let o=this.multi,i;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=wn(n,n[A],this.providerFactory.index,r);i=a.slice(0,s),Ua(o,i);for(let l=s;l<a.length;l++)i.push(a[l])}else i=[],Ua(o,i);return i}function Ua(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function eI(e,t,n,r,o){let i=new Gt(e,n,E);return i.multi=[],i.index=t,i.componentProviders=0,Zf(i,o,r&&!n),i}function rt(e,t=[]){return n=>{n.providersResolver=(r,o)=>QE(r,o?o(e):e,t)}}function Ir(e,t,n,r){return tI(j(),Id(),e,t,n,r)}function Mn(e,t,n,r,o){return nI(j(),Id(),e,t,n,r,o)}function Kf(e,t){let n=e[t];return n===Qt?void 0:n}function tI(e,t,n,r,o,i){let s=t+n;return yt(e,s,o)?Hf(e,s+1,i?r.call(i,o):r(o)):Kf(e,s+1)}function nI(e,t,n,r,o,i,s){let a=t+n;return hE(e,a,o,i)?Hf(e,a+2,s?r.call(s,o,i):r(o,i)):Kf(e,a+2)}var rI=(()=>{class e{zone=C(Y);changeDetectionScheduler=C(pr);applicationRef=C(Zt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function oI({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Y(K(V({},iI()),{scheduleInRootZone:n})),[{provide:Y,useFactory:e},{provide:cr,multi:!0,useFactory:()=>{let r=C(rI,{optional:!0});return()=>r.initialize()}},{provide:cr,multi:!0,useFactory:()=>{let r=C(sI);return()=>{r.initialize()}}},t===!0?{provide:Ud,useValue:!0}:[],{provide:$d,useValue:n??Bd}]}function iI(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var sI=(()=>{class e{subscription=new ie;initialized=!1;zone=C(Y);pendingTasks=C(Yt);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(()=>{Y.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Y.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var aI=(()=>{class e{appRef=C(Zt);taskService=C(Yt);ngZone=C(Y);zonelessEnabled=C(dl);tracing=C(tf,{optional:!0});disableScheduling=C(Ud,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ie;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Vo):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(C($d,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Ca||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 8:{this.appRef.deferredDirtyFlags|=8;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 13:{this.appRef.dirtyFlags|=16,r=!0;break}case 14:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{r=!0;break}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Du:Gd;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Vo+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Du(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function lI(){return typeof $localize<"u"&&$localize.locale||Wo}var Ml=new _("",{providedIn:"root",factory:()=>C(Ml,N.Optional|N.SkipSelf)||lI()});var $a=new _(""),cI=new _("");function or(e){return!e.moduleRef}function uI(e){let t=or(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Y);return n.run(()=>{or(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(mt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),or(e)){let i=()=>t.destroy(),s=e.platformInjector.get($a);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get($a);s.add(i),e.moduleRef.onDestroy(()=>{Eo(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return bE(r,n,()=>{let i=t.get(Gf);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Ml,Wo);if(qE(s||Wo),!t.get(cI,!0))return or(e)?t.get(Zt):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(or(e)){let l=t.get(Zt);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return dI(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function dI(e,t){let n=e.injector.get(Zt);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new S(-403,!1);t.push(e)}var Io=null;function fI(e=[],t){return Wt.create({name:t,providers:[{provide:Ko,useValue:"platform"},{provide:$a,useValue:new Set([()=>Io=null])},...e]})}function pI(e=[]){if(Io)return Io;let t=fI(e);return Io=t,IE(),hI(t),t}function hI(e){let t=e.get(ml,null);Yo(e,()=>{t?.forEach(n=>n())})}var Nn=(()=>{class e{static __NG_ELEMENT_ID__=mI}return e})();function mI(e){return gI(ye(),j(),(e&16)===16)}function gI(e,t,n){if(Jo(e)&&!n){let r=Dt(e.index,t);return new qt(r,r)}else if(e.type&175){let r=t[We];return new qt(r,t)}return null}var Ga=class{constructor(){}supports(t){return Bf(t)}create(t){return new Wa(t)}},yI=(e,t)=>t,Wa=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||yI}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<Bu(r,o,i)?n:r,a=Bu(s,o,i),l=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let c=a-o,u=l-o;if(c!=u){for(let p=0;p<c;p++){let f=p<i.length?i[p]:i[p]=0,h=f+p;u<=h&&h<c&&(i[p]=f+1)}let d=s.previousIndex;i[d]=u-c}}a!==l&&t(s,a,l)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!Bf(t))throw new S(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,fE(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new za(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}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(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new zo),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new zo),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},za=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}},qa=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},zo=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new qa,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Bu(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function Hu(){return new Nl([new Ga])}var Nl=(()=>{class e{factories;static \u0275prov=k({token:e,providedIn:"root",factory:Hu});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||Hu()),deps:[[e,new Fy,new Qu]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new S(901,!1)}}return e})();function Yf(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=pI(r),i=[oI({}),{provide:pr,useExisting:aI},...n||[]],s=new $o({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return uI({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function di(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function _r(e,t){Dr("NgSignals");let n=_c(e);return t?.equal&&(n[be].equal=t.equal),n}function ot(e){let t=R(null);try{return e()}finally{R(t)}}var Uu=class{[be];constructor(t){this[be]=t}destroy(){this[be].destroy()}};var tp=null;function kn(){return tp}function np(e){tp??=e}var fi=class{};var Oe=new _("");function pi(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Al=/\s+/,Qf=[],hi=(()=>{class e{_ngEl;_renderer;initialClasses=Qf;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(Al):Qf}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Al):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(Al).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||e)(E(nt),E(Et))};static \u0275dir=Q({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var kl=class{$implicit;ngForOf;index;count;constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}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}},mi=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o}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,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new kl(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),Jf(a,o)}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);Jf(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(E(li),E(ai),E(Nl))};static \u0275dir=Q({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function Jf(e,t){e.context.$implicit=t.item}var gi=(()=>{class e{_viewContainer;_context=new Ol;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Xf("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Xf("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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(E(li),E(ai))};static \u0275dir=Q({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),Ol=class{$implicit=null;ngIf=null};function Xf(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${De(t)}'.`)}var Cr=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=It({type:e});static \u0275inj=vt({})}return e})(),rp="browser",vI="server";function yi(e){return e===vI}var An=class{};var DI=typeof global=="object"&&global&&global.Object===Object&&global,vi=DI;var wI=typeof self=="object"&&self&&self.Object===Object&&self,EI=vi||wI||Function("return this")(),J=EI;var II=J.Symbol,ce=II;var op=Object.prototype,_I=op.hasOwnProperty,CI=op.toString,br=ce?ce.toStringTag:void 0;function bI(e){var t=_I.call(e,br),n=e[br];try{e[br]=void 0;var r=!0}catch{}var o=CI.call(e);return r&&(t?e[br]=n:delete e[br]),o}var ip=bI;var SI=Object.prototype,xI=SI.toString;function TI(e){return xI.call(e)}var sp=TI;var MI="[object Null]",NI="[object Undefined]",ap=ce?ce.toStringTag:void 0;function AI(e){return e==null?e===void 0?NI:MI:ap&&ap in Object(e)?ip(e):sp(e)}var Be=AI;function kI(e){return e!=null&&typeof e=="object"}var ue=kI;var OI="[object Symbol]";function RI(e){return typeof e=="symbol"||ue(e)&&Be(e)==OI}var _t=RI;function FI(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var lp=FI;var PI=Array.isArray,re=PI;var LI=1/0,cp=ce?ce.prototype:void 0,up=cp?cp.toString:void 0;function dp(e){if(typeof e=="string")return e;if(re(e))return lp(e,dp)+"";if(_t(e))return up?up.call(e):"";var t=e+"";return t=="0"&&1/e==-LI?"-0":t}var fp=dp;var VI=/\s/;function jI(e){for(var t=e.length;t--&&VI.test(e.charAt(t)););return t}var pp=jI;var BI=/^\s+/;function HI(e){return e&&e.slice(0,pp(e)+1).replace(BI,"")}var hp=HI;function UI(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var de=UI;var mp=NaN,$I=/^[-+]0x[0-9a-f]+$/i,GI=/^0b[01]+$/i,WI=/^0o[0-7]+$/i,zI=parseInt;function qI(e){if(typeof e=="number")return e;if(_t(e))return mp;if(de(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=de(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=hp(e);var n=GI.test(e);return n||WI.test(e)?zI(e.slice(2),n?2:8):$I.test(e)?mp:+e}var gp=qI;var yp=1/0,ZI=17976931348623157e292;function KI(e){if(!e)return e===0?e:0;if(e=gp(e),e===yp||e===-yp){var t=e<0?-1:1;return t*ZI}return e===e?e:0}var vp=KI;function YI(e){var t=vp(e),n=t%1;return t===t?n?t-n:t:0}var Dp=YI;function QI(e){return e}var wp=QI;var JI="[object AsyncFunction]",XI="[object Function]",e_="[object GeneratorFunction]",t_="[object Proxy]";function n_(e){if(!de(e))return!1;var t=Be(e);return t==XI||t==e_||t==JI||t==t_}var Di=n_;var r_=J["__core-js_shared__"],wi=r_;var Ep=function(){var e=/[^.]+$/.exec(wi&&wi.keys&&wi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function o_(e){return!!Ep&&Ep in e}var Ip=o_;var i_=Function.prototype,s_=i_.toString;function a_(e){if(e!=null){try{return s_.call(e)}catch{}try{return e+""}catch{}}return""}var st=a_;var l_=/[\\^$.*+?()[\]{}|]/g,c_=/^\[object .+?Constructor\]$/,u_=Function.prototype,d_=Object.prototype,f_=u_.toString,p_=d_.hasOwnProperty,h_=RegExp("^"+f_.call(p_).replace(l_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m_(e){if(!de(e)||Ip(e))return!1;var t=Di(e)?h_:c_;return t.test(st(e))}var _p=m_;function g_(e,t){return e?.[t]}var Cp=g_;function y_(e,t){var n=Cp(e,t);return _p(n)?n:void 0}var ve=y_;var v_=ve(J,"WeakMap"),Ei=v_;var bp=Object.create,D_=function(){function e(){}return function(t){if(!de(t))return{};if(bp)return bp(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Sp=D_;function w_(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var xp=w_;var E_=function(){try{var e=ve(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Fl=E_;function I_(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Tp=I_;function __(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}var Mp=__;var C_=9007199254740991,b_=/^(?:0|[1-9]\d*)$/;function S_(e,t){var n=typeof e;return t=t??C_,!!t&&(n=="number"||n!="symbol"&&b_.test(e))&&e>-1&&e%1==0&&e<t}var Ii=S_;function x_(e,t,n){t=="__proto__"&&Fl?Fl(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var _i=x_;function T_(e,t){return e===t||e!==e&&t!==t}var On=T_;var M_=Object.prototype,N_=M_.hasOwnProperty;function A_(e,t,n){var r=e[t];(!(N_.call(e,t)&&On(r,n))||n===void 0&&!(t in e))&&_i(e,t,n)}var Ci=A_;function k_(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=r?r(n[a],e[a],a,n,e):void 0;l===void 0&&(l=e[a]),o?_i(n,a,l):Ci(n,a,l)}return n}var Ct=k_;var O_=9007199254740991;function R_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=O_}var Rn=R_;function F_(e){return e!=null&&Rn(e.length)&&!Di(e)}var Fn=F_;var P_=Object.prototype;function L_(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||P_;return e===n}var Pn=L_;function V_(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Np=V_;var j_="[object Arguments]";function B_(e){return ue(e)&&Be(e)==j_}var Pl=B_;var Ap=Object.prototype,H_=Ap.hasOwnProperty,U_=Ap.propertyIsEnumerable,$_=Pl(function(){return arguments}())?Pl:function(e){return ue(e)&&H_.call(e,"callee")&&!U_.call(e,"callee")},bi=$_;function G_(){return!1}var kp=G_;var Fp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Op=Fp&&typeof module=="object"&&module&&!module.nodeType&&module,W_=Op&&Op.exports===Fp,Rp=W_?J.Buffer:void 0,z_=Rp?Rp.isBuffer:void 0,q_=z_||kp,Jt=q_;var Z_="[object Arguments]",K_="[object Array]",Y_="[object Boolean]",Q_="[object Date]",J_="[object Error]",X_="[object Function]",eC="[object Map]",tC="[object Number]",nC="[object Object]",rC="[object RegExp]",oC="[object Set]",iC="[object String]",sC="[object WeakMap]",aC="[object ArrayBuffer]",lC="[object DataView]",cC="[object Float32Array]",uC="[object Float64Array]",dC="[object Int8Array]",fC="[object Int16Array]",pC="[object Int32Array]",hC="[object Uint8Array]",mC="[object Uint8ClampedArray]",gC="[object Uint16Array]",yC="[object Uint32Array]",G={};G[cC]=G[uC]=G[dC]=G[fC]=G[pC]=G[hC]=G[mC]=G[gC]=G[yC]=!0;G[Z_]=G[K_]=G[aC]=G[Y_]=G[lC]=G[Q_]=G[J_]=G[X_]=G[eC]=G[tC]=G[nC]=G[rC]=G[oC]=G[iC]=G[sC]=!1;function vC(e){return ue(e)&&Rn(e.length)&&!!G[Be(e)]}var Pp=vC;function DC(e){return function(t){return e(t)}}var Ln=DC;var Lp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sr=Lp&&typeof module=="object"&&module&&!module.nodeType&&module,wC=Sr&&Sr.exports===Lp,Ll=wC&&vi.process,EC=function(){try{var e=Sr&&Sr.require&&Sr.require("util").types;return e||Ll&&Ll.binding&&Ll.binding("util")}catch{}}(),at=EC;var Vp=at&&at.isTypedArray,IC=Vp?Ln(Vp):Pp,Si=IC;var _C=Object.prototype,CC=_C.hasOwnProperty;function bC(e,t){var n=re(e),r=!n&&bi(e),o=!n&&!r&&Jt(e),i=!n&&!r&&!o&&Si(e),s=n||r||o||i,a=s?Np(e.length,String):[],l=a.length;for(var c in e)(t||CC.call(e,c))&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ii(c,l)))&&a.push(c);return a}var xi=bC;function SC(e,t){return function(n){return e(t(n))}}var Ti=SC;var xC=Ti(Object.keys,Object),jp=xC;var TC=Object.prototype,MC=TC.hasOwnProperty;function NC(e){if(!Pn(e))return jp(e);var t=[];for(var n in Object(e))MC.call(e,n)&&n!="constructor"&&t.push(n);return t}var Bp=NC;function AC(e){return Fn(e)?xi(e):Bp(e)}var Ke=AC;function kC(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Hp=kC;var OC=Object.prototype,RC=OC.hasOwnProperty;function FC(e){if(!de(e))return Hp(e);var t=Pn(e),n=[];for(var r in e)r=="constructor"&&(t||!RC.call(e,r))||n.push(r);return n}var Up=FC;function PC(e){return Fn(e)?xi(e,!0):Up(e)}var Vn=PC;var LC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,VC=/^\w*$/;function jC(e,t){if(re(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||_t(e)?!0:VC.test(e)||!LC.test(e)||t!=null&&e in Object(t)}var jn=jC;var BC=ve(Object,"create"),lt=BC;function HC(){this.__data__=lt?lt(null):{},this.size=0}var $p=HC;function UC(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Gp=UC;var $C="__lodash_hash_undefined__",GC=Object.prototype,WC=GC.hasOwnProperty;function zC(e){var t=this.__data__;if(lt){var n=t[e];return n===$C?void 0:n}return WC.call(t,e)?t[e]:void 0}var Wp=zC;var qC=Object.prototype,ZC=qC.hasOwnProperty;function KC(e){var t=this.__data__;return lt?t[e]!==void 0:ZC.call(t,e)}var zp=KC;var YC="__lodash_hash_undefined__";function QC(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=lt&&t===void 0?YC:t,this}var qp=QC;function Bn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Bn.prototype.clear=$p;Bn.prototype.delete=Gp;Bn.prototype.get=Wp;Bn.prototype.has=zp;Bn.prototype.set=qp;var Vl=Bn;function JC(){this.__data__=[],this.size=0}var Zp=JC;function XC(e,t){for(var n=e.length;n--;)if(On(e[n][0],t))return n;return-1}var bt=XC;var eb=Array.prototype,tb=eb.splice;function nb(e){var t=this.__data__,n=bt(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():tb.call(t,n,1),--this.size,!0}var Kp=nb;function rb(e){var t=this.__data__,n=bt(t,e);return n<0?void 0:t[n][1]}var Yp=rb;function ob(e){return bt(this.__data__,e)>-1}var Qp=ob;function ib(e,t){var n=this.__data__,r=bt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Jp=ib;function Hn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Hn.prototype.clear=Zp;Hn.prototype.delete=Kp;Hn.prototype.get=Yp;Hn.prototype.has=Qp;Hn.prototype.set=Jp;var St=Hn;var sb=ve(J,"Map"),xt=sb;function ab(){this.size=0,this.__data__={hash:new Vl,map:new(xt||St),string:new Vl}}var Xp=ab;function lb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var eh=lb;function cb(e,t){var n=e.__data__;return eh(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Tt=cb;function ub(e){var t=Tt(this,e).delete(e);return this.size-=t?1:0,t}var th=ub;function db(e){return Tt(this,e).get(e)}var nh=db;function fb(e){return Tt(this,e).has(e)}var rh=fb;function pb(e,t){var n=Tt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var oh=pb;function Un(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Un.prototype.clear=Xp;Un.prototype.delete=th;Un.prototype.get=nh;Un.prototype.has=rh;Un.prototype.set=oh;var Xt=Un;var hb="Expected a function";function jl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(hb);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(jl.Cache||Xt),n}jl.Cache=Xt;var ih=jl;var mb=500;function gb(e){var t=ih(e,function(r){return n.size===mb&&n.clear(),r}),n=t.cache;return t}var sh=gb;var yb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vb=/\\(\\)?/g,Db=sh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(yb,function(n,r,o,i){t.push(o?i.replace(vb,"$1"):r||n)}),t}),ah=Db;function wb(e){return e==null?"":fp(e)}var lh=wb;function Eb(e,t){return re(e)?e:jn(e,t)?[e]:ah(lh(e))}var Mi=Eb;var Ib=1/0;function _b(e){if(typeof e=="string"||_t(e))return e;var t=e+"";return t=="0"&&1/e==-Ib?"-0":t}var Mt=_b;function Cb(e,t){t=Mi(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Mt(t[n++])];return n&&n==r?e:void 0}var Ni=Cb;function bb(e,t,n){var r=e==null?void 0:Ni(e,t);return r===void 0?n:r}var ch=bb;function Sb(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Ai=Sb;var xb=Ti(Object.getPrototypeOf,Object),ki=xb;function Tb(){this.__data__=new St,this.size=0}var uh=Tb;function Mb(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var dh=Mb;function Nb(e){return this.__data__.get(e)}var fh=Nb;function Ab(e){return this.__data__.has(e)}var ph=Ab;var kb=200;function Ob(e,t){var n=this.__data__;if(n instanceof St){var r=n.__data__;if(!xt||r.length<kb-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xt(r)}return n.set(e,t),this.size=n.size,this}var hh=Ob;function $n(e){var t=this.__data__=new St(e);this.size=t.size}$n.prototype.clear=uh;$n.prototype.delete=dh;$n.prototype.get=fh;$n.prototype.has=ph;$n.prototype.set=hh;var Nt=$n;function Rb(e,t){return e&&Ct(t,Ke(t),e)}var mh=Rb;function Fb(e,t){return e&&Ct(t,Vn(t),e)}var gh=Fb;var wh=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yh=wh&&typeof module=="object"&&module&&!module.nodeType&&module,Pb=yh&&yh.exports===wh,vh=Pb?J.Buffer:void 0,Dh=vh?vh.allocUnsafe:void 0;function Lb(e,t){if(t)return e.slice();var n=e.length,r=Dh?Dh(n):new e.constructor(n);return e.copy(r),r}var Eh=Lb;function Vb(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}var Ih=Vb;function jb(){return[]}var Oi=jb;var Bb=Object.prototype,Hb=Bb.propertyIsEnumerable,_h=Object.getOwnPropertySymbols,Ub=_h?function(e){return e==null?[]:(e=Object(e),Ih(_h(e),function(t){return Hb.call(e,t)}))}:Oi,Gn=Ub;function $b(e,t){return Ct(e,Gn(e),t)}var Ch=$b;var Gb=Object.getOwnPropertySymbols,Wb=Gb?function(e){for(var t=[];e;)Ai(t,Gn(e)),e=ki(e);return t}:Oi,Ri=Wb;function zb(e,t){return Ct(e,Ri(e),t)}var bh=zb;function qb(e,t,n){var r=t(e);return re(e)?r:Ai(r,n(e))}var Fi=qb;function Zb(e){return Fi(e,Ke,Gn)}var xr=Zb;function Kb(e){return Fi(e,Vn,Ri)}var Sh=Kb;var Yb=ve(J,"DataView"),Pi=Yb;var Qb=ve(J,"Promise"),Li=Qb;var Jb=ve(J,"Set"),Vi=Jb;var xh="[object Map]",Xb="[object Object]",Th="[object Promise]",Mh="[object Set]",Nh="[object WeakMap]",Ah="[object DataView]",e0=st(Pi),t0=st(xt),n0=st(Li),r0=st(Vi),o0=st(Ei),en=Be;(Pi&&en(new Pi(new ArrayBuffer(1)))!=Ah||xt&&en(new xt)!=xh||Li&&en(Li.resolve())!=Th||Vi&&en(new Vi)!=Mh||Ei&&en(new Ei)!=Nh)&&(en=function(e){var t=Be(e),n=t==Xb?e.constructor:void 0,r=n?st(n):"";if(r)switch(r){case e0:return Ah;case t0:return xh;case n0:return Th;case r0:return Mh;case o0:return Nh}return t});var ct=en;var i0=Object.prototype,s0=i0.hasOwnProperty;function a0(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&s0.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var kh=a0;var l0=J.Uint8Array,Wn=l0;function c0(e){var t=new e.constructor(e.byteLength);return new Wn(t).set(new Wn(e)),t}var zn=c0;function u0(e,t){var n=t?zn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Oh=u0;var d0=/\w*$/;function f0(e){var t=new e.constructor(e.source,d0.exec(e));return t.lastIndex=e.lastIndex,t}var Rh=f0;var Fh=ce?ce.prototype:void 0,Ph=Fh?Fh.valueOf:void 0;function p0(e){return Ph?Object(Ph.call(e)):{}}var Lh=p0;function h0(e,t){var n=t?zn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Vh=h0;var m0="[object Boolean]",g0="[object Date]",y0="[object Map]",v0="[object Number]",D0="[object RegExp]",w0="[object Set]",E0="[object String]",I0="[object Symbol]",_0="[object ArrayBuffer]",C0="[object DataView]",b0="[object Float32Array]",S0="[object Float64Array]",x0="[object Int8Array]",T0="[object Int16Array]",M0="[object Int32Array]",N0="[object Uint8Array]",A0="[object Uint8ClampedArray]",k0="[object Uint16Array]",O0="[object Uint32Array]";function R0(e,t,n){var r=e.constructor;switch(t){case _0:return zn(e);case m0:case g0:return new r(+e);case C0:return Oh(e,n);case b0:case S0:case x0:case T0:case M0:case N0:case A0:case k0:case O0:return Vh(e,n);case y0:return new r;case v0:case E0:return new r(e);case D0:return Rh(e);case w0:return new r;case I0:return Lh(e)}}var jh=R0;function F0(e){return typeof e.constructor=="function"&&!Pn(e)?Sp(ki(e)):{}}var Bh=F0;var P0="[object Map]";function L0(e){return ue(e)&&ct(e)==P0}var Hh=L0;var Uh=at&&at.isMap,V0=Uh?Ln(Uh):Hh,$h=V0;var j0="[object Set]";function B0(e){return ue(e)&&ct(e)==j0}var Gh=B0;var Wh=at&&at.isSet,H0=Wh?Ln(Wh):Gh,zh=H0;var U0=1,$0=2,G0=4,qh="[object Arguments]",W0="[object Array]",z0="[object Boolean]",q0="[object Date]",Z0="[object Error]",Zh="[object Function]",K0="[object GeneratorFunction]",Y0="[object Map]",Q0="[object Number]",Kh="[object Object]",J0="[object RegExp]",X0="[object Set]",eS="[object String]",tS="[object Symbol]",nS="[object WeakMap]",rS="[object ArrayBuffer]",oS="[object DataView]",iS="[object Float32Array]",sS="[object Float64Array]",aS="[object Int8Array]",lS="[object Int16Array]",cS="[object Int32Array]",uS="[object Uint8Array]",dS="[object Uint8ClampedArray]",fS="[object Uint16Array]",pS="[object Uint32Array]",B={};B[qh]=B[W0]=B[rS]=B[oS]=B[z0]=B[q0]=B[iS]=B[sS]=B[aS]=B[lS]=B[cS]=B[Y0]=B[Q0]=B[Kh]=B[J0]=B[X0]=B[eS]=B[tS]=B[uS]=B[dS]=B[fS]=B[pS]=!0;B[Z0]=B[Zh]=B[nS]=!1;function ji(e,t,n,r,o,i){var s,a=t&U0,l=t&$0,c=t&G0;if(n&&(s=o?n(e,r,o,i):n(e)),s!==void 0)return s;if(!de(e))return e;var u=re(e);if(u){if(s=kh(e),!a)return xp(e,s)}else{var d=ct(e),p=d==Zh||d==K0;if(Jt(e))return Eh(e,a);if(d==Kh||d==qh||p&&!o){if(s=l||p?{}:Bh(e),!a)return l?bh(e,gh(s,e)):Ch(e,mh(s,e))}else{if(!B[d])return o?e:{};s=jh(e,d,a)}}i||(i=new Nt);var f=i.get(e);if(f)return f;i.set(e,s),zh(e)?e.forEach(function(y){s.add(ji(y,t,n,y,e,i))}):$h(e)&&e.forEach(function(y,w){s.set(w,ji(y,t,n,w,e,i))});var h=c?l?Sh:xr:l?Vn:Ke,m=u?void 0:h(e);return Tp(m||e,function(y,w){m&&(w=y,y=e[w]),Ci(s,w,ji(y,t,n,w,e,i))}),s}var Yh=ji;var hS=1,mS=4;function gS(e){return Yh(e,hS|mS)}var Bl=gS;var yS="__lodash_hash_undefined__";function vS(e){return this.__data__.set(e,yS),this}var Qh=vS;function DS(e){return this.__data__.has(e)}var Jh=DS;function Bi(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Xt;++t<n;)this.add(e[t])}Bi.prototype.add=Bi.prototype.push=Qh;Bi.prototype.has=Jh;var Xh=Bi;function wS(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var em=wS;function ES(e,t){return e.has(t)}var tm=ES;var IS=1,_S=2;function CS(e,t,n,r,o,i){var s=n&IS,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,f=n&_S?new Xh:void 0;for(i.set(e,t),i.set(t,e);++d<a;){var h=e[d],m=t[d];if(r)var y=s?r(m,h,d,t,e,i):r(h,m,d,e,t,i);if(y!==void 0){if(y)continue;p=!1;break}if(f){if(!em(t,function(w,L){if(!tm(f,L)&&(h===w||o(h,w,n,r,i)))return f.push(L)})){p=!1;break}}else if(!(h===m||o(h,m,n,r,i))){p=!1;break}}return i.delete(e),i.delete(t),p}var Hi=CS;function bS(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var nm=bS;function SS(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var rm=SS;var xS=1,TS=2,MS="[object Boolean]",NS="[object Date]",AS="[object Error]",kS="[object Map]",OS="[object Number]",RS="[object RegExp]",FS="[object Set]",PS="[object String]",LS="[object Symbol]",VS="[object ArrayBuffer]",jS="[object DataView]",om=ce?ce.prototype:void 0,Hl=om?om.valueOf:void 0;function BS(e,t,n,r,o,i,s){switch(n){case jS:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case VS:return!(e.byteLength!=t.byteLength||!i(new Wn(e),new Wn(t)));case MS:case NS:case OS:return On(+e,+t);case AS:return e.name==t.name&&e.message==t.message;case RS:case PS:return e==t+"";case kS:var a=nm;case FS:var l=r&xS;if(a||(a=rm),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=TS,s.set(e,t);var u=Hi(a(e),a(t),r,o,i,s);return s.delete(e),u;case LS:if(Hl)return Hl.call(e)==Hl.call(t)}return!1}var im=BS;var HS=1,US=Object.prototype,$S=US.hasOwnProperty;function GS(e,t,n,r,o,i){var s=n&HS,a=xr(e),l=a.length,c=xr(t),u=c.length;if(l!=u&&!s)return!1;for(var d=l;d--;){var p=a[d];if(!(s?p in t:$S.call(t,p)))return!1}var f=i.get(e),h=i.get(t);if(f&&h)return f==t&&h==e;var m=!0;i.set(e,t),i.set(t,e);for(var y=s;++d<l;){p=a[d];var w=e[p],L=t[p];if(r)var F=s?r(L,w,p,t,e,i):r(w,L,p,e,t,i);if(!(F===void 0?w===L||o(w,L,n,r,i):F)){m=!1;break}y||(y=p=="constructor")}if(m&&!y){var W=e.constructor,Z=t.constructor;W!=Z&&"constructor"in e&&"constructor"in t&&!(typeof W=="function"&&W instanceof W&&typeof Z=="function"&&Z instanceof Z)&&(m=!1)}return i.delete(e),i.delete(t),m}var sm=GS;var WS=1,am="[object Arguments]",lm="[object Array]",Ui="[object Object]",zS=Object.prototype,cm=zS.hasOwnProperty;function qS(e,t,n,r,o,i){var s=re(e),a=re(t),l=s?lm:ct(e),c=a?lm:ct(t);l=l==am?Ui:l,c=c==am?Ui:c;var u=l==Ui,d=c==Ui,p=l==c;if(p&&Jt(e)){if(!Jt(t))return!1;s=!0,u=!1}if(p&&!u)return i||(i=new Nt),s||Si(e)?Hi(e,t,n,r,o,i):im(e,t,l,n,r,o,i);if(!(n&WS)){var f=u&&cm.call(e,"__wrapped__"),h=d&&cm.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,y=h?t.value():t;return i||(i=new Nt),o(m,y,n,r,i)}}return p?(i||(i=new Nt),sm(e,t,n,r,o,i)):!1}var um=qS;function dm(e,t,n,r,o){return e===t?!0:e==null||t==null||!ue(e)&&!ue(t)?e!==e&&t!==t:um(e,t,n,r,dm,o)}var $i=dm;var ZS=1,KS=2;function YS(e,t,n,r){var o=n.length,i=o,s=!r;if(e==null)return!i;for(e=Object(e);o--;){var a=n[o];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){a=n[o];var l=a[0],c=e[l],u=a[1];if(s&&a[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Nt;if(r)var p=r(c,u,l,e,t,d);if(!(p===void 0?$i(u,c,ZS|KS,r,d):p))return!1}}return!0}var fm=YS;function QS(e){return e===e&&!de(e)}var Gi=QS;function JS(e){for(var t=Ke(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Gi(o)]}return t}var pm=JS;function XS(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Wi=XS;function ex(e){var t=pm(e);return t.length==1&&t[0][2]?Wi(t[0][0],t[0][1]):function(n){return n===e||fm(n,e,t)}}var hm=ex;function tx(e,t){return e!=null&&t in Object(e)}var mm=tx;function nx(e,t,n){t=Mi(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var s=Mt(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&Rn(o)&&Ii(s,o)&&(re(e)||bi(e)))}var gm=nx;function rx(e,t){return e!=null&&gm(e,t,mm)}var ym=rx;var ox=1,ix=2;function sx(e,t){return jn(e)&&Gi(t)?Wi(Mt(e),t):function(n){var r=ch(n,e);return r===void 0&&r===t?ym(n,e):$i(t,r,ox|ix)}}var vm=sx;function ax(e){return function(t){return t?.[e]}}var Dm=ax;function lx(e){return function(t){return Ni(t,e)}}var wm=lx;function cx(e){return jn(e)?Dm(Mt(e)):wm(e)}var Em=cx;function ux(e){return typeof e=="function"?e:e==null?wp:typeof e=="object"?re(e)?vm(e[0],e[1]):hm(e):Em(e)}var zi=ux;function dx(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Ul=dx;function fx(e){return function(t,n,r){var o=Object(t);if(!Fn(t)){var i=zi(n,3);t=Ke(t),n=function(a){return i(o[a],a,o)}}var s=e(t,n,r);return s>-1?o[i?t[s]:s]:void 0}}var Im=fx;var px=Math.max;function hx(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:Dp(n);return o<0&&(o=px(r+o,0)),Mp(e,zi(t,3),o)}var _m=hx;var mx=Im(_m),$l=mx;function gx(e){return e&&e.length?e[0]:void 0}var qi=gx;var X={mreServiceBase:"https://test.kc-np.o360.cloud/Handlers/saml2.ashx",mreBaseUrl:"https://www.medicalreferenceengine.com/mre/",tokenServer:"/Token/token/",url:"/",appName:"kcApp",secret:""};var Cm=[{name:"aa_togglePhysicianPaymentType (Dev Only)",sdkVisible:!1,example:""},{name:"aa_LoadPhyNpiTaxonomy (Dev Only)",sdkVisible:!1,example:""},{name:"aa_SetEgpSortRules (Dev Only)",sdkVisible:!1,example:{includePriority:"",includeSeverity:"",includeMortality:"",includeElixhauser:"",includeHcc:"",includeRa:"",includePxPriority:""}},{name:"aa_CreateAgpInput (Dev Only)",sdkVisible:!1,example:""},{name:"acsuCloneDischargeDisposition (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuGetFacilitiesByIds (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuGetFacilitiesByUsernames (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuMergeMultiRegion (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuSaveDischargeDisposition (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuSaveWebstratUser (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"addGhostRows (Dev Only)",sdkVisible:!1,example:{includeAdmitTypeAndAdmissionSource:!1}},{name:"addRemCodes (Dev Only)",sdkVisible:!1,example:{diagnosisCodes:[{code:"B700",codeType:"REMD",label:"short label",longLabel:"Long label"}],hcpcsCodes:[{code:"12001",codeType:"REMH",label:"short label",longLabel:"Long label",units:"1",modifier1:"26",modifier2:null,modifier3:null,modifier4:null,modifier5:null}]}},{name:"swapActiveAndGhostRows (Dev Only)",sdkVisible:!1,example:""},{name:"recordMode (Dev Only)",sdkVisible:!1,example:""},{name:"addCodes",sdkVisible:!0,example:{codes:[{code:"B700",codeType:"I10CM",dxIndic1:"N"},{code:"X2C1361",codeType:"ICD10PCS",date:"2024-03-21T20:01:28.953Z"}],editedcode:null,codeSource:"encoder",documentHighlight:!0}},{name:"deleteCodes",sdkVisible:!0,example:{codes:[{uniqueId:"uniqueIdgoeshere",codeType:"I10CM"}]}},{name:"defaultSettings",sdkVisible:!1,example:""},{name:"getInputPatientClaim",sdkVisible:!1,example:""},{name:"getPayerList",sdkVisible:!0,example:{sendingFacility:"001",npi:null,payer:null,taxonomy:null,paymentType:"01"}},{name:"getPatientRecord",sdkVisible:!1,example:""},{name:"getPatientRecord-truncated",sdkVisible:!1,example:""},{name:"getOptimizerInput",sdkVisible:!1,example:""},{name:"cacAuthenticateUser (Dev Only)",sdkVisible:!1,example:{user:"UserName",pw:"EncryptedPW",isForLogin:!0}},{name:"cacChangePwd (Dev Only)",sdkVisible:!1,example:{user:"UserName",currentPw:"EncryptedPw",newPw:"EncryptedPw"}},{name:"cacGetGroups (Dev Only)",sdkVisible:!1,example:""},{name:"cacResetPwd (Dev Only)",sdkVisible:!1,example:{user:"UserName",newPw:"EncryptedPw"}},{name:"cacGetUserInfo (Dev Only)",sdkVisible:!1,example:{user:"UserName"}},{name:"cacUpdateLastLoginTime (Dev Only)",sdkVisible:!1,example:{user:12345}},{name:"callClaimsManager (Dev Only)",sdkVisible:!1,example:""},{name:"closeAllKCWindows",sdkVisible:!1,example:""},{name:"closeAllKCWindowsExceptEncoder",sdkVisible:!0,example:""},{name:"clearSelectedRow",sdkVisible:!0,example:""},{name:"clearPatientRecord",sdkVisible:!0,example:""},{name:"clearHighlight",sdkVisible:!1,example:""},{name:"editsCount",sdkVisible:!1,example:""},{name:"enableEncoder",sdkVisible:!1,example:""},{name:"disableEncoder",sdkVisible:!1,example:""},{name:"disableChildWindows",sdkVisible:!1,example:""},{name:"enableChildWindows",sdkVisible:!1,example:""},{name:"launchCodeSummaryReport",sdkVisible:!0,example:""},{name:"launchEdits",sdkVisible:!0,example:""},{name:"launchIndex",sdkVisible:!0,example:{codeType:"I10CM",phrase:"ANGINA"}},{name:"launchLogic",sdkVisible:!0,example:{codeType:"I10CM",phrase:"ANGINA"}},{name:"launchTabular",sdkVisible:!0,example:{codeType:"I10CM",code:"A000"}},{name:"launchFacilityLookup",sdkVisible:!0,example:{paymentType:"01",rateFilePath:"C:\\inetpub\\wwwroot\\HSS\\Data\\allpaykc"}},{name:"loadNotes",sdkVisible:!1,example:{AccessType:"All",codeType:"I10CM",NoteType:"Code",Identifier:"",IdentifierSearchLower:"",IdentifierSearchUpper:"",Category:"",Ids:{User:"",Facility:"",Organization:""},AllFacilities:!0}},{name:"loadOrganizationSettings",sdkVisible:!1,example:""},{name:"loadPatientRecord",sdkVisible:!0,example:""},{name:"openEncoder",sdkVisible:!0,example:""},{name:"potentialImpactDisplay (Dev Only)",sdkVisible:!1,example:""},{name:"potentialImpactClear",sdkVisible:!1,example:""},{name:"potentialImpactDisable",sdkVisible:!1,example:""},{name:"potentialImpactEnable",sdkVisible:!1,example:""},{name:"potentialImpactEnableEgp",sdkVisible:!1,example:{enabled:!1}},{name:"potentialImpactInitialize",sdkVisible:!1,example:""},{name:"resetApplication",sdkVisible:!0,example:""},{name:"savePatientRecord",sdkVisible:!0,example:""},{name:"selectRowOnHighlightClick",sdkVisible:!1,example:{uniqueId:"uniqueIdGoesHere"}},{name:"setAuthToken",sdkVisible:!1,example:""},{name:"toggleEgpCompression",sdkVisible:!1,example:{enableCompression:!1}},{name:"setChargeCapture",sdkVisible:!0,example:[{cptCode:"G0382",modifiers:"77,GA,PO",revCode:"450",startDate:"2025-2-11",units:1,codeRange:"99281-99285,99291-99292,G0380-G0384"},{cptCode:"96365",modifiers:"59,XE,XS,XU",revCode:"450",startDate:"Tue Feb 11 2025 13:25:46 GMT-0500 (Eastern Standard Time)",units:56,codeRange:"96360-96361,96365-96368,96372,96374-96376"},{cptCode:"99221",modifiers:"IN,IP,IR,IS,IX",revCode:"760",startDate:"2025-02-11T00:00:00.000Z",units:9999,codeRange:"99221-99223,99231-99233,99234-99236, 99238-99239,G0378 \u2013 G0379"}]},{name:"showCurrentConfig (Dev Only)",sdkVisible:!1,example:""},{name:"updateAbstractInfo",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"HCPCS",abstractInfo:"A"}]},{name:"updateBaseUrl",sdkVisible:!1,example:""},{name:"updateCodes",sdkVisible:!0,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",dxIndic1:"Y"},{uniqueId:"uniqueIdGoesHere",codeType:"ICD10PCS",date:"2024-03-21T20:01:28.953Z",selectedProvider:"freeFormProvider"},{uniqueId:"uniqueIdGoesHere",codeType:"HCPCS",date:"2024-03-21T20:01:28.953Z",selectedProvider:"freeFormProvider",revCode:"0250",units:"1",modifier1:{value:"23"},i10Reimbursement:{charges:"$1,000.00"},i9Reimbursement:{charges:"$1,000.00"}}]},{name:"updateComments",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",comments:"C"}]},{name:"updateDemographics",sdkVisible:!0,example:""},{name:"updateDocumentCount",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",documentCount:"3"}]},{name:"updateExcludeFromBilling",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"HCPCS",excludeFromBilling:"X"}]},{name:"updateRedFlag",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",redFlag:"F"}]},{name:"hasCriticalEdits",sdkVisible:!0,example:""},{name:"hasEdits",sdkVisible:!0,example:""},{name:"ReloadMainPod",sdkVisible:!1,example:""},{name:"ReloadCodeSummary",sdkVisible:!1,example:""},{name:"ReloadDemographics",sdkVisible:!1,example:""},{name:"ReloadEdits",sdkVisible:!1,example:""},{name:"ReloadReimbursement",sdkVisible:!1,example:""},{name:"logout",sdkVisible:!0,example:""},{name:"getRowSpecificInfo",sdkVisible:!0,example:["uniqueId1GoesHere","uniqueId2GoesHere"]},{name:"isEditGroupPriceInProgress",sdkVisible:!1,example:""},{name:"addCodesNoEdit",sdkVisible:!1,example:{codes:[{code:"B700",codeType:"I10CM",dxIndic1:"N"},{code:"X2C1361",codeType:"ICD10PCS",date:"2024-03-21T20:01:28.953Z"}]}},{name:"setQueryImpactVisibility",sdkVisible:!1,example:{isVisible:!0}},{name:"setSyncVisibility",sdkVisible:!1,example:{isVisible:!0}},{name:"showScratchCodeState",sdkVisible:!1,example:{isVisible:!0}},{name:"showQueryHistoryState",sdkVisible:!1,example:{isVisible:!0}},{name:"showQueryHistoryBtn",sdkVisible:!1,example:{isVisible:!0}},{name:"updateCptWithRange",sdkVisible:!1,example:{codes:[{code:"",units:""}],emCodeRanges:[{from:"",to:""}]}},{name:"launchModal (Dev Only)",sdkVisible:!1,example:{messageType:"info",title:"Test Modal",message:["Test Modal"]}},{name:"simulateKcVersion (Dev Only)",sdkVisible:!1,example:{kcVersion:"1.2.3"}},{name:"startEnvironmentPromiseRace (Dev Only)",sdkVisible:!1,example:{alternateUrl:"https://dev.kc-np.o360.cloud/v202501"}}];var Om=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(E(Et),E(nt))};static \u0275dir=Q({type:e})}return e})(),os=(()=>{class e extends Om{static \u0275fac=(()=>{let n;return function(o){return(n||(n=xn(e)))(o||e)}})();static \u0275dir=Q({type:e,features:[Ie]})}return e})(),Kn=new _(""),Dx={provide:Kn,useExisting:Ve(()=>Zl),multi:!0},Zl=(()=>{class e extends os{writeValue(n){this.setProperty("checked",n)}static \u0275fac=(()=>{let n;return function(o){return(n||(n=xn(e)))(o||e)}})();static \u0275dir=Q({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){r&1&&q("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[rt([Dx]),Ie]})}return e})(),wx={provide:Kn,useExisting:Ve(()=>Yn),multi:!0};function Ex(){let e=kn()?kn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var Ix=new _(""),Yn=(()=>{class e extends Om{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!Ex())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(E(Et),E(nt),E(Ix,8))};static \u0275dir=Q({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&&q("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[rt([wx]),Ie]})}return e})();function At(e){return e==null||(typeof e=="string"||Array.isArray(e))&&e.length===0}function Rm(e){return e!=null&&typeof e.length=="number"}var is=new _(""),Kl=new _(""),_x=/^(?=.{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])?)*$/,kr=class{static min(t){return Cx(t)}static max(t){return bx(t)}static required(t){return Fm(t)}static requiredTrue(t){return Sx(t)}static email(t){return xx(t)}static minLength(t){return Tx(t)}static maxLength(t){return Mx(t)}static pattern(t){return Nx(t)}static nullValidator(t){return Ki(t)}static compose(t){return Hm(t)}static composeAsync(t){return $m(t)}};function Cx(e){return t=>{if(At(t.value)||At(e))return null;let n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function bx(e){return t=>{if(At(t.value)||At(e))return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function Fm(e){return At(e.value)?{required:!0}:null}function Sx(e){return e.value===!0?null:{required:!0}}function xx(e){return At(e.value)||_x.test(e.value)?null:{email:!0}}function Tx(e){return t=>At(t.value)||!Rm(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}function Mx(e){return t=>Rm(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function Nx(e){if(!e)return Ki;let t,n;return typeof e=="string"?(n="",e.charAt(0)!=="^"&&(n+="^"),n+=e,e.charAt(e.length-1)!=="$"&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(At(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function Ki(e){return null}function Pm(e){return e!=null}function Lm(e){return Er(e)?jt(e):e}function Vm(e){let t={};return e.forEach(n=>{t=n!=null?V(V({},t),n):t}),Object.keys(t).length===0?null:t}function jm(e,t){return t.map(n=>n(e))}function Ax(e){return!e.validate}function Bm(e){return e.map(t=>Ax(t)?t:n=>t.validate(n))}function Hm(e){if(!e)return null;let t=e.filter(Pm);return t.length==0?null:function(n){return Vm(jm(n,t))}}function Um(e){return e!=null?Hm(Bm(e)):null}function $m(e){if(!e)return null;let t=e.filter(Pm);return t.length==0?null:function(n){let r=jm(n,t).map(Lm);return $s(r).pipe(me(Vm))}}function Gm(e){return e!=null?$m(Bm(e)):null}function bm(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Wm(e){return e._rawValidators}function zm(e){return e._rawAsyncValidators}function Gl(e){return e?Array.isArray(e)?e:[e]:[]}function Yi(e,t){return Array.isArray(e)?e.includes(t):e===t}function Sm(e,t){let n=Gl(t);return Gl(e).forEach(o=>{Yi(n,o)||n.push(o)}),n}function xm(e,t){return Gl(t).filter(n=>!Yi(e,n))}var Qi=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Um(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Gm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},tn=class extends Qi{name;get formDirective(){return null}get path(){return null}},nn=class extends Qi{_parent=null;name=null;valueAccessor=null},Ji=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},kx={"[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"},K2=K(V({},kx),{"[class.ng-submitted]":"isSubmitted"}),ss=(()=>{class e extends Ji{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(E(nn,2))};static \u0275dir=Q({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&ui("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)},standalone:!1,features:[Ie]})}return e})(),qm=(()=>{class e extends Ji{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(E(tn,10))};static \u0275dir=Q({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&ui("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)},standalone:!1,features:[Ie]})}return e})();var Tr="VALID",Zi="INVALID",qn="PENDING",Mr="DISABLED",kt=class{},Xi=class extends kt{value;source;constructor(t,n){super(),this.value=t,this.source=n}},Nr=class extends kt{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},Ar=class extends kt{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Zn=class extends kt{status;source;constructor(t,n){super(),this.status=t,this.source=n}},Wl=class extends kt{source;constructor(t){super(),this.source=t}},zl=class extends kt{source;constructor(t){super(),this.source=t}};function Zm(e){return(as(e)?e.validators:e)||null}function Ox(e){return Array.isArray(e)?Um(e):e||null}function Km(e,t){return(as(t)?t.asyncValidators:e)||null}function Rx(e){return Array.isArray(e)?Gm(e):e||null}function as(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function Fx(e,t,n){let r=e.controls;if(!(t?Object.keys(r):r).length)throw new S(1e3,"");if(!r[n])throw new S(1001,"")}function Px(e,t,n){e._forEachChild((r,o)=>{if(n[o]===void 0)throw new S(1002,"")})}var es=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return ot(this.statusReactive)}set status(t){ot(()=>this.statusReactive.set(t))}_status=_r(()=>this.statusReactive());statusReactive=wr(void 0);get valid(){return this.status===Tr}get invalid(){return this.status===Zi}get pending(){return this.status==qn}get disabled(){return this.status===Mr}get enabled(){return this.status!==Mr}errors;get pristine(){return ot(this.pristineReactive)}set pristine(t){ot(()=>this.pristineReactive.set(t))}_pristine=_r(()=>this.pristineReactive());pristineReactive=wr(!0);get dirty(){return!this.pristine}get touched(){return ot(this.touchedReactive)}set touched(t){ot(()=>this.touchedReactive.set(t))}_touched=_r(()=>this.touchedReactive());touchedReactive=wr(!1);get untouched(){return!this.touched}_events=new Qe;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Sm(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Sm(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(xm(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(xm(t,this._rawAsyncValidators))}hasValidator(t){return Yi(this._rawValidators,t)}hasAsyncValidator(t){return Yi(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(K(V({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Ar(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new Ar(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(K(V({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Nr(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new Nr(!0,r))}markAsPending(t={}){this.status=qn;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Zn(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(K(V({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Mr,this.errors=null,this._forEachChild(o=>{o.disable(K(V({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Xi(this.value,r)),this._events.next(new Zn(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(K(V({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Tr,this._forEachChild(r=>{r.enable(K(V({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(K(V({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Tr||this.status===qn)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Xi(this.value,n)),this._events.next(new Zn(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(K(V({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Mr:Tr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=qn,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=Lm(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Zn(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new ge,this.statusChanges=new ge}_calculateStatus(){return this._allControlsDisabled()?Mr:this.errors?Zi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(qn)?qn:this._anyControlsHaveStatus(Zi)?Zi:Tr}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new Nr(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new Ar(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){as(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=Ox(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Rx(this._rawAsyncValidators)}},ts=class extends es{constructor(t,n,r){super(Zm(n),Km(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){Px(this,!0,t),Object.keys(t).forEach(r=>{Fx(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(Object.keys(t).forEach(r=>{let o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t?t[o]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var ls=new _("CallSetDisabledState",{providedIn:"root",factory:()=>cs}),cs="always";function Ym(e,t){return[...t.path,e]}function ql(e,t,n=cs){Yl(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),Vx(e,t),Bx(e,t),jx(e,t),Lx(e,t)}function Tm(e,t,n=!0){let r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),rs(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function ns(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Lx(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function Yl(e,t){let n=Wm(e);t.validator!==null?e.setValidators(bm(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=zm(e);t.asyncValidator!==null?e.setAsyncValidators(bm(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();ns(t._rawValidators,o),ns(t._rawAsyncValidators,o)}function rs(e,t){let n=!1;if(e!==null){if(t.validator!==null){let o=Wm(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==t.validator);i.length!==o.length&&(n=!0,e.setValidators(i))}}if(t.asyncValidator!==null){let o=zm(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==t.asyncValidator);i.length!==o.length&&(n=!0,e.setAsyncValidators(i))}}}let r=()=>{};return ns(t._rawValidators,r),ns(t._rawAsyncValidators,r),n}function Vx(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Qm(e,t)})}function jx(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Qm(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Qm(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Bx(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function Hx(e,t){e==null,Yl(e,t)}function Ux(e,t){return rs(e,t)}function Jm(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function $x(e){return Object.getPrototypeOf(e.constructor)===os}function Gx(e,t){e._syncPendingControls(),t.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function Xm(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===Yn?n=i:$x(i)?r=i:o=i}),o||r||n||null}function Wx(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Mm(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Nm(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Or=class extends es{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(Zm(n),Km(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),as(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Nm(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Mm(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Mm(this._onDisabledChange,t)}_forEachChild(t){}_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(t){Nm(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var zx=e=>e instanceof Or;var qx={provide:nn,useExisting:Ve(()=>Rr)},Am=Promise.resolve(),Rr=(()=>{class e extends nn{_changeDetectorRef;callSetDisabledState;control=new Or;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new ge;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=Xm(this,i)}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),Jm(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(){ql(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){Am.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&di(r);Am.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?Ym(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(E(tn,9),E(is,10),E(Kl,10),E(Kn,10),E(Nn,8),E(ls,8))};static \u0275dir=Q({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[rt([qx]),Ie,bn]})}return e})(),eg=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275dir=Q({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return e})();var tg=new _("");var Zx={provide:tn,useExisting:Ve(()=>Ql)},Ql=(()=>{class e extends tn{callSetDisabledState;get submitted(){return ot(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}_submitted=_r(()=>this._submittedReactive());_submittedReactive=wr(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new ge;constructor(n,r,o){super(),this.callSetDisabledState=o,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&&(rs(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 ql(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){Tm(n.control||null,n,!1),Wx(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._submittedReactive.set(!0),Gx(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new Wl(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new zl(this.form))}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,o=this.form.get(n.path);r!==o&&(Tm(r||null,n),zx(o)&&(ql(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);Hx(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&Ux(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Yl(this.form,this),this._oldForm&&rs(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(r){return new(r||e)(E(is,10),E(Kl,10),E(ls,8))};static \u0275dir=Q({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&q("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[rt([Zx]),Ie,bn]})}return e})();var Kx={provide:nn,useExisting:Ve(()=>Jl)},Jl=(()=>{class e extends nn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(n){}model;update=new ge;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(n,r,o,i,s){super(),this._ngModelWarningConfig=s,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=Xm(this,i)}ngOnChanges(n){this._added||this._setUpControl(),Jm(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 Ym(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}static \u0275fac=function(r){return new(r||e)(E(tn,13),E(is,10),E(Kl,10),E(Kn,10),E(tg,8))};static \u0275dir=Q({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[rt([Kx]),Ie,bn]})}return e})(),Yx={provide:Kn,useExisting:Ve(()=>Qn),multi:!0};function ng(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function Qx(e){return e.split(":")[0]}var Qn=(()=>{class e extends os{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r=this._getOptionId(n),o=ng(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=Qx(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=xn(e)))(o||e)}})();static \u0275dir=Q({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){r&1&&q("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[rt([Yx]),Ie]})}return e})(),us=(()=>{class e{_element;_renderer;_select;id;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(ng(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))}static \u0275fac=function(r){return new(r||e)(E(nt),E(Et),E(Qn,9))};static \u0275dir=Q({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),Jx={provide:Kn,useExisting:Ve(()=>rg),multi:!0};function km(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function Xx(e){return e.split(":")[0]}var rg=(()=>{class e extends os{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r;if(Array.isArray(n)){let o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let o=[],i=r.selectedOptions;if(i!==void 0){let s=i;for(let a=0;a<s.length;a++){let l=s[a],c=this._getOptionValue(l.value);o.push(c)}}else{let s=r.options;for(let a=0;a<s.length;a++){let l=s[a];if(l.selected){let c=this._getOptionValue(l.value);o.push(c)}}}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=Xx(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=xn(e)))(o||e)}})();static \u0275dir=Q({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){r&1&&q("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[rt([Jx]),Ie]})}return e})(),ds=(()=>{class e{_element;_renderer;_select;id;_value;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(km(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(km(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))}static \u0275fac=function(r){return new(r||e)(E(nt),E(Et),E(rg,9))};static \u0275dir=Q({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();var eT=(()=>{class e{_validator=Ki;_onChange;_enabled;ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Ki,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Q({type:e,features:[bn]})}return e})();var tT={provide:is,useExisting:Ve(()=>Xl),multi:!0};var Xl=(()=>{class e extends eT{required;inputName="required";normalizeInput=di;createValidator=n=>Fm;enabled(n){return n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=xn(e)))(o||e)}})();static \u0275dir=Q({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&&Tl("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[rt([tT]),Ie]})}return e})();var og=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=It({type:e});static \u0275inj=vt({})}return e})();var fs=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:ls,useValue:n.callSetDisabledState??cs}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=It({type:e});static \u0275inj=vt({imports:[og]})}return e})(),ps=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:tg,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:ls,useValue:n.callSetDisabledState??cs}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=It({type:e});static \u0275inj=vt({imports:[og]})}return e})();var Jn=(()=>{class e{constructor(){this.signInForm=new ts({username:new Or({value:"",disabled:!1},[kr.required]),organization:new Or({value:"Hartford HealthCare",disabled:!1},[kr.required])}),this.serverErrorMessageModel={id:"ServerError",messageType:"error",content:"",visible:!1},this.clientErrorMessageModel={id:"ClientError",messageType:"error",content:"Review the form and correct highlighted fields.",visible:!1},this.busy=!1,this.advancedMode=!1,this.serverError=this.serverErrorMessageModel,this.clientError=this.clientErrorMessageModel,this.username="",this.organization="Hartford HealthCare",this.signInButtonText=this.advancedMode?"Generate Token":"Launch Encoder",this.signInHeaderText=this.advancedMode?"Create Token":"Enter Info",this.userNameDisabled=!1}clearClientError(){this.serverError.visible=!1,this.clientError.visible=!1,this.signInForm.markAsPristine()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Pr=class{},ms=class{},He=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
8
- `).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var nc=class{encodeKey(t){return sg(t)}encodeValue(t){return sg(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function nT(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}var rT=/%(\d[a-f0-9])/gi,oT={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function sg(e){return encodeURIComponent(e).replace(rT,(t,n)=>oT[n]??t)}function hs(e){return`${e}`}var Rt=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new nc,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=nT(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(hs):[hs(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(hs(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(hs(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var rc=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function iT(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ag(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function lg(e){return typeof Blob<"u"&&e instanceof Blob}function cg(e){return typeof FormData<"u"&&e instanceof FormData}function sT(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Fr=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(iT(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new He,this.context??=new rc,!this.params)this.params=new Rt,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),l=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||ag(this.body)||lg(this.body)||cg(this.body)||sT(this.body)?this.body:this.body instanceof Rt?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||cg(this.body)?null:lg(this.body)?this.body.type||null:ag(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof Rt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.transferCache??this.transferCache,s=t.body!==void 0?t.body:this.body,a=t.withCredentials??this.withCredentials,l=t.reportProgress??this.reportProgress,c=t.headers||this.headers,u=t.params||this.params,d=t.context??this.context;return t.setHeaders!==void 0&&(c=Object.keys(t.setHeaders).reduce((p,f)=>p.set(f,t.setHeaders[f]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((p,f)=>p.set(f,t.setParams[f]),u)),new e(n,r,s,{params:u,headers:c,context:d,reportProgress:l,responseType:o,withCredentials:a,transferCache:i})}},Ft=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Ft||{}),Lr=class{headers;status;statusText;url;ok;type;constructor(t,n=200,r="OK"){this.headers=t.headers||new He,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},gs=class e extends Lr{constructor(t={}){super(t)}type=Ft.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Vr=class e extends Lr{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Ft.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Ot=class extends Lr{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},hg=200,aT=204;function tc(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var sc=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Fr)i=n;else{let l;o.headers instanceof He?l=o.headers:l=new He(o.headers);let c;o.params&&(o.params instanceof Rt?c=o.params:c=new Rt({fromObject:o.params})),i=new Fr(n,r,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=fo(i).pipe(Ws(l=>this.handler.handle(l)));if(n instanceof Fr||o.observe==="events")return s;let a=s.pipe(Gs(l=>l instanceof Vr));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(me(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(me(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(me(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return a.pipe(me(l=>l.body))}case"response":return a;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 Rt().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,tc(o,r))}post(n,r,o={}){return this.request("POST",n,tc(o,r))}put(n,r,o={}){return this.request("PUT",n,tc(o,r))}static \u0275fac=function(r){return new(r||e)(x(Pr))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),lT=/^\)\]\}',?\n/,cT="X-Request-URL";function ug(e){if(e.url)return e.url;let t=cT.toLocaleLowerCase();return e.headers.get(t)}var uT=(()=>{class e{fetchImpl=C(oc,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=C(Y);handle(n){return new z(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(ic,i=>r.error(new Ot({error:i}))),()=>o.abort()})}doRequest(n,r,o){return Xn(this,null,function*(){let i=this.createRequestInit(n),s;try{let f=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,V({signal:r},i)));dT(f),o.next({type:Ft.Sent}),s=yield f}catch(f){o.error(new Ot({error:f,status:f.status??0,statusText:f.statusText,url:n.urlWithParams,headers:f.headers}));return}let a=new He(s.headers),l=s.statusText,c=ug(s)??n.urlWithParams,u=s.status,d=null;if(n.reportProgress&&o.next(new gs({headers:a,status:u,statusText:l,url:c})),s.body){let f=s.headers.get("content-length"),h=[],m=s.body.getReader(),y=0,w,L,F=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Xn(this,null,function*(){for(;;){let{done:Z,value:ee}=yield m.read();if(Z)break;if(h.push(ee),y+=ee.length,n.reportProgress){L=n.responseType==="text"?(L??"")+(w??=new TextDecoder).decode(ee,{stream:!0}):void 0;let Ye=()=>o.next({type:Ft.DownloadProgress,total:f?+f:void 0,loaded:y,partialText:L});F?F.run(Ye):Ye()}}}));let W=this.concatChunks(h,y);try{let Z=s.headers.get("Content-Type")??"";d=this.parseBody(n,W,Z)}catch(Z){o.error(new Ot({error:Z,headers:new He(s.headers),status:s.status,statusText:s.statusText,url:ug(s)??n.urlWithParams}));return}}u===0&&(u=d?hg:0),u>=200&&u<300?(o.next(new Vr({body:d,headers:a,status:u,statusText:l,url:c})),o.complete()):o.error(new Ot({error:d,headers:a,status:u,statusText:l,url:c}))})}parseBody(n,r,o){switch(n.responseType){case"json":let i=new TextDecoder().decode(r).replace(lT,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let i=n.detectContentTypeHeader();i!==null&&(r["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),oc=class{};function ic(){}function dT(e){e.then(ic,ic)}function mg(e,t){return t(e)}function fT(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function pT(e,t,n){return(r,o)=>Yo(n,()=>t(r,i=>e(i,o)))}var hT=new _(""),ac=new _(""),mT=new _(""),gg=new _("",{providedIn:"root",factory:()=>!0});function gT(){let e=null;return(t,n)=>{e===null&&(e=(C(hT,{optional:!0})??[]).reduceRight(fT,mg));let r=C(Yt);if(C(gg)){let i=r.add();return e(t,n).pipe(ho(()=>r.remove(i)))}else return e(t,n)}}var dg=(()=>{class e extends Pr{backend;injector;chain=null;pendingTasks=C(Yt);contributeToStability=C(gg);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(ac),...this.injector.get(mT,[])]));this.chain=r.reduceRight((o,i)=>pT(o,i,this.injector),mg)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(ho(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(x(ms),x(Ge))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})();var yT=/^\)\]\}',?\n/;function vT(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var fg=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new S(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?jt(r.\u0275loadImpl()):fo(null)).pipe(zs(()=>new z(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((m,y)=>s.setRequestHeader(m,y.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let m=n.detectContentTypeHeader();m!==null&&s.setRequestHeader("Content-Type",m)}if(n.responseType){let m=n.responseType.toLowerCase();s.responseType=m!=="json"?m:"text"}let a=n.serializeBody(),l=null,c=()=>{if(l!==null)return l;let m=s.statusText||"OK",y=new He(s.getAllResponseHeaders()),w=vT(s)||n.url;return l=new gs({headers:y,status:s.status,statusText:m,url:w}),l},u=()=>{let{headers:m,status:y,statusText:w,url:L}=c(),F=null;y!==aT&&(F=typeof s.response>"u"?s.responseText:s.response),y===0&&(y=F?hg:0);let W=y>=200&&y<300;if(n.responseType==="json"&&typeof F=="string"){let Z=F;F=F.replace(yT,"");try{F=F!==""?JSON.parse(F):null}catch(ee){F=Z,W&&(W=!1,F={error:ee,text:F})}}W?(i.next(new Vr({body:F,headers:m,status:y,statusText:w,url:L||void 0})),i.complete()):i.error(new Ot({error:F,headers:m,status:y,statusText:w,url:L||void 0}))},d=m=>{let{url:y}=c(),w=new Ot({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:y||void 0});i.error(w)},p=!1,f=m=>{p||(i.next(c()),p=!0);let y={type:Ft.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),n.responseType==="text"&&s.responseText&&(y.partialText=s.responseText),i.next(y)},h=m=>{let y={type:Ft.UploadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),i.next(y)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",f),a!==null&&s.upload&&s.upload.addEventListener("progress",h)),s.send(a),i.next({type:Ft.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),a!==null&&s.upload&&s.upload.removeEventListener("progress",h)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(x(An))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),yg=new _(""),DT="XSRF-TOKEN",wT=new _("",{providedIn:"root",factory:()=>DT}),ET="X-XSRF-TOKEN",IT=new _("",{providedIn:"root",factory:()=>ET}),ys=class{},_T=(()=>{class e{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=pi(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(x(Oe),x(wt),x(wT))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})();function CT(e,t){let n=e.url.toLowerCase();if(!C(yg)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=C(ys).getToken(),o=C(IT);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var vg=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(vg||{});function bT(e,t){return{\u0275kind:e,\u0275providers:t}}function Dg(...e){let t=[sc,fg,dg,{provide:Pr,useExisting:dg},{provide:ms,useFactory:()=>C(uT,{optional:!0})??C(fg)},{provide:ac,useValue:CT,multi:!0},{provide:yg,useValue:!0},{provide:ys,useClass:_T}];for(let n of e)t.push(...n.\u0275providers);return Ja(t)}var pg=new _("");function wg(){return bT(vg.LegacyInterceptors,[{provide:pg,useFactory:gT},{provide:ac,useExisting:pg,multi:!0}])}var vs=(()=>{class e{constructor(){}wrapAsArray(n){return n.charAt(0)!=="["&&(n="["+n),n.charAt(n.length)!=="]"&&(n=n+"]"),n}removeBrackets(n){return n.charAt(0)==="["&&(n=n.substring(1)),n.charAt(n.length-1)==="]"&&(n=n.substring(0,n.length-1)),n}isJson(n){try{return JSON.parse(n)&&n}catch{return!1}}getCurrentDate(){let n=new Date,r=n.getDate(),o=n.getMonth()+1,i=n.getFullYear();return o+"/"+r+"/"+i}getBirthDateISO(){let n=new Date;return n.setFullYear(n.getFullYear()-30),n.toISOString()}getCurrentDateISO(){return new Date().toISOString()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Ds=(()=>{class e{constructor(n,r,o){this.signInService=n,this.stringService=r,this.http=o,this.kcSdk=window.kcSdk,this.sessionTypes=[this.kcSdk.sessionTypes.DX,this.kcSdk.sessionTypes.CMPX,this.kcSdk.sessionTypes.I10CM,this.kcSdk.sessionTypes.ICD10PCS,this.kcSdk.sessionTypes.HCPCS],this.i9I10States=[this.kcSdk.i9I10States.I9,this.kcSdk.i9I10States.I10],this.patientTypes=[this.kcSdk.patientType.INPATIENT,this.kcSdk.patientType.OUTPATIENT,this.kcSdk.patientType.IRF,this.kcSdk.patientType.CAH,this.kcSdk.patientType.SNF],this.selectedPatientType=this.patientTypes[0],this.selectedI9I10State=this.i9I10States[1],this.selectedSessionType=this.sessionTypes[0],this.selectedEncoderTab=this.kcSdk.encoderTabs.LOGIC,this.encoderPhraseCode="",this.WEB_KC="web/KC.html",this.WEB_ENCODER="web/Encoder.html",this.exampleUrl="http://www.google.com",this.exampleDemographicsData={sex:"M",sendingFacility:"001",birthDate:this.stringService.getBirthDateISO(),admitDate:this.stringService.getCurrentDateISO(),dischargeDate:this.stringService.getCurrentDateISO(),patientType:this.kcSdk.patientType.INPATIENT,financialClass:"09"},this.encoderDemographics=JSON.stringify(this.exampleDemographicsData,null,2),this.encoderTabs=[this.kcSdk.encoderTabs.LOGIC,this.kcSdk.encoderTabs.INDEX,this.kcSdk.encoderTabs.TABULAR],this.clientExampleToken="",this.selectedPod="",this.outputJson="",this.sdkKcIsListening=!1,this.sdkEncoderIsListening=!1,this.version=this.kcSdk.version,this.exampleAuthToken={access_token:""},this.closeAllKCWindows=this.kcSdk.closeAllKCWindows,this.workflow=this.kcSdk.workflow,this.selectedWorkflowApi=qi(this.kcSdk.workflow),this.workflowInput=X.url+this.WEB_KC,this.kcWindowName=this.kcSdk.kcWindow.name,this.kcSentinelName=this.kcSdk.kcWindow.kcSentinelName,this.encoderWindowName=this.kcSdk.encoderWindow.name,this.apisForAllWindows=[{name:"launch KC",fn:this.kcSdk.kcWindow.launch,windowName:this.kcWindowName},{name:"launch KC Sentinel",fn:this.kcSdk.kcWindow.openKcSentinel,windowName:this.kcWindowName},{name:"launch Encoder",fn:this.kcSdk.encoderWindow.launch,windowName:this.encoderWindowName},{name:"loadPatientRecord",fn:this.kcSdk.kcWindow.loadPatientRecord,windowName:this.kcWindowName},{name:"assignConfig",fn:this.kcSdk.kcWindow.assignConfig,windowName:this.kcWindowName},{name:"setAuthToken",fn:this.kcSdk.kcWindow.setAuthToken,windowName:this.kcWindowName},{name:"setDemographics",fn:this.kcSdk.kcWindow.setDemographics,windowName:this.kcWindowName},{name:"setAuthToken",fn:this.kcSdk.encoderWindow.setAuthToken,windowName:this.encoderWindowName},{name:"setDemographics",fn:this.kcSdk.encoderWindow.setDemographics,windowName:this.encoderWindowName},{name:"addCodes",fn:this.kcSdk.kcWindow.addCodes,windowName:this.kcWindowName},{name:"clearPatientRecord",fn:this.kcSdk.kcWindow.clearPatientRecord,windowName:this.kcWindowName},{name:"clearSelectedRow",fn:this.kcSdk.kcWindow.clearSelectedRow,windowName:this.kcWindowName},{name:"closeAllKCWindowsExceptEncoder",fn:this.kcSdk.kcWindow.closeAllKCWindowsExceptEncoder,windowName:this.kcWindowName},{name:"deleteCodes",fn:this.kcSdk.kcWindow.deleteCodes,windowName:this.kcWindowName},{name:"getPayerList",fn:this.kcSdk.kcWindow.getPayerList,windowName:this.kcWindowName},{name:"getRowSpecificInfo",fn:this.kcSdk.kcWindow.getRowSpecificInfo,windowName:this.kcWindowName},{name:"hasCriticalEdits",fn:this.kcSdk.kcWindow.hasCriticalEdits,windowName:this.kcWindowName},{name:"hasEdits",fn:this.kcSdk.kcWindow.hasEdits,windowName:this.kcWindowName},{name:"launchCodeSummaryReport",fn:this.kcSdk.kcWindow.launchCodeSummaryReport,windowName:this.kcWindowName},{name:"launchEdits",fn:this.kcSdk.kcWindow.launchEdits,windowName:this.kcWindowName},{name:"launchIndex",fn:this.kcSdk.kcWindow.launchIndex,windowName:this.kcWindowName},{name:"launchLogic",fn:this.kcSdk.kcWindow.launchLogic,windowName:this.kcWindowName},{name:"launchTabular",fn:this.kcSdk.kcWindow.launchTabular,windowName:this.kcWindowName},{name:"launchFacilityLookup",fn:this.kcSdk.kcWindow.launchFacilityLookup,windowName:this.kcWindowName},{name:"launchIndex",fn:this.kcSdk.encoderWindow.launchIndex,windowName:this.encoderWindowName},{name:"launchLogic",fn:this.kcSdk.encoderWindow.launchLogic,windowName:this.encoderWindowName},{name:"launchTabular",fn:this.kcSdk.encoderWindow.launchTabular,windowName:this.encoderWindowName},{name:"logout",fn:this.kcSdk.kcWindow.logout,windowName:this.kcWindowName},{name:"resetApplication",fn:this.kcSdk.kcWindow.resetApplication,windowName:this.kcWindowName},{name:"savePatientRecord",fn:this.kcSdk.kcWindow.savePatientRecord,windowName:this.kcWindowName},{name:"updateCodes",fn:this.kcSdk.kcWindow.updateCodes,windowName:this.kcWindowName},{name:"updateDemographics",fn:this.kcSdk.kcWindow.updateDemographics,windowName:this.kcWindowName},{name:"openEncoder",fn:this.kcSdk.kcWindow.openEncoder,windowName:this.kcWindowName}],this.availableApis=Bl(this.apisForAllWindows),this.availableApiSelected=this.availableApis[0],this.workflowWindow=this.kcWindowName,this.runWorkflow=this.kcSdk.processWorkflow,this.doSigninSubmit=()=>{setTimeout(()=>{if(!this.signInService.signInForm.valid){this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine();return}if(document.getElementById("kc-sdk-advanced-mode").checked)this.generateToken();else{let s={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(s).subscribe({next:()=>{this.launchEncoder()},error:a=>{this.signInService.serverError.content=a}})}this.signInService.clearClientError()})},this.generateToken=()=>{if(this.signInService.signInForm.valid){let i={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(i).subscribe({next:()=>{this.signInService.clearClientError(),this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!1,this.signInService.signInForm.markAsPristine(),this.clientExampleToken=this.exampleAuthToken.access_token},error:s=>{this.signInService.serverError.content=s}})}else this.signInService.serverError.visible=!1,this.signInService.clientError.content="Review the form and correct highlighted fields.",this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine()},this.launchEncoder=()=>{let i={sessionType:this.selectedSessionType,encoderTab:this.selectedEncoderTab,codePhrase:this.encoderPhraseCode},s=X.url+this.WEB_ENCODER,a=this.encoderDemographics,l=this.selectedI9I10State;this.clientExampleToken&&(this.exampleAuthToken.access_token=this.clientExampleToken),this.kcSdk.encoderWindow.launch(s,this.exampleAuthToken,l,a,i)},this.setAuthToken=i=>new z(s=>{let a={headers:new He({"Content-Type":"application/json"})},l={username:btoa(i.username),organization:i.organizationId,clientId:X.appName};this.http.post(X.tokenServer+"orgLogin",l,a).subscribe({next:c=>{c&&(this.exampleAuthToken.access_token=c.token,this.logOutput("auth","token generated - userName:'"+i.username+"' org: '"+i.organizationId+"'")),s.next()},error:c=>{c.status===401&&(this.exampleAuthToken.access_token="",this.signInService.serverError.visible=!1,this.signInService.clientError.content="Failed to authenticate user.",this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine());let u=c&&c.message?c.message:"undefined error message";this.logOutput("auth","token exception: "+u),s.error(u)}})}),this.onStateChange=()=>{this.filterSessionTypes(this.selectedI9I10State)},this.onPatientTypeChange=()=>{try{let i=JSON.parse(this.encoderDemographics);i.patientType=this.selectedPatientType,this.encoderDemographics=JSON.stringify(i,null,2)}catch{this.exampleDemographicsData.patientType=this.selectedPatientType,this.encoderDemographics=JSON.stringify(this.exampleDemographicsData,null,2)}},this.launchKc=()=>{if(!this.signInService.signInForm.valid){this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine();return}this.signInService.clearClientError();let i={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(i).subscribe({next:s=>{let a=X.url+this.WEB_KC,l=this.encoderDemographics,c=this.selectedI9I10State;this.clientExampleToken&&(this.exampleAuthToken.access_token=this.clientExampleToken),this.kcSdk.kcWindow.launch(a,this.exampleAuthToken,c,l)},error:s=>{this.signInService.serverError.content=s}})},this.launchReferences=()=>{if(!this.signInService.signInForm.valid){this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine();return}this.signInService.clearClientError();let i={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(i).subscribe({next:()=>{this.kcSdk.launchReferences(this.encoderPhraseCode,this.selectedSessionType.name,this.exampleAuthToken.access_token)},error:s=>{this.signInService.serverError.content=s}})},this.selectedSessionType=this.sessionTypes[0]}filterSessionTypes(n){this.sessionTypes.length=0;for(let r in this.kcSdk.sessionTypes){let o=this.kcSdk.sessionTypes[r];o.state.indexOf(n.value)>-1&&this.sessionTypes.push(o)}this.selectedSessionType=this.sessionTypes[0]}logOutput(n,r){let o={event:n,response:this.stringService.isJson(r)?JSON.parse(r):r};o.event==="editGroupPriceCompleted"&&(o.response=[]),this.outputJson=this.outputJson?[this.stringService.removeBrackets(this.outputJson),JSON.stringify(o,null,2)].join(`,
9
- `):JSON.stringify(o,null,2),this.outputJson=this.stringService.wrapAsArray(this.outputJson),this.scrollLogToBottom()}scrollLogToBottom(){setTimeout(()=>{let n=document.getElementById("kc-sdk-input");n&&(n.scrollTop=n.scrollHeight)})}static{this.\u0275fac=function(r){return new(r||e)(x(Jn),x(vs),x(sc))}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ws=e=>({"tk-rfrm-has-error":e}),_g=(e,t)=>({"tk-form-field-error":e,"":t});function xT(e,t){if(e&1&&(v(0,"div",27),O(1),g()),e&2){let n=P();D(),Tn(" ",n.SignInService.clientError.content," ")}}function TT(e,t){if(e&1&&(v(0,"div",27),O(1),g()),e&2){let n=P();D(),Tn(" ",n.SignInService.serverError.content," ")}}function MT(e,t){e&1&&(v(0,"span",28),O(1," User name is required. "),g())}function NT(e,t){e&1&&(v(0,"span",29),O(1," Organization is required. "),g())}function AT(e,t){if(e&1){let n=Ae();v(0,"button",30),q("click",function(){U(n);let o=P();return $(o.SdkTesterService.launchKc())}),O(1," Launch KC "),g()}if(e&2){let n=P();b("disabled",n.SignInService.busy)}}function kT(e,t){if(e&1){let n=Ae();v(0,"button",31),q("click",function(){U(n);let o=P();return $(o.SdkTesterService.launchReferences())}),O(1," Launch References "),g()}if(e&2){let n=P();b("disabled",n.SignInService.busy)}}function OT(e,t){if(e&1){let n=Ae();v(0,"tr")(1,"td",7)(2,"label",32),O(3,"PhraseCode:"),g(),v(4,"input",33),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.encoderPhraseCode,o)||(i.SdkTesterService.encoderPhraseCode=o),$(o)}),g()()()}if(e&2){let n=P();D(4),_e("ngModel",n.SdkTesterService.encoderPhraseCode)}}function RT(e,t){if(e&1&&(v(0,"option",38),O(1),g()),e&2){let n=t.$implicit;b("value",n),D(),Ze(n)}}function FT(e,t){if(e&1){let n=Ae();v(0,"tr")(1,"td",34)(2,"label",35),O(3,"Encoder Tab:"),g(),v(4,"select",36),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.selectedEncoderTab,o)||(i.SdkTesterService.selectedEncoderTab=o),$(o)}),le(5,RT,2,2,"option",37),g()()()}if(e&2){let n=P();D(4),_e("ngModel",n.SdkTesterService.selectedEncoderTab),D(),b("ngForOf",n.SdkTesterService.encoderTabs)}}function PT(e,t){if(e&1&&(v(0,"option",42),O(1),g()),e&2){let n=t.$implicit;b("ngValue",n),D(),Ze(n.value)}}function LT(e,t){if(e&1){let n=Ae();v(0,"tr")(1,"td",34)(2,"label",39),O(3,"State:"),g(),v(4,"select",40),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.selectedI9I10State,o)||(i.SdkTesterService.selectedI9I10State=o),$(o)}),q("change",function(){U(n);let o=P();return $(o.SdkTesterService.onStateChange())}),le(5,PT,2,2,"option",41),g()()()}if(e&2){let n=P();D(4),_e("ngModel",n.SdkTesterService.selectedI9I10State),D(),b("ngForOf",n.SdkTesterService.i9I10States)}}function VT(e,t){if(e&1&&(v(0,"option",42),O(1),g()),e&2){let n=t.$implicit;b("ngValue",n),D(),Ze(n.name)}}function jT(e,t){if(e&1){let n=Ae();v(0,"tr")(1,"td",34)(2,"label",43),O(3,"SessionType:"),g(),v(4,"select",44),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.selectedSessionType,o)||(i.SdkTesterService.selectedSessionType=o),$(o)}),le(5,VT,2,2,"option",41),g()()()}if(e&2){let n=P();D(4),_e("ngModel",n.SdkTesterService.selectedSessionType),D(),b("ngForOf",n.SdkTesterService.sessionTypes)}}function BT(e,t){if(e&1&&(v(0,"option",42),O(1),g()),e&2){let n=t.$implicit;b("ngValue",n),D(),Ze(n.displayValue)}}function HT(e,t){if(e&1){let n=Ae();v(0,"tr")(1,"td",34)(2,"label",45),O(3,"Patient Type:"),g(),v(4,"select",46),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.selectedPatientType,o)||(i.SdkTesterService.selectedPatientType=o),$(o)}),q("change",function(){U(n);let o=P();return $(o.SdkTesterService.onPatientTypeChange())}),le(5,BT,2,2,"option",41),g()()()}if(e&2){let n=P();D(4),_e("ngModel",n.SdkTesterService.selectedPatientType),D(),b("ngForOf",n.SdkTesterService.patientTypes)}}function UT(e,t){if(e&1){let n=Ae();v(0,"tr")(1,"td",7)(2,"label"),O(3,"Demographics:"),g(),v(4,"textarea",47),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.encoderDemographics,o)||(i.SdkTesterService.encoderDemographics=o),$(o)}),g()()()}if(e&2){let n=P();D(4),_e("ngModel",n.SdkTesterService.encoderDemographics)}}var Cg=(()=>{class e{constructor(n,r){this.signInService=n,this.sdkTesterService=r,this.userNameError=!1,this.orgError=!1,this.inAdvancedMode=!1,this.SignInService=this.signInService,this.SdkTesterService=this.sdkTesterService}get username(){return this.signInService.signInForm.get("username")}get organization(){return this.signInService.signInForm.get("organization")}static{this.\u0275fac=function(r){return new(r||e)(E(Jn),E(Ds))}}static{this.\u0275cmp=ci({type:e,selectors:[["app-sign-in"]],inputs:{inAdvancedMode:"inAdvancedMode"},decls:58,vars:36,consts:[["ngForm","ngForm"],[1,"sdk-sign-in-container",2,"margin","0 auto"],[1,"tk-margin-left-2t"],["role","presentation",1,"tk-tabl-form-sip","kc-sdk-tester-sign-in-table"],[1,"sign-in-left-side"],["method","post","novalidate","",3,"ngSubmit","formGroup"],[1,"sdk-login-table"],["colspan","3"],["tabindex","-1"],["class","icon-exclamationbox",4,"ngIf"],["tabindex","-1","for","kc-userNameInput","id","kc-userNameLblId",1,"kc-label-padding"],[1,"tk-rfrm-group",3,"ngClass"],[1,"tk-rfrm-columnar-container"],[1,"tk-rfrm-error-container"],["type","text","spellcheck","false","id","kc-userNameInput","formControlName","username",0,"kc","focus-on-me","true","autocomplete","off","aria-required","true","aria-autocomplete","none","aria-describedby","signInField_inputTip UserName_errormessage","required","true",1,"tk-margin-left-min",3,"keyup","blur","ngClass"],[1,"small-dot","kc-sdk-signin-required"],[3,"ngClass"],["id","kc-userName_errormessage","class","tk-padding-left-1t","aria-required","true","aria-invalid","true","aria-describedby","User name is required",4,"ngIf"],["tabindex","-1","for","kc-orgId","id","kc-orgLblId",1,"kc-label-padding"],["type","text","id","kc-orgId","formControlName","organization","autocomplete","off","aria-required","true","aria-autocomplete","none","aria-describedby","signInField_inputTip Org_errormessage","required","true",1,"tk-margin-left-min",3,"keyup","blur","ngClass"],["id","kc-Org_errormessage","class","tk-padding-left-1t","aria-describedby","Organization is required","aria-required","true","aria-invalid","true",4,"ngIf"],["colspan","3",1,"tester-sign-in-button-space"],["type","button","name","sdk-launch-kc-button","id","sdk-launch-kc-button","value","Launch KC","class","kc-tk-btn kc-tk-btn-primary tk-margin-left-min tk-margin-top-none tk-margin-bottom-none",3,"disabled","click",4,"ngIf"],["name","generate_token","id","kc-generate_tokenBtnId","value","Generate_Token","enable-default","true","label","whatever",1,"kc-tk-btn","kc-tk-btn-primary","tk-margin-left-min","tk-margin-top-none","tk-margin-bottom-none",3,"disabled"],["type","button","name","sdk-launch-references-button","id","sdk-launch-references-button","value","Launch References","class","kc-tk-btn kc-tk-btn-primary tk-margin-left-min tk-margin-top-none tk-margin-bottom-none",3,"disabled","click",4,"ngIf"],[1,"sdk-login-table-inputs"],[4,"ngIf"],[1,"icon-exclamationbox"],["id","kc-userName_errormessage","aria-required","true","aria-invalid","true","aria-describedby","User name is required",1,"tk-padding-left-1t"],["id","kc-Org_errormessage","aria-describedby","Organization is required","aria-required","true","aria-invalid","true",1,"tk-padding-left-1t"],["type","button","name","sdk-launch-kc-button","id","sdk-launch-kc-button","value","Launch KC",1,"kc-tk-btn","kc-tk-btn-primary","tk-margin-left-min","tk-margin-top-none","tk-margin-bottom-none",3,"click","disabled"],["type","button","name","sdk-launch-references-button","id","sdk-launch-references-button","value","Launch References",1,"kc-tk-btn","kc-tk-btn-primary","tk-margin-left-min","tk-margin-top-none","tk-margin-bottom-none",3,"click","disabled"],[1,"kc-encoder-phrasecode-text"],["autoCapitalize","","type","text","id","kc-encoder-phrasecode",1,"kc-encoder-phrasecode-input",3,"ngModelChange","ngModel"],["colspan","3",1,"col-md","kc-simple-mode-inputs"],[1,"kc-encoder-tab-text"],["id","kc-encoder-tab-dropdown",1,"tester-encoder-tab",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"kc-state-text"],["id","kc-state-dropdown",1,"tester-state",3,"ngModelChange","change","ngModel"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[1,"kc-session-type-text"],["id","kc-session-type-dropdown",1,"tester-session-type",3,"ngModelChange","ngModel"],[1,"kc-patient-type-text"],["id","kc-patient-type-dropdown",1,"patient-type",3,"ngModelChange","change","ngModel"],["name","workflowInput","id","kc-sdk-sign-in-demographics-input","placeholder","Demographics input","spellcheck","false",1,"tester-text-area","ng-pristine","ng-valid","ng-touched",3,"ngModelChange","ngModel"]],template:function(r,o){if(r&1){let i=Ae();v(0,"div",1)(1,"div",2)(2,"table",3)(3,"tbody")(4,"tr")(5,"td",4)(6,"form",5,0),q("ngSubmit",function(){return U(i),$(o.SdkTesterService.doSigninSubmit())}),v(8,"table",6)(9,"tr")(10,"td",7)(11,"h2",8),O(12),g(),le(13,xT,2,1,"div",9)(14,TT,2,1,"div",9),g()(),v(15,"tr")(16,"td")(17,"label",10),O(18,"User name"),g()(),v(19,"td",11)(20,"div")(21,"div",12)(22,"div",13)(23,"input",14),q("keyup",function(){return U(i),$(o.userNameError=!!(o.SignInService.signInForm.controls.username.dirty&&o.SignInService.signInForm.controls.username.invalid))})("blur",function(){return U(i),$(o.userNameError=!!o.SignInService.signInForm.controls.username.invalid)}),g(),oe(24,"div",15),g()()()(),v(25,"td",16)(26,"div")(27,"div",12)(28,"div",13),le(29,MT,2,0,"span",17),g()()()()(),v(30,"tr")(31,"td")(32,"label",18),O(33,"Organization"),g()(),v(34,"td",11)(35,"div",12)(36,"div",13)(37,"input",19),q("keyup",function(){return U(i),$(o.orgError=!!(o.SignInService.signInForm.controls.organization.dirty&&o.SignInService.signInForm.controls.organization.invalid))})("blur",function(){return U(i),$(o.orgError=!!o.SignInService.signInForm.controls.organization.invalid)}),g(),oe(38,"div",15),g()()(),v(39,"td",16)(40,"div")(41,"div",12)(42,"div",13),le(43,NT,2,0,"span",20),g()()()()(),v(44,"tr")(45,"td",21),le(46,AT,2,1,"button",22),v(47,"button",23),O(48),g(),le(49,kT,2,1,"button",24),g()()()()(),v(50,"td")(51,"table",25),le(52,OT,5,1,"tr",26)(53,FT,6,2,"tr",26)(54,LT,6,2,"tr",26)(55,jT,6,2,"tr",26)(56,HT,6,2,"tr",26)(57,UT,5,1,"tr",26),g()()()()()()()}if(r&2){let i=qf(7);D(6),b("formGroup",o.SignInService.signInForm),D(6),Ze(o.inAdvancedMode?"Create Token":"Enter Info"),D(),b("ngIf",o.SignInService.clientError.visible),D(),b("ngIf",o.SignInService.serverError.visible),D(5),b("ngClass",Ir(22,ws,o.userNameError||o.SignInService.signInForm.controls.username.invalid&&i.submitted)),D(4),b("ngClass",Mn(24,_g,o.userNameError||i.submitted&&o.SignInService.signInForm.controls.username.invalid,o.SignInService.signInForm.controls.username.valid)),D(2),b("ngClass",Ir(27,ws,o.userNameError||o.SignInService.signInForm.controls.username.invalid&&i.submitted)),D(4),b("ngIf",(o.SignInService.signInForm.controls.username.dirty||i.submitted)&&o.SignInService.signInForm.controls.username.invalid),D(5),b("ngClass",Ir(29,ws,o.orgError||o.SignInService.signInForm.controls.organization.invalid&&i.submitted)),D(3),b("ngClass",Mn(31,_g,o.orgError||i.submitted&&o.SignInService.signInForm.controls.organization.invalid,o.SignInService.signInForm.controls.organization.valid)),D(2),b("ngClass",Ir(34,ws,o.orgError||o.SignInService.signInForm.controls.organization.invalid&&i.submitted)),D(4),b("ngIf",(o.SignInService.signInForm.controls.organization.dirty||i.submitted)&&o.SignInService.signInForm.controls.organization.invalid),D(3),b("ngIf",!o.inAdvancedMode),D(),b("disabled",o.SignInService.busy),D(),Tn(" ",o.inAdvancedMode?"Generate Token":"Launch Encoder"," "),D(),b("ngIf",!o.inAdvancedMode),D(3),b("ngIf",!o.inAdvancedMode),D(),b("ngIf",!o.inAdvancedMode),D(),b("ngIf",!o.inAdvancedMode),D(),b("ngIf",!o.inAdvancedMode),D(),b("ngIf",!o.inAdvancedMode),D(),b("ngIf",!o.inAdvancedMode)}},dependencies:[Cr,hi,mi,gi,fs,eg,us,ds,Yn,Qn,ss,qm,Xl,Rr,ps,Ql,Jl],encapsulation:2})}}return e})();var bg=(e,t)=>({dot:!0,"not-listening":e,listening:t});function $T(e,t){e&1&&(v(0,"div",8)(1,"div",11),oe(2,"app-sign-in",12),g()()),e&2&&(D(2),b("inAdvancedMode",!1))}function GT(e,t){if(e&1&&(v(0,"option",34),O(1),g()),e&2){let n=t.$implicit;b("ngValue",n.name),D(),Ze(n.name)}}function WT(e,t){if(e&1){let n=Ae();v(0,"div",13)(1,"div",14)(2,"input",15),q("click",function(){U(n);let o=P();return $(o.clearInputOutput())}),g(),v(3,"input",16),q("click",function(){U(n);let o=P();return $(o.SdkTesterService.closeAllKCWindows())}),g(),oe(4,"br"),v(5,"H2",4),O(6,"Select API:"),g(),oe(7,"br"),v(8,"select",17),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.selectedApi,o)||(i.selectedApi=o),$(o)}),q("change",function(){U(n);let o=P();return $(o.onSelectedNewWorkflowApiChange())}),v(9,"option",18),O(10,"launch KC"),g(),v(11,"option",19),O(12,"launch KC Sentinel"),g(),v(13,"option",20),O(14,"launch Encoder"),g(),v(15,"option",21),O(16,"assignConfig"),g(),v(17,"option",22),O(18,"setDemographics"),g(),v(19,"option",23),O(20,"setAuthToken"),g(),le(21,GT,2,2,"option",24),g(),oe(22,"br"),v(23,"div",25),oe(24,"br"),v(25,"input",26),q("click",function(){U(n);let o=P();return $(o.callApi())}),g()(),oe(26,"br")(27,"br"),g(),v(28,"div",27)(29,"div",28)(30,"textarea",29),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.workflowInput,o)||(i.SdkTesterService.workflowInput=o),$(o)}),g(),oe(31,"br"),g()(),v(32,"div",30)(33,"div",31)(34,"input",32),q("click",function(){U(n);let o=P();return $(o.clearOutput())}),g(),v(35,"textarea",33),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.outputJson,o)||(i.SdkTesterService.outputJson=o),$(o)}),g(),oe(36,"br"),g()()()}if(e&2){let n=P();D(3),b("disabled",!n.SdkTesterService.sdkKcIsListening&&!n.SdkTesterService.sdkEncoderIsListening),D(5),_e("ngModel",n.selectedApi),D(13),b("ngForOf",n.apiMethods),D(9),_e("ngModel",n.SdkTesterService.workflowInput),D(5),_e("ngModel",n.SdkTesterService.outputJson)}}var Sg=(()=>{class e{constructor(n,r,o,i,s,a){this.document=n,this.sdkTesterService=r,this.stringService=o,this.signInService=i,this.ngZone=s,this.cdr=a,this.title="sdk-tester",this.kcSdk=window.kcSdk,this.kcNotLaunched=!1,this.devApis=Cm,this.selectedApi="",this.spacesToIndent=4,this.clearInputOutput=()=>{this.sdkTesterService.outputJson="",this.clearWorkflow(),this.signInService.clearClientError()},this.clearOutput=()=>{this.sdkTesterService.outputJson=""},this.kcWindowDataChanged=c=>{setTimeout(()=>{this.sdkTesterService.logOutput(c.callback,c.value),this.cdr.detectChanges()})},this.encoderWindowDataChanged=c=>{setTimeout(()=>{this.sdkTesterService.logOutput(c.callback,c.value),this.cdr.detectChanges()})},this.kcListeningChanged=c=>{setTimeout(()=>{this.sdkTesterService.sdkKcIsListening=this.kcSdk.kcWindowIsListening,this.sdkTesterService.logOutput(c.callback,this.kcSdk.kcWindowIsListening),this.cdr.detectChanges()})},this.encoderListeningChanged=c=>{setTimeout(()=>{this.sdkTesterService.sdkEncoderIsListening=this.kcSdk.encoderWindowIsListening,this.sdkTesterService.logOutput(c.callback,this.kcSdk.encoderWindowIsListening),this.cdr.detectChanges()})},this.workflowComplete=()=>{setTimeout(()=>{this.onSelectedNewWorkflowApiChange(),this.cdr.detectChanges()})},this.advancedModeOnChange=()=>{this.signInService.clearClientError(),this.clearInputOutput(),this.signInService.advancedMode&&(this.populateSdkApis(),this.onSelectedNewWorkflowApiChange())},this.clearWorkflow=()=>{this.kcSdk.clearWorkflow()},this.onSelectedWorkflowApiChange=()=>{let c=this.document.getElementById("kc-workflow")?.selectedIndex||0,u=this.kcSdk.workflow[c];u&&(this.sdkTesterService.workflowInput=JSON.stringify(u.args,null,2))},this.onSelectedNewWorkflowApiChange=()=>{this.sdkTesterService.clientExampleToken&&(this.sdkTesterService.exampleAuthToken.access_token=this.sdkTesterService.clientExampleToken);let c=this.apiMethods.find(p=>p.name===this.selectedApi)?.example;switch(this.selectedApi){case"assignConfig":this.sdkTesterService.workflowInput=JSON.stringify({rcpEndpointUri:this.sdkTesterService.exampleUrl},null,2);break;case"setDemographics":this.sdkTesterService.workflowInput=JSON.stringify(this.sdkTesterService.exampleDemographicsData,null,2);break;case"setAuthToken":this.sdkTesterService.workflowInput=JSON.stringify(this.sdkTesterService.exampleAuthToken,null,2);break;case"launch KC":this.sdkTesterService.workflowWindow=this.sdkTesterService.kcWindowName;let p=X.url+this.sdkTesterService.WEB_KC,f=this.sdkTesterService.selectedI9I10State,h=[JSON.stringify(p,null,2),JSON.stringify(this.sdkTesterService.exampleAuthToken,null,2),JSON.stringify(f,null,2),JSON.stringify(this.sdkTesterService.exampleDemographicsData,null,2)].join(`,
10
- `);this.sdkTesterService.workflowInput=this.stringService.wrapAsArray(h);break;case"launch KC Sentinel":this.sdkTesterService.workflowWindow=this.sdkTesterService.kcWindowName;let m=X.url+this.sdkTesterService.WEB_KC,y=[JSON.stringify(m,null,2)].join(`,
11
- `);this.sdkTesterService.workflowInput="["+y+"]";break;case"launch Encoder":this.sdkTesterService.workflowWindow=this.sdkTesterService.encoderWindowName;let w=X.url+this.sdkTesterService.WEB_ENCODER,L=this.sdkTesterService.exampleDemographicsData,F={sessionType:this.kcSdk.sessionTypes.I10CM,encoderTab:this.kcSdk.encoderTabs.LOGIC,codePhrase:"ANGINA"},W=this.sdkTesterService.selectedI9I10State,Z=[JSON.stringify(w,null,2),JSON.stringify(this.sdkTesterService.exampleAuthToken,null,2),JSON.stringify(W,null,2),JSON.stringify(L,null,2),JSON.stringify(F,null,2)].join(`,
12
- `);this.sdkTesterService.workflowInput=this.stringService.wrapAsArray(Z);break;case"updateCodes":this.sdkTesterService.workflowInput=JSON.stringify({codes:c},void 0,this.spacesToIndent);break;case"getRowSpecificInfo":this.sdkTesterService.workflowInput=JSON.stringify({uniqueIds:c},void 0,this.spacesToIndent);break;default:this.sdkTesterService.workflowInput=JSON.stringify(c,void 0,this.spacesToIndent);break}let u=this.selectedApi==="launch Encoder"||this.selectedApi==="launch KC"||this.selectedApi==="launch KC Sentinel"?this.sdkTesterService.workflowWindow:this.kcSdk.kcWindowIsListening?this.sdkTesterService.kcWindowName:this.sdkTesterService.encoderWindowName,d=$l(this.sdkTesterService.availableApis,{name:this.selectedApi,windowName:u});d&&(this.sdkTesterService.availableApiSelected=d),this.kcNotLaunched=!d},this.dateParser=(c,u)=>typeof u=="string"&&/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/.test(u)?new Date(u):u,this.callApi=()=>{let c=this.sdkTesterService.workflowInput?this.stringService.isJson(this.sdkTesterService.workflowInput)?JSON.parse(this.sdkTesterService.workflowInput,this.dateParser):this.sdkTesterService.workflowInput:[];if(this.kcSdk.clearWorkflow(),this.kcNotLaunched){console.log(new Error("KC window not listening"));return}this.kcSdk.addToWorkflow({fn:this.sdkTesterService.availableApiSelected?.fn,args:c}),this.sdkTesterService.selectedWorkflowApi=Ul(this.kcSdk.workflow),this.SdkTesterService.runWorkflow(this.SdkTesterService.workflowWindow)},this.SignInService=this.signInService,this.SdkTesterService=this.sdkTesterService,this.kcSdk.setCallback(this.kcSdk.callbacks.SDKEXCEPTION,this.kcWindowDataChanged),this.kcSdk.setCallback(this.kcSdk.callbacks.WORKFLOWCOMPLETE,this.workflowComplete),this.kcSdk.setCallback(this.kcSdk.callbacks.SDKRESPONSE,this.kcWindowDataChanged),this.kcSdk.setCallback(this.kcSdk.callbacks.KCLISTENINGCHANGED,this.kcListeningChanged),this.kcSdk.setCallback(this.kcSdk.callbacks.ENCODERLISTENINGCHANGED,this.encoderListeningChanged),this.kcSdk.clearWorkflow();let l={grant_type:"org_login",username:"sdkTester",organizationId:"Justice League",enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.sdkTesterService.filterSessionTypes(this.sdkTesterService.selectedI9I10State),this.sdkTesterService.setAuthToken(l).subscribe()}populateSdkApis(){this.apiMethods=this.devApis.filter(n=>n.sdkVisible).sort((n,r)=>n.name.localeCompare(r.name)),this.selectedApi="launch KC"}static{this.\u0275fac=function(r){return new(r||e)(E(Oe),E(Ds),E(vs),E(Jn),E(Y),E(Nn))}}static{this.\u0275cmp=ci({type:e,selectors:[["app-root"]],decls:21,vars:13,consts:[[1,"col-md","sdk-top-controls"],[1,"sdk-version-info"],[1,"sdk-version-label"],[1,"sdk-version"],[1,"tester-text"],[3,"ngClass"],["type","checkbox","id","kc-sdk-advanced-mode","name","kc-sdk-advanced-mode",1,"sdk-tester-checkbox","kc-input",3,"change","ngModelChange","ngModel"],[1,"container",3,"ngClass"],[1,"row"],["class","row",4,"ngIf"],["class","row sdk-advanced-row",4,"ngIf"],[1,"col-md"],[3,"inAdvancedMode"],[1,"row","sdk-advanced-row"],[1,"col-md-3","sdk-tester-input-side"],["type","button","value","Clear Tester","id","kc-sdk-clear-tester",1,"tester-clear-tester",3,"click"],["type","button","value","Close All KC Windows","id","kc-sdk-close-windows",1,"tester-close-windows",3,"click","disabled"],["id","kc-workflow-available-apis",1,"tester-workflow-available-api",3,"ngModelChange","change","ngModel"],["value","launch KC"],["value","launch KC Sentinel"],["value","launch Encoder"],["value","assignConfig"],["value","setDemographics"],["value","setAuthToken"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"sdk-workflow-api-buttons"],["type","button","value","Call API","id","kc-sdk-run-workflow",1,"sdk-callApi-button",3,"click"],[1,"col-md-4","sdk-tester-left-side"],[1,"sdk-tester-input-area"],["name","workflowInput","id","kc-sdk-workflow-input","placeholder","Workflow input","spellcheck","false",1,"tester-text-area-advanced","ng-pristine","ng-valid","ng-touched",3,"ngModelChange","ngModel"],[1,"col-md-5","sdk-tester-right-side"],[1,"sdk-tester-output-area"],["type","button","value","Clear Output","id","kc-sdk-clear-tester",1,"tester-clear-output-tester",3,"click"],["placeholder","Output","name","outputJson","id","kc-sdk-input","spellcheck","false",1,"tester-text-area-advanced","ng-pristine","ng-valid","ng-touched",3,"ngModelChange","ngModel"],[3,"ngValue"]],template:function(r,o){r&1&&(v(0,"div",0)(1,"div",1)(2,"label",2),O(3,"sdk version:"),g(),v(4,"div",3),O(5),g(),oe(6,"br"),g(),v(7,"label",4),O(8,"kc listening:"),g(),oe(9,"div",5),v(10,"label",4),O(11,"encoder listening:"),g(),oe(12,"div",5)(13,"br"),v(14,"label"),O(15," Advanced Mode: "),v(16,"input",6),q("change",function(){return o.advancedModeOnChange()}),Ce("ngModelChange",function(s){return ke(o.SignInService.advancedMode,s)||(o.SignInService.advancedMode=s),s}),g()()(),v(17,"div",7),oe(18,"div",8),le(19,$T,3,1,"div",9)(20,WT,37,5,"div",10),g()),r&2&&(D(5),Ze(o.SdkTesterService.version),D(4),b("ngClass",Mn(7,bg,!o.SdkTesterService.sdkKcIsListening,o.SdkTesterService.sdkKcIsListening)),D(3),b("ngClass",Mn(10,bg,!o.SdkTesterService.sdkEncoderIsListening,o.SdkTesterService.sdkEncoderIsListening)),D(4),_e("ngModel",o.SignInService.advancedMode),D(),b("ngClass",o.SignInService.advancedMode?"sdk-advanced-mode-container":"sdk-simple-mode-container"),D(2),b("ngIf",!o.SignInService.advancedMode),D(),b("ngIf",o.SignInService.advancedMode))},dependencies:[Cr,hi,mi,gi,fs,us,ds,Yn,Zl,Qn,ss,Rr,ps,Cg],styles:[`.sdk-callApi-button[_ngcontent-%COMP%]{margin-left:185px}
13
- /*# sourceMappingURL=app.component.css.map */`]})}}return e})();var cc=class extends fi{supportsDOMEvents=!0},uc=class e extends cc{static makeCurrent(){np(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=qT();return n==null?null:ZT(n)}resetBaseElement(){jr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return pi(document.cookie,t)}},jr=null;function qT(){return jr=jr||document.querySelector("base"),jr?jr.getAttribute("href"):null}function ZT(e){return new URL(e,document.baseURI).pathname}var KT=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),dc=new _(""),kg=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,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(i=>i.supports(n)),!r)throw new S(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(x(dc),x(Y))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),Is=class{_doc;constructor(t){this._doc=t}manager},Es="ng-app-id";function xg(e){for(let t of e)t.remove()}function Tg(e,t){let n=t.createElement("style");return n.textContent=e,n}function YT(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Es}="${t}"],link[${Es}="${t}"]`);if(o)for(let i of o)i.removeAttribute(Es),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function fc(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Og=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=yi(i),YT(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Tg);r?.forEach(o=>this.addUsage(o,this.external,fc))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(xg(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])xg(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Tg(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,fc(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Es,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(x(Oe),x(hl),x(gl,8),x(wt))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),lc={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},hc=/%COMP%/g,Rg="%COMP%",QT=`_nghost-${Rg}`,JT=`_ngcontent-${Rg}`,XT=!0,eM=new _("",{providedIn:"root",factory:()=>XT});function tM(e){return JT.replace(hc,e)}function nM(e){return QT.replace(hc,e)}function Fg(e,t){return t.map(n=>n.replace(hc,e))}var Mg=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,l,c=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.platformIsServer=yi(a),this.defaultRenderer=new Br(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===qe.ShadowDom&&(r=K(V({},r),{encapsulation:qe.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof _s?o.applyToHost(n):o instanceof Hr&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case qe.Emulated:i=new _s(l,c,r,this.appId,u,s,a,d);break;case qe.ShadowDom:return new pc(l,c,n,r,s,a,this.nonce,d);default:i=new Hr(l,c,r,u,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(r){return new(r||e)(x(kg),x(Og),x(hl),x(eM),x(Oe),x(wt),x(Y),x(gl))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),Br=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(lc[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Ng(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Ng(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new S(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=lc[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=lc[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Xe.DashCase|Xe.Important)?t.style.setProperty(n,r,o&Xe.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Xe.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=kn().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Ng(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var pc=class extends Br{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,l){super(t,i,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Fg(o.id,o.styles);for(let d of c){let p=document.createElement("style");a&&p.setAttribute("nonce",a),p.textContent=d,this.shadowRoot.appendChild(p)}let u=o.getExternalStyles?.();if(u)for(let d of u){let p=fc(d,i);a&&p.setAttribute("nonce",a),this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Hr=class extends Br{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,l){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=l?Fg(l,r.styles):r.styles,this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},_s=class extends Hr{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,l){let c=o+"-"+r.id;super(t,n,r,i,s,a,l,c),this.contentAttr=tM(c),this.hostAttr=nM(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},rM=(()=>{class e extends Is{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)}static \u0275fac=function(r){return new(r||e)(x(Oe))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),Ag=["alt","control","meta","shift"],oM={"\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"},iM={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},sM=(()=>{class e extends Is{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>kn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Ag.forEach(c=>{let u=r.indexOf(c);u>-1&&(r.splice(u,1),s+=c+".")}),s+=i,r.length!=0||i.length===0)return null;let l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let o=oM[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Ag.forEach(s=>{if(s!==o){let a=iM[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(x(Oe))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})();function Pg(e,t){return Yf(V({rootComponent:e},aM(t)))}function aM(e){return{appProviders:[...fM,...e?.providers??[]],platformProviders:dM}}function lM(){uc.makeCurrent()}function cM(){return new mt}function uM(){return Jd(document),document}var dM=[{provide:wt,useValue:rp},{provide:ml,useValue:lM,multi:!0},{provide:Oe,useFactory:uM,deps:[]}];var fM=[{provide:Ko,useValue:"root"},{provide:mt,useFactory:cM,deps:[]},{provide:dc,useClass:rM,multi:!0,deps:[Oe,Y,wt]},{provide:dc,useClass:sM,multi:!0,deps:[Oe]},Mg,Og,kg,{provide:En,useExisting:Mg},{provide:An,useClass:KT,deps:[]},[]];Pg(Sg,{providers:[Dg(wg())]});
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Jn(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ne=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(A(r))try{r()}catch(i){t=i instanceof Jr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Ac(i)}catch(s){t=t??[],s instanceof Jr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Jr(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Ac(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Jn(n,t)}remove(t){let{_finalizers:n}=this;n&&Jn(n,t),t instanceof e&&t._removeParent(this)}};ne.EMPTY=(()=>{let e=new ne;return e.closed=!0,e})();var Ws=ne.EMPTY;function Qr(e){return e instanceof ne||e&&"closed"in e&&A(e.remove)&&A(e.add)&&A(e.unsubscribe)}function Ac(e){A(e)?e():e.unsubscribe()}var ke={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Jt={setTimeout(e,t,...n){let{delegate:r}=Jt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Jt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Xr(e){Jt.setTimeout(()=>{let{onUnhandledError:t}=ke;if(t)t(e);else throw e})}function Gs(){}var kc=zs("C",void 0,void 0);function Oc(e){return zs("E",void 0,e)}function Rc(e){return zs("N",e,void 0)}function zs(e,t,n){return{kind:e,value:t,error:n}}var xt=null;function Qt(e){if(ke.useDeprecatedSynchronousErrorHandling){let t=!xt;if(t&&(xt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=xt;if(xt=null,n)throw r}}else e()}function Fc(e){ke.useDeprecatedSynchronousErrorHandling&&xt&&(xt.errorThrown=!0,xt.error=e)}var Mt=class extends ne{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Qr(t)&&t.add(this)):this.destination=ey}static create(t,n,r){return new Xt(t,n,r)}next(t){this.isStopped?Zs(Rc(t),this):this._next(t)}error(t){this.isStopped?Zs(Oc(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Zs(kc,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Qm=Function.prototype.bind;function qs(e,t){return Qm.call(e,t)}var Ks=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){eo(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){eo(r)}else eo(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){eo(n)}}},Xt=class extends Mt{constructor(t,n,r){super();let o;if(A(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ke.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&qs(t.next,i),error:t.error&&qs(t.error,i),complete:t.complete&&qs(t.complete,i)}):o=t}this.destination=new Ks(o)}};function eo(e){ke.useDeprecatedSynchronousErrorHandling?Fc(e):Xr(e)}function Xm(e){throw e}function Zs(e,t){let{onStoppedNotification:n}=ke;n&&Jt.setTimeout(()=>n(e,t))}var ey={closed:!0,next:Gs,error:Xm,complete:Gs};var en=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Pc(e){return e}function Lc(e){return e.length===0?Pc:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var W=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=ny(n)?n:new Xt(n,r,o);return Qt(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Vc(r),new r((o,i)=>{let s=new Xt({next:a=>{try{n(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[en](){return this}pipe(...n){return Lc(n)(this)}toPromise(n){return n=Vc(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Vc(e){var t;return(t=e??ke.Promise)!==null&&t!==void 0?t:Promise}function ty(e){return e&&A(e.next)&&A(e.error)&&A(e.complete)}function ny(e){return e&&e instanceof Mt||ty(e)&&Qr(e)}function ry(e){return A(e?.lift)}function ce(e){return t=>{if(ry(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function ue(e,t,n,r,o){return new Ys(e,t,n,r,o)}var Ys=class extends Mt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var jc=Yr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Qe=(()=>{class e extends W{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new to(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new jc}next(n){Qt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Qt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Qt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Ws:(this.currentObservers=null,i.push(n),new ne(()=>{this.currentObservers=null,Jn(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new W;return n.source=this,n}}return e.create=(t,n)=>new to(t,n),e})(),to=class extends Qe{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Ws}};var Qn=class extends Qe{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};function Bc(e){return e&&A(e.schedule)}function Hc(e){return e[e.length-1]}function Uc(e){return A(Hc(e))?e.pop():void 0}function $c(e){return Bc(Hc(e))?e.pop():void 0}function Gc(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{c(r.next(u))}catch(f){s(f)}}function l(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?i(u.value):o(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}function Wc(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Nt(e){return this instanceof Nt?(this.v=e,this):new Nt(e)}function zc(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(d){return function(h){return Promise.resolve(h).then(d,f)}}function a(d,h){r[d]&&(o[d]=function(g){return new Promise(function(v,I){i.push([d,g,v,I])>1||l(d,g)})},h&&(o[d]=h(o[d])))}function l(d,h){try{c(r[d](h))}catch(g){p(i[0][3],g)}}function c(d){d.value instanceof Nt?Promise.resolve(d.value.v).then(u,f):p(i[0][2],d)}function u(d){l("next",d)}function f(d){l("throw",d)}function p(d,h){d(h),i.shift(),i.length&&l(i[0][0],i[0][1])}}function qc(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Wc=="function"?Wc(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,l){s=e[i](s),o(a,l,s.done,s.value)})}}function o(i,s,a,l){Promise.resolve(l).then(function(c){i({value:c,done:a})},s)}}var no=e=>e&&typeof e.length=="number"&&typeof e!="function";function ro(e){return A(e?.then)}function oo(e){return A(e[en])}function io(e){return Symbol.asyncIterator&&A(e?.[Symbol.asyncIterator])}function so(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function oy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ao=oy();function lo(e){return A(e?.[ao])}function co(e){return zc(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Nt(n.read());if(o)return yield Nt(void 0);yield yield Nt(r)}}finally{n.releaseLock()}})}function uo(e){return A(e?.getReader)}function de(e){if(e instanceof W)return e;if(e!=null){if(oo(e))return iy(e);if(no(e))return sy(e);if(ro(e))return ay(e);if(io(e))return Zc(e);if(lo(e))return ly(e);if(uo(e))return cy(e)}throw so(e)}function iy(e){return new W(t=>{let n=e[en]();if(A(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function sy(e){return new W(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function ay(e){return new W(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Xr)})}function ly(e){return new W(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Zc(e){return new W(t=>{uy(e,t).catch(n=>t.error(n))})}function cy(e){return Zc(co(e))}function uy(e,t){var n,r,o,i;return Gc(this,void 0,void 0,function*(){try{for(n=qc(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function _e(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function fo(e,t=0){return ce((n,r)=>{n.subscribe(ue(r,o=>_e(r,e,()=>r.next(o),t),()=>_e(r,e,()=>r.complete(),t),o=>_e(r,e,()=>r.error(o),t)))})}function po(e,t=0){return ce((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Kc(e,t){return de(e).pipe(po(t),fo(t))}function Yc(e,t){return de(e).pipe(po(t),fo(t))}function Jc(e,t){return new W(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Qc(e,t){return new W(n=>{let r;return _e(n,t,()=>{r=e[ao](),_e(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>A(r?.return)&&r.return()})}function ho(e,t){if(!e)throw new Error("Iterable cannot be null");return new W(n=>{_e(n,t,()=>{let r=e[Symbol.asyncIterator]();_e(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Xc(e,t){return ho(co(e),t)}function eu(e,t){if(e!=null){if(oo(e))return Kc(e,t);if(no(e))return Jc(e,t);if(ro(e))return Yc(e,t);if(io(e))return ho(e,t);if(lo(e))return Qc(e,t);if(uo(e))return Xc(e,t)}throw so(e)}function At(e,t){return t?eu(e,t):de(e)}function go(...e){let t=$c(e);return At(e,t)}function fe(e,t){return ce((n,r)=>{let o=0;n.subscribe(ue(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:dy}=Array;function fy(e,t){return dy(t)?e(...t):e(t)}function tu(e){return fe(t=>fy(e,t))}var{isArray:py}=Array,{getPrototypeOf:hy,prototype:gy,keys:my}=Object;function nu(e){if(e.length===1){let t=e[0];if(py(t))return{args:t,keys:null};if(yy(t)){let n=my(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function yy(e){return e&&typeof e=="object"&&hy(e)===gy}function ru(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function ou(e,t,n,r,o,i,s,a){let l=[],c=0,u=0,f=!1,p=()=>{f&&!l.length&&!c&&t.complete()},d=g=>c<r?h(g):l.push(g),h=g=>{i&&t.next(g),c++;let v=!1;de(n(g,u++)).subscribe(ue(t,I=>{o?.(I),i?d(I):t.next(I)},()=>{v=!0},void 0,()=>{if(v)try{for(c--;l.length&&c<r;){let I=l.shift();s?_e(t,s,()=>h(I)):h(I)}p()}catch(I){t.error(I)}}))};return e.subscribe(ue(t,d,()=>{f=!0,p()})),()=>{a?.()}}function mo(e,t,n=1/0){return A(t)?mo((r,o)=>fe((i,s)=>t(r,i,o,s))(de(e(r,o))),n):(typeof t=="number"&&(n=t),ce((r,o)=>ou(r,o,e,n)))}function Js(...e){let t=Uc(e),{args:n,keys:r}=nu(e),o=new W(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),l=s,c=s;for(let u=0;u<s;u++){let f=!1;de(n[u]).subscribe(ue(i,p=>{f||(f=!0,c--),a[u]=p},()=>l--,void 0,()=>{(!l||!f)&&(c||i.next(r?ru(r,a):a),i.complete())}))}});return t?o.pipe(tu(t)):o}function Qs(e,t){return ce((n,r)=>{let o=0;n.subscribe(ue(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Xs(e,t){return A(t)?mo(e,t,1):mo(e,1)}function yo(e){return ce((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function ea(e,t){return ce((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(ue(r,l=>{o?.unsubscribe();let c=0,u=i++;de(e(l,u)).subscribe(o=ue(r,f=>r.next(t?t(l,f,u,c++):f),()=>{o=null,a()}))},()=>{s=!0,a()}))})}var vy="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",_=class extends Error{code;constructor(t,n){super(wy(t,n)),this.code=t}};function Dy(e){return`NG0${Math.abs(e)}`}function wy(e,t){return`${Dy(e)}${t?": "+t:""}`}function ur(e){return{toString:e}.toString()}var vo="__parameters__";function Ey(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function qu(e,t,n){return ur(()=>{let r=Ey(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(l,c,u){let f=l.hasOwnProperty(vo)?l[vo]:Object.defineProperty(l,vo,{value:[]})[vo];for(;f.length<=u;)f.push(null);return(f[u]=f[u]||[]).push(s),l}}return o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function j(e){for(let t in e)if(e[t]===j)return t;throw Error("Could not find renamed property on target object.")}function _y(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ce(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Ce).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
+ `);return r>=0?n.slice(0,r):n}function iu(e,t){return e?t?`${e} ${t}`:e:t||""}var Iy=j({__forward_ref__:j});function Fe(e){return e.__forward_ref__=Fe,e.toString=function(){return Ce(this())},e}function re(e){return Zu(e)?e():e}function Zu(e){return typeof e=="function"&&e.hasOwnProperty(Iy)&&e.__forward_ref__===Fe}function O(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function gt(e){return{providers:e.providers||[],imports:e.imports||[]}}function el(e){return su(e,Ku)||su(e,Yu)}function su(e,t){return e.hasOwnProperty(t)?e[t]:null}function by(e){let t=e&&(e[Ku]||e[Yu]);return t||null}function au(e){return e&&(e.hasOwnProperty(lu)||e.hasOwnProperty(Cy))?e[lu]:null}var Ku=j({\u0275prov:j}),lu=j({\u0275inj:j}),Yu=j({ngInjectableDef:j}),Cy=j({ngInjectorDef:j}),w=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=O({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ju(e){return e&&!!e.\u0275providers}var Sy=j({\u0275cmp:j}),Ty=j({\u0275dir:j}),xy=j({\u0275pipe:j});var Co=j({\u0275fac:j}),nr=j({__NG_ELEMENT_ID__:j}),cu=j({__NG_ENV_ID__:j});function tl(e){return typeof e=="string"?e:e==null?"":String(e)}function My(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():tl(e)}function Qu(e,t){throw new _(-200,e)}function nl(e,t){throw new _(-201,!1)}var x=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(x||{}),ga;function Xu(){return ga}function Ie(e){let t=ga;return ga=e,t}function ed(e,t,n){let r=el(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&x.Optional)return null;if(t!==void 0)return t;nl(e,"Injector")}var Ny={},kt=Ny,ma="__NG_DI_FLAG__",So=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=n;return this.injector.get(t,r.optional?Kr:kt,r)}},To="ngTempTokenPath",Ay="ngTokenPath",ky=/\n/gm,Oy="\u0275",uu="__source";function Ry(e,t=x.Default){if(Yn()===void 0)throw new _(-203,!1);if(Yn()===null)return ed(e,void 0,t);{let n=Yn(),r;return n instanceof So?r=n.injector:r=n,r.get(e,t&x.Optional?null:void 0,t)}}function T(e,t=x.Default){return(Xu()||Ry)(re(e),t)}function S(e,t=x.Default){return T(e,Qo(t))}function Qo(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ya(e){let t=[];for(let n=0;n<e.length;n++){let r=re(e[n]);if(Array.isArray(r)){if(r.length===0)throw new _(900,!1);let o,i=x.Default;for(let s=0;s<r.length;s++){let a=r[s],l=Fy(a);typeof l=="number"?l===-1?o=a.token:i|=l:o=a}t.push(T(o,i))}else t.push(T(r))}return t}function td(e,t){return e[ma]=t,e.prototype[ma]=t,e}function Fy(e){return e[ma]}function Py(e,t,n,r){let o=e[To];throw t[uu]&&o.unshift(t[uu]),e.message=Ly(`
5
+ `+e.message,o,n,r),e[Ay]=o,e[To]=null,e}function Ly(e,t,n,r=null){e=e&&e.charAt(0)===`
6
+ `&&e.charAt(1)==Oy?e.slice(2):e;let o=Ce(t);if(Array.isArray(t))o=t.map(Ce).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):Ce(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(ky,`
7
+ `)}`}var Vy=td(qu("Optional"),8);var jy=td(qu("SkipSelf"),4);function sn(e,t){let n=e.hasOwnProperty(Co);return n?e[Co]:null}function rl(e,t){e.forEach(n=>Array.isArray(n)?rl(n,t):t(n))}function nd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function By(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Hy(e,t,n){let r=dr(e,t);return r>=0?e[r|1]=n:(r=~r,By(e,r,t,n)),r}function ta(e,t){let n=dr(e,t);if(n>=0)return e[n|1]}function dr(e,t){return Uy(e,t,1)}function Uy(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var Rt={},be=[],Mo=new w(""),rd=new w("",-1),od=new w(""),No=class{get(t,n=kt){if(n===kt){let r=new Error(`NullInjectorError: No provider for ${Ce(t)}!`);throw r.name="NullInjectorError",r}return n}};function rr(e){return e[Sy]||null}function $y(e){return e[Ty]||null}function Wy(e){return e[xy]||null}function id(e){return{\u0275providers:e}}function Gy(...e){return{\u0275providers:sd(!0,e),\u0275fromNgModule:!0}}function sd(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return rl(t,s=>{let a=s;va(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&ad(o,i),n}function ad(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];ol(o,i=>{t(i,r)})}}function va(e,t,n,r){if(e=re(e),!e)return!1;let o=null,i=au(e),s=!i&&rr(e);if(!i&&!s){let l=e.ngModule;if(i=au(l),i)o=l;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)va(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{rl(i.imports,u=>{va(u,t,n,r)&&(c||=[],c.push(u))})}finally{}c!==void 0&&ad(c,t)}if(!a){let c=sn(o)||(()=>new o);t({provide:o,useFactory:c,deps:be},o),t({provide:od,useValue:o,multi:!0},o),t({provide:Mo,useValue:()=>T(o),multi:!0},o)}let l=i.providers;if(l!=null&&!a){let c=e;ol(l,u=>{t(u,c)})}}else return!1;return o!==e&&e.providers!==void 0}function ol(e,t){for(let n of e)Ju(n)&&(n=n.\u0275providers),Array.isArray(n)?ol(n,t):t(n)}var zy=j({provide:String,useValue:j});function ld(e){return e!==null&&typeof e=="object"&&zy in e}function qy(e){return!!(e&&e.useExisting)}function Zy(e){return!!(e&&e.useFactory)}function an(e){return typeof e=="function"}function Ky(e){return!!e.useClass}var Xo=new w(""),wo={},du={},na;function il(){return na===void 0&&(na=new No),na}var je=class{},or=class extends je{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,wa(t,s=>this.processProvider(s)),this.records.set(rd,tn(void 0,this)),o.has("environment")&&this.records.set(je,tn(void 0,this));let i=this.records.get(Xo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(od,be,x.Self))}retrieve(t,n){let r=n;return this.get(t,r.optional?Kr:kt,r)}destroy(){er(this),this._destroyed=!0;let t=N(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),N(t)}}onDestroy(t){return er(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){er(this);let n=Je(this),r=Ie(void 0),o;try{return t()}finally{Je(n),Ie(r)}}get(t,n=kt,r=x.Default){if(er(this),t.hasOwnProperty(cu))return t[cu](this);r=Qo(r);let o,i=Je(this),s=Ie(void 0);try{if(!(r&x.SkipSelf)){let l=this.records.get(t);if(l===void 0){let c=ev(t)&&el(t);c&&this.injectableDefInScope(c)?l=tn(Da(t),wo):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,r)}let a=r&x.Self?il():this.parent;return n=r&x.Optional&&n===kt?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[To]=a[To]||[]).unshift(Ce(t)),i)throw a;return Py(a,t,"R3InjectorError",this.source)}else throw a}finally{Ie(s),Je(i)}}resolveInjectorInitializers(){let t=N(null),n=Je(this),r=Ie(void 0),o;try{let i=this.get(Mo,be,x.Self);for(let s of i)s()}finally{Je(n),Ie(r),N(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Ce(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=re(t);let n=an(t)?t:re(t&&t.provide),r=Jy(t);if(!an(t)&&t.multi===!0){let o=this.records.get(n);o||(o=tn(void 0,wo,!0),o.factory=()=>ya(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=N(null);try{return n.value===du?Qu(Ce(t)):n.value===wo&&(n.value=du,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Xy(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{N(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=re(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Da(e){let t=el(e),n=t!==null?t.factory:sn(e);if(n!==null)return n;if(e instanceof w)throw new _(204,!1);if(e instanceof Function)return Yy(e);throw new _(204,!1)}function Yy(e){if(e.length>0)throw new _(204,!1);let n=by(e);return n!==null?()=>n.factory(e):()=>new e}function Jy(e){if(ld(e))return tn(void 0,e.useValue);{let t=cd(e);return tn(t,wo)}}function cd(e,t,n){let r;if(an(e)){let o=re(e);return sn(o)||Da(o)}else if(ld(e))r=()=>re(e.useValue);else if(Zy(e))r=()=>e.useFactory(...ya(e.deps||[]));else if(qy(e))r=(o,i)=>T(re(e.useExisting),i!==void 0&&i&x.Optional?x.Optional:void 0);else{let o=re(e&&(e.useClass||e.provide));if(Qy(e))r=()=>new o(...ya(e.deps));else return sn(o)||Da(o)}return r}function er(e){if(e.destroyed)throw new _(205,!1)}function tn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Qy(e){return!!e.deps}function Xy(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function ev(e){return typeof e=="function"||typeof e=="object"&&e instanceof w}function wa(e,t){for(let n of e)Array.isArray(n)?wa(n,t):n&&Ju(n)?wa(n.\u0275providers,t):t(n)}function ei(e,t){let n;e instanceof or?(er(e),n=e):n=new So(e);let r,o=Je(n),i=Ie(void 0);try{return t()}finally{Je(o),Ie(i)}}function tv(){return Xu()!==void 0||Yn()!=null}function nv(e){return typeof e=="function"}var tt=0,k=1,b=2,oe=3,Re=4,Pe=5,Ao=6,ko=7,he=8,ln=9,pt=10,J=11,ir=12,fu=13,gn=14,Be=15,cn=16,nn=17,un=18,ti=19,ud=20,dt=21,ra=22,Oo=23,Se=24,oa=25,He=26,dd=1;var Ft=7,Ro=8,Fo=9,Te=10;function ft(e){return Array.isArray(e)&&typeof e[dd]=="object"}function nt(e){return Array.isArray(e)&&e[dd]===!0}function fd(e){return(e.flags&4)!==0}function mn(e){return e.componentOffset>-1}function sl(e){return(e.flags&1)===1}function Ue(e){return!!e.template}function Po(e){return(e[b]&512)!==0}function yn(e){return(e[b]&256)===256}var Ea=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function pd(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var vn=(()=>{let e=()=>hd;return e.ngInherit=!0,e})();function hd(e){return e.type.prototype.ngOnChanges&&(e.setInput=ov),rv}function rv(){let e=md(this),t=e?.current;if(t){let n=e.previous;if(n===Rt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ov(e,t,n,r,o){let i=this.declaredInputs[r],s=md(e)||iv(e,{previous:Rt,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[i];a[i]=new Ea(c&&c.currentValue,n,l===Rt),pd(e,t,o,n)}var gd="__ngSimpleChanges__";function md(e){return e[gd]||null}function iv(e,t){return e[gd]=t}var pu=null;var L=function(e,t=null,n){pu?.(e,t,n)},sv="svg",av="math";function $e(e){for(;Array.isArray(e);)e=e[tt];return e}function yd(e,t){return $e(t[e])}function ze(e,t){return $e(t[e.index])}function vd(e,t){return e.data[t]}function lv(e,t){return e[t]}function We(e,t){let n=t[e];return ft(n)?n:n[tt]}function al(e){return(e[b]&128)===128}function cv(e){return nt(e[oe])}function Lo(e,t){return t==null?null:e[t]}function Dd(e){e[nn]=0}function wd(e){e[b]&1024||(e[b]|=1024,al(e)&&ri(e))}function uv(e,t){for(;e>0;)t=t[gn],e--;return t}function ni(e){return!!(e[b]&9216||e[Se]?.dirty)}function _a(e){e[pt].changeDetectionScheduler?.notify(8),e[b]&64&&(e[b]|=1024),ni(e)&&ri(e)}function ri(e){e[pt].changeDetectionScheduler?.notify(0);let t=Pt(e);for(;t!==null&&!(t[b]&8192||(t[b]|=8192,!al(t)));)t=Pt(t)}function Ed(e,t){if(yn(e))throw new _(911,!1);e[dt]===null&&(e[dt]=[]),e[dt].push(t)}function dv(e,t){if(e[dt]===null)return;let n=e[dt].indexOf(t);n!==-1&&e[dt].splice(n,1)}function Pt(e){let t=e[oe];return nt(t)?t[oe]:t}function _d(e){return e[ko]??=[]}function Id(e){return e.cleanup??=[]}var M={lFrame:kd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Ia=!1;function fv(){return M.lFrame.elementDepthCount}function pv(){M.lFrame.elementDepthCount++}function hv(){M.lFrame.elementDepthCount--}function bd(){return M.bindingsEnabled}function gv(){return M.skipHydrationRootTNode!==null}function mv(e){return M.skipHydrationRootTNode===e}function yv(){M.skipHydrationRootTNode=null}function B(){return M.lFrame.lView}function ye(){return M.lFrame.tView}function H(e){return M.lFrame.contextLView=e,e[he]}function U(e){return M.lFrame.contextLView=null,e}function xe(){let e=Cd();for(;e!==null&&e.type===64;)e=e.parent;return e}function Cd(){return M.lFrame.currentTNode}function vv(){let e=M.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function fr(e,t){let n=M.lFrame;n.currentTNode=e,n.isParent=t}function Sd(){return M.lFrame.isParent}function Dv(){M.lFrame.isParent=!1}function wv(){return M.lFrame.contextLView}function Td(){return Ia}function hu(e){let t=Ia;return Ia=e,t}function xd(){let e=M.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ev(e){return M.lFrame.bindingIndex=e}function oi(){return M.lFrame.bindingIndex++}function _v(e){let t=M.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Iv(){return M.lFrame.inI18n}function bv(e,t){let n=M.lFrame;n.bindingIndex=n.bindingRootIndex=e,ba(t)}function Cv(){return M.lFrame.currentDirectiveIndex}function ba(e){M.lFrame.currentDirectiveIndex=e}function Sv(e){let t=M.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Md(e){M.lFrame.currentQueryIndex=e}function Tv(e){let t=e[k];return t.type===2?t.declTNode:t.type===1?e[Pe]:null}function Nd(e,t,n){if(n&x.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&x.Host);)if(o=Tv(i),o===null||(i=i[gn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=M.lFrame=Ad();return r.currentTNode=t,r.lView=e,!0}function ll(e){let t=Ad(),n=e[k];M.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ad(){let e=M.lFrame,t=e===null?null:e.child;return t===null?kd(e):t}function kd(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Od(){let e=M.lFrame;return M.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Rd=Od;function cl(){let e=Od();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function xv(e){return(M.lFrame.contextLView=uv(e,M.lFrame.contextLView))[he]}function Dn(){return M.lFrame.selectedIndex}function Lt(e){M.lFrame.selectedIndex=e}function ul(){let e=M.lFrame;return vd(e.tView,e.selectedIndex)}function Mv(){return M.lFrame.currentNamespace}var Fd=!0;function dl(){return Fd}function fl(e){Fd=e}function Nv(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=hd(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Pd(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),l&&(e.viewHooks??=[]).push(-n,l),c&&((e.viewHooks??=[]).push(n,c),(e.viewCheckHooks??=[]).push(n,c)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function Eo(e,t,n){Ld(e,t,3,n)}function _o(e,t,n,r){(e[b]&3)===n&&Ld(e,t,n,r)}function ia(e,t){let n=e[b];(n&3)===t&&(n&=16383,n+=1,e[b]=n)}function Ld(e,t,n,r){let o=r!==void 0?e[nn]&65535:0,i=r??-1,s=t.length-1,a=0;for(let l=o;l<s;l++)if(typeof t[l+1]=="number"){if(a=t[l],r!=null&&a>=r)break}else t[l]<0&&(e[nn]+=65536),(a<i||i==-1)&&(Av(e,n,t,l),e[nn]=(e[nn]&4294901760)+l+2),l++}function gu(e,t){L(4,e,t);let n=N(null);try{t.call(e)}finally{N(n),L(5,e,t)}}function Av(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[b]>>14<e[nn]>>16&&(e[b]&3)===t&&(e[b]+=16384,gu(a,i)):gu(a,i)}var on=-1,Vt=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function kv(e){return(e.flags&8)!==0}function Ov(e){return(e.flags&16)!==0}function Rv(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];Pv(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Fv(e){return e===3||e===4||e===6}function Pv(e){return e.charCodeAt(0)===64}function sr(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?mu(e,n,o,null,t[++r]):mu(e,n,o,null,null))}}return e}function mu(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function Vd(e){return e!==on}function Vo(e){return e&32767}function Lv(e){return e>>16}function jo(e,t){let n=Lv(e),r=t;for(;n>0;)r=r[gn],n--;return r}var Ca=!0;function yu(e){let t=Ca;return Ca=e,t}var Vv=256,jd=Vv-1,Bd=5,jv=0,Ve={};function Bv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(nr)&&(r=n[nr]),r==null&&(r=n[nr]=jv++);let o=r&jd,i=1<<o;t.data[e+(o>>Bd)]|=i}function Bo(e,t){let n=Hd(e,t);if(n!==-1)return n;let r=t[k];r.firstCreatePass&&(e.injectorIndex=t.length,sa(r.data,e),sa(t,null),sa(r.blueprint,null));let o=pl(e,t),i=e.injectorIndex;if(Vd(o)){let s=Vo(o),a=jo(o,t),l=a[k].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|l[s+c]}return t[i+8]=o,i}function sa(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Hd(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function pl(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=zd(o),r===null)return on;if(n++,o=o[gn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return on}function Sa(e,t,n){Bv(e,t,n)}function Ud(e,t,n){if(n&x.Optional||e!==void 0)return e;nl(t,"NodeInjector")}function $d(e,t,n,r){if(n&x.Optional&&r===void 0&&(r=null),(n&(x.Self|x.Host))===0){let o=e[ln],i=Ie(void 0);try{return o?o.get(t,r,n&x.Optional):ed(t,r,n&x.Optional)}finally{Ie(i)}}return Ud(r,t,n)}function Wd(e,t,n,r=x.Default,o){if(e!==null){if(t[b]&2048&&!(r&x.Self)){let s=Gv(e,t,n,r,Ve);if(s!==Ve)return s}let i=Gd(e,t,n,r,Ve);if(i!==Ve)return i}return $d(t,n,r,o)}function Gd(e,t,n,r,o){let i=$v(n);if(typeof i=="function"){if(!Nd(t,e,r))return r&x.Host?Ud(o,n,r):$d(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&x.Optional))nl(n);else return s}finally{Rd()}}else if(typeof i=="number"){let s=null,a=Hd(e,t),l=on,c=r&x.Host?t[Be][Pe]:null;for((a===-1||r&x.SkipSelf)&&(l=a===-1?pl(e,t):t[a+8],l===on||!Du(r,!1)?a=-1:(s=t[k],a=Vo(l),t=jo(l,t)));a!==-1;){let u=t[k];if(vu(i,a,u.data)){let f=Hv(a,t,n,s,r,c);if(f!==Ve)return f}l=t[a+8],l!==on&&Du(r,t[k].data[a+8]===c)&&vu(i,a,t)?(s=u,a=Vo(l),t=jo(l,t)):a=-1}}return o}function Hv(e,t,n,r,o,i){let s=t[k],a=s.data[e+8],l=r==null?mn(a)&&Ca:r!=s&&(a.type&3)!==0,c=o&x.Host&&i===a,u=Uv(a,s,n,l,c);return u!==null?Ho(t,s,u,a,o):Ve}function Uv(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,l=e.directiveStart,c=e.directiveEnd,u=i>>20,f=r?a:a+u,p=o?a+u:c;for(let d=f;d<p;d++){let h=s[d];if(d<l&&n===h||d>=l&&h.type===n)return d}if(o){let d=s[l];if(d&&Ue(d)&&d.type===n)return l}return null}function Ho(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Vt){let a=i;a.resolving&&Qu(My(s[n]));let l=yu(a.canSeeViewProviders);a.resolving=!0;let c,u=a.injectImpl?Ie(a.injectImpl):null,f=Nd(e,r,x.Default);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Nv(n,s[n],t)}finally{u!==null&&Ie(u),yu(l),a.resolving=!1,Rd()}}return i}function $v(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(nr)?e[nr]:void 0;return typeof t=="number"?t>=0?t&jd:Wv:t}function vu(e,t,n){let r=1<<e;return!!(n[t+(e>>Bd)]&r)}function Du(e,t){return!(e&x.Self)&&!(e&x.Host&&t)}var Ot=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Wd(this._tNode,this._lView,t,Qo(r),n)}};function Wv(){return new Ot(xe(),B())}function wn(e){return ur(()=>{let t=e.prototype.constructor,n=t[Co]||Ta(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Co]||Ta(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ta(e){return Zu(e)?()=>{let t=Ta(re(e));return t&&t()}:sn(e)}function Gv(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[b]&2048&&!Po(s);){let a=Gd(i,s,n,r|x.Self,Ve);if(a!==Ve)return a;let l=i.parent;if(!l){let c=s[ud];if(c){let u=c.get(n,Ve,r);if(u!==Ve)return u}l=zd(s),s=s[gn]}i=l}return o}function zd(e){let t=e[k],n=t.type;return n===2?t.declTNode:n===1?e[Pe]:null}function wu(e,t=null,n=null,r){let o=zv(e,t,n,r);return o.resolveInjectorInitializers(),o}function zv(e,t=null,n=null,r,o=new Set){let i=[n||be,Gy(e)];return r=r||(typeof e=="object"?void 0:Ce(e)),new or(i,t||il(),r||null,o)}var dn=class e{static THROW_IF_NOT_FOUND=kt;static NULL=new No;static create(t,n){if(Array.isArray(t))return wu({name:""},n,t,"");{let r=t.name??"";return wu({name:r},t.parent,t.providers,r)}}static \u0275prov=O({token:e,providedIn:"any",factory:()=>T(rd)});static __NG_ELEMENT_ID__=-1};var qv=new w("");qv.__NG_ELEMENT_ID__=e=>{let t=xe();if(t===null)throw new _(204,!1);if(t.type&2)return t.value;if(e&x.Optional)return null;throw new _(204,!1)};var qd=!1,Zd=(()=>{class e{static __NG_ELEMENT_ID__=Zv;static __NG_ENV_ID__=n=>n}return e})(),xa=class extends Zd{_lView;constructor(t){super(),this._lView=t}onDestroy(t){let n=this._lView;return yn(n)?(t(),()=>{}):(Ed(n,t),()=>dv(n,t))}};function Zv(){return new xa(B())}var ar=class{},Kd=new w("",{providedIn:"root",factory:()=>!1});var Yd=new w(""),Jd=new w(""),Bt=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Qn(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=O({token:e,providedIn:"root",factory:()=>new e})}return e})();var Ma=class extends Qe{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,tv()&&(this.destroyRef=S(Zd,{optional:!0})??void 0,this.pendingTasks=S(Bt,{optional:!0})??void 0)}emit(t){let n=N(null);try{super.next(t)}finally{N(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof ne&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},pe=Ma;function Uo(...e){}function Qd(e){let t,n;function r(){e=Uo;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Eu(e){return queueMicrotask(()=>e()),()=>{e=Uo}}var hl="isAngularZone",$o=hl+"_ID",Kv=0,ee=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new pe(!1);onMicrotaskEmpty=new pe(!1);onStable=new pe(!1);onError=new pe(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=qd}=t;if(typeof Zone>"u")throw new _(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Qv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(hl)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new _(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new _(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Yv,Uo,Uo);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Yv={};function gl(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Jv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Qd(()=>{e.callbackScheduled=!1,Na(e),e.isCheckStableRunning=!0,gl(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Na(e)}function Qv(e){let t=()=>{Jv(e)},n=Kv++;e._inner=e._inner.fork({name:"angular",properties:{[hl]:!0,[$o]:n,[$o+n]:!0},onInvokeTask:(r,o,i,s,a,l)=>{if(Xv(l))return r.invokeTask(i,s,a,l);try{return _u(e),r.invokeTask(i,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Iu(e)}},onInvoke:(r,o,i,s,a,l,c)=>{try{return _u(e),r.invoke(i,s,a,l,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!eD(l)&&t(),Iu(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Na(e),gl(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Na(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function _u(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Iu(e){e._nesting--,gl(e)}var Aa=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new pe;onMicrotaskEmpty=new pe;onStable=new pe;onError=new pe;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Xv(e){return Xd(e,"__ignore_ng_zone__")}function eD(e){return Xd(e,"__scheduler_tick__")}function Xd(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Xe=class{_console=console;handleError(t){this._console.error("ERROR",t)}},tD=new w("",{providedIn:"root",factory:()=>{let e=S(ee),t=S(Xe);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function nD(){return ii(xe(),B())}function ii(e,t){return new mt(ze(e,t))}var mt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=nD}return e})();function rD(e){return typeof e=="function"&&e[Ae]!==void 0}function pr(e,t){let n=js(e,t?.equal),r=n[Ae];return n.set=o=>Zr(r,o),n.update=o=>Bs(r,o),n.asReadonly=oD.bind(n),n}function oD(){let e=this[Ae];if(e.readonlyFn===void 0){let t=()=>this();t[Ae]=e,e.readonlyFn=t}return e.readonlyFn}function ef(e){return rD(e)&&typeof e.set=="function"}function tf(e){return(e.flags&128)===128}var nf=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(nf||{}),rf=new Map,iD=0;function sD(){return iD++}function aD(e){rf.set(e[ti],e)}function ka(e){rf.delete(e[ti])}var bu="__ngContext__";function hr(e,t){ft(t)?(e[bu]=t[ti],aD(t)):e[bu]=t}function of(e){return af(e[ir])}function sf(e){return af(e[Re])}function af(e){for(;e!==null&&!nt(e);)e=e[Re];return e}var Oa;function lf(e){Oa=e}function lD(){if(Oa!==void 0)return Oa;if(typeof document<"u")return document;throw new _(210,!1)}var ml=new w("",{providedIn:"root",factory:()=>cD}),cD="ng",yl=new w(""),gr=new w("",{providedIn:"platform",factory:()=>"unknown"});var vl=new w("",{providedIn:"root",factory:()=>lD().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var uD="h",dD="b";var cf=!1,fD=new w("",{providedIn:"root",factory:()=>cf});var uf=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(uf||{}),si=new w(""),Cu=new Set;function pD(e){Cu.has(e)||(Cu.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var hD=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=O({token:e,providedIn:"root",factory:()=>new e})}return e})();var gD=(e,t,n,r)=>{};function mD(e,t,n,r){gD(e,t,n,r)}var yD=()=>null;function df(e,t,n=!1){return yD(e,t,n)}function ff(e,t){let n=e.contentQueries;if(n!==null){let r=N(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Md(i),a.contentQueries(2,t[s],s)}}}finally{N(r)}}}function Ra(e,t,n){Md(0);let r=N(null);try{t(e,n)}finally{N(r)}}function pf(e,t,n){if(fd(t)){let r=N(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let l=n[s];a.contentQueries(1,l,s)}}}finally{N(r)}}}var Ge=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ge||{});var Fa=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${vy})`}};function vD(e){return e instanceof Fa?e.changingThisBreaksApplicationSecurity:e}function DD(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var hf="ng-template";function wD(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&DD(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Dl(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function Dl(e){return e.type===4&&e.value!==hf}function ED(e,t,n){let r=e.type===4&&!n?hf:e.value;return t===r}function _D(e,t,n){let r=4,o=e.attrs,i=o!==null?CD(o):0,s=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!s&&!Oe(r)&&!Oe(l))return!1;if(s&&Oe(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!ED(e,l,n)||l===""&&t.length===1){if(Oe(r))return!1;s=!0}}else if(r&8){if(o===null||!wD(e,o,l,n)){if(Oe(r))return!1;s=!0}}else{let c=t[++a],u=ID(l,o,Dl(e),n);if(u===-1){if(Oe(r))return!1;s=!0;continue}if(c!==""){let f;if(u>i?f="":f=o[u+1].toLowerCase(),r&2&&c!==f){if(Oe(r))return!1;s=!0}}}}return Oe(r)||s}function Oe(e){return(e&1)===0}function ID(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return SD(t,e)}function bD(e,t,n=!1){for(let r=0;r<t.length;r++)if(_D(e,t[r],n))return!0;return!1}function CD(e){for(let t=0;t<e.length;t++){let n=e[t];if(Fv(n))return t}return e.length}function SD(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Su(e,t){return e?":not("+t.trim()+")":t}function TD(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Oe(s)&&(t+=Su(i,o),o=""),r=s,i=i||!Oe(r);n++}return o!==""&&(t+=Su(i,o)),t}function xD(e){return e.map(TD).join(",")}function MD(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!Oe(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var Ht={};function ND(e,t){return e.createText(t)}function AD(e,t,n){e.setValue(t,n)}function gf(e,t,n){return e.createElement(t,n)}function Wo(e,t,n,r,o){e.insertBefore(t,n,r,o)}function mf(e,t,n){e.appendChild(t,n)}function Tu(e,t,n,r,o){r!==null?Wo(e,t,n,r,o):mf(e,t,n)}function kD(e,t,n){e.removeChild(null,t,n)}function OD(e,t,n){e.setAttribute(t,"style",n)}function RD(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function yf(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Rv(e,t,r),o!==null&&RD(e,t,o),i!==null&&OD(e,t,i)}function wl(e,t,n,r,o,i,s,a,l,c,u){let f=He+r,p=f+o,d=FD(f,p),h=typeof c=="function"?c():c;return d[k]={type:e,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:t,data:d.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:h,incompleteFirstPass:!1,ssrId:u}}function FD(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Ht);return n}function PD(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=wl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function El(e,t,n,r,o,i,s,a,l,c,u){let f=t.blueprint.slice();return f[tt]=o,f[b]=r|4|128|8|64|1024,(c!==null||e&&e[b]&2048)&&(f[b]|=2048),Dd(f),f[oe]=f[gn]=e,f[he]=n,f[pt]=s||e&&e[pt],f[J]=a||e&&e[J],f[ln]=l||e&&e[ln]||null,f[Pe]=i,f[ti]=sD(),f[Ao]=u,f[ud]=c,f[Be]=t.type==2?e[Be]:f,f}function LD(e,t,n){let r=ze(t,e),o=PD(n),i=e[pt].rendererFactory,s=_l(e,El(e,o,null,vf(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function vf(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Df(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function _l(e,t){return e[ir]?e[fu][Re]=t:e[ir]=t,e[fu]=t,t}function D(e=1){wf(ye(),B(),Dn()+e,!1)}function wf(e,t,n,r){if(!r)if((t[b]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Eo(t,i,n)}else{let i=e.preOrderHooks;i!==null&&_o(t,i,0,n)}Lt(n)}var ai=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(ai||{});function Pa(e,t,n,r){let o=N(null);try{let[i,s,a]=e.inputs[n],l=null;(s&ai.SignalBased)!==0&&(l=t[i][Ae]),l!==null&&l.transformFn!==void 0?r=l.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,l,r,n,i):pd(t,l,i,r)}finally{N(o)}}function Ef(e,t,n,r,o){let i=Dn(),s=r&2;try{Lt(-1),s&&t.length>He&&wf(e,t,He,!1),L(s?2:0,o),n(r,o)}finally{Lt(i),L(s?3:1,o)}}function Il(e,t,n){$D(e,t,n),(n.flags&64)===64&&WD(e,t,n)}function _f(e,t,n=ze){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function VD(e,t,n,r){let i=r.get(fD,cf)||n===Ge.ShadowDom,s=e.selectRootElement(t,i);return jD(s),s}function jD(e){BD(e)}var BD=()=>null;function HD(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function If(e,t,n,r,o,i,s,a){if(!a&&bl(t,e,n,r,o)){mn(t)&&UD(n,t.index);return}if(t.type&3){let l=ze(t,n);r=HD(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(l,r,o)}else t.type&12}function UD(e,t){let n=We(t,e);n[b]&16||(n[b]|=64)}function $D(e,t,n){let r=n.directiveStart,o=n.directiveEnd;mn(n)&&LD(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Bo(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],l=Ho(t,e,s,n);if(hr(l,t),i!==null&&ZD(t,s-r,l,a,n,i),Ue(a)){let c=We(n.index,t);c[he]=Ho(t,e,s,n)}}}function WD(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Cv();try{Lt(i);for(let a=r;a<o;a++){let l=e.data[a],c=t[a];ba(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&GD(l,c)}}finally{Lt(-1),ba(s)}}function GD(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function bf(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];bD(t,i.selectors,!1)&&(r??=[],Ue(i)?r.unshift(i):r.push(i))}return r}function zD(e,t,n,r,o,i){let s=ze(e,t);qD(t[J],s,i,e.value,n,r,o)}function qD(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?tl(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function ZD(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let l=s[a],c=s[a+1];Pa(r,n,l,c)}}function KD(e,t){let n=e[ln],r=n?n.get(Xe,null):null;r&&r.handleError(t)}function bl(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let l=0;l<s.length;l+=2){let c=s[l],u=s[l+1],f=t.data[c];Pa(f,n[c],u,o),a=!0}if(i)for(let l of i){let c=n[l],u=t.data[l];Pa(u,c,r,o),a=!0}return a}function YD(e,t){let n=We(t,e),r=n[k];JD(r,n);let o=n[tt];o!==null&&n[Ao]===null&&(n[Ao]=df(o,n[ln])),L(18),Cl(r,n,n[he]),L(19,n[he])}function JD(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Cl(e,t,n){ll(t);try{let r=e.viewQuery;r!==null&&Ra(1,r,n);let o=e.template;o!==null&&Ef(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[un]?.finishViewCreation(e),e.staticContentQueries&&ff(e,t),e.staticViewQueries&&Ra(2,e.viewQuery,n);let i=e.components;i!==null&&QD(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[b]&=-5,cl()}}function QD(e,t){for(let n=0;n<t.length;n++)YD(e,t[n])}function XD(e,t,n,r){let o=N(null);try{let i=t.tView,a=e[b]&4096?4096:16,l=El(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),c=e[t.index];l[cn]=c;let u=e[un];return u!==null&&(l[un]=u.createEmbeddedView(i)),Cl(i,l,n),l}finally{N(o)}}function xu(e,t){return!t||t.firstChild===null||tf(e)}var ew;function Sl(e,t){return ew(e,t)}var et=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(et||{});function Cf(e){return(e.flags&32)===32}function rn(e,t,n,r,o){if(r!=null){let i,s=!1;nt(r)?i=r:ft(r)&&(s=!0,r=r[tt]);let a=$e(r);e===0&&n!==null?o==null?mf(t,n,a):Wo(t,n,a,o||null,!0):e===1&&n!==null?Wo(t,n,a,o||null,!0):e===2?kD(t,a,s):e===3&&t.destroyNode(a),i!=null&&fw(t,e,i,n,o)}}function tw(e,t){Sf(e,t),t[tt]=null,t[Pe]=null}function nw(e,t,n,r,o,i){r[tt]=o,r[Pe]=t,li(e,r,n,1,o,i)}function Sf(e,t){t[pt].changeDetectionScheduler?.notify(9),li(e,t,t[J],2,null,null)}function rw(e){let t=e[ir];if(!t)return aa(e[k],e);for(;t;){let n=null;if(ft(t))n=t[ir];else{let r=t[Te];r&&(n=r)}if(!n){for(;t&&!t[Re]&&t!==e;)ft(t)&&aa(t[k],t),t=t[oe];t===null&&(t=e),ft(t)&&aa(t[k],t),n=t&&t[Re]}t=n}}function Tl(e,t){let n=e[Fo],r=n.indexOf(t);n.splice(r,1)}function Tf(e,t){if(yn(t))return;let n=t[J];n.destroyNode&&li(e,t,n,3,null,null),rw(t)}function aa(e,t){if(yn(t))return;let n=N(null);try{t[b]&=-129,t[b]|=256,t[Se]&&Ps(t[Se]),iw(e,t),ow(e,t),t[k].type===1&&t[J].destroy();let r=t[cn];if(r!==null&&nt(t[oe])){r!==t[oe]&&Tl(r,t);let o=t[un];o!==null&&o.detachView(e)}ka(t)}finally{N(n)}}function ow(e,t){let n=e.cleanup,r=t[ko];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[ko]=null);let o=t[dt];if(o!==null){t[dt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Oo];if(i!==null){t[Oo]=null;for(let s of i)s.destroy()}}function iw(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Vt)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],l=i[s+1];L(4,a,l);try{l.call(a)}finally{L(5,a,l)}}else{L(4,o,i);try{i.call(o)}finally{L(5,o,i)}}}}}function sw(e,t,n){return aw(e,t.parent,n)}function aw(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[tt];if(mn(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Ge.None||o===Ge.Emulated)return null}return ze(r,n)}function lw(e,t,n){return uw(e,t,n)}function cw(e,t,n){return e.type&40?ze(e,n):null}var uw=cw,Mu;function xl(e,t,n,r){let o=sw(e,r,t),i=t[J],s=r.parent||t[Pe],a=lw(s,r,t);if(o!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Tu(i,o,n[l],a,!1);else Tu(i,o,n,a,!1);Mu!==void 0&&Mu(i,r,t,n,o)}function tr(e,t){if(t!==null){let n=t.type;if(n&3)return ze(t,e);if(n&4)return La(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return tr(e,r);{let o=e[t.index];return nt(o)?La(-1,o):$e(o)}}else{if(n&128)return tr(e,t.next);if(n&32)return Sl(t,e)()||$e(e[t.index]);{let r=xf(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Pt(e[Be]);return tr(o,r)}else return tr(e,t.next)}}}return null}function xf(e,t){if(t!==null){let r=e[Be][Pe],o=t.projection;return r.projection[o]}return null}function La(e,t){let n=Te+e+1;if(n<t.length){let r=t[n],o=r[k].firstChild;if(o!==null)return tr(r,o)}return t[Ft]}function Ml(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],l=n.type;if(s&&t===0&&(a&&hr($e(a),r),n.flags|=2),!Cf(n))if(l&8)Ml(e,t,n.child,r,o,i,!1),rn(t,e,o,a,i);else if(l&32){let c=Sl(n,r),u;for(;u=c();)rn(t,e,o,u,i);rn(t,e,o,a,i)}else l&16?dw(e,t,r,n,o,i):rn(t,e,o,a,i);n=s?n.projectionNext:n.next}}function li(e,t,n,r,o,i){Ml(n,r,e.firstChild,t,o,i,!1)}function dw(e,t,n,r,o,i){let s=n[Be],l=s[Pe].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let u=l[c];rn(t,e,o,u,i)}else{let c=l,u=s[oe];tf(r)&&(c.flags|=128),Ml(e,t,c,u,o,i,!0)}}function fw(e,t,n,r,o){let i=n[Ft],s=$e(n);i!==s&&rn(t,e,r,i,o);for(let a=Te;a<n.length;a++){let l=n[a];li(l[k],l,e,t,r,i)}}function pw(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:et.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=et.Important),e.setStyle(n,r,o,i))}}function Go(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push($e(i)),nt(i)&&hw(i,r);let s=n.type;if(s&8)Go(e,t,n.child,r);else if(s&32){let a=Sl(n,t),l;for(;l=a();)r.push(l)}else if(s&16){let a=xf(t,n);if(Array.isArray(a))r.push(...a);else{let l=Pt(t[Be]);Go(l[k],l,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function hw(e,t){for(let n=Te;n<e.length;n++){let r=e[n],o=r[k].firstChild;o!==null&&Go(r[k],r,o,t)}e[Ft]!==e[tt]&&t.push(e[Ft])}function Mf(e){if(e[oa]!==null){for(let t of e[oa])t.impl.addSequence(t);e[oa].length=0}}var Nf=[];function gw(e){return e[Se]??mw(e)}function mw(e){let t=Nf.pop()??Object.create(vw);return t.lView=e,t}function yw(e){e.lView[Se]!==e&&(e.lView=null,Nf.push(e))}var vw=G(P({},Kn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{ri(e.lView)},consumerOnSignalRead(){this.lView[Se]=this}});function Dw(e){let t=e[Se]??Object.create(ww);return t.lView=e,t}var ww=G(P({},Kn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Pt(e.lView);for(;t&&!Af(t[k]);)t=Pt(t);t&&wd(t)},consumerOnSignalRead(){this.lView[Se]=this}});function Af(e){return e.type!==2}function kf(e){if(e[Oo]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Oo])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[b]&8192)}}var Ew=100;function Of(e,t=!0,n=0){let o=e[pt].rendererFactory,i=!1;i||o.begin?.();try{_w(e,n)}catch(s){throw t&&KD(e,s),s}finally{i||o.end?.()}}function _w(e,t){let n=Td();try{hu(!0),Va(e,t);let r=0;for(;ni(e);){if(r===Ew)throw new _(103,!1);r++,Va(e,1)}}finally{hu(n)}}function Iw(e,t,n,r){if(yn(t))return;let o=t[b],i=!1,s=!1;ll(t);let a=!0,l=null,c=null;i||(Af(e)?(c=gw(t),l=Gr(c)):Ns()===null?(a=!1,c=Dw(t),l=Gr(c)):t[Se]&&(Ps(t[Se]),t[Se]=null));try{Dd(t),Ev(e.bindingStartIndex),n!==null&&Ef(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let d=e.preOrderCheckHooks;d!==null&&Eo(t,d,null)}else{let d=e.preOrderHooks;d!==null&&_o(t,d,0,null),ia(t,0)}if(s||bw(t),kf(t),Rf(t,0),e.contentQueries!==null&&ff(e,t),!i)if(u){let d=e.contentCheckHooks;d!==null&&Eo(t,d)}else{let d=e.contentHooks;d!==null&&_o(t,d,1),ia(t,1)}Sw(e,t);let f=e.components;f!==null&&Pf(t,f,0);let p=e.viewQuery;if(p!==null&&Ra(2,p,r),!i)if(u){let d=e.viewCheckHooks;d!==null&&Eo(t,d)}else{let d=e.viewHooks;d!==null&&_o(t,d,2),ia(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[ra]){for(let d of t[ra])d();t[ra]=null}i||(Mf(t),t[b]&=-73)}catch(u){throw i||ri(t),u}finally{c!==null&&(Rs(c,l),a&&yw(c)),cl()}}function Rf(e,t){for(let n=of(e);n!==null;n=sf(n))for(let r=Te;r<n.length;r++){let o=n[r];Ff(o,t)}}function bw(e){for(let t=of(e);t!==null;t=sf(t)){if(!(t[b]&2))continue;let n=t[Fo];for(let r=0;r<n.length;r++){let o=n[r];wd(o)}}}function Cw(e,t,n){L(18);let r=We(t,e);Ff(r,n),L(19,r[he])}function Ff(e,t){al(e)&&Va(e,t)}function Va(e,t){let r=e[k],o=e[b],i=e[Se],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Fs(i)),s||=!1,i&&(i.dirty=!1),e[b]&=-9217,s)Iw(r,e,r.template,e[he]);else if(o&8192){kf(e),Rf(e,1);let a=r.components;a!==null&&Pf(e,a,1),Mf(e)}}function Pf(e,t,n){for(let r=0;r<t.length;r++)Cw(e,t[r],n)}function Sw(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Lt(~o);else{let i=o,s=n[++r],a=n[++r];bv(s,i);let l=t[i];L(24,l),a(2,l),L(25,l)}}}finally{Lt(-1)}}function Nl(e,t){let n=Td()?64:1088;for(e[pt].changeDetectionScheduler?.notify(t);e;){e[b]|=n;let r=Pt(e);if(Po(e)&&!r)return e;e=r}return null}function Lf(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Tw(e,t,n,r=!0){let o=t[k];if(xw(o,t,e,n),r){let s=La(n,e),a=t[J],l=a.parentNode(e[Ft]);l!==null&&nw(o,e[Pe],a,t,l,s)}let i=t[Ao];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function ja(e,t){if(e.length<=Te)return;let n=Te+t,r=e[n];if(r){let o=r[cn];o!==null&&o!==e&&Tl(o,r),t>0&&(e[n-1][Re]=r[Re]);let i=xo(e,Te+t);tw(r[k],r);let s=i[un];s!==null&&s.detachView(i[k]),r[oe]=null,r[Re]=null,r[b]&=-129}return r}function xw(e,t,n,r){let o=Te+r,i=n.length;r>0&&(n[o-1][Re]=t),r<i-Te?(t[Re]=n[o],nd(n,Te+r,t)):(n.push(t),t[Re]=null),t[oe]=n;let s=t[cn];s!==null&&n!==s&&Vf(s,t);let a=t[un];a!==null&&a.insertView(e),_a(t),t[b]|=128}function Vf(e,t){let n=e[Fo],r=t[oe];if(ft(r))e[b]|=2;else{let o=r[oe][Be];t[Be]!==o&&(e[b]|=2)}n===null?e[Fo]=[t]:n.push(t)}var lr=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,n=t[k];return Go(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[he]}set context(t){this._lView[he]=t}get destroyed(){return yn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[oe];if(nt(t)){let n=t[Ro],r=n?n.indexOf(this):-1;r>-1&&(ja(t,r),xo(n,r))}this._attachedToViewContainer=!1}Tf(this._lView[k],this._lView)}onDestroy(t){Ed(this._lView,t)}markForCheck(){Nl(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[b]&=-129}reattach(){_a(this._lView),this._lView[b]|=128}detectChanges(){this._lView[b]|=1024,Of(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new _(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Po(this._lView),n=this._lView[cn];n!==null&&!t&&Tl(n,this._lView),Sf(this._lView[k],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new _(902,!1);this._appRef=t;let n=Po(this._lView),r=this._lView[cn];r!==null&&!n&&Vf(r,this._lView),_a(this._lView)}};var ci=(()=>{class e{static __NG_ELEMENT_ID__=Aw}return e})(),Mw=ci,Nw=class extends Mw{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=XD(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new lr(o)}};function Aw(){return kw(xe(),B())}function kw(e,t){return e.type&4?new Nw(t,e,ii(e,t)):null}function Al(e,t,n,r,o){let i=e.data[t];if(i===null)i=Ow(e,t,n,r,o),Iv()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=vv();i.injectorIndex=s===null?-1:s.injectorIndex}return fr(i,!0),i}function Ow(e,t,n,r,o){let i=Cd(),s=Sd(),a=s?i:i&&i.parent,l=e.data[t]=Fw(e,a,n,t,r,o);return Rw(e,l,i,s),l}function Rw(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function Fw(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return gv()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var fO=new RegExp(`^(\\d+)*(${dD}|${uD})*(.*)`);var Pw=()=>null;function Nu(e,t){return Pw(e,t)}var Lw=class{},jf=class{},Ba=class{resolveComponentFactory(t){throw Error(`No component factory found for ${Ce(t)}.`)}},kl=class{static NULL=new Ba},fn=class{},Ut=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>Vw()}return e})();function Vw(){let e=B(),t=xe(),n=We(t.index,e);return(ft(n)?n:e)[J]}var jw=(()=>{class e{static \u0275prov=O({token:e,providedIn:"root",factory:()=>null})}return e})();var la={},Ha=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Qo(r);let o=this.injector.get(t,la,r);return o!==la||n===la?o:this.parentInjector.get(t,n,r)}};function Au(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=iu(o,a);else if(i==2){let l=a,c=t[++s];r=iu(r,l+": "+c+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function E(e,t=x.Default){let n=B();if(n===null)return T(e,t);let r=xe();return Wd(r,n,re(e),t)}function Bf(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a,l=null,c=null,u=Hw(s);u===null?a=s:[a,l,c]=u,Ww(e,t,n,a,i,l,c)}i!==null&&r!==null&&Bw(n,r,i)}function Bw(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new _(-301,!1);r.push(t[o],i)}}function Hw(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&&Ue(a)&&(t=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,o=null,i=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],o??=new Map,i??=new Map,Uw(s,r,i,o)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,o,i]):null}function Uw(e,t,n,r){let o=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[o,t.length-1])}function $w(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Ww(e,t,n,r,o,i,s){let a=r.length,l=!1;for(let p=0;p<a;p++){let d=r[p];!l&&Ue(d)&&(l=!0,$w(e,n,p)),Sa(Bo(n,t),e,d.type)}Yw(n,e.data.length,a);for(let p=0;p<a;p++){let d=r[p];d.providersResolver&&d.providersResolver(d)}let c=!1,u=!1,f=Df(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let d=r[p];if(n.mergedAttrs=sr(n.mergedAttrs,d.hostAttrs),zw(e,n,t,f,d),Kw(f,d,o),s!==null&&s.has(d)){let[g,v]=s.get(d);n.directiveToIndex.set(d.type,[f,g+n.directiveStart,v+n.directiveStart])}else(i===null||!i.has(d))&&n.directiveToIndex.set(d.type,f);d.contentQueries!==null&&(n.flags|=4),(d.hostBindings!==null||d.hostAttrs!==null||d.hostVars!==0)&&(n.flags|=64);let h=d.type.prototype;!c&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),c=!0),!u&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=!0),f++}Gw(e,n,i)}function Gw(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))ku(0,t,o,r),ku(1,t,o,r),Ru(t,r,!1);else{let i=n.get(o);Ou(0,t,i,r),Ou(1,t,i,r),Ru(t,r,!0)}}}function ku(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Hf(t,i)}}function Ou(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Hf(t,s)}}function Hf(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Ru(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Dl(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let l=r[a];if(l===0){a+=4;continue}else if(l===5){a+=2;continue}else if(typeof l=="number")break;if(!n&&o.hasOwnProperty(l)){let c=o[l];for(let u of c)if(u===t){s??=[],s.push(l,r[a+1]);break}}else if(n&&i.hasOwnProperty(l)){let c=i[l];for(let u=0;u<c.length;u+=2)if(c[u]===t){s??=[],s.push(c[u+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function zw(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=sn(o.type,!0)),s=new Vt(i,Ue(o),E);e.blueprint[r]=s,n[r]=s,qw(e,t,r,Df(e,n,o.hostVars,Ht),o)}function qw(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;Zw(s)!=a&&s.push(a),s.push(n,r,i)}}function Zw(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Kw(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ue(t)&&(n[""]=e)}}function Yw(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Uf(e,t,n,r,o,i,s,a){let l=t.consts,c=Lo(l,s),u=Al(t,e,2,r,c);return i&&Bf(t,n,u,Lo(l,a),o),u.mergedAttrs=sr(u.mergedAttrs,u.attrs),u.attrs!==null&&Au(u,u.attrs,!1),u.mergedAttrs!==null&&Au(u,u.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,u),u}function $f(e,t){Pd(e,t),fd(t)&&e.queries.elementEnd(t)}var Ua=class extends kl{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=rr(t);return new zo(n,this.ngModule)}};function Jw(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&ai.SignalBased)!==0};return o&&(i.transform=o),i})}function Qw(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function Xw(e,t,n){let r=t instanceof je?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Ha(n,r):n}function eE(e){let t=e.get(fn,null);if(t===null)throw new _(407,!1);let n=e.get(jw,null),r=e.get(ar,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function tE(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return gf(t,n,n==="svg"?sv:n==="math"?av:null)}var zo=class extends jf{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=Jw(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Qw(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=xD(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o){L(22);let i=N(null);try{let s=this.componentDef,a=r?["ng-version","19.2.12"]:MD(this.componentDef.selectors[0]),l=wl(0,null,null,1,0,null,null,null,null,[a],null),c=Xw(s,o||this.ngModule,t),u=eE(c),f=u.rendererFactory.createRenderer(null,s),p=r?VD(f,r,s.encapsulation,c):tE(s,f),d=El(null,l,null,512|vf(s),null,null,u,f,c,null,df(p,c,!0));d[He]=p,ll(d);let h=null;try{let g=Uf(He,l,d,"#host",()=>[this.componentDef],!0,0);p&&(yf(f,p,g),hr(p,d)),Il(l,d,g),pf(l,g,d),$f(l,g),n!==void 0&&nE(g,this.ngContentSelectors,n),h=We(g.index,d),d[he]=h[he],Cl(l,d,null)}catch(g){throw h!==null&&ka(h),ka(d),g}finally{L(23),cl()}return new $a(this.componentType,d)}finally{N(i)}}},$a=class extends Lw{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n){super(),this._rootLView=n,this._tNode=vd(n[k],He),this.location=ii(this._tNode,n),this.instance=We(this._tNode.index,n)[he],this.hostView=this.changeDetectorRef=new lr(n,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=bl(r,o[k],o,t,n);this.previousInputValues.set(t,n);let s=We(r.index,o);Nl(s,1)}get injector(){return new Ot(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function nE(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var ui=(()=>{class e{static __NG_ELEMENT_ID__=rE}return e})();function rE(){let e=xe();return iE(e,B())}var oE=ui,Wf=class extends oE{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return ii(this._hostTNode,this._hostLView)}get injector(){return new Ot(this._hostTNode,this._hostLView)}get parentInjector(){let t=pl(this._hostTNode,this._hostLView);if(Vd(t)){let n=jo(t,this._hostLView),r=Vo(t),o=n[k].data[r+8];return new Ot(o,n)}else return new Ot(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Fu(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Te}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Nu(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,xu(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!nv(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let l=s?t:new zo(rr(t)),c=r||this.parentInjector;if(!i&&l.ngModule==null){let g=(s?c:this.parentInjector).get(je,null);g&&(i=g)}let u=rr(l.componentType??{}),f=Nu(this._lContainer,u?.id??null),p=f?.firstChild??null,d=l.create(c,o,p,i);return this.insertImpl(d.hostView,a,xu(this._hostTNode,f)),d}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(cv(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=o[oe],c=new Wf(l,l[Pe],l[oe]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Tw(s,o,i,r),t.attachToViewContainerRef(),nd(ca(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Fu(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=ja(this._lContainer,n);r&&(xo(ca(this._lContainer),n),Tf(r[k],r))}detach(t){let n=this._adjustIndex(t,-1),r=ja(this._lContainer,n);return r&&xo(ca(this._lContainer),n)!=null?new lr(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Fu(e){return e[Ro]}function ca(e){return e[Ro]||(e[Ro]=[])}function iE(e,t){let n,r=t[e.index];return nt(r)?n=r:(n=Lf(r,t,null,e),t[e.index]=n,_l(t,n)),aE(n,t,e,r),new Wf(n,e,t)}function sE(e,t){let n=e[J],r=n.createComment(""),o=ze(t,e),i=n.parentNode(o);return Wo(n,i,r,n.nextSibling(o),!1),r}var aE=uE,lE=()=>!1;function cE(e,t,n){return lE(e,t,n)}function uE(e,t,n,r){if(e[Ft])return;let o;n.type&8?o=$e(r):o=sE(t,n),e[Ft]=o}var qo=class{};var Zo=class extends qo{injector;componentFactoryResolver=new Ua(this);instance=null;constructor(t){super();let n=new or([...t.providers,{provide:qo,useValue:this},{provide:kl,useValue:this.componentFactoryResolver}],t.parent||il(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function dE(e,t,n=null){return new Zo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var fE=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=sd(!1,n.type),o=r.length>0?dE([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()}}static \u0275prov=O({token:e,providedIn:"environment",factory:()=>new e(T(je))})}return e})();function di(e){return ur(()=>{let t=Gf(e),n=G(P({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===nf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(fE).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ge.Emulated,styles:e.styles||be,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&pD("NgStandalone"),zf(n);let r=e.dependencies;return n.directiveDefs=Pu(r,!1),n.pipeDefs=Pu(r,!0),n.id=yE(n),n})}function pE(e){return rr(e)||$y(e)}function hE(e){return e!==null}function yt(e){return ur(()=>({type:e.type,bootstrap:e.bootstrap||be,declarations:e.declarations||be,imports:e.imports||be,exports:e.exports||be,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function gE(e,t){if(e==null)return Rt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,l;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,l=o[3]||null):(i=o,s=o,a=ai.None,l=null),n[i]=[r,a,l],t[i]=s}return n}function mE(e){if(e==null)return Rt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function q(e){return ur(()=>{let t=Gf(e);return zf(t),t})}function Gf(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Rt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||be,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:gE(e.inputs,t),outputs:mE(e.outputs),debugInfo:null}}function zf(e){e.features?.forEach(t=>t(e))}function Pu(e,t){if(!e)return null;let n=t?Wy:pE;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(hE)}function yE(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function vE(e){return Object.getPrototypeOf(e.prototype).constructor}function ve(e){let t=vE(e.type),n=!0,r=[e];for(;t;){let o;if(Ue(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new _(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=ua(e.inputs),s.declaredInputs=ua(e.declaredInputs),s.outputs=ua(e.outputs);let a=o.hostBindings;a&&IE(e,a);let l=o.viewQuery,c=o.contentQueries;if(l&&EE(e,l),c&&_E(e,c),DE(e,o),_y(e.outputs,o.outputs),Ue(o)&&o.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===ve&&(n=!1)}}t=Object.getPrototypeOf(t)}wE(r)}function DE(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function wE(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=sr(o.hostAttrs,n=sr(n,o.hostAttrs))}}function ua(e){return e===Rt?{}:e===be?[]:e}function EE(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function _E(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function IE(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function qf(e){return CE(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function bE(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function CE(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Zf(e,t,n){return e[t]=n}function ht(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function SE(e,t,n,r){let o=ht(e,t,n);return ht(e,t+1,r)||o}function TE(e,t,n,r,o,i,s,a,l){let c=t.consts,u=Al(t,e,4,s||null,a||null);bd()&&Bf(t,n,u,Lo(c,l),bf),u.mergedAttrs=sr(u.mergedAttrs,u.attrs),Pd(t,u);let f=u.tView=wl(2,u,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,u),f.queries=t.queries.embeddedTView(u)),u}function xE(e,t,n,r,o,i,s,a,l,c){let u=n+He,f=t.firstCreatePass?TE(u,t,e,r,o,i,s,a,l):t.data[u];fr(f,!1);let p=ME(t,e,f,n);dl()&&xl(t,e,p,f),hr(p,e);let d=Lf(p,e,p,f);return e[u]=d,_l(e,d),cE(d,f,e),sl(f)&&Il(t,e,f),l!=null&&_f(e,f,c),f}function ie(e,t,n,r,o,i,s,a){let l=B(),c=ye(),u=Lo(c.consts,i);return xE(l,c,e,t,n,r,o,u,s,a),ie}var ME=NE;function NE(e,t,n,r){return fl(!0),t[J].createComment("")}var Kf=new w("");var AE=(()=>{class e{static \u0275prov=O({token:e,providedIn:"root",factory:()=>new Wa})}return e})(),Wa=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),this.queuedEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}};function mr(e){return!!e&&typeof e.then=="function"}function Yf(e){return!!e&&typeof e.subscribe=="function"}var kE=new w("");var Jf=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=S(kE,{optional:!0})??[];injector=S(dn);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=ei(this.injector,o);if(mr(i))n.push(i);else if(Yf(i)){let s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),OE=new w("");function RE(){Vs(()=>{throw new _(600,!1)})}function FE(e){return e.isBoundToModule}var PE=10;var pn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=S(tD);afterRenderManager=S(hD);zonelessEnabled=S(Kd);rootEffectScheduler=S(AE);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Qe;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=S(Bt).hasPendingTasks.pipe(fe(n=>!n));constructor(){S(si,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=S(je);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=dn.NULL){L(10);let i=n instanceof jf;if(!this._injector.get(Jf).done){let d="";throw new _(405,d)}let a;i?a=n:a=this._injector.get(kl).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=FE(a)?void 0:this._injector.get(qo),c=r||a.selector,u=a.create(o,[],c,l),f=u.location.nativeElement,p=u.injector.get(Kf,null);return p?.registerApplication(f),u.onDestroy(()=>{this.detachView(u.hostView),Io(this.components,u),p?.unregisterApplication(f)}),this._loadComponent(u),L(11,u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){L(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(uf.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new _(101,!1);let n=N(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,N(n),this.afterTick.next(),L(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(fn,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<PE;)L(14),this.synchronizeOnce(),L(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)LE(r,o,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>ni(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Io(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(OE,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Io(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new _(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Io(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function LE(e,t,n,r){if(!n&&!ni(e))return;Of(e,t,n&&!r?0:1)}function Ol(e,t,n,r){let o=B(),i=oi();if(ht(o,i,t)){let s=ye(),a=ul();zD(a,o,e,t,n,r)}return Ol}function VE(e,t,n,r){return ht(e,oi(),n)?t+tl(n)+r:Ht}function Do(e,t){return e<<17|t<<2}function jt(e){return e>>17&32767}function jE(e){return(e&2)==2}function BE(e,t){return e&131071|t<<17}function Ga(e){return e|2}function hn(e){return(e&131068)>>2}function da(e,t){return e&-131069|t<<2}function HE(e){return(e&1)===1}function za(e){return e|1}function UE(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=jt(s),l=hn(s);e[r]=n;let c=!1,u;if(Array.isArray(n)){let f=n;u=f[1],(u===null||dr(f,u)>0)&&(c=!0)}else u=n;if(o)if(l!==0){let p=jt(e[a+1]);e[r+1]=Do(p,a),p!==0&&(e[p+1]=da(e[p+1],r)),e[a+1]=BE(e[a+1],r)}else e[r+1]=Do(a,0),a!==0&&(e[a+1]=da(e[a+1],r)),a=r;else e[r+1]=Do(l,0),a===0?a=r:e[l+1]=da(e[l+1],r),l=r;c&&(e[r+1]=Ga(e[r+1])),Lu(e,u,r,!0),Lu(e,u,r,!1),$E(t,u,e,r,i),s=Do(a,l),i?t.classBindings=s:t.styleBindings=s}function $E(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&dr(i,t)>=0&&(n[r+1]=za(n[r+1]))}function Lu(e,t,n,r){let o=e[n+1],i=t===null,s=r?jt(o):hn(o),a=!1;for(;s!==0&&(a===!1||i);){let l=e[s],c=e[s+1];WE(l,t)&&(a=!0,e[s+1]=r?za(c):Ga(c)),s=r?jt(c):hn(c)}a&&(e[n+1]=r?Ga(o):za(o))}function WE(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?dr(e,t)>=0:!1}function C(e,t,n){let r=B(),o=oi();if(ht(r,o,t)){let i=ye(),s=ul();If(i,s,r,e,t,r[J],n,!1)}return C}function Vu(e,t,n,r,o){bl(t,e,n,o?"class":"style",r)}function fi(e,t){return GE(e,t,null,!0),fi}function GE(e,t,n,r){let o=B(),i=ye(),s=_v(2);if(i.firstUpdatePass&&qE(i,e,s,r),t!==Ht&&ht(o,s,t)){let a=i.data[Dn()];QE(i,a,o,o[J],e,o[s+1]=XE(t,n),r,s)}}function zE(e,t){return t>=e.expandoStartIndex}function qE(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Dn()],s=zE(e,n);e_(i,r)&&t===null&&!s&&(t=!1),t=ZE(o,i,t,r),UE(o,i,t,n,s,r)}}function ZE(e,t,n,r){let o=Sv(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=fa(null,e,t,n,r),n=cr(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=fa(o,e,t,n,r),i===null){let l=KE(e,t,r);l!==void 0&&Array.isArray(l)&&(l=fa(null,e,t,l[1],r),l=cr(l,t.attrs,r),YE(e,t,r,l))}else i=JE(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function KE(e,t,n){let r=n?t.classBindings:t.styleBindings;if(hn(r)!==0)return e[jt(r)]}function YE(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[jt(o)]=r}function JE(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=cr(r,s,n)}return cr(r,t.attrs,n)}function fa(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=cr(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function cr(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Hy(e,s,n?!0:t[++i]))}return e===void 0?null:e}function QE(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let l=e.data,c=l[a+1],u=HE(c)?ju(l,t,n,o,hn(c),s):void 0;if(!Ko(u)){Ko(i)||jE(c)&&(i=ju(l,null,n,o,a,s));let f=yd(Dn(),n);pw(r,s,f,o,i)}}function ju(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let l=e[o],c=Array.isArray(l),u=c?l[1]:l,f=u===null,p=n[o+1];p===Ht&&(p=f?be:void 0);let d=f?ta(p,r):u===r?p:void 0;if(c&&!Ko(d)&&(d=ta(l,r)),Ko(d)&&(a=d,s))return a;let h=e[o+1];o=s?jt(h):hn(h)}if(t!==null){let l=i?t.residualClasses:t.residualStyles;l!=null&&(a=ta(l,r))}return a}function Ko(e){return e!==void 0}function XE(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Ce(vD(e)))),e}function e_(e,t){return(e.flags&(t?8:16))!==0}function y(e,t,n,r){let o=B(),i=ye(),s=He+e,a=o[J],l=i.firstCreatePass?Uf(s,i,o,t,bf,bd(),n,r):i.data[s],c=t_(i,o,l,a,t,e);o[s]=c;let u=sl(l);return fr(l,!0),yf(a,c,l),!Cf(l)&&dl()&&xl(i,o,c,l),(fv()===0||u)&&hr(c,o),pv(),u&&(Il(i,o,l),pf(i,l,o)),r!==null&&_f(o,l),y}function m(){let e=xe();Sd()?Dv():(e=e.parent,fr(e,!1));let t=e;mv(t)&&yv(),hv();let n=ye();return n.firstCreatePass&&$f(n,t),t.classesWithoutHost!=null&&kv(t)&&Vu(n,t,B(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Ov(t)&&Vu(n,t,B(),t.stylesWithoutHost,!1),m}function te(e,t,n,r){return y(e,t,n,r),m(),te}var t_=(e,t,n,r,o,i)=>(fl(!0),gf(r,o,Mv()));function Me(){return B()}var Yo="en-US";var n_=Yo;function r_(e){typeof e=="string"&&(n_=e.toLowerCase().replace(/_/g,"-"))}function Bu(e,t,n){return function r(o){if(o===Function)return n;let i=mn(e)?We(e.index,t):t;Nl(i,5);let s=t[he],a=Hu(t,s,n,o),l=r.__ngNextListenerFn__;for(;l;)a=Hu(t,s,l,o)&&a,l=l.__ngNextListenerFn__;return a}}function Hu(e,t,n,r){let o=N(null);try{return L(6,t,n),n(r)!==!1}catch(i){return o_(e,i),!1}finally{L(7,t,n),N(o)}}function o_(e,t){let n=e[ln],r=n?n.get(Xe,null):null;r&&r.handleError(t)}function Uu(e,t,n,r,o,i){let s=t[n],a=t[k],c=a.data[n].outputs[r],u=s[c],f=a.firstCreatePass?Id(a):null,p=_d(t),d=u.subscribe(i),h=p.length;p.push(i,d),f&&f.push(o,e.index,h,-(h+1))}function z(e,t,n,r){let o=B(),i=ye(),s=xe();return Qf(i,o,o[J],s,e,t,r),z}function i_(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[ko],l=o[i+2];return a.length>l?a[l]:null}typeof s=="string"&&(i+=2)}return null}function Qf(e,t,n,r,o,i,s){let a=sl(r),c=e.firstCreatePass?Id(e):null,u=_d(t),f=!0;if(r.type&3||s){let p=ze(r,t),d=s?s(p):p,h=u.length,g=s?I=>s($e(I[r.index])):r.index,v=null;if(!s&&a&&(v=i_(e,t,o,r.index)),v!==null){let I=v.__ngLastListenerFn__||v;I.__ngNextListenerFn__=i,v.__ngLastListenerFn__=i,f=!1}else{i=Bu(r,t,i),mD(t,d,o,i);let I=n.listen(d,o,i);u.push(i,I),c&&c.push(o,g,h,h+1)}}else i=Bu(r,t,i);if(f){let p=r.outputs?.[o],d=r.hostDirectiveOutputs?.[o];if(d&&d.length)for(let h=0;h<d.length;h+=2){let g=d[h],v=d[h+1];Uu(r,t,g,v,o,i)}if(p&&p.length)for(let h of p)Uu(r,t,h,o,o,i)}}function F(e=1){return xv(e)}function Xf(e){let t=wv();return lv(t,He+e)}function R(e,t=""){let n=B(),r=ye(),o=e+He,i=r.firstCreatePass?Al(r,o,1,t,null):r.data[o],s=s_(r,n,i,t,e);n[o]=s,dl()&&xl(r,n,s,i),fr(i,!1)}var s_=(e,t,n,r,o)=>(fl(!0),ND(t[J],r));function qe(e){return En("",e,""),qe}function En(e,t,n){let r=B(),o=VE(r,e,t,n);return o!==Ht&&a_(r,Dn(),o),En}function a_(e,t,n){let r=yd(t,e);AD(e[J],r,n)}function De(e,t,n){ef(t)&&(t=t());let r=B(),o=oi();if(ht(r,o,t)){let i=ye(),s=ul();If(i,s,r,e,t,r[J],n,!1)}return De}function Ne(e,t){let n=ef(e);return n&&e.set(t),n}function we(e,t){let n=B(),r=ye(),o=xe();return Qf(r,n,n[J],o,e,t),we}function l_(e,t,n){let r=ye();if(r.firstCreatePass){let o=Ue(e);qa(n,r.data,r.blueprint,o,!0),qa(t,r.data,r.blueprint,o,!1)}}function qa(e,t,n,r,o){if(e=re(e),Array.isArray(e))for(let i=0;i<e.length;i++)qa(e[i],t,n,r,o);else{let i=ye(),s=B(),a=xe(),l=an(e)?e:re(e.provide),c=cd(e),u=a.providerIndexes&1048575,f=a.directiveStart,p=a.providerIndexes>>20;if(an(e)||!e.multi){let d=new Vt(c,o,E),h=ha(l,t,o?u:u+p,f);h===-1?(Sa(Bo(a,s),i,l),pa(i,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(d),s.push(d)):(n[h]=d,s[h]=d)}else{let d=ha(l,t,u+p,f),h=ha(l,t,u,u+p),g=d>=0&&n[d],v=h>=0&&n[h];if(o&&!v||!o&&!g){Sa(Bo(a,s),i,l);let I=d_(o?u_:c_,n.length,o,r,c);!o&&v&&(n[h].providerFactory=I),pa(i,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(I),s.push(I)}else{let I=ep(n[o?h:d],c,!o&&r);pa(i,e,d>-1?d:h,I)}!o&&r&&v&&n[h].componentProviders++}}}function pa(e,t,n,r){let o=an(t),i=Ky(t);if(o||i){let l=(i?re(t.useClass):t).prototype.ngOnDestroy;if(l){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=c.indexOf(n);u===-1?c.push(n,[r,l]):c[u+1].push(r,l)}else c.push(n,l)}}}function ep(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ha(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function c_(e,t,n,r,o){return Za(this.multi,[])}function u_(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,l=Ho(r,r[k],this.providerFactory.index,o);s=l.slice(0,a),Za(i,s);for(let c=a;c<l.length;c++)s.push(l[c])}else s=[],Za(i,s);return s}function Za(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function d_(e,t,n,r,o){let i=new Vt(e,n,E);return i.multi=[],i.index=t,i.componentProviders=0,ep(i,o,r&&!n),i}function rt(e,t=[]){return n=>{n.providersResolver=(r,o)=>l_(r,o?o(e):e,t)}}function yr(e,t,n,r){return f_(B(),xd(),e,t,n,r)}function _n(e,t,n,r,o){return p_(B(),xd(),e,t,n,r,o)}function tp(e,t){let n=e[t];return n===Ht?void 0:n}function f_(e,t,n,r,o,i){let s=t+n;return ht(e,s,o)?Zf(e,s+1,i?r.call(i,o):r(o)):tp(e,s+1)}function p_(e,t,n,r,o,i,s){let a=t+n;return SE(e,a,o,i)?Zf(e,a+2,s?r.call(s,o,i):r(o,i)):tp(e,a+2)}var h_=(()=>{class e{zone=S(ee);changeDetectionScheduler=S(ar);applicationRef=S(pn);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function g_({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new ee(G(P({},m_()),{scheduleInRootZone:n})),[{provide:ee,useFactory:e},{provide:Mo,multi:!0,useFactory:()=>{let r=S(h_,{optional:!0});return()=>r.initialize()}},{provide:Mo,multi:!0,useFactory:()=>{let r=S(y_);return()=>{r.initialize()}}},t===!0?{provide:Yd,useValue:!0}:[],{provide:Jd,useValue:n??qd}]}function m_(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var y_=(()=>{class e{subscription=new ne;initialized=!1;zone=S(ee);pendingTasks=S(Bt);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(()=>{ee.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ee.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var v_=(()=>{class e{appRef=S(pn);taskService=S(Bt);ngZone=S(ee);zonelessEnabled=S(Kd);tracing=S(si,{optional:!0});disableScheduling=S(Yd,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ne;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get($o):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(S(Jd,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Aa||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Eu:Qd;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get($o+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Eu(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function D_(){return typeof $localize<"u"&&$localize.locale||Yo}var Rl=new w("",{providedIn:"root",factory:()=>S(Rl,x.Optional|x.SkipSelf)||D_()});var Ka=new w(""),w_=new w("");function Xn(e){return!e.moduleRef}function E_(e){let t=Xn(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ee);return n.run(()=>{Xn(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Xe,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Xn(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Ka);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Ka);s.add(i),e.moduleRef.onDestroy(()=>{Io(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return I_(r,n,()=>{let i=t.get(Jf);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Rl,Yo);if(r_(s||Yo),!t.get(w_,!0))return Xn(e)?t.get(pn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Xn(e)){let l=t.get(pn);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return __(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function __(e,t){let n=e.injector.get(pn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new _(-403,!1);t.push(e)}function I_(e,t,n){try{let r=n();return mr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var bo=null;function b_(e=[],t){return dn.create({name:t,providers:[{provide:Xo,useValue:"platform"},{provide:Ka,useValue:new Set([()=>bo=null])},...e]})}function C_(e=[]){if(bo)return bo;let t=b_(e);return bo=t,RE(),S_(t),t}function S_(e){let t=e.get(yl,null);ei(e,()=>{t?.forEach(n=>n())})}var vr=(()=>{class e{static __NG_ELEMENT_ID__=T_}return e})();function T_(e){return x_(xe(),B(),(e&16)===16)}function x_(e,t,n){if(mn(e)&&!n){let r=We(e.index,t);return new lr(r,r)}else if(e.type&175){let r=t[Be];return new lr(r,t)}return null}var Ya=class{constructor(){}supports(t){return qf(t)}create(t){return new Ja(t)}},M_=(e,t)=>t,Ja=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||M_}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<$u(r,o,i)?n:r,a=$u(s,o,i),l=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let c=a-o,u=l-o;if(c!=u){for(let p=0;p<c;p++){let d=p<i.length?i[p]:i[p]=0,h=d+p;u<=h&&h<c&&(i[p]=d+1)}let f=s.previousIndex;i[f]=u-c}}a!==l&&t(s,a,l)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!qf(t))throw new _(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,bE(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Qa(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}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(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Jo),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Jo),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Qa=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}},Xa=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Jo=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Xa,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function $u(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function Wu(){return new Fl([new Ya])}var Fl=(()=>{class e{factories;static \u0275prov=O({token:e,providedIn:"root",factory:Wu});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||Wu()),deps:[[e,new jy,new Vy]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new _(901,!1)}}return e})();function np(e){L(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=C_(r),i=[g_({}),{provide:ar,useExisting:v_},...n||[]],s=new Zo({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return E_({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}finally{L(9)}}function Pl(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function ot(e){return Us(e)}function Dr(e,t){return Ls(e,t?.equal)}var Gu=class{[Ae];constructor(t){this[Ae]=t}destroy(){this[Ae].destroy()}};var ge=new w("");var rp=null;function vt(){return rp}function Ll(e){rp??=e}var wr=class{};var Vl=/\s+/,op=[],Er=(()=>{class e{_ngEl;_renderer;initialClasses=op;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(Vl):op}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Vl):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(Vl).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||e)(E(mt),E(Ut))};static \u0275dir=q({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var pi=class{$implicit;ngForOf;index;count;constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}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}},In=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new pi(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),ip(a,o)}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);ip(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(E(ui),E(ci),E(Fl))};static \u0275dir=q({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function ip(e,t){e.context.$implicit=t.item}var _r=(()=>{class e{_viewContainer;_context=new hi;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){sp(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){sp(n,!1),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(E(ui),E(ci))};static \u0275dir=q({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),hi=class{$implicit=null;ngIf=null};function sp(e,t){if(e&&!e.createEmbeddedView)throw new _(2020,!1)}var bn=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=yt({type:e});static \u0275inj=gt({})}return e})();function Ir(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var jl="browser",ap="server";function gi(e){return e===ap}var $t=class{};var N_=typeof global=="object"&&global&&global.Object===Object&&global,mi=N_;var A_=typeof self=="object"&&self&&self.Object===Object&&self,k_=mi||A_||Function("return this")(),Z=k_;var O_=Z.Symbol,se=O_;var cp=Object.prototype,R_=cp.hasOwnProperty,F_=cp.toString,br=se?se.toStringTag:void 0;function P_(e){var t=R_.call(e,br),n=e[br];try{e[br]=void 0;var r=!0}catch{}var o=F_.call(e);return r&&(t?e[br]=n:delete e[br]),o}var up=P_;var L_=Object.prototype,V_=L_.toString;function j_(e){return V_.call(e)}var dp=j_;var B_="[object Null]",H_="[object Undefined]",fp=se?se.toStringTag:void 0;function U_(e){return e==null?e===void 0?H_:B_:fp&&fp in Object(e)?up(e):dp(e)}var Le=U_;function $_(e){return e!=null&&typeof e=="object"}var ae=$_;var W_="[object Symbol]";function G_(e){return typeof e=="symbol"||ae(e)&&Le(e)==W_}var Dt=G_;function z_(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var pp=z_;var q_=Array.isArray,Q=q_;var Z_=1/0,hp=se?se.prototype:void 0,gp=hp?hp.toString:void 0;function mp(e){if(typeof e=="string")return e;if(Q(e))return pp(e,mp)+"";if(Dt(e))return gp?gp.call(e):"";var t=e+"";return t=="0"&&1/e==-Z_?"-0":t}var yp=mp;var K_=/\s/;function Y_(e){for(var t=e.length;t--&&K_.test(e.charAt(t)););return t}var vp=Y_;var J_=/^\s+/;function Q_(e){return e&&e.slice(0,vp(e)+1).replace(J_,"")}var Dp=Q_;function X_(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var le=X_;var wp=NaN,eI=/^[-+]0x[0-9a-f]+$/i,tI=/^0b[01]+$/i,nI=/^0o[0-7]+$/i,rI=parseInt;function oI(e){if(typeof e=="number")return e;if(Dt(e))return wp;if(le(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=le(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Dp(e);var n=tI.test(e);return n||nI.test(e)?rI(e.slice(2),n?2:8):eI.test(e)?wp:+e}var Ep=oI;var _p=1/0,iI=17976931348623157e292;function sI(e){if(!e)return e===0?e:0;if(e=Ep(e),e===_p||e===-_p){var t=e<0?-1:1;return t*iI}return e===e?e:0}var Ip=sI;function aI(e){var t=Ip(e),n=t%1;return t===t?n?t-n:t:0}var bp=aI;function lI(e){return e}var Cp=lI;var cI="[object AsyncFunction]",uI="[object Function]",dI="[object GeneratorFunction]",fI="[object Proxy]";function pI(e){if(!le(e))return!1;var t=Le(e);return t==uI||t==dI||t==cI||t==fI}var yi=pI;var hI=Z["__core-js_shared__"],vi=hI;var Sp=function(){var e=/[^.]+$/.exec(vi&&vi.keys&&vi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function gI(e){return!!Sp&&Sp in e}var Tp=gI;var mI=Function.prototype,yI=mI.toString;function vI(e){if(e!=null){try{return yI.call(e)}catch{}try{return e+""}catch{}}return""}var it=vI;var DI=/[\\^$.*+?()[\]{}|]/g,wI=/^\[object .+?Constructor\]$/,EI=Function.prototype,_I=Object.prototype,II=EI.toString,bI=_I.hasOwnProperty,CI=RegExp("^"+II.call(bI).replace(DI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function SI(e){if(!le(e)||Tp(e))return!1;var t=yi(e)?CI:wI;return t.test(it(e))}var xp=SI;function TI(e,t){return e?.[t]}var Mp=TI;function xI(e,t){var n=Mp(e,t);return xp(n)?n:void 0}var me=xI;var MI=me(Z,"WeakMap"),Di=MI;var Np=Object.create,NI=function(){function e(){}return function(t){if(!le(t))return{};if(Np)return Np(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Ap=NI;function AI(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var kp=AI;var kI=function(){try{var e=me(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Bl=kI;function OI(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Op=OI;function RI(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}var Rp=RI;var FI=9007199254740991,PI=/^(?:0|[1-9]\d*)$/;function LI(e,t){var n=typeof e;return t=t??FI,!!t&&(n=="number"||n!="symbol"&&PI.test(e))&&e>-1&&e%1==0&&e<t}var wi=LI;function VI(e,t,n){t=="__proto__"&&Bl?Bl(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Ei=VI;function jI(e,t){return e===t||e!==e&&t!==t}var Cn=jI;var BI=Object.prototype,HI=BI.hasOwnProperty;function UI(e,t,n){var r=e[t];(!(HI.call(e,t)&&Cn(r,n))||n===void 0&&!(t in e))&&Ei(e,t,n)}var _i=UI;function $I(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=r?r(n[a],e[a],a,n,e):void 0;l===void 0&&(l=e[a]),o?Ei(n,a,l):_i(n,a,l)}return n}var wt=$I;var WI=9007199254740991;function GI(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=WI}var Sn=GI;function zI(e){return e!=null&&Sn(e.length)&&!yi(e)}var Tn=zI;var qI=Object.prototype;function ZI(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||qI;return e===n}var xn=ZI;function KI(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Fp=KI;var YI="[object Arguments]";function JI(e){return ae(e)&&Le(e)==YI}var Hl=JI;var Pp=Object.prototype,QI=Pp.hasOwnProperty,XI=Pp.propertyIsEnumerable,eb=Hl(function(){return arguments}())?Hl:function(e){return ae(e)&&QI.call(e,"callee")&&!XI.call(e,"callee")},Ii=eb;function tb(){return!1}var Lp=tb;var Bp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vp=Bp&&typeof module=="object"&&module&&!module.nodeType&&module,nb=Vp&&Vp.exports===Bp,jp=nb?Z.Buffer:void 0,rb=jp?jp.isBuffer:void 0,ob=rb||Lp,Wt=ob;var ib="[object Arguments]",sb="[object Array]",ab="[object Boolean]",lb="[object Date]",cb="[object Error]",ub="[object Function]",db="[object Map]",fb="[object Number]",pb="[object Object]",hb="[object RegExp]",gb="[object Set]",mb="[object String]",yb="[object WeakMap]",vb="[object ArrayBuffer]",Db="[object DataView]",wb="[object Float32Array]",Eb="[object Float64Array]",_b="[object Int8Array]",Ib="[object Int16Array]",bb="[object Int32Array]",Cb="[object Uint8Array]",Sb="[object Uint8ClampedArray]",Tb="[object Uint16Array]",xb="[object Uint32Array]",$={};$[wb]=$[Eb]=$[_b]=$[Ib]=$[bb]=$[Cb]=$[Sb]=$[Tb]=$[xb]=!0;$[ib]=$[sb]=$[vb]=$[ab]=$[Db]=$[lb]=$[cb]=$[ub]=$[db]=$[fb]=$[pb]=$[hb]=$[gb]=$[mb]=$[yb]=!1;function Mb(e){return ae(e)&&Sn(e.length)&&!!$[Le(e)]}var Hp=Mb;function Nb(e){return function(t){return e(t)}}var Mn=Nb;var Up=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Cr=Up&&typeof module=="object"&&module&&!module.nodeType&&module,Ab=Cr&&Cr.exports===Up,Ul=Ab&&mi.process,kb=function(){try{var e=Cr&&Cr.require&&Cr.require("util").types;return e||Ul&&Ul.binding&&Ul.binding("util")}catch{}}(),st=kb;var $p=st&&st.isTypedArray,Ob=$p?Mn($p):Hp,bi=Ob;var Rb=Object.prototype,Fb=Rb.hasOwnProperty;function Pb(e,t){var n=Q(e),r=!n&&Ii(e),o=!n&&!r&&Wt(e),i=!n&&!r&&!o&&bi(e),s=n||r||o||i,a=s?Fp(e.length,String):[],l=a.length;for(var c in e)(t||Fb.call(e,c))&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||wi(c,l)))&&a.push(c);return a}var Ci=Pb;function Lb(e,t){return function(n){return e(t(n))}}var Si=Lb;var Vb=Si(Object.keys,Object),Wp=Vb;var jb=Object.prototype,Bb=jb.hasOwnProperty;function Hb(e){if(!xn(e))return Wp(e);var t=[];for(var n in Object(e))Bb.call(e,n)&&n!="constructor"&&t.push(n);return t}var Gp=Hb;function Ub(e){return Tn(e)?Ci(e):Gp(e)}var Ke=Ub;function $b(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var zp=$b;var Wb=Object.prototype,Gb=Wb.hasOwnProperty;function zb(e){if(!le(e))return zp(e);var t=xn(e),n=[];for(var r in e)r=="constructor"&&(t||!Gb.call(e,r))||n.push(r);return n}var qp=zb;function qb(e){return Tn(e)?Ci(e,!0):qp(e)}var Nn=qb;var Zb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Kb=/^\w*$/;function Yb(e,t){if(Q(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Dt(e)?!0:Kb.test(e)||!Zb.test(e)||t!=null&&e in Object(t)}var An=Yb;var Jb=me(Object,"create"),at=Jb;function Qb(){this.__data__=at?at(null):{},this.size=0}var Zp=Qb;function Xb(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Kp=Xb;var eC="__lodash_hash_undefined__",tC=Object.prototype,nC=tC.hasOwnProperty;function rC(e){var t=this.__data__;if(at){var n=t[e];return n===eC?void 0:n}return nC.call(t,e)?t[e]:void 0}var Yp=rC;var oC=Object.prototype,iC=oC.hasOwnProperty;function sC(e){var t=this.__data__;return at?t[e]!==void 0:iC.call(t,e)}var Jp=sC;var aC="__lodash_hash_undefined__";function lC(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=at&&t===void 0?aC:t,this}var Qp=lC;function kn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}kn.prototype.clear=Zp;kn.prototype.delete=Kp;kn.prototype.get=Yp;kn.prototype.has=Jp;kn.prototype.set=Qp;var $l=kn;function cC(){this.__data__=[],this.size=0}var Xp=cC;function uC(e,t){for(var n=e.length;n--;)if(Cn(e[n][0],t))return n;return-1}var Et=uC;var dC=Array.prototype,fC=dC.splice;function pC(e){var t=this.__data__,n=Et(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():fC.call(t,n,1),--this.size,!0}var eh=pC;function hC(e){var t=this.__data__,n=Et(t,e);return n<0?void 0:t[n][1]}var th=hC;function gC(e){return Et(this.__data__,e)>-1}var nh=gC;function mC(e,t){var n=this.__data__,r=Et(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var rh=mC;function On(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}On.prototype.clear=Xp;On.prototype.delete=eh;On.prototype.get=th;On.prototype.has=nh;On.prototype.set=rh;var _t=On;var yC=me(Z,"Map"),It=yC;function vC(){this.size=0,this.__data__={hash:new $l,map:new(It||_t),string:new $l}}var oh=vC;function DC(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var ih=DC;function wC(e,t){var n=e.__data__;return ih(t)?n[typeof t=="string"?"string":"hash"]:n.map}var bt=wC;function EC(e){var t=bt(this,e).delete(e);return this.size-=t?1:0,t}var sh=EC;function _C(e){return bt(this,e).get(e)}var ah=_C;function IC(e){return bt(this,e).has(e)}var lh=IC;function bC(e,t){var n=bt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var ch=bC;function Rn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Rn.prototype.clear=oh;Rn.prototype.delete=sh;Rn.prototype.get=ah;Rn.prototype.has=lh;Rn.prototype.set=ch;var Gt=Rn;var CC="Expected a function";function Wl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(CC);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Wl.Cache||Gt),n}Wl.Cache=Gt;var uh=Wl;var SC=500;function TC(e){var t=uh(e,function(r){return n.size===SC&&n.clear(),r}),n=t.cache;return t}var dh=TC;var xC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,MC=/\\(\\)?/g,NC=dh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(xC,function(n,r,o,i){t.push(o?i.replace(MC,"$1"):r||n)}),t}),fh=NC;function AC(e){return e==null?"":yp(e)}var ph=AC;function kC(e,t){return Q(e)?e:An(e,t)?[e]:fh(ph(e))}var Ti=kC;var OC=1/0;function RC(e){if(typeof e=="string"||Dt(e))return e;var t=e+"";return t=="0"&&1/e==-OC?"-0":t}var Ct=RC;function FC(e,t){t=Ti(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ct(t[n++])];return n&&n==r?e:void 0}var xi=FC;function PC(e,t,n){var r=e==null?void 0:xi(e,t);return r===void 0?n:r}var hh=PC;function LC(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Mi=LC;var VC=Si(Object.getPrototypeOf,Object),Ni=VC;function jC(){this.__data__=new _t,this.size=0}var gh=jC;function BC(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var mh=BC;function HC(e){return this.__data__.get(e)}var yh=HC;function UC(e){return this.__data__.has(e)}var vh=UC;var $C=200;function WC(e,t){var n=this.__data__;if(n instanceof _t){var r=n.__data__;if(!It||r.length<$C-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gt(r)}return n.set(e,t),this.size=n.size,this}var Dh=WC;function Fn(e){var t=this.__data__=new _t(e);this.size=t.size}Fn.prototype.clear=gh;Fn.prototype.delete=mh;Fn.prototype.get=yh;Fn.prototype.has=vh;Fn.prototype.set=Dh;var St=Fn;function GC(e,t){return e&&wt(t,Ke(t),e)}var wh=GC;function zC(e,t){return e&&wt(t,Nn(t),e)}var Eh=zC;var Ch=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_h=Ch&&typeof module=="object"&&module&&!module.nodeType&&module,qC=_h&&_h.exports===Ch,Ih=qC?Z.Buffer:void 0,bh=Ih?Ih.allocUnsafe:void 0;function ZC(e,t){if(t)return e.slice();var n=e.length,r=bh?bh(n):new e.constructor(n);return e.copy(r),r}var Sh=ZC;function KC(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}var Th=KC;function YC(){return[]}var Ai=YC;var JC=Object.prototype,QC=JC.propertyIsEnumerable,xh=Object.getOwnPropertySymbols,XC=xh?function(e){return e==null?[]:(e=Object(e),Th(xh(e),function(t){return QC.call(e,t)}))}:Ai,Pn=XC;function eS(e,t){return wt(e,Pn(e),t)}var Mh=eS;var tS=Object.getOwnPropertySymbols,nS=tS?function(e){for(var t=[];e;)Mi(t,Pn(e)),e=Ni(e);return t}:Ai,ki=nS;function rS(e,t){return wt(e,ki(e),t)}var Nh=rS;function oS(e,t,n){var r=t(e);return Q(e)?r:Mi(r,n(e))}var Oi=oS;function iS(e){return Oi(e,Ke,Pn)}var Sr=iS;function sS(e){return Oi(e,Nn,ki)}var Ah=sS;var aS=me(Z,"DataView"),Ri=aS;var lS=me(Z,"Promise"),Fi=lS;var cS=me(Z,"Set"),Pi=cS;var kh="[object Map]",uS="[object Object]",Oh="[object Promise]",Rh="[object Set]",Fh="[object WeakMap]",Ph="[object DataView]",dS=it(Ri),fS=it(It),pS=it(Fi),hS=it(Pi),gS=it(Di),zt=Le;(Ri&&zt(new Ri(new ArrayBuffer(1)))!=Ph||It&&zt(new It)!=kh||Fi&&zt(Fi.resolve())!=Oh||Pi&&zt(new Pi)!=Rh||Di&&zt(new Di)!=Fh)&&(zt=function(e){var t=Le(e),n=t==uS?e.constructor:void 0,r=n?it(n):"";if(r)switch(r){case dS:return Ph;case fS:return kh;case pS:return Oh;case hS:return Rh;case gS:return Fh}return t});var lt=zt;var mS=Object.prototype,yS=mS.hasOwnProperty;function vS(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&yS.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Lh=vS;var DS=Z.Uint8Array,Ln=DS;function wS(e){var t=new e.constructor(e.byteLength);return new Ln(t).set(new Ln(e)),t}var Vn=wS;function ES(e,t){var n=t?Vn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Vh=ES;var _S=/\w*$/;function IS(e){var t=new e.constructor(e.source,_S.exec(e));return t.lastIndex=e.lastIndex,t}var jh=IS;var Bh=se?se.prototype:void 0,Hh=Bh?Bh.valueOf:void 0;function bS(e){return Hh?Object(Hh.call(e)):{}}var Uh=bS;function CS(e,t){var n=t?Vn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var $h=CS;var SS="[object Boolean]",TS="[object Date]",xS="[object Map]",MS="[object Number]",NS="[object RegExp]",AS="[object Set]",kS="[object String]",OS="[object Symbol]",RS="[object ArrayBuffer]",FS="[object DataView]",PS="[object Float32Array]",LS="[object Float64Array]",VS="[object Int8Array]",jS="[object Int16Array]",BS="[object Int32Array]",HS="[object Uint8Array]",US="[object Uint8ClampedArray]",$S="[object Uint16Array]",WS="[object Uint32Array]";function GS(e,t,n){var r=e.constructor;switch(t){case RS:return Vn(e);case SS:case TS:return new r(+e);case FS:return Vh(e,n);case PS:case LS:case VS:case jS:case BS:case HS:case US:case $S:case WS:return $h(e,n);case xS:return new r;case MS:case kS:return new r(e);case NS:return jh(e);case AS:return new r;case OS:return Uh(e)}}var Wh=GS;function zS(e){return typeof e.constructor=="function"&&!xn(e)?Ap(Ni(e)):{}}var Gh=zS;var qS="[object Map]";function ZS(e){return ae(e)&&lt(e)==qS}var zh=ZS;var qh=st&&st.isMap,KS=qh?Mn(qh):zh,Zh=KS;var YS="[object Set]";function JS(e){return ae(e)&&lt(e)==YS}var Kh=JS;var Yh=st&&st.isSet,QS=Yh?Mn(Yh):Kh,Jh=QS;var XS=1,e0=2,t0=4,Qh="[object Arguments]",n0="[object Array]",r0="[object Boolean]",o0="[object Date]",i0="[object Error]",Xh="[object Function]",s0="[object GeneratorFunction]",a0="[object Map]",l0="[object Number]",eg="[object Object]",c0="[object RegExp]",u0="[object Set]",d0="[object String]",f0="[object Symbol]",p0="[object WeakMap]",h0="[object ArrayBuffer]",g0="[object DataView]",m0="[object Float32Array]",y0="[object Float64Array]",v0="[object Int8Array]",D0="[object Int16Array]",w0="[object Int32Array]",E0="[object Uint8Array]",_0="[object Uint8ClampedArray]",I0="[object Uint16Array]",b0="[object Uint32Array]",V={};V[Qh]=V[n0]=V[h0]=V[g0]=V[r0]=V[o0]=V[m0]=V[y0]=V[v0]=V[D0]=V[w0]=V[a0]=V[l0]=V[eg]=V[c0]=V[u0]=V[d0]=V[f0]=V[E0]=V[_0]=V[I0]=V[b0]=!0;V[i0]=V[Xh]=V[p0]=!1;function Li(e,t,n,r,o,i){var s,a=t&XS,l=t&e0,c=t&t0;if(n&&(s=o?n(e,r,o,i):n(e)),s!==void 0)return s;if(!le(e))return e;var u=Q(e);if(u){if(s=Lh(e),!a)return kp(e,s)}else{var f=lt(e),p=f==Xh||f==s0;if(Wt(e))return Sh(e,a);if(f==eg||f==Qh||p&&!o){if(s=l||p?{}:Gh(e),!a)return l?Nh(e,Eh(s,e)):Mh(e,wh(s,e))}else{if(!V[f])return o?e:{};s=Wh(e,f,a)}}i||(i=new St);var d=i.get(e);if(d)return d;i.set(e,s),Jh(e)?e.forEach(function(v){s.add(Li(v,t,n,v,e,i))}):Zh(e)&&e.forEach(function(v,I){s.set(I,Li(v,t,n,I,e,i))});var h=c?l?Ah:Sr:l?Nn:Ke,g=u?void 0:h(e);return Op(g||e,function(v,I){g&&(I=v,v=e[I]),_i(s,I,Li(v,t,n,I,e,i))}),s}var tg=Li;var C0=1,S0=4;function T0(e){return tg(e,C0|S0)}var Gl=T0;var x0="__lodash_hash_undefined__";function M0(e){return this.__data__.set(e,x0),this}var ng=M0;function N0(e){return this.__data__.has(e)}var rg=N0;function Vi(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Gt;++t<n;)this.add(e[t])}Vi.prototype.add=Vi.prototype.push=ng;Vi.prototype.has=rg;var og=Vi;function A0(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var ig=A0;function k0(e,t){return e.has(t)}var sg=k0;var O0=1,R0=2;function F0(e,t,n,r,o,i){var s=n&O0,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,d=n&R0?new og:void 0;for(i.set(e,t),i.set(t,e);++f<a;){var h=e[f],g=t[f];if(r)var v=s?r(g,h,f,t,e,i):r(h,g,f,e,t,i);if(v!==void 0){if(v)continue;p=!1;break}if(d){if(!ig(t,function(I,Ee){if(!sg(d,Ee)&&(h===I||o(h,I,n,r,i)))return d.push(Ee)})){p=!1;break}}else if(!(h===g||o(h,g,n,r,i))){p=!1;break}}return i.delete(e),i.delete(t),p}var ji=F0;function P0(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var ag=P0;function L0(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var lg=L0;var V0=1,j0=2,B0="[object Boolean]",H0="[object Date]",U0="[object Error]",$0="[object Map]",W0="[object Number]",G0="[object RegExp]",z0="[object Set]",q0="[object String]",Z0="[object Symbol]",K0="[object ArrayBuffer]",Y0="[object DataView]",cg=se?se.prototype:void 0,zl=cg?cg.valueOf:void 0;function J0(e,t,n,r,o,i,s){switch(n){case Y0:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case K0:return!(e.byteLength!=t.byteLength||!i(new Ln(e),new Ln(t)));case B0:case H0:case W0:return Cn(+e,+t);case U0:return e.name==t.name&&e.message==t.message;case G0:case q0:return e==t+"";case $0:var a=ag;case z0:var l=r&V0;if(a||(a=lg),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=j0,s.set(e,t);var u=ji(a(e),a(t),r,o,i,s);return s.delete(e),u;case Z0:if(zl)return zl.call(e)==zl.call(t)}return!1}var ug=J0;var Q0=1,X0=Object.prototype,eT=X0.hasOwnProperty;function tT(e,t,n,r,o,i){var s=n&Q0,a=Sr(e),l=a.length,c=Sr(t),u=c.length;if(l!=u&&!s)return!1;for(var f=l;f--;){var p=a[f];if(!(s?p in t:eT.call(t,p)))return!1}var d=i.get(e),h=i.get(t);if(d&&h)return d==t&&h==e;var g=!0;i.set(e,t),i.set(t,e);for(var v=s;++f<l;){p=a[f];var I=e[p],Ee=t[p];if(r)var K=s?r(Ee,I,p,t,e,i):r(I,Ee,p,e,t,i);if(!(K===void 0?I===Ee||o(I,Ee,n,r,i):K)){g=!1;break}v||(v=p=="constructor")}if(g&&!v){var ut=e.constructor,Yt=t.constructor;ut!=Yt&&"constructor"in e&&"constructor"in t&&!(typeof ut=="function"&&ut instanceof ut&&typeof Yt=="function"&&Yt instanceof Yt)&&(g=!1)}return i.delete(e),i.delete(t),g}var dg=tT;var nT=1,fg="[object Arguments]",pg="[object Array]",Bi="[object Object]",rT=Object.prototype,hg=rT.hasOwnProperty;function oT(e,t,n,r,o,i){var s=Q(e),a=Q(t),l=s?pg:lt(e),c=a?pg:lt(t);l=l==fg?Bi:l,c=c==fg?Bi:c;var u=l==Bi,f=c==Bi,p=l==c;if(p&&Wt(e)){if(!Wt(t))return!1;s=!0,u=!1}if(p&&!u)return i||(i=new St),s||bi(e)?ji(e,t,n,r,o,i):ug(e,t,l,n,r,o,i);if(!(n&nT)){var d=u&&hg.call(e,"__wrapped__"),h=f&&hg.call(t,"__wrapped__");if(d||h){var g=d?e.value():e,v=h?t.value():t;return i||(i=new St),o(g,v,n,r,i)}}return p?(i||(i=new St),dg(e,t,n,r,o,i)):!1}var gg=oT;function mg(e,t,n,r,o){return e===t?!0:e==null||t==null||!ae(e)&&!ae(t)?e!==e&&t!==t:gg(e,t,n,r,mg,o)}var Hi=mg;var iT=1,sT=2;function aT(e,t,n,r){var o=n.length,i=o,s=!r;if(e==null)return!i;for(e=Object(e);o--;){var a=n[o];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){a=n[o];var l=a[0],c=e[l],u=a[1];if(s&&a[2]){if(c===void 0&&!(l in e))return!1}else{var f=new St;if(r)var p=r(c,u,l,e,t,f);if(!(p===void 0?Hi(u,c,iT|sT,r,f):p))return!1}}return!0}var yg=aT;function lT(e){return e===e&&!le(e)}var Ui=lT;function cT(e){for(var t=Ke(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ui(o)]}return t}var vg=cT;function uT(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var $i=uT;function dT(e){var t=vg(e);return t.length==1&&t[0][2]?$i(t[0][0],t[0][1]):function(n){return n===e||yg(n,e,t)}}var Dg=dT;function fT(e,t){return e!=null&&t in Object(e)}var wg=fT;function pT(e,t,n){t=Ti(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var s=Ct(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&Sn(o)&&wi(s,o)&&(Q(e)||Ii(e)))}var Eg=pT;function hT(e,t){return e!=null&&Eg(e,t,wg)}var _g=hT;var gT=1,mT=2;function yT(e,t){return An(e)&&Ui(t)?$i(Ct(e),t):function(n){var r=hh(n,e);return r===void 0&&r===t?_g(n,e):Hi(t,r,gT|mT)}}var Ig=yT;function vT(e){return function(t){return t?.[e]}}var bg=vT;function DT(e){return function(t){return xi(t,e)}}var Cg=DT;function wT(e){return An(e)?bg(Ct(e)):Cg(e)}var Sg=wT;function ET(e){return typeof e=="function"?e:e==null?Cp:typeof e=="object"?Q(e)?Ig(e[0],e[1]):Dg(e):Sg(e)}var Wi=ET;function _T(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var ql=_T;function IT(e){return function(t,n,r){var o=Object(t);if(!Tn(t)){var i=Wi(n,3);t=Ke(t),n=function(a){return i(o[a],a,o)}}var s=e(t,n,r);return s>-1?o[i?t[s]:s]:void 0}}var Tg=IT;var bT=Math.max;function CT(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:bp(n);return o<0&&(o=bT(r+o,0)),Rp(e,Wi(t,3),o)}var xg=CT;var ST=Tg(xg),Zl=ST;function TT(e){return e&&e.length?e[0]:void 0}var Gi=TT;var X={mreServiceBase:"https://test.kc-np.o360.cloud/Handlers/saml2.ashx",mreBaseUrl:"https://www.medicalreferenceengine.com/mre/",tokenServer:"/Token/token/",url:"/",appName:"kcApp",secret:""};var Mg=[{name:"aa_togglePhysicianPaymentType (Dev Only)",sdkVisible:!1,example:""},{name:"aa_LoadPhyNpiTaxonomy (Dev Only)",sdkVisible:!1,example:""},{name:"aa_SetEgpSortRules (Dev Only)",sdkVisible:!1,example:{includePriority:"",includeSeverity:"",includeMortality:"",includeElixhauser:"",includeHcc:"",includeRa:"",includePxPriority:""}},{name:"aa_CreateAgpInput (Dev Only)",sdkVisible:!1,example:""},{name:"acsuCloneDischargeDisposition (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuGetFacilitiesByIds (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuGetFacilitiesByUsernames (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuMergeMultiRegion (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuSaveDischargeDisposition (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuSaveWebstratUser (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"addGhostRows (Dev Only)",sdkVisible:!1,example:{includeAdmitTypeAndAdmissionSource:!1}},{name:"addRemCodes (Dev Only)",sdkVisible:!1,example:{diagnosisCodes:[{code:"B700",codeType:"REMD",label:"short label",longLabel:"Long label"}],hcpcsCodes:[{code:"12001",codeType:"REMH",label:"short label",longLabel:"Long label",units:"1",modifier1:"26",modifier2:null,modifier3:null,modifier4:null,modifier5:null}]}},{name:"swapActiveAndGhostRows (Dev Only)",sdkVisible:!1,example:""},{name:"recordMode (Dev Only)",sdkVisible:!1,example:""},{name:"addCodes",sdkVisible:!0,example:{codes:[{code:"B700",codeType:"I10CM",dxIndic1:"N"},{code:"X2C1361",codeType:"ICD10PCS",date:"2024-03-21T20:01:28.953Z"}],editedcode:null,codeSource:"encoder",documentHighlight:!0}},{name:"deleteCodes",sdkVisible:!0,example:{codes:[{uniqueId:"uniqueIdgoeshere",codeType:"I10CM"}]}},{name:"defaultSettings",sdkVisible:!1,example:""},{name:"getInputPatientClaim",sdkVisible:!1,example:""},{name:"getPayerList",sdkVisible:!0,example:{sendingFacility:"001",npi:null,payer:null,taxonomy:null,paymentType:"01"}},{name:"getPatientRecord",sdkVisible:!1,example:""},{name:"getPatientRecord-truncated",sdkVisible:!1,example:""},{name:"getOptimizerInput",sdkVisible:!1,example:""},{name:"cacAuthenticateUser (Dev Only)",sdkVisible:!1,example:{user:"UserName",pw:"EncryptedPW",isForLogin:!0}},{name:"cacChangePwd (Dev Only)",sdkVisible:!1,example:{user:"UserName",currentPw:"EncryptedPw",newPw:"EncryptedPw"}},{name:"cacGetGroups (Dev Only)",sdkVisible:!1,example:""},{name:"cacResetPwd (Dev Only)",sdkVisible:!1,example:{user:"UserName",newPw:"EncryptedPw"}},{name:"cacGetUserInfo (Dev Only)",sdkVisible:!1,example:{user:"UserName"}},{name:"cacUpdateLastLoginTime (Dev Only)",sdkVisible:!1,example:{user:12345}},{name:"callClaimsManager (Dev Only)",sdkVisible:!1,example:""},{name:"closeAllKCWindows",sdkVisible:!1,example:""},{name:"closeAllKCWindowsExceptEncoder",sdkVisible:!0,example:""},{name:"clearSelectedRow",sdkVisible:!0,example:""},{name:"clearPatientRecord",sdkVisible:!0,example:""},{name:"clearHighlight",sdkVisible:!1,example:""},{name:"editsCount",sdkVisible:!1,example:""},{name:"enableEncoder",sdkVisible:!1,example:""},{name:"disableEncoder",sdkVisible:!1,example:""},{name:"disableChildWindows",sdkVisible:!1,example:""},{name:"enableChildWindows",sdkVisible:!1,example:""},{name:"launchCodeSummaryReport",sdkVisible:!0,example:""},{name:"launchEdits",sdkVisible:!0,example:""},{name:"launchIndex",sdkVisible:!0,example:{codeType:"I10CM",phrase:"ANGINA"}},{name:"launchLogic",sdkVisible:!0,example:{codeType:"I10CM",phrase:"ANGINA"}},{name:"launchTabular",sdkVisible:!0,example:{codeType:"I10CM",code:"A000"}},{name:"launchFacilityLookup",sdkVisible:!0,example:{paymentType:"01",rateFilePath:"C:\\inetpub\\wwwroot\\HSS\\Data\\allpaykc"}},{name:"loadNotes",sdkVisible:!1,example:{AccessType:"All",codeType:"I10CM",NoteType:"Code",Identifier:"",IdentifierSearchLower:"",IdentifierSearchUpper:"",Category:"",Ids:{User:"",Facility:"",Organization:""},AllFacilities:!0}},{name:"loadOrganizationSettings",sdkVisible:!1,example:""},{name:"loadPatientRecord",sdkVisible:!0,example:""},{name:"openEncoder",sdkVisible:!0,example:""},{name:"potentialImpactDisplay (Dev Only)",sdkVisible:!1,example:""},{name:"potentialImpactClear",sdkVisible:!1,example:""},{name:"potentialImpactDisable",sdkVisible:!1,example:""},{name:"potentialImpactEnable",sdkVisible:!1,example:""},{name:"potentialImpactEnableEgp",sdkVisible:!1,example:{enabled:!1}},{name:"potentialImpactInitialize",sdkVisible:!1,example:""},{name:"resetApplication",sdkVisible:!0,example:""},{name:"savePatientRecord",sdkVisible:!0,example:""},{name:"selectRowOnHighlightClick",sdkVisible:!1,example:{uniqueId:"uniqueIdGoesHere"}},{name:"setAuthToken",sdkVisible:!1,example:""},{name:"toggleEgpCompression",sdkVisible:!1,example:{enableCompression:!1}},{name:"setChargeCapture",sdkVisible:!0,example:[{cptCode:"G0382",modifiers:"77,GA,PO",revCode:"450",startDate:"2025-2-11",units:1,codeRange:"99281-99285,99291-99292,G0380-G0384"},{cptCode:"96365",modifiers:"59,XE,XS,XU",revCode:"450",startDate:"Tue Feb 11 2025 13:25:46 GMT-0500 (Eastern Standard Time)",units:56,codeRange:"96360-96361,96365-96368,96372,96374-96376"},{cptCode:"99221",modifiers:"IN,IP,IR,IS,IX",revCode:"760",startDate:"2025-02-11T00:00:00.000Z",units:9999,codeRange:"99221-99223,99231-99233,99234-99236, 99238-99239,G0378 \u2013 G0379"}]},{name:"showCurrentConfig (Dev Only)",sdkVisible:!1,example:""},{name:"updateAbstractInfo",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"HCPCS",abstractInfo:"A"}]},{name:"updateBaseUrl",sdkVisible:!1,example:""},{name:"updateCodes",sdkVisible:!0,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",dxIndic1:"Y"},{uniqueId:"uniqueIdGoesHere",codeType:"ICD10PCS",date:"2024-03-21T20:01:28.953Z",selectedProvider:"freeFormProvider"},{uniqueId:"uniqueIdGoesHere",codeType:"HCPCS",date:"2024-03-21T20:01:28.953Z",selectedProvider:"freeFormProvider",revCode:"0250",units:"1",modifier1:{value:"23"},i10Reimbursement:{charges:"$1,000.00"},i9Reimbursement:{charges:"$1,000.00"}}]},{name:"updateComments",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",comments:"C"}]},{name:"updateDemographics",sdkVisible:!0,example:""},{name:"updateDocumentCount",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",documentCount:"3"}]},{name:"updateExcludeFromBilling",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"HCPCS",excludeFromBilling:"X"}]},{name:"updateRedFlag",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",redFlag:"F"}]},{name:"hasCriticalEdits",sdkVisible:!0,example:""},{name:"hasEdits",sdkVisible:!0,example:""},{name:"ReloadMainPod",sdkVisible:!1,example:""},{name:"ReloadCodeSummary",sdkVisible:!1,example:""},{name:"ReloadDemographics",sdkVisible:!1,example:""},{name:"ReloadEdits",sdkVisible:!1,example:""},{name:"ReloadReimbursement",sdkVisible:!1,example:""},{name:"logout",sdkVisible:!0,example:""},{name:"getRowSpecificInfo",sdkVisible:!0,example:["uniqueId1GoesHere","uniqueId2GoesHere"]},{name:"isEditGroupPriceInProgress",sdkVisible:!1,example:""},{name:"addCodesNoEdit",sdkVisible:!1,example:{codes:[{code:"B700",codeType:"I10CM",dxIndic1:"N"},{code:"X2C1361",codeType:"ICD10PCS",date:"2024-03-21T20:01:28.953Z"}]}},{name:"setQueryImpactVisibility",sdkVisible:!1,example:{isVisible:!0}},{name:"setSyncVisibility",sdkVisible:!1,example:{isVisible:!0}},{name:"showScratchCodeState",sdkVisible:!1,example:{isVisible:!0}},{name:"showQueryHistoryState",sdkVisible:!1,example:{isVisible:!0}},{name:"showQueryHistoryBtn",sdkVisible:!1,example:{isVisible:!0}},{name:"updateCptWithRange",sdkVisible:!1,example:{codes:[{code:"",units:""}],emCodeRanges:[{from:"",to:""}]}},{name:"launchModal (Dev Only)",sdkVisible:!1,example:{messageType:"info",title:"Test Modal",message:["Test Modal"]}},{name:"simulateKcVersion (Dev Only)",sdkVisible:!1,example:{kcVersion:"1.2.3"}},{name:"startEnvironmentPromiseRace (Dev Only)",sdkVisible:!1,example:{alternateUrl:"https://dev.kc-np.o360.cloud/v202501"}}];var Vg=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(E(Ut),E(mt))};static \u0275dir=q({type:e})}return e})(),ns=(()=>{class e extends Vg{static \u0275fac=(()=>{let n;return function(o){return(n||(n=wn(e)))(o||e)}})();static \u0275dir=q({type:e,features:[ve]})}return e})(),Hn=new w(""),NT={provide:Hn,useExisting:Fe(()=>Xl),multi:!0},Xl=(()=>{class e extends ns{writeValue(n){this.setProperty("checked",n)}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wn(e)))(o||e)}})();static \u0275dir=q({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){r&1&&z("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[rt([NT]),ve]})}return e})(),AT={provide:Hn,useExisting:Fe(()=>Un),multi:!0};function kT(){let e=vt()?vt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var OT=new w(""),Un=(()=>{class e extends Vg{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!kT())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(E(Ut),E(mt),E(OT,8))};static \u0275dir=q({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&&z("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[rt([AT]),ve]})}return e})();function ec(e){return e==null||tc(e)===0}function tc(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var rs=new w(""),nc=new w(""),RT=/^(?=.{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])?)*$/,Ar=class{static min(t){return FT(t)}static max(t){return PT(t)}static required(t){return jg(t)}static requiredTrue(t){return LT(t)}static email(t){return VT(t)}static minLength(t){return jT(t)}static maxLength(t){return BT(t)}static pattern(t){return HT(t)}static nullValidator(t){return qi()}static compose(t){return Gg(t)}static composeAsync(t){return qg(t)}};function FT(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function PT(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function jg(e){return ec(e.value)?{required:!0}:null}function LT(e){return e.value===!0?null:{required:!0}}function VT(e){return ec(e.value)||RT.test(e.value)?null:{email:!0}}function jT(e){return t=>{let n=t.value?.length??tc(t.value);return n===null||n===0?null:n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}function BT(e){return t=>{let n=t.value?.length??tc(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function HT(e){if(!e)return qi;let t,n;return typeof e=="string"?(n="",e.charAt(0)!=="^"&&(n+="^"),n+=e,e.charAt(e.length-1)!=="$"&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(ec(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function qi(e){return null}function Bg(e){return e!=null}function Hg(e){return mr(e)?At(e):e}function Ug(e){let t={};return e.forEach(n=>{t=n!=null?P(P({},t),n):t}),Object.keys(t).length===0?null:t}function $g(e,t){return t.map(n=>n(e))}function UT(e){return!e.validate}function Wg(e){return e.map(t=>UT(t)?t:n=>t.validate(n))}function Gg(e){if(!e)return null;let t=e.filter(Bg);return t.length==0?null:function(n){return Ug($g(n,t))}}function zg(e){return e!=null?Gg(Wg(e)):null}function qg(e){if(!e)return null;let t=e.filter(Bg);return t.length==0?null:function(n){let r=$g(n,t).map(Hg);return Js(r).pipe(fe(Ug))}}function Zg(e){return e!=null?qg(Wg(e)):null}function Ng(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Kg(e){return e._rawValidators}function Yg(e){return e._rawAsyncValidators}function Kl(e){return e?Array.isArray(e)?e:[e]:[]}function Zi(e,t){return Array.isArray(e)?e.includes(t):e===t}function Ag(e,t){let n=Kl(t);return Kl(e).forEach(o=>{Zi(n,o)||n.push(o)}),n}function kg(e,t){return Kl(t).filter(n=>!Zi(e,n))}var Ki=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=zg(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Zg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},qt=class extends Ki{name;get formDirective(){return null}get path(){return null}},Zt=class extends Ki{_parent=null;name=null;valueAccessor=null},Yi=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},$T={"[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"},OH=G(P({},$T),{"[class.ng-submitted]":"isSubmitted"}),os=(()=>{class e extends Yi{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(E(Zt,2))};static \u0275dir=q({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&fi("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)},standalone:!1,features:[ve]})}return e})(),Jg=(()=>{class e extends Yi{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(E(qt,10))};static \u0275dir=q({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&fi("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)},standalone:!1,features:[ve]})}return e})();var Tr="VALID",zi="INVALID",jn="PENDING",xr="DISABLED",Tt=class{},Ji=class extends Tt{value;source;constructor(t,n){super(),this.value=t,this.source=n}},Mr=class extends Tt{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},Nr=class extends Tt{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Bn=class extends Tt{status;source;constructor(t,n){super(),this.status=t,this.source=n}},Yl=class extends Tt{source;constructor(t){super(),this.source=t}},Jl=class extends Tt{source;constructor(t){super(),this.source=t}};function Qg(e){return(is(e)?e.validators:e)||null}function WT(e){return Array.isArray(e)?zg(e):e||null}function Xg(e,t){return(is(t)?t.asyncValidators:e)||null}function GT(e){return Array.isArray(e)?Zg(e):e||null}function is(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function zT(e,t,n){let r=e.controls;if(!(t?Object.keys(r):r).length)throw new _(1e3,"");if(!r[n])throw new _(1001,"")}function qT(e,t,n){e._forEachChild((r,o)=>{if(n[o]===void 0)throw new _(1002,"")})}var Qi=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return ot(this.statusReactive)}set status(t){ot(()=>this.statusReactive.set(t))}_status=Dr(()=>this.statusReactive());statusReactive=pr(void 0);get valid(){return this.status===Tr}get invalid(){return this.status===zi}get pending(){return this.status==jn}get disabled(){return this.status===xr}get enabled(){return this.status!==xr}errors;get pristine(){return ot(this.pristineReactive)}set pristine(t){ot(()=>this.pristineReactive.set(t))}_pristine=Dr(()=>this.pristineReactive());pristineReactive=pr(!0);get dirty(){return!this.pristine}get touched(){return ot(this.touchedReactive)}set touched(t){ot(()=>this.touchedReactive.set(t))}_touched=Dr(()=>this.touchedReactive());touchedReactive=pr(!1);get untouched(){return!this.touched}_events=new Qe;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Ag(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Ag(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(kg(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(kg(t,this._rawAsyncValidators))}hasValidator(t){return Zi(this._rawValidators,t)}hasAsyncValidator(t){return Zi(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(G(P({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Nr(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new Nr(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(G(P({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Mr(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new Mr(!0,r))}markAsPending(t={}){this.status=jn;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Bn(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(G(P({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=xr,this.errors=null,this._forEachChild(o=>{o.disable(G(P({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ji(this.value,r)),this._events.next(new Bn(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(G(P({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Tr,this._forEachChild(r=>{r.enable(G(P({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(G(P({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Tr||this.status===jn)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ji(this.value,n)),this._events.next(new Bn(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(G(P({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?xr:Tr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=jn,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=Hg(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Bn(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new pe,this.statusChanges=new pe}_calculateStatus(){return this._allControlsDisabled()?xr:this.errors?zi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(jn)?jn:this._anyControlsHaveStatus(zi)?zi:Tr}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new Mr(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new Nr(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){is(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=WT(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=GT(this._rawAsyncValidators)}},Xi=class extends Qi{constructor(t,n,r){super(Qg(n),Xg(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){qT(this,!0,t),Object.keys(t).forEach(r=>{zT(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(Object.keys(t).forEach(r=>{let o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t?t[o]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var ss=new w("",{providedIn:"root",factory:()=>as}),as="always";function em(e,t){return[...t.path,e]}function Ql(e,t,n=as){rc(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),KT(e,t),JT(e,t),YT(e,t),ZT(e,t)}function Og(e,t,n=!0){let r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),ts(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function es(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function ZT(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function rc(e,t){let n=Kg(e);t.validator!==null?e.setValidators(Ng(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=Yg(e);t.asyncValidator!==null?e.setAsyncValidators(Ng(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();es(t._rawValidators,o),es(t._rawAsyncValidators,o)}function ts(e,t){let n=!1;if(e!==null){if(t.validator!==null){let o=Kg(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==t.validator);i.length!==o.length&&(n=!0,e.setValidators(i))}}if(t.asyncValidator!==null){let o=Yg(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==t.asyncValidator);i.length!==o.length&&(n=!0,e.setAsyncValidators(i))}}}let r=()=>{};return es(t._rawValidators,r),es(t._rawAsyncValidators,r),n}function KT(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&tm(e,t)})}function YT(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&tm(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function tm(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function JT(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function QT(e,t){e==null,rc(e,t)}function XT(e,t){return ts(e,t)}function nm(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function ex(e){return Object.getPrototypeOf(e.constructor)===ns}function tx(e,t){e._syncPendingControls(),t.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function rm(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===Un?n=i:ex(i)?r=i:o=i}),o||r||n||null}function nx(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Rg(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Fg(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var kr=class extends Qi{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(Qg(n),Xg(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),is(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Fg(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Rg(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Rg(this._onDisabledChange,t)}_forEachChild(t){}_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(t){Fg(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var rx=e=>e instanceof kr;var ox={provide:Zt,useExisting:Fe(()=>Or)},Pg=Promise.resolve(),Or=(()=>{class e extends Zt{_changeDetectorRef;callSetDisabledState;control=new kr;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new pe;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=rm(this,i)}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),nm(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(){Ql(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){Pg.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Pl(r);Pg.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?em(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(E(qt,9),E(rs,10),E(nc,10),E(Hn,10),E(vr,8),E(ss,8))};static \u0275dir=q({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[rt([ox]),ve,vn]})}return e})();var om=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275dir=q({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return e})();var im=new w("");var ix={provide:qt,useExisting:Fe(()=>oc)},oc=(()=>{class e extends qt{callSetDisabledState;get submitted(){return ot(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}_submitted=Dr(()=>this._submittedReactive());_submittedReactive=pr(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new pe;constructor(n,r,o){super(),this.callSetDisabledState=o,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ts(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 Ql(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){Og(n.control||null,n,!1),nx(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._submittedReactive.set(!0),tx(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new Yl(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new Jl(this.form))}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,o=this.form.get(n.path);r!==o&&(Og(r||null,n),rx(o)&&(Ql(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);QT(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&XT(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){rc(this.form,this),this._oldForm&&ts(this._oldForm,this)}static \u0275fac=function(r){return new(r||e)(E(rs,10),E(nc,10),E(ss,8))};static \u0275dir=q({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&z("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[rt([ix]),ve,vn]})}return e})();var sx={provide:Zt,useExisting:Fe(()=>ic)},ic=(()=>{class e extends Zt{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(n){}model;update=new pe;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(n,r,o,i,s){super(),this._ngModelWarningConfig=s,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=rm(this,i)}ngOnChanges(n){this._added||this._setUpControl(),nm(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 em(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(r){return new(r||e)(E(qt,13),E(rs,10),E(nc,10),E(Hn,10),E(im,8))};static \u0275dir=q({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[rt([sx]),ve,vn]})}return e})();var ax={provide:Hn,useExisting:Fe(()=>$n),multi:!0};function sm(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function lx(e){return e.split(":")[0]}var $n=(()=>{class e extends ns{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r=this._getOptionId(n),o=sm(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=lx(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wn(e)))(o||e)}})();static \u0275dir=q({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){r&1&&z("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[rt([ax]),ve]})}return e})(),ls=(()=>{class e{_element;_renderer;_select;id;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(sm(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))}static \u0275fac=function(r){return new(r||e)(E(mt),E(Ut),E($n,9))};static \u0275dir=q({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),cx={provide:Hn,useExisting:Fe(()=>am),multi:!0};function Lg(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function ux(e){return e.split(":")[0]}var am=(()=>{class e extends ns{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r;if(Array.isArray(n)){let o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let o=[],i=r.selectedOptions;if(i!==void 0){let s=i;for(let a=0;a<s.length;a++){let l=s[a],c=this._getOptionValue(l.value);o.push(c)}}else{let s=r.options;for(let a=0;a<s.length;a++){let l=s[a];if(l.selected){let c=this._getOptionValue(l.value);o.push(c)}}}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=ux(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wn(e)))(o||e)}})();static \u0275dir=q({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){r&1&&z("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[rt([cx]),ve]})}return e})(),cs=(()=>{class e{_element;_renderer;_select;id;_value;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(Lg(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(Lg(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))}static \u0275fac=function(r){return new(r||e)(E(mt),E(Ut),E(am,9))};static \u0275dir=q({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();var dx=(()=>{class e{_validator=qi;_onChange;_enabled;ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):qi,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}static \u0275fac=function(r){return new(r||e)};static \u0275dir=q({type:e,features:[vn]})}return e})();var fx={provide:rs,useExisting:Fe(()=>sc),multi:!0};var sc=(()=>{class e extends dx{required;inputName="required";normalizeInput=Pl;createValidator=n=>jg;enabled(n){return n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wn(e)))(o||e)}})();static \u0275dir=q({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&&Ol("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[rt([fx]),ve]})}return e})();var lm=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=yt({type:e});static \u0275inj=gt({})}return e})();var us=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:ss,useValue:n.callSetDisabledState??as}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=yt({type:e});static \u0275inj=gt({imports:[lm]})}return e})(),ds=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:im,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:ss,useValue:n.callSetDisabledState??as}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=yt({type:e});static \u0275inj=gt({imports:[lm]})}return e})();var Wn=(()=>{class e{constructor(){this.signInForm=new Xi({username:new kr({value:"",disabled:!1},[Ar.required]),organization:new kr({value:"Hartford HealthCare",disabled:!1},[Ar.required])}),this.serverErrorMessageModel={id:"ServerError",messageType:"error",content:"",visible:!1},this.clientErrorMessageModel={id:"ClientError",messageType:"error",content:"Review the form and correct highlighted fields.",visible:!1},this.busy=!1,this.advancedMode=!1,this.serverError=this.serverErrorMessageModel,this.clientError=this.clientErrorMessageModel,this.username="",this.organization="Hartford HealthCare",this.signInButtonText=this.advancedMode?"Generate Token":"Launch Encoder",this.signInHeaderText=this.advancedMode?"Create Token":"Enter Info",this.userNameDisabled=!1}clearClientError(){this.serverError.visible=!1,this.clientError.visible=!1,this.signInForm.markAsPristine()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var zn=class{},Rr=class{},Ye=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
8
+ `).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var ps=class{encodeKey(t){return um(t)}encodeValue(t){return um(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function px(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}var hx=/%(\d[a-f0-9])/gi,gx={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function um(e){return encodeURIComponent(e).replace(hx,(t,n)=>gx[n]??t)}function fs(e){return`${e}`}var ct=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new ps,t.fromString){if(t.fromObject)throw new _(2805,!1);this.map=px(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(fs):[fs(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(fs(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(fs(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var hs=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function mx(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function dm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function fm(e){return typeof Blob<"u"&&e instanceof Blob}function pm(e){return typeof FormData<"u"&&e instanceof FormData}function yx(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var hm="Content-Type",gm="Accept",ym="X-Request-URL",vm="text/plain",Dm="application/json",vx=`${Dm}, ${vm}, */*`,Gn=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(mx(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new Ye,this.context??=new hs,!this.params)this.params=new ct,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),l=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||dm(this.body)||fm(this.body)||pm(this.body)||yx(this.body)?this.body:this.body instanceof ct?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||pm(this.body)?null:fm(this.body)?this.body.type||null:dm(this.body)?null:typeof this.body=="string"?vm:this.body instanceof ct?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Dm:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.transferCache??this.transferCache,s=t.body!==void 0?t.body:this.body,a=t.withCredentials??this.withCredentials,l=t.reportProgress??this.reportProgress,c=t.headers||this.headers,u=t.params||this.params,f=t.context??this.context;return t.setHeaders!==void 0&&(c=Object.keys(t.setHeaders).reduce((p,d)=>p.set(d,t.setHeaders[d]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((p,d)=>p.set(d,t.setParams[d]),u)),new e(n,r,s,{params:u,headers:c,context:f,reportProgress:l,responseType:o,withCredentials:a,transferCache:i})}},Kt=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Kt||{}),qn=class{headers;status;statusText;url;ok;type;constructor(t,n=200,r="OK"){this.headers=t.headers||new Ye,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},gs=class e extends qn{constructor(t={}){super(t)}type=Kt.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Fr=class e extends qn{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Kt.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Pr=class extends qn{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},Dx=200,wx=204;function lc(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var ys=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Gn)i=n;else{let l;o.headers instanceof Ye?l=o.headers:l=new Ye(o.headers);let c;o.params&&(o.params instanceof ct?c=o.params:c=new ct({fromObject:o.params})),i=new Gn(n,r,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=go(i).pipe(Xs(l=>this.handler.handle(l)));if(n instanceof Gn||o.observe==="events")return s;let a=s.pipe(Qs(l=>l instanceof Fr));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(fe(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new _(2806,!1);return l.body}));case"blob":return a.pipe(fe(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new _(2807,!1);return l.body}));case"text":return a.pipe(fe(l=>{if(l.body!==null&&typeof l.body!="string")throw new _(2808,!1);return l.body}));case"json":default:return a.pipe(fe(l=>l.body))}case"response":return a;default:throw new _(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new ct().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,lc(o,r))}post(n,r,o={}){return this.request("POST",n,lc(o,r))}put(n,r,o={}){return this.request("PUT",n,lc(o,r))}static \u0275fac=function(r){return new(r||e)(T(zn))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})();var Ex=new w("");function wm(e,t){return t(e)}function _x(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function Ix(e,t,n){return(r,o)=>ei(n,()=>t(r,i=>e(i,o)))}var Em=new w(""),uc=new w(""),_m=new w(""),dc=new w("",{providedIn:"root",factory:()=>!0});function bx(){let e=null;return(t,n)=>{e===null&&(e=(S(Em,{optional:!0})??[]).reduceRight(_x,wm));let r=S(Bt);if(S(dc)){let i=r.add();return e(t,n).pipe(yo(()=>r.remove(i)))}else return e(t,n)}}var ms=(()=>{class e extends zn{backend;injector;chain=null;pendingTasks=S(Bt);contributeToStability=S(dc);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(uc),...this.injector.get(_m,[])]));this.chain=r.reduceRight((o,i)=>Ix(o,i,this.injector),wm)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(yo(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(T(Rr),T(je))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})();var Cx=/^\)\]\}',?\n/,Sx=RegExp(`^${ym}:`,"m");function Tx(e){return"responseURL"in e&&e.responseURL?e.responseURL:Sx.test(e.getAllResponseHeaders())?e.getResponseHeader(ym):null}var cc=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new _(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?At(r.\u0275loadImpl()):go(null)).pipe(ea(()=>new W(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((g,v)=>s.setRequestHeader(g,v.join(","))),n.headers.has(gm)||s.setRequestHeader(gm,vx),!n.headers.has(hm)){let g=n.detectContentTypeHeader();g!==null&&s.setRequestHeader(hm,g)}if(n.responseType){let g=n.responseType.toLowerCase();s.responseType=g!=="json"?g:"text"}let a=n.serializeBody(),l=null,c=()=>{if(l!==null)return l;let g=s.statusText||"OK",v=new Ye(s.getAllResponseHeaders()),I=Tx(s)||n.url;return l=new gs({headers:v,status:s.status,statusText:g,url:I}),l},u=()=>{let{headers:g,status:v,statusText:I,url:Ee}=c(),K=null;v!==wx&&(K=typeof s.response>"u"?s.responseText:s.response),v===0&&(v=K?Dx:0);let ut=v>=200&&v<300;if(n.responseType==="json"&&typeof K=="string"){let Yt=K;K=K.replace(Cx,"");try{K=K!==""?JSON.parse(K):null}catch(Vm){K=Yt,ut&&(ut=!1,K={error:Vm,text:K})}}ut?(i.next(new Fr({body:K,headers:g,status:v,statusText:I,url:Ee||void 0})),i.complete()):i.error(new Pr({error:K,headers:g,status:v,statusText:I,url:Ee||void 0}))},f=g=>{let{url:v}=c(),I=new Pr({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:v||void 0});i.error(I)},p=!1,d=g=>{p||(i.next(c()),p=!0);let v={type:Kt.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(v.total=g.total),n.responseType==="text"&&s.responseText&&(v.partialText=s.responseText),i.next(v)},h=g=>{let v={type:Kt.UploadProgress,loaded:g.loaded};g.lengthComputable&&(v.total=g.total),i.next(v)};return s.addEventListener("load",u),s.addEventListener("error",f),s.addEventListener("timeout",f),s.addEventListener("abort",f),n.reportProgress&&(s.addEventListener("progress",d),a!==null&&s.upload&&s.upload.addEventListener("progress",h)),s.send(a),i.next({type:Kt.Sent}),()=>{s.removeEventListener("error",f),s.removeEventListener("abort",f),s.removeEventListener("load",u),s.removeEventListener("timeout",f),n.reportProgress&&(s.removeEventListener("progress",d),a!==null&&s.upload&&s.upload.removeEventListener("progress",h)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(T($t))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),Im=new w(""),xx="XSRF-TOKEN",Mx=new w("",{providedIn:"root",factory:()=>xx}),Nx="X-XSRF-TOKEN",Ax=new w("",{providedIn:"root",factory:()=>Nx}),Lr=class{},kx=(()=>{class e{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r){this.doc=n,this.cookieName=r}getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ir(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(T(ge),T(Mx))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})();function Ox(e,t){let n=e.url.toLowerCase();if(!S(Im)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=S(Lr).getToken(),o=S(Ax);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var fc=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(fc||{});function Rx(e,t){return{\u0275kind:e,\u0275providers:t}}function pc(...e){let t=[ys,cc,ms,{provide:zn,useExisting:ms},{provide:Rr,useFactory:()=>S(Ex,{optional:!0})??S(cc)},{provide:uc,useValue:Ox,multi:!0},{provide:Im,useValue:!0},{provide:Lr,useClass:kx}];for(let n of e)t.push(...n.\u0275providers);return id(t)}var mm=new w("");function hc(){return Rx(fc.LegacyInterceptors,[{provide:mm,useFactory:bx},{provide:uc,useExisting:mm,multi:!0}])}var vs=(()=>{class e{constructor(){}wrapAsArray(n){return n.charAt(0)!=="["&&(n="["+n),n.charAt(n.length)!=="]"&&(n=n+"]"),n}removeBrackets(n){return n.charAt(0)==="["&&(n=n.substring(1)),n.charAt(n.length-1)==="]"&&(n=n.substring(0,n.length-1)),n}isJson(n){try{return JSON.parse(n)&&n}catch{return!1}}getCurrentDate(){let n=new Date,r=n.getDate(),o=n.getMonth()+1,i=n.getFullYear();return o+"/"+r+"/"+i}getBirthDateISO(){let n=new Date;return n.setFullYear(n.getFullYear()-30),n.toISOString()}getCurrentDateISO(){return new Date().toISOString()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Ds=(()=>{class e{constructor(n,r,o){this.signInService=n,this.stringService=r,this.http=o,this.kcSdk=window.kcSdk,this.sessionTypes=[this.kcSdk.sessionTypes.DX,this.kcSdk.sessionTypes.CMPX,this.kcSdk.sessionTypes.I10CM,this.kcSdk.sessionTypes.ICD10PCS,this.kcSdk.sessionTypes.HCPCS],this.i9I10States=[this.kcSdk.i9I10States.I9,this.kcSdk.i9I10States.I10],this.patientTypes=[this.kcSdk.patientType.INPATIENT,this.kcSdk.patientType.OUTPATIENT,this.kcSdk.patientType.IRF,this.kcSdk.patientType.CAH,this.kcSdk.patientType.SNF],this.selectedPatientType=this.patientTypes[0],this.selectedI9I10State=this.i9I10States[1],this.selectedSessionType=this.sessionTypes[0],this.selectedEncoderTab=this.kcSdk.encoderTabs.LOGIC,this.encoderPhraseCode="",this.WEB_KC="web/KC.html",this.WEB_ENCODER="web/Encoder.html",this.exampleUrl="http://www.google.com",this.exampleDemographicsData={sex:"M",sendingFacility:"001",birthDate:this.stringService.getBirthDateISO(),admitDate:this.stringService.getCurrentDateISO(),dischargeDate:this.stringService.getCurrentDateISO(),patientType:this.kcSdk.patientType.INPATIENT,financialClass:"09"},this.encoderDemographics=JSON.stringify(this.exampleDemographicsData,null,2),this.encoderTabs=[this.kcSdk.encoderTabs.LOGIC,this.kcSdk.encoderTabs.INDEX,this.kcSdk.encoderTabs.TABULAR],this.clientExampleToken="",this.selectedPod="",this.outputJson="",this.sdkKcIsListening=!1,this.sdkEncoderIsListening=!1,this.version=this.kcSdk.version,this.exampleAuthToken={access_token:""},this.closeAllKCWindows=this.kcSdk.closeAllKCWindows,this.workflow=this.kcSdk.workflow,this.selectedWorkflowApi=Gi(this.kcSdk.workflow),this.workflowInput=X.url+this.WEB_KC,this.kcWindowName=this.kcSdk.kcWindow.name,this.encoderWindowName=this.kcSdk.encoderWindow.name,this.apisForAllWindows=[{name:"launch KC",fn:this.kcSdk.kcWindow.launch,windowName:this.kcWindowName},{name:"launch Encoder",fn:this.kcSdk.encoderWindow.launch,windowName:this.encoderWindowName},{name:"loadPatientRecord",fn:this.kcSdk.kcWindow.loadPatientRecord,windowName:this.kcWindowName},{name:"assignConfig",fn:this.kcSdk.kcWindow.assignConfig,windowName:this.kcWindowName},{name:"setAuthToken",fn:this.kcSdk.kcWindow.setAuthToken,windowName:this.kcWindowName},{name:"setDemographics",fn:this.kcSdk.kcWindow.setDemographics,windowName:this.kcWindowName},{name:"setAuthToken",fn:this.kcSdk.encoderWindow.setAuthToken,windowName:this.encoderWindowName},{name:"setDemographics",fn:this.kcSdk.encoderWindow.setDemographics,windowName:this.encoderWindowName},{name:"addCodes",fn:this.kcSdk.kcWindow.addCodes,windowName:this.kcWindowName},{name:"clearPatientRecord",fn:this.kcSdk.kcWindow.clearPatientRecord,windowName:this.kcWindowName},{name:"clearSelectedRow",fn:this.kcSdk.kcWindow.clearSelectedRow,windowName:this.kcWindowName},{name:"closeAllKCWindowsExceptEncoder",fn:this.kcSdk.kcWindow.closeAllKCWindowsExceptEncoder,windowName:this.kcWindowName},{name:"deleteCodes",fn:this.kcSdk.kcWindow.deleteCodes,windowName:this.kcWindowName},{name:"getPayerList",fn:this.kcSdk.kcWindow.getPayerList,windowName:this.kcWindowName},{name:"getRowSpecificInfo",fn:this.kcSdk.kcWindow.getRowSpecificInfo,windowName:this.kcWindowName},{name:"hasCriticalEdits",fn:this.kcSdk.kcWindow.hasCriticalEdits,windowName:this.kcWindowName},{name:"hasEdits",fn:this.kcSdk.kcWindow.hasEdits,windowName:this.kcWindowName},{name:"launchCodeSummaryReport",fn:this.kcSdk.kcWindow.launchCodeSummaryReport,windowName:this.kcWindowName},{name:"launchEdits",fn:this.kcSdk.kcWindow.launchEdits,windowName:this.kcWindowName},{name:"launchIndex",fn:this.kcSdk.kcWindow.launchIndex,windowName:this.kcWindowName},{name:"launchLogic",fn:this.kcSdk.kcWindow.launchLogic,windowName:this.kcWindowName},{name:"launchTabular",fn:this.kcSdk.kcWindow.launchTabular,windowName:this.kcWindowName},{name:"launchFacilityLookup",fn:this.kcSdk.kcWindow.launchFacilityLookup,windowName:this.kcWindowName},{name:"launchIndex",fn:this.kcSdk.encoderWindow.launchIndex,windowName:this.encoderWindowName},{name:"launchLogic",fn:this.kcSdk.encoderWindow.launchLogic,windowName:this.encoderWindowName},{name:"launchTabular",fn:this.kcSdk.encoderWindow.launchTabular,windowName:this.encoderWindowName},{name:"logout",fn:this.kcSdk.kcWindow.logout,windowName:this.kcWindowName},{name:"resetApplication",fn:this.kcSdk.kcWindow.resetApplication,windowName:this.kcWindowName},{name:"savePatientRecord",fn:this.kcSdk.kcWindow.savePatientRecord,windowName:this.kcWindowName},{name:"updateCodes",fn:this.kcSdk.kcWindow.updateCodes,windowName:this.kcWindowName},{name:"updateDemographics",fn:this.kcSdk.kcWindow.updateDemographics,windowName:this.kcWindowName},{name:"openEncoder",fn:this.kcSdk.kcWindow.openEncoder,windowName:this.kcWindowName}],this.availableApis=Gl(this.apisForAllWindows),this.availableApiSelected=this.availableApis[0],this.workflowWindow=this.kcWindowName,this.runWorkflow=this.kcSdk.processWorkflow,this.doSigninSubmit=()=>{setTimeout(()=>{if(!this.signInService.signInForm.valid){this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine();return}if(document.getElementById("kc-sdk-advanced-mode").checked)this.generateToken();else{let s={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(s).subscribe({next:()=>{this.launchEncoder()},error:a=>{this.signInService.serverError.content=a}})}this.signInService.clearClientError()})},this.generateToken=()=>{if(this.signInService.signInForm.valid){let i={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(i).subscribe({next:()=>{this.signInService.clearClientError(),this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!1,this.signInService.signInForm.markAsPristine(),this.clientExampleToken=this.exampleAuthToken.access_token},error:s=>{this.signInService.serverError.content=s}})}else this.signInService.serverError.visible=!1,this.signInService.clientError.content="Review the form and correct highlighted fields.",this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine()},this.launchEncoder=()=>{let i={sessionType:this.selectedSessionType,encoderTab:this.selectedEncoderTab,codePhrase:this.encoderPhraseCode},s=X.url+this.WEB_ENCODER,a=this.encoderDemographics,l=this.selectedI9I10State;this.clientExampleToken&&(this.exampleAuthToken.access_token=this.clientExampleToken),this.kcSdk.encoderWindow.launch(s,this.exampleAuthToken,l,a,i)},this.setAuthToken=i=>new W(s=>{let a={headers:new Ye({"Content-Type":"application/json"})},l={username:btoa(i.username),organization:i.organizationId,clientId:X.appName};this.http.post(X.tokenServer+"orgLogin",l,a).subscribe({next:c=>{c&&(this.exampleAuthToken.access_token=c.token,this.logOutput("auth","token generated - userName:'"+i.username+"' org: '"+i.organizationId+"'")),s.next(c)},error:c=>{c.status===401&&(this.exampleAuthToken.access_token="",this.signInService.serverError.visible=!1,this.signInService.clientError.content="Failed to authenticate user.",this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine());let u=c&&c.message?c.message:"undefined error message";this.logOutput("auth","token exception: "+u),s.error(u)}})}),this.onStateChange=()=>{this.filterSessionTypes(this.selectedI9I10State)},this.onPatientTypeChange=()=>{try{let i=JSON.parse(this.encoderDemographics);i.patientType=this.selectedPatientType,this.encoderDemographics=JSON.stringify(i,null,2)}catch{this.exampleDemographicsData.patientType=this.selectedPatientType,this.encoderDemographics=JSON.stringify(this.exampleDemographicsData,null,2)}},this.launchKc=()=>{if(!this.signInService.signInForm.valid){this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine();return}this.signInService.clearClientError();let i={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(i).subscribe({next:s=>{let a=X.url+this.WEB_KC,l=this.encoderDemographics,c=this.selectedI9I10State;this.clientExampleToken&&(this.exampleAuthToken.access_token=this.clientExampleToken),this.kcSdk.kcWindow.launch(a,this.exampleAuthToken,c,l)},error:s=>{this.signInService.serverError.content=s}})},this.launchReferences=()=>{if(!this.signInService.signInForm.valid){this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine();return}this.signInService.clearClientError();let i={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(i).subscribe({next:()=>{this.kcSdk.launchReferences(this.encoderPhraseCode,this.selectedSessionType.name,this.exampleAuthToken.access_token)},error:s=>{this.signInService.serverError.content=s}})},this.selectedSessionType=this.sessionTypes[0]}filterSessionTypes(n){this.sessionTypes.length=0;for(let r in this.kcSdk.sessionTypes){let o=this.kcSdk.sessionTypes[r];o.state.indexOf(n.value)>-1&&this.sessionTypes.push(o)}this.selectedSessionType=this.sessionTypes[0]}logOutput(n,r){let o={event:n,response:this.stringService.isJson(r)?JSON.parse(r):r};o.event==="editGroupPriceCompleted"&&(o.response=[]),this.outputJson=this.outputJson?[this.stringService.removeBrackets(this.outputJson),JSON.stringify(o,null,2)].join(`,
9
+ `):JSON.stringify(o,null,2),this.outputJson=this.stringService.wrapAsArray(this.outputJson),this.scrollLogToBottom()}scrollLogToBottom(){setTimeout(()=>{let n=document.getElementById("kc-sdk-input");n&&(n.scrollTop=n.scrollHeight)})}static{this.\u0275fac=function(r){return new(r||e)(T(Wn),T(vs),T(ys))}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ws=e=>({"tk-rfrm-has-error":e}),Sm=(e,t)=>({"tk-form-field-error":e,"":t});function Px(e,t){if(e&1&&(y(0,"div",27),R(1),m()),e&2){let n=F();D(),En(" ",n.SignInService.clientError.content," ")}}function Lx(e,t){if(e&1&&(y(0,"div",27),R(1),m()),e&2){let n=F();D(),En(" ",n.SignInService.serverError.content," ")}}function Vx(e,t){e&1&&(y(0,"span",28),R(1," User name is required. "),m())}function jx(e,t){e&1&&(y(0,"span",29),R(1," Organization is required. "),m())}function Bx(e,t){if(e&1){let n=Me();y(0,"button",30),z("click",function(){H(n);let o=F();return U(o.SdkTesterService.launchKc())}),R(1," Launch KC "),m()}if(e&2){let n=F();C("disabled",n.SignInService.busy)}}function Hx(e,t){if(e&1){let n=Me();y(0,"button",31),z("click",function(){H(n);let o=F();return U(o.SdkTesterService.launchReferences())}),R(1," Launch References "),m()}if(e&2){let n=F();C("disabled",n.SignInService.busy)}}function Ux(e,t){if(e&1){let n=Me();y(0,"tr")(1,"td",7)(2,"label",32),R(3,"PhraseCode:"),m(),y(4,"input",33),we("ngModelChange",function(o){H(n);let i=F();return Ne(i.SdkTesterService.encoderPhraseCode,o)||(i.SdkTesterService.encoderPhraseCode=o),U(o)}),m()()()}if(e&2){let n=F();D(4),De("ngModel",n.SdkTesterService.encoderPhraseCode)}}function $x(e,t){if(e&1&&(y(0,"option",38),R(1),m()),e&2){let n=t.$implicit;C("value",n),D(),qe(n)}}function Wx(e,t){if(e&1){let n=Me();y(0,"tr")(1,"td",34)(2,"label",35),R(3,"Encoder Tab:"),m(),y(4,"select",36),we("ngModelChange",function(o){H(n);let i=F();return Ne(i.SdkTesterService.selectedEncoderTab,o)||(i.SdkTesterService.selectedEncoderTab=o),U(o)}),ie(5,$x,2,2,"option",37),m()()()}if(e&2){let n=F();D(4),De("ngModel",n.SdkTesterService.selectedEncoderTab),D(),C("ngForOf",n.SdkTesterService.encoderTabs)}}function Gx(e,t){if(e&1&&(y(0,"option",42),R(1),m()),e&2){let n=t.$implicit;C("ngValue",n),D(),qe(n.value)}}function zx(e,t){if(e&1){let n=Me();y(0,"tr")(1,"td",34)(2,"label",39),R(3,"State:"),m(),y(4,"select",40),we("ngModelChange",function(o){H(n);let i=F();return Ne(i.SdkTesterService.selectedI9I10State,o)||(i.SdkTesterService.selectedI9I10State=o),U(o)}),z("change",function(){H(n);let o=F();return U(o.SdkTesterService.onStateChange())}),ie(5,Gx,2,2,"option",41),m()()()}if(e&2){let n=F();D(4),De("ngModel",n.SdkTesterService.selectedI9I10State),D(),C("ngForOf",n.SdkTesterService.i9I10States)}}function qx(e,t){if(e&1&&(y(0,"option",42),R(1),m()),e&2){let n=t.$implicit;C("ngValue",n),D(),qe(n.name)}}function Zx(e,t){if(e&1){let n=Me();y(0,"tr")(1,"td",34)(2,"label",43),R(3,"SessionType:"),m(),y(4,"select",44),we("ngModelChange",function(o){H(n);let i=F();return Ne(i.SdkTesterService.selectedSessionType,o)||(i.SdkTesterService.selectedSessionType=o),U(o)}),ie(5,qx,2,2,"option",41),m()()()}if(e&2){let n=F();D(4),De("ngModel",n.SdkTesterService.selectedSessionType),D(),C("ngForOf",n.SdkTesterService.sessionTypes)}}function Kx(e,t){if(e&1&&(y(0,"option",42),R(1),m()),e&2){let n=t.$implicit;C("ngValue",n),D(),qe(n.displayValue)}}function Yx(e,t){if(e&1){let n=Me();y(0,"tr")(1,"td",34)(2,"label",45),R(3,"Patient Type:"),m(),y(4,"select",46),we("ngModelChange",function(o){H(n);let i=F();return Ne(i.SdkTesterService.selectedPatientType,o)||(i.SdkTesterService.selectedPatientType=o),U(o)}),z("change",function(){H(n);let o=F();return U(o.SdkTesterService.onPatientTypeChange())}),ie(5,Kx,2,2,"option",41),m()()()}if(e&2){let n=F();D(4),De("ngModel",n.SdkTesterService.selectedPatientType),D(),C("ngForOf",n.SdkTesterService.patientTypes)}}function Jx(e,t){if(e&1){let n=Me();y(0,"tr")(1,"td",7)(2,"label"),R(3,"Demographics:"),m(),y(4,"textarea",47),we("ngModelChange",function(o){H(n);let i=F();return Ne(i.SdkTesterService.encoderDemographics,o)||(i.SdkTesterService.encoderDemographics=o),U(o)}),m()()()}if(e&2){let n=F();D(4),De("ngModel",n.SdkTesterService.encoderDemographics)}}var Tm=(()=>{class e{constructor(n,r){this.signInService=n,this.sdkTesterService=r,this.userNameError=!1,this.orgError=!1,this.inAdvancedMode=!1,this.SignInService=this.signInService,this.SdkTesterService=this.sdkTesterService}get username(){return this.signInService.signInForm.get("username")}get organization(){return this.signInService.signInForm.get("organization")}static{this.\u0275fac=function(r){return new(r||e)(E(Wn),E(Ds))}}static{this.\u0275cmp=di({type:e,selectors:[["app-sign-in"]],inputs:{inAdvancedMode:"inAdvancedMode"},decls:58,vars:36,consts:[["ngForm","ngForm"],[1,"sdk-sign-in-container",2,"margin","0 auto"],[1,"tk-margin-left-2t"],["role","presentation",1,"tk-tabl-form-sip","kc-sdk-tester-sign-in-table"],[1,"sign-in-left-side"],["method","post","novalidate","",3,"ngSubmit","formGroup"],[1,"sdk-login-table"],["colspan","3"],["tabindex","-1"],["class","icon-exclamationbox",4,"ngIf"],["tabindex","-1","for","kc-userNameInput","id","kc-userNameLblId",1,"kc-label-padding"],[1,"tk-rfrm-group",3,"ngClass"],[1,"tk-rfrm-columnar-container"],[1,"tk-rfrm-error-container"],["type","text","spellcheck","false","id","kc-userNameInput","formControlName","username",0,"kc","focus-on-me","true","autocomplete","off","aria-required","true","aria-autocomplete","none","aria-describedby","signInField_inputTip UserName_errormessage","required","true",1,"tk-margin-left-min",3,"keyup","blur","ngClass"],[1,"small-dot","kc-sdk-signin-required"],[3,"ngClass"],["id","kc-userName_errormessage","class","tk-padding-left-1t","aria-required","true","aria-invalid","true","aria-describedby","User name is required",4,"ngIf"],["tabindex","-1","for","kc-orgId","id","kc-orgLblId",1,"kc-label-padding"],["type","text","id","kc-orgId","formControlName","organization","autocomplete","off","aria-required","true","aria-autocomplete","none","aria-describedby","signInField_inputTip Org_errormessage","required","true",1,"tk-margin-left-min",3,"keyup","blur","ngClass"],["id","kc-Org_errormessage","class","tk-padding-left-1t","aria-describedby","Organization is required","aria-required","true","aria-invalid","true",4,"ngIf"],["colspan","3",1,"tester-sign-in-button-space"],["type","button","name","sdk-launch-kc-button","id","sdk-launch-kc-button","value","Launch KC","class","kc-tk-btn kc-tk-btn-primary tk-margin-left-min tk-margin-top-none tk-margin-bottom-none",3,"disabled","click",4,"ngIf"],["name","generate_token","id","kc-generate_tokenBtnId","value","Generate_Token","enable-default","true","label","whatever",1,"kc-tk-btn","kc-tk-btn-primary","tk-margin-left-min","tk-margin-top-none","tk-margin-bottom-none",3,"disabled"],["type","button","name","sdk-launch-references-button","id","sdk-launch-references-button","value","Launch References","class","kc-tk-btn kc-tk-btn-primary tk-margin-left-min tk-margin-top-none tk-margin-bottom-none",3,"disabled","click",4,"ngIf"],[1,"sdk-login-table-inputs"],[4,"ngIf"],[1,"icon-exclamationbox"],["id","kc-userName_errormessage","aria-required","true","aria-invalid","true","aria-describedby","User name is required",1,"tk-padding-left-1t"],["id","kc-Org_errormessage","aria-describedby","Organization is required","aria-required","true","aria-invalid","true",1,"tk-padding-left-1t"],["type","button","name","sdk-launch-kc-button","id","sdk-launch-kc-button","value","Launch KC",1,"kc-tk-btn","kc-tk-btn-primary","tk-margin-left-min","tk-margin-top-none","tk-margin-bottom-none",3,"click","disabled"],["type","button","name","sdk-launch-references-button","id","sdk-launch-references-button","value","Launch References",1,"kc-tk-btn","kc-tk-btn-primary","tk-margin-left-min","tk-margin-top-none","tk-margin-bottom-none",3,"click","disabled"],[1,"kc-encoder-phrasecode-text"],["autoCapitalize","","type","text","id","kc-encoder-phrasecode",1,"kc-encoder-phrasecode-input",3,"ngModelChange","ngModel"],["colspan","3",1,"col-md","kc-simple-mode-inputs"],[1,"kc-encoder-tab-text"],["id","kc-encoder-tab-dropdown",1,"tester-encoder-tab",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"kc-state-text"],["id","kc-state-dropdown",1,"tester-state",3,"ngModelChange","change","ngModel"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[1,"kc-session-type-text"],["id","kc-session-type-dropdown",1,"tester-session-type",3,"ngModelChange","ngModel"],[1,"kc-patient-type-text"],["id","kc-patient-type-dropdown",1,"patient-type",3,"ngModelChange","change","ngModel"],["name","workflowInput","id","kc-sdk-sign-in-demographics-input","placeholder","Demographics input","spellcheck","false",1,"tester-text-area","ng-pristine","ng-valid","ng-touched",3,"ngModelChange","ngModel"]],template:function(r,o){if(r&1){let i=Me();y(0,"div",1)(1,"div",2)(2,"table",3)(3,"tbody")(4,"tr")(5,"td",4)(6,"form",5,0),z("ngSubmit",function(){return H(i),U(o.SdkTesterService.doSigninSubmit())}),y(8,"table",6)(9,"tr")(10,"td",7)(11,"h2",8),R(12),m(),ie(13,Px,2,1,"div",9)(14,Lx,2,1,"div",9),m()(),y(15,"tr")(16,"td")(17,"label",10),R(18,"User name"),m()(),y(19,"td",11)(20,"div")(21,"div",12)(22,"div",13)(23,"input",14),z("keyup",function(){return H(i),U(o.userNameError=!!(o.SignInService.signInForm.controls.username.dirty&&o.SignInService.signInForm.controls.username.invalid))})("blur",function(){return H(i),U(o.userNameError=!!o.SignInService.signInForm.controls.username.invalid)}),m(),te(24,"div",15),m()()()(),y(25,"td",16)(26,"div")(27,"div",12)(28,"div",13),ie(29,Vx,2,0,"span",17),m()()()()(),y(30,"tr")(31,"td")(32,"label",18),R(33,"Organization"),m()(),y(34,"td",11)(35,"div",12)(36,"div",13)(37,"input",19),z("keyup",function(){return H(i),U(o.orgError=!!(o.SignInService.signInForm.controls.organization.dirty&&o.SignInService.signInForm.controls.organization.invalid))})("blur",function(){return H(i),U(o.orgError=!!o.SignInService.signInForm.controls.organization.invalid)}),m(),te(38,"div",15),m()()(),y(39,"td",16)(40,"div")(41,"div",12)(42,"div",13),ie(43,jx,2,0,"span",20),m()()()()(),y(44,"tr")(45,"td",21),ie(46,Bx,2,1,"button",22),y(47,"button",23),R(48),m(),ie(49,Hx,2,1,"button",24),m()()()()(),y(50,"td")(51,"table",25),ie(52,Ux,5,1,"tr",26)(53,Wx,6,2,"tr",26)(54,zx,6,2,"tr",26)(55,Zx,6,2,"tr",26)(56,Yx,6,2,"tr",26)(57,Jx,5,1,"tr",26),m()()()()()()()}if(r&2){let i=Xf(7);D(6),C("formGroup",o.SignInService.signInForm),D(6),qe(o.inAdvancedMode?"Create Token":"Enter Info"),D(),C("ngIf",o.SignInService.clientError.visible),D(),C("ngIf",o.SignInService.serverError.visible),D(5),C("ngClass",yr(22,ws,o.userNameError||o.SignInService.signInForm.controls.username.invalid&&i.submitted)),D(4),C("ngClass",_n(24,Sm,o.userNameError||i.submitted&&o.SignInService.signInForm.controls.username.invalid,o.SignInService.signInForm.controls.username.valid)),D(2),C("ngClass",yr(27,ws,o.userNameError||o.SignInService.signInForm.controls.username.invalid&&i.submitted)),D(4),C("ngIf",(o.SignInService.signInForm.controls.username.dirty||i.submitted)&&o.SignInService.signInForm.controls.username.invalid),D(5),C("ngClass",yr(29,ws,o.orgError||o.SignInService.signInForm.controls.organization.invalid&&i.submitted)),D(3),C("ngClass",_n(31,Sm,o.orgError||i.submitted&&o.SignInService.signInForm.controls.organization.invalid,o.SignInService.signInForm.controls.organization.valid)),D(2),C("ngClass",yr(34,ws,o.orgError||o.SignInService.signInForm.controls.organization.invalid&&i.submitted)),D(4),C("ngIf",(o.SignInService.signInForm.controls.organization.dirty||i.submitted)&&o.SignInService.signInForm.controls.organization.invalid),D(3),C("ngIf",!o.inAdvancedMode),D(),C("disabled",o.SignInService.busy),D(),En(" ",o.inAdvancedMode?"Generate Token":"Launch Encoder"," "),D(),C("ngIf",!o.inAdvancedMode),D(3),C("ngIf",!o.inAdvancedMode),D(),C("ngIf",!o.inAdvancedMode),D(),C("ngIf",!o.inAdvancedMode),D(),C("ngIf",!o.inAdvancedMode),D(),C("ngIf",!o.inAdvancedMode),D(),C("ngIf",!o.inAdvancedMode)}},dependencies:[bn,Er,In,_r,us,om,ls,cs,Un,$n,os,Jg,sc,Or,ds,oc,ic],encapsulation:2})}}return e})();var xm=(e,t)=>({dot:!0,"not-listening":e,listening:t});function Qx(e,t){e&1&&(y(0,"div",8)(1,"div",11),te(2,"app-sign-in",12),m()()),e&2&&(D(2),C("inAdvancedMode",!1))}function Xx(e,t){if(e&1&&(y(0,"option",33),R(1),m()),e&2){let n=t.$implicit;C("ngValue",n.name),D(),qe(n.name)}}function eM(e,t){if(e&1){let n=Me();y(0,"div",13)(1,"div",14)(2,"input",15),z("click",function(){H(n);let o=F();return U(o.clearInputOutput())}),m(),y(3,"input",16),z("click",function(){H(n);let o=F();return U(o.SdkTesterService.closeAllKCWindows())}),m(),te(4,"br"),y(5,"H2",4),R(6,"Select API:"),m(),te(7,"br"),y(8,"select",17),we("ngModelChange",function(o){H(n);let i=F();return Ne(i.selectedApi,o)||(i.selectedApi=o),U(o)}),z("change",function(){H(n);let o=F();return U(o.onSelectedNewWorkflowApiChange())}),y(9,"option",18),R(10,"launch KC"),m(),y(11,"option",19),R(12,"launch Encoder"),m(),y(13,"option",20),R(14,"assignConfig"),m(),y(15,"option",21),R(16,"setDemographics"),m(),y(17,"option",22),R(18,"setAuthToken"),m(),ie(19,Xx,2,2,"option",23),m(),te(20,"br"),y(21,"div",24),te(22,"br"),y(23,"input",25),z("click",function(){H(n);let o=F();return U(o.callApi())}),m()(),te(24,"br")(25,"br"),m(),y(26,"div",26)(27,"div",27)(28,"textarea",28),we("ngModelChange",function(o){H(n);let i=F();return Ne(i.SdkTesterService.workflowInput,o)||(i.SdkTesterService.workflowInput=o),U(o)}),m(),te(29,"br"),m()(),y(30,"div",29)(31,"div",30)(32,"input",31),z("click",function(){H(n);let o=F();return U(o.clearOutput())}),m(),y(33,"textarea",32),we("ngModelChange",function(o){H(n);let i=F();return Ne(i.SdkTesterService.outputJson,o)||(i.SdkTesterService.outputJson=o),U(o)}),m(),te(34,"br"),m()()()}if(e&2){let n=F();D(3),C("disabled",!n.SdkTesterService.sdkKcIsListening&&!n.SdkTesterService.sdkEncoderIsListening),D(5),De("ngModel",n.selectedApi),D(11),C("ngForOf",n.apiMethods),D(9),De("ngModel",n.SdkTesterService.workflowInput),D(5),De("ngModel",n.SdkTesterService.outputJson)}}var Mm=(()=>{class e{constructor(n,r,o,i,s,a){this.document=n,this.sdkTesterService=r,this.stringService=o,this.signInService=i,this.ngZone=s,this.cdr=a,this.title="sdk-tester",this.kcSdk=window.kcSdk,this.kcNotLaunched=!1,this.devApis=Mg,this.selectedApi="",this.spacesToIndent=4,this.clearInputOutput=()=>{this.sdkTesterService.outputJson="",this.clearWorkflow(),this.signInService.clearClientError()},this.clearOutput=()=>{this.sdkTesterService.outputJson=""},this.kcWindowDataChanged=c=>{setTimeout(()=>{this.sdkTesterService.logOutput(c.callback,c.value),this.cdr.detectChanges()})},this.encoderWindowDataChanged=c=>{setTimeout(()=>{this.sdkTesterService.logOutput(c.callback,c.value),this.cdr.detectChanges()})},this.kcListeningChanged=c=>{setTimeout(()=>{this.sdkTesterService.sdkKcIsListening=this.kcSdk.kcWindowIsListening,this.sdkTesterService.logOutput(c.callback,this.kcSdk.kcWindowIsListening),this.cdr.detectChanges()})},this.encoderListeningChanged=c=>{setTimeout(()=>{this.sdkTesterService.sdkEncoderIsListening=this.kcSdk.encoderWindowIsListening,this.sdkTesterService.logOutput(c.callback,this.kcSdk.encoderWindowIsListening),this.cdr.detectChanges()})},this.workflowComplete=()=>{setTimeout(()=>{this.onSelectedNewWorkflowApiChange(),this.cdr.detectChanges()})},this.advancedModeOnChange=()=>{this.signInService.clearClientError(),this.clearInputOutput(),this.signInService.advancedMode&&(this.populateSdkApis(),this.onSelectedNewWorkflowApiChange())},this.clearWorkflow=()=>{this.kcSdk.clearWorkflow()},this.onSelectedWorkflowApiChange=()=>{let c=this.document.getElementById("kc-workflow")?.selectedIndex||0,u=this.kcSdk.workflow[c];u&&(this.sdkTesterService.workflowInput=JSON.stringify(u.args,null,2))},this.onSelectedNewWorkflowApiChange=()=>{this.sdkTesterService.clientExampleToken&&(this.sdkTesterService.exampleAuthToken.access_token=this.sdkTesterService.clientExampleToken);let c=this.apiMethods.find(p=>p.name===this.selectedApi)?.example;switch(this.selectedApi){case"assignConfig":this.sdkTesterService.workflowInput=JSON.stringify({rcpEndpointUri:this.sdkTesterService.exampleUrl},null,2);break;case"setDemographics":this.sdkTesterService.workflowInput=JSON.stringify(this.sdkTesterService.exampleDemographicsData,null,2);break;case"setAuthToken":this.sdkTesterService.workflowInput=JSON.stringify(this.sdkTesterService.exampleAuthToken,null,2);break;case"launch KC":this.sdkTesterService.workflowWindow=this.sdkTesterService.kcWindowName;let p=X.url+this.sdkTesterService.WEB_KC,d=this.sdkTesterService.selectedI9I10State,h=[JSON.stringify(p,null,2),JSON.stringify(this.sdkTesterService.exampleAuthToken,null,2),JSON.stringify(d,null,2),JSON.stringify(this.sdkTesterService.exampleDemographicsData,null,2)].join(`,
10
+ `);this.sdkTesterService.workflowInput=this.stringService.wrapAsArray(h);break;case"launch Encoder":this.sdkTesterService.workflowWindow=this.sdkTesterService.encoderWindowName;let g=X.url+this.sdkTesterService.WEB_ENCODER,v=this.sdkTesterService.exampleDemographicsData,I={sessionType:this.kcSdk.sessionTypes.I10CM,encoderTab:this.kcSdk.encoderTabs.LOGIC,codePhrase:"ANGINA"},Ee=this.sdkTesterService.selectedI9I10State,K=[JSON.stringify(g,null,2),JSON.stringify(this.sdkTesterService.exampleAuthToken,null,2),JSON.stringify(Ee,null,2),JSON.stringify(v,null,2),JSON.stringify(I,null,2)].join(`,
11
+ `);this.sdkTesterService.workflowInput=this.stringService.wrapAsArray(K);break;case"updateCodes":this.sdkTesterService.workflowInput=JSON.stringify({codes:c},void 0,this.spacesToIndent);break;case"getRowSpecificInfo":this.sdkTesterService.workflowInput=JSON.stringify({uniqueIds:c},void 0,this.spacesToIndent);break;default:this.sdkTesterService.workflowInput=JSON.stringify(c,void 0,this.spacesToIndent);break}let u=this.selectedApi==="launch Encoder"||this.selectedApi==="launch KC"?this.sdkTesterService.workflowWindow:this.kcSdk.kcWindowIsListening?this.sdkTesterService.kcWindowName:this.sdkTesterService.encoderWindowName,f=Zl(this.sdkTesterService.availableApis,{name:this.selectedApi,windowName:u});f&&(this.sdkTesterService.availableApiSelected=f),this.kcNotLaunched=!f},this.dateParser=(c,u)=>typeof u=="string"&&/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/.test(u)?new Date(u):u,this.callApi=()=>{let c=this.sdkTesterService.workflowInput?this.stringService.isJson(this.sdkTesterService.workflowInput)?JSON.parse(this.sdkTesterService.workflowInput,this.dateParser):this.sdkTesterService.workflowInput:[];if(this.kcSdk.clearWorkflow(),this.kcNotLaunched){console.log(new Error("KC window not listening"));return}this.kcSdk.addToWorkflow({fn:this.sdkTesterService.availableApiSelected?.fn,args:c}),this.sdkTesterService.selectedWorkflowApi=ql(this.kcSdk.workflow),this.SdkTesterService.runWorkflow(this.SdkTesterService.workflowWindow)},this.SignInService=this.signInService,this.SdkTesterService=this.sdkTesterService,this.kcSdk.setCallback(this.kcSdk.callbacks.SDKEXCEPTION,this.kcWindowDataChanged),this.kcSdk.setCallback(this.kcSdk.callbacks.WORKFLOWCOMPLETE,this.workflowComplete),this.kcSdk.setCallback(this.kcSdk.callbacks.SDKRESPONSE,this.kcWindowDataChanged),this.kcSdk.setCallback(this.kcSdk.callbacks.KCLISTENINGCHANGED,this.kcListeningChanged),this.kcSdk.setCallback(this.kcSdk.callbacks.ENCODERLISTENINGCHANGED,this.encoderListeningChanged),this.kcSdk.clearWorkflow();let l={grant_type:"org_login",username:"sdkTester",organizationId:"Justice League",enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.sdkTesterService.filterSessionTypes(this.sdkTesterService.selectedI9I10State),this.sdkTesterService.setAuthToken(l).subscribe()}populateSdkApis(){this.apiMethods=this.devApis.filter(n=>n.sdkVisible).sort((n,r)=>n.name.localeCompare(r.name)),this.selectedApi="launch KC"}static{this.\u0275fac=function(r){return new(r||e)(E(ge),E(Ds),E(vs),E(Wn),E(ee),E(vr))}}static{this.\u0275cmp=di({type:e,selectors:[["app-root"]],decls:21,vars:13,consts:[[1,"col-md","sdk-top-controls"],[1,"sdk-version-info"],[1,"sdk-version-label"],[1,"sdk-version"],[1,"tester-text"],[3,"ngClass"],["type","checkbox","id","kc-sdk-advanced-mode","name","kc-sdk-advanced-mode",1,"sdk-tester-checkbox","kc-input",3,"change","ngModelChange","ngModel"],[1,"container",3,"ngClass"],[1,"row"],["class","row",4,"ngIf"],["class","row sdk-advanced-row",4,"ngIf"],[1,"col-md"],[3,"inAdvancedMode"],[1,"row","sdk-advanced-row"],[1,"col-md-3","sdk-tester-input-side"],["type","button","value","Clear Tester","id","kc-sdk-clear-tester",1,"tester-clear-tester",3,"click"],["type","button","value","Close All KC Windows","id","kc-sdk-close-windows",1,"tester-close-windows",3,"click","disabled"],["id","kc-workflow-available-apis",1,"tester-workflow-available-api",3,"ngModelChange","change","ngModel"],["value","launch KC"],["value","launch Encoder"],["value","assignConfig"],["value","setDemographics"],["value","setAuthToken"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"sdk-workflow-api-buttons"],["type","button","value","Call API","id","kc-sdk-run-workflow",1,"sdk-callApi-button",3,"click"],[1,"col-md-4","sdk-tester-left-side"],[1,"sdk-tester-input-area"],["name","workflowInput","id","kc-sdk-workflow-input","placeholder","Workflow input","spellcheck","false",1,"tester-text-area-advanced","ng-pristine","ng-valid","ng-touched",3,"ngModelChange","ngModel"],[1,"col-md-5","sdk-tester-right-side"],[1,"sdk-tester-output-area"],["type","button","value","Clear Output","id","kc-sdk-clear-tester",1,"tester-clear-output-tester",3,"click"],["placeholder","Output","name","outputJson","id","kc-sdk-input","spellcheck","false",1,"tester-text-area-advanced","ng-pristine","ng-valid","ng-touched",3,"ngModelChange","ngModel"],[3,"ngValue"]],template:function(r,o){r&1&&(y(0,"div",0)(1,"div",1)(2,"label",2),R(3,"sdk version:"),m(),y(4,"div",3),R(5),m(),te(6,"br"),m(),y(7,"label",4),R(8,"kc listening:"),m(),te(9,"div",5),y(10,"label",4),R(11,"encoder listening:"),m(),te(12,"div",5)(13,"br"),y(14,"label"),R(15," Advanced Mode: "),y(16,"input",6),z("change",function(){return o.advancedModeOnChange()}),we("ngModelChange",function(s){return Ne(o.SignInService.advancedMode,s)||(o.SignInService.advancedMode=s),s}),m()()(),y(17,"div",7),te(18,"div",8),ie(19,Qx,3,1,"div",9)(20,eM,35,5,"div",10),m()),r&2&&(D(5),qe(o.SdkTesterService.version),D(4),C("ngClass",_n(7,xm,!o.SdkTesterService.sdkKcIsListening,o.SdkTesterService.sdkKcIsListening)),D(3),C("ngClass",_n(10,xm,!o.SdkTesterService.sdkEncoderIsListening,o.SdkTesterService.sdkEncoderIsListening)),D(4),De("ngModel",o.SignInService.advancedMode),D(),C("ngClass",o.SignInService.advancedMode?"sdk-advanced-mode-container":"sdk-simple-mode-container"),D(2),C("ngIf",!o.SignInService.advancedMode),D(),C("ngIf",o.SignInService.advancedMode))},dependencies:[bn,Er,In,_r,us,ls,cs,Un,Xl,$n,os,Or,ds,Tm],styles:[`.sdk-callApi-button[_ngcontent-%COMP%]{margin-left:185px}
12
+ /*# sourceMappingURL=app.component.css.map */`]})}}return e})();var Is=new w(""),vc=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new _(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(T(Is),T(ee))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),Vr=class{_doc;constructor(t){this._doc=t}manager},Es="ng-app-id";function Nm(e){for(let t of e)t.remove()}function Am(e,t){let n=t.createElement("style");return n.textContent=e,n}function tM(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Es}="${t}"],link[${Es}="${t}"]`);if(o)for(let i of o)i.removeAttribute(Es),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function mc(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Dc=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=gi(i),tM(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Am);r?.forEach(o=>this.addUsage(o,this.external,mc))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(Nm(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Nm(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Am(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,mc(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Es,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(T(ge),T(ml),T(vl,8),T(gr))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),gc={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},wc=/%COMP%/g;var Om="%COMP%",nM=`_nghost-${Om}`,rM=`_ngcontent-${Om}`,oM=!0,iM=new w("",{providedIn:"root",factory:()=>oM});function sM(e){return rM.replace(wc,e)}function aM(e){return nM.replace(wc,e)}function Rm(e,t){return t.map(n=>n.replace(wc,e))}var Ec=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,l,c=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.tracingService=u,this.platformIsServer=gi(a),this.defaultRenderer=new jr(n,s,l,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ge.ShadowDom&&(r=G(P({},r),{encapsulation:Ge.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof _s?o.applyToHost(n):o instanceof Br&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,f=this.platformIsServer,p=this.tracingService;switch(r.encapsulation){case Ge.Emulated:i=new _s(l,c,r,this.appId,u,s,a,f,p);break;case Ge.ShadowDom:return new yc(l,c,n,r,s,a,this.nonce,f,p);default:i=new Br(l,c,r,u,s,a,f,p);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(T(vc),T(Dc),T(ml),T(iM),T(ge),T(gr),T(ee),T(vl),T(si,8))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),jr=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(gc[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(km(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(km(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new _(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=gc[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=gc[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(et.DashCase|et.Important)?t.style.setProperty(n,r,o&et.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&et.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=vt().getGlobalEventTarget(this.doc,t),!t))throw new _(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function km(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var yc=class extends jr{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,l,c){super(t,i,s,l,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=o.styles;u=Rm(o.id,u);for(let p of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=p,this.shadowRoot.appendChild(d)}let f=o.getExternalStyles?.();if(f)for(let p of f){let d=mc(p,i);a&&d.setAttribute("nonce",a),this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Br=class extends jr{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,l,c){super(t,i,s,a,l),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=c?Rm(c,u):u,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},_s=class extends Br{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,l,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,l,c,u),this.contentAttr=sM(u),this.hostAttr=aM(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var bs=class e extends wr{supportsDOMEvents=!0;static makeCurrent(){Ll(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=lM();return n==null?null:cM(n)}resetBaseElement(){Hr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Ir(document.cookie,t)}},Hr=null;function lM(){return Hr=Hr||document.head.querySelector("base"),Hr?Hr.getAttribute("href"):null}function cM(e){return new URL(e,document.baseURI).pathname}var uM=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),Pm=(()=>{class e extends Vr{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(T(ge))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),Fm=["alt","control","meta","shift"],dM={"\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"},fM={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Lm=(()=>{class e extends Vr{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vt().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Fm.forEach(c=>{let u=r.indexOf(c);u>-1&&(r.splice(u,1),s+=c+".")}),s+=i,r.length!=0||i.length===0)return null;let l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let o=dM[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Fm.forEach(s=>{if(s!==o){let a=fM[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(T(ge))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})();function _c(e,t){return np(P({rootComponent:e},pM(t)))}function pM(e){return{appProviders:[...vM,...e?.providers??[]],platformProviders:yM}}function hM(){bs.makeCurrent()}function gM(){return new Xe}function mM(){return lf(document),document}var yM=[{provide:gr,useValue:jl},{provide:yl,useValue:hM,multi:!0},{provide:ge,useFactory:mM}];var vM=[{provide:Xo,useValue:"root"},{provide:Xe,useFactory:gM},{provide:Is,useClass:Pm,multi:!0,deps:[ge]},{provide:Is,useClass:Lm,multi:!0,deps:[ge]},Ec,Dc,vc,{provide:fn,useExisting:Ec},{provide:$t,useClass:uM},[]];_c(Mm,{providers:[pc(hc())]});
14
13
  //# sourceMappingURL=main.js.map