kc-sdk
Version:
Knowledge Components SDK
7 lines • 253 kB
JavaScript
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:
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
`)}`:"",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(`
`);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(`
`+e.message,o,n,r),e[Ay]=o,e[To]=null,e}function Ly(e,t,n,r=null){e=e&&e.charAt(0)===`
`&&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,`
`)}`}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