@hodfords/nestjs-grpc-helper 11.0.1 → 11.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +0,0 @@
1
- import{a as v,b as X,e as Gr}from"./chunk-5FZOKLP6.js";function _d(t,e){return Object.is(t,e)}var ye=null,zr=!1,Wr=1,pt=Symbol("SIGNAL");function pe(t){let e=ye;return ye=t,e}var Jr={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 Qr(t){if(zr)throw new Error("");if(ye===null)return;ye.consumerOnSignalRead(t);let e=ye.nextProducerIndex++;if(Ln(ye),e<ye.producerNode.length&&ye.producerNode[e]!==t&&Bi(ye)){let i=ye.producerNode[e];Yr(i,ye.producerIndexOfThis[e])}ye.producerNode[e]!==t&&(ye.producerNode[e]=t,ye.producerIndexOfThis[e]=Bi(ye)?wd(t,ye,e):0),ye.producerLastReadVersion[e]=t.version}function x0(){Wr++}function vd(t){if(!(Bi(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Wr)){if(!t.producerMustRecompute(t)&&!ma(t)){t.dirty=!1,t.lastCleanEpoch=Wr;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Wr}}function yd(t){if(t.liveConsumerNode===void 0)return;let e=zr;zr=!0;try{for(let i of t.liveConsumerNode)i.dirty||O0(i)}finally{zr=e}}function Dd(){return ye?.consumerAllowSignalWrites!==!1}function O0(t){t.dirty=!0,yd(t),t.consumerMarkedDirty?.(t)}function pa(t){return t&&(t.nextProducerIndex=0),pe(t)}function ga(t,e){if(pe(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Bi(t))for(let i=t.nextProducerIndex;i<t.producerNode.length;i++)Yr(t.producerNode[i],t.producerIndexOfThis[i]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function ma(t){Ln(t);for(let e=0;e<t.producerNode.length;e++){let i=t.producerNode[e],n=t.producerLastReadVersion[e];if(n!==i.version||(vd(i),n!==i.version))return!0}return!1}function bd(t){if(Ln(t),Bi(t))for(let e=0;e<t.producerNode.length;e++)Yr(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function wd(t,e,i){if(Ed(t),Ln(t),t.liveConsumerNode.length===0)for(let n=0;n<t.producerNode.length;n++)t.producerIndexOfThis[n]=wd(t.producerNode[n],t,n);return t.liveConsumerIndexOfThis.push(i),t.liveConsumerNode.push(e)-1}function Yr(t,e){if(Ed(t),Ln(t),t.liveConsumerNode.length===1)for(let n=0;n<t.producerNode.length;n++)Yr(t.producerNode[n],t.producerIndexOfThis[n]);let i=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[i],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[i],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let n=t.liveConsumerIndexOfThis[e],r=t.liveConsumerNode[e];Ln(r),r.producerIndexOfThis[n]=e}}function Bi(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function Ln(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Ed(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Cd(t){let e=Object.create(A0);e.computation=t;let i=()=>{if(vd(e),Qr(e),e.value===qr)throw e.error;return e.value};return i[pt]=e,i}var fa=Symbol("UNSET"),ha=Symbol("COMPUTING"),qr=Symbol("ERRORED"),A0=X(v({},Jr),{value:fa,dirty:!0,error:null,equal:_d,producerMustRecompute(t){return t.value===fa||t.value===ha},producerRecomputeValue(t){if(t.value===ha)throw new Error("Detected cycle in computations.");let e=t.value;t.value=ha;let i=pa(t),n;try{n=t.computation()}catch(r){n=qr,t.error=r}finally{ga(t,i)}if(e!==fa&&e!==qr&&n!==qr&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}});function P0(){throw new Error}var Sd=P0;function Td(){Sd()}function Md(t){Sd=t}var F0=null;function Id(t){let e=Object.create(_a);e.value=t;let i=()=>(Qr(e),e.value);return i[pt]=e,i}function Kr(t,e){Dd()||Td(),t.equal(t.value,e)||(t.value=e,k0(t))}function Rd(t,e){Dd()||Td(),Kr(t,e(t.value))}var _a=X(v({},Jr),{equal:_d,value:void 0});function k0(t){t.version++,x0(),yd(t),F0?.()}function C(t){return typeof t=="function"}function jn(t){let i=t(n=>{Error.call(n),n.stack=new Error().stack});return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}var Zr=jn(t=>function(i){t(this),this.message=i?`${i.length} errors occurred during unsubscription:
2
- ${i.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
3
- `)}`:"",this.name="UnsubscriptionError",this.errors=i});function gn(t,e){if(t){let i=t.indexOf(e);0<=i&&t.splice(i,1)}}var oe=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:i}=this;if(i)if(this._parentage=null,Array.isArray(i))for(let o of i)o.remove(this);else i.remove(this);let{initialTeardown:n}=this;if(C(n))try{n()}catch(o){e=o instanceof Zr?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{Nd(o)}catch(s){e=e??[],s instanceof Zr?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Zr(e)}}add(e){var i;if(e&&e!==this)if(this.closed)Nd(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(i=this._finalizers)!==null&&i!==void 0?i:[]).push(e)}}_hasParent(e){let{_parentage:i}=this;return i===e||Array.isArray(i)&&i.includes(e)}_addParent(e){let{_parentage:i}=this;this._parentage=Array.isArray(i)?(i.push(e),i):i?[i,e]:e}_removeParent(e){let{_parentage:i}=this;i===e?this._parentage=null:Array.isArray(i)&&gn(i,e)}remove(e){let{_finalizers:i}=this;i&&gn(i,e),e instanceof t&&e._removeParent(this)}};oe.EMPTY=(()=>{let t=new oe;return t.closed=!0,t})();var va=oe.EMPTY;function Xr(t){return t instanceof oe||t&&"closed"in t&&C(t.remove)&&C(t.add)&&C(t.unsubscribe)}function Nd(t){C(t)?t():t.unsubscribe()}var ot={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Bn={setTimeout(t,e,...i){let{delegate:n}=Bn;return n?.setTimeout?n.setTimeout(t,e,...i):setTimeout(t,e,...i)},clearTimeout(t){let{delegate:e}=Bn;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function eo(t){Bn.setTimeout(()=>{let{onUnhandledError:e}=ot;if(e)e(t);else throw t})}function mn(){}var xd=ya("C",void 0,void 0);function Od(t){return ya("E",void 0,t)}function Ad(t){return ya("N",t,void 0)}function ya(t,e,i){return{kind:t,value:e,error:i}}var _n=null;function Vn(t){if(ot.useDeprecatedSynchronousErrorHandling){let e=!_n;if(e&&(_n={errorThrown:!1,error:null}),t(),e){let{errorThrown:i,error:n}=_n;if(_n=null,i)throw n}}else t()}function Pd(t){ot.useDeprecatedSynchronousErrorHandling&&_n&&(_n.errorThrown=!0,_n.error=t)}var vn=class extends oe{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Xr(e)&&e.add(this)):this.destination=B0}static create(e,i,n){return new Hn(e,i,n)}next(e){this.isStopped?ba(Ad(e),this):this._next(e)}error(e){this.isStopped?ba(Od(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?ba(xd,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},L0=Function.prototype.bind;function Da(t,e){return L0.call(t,e)}var wa=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:i}=this;if(i.next)try{i.next(e)}catch(n){to(n)}}error(e){let{partialObserver:i}=this;if(i.error)try{i.error(e)}catch(n){to(n)}else to(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(i){to(i)}}},Hn=class extends vn{constructor(e,i,n){super();let r;if(C(e)||!e)r={next:e??void 0,error:i??void 0,complete:n??void 0};else{let o;this&&ot.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&Da(e.next,o),error:e.error&&Da(e.error,o),complete:e.complete&&Da(e.complete,o)}):r=e}this.destination=new wa(r)}};function to(t){ot.useDeprecatedSynchronousErrorHandling?Pd(t):eo(t)}function j0(t){throw t}function ba(t,e){let{onStoppedNotification:i}=ot;i&&Bn.setTimeout(()=>i(t,e))}var B0={closed:!0,next:mn,error:j0,complete:mn};var $n=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ee(t){return t}function Ea(...t){return Ca(t)}function Ca(t){return t.length===0?Ee:t.length===1?t[0]:function(i){return t.reduce((n,r)=>r(n),i)}}var x=(()=>{class t{constructor(i){i&&(this._subscribe=i)}lift(i){let n=new t;return n.source=this,n.operator=i,n}subscribe(i,n,r){let o=H0(i)?i:new Hn(i,n,r);return Vn(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(i){try{return this._subscribe(i)}catch(n){i.error(n)}}forEach(i,n){return n=Fd(n),new n((r,o)=>{let s=new Hn({next:a=>{try{i(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(i){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(i)}[$n](){return this}pipe(...i){return Ca(i)(this)}toPromise(i){return i=Fd(i),new i((n,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function Fd(t){var e;return(e=t??ot.Promise)!==null&&e!==void 0?e:Promise}function V0(t){return t&&C(t.next)&&C(t.error)&&C(t.complete)}function H0(t){return t&&t instanceof vn||V0(t)&&Xr(t)}function Sa(t){return C(t?.lift)}function j(t){return e=>{if(Sa(e))return e.lift(function(i){try{return t(i,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function O(t,e,i,n,r){return new Ta(t,e,i,n,r)}var Ta=class extends vn{constructor(e,i,n,r,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=i?function(a){try{i(a)}catch(c){e.error(c)}}:super._next,this._error=r?function(a){try{r(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:i}=this;super.unsubscribe(),!i&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Un(){return j((t,e)=>{let i=null;t._refCount++;let n=O(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){i=null;return}let r=t._connection,o=i;i=null,r&&(!o||r===o)&&r.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(i=t.connect())})}var Gn=class extends x{constructor(e,i){super(),this.source=e,this.subjectFactory=i,this._subject=null,this._refCount=0,this._connection=null,Sa(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new oe;let i=this.getSubject();e.add(this.source.subscribe(O(i,void 0,()=>{this._teardown(),i.complete()},n=>{this._teardown(),i.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=oe.EMPTY)}return e}refCount(){return Un()(this)}};var zn={schedule(t){let e=requestAnimationFrame,i=cancelAnimationFrame,{delegate:n}=zn;n&&(e=n.requestAnimationFrame,i=n.cancelAnimationFrame);let r=e(o=>{i=void 0,t(o)});return new oe(()=>i?.(r))},requestAnimationFrame(...t){let{delegate:e}=zn;return(e?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:e}=zn;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var kd=jn(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var J=(()=>{class t extends x{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(i){let n=new no(this,this);return n.operator=i,n}_throwIfClosed(){if(this.closed)throw new kd}next(i){Vn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(i)}})}error(i){Vn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=i;let{observers:n}=this;for(;n.length;)n.shift().error(i)}})}complete(){Vn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:i}=this;for(;i.length;)i.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var i;return((i=this.observers)===null||i===void 0?void 0:i.length)>0}_trySubscribe(i){return this._throwIfClosed(),super._trySubscribe(i)}_subscribe(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)}_innerSubscribe(i){let{hasError:n,isStopped:r,observers:o}=this;return n||r?va:(this.currentObservers=null,o.push(i),new oe(()=>{this.currentObservers=null,gn(o,i)}))}_checkFinalizedStatuses(i){let{hasError:n,thrownError:r,isStopped:o}=this;n?i.error(r):o&&i.complete()}asObservable(){let i=new x;return i.source=this,i}}return t.create=(e,i)=>new no(e,i),t})(),no=class extends J{constructor(e,i){super(),this.destination=e,this.source=i}next(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,e)}error(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,e)}complete(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)}_subscribe(e){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&n!==void 0?n:va}};var ce=class extends J{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let i=super._subscribe(e);return!i.closed&&e.next(this._value),i}getValue(){let{hasError:e,thrownError:i,_value:n}=this;if(e)throw i;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var Ma={now(){return(Ma.delegate||Date).now()},delegate:void 0};var io=class extends oe{constructor(e,i){super()}schedule(e,i=0){return this}};var Vi={setInterval(t,e,...i){let{delegate:n}=Vi;return n?.setInterval?n.setInterval(t,e,...i):setInterval(t,e,...i)},clearInterval(t){let{delegate:e}=Vi;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Wn=class extends io{constructor(e,i){super(e,i),this.scheduler=e,this.work=i,this.pending=!1}schedule(e,i=0){var n;if(this.closed)return this;this.state=e;let r=this.id,o=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(o,r,i)),this.pending=!0,this.delay=i,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,i),this}requestAsyncId(e,i,n=0){return Vi.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,i,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return i;i!=null&&Vi.clearInterval(i)}execute(e,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,i);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,i){let n=!1,r;try{this.work(e)}catch(o){n=!0,r=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:e,scheduler:i}=this,{actions:n}=i;this.work=this.state=this.scheduler=null,this.pending=!1,gn(n,this),e!=null&&(this.id=this.recycleAsyncId(i,e,null)),this.delay=null,super.unsubscribe()}}};var qn=class t{constructor(e,i=t.now){this.schedulerActionCtor=e,this.now=i}schedule(e,i=0,n){return new this.schedulerActionCtor(this,e).schedule(n,i)}};qn.now=Ma.now;var Jn=class extends qn{constructor(e,i=qn.now){super(e,i),this.actions=[],this._active=!1}flush(e){let{actions:i}=this;if(this._active){i.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=i.shift());if(this._active=!1,n){for(;e=i.shift();)e.unsubscribe();throw n}}};var $0=new Jn(Wn),Ld=$0;var ro=class extends Wn{constructor(e,i){super(e,i),this.scheduler=e,this.work=i}requestAsyncId(e,i,n=0){return n!==null&&n>0?super.requestAsyncId(e,i,n):(e.actions.push(this),e._scheduled||(e._scheduled=zn.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,i,n=0){var r;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(e,i,n);let{actions:o}=e;i!=null&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==i&&(zn.cancelAnimationFrame(i),e._scheduled=void 0)}};var oo=class extends Jn{flush(e){this._active=!0;let i=this._scheduled;this._scheduled=void 0;let{actions:n}=this,r;e=e||n.shift();do if(r=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===i&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===i&&n.shift();)e.unsubscribe();throw r}}};var Hi=new oo(ro);var ge=new x(t=>t.complete());function so(t){return t&&C(t.schedule)}function jd(t){return t[t.length-1]}function Qn(t){return C(jd(t))?t.pop():void 0}function Ut(t){return so(jd(t))?t.pop():void 0}function Vd(t,e,i,n){function r(o){return o instanceof i?o:new i(function(s){s(o)})}return new(i||(i=Promise))(function(o,s){function a(u){try{l(n.next(u))}catch(d){s(d)}}function c(u){try{l(n.throw(u))}catch(d){s(d)}}function l(u){u.done?o(u.value):r(u.value).then(a,c)}l((n=n.apply(t,e||[])).next())})}function Bd(t){var e=typeof Symbol=="function"&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function yn(t){return this instanceof yn?(this.v=t,this):new yn(t)}function Hd(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i.apply(t,e||[]),r,o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(f){n[f]&&(r[f]=function(p){return new Promise(function(_,N){o.push([f,p,_,N])>1||a(f,p)})})}function a(f,p){try{c(n[f](p))}catch(_){d(o[0][3],_)}}function c(f){f.value instanceof yn?Promise.resolve(f.value.v).then(l,u):d(o[0][2],f)}function l(f){a("next",f)}function u(f){a("throw",f)}function d(f,p){f(p),o.shift(),o.length&&a(o[0][0],o[0][1])}}function $d(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],i;return e?e.call(t):(t=typeof Bd=="function"?Bd(t):t[Symbol.iterator](),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(o){i[o]=t[o]&&function(s){return new Promise(function(a,c){s=t[o](s),r(a,c,s.done,s.value)})}}function r(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}}var Yn=t=>t&&typeof t.length=="number"&&typeof t!="function";function ao(t){return C(t?.then)}function co(t){return C(t[$n])}function lo(t){return Symbol.asyncIterator&&C(t?.[Symbol.asyncIterator])}function uo(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function U0(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var fo=U0();function ho(t){return C(t?.[fo])}function po(t){return Hd(this,arguments,function*(){let i=t.getReader();try{for(;;){let{value:n,done:r}=yield yn(i.read());if(r)return yield yn(void 0);yield yield yn(n)}}finally{i.releaseLock()}})}function go(t){return C(t?.getReader)}function Y(t){if(t instanceof x)return t;if(t!=null){if(co(t))return G0(t);if(Yn(t))return z0(t);if(ao(t))return W0(t);if(lo(t))return Ud(t);if(ho(t))return q0(t);if(go(t))return J0(t)}throw uo(t)}function G0(t){return new x(e=>{let i=t[$n]();if(C(i.subscribe))return i.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function z0(t){return new x(e=>{for(let i=0;i<t.length&&!e.closed;i++)e.next(t[i]);e.complete()})}function W0(t){return new x(e=>{t.then(i=>{e.closed||(e.next(i),e.complete())},i=>e.error(i)).then(null,eo)})}function q0(t){return new x(e=>{for(let i of t)if(e.next(i),e.closed)return;e.complete()})}function Ud(t){return new x(e=>{Q0(t,e).catch(i=>e.error(i))})}function J0(t){return Ud(po(t))}function Q0(t,e){var i,n,r,o;return Vd(this,void 0,void 0,function*(){try{for(i=$d(t);n=yield i.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){r={error:s}}finally{try{n&&!n.done&&(o=i.return)&&(yield o.call(i))}finally{if(r)throw r.error}}e.complete()})}function ke(t,e,i,n=0,r=!1){let o=e.schedule(function(){i(),r?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!r)return o}function mo(t,e=0){return j((i,n)=>{i.subscribe(O(n,r=>ke(n,t,()=>n.next(r),e),()=>ke(n,t,()=>n.complete(),e),r=>ke(n,t,()=>n.error(r),e)))})}function _o(t,e=0){return j((i,n)=>{n.add(t.schedule(()=>i.subscribe(n),e))})}function Gd(t,e){return Y(t).pipe(_o(e),mo(e))}function zd(t,e){return Y(t).pipe(_o(e),mo(e))}function Wd(t,e){return new x(i=>{let n=0;return e.schedule(function(){n===t.length?i.complete():(i.next(t[n++]),i.closed||this.schedule())})})}function qd(t,e){return new x(i=>{let n;return ke(i,e,()=>{n=t[fo](),ke(i,e,()=>{let r,o;try{({value:r,done:o}=n.next())}catch(s){i.error(s);return}o?i.complete():i.next(r)},0,!0)}),()=>C(n?.return)&&n.return()})}function vo(t,e){if(!t)throw new Error("Iterable cannot be null");return new x(i=>{ke(i,e,()=>{let n=t[Symbol.asyncIterator]();ke(i,e,()=>{n.next().then(r=>{r.done?i.complete():i.next(r.value)})},0,!0)})})}function Jd(t,e){return vo(po(t),e)}function Qd(t,e){if(t!=null){if(co(t))return Gd(t,e);if(Yn(t))return Wd(t,e);if(ao(t))return zd(t,e);if(lo(t))return vo(t,e);if(ho(t))return qd(t,e);if(go(t))return Jd(t,e)}throw uo(t)}function ne(t,e){return e?Qd(t,e):Y(t)}function T(...t){let e=Ut(t);return ne(t,e)}function qe(t,e){let i=C(t)?t:()=>t,n=r=>r.error(i());return new x(e?r=>e.schedule(n,0,r):n)}function Ia(t){return!!t&&(t instanceof x||C(t.lift)&&C(t.subscribe))}var It=jn(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Yd(t){return t instanceof Date&&!isNaN(t)}function w(t,e){return j((i,n)=>{let r=0;i.subscribe(O(n,o=>{n.next(t.call(e,o,r++))}))})}var{isArray:Y0}=Array;function K0(t,e){return Y0(e)?t(...e):t(e)}function yo(t){return w(e=>K0(t,e))}var{isArray:Z0}=Array,{getPrototypeOf:X0,prototype:e_,keys:t_}=Object;function Kd(t){if(t.length===1){let e=t[0];if(Z0(e))return{args:e,keys:null};if(n_(e)){let i=t_(e);return{args:i.map(n=>e[n]),keys:i}}}return{args:t,keys:null}}function n_(t){return t&&typeof t=="object"&&X0(t)===e_}function Zd(t,e){return t.reduce((i,n,r)=>(i[n]=e[r],i),{})}function $i(...t){let e=Ut(t),i=Qn(t),{args:n,keys:r}=Kd(t);if(n.length===0)return ne([],e);let o=new x(i_(n,e,r?s=>Zd(r,s):Ee));return i?o.pipe(yo(i)):o}function i_(t,e,i=Ee){return n=>{Xd(e,()=>{let{length:r}=t,o=new Array(r),s=r,a=r;for(let c=0;c<r;c++)Xd(e,()=>{let l=ne(t[c],e),u=!1;l.subscribe(O(n,d=>{o[c]=d,u||(u=!0,a--),a||n.next(i(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Xd(t,e,i){t?ke(i,t,e):e()}function ef(t,e,i,n,r,o,s,a){let c=[],l=0,u=0,d=!1,f=()=>{d&&!c.length&&!l&&e.complete()},p=N=>l<n?_(N):c.push(N),_=N=>{o&&e.next(N),l++;let R=!1;Y(i(N,u++)).subscribe(O(e,S=>{r?.(S),o?p(S):e.next(S)},()=>{R=!0},void 0,()=>{if(R)try{for(l--;c.length&&l<n;){let S=c.shift();s?ke(e,s,()=>_(S)):_(S)}f()}catch(S){e.error(S)}}))};return t.subscribe(O(e,p,()=>{d=!0,f()})),()=>{a?.()}}function le(t,e,i=1/0){return C(e)?le((n,r)=>w((o,s)=>e(n,o,r,s))(Y(t(n,r))),i):(typeof e=="number"&&(i=e),j((n,r)=>ef(n,r,t,i)))}function Ra(t=1/0){return le(Ee,t)}function tf(){return Ra(1)}function Gt(...t){return tf()(ne(t,Ut(t)))}function Do(t){return new x(e=>{Y(t()).subscribe(e)})}var r_=["addListener","removeListener"],o_=["addEventListener","removeEventListener"],s_=["on","off"];function Je(t,e,i,n){if(C(i)&&(n=i,i=void 0),n)return Je(t,e,i).pipe(yo(n));let[r,o]=l_(t)?o_.map(s=>a=>t[s](e,a,i)):a_(t)?r_.map(nf(t,e)):c_(t)?s_.map(nf(t,e)):[];if(!r&&Yn(t))return le(s=>Je(s,e,i))(Y(t));if(!r)throw new TypeError("Invalid event target");return new x(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return r(a),()=>o(a)})}function nf(t,e){return i=>n=>t[i](e,n)}function a_(t){return C(t.addListener)&&C(t.removeListener)}function c_(t){return C(t.on)&&C(t.off)}function l_(t){return C(t.addEventListener)&&C(t.removeEventListener)}function Na(t=0,e,i=Ld){let n=-1;return e!=null&&(so(e)?i=e:n=e),new x(r=>{let o=Yd(t)?+t-i.now():t;o<0&&(o=0);let s=0;return i.schedule(function(){r.closed||(r.next(s++),0<=n?this.schedule(void 0,n):r.complete())},o)})}var{isArray:u_}=Array;function bo(t){return t.length===1&&u_(t[0])?t[0]:t}function ee(t,e){return j((i,n)=>{let r=0;i.subscribe(O(n,o=>t.call(e,o,r++)&&n.next(o)))})}function xa(...t){return t=bo(t),t.length===1?Y(t[0]):new x(d_(t))}function d_(t){return e=>{let i=[];for(let n=0;i&&!e.closed&&n<t.length;n++)i.push(Y(t[n]).subscribe(O(e,r=>{if(i){for(let o=0;o<i.length;o++)o!==n&&i[o].unsubscribe();i=null}e.next(r)})))}}function Dn(...t){let e=Qn(t),i=bo(t);return i.length?new x(n=>{let r=i.map(()=>[]),o=i.map(()=>!1);n.add(()=>{r=o=null});for(let s=0;!n.closed&&s<i.length;s++)Y(i[s]).subscribe(O(n,a=>{if(r[s].push(a),r.every(c=>c.length)){let c=r.map(l=>l.shift());n.next(e?e(...c):c),r.some((l,u)=>!l.length&&o[u])&&n.complete()}},()=>{o[s]=!0,!r[s].length&&n.complete()}));return()=>{r=o=null}}):ge}function st(t){return j((e,i)=>{let n=null,r=!1,o;n=e.subscribe(O(i,void 0,void 0,s=>{o=Y(t(s,st(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(i)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(i))})}function rf(t,e,i,n,r){return(o,s)=>{let a=i,c=e,l=0;o.subscribe(O(s,u=>{let d=l++;c=a?t(c,u,d):(a=!0,u),n&&s.next(c)},r&&(()=>{a&&s.next(c),s.complete()})))}}function zt(t,e){return C(e)?le(t,e,1):le(t,1)}function Wt(t){return j((e,i)=>{let n=!1;e.subscribe(O(i,r=>{n=!0,i.next(r)},()=>{n||i.next(t),i.complete()}))})}function Ce(t){return t<=0?()=>ge:j((e,i)=>{let n=0;e.subscribe(O(i,r=>{++n<=t&&(i.next(r),t<=n&&i.complete())}))})}function Oa(t){return w(()=>t)}function Aa(t,e=Ee){return t=t??f_,j((i,n)=>{let r,o=!0;i.subscribe(O(n,s=>{let a=e(s);(o||!t(r,a))&&(o=!1,r=a,n.next(s))}))})}function f_(t,e){return t===e}function wo(t=h_){return j((e,i)=>{let n=!1;e.subscribe(O(i,r=>{n=!0,i.next(r)},()=>n?i.complete():i.error(t())))})}function h_(){return new It}function Pa(...t){return e=>Gt(e,T(...t))}function qt(t){return j((e,i)=>{try{e.subscribe(i)}finally{i.add(t)}})}function gt(t,e){let i=arguments.length>=2;return n=>n.pipe(t?ee((r,o)=>t(r,o,n)):Ee,Ce(1),i?Wt(e):wo(()=>new It))}function Kn(t){return t<=0?()=>ge:j((e,i)=>{let n=[];e.subscribe(O(i,r=>{n.push(r),t<n.length&&n.shift()},()=>{for(let r of n)i.next(r);i.complete()},void 0,()=>{n=null}))})}function Fa(t,e){let i=arguments.length>=2;return n=>n.pipe(t?ee((r,o)=>t(r,o,n)):Ee,Kn(1),i?Wt(e):wo(()=>new It))}function ka(t,e){return j(rf(t,e,arguments.length>=2,!0))}function La(t){return ee((e,i)=>t<=i)}function Ui(...t){let e=Ut(t);return j((i,n)=>{(e?Gt(t,i,e):Gt(t,i)).subscribe(n)})}function me(t,e){return j((i,n)=>{let r=null,o=0,s=!1,a=()=>s&&!r&&n.complete();i.subscribe(O(n,c=>{r?.unsubscribe();let l=0,u=o++;Y(t(c,u)).subscribe(r=O(n,d=>n.next(e?e(c,d,u,l++):d),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function De(t){return j((e,i)=>{Y(t).subscribe(O(i,()=>i.complete(),mn)),!i.closed&&e.subscribe(i)})}function W(t,e,i){let n=C(t)||e||i?{next:t,error:e,complete:i}:t;return n?j((r,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;r.subscribe(O(o,c=>{var l;(l=n.next)===null||l===void 0||l.call(n,c),o.next(c)},()=>{var c;a=!1,(c=n.complete)===null||c===void 0||c.call(n),o.complete()},c=>{var l;a=!1,(l=n.error)===null||l===void 0||l.call(n,c),o.error(c)},()=>{var c,l;a&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(l=n.finalize)===null||l===void 0||l.call(n)}))}):Ee}function Eo(...t){let e=Qn(t);return j((i,n)=>{let r=t.length,o=new Array(r),s=t.map(()=>!1),a=!1;for(let c=0;c<r;c++)Y(t[c]).subscribe(O(n,l=>{o[c]=l,!a&&!s[c]&&(s[c]=!0,(a=s.every(Ee))&&(s=null))},mn));i.subscribe(O(n,c=>{if(a){let l=[c,...o];n.next(e?e(...l):l)}}))})}var Wf="https://g.co/ng/security#xss",b=class extends Error{constructor(e,i){super(ts(e,i)),this.code=e}};function ts(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}var qf=Symbol("InputSignalNode#UNSET"),p_=X(v({},_a),{transformFn:void 0,applyValueToInputSignal(t,e){Kr(t,e)}});function Jf(t,e){let i=Object.create(p_);i.value=t,i.transformFn=e?.transform;function n(){if(Qr(i),i.value===qf)throw new b(-950,!1);return i.value}return n[pt]=i,n}var Za=class extends J{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,i,n){let r=e,o=i||(()=>null),s=n;if(e&&typeof e=="object"){let c=e;r=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=ja(o),r&&(r=ja(r)),s&&(s=ja(s)));let a=super.subscribe({next:r,error:o,complete:s});return e instanceof oe&&e.add(a),a}};function ja(t){return e=>{setTimeout(t,void 0,e)}}var V=Za;function of(t,e){return Jf(t,e)}function g_(t){return Jf(qf,t)}var Dt=(of.required=g_,of),B=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(B||{});function Pe(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Pe).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let i=e.indexOf(`
4
- `);return i===-1?e:e.substring(0,i)}function Xa(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var Qf=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Qf||{}),vt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(vt||{});function or(t){return{toString:t}.toString()}var Rt=globalThis;var Nt={},je=[];function K(t){for(let e in t)if(t[e]===K)return e;throw Error("Could not find renamed property on target object.")}function m_(t,e){for(let i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}var __=K({\u0275cmp:K}),v_=K({\u0275dir:K}),y_=K({\u0275pipe:K}),D_=K({\u0275mod:K}),ko=K({\u0275fac:K}),Gi=K({__NG_ELEMENT_ID__:K}),sf=K({__NG_ENV_ID__:K}),q=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(q||{});function Yf(t,e,i){let n=t.length;for(;;){let r=t.indexOf(e,i);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=e.length;if(r+o===n||t.charCodeAt(r+o)<=32)return r}i=r+1}}function ec(t,e,i){let n=0;for(;n<i.length;){let r=i[n];if(typeof r=="number"){if(r!==0)break;n++;let o=i[n++],s=i[n++],a=i[n++];t.setAttribute(e,s,a,o)}else{let o=r,s=i[++n];b_(o)?t.setProperty(e,o,s):t.setAttribute(e,o,s),n++}}return n}function Kf(t){return t===3||t===4||t===6}function b_(t){return t.charCodeAt(0)===64}function zi(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let i=-1;for(let n=0;n<e.length;n++){let r=e[n];typeof r=="number"?i=r:i===0||(i===-1||i===2?af(t,i,r,null,e[++n]):af(t,i,r,null,null))}}return t}function af(t,e,i,n,r){let o=0,s=t.length;if(e===-1)s=-1;else for(;o<t.length;){let a=t[o++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=o-1;break}}}for(;o<t.length;){let a=t[o];if(typeof a=="number")break;if(a===i){if(n===null){r!==null&&(t[o+1]=r);return}else if(n===t[o+1]){t[o+2]=r;return}}o++,n!==null&&o++,r!==null&&o++}s!==-1&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,i),n!==null&&t.splice(o++,0,n),r!==null&&t.splice(o++,0,r)}var Zf="ng-template";function w_(t,e,i){let n=0,r=!0;for(;n<t.length;){let o=t[n++];if(typeof o=="string"&&r){let s=t[n++];if(i&&o==="class"&&Yf(s.toLowerCase(),e,0)!==-1)return!0}else if(o===1){for(;n<t.length&&typeof(o=t[n++])=="string";)if(o.toLowerCase()===e)return!0;return!1}else typeof o=="number"&&(r=!1)}return!1}function Xf(t){return t.type===4&&t.value!==Zf}function E_(t,e,i){let n=t.type===4&&!i?Zf:t.value;return e===n}function C_(t,e,i){let n=4,r=t.attrs||[],o=M_(r),s=!1;for(let a=0;a<e.length;a++){let c=e[a];if(typeof c=="number"){if(!s&&!at(n)&&!at(c))return!1;if(s&&at(c))continue;s=!1,n=c|n&1;continue}if(!s)if(n&4){if(n=2|n&1,c!==""&&!E_(t,c,i)||c===""&&e.length===1){if(at(n))return!1;s=!0}}else{let l=n&8?c:e[++a];if(n&8&&t.attrs!==null){if(!w_(t.attrs,l,i)){if(at(n))return!1;s=!0}continue}let u=n&8?"class":c,d=S_(u,r,Xf(t),i);if(d===-1){if(at(n))return!1;s=!0;continue}if(l!==""){let f;d>o?f="":f=r[d+1].toLowerCase();let p=n&8?f:null;if(p&&Yf(p,l,0)!==-1||n&2&&l!==f){if(at(n))return!1;s=!0}}}}return at(n)||s}function at(t){return(t&1)===0}function S_(t,e,i,n){if(e===null)return-1;let r=0;if(n||!i){let o=!1;for(;r<e.length;){let s=e[r];if(s===t)return r;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=e[++r];for(;typeof a=="string";)a=e[++r];continue}else{if(s===4)break;if(s===0){r+=4;continue}}r+=o?1:2}return-1}else return I_(e,t)}function eh(t,e,i=!1){for(let n=0;n<e.length;n++)if(C_(t,e[n],i))return!0;return!1}function T_(t){let e=t.attrs;if(e!=null){let i=e.indexOf(5);if(!(i&1))return e[i+1]}return null}function M_(t){for(let e=0;e<t.length;e++){let i=t[e];if(Kf(i))return e}return t.length}function I_(t,e){let i=t.indexOf(4);if(i>-1)for(i++;i<t.length;){let n=t[i];if(typeof n=="number")return-1;if(n===e)return i;i++}return-1}function R_(t,e){e:for(let i=0;i<e.length;i++){let n=e[i];if(t.length===n.length){for(let r=0;r<t.length;r++)if(t[r]!==n[r])continue e;return!0}}return!1}function cf(t,e){return t?":not("+e.trim()+")":e}function N_(t){let e=t[0],i=1,n=2,r="",o=!1;for(;i<t.length;){let s=t[i];if(typeof s=="string")if(n&2){let a=t[++i];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else n&8?r+="."+s:n&4&&(r+=" "+s);else r!==""&&!at(s)&&(e+=cf(o,r),r=""),n=s,o=o||!at(n);i++}return r!==""&&(e+=cf(o,r)),e}function x_(t){return t.map(N_).join(",")}function O_(t){let e=[],i=[],n=1,r=2;for(;n<t.length;){let o=t[n];if(typeof o=="string")r===2?o!==""&&e.push(o,t[++n]):r===8&&i.push(o);else{if(!at(r))break;r=o}n++}return{attrs:e,classes:i}}function re(t){return or(()=>{let e=oh(t),i=X(v({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Qf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||vt.Emulated,styles:t.styles||je,_:null,schemas:t.schemas||null,tView:null,id:""});sh(i);let n=t.dependencies;return i.directiveDefs=uf(n,!1),i.pipeDefs=uf(n,!0),i.id=F_(i),i})}function A_(t){return Yt(t)||il(t)}function P_(t){return t!==null}function Ke(t){return or(()=>({type:t.type,bootstrap:t.bootstrap||je,declarations:t.declarations||je,imports:t.imports||je,exports:t.exports||je,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function lf(t,e){if(t==null)return Nt;let i={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],o,s,a=q.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),e?(i[o]=a!==q.None?[n,a]:n,e[o]=s):i[o]=n}return i}function te(t){return or(()=>{let e=oh(t);return sh(e),e})}function th(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Yt(t){return t[__]||null}function il(t){return t[v_]||null}function nh(t){return t[y_]||null}function ih(t){let e=Yt(t)||il(t)||nh(t);return e!==null?e.standalone:!1}function rh(t,e){let i=t[D_]||null;if(!i&&e===!0)throw new Error(`Type ${Pe(t)} does not have '\u0275mod' property.`);return i}function oh(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Nt,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||je,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:lf(t.inputs,e),outputs:lf(t.outputs),debugInfo:null}}function sh(t){t.features?.forEach(e=>e(t))}function uf(t,e){if(!t)return null;let i=e?nh:A_;return()=>(typeof t=="function"?t():t).map(n=>i(n)).filter(P_)}function F_(t){let e=0,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let r of i)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483648,"c"+e}var kt=0,A=1,M=2,Se=3,lt=4,$e=5,ii=6,Wi=7,Ie=8,ri=9,xt=10,se=11,qi=12,df=13,ui=14,Qe=15,sr=16,Zn=17,Ot=18,ns=19,ah=20,Qt=21,Ba=22,En=23,Fe=25,ch=1;var Cn=7,Lo=8,oi=9,Re=10,rl=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(rl||{});function bn(t){return Array.isArray(t)&&typeof t[ch]=="object"}function Lt(t){return Array.isArray(t)&&t[ch]===!0}function lh(t){return(t.flags&4)!==0}function is(t){return t.componentOffset>-1}function ol(t){return(t.flags&1)===1}function Sn(t){return!!t.template}function k_(t){return(t[M]&512)!==0}var L_="svg",j_="math",B_=!1;function V_(){return B_}function yt(t){for(;Array.isArray(t);)t=t[kt];return t}function uh(t,e){return yt(e[t])}function Ze(t,e){return yt(e[t.index])}function sl(t,e){return t.data[e]}function dh(t,e){return t[e]}function Zt(t,e){let i=e[t];return bn(i)?i:i[kt]}function H_(t){return(t[M]&4)===4}function al(t){return(t[M]&128)===128}function $_(t){return Lt(t[Se])}function jo(t,e){return e==null?null:t[e]}function fh(t){t[Zn]=0}function U_(t){t[M]&1024||(t[M]|=1024,al(t)&&Ji(t))}function G_(t,e){for(;t>0;)e=e[ui],t--;return e}function cl(t){return!!(t[M]&9216||t[En]?.dirty)}function tc(t){cl(t)?Ji(t):t[M]&64&&(V_()?(t[M]|=1024,Ji(t)):t[xt].changeDetectionScheduler?.notify())}function Ji(t){t[xt].changeDetectionScheduler?.notify();let e=Qi(t);for(;e!==null&&!(e[M]&8192||(e[M]|=8192,!al(e)));)e=Qi(e)}function hh(t,e){if((t[M]&256)===256)throw new b(911,!1);t[Qt]===null&&(t[Qt]=[]),t[Qt].push(e)}function z_(t,e){if(t[Qt]===null)return;let i=t[Qt].indexOf(e);i!==-1&&t[Qt].splice(i,1)}function Qi(t){let e=t[Se];return Lt(e)?e[Se]:e}var k={lFrame:Eh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function W_(){return k.lFrame.elementDepthCount}function q_(){k.lFrame.elementDepthCount++}function J_(){k.lFrame.elementDepthCount--}function ph(){return k.bindingsEnabled}function gh(){return k.skipHydrationRootTNode!==null}function Q_(t){return k.skipHydrationRootTNode===t}function Y_(){k.skipHydrationRootTNode=null}function P(){return k.lFrame.lView}function _e(){return k.lFrame.tView}function ll(t){return k.lFrame.contextLView=t,t[Ie]}function ul(t){return k.lFrame.contextLView=null,t}function Ve(){let t=mh();for(;t!==null&&t.type===64;)t=t.parent;return t}function mh(){return k.lFrame.currentTNode}function K_(){let t=k.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function ar(t,e){let i=k.lFrame;i.currentTNode=t,i.isParent=e}function _h(){return k.lFrame.isParent}function vh(){k.lFrame.isParent=!1}function Z_(){return k.lFrame.contextLView}function rs(){let t=k.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function X_(t){return k.lFrame.bindingIndex=t}function xn(){return k.lFrame.bindingIndex++}function yh(t){let e=k.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function ev(){return k.lFrame.inI18n}function tv(t,e){let i=k.lFrame;i.bindingIndex=i.bindingRootIndex=t,nc(e)}function nv(){return k.lFrame.currentDirectiveIndex}function nc(t){k.lFrame.currentDirectiveIndex=t}function iv(t){let e=k.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Dh(){return k.lFrame.currentQueryIndex}function dl(t){k.lFrame.currentQueryIndex=t}function rv(t){let e=t[A];return e.type===2?e.declTNode:e.type===1?t[$e]:null}function bh(t,e,i){if(i&B.SkipSelf){let r=e,o=t;for(;r=r.parent,r===null&&!(i&B.Host);)if(r=rv(o),r===null||(o=o[ui],r.type&10))break;if(r===null)return!1;e=r,t=o}let n=k.lFrame=wh();return n.currentTNode=e,n.lView=t,!0}function fl(t){let e=wh(),i=t[A];k.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function wh(){let t=k.lFrame,e=t===null?null:t.child;return e===null?Eh(t):e}function Eh(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Ch(){let t=k.lFrame;return k.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Sh=Ch;function hl(){let t=Ch();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ov(t){return(k.lFrame.contextLView=G_(t,k.lFrame.contextLView))[Ie]}function Xt(){return k.lFrame.selectedIndex}function Tn(t){k.lFrame.selectedIndex=t}function cr(){let t=k.lFrame;return sl(t.tView,t.selectedIndex)}function sv(){return k.lFrame.currentNamespace}var Th=!0;function pl(){return Th}function gl(t){Th=t}function av(){return di(Ve(),P())}function di(t,e){return new de(Ze(t,e))}var de=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=av;let t=e;return t})();function cv(t){return t instanceof de?t.nativeElement:t}function lv(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],o=e[n];if(i&&(r=i(r),o=i(o)),o!==r)return!1}return!0}function uv(t){return t.flat(Number.POSITIVE_INFINITY)}function ml(t,e){t.forEach(i=>Array.isArray(i)?ml(i,e):e(i))}function Mh(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function Bo(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function dv(t,e){let i=[];for(let n=0;n<t;n++)i.push(e);return i}function fv(t,e,i,n){let r=t.length;if(r==e)t.push(i,n);else if(r===1)t.push(n,t[0]),t[0]=i;else{for(r--,t.push(t[r-1],t[r]);r>e;){let o=r-2;t[r]=t[o],r--}t[e]=i,t[e+1]=n}}function _l(t,e,i){let n=lr(t,e);return n>=0?t[n|1]=i:(n=~n,fv(t,n,e,i)),n}function Va(t,e){let i=lr(t,e);if(i>=0)return t[i|1]}function lr(t,e){return hv(t,e,1)}function hv(t,e,i){let n=0,r=t.length>>i;for(;r!==n;){let o=n+(r-n>>1),s=t[o<<i];if(e===s)return o<<i;s>e?r=o:n=o+1}return~(r<<i)}function pv(){return this._results[Symbol.iterator]()}var ic=class t{get changes(){return this._changes??=new V}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let i=t.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=pv)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,i){return this._results.reduce(e,i)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,i){this.dirty=!1;let n=uv(e);(this._changesDetected=!lv(this._results,n,i))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Ih(t){return(t.flags&128)===128}var rc;function Rh(t){rc=t}function gv(){if(rc!==void 0)return rc;if(typeof document<"u")return document;throw new b(210,!1)}function g(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Xe(t){return{providers:t.providers||[],imports:t.imports||[]}}function os(t){return ff(t,xh)||ff(t,Oh)}function Nh(t){return os(t)!==null}function ff(t,e){return t.hasOwnProperty(e)?t[e]:null}function mv(t){let e=t&&(t[xh]||t[Oh]);return e||null}function hf(t){return t&&(t.hasOwnProperty(pf)||t.hasOwnProperty(_v))?t[pf]:null}var xh=K({\u0275prov:K}),pf=K({\u0275inj:K}),Oh=K({ngInjectableDef:K}),_v=K({ngInjectorDef:K}),I=class{constructor(e,i){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof i=="number"?this.__NG_ELEMENT_ID__=i:i!==void 0&&(this.\u0275prov=g({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}},vl=new I("",{providedIn:"root",factory:()=>vv}),vv="ng",yl=new I(""),Ue=new I("",{providedIn:"platform",factory:()=>"unknown"});var Dl=new I("",{providedIn:"root",factory:()=>gv().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var yv=K({__forward_ref__:K});function bl(t){return t.__forward_ref__=bl,t.toString=function(){return Pe(this())},t}function Be(t){return Ah(t)?t():t}function Ah(t){return typeof t=="function"&&t.hasOwnProperty(yv)&&t.__forward_ref__===bl}function Ph(t){return t&&!!t.\u0275providers}function ss(t){return typeof t=="string"?t:t==null?"":String(t)}function Dv(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():ss(t)}function bv(t,e){let i=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new b(-200,t)}function wl(t,e){throw new b(-201,!1)}var oc;function Fh(){return oc}function Le(t){let e=oc;return oc=t,e}function kh(t,e,i){let n=os(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(i&B.Optional)return null;if(e!==void 0)return e;wl(t,"Injector")}var wv={},Yi=wv,sc="__NG_DI_FLAG__",Vo="ngTempTokenPath",Ev="ngTokenPath",Cv=/\n/gm,Sv="\u0275",gf="__source",ti;function Tv(){return ti}function Jt(t){let e=ti;return ti=t,e}function Mv(t,e=B.Default){if(ti===void 0)throw new b(-203,!1);return ti===null?kh(t,void 0,e):ti.get(t,e&B.Optional?null:void 0,e)}function E(t,e=B.Default){return(Fh()||Mv)(Be(t),e)}function h(t,e=B.Default){return E(t,as(e))}function as(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function ac(t){let e=[];for(let i=0;i<t.length;i++){let n=Be(t[i]);if(Array.isArray(n)){if(n.length===0)throw new b(900,!1);let r,o=B.Default;for(let s=0;s<n.length;s++){let a=n[s],c=Iv(a);typeof c=="number"?c===-1?r=a.token:o|=c:r=a}e.push(E(r,o))}else e.push(E(n))}return e}function Lh(t,e){return t[sc]=e,t.prototype[sc]=e,t}function Iv(t){return t[sc]}function Rv(t,e,i,n){let r=t[Vo];throw e[gf]&&r.unshift(e[gf]),t.message=Nv(`
5
- `+t.message,r,i,n),t[Ev]=r,t[Vo]=null,t}function Nv(t,e,i,n=null){t=t&&t.charAt(0)===`
6
- `&&t.charAt(1)==Sv?t.slice(2):t;let r=Pe(e);if(Array.isArray(e))r=e.map(Pe).join(" -> ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):Pe(a)))}r=`{${o.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${t.replace(Cv,`
7
- `)}`}var xv="h",Ov="b";var Av=()=>null;function El(t,e,i=!1){return Av(t,e,i)}var Co="__parameters__";function Pv(t){return function(...i){if(t){let n=t(...i);for(let r in n)this[r]=n[r]}}}function jh(t,e,i){return or(()=>{let n=Pv(e);function r(...o){if(this instanceof r)return n.apply(this,o),this;let s=new r(...o);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(Co)?c[Co]:Object.defineProperty(c,Co,{value:[]})[Co];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var Cl=Lh(jh("Optional"),8);var Bh=Lh(jh("SkipSelf"),4);function Mn(t,e){let i=t.hasOwnProperty(ko);return i?t[ko]:null}var si=new I(""),Vh=new I("",-1),Hh=new I(""),Ho=class{get(e,i=Yi){if(i===Yi){let n=new Error(`NullInjectorError: No provider for ${Pe(e)}!`);throw n.name="NullInjectorError",n}return i}};function fi(t){return{\u0275providers:t}}function Sl(...t){return{\u0275providers:$h(!0,t),\u0275fromNgModule:!0}}function $h(t,...e){let i=[],n=new Set,r,o=s=>{i.push(s)};return ml(e,s=>{let a=s;cc(a,o,[],n)&&(r||=[],r.push(a))}),r!==void 0&&Uh(r,o),i}function Uh(t,e){for(let i=0;i<t.length;i++){let{ngModule:n,providers:r}=t[i];Tl(r,o=>{e(o,n)})}}function cc(t,e,i,n){if(t=Be(t),!t)return!1;let r=null,o=hf(t),s=!o&&Yt(t);if(!o&&!s){let c=t.ngModule;if(o=hf(c),o)r=c;else return!1}else{if(s&&!s.standalone)return!1;r=t}let a=n.has(r);if(s){if(a)return!1;if(n.add(r),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)cc(l,e,i,n)}}else if(o){if(o.imports!=null&&!a){n.add(r);let l;try{ml(o.imports,u=>{cc(u,e,i,n)&&(l||=[],l.push(u))})}finally{}l!==void 0&&Uh(l,e)}if(!a){let l=Mn(r)||(()=>new r);e({provide:r,useFactory:l,deps:je},r),e({provide:Hh,useValue:r,multi:!0},r),e({provide:si,useValue:()=>E(r),multi:!0},r)}let c=o.providers;if(c!=null&&!a){let l=t;Tl(c,u=>{e(u,l)})}}else return!1;return r!==t&&t.providers!==void 0}function Tl(t,e){for(let i of t)Ph(i)&&(i=i.\u0275providers),Array.isArray(i)?Tl(i,e):e(i)}var Fv=K({provide:String,useValue:K});function Gh(t){return t!==null&&typeof t=="object"&&Fv in t}function kv(t){return!!(t&&t.useExisting)}function Lv(t){return!!(t&&t.useFactory)}function lc(t){return typeof t=="function"}var cs=new I(""),No={},jv={},Ha;function ls(){return Ha===void 0&&(Ha=new Ho),Ha}var Te=class{},Ki=class extends Te{get destroyed(){return this._destroyed}constructor(e,i,n,r){super(),this.parent=i,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,dc(e,s=>this.processProvider(s)),this.records.set(Vh,Xn(void 0,this)),r.has("environment")&&this.records.set(Te,Xn(void 0,this));let o=this.records.get(cs);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Hh,je,B.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let i=Jt(this),n=Le(void 0),r;try{return e()}finally{Jt(i),Le(n)}}get(e,i=Yi,n=B.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(sf))return e[sf](this);n=as(n);let r,o=Jt(this),s=Le(void 0);try{if(!(n&B.SkipSelf)){let c=this.records.get(e);if(c===void 0){let l=Gv(e)&&os(e);l&&this.injectableDefInScope(l)?c=Xn(uc(e),No):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=n&B.Self?ls():this.parent;return i=n&B.Optional&&i===Yi?null:i,a.get(e,i)}catch(a){if(a.name==="NullInjectorError"){if((a[Vo]=a[Vo]||[]).unshift(Pe(e)),o)throw a;return Rv(a,e,"R3InjectorError",this.source)}else throw a}finally{Le(s),Jt(o)}}resolveInjectorInitializers(){let e=Jt(this),i=Le(void 0),n;try{let r=this.get(si,je,B.Self);for(let o of r)o()}finally{Jt(e),Le(i)}}toString(){let e=[],i=this.records;for(let n of i.keys())e.push(Pe(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new b(205,!1)}processProvider(e){e=Be(e);let i=lc(e)?e:Be(e&&e.provide),n=Vv(e);if(!lc(e)&&e.multi===!0){let r=this.records.get(i);r||(r=Xn(void 0,No,!0),r.factory=()=>ac(r.multi),this.records.set(i,r)),i=e,r.multi.push(e)}this.records.set(i,n)}hydrate(e,i){return i.value===No&&(i.value=jv,i.value=i.factory()),typeof i.value=="object"&&i.value&&Uv(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}injectableDefInScope(e){if(!e.providedIn)return!1;let i=Be(e.providedIn);return typeof i=="string"?i==="any"||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(e){let i=this._onDestroyHooks.indexOf(e);i!==-1&&this._onDestroyHooks.splice(i,1)}};function uc(t){let e=os(t),i=e!==null?e.factory:Mn(t);if(i!==null)return i;if(t instanceof I)throw new b(204,!1);if(t instanceof Function)return Bv(t);throw new b(204,!1)}function Bv(t){if(t.length>0)throw new b(204,!1);let i=mv(t);return i!==null?()=>i.factory(t):()=>new t}function Vv(t){if(Gh(t))return Xn(void 0,t.useValue);{let e=Hv(t);return Xn(e,No)}}function Hv(t,e,i){let n;if(lc(t)){let r=Be(t);return Mn(r)||uc(r)}else if(Gh(t))n=()=>Be(t.useValue);else if(Lv(t))n=()=>t.useFactory(...ac(t.deps||[]));else if(kv(t))n=()=>E(Be(t.useExisting));else{let r=Be(t&&(t.useClass||t.provide));if($v(t))n=()=>new r(...ac(t.deps));else return Mn(r)||uc(r)}return n}function Xn(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function $v(t){return!!t.deps}function Uv(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Gv(t){return typeof t=="function"||typeof t=="object"&&t instanceof I}function dc(t,e){for(let i of t)Array.isArray(i)?dc(i,e):i&&Ph(i)?dc(i.\u0275providers,e):e(i)}function jt(t,e){t instanceof Ki&&t.assertNotDestroyed();let i,n=Jt(t),r=Le(void 0);try{return e()}finally{Jt(n),Le(r)}}function zh(t){if(!Fh()&&!Tv())throw new b(-203,!1)}function zv(t){return typeof t=="function"}var fc=class{constructor(e,i,n){this.previousValue=e,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}};function Wh(t,e,i,n){e!==null?e.applyValueToInputSignal(e,n):t[i]=n}function He(){return qh}function qh(t){return t.type.prototype.ngOnChanges&&(t.setInput=qv),Wv}He.ngInherit=!0;function Wv(){let t=Qh(this),e=t?.current;if(e){let i=t.previous;if(i===Nt)t.previous=e;else for(let n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function qv(t,e,i,n,r){let o=this.declaredInputs[n],s=Qh(t)||Jv(t,{previous:Nt,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new fc(l&&l.currentValue,i,c===Nt),Wh(t,e,r,i)}var Jh="__ngSimpleChanges__";function Qh(t){return t[Jh]||null}function Jv(t,e){return t[Jh]=e}var mf=null;var mt=function(t,e,i){mf?.(t,e,i)};function Qv(t,e,i){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(n){let s=qh(e);(i.preOrderHooks??=[]).push(t,s),(i.preOrderCheckHooks??=[]).push(t,s)}r&&(i.preOrderHooks??=[]).push(0-t,r),o&&((i.preOrderHooks??=[]).push(t,o),(i.preOrderCheckHooks??=[]).push(t,o))}function Ml(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i<n;i++){let o=t.data[i].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=o;s&&(t.contentHooks??=[]).push(-i,s),a&&((t.contentHooks??=[]).push(i,a),(t.contentCheckHooks??=[]).push(i,a)),c&&(t.viewHooks??=[]).push(-i,c),l&&((t.viewHooks??=[]).push(i,l),(t.viewCheckHooks??=[]).push(i,l)),u!=null&&(t.destroyHooks??=[]).push(i,u)}}function xo(t,e,i){Yh(t,e,3,i)}function Oo(t,e,i,n){(t[M]&3)===i&&Yh(t,e,i,n)}function $a(t,e){let i=t[M];(i&3)===e&&(i&=16383,i+=1,t[M]=i)}function Yh(t,e,i,n){let r=n!==void 0?t[Zn]&65535:0,o=n??-1,s=e.length-1,a=0;for(let c=r;c<s;c++)if(typeof e[c+1]=="number"){if(a=e[c],n!=null&&a>=n)break}else e[c]<0&&(t[Zn]+=65536),(a<o||o==-1)&&(Yv(t,i,e,c),t[Zn]=(t[Zn]&4294901760)+c+2),c++}function _f(t,e){mt(4,t,e);let i=pe(null);try{e.call(t)}finally{pe(i),mt(5,t,e)}}function Yv(t,e,i,n){let r=i[n]<0,o=i[n+1],s=r?-i[n]:i[n],a=t[s];r?t[M]>>14<t[Zn]>>16&&(t[M]&3)===e&&(t[M]+=16384,_f(a,o)):_f(a,o)}var ni=-1,Zi=class{constructor(e,i,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}};function Kv(t){return t instanceof Zi}function Zv(t){return(t.flags&8)!==0}function Xv(t){return(t.flags&16)!==0}function Kh(t){return t!==ni}function $o(t){return t&32767}function ey(t){return t>>16}function Uo(t,e){let i=ey(t),n=e;for(;i>0;)n=n[ui],i--;return n}var hc=!0;function Go(t){let e=hc;return hc=t,e}var ty=256,Zh=ty-1,Xh=5,ny=0,_t={};function iy(t,e,i){let n;typeof i=="string"?n=i.charCodeAt(0)||0:i.hasOwnProperty(Gi)&&(n=i[Gi]),n==null&&(n=i[Gi]=ny++);let r=n&Zh,o=1<<r;e.data[t+(r>>Xh)]|=o}function ep(t,e){let i=tp(t,e);if(i!==-1)return i;let n=e[A];n.firstCreatePass&&(t.injectorIndex=e.length,Ua(n.data,t),Ua(e,null),Ua(n.blueprint,null));let r=Il(t,e),o=t.injectorIndex;if(Kh(r)){let s=$o(r),a=Uo(r,e),c=a[A].data;for(let l=0;l<8;l++)e[o+l]=a[s+l]|c[s+l]}return e[o+8]=r,o}function Ua(t,e){t.push(0,0,0,0,0,0,0,0,e)}function tp(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Il(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let i=0,n=null,r=e;for(;r!==null;){if(n=sp(r),n===null)return ni;if(i++,r=r[ui],n.injectorIndex!==-1)return n.injectorIndex|i<<16}return ni}function ry(t,e,i){iy(t,e,i)}function oy(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let i=t.attrs;if(i){let n=i.length,r=0;for(;r<n;){let o=i[r];if(Kf(o))break;if(o===0)r=r+2;else if(typeof o=="number")for(r++;r<n&&typeof i[r]=="string";)r++;else{if(o===e)return i[r+1];r=r+2}}}return null}function np(t,e,i){if(i&B.Optional||t!==void 0)return t;wl(e,"NodeInjector")}function ip(t,e,i,n){if(i&B.Optional&&n===void 0&&(n=null),!(i&(B.Self|B.Host))){let r=t[ri],o=Le(void 0);try{return r?r.get(e,n,i&B.Optional):kh(e,n,i&B.Optional)}finally{Le(o)}}return np(n,e,i)}function rp(t,e,i,n=B.Default,r){if(t!==null){if(e[M]&2048&&!(n&B.Self)){let s=ly(t,e,i,n,_t);if(s!==_t)return s}let o=op(t,e,i,n,_t);if(o!==_t)return o}return ip(e,i,n,r)}function op(t,e,i,n,r){let o=ay(i);if(typeof o=="function"){if(!bh(e,t,n))return n&B.Host?np(r,i,n):ip(e,i,n,r);try{let s;if(s=o(n),s==null&&!(n&B.Optional))wl(i);else return s}finally{Sh()}}else if(typeof o=="number"){let s=null,a=tp(t,e),c=ni,l=n&B.Host?e[Qe][$e]:null;for((a===-1||n&B.SkipSelf)&&(c=a===-1?Il(t,e):e[a+8],c===ni||!yf(n,!1)?a=-1:(s=e[A],a=$o(c),e=Uo(c,e)));a!==-1;){let u=e[A];if(vf(o,a,u.data)){let d=sy(a,e,i,s,n,l);if(d!==_t)return d}c=e[a+8],c!==ni&&yf(n,e[A].data[a+8]===l)&&vf(o,a,e)?(s=u,a=$o(c),e=Uo(c,e)):a=-1}}return r}function sy(t,e,i,n,r,o){let s=e[A],a=s.data[t+8],c=n==null?is(a)&&hc:n!=s&&(a.type&3)!==0,l=r&B.Host&&o===a,u=Ao(a,s,i,c,l);return u!==null?ai(e,s,u,a):_t}function Ao(t,e,i,n,r){let o=t.providerIndexes,s=e.data,a=o&1048575,c=t.directiveStart,l=t.directiveEnd,u=o>>20,d=n?a:a+u,f=r?a+u:l;for(let p=d;p<f;p++){let _=s[p];if(p<c&&i===_||p>=c&&_.type===i)return p}if(r){let p=s[c];if(p&&Sn(p)&&p.type===i)return c}return null}function ai(t,e,i,n){let r=t[i],o=e.data;if(Kv(r)){let s=r;s.resolving&&bv(Dv(o[i]));let a=Go(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?Le(s.injectImpl):null,u=bh(t,n,B.Default);try{r=t[i]=s.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&Qv(i,o[i],e)}finally{l!==null&&Le(l),Go(a),s.resolving=!1,Sh()}}return r}function ay(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Gi)?t[Gi]:void 0;return typeof e=="number"?e>=0?e&Zh:cy:e}function vf(t,e,i){let n=1<<t;return!!(i[e+(t>>Xh)]&n)}function yf(t,e){return!(t&B.Self)&&!(t&B.Host&&e)}var wn=class{constructor(e,i){this._tNode=e,this._lView=i}get(e,i,n){return rp(this._tNode,this._lView,e,as(n),i)}};function cy(){return new wn(Ve(),P())}function ur(t){return or(()=>{let e=t.prototype.constructor,i=e[ko]||pc(e),n=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){let o=r[ko]||pc(r);if(o&&o!==i)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function pc(t){return Ah(t)?()=>{let e=pc(Be(t));return e&&e()}:Mn(t)}function ly(t,e,i,n,r){let o=t,s=e;for(;o!==null&&s!==null&&s[M]&2048&&!(s[M]&512);){let a=op(o,s,i,n|B.Self,_t);if(a!==_t)return a;let c=o.parent;if(!c){let l=s[ah];if(l){let u=l.get(i,_t,n);if(u!==_t)return u}c=sp(s),s=s[ui]}o=c}return r}function sp(t){let e=t[A],i=e.type;return i===2?e.declTNode:i===1?t[$e]:null}function hi(t){return oy(Ve(),t)}function Df(t,e=null,i=null,n){let r=ap(t,e,i,n);return r.resolveInjectorInitializers(),r}function ap(t,e=null,i=null,n,r=new Set){let o=[i||je,Sl(t)];return n=n||(typeof t=="object"?void 0:Pe(t)),new Ki(o,e||ls(),n||null,r)}var bt=(()=>{let e=class e{static create(n,r){if(Array.isArray(n))return Df({name:""},r,n,"");{let o=n.name??"";return Df({name:o},n.parent,n.providers,o)}}};e.THROW_IF_NOT_FOUND=Yi,e.NULL=new Ho,e.\u0275prov=g({token:e,providedIn:"any",factory:()=>E(Vh)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})(),uy="ngOriginalError";function Ga(t){return t[uy]}var At=class{constructor(){this._console=console}handleError(e){let i=this._findOriginalError(e);this._console.error("ERROR",e),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(e){let i=e&&Ga(e);for(;i&&Ga(i);)i=Ga(i);return i||null}},cp=new I("",{providedIn:"root",factory:()=>h(At).handleError.bind(void 0)});var lp=!1,dy=new I("",{providedIn:"root",factory:()=>lp}),So;function fy(){if(So===void 0&&(So=null,Rt.trustedTypes))try{So=Rt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return So}function us(t){return fy()?.createHTML(t)||t}var To;function hy(){if(To===void 0&&(To=null,Rt.trustedTypes))try{To=Rt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return To}function bf(t){return hy()?.createScriptURL(t)||t}var Pt=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Wf})`}},gc=class extends Pt{getTypeName(){return"HTML"}},mc=class extends Pt{getTypeName(){return"Style"}},_c=class extends Pt{getTypeName(){return"Script"}},vc=class extends Pt{getTypeName(){return"URL"}},yc=class extends Pt{getTypeName(){return"ResourceURL"}};function dt(t){return t instanceof Pt?t.changingThisBreaksApplicationSecurity:t}function en(t,e){let i=py(t);if(i!=null&&i!==e){if(i==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${i} (see ${Wf})`)}return i===e}function py(t){return t instanceof Pt&&t.getTypeName()||null}function up(t){return new gc(t)}function dp(t){return new mc(t)}function fp(t){return new _c(t)}function hp(t){return new vc(t)}function pp(t){return new yc(t)}function gy(t){let e=new bc(t);return my()?new Dc(e):e}var Dc=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let i=new window.DOMParser().parseFromString(us(e),"text/html").body;return i===null?this.inertDocumentHelper.getInertBodyElement(e):(i.removeChild(i.firstChild),i)}catch{return null}}},bc=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let i=this.inertDocument.createElement("template");return i.innerHTML=us(e),i}};function my(){try{return!!new window.DOMParser().parseFromString(us(""),"text/html")}catch{return!1}}var _y=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ds(t){return t=String(t),t.match(_y)?t:"unsafe:"+t}function Bt(t){let e={};for(let i of t.split(","))e[i]=!0;return e}function dr(...t){let e={};for(let i of t)for(let n in i)i.hasOwnProperty(n)&&(e[n]=!0);return e}var gp=Bt("area,br,col,hr,img,wbr"),mp=Bt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),_p=Bt("rp,rt"),vy=dr(_p,mp),yy=dr(mp,Bt("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Dy=dr(_p,Bt("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),wf=dr(gp,yy,Dy,vy),vp=Bt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),by=Bt("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),wy=Bt("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Ey=dr(vp,by,wy),Cy=Bt("script,style,template"),wc=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let i=e.firstChild,n=!0;for(;i;){if(i.nodeType===Node.ELEMENT_NODE?n=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,n&&i.firstChild){i=i.firstChild;continue}for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let r=this.checkClobberedElement(i,i.nextSibling);if(r){i=r;break}i=this.checkClobberedElement(i,i.parentNode)}}return this.buf.join("")}startElement(e){let i=e.nodeName.toLowerCase();if(!wf.hasOwnProperty(i))return this.sanitizedSomething=!0,!Cy.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);let n=e.attributes;for(let r=0;r<n.length;r++){let o=n.item(r),s=o.name,a=s.toLowerCase();if(!Ey.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=o.value;vp[a]&&(c=ds(c)),this.buf.push(" ",s,'="',Ef(c),'"')}return this.buf.push(">"),!0}endElement(e){let i=e.nodeName.toLowerCase();wf.hasOwnProperty(i)&&!gp.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(e){this.buf.push(Ef(e))}checkClobberedElement(e,i){if(i&&(e.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return i}},Sy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ty=/([^\#-~ |!])/g;function Ef(t){return t.replace(/&/g,"&amp;").replace(Sy,function(e){let i=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((i-55296)*1024+(n-56320)+65536)+";"}).replace(Ty,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Mo;function yp(t,e){let i=null;try{Mo=Mo||gy(t);let n=e?String(e):"";i=Mo.getInertBodyElement(n);let r=5,o=n;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=i.innerHTML,i=Mo.getInertBodyElement(n)}while(n!==o);let a=new wc().sanitizeChildren(Cf(i)||i);return us(a)}finally{if(i){let n=Cf(i)||i;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function Cf(t){return"content"in t&&My(t)?t.content:null}function My(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var et=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(et||{});function fr(t){let e=bp();return e?e.sanitize(et.URL,t)||"":en(t,"URL")?dt(t):ds(ss(t))}function Iy(t){let e=bp();if(e)return bf(e.sanitize(et.RESOURCE_URL,t)||"");if(en(t,"ResourceURL"))return bf(dt(t));throw new b(904,!1)}function Ry(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?Iy:fr}function Dp(t,e,i){return Ry(e,i)(t)}function bp(){let t=P();return t&&t[xt].sanitizer}var wp=new Map,Ny=0;function xy(){return Ny++}function Oy(t){wp.set(t[ns],t)}function Ay(t){wp.delete(t[ns])}var Sf="__ngContext__";function In(t,e){bn(e)?(t[Sf]=e[ns],Oy(e)):t[Sf]=e}function Ep(t){return t.ownerDocument.defaultView}function Cp(t){return t instanceof Function?t():t}var Ft=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Ft||{}),Py;function Rl(t,e){return Py(t,e)}function ei(t,e,i,n,r){if(n!=null){let o,s=!1;Lt(n)?o=n:bn(n)&&(s=!0,n=n[kt]);let a=yt(n);t===0&&i!==null?r==null?Rp(e,i,a):zo(e,i,a,r||null,!0):t===1&&i!==null?zo(e,i,a,r||null,!0):t===2?Qy(e,a,s):t===3&&e.destroyNode(a),o!=null&&Ky(e,t,o,i,r)}}function Fy(t,e){return t.createText(e)}function ky(t,e,i){t.setValue(e,i)}function Sp(t,e,i){return t.createElement(e,i)}function Ly(t,e){Tp(t,e),e[kt]=null,e[$e]=null}function jy(t,e,i,n,r,o){n[kt]=r,n[$e]=e,hs(t,n,i,1,r,o)}function Tp(t,e){hs(t,e,e[se],2,null,null)}function By(t){let e=t[qi];if(!e)return za(t[A],t);for(;e;){let i=null;if(bn(e))i=e[qi];else{let n=e[Re];n&&(i=n)}if(!i){for(;e&&!e[lt]&&e!==t;)bn(e)&&za(e[A],e),e=e[Se];e===null&&(e=t),bn(e)&&za(e[A],e),i=e&&e[lt]}e=i}}function Vy(t,e,i,n){let r=Re+n,o=i.length;n>0&&(i[r-1][lt]=e),n<o-Re?(e[lt]=i[r],Mh(i,Re+n,e)):(i.push(e),e[lt]=null),e[Se]=i;let s=e[sr];s!==null&&i!==s&&Hy(s,e);let a=e[Ot];a!==null&&a.insertView(t),tc(e),e[M]|=128}function Hy(t,e){let i=t[oi],r=e[Se][Se][Qe];e[Qe]!==r&&(t[M]|=rl.HasTransplantedViews),i===null?t[oi]=[e]:i.push(e)}function Mp(t,e){let i=t[oi],n=i.indexOf(e);i.splice(n,1)}function Xi(t,e){if(t.length<=Re)return;let i=Re+e,n=t[i];if(n){let r=n[sr];r!==null&&r!==t&&Mp(r,n),e>0&&(t[i-1][lt]=n[lt]);let o=Bo(t,Re+e);Ly(n[A],n);let s=o[Ot];s!==null&&s.detachView(o[A]),n[Se]=null,n[lt]=null,n[M]&=-129}return n}function fs(t,e){if(!(e[M]&256)){let i=e[se];i.destroyNode&&hs(t,e,i,3,null,null),By(e)}}function za(t,e){if(!(e[M]&256)){e[M]&=-129,e[M]|=256,e[En]&&bd(e[En]),Uy(t,e),$y(t,e),e[A].type===1&&e[se].destroy();let i=e[sr];if(i!==null&&Lt(e[Se])){i!==e[Se]&&Mp(i,e);let n=e[Ot];n!==null&&n.detachView(t)}Ay(e)}}function $y(t,e){let i=t.cleanup,n=e[Wi];if(i!==null)for(let o=0;o<i.length-1;o+=2)if(typeof i[o]=="string"){let s=i[o+3];s>=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[i[o+1]];i[o].call(s)}n!==null&&(e[Wi]=null);let r=e[Qt];if(r!==null){e[Qt]=null;for(let o=0;o<r.length;o++){let s=r[o];s()}}}function Uy(t,e){let i;if(t!=null&&(i=t.destroyHooks)!=null)for(let n=0;n<i.length;n+=2){let r=e[i[n]];if(!(r instanceof Zi)){let o=i[n+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=r[o[s]],c=o[s+1];mt(4,a,c);try{c.call(a)}finally{mt(5,a,c)}}else{mt(4,r,o);try{o.call(r)}finally{mt(5,r,o)}}}}}function Ip(t,e,i){return Gy(t,e.parent,i)}function Gy(t,e,i){let n=e;for(;n!==null&&n.type&40;)e=n,n=e.parent;if(n===null)return i[kt];{let{componentOffset:r}=n;if(r>-1){let{encapsulation:o}=t.data[n.directiveStart+r];if(o===vt.None||o===vt.Emulated)return null}return Ze(n,i)}}function zo(t,e,i,n,r){t.insertBefore(e,i,n,r)}function Rp(t,e,i){t.appendChild(e,i)}function Tf(t,e,i,n,r){n!==null?zo(t,e,i,n,r):Rp(t,e,i)}function zy(t,e,i,n){t.removeChild(e,i,n)}function Nl(t,e){return t.parentNode(e)}function Wy(t,e){return t.nextSibling(e)}function Np(t,e,i){return Jy(t,e,i)}function qy(t,e,i){return t.type&40?Ze(t,i):null}var Jy=qy,Mf;function xl(t,e,i,n){let r=Ip(t,n,e),o=e[se],s=n.parent||e[$e],a=Np(s,n,e);if(r!=null)if(Array.isArray(i))for(let c=0;c<i.length;c++)Tf(o,r,i[c],a,!1);else Tf(o,r,i,a,!1);Mf!==void 0&&Mf(o,n,e,i,r)}function Po(t,e){if(e!==null){let i=e.type;if(i&3)return Ze(e,t);if(i&4)return Ec(-1,t[e.index]);if(i&8){let n=e.child;if(n!==null)return Po(t,n);{let r=t[e.index];return Lt(r)?Ec(-1,r):yt(r)}}else{if(i&32)return Rl(e,t)()||yt(t[e.index]);{let n=xp(t,e);if(n!==null){if(Array.isArray(n))return n[0];let r=Qi(t[Qe]);return Po(r,n)}else return Po(t,e.next)}}}return null}function xp(t,e){if(e!==null){let n=t[Qe][$e],r=e.projection;return n.projection[r]}return null}function Ec(t,e){let i=Re+t+1;if(i<e.length){let n=e[i],r=n[A].firstChild;if(r!==null)return Po(n,r)}return e[Cn]}function Qy(t,e,i){let n=Nl(t,e);n&&zy(t,n,e,i)}function Ol(t,e,i,n,r,o,s){for(;i!=null;){let a=n[i.index],c=i.type;if(s&&e===0&&(a&&In(yt(a),n),i.flags|=2),(i.flags&32)!==32)if(c&8)Ol(t,e,i.child,n,r,o,!1),ei(e,t,r,a,o);else if(c&32){let l=Rl(i,n),u;for(;u=l();)ei(e,t,r,u,o);ei(e,t,r,a,o)}else c&16?Op(t,e,n,i,r,o):ei(e,t,r,a,o);i=s?i.projectionNext:i.next}}function hs(t,e,i,n,r,o){Ol(i,n,t.firstChild,e,r,o,!1)}function Yy(t,e,i){let n=e[se],r=Ip(t,i,e),o=i.parent||e[$e],s=Np(o,i,e);Op(n,0,e,i,r,s)}function Op(t,e,i,n,r,o){let s=i[Qe],c=s[$e].projection[n.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];ei(e,t,r,u,o)}else{let l=c,u=s[Se];Ih(n)&&(l.flags|=128),Ol(t,e,l,u,r,o,!0)}}function Ky(t,e,i,n,r){let o=i[Cn],s=yt(i);o!==s&&ei(e,t,n,o,r);for(let a=Re;a<i.length;a++){let c=i[a];hs(c[A],c,t,e,n,o)}}function Zy(t,e,i,n,r){if(e)r?t.addClass(i,n):t.removeClass(i,n);else{let o=n.indexOf("-")===-1?void 0:Ft.DashCase;r==null?t.removeStyle(i,n,o):(typeof r=="string"&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=Ft.Important),t.setStyle(i,n,r,o))}}function Xy(t,e,i){t.setAttribute(e,"style",i)}function Ap(t,e,i){i===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",i)}function Pp(t,e,i){let{mergedAttrs:n,classes:r,styles:o}=i;n!==null&&ec(t,e,n),r!==null&&Ap(t,e,r),o!==null&&Xy(t,e,o)}var ft={};function y(t=1){Fp(_e(),P(),Xt()+t,!1)}function Fp(t,e,i,n){if(!n)if((e[M]&3)===3){let o=t.preOrderCheckHooks;o!==null&&xo(e,o,i)}else{let o=t.preOrderHooks;o!==null&&Oo(e,o,0,i)}Tn(i)}function G(t,e=B.Default){let i=P();if(i===null)return E(t,e);let n=Ve();return rp(n,i,Be(t),e)}function kp(){let t="invalid";throw new Error(t)}function Lp(t,e,i,n,r,o){let s=pe(null);try{let a=null;r&q.SignalBased&&(a=e[n][pt]),a!==null&&a.transformFn!==void 0&&(o=a.transformFn(o)),r&q.HasDecoratorInputTransform&&(o=t.inputTransforms[n].call(e,o)),t.setInput!==null?t.setInput(e,a,o,i,n):Wh(e,a,n,o)}finally{pe(s)}}function e1(t,e){let i=t.hostBindingOpCodes;if(i!==null)try{for(let n=0;n<i.length;n++){let r=i[n];if(r<0)Tn(~r);else{let o=r,s=i[++n],a=i[++n];tv(s,o);let c=e[o];a(2,c)}}}finally{Tn(-1)}}function ps(t,e,i,n,r,o,s,a,c,l,u){let d=e.blueprint.slice();return d[kt]=r,d[M]=n|4|128|8|64,(l!==null||t&&t[M]&2048)&&(d[M]|=2048),fh(d),d[Se]=d[ui]=t,d[Ie]=i,d[xt]=s||t&&t[xt],d[se]=a||t&&t[se],d[ri]=c||t&&t[ri]||null,d[$e]=o,d[ns]=xy(),d[ii]=u,d[ah]=l,d[Qe]=e.type==2?t[Qe]:d,d}function hr(t,e,i,n,r){let o=t.data[e];if(o===null)o=t1(t,e,i,n,r),ev()&&(o.flags|=32);else if(o.type&64){o.type=i,o.value=n,o.attrs=r;let s=K_();o.injectorIndex=s===null?-1:s.injectorIndex}return ar(o,!0),o}function t1(t,e,i,n,r){let o=mh(),s=_h(),a=s?o:o&&o.parent,c=t.data[e]=a1(t,a,i,e,n,r);return t.firstChild===null&&(t.firstChild=c),o!==null&&(s?o.child==null&&c.parent!==null&&(o.child=c):o.next===null&&(o.next=c,c.prev=o)),c}function jp(t,e,i,n){if(i===0)return-1;let r=e.length;for(let o=0;o<i;o++)e.push(n),t.blueprint.push(n),t.data.push(null);return r}function Bp(t,e,i,n,r){let o=Xt(),s=n&2;try{Tn(-1),s&&e.length>Fe&&Fp(t,e,Fe,!1),mt(s?2:0,r),i(n,r)}finally{Tn(o),mt(s?3:1,r)}}function Vp(t,e,i){if(lh(e)){let n=pe(null);try{let r=e.directiveStart,o=e.directiveEnd;for(let s=r;s<o;s++){let a=t.data[s];a.contentQueries&&a.contentQueries(1,i[s],s)}}finally{pe(n)}}}function Hp(t,e,i){ph()&&(h1(t,e,i,Ze(i,e)),(i.flags&64)===64&&Wp(t,e,i))}function $p(t,e,i=Ze){let n=e.localNames;if(n!==null){let r=e.index+1;for(let o=0;o<n.length;o+=2){let s=n[o+1],a=s===-1?i(e,t):t[s];t[r++]=a}}}function Up(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=Al(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function Al(t,e,i,n,r,o,s,a,c,l,u){let d=Fe+n,f=d+r,p=n1(d,f),_=typeof l=="function"?l():l;return p[A]={type:t,blueprint:p,template:i,queries:null,viewQuery:a,declTNode:e,data:p.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:_,incompleteFirstPass:!1,ssrId:u}}function n1(t,e){let i=[];for(let n=0;n<e;n++)i.push(n<t?null:ft);return i}function i1(t,e,i,n){let o=n.get(dy,lp)||i===vt.ShadowDom,s=t.selectRootElement(e,o);return r1(s),s}function r1(t){o1(t)}var o1=()=>null;function s1(t,e,i,n){let r=Qp(e);r.push(i),t.firstCreatePass&&Yp(t).push(n,r.length-1)}function a1(t,e,i,n,r,o){let s=e?e.injectorIndex:-1,a=0;return gh()&&(a|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function If(t,e,i,n,r){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,c=q.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=o;if(r!==null){if(!r.hasOwnProperty(o))continue;l=r[o]}t===0?Rf(n,i,l,a,c):Rf(n,i,l,a)}return n}function Rf(t,e,i,n,r){let o;t.hasOwnProperty(i)?(o=t[i]).push(e,n):o=t[i]=[e,n],r!==void 0&&o.push(r)}function c1(t,e,i){let n=e.directiveStart,r=e.directiveEnd,o=t.data,s=e.attrs,a=[],c=null,l=null;for(let u=n;u<r;u++){let d=o[u],f=i?i.get(d):null,p=f?f.inputs:null,_=f?f.outputs:null;c=If(0,d.inputs,u,c,p),l=If(1,d.outputs,u,l,_);let N=c!==null&&s!==null&&!Xf(e)?C1(c,u,s):null;a.push(N)}c!==null&&(c.hasOwnProperty("class")&&(e.flags|=8),c.hasOwnProperty("style")&&(e.flags|=16)),e.initialInputs=a,e.inputs=c,e.outputs=l}function l1(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function gs(t,e,i,n,r,o,s,a){let c=Ze(e,i),l=e.inputs,u;!a&&l!=null&&(u=l[n])?(Pl(t,i,u,n,r),is(e)&&u1(i,e.index)):e.type&3?(n=l1(n),r=s!=null?s(r,e.value||"",n):r,o.setProperty(c,n,r)):e.type&12}function u1(t,e){let i=Zt(e,t);i[M]&16||(i[M]|=64)}function Gp(t,e,i,n){if(ph()){let r=n===null?null:{"":-1},o=g1(t,i),s,a;o===null?s=a=null:[s,a]=o,s!==null&&zp(t,e,i,s,r,a),r&&m1(i,n,r)}i.mergedAttrs=zi(i.mergedAttrs,i.attrs)}function zp(t,e,i,n,r,o){for(let l=0;l<n.length;l++)ry(ep(i,e),t,n[l].type);v1(i,t.data.length,n.length);for(let l=0;l<n.length;l++){let u=n[l];u.providersResolver&&u.providersResolver(u)}let s=!1,a=!1,c=jp(t,e,n.length,null);for(let l=0;l<n.length;l++){let u=n[l];i.mergedAttrs=zi(i.mergedAttrs,u.hostAttrs),y1(t,i,e,c,u),_1(c,u,r),u.contentQueries!==null&&(i.flags|=4),(u.hostBindings!==null||u.hostAttrs!==null||u.hostVars!==0)&&(i.flags|=64);let d=u.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((t.preOrderHooks??=[]).push(i.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(i.index),a=!0),c++}c1(t,i,o)}function d1(t,e,i,n,r){let o=r.hostBindings;if(o){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;f1(s)!=a&&s.push(a),s.push(i,n,o)}}function f1(t){let e=t.length;for(;e>0;){let i=t[--e];if(typeof i=="number"&&i<0)return i}return 0}function h1(t,e,i,n){let r=i.directiveStart,o=i.directiveEnd;is(i)&&D1(e,i,t.data[r+i.componentOffset]),t.firstCreatePass||ep(i,e),In(n,e);let s=i.initialInputs;for(let a=r;a<o;a++){let c=t.data[a],l=ai(e,t,a,i);if(In(l,e),s!==null&&E1(e,a-r,l,c,i,s),Sn(c)){let u=Zt(i.index,e);u[Ie]=ai(e,t,a,i)}}}function Wp(t,e,i){let n=i.directiveStart,r=i.directiveEnd,o=i.index,s=nv();try{Tn(o);for(let a=n;a<r;a++){let c=t.data[a],l=e[a];nc(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&p1(c,l)}}finally{Tn(-1),nc(s)}}function p1(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function g1(t,e){let i=t.directiveRegistry,n=null,r=null;if(i)for(let o=0;o<i.length;o++){let s=i[o];if(eh(e,s.selectors,!1))if(n||(n=[]),Sn(s))if(s.findHostDirectiveDefs!==null){let a=[];r=r||new Map,s.findHostDirectiveDefs(s,a,r),n.unshift(...a,s);let c=a.length;Cc(t,e,c)}else n.unshift(s),Cc(t,e,0);else r=r||new Map,s.findHostDirectiveDefs?.(s,n,r),n.push(s)}return n===null?null:[n,r]}function Cc(t,e,i){e.componentOffset=i,(t.components??=[]).push(e.index)}function m1(t,e,i){if(e){let n=t.localNames=[];for(let r=0;r<e.length;r+=2){let o=i[e[r+1]];if(o==null)throw new b(-301,!1);n.push(e[r],o)}}}function _1(t,e,i){if(i){if(e.exportAs)for(let n=0;n<e.exportAs.length;n++)i[e.exportAs[n]]=t;Sn(e)&&(i[""]=t)}}function v1(t,e,i){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+i,t.providerIndexes=e}function y1(t,e,i,n,r){t.data[n]=r;let o=r.factory||(r.factory=Mn(r.type,!0)),s=new Zi(o,Sn(r),G);t.blueprint[n]=s,i[n]=s,d1(t,e,n,jp(t,i,r.hostVars,ft),r)}function D1(t,e,i){let n=Ze(e,t),r=Up(i),o=t[xt].rendererFactory,s=16;i.signals?s=4096:i.onPush&&(s=64);let a=ms(t,ps(t,r,null,s,n,e,null,o.createRenderer(n,i),null,null,null));t[e.index]=a}function b1(t,e,i,n,r,o){let s=Ze(t,e);w1(e[se],s,o,t.value,i,n,r)}function w1(t,e,i,n,r,o,s){if(o==null)t.removeAttribute(e,r,i);else{let a=s==null?ss(o):s(o,n||"",r);t.setAttribute(e,r,a,i)}}function E1(t,e,i,n,r,o){let s=o[e];if(s!==null)for(let a=0;a<s.length;){let c=s[a++],l=s[a++],u=s[a++],d=s[a++];Lp(n,i,c,l,u,d)}}function C1(t,e,i){let n=null,r=0;for(;r<i.length;){let o=i[r];if(o===0){r+=4;continue}else if(o===5){r+=2;continue}if(typeof o=="number")break;if(t.hasOwnProperty(o)){n===null&&(n=[]);let s=t[o];for(let a=0;a<s.length;a+=3)if(s[a]===e){n.push(o,s[a+1],s[a+2],i[r+1]);break}}r+=2}return n}function qp(t,e,i,n){return[t,!0,0,e,null,n,null,i,null,null]}function Jp(t,e){let i=t.contentQueries;if(i!==null){let n=pe(null);try{for(let r=0;r<i.length;r+=2){let o=i[r],s=i[r+1];if(s!==-1){let a=t.data[s];dl(o),a.contentQueries(2,e[s],s)}}}finally{pe(n)}}}function ms(t,e){return t[qi]?t[df][lt]=e:t[qi]=e,t[df]=e,e}function Sc(t,e,i){dl(0);let n=pe(null);try{e(t,i)}finally{pe(n)}}function Qp(t){return t[Wi]||(t[Wi]=[])}function Yp(t){return t.cleanup||(t.cleanup=[])}function Kp(t,e){let i=t[ri],n=i?i.get(At,null):null;n&&n.handleError(e)}function Pl(t,e,i,n,r){for(let o=0;o<i.length;){let s=i[o++],a=i[o++],c=i[o++],l=e[s],u=t.data[s];Lp(u,l,n,a,c,r)}}function S1(t,e,i){let n=uh(e,t);ky(t[se],n,i)}function T1(t,e){let i=Zt(e,t),n=i[A];M1(n,i);let r=i[kt];r!==null&&i[ii]===null&&(i[ii]=El(r,i[ri])),Fl(n,i,i[Ie])}function M1(t,e){for(let i=e.length;i<t.blueprint.length;i++)e.push(t.blueprint[i])}function Fl(t,e,i){fl(e);try{let n=t.viewQuery;n!==null&&Sc(1,n,i);let r=t.template;r!==null&&Bp(t,e,r,1,i),t.firstCreatePass&&(t.firstCreatePass=!1),e[Ot]?.finishViewCreation(t),t.staticContentQueries&&Jp(t,e),t.staticViewQueries&&Sc(2,t.viewQuery,i);let o=t.components;o!==null&&I1(e,o)}catch(n){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{e[M]&=-5,hl()}}function I1(t,e){for(let i=0;i<e.length;i++)T1(t,e[i])}function _s(t,e,i,n){let r=e.tView,s=t[M]&4096?4096:16,a=ps(t,r,i,s,null,e,null,null,null,n?.injector??null,n?.dehydratedView??null),c=t[e.index];a[sr]=c;let l=t[Ot];return l!==null&&(a[Ot]=l.createEmbeddedView(r)),Fl(r,a,i),a}function Zp(t,e){let i=Re+e;if(i<t.length)return t[i]}function er(t,e){return!e||e.firstChild===null||Ih(t)}function vs(t,e,i,n=!0){let r=e[A];if(Vy(r,e,t,i),n){let s=Ec(i,t),a=e[se],c=Nl(a,t[Cn]);c!==null&&jy(r,t[$e],a,e,c,s)}let o=e[ii];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function Xp(t,e){let i=Xi(t,e);return i!==void 0&&fs(i[A],i),i}function Wo(t,e,i,n,r=!1){for(;i!==null;){let o=e[i.index];o!==null&&n.push(yt(o)),Lt(o)&&R1(o,n);let s=i.type;if(s&8)Wo(t,e,i.child,n);else if(s&32){let a=Rl(i,e),c;for(;c=a();)n.push(c)}else if(s&16){let a=xp(e,i);if(Array.isArray(a))n.push(...a);else{let c=Qi(e[Qe]);Wo(c[A],c,a,n,!0)}}i=r?i.projectionNext:i.next}return n}function R1(t,e){for(let i=Re;i<t.length;i++){let n=t[i],r=n[A].firstChild;r!==null&&Wo(n[A],n,r,e)}t[Cn]!==t[kt]&&e.push(t[Cn])}var eg=[];function N1(t){return t[En]??x1(t)}function x1(t){let e=eg.pop()??Object.create(A1);return e.lView=t,e}function O1(t){t.lView[En]!==t&&(t.lView=null,eg.push(t))}var A1=X(v({},Jr),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Ji(t.lView)},consumerOnSignalRead(){this.lView[En]=this}});function tg(t){return ig(t[qi])}function ng(t){return ig(t[lt])}function ig(t){for(;t!==null&&!Lt(t);)t=t[lt];return t}var rg=100;function og(t,e=!0,i=0){let n=t[xt],r=n.rendererFactory,o=!1;o||r.begin?.();try{P1(t,i)}catch(s){throw e&&Kp(t,s),s}finally{o||(r.end?.(),n.inlineEffectRunner?.flush())}}function P1(t,e){Tc(t,e);let i=0;for(;cl(t);){if(i===rg)throw new b(103,!1);i++,Tc(t,1)}}function F1(t,e,i,n){let r=e[M];if((r&256)===256)return;let o=!1;!o&&e[xt].inlineEffectRunner?.flush(),fl(e);let s=null,a=null;!o&&k1(t)&&(a=N1(e),s=pa(a));try{fh(e),X_(t.bindingStartIndex),i!==null&&Bp(t,e,i,2,n);let c=(r&3)===3;if(!o)if(c){let d=t.preOrderCheckHooks;d!==null&&xo(e,d,null)}else{let d=t.preOrderHooks;d!==null&&Oo(e,d,0,null),$a(e,0)}if(L1(e),sg(e,0),t.contentQueries!==null&&Jp(t,e),!o)if(c){let d=t.contentCheckHooks;d!==null&&xo(e,d)}else{let d=t.contentHooks;d!==null&&Oo(e,d,1),$a(e,1)}e1(t,e);let l=t.components;l!==null&&cg(e,l,0);let u=t.viewQuery;if(u!==null&&Sc(2,u,n),!o)if(c){let d=t.viewCheckHooks;d!==null&&xo(e,d)}else{let d=t.viewHooks;d!==null&&Oo(e,d,2),$a(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Ba]){for(let d of e[Ba])d();e[Ba]=null}o||(e[M]&=-73)}catch(c){throw Ji(e),c}finally{a!==null&&(ga(a,s),O1(a)),hl()}}function k1(t){return t.type!==2}function sg(t,e){for(let i=tg(t);i!==null;i=ng(i))for(let n=Re;n<i.length;n++){let r=i[n];ag(r,e)}}function L1(t){for(let e=tg(t);e!==null;e=ng(e)){if(!(e[M]&rl.HasTransplantedViews))continue;let i=e[oi];for(let n=0;n<i.length;n++){let r=i[n],o=r[Se];U_(r)}}}function j1(t,e,i){let n=Zt(e,t);ag(n,i)}function ag(t,e){al(t)&&Tc(t,e)}function Tc(t,e){let n=t[A],r=t[M],o=t[En],s=!!(e===0&&r&16);if(s||=!!(r&64&&e===0),s||=!!(r&1024),s||=!!(o?.dirty&&ma(o)),o&&(o.dirty=!1),t[M]&=-9217,s)F1(n,t,n.template,t[Ie]);else if(r&8192){sg(t,1);let a=n.components;a!==null&&cg(t,a,1)}}function cg(t,e,i){for(let n=0;n<e.length;n++)j1(t,e[n],i)}function kl(t){for(t[xt].changeDetectionScheduler?.notify();t;){t[M]|=64;let e=Qi(t);if(k_(t)&&!e)return t;t=e}return null}var Rn=class{get rootNodes(){let e=this._lView,i=e[A];return Wo(i,e,i.firstChild,[])}constructor(e,i,n=!0){this._lView=e,this._cdRefInjectingView=i,this.notifyErrorHandler=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Ie]}set context(e){this._lView[Ie]=e}get destroyed(){return(this._lView[M]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[Se];if(Lt(e)){let i=e[Lo],n=i?i.indexOf(this):-1;n>-1&&(Xi(e,n),Bo(i,n))}this._attachedToViewContainer=!1}fs(this._lView[A],this._lView)}onDestroy(e){hh(this._lView,e)}markForCheck(){kl(this._cdRefInjectingView||this._lView)}detach(){this._lView[M]&=-129}reattach(){tc(this._lView),this._lView[M]|=128}detectChanges(){this._lView[M]|=1024,og(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Tp(this._lView[A],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=e,tc(this._lView)}},ut=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=H1;let t=e;return t})(),B1=ut,V1=class extends B1{constructor(e,i,n){super(),this._declarationLView=e,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,n){let r=_s(this._declarationLView,this._declarationTContainer,e,{injector:i,dehydratedView:n});return new Rn(r)}};function H1(){return Ll(Ve(),P())}function Ll(t,e){return t.type&4?new V1(e,t,di(t,e)):null}var tA=new RegExp(`^(\\d+)*(${Ov}|${xv})*(.*)`);var $1=()=>null;function tr(t,e){return $1(t,e)}var Mc=class{},Ic=class{},qo=class{};function U1(t){let e=Error(`No component factory found for ${Pe(t)}.`);return e[G1]=t,e}var G1="ngComponent";var Rc=class{resolveComponentFactory(e){throw U1(e)}},ys=(()=>{let e=class e{};e.NULL=new Rc;let t=e;return t})(),nr=class{},pr=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>z1();let t=e;return t})();function z1(){let t=P(),e=Ve(),i=Zt(e.index,t);return(bn(i)?i:t)[se]}var W1=(()=>{let e=class e{};e.\u0275prov=g({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),Wa={};function q1(t){return typeof t=="function"&&t[pt]!==void 0}function pi(t,e){let i=Cd(t);return e?.equal&&(i[pt].equal=e.equal),i}function tn(t,e){let i=Id(t),n=i[pt];return e?.equal&&(n.equal=e.equal),i.set=r=>Kr(n,r),i.update=r=>Rd(n,r),i.asReadonly=J1.bind(i),i}function J1(){let t=this[pt];if(t.readonlyFn===void 0){let e=()=>this();e[pt]=t,t.readonlyFn=e}return t.readonlyFn}function lg(t){return q1(t)&&typeof t.set=="function"}function Ds(t){let e=pe(null);try{return t()}finally{pe(e)}}function ug(t){return Y1(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function Q1(t,e){if(Array.isArray(t))for(let i=0;i<t.length;i++)e(t[i]);else{let i=t[Symbol.iterator](),n;for(;!(n=i.next()).done;)e(n.value)}}function Y1(t){return t!==null&&(typeof t=="function"||typeof t=="object")}var Nc=class{constructor(){}supports(e){return ug(e)}create(e){return new xc(e)}},K1=(t,e)=>e,xc=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||K1}forEachItem(e){let i;for(i=this._itHead;i!==null;i=i._next)e(i)}forEachOperation(e){let i=this._itHead,n=this._removalsHead,r=0,o=null;for(;i||n;){let s=!n||i&&i.currentIndex<Nf(n,r,o)?i:n,a=Nf(s,r,o),c=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(i=i._next,s.previousIndex==null)r++;else{o||(o=[]);let l=a-r,u=c-r;if(l!=u){for(let f=0;f<l;f++){let p=f<o.length?o[f]:o[f]=0,_=p+f;u<=_&&_<l&&(o[f]=p+1)}let d=s.previousIndex;o[d]=u-l}}a!==c&&e(s,a,c)}}forEachPreviousItem(e){let i;for(i=this._previousItHead;i!==null;i=i._nextPrevious)e(i)}forEachAddedItem(e){let i;for(i=this._additionsHead;i!==null;i=i._nextAdded)e(i)}forEachMovedItem(e){let i;for(i=this._movesHead;i!==null;i=i._nextMoved)e(i)}forEachRemovedItem(e){let i;for(i=this._removalsHead;i!==null;i=i._nextRemoved)e(i)}forEachIdentityChange(e){let i;for(i=this._identityChangesHead;i!==null;i=i._nextIdentityChange)e(i)}diff(e){if(e==null&&(e=[]),!ug(e))throw new b(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let i=this._itHead,n=!1,r,o,s;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)o=e[a],s=this._trackByFn(a,o),i===null||!Object.is(i.trackById,s)?(i=this._mismatch(i,o,s,a),n=!0):(n&&(i=this._verifyReinsertion(i,o,s,a)),Object.is(i.item,o)||this._addIdentityChange(i,o)),i=i._next}else r=0,Q1(e,a=>{s=this._trackByFn(r,a),i===null||!Object.is(i.trackById,s)?(i=this._mismatch(i,a,s,r),n=!0):(n&&(i=this._verifyReinsertion(i,a,s,r)),Object.is(i.item,a)||this._addIdentityChange(i,a)),i=i._next,r++}),this.length=r;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,i,n,r){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._reinsertAfter(e,o,r)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,r),e!==null?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._moveAfter(e,o,r)):e=this._addAfter(new Oc(i,n),o,r)),e}_verifyReinsertion(e,i,n,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;e!==null;){let i=e._next;this._addToRemovals(this._unlink(e)),e=i}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,i,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let r=e._prevRemoved,o=e._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,i,n),this._addToMoves(e,n),e}_moveAfter(e,i,n){return this._unlink(e),this._insertAfter(e,i,n),this._addToMoves(e,n),e}_addAfter(e,i,n){return this._insertAfter(e,i,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,i,n){let r=i===null?this._itHead:i._next;return e._next=r,e._prev=i,r===null?this._itTail=e:r._prev=e,i===null?this._itHead=e:i._next=e,this._linkedRecords===null&&(this._linkedRecords=new Jo),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let i=e._prev,n=e._next;return i===null?this._itHead=n:i._next=n,n===null?this._itTail=i:n._prev=i,e}_addToMoves(e,i){return e.previousIndex===i||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Jo),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,i){return e.item=i,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Oc=class{constructor(e,i){this.item=e,this.trackById=i,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Ac=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,i){let n;for(n=this._head;n!==null;n=n._nextDup)if((i===null||i<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let i=e._prevDup,n=e._nextDup;return i===null?this._head=n:i._nextDup=n,n===null?this._tail=i:n._prevDup=i,this._head===null}},Jo=class{constructor(){this.map=new Map}put(e){let i=e.trackById,n=this.map.get(i);n||(n=new Ac,this.map.set(i,n)),n.add(e)}get(e,i){let n=e,r=this.map.get(n);return r?r.get(e,i):null}remove(e){let i=e.trackById;return this.map.get(i).remove(e)&&this.map.delete(i),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Nf(t,e,i){let n=t.previousIndex;if(n===null)return n;let r=0;return i&&n<i.length&&(r=i[n]),n+e+r}function xf(){return new jl([new Nc])}var jl=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||xf()),deps:[[e,new Bh,new Cl]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new b(901,!1)}};e.\u0275prov=g({token:e,providedIn:"root",factory:xf});let t=e;return t})();var wt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Z1;let t=e;return t})();function Z1(t){return X1(Ve(),P(),(t&16)===16)}function X1(t,e,i){if(is(t)&&!i){let n=Zt(t.index,e);return new Rn(n,n)}else if(t.type&47){let n=e[Qe];return new Rn(n,e)}return null}var gi=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=eD,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),Pc=class extends gi{constructor(e){super(),this._lView=e}onDestroy(e){return hh(this._lView,e),()=>z_(this._lView,e)}};function eD(){return new Pc(P())}var Of=new Set;function gr(t){Of.has(t)||(Of.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Af(...t){}function tD(){let t=typeof Rt.requestAnimationFrame=="function",e=Rt[t?"requestAnimationFrame":"setTimeout"],i=Rt[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&i){let n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);let r=i[Zone.__symbol__("OriginalDelegate")];r&&(i=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:i}}var Q=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new V(!1),this.onMicrotaskEmpty=new V(!1),this.onStable=new V(!1),this.onError=new V(!1),typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();let r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&i,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=tD().nativeRequestAnimationFrame,rD(r)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new b(909,!1)}run(e,i,n){return this._inner.run(e,i,n)}runTask(e,i,n,r){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,e,nD,Af,Af);try{return o.runTask(s,i,n)}finally{o.cancelTask(s)}}runGuarded(e,i,n){return this._inner.runGuarded(e,i,n)}runOutsideAngular(e){return this._outer.run(e)}},nD={};function Bl(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function iD(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Rt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Fc(t),t.isCheckStableRunning=!0,Bl(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Fc(t))}function rD(t){let e=()=>{iD(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,o,s,a)=>{if(oD(a))return i.invokeTask(r,o,s,a);try{return Pf(t),i.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Ff(t)}},onInvoke:(i,n,r,o,s,a,c)=>{try{return Pf(t),i.invoke(r,o,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),Ff(t)}},onHasTask:(i,n,r,o)=>{i.hasTask(r,o),n===r&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,Fc(t),Bl(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(i,n,r,o)=>(i.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function Fc(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Pf(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Ff(t){t._nesting--,Bl(t)}function oD(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}var dg=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let r of n)r();this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=g({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function kc(t,e,i){let n=i?t.styles:null,r=i?t.classes:null,o=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")o=a;else if(o==1)r=Xa(r,a);else if(o==2){let c=a,l=e[++s];n=Xa(n,c+": "+l+";")}}i?t.styles=n:t.stylesWithoutHost=n,i?t.classes=r:t.classesWithoutHost=r}var Qo=class extends ys{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let i=Yt(e);return new ci(i,this.ngModule)}};function kf(t){let e=[];for(let i in t){if(!t.hasOwnProperty(i))continue;let n=t[i];n!==void 0&&e.push({propName:Array.isArray(n)?n[0]:n,templateName:i})}return e}function sD(t){let e=t.toLowerCase();return e==="svg"?L_:e==="math"?j_:null}var Lc=class{constructor(e,i){this.injector=e,this.parentInjector=i}get(e,i,n){n=as(n);let r=this.injector.get(e,Wa,n);return r!==Wa||i===Wa?r:this.parentInjector.get(e,i,n)}},ci=class extends qo{get inputs(){let e=this.componentDef,i=e.inputTransforms,n=kf(e.inputs);if(i!==null)for(let r of n)i.hasOwnProperty(r.propName)&&(r.transform=i[r.propName]);return n}get outputs(){return kf(this.componentDef.outputs)}constructor(e,i){super(),this.componentDef=e,this.ngModule=i,this.componentType=e.type,this.selector=x_(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!i}create(e,i,n,r){r=r||this.ngModule;let o=r instanceof Te?r:r?.injector;o&&this.componentDef.getStandaloneInjector!==null&&(o=this.componentDef.getStandaloneInjector(o)||o);let s=o?new Lc(e,o):e,a=s.get(nr,null);if(a===null)throw new b(407,!1);let c=s.get(W1,null),l=s.get(dg,null),u=s.get(Mc,null),d={rendererFactory:a,sanitizer:c,inlineEffectRunner:null,afterRenderEventManager:l,changeDetectionScheduler:u},f=a.createRenderer(null,this.componentDef),p=this.componentDef.selectors[0][0]||"div",_=n?i1(f,n,this.componentDef.encapsulation,s):Sp(f,p,sD(p)),N=512;this.componentDef.signals?N|=4096:this.componentDef.onPush||(N|=16);let R=null;_!==null&&(R=El(_,s,!0));let S=Al(0,null,null,1,0,null,null,null,null,null,null),ue=ps(null,S,null,N,null,null,d,f,s,null,R);fl(ue);let ze,Z;try{let Ae=this.componentDef,We,pn=null;Ae.findHostDirectiveDefs?(We=[],pn=new Map,Ae.findHostDirectiveDefs(Ae,We,pn),We.push(Ae)):We=[Ae];let R0=aD(ue,_),N0=cD(R0,_,Ae,We,ue,d,f);Z=sl(S,Fe),_&&dD(f,Ae,_,n),i!==void 0&&fD(Z,this.ngContentSelectors,i),ze=uD(N0,Ae,We,pn,ue,[hD]),Fl(S,ue,null)}finally{hl()}return new jc(this.componentType,ze,di(Z,ue),ue,Z)}},jc=class extends Ic{constructor(e,i,n,r,o){super(),this.location=n,this._rootLView=r,this._tNode=o,this.previousInputValues=null,this.instance=i,this.hostView=this.changeDetectorRef=new Rn(r,void 0,!1),this.componentType=e}setInput(e,i){let n=this._tNode.inputs,r;if(n!==null&&(r=n[e])){if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),i))return;let o=this._rootLView;Pl(o[A],o,r,e,i),this.previousInputValues.set(e,i);let s=Zt(this._tNode.index,o);kl(s)}}get injector(){return new wn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function aD(t,e){let i=t[A],n=Fe;return t[n]=e,hr(i,n,2,"#host",null)}function cD(t,e,i,n,r,o,s){let a=r[A];lD(n,t,e,s);let c=null;e!==null&&(c=El(e,r[ri]));let l=o.rendererFactory.createRenderer(e,i),u=16;i.signals?u=4096:i.onPush&&(u=64);let d=ps(r,Up(i),null,u,r[t.index],t,o,l,null,null,c);return a.firstCreatePass&&Cc(a,t,n.length-1),ms(r,d),r[t.index]=d}function lD(t,e,i,n){for(let r of t)e.mergedAttrs=zi(e.mergedAttrs,r.hostAttrs);e.mergedAttrs!==null&&(kc(e,e.mergedAttrs,!0),i!==null&&Pp(n,i,e))}function uD(t,e,i,n,r,o){let s=Ve(),a=r[A],c=Ze(s,r);zp(a,r,s,i,null,n);for(let u=0;u<i.length;u++){let d=s.directiveStart+u,f=ai(r,a,d,s);In(f,r)}Wp(a,r,s),c&&In(c,r);let l=ai(r,a,s.directiveStart+s.componentOffset,s);if(t[Ie]=r[Ie]=l,o!==null)for(let u of o)u(l,e);return Vp(a,s,t),l}function dD(t,e,i,n){if(n)ec(t,i,["ng-version","17.2.1"]);else{let{attrs:r,classes:o}=O_(e.selectors[0]);r&&ec(t,i,r),o&&o.length>0&&Ap(t,i,o.join(" "))}}function fD(t,e,i){let n=t.projection=[];for(let r=0;r<e.length;r++){let o=i[r];n.push(o!=null?Array.from(o):null)}}function hD(){let t=Ve();Ml(P()[A],t)}var ht=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=pD;let t=e;return t})();function pD(){let t=Ve();return hg(t,P())}var gD=ht,fg=class extends gD{constructor(e,i,n){super(),this._lContainer=e,this._hostTNode=i,this._hostLView=n}get element(){return di(this._hostTNode,this._hostLView)}get injector(){return new wn(this._hostTNode,this._hostLView)}get parentInjector(){let e=Il(this._hostTNode,this._hostLView);if(Kh(e)){let i=Uo(e,this._hostLView),n=$o(e),r=i[A].data[n+8];return new wn(r,i)}else return new wn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let i=Lf(this._lContainer);return i!==null&&i[e]||null}get length(){return this._lContainer.length-Re}createEmbeddedView(e,i,n){let r,o;typeof n=="number"?r=n:n!=null&&(r=n.index,o=n.injector);let s=tr(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(i||{},o,s);return this.insertImpl(a,r,er(this._hostTNode,s)),a}createComponent(e,i,n,r,o){let s=e&&!zv(e),a;if(s)a=i;else{let _=i||{};a=_.index,n=_.injector,r=_.projectableNodes,o=_.environmentInjector||_.ngModuleRef}let c=s?e:new ci(Yt(e)),l=n||this.parentInjector;if(!o&&c.ngModule==null){let N=(s?l:this.parentInjector).get(Te,null);N&&(o=N)}let u=Yt(c.componentType??{}),d=tr(this._lContainer,u?.id??null),f=d?.firstChild??null,p=c.create(l,r,f,o);return this.insertImpl(p.hostView,a,er(this._hostTNode,d)),p}insert(e,i){return this.insertImpl(e,i,!0)}insertImpl(e,i,n){let r=e._lView;if($_(r)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=r[Se],l=new fg(c,c[$e],c[Se]);l.detach(l.indexOf(e))}}let o=this._adjustIndex(i),s=this._lContainer;return vs(s,r,o,n),e.attachToViewContainerRef(),Mh(qa(s),o,e),e}move(e,i){return this.insert(e,i)}indexOf(e){let i=Lf(this._lContainer);return i!==null?i.indexOf(e):-1}remove(e){let i=this._adjustIndex(e,-1),n=Xi(this._lContainer,i);n&&(Bo(qa(this._lContainer),i),fs(n[A],n))}detach(e){let i=this._adjustIndex(e,-1),n=Xi(this._lContainer,i);return n&&Bo(qa(this._lContainer),i)!=null?new Rn(n):null}_adjustIndex(e,i=0){return e??this.length+i}};function Lf(t){return t[Lo]}function qa(t){return t[Lo]||(t[Lo]=[])}function hg(t,e){let i,n=e[t.index];return Lt(n)?i=n:(i=qp(n,e,null,t),e[t.index]=i,ms(e,i)),_D(i,e,t,n),new fg(i,t,e)}function mD(t,e){let i=t[se],n=i.createComment(""),r=Ze(e,t),o=Nl(i,r);return zo(i,o,n,Wy(i,r),!1),n}var _D=DD,vD=()=>!1;function yD(t,e,i){return vD(t,e,i)}function DD(t,e,i,n){if(t[Cn])return;let r;i.type&8?r=yt(n):r=mD(e,i),t[Cn]=r}var Bc=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Vc=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let i=e.queries;if(i!==null){let n=e.contentQueries!==null?e.contentQueries[0]:i.length,r=[];for(let o=0;o<n;o++){let s=i.getByIndex(o),a=this.queries[s.indexInDeclarationView];r.push(a.clone())}return new t(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let i=0;i<this.queries.length;i++)Vl(e,i).matches!==null&&this.queries[i].setDirty()}},Yo=class{constructor(e,i,n=null){this.flags=i,this.read=n,typeof e=="string"?this.predicate=ID(e):this.predicate=e}},Hc=class t{constructor(e=[]){this.queries=e}elementStart(e,i){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,i)}elementEnd(e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(e)}embeddedTView(e){let i=null;for(let n=0;n<this.length;n++){let r=i!==null?i.length:0,o=this.getByIndex(n).embeddedTView(e,r);o&&(o.indexInDeclarationView=n,i!==null?i.push(o):i=[o])}return i!==null?new t(i):null}template(e,i){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,i)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}},$c=class t{constructor(e,i=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}elementStart(e,i){this.isApplyingToNode(i)&&this.matchTNode(e,i)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,i){this.elementStart(e,i)}embeddedTView(e,i){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,i),new t(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let i=this._declarationNodeIndex,n=e.parent;for(;n!==null&&n.type&8&&n.index!==i;)n=n.parent;return i===(n!==null?n.index:-1)}return this._appliesToNextNode}matchTNode(e,i){let n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){let o=n[r];this.matchTNodeWithReadOption(e,i,bD(i,o)),this.matchTNodeWithReadOption(e,i,Ao(i,e,o,!1,!1))}else n===ut?i.type&4&&this.matchTNodeWithReadOption(e,i,-1):this.matchTNodeWithReadOption(e,i,Ao(i,e,n,!1,!1))}matchTNodeWithReadOption(e,i,n){if(n!==null){let r=this.metadata.read;if(r!==null)if(r===de||r===ht||r===ut&&i.type&4)this.addMatch(i.index,-2);else{let o=Ao(i,e,r,!1,!1);o!==null&&this.addMatch(i.index,o)}else this.addMatch(i.index,n)}}addMatch(e,i){this.matches===null?this.matches=[e,i]:this.matches.push(e,i)}};function bD(t,e){let i=t.localNames;if(i!==null){for(let n=0;n<i.length;n+=2)if(i[n]===e)return i[n+1]}return null}function wD(t,e){return t.type&11?di(t,e):t.type&4?Ll(t,e):null}function ED(t,e,i,n){return i===-1?wD(e,t):i===-2?CD(t,e,n):ai(t,t[A],i,e)}function CD(t,e,i){if(i===de)return di(e,t);if(i===ut)return Ll(e,t);if(i===ht)return hg(e,t)}function pg(t,e,i,n){let r=e[Ot].queries[n];if(r.matches===null){let o=t.data,s=i.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let u=o[l];a.push(ED(e,u,s[c+1],i.metadata.read))}}r.matches=a}return r.matches}function Uc(t,e,i,n){let r=t.queries.getByIndex(i),o=r.matches;if(o!==null){let s=pg(t,e,r,i);for(let a=0;a<o.length;a+=2){let c=o[a];if(c>0)n.push(s[a/2]);else{let l=o[a+1],u=e[-c];for(let d=Re;d<u.length;d++){let f=u[d];f[sr]===f[Se]&&Uc(f[A],f,l,n)}if(u[oi]!==null){let d=u[oi];for(let f=0;f<d.length;f++){let p=d[f];Uc(p[A],p,l,n)}}}}}return n}function SD(t,e){return t[Ot].queries[e].queryList}function gg(t,e,i){let n=new ic((i&4)===4);return s1(t,e,n,n.destroy),(e[Ot]??=new Vc).queries.push(new Bc(n))-1}function TD(t,e,i){let n=_e();return n.firstCreatePass&&(mg(n,new Yo(t,e,i),-1),(e&2)===2&&(n.staticViewQueries=!0)),gg(n,P(),e)}function MD(t,e,i,n){let r=_e();if(r.firstCreatePass){let o=Ve();mg(r,new Yo(e,i,n),o.index),RD(r,t),(i&2)===2&&(r.staticContentQueries=!0)}return gg(r,P(),i)}function ID(t){return t.split(",").map(e=>e.trim())}function mg(t,e,i){t.queries===null&&(t.queries=new Hc),t.queries.track(new $c(e,i))}function RD(t,e){let i=t.contentQueries||(t.contentQueries=[]),n=i.length?i[i.length-1]:-1;e!==n&&i.push(t.queries.length-1,e)}function Vl(t,e){return t.queries.getByIndex(e)}function ND(t,e){let i=t[A],n=Vl(i,e);return n.crossesNgTemplate?Uc(i,t,e,[]):pg(i,t,n,e)}function xD(t){return Object.getPrototypeOf(t.prototype).constructor}function Hl(t){let e=xD(t.type),i=!0,n=[t];for(;e;){let r;if(Sn(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new b(903,!1);r=e.\u0275dir}if(r){if(i){n.push(r);let s=t;s.inputs=Io(t.inputs),s.inputTransforms=Io(t.inputTransforms),s.declaredInputs=Io(t.declaredInputs),s.outputs=Io(t.outputs);let a=r.hostBindings;a&&kD(t,a);let c=r.viewQuery,l=r.contentQueries;if(c&&PD(t,c),l&&FD(t,l),OD(t,r),m_(t.outputs,r.outputs),Sn(r)&&r.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(t),a===Hl&&(i=!1)}}e=Object.getPrototypeOf(e)}AD(n)}function OD(t,e){for(let i in e.inputs){if(!e.inputs.hasOwnProperty(i)||t.inputs.hasOwnProperty(i))continue;let n=e.inputs[i];if(n!==void 0&&(t.inputs[i]=n,t.declaredInputs[i]=e.declaredInputs[i],e.inputTransforms!==null)){let r=Array.isArray(n)?n[0]:n;if(!e.inputTransforms.hasOwnProperty(r))continue;t.inputTransforms??={},t.inputTransforms[r]=e.inputTransforms[r]}}}function AD(t){let e=0,i=null;for(let n=t.length-1;n>=0;n--){let r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=zi(r.hostAttrs,i=zi(i,r.hostAttrs))}}function Io(t){return t===Nt?{}:t===je?[]:t}function PD(t,e){let i=t.viewQuery;i?t.viewQuery=(n,r)=>{e(n,r),i(n,r)}:t.viewQuery=e}function FD(t,e){let i=t.contentQueries;i?t.contentQueries=(n,r,o)=>{e(n,r,o),i(n,r,o)}:t.contentQueries=e}function kD(t,e){let i=t.hostBindings;i?t.hostBindings=(n,r)=>{e(n,r),i(n,r)}:t.hostBindings=e}function $l(t){let e=i=>{let n=(Array.isArray(t)?t:t()).map(r=>typeof r=="function"?{directive:Be(r),inputs:Nt,outputs:Nt}:{directive:Be(r.directive),inputs:jf(r.inputs),outputs:jf(r.outputs)});i.hostDirectives===null?(i.findHostDirectiveDefs=_g,i.hostDirectives=n):i.hostDirectives.unshift(...n)};return e.ngInherit=!0,e}function _g(t,e,i){if(t.hostDirectives!==null)for(let n of t.hostDirectives){let r=il(n.directive);LD(r.declaredInputs,n.inputs),_g(r,e,i),i.set(r,n),e.push(r)}}function jf(t){if(t===void 0||t.length===0)return Nt;let e={};for(let i=0;i<t.length;i+=2)e[t[i]]=t[i+1];return e}function LD(t,e){for(let i in e)if(e.hasOwnProperty(i)){let n=e[i],r=t[i];t[n]=r}}function Ul(t){let e=t.inputConfig,i={};for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];Array.isArray(r)&&r[3]&&(i[n]=r[3])}t.inputTransforms=i}var Kt=class{},ir=class{};var Gc=class extends Kt{constructor(e,i,n){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Qo(this);let r=rh(e);this._bootstrapComponents=Cp(r.bootstrap),this._r3Injector=ap(e,i,[{provide:Kt,useValue:this},{provide:ys,useValue:this.componentFactoryResolver},...n],Pe(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},zc=class extends ir{constructor(e){super(),this.moduleType=e}create(e){return new Gc(this.moduleType,e,[])}};var Ko=class extends Kt{constructor(e){super(),this.componentFactoryResolver=new Qo(this),this.instance=null;let i=new Ki([...e.providers,{provide:Kt,useValue:this},{provide:ys,useValue:this.componentFactoryResolver}],e.parent||ls(),e.debugName,new Set(["environment"]));this.injector=i,e.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Gl(t,e,i=null){return new Ko({providers:t,parent:e,debugName:i,runEnvironmentInitializers:!0}).injector}var mi=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ce(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function zl(t,e,i){return t[e]=i}function jD(t,e){return t[e]}function Ye(t,e,i){let n=t[e];return Object.is(n,i)?!1:(t[e]=i,!0)}function BD(t,e,i,n){let r=Ye(t,e,i);return Ye(t,e+1,n)||r}function VD(t,e,i,n,r,o,s,a,c){let l=e.consts,u=hr(e,t,4,s||null,jo(l,a));Gp(e,i,u,jo(l,c)),Ml(e,u);let d=u.tView=Al(2,u,n,r,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l,null);return e.queries!==null&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}function ie(t,e,i,n,r,o,s,a){let c=P(),l=_e(),u=t+Fe,d=l.firstCreatePass?VD(u,l,c,e,i,n,r,o,s):l.data[u];ar(d,!1);let f=HD(l,c,d,t);pl()&&xl(l,c,f,d),In(f,c);let p=qp(f,c,f,d);return c[u]=p,ms(c,p),yD(p,d,c),ol(d)&&Hp(l,c,d),s!=null&&$p(c,d,a),ie}var HD=$D;function $D(t,e,i,n){return gl(!0),e[se].createComment("")}function Et(t,e,i,n){let r=P(),o=xn();if(Ye(r,o,e)){let s=_e(),a=cr();b1(a,r,t,e,i,n)}return Et}function vg(t,e,i,n){return Ye(t,xn(),i)?e+ss(i)+n:ft}function Ro(t,e){return t<<17|e<<2}function Nn(t){return t>>17&32767}function UD(t){return(t&2)==2}function GD(t,e){return t&131071|e<<17}function Wc(t){return t|2}function li(t){return(t&131068)>>2}function Ja(t,e){return t&-131069|e<<2}function zD(t){return(t&1)===1}function qc(t){return t|1}function WD(t,e,i,n,r,o){let s=o?e.classBindings:e.styleBindings,a=Nn(s),c=li(s);t[n]=i;let l=!1,u;if(Array.isArray(i)){let d=i;u=d[1],(u===null||lr(d,u)>0)&&(l=!0)}else u=i;if(r)if(c!==0){let f=Nn(t[a+1]);t[n+1]=Ro(f,a),f!==0&&(t[f+1]=Ja(t[f+1],n)),t[a+1]=GD(t[a+1],n)}else t[n+1]=Ro(a,0),a!==0&&(t[a+1]=Ja(t[a+1],n)),a=n;else t[n+1]=Ro(c,0),a===0?a=n:t[c+1]=Ja(t[c+1],n),c=n;l&&(t[n+1]=Wc(t[n+1])),Bf(t,u,n,!0),Bf(t,u,n,!1),qD(e,u,t,n,o),s=Ro(a,c),o?e.classBindings=s:e.styleBindings=s}function qD(t,e,i,n,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&lr(o,e)>=0&&(i[n+1]=qc(i[n+1]))}function Bf(t,e,i,n){let r=t[i+1],o=e===null,s=n?Nn(r):li(r),a=!1;for(;s!==0&&(a===!1||o);){let c=t[s],l=t[s+1];JD(c,e)&&(a=!0,t[s+1]=n?qc(l):Wc(l)),s=n?Nn(l):li(l)}a&&(t[i+1]=n?Wc(r):qc(r))}function JD(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?lr(t,e)>=0:!1}var ct={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function QD(t){return t.substring(ct.key,ct.keyEnd)}function YD(t){return KD(t),yg(t,Dg(t,0,ct.textEnd))}function yg(t,e){let i=ct.textEnd;return i===e?-1:(e=ct.keyEnd=ZD(t,ct.key=e,i),Dg(t,e,i))}function KD(t){ct.key=0,ct.keyEnd=0,ct.value=0,ct.valueEnd=0,ct.textEnd=t.length}function Dg(t,e,i){for(;e<i&&t.charCodeAt(e)<=32;)e++;return e}function ZD(t,e,i){for(;e<i&&t.charCodeAt(e)>32;)e++;return e}function L(t,e,i){let n=P(),r=xn();if(Ye(n,r,e)){let o=_e(),s=cr();gs(o,s,n,t,e,n[se],i,!1)}return L}function Jc(t,e,i,n,r){let o=e.inputs,s=r?"class":"style";Pl(t,i,o[s],s,n)}function ve(t,e){return eb(t,e,null,!0),ve}function bs(t){tb(ab,XD,t,!0)}function XD(t,e){for(let i=YD(e);i>=0;i=yg(e,i))_l(t,QD(e),!0)}function eb(t,e,i,n){let r=P(),o=_e(),s=yh(2);if(o.firstUpdatePass&&wg(o,t,s,n),e!==ft&&Ye(r,s,e)){let a=o.data[Xt()];Eg(o,a,r,r[se],t,r[s+1]=lb(e,i),n,s)}}function tb(t,e,i,n){let r=_e(),o=yh(2);r.firstUpdatePass&&wg(r,null,o,n);let s=P();if(i!==ft&&Ye(s,o,i)){let a=r.data[Xt()];if(Cg(a,n)&&!bg(r,o)){let c=n?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(i=Xa(c,i||"")),Jc(r,a,s,i,n)}else cb(r,a,s,s[se],s[o+1],s[o+1]=sb(t,e,i),n,o)}}function bg(t,e){return e>=t.expandoStartIndex}function wg(t,e,i,n){let r=t.data;if(r[i+1]===null){let o=r[Xt()],s=bg(t,i);Cg(o,n)&&e===null&&!s&&(e=!1),e=nb(r,o,e,n),WD(r,o,e,i,s,n)}}function nb(t,e,i,n){let r=iv(t),o=n?e.residualClasses:e.residualStyles;if(r===null)(n?e.classBindings:e.styleBindings)===0&&(i=Qa(null,t,e,i,n),i=rr(i,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==r)if(i=Qa(r,t,e,i,n),o===null){let c=ib(t,e,n);c!==void 0&&Array.isArray(c)&&(c=Qa(null,t,e,c[1],n),c=rr(c,e.attrs,n),rb(t,e,n,c))}else o=ob(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),i}function ib(t,e,i){let n=i?e.classBindings:e.styleBindings;if(li(n)!==0)return t[Nn(n)]}function rb(t,e,i,n){let r=i?e.classBindings:e.styleBindings;t[Nn(r)]=n}function ob(t,e,i){let n,r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<r;o++){let s=t[o].hostAttrs;n=rr(n,s,i)}return rr(n,e.attrs,i)}function Qa(t,e,i,n,r){let o=null,s=i.directiveEnd,a=i.directiveStylingLast;for(a===-1?a=i.directiveStart:a++;a<s&&(o=e[a],n=rr(n,o.hostAttrs,r),o!==t);)a++;return t!==null&&(i.directiveStylingLast=a),n}function rr(t,e,i){let n=i?1:2,r=-1;if(e!==null)for(let o=0;o<e.length;o++){let s=e[o];typeof s=="number"?r=s:r===n&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),_l(t,s,i?!0:e[++o]))}return t===void 0?null:t}function sb(t,e,i){if(i==null||i==="")return je;let n=[],r=dt(i);if(Array.isArray(r))for(let o=0;o<r.length;o++)t(n,r[o],!0);else if(typeof r=="object")for(let o in r)r.hasOwnProperty(o)&&t(n,o,r[o]);else typeof r=="string"&&e(n,r);return n}function ab(t,e,i){let n=String(e);n!==""&&!n.includes(" ")&&_l(t,n,i)}function cb(t,e,i,n,r,o,s,a){r===ft&&(r=je);let c=0,l=0,u=0<r.length?r[0]:null,d=0<o.length?o[0]:null;for(;u!==null||d!==null;){let f=c<r.length?r[c+1]:void 0,p=l<o.length?o[l+1]:void 0,_=null,N;u===d?(c+=2,l+=2,f!==p&&(_=d,N=p)):d===null||u!==null&&u<d?(c+=2,_=u):(l+=2,_=d,N=p),_!==null&&Eg(t,e,i,n,_,N,s,a),u=c<r.length?r[c]:null,d=l<o.length?o[l]:null}}function Eg(t,e,i,n,r,o,s,a){if(!(e.type&3))return;let c=t.data,l=c[a+1],u=zD(l)?Vf(c,e,i,r,li(l),s):void 0;if(!Zo(u)){Zo(o)||UD(l)&&(o=Vf(c,null,i,r,a,s));let d=uh(Xt(),i);Zy(n,s,d,r,o)}}function Vf(t,e,i,n,r,o){let s=e===null,a;for(;r>0;){let c=t[r],l=Array.isArray(c),u=l?c[1]:c,d=u===null,f=i[r+1];f===ft&&(f=d?je:void 0);let p=d?Va(f,n):u===n?f:void 0;if(l&&!Zo(p)&&(p=Va(c,n)),Zo(p)&&(a=p,s))return a;let _=t[r+1];r=s?Nn(_):li(_)}if(e!==null){let c=o?e.residualClasses:e.residualStyles;c!=null&&(a=Va(c,n))}return a}function Zo(t){return t!==void 0}function lb(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Pe(dt(t)))),t}function Cg(t,e){return(t.flags&(e?8:16))!==0}var Qc=class{destroy(e){}updateValue(e,i){}swap(e,i){let n=Math.min(e,i),r=Math.max(e,i),o=this.detach(r);if(r-n>1){let s=this.detach(n);this.attach(n,o),this.attach(r,s)}else this.attach(n,o)}move(e,i){this.attach(i,this.detach(e))}};function Ya(t,e,i,n,r){return t===i&&Object.is(e,n)?1:Object.is(r(t,e),r(i,n))?-1:0}function ub(t,e,i){let n,r,o=0,s=t.length-1;if(Array.isArray(e)){let a=e.length-1;for(;o<=s&&o<=a;){let c=t.at(o),l=e[o],u=Ya(o,c,o,l,i);if(u!==0){u<0&&t.updateValue(o,l),o++;continue}let d=t.at(s),f=e[a],p=Ya(s,d,a,f,i);if(p!==0){p<0&&t.updateValue(s,f),s--,a--;continue}let _=i(o,c),N=i(s,d),R=i(o,l);if(Object.is(R,N)){let S=i(a,f);Object.is(S,_)?(t.swap(o,s),t.updateValue(s,f),a--,s--):t.move(s,o),t.updateValue(o,l),o++;continue}if(n??=new Xo,r??=$f(t,o,s,i),Yc(t,n,o,R))t.updateValue(o,l),o++,s++;else if(r.has(R))n.set(_,t.detach(o)),s--;else{let S=t.create(o,e[o]);t.attach(o,S),o++,s++}}for(;o<=a;)Hf(t,n,i,o,e[o]),o++}else if(e!=null){let a=e[Symbol.iterator](),c=a.next();for(;!c.done&&o<=s;){let l=t.at(o),u=c.value,d=Ya(o,l,o,u,i);if(d!==0)d<0&&t.updateValue(o,u),o++,c=a.next();else{n??=new Xo,r??=$f(t,o,s,i);let f=i(o,u);if(Yc(t,n,o,f))t.updateValue(o,u),o++,s++,c=a.next();else if(!r.has(f))t.attach(o,t.create(o,u)),o++,s++,c=a.next();else{let p=i(o,l);n.set(p,t.detach(o)),s--}}}for(;!c.done;)Hf(t,n,i,t.length,c.value),c=a.next()}for(;o<=s;)t.destroy(t.detach(s--));n?.forEach(a=>{t.destroy(a)})}function Yc(t,e,i,n){return e!==void 0&&e.has(n)?(t.attach(i,e.get(n)),e.delete(n),!0):!1}function Hf(t,e,i,n,r){if(Yc(t,e,n,i(n,r)))t.updateValue(n,r);else{let o=t.create(n,r);t.attach(n,o)}}function $f(t,e,i,n){let r=new Set;for(let o=e;o<=i;o++)r.add(n(o,t.at(o)));return r}var Xo=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let i=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(i)?(this.kvMap.set(e,this._vMap.get(i)),this._vMap.delete(i)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,i){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,i)}else this.kvMap.set(e,i)}forEach(e){for(let[i,n]of this.kvMap)if(e(n,i),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,i)}}};function Ne(t,e,i){gr("NgControlFlow");let n=P(),r=xn(),o=el(n,Fe+t),s=0;if(Ye(n,r,e)){let a=pe(null);try{if(Xp(o,s),e!==-1){let c=tl(n[A],Fe+e),l=tr(o,c.tView.ssrId),u=_s(n,c,i,{dehydratedView:l});vs(o,u,s,er(c,l))}}finally{pe(a)}}else{let a=Zp(o,s);a!==void 0&&(a[Ie]=i)}}var Kc=class{constructor(e,i,n){this.lContainer=e,this.$implicit=i,this.$index=n}get $count(){return this.lContainer.length-Re}};function Sg(t,e){return e}var Zc=class{constructor(e,i,n){this.hasEmptyBlock=e,this.trackByFn=i,this.liveCollection=n}};function xe(t,e,i,n,r,o,s,a,c,l,u,d,f){gr("NgControlFlow");let p=c!==void 0,_=P(),N=a?s.bind(_[Qe][Ie]):s,R=new Zc(p,N);_[Fe+t]=R,ie(t+1,e,i,n,r,o),p&&ie(t+2,c,l,u,d,f)}var Xc=class extends Qc{constructor(e,i,n){super(),this.lContainer=e,this.hostLView=i,this.templateTNode=n,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Re}at(e){return this.getLView(e)[Ie].$implicit}attach(e,i){let n=i[ii];this.needsIndexUpdate||=e!==this.length,vs(this.lContainer,i,e,er(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,db(this.lContainer,e)}create(e,i){let n=tr(this.lContainer,this.templateTNode.tView.ssrId);return _s(this.hostLView,this.templateTNode,new Kc(this.lContainer,i,e),{dehydratedView:n})}destroy(e){fs(e[A],e)}updateValue(e,i){this.getLView(e)[Ie].$implicit=i}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[Ie].$index=e}getLView(e){return fb(this.lContainer,e)}};function Oe(t){let e=pe(null),i=Xt();try{let n=P(),r=n[A],o=n[i];if(o.liveCollection===void 0){let a=i+1,c=el(n,a),l=tl(r,a);o.liveCollection=new Xc(c,n,l)}else o.liveCollection.reset();let s=o.liveCollection;if(ub(s,t,o.trackByFn),s.updateIndexes(),o.hasEmptyBlock){let a=xn(),c=s.length===0;if(Ye(n,a,c)){let l=i+2,u=el(n,l);if(c){let d=tl(r,l),f=tr(u,d.tView.ssrId),p=_s(n,d,void 0,{dehydratedView:f});vs(u,p,0,er(d,f))}else Xp(u,0)}}}finally{pe(e)}}function el(t,e){return t[e]}function db(t,e){return Xi(t,e)}function fb(t,e){return Zp(t,e)}function tl(t,e){return sl(t,e)}function hb(t,e,i,n,r,o){let s=e.consts,a=jo(s,r),c=hr(e,t,2,n,a);return Gp(e,i,c,jo(s,o)),c.attrs!==null&&kc(c,c.attrs,!1),c.mergedAttrs!==null&&kc(c,c.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,c),c}function D(t,e,i,n){let r=P(),o=_e(),s=Fe+t,a=r[se],c=o.firstCreatePass?hb(s,o,r,e,i,n):o.data[s],l=pb(o,r,c,a,e,t);r[s]=l;let u=ol(c);return ar(c,!0),Pp(a,l,c),(c.flags&32)!==32&&pl()&&xl(o,r,l,c),W_()===0&&In(l,r),q_(),u&&(Hp(o,r,c),Vp(o,c,r)),n!==null&&$p(r,c),D}function m(){let t=Ve();_h()?vh():(t=t.parent,ar(t,!1));let e=t;Q_(e)&&Y_(),J_();let i=_e();return i.firstCreatePass&&(Ml(i,t),lh(t)&&i.queries.elementEnd(t)),e.classesWithoutHost!=null&&Zv(e)&&Jc(i,e,P(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&Xv(e)&&Jc(i,e,P(),e.stylesWithoutHost,!1),m}function $(t,e,i,n){return D(t,e,i,n),m(),$}var pb=(t,e,i,n,r,o)=>(gl(!0),Sp(n,r,sv()));function Wl(){return P()}function nn(t,e,i){let n=P(),r=xn();if(Ye(n,r,e)){let o=_e(),s=cr();gs(o,s,n,t,e,n[se],i,!0)}return nn}var es="en-US";var gb=es;function mb(t){typeof t=="string"&&(gb=t.toLowerCase().replace(/_/g,"-"))}function be(t,e,i,n){let r=P(),o=_e(),s=Ve();return Tg(o,r,r[se],s,t,e,n),be}function _b(t,e,i,n){let r=t.cleanup;if(r!=null)for(let o=0;o<r.length-1;o+=2){let s=r[o];if(s===i&&r[o+1]===n){let a=e[Wi],c=r[o+2];return a.length>c?a[c]:null}typeof s=="string"&&(o+=2)}return null}function Tg(t,e,i,n,r,o,s){let a=ol(n),l=t.firstCreatePass&&Yp(t),u=e[Ie],d=Qp(e),f=!0;if(n.type&3||s){let N=Ze(n,e),R=s?s(N):N,S=d.length,ue=s?Z=>s(yt(Z[n.index])):n.index,ze=null;if(!s&&a&&(ze=_b(t,e,r,n.index)),ze!==null){let Z=ze.__ngLastListenerFn__||ze;Z.__ngNextListenerFn__=o,ze.__ngLastListenerFn__=o,f=!1}else{o=Gf(n,e,u,o,!1);let Z=i.listen(R,r,o);d.push(o,Z),l&&l.push(r,ue,S,S+1)}}else o=Gf(n,e,u,o,!1);let p=n.outputs,_;if(f&&p!==null&&(_=p[r])){let N=_.length;if(N)for(let R=0;R<N;R+=2){let S=_[R],ue=_[R+1],Ae=e[S][ue].subscribe(o),We=d.length;if(d.push(o,Ae),l){let pn=typeof Ae=="function"?We+1:-(We+1);l.push(r,n.index,We,pn)}}}}function Uf(t,e,i,n){try{return mt(6,e,i),i(n)!==!1}catch(r){return Kp(t,r),!1}finally{mt(7,e,i)}}function Gf(t,e,i,n,r){return function o(s){if(s===Function)return n;let a=t.componentOffset>-1?Zt(t.index,e):e;kl(a);let c=Uf(e,i,n,s),l=o.__ngNextListenerFn__;for(;l;)c=Uf(e,i,l,s)&&c,l=l.__ngNextListenerFn__;return r&&c===!1&&s.preventDefault(),c}}function U(t=1){return ov(t)}function vb(t,e){let i=null,n=T_(t);for(let r=0;r<e.length;r++){let o=e[r];if(o==="*"){i=r;continue}if(n===null?eh(t,o,!0):R_(n,o))return r}return i}function Mg(t){let e=P()[Qe][$e];if(!e.projection){let i=t?t.length:1,n=e.projection=dv(i,null),r=n.slice(),o=e.child;for(;o!==null;){let s=t?vb(o,t):0;s!==null&&(r[s]?r[s].projectionNext=o:n[s]=o,r[s]=o),o=o.next}}}function Ig(t,e=0,i){let n=P(),r=_e(),o=hr(r,Fe+t,16,null,i||null);o.projection===null&&(o.projection=e),vh(),(!n[ii]||gh())&&(o.flags&32)!==32&&Yy(r,n,o)}function Ct(t,e,i){return Rg(t,"",e,"",i),Ct}function Rg(t,e,i,n,r){let o=P(),s=vg(o,e,i,n);if(s!==ft){let a=_e(),c=cr();gs(a,c,o,t,s,o[se],r,!1)}return Rg}function rn(t,e,i,n){MD(t,e,i,n)}function mr(t,e,i){TD(t,e,i)}function tt(t){let e=P(),i=_e(),n=Dh();dl(n+1);let r=Vl(i,n);if(t.dirty&&H_(e)===((r.metadata.flags&2)===2)){if(r.matches===null)t.reset([]);else{let o=ND(e,n);t.reset(o,cv),t.notifyOnChanges()}return!0}return!1}function nt(){return SD(P(),Dh())}function yb(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}function ql(t){let e=Z_();return dh(e,Fe+t)}function H(t,e=""){let i=P(),n=_e(),r=t+Fe,o=n.firstCreatePass?hr(n,r,1,e,null):n.data[r],s=Db(n,i,o,e,t);i[r]=s,pl()&&xl(n,i,s,o),ar(o,!1)}var Db=(t,e,i,n,r)=>(gl(!0),Fy(e[se],n));function fe(t){return on("",t,""),fe}function on(t,e,i){let n=P(),r=vg(n,t,e,i);return r!==ft&&S1(n,Xt(),r),on}function Jl(t,e,i){lg(e)&&(e=e());let n=P(),r=xn();if(Ye(n,r,e)){let o=_e(),s=cr();gs(o,s,n,t,e,n[se],i,!1)}return Jl}function Ng(t,e){let i=lg(t);return i&&t.set(e),i}function Ql(t,e){let i=P(),n=_e(),r=Ve();return Tg(n,i,i[se],r,t,e),Ql}var bb=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=$h(!1,n.type),o=r.length>0?Gl([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=g({token:e,providedIn:"environment",factory:()=>new e(E(Te))});let t=e;return t})();function he(t){gr("NgStandalone"),t.getStandaloneInjector=e=>e.get(bb).getOrCreateStandaloneInjector(t)}function _i(t,e,i){let n=rs()+t,r=P();return r[n]===ft?zl(r,n,i?e.call(i):e()):jD(r,n)}function sn(t,e,i,n){return Og(P(),rs(),t,e,i,n)}function Yl(t,e,i,n,r){return wb(P(),rs(),t,e,i,n,r)}function xg(t,e){let i=t[e];return i===ft?void 0:i}function Og(t,e,i,n,r,o){let s=e+i;return Ye(t,s,r)?zl(t,s+1,o?n.call(o,r):n(r)):xg(t,s+1)}function wb(t,e,i,n,r,o,s){let a=e+i;return BD(t,a,r,o)?zl(t,a+2,s?n.call(s,r,o):n(r,o)):xg(t,a+2)}function Kl(t,e){let i=_e(),n,r=t+Fe;i.firstCreatePass?(n=Eb(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks??=[]).push(r,n.onDestroy)):n=i.data[r];let o=n.factory||(n.factory=Mn(n.type,!0)),s,a=Le(G);try{let c=Go(!1),l=o();return Go(c),yb(i,P(),r,l),l}finally{Le(a)}}function Eb(t,e){if(e)for(let i=e.length-1;i>=0;i--){let n=e[i];if(t===n.name)return n}}function Zl(t,e,i){let n=t+Fe,r=P(),o=dh(r,n);return Cb(r,n)?Og(r,rs(),e,o.transform,i,o):o.transform(i)}function Cb(t,e){return t[A].data[e].pure}var ws=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var Ag=new I("");function vi(t){return!!t&&typeof t.then=="function"}function Xl(t){return!!t&&typeof t.subscribe=="function"}var Es=new I(""),Pg=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=h(Es,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(vi(s))n.push(s);else if(Xl(s)){let a=new Promise((c,l)=>{s.subscribe({complete:c,error:l})});n.push(a)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Cs=new I("");function Sb(){Md(()=>{throw new b(600,!1)})}function Tb(t){return t.isBoundToModule}function Mb(t,e,i){try{let n=i();return vi(n)?n.catch(r=>{throw e.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var an=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=h(cp),this.afterRenderEffectManager=h(dg),this.componentTypes=[],this.components=[],this.isStable=h(mi).hasPendingTasks.pipe(w(n=>!n)),this._injector=h(Te)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof qo;if(!this._injector.get(Pg).done){let p=!o&&ih(n),_=!1;throw new b(405,_)}let a;o?a=n:a=this._injector.get(ys).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=Tb(a)?void 0:this._injector.get(Kt),l=r||a.selector,u=a.create(bt.NULL,[],l,c),d=u.location.nativeElement,f=u.injector.get(Ag,null);return f?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),Ka(this.components,u),f?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new b(101,!1);try{this._runningTick=!0,this.detectChangesInAttachedViews()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}detectChangesInAttachedViews(){let n=0;do{if(n===rg)throw new b(103,!1);let r=n===0;for(let{_lView:o,notifyErrorHandler:s}of this._views)!r&&!zf(o)||this.detectChangesInView(o,s,r);this.afterRenderEffectManager.execute(),n++}while(this._views.some(({_lView:r})=>zf(r)))}detectChangesInView(n,r,o){let s;o?(s=0,n[M]|=1024):n[M]&64?s=0:s=1,og(n,r,s)}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Ka(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Cs,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ka(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new b(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ka(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function zf(t){return cl(t)}var nl=class{constructor(e,i){this.ngModuleFactory=e,this.componentFactories=i}},eu=(()=>{let e=class e{compileModuleSync(n){return new zc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=rh(n),s=Cp(o.declarations).reduce((a,c)=>{let l=Yt(c);return l&&a.push(new ci(l)),a},[]);return new nl(r,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Ib=(()=>{let e=class e{constructor(){this.zone=h(Q),this.applicationRef=h(an)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Rb(t){return[{provide:Q,useFactory:t},{provide:si,multi:!0,useFactory:()=>{let e=h(Ib,{optional:!0});return()=>e.initialize()}},{provide:si,multi:!0,useFactory:()=>{let e=h(Ab);return()=>{e.initialize()}}},{provide:cp,useFactory:Nb}]}function Nb(){let t=h(Q),e=h(At);return i=>t.runOutsideAngular(()=>e.handleError(i))}function xb(t){let e=Rb(()=>new Q(Ob(t)));return fi([[],e])}function Ob(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var Ab=(()=>{let e=class e{constructor(){this.subscription=new oe,this.initialized=!1,this.zone=h(Q),this.pendingTasks=h(mi)}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(()=>{Q.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Q.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Pb(){return typeof $localize<"u"&&$localize.locale||es}var Ss=new I("",{providedIn:"root",factory:()=>h(Ss,B.Optional|B.SkipSelf)||Pb()});var Fg=new I("");var Fo=null;function Fb(t=[],e){return bt.create({name:e,providers:[{provide:cs,useValue:"platform"},{provide:Fg,useValue:new Set([()=>Fo=null])},...t]})}function kb(t=[]){if(Fo)return Fo;let e=Fb(t);return Fo=e,Sb(),Lb(e),e}function Lb(t){t.get(yl,null)?.forEach(i=>i())}function kg(t){try{let{rootComponent:e,appProviders:i,platformProviders:n}=t,r=kb(n),o=[xb(),...i||[]],a=new Ko({providers:o,parent:r,debugName:"",runEnvironmentInitializers:!1}).injector,c=a.get(Q);return c.run(()=>{a.resolveInjectorInitializers();let l=a.get(At,null),u;c.runOutsideAngular(()=>{u=c.onError.subscribe({next:p=>{l.handleError(p)}})});let d=()=>a.destroy(),f=r.get(Fg);return f.add(d),a.onDestroy(()=>{u.unsubscribe(),f.delete(d)}),Mb(l,c,()=>{let p=a.get(Pg);return p.runInitializers(),p.donePromise.then(()=>{let _=a.get(Ss,es);mb(_||es);let N=a.get(an);return e!==void 0&&N.bootstrap(e),N})})})}catch(e){return Promise.reject(e)}}function _r(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Ts(t,e){let i=Yt(t),n=e.elementInjector||ls();return new ci(i).create(n,e.projectableNodes,e.hostElement,e.environmentInjector)}var Ug=null;function yi(){return Ug}function Gg(t){Ug??=t}var Ms=class{};var ae=new I(""),zg=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:()=>h(Bb),providedIn:"platform"});let t=e;return t})();var Bb=(()=>{let e=class e extends zg{constructor(){super(),this._doc=h(ae),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return yi().getBaseHref(this._doc)}onPopState(n){let r=yi().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=yi().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Wg(t,e){if(t.length==0)return e;if(e.length==0)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,i==2?t+e.substring(1):i==1?t+e:t+"/"+e}function Lg(t){let e=t.match(/#|\?|$/),i=e&&e.index||t.length,n=i-(t[i-1]==="/"?1:0);return t.slice(0,n)+t.slice(i)}function On(t){return t&&t[0]!=="?"?"?"+t:t}var bi=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:()=>h(qg),providedIn:"root"});let t=e;return t})(),Vb=new I(""),qg=(()=>{let e=class e extends bi{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??h(ae).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Wg(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+On(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,s){let a=this.prepareExternalUrl(o+On(s));this._platformLocation.pushState(n,r,a)}replaceState(n,r,o,s){let a=this.prepareExternalUrl(o+On(s));this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(r){return new(r||e)(E(zg),E(Vb,8))},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var vr=(()=>{let e=class e{constructor(n){this._subject=new V,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=Ub(Lg(jg(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+On(r))}normalize(n){return e.stripTrailingSlash($b(this._basePath,jg(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+On(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+On(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}};e.normalizeQueryParams=On,e.joinWithSlash=Wg,e.stripTrailingSlash=Lg,e.\u0275fac=function(r){return new(r||e)(E(bi))},e.\u0275prov=g({token:e,factory:()=>Hb(),providedIn:"root"});let t=e;return t})();function Hb(){return new vr(E(bi))}function $b(t,e){if(!t||!e.startsWith(t))return e;let i=e.substring(t.length);return i===""||["/",";","?","#"].includes(i[0])?i:e}function jg(t){return t.replace(/\/index.html$/,"")}function Ub(t){if(new RegExp("^(https?:)?//").test(t)){let[,i]=t.split(/\/\/[^\/]+/);return i}return t}function Is(t,e){e=encodeURIComponent(e);for(let i of t.split(";")){let n=i.indexOf("="),[r,o]=n==-1?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===e)return decodeURIComponent(o)}return null}var tu=/\s+/,Bg=[],wi=(()=>{let e=class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=Bg,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(tu):Bg}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(tu):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(tu).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(r){return new(r||e)(G(de),G(pr))},e.\u0275dir=te({type:e,selectors:[["","ngClass",""]],inputs:{klass:[q.None,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var nu=class{constructor(e,i,n,r){this.$implicit=e,this.ngForOf=i,this.index=n,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Jg=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new nu(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)r.remove(s===null?void 0:s);else if(s!==null){let c=r.get(s);r.move(c,a),Vg(c,o)}});for(let o=0,s=r.length;o<s;o++){let c=r.get(o).context;c.index=o,c.count=s,c.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let s=r.get(o.currentIndex);Vg(s,o)})}static ngTemplateContextGuard(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(G(ht),G(ut),G(jl))},e.\u0275dir=te({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function Vg(t,e){t.context.$implicit=e.item}var Qg=(()=>{let e=class e{constructor(n,r){this._viewContainer=n,this._context=new iu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Hg("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Hg("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(G(ht),G(ut))},e.\u0275dir=te({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),iu=class{constructor(){this.$implicit=null,this.ngIf=null}};function Hg(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Pe(e)}'.`)}var Yg=(()=>{let e=class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}};e.\u0275fac=function(r){return new(r||e)(G(ht))},e.\u0275dir=te({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[He]});let t=e;return t})();function Gb(t,e){return new b(2100,!1)}var ru=class{createSubscription(e,i){return Ds(()=>e.subscribe({next:i,error:n=>{throw n}}))}dispose(e){Ds(()=>e.unsubscribe())}},ou=class{createSubscription(e,i){return e.then(i,n=>{throw n})}dispose(e){}},zb=new ou,Wb=new ru,Kg=(()=>{let e=class e{constructor(n){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){return this._obj?n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue:(n&&this._subscribe(n),this._latestValue)}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(vi(n))return zb;if(Xl(n))return Wb;throw Gb(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this._ref.markForCheck())}};e.\u0275fac=function(r){return new(r||e)(G(wt,16))},e.\u0275pipe=th({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var yr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ke({type:e}),e.\u0275inj=Xe({});let t=e;return t})(),cu="browser",qb="server";function Ei(t){return t===cu}function lu(t){return t===qb}var Rs=(()=>{let e=class e{};e.\u0275prov=g({token:e,providedIn:"root",factory:()=>Ei(h(Ue))?new su(h(ae),window):new au});let t=e;return t})(),su=class{constructor(e,i){this.document=e,this.window=i,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let i=Jb(this.document,e);i&&(this.scrollToElement(i),i.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let i=e.getBoundingClientRect(),n=i.left+this.window.pageXOffset,r=i.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}};function Jb(t,e){let i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let o=r.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}r=n.nextNode()}}return null}var au=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},Di=class{};var br=class{},xs=class{},An=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
8
- `).forEach(i=>{let n=i.indexOf(":");if(n>0){let r=i.slice(0,n),o=r.toLowerCase(),s=i.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){let i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){let i=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,i);let r=(e.op==="a"?this.headers.get(i):void 0)||[];r.push(...n),this.headers.set(i,r);break;case"d":let o=e.value;if(!o)this.headers.delete(i),this.normalizedNames.delete(i);else{let s=this.headers.get(i);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,s)}break}}setHeaderEntries(e,i){let n=(Array.isArray(i)?i:[i]).map(o=>o.toString()),r=e.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}};var fu=class{encodeKey(e){return Zg(e)}encodeValue(e){return Zg(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Kb(t,e){let i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],c=i.get(s)||[];c.push(a),i.set(s,c)}),i}var Zb=/%(\d[a-f0-9])/gi,Xb={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Zg(t){return encodeURIComponent(t).replace(Zb,(e,i)=>Xb[i]??e)}function Ns(t){return`${t}`}var cn=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new fu,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Kb(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{let n=e.fromObject[i],r=Array.isArray(n)?n.map(Ns):[Ns(n)];this.map.set(i,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){let i=[];return Object.keys(e).forEach(n=>{let r=e[n];Array.isArray(r)?r.forEach(o=>{i.push({param:n,value:o,op:"a"})}):i.push({param:n,value:r,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let i=this.encoder.encodeKey(e);return this.map.get(e).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let i=(e.op==="a"?this.map.get(e.param):void 0)||[];i.push(Ns(e.value)),this.map.set(e.param,i);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],r=n.indexOf(Ns(e.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var hu=class{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function ew(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Xg(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function em(t){return typeof Blob<"u"&&t instanceof Blob}function tm(t){return typeof FormData<"u"&&t instanceof FormData}function tw(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Dr=class t{constructor(e,i,n,r){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(ew(this.method)||r?(this.body=n!==void 0?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new An,this.context??=new hu,!this.params)this.params=new cn,this.urlWithParams=i;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),c=a===-1?"?":a<i.length-1?"&":"";this.urlWithParams=i+c+s}}}serializeBody(){return this.body===null?null:Xg(this.body)||em(this.body)||tm(this.body)||tw(this.body)||typeof this.body=="string"?this.body:this.body instanceof cn?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||tm(this.body)?null:em(this.body)?this.body.type||null:Xg(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof cn?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let i=e.method||this.method,n=e.url||this.url,r=e.responseType||this.responseType,o=e.body!==void 0?e.body:this.body,s=e.withCredentials!==void 0?e.withCredentials:this.withCredentials,a=e.reportProgress!==void 0?e.reportProgress:this.reportProgress,c=e.headers||this.headers,l=e.params||this.params,u=e.context??this.context;return e.setHeaders!==void 0&&(c=Object.keys(e.setHeaders).reduce((d,f)=>d.set(f,e.setHeaders[f]),c)),e.setParams&&(l=Object.keys(e.setParams).reduce((d,f)=>d.set(f,e.setParams[f]),l)),new t(i,n,o,{params:l,headers:c,context:u,reportProgress:a,responseType:r,withCredentials:s})}},Ci=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Ci||{}),wr=class{constructor(e,i=Ps.Ok,n="OK"){this.headers=e.headers||new An,this.status=e.status!==void 0?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},pu=class t extends wr{constructor(e={}){super(e),this.type=Ci.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Os=class t extends wr{constructor(e={}){super(e),this.type=Ci.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},As=class extends wr{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Ps=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(Ps||{});function du(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Er=(()=>{let e=class e{constructor(n){this.handler=n}request(n,r,o={}){let s;if(n instanceof Dr)s=n;else{let l;o.headers instanceof An?l=o.headers:l=new An(o.headers);let u;o.params&&(o.params instanceof cn?u=o.params:u=new cn({fromObject:o.params})),s=new Dr(n,r,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=T(s).pipe(zt(l=>this.handler.handle(l)));if(n instanceof Dr||o.observe==="events")return a;let c=a.pipe(ee(l=>l instanceof Os));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(w(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return c.pipe(w(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return c.pipe(w(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return c.pipe(w(l=>l.body))}case"response":return c;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 cn().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,du(o,r))}post(n,r,o={}){return this.request("POST",n,du(o,r))}put(n,r,o={}){return this.request("PUT",n,du(o,r))}};e.\u0275fac=function(r){return new(r||e)(E(br))},e.\u0275prov=g({token:e,factory:e.\u0275fac});let t=e;return t})();function nw(t,e){return e(t)}function iw(t,e,i){return(n,r)=>jt(i,()=>e(n,o=>t(o,r)))}var rm=new I(""),rw=new I(""),ow=new I("");var nm=(()=>{let e=class e extends br{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=h(mi);let o=h(ow,{optional:!0});this.backend=o??n}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(rm),...this.injector.get(rw,[])]));this.chain=o.reduceRight((s,a)=>iw(s,a,this.injector),nw)}let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(qt(()=>this.pendingTasks.remove(r)))}};e.\u0275fac=function(r){return new(r||e)(E(xs),E(Te))},e.\u0275prov=g({token:e,factory:e.\u0275fac});let t=e;return t})();var sw=/^\)\]\}',?\n/;function aw(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var im=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new b(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?ne(r.\u0275loadImpl()):T(null)).pipe(me(()=>new x(s=>{let a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((R,S)=>a.setRequestHeader(R,S.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let R=n.detectContentTypeHeader();R!==null&&a.setRequestHeader("Content-Type",R)}if(n.responseType){let R=n.responseType.toLowerCase();a.responseType=R!=="json"?R:"text"}let c=n.serializeBody(),l=null,u=()=>{if(l!==null)return l;let R=a.statusText||"OK",S=new An(a.getAllResponseHeaders()),ue=aw(a)||n.url;return l=new pu({headers:S,status:a.status,statusText:R,url:ue}),l},d=()=>{let{headers:R,status:S,statusText:ue,url:ze}=u(),Z=null;S!==Ps.NoContent&&(Z=typeof a.response>"u"?a.responseText:a.response),S===0&&(S=Z?Ps.Ok:0);let Ae=S>=200&&S<300;if(n.responseType==="json"&&typeof Z=="string"){let We=Z;Z=Z.replace(sw,"");try{Z=Z!==""?JSON.parse(Z):null}catch(pn){Z=We,Ae&&(Ae=!1,Z={error:pn,text:Z})}}Ae?(s.next(new Os({body:Z,headers:R,status:S,statusText:ue,url:ze||void 0})),s.complete()):s.error(new As({error:Z,headers:R,status:S,statusText:ue,url:ze||void 0}))},f=R=>{let{url:S}=u(),ue=new As({error:R,status:a.status||0,statusText:a.statusText||"Unknown Error",url:S||void 0});s.error(ue)},p=!1,_=R=>{p||(s.next(u()),p=!0);let S={type:Ci.DownloadProgress,loaded:R.loaded};R.lengthComputable&&(S.total=R.total),n.responseType==="text"&&a.responseText&&(S.partialText=a.responseText),s.next(S)},N=R=>{let S={type:Ci.UploadProgress,loaded:R.loaded};R.lengthComputable&&(S.total=R.total),s.next(S)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",_),c!==null&&a.upload&&a.upload.addEventListener("progress",N)),a.send(c),s.next({type:Ci.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",_),c!==null&&a.upload&&a.upload.removeEventListener("progress",N)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(E(Di))},e.\u0275prov=g({token:e,factory:e.\u0275fac});let t=e;return t})(),om=new I(""),cw="XSRF-TOKEN",lw=new I("",{providedIn:"root",factory:()=>cw}),uw="X-XSRF-TOKEN",dw=new I("",{providedIn:"root",factory:()=>uw}),Fs=class{},fw=(()=>{let e=class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Is(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(E(ae),E(Ue),E(lw))},e.\u0275prov=g({token:e,factory:e.\u0275fac});let t=e;return t})();function hw(t,e){let i=t.url.toLowerCase();if(!h(om)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=h(Fs).getToken(),r=h(dw);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t)}function sm(...t){let e=[Er,im,nm,{provide:br,useExisting:nm},{provide:xs,useExisting:im},{provide:rm,useValue:hw,multi:!0},{provide:om,useValue:!0},{provide:Fs,useClass:fw}];for(let i of t)e.push(...i.\u0275providers);return fi(e)}var _u=class extends Ms{constructor(){super(...arguments),this.supportsDOMEvents=!0}},vu=class t extends _u{static makeCurrent(){Gg(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=pw();return i==null?null:gw(i)}resetBaseElement(){Cr=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Is(document.cookie,e)}},Cr=null;function pw(){return Cr=Cr||document.querySelector("base"),Cr?Cr.getAttribute("href"):null}function gw(t){return new URL(t,document.baseURI).pathname}var mw=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac});let t=e;return t})(),yu=new I(""),um=(()=>{let e=class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(s=>s.supports(n)),!r)throw new b(5101,!1);return this._eventNameToPlugin.set(n,r),r}};e.\u0275fac=function(r){return new(r||e)(E(yu),E(Q))},e.\u0275prov=g({token:e,factory:e.\u0275fac});let t=e;return t})(),ks=class{constructor(e){this._doc=e}},gu="ng-app-id",dm=(()=>{let e=class e{constructor(n,r,o,s={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=lu(s),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${gu}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=r,s.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===n)return o.delete(r),s.removeAttribute(gu),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(gu,this.appId),n.appendChild(a),a}}addStyleToHost(n,r){let o=this.getStyleElement(n,r),s=this.styleRef,a=s.get(r)?.elements;a?a.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(E(ae),E(vl),E(Dl,8),E(Ue))},e.\u0275prov=g({token:e,factory:e.\u0275fac});let t=e;return t})(),mu={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},bu=/%COMP%/g,fm="%COMP%",_w=`_nghost-${fm}`,vw=`_ngcontent-${fm}`,yw=!0,Dw=new I("",{providedIn:"root",factory:()=>yw});function bw(t){return vw.replace(bu,t)}function ww(t){return _w.replace(bu,t)}function hm(t,e){return e.map(i=>i.replace(bu,t))}var am=(()=>{let e=class e{constructor(n,r,o,s,a,c,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=lu(c),this.defaultRenderer=new Sr(n,a,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===vt.ShadowDom&&(r=X(v({},r),{encapsulation:vt.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Ls?o.applyToHost(n):o instanceof Tr&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,s=o.get(r.id);if(!s){let a=this.doc,c=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(r.encapsulation){case vt.Emulated:s=new Ls(l,u,r,this.appId,d,a,c,f);break;case vt.ShadowDom:return new Du(l,u,n,r,a,c,this.nonce,f);default:s=new Tr(l,u,r,d,a,c,f);break}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(E(um),E(dm),E(vl),E(Dw),E(ae),E(Ue),E(Q),E(Dl))},e.\u0275prov=g({token:e,factory:e.\u0275fac});let t=e;return t})(),Sr=class{constructor(e,i,n,r){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(mu[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(cm(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(cm(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new b(-5104,!1);return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,r){if(r){i=r+":"+i;let o=mu[r];o?e.setAttributeNS(o,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let r=mu[n];r?e.removeAttributeNS(r,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,r){r&(Ft.DashCase|Ft.Important)?e.style.setProperty(i,n,r&Ft.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&Ft.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e!=null&&(e[i]=n)}setValue(e,i){e.nodeValue=i}listen(e,i,n){if(typeof e=="string"&&(e=yi().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function cm(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Du=class extends Sr{constructor(e,i,n,r,o,s,a,c){super(e,o,s,c),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=hm(r.id,r.styles);for(let u of l){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Tr=class extends Sr{constructor(e,i,n,r,o,s,a,c){super(e,o,s,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?hm(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Ls=class extends Tr{constructor(e,i,n,r,o,s,a,c){let l=r+"-"+n.id;super(e,i,n,o,s,a,c,l),this.contentAttr=bw(l),this.hostAttr=ww(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}},Ew=(()=>{let e=class e extends ks{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}};e.\u0275fac=function(r){return new(r||e)(E(ae))},e.\u0275prov=g({token:e,factory:e.\u0275fac});let t=e;return t})(),lm=["alt","control","meta","shift"],Cw={"\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"},Sw={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Tw=(()=>{let e=class e extends ks{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>yi().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(r.pop()),a="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),a="code."),lm.forEach(u=>{let d=r.indexOf(u);d>-1&&(r.splice(d,1),a+=u+".")}),a+=s,r.length!=0||s.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(n,r){let o=Cw[n.key]||n.key,s="";return r.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),lm.forEach(a=>{if(a!==o){let c=Sw[a];c(n)&&(s+=a+".")}}),s+=o,s===r)}static eventCallback(n,r,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>r(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(r){return new(r||e)(E(ae))},e.\u0275prov=g({token:e,factory:e.\u0275fac});let t=e;return t})();function pm(t,e){return kg(v({rootComponent:t},Mw(e)))}function Mw(t){return{appProviders:[...Ow,...t?.providers??[]],platformProviders:xw}}function Iw(){vu.makeCurrent()}function Rw(){return new At}function Nw(){return Rh(document),document}var xw=[{provide:Ue,useValue:cu},{provide:yl,useValue:Iw,multi:!0},{provide:ae,useFactory:Nw,deps:[]}];var Ow=[{provide:cs,useValue:"root"},{provide:At,useFactory:Rw,deps:[]},{provide:yu,useClass:Ew,multi:!0,deps:[ae,Q,Ue]},{provide:yu,useClass:Tw,multi:!0,deps:[ae]},am,dm,um,{provide:nr,useExisting:am},{provide:Di,useClass:mw,deps:[]},[]];var gm=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(r){return new(r||e)(E(ae))},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var wu=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=E(Aw),o},providedIn:"root"});let t=e;return t})(),Aw=(()=>{let e=class e extends wu{constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case et.NONE:return r;case et.HTML:return en(r,"HTML")?dt(r):yp(this._doc,String(r)).toString();case et.STYLE:return en(r,"Style")?dt(r):r;case et.SCRIPT:if(en(r,"Script"))return dt(r);throw new b(5200,!1);case et.URL:return en(r,"URL")?dt(r):ds(String(r));case et.RESOURCE_URL:if(en(r,"ResourceURL"))return dt(r);throw new b(5201,!1);default:throw new b(5202,!1)}}bypassSecurityTrustHtml(n){return up(n)}bypassSecurityTrustStyle(n){return dp(n)}bypassSecurityTrustScript(n){return fp(n)}bypassSecurityTrustUrl(n){return hp(n)}bypassSecurityTrustResourceUrl(n){return pp(n)}};e.\u0275fac=function(r){return new(r||e)(E(ae))},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var F="primary",Vr=Symbol("RouteTitle"),Mu=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function Ri(t){return new Mu(t)}function Pw(t,e,i){let n=i.path.split("/");if(n.length>t.length||i.pathMatch==="full"&&(e.hasChildren()||n.length<t.length))return null;let r={};for(let o=0;o<n.length;o++){let s=n[o],a=t[o];if(s.startsWith(":"))r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,n.length),posParams:r}}function Fw(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;++i)if(!St(t[i],e[i]))return!1;return!0}function St(t,e){let i=t?Iu(t):void 0,n=e?Iu(e):void 0;if(!i||!n||i.length!=n.length)return!1;let r;for(let o=0;o<i.length;o++)if(r=i[o],!wm(t[r],e[r]))return!1;return!0}function Iu(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function wm(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;let i=[...t].sort(),n=[...e].sort();return i.every((r,o)=>n[o]===r)}else return t===e}function Em(t){return t.length>0?t[t.length-1]:null}function fn(t){return Ia(t)?t:vi(t)?ne(Promise.resolve(t)):T(t)}var kw={exact:Sm,subset:Tm},Cm={exact:Lw,subset:jw,ignored:()=>!0};function _m(t,e,i){return kw[i.paths](t.root,e.root,i.matrixParams)&&Cm[i.queryParams](t.queryParams,e.queryParams)&&!(i.fragment==="exact"&&t.fragment!==e.fragment)}function Lw(t,e){return St(t,e)}function Sm(t,e,i){if(!Fn(t.segments,e.segments)||!Vs(t.segments,e.segments,i)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!Sm(t.children[n],e.children[n],i))return!1;return!0}function jw(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>wm(t[i],e[i]))}function Tm(t,e,i){return Mm(t,e,e.segments,i)}function Mm(t,e,i,n){if(t.segments.length>i.length){let r=t.segments.slice(0,i.length);return!(!Fn(r,i)||e.hasChildren()||!Vs(r,i,n))}else if(t.segments.length===i.length){if(!Fn(t.segments,i)||!Vs(t.segments,i,n))return!1;for(let r in e.children)if(!t.children[r]||!Tm(t.children[r],e.children[r],n))return!1;return!0}else{let r=i.slice(0,t.segments.length),o=i.slice(t.segments.length);return!Fn(t.segments,r)||!Vs(t.segments,r,n)||!t.children[F]?!1:Mm(t.children[F],e,o,n)}}function Vs(t,e,i){return e.every((n,r)=>Cm[i](t[r].parameters,n.parameters))}var ln=class{constructor(e=new z([],{}),i={},n=null){this.root=e,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Ri(this.queryParams),this._queryParamMap}toString(){return Hw.serialize(this)}},z=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Hs(this)}},Pn=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap??=Ri(this.parameters),this._parameterMap}toString(){return Rm(this)}};function Bw(t,e){return Fn(t,e)&&t.every((i,n)=>St(i.parameters,e[n].parameters))}function Fn(t,e){return t.length!==e.length?!1:t.every((i,n)=>i.path===e[n].path)}function Vw(t,e){let i=[];return Object.entries(t.children).forEach(([n,r])=>{n===F&&(i=i.concat(e(r,n)))}),Object.entries(t.children).forEach(([n,r])=>{n!==F&&(i=i.concat(e(r,n)))}),i}var ea=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:()=>new Us,providedIn:"root"});let t=e;return t})(),Us=class{parse(e){let i=new Nu(e);return new ln(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${Mr(e.root,!0)}`,n=Gw(e.queryParams),r=typeof e.fragment=="string"?`#${$w(e.fragment)}`:"";return`${i}${n}${r}`}},Hw=new Us;function Hs(t){return t.segments.map(e=>Rm(e)).join("/")}function Mr(t,e){if(!t.hasChildren())return Hs(t);if(e){let i=t.children[F]?Mr(t.children[F],!1):"",n=[];return Object.entries(t.children).forEach(([r,o])=>{r!==F&&n.push(`${r}:${Mr(o,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}else{let i=Vw(t,(n,r)=>r===F?[Mr(t.children[F],!1)]:[`${r}:${Mr(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[F]!=null?`${Hs(t)}/${i[0]}`:`${Hs(t)}/(${i.join("//")})`}}function Im(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function js(t){return Im(t).replace(/%3B/gi,";")}function $w(t){return encodeURI(t)}function Ru(t){return Im(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $s(t){return decodeURIComponent(t)}function vm(t){return $s(t.replace(/\+/g,"%20"))}function Rm(t){return`${Ru(t.path)}${Uw(t.parameters)}`}function Uw(t){return Object.entries(t).map(([e,i])=>`;${Ru(e)}=${Ru(i)}`).join("")}function Gw(t){let e=Object.entries(t).map(([i,n])=>Array.isArray(n)?n.map(r=>`${js(i)}=${js(r)}`).join("&"):`${js(i)}=${js(n)}`).filter(i=>i);return e.length?`?${e.join("&")}`:""}var zw=/^[^\/()?;#]+/;function Eu(t){let e=t.match(zw);return e?e[0]:""}var Ww=/^[^\/()?;=#]+/;function qw(t){let e=t.match(Ww);return e?e[0]:""}var Jw=/^[^=?&#]+/;function Qw(t){let e=t.match(Jw);return e?e[0]:""}var Yw=/^[^&#]+/;function Kw(t){let e=t.match(Yw);return e?e[0]:""}var Nu=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new z([],{}):new z([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(n[F]=new z(e,i)),n}parseSegment(){let e=Eu(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(e),new Pn($s(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=qw(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let r=Eu(this.remaining);r&&(n=r,this.capture(n))}e[$s(i)]=$s(n)}parseQueryParam(e){let i=Qw(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let s=Kw(this.remaining);s&&(n=s,this.capture(n))}let r=vm(i),o=vm(n);if(e.hasOwnProperty(r)){let s=e[r];Array.isArray(s)||(s=[s],e[r]=s),s.push(o)}else e[r]=o}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Eu(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new b(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=F);let s=this.parseChildren();i[o]=Object.keys(s).length===1?s[F]:new z([],s),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new b(4011,!1)}};function Nm(t){return t.segments.length>0?new z([],{[F]:t}):t}function xm(t){let e={};for(let[n,r]of Object.entries(t.children)){let o=xm(r);if(n===F&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let i=new z(t.segments,e);return Zw(i)}function Zw(t){if(t.numberOfChildren===1&&t.children[F]){let e=t.children[F];return new z(t.segments.concat(e.segments),e.children)}return t}function Ni(t){return t instanceof ln}function Xw(t,e,i=null,n=null){let r=Om(t);return Am(r,e,i,n)}function Om(t){let e;function i(o){let s={};for(let c of o.children){let l=i(c);s[c.outlet]=l}let a=new z(o.url,s);return o===t&&(e=a),a}let n=i(t.root),r=Nm(n);return e??r}function Am(t,e,i,n){let r=t;for(;r.parent;)r=r.parent;if(e.length===0)return Cu(r,r,r,i,n);let o=eE(e);if(o.toRoot())return Cu(r,r,new z([],{}),i,n);let s=tE(o,r,t),a=s.processChildren?Nr(s.segmentGroup,s.index,o.commands):Fm(s.segmentGroup,s.index,o.commands);return Cu(r,s.segmentGroup,a,i,n)}function Gs(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Ar(t){return typeof t=="object"&&t!=null&&t.outlets}function Cu(t,e,i,n,r){let o={};n&&Object.entries(n).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`});let s;t===e?s=i:s=Pm(t,e,i);let a=Nm(xm(s));return new ln(a,o,r)}function Pm(t,e,i){let n={};return Object.entries(t.children).forEach(([r,o])=>{o===e?n[r]=i:n[r]=Pm(o,e,i)}),new z(t.segments,n)}var zs=class{constructor(e,i,n){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=n,e&&n.length>0&&Gs(n[0]))throw new b(4003,!1);let r=n.find(Ar);if(r&&r!==Em(n))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function eE(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new zs(!0,0,t);let e=0,i=!1,n=t.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?i=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new zs(i,e,n)}var Mi=class{constructor(e,i,n){this.segmentGroup=e,this.processChildren=i,this.index=n}};function tE(t,e,i){if(t.isAbsolute)return new Mi(e,!0,0);if(!i)return new Mi(e,!1,NaN);if(i.parent===null)return new Mi(i,!0,0);let n=Gs(t.commands[0])?0:1,r=i.segments.length-1+n;return nE(i,r,t.numberOfDoubleDots)}function nE(t,e,i){let n=t,r=e,o=i;for(;o>r;){if(o-=r,n=n.parent,!n)throw new b(4005,!1);r=n.segments.length}return new Mi(n,!1,r-o)}function iE(t){return Ar(t[0])?t[0].outlets:{[F]:t}}function Fm(t,e,i){if(t??=new z([],{}),t.segments.length===0&&t.hasChildren())return Nr(t,e,i);let n=rE(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new z(t.segments.slice(0,n.pathIndex),{});return o.children[F]=new z(t.segments.slice(n.pathIndex),t.children),Nr(o,0,r)}else return n.match&&r.length===0?new z(t.segments,{}):n.match&&!t.hasChildren()?xu(t,e,i):n.match?Nr(t,0,r):xu(t,e,i)}function Nr(t,e,i){if(i.length===0)return new z(t.segments,{});{let n=iE(i),r={};if(Object.keys(n).some(o=>o!==F)&&t.children[F]&&t.numberOfChildren===1&&t.children[F].segments.length===0){let o=Nr(t.children[F],e,i);return new z(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=Fm(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(r[o]=s)}),new z(t.segments,r)}}function rE(t,e,i){let n=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(n>=i.length)return o;let s=t.segments[r],a=i[n];if(Ar(a))break;let c=`${a}`,l=n<i.length-1?i[n+1]:null;if(r>0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Dm(c,l,s))return o;n+=2}else{if(!Dm(c,{},s))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function xu(t,e,i){let n=t.segments.slice(0,e),r=0;for(;r<i.length;){let o=i[r];if(Ar(o)){let c=oE(o.outlets);return new z(n,c)}if(r===0&&Gs(i[0])){let c=t.segments[e];n.push(new Pn(c.path,ym(i[0]))),r++;continue}let s=Ar(o)?o.outlets[F]:`${o}`,a=r<i.length-1?i[r+1]:null;s&&a&&Gs(a)?(n.push(new Pn(s,ym(a))),r+=2):(n.push(new Pn(s,{})),r++)}return new z(n,{})}function oE(t){let e={};return Object.entries(t).forEach(([i,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(e[i]=xu(new z([],{}),0,n))}),e}function ym(t){let e={};return Object.entries(t).forEach(([i,n])=>e[i]=`${n}`),e}function Dm(t,e,i){return t==i.path&&St(e,i.parameters)}var xr="imperative",we=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(we||{}),rt=class{constructor(e,i){this.id=e,this.url=i}},xi=class extends rt{constructor(e,i,n="imperative",r=null){super(e,i),this.type=we.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Vt=class extends rt{constructor(e,i,n){super(e,i),this.urlAfterRedirects=n,this.type=we.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},it=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(it||{}),Ws=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Ws||{}),un=class extends rt{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=we.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},dn=class extends rt{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=we.NavigationSkipped}},Pr=class extends rt{constructor(e,i,n,r){super(e,i),this.error=n,this.target=r,this.type=we.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},qs=class extends rt{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=we.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ou=class extends rt{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=we.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Au=class extends rt{constructor(e,i,n,r,o){super(e,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o,this.type=we.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Pu=class extends rt{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=we.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Fu=class extends rt{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=we.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ku=class{constructor(e){this.route=e,this.type=we.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Lu=class{constructor(e){this.route=e,this.type=we.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ju=class{constructor(e){this.snapshot=e,this.type=we.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Bu=class{constructor(e){this.snapshot=e,this.type=we.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Vu=class{constructor(e){this.snapshot=e,this.type=we.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Hu=class{constructor(e){this.snapshot=e,this.type=we.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Js=class{constructor(e,i,n){this.routerEvent=e,this.position=i,this.anchor=n,this.type=we.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},Fr=class{},kr=class{constructor(e){this.url=e}};var $u=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ta,this.attachRef=null}},ta=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new $u,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Qs=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=Uu(e,this._root);return i?i.children.map(n=>n.value):[]}firstChild(e){let i=Uu(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=Gu(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return Gu(e,this._root).map(i=>i.value)}};function Uu(t,e){if(t===e.value)return e;for(let i of e.children){let n=Uu(t,i);if(n)return n}return null}function Gu(t,e){if(t===e.value)return[e];for(let i of e.children){let n=Gu(t,i);if(n.length)return n.unshift(e),n}return[]}var Ge=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function Ti(t){let e={};return t&&t.children.forEach(i=>e[i.value.outlet]=i),e}var Ys=class extends Qs{constructor(e,i){super(e),this.snapshot=i,ed(this,e)}toString(){return this.snapshot.toString()}};function km(t){let e=sE(t),i=new ce([new Pn("",{})]),n=new ce({}),r=new ce({}),o=new ce({}),s=new ce(""),a=new Ht(i,n,o,s,r,F,t,e.root);return a.snapshot=e.root,new Ys(new Ge(a,[]),e)}function sE(t){let e={},i={},n={},r="",o=new Lr([],e,n,r,i,F,t,null,{});return new Ks("",new Ge(o,[]))}var Ht=class{constructor(e,i,n,r,o,s,a,c){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(w(l=>l[Vr]))??T(void 0),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(w(e=>Ri(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(w(e=>Ri(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Xu(t,e,i="emptyOnly"){let n,{routeConfig:r}=t;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:v(v({},e.params),t.params),data:v(v({},e.data),t.data),resolve:v(v(v(v({},t.data),e.data),r?.data),t._resolvedData)}:n={params:v({},t.params),data:v({},t.data),resolve:v(v({},t.data),t._resolvedData??{})},r&&jm(r)&&(n.resolve[Vr]=r.title),n}var Lr=class{get title(){return this.data?.[Vr]}constructor(e,i,n,r,o,s,a,c,l){this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Ri(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ri(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},Ks=class extends Qs{constructor(e,i){super(i),this.url=e,ed(this,i)}toString(){return Lm(this._root)}};function ed(t,e){e.value._routerState=t,e.children.forEach(i=>ed(t,i))}function Lm(t){let e=t.children.length>0?` { ${t.children.map(Lm).join(", ")} } `:"";return`${t.value}${e}`}function Su(t){if(t.snapshot){let e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,St(e.queryParams,i.queryParams)||t.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&t.fragmentSubject.next(i.fragment),St(e.params,i.params)||t.paramsSubject.next(i.params),Fw(e.url,i.url)||t.urlSubject.next(i.url),St(e.data,i.data)||t.dataSubject.next(i.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function zu(t,e){let i=St(t.params,e.params)&&Bw(t.url,e.url),n=!t.parent!=!e.parent;return i&&!n&&(!t.parent||zu(t.parent,e.parent))}function jm(t){return typeof t.title=="string"||t.title===null}var aE=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=F,this.activateEvents=new V,this.deactivateEvents=new V,this.attachEvents=new V,this.detachEvents=new V,this.parentContexts=h(ta),this.location=h(ht),this.changeDetector=h(wt),this.environmentInjector=h(Te),this.inputBinder=h(td,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new Wu(n,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[He]});let t=e;return t})(),Wu=class{constructor(e,i,n){this.route=e,this.childContexts=i,this.parent=n}get(e,i){return e===Ht?this.route:e===ta?this.childContexts:this.parent.get(e,i)}},td=new I("");function cE(t,e,i){let n=jr(t,e._root,i?i._root:void 0);return new Ys(n,e)}function jr(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){let n=i.value;n._futureSnapshot=e.value;let r=lE(t,e,i);return new Ge(n,r)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>jr(t,a)),s}}let n=uE(e.value),r=e.children.map(o=>jr(t,o));return new Ge(n,r)}}function lE(t,e,i){return e.children.map(n=>{for(let r of i.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return jr(t,n,r);return jr(t,n)})}function uE(t){return new Ht(new ce(t.url),new ce(t.params),new ce(t.queryParams),new ce(t.fragment),new ce(t.data),t.outlet,t.component,t)}var Bm="ngNavigationCancelingError";function Vm(t,e){let{redirectTo:i,navigationBehaviorOptions:n}=Ni(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=Hm(!1,it.Redirect);return r.url=i,r.navigationBehaviorOptions=n,r}function Hm(t,e){let i=new Error(`NavigationCancelingError: ${t||""}`);return i[Bm]=!0,i.cancellationCode=e,i}function dE(t){return $m(t)&&Ni(t.url)}function $m(t){return!!t&&t[Bm]}var fE=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=re({type:e,selectors:[["ng-component"]],standalone:!0,features:[he],decls:1,vars:0,template:function(r,o){r&1&&$(0,"router-outlet")},dependencies:[aE],encapsulation:2});let t=e;return t})();function hE(t,e){return t.providers&&!t._injector&&(t._injector=Gl(t.providers,e,`Route: ${t.path}`)),t._injector??e}function nd(t){let e=t.children&&t.children.map(nd),i=e?X(v({},t),{children:e}):v({},t);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==F&&(i.component=fE),i}function Tt(t){return t.outlet||F}function pE(t,e){let i=t.filter(n=>Tt(n)===e);return i.push(...t.filter(n=>Tt(n)!==e)),i}function Hr(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var gE=(t,e,i,n)=>w(r=>(new qu(e,r.targetRouterState,r.currentRouterState,i,n).activate(t),r)),qu=class{constructor(e,i,n,r,o){this.routeReuseStrategy=e,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=o}activate(e){let i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,e),Su(this.futureState.root),this.activateChildRoutes(i,n,e)}deactivateChildRoutes(e,i,n){let r=Ti(i);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],n),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,i,n){let r=e.value,o=i?i.value:null;if(r===o)if(r.component){let s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(e,i,s.children)}else this.deactivateChildRoutes(e,i,n);else o&&this.deactivateRouteAndItsChildren(i,n)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,o=Ti(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,o=Ti(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,i,n){let r=Ti(i);e.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new Hu(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Bu(e.value.snapshot))}activateRoutes(e,i,n){let r=e.value,o=i?i.value:null;if(Su(r),r===o)if(r.component){let s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,s.children)}else this.activateChildRoutes(e,i,n);else if(r.component){let s=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Su(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=Hr(r.snapshot);s.attachRef=null,s.route=r,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},Zs=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Ii=class{constructor(e,i){this.component=e,this.route=i}};function mE(t,e,i){let n=t._root,r=e?e._root:null;return Ir(n,r,i,[n.value])}function _E(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Ai(t,e){let i=Symbol(),n=e.get(t,i);return n===i?typeof t=="function"&&!Nh(t)?t:e.get(t):n}function Ir(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ti(e);return t.children.forEach(s=>{vE(s,o[s.value.outlet],i,n.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Or(a,i.getContext(s),r)),r}function vE(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=yE(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new Zs(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ir(t,e,a?a.children:null,n,r):Ir(t,e,i,n,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Ii(a.outlet.component,s))}else s&&Or(e,a,r),r.canActivateChecks.push(new Zs(n)),o.component?Ir(t,null,a?a.children:null,n,r):Ir(t,null,i,n,r);return r}function yE(t,e,i){if(typeof i=="function")return i(t,e);switch(i){case"pathParamsChange":return!Fn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Fn(t.url,e.url)||!St(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!zu(t,e)||!St(t.queryParams,e.queryParams);case"paramsChange":default:return!zu(t,e)}}function Or(t,e,i){let n=Ti(t),r=t.value;Object.entries(n).forEach(([o,s])=>{r.component?e?Or(s,e.children.getContext(o),i):Or(s,null,i):Or(s,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new Ii(e.outlet.component,r)):i.canDeactivateChecks.push(new Ii(null,r)):i.canDeactivateChecks.push(new Ii(null,r))}function $r(t){return typeof t=="function"}function DE(t){return typeof t=="boolean"}function bE(t){return t&&$r(t.canLoad)}function wE(t){return t&&$r(t.canActivate)}function EE(t){return t&&$r(t.canActivateChild)}function CE(t){return t&&$r(t.canDeactivate)}function SE(t){return t&&$r(t.canMatch)}function Um(t){return t instanceof It||t?.name==="EmptyError"}var Bs=Symbol("INITIAL_VALUE");function Oi(){return me(t=>$i(t.map(e=>e.pipe(Ce(1),Ui(Bs)))).pipe(w(e=>{for(let i of e)if(i!==!0){if(i===Bs)return Bs;if(i===!1||i instanceof ln)return i}return!0}),ee(e=>e!==Bs),Ce(1)))}function TE(t,e){return le(i=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=i;return s.length===0&&o.length===0?T(X(v({},i),{guardsResult:!0})):ME(s,n,r,t).pipe(le(a=>a&&DE(a)?IE(n,o,t,e):T(a)),w(a=>X(v({},i),{guardsResult:a})))})}function ME(t,e,i,n){return ne(t).pipe(le(r=>AE(r.component,r.route,i,e,n)),gt(r=>r!==!0,!0))}function IE(t,e,i,n){return ne(e).pipe(zt(r=>Gt(NE(r.route.parent,n),RE(r.route,n),OE(t,r.path,i),xE(t,r.route,i))),gt(r=>r!==!0,!0))}function RE(t,e){return t!==null&&e&&e(new Vu(t)),T(!0)}function NE(t,e){return t!==null&&e&&e(new ju(t)),T(!0)}function xE(t,e,i){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return T(!0);let r=n.map(o=>Do(()=>{let s=Hr(e)??i,a=Ai(o,s),c=wE(a)?a.canActivate(e,t):jt(s,()=>a(e,t));return fn(c).pipe(gt())}));return T(r).pipe(Oi())}function OE(t,e,i){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>_E(s)).filter(s=>s!==null).map(s=>Do(()=>{let a=s.guards.map(c=>{let l=Hr(s.node)??i,u=Ai(c,l),d=EE(u)?u.canActivateChild(n,t):jt(l,()=>u(n,t));return fn(d).pipe(gt())});return T(a).pipe(Oi())}));return T(o).pipe(Oi())}function AE(t,e,i,n,r){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return T(!0);let s=o.map(a=>{let c=Hr(e)??r,l=Ai(a,c),u=CE(l)?l.canDeactivate(t,e,i,n):jt(c,()=>l(t,e,i,n));return fn(u).pipe(gt())});return T(s).pipe(Oi())}function PE(t,e,i,n){let r=e.canLoad;if(r===void 0||r.length===0)return T(!0);let o=r.map(s=>{let a=Ai(s,t),c=bE(a)?a.canLoad(e,i):jt(t,()=>a(e,i));return fn(c)});return T(o).pipe(Oi(),Gm(n))}function Gm(t){return Ea(W(e=>{if(Ni(e))throw Vm(t,e)}),w(e=>e===!0))}function FE(t,e,i,n){let r=e.canMatch;if(!r||r.length===0)return T(!0);let o=r.map(s=>{let a=Ai(s,t),c=SE(a)?a.canMatch(e,i):jt(t,()=>a(e,i));return fn(c)});return T(o).pipe(Oi(),Gm(n))}var Br=class{constructor(e){this.segmentGroup=e||null}},Xs=class extends Error{constructor(e){super(),this.urlTree=e}};function Si(t){return qe(new Br(t))}function kE(t){return qe(new b(4e3,!1))}function LE(t){return qe(Hm(!1,it.GuardRejected))}var Ju=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return T(n);if(r.numberOfChildren>1||!r.children[F])return kE(e.redirectTo);r=r.children[F]}}applyRedirectCommands(e,i,n){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,n);if(i.startsWith("/"))throw new Xs(r);return r}applyRedirectCreateUrlTree(e,i,n,r){let o=this.createSegmentGroup(e,i.root,n,r);return new ln(o,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let n={};return Object.entries(e).forEach(([r,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);n[r]=i[a]}else n[r]=o}),n}createSegmentGroup(e,i,n,r){let o=this.createSegments(e,i.segments,n,r),s={};return Object.entries(i.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,n,r)}),new z(o,s)}createSegments(e,i,n,r){return i.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,r):this.findOrReturn(o,n))}findPosParam(e,i,n){let r=n[i.path.substring(1)];if(!r)throw new b(4001,!1);return r}findOrReturn(e,i){let n=0;for(let r of i){if(r.path===e.path)return i.splice(n),r;n++}return e}},Qu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function jE(t,e,i,n,r){let o=id(t,e,i);return o.matched?(n=hE(e,n),FE(n,e,i,r).pipe(w(s=>s===!0?o:v({},Qu)))):T(o)}function id(t,e,i){if(e.path==="**")return BE(i);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||i.length>0)?v({},Qu):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||Pw)(i,t,e);if(!r)return v({},Qu);let o={};Object.entries(r.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=r.consumed.length>0?v(v({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function BE(t){return{matched:!0,parameters:t.length>0?Em(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function bm(t,e,i,n){return i.length>0&&$E(t,i,n)?{segmentGroup:new z(e,HE(n,new z(i,t.children))),slicedSegments:[]}:i.length===0&&UE(t,i,n)?{segmentGroup:new z(t.segments,VE(t,i,n,t.children)),slicedSegments:i}:{segmentGroup:new z(t.segments,t.children),slicedSegments:i}}function VE(t,e,i,n){let r={};for(let o of i)if(na(t,e,o)&&!n[Tt(o)]){let s=new z([],{});r[Tt(o)]=s}return v(v({},n),r)}function HE(t,e){let i={};i[F]=e;for(let n of t)if(n.path===""&&Tt(n)!==F){let r=new z([],{});i[Tt(n)]=r}return i}function $E(t,e,i){return i.some(n=>na(t,e,n)&&Tt(n)!==F)}function UE(t,e,i){return i.some(n=>na(t,e,n))}function na(t,e,i){return(t.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function GE(t,e,i,n){return Tt(t)!==n&&(n===F||!na(e,i,t))?!1:id(e,t,i).matched}function zE(t,e,i){return e.length===0&&!t.children[i]}var Yu=class{};function WE(t,e,i,n,r,o,s="emptyOnly"){return new Ku(t,e,i,n,r,s,o).recognize()}var qE=31,Ku=class{constructor(e,i,n,r,o,s,a){this.injector=e,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Ju(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new b(4002,`'${e.segmentGroup}'`)}recognize(){let e=bm(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(w(i=>{let n=new Lr([],Object.freeze({}),Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,{},F,this.rootComponentType,null,{}),r=new Ge(n,i),o=new Ks("",r),s=Xw(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,F).pipe(st(n=>{if(n instanceof Xs)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Br?this.noMatchError(n):n}))}inheritParamsAndData(e,i){let n=e.value,r=Xu(n,i,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(e,i,n,r){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,i,n):this.processSegment(e,i,n,n.segments,r,!0).pipe(w(o=>o instanceof Ge?[o]:[]))}processChildren(e,i,n){let r=[];for(let o of Object.keys(n.children))o==="primary"?r.unshift(o):r.push(o);return ne(r).pipe(zt(o=>{let s=n.children[o],a=pE(i,o);return this.processSegmentGroup(e,a,s,o)}),ka((o,s)=>(o.push(...s),o)),Wt(null),Fa(),le(o=>{if(o===null)return Si(n);let s=zm(o);return JE(s),T(s)}))}processSegment(e,i,n,r,o,s){return ne(i).pipe(zt(a=>this.processSegmentAgainstRoute(a._injector??e,i,a,n,r,o,s).pipe(st(c=>{if(c instanceof Br)return T(null);throw c}))),gt(a=>!!a),st(a=>{if(Um(a))return zE(n,r,o)?T(new Yu):Si(n);throw a}))}processSegmentAgainstRoute(e,i,n,r,o,s,a){return GE(n,r,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,n,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,n,o,s):Si(r):Si(r)}expandSegmentAgainstRouteUsingRedirect(e,i,n,r,o,s){let{matched:a,consumedSegments:c,positionalParamSegments:l,remainingSegments:u}=id(i,r,o);if(!a)return Si(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>qE&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,l);return this.applyRedirects.lineralizeSegments(r,d).pipe(le(f=>this.processSegment(e,n,i,f.concat(u),s,!1)))}matchSegmentAgainstRoute(e,i,n,r,o){let s=jE(i,n,r,e,this.urlSerializer);return n.path==="**"&&(i.children={}),s.pipe(me(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,r).pipe(me(({routes:c})=>{let l=n._loadedInjector??e,{consumedSegments:u,remainingSegments:d,parameters:f}=a,p=new Lr(u,f,Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,YE(n),Tt(n),n.component??n._loadedComponent??null,n,KE(n)),{segmentGroup:_,slicedSegments:N}=bm(i,u,d,c);if(N.length===0&&_.hasChildren())return this.processChildren(l,c,_).pipe(w(S=>S===null?null:new Ge(p,S)));if(c.length===0&&N.length===0)return T(new Ge(p,[]));let R=Tt(n)===o;return this.processSegment(l,c,_,N,R?F:o,!0).pipe(w(S=>new Ge(p,S instanceof Ge?[S]:[])))}))):Si(i)))}getChildConfig(e,i,n){return i.children?T({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?T({routes:i._loadedRoutes,injector:i._loadedInjector}):PE(e,i,n,this.urlSerializer).pipe(le(r=>r?this.configLoader.loadChildren(e,i).pipe(W(o=>{i._loadedRoutes=o.routes,i._loadedInjector=o.injector})):LE(i))):T({routes:[],injector:e})}};function JE(t){t.sort((e,i)=>e.value.outlet===F?-1:i.value.outlet===F?1:e.value.outlet.localeCompare(i.value.outlet))}function QE(t){let e=t.value.routeConfig;return e&&e.path===""}function zm(t){let e=[],i=new Set;for(let n of t){if(!QE(n)){e.push(n);continue}let r=e.find(o=>n.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...n.children),i.add(r)):e.push(n)}for(let n of i){let r=zm(n.children);e.push(new Ge(n.value,r))}return e.filter(n=>!i.has(n))}function YE(t){return t.data||{}}function KE(t){return t.resolve||{}}function ZE(t,e,i,n,r,o){return le(s=>WE(t,e,i,n,s.extractedUrl,r,o).pipe(w(({state:a,tree:c})=>X(v({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function XE(t,e){return le(i=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return T(i);let o=new Set(r.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of Wm(c))s.add(l);let a=0;return ne(s).pipe(zt(c=>o.has(c)?eC(c,n,t,e):(c.data=Xu(c,c.parent,t).resolve,T(void 0))),W(()=>a++),Kn(1),le(c=>a===s.size?T(i):ge))})}function Wm(t){let e=t.children.map(i=>Wm(i)).flat();return[t,...e]}function eC(t,e,i,n){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!jm(r)&&(o[Vr]=r.title),tC(o,t,e,n).pipe(w(s=>(t._resolvedData=s,t.data=Xu(t,t.parent,i).resolve,null)))}function tC(t,e,i,n){let r=Iu(t);if(r.length===0)return T({});let o={};return ne(r).pipe(le(s=>nC(t[s],e,i,n).pipe(gt(),W(a=>{o[s]=a}))),Kn(1),Oa(o),st(s=>Um(s)?ge:qe(s)))}function nC(t,e,i,n){let r=Hr(e)??n,o=Ai(t,r),s=o.resolve?o.resolve(e,i):jt(r,()=>o(e,i));return fn(s)}function Tu(t){return me(e=>{let i=t(e);return i?ne(i).pipe(w(()=>e)):T(e)})}var qm=(()=>{let e=class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(s=>s.outlet===F);return r}getResolvedTitleForRoute(n){return n.data[Vr]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:()=>h(iC),providedIn:"root"});let t=e;return t})(),iC=(()=>{let e=class e extends qm{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(E(gm))},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),rd=new I("",{providedIn:"root",factory:()=>({})}),od=new I(""),rC=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=h(eu)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return T(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=fn(n.loadComponent()).pipe(w(Jm),W(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),qt(()=>{this.componentLoaders.delete(n)})),o=new Gn(r,()=>new J).pipe(Un());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return T({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=oC(r,this.compiler,n,this.onLoadEndListener).pipe(qt(()=>{this.childrenLoaders.delete(r)})),a=new Gn(s,()=>new J).pipe(Un());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function oC(t,e,i,n){return fn(t.loadChildren()).pipe(w(Jm),le(r=>r instanceof ir||Array.isArray(r)?T(r):ne(e.compileModuleAsync(r))),w(r=>{n&&n(t);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(i).injector,s=o.get(od,[],{optional:!0,self:!0}).flat()),{routes:s.map(nd),injector:o}}))}function sC(t){return t&&typeof t=="object"&&"default"in t}function Jm(t){return sC(t)?t.default:t}var sd=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:()=>h(aC),providedIn:"root"});let t=e;return t})(),aC=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),cC=new I("");var Qm=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new J,this.transitionAbortSubject=new J,this.configLoader=h(rC),this.environmentInjector=h(Te),this.urlSerializer=h(ea),this.rootContexts=h(ta),this.location=h(vr),this.inputBindingEnabled=h(td,{optional:!0})!==null,this.titleStrategy=h(qm),this.options=h(rd,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=h(sd),this.createViewTransition=h(cC,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>T(void 0),this.rootComponentType=null;let n=o=>this.events.next(new ku(o)),r=o=>this.events.next(new Lu(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(X(v(v({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new ce({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:xr,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ee(s=>s.id!==0),w(s=>X(v({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),me(s=>{this.currentTransition=s;let a=!1,c=!1;return T(s).pipe(W(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?X(v({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),me(l=>{let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=l.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&d!=="reload"){let f="";return this.events.next(new dn(l.id,this.urlSerializer.serialize(l.rawUrl),f,Ws.IgnoredSameUrlNavigation)),l.resolve(null),ge}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return T(l).pipe(me(f=>{let p=this.transitions?.getValue();return this.events.next(new xi(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),p!==this.transitions?.getValue()?ge:Promise.resolve(f)}),ZE(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),W(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=X(v({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let p=new qs(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(p)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:f,extractedUrl:p,source:_,restoredState:N,extras:R}=l,S=new xi(f,this.urlSerializer.serialize(p),_,N);this.events.next(S);let ue=km(this.rootComponentType).snapshot;return this.currentTransition=s=X(v({},l),{targetSnapshot:ue,urlAfterRedirects:p,extras:X(v({},R),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=p,T(s)}else{let f="";return this.events.next(new dn(l.id,this.urlSerializer.serialize(l.extractedUrl),f,Ws.IgnoredByUrlHandlingStrategy)),l.resolve(null),ge}}),W(l=>{let u=new Ou(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),w(l=>(this.currentTransition=s=X(v({},l),{guards:mE(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),s)),TE(this.environmentInjector,l=>this.events.next(l)),W(l=>{if(s.guardsResult=l.guardsResult,Ni(l.guardsResult))throw Vm(this.urlSerializer,l.guardsResult);let u=new Au(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(u)}),ee(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",it.GuardRejected),!1)),Tu(l=>{if(l.guards.canActivateChecks.length)return T(l).pipe(W(u=>{let d=new Pu(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),me(u=>{let d=!1;return T(u).pipe(XE(this.paramsInheritanceStrategy,this.environmentInjector),W({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(u,"",it.NoDataFromResolver)}}))}),W(u=>{let d=new Fu(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),Tu(l=>{let u=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(W(p=>{d.component=p}),w(()=>{})));for(let p of d.children)f.push(...u(p));return f};return $i(u(l.targetSnapshot.root)).pipe(Wt(null),Ce(1))}),Tu(()=>this.afterPreactivation()),me(()=>{let{currentSnapshot:l,targetSnapshot:u}=s,d=this.createViewTransition?.(this.environmentInjector,l.root,u.root);return d?ne(d).pipe(w(()=>s)):T(s)}),w(l=>{let u=cE(n.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s=X(v({},l),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,s}),W(()=>{this.events.next(new Fr)}),gE(this.rootContexts,n.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Ce(1),W({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Vt(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),De(this.transitionAbortSubject.pipe(W(l=>{throw l}))),qt(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",it.SupersededByNewNavigation),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),st(l=>{if(c=!0,$m(l))this.events.next(new un(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),dE(l)?this.events.next(new kr(l.url)):s.resolve(!1);else{this.events.next(new Pr(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(l))}catch(u){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(u)}}return ge}))}))}cancelNavigationTransition(n,r,o){let s=new un(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function lC(t){return t!==xr}var uC=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:()=>h(dC),providedIn:"root"});let t=e;return t})(),Zu=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},dC=(()=>{let e=class e extends Zu{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=ur(e)))(o||e)}})(),e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ym=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:()=>h(fC),providedIn:"root"});let t=e;return t})(),fC=(()=>{let e=class e extends Ym{constructor(){super(...arguments),this.location=h(vr),this.urlSerializer=h(ea),this.options=h(rd,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=h(sd),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new ln,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=km(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof xi)this.stateMemento=this.createStateMemento();else if(n instanceof dn)this.rawUrlTree=r.initialUrl;else if(n instanceof qs){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(o,r)}}else n instanceof Fr?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):n instanceof un&&(n.code===it.GuardRejected||n.code===it.NoDataFromResolver)?this.restoreHistory(r):n instanceof Pr?this.restoreHistory(r,!0):n instanceof Vt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let s=this.browserPageId,a=v(v({},r.extras.state),this.generateNgRouterState(r.id,s));this.location.replaceState(o,"",a)}else{let s=v(v({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=ur(e)))(o||e)}})(),e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Rr=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Rr||{});function hC(t,e){t.events.pipe(ee(i=>i instanceof Vt||i instanceof un||i instanceof Pr||i instanceof dn),w(i=>i instanceof Vt||i instanceof dn?Rr.COMPLETE:(i instanceof un?i.code===it.Redirect||i.code===it.SupersededByNewNavigation:!1)?Rr.REDIRECTING:Rr.FAILED),ee(i=>i!==Rr.REDIRECTING),Ce(1)).subscribe(()=>{e()})}function pC(t){throw t}var gC={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},mC={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ad=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=h(ws),this.stateManager=h(Ym),this.options=h(rd,{optional:!0})||{},this.pendingTasks=h(mi),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=h(Qm),this.urlSerializer=h(ea),this.location=h(vr),this.urlHandlingStrategy=h(sd),this._events=new J,this.errorHandler=this.options.errorHandler||pC,this.navigated=!1,this.routeReuseStrategy=h(uC),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=h(od,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!h(td,{optional:!0}),this.eventsSubscription=new oe,this.isNgZoneEnabled=h(Q)instanceof Q&&Q.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(r,s),r instanceof un&&r.code!==it.Redirect&&r.code!==it.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Vt)this.navigated=!0;else if(r instanceof kr){let a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||lC(o.source)};this.scheduleNavigation(a,xr,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}vC(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),xr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let l=v({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(s.state=l)}let c=this.parseUrl(n);this.scheduleNavigation(c,r,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(nd),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:a,d=null;switch(c){case"merge":d=v(v({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let p=o?o.snapshot:this.routerState.snapshot.root;f=Om(p)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),f=this.currentUrlTree.root}return Am(f,n,d,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Ni(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,xr,null,r)}navigate(n,r={skipLocationChange:!1}){return _C(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=v({},gC):r===!1?o=v({},mC):o=r,Ni(n))return _m(this.currentUrlTree,n,o);let s=this.parseUrl(n);return _m(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,s])=>(s!=null&&(r[o]=s),r),{})}scheduleNavigation(n,r,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,l,u;a?(c=a.resolve,l=a.reject,u=a.promise):u=new Promise((f,p)=>{c=f,l=p});let d=this.pendingTasks.add();return hC(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:c,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(f=>Promise.reject(f))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function _C(t){for(let e=0;e<t.length;e++)if(t[e]==null)throw new b(4008,!1)}function vC(t){return!(t instanceof Fr)&&!(t instanceof kr)}var Km=(()=>{let e=class e{constructor(n,r,o,s,a,c){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.commands=null,this.onChanges=new J,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof Vt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,o,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(n!==0||r||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:Dp(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let o=this.renderer,s=this.el.nativeElement;r!==null?o.setAttribute(s,n,r):o.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(r){return new(r||e)(G(ad),G(Ht),hi("tabindex"),G(pr),G(de),G(bi))},e.\u0275dir=te({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&be("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Et("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[q.HasDecoratorInputTransform,"preserveFragment","preserveFragment",_r],skipLocationChange:[q.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",_r],replaceUrl:[q.HasDecoratorInputTransform,"replaceUrl","replaceUrl",_r],routerLink:"routerLink"},standalone:!0,features:[Ul,He]});let t=e;return t})();var Zm=new I(""),yC=(()=>{let e=class e{constructor(n,r,o,s,a={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof xi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Vt?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof dn&&n.code===Ws.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Js&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Js(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(r){kp()},e.\u0275prov=g({token:e,factory:e.\u0275fac});let t=e;return t})();function Xm(t,...e){return fi([{provide:od,multi:!0,useValue:t},[],{provide:Ht,useFactory:DC,deps:[ad]},{provide:Cs,multi:!0,useFactory:wC},e.map(i=>i.\u0275providers)])}function DC(t){return t.routerState.root}function bC(t,e){return{\u0275kind:t,\u0275providers:e}}function e0(t={}){return bC(4,[{provide:Zm,useFactory:()=>{let i=h(Rs),n=h(Q),r=h(Qm),o=h(ea);return new yC(o,r,i,n,t)}}])}function wC(){let t=h(bt);return e=>{let i=t.get(an);if(e!==i.components[0])return;let n=t.get(ad),r=t.get(EC);t.get(CC)===1&&n.initialNavigation(),t.get(SC,null,B.Optional)?.setUpPreloading(),t.get(Zm,null,B.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var EC=new I("",{factory:()=>new J}),CC=new I("",{providedIn:"root",factory:()=>1});var SC=new I("");var TC=["editor"],t0=new I("EDITOR_SETTINGS"),Pi=(()=>{class t{constructor(i){this.baseUrl="https://unpkg.com/monaco-editor/min",this.typingsWorkerUrl="https://unpkg.com/@ngstack/code-editor/workers/typings-worker.js",this.typingsLoaded=new J,this.loaded=new J,this.loadingTypings=new ce(!1);let n=v({baseUrl:this.baseUrl,typingsWorkerUrl:this.typingsWorkerUrl},i);this.baseUrl=n.baseUrl,this.typingsWorkerUrl=n.typingsWorkerUrl}loadTypingsWorker(){if(!this.typingsWorker&&window.Worker){if(this.typingsWorkerUrl.startsWith("http")){let i=`importScripts('${this.typingsWorkerUrl}');`,n=URL.createObjectURL(new Blob([i],{type:"text/javascript"}));this.typingsWorker=new Worker(n)}else this.typingsWorker=new Worker(this.typingsWorkerUrl);this.typingsWorker.addEventListener("message",i=>{this.loadingTypings.next(!1),this.typingsLoaded.next(i.data)})}return this.typingsWorker}loadTypings(i){if(i&&i.length>0){let n=this.loadTypingsWorker();n&&(this.loadingTypings.next(!0),n.postMessage({dependencies:i}))}}loadEditor(){return new Promise(i=>{let n=()=>{if(window.require.config({paths:{vs:`${this.baseUrl}/vs`}}),this.baseUrl.startsWith("http")){let r=`
9
- self.MonacoEnvironment = {
10
- baseUrl: "${this.baseUrl}"
11
- };
12
- importScripts('${this.baseUrl}/vs/base/worker/workerMain.js');
13
- `,o=URL.createObjectURL(new Blob([r],{type:"text/javascript"}));window.MonacoEnvironment={getWorkerUrl:function(){return o}}}window.require(["vs/editor/editor.main"],()=>{this.loaded.next({monaco}),i()})};if(window.require)n();else{let r=document.createElement("script");r.type="text/javascript",r.src=`${this.baseUrl}/vs/loader.js`,r.addEventListener("load",n),document.body.appendChild(r)}})}}return t.\u0275fac=function(i){return new(i||t)(E(t0,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),n0=(()=>{class t{constructor(i){i.loaded.subscribe(n=>{this.setup(n.monaco)}),i.typingsLoaded.subscribe(n=>{this.updateTypings(n)})}setup(i){if(!i)return;this.monaco=i;let n=i.languages.typescript.typescriptDefaults;n.setCompilerOptions({target:i.languages.typescript.ScriptTarget.ES6,module:"commonjs",noEmit:!0,noLib:!0,emitDecoratorMetadata:!0,experimentalDecorators:!0,allowNonTsExtensions:!0,declaration:!0,lib:["es2017","dom"],baseUrl:".",paths:{}}),n.setMaximumWorkerIdleTime(-1),n.setEagerModelSync(!0)}updateTypings(i){i&&(this.addExtraLibs(i.files),this.addLibraryPaths(i.entryPoints))}addExtraLibs(i=[]){if(!this.monaco||!i||i.length===0)return;let n=this.monaco.languages.typescript.typescriptDefaults,r=n.getExtraLibs();i.forEach(o=>{r[o.path]||(n._extraLibs[o.path]=o.content)}),n._onDidChange.fire(n)}addLibraryPaths(i={}){if(!this.monaco)return;let r=this.monaco.languages.typescript.typescriptDefaults.getCompilerOptions();r.paths=r.paths||{},Object.keys(i).forEach(o=>{r.paths[o]=[i[o]]})}}return t.\u0275fac=function(i){return new(i||t)(E(Pi))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),i0=(()=>{class t{constructor(i){i.loaded.subscribe(n=>{this.setup(n.monaco)}),i.typingsLoaded.subscribe(n=>{this.updateTypings(n)})}setup(i){if(!i)return;this.monaco=i;let n=i.languages.typescript.javascriptDefaults;n.setCompilerOptions({target:i.languages.typescript.ScriptTarget.ES6,module:"commonjs",allowNonTsExtensions:!0,baseUrl:".",paths:{}}),n.setMaximumWorkerIdleTime(-1),n.setEagerModelSync(!0)}updateTypings(i){i&&(this.addExtraLibs(i.files),this.addLibraryPaths(i.entryPoints))}addExtraLibs(i=[]){if(!this.monaco||!i||i.length===0)return;let n=this.monaco.languages.typescript.javascriptDefaults,r=n.getExtraLibs();i.forEach(o=>{r[o.path]||(n._extraLibs[o.path]=o.content)}),n._onDidChange.fire(n)}addLibraryPaths(i={}){if(!this.monaco)return;let r=this.monaco.languages.typescript.javascriptDefaults.getCompilerOptions();r.paths=r.paths||{},Object.keys(i).forEach(o=>{r.paths[o]=[i[o]]})}}return t.\u0275fac=function(i){return new(i||t)(E(Pi))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),r0=(()=>{class t{constructor(i){i.loaded.subscribe(n=>{this.setup(n.monaco)})}setup(i){if(!i)return;this.monaco=i;let n=i.languages.json.jsonDefaults;n.setDiagnosticsOptions({validate:!0,allowComments:!0,schemas:[...n._diagnosticsOptions.schemas,{uri:"http://myserver/foo-schema.json",schema:{type:"object",properties:{p1:{enum:["v1","v2"]},p2:{$ref:"http://myserver/bar-schema.json"}}}},{uri:"http://myserver/bar-schema.json",schema:{type:"object",properties:{q1:{enum:["x1","x2"]}}}}]})}addSchemas(i,n=[]){let r=this.monaco.languages.json.jsonDefaults,o=r.diagnosticsOptions,s={};o&&o.schemas&&o.schemas.length>0&&o.schemas.forEach(a=>{s[a.uri]=a});for(let{uri:a,schema:c}of n)s[a]={uri:a,schema:c,fileMatch:[i||"*.json"]};o.schemas=Object.values(s),r.setDiagnosticsOptions(o)}}return t.\u0275fac=function(i){return new(i||t)(E(Pi))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),o0=(()=>{class t{constructor(i,n,r,o){this.editorService=i,this.typescriptDefaults=n,this.javascriptDefaults=r,this.jsonDefaults=o,this.defaultOptions={lineNumbers:!0,contextmenu:!1,minimap:{enabled:!1}},this.theme="vs",this.options={},this.readOnly=!1,this.valueChanged=new V,this.loaded=new V}ngOnDestroy(){this._editor&&(this._editor.dispose(),this._editor=null),this._model&&(this._model.dispose(),this._model=null)}ngOnChanges(i){i.codeModel&&!i.codeModel.firstChange&&this.updateModel(i.codeModel.currentValue),i.readOnly&&!i.readOnly.firstChange&&this._editor&&this._editor.updateOptions({readOnly:i.readOnly.currentValue}),i.theme&&!i.theme.firstChange&&monaco.editor.setTheme(i.theme.currentValue)}onResize(){this._editor&&this._editor.layout()}ngAfterViewInit(){return Gr(this,null,function*(){this.setupEditor(),this.loaded.emit()})}setupEditor(){let i=this.editorContent.nativeElement,n=v({value:"",language:"text",uri:`code-${Date.now()}`},this.codeModel);this._model=monaco.editor.createModel(n.value,n.language,monaco.Uri.file(n.uri));let r=Object.assign({},this.defaultOptions,this.options,{readOnly:this.readOnly,theme:this.theme,model:this._model});this._editor=monaco.editor.create(i,r),this._model.onDidChangeContent(()=>{let o=this._model.getValue();this.codeModel&&(this.codeModel.value=o),this.valueChanged.emit(o)}),this.setupDependencies(this.codeModel)}setupDependencies(i){if(!i)return;let{language:n}=i;if(n)switch(n.toLowerCase()){case"typescript":i.dependencies&&this.editorService.loadTypings(i.dependencies);break;case"javascript":i.dependencies&&this.editorService.loadTypings(i.dependencies);break;case"json":i.schemas&&this.jsonDefaults.addSchemas(i.uri,i.schemas);break;default:break}}setEditorValue(i){setTimeout(()=>{this._model&&this._model.setValue(i)})}updateModel(i){i&&(this.setEditorValue(i.value),this._model&&typeof monaco!==void 0&&monaco.editor.setModelLanguage(this._model,i.language),this.setupDependencies(i))}}return t.\u0275fac=function(i){return new(i||t)(G(Pi),G(n0),G(i0),G(r0))},t.\u0275cmp=re({type:t,selectors:[["ngs-code-editor"]],viewQuery:function(i,n){if(i&1&&mr(TC,7),i&2){let r;tt(r=nt())&&(n.editorContent=r.first)}},hostAttrs:[1,"ngs-code-editor"],hostBindings:function(i,n){i&1&&be("resize",function(){return n.onResize()},!1,Ep)},inputs:{codeModel:"codeModel",theme:"theme",options:"options",readOnly:"readOnly"},outputs:{valueChanged:"valueChanged",loaded:"loaded"},features:[He],decls:2,vars:0,consts:[["id","editor",1,"monaco-editor","editor"],["editor",""]],template:function(i,n){i&1&&$(0,"div",0,1)},styles:[`.editor{width:100%;height:inherit;min-height:200px}
14
- `],encapsulation:2,changeDetection:0}),t})();function MC(t){return()=>t.loadEditor()}var ia=(()=>{class t{static forRoot(i){return{ngModule:t,providers:[{provide:t0,useValue:i},Pi,n0,i0,r0,{provide:Es,useFactory:MC,deps:[Pi],multi:!0}]}}static forChild(){return{ngModule:t}}}return t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=Ke({type:t}),t.\u0275inj=Xe({imports:[yr]}),t})();var Ur=new I("HIGHLIGHT_OPTIONS"),cd;function RC(){if(!cd)try{cd=window?.trustedTypes?.createPolicy("ngx-highlightjs",{createHTML:t=>t})}catch{}return cd}function NC(t){return RC()?.createHTML(t)||t}var xC=(()=>{let e=class e{constructor(n,r,o){this.doc=n,this.platformId=r,this._options=o,this._ready=new ce(null),this.ready=this._ready.asObservable().pipe(ee(s=>!!s),Ce(1)),Ei(r)&&(n.defaultView.hljs?this._ready.next(n.defaultView.hljs):(this._loadLibrary().pipe(me(s=>this._options&&this._options.lineNumbersLoader?(n.defaultView.hljs=s,this.loadLineNumbers().pipe(W(a=>{a.activateLineNumbers(),this._ready.next(s)}))):(this._ready.next(s),ge)),st(s=>(console.error("[HLJS] ",s),ge))).subscribe(),this._options?.themePath&&this.loadTheme(this._options.themePath)))}_loadLibrary(){if(this._options){if(this._options.fullLibraryLoader&&this._options.coreLibraryLoader)return qe(()=>"The full library and the core library were imported, only one of them should be imported!");if(this._options.fullLibraryLoader&&this._options.languages)return qe(()=>"The highlighting languages were imported they are not needed!");if(this._options.coreLibraryLoader&&!this._options.languages)return qe(()=>"The highlighting languages were not imported!");if(!this._options.coreLibraryLoader&&this._options.languages)return qe(()=>"The core library was not imported!");if(this._options.fullLibraryLoader)return this.loadFullLibrary();if(this._options.coreLibraryLoader&&this._options.languages&&Object.keys(this._options.languages).length)return this.loadCoreLibrary().pipe(me(n=>this._loadLanguages(n)))}return qe(()=>"Highlight.js library was not imported!")}_loadLanguages(n){let r=Object.entries(this._options.languages).map(([o,s])=>ld(s()).pipe(W(a=>n.registerLanguage(o,a))));return Dn(...r).pipe(w(()=>n))}loadCoreLibrary(){return ld(this._options.coreLibraryLoader())}loadFullLibrary(){return ld(this._options.fullLibraryLoader())}loadLineNumbers(){return ne(this._options.lineNumbersLoader())}setTheme(n){Ei(this.platformId)&&(this._themeLinkElement?this._themeLinkElement.href=n:this.loadTheme(n))}loadTheme(n){this._themeLinkElement=this.doc.createElement("link"),this._themeLinkElement.href=n,this._themeLinkElement.type="text/css",this._themeLinkElement.rel="stylesheet",this._themeLinkElement.media="screen,print",this.doc.head.appendChild(this._themeLinkElement)}};e.\u0275fac=function(r){return new(r||e)(E(ae),E(Ue),E(Ur,8))},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ld=t=>ne(t).pipe(ee(e=>!!e?.default),w(e=>e.default)),OC=(()=>{let e=class e{get hljs(){return this._hljs}constructor(n,r){this._loader=n,this._hljs=null,n.ready.subscribe(o=>{this._hljs=o,r&&r.config&&(o.configure(r.config),o.listLanguages().length<1&&console.error("[HighlightJS]: No languages were registered!"))})}highlight(n,{language:r,ignoreIllegals:o}){return this._loader.ready.pipe(w(s=>s.highlight(n,{language:r,ignoreIllegals:o})))}highlightAuto(n,r){return this._loader.ready.pipe(w(o=>o.highlightAuto(n,r)))}highlightElement(n){return this._loader.ready.pipe(w(r=>r.highlightElement(n)))}highlightAll(){return this._loader.ready.pipe(w(n=>n.highlightAll()))}configure(n){return this._loader.ready.pipe(w(r=>r.configure(n)))}registerLanguage(n,r){return this._loader.ready.pipe(W(o=>o.registerLanguage(n,r)))}unregisterLanguage(n){return this._loader.ready.pipe(W(r=>r.unregisterLanguage(n)))}registerAliases(n,{languageName:r}){return this._loader.ready.pipe(W(o=>o.registerAliases(n,{languageName:r})))}listLanguages(){return this._loader.ready.pipe(w(n=>n.listLanguages()))}getLanguage(n){return this._loader.ready.pipe(w(r=>r.getLanguage(n)))}safeMode(){return this._loader.ready.pipe(w(n=>n.safeMode()))}debugMode(){return this._loader.ready.pipe(w(n=>n.debugMode()))}lineNumbersBlock(n){return this._loader.ready.pipe(ee(r=>!!r.lineNumbersBlock),W(r=>r.lineNumbersBlock(n)))}};e.\u0275fac=function(r){return new(r||e)(E(xC),E(Ur,8))},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ra=(()=>{let e=class e{constructor(n,r,o,s,a){this._hljs=r,this._sanitizer=o,this.platformId=s,this._options=a,this.highlighted=new V,this._nativeElement=n.nativeElement}ngOnChanges(n){Ei(this.platformId)&&n?.code?.currentValue!==null&&n.code.currentValue!==n.code.previousValue&&(this.code?this.highlightElement(this.code,this.languages):this.setTextContent(""))}highlightElement(n,r){this.setTextContent(n),this._hljs.highlightAuto(n,r).subscribe(o=>{this.setInnerHTML(o?.value),this.lineNumbers&&this._options&&this._options.lineNumbersLoader&&this.addLineNumbers(),this.highlighted.emit(o)})}addLineNumbers(){this.destroyLineNumbersObserver(),Hi.schedule(()=>{this._hljs.lineNumbersBlock(this._nativeElement).subscribe(),this._lineNumbersObs=new MutationObserver(()=>{this._nativeElement.firstElementChild&&this._nativeElement.firstElementChild.tagName.toUpperCase()==="TABLE"&&this._nativeElement.classList.add("hljs-line-numbers"),this.destroyLineNumbersObserver()}),this._lineNumbersObs.observe(this._nativeElement,{childList:!0})})}destroyLineNumbersObserver(){this._lineNumbersObs&&(this._lineNumbersObs.disconnect(),this._lineNumbersObs=null)}setTextContent(n){Hi.schedule(()=>this._nativeElement.textContent=n)}setInnerHTML(n){Hi.schedule(()=>this._nativeElement.innerHTML=NC(this._sanitizer.sanitize(et.HTML,n)||""))}};e.\u0275fac=function(r){return new(r||e)(G(de),G(OC),G(wu),G(Ue),G(Ur,8))},e.\u0275dir=te({type:e,selectors:[["","highlight",""]],hostVars:2,hostBindings:function(r,o){r&2&&ve("hljs",!0)},inputs:{code:[q.None,"highlight","code"],languages:"languages",lineNumbers:"lineNumbers"},outputs:{highlighted:"highlighted"},standalone:!0,features:[He]});let t=e;return t})(),s0=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ke({type:e}),e.\u0275inj=Xe({});let t=e;return t})();function AC(t,e){t&1&&$(0,"div",9)}function PC(t,e){if(t&1&&(D(0,"span",10),H(1),m()),t&2){let i=U().$implicit;y(),fe(i.description)}}function FC(t,e){if(t&1&&(D(0,"section",11),$(1,"ngx-json-viewer",12),m()),t&2){let i=U().$implicit,n=U();y(),L("json",i.value)("expanded",n.expanded)("depth",n.depth)("_currentDepth",n._currentDepth+1)}}var kC=t=>["segment",t],LC=(t,e)=>({"segment-main":!0,expandable:t,expanded:e});function jC(t,e){if(t&1){let i=Wl();D(0,"section",2)(1,"section",3),be("click",function(){let o=ll(i).$implicit,s=U();return ul(s.toggle(o))}),ie(2,AC,1,0,"div",4),D(3,"span",5),H(4),m(),D(5,"span",6),H(6,": "),m(),ie(7,PC,2,1,"span",7),m(),ie(8,FC,2,4,"section",8),m()}if(t&2){let i=e.$implicit,n=U();L("ngClass",sn(6,kC,"segment-type-"+i.type)),y(),L("ngClass",Yl(8,LC,n.isExpandable(i),i.expanded)),y(),L("ngIf",n.isExpandable(i)),y(2),fe(i.key),y(3),L("ngIf",!i.expanded||!n.isExpandable(i)),y(),L("ngIf",i.expanded&&n.isExpandable(i))}}var a0=(()=>{class t{constructor(){this.expanded=!0,this.depth=-1,this._currentDepth=0,this.segments=[]}ngOnChanges(){this.segments=[],this.json=this.decycle(this.json),typeof this.json=="object"?Object.keys(this.json).forEach(i=>{this.segments.push(this.parseKeyValue(i,this.json[i]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(i){return i.type==="object"||i.type==="array"}toggle(i){this.isExpandable(i)&&(i.expanded=!i.expanded)}parseKeyValue(i,n){let r={key:i,value:n,type:void 0,description:""+n,expanded:this.isExpanded()};switch(typeof r.value){case"number":{r.type="number";break}case"boolean":{r.type="boolean";break}case"function":{r.type="function";break}case"string":{r.type="string",r.description='"'+r.value+'"';break}case"undefined":{r.type="undefined",r.description="undefined";break}case"object":{r.value===null?(r.type="null",r.description="null"):Array.isArray(r.value)?(r.type="array",r.description="Array["+r.value.length+"] "+JSON.stringify(r.value)):r.value instanceof Date?r.type="date":(r.type="object",r.description="Object "+JSON.stringify(r.value));break}}return r}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(i){let n=new WeakMap;return function r(o,s){let a,c;return typeof o=="object"&&o!==null&&!(o instanceof Boolean)&&!(o instanceof Date)&&!(o instanceof Number)&&!(o instanceof RegExp)&&!(o instanceof String)?(a=n.get(o),a!==void 0?{$ref:a}:(n.set(o,s),Array.isArray(o)?(c=[],o.forEach(function(l,u){c[u]=r(l,s+"["+u+"]")})):(c={},Object.keys(o).forEach(function(l){c[l]=r(o[l],s+"["+JSON.stringify(l)+"]")})),c)):o}(i,"$")}}return t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=re({type:t,selectors:[["ngx-json-viewer"]],inputs:{json:"json",expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth"},features:[He],decls:2,vars:1,consts:[[1,"ngx-json-viewer"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"ngClass","click"],["class","toggler",4,"ngIf"],[1,"segment-key"],[1,"segment-separator"],["class","segment-value",4,"ngIf"],["class","children",4,"ngIf"],[1,"toggler"],[1,"segment-value"],[1,"children"],[3,"json","expanded","depth","_currentDepth"]],template:function(i,n){i&1&&(D(0,"section",0),ie(1,jC,9,11,"section",1),m()),i&2&&(y(),L("ngForOf",n.segments))},dependencies:[wi,Jg,Qg,t],styles:['@charset "UTF-8";.ngx-json-viewer[_ngcontent-%COMP%]{font-family:var(--ngx-json-font-family, monospace);font-size:var(--ngx-json-font-size, 1em);width:100%;height:100%;overflow:hidden;position:relative}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%]{padding:2px;margin:1px 1px 1px 12px}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%]{word-wrap:break-word}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]{position:absolute;margin-left:-14px;margin-top:3px;font-size:.8em;line-height:1.2em;vertical-align:middle;color:var(--ngx-json-toggler, #787878)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]:after{display:inline-block;content:"\\25ba";transition:transform .1s ease-in}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-key, #4E187C)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-separator[_ngcontent-%COMP%]{color:var(--ngx-json-separator, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-value, #000)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .children[_ngcontent-%COMP%]{margin-left:12px}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-string[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-string, #FF6B6B)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-number[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-number, #009688)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-boolean[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-boolean, #B938A4)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-date[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-date, #05668D)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-array, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-object, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-function[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-function, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-null, #fff)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-undefined, #fff)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-null-bg, red)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%]{white-space:nowrap}.ngx-json-viewer[_ngcontent-%COMP%] .expanded[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]:after{transform:rotate(90deg)}.ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]{cursor:pointer}']}),t})(),oa=(()=>{class t{}return t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=Ke({type:t}),t.\u0275inj=Xe({imports:[yr]}),t})();function Fi(t){t||(zh(Fi),t=h(gi));let e=new x(i=>t.onDestroy(i.next.bind(i)));return i=>i.pipe(De(e))}var VC=["*"];var HC=t=>({$implicit:t}),$C=["dialog"],UC=["ngbNavOutlet",""];function GC(t,e){}function zC(t,e){if(t&1&&(D(0,"div",0),ie(1,GC,0,0,"ng-template",1),m()),t&2){let i=U().$implicit,n=U();L("item",i)("nav",n.nav)("role",n.paneRole),y(),L("ngTemplateOutlet",(i.contentTpl==null?null:i.contentTpl.templateRef)||null)("ngTemplateOutletContext",sn(5,HC,i.active||n.isPanelTransitioning(i)))}}function WC(t,e){if(t&1&&ie(0,zC,2,7,"div",0),t&2){let i=e.$implicit,n=U();Ne(0,i.isPanelInDom()||n.isPanelTransitioning(i)?0:-1)}}var u0={animation:!0,transitionTimerDelayMs:5},aa=(()=>{let e=class e{constructor(){this.animation=u0.animation}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),qC=(()=>{let e=class e{constructor(){this._ngbConfig=h(aa),this.closeOthers=!1,this.destroyOnHide=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function JC(t){let{transitionDelay:e,transitionDuration:i}=window.getComputedStyle(t),n=parseFloat(e),r=parseFloat(i);return(n+r)*1e3}function fd(t){return typeof t=="string"}function kn(t){return t!=null}function QC(t){return t&&t.then}function ca(t){return(t||document.body).getBoundingClientRect()}function YC(t){return e=>new x(i=>{let n=s=>t.run(()=>i.next(s)),r=s=>t.run(()=>i.error(s)),o=()=>t.run(()=>i.complete());return e.subscribe({next:n,error:r,complete:o})})}var KC=()=>{},{transitionTimerDelayMs:ZC}=u0,sa=new Map,Mt=(t,e,i,n)=>{let r=n.context||{},o=sa.get(e);if(o)switch(n.runningTransition){case"continue":return ge;case"stop":t.run(()=>o.transition$.complete()),r=Object.assign(o.context,r),sa.delete(e)}let s=i(e,n.animation,r)||KC;if(!n.animation||window.getComputedStyle(e).transitionProperty==="none")return t.run(()=>s()),T(void 0).pipe(YC(t));let a=new J,c=new J,l=a.pipe(Pa(!0));sa.set(e,{transition$:a,complete:()=>{c.next(),c.complete()},context:r});let u=JC(e);return t.runOutsideAngular(()=>{let d=Je(e,"transitionend").pipe(De(l),ee(({target:p})=>p===e)),f=Na(u+ZC).pipe(De(l));xa(f,d,c).pipe(De(l)).subscribe(()=>{sa.delete(e),t.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()};function XC(t,e){if(typeof navigator>"u")return"0px";let{classList:i}=t,n=i.contains("show");n||i.add("show"),t.style[e]="";let r=t.getBoundingClientRect()[e]+"px";return n||i.remove("show"),r}var eS=(t,e,i)=>{let{direction:n,maxSize:r,dimension:o}=i,{classList:s}=t;function a(){s.add("collapse"),n==="show"?s.add("show"):s.remove("show")}if(!e){a();return}return r||(r=XC(t,o),i.maxSize=r,t.style[o]=n!=="show"?r:"0px",s.remove("collapse"),s.remove("collapsing"),s.remove("show"),ca(t),s.add("collapsing")),t.style[o]=n==="show"?r:"0px",()=>{a(),s.remove("collapsing"),t.style[o]=""}},tS=(()=>{let e=class e{constructor(){this._ngbConfig=h(aa),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),c0=(()=>{let e=class e{constructor(){this._config=h(tS),this._element=h(de),this._zone=h(Q),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new V,this.horizontal=this._config.horizontal,this.shown=new V,this.hidden=new V}set collapsed(n){this._isCollapsed!==n&&(this._isCollapsed=n,this._afterInit&&this._runTransitionWithEvents(n,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(n=this._isCollapsed){this.collapsed=!n,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(n,r){return Mt(this._zone,this._element.nativeElement,eS,{animation:r,runningTransition:"stop",context:{direction:n?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(n,r){this._runTransition(n,r).subscribe(()=>{n?this.hidden.emit():this.shown.emit()})}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(r,o){r&2&&ve("collapse-horizontal",o.horizontal)},inputs:{animation:"animation",collapsed:[q.None,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],standalone:!0});let t=e;return t})(),nS=0,d0=(()=>{let e=class e{constructor(){this._vcr=h(ht),this._element=h(de).nativeElement,this._item=h(hn),this._viewRef=null}ngAfterContentChecked(){this._bodyTpl&&(this._item._shouldBeInDOM?this._createViewIfNotExists():this._destroyViewIfExists())}ngOnDestroy(){this._destroyViewIfExists()}_destroyViewIfExists(){this._viewRef&&(this._viewRef.destroy(),this._viewRef=null)}_createViewIfNotExists(){if(!this._viewRef){this._viewRef=this._vcr.createEmbeddedView(this._bodyTpl),this._viewRef.detectChanges();for(let n of this._viewRef.rootNodes)this._element.appendChild(n)}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","ngbAccordionBody",""]],contentQueries:function(r,o,s){if(r&1&&rn(s,ut,7),r&2){let a;tt(a=nt())&&(o._bodyTpl=a.first)}},hostVars:2,hostBindings:function(r,o){r&2&&ve("accordion-body",!0)},standalone:!0});let t=e;return t})(),hd=(()=>{let e=class e{constructor(){this.item=h(hn),this.ngbCollapse=h(c0)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","region"],hostVars:4,hostBindings:function(r,o){r&2&&(nn("id",o.item.collapseId),Et("aria-labelledby",o.item.toggleId),ve("accordion-collapse",!0))},exportAs:["ngbAccordionCollapse"],standalone:!0,features:[$l([c0])]});let t=e;return t})(),iS=(()=>{let e=class e{constructor(){this.item=h(hn),this.accordion=h(la)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","ngbAccordionToggle",""]],hostVars:5,hostBindings:function(r,o){r&1&&be("click",function(){return!o.item.disabled&&o.accordion.toggle(o.item.id)}),r&2&&(nn("id",o.item.toggleId),Et("aria-controls",o.item.collapseId)("aria-expanded",!o.item.collapsed),ve("collapsed",o.item.collapsed))},standalone:!0});let t=e;return t})(),f0=(()=>{let e=class e{constructor(){this.item=h(hn)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["button","ngbAccordionButton",""]],hostAttrs:["type","button"],hostVars:3,hostBindings:function(r,o){r&2&&(nn("disabled",o.item.disabled),ve("accordion-button",!0))},standalone:!0,features:[$l([iS])]});let t=e;return t})(),h0=(()=>{let e=class e{constructor(){this.item=h(hn)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","ngbAccordionHeader",""]],hostAttrs:["role","heading"],hostVars:4,hostBindings:function(r,o){r&2&&ve("accordion-header",!0)("collapsed",o.item.collapsed)},standalone:!0});let t=e;return t})(),hn=(()=>{let e=class e{constructor(){this._accordion=h(la),this._cd=h(wt),this._destroyRef=h(gi),this._collapsed=!0,this._id=`ngb-accordion-item-${nS++}`,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new V,this.shown=new V,this.hide=new V,this.hidden=new V}set id(n){fd(n)&&n!==""&&(this._id=n)}set destroyOnHide(n){this._destroyOnHide=n}get destroyOnHide(){return this._destroyOnHide===void 0?this._accordion.destroyOnHide:this._destroyOnHide}set collapsed(n){n?this.collapse():this.expand()}get collapsed(){return this._collapsed}get id(){return`${this._id}`}get toggleId(){return`${this.id}-toggle`}get collapseId(){return`${this.id}-collapse`}get _shouldBeInDOM(){return!this.collapsed||this._collapseAnimationRunning||!this.destroyOnHide}ngAfterContentInit(){let{ngbCollapse:n}=this._collapse;n.animation=!1,n.collapsed=this.collapsed,n.animation=this._accordion.animation,n.hidden.pipe(Fi(this._destroyRef)).subscribe(()=>{this._collapseAnimationRunning=!1,this.hidden.emit(),this._accordion.hidden.emit(this.id)}),n.shown.pipe(Fi(this._destroyRef)).subscribe(()=>{this.shown.emit(),this._accordion.shown.emit(this.id)})}toggle(){this.collapsed=!this.collapsed}expand(){if(this.collapsed){if(!this._accordion._ensureCanExpand(this))return;this._collapsed=!1,this._cd.markForCheck(),this._cd.detectChanges(),this.show.emit(),this._accordion.show.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!1}}collapse(){this.collapsed||(this._collapsed=!0,this._collapseAnimationRunning=!0,this._cd.markForCheck(),this.hide.emit(),this._accordion.hide.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!0)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","ngbAccordionItem",""]],contentQueries:function(r,o,s){if(r&1&&rn(s,hd,7),r&2){let a;tt(a=nt())&&(o._collapse=a.first)}},hostVars:3,hostBindings:function(r,o){r&2&&(nn("id",o.id),ve("accordion-item",!0))},inputs:{id:[q.None,"ngbAccordionItem","id"],destroyOnHide:"destroyOnHide",disabled:"disabled",collapsed:"collapsed"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordionItem"],standalone:!0});let t=e;return t})(),la=(()=>{let e=class e{constructor(){this._config=h(qC),this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=this._config.animation,this.closeOthers=this._config.closeOthers,this.destroyOnHide=this._config.destroyOnHide,this.show=new V,this.shown=new V,this.hide=new V,this.hidden=new V}toggle(n){this._getItem(n)?.toggle()}expand(n){this._getItem(n)?.expand()}expandAll(){this._items&&(this.closeOthers?this._items.find(n=>!n.collapsed)||this._items.first.expand():this._items.forEach(n=>n.expand()))}collapse(n){this._getItem(n)?.collapse()}collapseAll(){this._items?.forEach(n=>n.collapse())}isExpanded(n){let r=this._getItem(n);return r?!r.collapsed:!1}_ensureCanExpand(n){return this.closeOthers?this._items?(this._items.find(r=>!r.collapsed&&n!==r)?.collapse(),!0):this._anItemWasAlreadyExpandedDuringInitialisation?!1:(this._anItemWasAlreadyExpandedDuringInitialisation=!0,!0):!0}_getItem(n){return this._items?.find(r=>r.id===n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","ngbAccordion",""]],contentQueries:function(r,o,s){if(r&1&&rn(s,hn,4),r&2){let a;tt(a=nt())&&(o._items=a)}},hostVars:2,hostBindings:function(r,o){r&2&&ve("accordion",!0)},inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0});let t=e;return t})();var $t=function(t){return t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown",t}($t||{});var $F=(()=>{let t=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,e=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(t()||e()):!1})();var rS=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function p0(t){let e=Array.from(t.querySelectorAll(rS)).filter(i=>i.tabIndex!==-1);return[e[0],e[e.length-1]]}var oS=(t,e,i,n=!1)=>{t.runOutsideAngular(()=>{let r=Je(e,"focusin").pipe(De(i),w(o=>o.target));Je(e,"keydown").pipe(De(i),ee(o=>o.which===$t.Tab),Eo(r)).subscribe(([o,s])=>{let[a,c]=p0(e);(s===a||s===e)&&o.shiftKey&&(c.focus(),o.preventDefault()),s===c&&!o.shiftKey&&(a.focus(),o.preventDefault())}),n&&Je(e,"click").pipe(De(i),Eo(r),w(o=>o[1])).subscribe(o=>o.focus())})};var UF=new Date(1882,10,12),GF=new Date(2174,10,25);var zF=1e3*60*60*24;var pd=1080,sS=24*pd,aS=12*pd+793,WF=29*sS+aS,qF=11*pd+204;var cS=(()=>{let e=class e{constructor(){this._ngbConfig=h(aa),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ki=class{constructor(e,i,n){this.nodes=e,this.viewRef=i,this.componentRef=n}};var lS=(()=>{let e=class e{constructor(){this._document=h(ae)}hide(){let n=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),r=this._document.body,o=r.style,{overflow:s,paddingRight:a}=o;if(n>0){let c=parseFloat(window.getComputedStyle(r).paddingRight);o.paddingRight=`${c+n}px`}return o.overflow="hidden",()=>{n>0&&(o.paddingRight=a),o.overflow=s}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),uS=(()=>{let e=class e{constructor(){this._nativeElement=h(de).nativeElement,this._zone=h(Q)}ngOnInit(){this._zone.onStable.asObservable().pipe(Ce(1)).subscribe(()=>{Mt(this._zone,this._nativeElement,(n,r)=>{r&&ca(n),n.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Mt(this._zone,this._nativeElement,({classList:n})=>n.remove("show"),{animation:this.animation,runningTransition:"stop"})}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=re({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(r,o){r&2&&(bs("modal-backdrop"+(o.backdropClass?" "+o.backdropClass:"")),ve("show",!o.animation)("fade",o.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[he],decls:0,vars:0,template:function(r,o){},encapsulation:2});let t=e;return t})(),Li=class{update(e){}close(e){}dismiss(e){}},dS=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],fS=["animation","backdropClass"],ud=class{_applyWindowOptions(e,i){dS.forEach(n=>{kn(i[n])&&(e[n]=i[n])})}_applyBackdropOptions(e,i){fS.forEach(n=>{kn(i[n])&&(e[n]=i[n])})}update(e){this._applyWindowOptions(this._windowCmptRef.instance,e),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,e)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(De(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(De(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(e,i,n,r){this._windowCmptRef=e,this._contentRef=i,this._backdropCmptRef=n,this._beforeDismiss=r,this._closed=new J,this._dismissed=new J,this._hidden=new J,e.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,s)=>{this._resolve=o,this._reject=s}),this.result.then(null,()=>{})}close(e){this._windowCmptRef&&(this._closed.next(e),this._resolve(e),this._removeModalElements())}_dismiss(e){this._dismissed.next(e),this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(e);else{let i=this._beforeDismiss();QC(i)?i.then(n=>{n!==!1&&this._dismiss(e)},()=>{}):i!==!1&&this._dismiss(e)}}_removeModalElements(){let e=this._windowCmptRef.instance.hide(),i=this._backdropCmptRef?this._backdropCmptRef.instance.hide():T(void 0);e.subscribe(()=>{let{nativeElement:n}=this._windowCmptRef.location;n.parentNode.removeChild(n),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),i.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:n}=this._backdropCmptRef.location;n.parentNode.removeChild(n),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Dn(e,i).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},dd=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}(dd||{}),hS=(()=>{let e=class e{constructor(){this._document=h(ae),this._elRef=h(de),this._zone=h(Q),this._closed$=new J,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new V,this.shown=new J,this.hidden=new J}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":fd(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(n){this.dismissEvent.emit(n)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(Ce(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:n}=this._elRef,r={animation:this.animation,runningTransition:"stop"},o=Mt(this._zone,n,()=>n.classList.remove("show"),r),s=Mt(this._zone,this._dialogEl.nativeElement,()=>{},r),a=Dn(o,s);return a.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),a}_show(){let n={animation:this.animation,runningTransition:"continue"},r=Mt(this._zone,this._elRef.nativeElement,(s,a)=>{a&&ca(s),s.classList.add("show")},n),o=Mt(this._zone,this._dialogEl.nativeElement,()=>{},n);Dn(r,o).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:n}=this._elRef;this._zone.runOutsideAngular(()=>{Je(n,"keydown").pipe(De(this._closed$),ee(o=>o.which===$t.Escape)).subscribe(o=>{this.keyboard?requestAnimationFrame(()=>{o.defaultPrevented||this._zone.run(()=>this.dismiss(dd.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let r=!1;Je(this._dialogEl.nativeElement,"mousedown").pipe(De(this._closed$),W(()=>r=!1),me(()=>Je(n,"mouseup").pipe(De(this._closed$),Ce(1))),ee(({target:o})=>n===o)).subscribe(()=>{r=!0}),Je(n,"click").pipe(De(this._closed$)).subscribe(({target:o})=>{n===o&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!r&&this._zone.run(()=>this.dismiss(dd.BACKDROP_CLICK))),r=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:n}=this._elRef;if(!n.contains(document.activeElement)){let r=n.querySelector("[ngbAutofocus]"),o=p0(n)[0];(r||o||n).focus()}}_restoreFocus(){let n=this._document.body,r=this._elWithFocus,o;r&&r.focus&&n.contains(r)?o=r:o=n,this._zone.runOutsideAngular(()=>{setTimeout(()=>o.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&Mt(this._zone,this._elRef.nativeElement,({classList:n})=>(n.add("modal-static"),()=>n.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=re({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(r,o){if(r&1&&mr($C,7),r&2){let s;tt(s=nt())&&(o._dialogEl=s.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(r,o){r&2&&(Et("aria-modal",!0)("aria-labelledby",o.ariaLabelledBy)("aria-describedby",o.ariaDescribedBy),bs("modal d-block"+(o.windowClass?" "+o.windowClass:"")),ve("fade",o.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[he],ngContentSelectors:VC,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(r,o){r&1&&(Mg(),D(0,"div",0,1)(2,"div",2),Ig(3),m()()),r&2&&bs("modal-dialog"+(o.size?" modal-"+o.size:"")+(o.centered?" modal-dialog-centered":"")+o.fullscreenClass+(o.scrollable?" modal-dialog-scrollable":"")+(o.modalDialogClass?" "+o.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}
15
- `],encapsulation:2});let t=e;return t})(),pS=(()=>{let e=class e{constructor(){this._applicationRef=h(an),this._injector=h(bt),this._environmentInjector=h(Te),this._document=h(ae),this._scrollBar=h(lS),this._activeWindowCmptHasChanged=new J,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new V;let n=h(Q);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let r=this._windowCmpts[this._windowCmpts.length-1];oS(n,r.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(r.location.nativeElement)}})}_restoreScrollBar(){let n=this._scrollBarRestoreFn;n&&(this._scrollBarRestoreFn=null,n())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(n,r,o){let s=o.container instanceof HTMLElement?o.container:kn(o.container)?this._document.querySelector(o.container):this._document.body;if(!s)throw new Error(`The specified modal container "${o.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let a=new Li;n=o.injector||n;let c=n.get(Te,null)||this._environmentInjector,l=this._getContentRef(n,c,r,a,o),u=o.backdrop!==!1?this._attachBackdrop(s):void 0,d=this._attachWindowComponent(s,l.nodes),f=new ud(d,l,u,o.beforeDismiss);return this._registerModalRef(f),this._registerWindowCmpt(d),f.hidden.pipe(Ce(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=p=>{f.close(p)},a.dismiss=p=>{f.dismiss(p)},a.update=p=>{f.update(p)},f.update(o),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),u&&u.instance&&u.changeDetectorRef.detectChanges(),d.changeDetectorRef.detectChanges(),f}get activeInstances(){return this._activeInstances}dismissAll(n){this._modalRefs.forEach(r=>r.dismiss(n))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(n){let r=Ts(uS,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(r.hostView),n.appendChild(r.location.nativeElement),r}_attachWindowComponent(n,r){let o=Ts(hS,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:r});return this._applicationRef.attachView(o.hostView),n.appendChild(o.location.nativeElement),o}_getContentRef(n,r,o,s,a){return o?o instanceof ut?this._createFromTemplateRef(o,s):fd(o)?this._createFromString(o):this._createFromComponent(n,r,o,s,a):new ki([])}_createFromTemplateRef(n,r){let o={$implicit:r,close(a){r.close(a)},dismiss(a){r.dismiss(a)}},s=n.createEmbeddedView(o);return this._applicationRef.attachView(s),new ki([s.rootNodes],s)}_createFromString(n){let r=this._document.createTextNode(`${n}`);return new ki([[r]])}_createFromComponent(n,r,o,s,a){let c=bt.create({providers:[{provide:Li,useValue:s}],parent:n}),l=Ts(o,{environmentInjector:r,elementInjector:c}),u=l.location.nativeElement;return a.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new ki([[u]],l.hostView,l)}_setAriaHidden(n){let r=n.parentElement;r&&n!==this._document.body&&(Array.from(r.children).forEach(o=>{o!==n&&o.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}),this._setAriaHidden(r))}_revertAriaHidden(){this._ariaHiddenValues.forEach((n,r)=>{n?r.setAttribute("aria-hidden",n):r.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(n){let r=()=>{let o=this._modalRefs.indexOf(n);o>-1&&(this._modalRefs.splice(o,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(n),this._activeInstances.emit(this._modalRefs),n.result.then(r,r)}_registerWindowCmpt(n){this._windowCmpts.push(n),this._activeWindowCmptHasChanged.next(),n.onDestroy(()=>{let r=this._windowCmpts.indexOf(n);r>-1&&(this._windowCmpts.splice(r,1),this._activeWindowCmptHasChanged.next())})}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),g0=(()=>{let e=class e{constructor(){this._injector=h(bt),this._modalStack=h(pS),this._config=h(cS)}open(n,r={}){let o=v(X(v({},this._config),{animation:this._config.animation}),r);return this._modalStack.open(this._injector,n,o)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(n){this._modalStack.dismissAll(n)}hasOpenModals(){return this._modalStack.hasOpenModals()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var gS=(()=>{let e=class e{constructor(){this._ngbConfig=h(aa),this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),m0=t=>kn(t)&&t!=="",mS=0,_S=(()=>{let e=class e{constructor(){this.templateRef=h(ut)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["ng-template","ngbNavContent",""]],standalone:!0});let t=e;return t})();var ua=(()=>{let e=class e{constructor(){this._nav=h(da),this._nativeElement=h(de).nativeElement,this.disabled=!1,this.shown=new V,this.hidden=new V}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){kn(this.domId)||(this.domId=`ngb-nav-${mS++}`)}get active(){return this._nav.activeId===this.id}get id(){return m0(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(kn(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}isNgContainer(){return this._nativeElement.nodeType===Node.COMMENT_NODE}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","ngbNavItem",""]],contentQueries:function(r,o,s){if(r&1&&rn(s,_S,4),r&2){let a;tt(a=nt())&&(o.contentTpls=a)}},hostVars:2,hostBindings:function(r,o){r&2&&ve("nav-item",!0)},inputs:{destroyOnHide:"destroyOnHide",disabled:"disabled",domId:"domId",_id:[q.None,"ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"],standalone:!0});let t=e;return t})(),da=(()=>{let e=class e{constructor(n){this.role=n,this._config=h(gS),this._cd=h(wt),this._document=h(ae),this._nativeElement=h(de).nativeElement,this.destroyRef=h(gi),this._navigatingWithKeyboard=!1,this.activeIdChange=new V,this.animation=this._config.animation,this.destroyOnHide=this._config.destroyOnHide,this.orientation=this._config.orientation,this.roles=this._config.roles,this.keyboard=this._config.keyboard,this.shown=new V,this.hidden=new V,this.navItemChange$=new J,this.navChange=new V}click(n){n.disabled||this._updateActiveId(n.id)}onFocusout({relatedTarget:n}){this._nativeElement.contains(n)||(this._navigatingWithKeyboard=!1)}onKeyDown(n){if(this.roles!=="tablist"||!this.keyboard)return;let r=n.which,o=this.links.filter(c=>!c.navItem.disabled),{length:s}=o,a=-1;if(o.forEach((c,l)=>{c.nativeElement===this._document.activeElement&&(a=l)}),s){switch(r){case $t.ArrowUp:case $t.ArrowLeft:a=(a-1+s)%s;break;case $t.ArrowRight:case $t.ArrowDown:a=(a+1)%s;break;case $t.Home:a=0;break;case $t.End:a=s-1;break}this.keyboard==="changeWithArrows"&&this.select(o[a].navItem.id),o[a].nativeElement.focus(),this._navigatingWithKeyboard=!0,n.preventDefault()}}select(n){this._updateActiveId(n,!1)}ngAfterContentInit(){if(!kn(this.activeId)){let n=this.items.first?this.items.first.id:null;m0(n)&&(this._updateActiveId(n,!1),this._cd.detectChanges())}this.items.changes.pipe(Fi(this.destroyRef)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:n}){n&&!n.firstChange&&this._notifyItemChanged(n.currentValue)}_updateActiveId(n,r=!0){if(this.activeId!==n){let o=!1;r&&this.navChange.emit({activeId:this.activeId,nextId:n,preventDefault:()=>{o=!0}}),o||(this.activeId=n,this.activeIdChange.emit(n),this._notifyItemChanged(n))}}_notifyItemChanged(n){this.navItemChange$.next(this._getItemById(n))}_getItemById(n){return this.items&&this.items.find(r=>r.id===n)||null}};e.\u0275fac=function(r){return new(r||e)(hi("role"))},e.\u0275dir=te({type:e,selectors:[["","ngbNav",""]],contentQueries:function(r,o,s){if(r&1&&(rn(s,ua,4),rn(s,_0,5)),r&2){let a;tt(a=nt())&&(o.items=a),tt(a=nt())&&(o.links=a)}},hostVars:6,hostBindings:function(r,o){r&1&&be("keydown.arrowLeft",function(a){return o.onKeyDown(a)})("keydown.arrowRight",function(a){return o.onKeyDown(a)})("keydown.arrowDown",function(a){return o.onKeyDown(a)})("keydown.arrowUp",function(a){return o.onKeyDown(a)})("keydown.Home",function(a){return o.onKeyDown(a)})("keydown.End",function(a){return o.onKeyDown(a)})("focusout",function(a){return o.onFocusout(a)}),r&2&&(Et("aria-orientation",o.orientation==="vertical"&&o.roles==="tablist"?"vertical":void 0)("role",o.role?o.role:o.roles?"tablist":void 0),ve("nav",!0)("flex-column",o.orientation==="vertical"))},inputs:{activeId:"activeId",animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],standalone:!0,features:[He]});let t=e;return t})(),_0=(()=>{let e=class e{constructor(n){this.role=n,this.navItem=h(ua),this.nav=h(da),this.nativeElement=h(de).nativeElement}get tabindex(){return this.nav.keyboard===!1?this.navItem.disabled?-1:void 0:this.nav._navigatingWithKeyboard||this.navItem.disabled||!this.navItem.active?-1:void 0}};e.\u0275fac=function(r){return new(r||e)(hi("role"))},e.\u0275dir=te({type:e,selectors:[["","ngbNavLink",""]],hostVars:14,hostBindings:function(r,o){r&2&&(nn("id",o.navItem.domId),Et("role",o.role?o.role:o.nav.roles?"tab":void 0)("tabindex",o.tabindex)("aria-controls",o.navItem.isPanelInDom()?o.navItem.panelDomId:null)("aria-selected",o.navItem.active)("aria-disabled",o.navItem.disabled),ve("nav-link",!0)("nav-item",o.navItem.isNgContainer())("active",o.navItem.active)("disabled",o.navItem.disabled))},standalone:!0});let t=e;return t})();var v0=(()=>{let e=class e extends _0{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=ur(e)))(o||e)}})(),e.\u0275dir=te({type:e,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostBindings:function(r,o){r&1&&be("click",function(a){return o.nav.click(o.navItem),a.preventDefault()})},standalone:!0,features:[Hl]});let t=e;return t})(),vS=({classList:t})=>(t.remove("show"),()=>t.remove("active")),yS=(t,e)=>{e&&ca(t),t.classList.add("show")},l0=(()=>{let e=class e{constructor(){this.nativeElement=h(de).nativeElement}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=te({type:e,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(r,o){r&2&&(nn("id",o.item.panelDomId),Et("role",o.role?o.role:o.nav.roles?"tabpanel":void 0)("aria-labelledby",o.item.domId),ve("fade",o.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"},standalone:!0});let t=e;return t})(),y0=(()=>{let e=class e{constructor(){this._cd=h(wt),this._ngZone=h(Q),this._activePane=null}isPanelTransitioning(n){return this._activePane?.item===n}ngAfterViewInit(){this._updateActivePane(),this.nav.navItemChange$.pipe(Fi(this.nav.destroyRef),Ui(this._activePane?.item||null),Aa(),La(1)).subscribe(n=>{let r={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?Mt(this._ngZone,this._activePane.nativeElement,vS,r).subscribe(()=>{let o=this._activePane?.item;this._activePane=this._getPaneForItem(n),this._cd.markForCheck(),this._activePane&&(this._activePane.nativeElement.classList.add("active"),Mt(this._ngZone,this._activePane.nativeElement,yS,r).subscribe(()=>{n&&(n.shown.emit(),this.nav.shown.emit(n.id))})),o&&(o.hidden.emit(),this.nav.hidden.emit(o.id))}):this._updateActivePane()})}_updateActivePane(){this._activePane=this._getActivePane(),this._activePane?.nativeElement.classList.add("show"),this._activePane?.nativeElement.classList.add("active")}_getPaneForItem(n){return this._panes&&this._panes.find(r=>r.item===n)||null}_getActivePane(){return this._panes&&this._panes.find(n=>n.item.active)||null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=re({type:e,selectors:[["","ngbNavOutlet",""]],viewQuery:function(r,o){if(r&1&&mr(l0,5),r&2){let s;tt(s=nt())&&(o._panes=s)}},hostVars:2,hostBindings:function(r,o){r&2&&ve("tab-content",!0)},inputs:{paneRole:"paneRole",nav:[q.None,"ngbNavOutlet","nav"]},standalone:!0,features:[he],attrs:UC,decls:2,vars:0,consts:[["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,o){r&1&&xe(0,WC,1,1,null,null,Sg),r&2&&Oe(o.nav.items)},dependencies:[l0,Yg],encapsulation:2,changeDetection:0});let t=e;return t})();var JF=new I("live announcer delay",{providedIn:"root",factory:()=>100});var DS=(t,e)=>e.name;function bS(t,e){if(t&1&&$(0,"app-property",4),t&2){let i=e.$implicit,n=U(2);L("property",i)("document",n.document())}}function wS(t,e){if(t&1&&xe(0,bS,1,2,"app-property",4,DS),t&2){let i=U();Oe(i.properties())}}var ES=t=>({"has-child-property":t}),D0=(()=>{let e=class e{constructor(){this.property=Dt.required(),this.document=Dt.required(),this.properties=pi(()=>{let n=this.document().models,r=this.property().option.typeId;return r?n.find(s=>s.classId===r)?.properties:[]}),this.isShowDetail=!1}get propertyDetail(){let n=[];return this.property().option.required||n.push("optional"),this.property().option.isArray?n.push(`${this.property().option.type}[]`):n.push(this.property().option.type),n.filter(r=>r).join(", ")}toggleChildProperty(){this.isShowDetail=!this.isShowDetail}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=re({type:e,selectors:[["app-property"]],inputs:{property:[q.SignalBased,"property"],document:[q.SignalBased,"document"]},standalone:!0,features:[he],decls:10,vars:7,consts:[[1,"property"],[3,"ngClass"],[1,"variable",3,"click"],[1,"text-muted"],[3,"property","document"]],template:function(r,o){r&1&&(D(0,"div",0)(1,"div",1)(2,"span",2),be("click",function(){return o.toggleChildProperty()}),H(3),m(),D(4,"span",3),H(5),m(),D(6,"div"),H(7),m()(),$(8,"hr"),ie(9,wS,2,0),m()),r&2&&(y(),L("ngClass",sn(5,ES,o.properties.length)),y(2),fe(o.property().name),y(2),on(" ",o.propertyDetail,""),y(2),on(" ",o.property().option.description," "),y(2),Ne(9,o.isShowDetail?9:-1))},dependencies:[e,wi],styles:[".has-child-property[_ngcontent-%COMP%]{cursor:pointer}"],changeDetection:0});let t=e;return t})();var b0=(()=>{let e=class e{constructor(){this.http=h(Er)}tryIt(n,r){return this.http.post(`${n}test`,r)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function CS(t,e){t&1&&(D(0,"div")(1,"div",11)(2,"span",12),H(3,"Loading..."),m()()())}var SS=t=>({"parameter-title-error":t});function TS(t,e){if(t&1&&(D(0,"div",4)(1,"div",13)(2,"h6"),H(3,"Response"),m()(),D(4,"div",6),$(5,"ngx-json-viewer",14),m()()),t&2){let i=U();y(),L("ngClass",sn(2,SS,i.isError())),y(4),L("json",i.response())}}var w0=(()=>{let e=class e{constructor(){this.isLoading=tn(!1),this.response=tn(""),this.isError=tn(!1),this.theme="vs",this.codeModel={language:"json",uri:"main.json",value:"{}"},this.options={contextmenu:!0,minimap:{enabled:!1}},this.activeModal=h(Li),this.tryBoxService=h(b0)}tryIt(){this.isLoading.set(!0),this.isError.set(!1),this.tryBoxService.tryIt(this.document.host,{serviceName:this.microservice.name,methodName:this.method.name,isFindMany:!!this.method.isResponseArray,data:JSON.parse(this.codeModel.value)}).subscribe({next:n=>{console.log(n),this.response.set(n),this.isLoading.set(!1)},error:n=>{console.log(n),this.isError.set(!0),this.response.set(n),this.isLoading.set(!1)}})}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=re({type:e,selectors:[["app-try-box"]],inputs:{method:"method",microservice:"microservice",document:"document"},standalone:!0,features:[he],decls:17,vars:6,consts:[[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"parameter-panel"],[1,"parameter-title"],[1,"form-group"],[3,"theme","codeModel","options"],[1,"text-end"],["type","button",1,"btn","btn-primary",3,"click"],["class","parameter-panel"],["role","status",1,"spinner-border"],[1,"sr-only"],[1,"parameter-title",3,"ngClass"],[3,"json"]],template:function(r,o){r&1&&(D(0,"div",0)(1,"h4",1),H(2),m(),D(3,"button",2),be("click",function(){return o.activeModal.dismiss("Cross click")}),m()(),D(4,"div",3)(5,"form")(6,"div",4)(7,"div",5)(8,"h6"),H(9,"Parameter"),m()(),D(10,"div",6),$(11,"ngs-code-editor",7),m()(),D(12,"div",8)(13,"button",9),be("click",function(){return o.tryIt()}),H(14,"Try it"),m()()(),ie(15,CS,4,0,"div")(16,TS,6,4,"div",10),m()),r&2&&(y(2),fe(o.method.name),y(9),L("theme",o.theme)("codeModel",o.codeModel)("options",o.options),y(4),Ne(15,o.isLoading()?15:-1),y(),Ne(16,o.response()?16:-1))},dependencies:[ia,o0,wi,oa,a0],styles:[".parameter-title-error[_ngcontent-%COMP%]{background-color:#9f3f3f85}.parameter-title[_ngcontent-%COMP%]{margin-left:-16px;margin-right:-16px}"],changeDetection:0});let t=e;return t})();var E0=(t,e)=>e.name;function MS(t,e){t&1&&(D(0,"span",5),H(1,"Empty paramter"),m())}function IS(t,e){if(t&1&&$(0,"app-property",6),t&2){let i=e.$implicit,n=U();L("property",i)("document",n.document())}}function RS(t,e){t&1&&(D(0,"span",5),H(1,"array"),m())}function NS(t,e){t&1&&(D(0,"span",5),H(1,"Empty response"),m())}function xS(t,e){if(t&1&&$(0,"app-property",6),t&2){let i=e.$implicit,n=U();L("property",i)("document",n.document())}}var OS=()=>["typescript"],C0=(()=>{let e=class e{constructor(){this.method=Dt.required(),this.microservice=Dt.required(),this.document=Dt.required(),this.parameterProperties=pi(()=>{let r=this.document().models.find(o=>o.classId===this.method().parameter);return r?r.properties:[]}),this.responseProperties=pi(()=>{let r=this.document().models.find(o=>o.classId===this.method().response);return r?r.properties:[]}),this.modalService=h(g0)}tryIt(){let n=this.modalService.open(w0,{size:"lg"});n.componentInstance.method=this.method(),n.componentInstance.microservice=this.microservice(),n.componentInstance.document=this.document()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=re({type:e,selectors:[["app-method"]],inputs:{method:[q.SignalBased,"method"],microservice:[q.SignalBased,"microservice"],document:[q.SignalBased,"document"]},standalone:!0,features:[he],decls:22,vars:7,consts:[[3,"languages","highlight"],["type","button",1,"btn-try-it","btn","btn-sm","btn-outline-secondary",3,"click"],[1,"parameter-panel"],[1,"parameter-title"],["class","text-muted"],[1,"text-muted"],[3,"property","document"]],template:function(r,o){r&1&&(D(0,"pre"),$(1,"code",0),m(),H(2),D(3,"div")(4,"button",1),be("click",function(){return o.tryIt()}),H(5,"Try it now"),m()(),D(6,"div",2)(7,"div",3)(8,"h6"),H(9,"Parameter"),m(),ie(10,MS,2,0,"span",4),m(),xe(11,IS,1,2,"app-property",6,E0),m(),D(13,"div",2)(14,"div",3)(15,"h6"),H(16,"Response"),m(),ie(17,RS,2,0,"span",4)(18,NS,2,0,"span",4),m(),xe(19,xS,1,2,"app-property",6,E0),$(21,"hr"),m()),r&2&&(y(),L("languages",_i(6,OS))("highlight",o.method().sdkUsage),y(),on(`
16
- `,o.method().description,`
17
- `),y(8),Ne(10,o.method().parameter?-1:10),y(),Oe(o.parameterProperties()),y(6),Ne(17,o.method().isResponseArray?17:-1),y(),Ne(18,o.method().response?-1:18),y(),Oe(o.responseProperties()))},dependencies:[ra,D0],encapsulation:2,changeDetection:0});let t=e;return t})();var AS=(t,e)=>e.link;function PS(t,e){if(t&1&&(D(0,"div"),$(1,"app-method",8),m()),t&2){let i=U().$implicit,n=U(2);y(),L("method",i)("microservice",n.microservice())("document",n.document())}}function FS(t,e){if(t&1&&(D(0,"div",3)(1,"h2",4)(2,"button",5),H(3),m()(),D(4,"div",6)(5,"div",7),ie(6,PS,2,3,"ng-template"),m()()()),t&2){let i=e.$implicit,n=U();Ct("ngbAccordionItem",i.link),L("title",i.name)("collapsed",n!==i.link),y(3),fe(i.name)}}function kS(t,e){if(t&1&&xe(0,FS,7,4,"div",3,AS),t&2){let i=U();Oe(i.microservice().methods)}}var S0=(()=>{let e=class e{constructor(){this.microservice=Dt.required(),this.document=Dt.required(),this.activeId$=h(Ht).fragment}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=re({type:e,selectors:[["app-microservice"]],inputs:{microservice:[q.SignalBased,"microservice"],document:[q.SignalBased,"document"]},standalone:!0,features:[he],decls:9,vars:6,consts:[[1,"service-panel",3,"id"],[1,"text-muted"],["ngbAccordion",""],[3,"ngbAccordionItem","title","collapsed"],["ngbAccordionHeader",""],["ngbAccordionButton",""],["ngbAccordionCollapse",""],["ngbAccordionBody",""],[3,"method","microservice","document"]],template:function(r,o){if(r&1&&(D(0,"div",0)(1,"h3"),H(2),m(),D(3,"p",1),H(4),m()(),D(5,"div",2),ie(6,kS,2,0),Kl(7,"async"),m(),$(8,"hr")),r&2){let s;Ct("id",o.microservice().link),y(2),fe(o.microservice().name),y(2),fe(o.microservice().description),y(2),Ne(6,(s=Zl(7,4,o.activeId$))?6:-1,s)}},dependencies:[la,hn,h0,f0,hd,d0,C0,Kg],encapsulation:2,changeDetection:0});let t=e;return t})();var ji=(()=>{let e=class e{constructor(){this.documents=tn([]),this.menus=tn([]),this.http=h(Er)}getDocument(n=""){this.http.get(n+"json").subscribe(r=>{r.host=n;for(let o of r.microservices){o.link=`${r.package}_${o.name}`;for(let s of o.methods)s.link=`${r.package}_${s.name}`}this.documents.update(o=>[...o,r]),this.createMenus()})}getDocuments(){this.http.get("assets/config.json").subscribe({next:n=>{if(n.length)for(let r of n)this.getDocument(r);else this.getDocument()},error:n=>{this.getDocument()}})}createMenus(){this.activeId=`${this.documents()[0].package}_${this.documents()[0].title}`,this.menus.set(this.documents().map(n=>({name:n.title,link:`${n.package}_${n.title}`,host:n.host,children:n.microservices.map(r=>({name:r.name,link:`${n.package}_${r.name}`,children:r.methods.map(o=>({name:o.name,link:`${n.package}_${o.name}`}))}))})))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var LS=(t,e)=>e.title,jS=(t,e)=>e.link;function BS(t,e){if(t&1&&$(0,"app-microservice",3),t&2){let i=e.$implicit,n=U().$implicit;L("microservice",i)("document",n)}}var gd=()=>["typescript"];function VS(t,e){if(t&1&&(D(0,"div")(1,"h2",1),H(2),m(),D(3,"p",0),H(4),m(),D(5,"pre"),$(6,"code",2),m(),D(7,"pre"),$(8,"code",2),m(),D(9,"pre"),$(10,"code",2),m(),$(11,"hr"),xe(12,BS,1,2,"app-microservice",3,jS),m()),t&2){let i=e.$implicit,n=U();y(),Ct("id",i.title),y(),fe(i.title),y(2),fe(i.description),y(2),L("languages",_i(9,gd))("highlight",n.preInstallDescription),y(2),L("languages",_i(10,gd))("highlight",i.installDescription),y(2),L("languages",_i(11,gd))("highlight",i.usageDescription),y(2),Oe(i.microservices)}}var T0=(()=>{let e=class e{constructor(){this.documents=h(ji).documents,this.preInstallDescription=`
18
- npm install --save @grpc/grpc-js @grpc/proto-loader
19
-
20
- npm install --save @hodfords/nestjs-response @hodfords/nestjs-command
21
- `.trim()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=re({type:e,selectors:[["app-document"]],standalone:!0,features:[he],decls:7,vars:0,consts:[[1,"lead"],[3,"id"],[3,"languages","highlight"],[3,"microservice","document"]],template:function(r,o){r&1&&(D(0,"h1"),H(1,"Documentation"),m(),D(2,"p",0),H(3,"Microservice document for esg."),m(),$(4,"hr"),xe(5,VS,14,12,"div",null,LS)),r&2&&(y(5),Oe(o.documents()))},dependencies:[ra,S0],styles:["[_nghost-%COMP%]{padding-top:1rem;display:block;padding-right:20px}"],changeDetection:0});let t=e;return t})();var md=(t,e)=>e.link;function HS(t,e){if(t&1&&(D(0,"li",3)(1,"a",7),H(2),m()()),t&2){let i=e.$implicit;L("ngbNavItem",i.link),y(),Ct("fragment",i.link),L("href",i.link,fr),y(),fe(i.name)}}function $S(t,e){if(t&1&&(D(0,"ul",9),xe(1,HS,3,4,"li",3,md),m()),t&2){let i=U().$implicit;y(),Oe(i.children)}}function US(t,e){if(t&1&&(D(0,"li",3)(1,"a",7),H(2),m(),ie(3,$S,3,0,"ul",8),m()),t&2){let i=e.$implicit,n=U(2).$implicit;L("ngbNavItem",i.link),y(),Ct("fragment",i.link),L("href",n.link,fr),y(),fe(i.name),y(),Ne(3,i.children?3:-1)}}function GS(t,e){if(t&1&&(D(0,"ul",6),xe(1,US,4,5,"li",3,md),m()),t&2){let i=U().$implicit;y(),Oe(i.children)}}function zS(t,e){if(t&1&&(D(0,"li",3)(1,"a",4),H(2),m(),ie(3,GS,3,0,"ul",5),m()),t&2){let i=e.$implicit,n=U();L("ngbNavItem",i.link),y(),Ct("fragment",i.link),L("href",i.link,fr),y(),fe(i.name),y(),Ne(3,i.children&&n.documentService.activeId===i.link?3:-1)}}var M0=(()=>{let e=class e{constructor(){this.documentService=h(ji),this.menus=this.documentService.menus}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=re({type:e,selectors:[["app-menu-list"]],standalone:!0,features:[he],decls:5,vars:2,consts:[["ngbNav","",1,"flex-column",3,"activeId","activeIdChange"],["nav","ngbNav"],[3,"ngbNavOutlet"],[3,"ngbNavItem"],["ngbNavLink","","routerLink",".",1,"package-menu-item",3,"href","fragment"],["ngbNav","","class","flex-column service-menu"],["ngbNav","",1,"flex-column","service-menu"],["ngbNavLink","","routerLink",".",3,"href","fragment"],["ngbNav","","class","flex-column method-menu"],["ngbNav","",1,"flex-column","method-menu"]],template:function(r,o){if(r&1&&(D(0,"ul",0,1),Ql("activeIdChange",function(a){return Ng(o.documentService.activeId,a)||(o.documentService.activeId=a),a}),xe(2,zS,4,5,"li",3,md),m(),$(4,"div",2)),r&2){let s=ql(1);Jl("activeId",o.documentService.activeId),y(2),Oe(o.menus()),y(2),L("ngbNavOutlet",s)}},dependencies:[da,ua,v0,Km,y0],styles:["[_nghost-%COMP%]{padding-top:20px;height:100vh;position:fixed;display:block;border-right:1px solid rgba(0,0,0,.05);transition:all .3s;background-color:#f8f9fa;width:23%;overflow-wrap:anywhere}.nav-item[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%]{padding-left:10px}.package-menu-item[_ngcontent-%COMP%]{font-weight:700;line-height:25px;color:#0366d6}.service-menu[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{color:#6a6a6a!important;font-size:15px;text-transform:none;font-weight:700}.method-menu[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{color:#6a6a6a!important;font-size:15px;text-transform:none;font-weight:400}"]});let t=e;return t})();var I0=(()=>{let e=class e{constructor(){this.documentService=h(ji),this.viewport=h(Rs)}ngOnInit(){this.documentService.getDocuments(),this.viewport.setOffset([0,65])}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=re({type:e,selectors:[["app-root"]],standalone:!0,features:[he],decls:5,vars:0,consts:[[1,"row"],[1,"col-3"],[1,"col-9"]],template:function(r,o){r&1&&(D(0,"div",0)(1,"div",1),$(2,"app-menu-list"),m(),D(3,"div",2),$(4,"app-document"),m()())},dependencies:[M0,T0],encapsulation:2,changeDetection:0});let t=e;return t})();pm(I0,{providers:[Sl(s0,ia.forRoot(),oa),{provide:Ur,useValue:{fullLibraryLoader:()=>import("./chunk-IKVALLPG.js")}},sm(),Xm([],e0({scrollPositionRestoration:"enabled",anchorScrolling:"enabled"}))]}).catch(t=>console.error(t));