From 5220d5351678db24a8ccf556de93fa58f410e9bf Mon Sep 17 00:00:00 2001 From: cipchk Date: Sat, 15 Jun 2024 12:37:45 +0000 Subject: [PATCH] deploy: 21ba38dd33eb2f26fd907cc7b41d038c4827d509 --- 404.html | 4 +-- index.html | 4 +-- main-74SSFCED.js | 87 ++++++++++++++++++++++++++++++++++++++++++++++++ main-YCZQDN45.js | 87 ------------------------------------------------ 4 files changed, 91 insertions(+), 91 deletions(-) create mode 100644 main-74SSFCED.js delete mode 100644 main-YCZQDN45.js diff --git a/404.html b/404.html index c87ff04..2714cd8 100644 --- a/404.html +++ b/404.html @@ -15,7 +15,7 @@ Loading... - Fork me on GitHub + Fork me on GitHub - + diff --git a/index.html b/index.html index c87ff04..2714cd8 100644 --- a/index.html +++ b/index.html @@ -15,7 +15,7 @@ Loading... - Fork me on GitHub + Fork me on GitHub - + diff --git a/main-74SSFCED.js b/main-74SSFCED.js new file mode 100644 index 0000000..2294987 --- /dev/null +++ b/main-74SSFCED.js @@ -0,0 +1,87 @@ +var Mg=Object.defineProperty,_g=Object.defineProperties;var Sg=Object.getOwnPropertyDescriptors;var Qu=Object.getOwnPropertySymbols;var Tg=Object.prototype.hasOwnProperty,xg=Object.prototype.propertyIsEnumerable;var Ku=(t,e,r)=>e in t?Mg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,g=(t,e)=>{for(var r in e||={})Tg.call(e,r)&&Ku(t,r,e[r]);if(Qu)for(var r of Qu(e))xg.call(e,r)&&Ku(t,r,e[r]);return t},F=(t,e)=>_g(t,Sg(e));var Dn=(t,e,r)=>new Promise((n,i)=>{var o=c=>{try{a(r.next(c))}catch(u){i(u)}},s=c=>{try{a(r.throw(c))}catch(u){i(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,s);a((r=r.apply(t,e)).next())});var Cs=null;var ws=1,Es=Symbol("SIGNAL");function L(t){let e=Cs;return Cs=t,e}function Ju(){return Cs}var bs={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 Ag(t){if(!(Ts(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===ws)){if(!t.producerMustRecompute(t)&&!Ms(t)){t.dirty=!1,t.lastCleanEpoch=ws;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=ws}}function Is(t){return t&&(t.nextProducerIndex=0),L(t)}function Xu(t,e){if(L(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Ts(t))for(let r=t.nextProducerIndex;rt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Ms(t){xs(t);for(let e=0;e0}function xs(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Ng(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Rg(t){return t.producerNode!==void 0}function Og(){throw new Error}var Fg=Og;function el(t){Fg=t}function _(t){return typeof t=="function"}function wn(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var vi=wn(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: +${r.map((n,i)=>`${i+1}) ${n.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=r});function pr(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var X=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:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(_(n))try{n()}catch(o){e=o instanceof vi?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{tl(o)}catch(s){e=e??[],s instanceof vi?e=[...e,...s.errors]:e.push(s)}}if(e)throw new vi(e)}}add(e){var r;if(e&&e!==this)if(this.closed)tl(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&pr(r,e)}remove(e){let{_finalizers:r}=this;r&&pr(r,e),e instanceof t&&e._removeParent(this)}};X.EMPTY=(()=>{let t=new X;return t.closed=!0,t})();var As=X.EMPTY;function yi(t){return t instanceof X||t&&"closed"in t&&_(t.remove)&&_(t.add)&&_(t.unsubscribe)}function tl(t){_(t)?t():t.unsubscribe()}var ke={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Cn={setTimeout(t,e,...r){let{delegate:n}=Cn;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=Cn;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Di(t){Cn.setTimeout(()=>{let{onUnhandledError:e}=ke;if(e)e(t);else throw t})}function gr(){}var nl=Ns("C",void 0,void 0);function rl(t){return Ns("E",void 0,t)}function il(t){return Ns("N",t,void 0)}function Ns(t,e,r){return{kind:t,value:e,error:r}}var $t=null;function En(t){if(ke.useDeprecatedSynchronousErrorHandling){let e=!$t;if(e&&($t={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=$t;if($t=null,r)throw n}}else t()}function ol(t){ke.useDeprecatedSynchronousErrorHandling&&$t&&($t.errorThrown=!0,$t.error=t)}var Ht=class extends X{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,yi(e)&&e.add(this)):this.destination=Lg}static create(e,r,n){return new et(e,r,n)}next(e){this.isStopped?Os(il(e),this):this._next(e)}error(e){this.isStopped?Os(rl(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Os(nl,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()}}},Pg=Function.prototype.bind;function Rs(t,e){return Pg.call(t,e)}var Fs=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){wi(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){wi(n)}else wi(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){wi(r)}}},et=class extends Ht{constructor(e,r,n){super();let i;if(_(e)||!e)i={next:e??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&ke.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Rs(e.next,o),error:e.error&&Rs(e.error,o),complete:e.complete&&Rs(e.complete,o)}):i=e}this.destination=new Fs(i)}};function wi(t){ke.useDeprecatedSynchronousErrorHandling?ol(t):Di(t)}function kg(t){throw t}function Os(t,e){let{onStoppedNotification:r}=ke;r&&Cn.setTimeout(()=>r(t,e))}var Lg={closed:!0,next:gr,error:kg,complete:gr};var bn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function me(t){return t}function mr(...t){return Ps(t)}function Ps(t){return t.length===0?me:t.length===1?t[0]:function(r){return t.reduce((n,i)=>i(n),r)}}var P=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=jg(r)?r:new et(r,n,i);return En(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=sl(n),new n((i,o)=>{let s=new et({next:a=>{try{r(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[bn](){return this}pipe(...r){return Ps(r)(this)}toPromise(r){return r=sl(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function sl(t){var e;return(e=t??ke.Promise)!==null&&e!==void 0?e:Promise}function Vg(t){return t&&_(t.next)&&_(t.error)&&_(t.complete)}function jg(t){return t&&t instanceof Ht||Vg(t)&&yi(t)}function ks(t){return _(t?.lift)}function N(t){return e=>{if(ks(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function R(t,e,r,n,i){return new Ls(t,e,r,n,i)}var Ls=class extends Ht{constructor(e,r,n,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(c){e.error(c)}}:super._next,this._error=i?function(a){try{i(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:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function In(){return N((t,e)=>{let r=null;t._refCount++;let n=R(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let i=t._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var Mn=class extends P{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,ks(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 X;let r=this.getSubject();e.add(this.source.subscribe(R(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=X.EMPTY)}return e}refCount(){return In()(this)}};var al=wn(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ee=(()=>{class t extends P{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Ci(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new al}next(r){En(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){En(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){En(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:i,observers:o}=this;return n||i?As:(this.currentObservers=null,o.push(r),new X(()=>{this.currentObservers=null,pr(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new P;return r.source=this,r}}return t.create=(e,r)=>new Ci(e,r),t})(),Ci=class extends ee{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:As}};var ne=class extends ee{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var ve=new P(t=>t.complete());function cl(t){return t&&_(t.schedule)}function ul(t){return t[t.length-1]}function Ei(t){return _(ul(t))?t.pop():void 0}function vt(t){return cl(ul(t))?t.pop():void 0}function dl(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{u(n.next(l))}catch(d){s(d)}}function c(l){try{u(n.throw(l))}catch(d){s(d)}}function u(l){l.done?o(l.value):i(l.value).then(a,c)}u((n=n.apply(t,e||[])).next())})}function ll(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.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 zt(t){return this instanceof zt?(this.v=t,this):new zt(t)}function fl(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i={},a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){n[f]&&(i[f]=function(D){return new Promise(function(v,y){o.push([f,D,v,y])>1||c(f,D)})},p&&(i[f]=p(i[f])))}function c(f,p){try{u(n[f](p))}catch(D){h(o[0][3],D)}}function u(f){f.value instanceof zt?Promise.resolve(f.value.v).then(l,d):h(o[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,p){f(p),o.shift(),o.length&&c(o[0][0],o[0][1])}}function hl(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof ll=="function"?ll(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,c){s=t[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(u){o({value:u,done:a})},s)}}var bi=t=>t&&typeof t.length=="number"&&typeof t!="function";function Ii(t){return _(t?.then)}function Mi(t){return _(t[bn])}function _i(t){return Symbol.asyncIterator&&_(t?.[Symbol.asyncIterator])}function Si(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 Ug(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ti=Ug();function xi(t){return _(t?.[Ti])}function Ai(t){return fl(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:i}=yield zt(r.read());if(i)return yield zt(void 0);yield yield zt(n)}}finally{r.releaseLock()}})}function Ni(t){return _(t?.getReader)}function q(t){if(t instanceof P)return t;if(t!=null){if(Mi(t))return Bg(t);if(bi(t))return $g(t);if(Ii(t))return Hg(t);if(_i(t))return pl(t);if(xi(t))return zg(t);if(Ni(t))return Gg(t)}throw Si(t)}function Bg(t){return new P(e=>{let r=t[bn]();if(_(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function $g(t){return new P(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,Di)})}function zg(t){return new P(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function pl(t){return new P(e=>{Wg(t,e).catch(r=>e.error(r))})}function Gg(t){return pl(Ai(t))}function Wg(t,e){var r,n,i,o;return dl(this,void 0,void 0,function*(){try{for(r=hl(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}e.complete()})}function fe(t,e,r,n=0,i=!1){let o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function Ri(t,e=0){return N((r,n)=>{r.subscribe(R(n,i=>fe(n,t,()=>n.next(i),e),()=>fe(n,t,()=>n.complete(),e),i=>fe(n,t,()=>n.error(i),e)))})}function Oi(t,e=0){return N((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function gl(t,e){return q(t).pipe(Oi(e),Ri(e))}function ml(t,e){return q(t).pipe(Oi(e),Ri(e))}function vl(t,e){return new P(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function yl(t,e){return new P(r=>{let n;return fe(r,e,()=>{n=t[Ti](),fe(r,e,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>_(n?.return)&&n.return()})}function Fi(t,e){if(!t)throw new Error("Iterable cannot be null");return new P(r=>{fe(r,e,()=>{let n=t[Symbol.asyncIterator]();fe(r,e,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function Dl(t,e){return Fi(Ai(t),e)}function wl(t,e){if(t!=null){if(Mi(t))return gl(t,e);if(bi(t))return vl(t,e);if(Ii(t))return ml(t,e);if(_i(t))return Fi(t,e);if(xi(t))return yl(t,e);if(Ni(t))return Dl(t,e)}throw Si(t)}function Z(t,e){return e?wl(t,e):q(t)}function I(...t){let e=vt(t);return Z(t,e)}function _n(t,e){let r=_(t)?t:()=>t,n=i=>i.error(r());return new P(e?i=>e.schedule(n,0,i):n)}function Vs(t){return!!t&&(t instanceof P||_(t.lift)&&_(t.subscribe))}var tt=wn(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function S(t,e){return N((r,n)=>{let i=0;r.subscribe(R(n,o=>{n.next(t.call(e,o,i++))}))})}var{isArray:qg}=Array;function Zg(t,e){return qg(e)?t(...e):t(e)}function Pi(t){return S(e=>Zg(t,e))}var{isArray:Yg}=Array,{getPrototypeOf:Qg,prototype:Kg,keys:Jg}=Object;function ki(t){if(t.length===1){let e=t[0];if(Yg(e))return{args:e,keys:null};if(Xg(e)){let r=Jg(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function Xg(t){return t&&typeof t=="object"&&Qg(t)===Kg}function Li(t,e){return t.reduce((r,n,i)=>(r[n]=e[i],r),{})}function Vi(...t){let e=vt(t),r=Ei(t),{args:n,keys:i}=ki(t);if(n.length===0)return Z([],e);let o=new P(em(n,e,i?s=>Li(i,s):me));return r?o.pipe(Pi(r)):o}function em(t,e,r=me){return n=>{Cl(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let c=0;c{let u=Z(t[c],e),l=!1;u.subscribe(R(n,d=>{o[c]=d,l||(l=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Cl(t,e,r){t?fe(r,t,e):e()}function El(t,e,r,n,i,o,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&e.complete()},f=D=>u{o&&e.next(D),u++;let v=!1;q(r(D,l++)).subscribe(R(e,y=>{i?.(y),o?f(y):e.next(y)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;c.length&&up(y)):p(y)}h()}catch(y){e.error(y)}}))};return t.subscribe(R(e,f,()=>{d=!0,h()})),()=>{a?.()}}function re(t,e,r=1/0){return _(e)?re((n,i)=>S((o,s)=>e(n,o,i,s))(q(t(n,i))),r):(typeof e=="number"&&(r=e),N((n,i)=>El(n,i,t,r)))}function js(t=1/0){return re(me,t)}function bl(){return js(1)}function Sn(...t){return bl()(Z(t,vt(t)))}function ji(t){return new P(e=>{q(t()).subscribe(e)})}function Us(...t){let e=Ei(t),{args:r,keys:n}=ki(t),i=new P(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||o.next(n?Li(n,a):a),o.complete())}))}});return e?i.pipe(Pi(e)):i}function se(t,e){return N((r,n)=>{let i=0;r.subscribe(R(n,o=>t.call(e,o,i++)&&n.next(o)))})}function yt(t){return N((e,r)=>{let n=null,i=!1,o;n=e.subscribe(R(r,void 0,void 0,s=>{o=q(t(s,yt(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function Il(t,e,r,n,i){return(o,s)=>{let a=r,c=e,u=0;o.subscribe(R(s,l=>{let d=u++;c=a?t(c,l,d):(a=!0,l),n&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}function Dt(t,e){return _(e)?re(t,e,1):re(t,1)}function wt(t){return N((e,r)=>{let n=!1;e.subscribe(R(r,i=>{n=!0,r.next(i)},()=>{n||r.next(t),r.complete()}))})}function nt(t){return t<=0?()=>ve:N((e,r)=>{let n=0;e.subscribe(R(r,i=>{++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function Bs(t){return S(()=>t)}function Ui(t=tm){return N((e,r)=>{let n=!1;e.subscribe(R(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(t())))})}function tm(){return new tt}function Gt(t){return N((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function ze(t,e){let r=arguments.length>=2;return n=>n.pipe(t?se((i,o)=>t(i,o,n)):me,nt(1),r?wt(e):Ui(()=>new tt))}function Tn(t){return t<=0?()=>ve:N((e,r)=>{let n=[];e.subscribe(R(r,i=>{n.push(i),t{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function $s(t,e){let r=arguments.length>=2;return n=>n.pipe(t?se((i,o)=>t(i,o,n)):me,Tn(1),r?wt(e):Ui(()=>new tt))}function Hs(t,e){return N(Il(t,e,arguments.length>=2,!0))}function Gs(t={}){let{connector:e=()=>new ee,resetOnError:r=!0,resetOnComplete:n=!0,resetOnRefCountZero:i=!0}=t;return o=>{let s,a,c,u=0,l=!1,d=!1,h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=c=void 0,l=d=!1},p=()=>{let D=s;f(),D?.unsubscribe()};return N((D,v)=>{u++,!d&&!l&&h();let y=c=c??e();v.add(()=>{u--,u===0&&!d&&!l&&(a=zs(p,i))}),y.subscribe(v),!s&&u>0&&(s=new et({next:G=>y.next(G),error:G=>{d=!0,h(),a=zs(f,r,G),y.error(G)},complete:()=>{l=!0,h(),a=zs(f,n),y.complete()}}),q(D).subscribe(s))})(o)}}function zs(t,e,...r){if(e===!0){t();return}if(e===!1)return;let n=new et({next:()=>{n.unsubscribe(),t()}});return q(e(...r)).subscribe(n)}function Ws(...t){let e=vt(t);return N((r,n)=>{(e?Sn(t,r,e):Sn(t,r)).subscribe(n)})}function ye(t,e){return N((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(R(n,c=>{i?.unsubscribe();let u=0,l=o++;q(t(c,l)).subscribe(i=R(n,d=>n.next(e?e(c,d,l,u++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function qs(t){return N((e,r)=>{q(t).subscribe(R(r,()=>r.complete(),gr)),!r.closed&&e.subscribe(r)})}function ie(t,e,r){let n=_(t)||e||r?{next:t,error:e,complete:r}:t;return n?N((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(R(o,c=>{var u;(u=n.next)===null||u===void 0||u.call(n,c),o.next(c)},()=>{var c;a=!1,(c=n.complete)===null||c===void 0||c.call(n),o.complete()},c=>{var u;a=!1,(u=n.error)===null||u===void 0||u.call(n,c),o.error(c)},()=>{var c,u;a&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):me}var fd="https://g.co/ng/security#xss",C=class extends Error{constructor(e,r){super(vo(e,r)),this.code=e}};function vo(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function yo(t){return{toString:t}.toString()}var Zt=globalThis;function $(t){for(let e in t)if(t[e]===$)return e;throw Error("Could not find renamed property on target object.")}function nm(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function le(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(le).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 r=e.indexOf(` +`);return r===-1?e:e.substring(0,r)}function Ml(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var rm=$({__forward_ref__:$});function nn(t){return t.__forward_ref__=nn,t.toString=function(){return le(this())},t}function ue(t){return hd(t)?t():t}function hd(t){return typeof t=="function"&&t.hasOwnProperty(rm)&&t.__forward_ref__===nn}function w(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Tt(t){return{providers:t.providers||[],imports:t.imports||[]}}function Do(t){return _l(t,gd)||_l(t,md)}function pd(t){return Do(t)!==null}function _l(t,e){return t.hasOwnProperty(e)?t[e]:null}function im(t){let e=t&&(t[gd]||t[md]);return e||null}function Sl(t){return t&&(t.hasOwnProperty(Tl)||t.hasOwnProperty(om))?t[Tl]:null}var gd=$({\u0275prov:$}),Tl=$({\u0275inj:$}),md=$({ngInjectableDef:$}),om=$({ngInjectorDef:$}),E=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=w({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function vd(t){return t&&!!t.\u0275providers}var sm=$({\u0275cmp:$}),am=$({\u0275dir:$}),cm=$({\u0275pipe:$}),um=$({\u0275mod:$}),Ki=$({\u0275fac:$}),vr=$({__NG_ELEMENT_ID__:$}),xl=$({__NG_ENV_ID__:$});function Tr(t){return typeof t=="string"?t:t==null?"":String(t)}function lm(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Tr(t)}function dm(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new C(-200,t)}function Ja(t,e){throw new C(-201,!1)}var A=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}(A||{}),ca;function yd(){return ca}function Me(t){let e=ca;return ca=t,e}function Dd(t,e,r){let n=Do(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&A.Optional)return null;if(e!==void 0)return e;Ja(t,"Injector")}var fm={},yr=fm,hm="__NG_DI_FLAG__",Ji="ngTempTokenPath",pm="ngTokenPath",gm=/\n/gm,mm="\u0275",Al="__source",Rn;function vm(){return Rn}function Ct(t){let e=Rn;return Rn=t,e}function ym(t,e=A.Default){if(Rn===void 0)throw new C(-203,!1);return Rn===null?Dd(t,void 0,e):Rn.get(t,e&A.Optional?null:void 0,e)}function b(t,e=A.Default){return(yd()||ym)(ue(t),e)}function m(t,e=A.Default){return b(t,wo(e))}function wo(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function ua(t){let e=[];for(let r=0;r ");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):le(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(gm,` + `)}`}function Fn(t,e){let r=t.hasOwnProperty(Ki);return r?t[Ki]:null}function Xa(t,e){t.forEach(r=>Array.isArray(r)?Xa(r,e):e(r))}function wd(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function Xi(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Em(t,e){let r=[];for(let n=0;ne;){let o=i-2;t[i]=t[o],i--}t[e]=r,t[e+1]=n}}function Im(t,e,r){let n=xr(t,e);return n>=0?t[n|1]=r:(n=~n,bm(t,n,e,r)),n}function Zs(t,e){let r=xr(t,e);if(r>=0)return t[r|1]}function xr(t,e){return Mm(t,e,1)}function Mm(t,e,r){let n=0,i=t.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=t[o<e?i=o:n=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[l+1].toLowerCase(),n&2&&u!==d){if(Le(n))return!1;s=!0}}}}return Le(n)||s}function Le(t){return(t&1)===0}function Nm(t,e,r,n){if(e===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!Le(s)&&(e+=Rl(o,i),i=""),n=s,o=o||!Le(n);r++}return i!==""&&(e+=Rl(o,i)),e}function Lm(t){return t.map(km).join(",")}function Vm(t){let e=[],r=[],n=1,i=2;for(;n{let e=Nd(t),r=F(g({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===bd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||qe.Emulated,styles:t.styles||_e,_:null,schemas:t.schemas||null,tView:null,id:""});Rd(r);let n=t.dependencies;return r.directiveDefs=Fl(n,!1),r.pipeDefs=Fl(n,!0),r.id=Bm(r),r})}function jm(t){return Yt(t)||Sd(t)}function Um(t){return t!==null}function xt(t){return yo(()=>({type:t.type,bootstrap:t.bootstrap||_e,declarations:t.declarations||_e,imports:t.imports||_e,exports:t.exports||_e,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Ol(t,e){if(t==null)return Pn;let r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n],o,s,a=Ln.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(r[o]=a!==Ln.None?[n,a]:n,e[o]=s):r[o]=n}return r}function De(t){return yo(()=>{let e=Nd(t);return Rd(e),e})}function Yt(t){return t[sm]||null}function Sd(t){return t[am]||null}function Td(t){return t[cm]||null}function xd(t){let e=Yt(t)||Sd(t)||Td(t);return e!==null?e.standalone:!1}function Ad(t,e){let r=t[um]||null;if(!r&&e===!0)throw new Error(`Type ${le(t)} does not have '\u0275mod' property.`);return r}function Nd(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||Pn,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||_e,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ol(t.inputs,e),outputs:Ol(t.outputs),debugInfo:null}}function Rd(t){t.features?.forEach(e=>e(t))}function Fl(t,e){if(!t)return null;let r=e?Td:jm;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(Um)}function Bm(t){let e=0,r=[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 i of r)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function rn(t){return{\u0275providers:t}}function $m(...t){return{\u0275providers:Od(!0,t),\u0275fromNgModule:!0}}function Od(t,...e){let r=[],n=new Set,i,o=s=>{r.push(s)};return Xa(e,s=>{let a=s;da(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&Fd(i,o),r}function Fd(t,e){for(let r=0;r{e(o,n)})}}function da(t,e,r,n){if(t=ue(t),!t)return!1;let i=null,o=Sl(t),s=!o&&Yt(t);if(!o&&!s){let c=t.ngModule;if(o=Sl(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)da(u,e,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let u;try{Xa(o.imports,l=>{da(l,e,r,n)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Fd(u,e)}if(!a){let u=Fn(i)||(()=>new i);e({provide:i,useFactory:u,deps:_e},i),e({provide:Ed,useValue:i,multi:!0},i),e({provide:kn,useValue:()=>b(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let u=t;tc(c,l=>{e(l,u)})}}else return!1;return i!==t&&t.providers!==void 0}function tc(t,e){for(let r of t)vd(r)&&(r=r.\u0275providers),Array.isArray(r)?tc(r,e):e(r)}var Hm=$({provide:String,useValue:$});function Pd(t){return t!==null&&typeof t=="object"&&Hm in t}function zm(t){return!!(t&&t.useExisting)}function Gm(t){return!!(t&&t.useFactory)}function Vn(t){return typeof t=="function"}function Wm(t){return!!t.useClass}var Co=new E(""),Wi={},qm={},Ys;function nc(){return Ys===void 0&&(Ys=new eo),Ys}var he=class{},wr=class extends he{get destroyed(){return this._destroyed}constructor(e,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ha(e,s=>this.processProvider(s)),this.records.set(Cd,xn(void 0,this)),i.has("environment")&&this.records.set(he,xn(void 0,this));let o=this.records.get(Co);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Ed,_e,A.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=L(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),L(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=Ct(this),n=Me(void 0),i;try{return e()}finally{Ct(r),Me(n)}}get(e,r=yr,n=A.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(xl))return e[xl](this);n=wo(n);let i,o=Ct(this),s=Me(void 0);try{if(!(n&A.SkipSelf)){let c=this.records.get(e);if(c===void 0){let u=Jm(e)&&Do(e);u&&this.injectableDefInScope(u)?c=xn(fa(e),Wi):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=n&A.Self?nc():this.parent;return r=n&A.Optional&&r===yr?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[Ji]=a[Ji]||[]).unshift(le(e)),o)throw a;return wm(a,e,"R3InjectorError",this.source)}else throw a}finally{Me(s),Ct(o)}}resolveInjectorInitializers(){let e=L(null),r=Ct(this),n=Me(void 0),i;try{let o=this.get(kn,_e,A.Self);for(let s of o)s()}finally{Ct(r),Me(n),L(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(le(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(e){e=ue(e);let r=Vn(e)?e:ue(e&&e.provide),n=Ym(e);if(!Vn(e)&&e.multi===!0){let i=this.records.get(r);i||(i=xn(void 0,Wi,!0),i.factory=()=>ua(i.multi),this.records.set(r,i)),r=e,i.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=L(null);try{return r.value===Wi&&(r.value=qm,r.value=r.factory()),typeof r.value=="object"&&r.value&&Km(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{L(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=ue(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function fa(t){let e=Do(t),r=e!==null?e.factory:Fn(t);if(r!==null)return r;if(t instanceof E)throw new C(204,!1);if(t instanceof Function)return Zm(t);throw new C(204,!1)}function Zm(t){if(t.length>0)throw new C(204,!1);let r=im(t);return r!==null?()=>r.factory(t):()=>new t}function Ym(t){if(Pd(t))return xn(void 0,t.useValue);{let e=kd(t);return xn(e,Wi)}}function kd(t,e,r){let n;if(Vn(t)){let i=ue(t);return Fn(i)||fa(i)}else if(Pd(t))n=()=>ue(t.useValue);else if(Gm(t))n=()=>t.useFactory(...ua(t.deps||[]));else if(zm(t))n=()=>b(ue(t.useExisting));else{let i=ue(t&&(t.useClass||t.provide));if(Qm(t))n=()=>new i(...ua(t.deps));else return Fn(i)||fa(i)}return n}function xn(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function Qm(t){return!!t.deps}function Km(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Jm(t){return typeof t=="function"||typeof t=="object"&&t instanceof E}function ha(t,e){for(let r of t)Array.isArray(r)?ha(r,e):r&&vd(r)?ha(r.\u0275providers,e):e(r)}function Ue(t,e){t instanceof wr&&t.assertNotDestroyed();let r,n=Ct(t),i=Me(void 0);try{return e()}finally{Ct(n),Me(i)}}function Xm(){return yd()!==void 0||vm()!=null}function ev(t){return typeof t=="function"}var st=0,O=1,M=2,de=3,Ve=4,pe=5,Cr=6,to=7,Ze=8,jn=9,Ye=10,K=11,Er=12,Pl=13,qn=14,xe=15,Un=16,An=17,Bn=18,Eo=19,Ld=20,Et=21,Qs=22,Se=23,je=25,Vd=1;var Qt=7,no=8,ro=9,Te=10,io=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(io||{});function bt(t){return Array.isArray(t)&&typeof t[Vd]=="object"}function at(t){return Array.isArray(t)&&t[Vd]===!0}function rc(t){return(t.flags&4)!==0}function bo(t){return t.componentOffset>-1}function Io(t){return(t.flags&1)===1}function It(t){return!!t.template}function pa(t){return(t[M]&512)!==0}var ga=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function jd(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function ct(){return Ud}function Ud(t){return t.type.prototype.ngOnChanges&&(t.setInput=nv),tv}ct.ngInherit=!0;function tv(){let t=$d(this),e=t?.current;if(e){let r=t.previous;if(r===Pn)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function nv(t,e,r,n,i){let o=this.declaredInputs[n],s=$d(t)||rv(t,{previous:Pn,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[o];a[o]=new ga(u&&u.currentValue,r,c===Pn),jd(t,e,i,r)}var Bd="__ngSimpleChanges__";function $d(t){return t[Bd]||null}function rv(t,e){return t[Bd]=e}var kl=null;var Ge=function(t,e,r){kl?.(t,e,r)},iv="svg",ov="math";function Qe(t){for(;Array.isArray(t);)t=t[st];return t}function Hd(t,e){return Qe(e[t])}function Ne(t,e){return Qe(e[t.index])}function zd(t,e){return t.data[e]}function At(t,e){let r=e[t];return bt(r)?r:r[st]}function ic(t){return(t[M]&128)===128}function sv(t){return at(t[de])}function $n(t,e){return e==null?null:t[e]}function Gd(t){t[An]=0}function Wd(t){t[M]&1024||(t[M]|=1024,ic(t)&&Mo(t))}function av(t,e){for(;t>0;)e=e[qn],t--;return e}function br(t){return!!(t[M]&9216||t[Se]?.dirty)}function ma(t){t[Ye].changeDetectionScheduler?.notify(7),t[M]&64&&(t[M]|=1024),br(t)&&Mo(t)}function Mo(t){t[Ye].changeDetectionScheduler?.notify(0);let e=Kt(t);for(;e!==null&&!(e[M]&8192||(e[M]|=8192,!ic(e)));)e=Kt(e)}function qd(t,e){if((t[M]&256)===256)throw new C(911,!1);t[Et]===null&&(t[Et]=[]),t[Et].push(e)}function cv(t,e){if(t[Et]===null)return;let r=t[Et].indexOf(e);r!==-1&&t[Et].splice(r,1)}function Kt(t){let e=t[de];return at(e)?e[de]:e}var k={lFrame:nf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Zd=!1;function uv(){return k.lFrame.elementDepthCount}function lv(){k.lFrame.elementDepthCount++}function dv(){k.lFrame.elementDepthCount--}function Yd(){return k.bindingsEnabled}function Qd(){return k.skipHydrationRootTNode!==null}function fv(t){return k.skipHydrationRootTNode===t}function hv(){k.skipHydrationRootTNode=null}function H(){return k.lFrame.lView}function ae(){return k.lFrame.tView}function ce(){let t=Kd();for(;t!==null&&t.type===64;)t=t.parent;return t}function Kd(){return k.lFrame.currentTNode}function pv(){let t=k.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function on(t,e){let r=k.lFrame;r.currentTNode=t,r.isParent=e}function oc(){return k.lFrame.isParent}function sc(){k.lFrame.isParent=!1}function Jd(){return Zd}function Ll(t){Zd=t}function gv(t){return k.lFrame.bindingIndex=t}function _o(){return k.lFrame.bindingIndex++}function mv(t){let e=k.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function vv(){return k.lFrame.inI18n}function yv(t,e){let r=k.lFrame;r.bindingIndex=r.bindingRootIndex=t,va(e)}function Dv(){return k.lFrame.currentDirectiveIndex}function va(t){k.lFrame.currentDirectiveIndex=t}function wv(t){let e=k.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Xd(t){k.lFrame.currentQueryIndex=t}function Cv(t){let e=t[O];return e.type===2?e.declTNode:e.type===1?t[pe]:null}function ef(t,e,r){if(r&A.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(r&A.Host);)if(i=Cv(o),i===null||(o=o[qn],i.type&10))break;if(i===null)return!1;e=i,t=o}let n=k.lFrame=tf();return n.currentTNode=e,n.lView=t,!0}function ac(t){let e=tf(),r=t[O];k.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function tf(){let t=k.lFrame,e=t===null?null:t.child;return e===null?nf(t):e}function nf(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 rf(){let t=k.lFrame;return k.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var of=rf;function cc(){let t=rf();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 Ev(t){return(k.lFrame.contextLView=av(t,k.lFrame.contextLView))[Ze]}function Zn(){return k.lFrame.selectedIndex}function Jt(t){k.lFrame.selectedIndex=t}function uc(){let t=k.lFrame;return zd(t.tView,t.selectedIndex)}function bv(){return k.lFrame.currentNamespace}var sf=!0;function So(){return sf}function To(t){sf=t}function Iv(t,e,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(n){let s=Ud(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}i&&(r.preOrderHooks??=[]).push(0-t,i),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function xo(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[c]<0&&(t[An]+=65536),(a>14>16&&(t[M]&3)===e&&(t[M]+=16384,Vl(a,o)):Vl(a,o)}var On=-1,Xt=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function _v(t){return t instanceof Xt}function Sv(t){return(t.flags&8)!==0}function Tv(t){return(t.flags&16)!==0}function cf(t){return t!==On}function oo(t){return t&32767}function xv(t){return t>>16}function so(t,e){let r=xv(t),n=e;for(;r>0;)n=n[qn],r--;return n}var ya=!0;function jl(t){let e=ya;return ya=t,e}var Av=256,uf=Av-1,lf=5,Nv=0,We={};function Rv(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(vr)&&(n=r[vr]),n==null&&(n=r[vr]=Nv++);let i=n&uf,o=1<>lf)]|=o}function ao(t,e){let r=df(t,e);if(r!==-1)return r;let n=e[O];n.firstCreatePass&&(t.injectorIndex=e.length,Js(n.data,t),Js(e,null),Js(n.blueprint,null));let i=lc(t,e),o=t.injectorIndex;if(cf(i)){let s=oo(i),a=so(i,e),c=a[O].data;for(let u=0;u<8;u++)e[o+u]=a[s+u]|c[s+u]}return e[o+8]=i,o}function Js(t,e){t.push(0,0,0,0,0,0,0,0,e)}function df(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function lc(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,i=e;for(;i!==null;){if(n=mf(i),n===null)return On;if(r++,i=i[qn],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return On}function Da(t,e,r){Rv(t,e,r)}function Ov(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,i=0;for(;i>20,d=n?a:a+l,h=i?a+l:u;for(let f=d;f=c&&p.type===r)return f}if(i){let f=s[c];if(f&&It(f)&&f.type===r)return c}return null}function Hn(t,e,r,n){let i=t[r],o=e.data;if(_v(i)){let s=i;s.resolving&&dm(lm(o[r]));let a=jl(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?Me(s.injectImpl):null,l=ef(t,n,A.Default);try{i=t[r]=s.factory(void 0,o,t,n),e.firstCreatePass&&r>=n.directiveStart&&Iv(r,o[r],e)}finally{u!==null&&Me(u),jl(a),s.resolving=!1,of()}}return i}function kv(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(vr)?t[vr]:void 0;return typeof e=="number"?e>=0?e&uf:Lv:e}function Ul(t,e,r){let n=1<>lf)]&n)}function Bl(t,e){return!(t&A.Self)&&!(t&A.Host&&e)}var qt=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return pf(this._tNode,this._lView,e,wo(n),r)}};function Lv(){return new qt(ce(),H())}function Ar(t){return yo(()=>{let e=t.prototype.constructor,r=e[Ki]||wa(e),n=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){let o=i[Ki]||wa(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function wa(t){return hd(t)?()=>{let e=wa(ue(t));return e&&e()}:Fn(t)}function Vv(t,e,r,n,i){let o=t,s=e;for(;o!==null&&s!==null&&s[M]&2048&&!(s[M]&512);){let a=gf(o,s,r,n|A.Self,We);if(a!==We)return a;let c=o.parent;if(!c){let u=s[Ld];if(u){let l=u.get(r,We,n);if(l!==We)return l}c=mf(s),s=s[qn]}o=c}return i}function mf(t){let e=t[O],r=e.type;return r===2?e.declTNode:r===1?t[pe]:null}function dc(t){return Ov(ce(),t)}function $l(t,e=null,r=null,n){let i=vf(t,e,r,n);return i.resolveInjectorInitializers(),i}function vf(t,e=null,r=null,n,i=new Set){let o=[r||_e,$m(t)];return n=n||(typeof t=="object"?void 0:le(t)),new wr(o,e||nc(),n||null,i)}var Wt=class Wt{static create(e,r){if(Array.isArray(e))return $l({name:""},r,e,"");{let n=e.name??"";return $l({name:n},e.parent,e.providers,n)}}};Wt.THROW_IF_NOT_FOUND=yr,Wt.NULL=new eo,Wt.\u0275prov=w({token:Wt,providedIn:"any",factory:()=>b(Cd)}),Wt.__NG_ELEMENT_ID__=-1;var Mt=Wt;var jv=new E("");jv.__NG_ELEMENT_ID__=t=>{let e=ce();if(e===null)throw new C(204,!1);if(e.type&2)return e.value;if(t&A.Optional)return null;throw new C(204,!1)};var Uv="ngOriginalError";function Xs(t){return t[Uv]}var rt=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&Xs(e);for(;r&&Xs(r);)r=Xs(r);return r||null}},yf=new E("",{providedIn:"root",factory:()=>m(rt).handleError.bind(void 0)}),Df=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Bv,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),Ca=class extends Df{constructor(e){super(),this._lView=e}onDestroy(e){return qd(this._lView,e),()=>cv(this._lView,e)}};function Bv(){return new Ca(H())}function $v(){return Ao(ce(),H())}function Ao(t,e){return new Ke(Ne(t,e))}var Ke=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=$v;let t=e;return t})();var Nt=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ne(!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.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var Ea=class extends ee{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,Xm()&&(this.destroyRef=m(Df,{optional:!0})??void 0,this.pendingTasks=m(Nt,{optional:!0})??void 0)}emit(e){let r=L(null);try{super.next(e)}finally{L(r)}}subscribe(e,r,n){let i=e,o=r||(()=>null),s=n;if(e&&typeof e=="object"){let c=e;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof X&&e.add(a),a}wrapInTimeout(e){return r=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(r),n!==void 0&&this.pendingTasks?.remove(n)})}}},Q=Ea;function wf(t){return(t.flags&128)===128}var Cf=new Map,Hv=0;function zv(){return Hv++}function Gv(t){Cf.set(t[Eo],t)}function Wv(t){Cf.delete(t[Eo])}var Hl="__ngContext__";function _t(t,e){bt(e)?(t[Hl]=e[Eo],Gv(e)):t[Hl]=e}function Ef(t){return If(t[Er])}function bf(t){return If(t[Ve])}function If(t){for(;t!==null&&!at(t);)t=t[Ve];return t}var ba;function Mf(t){ba=t}function _f(){if(ba!==void 0)return ba;if(typeof document<"u")return document;throw new C(210,!1)}var fc=new E("",{providedIn:"root",factory:()=>qv}),qv="ng",hc=new E(""),Rt=new E("",{providedIn:"platform",factory:()=>"unknown"});var pc=new E("",{providedIn:"root",factory:()=>_f().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Zv="h",Yv="b";var Qv=()=>null;function gc(t,e,r=!1){return Qv(t,e,r)}var Sf=!1,Kv=new E("",{providedIn:"root",factory:()=>Sf});var Bi;function Jv(){if(Bi===void 0&&(Bi=null,Zt.trustedTypes))try{Bi=Zt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Bi}function No(t){return Jv()?.createHTML(t)||t}var $i;function Tf(){if($i===void 0&&($i=null,Zt.trustedTypes))try{$i=Zt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return $i}function zl(t){return Tf()?.createHTML(t)||t}function Gl(t){return Tf()?.createScriptURL(t)||t}var it=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${fd})`}},Ia=class extends it{getTypeName(){return"HTML"}},Ma=class extends it{getTypeName(){return"Style"}},_a=class extends it{getTypeName(){return"Script"}},Sa=class extends it{getTypeName(){return"URL"}},Ta=class extends it{getTypeName(){return"ResourceURL"}};function Be(t){return t instanceof it?t.changingThisBreaksApplicationSecurity:t}function ut(t,e){let r=Xv(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${fd})`)}return r===e}function Xv(t){return t instanceof it&&t.getTypeName()||null}function xf(t){return new Ia(t)}function Af(t){return new Ma(t)}function Nf(t){return new _a(t)}function Rf(t){return new Sa(t)}function Of(t){return new Ta(t)}function ey(t){let e=new Aa(t);return ty()?new xa(e):e}var xa=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let r=new window.DOMParser().parseFromString(No(e),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(e):(r.removeChild(r.firstChild),r)}catch{return null}}},Aa=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let r=this.inertDocument.createElement("template");return r.innerHTML=No(e),r}};function ty(){try{return!!new window.DOMParser().parseFromString(No(""),"text/html")}catch{return!1}}var ny=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ro(t){return t=String(t),t.match(ny)?t:"unsafe:"+t}function lt(t){let e={};for(let r of t.split(","))e[r]=!0;return e}function Nr(...t){let e={};for(let r of t)for(let n in r)r.hasOwnProperty(n)&&(e[n]=!0);return e}var Ff=lt("area,br,col,hr,img,wbr"),Pf=lt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),kf=lt("rp,rt"),ry=Nr(kf,Pf),iy=Nr(Pf,lt("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")),oy=Nr(kf,lt("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")),Wl=Nr(Ff,iy,oy,ry),Lf=lt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),sy=lt("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"),ay=lt("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"),cy=Nr(Lf,sy,ay),uy=lt("script,style,template"),Na=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let r=e.firstChild,n=!0,i=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?n=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,n&&r.firstChild){i.push(r),r=fy(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=dy(r);if(o){r=o;break}r=i.pop()}}return this.buf.join("")}startElement(e){let r=ql(e).toLowerCase();if(!Wl.hasOwnProperty(r))return this.sanitizedSomething=!0,!uy.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let n=e.attributes;for(let i=0;i"),!0}endElement(e){let r=ql(e).toLowerCase();Wl.hasOwnProperty(r)&&!Ff.hasOwnProperty(r)&&(this.buf.push(""))}chars(e){this.buf.push(Zl(e))}};function ly(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function dy(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw Vf(e);return e}function fy(t){let e=t.firstChild;if(e&&ly(t,e))throw Vf(e);return e}function ql(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function Vf(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var hy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,py=/([^\#-~ |!])/g;function Zl(t){return t.replace(/&/g,"&").replace(hy,function(e){let r=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((r-55296)*1024+(n-56320)+65536)+";"}).replace(py,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var Hi;function mc(t,e){let r=null;try{Hi=Hi||ey(t);let n=e?String(e):"";r=Hi.getInertBodyElement(n);let i=5,o=n;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,n=o,o=r.innerHTML,r=Hi.getInertBodyElement(n)}while(n!==o);let a=new Na().sanitizeChildren(Yl(r)||r);return No(a)}finally{if(r){let n=Yl(r)||r;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function Yl(t){return"content"in t&&gy(t)?t.content:null}function gy(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var $e=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}($e||{});function Oo(t){let e=vc();return e?zl(e.sanitize($e.HTML,t)||""):ut(t,"HTML")?zl(Be(t)):mc(_f(),Tr(t))}function my(t){let e=vc();return e?e.sanitize($e.URL,t)||"":ut(t,"URL")?Be(t):Ro(Tr(t))}function vy(t){let e=vc();if(e)return Gl(e.sanitize($e.RESOURCE_URL,t)||"");if(ut(t,"ResourceURL"))return Gl(Be(t));throw new C(904,!1)}function yy(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?vy:my}function jf(t,e,r){return yy(e,r)(t)}function vc(){let t=H();return t&&t[Ye].sanitizer}var Dy=/^>|^->||--!>|)/g,Cy="\u200B$1\u200B";function Ey(t){return t.replace(Dy,e=>e.replace(wy,Cy))}function Uf(t){return t instanceof Function?t():t}var ot=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(ot||{}),by;function yc(t,e){return by(t,e)}function Nn(t,e,r,n,i){if(n!=null){let o,s=!1;at(n)?o=n:bt(n)&&(s=!0,n=n[st]);let a=Qe(n);t===0&&r!==null?i==null?Wf(e,r,a):co(e,r,a,i||null,!0):t===1&&r!==null?co(e,r,a,i||null,!0):t===2?Vy(e,a,s):t===3&&e.destroyNode(a),o!=null&&Uy(e,t,o,r,i)}}function Iy(t,e){return t.createText(e)}function My(t,e,r){t.setValue(e,r)}function _y(t,e){return t.createComment(Ey(e))}function Bf(t,e,r){return t.createElement(e,r)}function Sy(t,e){$f(t,e),e[st]=null,e[pe]=null}function Ty(t,e,r,n,i,o){n[st]=i,n[pe]=e,Po(t,n,r,1,i,o)}function $f(t,e){e[Ye].changeDetectionScheduler?.notify(8),Po(t,e,e[K],2,null,null)}function xy(t){let e=t[Er];if(!e)return ea(t[O],t);for(;e;){let r=null;if(bt(e))r=e[Er];else{let n=e[Te];n&&(r=n)}if(!r){for(;e&&!e[Ve]&&e!==t;)bt(e)&&ea(e[O],e),e=e[de];e===null&&(e=t),bt(e)&&ea(e[O],e),r=e&&e[Ve]}e=r}}function Ay(t,e,r,n){let i=Te+n,o=r.length;n>0&&(r[i-1][Ve]=e),n0&&(t[r-1][Ve]=n[Ve]);let o=Xi(t,Te+e);Sy(n[O],n);let s=o[Bn];s!==null&&s.detachView(o[O]),n[de]=null,n[Ve]=null,n[M]&=-129}return n}function zf(t,e){if(!(e[M]&256)){let r=e[K];r.destroyNode&&Po(t,e,r,3,null,null),xy(e)}}function ea(t,e){if(e[M]&256)return;let r=L(null);try{e[M]&=-129,e[M]|=256,e[Se]&&_s(e[Se]),Ry(t,e),Ny(t,e),e[O].type===1&&e[K].destroy();let n=e[Un];if(n!==null&&at(e[de])){n!==e[de]&&Dc(n,e);let i=e[Bn];i!==null&&i.detachView(t)}Wv(e)}finally{L(r)}}function Ny(t,e){let r=t.cleanup,n=e[to];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(e[to]=null);let i=e[Et];if(i!==null){e[Et]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[n.directiveStart+i];if(o===qe.None||o===qe.Emulated)return null}return Ne(n,r)}}function co(t,e,r,n,i){t.insertBefore(e,r,n,i)}function Wf(t,e,r){t.appendChild(e,r)}function Ql(t,e,r,n,i){n!==null?co(t,e,r,n,i):Wf(t,e,r)}function Fy(t,e,r,n){t.removeChild(e,r,n)}function wc(t,e){return t.parentNode(e)}function Py(t,e){return t.nextSibling(e)}function qf(t,e,r){return Ly(t,e,r)}function ky(t,e,r){return t.type&40?Ne(t,r):null}var Ly=ky,Kl;function Fo(t,e,r,n){let i=Gf(t,n,e),o=e[K],s=n.parent||e[pe],a=qf(s,n,e);if(i!=null)if(Array.isArray(r))for(let c=0;cje&&Jf(t,e,je,!1),Ge(s?2:0,i),r(n,i)}finally{Jt(o),Ge(s?3:1,i)}}function Ec(t,e,r){if(rc(e)){let n=L(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function Yy(t,e,r,n,i,o){let s=e?e.injectorIndex:-1,a=0;return Qd()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,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 Jl(t,e,r,n,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,c=Ln.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=o;if(i!==null){if(!i.hasOwnProperty(o))continue;u=i[o]}t===0?Xl(n,r,u,a,c):Xl(n,r,u,a)}return n}function Xl(t,e,r,n,i){let o;t.hasOwnProperty(r)?(o=t[r]).push(e,n):o=t[r]=[e,n],i!==void 0&&o.push(i)}function Qy(t,e,r){let n=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],c=null,u=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function tD(t,e,r,n){let i=r.directiveStart,o=r.directiveEnd;bo(r)&&cD(e,r,t.data[i+r.componentOffset]),t.firstCreatePass||ao(r,e),_t(n,e);let s=r.initialInputs;for(let a=i;a{Mo(t.lView)},consumerOnSignalRead(){this.lView[Se]=this}});function ID(t){let e=t[Se]??Object.create(MD);return e.lView=t,e}var MD=F(g({},bs),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=Kt(t.lView);for(;e&&!fh(e[O]);)e=Kt(e);e&&Wd(e)},consumerOnSignalRead(){this.lView[Se]=this}});function fh(t){return t.type!==2}var _D=100;function hh(t,e=!0,r=0){let n=t[Ye],i=n.rendererFactory,o=!1;o||i.begin?.();try{SD(t,r)}catch(s){throw e&&ch(t,s),s}finally{o||(i.end?.(),n.inlineEffectRunner?.flush())}}function SD(t,e){let r=Jd();try{Ll(!0),La(t,e);let n=0;for(;br(t);){if(n===_D)throw new C(103,!1);n++,La(t,1)}}finally{Ll(r)}}function TD(t,e,r,n){let i=e[M];if((i&256)===256)return;let o=!1,s=!1;!o&&e[Ye].inlineEffectRunner?.flush(),ac(e);let a=!0,c=null,u=null;o||(fh(t)?(u=wD(e),c=Is(u)):Ju()===null?(a=!1,u=ID(e),c=Is(u)):e[Se]&&(_s(e[Se]),e[Se]=null));try{Gd(e),gv(t.bindingStartIndex),r!==null&&th(t,e,r,2,n);let l=(i&3)===3;if(!o)if(l){let f=t.preOrderCheckHooks;f!==null&&qi(e,f,null)}else{let f=t.preOrderHooks;f!==null&&Zi(e,f,0,null),Ks(e,0)}if(s||xD(e),ph(e,0),t.contentQueries!==null&&ah(t,e),!o)if(l){let f=t.contentCheckHooks;f!==null&&qi(e,f)}else{let f=t.contentHooks;f!==null&&Zi(e,f,1),Ks(e,1)}Hy(t,e);let d=t.components;d!==null&&mh(e,d,0);let h=t.viewQuery;if(h!==null&&Pa(2,h,n),!o)if(l){let f=t.viewCheckHooks;f!==null&&qi(e,f)}else{let f=t.viewHooks;f!==null&&Zi(e,f,2),Ks(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Qs]){for(let f of e[Qs])f();e[Qs]=null}o||(e[M]&=-73)}catch(l){throw o||Mo(e),l}finally{u!==null&&(Xu(u,c),a&&ED(u)),cc()}}function ph(t,e){for(let r=Ef(t);r!==null;r=bf(r))for(let n=Te;n-1&&(Ra(e,n),Xi(r,n))}this._attachedToViewContainer=!1}zf(this._lView[O],this._lView)}onDestroy(e){qd(this._lView,e)}markForCheck(){xc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[M]&=-129}reattach(){ma(this._lView),this._lView[M]|=128}detectChanges(){this._lView[M]|=1024,hh(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=pa(this._lView),r=this._lView[Un];r!==null&&!e&&Dc(r,this._lView),$f(this._lView[O],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=e;let r=pa(this._lView),n=this._lView[Un];n!==null&&!r&&Hf(n,this._lView),ma(this._lView)}},Rr=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=OD;let t=e;return t})(),ND=Rr,RD=class extends ND{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let i=uh(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new en(i)}};function OD(){return FD(ce(),H())}function FD(t,e){return t.type&4?new RD(e,t,Ao(t,e)):null}var Vx=new RegExp(`^(\\d+)*(${Yv}|${Zv})*(.*)`);var PD=()=>null;function Va(t,e){return PD(t,e)}var Ir=class{},vh=new E("",{providedIn:"root",factory:()=>!1});var yh=new E(""),ja=class{},lo=class{};function kD(t){let e=Error(`No component factory found for ${le(t)}.`);return e[LD]=t,e}var LD="ngComponent";var Ua=class{resolveComponentFactory(e){throw kD(e)}},Uc=class Uc{};Uc.NULL=new Ua;var zn=Uc,Gn=class{},sn=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>VD();let t=e;return t})();function VD(){let t=H(),e=ce(),r=At(e.index,t);return(bt(r)?r:t)[K]}var jD=(()=>{let e=class e{};e.\u0275prov=w({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),ta={};var ed=new Set;function Ac(t){ed.has(t)||(ed.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Dh(t){let e=!0;return setTimeout(()=>{e&&(e=!1,t())}),typeof Zt.requestAnimationFrame=="function"&&Zt.requestAnimationFrame(()=>{e&&(e=!1,t())}),()=>{e=!1}}function td(t){let e=!0;return queueMicrotask(()=>{e&&t()}),()=>{e=!1}}function nd(...t){}var W=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Q(!1),this.onMicrotaskEmpty=new Q(!1),this.onStable=new Q(!1),this.onError=new Q(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.callbackScheduled=!1,$D(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new C(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,UD,nd,nd);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},UD={};function Nc(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 BD(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{Dh(()=>{t.callbackScheduled=!1,Ba(t),t.isCheckStableRunning=!0,Nc(t),t.isCheckStableRunning=!1})}),Ba(t))}function $D(t){let e=()=>{BD(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(HD(a))return r.invokeTask(i,o,s,a);try{return rd(t),r.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),id(t)}},onInvoke:(r,n,i,o,s,a,c)=>{try{return rd(t),r.invoke(i,o,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!zD(a)&&e(),id(t)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,Ba(t),Nc(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function Ba(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function rd(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function id(t){t._nesting--,Nc(t)}var $a=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Q,this.onMicrotaskEmpty=new Q,this.onStable=new Q,this.onError=new Q}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,i){return e.apply(r,n)}};function HD(t){return wh(t,"__ignore_ng_zone__")}function zD(t){return wh(t,"__scheduler_tick__")}function wh(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var Ch=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of n)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function fo(t,e,r){let n=r?t.styles:null,i=r?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&Qf(t,r,o.join(" "))}}function KD(t,e,r){let n=t.projection=[];for(let i=0;i{let e=class e{};e.__NG_ELEMENT_ID__=XD;let t=e;return t})();function XD(){let t=ce();return tw(t,H())}var ew=Or,Eh=class extends ew{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return Ao(this._hostTNode,this._hostLView)}get injector(){return new qt(this._hostTNode,this._hostLView)}get parentInjector(){let e=lc(this._hostTNode,this._hostLView);if(cf(e)){let r=so(e,this._hostLView),n=oo(e),i=r[O].data[n+8];return new qt(i,r)}else return new qt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=sd(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Te}createEmbeddedView(e,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=Va(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,ka(this._hostTNode,s)),a}createComponent(e,r,n,i,o){let s=e&&!ev(e),a;if(s)a=r;else{let p=r||{};a=p.index,n=p.injector,i=p.projectableNodes,o=p.environmentInjector||p.ngModuleRef}let c=s?e:new Mr(Yt(e)),u=n||this.parentInjector;if(!o&&c.ngModule==null){let D=(s?u:this.parentInjector).get(he,null);D&&(o=D)}let l=Yt(c.componentType??{}),d=Va(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,i,h,o);return this.insertImpl(f.hostView,a,ka(this._hostTNode,d)),f}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let i=e._lView;if(sv(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=i[de],u=new Eh(c,c[pe],c[de]);u.detach(u.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return lh(s,i,o,n),e.attachToViewContainerRef(),wd(na(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=sd(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Ra(this._lContainer,r);n&&(Xi(na(this._lContainer),r),zf(n[O],n))}detach(e){let r=this._adjustIndex(e,-1),n=Ra(this._lContainer,r);return n&&Xi(na(this._lContainer),r)!=null?new en(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function sd(t){return t[no]}function na(t){return t[no]||(t[no]=[])}function tw(t,e){let r,n=e[t.index];return at(n)?r=n:(r=sh(n,e,null,t),e[t.index]=r,Lo(e,r)),rw(r,e,t,n),new Eh(r,t,e)}function nw(t,e){let r=t[K],n=r.createComment(""),i=Ne(e,t),o=wc(r,i);return co(r,o,n,Py(r,i),!1),n}var rw=sw,iw=()=>!1;function ow(t,e,r){return iw(t,e,r)}function sw(t,e,r,n){if(t[Qt])return;let i;r.type&8?i=Qe(n):i=nw(e,r),t[Qt]=i}function aw(t){return typeof t=="function"&&t[Es]!==void 0}function bh(t){return aw(t)&&typeof t.set=="function"}function cw(t){return Object.getPrototypeOf(t.prototype).constructor}function Kn(t){let e=cw(t.type),r=!0,n=[t];for(;e;){let i;if(It(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new C(903,!1);i=e.\u0275dir}if(i){if(r){n.push(i);let s=t;s.inputs=zi(t.inputs),s.inputTransforms=zi(t.inputTransforms),s.declaredInputs=zi(t.declaredInputs),s.outputs=zi(t.outputs);let a=i.hostBindings;a&&hw(t,a);let c=i.viewQuery,u=i.contentQueries;if(c&&dw(t,c),u&&fw(t,u),uw(t,i),nm(t.outputs,i.outputs),It(i)&&i.data.animation){let l=t.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;n--){let i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=Dr(i.hostAttrs,r=Dr(r,i.hostAttrs))}}function zi(t){return t===Pn?{}:t===_e?[]:t}function dw(t,e){let r=t.viewQuery;r?t.viewQuery=(n,i)=>{e(n,i),r(n,i)}:t.viewQuery=e}function fw(t,e){let r=t.contentQueries;r?t.contentQueries=(n,i,o)=>{e(n,i,o),r(n,i,o)}:t.contentQueries=e}function hw(t,e){let r=t.hostBindings;r?t.hostBindings=(n,i)=>{e(n,i),r(n,i)}:t.hostBindings=e}function Fr(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];Array.isArray(i)&&i[3]&&(r[n]=i[3])}t.inputTransforms=r}var St=class{},_r=class{};var Ga=class extends St{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ho(this);let i=Ad(e);this._bootstrapComponents=Uf(i.bootstrap),this._r3Injector=vf(e,r,[{provide:St,useValue:this},{provide:zn,useValue:this.componentFactoryResolver},...n],le(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(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Wa=class extends _r{constructor(e){super(),this.moduleType=e}create(e){return new Ga(this.moduleType,e,[])}};var po=class extends St{constructor(e){super(),this.componentFactoryResolver=new ho(this),this.instance=null;let r=new wr([...e.providers,{provide:St,useValue:this},{provide:zn,useValue:this.componentFactoryResolver}],e.parent||nc(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Rc(t,e,r=null){return new po({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function Pr(t,e,r){let n=t[e];return Object.is(n,r)?!1:(t[e]=r,!0)}function pw(t){return(t.flags&32)===32}function gw(t,e,r,n,i,o,s,a,c){let u=e.consts,l=Qn(e,t,4,s||null,a||null);_c(e,r,l,$n(u,c)),xo(e,l);let d=l.tView=Mc(2,l,n,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u,null);return e.queries!==null&&(e.queries.template(e,l),d.queries=e.queries.embeddedTView(l)),l}function Ih(t,e,r,n,i,o,s,a,c,u){let l=r+je,d=e.firstCreatePass?gw(l,e,t,n,i,o,s,a,c):e.data[l];on(d,!1);let h=mw(e,t,d,r);So()&&Fo(e,t,h,d),_t(h,t);let f=sh(h,t,h,d);return t[l]=f,Lo(t,f),ow(f,d,t),Io(d)&&bc(e,t,d),c!=null&&Ic(t,d,u),d}function Vo(t,e,r,n,i,o,s,a){let c=H(),u=ae(),l=$n(u.consts,o);return Ih(c,u,t,e,r,n,i,l,s,a),Vo}var mw=vw;function vw(t,e,r,n){return To(!0),e[K].createComment("")}function an(t,e,r,n){let i=H(),o=_o();if(Pr(i,o,e)){let s=ae(),a=uc();uD(a,i,t,e,r,n)}return an}function yw(t,e,r,n){return Pr(t,_o(),r)?e+Tr(r)+n:Yn}function Gi(t,e){return t<<17|e<<2}function tn(t){return t>>17&32767}function Dw(t){return(t&2)==2}function ww(t,e){return t&131071|e<<17}function qa(t){return t|2}function Wn(t){return(t&131068)>>2}function ra(t,e){return t&-131069|e<<2}function Cw(t){return(t&1)===1}function Za(t){return t|1}function Ew(t,e,r,n,i,o){let s=o?e.classBindings:e.styleBindings,a=tn(s),c=Wn(s);t[n]=r;let u=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||xr(d,l)>0)&&(u=!0)}else l=r;if(i)if(c!==0){let h=tn(t[a+1]);t[n+1]=Gi(h,a),h!==0&&(t[h+1]=ra(t[h+1],n)),t[a+1]=ww(t[a+1],n)}else t[n+1]=Gi(a,0),a!==0&&(t[a+1]=ra(t[a+1],n)),a=n;else t[n+1]=Gi(c,0),a===0?a=n:t[c+1]=ra(t[c+1],n),c=n;u&&(t[n+1]=qa(t[n+1])),ad(t,l,n,!0),ad(t,l,n,!1),bw(e,l,t,n,o),s=Gi(a,c),o?e.classBindings=s:e.styleBindings=s}function bw(t,e,r,n,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&xr(o,e)>=0&&(r[n+1]=Za(r[n+1]))}function ad(t,e,r,n){let i=t[r+1],o=e===null,s=n?tn(i):Wn(i),a=!1;for(;s!==0&&(a===!1||o);){let c=t[s],u=t[s+1];Iw(c,e)&&(a=!0,t[s+1]=n?Za(u):qa(u)),s=n?tn(u):Wn(u)}a&&(t[r+1]=n?qa(i):Za(i))}function Iw(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?xr(t,e)>=0:!1}function we(t,e,r){let n=H(),i=_o();if(Pr(n,i,e)){let o=ae(),s=uc();rh(o,s,n,t,e,n[K],r,!1)}return we}function cd(t,e,r,n,i){let o=e.inputs,s=i?"class":"style";Sc(t,r,o[s],s,n)}function jo(t,e,r){return Mh(t,e,r,!1),jo}function Oc(t,e){return Mh(t,e,null,!0),Oc}function Mh(t,e,r,n){let i=H(),o=ae(),s=mv(2);if(o.firstUpdatePass&&_w(o,t,s,n),e!==Yn&&Pr(i,s,e)){let a=o.data[Zn()];Nw(o,a,i,i[K],t,i[s+1]=Rw(e,r),n,s)}}function Mw(t,e){return e>=t.expandoStartIndex}function _w(t,e,r,n){let i=t.data;if(i[r+1]===null){let o=i[Zn()],s=Mw(t,r);Ow(o,n)&&e===null&&!s&&(e=!1),e=Sw(i,o,e,n),Ew(i,o,e,r,s,n)}}function Sw(t,e,r,n){let i=wv(t),o=n?e.residualClasses:e.residualStyles;if(i===null)(n?e.classBindings:e.styleBindings)===0&&(r=ia(null,t,e,r,n),r=Sr(r,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(r=ia(i,t,e,r,n),o===null){let c=Tw(t,e,n);c!==void 0&&Array.isArray(c)&&(c=ia(null,t,e,c[1],n),c=Sr(c,e.attrs,n),xw(t,e,n,c))}else o=Aw(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),r}function Tw(t,e,r){let n=r?e.classBindings:e.styleBindings;if(Wn(n)!==0)return t[tn(n)]}function xw(t,e,r,n){let i=r?e.classBindings:e.styleBindings;t[tn(i)]=n}function Aw(t,e,r){let n,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let c=t[i],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=r[i+1];h===Yn&&(h=d?_e:void 0);let f=d?Zs(h,n):l===n?h:void 0;if(u&&!go(f)&&(f=Zs(c,n)),go(f)&&(a=f,s))return a;let p=t[i+1];i=s?tn(p):Wn(p)}if(e!==null){let c=o?e.residualClasses:e.residualStyles;c!=null&&(a=Zs(c,n))}return a}function go(t){return t!==void 0}function Rw(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=le(Be(t)))),t}function Ow(t,e){return(t.flags&(e?8:16))!==0}function Fw(t,e,r,n,i,o){let s=e.consts,a=$n(s,i),c=Qn(e,t,2,n,a);return _c(e,r,c,$n(s,o)),c.attrs!==null&&fo(c,c.attrs,!1),c.mergedAttrs!==null&&fo(c,c.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,c),c}function j(t,e,r,n){let i=H(),o=ae(),s=je+t,a=i[K],c=o.firstCreatePass?Fw(s,o,i,e,r,n):o.data[s],u=Pw(o,i,c,a,e,t);i[s]=u;let l=Io(c);return on(c,!0),Kf(a,u,c),!pw(c)&&So()&&Fo(o,i,u,c),uv()===0&&_t(u,i),lv(),l&&(bc(o,i,c),Ec(o,c,i)),n!==null&&Ic(i,c),j}function U(){let t=ce();oc()?sc():(t=t.parent,on(t,!1));let e=t;fv(e)&&hv(),dv();let r=ae();return r.firstCreatePass&&(xo(r,t),rc(t)&&r.queries.elementEnd(t)),e.classesWithoutHost!=null&&Sv(e)&&cd(r,e,H(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&Tv(e)&&cd(r,e,H(),e.stylesWithoutHost,!1),U}function Re(t,e,r,n){return j(t,e,r,n),U(),Re}var Pw=(t,e,r,n,i,o)=>(To(!0),Bf(n,i,bv()));function kw(t,e,r,n,i){let o=e.consts,s=$n(o,n),a=Qn(e,t,8,"ng-container",s);s!==null&&fo(a,s,!0);let c=$n(o,i);return _c(e,r,a,c),e.queries!==null&&e.queries.elementStart(e,a),a}function Fc(t,e,r){let n=H(),i=ae(),o=t+je,s=i.firstCreatePass?kw(o,i,n,e,r):i.data[o];on(s,!0);let a=Lw(i,n,s,t);return n[o]=a,So()&&Fo(i,n,a,s),_t(a,n),Io(s)&&(bc(i,n,s),Ec(i,s,n)),r!=null&&Ic(n,s),Fc}function Pc(){let t=ce(),e=ae();return oc()?sc():(t=t.parent,on(t,!1)),e.firstCreatePass&&(xo(e,t),rc(t)&&e.queries.elementEnd(t)),Pc}var Lw=(t,e,r,n)=>(To(!0),_y(e[K],""));var mo="en-US";var Vw=mo;function jw(t){typeof t=="string"&&(Vw=t.toLowerCase().replace(/_/g,"-"))}var Uw=(t,e,r)=>{};function cn(t,e,r,n){let i=H(),o=ae(),s=ce();return _h(o,i,i[K],s,t,e,n),cn}function Bw(t,e,r,n){let i=t.cleanup;if(i!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function _h(t,e,r,n,i,o,s){let a=Io(n),u=t.firstCreatePass&&pD(t),l=e[Ze],d=hD(e),h=!0;if(n.type&3||s){let D=Ne(n,e),v=s?s(D):D,y=d.length,G=s?B=>s(Qe(B[n.index])):n.index,z=null;if(!s&&a&&(z=Bw(t,e,i,n.index)),z!==null){let B=z.__ngLastListenerFn__||z;B.__ngNextListenerFn__=o,z.__ngLastListenerFn__=o,h=!1}else{o=dd(n,e,l,o),Uw(D,i,o);let B=r.listen(v,i,o);d.push(o,B),u&&u.push(i,G,y,y+1)}}else o=dd(n,e,l,o);let f=n.outputs,p;if(h&&f!==null&&(p=f[i])){let D=p.length;if(D)for(let v=0;v-1?At(t.index,e):e;xc(s,5);let a=ld(e,r,n,o),c=i.__ngNextListenerFn__;for(;c;)a=ld(e,r,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function kr(t=1){return Ev(t)}function $w(t,e){let r=null,n=Rm(t);for(let i=0;i(To(!0),Iy(e[K],n));function kc(t){return xh("",t,""),kc}function xh(t,e,r){let n=H(),i=yw(n,t,e,r);return i!==Yn&&gD(n,Zn(),i),xh}function Ot(t,e,r){bh(e)&&(e=e());let n=H(),i=_o();if(Pr(n,i,e)){let o=ae(),s=uc();rh(o,s,n,t,e,n[K],r,!1)}return Ot}function un(t,e){let r=bh(t);return r&&t.set(e),r}function Ft(t,e){let r=H(),n=ae(),i=ce();return _h(n,r,r[K],i,t,e),Ft}function Gw(t,e,r){let n=ae();if(n.firstCreatePass){let i=It(t);Ya(r,n.data,n.blueprint,i,!0),Ya(e,n.data,n.blueprint,i,!1)}}function Ya(t,e,r,n,i){if(t=ue(t),Array.isArray(t))for(let o=0;o>20;if(Vn(t)||!t.multi){let f=new Xt(u,i,T),p=sa(c,e,i?l:l+h,d);p===-1?(Da(ao(a,s),o,c),oa(o,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(f),s.push(f)):(r[p]=f,s[p]=f)}else{let f=sa(c,e,l+h,d),p=sa(c,e,l,l+h),D=f>=0&&r[f],v=p>=0&&r[p];if(i&&!v||!i&&!D){Da(ao(a,s),o,c);let y=Zw(i?qw:Ww,r.length,i,n,u);!i&&v&&(r[p].providerFactory=y),oa(o,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(y),s.push(y)}else{let y=Ah(r[i?p:f],u,!i&&n);oa(o,t,f>-1?f:p,y)}!i&&n&&v&&r[p].componentProviders++}}}function oa(t,e,r,n){let i=Vn(e),o=Wm(e);if(i||o){let c=(o?ue(e.useClass):e).prototype.ngOnDestroy;if(c){let u=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let l=u.indexOf(r);l===-1?u.push(r,[n,c]):u[l+1].push(n,c)}else u.push(r,c)}}}function Ah(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function sa(t,e,r,n){for(let i=r;i{r.providersResolver=(n,i)=>Gw(n,i?i(t):t,e)}}var Yw=(()=>{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 i=Od(!1,n.type),o=i.length>0?Rc([i],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=w({token:e,providedIn:"environment",factory:()=>new e(b(he))});let t=e;return t})();function Oe(t){Ac("NgStandalone"),t.getStandaloneInjector=e=>e.get(Yw).getOrCreateStandaloneInjector(t)}var Uo=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var Nh=new E("");function ln(t){return!!t&&typeof t.then=="function"}function Rh(t){return!!t&&typeof t.subscribe=="function"}var Oh=new E(""),Fh=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=m(Oh,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(ln(s))n.push(s);else if(Rh(s)){let a=new Promise((c,u)=>{s.subscribe({complete:c,error:u})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Bo=new E("");function Qw(){el(()=>{throw new C(600,!1)})}function Kw(t){return t.isBoundToModule}var Jw=10;function Xw(t,e,r){try{let n=r();return ln(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var dn=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=m(yf),this.afterRenderEffectManager=m(Ch),this.zonelessEnabled=m(vh),this.externalTestViews=new Set,this.beforeRender=new ee,this.afterTick=new ee,this.componentTypes=[],this.components=[],this.isStable=m(Nt).hasPendingTasks.pipe(S(n=>!n)),this._injector=m(he)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof lo;if(!this._injector.get(Fh).done){let f=!o&&xd(n),p=!1;throw new C(405,p)}let a;o?a=n:a=this._injector.get(zn).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=Kw(a)?void 0:this._injector.get(St),u=i||a.selector,l=a.create(Mt.NULL,[],u,c),d=l.location.nativeElement,h=l.injector.get(Nh,null);return h?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),aa(this.components,l),h?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new C(101,!1);let i=L(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,L(i),this.afterTick.next()}}detectChangesInAttachedViews(n){let i=null;this._injector.destroyed||(i=this._injector.get(Gn,null,{optional:!0}));let o=0,s=this.afterRenderEffectManager;for(;obr(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>br(c))))break}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;aa(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(Bo,[]);[...this._bootstrapListeners,...i].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),()=>aa(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new C(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function aa(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function eC(t,e,r,n){if(!r&&!br(t))return;hh(t,e,r&&!n?0:1)}var Ka=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},Lc=(()=>{let e=class e{compileModuleSync(n){return new Wa(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=Ad(n),s=Uf(o.declarations).reduce((a,c)=>{let u=Yt(c);return u&&a.push(new Mr(u)),a},[]);return new Ka(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var tC=(()=>{let e=class e{constructor(){this.zone=m(W),this.changeDetectionScheduler=m(Ir),this.applicationRef=m(dn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function nC({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new W(iC()),[{provide:W,useFactory:t},{provide:kn,multi:!0,useFactory:()=>{let r=m(tC,{optional:!0});return()=>r.initialize()}},{provide:kn,multi:!0,useFactory:()=>{let r=m(oC);return()=>{r.initialize()}}},{provide:yf,useFactory:rC},e===!0?{provide:yh,useValue:!0}:[]]}function rC(){let t=m(W),e=m(rt);return r=>t.runOutsideAngular(()=>e.handleError(r))}function iC(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var oC=(()=>{let e=class e{constructor(){this.subscription=new X,this.initialized=!1,this.zone=m(W),this.pendingTasks=m(Nt)}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(()=>{W.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{W.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var sC=(()=>{let e=class e{constructor(){this.appRef=m(dn),this.taskService=m(Nt),this.ngZone=m(W),this.zonelessEnabled=m(vh),this.disableScheduling=m(yh,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new X,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof $a||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?td:Dh;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&W.isInAngularZone())}tick(n){if(this.runningTick||this.appRef.destroyed)return;let i=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(i),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,td(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(i)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function aC(){return typeof $localize<"u"&&$localize.locale||mo}var Vc=new E("",{providedIn:"root",factory:()=>m(Vc,A.Optional|A.SkipSelf)||aC()});var Ph=new E("");var Qi=null;function cC(t=[],e){return Mt.create({name:e,providers:[{provide:Co,useValue:"platform"},{provide:Ph,useValue:new Set([()=>Qi=null])},...t]})}function uC(t=[]){if(Qi)return Qi;let e=cC(t);return Qi=e,Qw(),lC(e),e}function lC(t){t.get(hc,null)?.forEach(r=>r())}var dt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=dC;let t=e;return t})();function dC(t){return fC(ce(),H(),(t&16)===16)}function fC(t,e,r){if(bo(t)&&!r){let n=At(t.index,e);return new en(n,n)}else if(t.type&47){let n=e[xe];return new en(n,e)}return null}function kh(t){try{let{rootComponent:e,appProviders:r,platformProviders:n}=t,i=uC(n),o=[nC({}),{provide:Ir,useExisting:sC},...r||[]],a=new po({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,c=a.get(W);return c.run(()=>{a.resolveInjectorInitializers();let u=a.get(rt,null),l;c.runOutsideAngular(()=>{l=c.onError.subscribe({next:f=>{u.handleError(f)}})});let d=()=>a.destroy(),h=i.get(Ph);return h.add(d),a.onDestroy(()=>{l.unsubscribe(),h.delete(d)}),Xw(u,c,()=>{let f=a.get(Fh);return f.runInitializers(),f.donePromise.then(()=>{let p=a.get(Vc,mo);jw(p||mo);let D=a.get(dn);return e!==void 0&&D.bootstrap(e),D})})})}catch(e){return Promise.reject(e)}}function Je(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function jc(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}var Uh=null;function ht(){return Uh}function Bh(t){Uh??=t}var $o=class{};var J=new E(""),Hc=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>m(hC),providedIn:"platform"});let t=e;return t})();var hC=(()=>{let e=class e extends Hc{constructor(){super(),this._doc=m(J),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ht().getBaseHref(this._doc)}onPopState(n){let i=ht().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=ht().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.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,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function zc(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function Lh(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function ft(t){return t&&t[0]!=="?"?"?"+t:t}var Pt=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>m(Hh),providedIn:"root"});let t=e;return t})(),$h=new E(""),Hh=(()=>{let e=class e extends Pt{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??m(J).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 zc(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+ft(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+ft(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+ft(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(b(Hc),b($h,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),zh=(()=>{let e=class e extends Pt{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}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}path(n=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(n){let i=zc(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+ft(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+ft(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(b(Hc),b($h,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Vr=(()=>{let e=class e{constructor(n){this._subject=new Q,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=mC(Lh(Vh(i))),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,i=""){return this.path()==this.normalize(n+ft(i))}normalize(n){return e.stripTrailingSlash(gC(this._basePath,Vh(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ft(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ft(i)),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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};e.normalizeQueryParams=ft,e.joinWithSlash=zc,e.stripTrailingSlash=Lh,e.\u0275fac=function(i){return new(i||e)(b(Pt))},e.\u0275prov=w({token:e,factory:()=>pC(),providedIn:"root"});let t=e;return t})();function pC(){return new Vr(b(Pt))}function gC(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function Vh(t){return t.replace(/\/index.html$/,"")}function mC(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}function Ho(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var Gh=(()=>{let e=class e{constructor(n,i){this._viewContainer=n,this._context=new Bc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){jh("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){jh("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,i){return!0}};e.\u0275fac=function(i){return new(i||e)(T(Or),T(Rr))},e.\u0275dir=De({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Bc=class{constructor(){this.$implicit=null,this.ngIf=null}};function jh(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${le(e)}'.`)}var Wh="browser",vC="server";function zo(t){return t===vC}var Jn=class{};var Ur=class{},Wo=class{},pt=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` +`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,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((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,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(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=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,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var Wc=class{encodeKey(e){return Zh(e)}encodeValue(e){return Zh(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function yC(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],c=r.get(s)||[];c.push(a),r.set(s,c)}),r}var DC=/%(\d[a-f0-9])/gi,wC={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Zh(t){return encodeURIComponent(t).replace(DC,(e,r)=>wC[r]??e)}function Go(t){return`${t}`}var Lt=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Wc,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=yC(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],i=Array.isArray(n)?n.map(Go):[Go(n)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}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 r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(Go(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],i=n.indexOf(Go(e.value));i!==-1&&n.splice(i,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 qc=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),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 CC(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Yh(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Qh(t){return typeof Blob<"u"&&t instanceof Blob}function Kh(t){return typeof FormData<"u"&&t instanceof FormData}function EC(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var jr=class t{constructor(e,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(CC(this.method)||i?(this.body=n!==void 0?n:null,o=i):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 pt,this.context??=new qc,!this.params)this.params=new Lt,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),c=a===-1?"?":ah.set(f,e.setHeaders[f]),u)),e.setParams&&(l=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),l)),new t(r,n,s,{params:l,headers:u,context:d,reportProgress:c,responseType:i,withCredentials:a,transferCache:o})}},Vt=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}(Vt||{}),Br=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new pt,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},qo=class t extends Br{constructor(e={}){super(e),this.type=Vt.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})}},$r=class t extends Br{constructor(e={}){super(e),this.type=Vt.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})}},kt=class extends Br{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}},tp=200,bC=204;function Gc(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 IC=(()=>{let e=class e{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof jr)s=n;else{let u;o.headers instanceof pt?u=o.headers:u=new pt(o.headers);let l;o.params&&(o.params instanceof Lt?l=o.params:l=new Lt({fromObject:o.params})),s=new jr(n,i,o.body!==void 0?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=I(s).pipe(Dt(u=>this.handler.handle(u)));if(n instanceof jr||o.observe==="events")return a;let c=a.pipe(se(u=>u instanceof $r));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(S(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(S(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(S(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return c.pipe(S(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new Lt().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,Gc(o,i))}post(n,i,o={}){return this.request("POST",n,Gc(o,i))}put(n,i,o={}){return this.request("PUT",n,Gc(o,i))}};e.\u0275fac=function(i){return new(i||e)(b(Ur))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),MC=/^\)\]\}',?\n/,_C="X-Request-URL";function Jh(t){if(t.url)return t.url;let e=_C.toLocaleLowerCase();return t.headers.get(e)}var SC=(()=>{let e=class e{constructor(){this.fetchImpl=m(Zc,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=m(W)}handle(n){return new P(i=>{let o=new AbortController;return this.doRequest(n,o.signal,i).then(Yc,s=>i.error(new kt({error:s}))),()=>o.abort()})}doRequest(n,i,o){return Dn(this,null,function*(){let s=this.createRequestInit(n),a;try{let p=this.fetchImpl(n.urlWithParams,g({signal:i},s));TC(p),o.next({type:Vt.Sent}),a=yield p}catch(p){o.error(new kt({error:p,status:p.status??0,statusText:p.statusText,url:n.urlWithParams,headers:p.headers}));return}let c=new pt(a.headers),u=a.statusText,l=Jh(a)??n.urlWithParams,d=a.status,h=null;if(n.reportProgress&&o.next(new qo({headers:c,status:d,statusText:u,url:l})),a.body){let p=a.headers.get("content-length"),D=[],v=a.body.getReader(),y=0,G,z,B=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Dn(this,null,function*(){for(;;){let{done:te,value:Ie}=yield v.read();if(te)break;if(D.push(Ie),y+=Ie.length,n.reportProgress){z=n.responseType==="text"?(z??"")+(G??=new TextDecoder).decode(Ie,{stream:!0}):void 0;let yn=()=>o.next({type:Vt.DownloadProgress,total:p?+p:void 0,loaded:y,partialText:z});B?B.run(yn):yn()}}}));let be=this.concatChunks(D,y);try{let te=a.headers.get("Content-Type")??"";h=this.parseBody(n,be,te)}catch(te){o.error(new kt({error:te,headers:new pt(a.headers),status:a.status,statusText:a.statusText,url:Jh(a)??n.urlWithParams}));return}}d===0&&(d=h?tp:0),d>=200&&d<300?(o.next(new $r({body:h,headers:c,status:d,statusText:u,url:l})),o.complete()):o.error(new kt({error:h,headers:c,status:d,statusText:u,url:l}))})}parseBody(n,i,o){switch(n.responseType){case"json":let s=new TextDecoder().decode(i).replace(MC,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:o});case"arraybuffer":return i.buffer}}createRequestInit(n){let i={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>i[s]=a.join(",")),i.Accept??="application/json, text/plain, */*",!i["Content-Type"]){let s=n.detectContentTypeHeader();s!==null&&(i["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:i,credentials:o}}concatChunks(n,i){let o=new Uint8Array(i),s=0;for(let a of n)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Zc=class{};function Yc(){}function TC(t){t.then(Yc,Yc)}function xC(t,e){return e(t)}function AC(t,e,r){return(n,i)=>Ue(r,()=>e(n,o=>t(o,i)))}var np=new E(""),NC=new E(""),RC=new E("",{providedIn:"root",factory:()=>!0});var Xh=(()=>{let e=class e extends Ur{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=m(Nt),this.contributeToStability=m(RC)}handle(n){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(np),...this.injector.get(NC,[])]));this.chain=i.reduceRight((o,s)=>AC(o,s,this.injector),xC)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Gt(()=>this.pendingTasks.remove(i)))}else return this.chain(n,i=>this.backend.handle(i))}};e.\u0275fac=function(i){return new(i||e)(b(Wo),b(he))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();var OC=/^\)\]\}',?\n/;function FC(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var ep=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new C(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?Z(i.\u0275loadImpl()):I(null)).pipe(ye(()=>new P(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((v,y)=>a.setRequestHeader(v,y.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let v=n.detectContentTypeHeader();v!==null&&a.setRequestHeader("Content-Type",v)}if(n.responseType){let v=n.responseType.toLowerCase();a.responseType=v!=="json"?v:"text"}let c=n.serializeBody(),u=null,l=()=>{if(u!==null)return u;let v=a.statusText||"OK",y=new pt(a.getAllResponseHeaders()),G=FC(a)||n.url;return u=new qo({headers:y,status:a.status,statusText:v,url:G}),u},d=()=>{let{headers:v,status:y,statusText:G,url:z}=l(),B=null;y!==bC&&(B=typeof a.response>"u"?a.responseText:a.response),y===0&&(y=B?tp:0);let be=y>=200&&y<300;if(n.responseType==="json"&&typeof B=="string"){let te=B;B=B.replace(OC,"");try{B=B!==""?JSON.parse(B):null}catch(Ie){B=te,be&&(be=!1,B={error:Ie,text:B})}}be?(s.next(new $r({body:B,headers:v,status:y,statusText:G,url:z||void 0})),s.complete()):s.error(new kt({error:B,headers:v,status:y,statusText:G,url:z||void 0}))},h=v=>{let{url:y}=l(),G=new kt({error:v,status:a.status||0,statusText:a.statusText||"Unknown Error",url:y||void 0});s.error(G)},f=!1,p=v=>{f||(s.next(l()),f=!0);let y={type:Vt.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(y.total=v.total),n.responseType==="text"&&a.responseText&&(y.partialText=a.responseText),s.next(y)},D=v=>{let y={type:Vt.UploadProgress,loaded:v.loaded};v.lengthComputable&&(y.total=v.total),s.next(y)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),n.reportProgress&&(a.addEventListener("progress",p),c!==null&&a.upload&&a.upload.addEventListener("progress",D)),a.send(c),s.next({type:Vt.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),n.reportProgress&&(a.removeEventListener("progress",p),c!==null&&a.upload&&a.upload.removeEventListener("progress",D)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(b(Jn))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),rp=new E(""),PC="XSRF-TOKEN",kC=new E("",{providedIn:"root",factory:()=>PC}),LC="X-XSRF-TOKEN",VC=new E("",{providedIn:"root",factory:()=>LC}),Zo=class{},jC=(()=>{let e=class e{constructor(n,i,o){this.doc=n,this.platform=i,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=Ho(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(b(J),b(Rt),b(kC))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function UC(t,e){let r=t.url.toLowerCase();if(!m(rp)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=m(Zo).getToken(),i=m(VC);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),e(t)}function ip(...t){let e=[IC,ep,Xh,{provide:Ur,useExisting:Xh},{provide:Wo,useFactory:()=>m(SC,{optional:!0})??m(ep)},{provide:np,useValue:UC,multi:!0},{provide:rp,useValue:!0},{provide:Zo,useClass:jC}];for(let r of t)e.push(...r.\u0275providers);return rn(e)}var Jc=class extends $o{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Xc=class t extends Jc{static makeCurrent(){Bh(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.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,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=$C();return r==null?null:HC(r)}resetBaseElement(){Hr=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Ho(document.cookie,e)}},Hr=null;function $C(){return Hr=Hr||document.querySelector("base"),Hr?Hr.getAttribute("href"):null}function HC(t){return new URL(t,document.baseURI).pathname}var zC=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),eu=new E(""),cp=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new C(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(b(eu),b(W))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Yo=class{constructor(e){this._doc=e}},Qc="ng-app-id",up=(()=>{let e=class e{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=zo(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Qc}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(Qc),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Qc,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(b(J),b(fc),b(pc,8),b(Rt))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Kc={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},nu=/%COMP%/g,lp="%COMP%",GC=`_nghost-${lp}`,WC=`_ngcontent-${lp}`,qC=!0,ZC=new E("",{providedIn:"root",factory:()=>qC});function YC(t){return WC.replace(nu,t)}function QC(t){return GC.replace(nu,t)}function dp(t,e){return e.map(r=>r.replace(nu,t))}var op=(()=>{let e=class e{constructor(n,i,o,s,a,c,u,l=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=zo(c),this.defaultRenderer=new zr(n,a,u,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===qe.ShadowDom&&(i=F(g({},i),{encapsulation:qe.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof Qo?o.applyToHost(n):o instanceof Gr&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(i.encapsulation){case qe.Emulated:s=new Qo(u,l,i,this.appId,d,a,c,h);break;case qe.ShadowDom:return new tu(u,l,n,i,a,c,this.nonce,h);default:s=new Gr(u,l,i,d,a,c,h);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(b(cp),b(up),b(fc),b(ZC),b(J),b(Rt),b(W),b(pc))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),zr=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Kc[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(sp(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(sp(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new C(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let o=Kc[i];o?e.setAttributeNS(o,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=Kc[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(ot.DashCase|ot.Important)?e.style.setProperty(r,n,i&ot.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&ot.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=ht().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function sp(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var tu=class extends zr{constructor(e,r,n,i,o,s,a,c){super(e,o,s,c),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=dp(i.id,i.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Gr=class extends zr{constructor(e,r,n,i,o,s,a,c){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=c?dp(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Qo=class extends Gr{constructor(e,r,n,i,o,s,a,c){let u=i+"-"+n.id;super(e,r,n,o,s,a,c,u),this.contentAttr=YC(u),this.hostAttr=QC(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},KC=(()=>{let e=class e extends Yo{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(b(J))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),ap=["alt","control","meta","shift"],JC={"\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"},XC={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},eE=(()=>{let e=class e extends Yo{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ht().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",c=i.indexOf("code");if(c>-1&&(i.splice(c,1),a="code."),ap.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let u={};return u.domEventName=o,u.fullKey=a,u}static matchEventFullKeyCode(n,i){let o=JC[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),ap.forEach(a=>{if(a!==o){let c=XC[a];c(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(b(J))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function fp(t,e){return kh(g({rootComponent:t},tE(e)))}function tE(t){return{appProviders:[...sE,...t?.providers??[]],platformProviders:oE}}function nE(){Xc.makeCurrent()}function rE(){return new rt}function iE(){return Mf(document),document}var oE=[{provide:Rt,useValue:Wh},{provide:hc,useValue:nE,multi:!0},{provide:J,useFactory:iE,deps:[]}];var sE=[{provide:Co,useValue:"root"},{provide:rt,useFactory:rE,deps:[]},{provide:eu,useClass:KC,multi:!0,deps:[J,W,Rt]},{provide:eu,useClass:eE,multi:!0,deps:[J]},op,up,cp,{provide:Gn,useExisting:op},{provide:Jn,useClass:zC,deps:[]},[]];var hp=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(b(J))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Wr=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:function(i){let o=null;return i?o=new(i||e):o=b(aE),o},providedIn:"root"});let t=e;return t})(),aE=(()=>{let e=class e extends Wr{constructor(n){super(),this._doc=n}sanitize(n,i){if(i==null)return null;switch(n){case $e.NONE:return i;case $e.HTML:return ut(i,"HTML")?Be(i):mc(this._doc,String(i)).toString();case $e.STYLE:return ut(i,"Style")?Be(i):i;case $e.SCRIPT:if(ut(i,"Script"))return Be(i);throw new C(5200,!1);case $e.URL:return ut(i,"URL")?Be(i):Ro(String(i));case $e.RESOURCE_URL:if(ut(i,"ResourceURL"))return Be(i);throw new C(5201,!1);default:throw new C(5202,!1)}}bypassSecurityTrustHtml(n){return xf(n)}bypassSecurityTrustStyle(n){return Af(n)}bypassSecurityTrustScript(n){return Nf(n)}bypassSecurityTrustUrl(n){return Rf(n)}bypassSecurityTrustResourceUrl(n){return Of(n)}};e.\u0275fac=function(i){return new(i||e)(b(J))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var x="primary",ui=Symbol("RouteTitle"),cu=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function ir(t){return new cu(t)}function cE(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[o]===i)}else return t===e}function Ep(t){return t.length>0?t[t.length-1]:null}function Bt(t){return Vs(t)?t:ln(t)?Z(Promise.resolve(t)):I(t)}var lE={exact:Ip,subset:Mp},bp={exact:dE,subset:fE,ignored:()=>!0};function pp(t,e,r){return lE[r.paths](t.root,e.root,r.matrixParams)&&bp[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function dE(t,e){return Xe(t,e)}function Ip(t,e,r){if(!hn(t.segments,e.segments)||!Xo(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!Ip(t.children[n],e.children[n],r))return!1;return!0}function fE(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>Cp(t[r],e[r]))}function Mp(t,e,r){return _p(t,e,e.segments,r)}function _p(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!hn(i,r)||e.hasChildren()||!Xo(i,r,n))}else if(t.segments.length===r.length){if(!hn(t.segments,r)||!Xo(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!Mp(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!hn(t.segments,i)||!Xo(t.segments,i,n)||!t.children[x]?!1:_p(t.children[x],e,o,n)}}function Xo(t,e,r){return e.every((n,i)=>bp[r](t[i].parameters,n.parameters))}var jt=class{constructor(e=new V([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ir(this.queryParams),this._queryParamMap}toString(){return gE.serialize(this)}},V=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return es(this)}},fn=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=ir(this.parameters),this._parameterMap}toString(){return Tp(this)}};function hE(t,e){return hn(t,e)&&t.every((r,n)=>Xe(r.parameters,e[n].parameters))}function hn(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function pE(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===x&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==x&&(r=r.concat(e(i,n)))}),r}var Pu=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>new Xr,providedIn:"root"});let t=e;return t})(),Xr=class{parse(e){let r=new du(e);return new jt(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${qr(e.root,!0)}`,n=yE(e.queryParams),i=typeof e.fragment=="string"?`#${mE(e.fragment)}`:"";return`${r}${n}${i}`}},gE=new Xr;function es(t){return t.segments.map(e=>Tp(e)).join("/")}function qr(t,e){if(!t.hasChildren())return es(t);if(e){let r=t.children[x]?qr(t.children[x],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==x&&n.push(`${i}:${qr(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=pE(t,(n,i)=>i===x?[qr(t.children[x],!1)]:[`${i}:${qr(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[x]!=null?`${es(t)}/${r[0]}`:`${es(t)}/(${r.join("//")})`}}function Sp(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ko(t){return Sp(t).replace(/%3B/gi,";")}function mE(t){return encodeURI(t)}function lu(t){return Sp(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ts(t){return decodeURIComponent(t)}function gp(t){return ts(t.replace(/\+/g,"%20"))}function Tp(t){return`${lu(t.path)}${vE(t.parameters)}`}function vE(t){return Object.entries(t).map(([e,r])=>`;${lu(e)}=${lu(r)}`).join("")}function yE(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(i=>`${Ko(r)}=${Ko(i)}`).join("&"):`${Ko(r)}=${Ko(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var DE=/^[^\/()?;#]+/;function iu(t){let e=t.match(DE);return e?e[0]:""}var wE=/^[^\/()?;=#]+/;function CE(t){let e=t.match(wE);return e?e[0]:""}var EE=/^[^=?&#]+/;function bE(t){let e=t.match(EE);return e?e[0]:""}var IE=/^[^&#]+/;function ME(t){let e=t.match(IE);return e?e[0]:""}var du=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new V([],{}):new V([],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 r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[x]=new V(e,r)),n}parseSegment(){let e=iu(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(e),new fn(ts(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=CE(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=iu(this.remaining);i&&(n=i,this.capture(n))}e[ts(r)]=ts(n)}parseQueryParam(e){let r=bE(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=ME(this.remaining);s&&(n=s,this.capture(n))}let i=gp(r),o=gp(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=iu(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new C(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=x);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[x]:new V([],s),this.consumeOptional("//")}return r}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 C(4011,!1)}};function xp(t){return t.segments.length>0?new V([],{[x]:t}):t}function Ap(t){let e={};for(let[n,i]of Object.entries(t.children)){let o=Ap(i);if(n===x&&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 r=new V(t.segments,e);return _E(r)}function _E(t){if(t.numberOfChildren===1&&t.children[x]){let e=t.children[x];return new V(t.segments.concat(e.segments),e.children)}return t}function ei(t){return t instanceof jt}function SE(t,e,r=null,n=null){let i=Np(t);return Rp(i,e,r,n)}function Np(t){let e;function r(o){let s={};for(let c of o.children){let u=r(c);s[c.outlet]=u}let a=new V(o.url,s);return o===t&&(e=a),a}let n=r(t.root),i=xp(n);return e??i}function Rp(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return ou(i,i,i,r,n);let o=TE(e);if(o.toRoot())return ou(i,i,new V([],{}),r,n);let s=xE(o,i,t),a=s.processChildren?Qr(s.segmentGroup,s.index,o.commands):Fp(s.segmentGroup,s.index,o.commands);return ou(i,s.segmentGroup,a,r,n)}function ns(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ti(t){return typeof t=="object"&&t!=null&&t.outlets}function ou(t,e,r,n,i){let o={};n&&Object.entries(n).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;t===e?s=r:s=Op(t,e,r);let a=xp(Ap(s));return new jt(a,o,i)}function Op(t,e,r){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===e?n[i]=r:n[i]=Op(o,e,r)}),new V(t.segments,n)}var rs=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&ns(n[0]))throw new C(4003,!1);let i=n.find(ti);if(i&&i!==Ep(n))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function TE(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new rs(!0,0,t);let e=0,r=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new rs(r,e,n)}var tr=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function xE(t,e,r){if(t.isAbsolute)return new tr(e,!0,0);if(!r)return new tr(e,!1,NaN);if(r.parent===null)return new tr(r,!0,0);let n=ns(t.commands[0])?0:1,i=r.segments.length-1+n;return AE(r,i,t.numberOfDoubleDots)}function AE(t,e,r){let n=t,i=e,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new C(4005,!1);i=n.segments.length}return new tr(n,!1,i-o)}function NE(t){return ti(t[0])?t[0].outlets:{[x]:t}}function Fp(t,e,r){if(t??=new V([],{}),t.segments.length===0&&t.hasChildren())return Qr(t,e,r);let n=RE(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==x)&&t.children[x]&&t.numberOfChildren===1&&t.children[x].segments.length===0){let o=Qr(t.children[x],e,r);return new V(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Fp(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new V(t.segments,i)}}function RE(t,e,r){let n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=t.segments[i],a=r[n];if(ti(a))break;let c=`${a}`,u=n0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!vp(c,u,s))return o;n+=2}else{if(!vp(c,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function fu(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=fu(new V([],{}),0,n))}),e}function mp(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function vp(t,e,r){return t==r.path&&Xe(e,r.parameters)}var Kr="imperative",oe=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}(oe||{}),Pe=class{constructor(e,r){this.id=e,this.url=r}},ni=class extends Pe{constructor(e,r,n="imperative",i=null){super(e,r),this.type=oe.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ut=class extends Pe{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=oe.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ee=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Ee||{}),hu=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(hu||{}),gt=class extends Pe{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=oe.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},pn=class extends Pe{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=oe.NavigationSkipped}},ri=class extends Pe{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=oe.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},is=class extends Pe{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=oe.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pu=class extends Pe{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=oe.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gu=class extends Pe{constructor(e,r,n,i,o){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=oe.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},mu=class extends Pe{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=oe.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vu=class extends Pe{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=oe.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yu=class{constructor(e){this.route=e,this.type=oe.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Du=class{constructor(e){this.route=e,this.type=oe.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},wu=class{constructor(e){this.snapshot=e,this.type=oe.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Cu=class{constructor(e){this.snapshot=e,this.type=oe.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Eu=class{constructor(e){this.snapshot=e,this.type=oe.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},bu=class{constructor(e){this.snapshot=e,this.type=oe.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var ii=class{},or=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};var Iu=class{constructor(e){this.injector=e,this.outlet=null,this.route=null,this.children=new ds(this.injector),this.attachRef=null}},ds=(()=>{let e=class e{constructor(n){this.parentInjector=n,this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new Iu(this.parentInjector),this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)(b(he))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),os=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=Mu(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=Mu(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=_u(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return _u(e,this._root).map(r=>r.value)}};function Mu(t,e){if(t===e.value)return e;for(let r of e.children){let n=Mu(t,r);if(n)return n}return null}function _u(t,e){if(t===e.value)return[e];for(let r of e.children){let n=_u(t,r);if(n.length)return n.unshift(e),n}return[]}var Ce=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function er(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var ss=class extends os{constructor(e,r){super(e),this.snapshot=r,ku(this,e)}toString(){return this.snapshot.toString()}};function Pp(t){let e=FE(t),r=new ne([new fn("",{})]),n=new ne({}),i=new ne({}),o=new ne({}),s=new ne(""),a=new gn(r,n,o,s,i,x,t,e.root);return a.snapshot=e.root,new ss(new Ce(a,[]),e)}function FE(t){let e={},r={},n={},i="",o=new nr([],e,n,i,r,x,t,null,{});return new cs("",new Ce(o,[]))}var gn=class{constructor(e,r,n,i,o,s,a,c){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(S(u=>u[ui]))??I(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,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(S(e=>ir(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(S(e=>ir(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function as(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:g(g({},e.params),t.params),data:g(g({},e.data),t.data),resolve:g(g(g(g({},t.data),e.data),i?.data),t._resolvedData)}:n={params:g({},t.params),data:g({},t.data),resolve:g(g({},t.data),t._resolvedData??{})},i&&Lp(i)&&(n.resolve[ui]=i.title),n}var nr=class{get title(){return this.data?.[ui]}constructor(e,r,n,i,o,s,a,c,u){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}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??=ir(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ir(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},cs=class extends os{constructor(e,r){super(r),this.url=e,ku(this,r)}toString(){return kp(this._root)}};function ku(t,e){e.value._routerState=t,e.children.forEach(r=>ku(t,r))}function kp(t){let e=t.children.length>0?` { ${t.children.map(kp).join(", ")} } `:"";return`${t.value}${e}`}function su(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,Xe(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),Xe(e.params,r.params)||t.paramsSubject.next(r.params),uE(e.url,r.url)||t.urlSubject.next(r.url),Xe(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Su(t,e){let r=Xe(t.params,e.params)&&hE(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Su(t.parent,e.parent))}function Lp(t){return typeof t.title=="string"||t.title===null}var Lu=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=x,this.activateEvents=new Q,this.deactivateEvents=new Q,this.attachEvents=new Q,this.detachEvents=new Q,this.parentContexts=m(ds),this.location=m(Or),this.changeDetector=m(dt),this.inputBinder=m(Vu,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)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 C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,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,i){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new Tu(n,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:u,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=De({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ct]});let t=e;return t})(),Tu=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===gn?this.route:e===ds?this.childContexts:this.parent.get(e,r)}},Vu=new E("");function PE(t,e,r){let n=oi(t,e._root,r?r._root:void 0);return new ss(n,e)}function oi(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=kE(t,e,r);return new Ce(n,i)}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=>oi(t,a)),s}}let n=LE(e.value),i=e.children.map(o=>oi(t,o));return new Ce(n,i)}}function kE(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return oi(t,n,i);return oi(t,n)})}function LE(t){return new gn(new ne(t.url),new ne(t.params),new ne(t.queryParams),new ne(t.fragment),new ne(t.data),t.outlet,t.component,t)}var si=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},Vp="ngNavigationCancelingError";function us(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=ei(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=jp(!1,Ee.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function jp(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[Vp]=!0,r.cancellationCode=e,r}function VE(t){return Up(t)&&ei(t.url)}function Up(t){return!!t&&t[Vp]}var jE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=Ae({type:e,selectors:[["ng-component"]],standalone:!0,features:[Oe],decls:1,vars:0,template:function(i,o){i&1&&Re(0,"router-outlet")},dependencies:[Lu],encapsulation:2});let t=e;return t})();function UE(t,e){return t.providers&&!t._injector&&(t._injector=Rc(t.providers,e,`Route: ${t.path}`)),t._injector??e}function ju(t){let e=t.children&&t.children.map(ju),r=e?F(g({},t),{children:e}):g({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==x&&(r.component=jE),r}function He(t){return t.outlet||x}function BE(t,e){let r=t.filter(n=>He(n)===e);return r.push(...t.filter(n=>He(n)!==e)),r}function li(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var $E=(t,e,r,n)=>S(i=>(new xu(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),xu=class{constructor(e,r,n,i,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),su(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=er(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=er(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);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,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=er(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=er(r);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new bu(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Cu(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(su(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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=li(i.snapshot);s.attachRef=null,s.route=i,s.injector=a??s.injector,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},ls=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},rr=class{constructor(e,r){this.component=e,this.route=r}};function HE(t,e,r){let n=t._root,i=e?e._root:null;return Zr(n,i,r,[n.value])}function zE(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function ar(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!pd(t)?t:e.get(t):n}function Zr(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=er(e);return t.children.forEach(s=>{GE(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Jr(a,r.getContext(s),i)),i}function GE(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=WE(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new ls(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Zr(t,e,a?a.children:null,n,i):Zr(t,e,r,n,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new rr(a.outlet.component,s))}else s&&Jr(e,a,i),i.canActivateChecks.push(new ls(n)),o.component?Zr(t,null,a?a.children:null,n,i):Zr(t,null,r,n,i);return i}function WE(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!hn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!hn(t.url,e.url)||!Xe(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Su(t,e)||!Xe(t.queryParams,e.queryParams);case"paramsChange":default:return!Su(t,e)}}function Jr(t,e,r){let n=er(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?e?Jr(s,e.children.getContext(o),r):Jr(s,null,r):Jr(s,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new rr(e.outlet.component,i)):r.canDeactivateChecks.push(new rr(null,i)):r.canDeactivateChecks.push(new rr(null,i))}function di(t){return typeof t=="function"}function qE(t){return typeof t=="boolean"}function ZE(t){return t&&di(t.canLoad)}function YE(t){return t&&di(t.canActivate)}function QE(t){return t&&di(t.canActivateChild)}function KE(t){return t&&di(t.canDeactivate)}function JE(t){return t&&di(t.canMatch)}function Bp(t){return t instanceof tt||t?.name==="EmptyError"}var Jo=Symbol("INITIAL_VALUE");function sr(){return ye(t=>Vi(t.map(e=>e.pipe(nt(1),Ws(Jo)))).pipe(S(e=>{for(let r of e)if(r!==!0){if(r===Jo)return Jo;if(r===!1||XE(r))return r}return!0}),se(e=>e!==Jo),nt(1)))}function XE(t){return ei(t)||t instanceof si}function eb(t,e){return re(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?I(F(g({},r),{guardsResult:!0})):tb(s,n,i,t).pipe(re(a=>a&&qE(a)?nb(n,o,t,e):I(a)),S(a=>F(g({},r),{guardsResult:a})))})}function tb(t,e,r,n){return Z(t).pipe(re(i=>ab(i.component,i.route,r,e,n)),ze(i=>i!==!0,!0))}function nb(t,e,r,n){return Z(e).pipe(Dt(i=>Sn(ib(i.route.parent,n),rb(i.route,n),sb(t,i.path,r),ob(t,i.route,r))),ze(i=>i!==!0,!0))}function rb(t,e){return t!==null&&e&&e(new Eu(t)),I(!0)}function ib(t,e){return t!==null&&e&&e(new wu(t)),I(!0)}function ob(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return I(!0);let i=n.map(o=>ji(()=>{let s=li(e)??r,a=ar(o,s),c=YE(a)?a.canActivate(e,t):Ue(s,()=>a(e,t));return Bt(c).pipe(ze())}));return I(i).pipe(sr())}function sb(t,e,r){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>zE(s)).filter(s=>s!==null).map(s=>ji(()=>{let a=s.guards.map(c=>{let u=li(s.node)??r,l=ar(c,u),d=QE(l)?l.canActivateChild(n,t):Ue(u,()=>l(n,t));return Bt(d).pipe(ze())});return I(a).pipe(sr())}));return I(o).pipe(sr())}function ab(t,e,r,n,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return I(!0);let s=o.map(a=>{let c=li(e)??i,u=ar(a,c),l=KE(u)?u.canDeactivate(t,e,r,n):Ue(c,()=>u(t,e,r,n));return Bt(l).pipe(ze())});return I(s).pipe(sr())}function cb(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return I(!0);let o=i.map(s=>{let a=ar(s,t),c=ZE(a)?a.canLoad(e,r):Ue(t,()=>a(e,r));return Bt(c)});return I(o).pipe(sr(),$p(n))}function $p(t){return mr(ie(e=>{if(typeof e!="boolean")throw us(t,e)}),S(e=>e===!0))}function ub(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return I(!0);let o=i.map(s=>{let a=ar(s,t),c=JE(a)?a.canMatch(e,r):Ue(t,()=>a(e,r));return Bt(c)});return I(o).pipe(sr(),$p(n))}var ai=class{constructor(e){this.segmentGroup=e||null}},ci=class extends Error{constructor(e){super(),this.urlTree=e}};function Xn(t){return _n(new ai(t))}function lb(t){return _n(new C(4e3,!1))}function db(t){return _n(jp(!1,Ee.GuardRejected))}var Au=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return I(n);if(i.numberOfChildren>1||!i.children[x])return lb(`${e.redirectTo}`);i=i.children[x]}}applyRedirectCommands(e,r,n,i,o){if(typeof r!="string"){let a=r,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:p,title:D}=i,v=Ue(o,()=>a({params:f,data:p,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:D}));if(v instanceof jt)throw new ci(v);r=v}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r[0]==="/")throw new ci(s);return s}applyRedirectCreateUrlTree(e,r,n,i){let o=this.createSegmentGroup(e,r.root,n,i);return new jt(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(e,r,n,i){let o=this.createSegments(e,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,n,i)}),new V(o,s)}createSegments(e,r,n,i){return r.map(o=>o.path[0]===":"?this.findPosParam(e,o,i):this.findOrReturn(o,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new C(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},Nu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function fb(t,e,r,n,i){let o=Uu(t,e,r);return o.matched?(n=UE(e,n),ub(n,e,r,i).pipe(S(s=>s===!0?o:g({},Nu)))):I(o)}function Uu(t,e,r){if(e.path==="**")return hb(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?g({},Nu):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||cE)(r,t,e);if(!i)return g({},Nu);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?g(g({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function hb(t){return{matched:!0,parameters:t.length>0?Ep(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function yp(t,e,r,n){return r.length>0&&mb(t,r,n)?{segmentGroup:new V(e,gb(n,new V(r,t.children))),slicedSegments:[]}:r.length===0&&vb(t,r,n)?{segmentGroup:new V(t.segments,pb(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new V(t.segments,t.children),slicedSegments:r}}function pb(t,e,r,n){let i={};for(let o of r)if(fs(t,e,o)&&!n[He(o)]){let s=new V([],{});i[He(o)]=s}return g(g({},n),i)}function gb(t,e){let r={};r[x]=e;for(let n of t)if(n.path===""&&He(n)!==x){let i=new V([],{});r[He(n)]=i}return r}function mb(t,e,r){return r.some(n=>fs(t,e,n)&&He(n)!==x)}function vb(t,e,r){return r.some(n=>fs(t,e,n))}function fs(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function yb(t,e,r,n){return He(t)!==n&&(n===x||!fs(e,r,t))?!1:Uu(e,t,r).matched}function Db(t,e,r){return e.length===0&&!t.children[r]}var Ru=class{};function wb(t,e,r,n,i,o,s="emptyOnly"){return new Ou(t,e,r,n,i,s,o).recognize()}var Cb=31,Ou=class{constructor(e,r,n,i,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Au(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new C(4002,`'${e.segmentGroup}'`)}recognize(){let e=yp(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(S(({children:r,rootSnapshot:n})=>{let i=new Ce(n,r),o=new cs("",i),s=SE(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let r=new nr([],Object.freeze({}),Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),x,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,x,r).pipe(S(n=>({children:n,rootSnapshot:r})),yt(n=>{if(n instanceof ci)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ai?this.noMatchError(n):n}))}processSegmentGroup(e,r,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n,o):this.processSegment(e,r,n,n.segments,i,!0,o).pipe(S(s=>s instanceof Ce?[s]:[]))}processChildren(e,r,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return Z(o).pipe(Dt(s=>{let a=n.children[s],c=BE(r,s);return this.processSegmentGroup(e,c,a,s,i)}),Hs((s,a)=>(s.push(...a),s)),wt(null),$s(),re(s=>{if(s===null)return Xn(n);let a=Hp(s);return Eb(a),I(a)}))}processSegment(e,r,n,i,o,s,a){return Z(r).pipe(Dt(c=>this.processSegmentAgainstRoute(c._injector??e,r,c,n,i,o,s,a).pipe(yt(u=>{if(u instanceof ai)return I(null);throw u}))),ze(c=>!!c),yt(c=>{if(Bp(c))return Db(n,i,o)?I(new Ru):Xn(n);throw c}))}processSegmentAgainstRoute(e,r,n,i,o,s,a,c){return yb(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,o,s,c):Xn(i):Xn(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=Uu(r,i,o);if(!c)return Xn(r);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Cb&&(this.allowRedirects=!1));let f=new nr(o,u,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Dp(i),He(i),i.component??i._loadedComponent??null,i,wp(i)),p=as(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(p.params),f.data=Object.freeze(p.data);let D=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,d,f,e);return this.applyRedirects.lineralizeSegments(i,D).pipe(re(v=>this.processSegment(e,n,r,v.concat(h),s,!1,a)))}matchSegmentAgainstRoute(e,r,n,i,o,s){let a=fb(r,n,i,e,this.urlSerializer);return n.path==="**"&&(r.children={}),a.pipe(ye(c=>c.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(ye(({routes:u})=>{let l=n._loadedInjector??e,{parameters:d,consumedSegments:h,remainingSegments:f}=c,p=new nr(h,d,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Dp(n),He(n),n.component??n._loadedComponent??null,n,wp(n)),D=as(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(D.params),p.data=Object.freeze(D.data);let{segmentGroup:v,slicedSegments:y}=yp(r,h,f,u);if(y.length===0&&v.hasChildren())return this.processChildren(l,u,v,p).pipe(S(z=>new Ce(p,z)));if(u.length===0&&y.length===0)return I(new Ce(p,[]));let G=He(n)===o;return this.processSegment(l,u,v,y,G?x:o,!0,p).pipe(S(z=>new Ce(p,z instanceof Ce?[z]:[])))}))):Xn(r)))}getChildConfig(e,r,n){return r.children?I({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?I({routes:r._loadedRoutes,injector:r._loadedInjector}):cb(e,r,n,this.urlSerializer).pipe(re(i=>i?this.configLoader.loadChildren(e,r).pipe(ie(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):db(r))):I({routes:[],injector:e})}};function Eb(t){t.sort((e,r)=>e.value.outlet===x?-1:r.value.outlet===x?1:e.value.outlet.localeCompare(r.value.outlet))}function bb(t){let e=t.value.routeConfig;return e&&e.path===""}function Hp(t){let e=[],r=new Set;for(let n of t){if(!bb(n)){e.push(n);continue}let i=e.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=Hp(n.children);e.push(new Ce(n.value,i))}return e.filter(n=>!r.has(n))}function Dp(t){return t.data||{}}function wp(t){return t.resolve||{}}function Ib(t,e,r,n,i,o){return re(s=>wb(t,e,r,n,s.extractedUrl,i,o).pipe(S(({state:a,tree:c})=>F(g({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function Mb(t,e){return re(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return I(r);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let u of zp(c))s.add(u);let a=0;return Z(s).pipe(Dt(c=>o.has(c)?_b(c,n,t,e):(c.data=as(c,c.parent,t).resolve,I(void 0))),ie(()=>a++),Tn(1),re(c=>a===s.size?I(r):ve))})}function zp(t){let e=t.children.map(r=>zp(r)).flat();return[t,...e]}function _b(t,e,r,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!Lp(i)&&(o[ui]=i.title),Sb(o,t,e,n).pipe(S(s=>(t._resolvedData=s,t.data=as(t,t.parent,r).resolve,null)))}function Sb(t,e,r,n){let i=uu(t);if(i.length===0)return I({});let o={};return Z(i).pipe(re(s=>Tb(t[s],e,r,n).pipe(ze(),ie(a=>{if(a instanceof si)throw us(new Xr,a);o[s]=a}))),Tn(1),Bs(o),yt(s=>Bp(s)?ve:_n(s)))}function Tb(t,e,r,n){let i=li(e)??n,o=ar(t,i),s=o.resolve?o.resolve(e,r):Ue(i,()=>o(e,r));return Bt(s)}function au(t){return ye(e=>{let r=t(e);return r?Z(r).pipe(S(()=>e)):I(e)})}var Gp=(()=>{let e=class e{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===x);return i}getResolvedTitleForRoute(n){return n.data[ui]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>m(xb),providedIn:"root"});let t=e;return t})(),xb=(()=>{let e=class e extends Gp{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(b(hp))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Bu=new E("",{providedIn:"root",factory:()=>({})}),$u=new E(""),Ab=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=m(Lc)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return I(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=Bt(n.loadComponent()).pipe(S(Wp),ie(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Gt(()=>{this.componentLoaders.delete(n)})),o=new Mn(i,()=>new ee).pipe(In());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return I({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=Nb(i,this.compiler,n,this.onLoadEndListener).pipe(Gt(()=>{this.childrenLoaders.delete(i)})),a=new Mn(s,()=>new ee).pipe(In());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Nb(t,e,r,n){return Bt(t.loadChildren()).pipe(S(Wp),re(i=>i instanceof _r||Array.isArray(i)?I(i):Z(e.compileModuleAsync(i))),S(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get($u,[],{optional:!0,self:!0}).flat()),{routes:s.map(ju),injector:o}}))}function Rb(t){return t&&typeof t=="object"&&"default"in t}function Wp(t){return Rb(t)?t.default:t}var Hu=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>m(Ob),providedIn:"root"});let t=e;return t})(),Ob=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Fb=new E("");var Pb=new E(""),kb=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ee,this.transitionAbortSubject=new ee,this.configLoader=m(Ab),this.environmentInjector=m(he),this.urlSerializer=m(Pu),this.rootContexts=m(ds),this.location=m(Vr),this.inputBindingEnabled=m(Vu,{optional:!0})!==null,this.titleStrategy=m(Gp),this.options=m(Bu,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=m(Hu),this.createViewTransition=m(Fb,{optional:!0}),this.navigationErrorHandler=m(Pb,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>I(void 0),this.rootComponentType=null;let n=o=>this.events.next(new yu(o)),i=o=>this.events.next(new Du(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(F(g(g({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new ne({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Kr,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(se(s=>s.id!==0),S(s=>F(g({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),ye(s=>{let a=!1,c=!1;return I(s).pipe(ye(u=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",Ee.SupersededByNewNavigation),ve;this.currentTransition=s,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?F(g({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let h="";return this.events.next(new pn(u.id,this.urlSerializer.serialize(u.rawUrl),h,hu.IgnoredSameUrlNavigation)),u.resolve(!1),ve}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return I(u).pipe(ye(h=>{let f=this.transitions?.getValue();return this.events.next(new ni(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?ve:Promise.resolve(h)}),Ib(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ie(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=F(g({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let f=new is(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:h,extractedUrl:f,source:p,restoredState:D,extras:v}=u,y=new ni(h,this.urlSerializer.serialize(f),p,D);this.events.next(y);let G=Pp(this.rootComponentType).snapshot;return this.currentTransition=s=F(g({},u),{targetSnapshot:G,urlAfterRedirects:f,extras:F(g({},v),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,I(s)}else{let h="";return this.events.next(new pn(u.id,this.urlSerializer.serialize(u.extractedUrl),h,hu.IgnoredByUrlHandlingStrategy)),u.resolve(!1),ve}}),ie(u=>{let l=new pu(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),S(u=>(this.currentTransition=s=F(g({},u),{guards:HE(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),eb(this.environmentInjector,u=>this.events.next(u)),ie(u=>{if(s.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw us(this.urlSerializer,u.guardsResult);let l=new gu(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),se(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",Ee.GuardRejected),!1)),au(u=>{if(u.guards.canActivateChecks.length)return I(u).pipe(ie(l=>{let d=new mu(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),ye(l=>{let d=!1;return I(l).pipe(Mb(this.paramsInheritanceStrategy,this.environmentInjector),ie({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",Ee.NoDataFromResolver)}}))}),ie(l=>{let d=new vu(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),au(u=>{let l=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(ie(f=>{d.component=f}),S(()=>{})));for(let f of d.children)h.push(...l(f));return h};return Vi(l(u.targetSnapshot.root)).pipe(wt(null),nt(1))}),au(()=>this.afterPreactivation()),ye(()=>{let{currentSnapshot:u,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return d?Z(d).pipe(S(()=>s)):I(s)}),S(u=>{let l=PE(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=F(g({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),ie(()=>{this.events.next(new ii)}),$E(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),nt(1),ie({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ut(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),qs(this.transitionAbortSubject.pipe(ie(u=>{throw u}))),Gt(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",Ee.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),yt(u=>{if(c=!0,Up(u))this.events.next(new gt(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),VE(u)?this.events.next(new or(u.url,u.navigationBehaviorOptions)):s.resolve(!1);else{let l=new ri(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0);try{let d=Ue(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof si){let{message:h,cancellationCode:f}=us(this.urlSerializer,d);this.events.next(new gt(s.id,this.urlSerializer.serialize(s.extractedUrl),h,f)),this.events.next(new or(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(l);let h=n.errorHandler(u);s.resolve(!!h)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return ve}))}))}cancelNavigationTransition(n,i,o){let s=new gt(n.id,this.urlSerializer.serialize(n.extractedUrl),i,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(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Lb(t){return t!==Kr}var Vb=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>m(jb),providedIn:"root"});let t=e;return t})(),Fu=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},jb=(()=>{let e=class e extends Fu{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Ar(e)))(o||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),qp=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>m(Ub),providedIn:"root"});let t=e;return t})(),Ub=(()=>{let e=class e extends qp{constructor(){super(...arguments),this.location=m(Vr),this.urlSerializer=m(Pu),this.options=m(Bu,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=m(Hu),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new jt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Pp(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(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof ni)this.stateMemento=this.createStateMemento();else if(n instanceof pn)this.rawUrlTree=i.initialUrl;else if(n instanceof is){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else n instanceof ii?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof gt&&(n.code===Ee.GuardRejected||n.code===Ee.NoDataFromResolver)?this.restoreHistory(i):n instanceof ri?this.restoreHistory(i,!0):n instanceof Ut&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=g(g({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=g(g({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!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"&&(i&&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,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Ar(e)))(o||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Yr=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Yr||{});function Bb(t,e){t.events.pipe(se(r=>r instanceof Ut||r instanceof gt||r instanceof ri||r instanceof pn),S(r=>r instanceof Ut||r instanceof pn?Yr.COMPLETE:(r instanceof gt?r.code===Ee.Redirect||r.code===Ee.SupersededByNewNavigation:!1)?Yr.REDIRECTING:Yr.FAILED),se(r=>r!==Yr.REDIRECTING),nt(1)).subscribe(()=>{e()})}function $b(t){throw t}var Hb={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},zb={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},zu=(()=>{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.console=m(Uo),this.stateManager=m(qp),this.options=m(Bu,{optional:!0})||{},this.pendingTasks=m(Nt),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=m(kb),this.urlSerializer=m(Pu),this.location=m(Vr),this.urlHandlingStrategy=m(Hu),this._events=new ee,this.errorHandler=this.options.errorHandler||$b,this.navigated=!1,this.routeReuseStrategy=m(Vb),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=m($u,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!m(Vu,{optional:!0}),this.eventsSubscription=new X,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(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof gt&&i.code!==Ee.Redirect&&i.code!==Ee.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Ut)this.navigated=!0;else if(i instanceof or){let a=i.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),u=g({info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Lb(o.source)},a);this.scheduleNavigation(c,Kr,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}Wb(i)&&this._events.next(i)}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),Kr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let u=g({},o);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(s.state=u)}let c=this.parseUrl(n);this.scheduleNavigation(c,i,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(ju),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,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:u}=i,l=u?this.currentUrlTree.fragment:a,d=null;switch(c){case"merge":d=g(g({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let f=o?o.snapshot:this.routerState.snapshot.root;h=Np(f)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),h=this.currentUrlTree.root}return Rp(h,n,d,l??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=ei(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Kr,null,i)}navigate(n,i={skipLocationChange:!1}){return Gb(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=g({},Hb):i===!1?o=g({},zb):o=i,ei(n))return pp(this.currentUrlTree,n,o);let s=this.parseUrl(n);return pp(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((h,f)=>{c=h,u=f});let d=this.pendingTasks.add();return Bb(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(h=>Promise.reject(h))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Gb(t){for(let e=0;e{let e=class e{constructor(n,i,o,s,a,c){this.router=n,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.commands=null,this.onChanges=new ee,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let u=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof Ut&&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,i,o,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(n!==0||i||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,u),!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 i=this.href===null?null:jf(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(n,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,n,i):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(i){return new(i||e)(T(zu),T(gn),dc("tabindex"),T(sn),T(Ke),T(Pt))},e.\u0275dir=De({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&cn("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&an("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Je],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Je],replaceUrl:[2,"replaceUrl","replaceUrl",Je],routerLink:"routerLink"},standalone:!0,features:[Fr,ct]});let t=e;return t})();var qb=new E("");function Yp(t,...e){return rn([{provide:$u,multi:!0,useValue:t},[],{provide:gn,useFactory:Zb,deps:[zu]},{provide:Bo,multi:!0,useFactory:Qb},e.map(r=>r.\u0275providers)])}function Zb(t){return t.routerState.root}function Yb(t,e){return{\u0275kind:t,\u0275providers:e}}function Qb(){let t=m(Mt);return e=>{let r=t.get(dn);if(e!==r.components[0])return;let n=t.get(zu),i=t.get(Kb);t.get(Jb)===1&&n.initialNavigation(),t.get(Xb,null,A.Optional)?.setUpPreloading(),t.get(qb,null,A.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Kb=new E("",{factory:()=>new ee}),Jb=new E("",{providedIn:"root",factory:()=>1});var Xb=new E("");function Qp(){return Yb(6,[{provide:Pt,useClass:zh}])}var Kp=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=Ae({type:e,selectors:[["app-root"]],standalone:!0,features:[Oe],decls:20,vars:0,consts:[[1,"navbar","navbar-expand-lg","navbar-light","bg-light"],["routerLink","/",1,"navbar-brand"],["type","button","data-toggle","collapse","data-target","#navbarNav","aria-controls","navbarNav","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],[1,"collapse","navbar-collapse"],[1,"navbar-nav"],[1,"nav-item"],["routerLink","/",1,"nav-link"],["routerLink","/other",1,"nav-link"],["routerLink","/inline",1,"nav-link"],[2,"line-height","30px"],[2,"margin-top","16px"]],template:function(i,o){i&1&&(j(0,"nav",0)(1,"a",1),Y(2,"ngx-tinymce"),U(),j(3,"button",2),Re(4,"span",3),U(),j(5,"div",4)(6,"ul",5)(7,"li",6)(8,"a",7),Y(9,"Home"),U()(),j(10,"li",6)(11,"a",8),Y(12,"Other"),U()(),j(13,"li",6)(14,"a",9),Y(15,"Inline"),U()()()()(),j(16,"p",10),Y(17,"Angular for tinymce"),U(),j(18,"div",11),Re(19,"router-outlet"),U())},dependencies:[Lu,Zp],encapsulation:2});let t=e;return t})();var og=(()=>{let e=class e{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(i){return new(i||e)(T(sn),T(Ke))},e.\u0275dir=De({type:e});let t=e;return t})(),eI=(()=>{let e=class e extends og{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Ar(e)))(o||e)}})(),e.\u0275dir=De({type:e,features:[Kn]});let t=e;return t})(),vs=new E("");var tI={provide:vs,useExisting:nn(()=>sg),multi:!0};function nI(){let t=ht()?ht().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var rI=new E(""),sg=(()=>{let e=class e extends og{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!nI())}writeValue(n){let i=n??"";this.setProperty("value",i)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(i){return new(i||e)(T(sn),T(Ke),T(rI,8))},e.\u0275dir=De({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&cn("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Lr([tI]),Kn]});let t=e;return t})();var iI=new E(""),oI=new E("");function ag(t){return t!=null}function cg(t){return ln(t)?Z(t):t}function ug(t){let e={};return t.forEach(r=>{e=r!=null?g(g({},e),r):e}),Object.keys(e).length===0?null:e}function lg(t,e){return e.map(r=>r(t))}function sI(t){return!t.validate}function dg(t){return t.map(e=>sI(e)?e:r=>e.validate(r))}function aI(t){if(!t)return null;let e=t.filter(ag);return e.length==0?null:function(r){return ug(lg(r,e))}}function fg(t){return t!=null?aI(dg(t)):null}function cI(t){if(!t)return null;let e=t.filter(ag);return e.length==0?null:function(r){let n=lg(r,e).map(cg);return Us(n).pipe(S(ug))}}function hg(t){return t!=null?cI(dg(t)):null}function Jp(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function uI(t){return t._rawValidators}function lI(t){return t._rawAsyncValidators}function Gu(t){return t?Array.isArray(t)?t:[t]:[]}function ps(t,e){return Array.isArray(t)?t.includes(e):t===e}function Xp(t,e){let r=Gu(e);return Gu(t).forEach(i=>{ps(r,i)||r.push(i)}),r}function eg(t,e){return Gu(e).filter(r=>!ps(t,r))}var gs=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=fg(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=hg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},Wu=class extends gs{get formDirective(){return null}get path(){return null}},mi=class extends gs{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},qu=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},dI={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},PN=F(g({},dI),{"[class.ng-submitted]":"isSubmitted"}),dr=(()=>{let e=class e extends qu{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(T(mi,2))},e.\u0275dir=De({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&Oc("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Kn]});let t=e;return t})();var fi="VALID",hs="INVALID",cr="PENDING",hi="DISABLED",lr=class{},ms=class extends lr{constructor(e,r){super(),this.value=e,this.source=r}},pi=class extends lr{constructor(e,r){super(),this.pristine=e,this.source=r}},gi=class extends lr{constructor(e,r){super(),this.touched=e,this.source=r}},ur=class extends lr{constructor(e,r){super(),this.status=e,this.source=r}};function fI(t){return(ys(t)?t.validators:t)||null}function hI(t){return Array.isArray(t)?fg(t):t||null}function pI(t,e){return(ys(e)?e.asyncValidators:t)||null}function gI(t){return Array.isArray(t)?hg(t):t||null}function ys(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var Zu=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new ee,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===fi}get invalid(){return this.status===hs}get pending(){return this.status==cr}get disabled(){return this.status===hi}get enabled(){return this.status!==hi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Xp(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Xp(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(eg(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(eg(e,this._rawAsyncValidators))}hasValidator(e){return ps(this._rawValidators,e)}hasAsyncValidator(e){return ps(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let r=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(F(g({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new gi(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(e))}markAsUntouched(e={}){let r=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),r&&e.emitEvent!==!1&&this._events.next(new gi(!1,n))}markAsDirty(e={}){let r=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(F(g({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new pi(!1,n))}markAsPristine(e={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&e.emitEvent!==!1&&this._events.next(new pi(!0,n))}markAsPending(e={}){this.status=cr;let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ur(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(F(g({},e),{sourceControl:r}))}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=hi,this.errors=null,this._forEachChild(i=>{i.disable(F(g({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ms(this.value,n)),this._events.next(new ur(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(F(g({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=fi,this._forEachChild(n=>{n.enable(F(g({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(F(g({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,r){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===fi||this.status===cr)&&this._runAsyncValidator(n,e.emitEvent)}let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ms(this.value,r)),this._events.next(new ur(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(F(g({},e),{sourceControl:r}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?hi:fi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=cr,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let n=cg(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:r,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1,this,r.shouldHaveEmitted)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(e,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,r,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new ur(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,n)}_initObservables(){this.valueChanges=new Q,this.statusChanges=new Q}_calculateStatus(){return this._allControlsDisabled()?hi:this.errors?hs:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(cr)?cr:this._anyControlsHaveStatus(hs)?hs:fi}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,r){let n=!this._anyControlsDirty(),i=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),i&&this._events.next(new pi(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new gi(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){ys(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=hI(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=gI(this._rawAsyncValidators)}};var pg=new E("CallSetDisabledState",{providedIn:"root",factory:()=>Yu}),Yu="always";function mI(t,e){return[...e.path,t]}function vI(t,e,r=Yu){DI(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),wI(t,e),EI(t,e),CI(t,e),yI(t,e)}function tg(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function yI(t,e){if(e.valueAccessor.setDisabledState){let r=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function DI(t,e){let r=uI(t);e.validator!==null?t.setValidators(Jp(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let n=lI(t);e.asyncValidator!==null?t.setAsyncValidators(Jp(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let i=()=>t.updateValueAndValidity();tg(e._rawValidators,i),tg(e._rawAsyncValidators,i)}function wI(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&gg(t,e)})}function CI(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&gg(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function gg(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function EI(t,e){let r=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function bI(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function II(t){return Object.getPrototypeOf(t.constructor)===eI}function MI(t,e){if(!e)return null;Array.isArray(e);let r,n,i;return e.forEach(o=>{o.constructor===sg?r=o:II(o)?n=o:i=o}),i||n||r||null}function ng(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function rg(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var _I=class extends Zu{constructor(e=null,r,n){super(fI(r),pI(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ys(r)&&(r.nonNullable||r.initialValueIsDefault)&&(rg(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){ng(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){ng(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){rg(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var SI={provide:mi,useExisting:nn(()=>mt)},ig=Promise.resolve(),mt=(()=>{let e=class e extends mi{constructor(n,i,o,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new _I,this._registered=!1,this.name="",this.update=new Q,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=MI(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let i=n.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),bI(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){vI(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){ig.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let i=n.isDisabled.currentValue,o=i!==0&&Je(i);ig.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?mI(n,this._parent):[n]}};e.\u0275fac=function(i){return new(i||e)(T(Wu,9),T(iI,10),T(oI,10),T(vs,10),T(dt,8),T(pg,8))},e.\u0275dir=De({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Lr([SI]),Kn,ct]});let t=e;return t})();var TI=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=xt({type:e}),e.\u0275inj=Tt({});let t=e;return t})();var fr=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:pg,useValue:n.callSetDisabledState??Yu}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=xt({type:e}),e.\u0275inj=Tt({imports:[TI]});let t=e;return t})();var xI=new E("HighlightJs-Config"),hr=(()=>{let e=class e{constructor(n,i,o,s,a){this.el=n,this.ngModel=i,this.doc=o,this.ngZone=a,this.lang="html",this.mode="simple",Object.assign(this,s)}escapeHTML(n){return(n||"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}init(){this.ngZone.runOutsideAngular(()=>{this.destroy();let n=this.el.nativeElement,i=this.code||""+n.innerHTML.trim(),o=this.doc;if(this.codeEl=o.createElement(this.mode==="default"?"div":"pre"),this.codeEl==null)return;let s=this.mode==="simple";s?(this.lang&&(this.codeEl.className=this.lang),this.parentEl=n.parentNode,this.parentEl.insertBefore(this.codeEl,n.nextSibling)):(this.parentEl=n,this.parentEl.innerHTML="",this.parentEl.appendChild(this.codeEl)),this.codeEl.innerHTML=i;let a=o.defaultView.hljs;a!=null&&(a.configure(g({},this.options)),s?a.highlightElement(this.codeEl):this.codeEl.querySelectorAll("pre code").forEach(c=>{a.highlightElement(c)}))})}destroy(){this.codeEl&&this.parentEl&&(this.parentEl.removeChild(this.codeEl),this.codeEl=void 0)}ngAfterViewInit(){this.init(),this.ngModel?this.modelValue$=this.ngModel.valueChanges?.subscribe(n=>{this.code=this.escapeHTML(n),this.init()}):this.initMutation()}ngOnDestroy(){this.destroy(),this.observer?.disconnect(),this.modelValue$?.unsubscribe()}initMutation(){typeof MutationObserver>"u"||this.ngZone.runOutsideAngular(()=>{this.observer=new MutationObserver(this.init.bind(this)),this.observer.observe(this.el.nativeElement,{characterData:!0,childList:!0,subtree:!0})})}};e.\u0275fac=function(i){return new(i||e)(T(Ke),T(mt,8),T(J),T(xI,8),T(W))},e.\u0275dir=De({type:e,selectors:[["","highlight-js",""]],hostVars:2,hostBindings:function(i,o){i&2&&jo("display",o.mode==="simple"?"none":null)},inputs:{options:"options",lang:"lang",code:"code",mode:"mode"},exportAs:["highlightJs"],standalone:!0});let t=e;return t})();var mn=class{constructor(){this.baseURL="./assets/tinymce/",this.fileName="tinymce.min.js"}};var mg=(()=>{let e=class e{constructor(n){this.doc=n,this.list={},this.cached={},this._notify=new ne([])}fixPaths(n){return n=n||[],Array.isArray(n)||(n=[n]),n.map(i=>{let o=typeof i=="string"?{path:i}:i;return o.type||(o.type=o.path.endsWith(".js")||o.callback?"script":"style"),o})}monitor(n){let i=this.fixPaths(n),o=[Gs(),se(s=>s.length!==0)];return i.length>0&&o.push(se(s=>s.length===i.length&&s.every(a=>a.status==="ok"&&i.find(c=>c.path===a.path)))),this._notify.asObservable().pipe(mr.apply(this,o))}clear(){this.list={},this.cached={}}load(n){return Dn(this,null,function*(){return n=this.fixPaths(n),Promise.all(n.map(i=>i.type==="script"?this.loadScript(i.path,{callback:i.callback}):this.loadStyle(i.path))).then(i=>(this._notify.next(i),Promise.resolve(i)))})}loadScript(n,i){let{innerContent:o}=g({},i);return new Promise(s=>{if(this.list[n]===!0){s(F(g({},this.cached[n]),{status:"loading"}));return}this.list[n]=!0;let a=l=>{l.status==="ok"&&i?.callback?window[i?.callback]=()=>{c(l)}:c(l)},c=l=>{l.type="script",this.cached[n]=l,s(l),this._notify.next([l])},u=this.doc.createElement("script");u.type="text/javascript",u.src=n,u.charset="utf-8",o&&(u.innerHTML=o),u.readyState?u.onreadystatechange=()=>{(u.readyState==="loaded"||u.readyState==="complete")&&(u.onreadystatechange=null,a({path:n,status:"ok"}))}:u.onload=()=>a({path:n,status:"ok"}),u.onerror=l=>a({path:n,status:"error",error:l}),this.doc.getElementsByTagName("head")[0].appendChild(u)})}loadStyle(n,i){let{rel:o,innerContent:s}=g({rel:"stylesheet"},i);return new Promise(a=>{if(this.list[n]===!0){a(this.cached[n]);return}this.list[n]=!0;let c=this.doc.createElement("link");c.rel=o,c.type="text/css",c.href=n,s&&(c.innerHTML=s),this.doc.getElementsByTagName("head")[0].appendChild(c);let u={path:n,status:"ok",type:"style"};this.cached[n]=u,a(u)})}};e.\u0275fac=function(i){return new(i||e)(b(J))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var RI=["*"];function OI(t,e){if(t&1&&Re(0,"textarea",3),t&2){let r=kr();an("id",r.id)("placeholder",r.placeholder)}}function FI(t,e){if(t&1&&(j(0,"div"),Th(1),U()),t&2){let r=kr();an("id",r.id)}}function PI(t,e){if(t&1&&(Fc(0),Y(1),Pc()),t&2){let r=kr(2);ge(),kc(r._loading)}}function kI(t,e){if(t&1&&(j(0,"div",4),Vo(1,PI,2,1,"ng-container",5),U()),t&2){let r=kr();ge(),we("ngIf",r._loading)("ngIfElse",r._loadingTpl)}}var vg=!(typeof document=="object"&&document),vn=(()=>{let e=class e{set disabled(n){this._disabled=n,this.setDisabled()}set loading(n){n instanceof Rr?(this._loading=null,this._loadingTpl=n):this._loading=n}get instance(){return this._instance}_getWin(){return this.doc.defaultView||window}constructor(n,i,o,s,a){this.defConfig=n,this.lazySrv=i,this.ngZone=o,this.doc=s,this.cd=a,this.value="",this.load=!0,this.id=`_tinymce-${Math.random().toString(36).substring(2)}`,this.placeholder="",this.inline=!1,this._disabled=!1,this._loading=null,this._loadingTpl=null,this.delay=0,this.ready=new Q}initDelay(){vg||setTimeout(()=>this.init(),Math.max(0,this.delay))}init(){let n=this._getWin();if(!n.tinymce)throw new Error("tinymce js\u6587\u4EF6\u52A0\u8F7D\u5931\u8D25");let{defConfig:i,config:o,id:s,inline:a}=this;if(this._instance)return;if(i?.baseURL){let l=""+i.baseURL;l.endsWith("/")&&(l=l.substring(0,l.length-1)),n.tinymce.baseURL=l}let c=g(g({},i?.config),o),u=F(g(g({selector:"#"+s,inline:a},i?.config),o),{setup:l=>{this._instance=l,this.onChange&&l.on("change keyup",()=>{this.value=l.getContent(),this.ngZone.run(()=>this.onChange(this.value))}),typeof c.setup=="function"&&c.setup(l)},init_instance_callback:l=>{l&&this.value&&l.setContent(this.value),this.setDisabled(),typeof c.init_instance_callback=="function"&&c.init_instance_callback(l),this.ready.emit(l)}});c.auto_focus&&(u.auto_focus=s),this.ngZone.runOutsideAngular(()=>n.tinymce.init(u)),this.load=!1,this.cd.detectChanges()}destroy(){this._instance!=null&&(this.ngZone.runOutsideAngular(()=>{this._instance.off(),this._instance.remove()}),this._instance=null)}setDisabled(){this._instance&&this.ngZone.runOutsideAngular(()=>{let n=this._disabled?"readonly":"design",i=this._instance.setMode;typeof i=="function"?i(n):this._instance.mode.set(n)})}ngAfterViewInit(){if(vg)return;if(this._getWin().tinymce){this.initDelay();return}let{defConfig:n}=this,i=n&&n.baseURL,o=n&&n.fileName,s=(i||"./assets/tinymce/")+(o||"tinymce.min.js");this.lazySrv.monitor(s).subscribe(()=>this.initDelay()),this.lazySrv.load(s)}ngOnChanges(n){this._instance&&n.config&&(this.destroy(),this.initDelay())}ngOnDestroy(){this.destroy()}writeValue(n){this.value=n||"",this._instance&&this.ngZone.runOutsideAngular(()=>this._instance.setContent(this.value))}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}setDisabledState(n){this.disabled=n,this.setDisabled()}};e.\u0275fac=function(i){return new(i||e)(T(mn,8),T(mg),T(W),T(J),T(dt))},e.\u0275cmp=Ae({type:e,selectors:[["tinymce"]],inputs:{config:"config",placeholder:"placeholder",inline:[2,"inline","inline",Je],disabled:[2,"disabled","disabled",Je],loading:"loading",delay:[2,"delay","delay",jc]},outputs:{ready:"ready"},exportAs:["tinymce"],standalone:!0,features:[Lr([{provide:vs,useExisting:nn(()=>e),multi:!0}]),Fr,ct,Oe],ngContentSelectors:RI,decls:3,vars:3,consts:[["class","tinymce-selector",4,"ngIf"],[4,"ngIf"],["class","loading",4,"ngIf"],[1,"tinymce-selector"],[1,"loading"],[4,"ngIf","ngIfElse"]],template:function(i,o){i&1&&(Sh(),Vo(0,OI,1,2,"textarea",0)(1,FI,2,1,"div",1)(2,kI,2,2,"div",2)),i&2&&(we("ngIf",!o.inline),ge(),we("ngIf",o.inline),ge(),we("ngIf",o.load))},dependencies:[Gh],styles:[`tinymce .tinymce-selector{display:none} +`],encapsulation:2,changeDetection:0});let t=e;return t})();function yg(t){return rn([{provide:mn,useValue:t}])}var Dg=(()=>{let e=class e{constructor(n){this.san=n,this.html=` +

TinyMCE Logo +

+

Welcome to the TinyMCE Cloud demo!

+
Note, this includes some "enterprise/premium" features.
Visit the pricing page to learn more about our premium plugins.
+

Please try out the features provided in this full featured example.

+ +

Got questions or need help?

+ + +

A simple table to play with

+ + + + + + + + + + + + + + + + + + + + +
ProductCostReally?
TinyMCE CloudGet started for freeYES!
PluploadFreeYES!
+ +

Found a bug?

+

If you think you have found a bug please create an issue on the GitHub repo to report it to the developers.

+ +

Finally ...

+

Don't forget to check out our other product Plupload, your ultimate upload solution featuring HTML5 upload support.

+

Thanks for supporting TinyMCE! We hope it helps you and your users create great content.
All the best from the TinyMCE team.

+ `,this.config={height:350}}};e.\u0275fac=function(i){return new(i||e)(T(Wr))},e.\u0275cmp=Ae({type:e,selectors:[["app-home"]],standalone:!0,features:[Oe],decls:17,vars:4,consts:[[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["highlight-js",""],[3,"ngModelChange","ngModel","config"],[1,"card","card-outline-secondary","mt-3"],[1,"card-bodyquote",3,"innerHTML"],["disabled","",3,"ngModelChange","ngModel"]],template:function(i,o){i&1&&(j(0,"div",0)(1,"div",1),Y(2,"Basic"),U(),j(3,"div",2)(4,"textarea",3),Y(5,"<"),Y(6,'tinymce [config]="config" [(ngModel)]="html">'),U(),j(7,"tinymce",4),Ft("ngModelChange",function(a){return un(o.html,a)||(o.html=a),a}),U(),Y(8," Result: "),j(9,"div",5)(10,"div",2),Re(11,"blockquote",6),U()()()(),j(12,"div",0)(13,"div",1),Y(14,"Disabled"),U(),j(15,"div",2)(16,"tinymce",7),Ft("ngModelChange",function(a){return un(o.html,a)||(o.html=a),a}),U()()()),i&2&&(ge(7),Ot("ngModel",o.html),we("config",o.config),ge(4),we("innerHTML",o.san.bypassSecurityTrustHtml(o.html),Oo),ge(5),Ot("ngModel",o.html))},dependencies:[fr,dr,mt,hr,vn],encapsulation:2});let t=e;return t})();var wg=(()=>{let e=class e{constructor(){this.html=`now: ${+new Date}`,this.config={height:500,menubar:!1,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table paste code help wordcount"],toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help",content_css:"//www.tiny.cloud/css/codepen.min.css"}}ready(n){console.log("ready",n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=Ae({type:e,selectors:[["app-other"]],standalone:!0,features:[Oe],decls:8,vars:2,consts:[[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["highlight-js",""],["loading","\u52A0\u8F7D\u4E2D\u2026\u2026",3,"ngModelChange","ready","ngModel","config"]],template:function(i,o){i&1&&(j(0,"div",0)(1,"div",1),Y(2,"Loading"),U(),j(3,"div",2)(4,"textarea",3),Y(5,"<"),Y(6,'tinymce [config]="config" [(ngModel)]="html">'),U(),j(7,"tinymce",4),Ft("ngModelChange",function(a){return un(o.html,a)||(o.html=a),a}),cn("ready",function(a){return o.ready(a)}),U()()()),i&2&&(ge(7),Ot("ngModel",o.html),we("config",o.config))},dependencies:[fr,dr,mt,hr,vn]});let t=e;return t})();var Cg=(()=>{let e=class e{constructor(n){this.san=n,this.html=` +
+
+

+

The world’s first rich text editor in the cloud

+

+
+

+ Have you heard about Tiny Cloud? It’s the first step in our journey to help you deliver great content creation + experiences, no matter your level of expertise. 50,000 developers already agree. They get free access to our global CDN, image + proxy services and auto updates to the TinyMCE editor. They’re also ready for some exciting updates coming soon. +

+

+ One of these enhancements is Tiny Drive: imagine file management for TinyMCE, in the cloud, made super easy. + Learn more at tiny.cloud/tinydrive, where you’ll find a working demo and an + opportunity to provide feedback to the product team. +

+
+
+

An editor for every project

+
+

Here are some of our customer’s most common use cases for TinyMCE:

+
    +
  • Content Management Systems (e.g. WordPress, Umbraco)
  • +
  • Learning Management Systems (e.g. Blackboard)
  • +
  • Customer Relationship Management and marketing automation (e.g. Marketo)
  • +
  • Email marketing (e.g. Constant Contact)
  • +
  • Content creation in SaaS systems (e.g. Eventbrite, Evernote, GoFundMe, Zendesk)
  • +
+

+ And those use cases are just the start. TinyMCE is incredibly flexible, and with hundreds of APIs there’s likely a + solution for your editor project. If you haven’t experienced Tiny Cloud, get started today. You’ll even get a free + trial of our premium plugins – no credit card required! +

+
+
`}ready(n){console.log("ready",n)}};e.\u0275fac=function(i){return new(i||e)(T(Wr))},e.\u0275cmp=Ae({type:e,selectors:[["app-inline"]],standalone:!0,features:[Oe],decls:12,vars:2,consts:[[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["highlight-js",""],["inline","",3,"ngModelChange","ngModel"],[1,"card","card-outline-secondary","mt-3"],[1,"card-bodyquote",3,"innerHTML"]],template:function(i,o){i&1&&(j(0,"div",0)(1,"div",1),Y(2,"Inline mode"),U(),j(3,"div",2)(4,"textarea",3),Y(5,"<"),Y(6,'tinymce [config]="config" [(ngModel)]="html" inline>'),U(),j(7,"tinymce",4),Ft("ngModelChange",function(a){return un(o.html,a)||(o.html=a),a}),U(),Y(8," Result: "),j(9,"div",5)(10,"div",2),Re(11,"blockquote",6),U()()()()),i&2&&(ge(7),Ot("ngModel",o.html),ge(4),we("innerHTML",o.san.bypassSecurityTrustHtml(o.html),Oo))},dependencies:[fr,dr,mt,hr,vn],encapsulation:2});let t=e;return t})();var Eg=[{path:"",component:Dg},{path:"other",component:wg},{path:"inline",component:Cg}];fp(Kp,{providers:[ip(),Yp(Eg,Qp()),yg({baseURL:"//cdn.tiny.cloud/1/no-api-key/tinymce/7/"})]}).catch(t=>console.error(t)); diff --git a/main-YCZQDN45.js b/main-YCZQDN45.js deleted file mode 100644 index 5f742e3..0000000 --- a/main-YCZQDN45.js +++ /dev/null @@ -1,87 +0,0 @@ -var Jp=Object.defineProperty,Xp=Object.defineProperties;var eg=Object.getOwnPropertyDescriptors;var Oc=Object.getOwnPropertySymbols;var tg=Object.prototype.hasOwnProperty,ng=Object.prototype.propertyIsEnumerable;var Fc=(e,t,r)=>t in e?Jp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,p=(e,t)=>{for(var r in t||={})tg.call(t,r)&&Fc(e,r,t[r]);if(Oc)for(var r of Oc(t))ng.call(t,r)&&Fc(e,r,t[r]);return e},L=(e,t)=>Xp(e,eg(t));var rr=(e,t,r)=>new Promise((n,i)=>{var o=u=>{try{a(r.next(u))}catch(c){i(c)}},s=u=>{try{a(r.throw(u))}catch(c){i(c)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,s);a((r=r.apply(e,t)).next())});var Pc=null;var cs=1,ls=Symbol("SIGNAL");function k(e){let t=Pc;return Pc=e,t}var kc={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 rg(e){if(!(hs(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===cs)){if(!e.producerMustRecompute(e)&&!ds(e)){e.dirty=!1,e.lastCleanEpoch=cs;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=cs}}function Lc(e){return e&&(e.nextProducerIndex=0),k(e)}function Vc(e,t){if(k(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(hs(e))for(let r=e.nextProducerIndex;re.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ds(e){ii(e);for(let t=0;t0}function ii(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function ig(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function og(){throw new Error}var sg=og;function Uc(e){sg=e}function _(e){return typeof e=="function"}function fn(e){let r=e(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var oi=fn(e=>function(r){e(this),this.message=r?`${r.length} errors occurred during unsubscription: -${r.map((n,i)=>`${i+1}) ${n.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=r});function ir(e,t){if(e){let r=e.indexOf(t);0<=r&&e.splice(r,1)}}var K=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(_(n))try{n()}catch(o){t=o instanceof oi?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Bc(o)}catch(s){t=t??[],s instanceof oi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new oi(t)}}add(t){var r;if(t&&t!==this)if(this.closed)Bc(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}}_hasParent(t){let{_parentage:r}=this;return r===t||Array.isArray(r)&&r.includes(t)}_addParent(t){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t}_removeParent(t){let{_parentage:r}=this;r===t?this._parentage=null:Array.isArray(r)&&ir(r,t)}remove(t){let{_finalizers:r}=this;r&&ir(r,t),t instanceof e&&t._removeParent(this)}};K.EMPTY=(()=>{let e=new K;return e.closed=!0,e})();var ps=K.EMPTY;function si(e){return e instanceof K||e&&"closed"in e&&_(e.remove)&&_(e.add)&&_(e.unsubscribe)}function Bc(e){_(e)?e():e.unsubscribe()}var Oe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var hn={setTimeout(e,t,...r){let{delegate:n}=hn;return n?.setTimeout?n.setTimeout(e,t,...r):setTimeout(e,t,...r)},clearTimeout(e){let{delegate:t}=hn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function ai(e){hn.setTimeout(()=>{let{onUnhandledError:t}=Oe;if(t)t(e);else throw e})}function or(){}var $c=gs("C",void 0,void 0);function Hc(e){return gs("E",void 0,e)}function zc(e){return gs("N",e,void 0)}function gs(e,t,r){return{kind:e,value:t,error:r}}var Vt=null;function pn(e){if(Oe.useDeprecatedSynchronousErrorHandling){let t=!Vt;if(t&&(Vt={errorThrown:!1,error:null}),e(),t){let{errorThrown:r,error:n}=Vt;if(Vt=null,r)throw n}}else e()}function Gc(e){Oe.useDeprecatedSynchronousErrorHandling&&Vt&&(Vt.errorThrown=!0,Vt.error=e)}var jt=class extends K{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,si(t)&&t.add(this)):this.destination=cg}static create(t,r,n){return new Je(t,r,n)}next(t){this.isStopped?ys(zc(t),this):this._next(t)}error(t){this.isStopped?ys(Hc(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ys($c,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},ag=Function.prototype.bind;function ms(e,t){return ag.call(e,t)}var vs=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:r}=this;if(r.next)try{r.next(t)}catch(n){ui(n)}}error(t){let{partialObserver:r}=this;if(r.error)try{r.error(t)}catch(n){ui(n)}else ui(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(r){ui(r)}}},Je=class extends jt{constructor(t,r,n){super();let i;if(_(t)||!t)i={next:t??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&Oe.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&ms(t.next,o),error:t.error&&ms(t.error,o),complete:t.complete&&ms(t.complete,o)}):i=t}this.destination=new vs(i)}};function ui(e){Oe.useDeprecatedSynchronousErrorHandling?Gc(e):ai(e)}function ug(e){throw e}function ys(e,t){let{onStoppedNotification:r}=Oe;r&&hn.setTimeout(()=>r(e,t))}var cg={closed:!0,next:or,error:ug,complete:or};var gn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function me(e){return e}function sr(...e){return Ds(e)}function Ds(e){return e.length===0?me:e.length===1?e[0]:function(r){return e.reduce((n,i)=>i(n),r)}}var P=(()=>{class e{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new e;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=dg(r)?r:new Je(r,n,i);return pn(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=Wc(n),new n((i,o)=>{let s=new Je({next:a=>{try{r(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[gn](){return this}pipe(...r){return Ds(r)(this)}toPromise(r){return r=Wc(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return e.create=t=>new e(t),e})();function Wc(e){var t;return(t=e??Oe.Promise)!==null&&t!==void 0?t:Promise}function lg(e){return e&&_(e.next)&&_(e.error)&&_(e.complete)}function dg(e){return e&&e instanceof jt||lg(e)&&si(e)}function ws(e){return _(e?.lift)}function N(e){return t=>{if(ws(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function R(e,t,r,n,i){return new Cs(e,t,r,n,i)}var Cs=class extends jt{constructor(t,r,n,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(u){t.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function mn(){return N((e,t)=>{let r=null;e._refCount++;let n=R(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){r=null;return}let i=e._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(n),n.closed||(r=e.connect())})}var yn=class extends P{constructor(t,r){super(),this.source=t,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,ws(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new K;let r=this.getSubject();t.add(this.source.subscribe(R(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),t.closed&&(this._connection=null,t=K.EMPTY)}return t}refCount(){return mn()(this)}};var qc=fn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var te=(()=>{class e extends P{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new ci(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new qc}next(r){pn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){pn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){pn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:i,observers:o}=this;return n||i?ps:(this.currentObservers=null,o.push(r),new K(()=>{this.currentObservers=null,ir(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new P;return r.source=this,r}}return e.create=(t,r)=>new ci(t,r),e})(),ci=class extends te{constructor(t,r){super(),this.destination=t,this.source=r}next(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,t)}error(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,t)}complete(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)}_subscribe(t){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&n!==void 0?n:ps}};var J=class extends te{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let r=super._subscribe(t);return!r.closed&&t.next(this._value),r}getValue(){let{hasError:t,thrownError:r,_value:n}=this;if(t)throw r;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}};var ye=new P(e=>e.complete());function Zc(e){return e&&_(e.schedule)}function Yc(e){return e[e.length-1]}function li(e){return _(Yc(e))?e.pop():void 0}function mt(e){return Zc(Yc(e))?e.pop():void 0}function Kc(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{c(n.next(l))}catch(d){s(d)}}function u(l){try{c(n.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((n=n.apply(e,t||[])).next())})}function Qc(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ut(e){return this instanceof Ut?(this.v=e,this):new Ut(e)}function Jc(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(f){return function(m){return Promise.resolve(m).then(f,d)}}function a(f,m){n[f]&&(i[f]=function(C){return new Promise(function(w,y){o.push([f,C,w,y])>1||u(f,C)})},m&&(i[f]=m(i[f])))}function u(f,m){try{c(n[f](m))}catch(C){h(o[0][3],C)}}function c(f){f.value instanceof Ut?Promise.resolve(f.value.v).then(l,d):h(o[0][2],f)}function l(f){u("next",f)}function d(f){u("throw",f)}function h(f,m){f(m),o.shift(),o.length&&u(o[0][0],o[0][1])}}function Xc(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Qc=="function"?Qc(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(s){return new Promise(function(a,u){s=e[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}var di=e=>e&&typeof e.length=="number"&&typeof e!="function";function fi(e){return _(e?.then)}function hi(e){return _(e[gn])}function pi(e){return Symbol.asyncIterator&&_(e?.[Symbol.asyncIterator])}function gi(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function fg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var mi=fg();function yi(e){return _(e?.[mi])}function vi(e){return Jc(this,arguments,function*(){let r=e.getReader();try{for(;;){let{value:n,done:i}=yield Ut(r.read());if(i)return yield Ut(void 0);yield yield Ut(n)}}finally{r.releaseLock()}})}function Di(e){return _(e?.getReader)}function G(e){if(e instanceof P)return e;if(e!=null){if(hi(e))return hg(e);if(di(e))return pg(e);if(fi(e))return gg(e);if(pi(e))return el(e);if(yi(e))return mg(e);if(Di(e))return yg(e)}throw gi(e)}function hg(e){return new P(t=>{let r=e[gn]();if(_(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function pg(e){return new P(t=>{for(let r=0;r{e.then(r=>{t.closed||(t.next(r),t.complete())},r=>t.error(r)).then(null,ai)})}function mg(e){return new P(t=>{for(let r of e)if(t.next(r),t.closed)return;t.complete()})}function el(e){return new P(t=>{vg(e,t).catch(r=>t.error(r))})}function yg(e){return el(vi(e))}function vg(e,t){var r,n,i,o;return Kc(this,void 0,void 0,function*(){try{for(r=Xc(e);n=yield r.next(),!n.done;){let s=n.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}t.complete()})}function fe(e,t,r,n=0,i=!1){let o=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}function wi(e,t=0){return N((r,n)=>{r.subscribe(R(n,i=>fe(n,e,()=>n.next(i),t),()=>fe(n,e,()=>n.complete(),t),i=>fe(n,e,()=>n.error(i),t)))})}function Ci(e,t=0){return N((r,n)=>{n.add(e.schedule(()=>r.subscribe(n),t))})}function tl(e,t){return G(e).pipe(Ci(t),wi(t))}function nl(e,t){return G(e).pipe(Ci(t),wi(t))}function rl(e,t){return new P(r=>{let n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function il(e,t){return new P(r=>{let n;return fe(r,t,()=>{n=e[mi](),fe(r,t,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>_(n?.return)&&n.return()})}function Ei(e,t){if(!e)throw new Error("Iterable cannot be null");return new P(r=>{fe(r,t,()=>{let n=e[Symbol.asyncIterator]();fe(r,t,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function ol(e,t){return Ei(vi(e),t)}function sl(e,t){if(e!=null){if(hi(e))return tl(e,t);if(di(e))return rl(e,t);if(fi(e))return nl(e,t);if(pi(e))return Ei(e,t);if(yi(e))return il(e,t);if(Di(e))return ol(e,t)}throw gi(e)}function W(e,t){return t?sl(e,t):G(e)}function M(...e){let t=mt(e);return W(e,t)}function vn(e,t){let r=_(e)?e:()=>e,n=i=>i.error(r());return new P(t?i=>t.schedule(n,0,i):n)}function Es(e){return!!e&&(e instanceof P||_(e.lift)&&_(e.subscribe))}var Xe=fn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function S(e,t){return N((r,n)=>{let i=0;r.subscribe(R(n,o=>{n.next(e.call(t,o,i++))}))})}var{isArray:Dg}=Array;function wg(e,t){return Dg(t)?e(...t):e(t)}function bi(e){return S(t=>wg(e,t))}var{isArray:Cg}=Array,{getPrototypeOf:Eg,prototype:bg,keys:Ig}=Object;function Ii(e){if(e.length===1){let t=e[0];if(Cg(t))return{args:t,keys:null};if(Mg(t)){let r=Ig(t);return{args:r.map(n=>t[n]),keys:r}}}return{args:e,keys:null}}function Mg(e){return e&&typeof e=="object"&&Eg(e)===bg}function Mi(e,t){return e.reduce((r,n,i)=>(r[n]=t[i],r),{})}function _i(...e){let t=mt(e),r=li(e),{args:n,keys:i}=Ii(e);if(n.length===0)return W([],t);let o=new P(_g(n,t,i?s=>Mi(i,s):me));return r?o.pipe(bi(r)):o}function _g(e,t,r=me){return n=>{al(t,()=>{let{length:i}=e,o=new Array(i),s=i,a=i;for(let u=0;u{let c=W(e[u],t),l=!1;c.subscribe(R(n,d=>{o[u]=d,l||(l=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function al(e,t,r){e?fe(r,e,t):t()}function ul(e,t,r,n,i,o,s,a){let u=[],c=0,l=0,d=!1,h=()=>{d&&!u.length&&!c&&t.complete()},f=C=>c{o&&t.next(C),c++;let w=!1;G(r(C,l++)).subscribe(R(t,y=>{i?.(y),o?f(y):t.next(y)},()=>{w=!0},void 0,()=>{if(w)try{for(c--;u.length&&cm(y)):m(y)}h()}catch(y){t.error(y)}}))};return e.subscribe(R(t,f,()=>{d=!0,h()})),()=>{a?.()}}function X(e,t,r=1/0){return _(t)?X((n,i)=>S((o,s)=>t(n,o,i,s))(G(e(n,i))),r):(typeof t=="number"&&(r=t),N((n,i)=>ul(n,i,e,r)))}function bs(e=1/0){return X(me,e)}function cl(){return bs(1)}function Dn(...e){return cl()(W(e,mt(e)))}function Si(e){return new P(t=>{G(e()).subscribe(t)})}function Is(...e){let t=li(e),{args:r,keys:n}=Ii(e),i=new P(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=h},()=>u--,void 0,()=>{(!u||!d)&&(c||o.next(n?Mi(n,a):a),o.complete())}))}});return t?i.pipe(bi(t)):i}function se(e,t){return N((r,n)=>{let i=0;r.subscribe(R(n,o=>e.call(t,o,i++)&&n.next(o)))})}function yt(e){return N((t,r)=>{let n=null,i=!1,o;n=t.subscribe(R(r,void 0,void 0,s=>{o=G(e(s,yt(e)(t))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function ll(e,t,r,n,i){return(o,s)=>{let a=r,u=t,c=0;o.subscribe(R(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),n&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function vt(e,t){return _(t)?X(e,t,1):X(e,1)}function Dt(e){return N((t,r)=>{let n=!1;t.subscribe(R(r,i=>{n=!0,r.next(i)},()=>{n||r.next(e),r.complete()}))})}function et(e){return e<=0?()=>ye:N((t,r)=>{let n=0;t.subscribe(R(r,i=>{++n<=e&&(r.next(i),e<=n&&r.complete())}))})}function Ms(e){return S(()=>e)}function Ti(e=Sg){return N((t,r)=>{let n=!1;t.subscribe(R(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(e())))})}function Sg(){return new Xe}function Bt(e){return N((t,r)=>{try{t.subscribe(r)}finally{r.add(e)}})}function Be(e,t){let r=arguments.length>=2;return n=>n.pipe(e?se((i,o)=>e(i,o,n)):me,et(1),r?Dt(t):Ti(()=>new Xe))}function wn(e){return e<=0?()=>ye:N((t,r)=>{let n=[];t.subscribe(R(r,i=>{n.push(i),e{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function _s(e,t){let r=arguments.length>=2;return n=>n.pipe(e?se((i,o)=>e(i,o,n)):me,wn(1),r?Dt(t):Ti(()=>new Xe))}function Ss(e,t){return N(ll(e,t,arguments.length>=2,!0))}function As(e={}){let{connector:t=()=>new te,resetOnError:r=!0,resetOnComplete:n=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,u,c=0,l=!1,d=!1,h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=u=void 0,l=d=!1},m=()=>{let C=s;f(),C?.unsubscribe()};return N((C,w)=>{c++,!d&&!l&&h();let y=u=u??t();w.add(()=>{c--,c===0&&!d&&!l&&(a=Ts(m,i))}),y.subscribe(w),!s&&c>0&&(s=new Je({next:Z=>y.next(Z),error:Z=>{d=!0,h(),a=Ts(f,r,Z),y.error(Z)},complete:()=>{l=!0,h(),a=Ts(f,n),y.complete()}}),G(C).subscribe(s))})(o)}}function Ts(e,t,...r){if(t===!0){e();return}if(t===!1)return;let n=new Je({next:()=>{n.unsubscribe(),e()}});return G(t(...r)).subscribe(n)}function xs(...e){let t=mt(e);return N((r,n)=>{(t?Dn(e,r,t):Dn(e,r)).subscribe(n)})}function ve(e,t){return N((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(R(n,u=>{i?.unsubscribe();let c=0,l=o++;G(e(u,l)).subscribe(i=R(n,d=>n.next(t?t(u,d,l,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Ns(e){return N((t,r)=>{G(e).subscribe(R(r,()=>r.complete(),or)),!r.closed&&t.subscribe(r)})}function ne(e,t,r){let n=_(e)||t||r?{next:e,error:t,complete:r}:e;return n?N((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(R(o,u=>{var c;(c=n.next)===null||c===void 0||c.call(n,u),o.next(u)},()=>{var u;a=!1,(u=n.complete)===null||u===void 0||u.call(n),o.complete()},u=>{var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,u),o.error(u)},()=>{var u,c;a&&((u=n.unsubscribe)===null||u===void 0||u.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):me}var Jl="https://g.co/ng/security#xss",v=class extends Error{constructor(t,r){super(no(t,r)),this.code=t}};function no(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function ro(e){return{toString:e}.toString()}var tt=globalThis;function B(e){for(let t in e)if(e[t]===B)return t;throw Error("Could not find renamed property on target object.")}function Tg(e,t){for(let r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function le(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(le).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let r=t.indexOf(` -`);return r===-1?t:t.substring(0,r)}function dl(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Ag=B({__forward_ref__:B});function Kt(e){return e.__forward_ref__=Kt,e.toString=function(){return le(this())},e}function ce(e){return Xl(e)?e():e}function Xl(e){return typeof e=="function"&&e.hasOwnProperty(Ag)&&e.__forward_ref__===Kt}function D(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Mt(e){return{providers:e.providers||[],imports:e.imports||[]}}function io(e){return fl(e,td)||fl(e,nd)}function ed(e){return io(e)!==null}function fl(e,t){return e.hasOwnProperty(t)?e[t]:null}function xg(e){let t=e&&(e[td]||e[nd]);return t||null}function hl(e){return e&&(e.hasOwnProperty(pl)||e.hasOwnProperty(Ng))?e[pl]:null}var td=B({\u0275prov:B}),pl=B({\u0275inj:B}),nd=B({ngInjectableDef:B}),Ng=B({ngInjectorDef:B}),E=class{constructor(t,r){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=D({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function rd(e){return e&&!!e.\u0275providers}var Rg=B({\u0275cmp:B}),Og=B({\u0275dir:B}),Fg=B({\u0275pipe:B}),Pg=B({\u0275mod:B}),ji=B({\u0275fac:B}),ar=B({__NG_ELEMENT_ID__:B}),gl=B({__NG_ENV_ID__:B});function wr(e){return typeof e=="string"?e:e==null?"":String(e)}function kg(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():wr(e)}function Lg(e,t){let r=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new v(-200,e)}function Pa(e,t){throw new v(-201,!1)}var x=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(x||{}),qs;function id(){return qs}function Ie(e){let t=qs;return qs=e,t}function od(e,t,r){let n=io(e);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&x.Optional)return null;if(t!==void 0)return t;Pa(e,"Injector")}var Vg={},ur=Vg,jg="__NG_DI_FLAG__",Ui="ngTempTokenPath",Ug="ngTokenPath",Bg=/\n/gm,$g="\u0275",ml="__source",In;function Hg(){return In}function wt(e){let t=In;return In=e,t}function zg(e,t=x.Default){if(In===void 0)throw new v(-203,!1);return In===null?od(e,void 0,t):In.get(e,t&x.Optional?null:void 0,t)}function b(e,t=x.Default){return(id()||zg)(ce(e),t)}function g(e,t=x.Default){return b(e,oo(t))}function oo(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Zs(e){let t=[];for(let r=0;r ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):le(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${e.replace(Bg,` - `)}`}function _n(e,t){let r=e.hasOwnProperty(ji);return r?e[ji]:null}function ka(e,t){e.forEach(r=>Array.isArray(r)?ka(r,t):t(r))}function sd(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function Bi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Zg(e,t){let r=[];for(let n=0;nt;){let o=i-2;e[i]=e[o],i--}e[t]=r,e[t+1]=n}}function Qg(e,t,r){let n=Cr(e,t);return n>=0?e[n|1]=r:(n=~n,Yg(e,n,t,r)),n}function Rs(e,t){let r=Cr(e,t);if(r>=0)return e[r|1]}function Cr(e,t){return Kg(e,t,1)}function Kg(e,t,r){let n=0,i=e.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=e[o<t?i=o:n=o+1}return~(i<t){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[l+1].toLowerCase(),n&2&&c!==d){if(Fe(n))return!1;s=!0}}}}return Fe(n)||s}function Fe(e){return(e&1)===0}function rm(e,t,r,n){if(t===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!Fe(s)&&(t+=vl(o,i),i=""),n=s,o=o||!Fe(n);r++}return i!==""&&(t+=vl(o,i)),t}function cm(e){return e.map(um).join(",")}function lm(e){let t=[],r=[],n=1,i=2;for(;n{let t=yd(e),r=L(p({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===cd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||ze.Emulated,styles:e.styles||Me,_:null,schemas:e.schemas||null,tView:null,id:""});vd(r);let n=e.dependencies;return r.directiveDefs=wl(n,!1),r.pipeDefs=wl(n,!0),r.id=hm(r),r})}function dm(e){return zt(e)||hd(e)}function fm(e){return e!==null}function _t(e){return ro(()=>({type:e.type,bootstrap:e.bootstrap||Me,declarations:e.declarations||Me,imports:e.imports||Me,exports:e.exports||Me,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Dl(e,t){if(e==null)return Sn;let r={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n],o,s,a=ee.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(r[o]=a!==ee.None?[n,a]:n,t[o]=s):r[o]=n}return r}function De(e){return ro(()=>{let t=yd(e);return vd(t),t})}function zt(e){return e[Rg]||null}function hd(e){return e[Og]||null}function pd(e){return e[Fg]||null}function gd(e){let t=zt(e)||hd(e)||pd(e);return t!==null?t.standalone:!1}function md(e,t){let r=e[Pg]||null;if(!r&&t===!0)throw new Error(`Type ${le(e)} does not have '\u0275mod' property.`);return r}function yd(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Sn,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Me,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Dl(e.inputs,t),outputs:Dl(e.outputs),debugInfo:null}}function vd(e){e.features?.forEach(t=>t(e))}function wl(e,t){if(!e)return null;let r=t?pd:dm;return()=>(typeof e=="function"?e():e).map(n=>r(n)).filter(fm)}function hm(e){let t=0,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let i of r)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function St(e){return{\u0275providers:e}}function pm(...e){return{\u0275providers:Dd(!0,e),\u0275fromNgModule:!0}}function Dd(e,...t){let r=[],n=new Set,i,o=s=>{r.push(s)};return ka(t,s=>{let a=s;Qs(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&wd(i,o),r}function wd(e,t){for(let r=0;r{t(o,n)})}}function Qs(e,t,r,n){if(e=ce(e),!e)return!1;let i=null,o=hl(e),s=!o&&zt(e);if(!o&&!s){let u=e.ngModule;if(o=hl(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)Qs(c,t,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let c;try{ka(o.imports,l=>{Qs(l,t,r,n)&&(c||=[],c.push(l))})}finally{}c!==void 0&&wd(c,t)}if(!a){let c=_n(i)||(()=>new i);t({provide:i,useFactory:c,deps:Me},i),t({provide:ud,useValue:i,multi:!0},i),t({provide:Tn,useValue:()=>b(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=e;Va(u,l=>{t(l,c)})}}else return!1;return i!==e&&e.providers!==void 0}function Va(e,t){for(let r of e)rd(r)&&(r=r.\u0275providers),Array.isArray(r)?Va(r,t):t(r)}var gm=B({provide:String,useValue:B});function Cd(e){return e!==null&&typeof e=="object"&&gm in e}function mm(e){return!!(e&&e.useExisting)}function ym(e){return!!(e&&e.useFactory)}function An(e){return typeof e=="function"}function vm(e){return!!e.useClass}var so=new E(""),Fi={},Dm={},Os;function ja(){return Os===void 0&&(Os=new $i),Os}var he=class{},lr=class extends he{get destroyed(){return this._destroyed}constructor(t,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Js(t,s=>this.processProvider(s)),this.records.set(ad,Cn(void 0,this)),i.has("environment")&&this.records.set(he,Cn(void 0,this));let o=this.records.get(so);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(ud,Me,x.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=k(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),k(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let r=wt(this),n=Ie(void 0),i;try{return t()}finally{wt(r),Ie(n)}}get(t,r=ur,n=x.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(gl))return t[gl](this);n=oo(n);let i,o=wt(this),s=Ie(void 0);try{if(!(n&x.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=Im(t)&&io(t);c&&this.injectableDefInScope(c)?u=Cn(Ks(t),Fi):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=n&x.Self?ja():this.parent;return r=n&x.Optional&&r===ur?null:r,a.get(t,r)}catch(a){if(a.name==="NullInjectorError"){if((a[Ui]=a[Ui]||[]).unshift(le(t)),o)throw a;return Wg(a,t,"R3InjectorError",this.source)}else throw a}finally{Ie(s),wt(o)}}resolveInjectorInitializers(){let t=k(null),r=wt(this),n=Ie(void 0),i;try{let o=this.get(Tn,Me,x.Self);for(let s of o)s()}finally{wt(r),Ie(n),k(t)}}toString(){let t=[],r=this.records;for(let n of r.keys())t.push(le(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new v(205,!1)}processProvider(t){t=ce(t);let r=An(t)?t:ce(t&&t.provide),n=Cm(t);if(!An(t)&&t.multi===!0){let i=this.records.get(r);i||(i=Cn(void 0,Fi,!0),i.factory=()=>Zs(i.multi),this.records.set(r,i)),r=t,i.multi.push(t)}this.records.set(r,n)}hydrate(t,r){let n=k(null);try{return r.value===Fi&&(r.value=Dm,r.value=r.factory()),typeof r.value=="object"&&r.value&&bm(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{k(n)}}injectableDefInScope(t){if(!t.providedIn)return!1;let r=ce(t.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){let r=this._onDestroyHooks.indexOf(t);r!==-1&&this._onDestroyHooks.splice(r,1)}};function Ks(e){let t=io(e),r=t!==null?t.factory:_n(e);if(r!==null)return r;if(e instanceof E)throw new v(204,!1);if(e instanceof Function)return wm(e);throw new v(204,!1)}function wm(e){if(e.length>0)throw new v(204,!1);let r=xg(e);return r!==null?()=>r.factory(e):()=>new e}function Cm(e){if(Cd(e))return Cn(void 0,e.useValue);{let t=Ed(e);return Cn(t,Fi)}}function Ed(e,t,r){let n;if(An(e)){let i=ce(e);return _n(i)||Ks(i)}else if(Cd(e))n=()=>ce(e.useValue);else if(ym(e))n=()=>e.useFactory(...Zs(e.deps||[]));else if(mm(e))n=()=>b(ce(e.useExisting));else{let i=ce(e&&(e.useClass||e.provide));if(Em(e))n=()=>new i(...Zs(e.deps));else return _n(i)||Ks(i)}return n}function Cn(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function Em(e){return!!e.deps}function bm(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Im(e){return typeof e=="function"||typeof e=="object"&&e instanceof E}function Js(e,t){for(let r of e)Array.isArray(r)?Js(r,t):r&&rd(r)?Js(r.\u0275providers,t):t(r)}function ot(e,t){e instanceof lr&&e.assertNotDestroyed();let r,n=wt(e),i=Ie(void 0);try{return t()}finally{wt(n),Ie(i)}}function Mm(){return id()!==void 0||Hg()!=null}function _m(e){return typeof e=="function"}var st=0,O=1,I=2,ae=3,Pe=4,we=5,dr=6,fr=7,Ge=8,xn=9,ke=10,Y=11,hr=12,Cl=13,Pn=14,Le=15,ao=16,En=17,Nn=18,uo=19,bd=20,Ct=21,Fs=22,Gt=23,We=25,Id=1;var Wt=7,Hi=8,zi=9,_e=10,Ua=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Ua||{});function $t(e){return Array.isArray(e)&&typeof e[Id]=="object"}function at(e){return Array.isArray(e)&&e[Id]===!0}function Ba(e){return(e.flags&4)!==0}function co(e){return e.componentOffset>-1}function lo(e){return(e.flags&1)===1}function Et(e){return!!e.template}function Sm(e){return(e[I]&512)!==0}var Xs=class{constructor(t,r,n){this.previousValue=t,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Md(e,t,r,n){t!==null?t.applyValueToInputSignal(t,n):e[r]=n}function ut(){return _d}function _d(e){return e.type.prototype.ngOnChanges&&(e.setInput=Am),Tm}ut.ngInherit=!0;function Tm(){let e=Td(this),t=e?.current;if(t){let r=e.previous;if(r===Sn)e.previous=t;else for(let n in t)r[n]=t[n];e.current=null,this.ngOnChanges(t)}}function Am(e,t,r,n,i){let o=this.declaredInputs[n],s=Td(e)||xm(e,{previous:Sn,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[o];a[o]=new Xs(c&&c.currentValue,r,u===Sn),Md(e,t,i,r)}var Sd="__ngSimpleChanges__";function Td(e){return e[Sd]||null}function xm(e,t){return e[Sd]=t}var El=null;var $e=function(e,t,r){El?.(e,t,r)},Nm="svg",Rm="math",Om=!1;function Fm(){return Om}function qe(e){for(;Array.isArray(e);)e=e[st];return e}function Ad(e,t){return qe(t[e])}function Te(e,t){return qe(t[e.index])}function xd(e,t){return e.data[t]}function Tt(e,t){let r=t[e];return $t(r)?r:r[st]}function $a(e){return(e[I]&128)===128}function Pm(e){return at(e[ae])}function Rn(e,t){return t==null?null:e[t]}function Nd(e){e[En]=0}function km(e){e[I]&1024||(e[I]|=1024,$a(e)&&pr(e))}function Lm(e,t){for(;e>0;)t=t[Pn],e--;return t}function Ha(e){return!!(e[I]&9216||e[Gt]?.dirty)}function ea(e){e[ke].changeDetectionScheduler?.notify(1),Ha(e)?pr(e):e[I]&64&&(Fm()?(e[I]|=1024,pr(e)):e[ke].changeDetectionScheduler?.notify())}function pr(e){e[ke].changeDetectionScheduler?.notify();let t=gr(e);for(;t!==null&&!(t[I]&8192||(t[I]|=8192,!$a(t)));)t=gr(t)}function Rd(e,t){if((e[I]&256)===256)throw new v(911,!1);e[Ct]===null&&(e[Ct]=[]),e[Ct].push(t)}function Vm(e,t){if(e[Ct]===null)return;let r=e[Ct].indexOf(t);r!==-1&&e[Ct].splice(r,1)}function gr(e){let t=e[ae];return at(t)?t[ae]:t}var F={lFrame:jd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function jm(){return F.lFrame.elementDepthCount}function Um(){F.lFrame.elementDepthCount++}function Bm(){F.lFrame.elementDepthCount--}function Od(){return F.bindingsEnabled}function Fd(){return F.skipHydrationRootTNode!==null}function $m(e){return F.skipHydrationRootTNode===e}function Hm(){F.skipHydrationRootTNode=null}function $(){return F.lFrame.lView}function ue(){return F.lFrame.tView}function de(){let e=Pd();for(;e!==null&&e.type===64;)e=e.parent;return e}function Pd(){return F.lFrame.currentTNode}function zm(){let e=F.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Jt(e,t){let r=F.lFrame;r.currentTNode=e,r.isParent=t}function za(){return F.lFrame.isParent}function Ga(){F.lFrame.isParent=!1}function Gm(e){return F.lFrame.bindingIndex=e}function fo(){return F.lFrame.bindingIndex++}function Wm(e){let t=F.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function qm(){return F.lFrame.inI18n}function Zm(e,t){let r=F.lFrame;r.bindingIndex=r.bindingRootIndex=e,ta(t)}function Ym(){return F.lFrame.currentDirectiveIndex}function ta(e){F.lFrame.currentDirectiveIndex=e}function Qm(e){let t=F.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function kd(e){F.lFrame.currentQueryIndex=e}function Km(e){let t=e[O];return t.type===2?t.declTNode:t.type===1?e[we]:null}function Ld(e,t,r){if(r&x.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(r&x.Host);)if(i=Km(o),i===null||(o=o[Pn],i.type&10))break;if(i===null)return!1;t=i,e=o}let n=F.lFrame=Vd();return n.currentTNode=t,n.lView=e,!0}function Wa(e){let t=Vd(),r=e[O];F.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function Vd(){let e=F.lFrame,t=e===null?null:e.child;return t===null?jd(e):t}function jd(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Ud(){let e=F.lFrame;return F.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Bd=Ud;function qa(){let e=Ud();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Jm(e){return(F.lFrame.contextLView=Lm(e,F.lFrame.contextLView))[Ge]}function kn(){return F.lFrame.selectedIndex}function qt(e){F.lFrame.selectedIndex=e}function Za(){let e=F.lFrame;return xd(e.tView,e.selectedIndex)}function Xm(){return F.lFrame.currentNamespace}var $d=!0;function ho(){return $d}function po(e){$d=e}function ey(e,t,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(n){let s=_d(t);(r.preOrderHooks??=[]).push(e,s),(r.preOrderCheckHooks??=[]).push(e,s)}i&&(r.preOrderHooks??=[]).push(0-e,i),o&&((r.preOrderHooks??=[]).push(e,o),(r.preOrderCheckHooks??=[]).push(e,o))}function go(e,t){for(let r=t.directiveStart,n=t.directiveEnd;r=n)break}else t[u]<0&&(e[En]+=65536),(a>14>16&&(e[I]&3)===t&&(e[I]+=16384,bl(a,o)):bl(a,o)}var Mn=-1,Zt=class{constructor(t,r,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function ny(e){return e instanceof Zt}function ry(e){return(e.flags&8)!==0}function iy(e){return(e.flags&16)!==0}function zd(e){return e!==Mn}function Gi(e){return e&32767}function oy(e){return e>>16}function Wi(e,t){let r=oy(e),n=t;for(;r>0;)n=n[Pn],r--;return n}var na=!0;function Il(e){let t=na;return na=e,t}var sy=256,Gd=sy-1,Wd=5,ay=0,He={};function uy(e,t,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(ar)&&(n=r[ar]),n==null&&(n=r[ar]=ay++);let i=n&Gd,o=1<>Wd)]|=o}function qi(e,t){let r=qd(e,t);if(r!==-1)return r;let n=t[O];n.firstCreatePass&&(e.injectorIndex=t.length,ks(n.data,e),ks(t,null),ks(n.blueprint,null));let i=Ya(e,t),o=e.injectorIndex;if(zd(i)){let s=Gi(i),a=Wi(i,t),u=a[O].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|u[s+c]}return t[o+8]=i,o}function ks(e,t){e.push(0,0,0,0,0,0,0,0,t)}function qd(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Ya(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let r=0,n=null,i=t;for(;i!==null;){if(n=Jd(i),n===null)return Mn;if(r++,i=i[Pn],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return Mn}function ra(e,t,r){uy(e,t,r)}function cy(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let r=e.attrs;if(r){let n=r.length,i=0;for(;i>20,d=n?a:a+l,h=i?a+l:c;for(let f=d;f=u&&m.type===r)return f}if(i){let f=s[u];if(f&&Et(f)&&f.type===r)return u}return null}function On(e,t,r,n){let i=e[r],o=t.data;if(ny(i)){let s=i;s.resolving&&Lg(kg(o[r]));let a=Il(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?Ie(s.injectImpl):null,l=Ld(e,n,x.Default);try{i=e[r]=s.factory(void 0,o,e,n),t.firstCreatePass&&r>=n.directiveStart&&ey(r,o[r],t)}finally{c!==null&&Ie(c),Il(a),s.resolving=!1,Bd()}}return i}function fy(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(ar)?e[ar]:void 0;return typeof t=="number"?t>=0?t&Gd:hy:t}function Ml(e,t,r){let n=1<>Wd)]&n)}function _l(e,t){return!(e&x.Self)&&!(e&x.Host&&t)}var Ht=class{constructor(t,r){this._tNode=t,this._lView=r}get(t,r,n){return Qd(this._tNode,this._lView,t,oo(n),r)}};function hy(){return new Ht(de(),$())}function Er(e){return ro(()=>{let t=e.prototype.constructor,r=t[ji]||ia(t),n=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==n;){let o=i[ji]||ia(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function ia(e){return Xl(e)?()=>{let t=ia(ce(e));return t&&t()}:_n(e)}function py(e,t,r,n,i){let o=e,s=t;for(;o!==null&&s!==null&&s[I]&2048&&!(s[I]&512);){let a=Kd(o,s,r,n|x.Self,He);if(a!==He)return a;let u=o.parent;if(!u){let c=s[bd];if(c){let l=c.get(r,He,n);if(l!==He)return l}u=Jd(s),s=s[Pn]}o=u}return i}function Jd(e){let t=e[O],r=t.type;return r===2?t.declTNode:r===1?e[we]:null}function Qa(e){return cy(de(),e)}function Sl(e,t=null,r=null,n){let i=Xd(e,t,r,n);return i.resolveInjectorInitializers(),i}function Xd(e,t=null,r=null,n,i=new Set){let o=[r||Me,pm(e)];return n=n||(typeof e=="object"?void 0:le(e)),new lr(o,t||ja(),n||null,i)}var Ln=(()=>{let t=class t{static create(n,i){if(Array.isArray(n))return Sl({name:""},i,n,"");{let o=n.name??"";return Sl({name:o},n.parent,n.providers,o)}}};t.THROW_IF_NOT_FOUND=ur,t.NULL=new $i,t.\u0275prov=D({token:t,providedIn:"any",factory:()=>b(ad)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var gy="ngOriginalError";function Ls(e){return e[gy]}var nt=class{constructor(){this._console=console}handleError(t){let r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&Ls(t);for(;r&&Ls(r);)r=Ls(r);return r||null}},ef=new E("",{providedIn:"root",factory:()=>g(nt).handleError.bind(void 0)}),tf=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=my,t.__NG_ENV_ID__=n=>n;let e=t;return e})(),oa=class extends tf{constructor(t){super(),this._lView=t}onDestroy(t){return Rd(this._lView,t),()=>Vm(this._lView,t)}};function my(){return new oa($())}function yy(){return mo(de(),$())}function mo(e,t){return new Ze(Te(e,t))}var Ze=(()=>{let t=class t{constructor(n){this.nativeElement=n}};t.__NG_ELEMENT_ID__=yy;let e=t;return e})();var sa=class extends te{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,Mm()&&(this.destroyRef=g(tf,{optional:!0})??void 0)}emit(t){let r=k(null);try{super.next(t)}finally{k(r)}}subscribe(t,r,n){let i=t,o=r||(()=>null),s=n;if(t&&typeof t=="object"){let u=t;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=Vs(o),i&&(i=Vs(i)),s&&(s=Vs(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof K&&t.add(a),a}};function Vs(e){return t=>{setTimeout(e,void 0,t)}}var ie=sa;function nf(e){return(e.flags&128)===128}var rf=new Map,vy=0;function Dy(){return vy++}function wy(e){rf.set(e[uo],e)}function Cy(e){rf.delete(e[uo])}var Tl="__ngContext__";function bt(e,t){$t(t)?(e[Tl]=t[uo],wy(t)):e[Tl]=t}function of(e){return af(e[hr])}function sf(e){return af(e[Pe])}function af(e){for(;e!==null&&!at(e);)e=e[Pe];return e}var aa;function uf(e){aa=e}function cf(){if(aa!==void 0)return aa;if(typeof document<"u")return document;throw new v(210,!1)}var Ka=new E("",{providedIn:"root",factory:()=>Ey}),Ey="ng",Ja=new E(""),At=new E("",{providedIn:"platform",factory:()=>"unknown"});var Xa=new E("",{providedIn:"root",factory:()=>cf().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var by="h",Iy="b";var My=()=>null;function eu(e,t,r=!1){return My(e,t,r)}var lf=!1,_y=new E("",{providedIn:"root",factory:()=>lf});var Ai;function Sy(){if(Ai===void 0&&(Ai=null,tt.trustedTypes))try{Ai=tt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ai}function yo(e){return Sy()?.createHTML(e)||e}var xi;function df(){if(xi===void 0&&(xi=null,tt.trustedTypes))try{xi=tt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return xi}function Al(e){return df()?.createHTML(e)||e}function xl(e){return df()?.createScriptURL(e)||e}var rt=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Jl})`}},ua=class extends rt{getTypeName(){return"HTML"}},ca=class extends rt{getTypeName(){return"Style"}},la=class extends rt{getTypeName(){return"Script"}},da=class extends rt{getTypeName(){return"URL"}},fa=class extends rt{getTypeName(){return"ResourceURL"}};function Ve(e){return e instanceof rt?e.changingThisBreaksApplicationSecurity:e}function ct(e,t){let r=Ty(e);if(r!=null&&r!==t){if(r==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${Jl})`)}return r===t}function Ty(e){return e instanceof rt&&e.getTypeName()||null}function ff(e){return new ua(e)}function hf(e){return new ca(e)}function pf(e){return new la(e)}function gf(e){return new da(e)}function mf(e){return new fa(e)}function Ay(e){let t=new pa(e);return xy()?new ha(t):t}var ha=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let r=new window.DOMParser().parseFromString(yo(t),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(t):(r.removeChild(r.firstChild),r)}catch{return null}}},pa=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let r=this.inertDocument.createElement("template");return r.innerHTML=yo(t),r}};function xy(){try{return!!new window.DOMParser().parseFromString(yo(""),"text/html")}catch{return!1}}var Ny=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function vo(e){return e=String(e),e.match(Ny)?e:"unsafe:"+e}function lt(e){let t={};for(let r of e.split(","))t[r]=!0;return t}function br(...e){let t={};for(let r of e)for(let n in r)r.hasOwnProperty(n)&&(t[n]=!0);return t}var yf=lt("area,br,col,hr,img,wbr"),vf=lt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Df=lt("rp,rt"),Ry=br(Df,vf),Oy=br(vf,lt("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")),Fy=br(Df,lt("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")),Nl=br(yf,Oy,Fy,Ry),wf=lt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Py=lt("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"),ky=lt("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"),Ly=br(wf,Py,ky),Vy=lt("script,style,template"),ga=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let r=t.firstChild,n=!0,i=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?n=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,n&&r.firstChild){i.push(r),r=By(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=Uy(r);if(o){r=o;break}r=i.pop()}}return this.buf.join("")}startElement(t){let r=Rl(t).toLowerCase();if(!Nl.hasOwnProperty(r))return this.sanitizedSomething=!0,!Vy.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let n=t.attributes;for(let i=0;i"),!0}endElement(t){let r=Rl(t).toLowerCase();Nl.hasOwnProperty(r)&&!yf.hasOwnProperty(r)&&(this.buf.push(""))}chars(t){this.buf.push(Ol(t))}};function jy(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Uy(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Cf(t);return t}function By(e){let t=e.firstChild;if(t&&jy(e,t))throw Cf(t);return t}function Rl(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Cf(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var $y=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Hy=/([^\#-~ |!])/g;function Ol(e){return e.replace(/&/g,"&").replace($y,function(t){let r=t.charCodeAt(0),n=t.charCodeAt(1);return"&#"+((r-55296)*1024+(n-56320)+65536)+";"}).replace(Hy,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var Ni;function tu(e,t){let r=null;try{Ni=Ni||Ay(e);let n=t?String(t):"";r=Ni.getInertBodyElement(n);let i=5,o=n;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,n=o,o=r.innerHTML,r=Ni.getInertBodyElement(n)}while(n!==o);let a=new ga().sanitizeChildren(Fl(r)||r);return yo(a)}finally{if(r){let n=Fl(r)||r;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function Fl(e){return"content"in e&&zy(e)?e.content:null}function zy(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var je=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(je||{});function Do(e){let t=nu();return t?Al(t.sanitize(je.HTML,e)||""):ct(e,"HTML")?Al(Ve(e)):tu(cf(),wr(e))}function Gy(e){let t=nu();return t?t.sanitize(je.URL,e)||"":ct(e,"URL")?Ve(e):vo(wr(e))}function Wy(e){let t=nu();if(t)return xl(t.sanitize(je.RESOURCE_URL,e)||"");if(ct(e,"ResourceURL"))return xl(Ve(e));throw new v(904,!1)}function qy(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?Wy:Gy}function Ef(e,t,r){return qy(t,r)(e)}function nu(){let e=$();return e&&e[ke].sanitizer}var Zy=/^>|^->||--!>|)/g,Qy="\u200B$1\u200B";function Ky(e){return e.replace(Zy,t=>t.replace(Yy,Qy))}function bf(e){return e instanceof Function?e():e}var it=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(it||{}),Jy;function ru(e,t){return Jy(e,t)}function bn(e,t,r,n,i){if(n!=null){let o,s=!1;at(n)?o=n:$t(n)&&(s=!0,n=n[st]);let a=qe(n);e===0&&r!==null?i==null?Af(t,r,a):Zi(t,r,a,i||null,!0):e===1&&r!==null?Zi(t,r,a,i||null,!0):e===2?pv(t,a,s):e===3&&t.destroyNode(a),o!=null&&mv(t,e,o,r,i)}}function Xy(e,t){return e.createText(t)}function ev(e,t,r){e.setValue(t,r)}function tv(e,t){return e.createComment(Ky(t))}function If(e,t,r){return e.createElement(t,r)}function nv(e,t){Mf(e,t),t[st]=null,t[we]=null}function rv(e,t,r,n,i,o){n[st]=i,n[we]=t,Co(e,n,r,1,i,o)}function Mf(e,t){t[ke].changeDetectionScheduler?.notify(1),Co(e,t,t[Y],2,null,null)}function iv(e){let t=e[hr];if(!t)return js(e[O],e);for(;t;){let r=null;if($t(t))r=t[hr];else{let n=t[_e];n&&(r=n)}if(!r){for(;t&&!t[Pe]&&t!==e;)$t(t)&&js(t[O],t),t=t[ae];t===null&&(t=e),$t(t)&&js(t[O],t),r=t&&t[Pe]}t=r}}function ov(e,t,r,n){let i=_e+n,o=r.length;n>0&&(r[i-1][Pe]=t),n0&&(e[r-1][Pe]=n[Pe]);let o=Bi(e,_e+t);nv(n[O],n);let s=o[Nn];s!==null&&s.detachView(o[O]),n[ae]=null,n[Pe]=null,n[I]&=-129}return n}function Sf(e,t){if(!(t[I]&256)){let r=t[Y];r.destroyNode&&Co(e,t,r,3,null,null),iv(t)}}function js(e,t){if(t[I]&256)return;let r=k(null);try{t[I]&=-129,t[I]|=256,t[Gt]&&jc(t[Gt]),uv(e,t),av(e,t),t[O].type===1&&t[Y].destroy();let n=t[ao];if(n!==null&&at(t[ae])){n!==t[ae]&&_f(n,t);let i=t[Nn];i!==null&&i.detachView(e)}Cy(t)}finally{k(r)}}function av(e,t){let r=e.cleanup,n=t[fr];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(t[fr]=null);let i=t[Ct];if(i!==null){t[Ct]=null;for(let o=0;o-1){let{encapsulation:o}=e.data[n.directiveStart+i];if(o===ze.None||o===ze.Emulated)return null}return Te(n,r)}}function Zi(e,t,r,n,i){e.insertBefore(t,r,n,i)}function Af(e,t,r){e.appendChild(t,r)}function Pl(e,t,r,n,i){n!==null?Zi(e,t,r,n,i):Af(e,t,r)}function lv(e,t,r,n){e.removeChild(t,r,n)}function iu(e,t){return e.parentNode(t)}function dv(e,t){return e.nextSibling(t)}function xf(e,t,r){return hv(e,t,r)}function fv(e,t,r){return e.type&40?Te(e,r):null}var hv=fv,kl;function wo(e,t,r,n){let i=Tf(e,n,t),o=t[Y],s=n.parent||t[we],a=xf(s,n,t);if(i!=null)if(Array.isArray(r))for(let u=0;uWe&&Pf(e,t,We,!1),$e(s?2:0,i),r(n,i)}finally{qt(o),$e(s?3:1,i)}}function su(e,t,r){if(Ba(t)){let n=k(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;snull;function Mv(e,t,r,n,i,o){let s=t?t.injectorIndex:-1,a=0;return Fd()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Ll(e,t,r,n,i){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;n??={};let a,u=ee.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=o;if(i!==null){if(!i.hasOwnProperty(o))continue;c=i[o]}e===0?Vl(n,r,c,a,u):Vl(n,r,c,a)}return n}function Vl(e,t,r,n,i){let o;e.hasOwnProperty(r)?(o=e[r]).push(t,n):o=e[r]=[t,n],i!==void 0&&o.push(i)}function _v(e,t,r){let n=t.directiveStart,i=t.directiveEnd,o=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=n;l0;){let r=e[--t];if(typeof r=="number"&&r<0)return r}return 0}function Nv(e,t,r,n){let i=r.directiveStart,o=r.directiveEnd;co(r)&&Vv(t,r,e.data[i+r.componentOffset]),e.firstCreatePass||qi(r,t),bt(n,t);let s=r.initialInputs;for(let a=i;a{pr(e.lView)},consumerOnSignalRead(){this.lView[Gt]=this}}),qf=100;function Zf(e,t=!0,r=0){let n=e[ke],i=n.rendererFactory,o=!1;o||i.begin?.();try{nD(e,r)}catch(s){throw t&&Gf(e,s),s}finally{o||(i.end?.(),n.inlineEffectRunner?.flush())}}function nD(e,t){wa(e,t);let r=0;for(;Ha(e);){if(r===qf)throw new v(103,!1);r++,wa(e,1)}}function rD(e,t,r,n){let i=t[I];if((i&256)===256)return;let o=!1;!o&&t[ke].inlineEffectRunner?.flush(),Wa(t);let s=null,a=null;!o&&iD(e)&&(a=Jv(t),s=Lc(a));try{Nd(t),Gm(e.bindingStartIndex),r!==null&&Vf(e,t,r,2,n);let u=(i&3)===3;if(!o)if(u){let d=e.preOrderCheckHooks;d!==null&&Pi(t,d,null)}else{let d=e.preOrderHooks;d!==null&&ki(t,d,0,null),Ps(t,0)}if(oD(t),Yf(t,0),e.contentQueries!==null&&zf(e,t),!o)if(u){let d=e.contentCheckHooks;d!==null&&Pi(t,d)}else{let d=e.contentHooks;d!==null&&ki(t,d,1),Ps(t,1)}Dv(e,t);let c=e.components;c!==null&&Kf(t,c,0);let l=e.viewQuery;if(l!==null&&Da(2,l,n),!o)if(u){let d=e.viewCheckHooks;d!==null&&Pi(t,d)}else{let d=e.viewHooks;d!==null&&ki(t,d,2),Ps(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Fs]){for(let d of t[Fs])d();t[Fs]=null}o||(t[I]&=-73)}catch(u){throw pr(t),u}finally{a!==null&&(Vc(a,s),eD(a)),qa()}}function iD(e){return e.type!==2}function Yf(e,t){for(let r=of(e);r!==null;r=sf(r))for(let n=_e;n-1&&(ma(t,n),Bi(r,n))}this._attachedToViewContainer=!1}Sf(this._lView[O],this._lView)}onDestroy(t){Rd(this._lView,t)}markForCheck(){hu(this._cdRefInjectingView||this._lView)}detach(){this._lView[I]&=-129}reattach(){ea(this._lView),this._lView[I]|=128}detectChanges(){this._lView[I]|=1024,Zf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new v(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Mf(this._lView[O],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new v(902,!1);this._appRef=t,ea(this._lView)}},Ir=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=cD;let e=t;return e})(),aD=Ir,uD=class extends aD{constructor(t,r,n){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,n){let i=Yv(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:n});return new Yt(i)}};function cD(){return lD(de(),$())}function lD(e,t){return e.type&4?new uD(t,e,mo(e,t)):null}var lA=new RegExp(`^(\\d+)*(${Iy}|${by})*(.*)`);var dD=()=>null;function Ul(e,t){return dD(e,t)}var Ca=class{},Ea=class{},Qi=class{};function fD(e){let t=Error(`No component factory found for ${le(e)}.`);return t[hD]=e,t}var hD="ngComponent";var ba=class{resolveComponentFactory(t){throw fD(t)}},Io=(()=>{let t=class t{};t.NULL=new ba;let e=t;return e})(),mr=class{},Xt=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>pD();let e=t;return e})();function pD(){let e=$(),t=de(),r=Tt(t.index,e);return($t(r)?r:e)[Y]}var gD=(()=>{let t=class t{};t.\u0275prov=D({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),Us={};var Bl=new Set;function pu(e){Bl.has(e)||(Bl.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function $l(...e){}function mD(){let e=typeof tt.requestAnimationFrame=="function",t=tt[e?"requestAnimationFrame":"setTimeout"],r=tt[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&r){let n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);let i=r[Zone.__symbol__("OriginalDelegate")];i&&(r=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:r}}var H=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ie(!1),this.onMicrotaskEmpty=new ie(!1),this.onStable=new ie(!1),this.onError=new ie(!1),typeof Zone>"u")throw new v(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=mD().nativeRequestAnimationFrame,DD(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new v(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new v(909,!1)}run(t,r,n){return this._inner.run(t,r,n)}runTask(t,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,yD,$l,$l);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(t,r,n){return this._inner.runGuarded(t,r,n)}runOutsideAngular(t){return this._outer.run(t)}},yD={};function gu(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function vD(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(tt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ia(e),e.isCheckStableRunning=!0,gu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ia(e))}function DD(e){let t=()=>{vD(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(wD(a))return r.invokeTask(i,o,s,a);try{return Hl(e),r.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),zl(e)}},onInvoke:(r,n,i,o,s,a,u)=>{try{return Hl(e),r.invoke(i,o,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),zl(e)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(e._hasPendingMicrotasks=o.microTask,Ia(e),gu(e)):o.change=="macroTask"&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}function Ia(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Hl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function zl(e){e._nesting--,gu(e)}function wD(e){return!Array.isArray(e)||e.length!==1?!1:e[0].data?.__ignore_ng_zone__===!0}var Jf=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of n)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=D({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function Ki(e,t,r){let n=r?e.styles:null,i=r?e.classes:null,o=0;if(t!==null)for(let s=0;s0&&Of(e,r,o.join(" "))}}function SD(e,t,r){let n=e.projection=[];for(let i=0;i{let t=class t{};t.__NG_ELEMENT_ID__=AD;let e=t;return e})();function AD(){let e=de();return ND(e,$())}var xD=Mr,Xf=class extends xD{constructor(t,r,n){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=n}get element(){return mo(this._hostTNode,this._hostLView)}get injector(){return new Ht(this._hostTNode,this._hostLView)}get parentInjector(){let t=Ya(this._hostTNode,this._hostLView);if(zd(t)){let r=Wi(t,this._hostLView),n=Gi(t),i=r[O].data[n+8];return new Ht(i,r)}else return new Ht(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let r=Wl(this._lContainer);return r!==null&&r[t]||null}get length(){return this._lContainer.length-_e}createEmbeddedView(t,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=Ul(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,jl(this._hostTNode,s)),a}createComponent(t,r,n,i,o){let s=t&&!_m(t),a;if(s)a=r;else{let m=r||{};a=m.index,n=m.injector,i=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}let u=s?t:new yr(zt(t)),c=n||this.parentInjector;if(!o&&u.ngModule==null){let C=(s?c:this.parentInjector).get(he,null);C&&(o=C)}let l=zt(u.componentType??{}),d=Ul(this._lContainer,l?.id??null),h=d?.firstChild??null,f=u.create(c,i,h,o);return this.insertImpl(f.hostView,a,jl(this._hostTNode,d)),f}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,n){let i=t._lView;if(Pm(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=i[ae],c=new Xf(u,u[we],u[ae]);c.detach(c.indexOf(t))}}let o=this._adjustIndex(r),s=this._lContainer;return Qv(s,i,o,n),t.attachToViewContainerRef(),sd(Bs(s),o,t),t}move(t,r){return this.insert(t,r)}indexOf(t){let r=Wl(this._lContainer);return r!==null?r.indexOf(t):-1}remove(t){let r=this._adjustIndex(t,-1),n=ma(this._lContainer,r);n&&(Bi(Bs(this._lContainer),r),Sf(n[O],n))}detach(t){let r=this._adjustIndex(t,-1),n=ma(this._lContainer,r);return n&&Bi(Bs(this._lContainer),r)!=null?new Yt(n):null}_adjustIndex(t,r=0){return t??this.length+r}};function Wl(e){return e[Hi]}function Bs(e){return e[Hi]||(e[Hi]=[])}function ND(e,t){let r,n=t[e.index];return at(n)?r=n:(r=Hf(n,t,null,e),t[e.index]=r,bo(t,r)),OD(r,t,e,n),new Xf(r,e,t)}function RD(e,t){let r=e[Y],n=r.createComment(""),i=Te(t,e),o=iu(r,i);return Zi(r,o,n,dv(r,i),!1),n}var OD=kD,FD=()=>!1;function PD(e,t,r){return FD(e,t,r)}function kD(e,t,r,n){if(e[Wt])return;let i;r.type&8?i=qe(n):i=RD(t,r),e[Wt]=i}function LD(e){return typeof e=="function"&&e[ls]!==void 0}function eh(e){return LD(e)&&typeof e.set=="function"}function VD(e){return Object.getPrototypeOf(e.prototype).constructor}function Un(e){let t=VD(e.type),r=!0,n=[e];for(;t;){let i;if(Et(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new v(903,!1);i=t.\u0275dir}if(i){if(r){n.push(i);let s=e;s.inputs=Ri(e.inputs),s.inputTransforms=Ri(e.inputTransforms),s.declaredInputs=Ri(e.declaredInputs),s.outputs=Ri(e.outputs);let a=i.hostBindings;a&&HD(e,a);let u=i.viewQuery,c=i.contentQueries;if(u&&BD(e,u),c&&$D(e,c),jD(e,i),Tg(e.outputs,i.outputs),Et(i)&&i.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;n--){let i=e[n];i.hostVars=t+=i.hostVars,i.hostAttrs=cr(i.hostAttrs,r=cr(r,i.hostAttrs))}}function Ri(e){return e===Sn?{}:e===Me?[]:e}function BD(e,t){let r=e.viewQuery;r?e.viewQuery=(n,i)=>{t(n,i),r(n,i)}:e.viewQuery=t}function $D(e,t){let r=e.contentQueries;r?e.contentQueries=(n,i,o)=>{t(n,i,o),r(n,i,o)}:e.contentQueries=t}function HD(e,t){let r=e.hostBindings;r?e.hostBindings=(n,i)=>{t(n,i),r(n,i)}:e.hostBindings=t}function _r(e){let t=e.inputConfig,r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n];Array.isArray(i)&&i[3]&&(r[n]=i[3])}e.inputTransforms=r}var It=class{},vr=class{};var Sa=class extends It{constructor(t,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ji(this);let i=md(t);this._bootstrapComponents=bf(i.bootstrap),this._r3Injector=Xd(t,r,[{provide:It,useValue:this},{provide:Io,useValue:this.componentFactoryResolver},...n],le(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Ta=class extends vr{constructor(t){super(),this.moduleType=t}create(t){return new Sa(this.moduleType,t,[])}};var Xi=class extends It{constructor(t){super(),this.componentFactoryResolver=new Ji(this),this.instance=null;let r=new lr([...t.providers,{provide:It,useValue:this},{provide:Io,useValue:this.componentFactoryResolver}],t.parent||ja(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function mu(e,t,r=null){return new Xi({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}var Bn=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new J(!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)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Sr(e,t,r){let n=e[t];return Object.is(n,r)?!1:(e[t]=r,!0)}function zD(e){return(e.flags&32)===32}function GD(e,t,r,n,i,o,s,a,u){let c=t.consts,l=jn(t,e,4,s||null,Rn(c,a));lu(t,r,l,Rn(c,u)),go(t,l);let d=l.tView=cu(2,l,n,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function Mo(e,t,r,n,i,o,s,a){let u=$(),c=ue(),l=e+We,d=c.firstCreatePass?GD(l,c,u,t,r,n,i,o,s):c.data[l];Jt(d,!1);let h=WD(c,u,d,e);ho()&&wo(c,u,h,d),bt(h,u);let f=Hf(h,u,h,d);return u[l]=f,bo(u,f),PD(f,d,u),lo(d)&&au(c,u,d),s!=null&&uu(u,d,a),Mo}var WD=qD;function qD(e,t,r,n){return po(!0),t[Y].createComment("")}function en(e,t,r,n){let i=$(),o=fo();if(Sr(i,o,t)){let s=ue(),a=Za();jv(a,i,e,t,r,n)}return en}function ZD(e,t,r,n){return Sr(e,fo(),r)?t+wr(r)+n:Vn}function Oi(e,t){return e<<17|t<<2}function Qt(e){return e>>17&32767}function YD(e){return(e&2)==2}function QD(e,t){return e&131071|t<<17}function Aa(e){return e|2}function Fn(e){return(e&131068)>>2}function $s(e,t){return e&-131069|t<<2}function KD(e){return(e&1)===1}function xa(e){return e|1}function JD(e,t,r,n,i,o){let s=o?t.classBindings:t.styleBindings,a=Qt(s),u=Fn(s);e[n]=r;let c=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||Cr(d,l)>0)&&(c=!0)}else l=r;if(i)if(u!==0){let h=Qt(e[a+1]);e[n+1]=Oi(h,a),h!==0&&(e[h+1]=$s(e[h+1],n)),e[a+1]=QD(e[a+1],n)}else e[n+1]=Oi(a,0),a!==0&&(e[a+1]=$s(e[a+1],n)),a=n;else e[n+1]=Oi(u,0),a===0?a=n:e[u+1]=$s(e[u+1],n),u=n;c&&(e[n+1]=Aa(e[n+1])),ql(e,l,n,!0),ql(e,l,n,!1),XD(t,l,e,n,o),s=Oi(a,u),o?t.classBindings=s:t.styleBindings=s}function XD(e,t,r,n,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&Cr(o,t)>=0&&(r[n+1]=xa(r[n+1]))}function ql(e,t,r,n){let i=e[r+1],o=t===null,s=n?Qt(i):Fn(i),a=!1;for(;s!==0&&(a===!1||o);){let u=e[s],c=e[s+1];ew(u,t)&&(a=!0,e[s+1]=n?xa(c):Aa(c)),s=n?Qt(c):Fn(c)}a&&(e[r+1]=n?Aa(i):xa(i))}function ew(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Cr(e,t)>=0:!1}function Ce(e,t,r){let n=$(),i=fo();if(Sr(n,i,t)){let o=ue(),s=Za();Uf(o,s,n,e,t,n[Y],r,!1)}return Ce}function Zl(e,t,r,n,i){let o=t.inputs,s=i?"class":"style";du(e,r,o[s],s,n)}function _o(e,t,r){return th(e,t,r,!1),_o}function yu(e,t){return th(e,t,null,!0),yu}function th(e,t,r,n){let i=$(),o=ue(),s=Wm(2);if(o.firstUpdatePass&&nw(o,e,s,n),t!==Vn&&Sr(i,s,t)){let a=o.data[kn()];aw(o,a,i,i[Y],e,i[s+1]=uw(t,r),n,s)}}function tw(e,t){return t>=e.expandoStartIndex}function nw(e,t,r,n){let i=e.data;if(i[r+1]===null){let o=i[kn()],s=tw(e,r);cw(o,n)&&t===null&&!s&&(t=!1),t=rw(i,o,t,n),JD(i,o,t,r,s,n)}}function rw(e,t,r,n){let i=Qm(e),o=n?t.residualClasses:t.residualStyles;if(i===null)(n?t.classBindings:t.styleBindings)===0&&(r=Hs(null,e,t,r,n),r=Dr(r,t.attrs,n),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(r=Hs(i,e,t,r,n),o===null){let u=iw(e,t,n);u!==void 0&&Array.isArray(u)&&(u=Hs(null,e,t,u[1],n),u=Dr(u,t.attrs,n),ow(e,t,n,u))}else o=sw(e,t,n)}return o!==void 0&&(n?t.residualClasses=o:t.residualStyles=o),r}function iw(e,t,r){let n=r?t.classBindings:t.styleBindings;if(Fn(n)!==0)return e[Qt(n)]}function ow(e,t,r,n){let i=r?t.classBindings:t.styleBindings;e[Qt(i)]=n}function sw(e,t,r){let n,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0;){let u=e[i],c=Array.isArray(u),l=c?u[1]:u,d=l===null,h=r[i+1];h===Vn&&(h=d?Me:void 0);let f=d?Rs(h,n):l===n?h:void 0;if(c&&!eo(f)&&(f=Rs(u,n)),eo(f)&&(a=f,s))return a;let m=e[i+1];i=s?Qt(m):Fn(m)}if(t!==null){let u=o?t.residualClasses:t.residualStyles;u!=null&&(a=Rs(u,n))}return a}function eo(e){return e!==void 0}function uw(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=le(Ve(e)))),e}function cw(e,t){return(e.flags&(t?8:16))!==0}function lw(e,t,r,n,i,o){let s=t.consts,a=Rn(s,i),u=jn(t,e,2,n,a);return lu(t,r,u,Rn(s,o)),u.attrs!==null&&Ki(u,u.attrs,!1),u.mergedAttrs!==null&&Ki(u,u.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,u),u}function j(e,t,r,n){let i=$(),o=ue(),s=We+e,a=i[Y],u=o.firstCreatePass?lw(s,o,i,t,r,n):o.data[s],c=dw(o,i,u,a,t,e);i[s]=c;let l=lo(u);return Jt(u,!0),Ff(a,c,u),!zD(u)&&ho()&&wo(o,i,c,u),jm()===0&&bt(c,i),Um(),l&&(au(o,i,u),su(o,u,i)),n!==null&&uu(i,u),j}function U(){let e=de();za()?Ga():(e=e.parent,Jt(e,!1));let t=e;$m(t)&&Hm(),Bm();let r=ue();return r.firstCreatePass&&(go(r,e),Ba(e)&&r.queries.elementEnd(e)),t.classesWithoutHost!=null&&ry(t)&&Zl(r,t,$(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&iy(t)&&Zl(r,t,$(),t.stylesWithoutHost,!1),U}function Ae(e,t,r,n){return j(e,t,r,n),U(),Ae}var dw=(e,t,r,n,i,o)=>(po(!0),If(n,i,Xm()));function fw(e,t,r,n,i){let o=t.consts,s=Rn(o,n),a=jn(t,e,8,"ng-container",s);s!==null&&Ki(a,s,!0);let u=Rn(o,i);return lu(t,r,a,u),t.queries!==null&&t.queries.elementStart(t,a),a}function vu(e,t,r){let n=$(),i=ue(),o=e+We,s=i.firstCreatePass?fw(o,i,n,t,r):i.data[o];Jt(s,!0);let a=hw(i,n,s,e);return n[o]=a,ho()&&wo(i,n,a,s),bt(a,n),lo(s)&&(au(i,n,s),su(i,s,n)),r!=null&&uu(n,s),vu}function Du(){let e=de(),t=ue();return za()?Ga():(e=e.parent,Jt(e,!1)),t.firstCreatePass&&(go(t,e),Ba(e)&&t.queries.elementEnd(e)),Du}var hw=(e,t,r,n)=>(po(!0),tv(t[Y],""));var to="en-US";var pw=to;function gw(e){typeof e=="string"&&(pw=e.toLowerCase().replace(/_/g,"-"))}function tn(e,t,r,n){let i=$(),o=ue(),s=de();return nh(o,i,i[Y],s,e,t,n),tn}function mw(e,t,r,n){let i=e.cleanup;if(i!=null)for(let o=0;ou?a[u]:null}typeof s=="string"&&(o+=2)}return null}function nh(e,t,r,n,i,o,s){let a=lo(n),c=e.firstCreatePass&&zv(e),l=t[Ge],d=Hv(t),h=!0;if(n.type&3||s){let C=Te(n,t),w=s?s(C):C,y=d.length,Z=s?z=>s(qe(z[n.index])):n.index,re=null;if(!s&&a&&(re=mw(e,t,i,n.index)),re!==null){let z=re.__ngLastListenerFn__||re;z.__ngNextListenerFn__=o,re.__ngLastListenerFn__=o,h=!1}else{o=Kl(n,t,l,o,!1);let z=r.listen(w,i,o);d.push(o,z),c&&c.push(i,Z,y,y+1)}}else o=Kl(n,t,l,o,!1);let f=n.outputs,m;if(h&&f!==null&&(m=f[i])){let C=m.length;if(C)for(let w=0;w-1?Tt(e.index,t):t;hu(a);let u=Ql(t,r,n,s),c=o.__ngNextListenerFn__;for(;c;)u=Ql(t,r,c,s)&&u,c=c.__ngNextListenerFn__;return i&&u===!1&&s.preventDefault(),u}}function Tr(e=1){return Jm(e)}function yw(e,t){let r=null,n=im(e);for(let i=0;i(po(!0),Xy(t[Y],n));function wu(e){return oh("",e,""),wu}function oh(e,t,r){let n=$(),i=ZD(n,e,t,r);return i!==Vn&&Gv(n,kn(),i),oh}function xt(e,t,r){eh(t)&&(t=t());let n=$(),i=fo();if(Sr(n,i,t)){let o=ue(),s=Za();Uf(o,s,n,e,t,n[Y],r,!1)}return xt}function nn(e,t){let r=eh(e);return r&&e.set(t),r}function Nt(e,t){let r=$(),n=ue(),i=de();return nh(n,r,r[Y],i,e,t),Nt}function Dw(e,t,r){let n=ue();if(n.firstCreatePass){let i=Et(e);Na(r,n.data,n.blueprint,i,!0),Na(t,n.data,n.blueprint,i,!1)}}function Na(e,t,r,n,i){if(e=ce(e),Array.isArray(e))for(let o=0;o>20;if(An(e)||!e.multi){let f=new Zt(c,i,T),m=Gs(u,t,i?l:l+h,d);m===-1?(ra(qi(a,s),o,u),zs(o,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(f),s.push(f)):(r[m]=f,s[m]=f)}else{let f=Gs(u,t,l+h,d),m=Gs(u,t,l,l+h),C=f>=0&&r[f],w=m>=0&&r[m];if(i&&!w||!i&&!C){ra(qi(a,s),o,u);let y=Ew(i?Cw:ww,r.length,i,n,c);!i&&w&&(r[m].providerFactory=y),zs(o,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(y),s.push(y)}else{let y=sh(r[i?m:f],c,!i&&n);zs(o,e,f>-1?f:m,y)}!i&&n&&w&&r[m].componentProviders++}}}function zs(e,t,r,n){let i=An(t),o=vm(t);if(i||o){let u=(o?ce(t.useClass):t).prototype.ngOnDestroy;if(u){let c=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let l=c.indexOf(r);l===-1?c.push(r,[n,u]):c[l+1].push(n,u)}else c.push(r,u)}}}function sh(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function Gs(e,t,r,n){for(let i=r;i{r.providersResolver=(n,i)=>Dw(n,i?i(e):e,t)}}var bw=(()=>{let t=class t{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=Dd(!1,n.type),o=i.length>0?mu([i],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()}}};t.\u0275prov=D({token:t,providedIn:"environment",factory:()=>new t(b(he))});let e=t;return e})();function xe(e){pu("NgStandalone"),e.getStandaloneInjector=t=>t.get(bw).getOrCreateStandaloneInjector(e)}var So=(()=>{let t=class t{log(n){console.log(n)}warn(n){console.warn(n)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var ah=new E("");function rn(e){return!!e&&typeof e.then=="function"}function uh(e){return!!e&&typeof e.subscribe=="function"}var ch=new E(""),lh=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=g(ch,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(rn(s))n.push(s);else if(uh(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),To=new E("");function Iw(){Uc(()=>{throw new v(600,!1)})}function Mw(e){return e.isBoundToModule}function _w(e,t,r){try{let n=r();return rn(n)?n.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):n}catch(n){throw t.runOutsideAngular(()=>e.handleError(n)),n}}var $n=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=g(ef),this.afterRenderEffectManager=g(Jf),this.externalTestViews=new Set,this.beforeRender=new te,this.afterTick=new te,this.componentTypes=[],this.components=[],this.isStable=g(Bn).hasPendingTasks.pipe(S(n=>!n)),this._injector=g(he)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof Qi;if(!this._injector.get(lh).done){let f=!o&&gd(n),m=!1;throw new v(405,m)}let a;o?a=n:a=this._injector.get(Io).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let u=Mw(a)?void 0:this._injector.get(It),c=i||a.selector,l=a.create(Ln.NULL,[],c,u),d=l.location.nativeElement,h=l.injector.get(ah,null);return h?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Ws(this.components,l),h?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new v(101,!1);let i=k(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,k(i)}}detectChangesInAttachedViews(n){let i=0,o=this.afterRenderEffectManager;for(;;){if(i===qf)throw new v(103,!1);if(n){let s=i===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:u}of this._views)Sw(a,s,u)}if(i++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Oa(s))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Oa(s))))break}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;Ws(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(To,[]);[...this._bootstrapListeners,...i].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),()=>Ws(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new v(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Ws(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}function Sw(e,t,r){!t&&!Oa(e)||Tw(e,r,t)}function Oa(e){return Ha(e)}function Tw(e,t,r){let n;r?(n=0,e[I]|=1024):e[I]&64?n=0:n=1,Zf(e,t,n)}var Fa=class{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}},Cu=(()=>{let t=class t{compileModuleSync(n){return new Ta(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=md(n),s=bf(o.declarations).reduce((a,u)=>{let c=zt(u);return c&&a.push(new yr(c)),a},[]);return new Fa(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Aw=(()=>{let t=class t{constructor(){this.zone=g(H),this.applicationRef=g($n)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function xw(e){return[{provide:H,useFactory:e},{provide:Tn,multi:!0,useFactory:()=>{let t=g(Aw,{optional:!0});return()=>t.initialize()}},{provide:Tn,multi:!0,useFactory:()=>{let t=g(Fw);return()=>{t.initialize()}}},{provide:ef,useFactory:Nw}]}function Nw(){let e=g(H),t=g(nt);return r=>e.runOutsideAngular(()=>t.handleError(r))}function Rw(e){let t=xw(()=>new H(Ow(e)));return St([[],t])}function Ow(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Fw=(()=>{let t=class t{constructor(){this.subscription=new K,this.initialized=!1,this.zone=g(H),this.pendingTasks=g(Bn)}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(()=>{H.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{H.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Pw(){return typeof $localize<"u"&&$localize.locale||to}var Eu=new E("",{providedIn:"root",factory:()=>g(Eu,x.Optional|x.SkipSelf)||Pw()});var dh=new E("");var Vi=null;function kw(e=[],t){return Ln.create({name:t,providers:[{provide:so,useValue:"platform"},{provide:dh,useValue:new Set([()=>Vi=null])},...e]})}function Lw(e=[]){if(Vi)return Vi;let t=kw(e);return Vi=t,Iw(),Vw(t),t}function Vw(e){e.get(Ja,null)?.forEach(r=>r())}var dt=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=jw;let e=t;return e})();function jw(e){return Uw(de(),$(),(e&16)===16)}function Uw(e,t,r){if(co(e)&&!r){let n=Tt(e.index,t);return new Yt(n,n)}else if(e.type&47){let n=t[Le];return new Yt(n,t)}return null}function fh(e){try{let{rootComponent:t,appProviders:r,platformProviders:n}=e,i=Lw(n),o=[Rw(),...r||[]],a=new Xi({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,u=a.get(H);return u.run(()=>{a.resolveInjectorInitializers();let c=a.get(nt,null),l;u.runOutsideAngular(()=>{l=u.onError.subscribe({next:f=>{c.handleError(f)}})});let d=()=>a.destroy(),h=i.get(dh);return h.add(d),a.onDestroy(()=>{l.unsubscribe(),h.delete(d)}),_w(c,u,()=>{let f=a.get(lh);return f.runInitializers(),f.donePromise.then(()=>{let m=a.get(Eu,to);gw(m||to);let C=a.get($n);return t!==void 0&&C.bootstrap(t),C})})})}catch(t){return Promise.reject(t)}}function Ye(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function bu(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var mh=null;function ht(){return mh}function yh(e){mh??=e}var Ao=class{};var Q=new E(""),_u=(()=>{let t=class t{historyGo(n){throw new Error("")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:()=>g(Bw),providedIn:"platform"});let e=t;return e})();var Bw=(()=>{let t=class t extends _u{constructor(){super(),this._doc=g(Q),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ht().getBaseHref(this._doc)}onPopState(n){let i=ht().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=ht().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.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,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:()=>new t,providedIn:"platform"});let e=t;return e})();function Su(e,t){if(e.length==0)return t;if(t.length==0)return e;let r=0;return e.endsWith("/")&&r++,t.startsWith("/")&&r++,r==2?e+t.substring(1):r==1?e+t:e+"/"+t}function hh(e){let t=e.match(/#|\?|$/),r=t&&t.index||e.length,n=r-(e[r-1]==="/"?1:0);return e.slice(0,n)+e.slice(r)}function ft(e){return e&&e[0]!=="?"?"?"+e:e}var Rt=(()=>{let t=class t{historyGo(n){throw new Error("")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:()=>g(Dh),providedIn:"root"});let e=t;return e})(),vh=new E(""),Dh=(()=>{let t=class t extends Rt{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??g(Q).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 Su(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+ft(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+ft(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+ft(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};t.\u0275fac=function(i){return new(i||t)(b(_u),b(vh,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),wh=(()=>{let t=class t extends Rt{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}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}path(n=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(n){let i=Su(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+ft(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+ft(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};t.\u0275fac=function(i){return new(i||t)(b(_u),b(vh,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),xr=(()=>{let t=class t{constructor(n){this._subject=new ie,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=zw(hh(ph(i))),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,i=""){return this.path()==this.normalize(n+ft(i))}normalize(n){return t.stripTrailingSlash(Hw(this._basePath,ph(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ft(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ft(i)),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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};t.normalizeQueryParams=ft,t.joinWithSlash=Su,t.stripTrailingSlash=hh,t.\u0275fac=function(i){return new(i||t)(b(Rt))},t.\u0275prov=D({token:t,factory:()=>$w(),providedIn:"root"});let e=t;return e})();function $w(){return new xr(b(Rt))}function Hw(e,t){if(!e||!t.startsWith(e))return t;let r=t.substring(e.length);return r===""||["/",";","?","#"].includes(r[0])?r:t}function ph(e){return e.replace(/\/index.html$/,"")}function zw(e){if(new RegExp("^(https?:)?//").test(e)){let[,r]=e.split(/\/\/[^\/]+/);return r}return e}function xo(e,t){t=encodeURIComponent(t);for(let r of e.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var Ch=(()=>{let t=class t{constructor(n,i){this._viewContainer=n,this._context=new Iu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){gh("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){gh("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,i){return!0}};t.\u0275fac=function(i){return new(i||t)(T(Mr),T(Ir))},t.\u0275dir=De({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let e=t;return e})(),Iu=class{constructor(){this.$implicit=null,this.ngIf=null}};function gh(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${le(t)}'.`)}var Eh="browser",Gw="server";function No(e){return e===Gw}var Hn=class{};var Rr=class{},Oo=class{},on=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` -`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let r=this.headers.get(t.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,r){return this.clone({name:t,value:r,op:"a"})}set(t,r){return this.clone({name:t,value:r,op:"s"})}delete(t,r){return this.clone({name:t,value:r,op:"d"})}maybeSetNormalizedName(t,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(r=>{this.headers.set(r,t.headers.get(r)),this.normalizedNames.set(r,t.normalizedNames.get(r))})}clone(t){let r=new e;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([t]),r}applyUpdate(t){let r=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(t.name,r);let i=(t.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let o=t.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(t,r){let n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=t.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>t(this.normalizedNames.get(r),this.headers.get(r)))}};var Au=class{encodeKey(t){return Ih(t)}encodeValue(t){return Ih(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Zw(e,t){let r=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+1))],u=r.get(s)||[];u.push(a),r.set(s,u)}),r}var Yw=/%(\d[a-f0-9])/gi,Qw={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ih(e){return encodeURIComponent(e).replace(Yw,(t,r)=>Qw[r]??t)}function Ro(e){return`${e}`}var Ot=class e{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Au,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Zw(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(r=>{let n=t.fromObject[r],i=Array.isArray(n)?n.map(Ro):[Ro(n)];this.map.set(r,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let r=this.map.get(t);return r?r[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,r){return this.clone({param:t,value:r,op:"a"})}appendAll(t){let r=[];return Object.keys(t).forEach(n=>{let i=t[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(t,r){return this.clone({param:t,value:r,op:"s"})}delete(t,r){return this.clone({param:t,value:r,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let r=this.encoder.encodeKey(t);return this.map.get(t).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let r=new e({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(t),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let r=(t.op==="a"?this.map.get(t.param):void 0)||[];r.push(Ro(t.value)),this.map.set(t.param,r);break;case"d":if(t.value!==void 0){let n=this.map.get(t.param)||[],i=n.indexOf(Ro(t.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var xu=class{constructor(){this.map=new Map}set(t,r){return this.map.set(t,r),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function Kw(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Mh(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function _h(e){return typeof Blob<"u"&&e instanceof Blob}function Sh(e){return typeof FormData<"u"&&e instanceof FormData}function Jw(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Nr=class e{constructor(t,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let o;if(Kw(this.method)||i?(this.body=n!==void 0?n:null,o=i):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 on,this.context??=new xu,!this.params)this.params=new Ot,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),u=a===-1?"?":ah.set(f,t.setHeaders[f]),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),l)),new e(r,n,s,{params:l,headers:c,context:d,reportProgress:u,responseType:i,withCredentials:a,transferCache:o})}},zn=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(zn||{}),Or=class{constructor(t,r=ko.Ok,n="OK"){this.headers=t.headers||new on,this.status=t.status!==void 0?t.status:r,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},Nu=class e extends Or{constructor(t={}){super(t),this.type=zn.ResponseHeader}clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Fo=class e extends Or{constructor(t={}){super(t),this.type=zn.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Po=class extends Or{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},ko=function(e){return e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.Unused=306]="Unused",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.ImATeapot=418]="ImATeapot",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.TooEarly=425]="TooEarly",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e}(ko||{});function Tu(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var Xw=(()=>{let t=class t{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof Nr)s=n;else{let c;o.headers instanceof on?c=o.headers:c=new on(o.headers);let l;o.params&&(o.params instanceof Ot?l=o.params:l=new Ot({fromObject:o.params})),s=new Nr(n,i,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=M(s).pipe(vt(c=>this.handler.handle(c)));if(n instanceof Nr||o.observe==="events")return a;let u=a.pipe(se(c=>c instanceof Fo));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return u.pipe(S(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return u.pipe(S(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return u.pipe(S(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return u.pipe(S(c=>c.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new Ot().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,Tu(o,i))}post(n,i,o={}){return this.request("POST",n,Tu(o,i))}put(n,i,o={}){return this.request("PUT",n,Tu(o,i))}};t.\u0275fac=function(i){return new(i||t)(b(Rr))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();function eC(e,t){return t(e)}function tC(e,t,r){return(n,i)=>ot(r,()=>t(n,o=>e(o,i)))}var xh=new E(""),nC=new E(""),rC=new E("");var Th=(()=>{let t=class t extends Rr{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=g(Bn);let o=g(rC,{optional:!0});this.backend=o??n}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(xh),...this.injector.get(nC,[])]));this.chain=o.reduceRight((s,a)=>tC(s,a,this.injector),eC)}let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Bt(()=>this.pendingTasks.remove(i)))}};t.\u0275fac=function(i){return new(i||t)(b(Oo),b(he))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();var iC=/^\)\]\}',?\n/;function oC(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var Ah=(()=>{let t=class t{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new v(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?W(i.\u0275loadImpl()):M(null)).pipe(ve(()=>new P(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((w,y)=>a.setRequestHeader(w,y.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let w=n.detectContentTypeHeader();w!==null&&a.setRequestHeader("Content-Type",w)}if(n.responseType){let w=n.responseType.toLowerCase();a.responseType=w!=="json"?w:"text"}let u=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let w=a.statusText||"OK",y=new on(a.getAllResponseHeaders()),Z=oC(a)||n.url;return c=new Nu({headers:y,status:a.status,statusText:w,url:Z}),c},d=()=>{let{headers:w,status:y,statusText:Z,url:re}=l(),z=null;y!==ko.NoContent&&(z=typeof a.response>"u"?a.responseText:a.response),y===0&&(y=z?ko.Ok:0);let Ue=y>=200&&y<300;if(n.responseType==="json"&&typeof z=="string"){let ge=z;z=z.replace(iC,"");try{z=z!==""?JSON.parse(z):null}catch(gt){z=ge,Ue&&(Ue=!1,z={error:gt,text:z})}}Ue?(s.next(new Fo({body:z,headers:w,status:y,statusText:Z,url:re||void 0})),s.complete()):s.error(new Po({error:z,headers:w,status:y,statusText:Z,url:re||void 0}))},h=w=>{let{url:y}=l(),Z=new Po({error:w,status:a.status||0,statusText:a.statusText||"Unknown Error",url:y||void 0});s.error(Z)},f=!1,m=w=>{f||(s.next(l()),f=!0);let y={type:zn.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(y.total=w.total),n.responseType==="text"&&a.responseText&&(y.partialText=a.responseText),s.next(y)},C=w=>{let y={type:zn.UploadProgress,loaded:w.loaded};w.lengthComputable&&(y.total=w.total),s.next(y)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),n.reportProgress&&(a.addEventListener("progress",m),u!==null&&a.upload&&a.upload.addEventListener("progress",C)),a.send(u),s.next({type:zn.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),n.reportProgress&&(a.removeEventListener("progress",m),u!==null&&a.upload&&a.upload.removeEventListener("progress",C)),a.readyState!==a.DONE&&a.abort()}})))}};t.\u0275fac=function(i){return new(i||t)(b(Hn))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),Nh=new E(""),sC="XSRF-TOKEN",aC=new E("",{providedIn:"root",factory:()=>sC}),uC="X-XSRF-TOKEN",cC=new E("",{providedIn:"root",factory:()=>uC}),Lo=class{},lC=(()=>{let t=class t{constructor(n,i,o){this.doc=n,this.platform=i,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=xo(n,this.cookieName),this.lastCookieString=n),this.lastToken}};t.\u0275fac=function(i){return new(i||t)(b(Q),b(At),b(aC))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();function dC(e,t){let r=e.url.toLowerCase();if(!g(Nh)||e.method==="GET"||e.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return t(e);let n=g(Lo).getToken(),i=g(cC);return n!=null&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,n)})),t(e)}function Rh(...e){let t=[Xw,Ah,Th,{provide:Rr,useExisting:Th},{provide:Oo,useExisting:Ah},{provide:xh,useValue:dC,multi:!0},{provide:Nh,useValue:!0},{provide:Lo,useClass:lC}];for(let r of e)t.push(...r.\u0275providers);return St(t)}var Fu=class extends Ao{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Pu=class e extends Fu{static makeCurrent(){yh(new e)}onAndCancel(t,r,n){return t.addEventListener(r,n),()=>{t.removeEventListener(r,n)}}dispatchEvent(t,r){t.dispatchEvent(r)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,r){return r=r||this.getDefaultDocument(),r.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,r){return r==="window"?window:r==="document"?t:r==="body"?t.body:null}getBaseHref(t){let r=hC();return r==null?null:pC(r)}resetBaseElement(){Fr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return xo(document.cookie,t)}},Fr=null;function hC(){return Fr=Fr||document.querySelector("base"),Fr?Fr.getAttribute("href"):null}function pC(e){return new URL(e,document.baseURI).pathname}var gC=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),ku=new E(""),kh=(()=>{let t=class t{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new v(5101,!1);return this._eventNameToPlugin.set(n,i),i}};t.\u0275fac=function(i){return new(i||t)(b(ku),b(H))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),Vo=class{constructor(t){this._doc=t}},Ru="ng-app-id",Lh=(()=>{let t=class t{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=No(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Ru}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(Ru),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Ru,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};t.\u0275fac=function(i){return new(i||t)(b(Q),b(Ka),b(Xa,8),b(At))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),Ou={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/"},Vu=/%COMP%/g,Vh="%COMP%",mC=`_nghost-${Vh}`,yC=`_ngcontent-${Vh}`,vC=!0,DC=new E("",{providedIn:"root",factory:()=>vC});function wC(e){return yC.replace(Vu,e)}function CC(e){return mC.replace(Vu,e)}function jh(e,t){return t.map(r=>r.replace(Vu,e))}var Oh=(()=>{let t=class t{constructor(n,i,o,s,a,u,c,l=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=No(u),this.defaultRenderer=new Pr(n,a,c,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===ze.ShadowDom&&(i=L(p({},i),{encapsulation:ze.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof jo?o.applyToHost(n):o instanceof kr&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(i.encapsulation){case ze.Emulated:s=new jo(c,l,i,this.appId,d,a,u,h);break;case ze.ShadowDom:return new Lu(c,l,n,i,a,u,this.nonce,h);default:s=new kr(c,l,i,d,a,u,h);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(i){return new(i||t)(b(kh),b(Lh),b(Ka),b(DC),b(Q),b(At),b(H),b(Xa))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),Pr=class{constructor(t,r,n,i){this.eventManager=t,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,r){return r?this.doc.createElementNS(Ou[r]||r,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,r){(Fh(t)?t.content:t).appendChild(r)}insertBefore(t,r,n){t&&(Fh(t)?t.content:t).insertBefore(r,n)}removeChild(t,r){t&&t.removeChild(r)}selectRootElement(t,r){let n=typeof t=="string"?this.doc.querySelector(t):t;if(!n)throw new v(-5104,!1);return r||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,r,n,i){if(i){r=i+":"+r;let o=Ou[i];o?t.setAttributeNS(o,r,n):t.setAttribute(r,n)}else t.setAttribute(r,n)}removeAttribute(t,r,n){if(n){let i=Ou[n];i?t.removeAttributeNS(i,r):t.removeAttribute(`${n}:${r}`)}else t.removeAttribute(r)}addClass(t,r){t.classList.add(r)}removeClass(t,r){t.classList.remove(r)}setStyle(t,r,n,i){i&(it.DashCase|it.Important)?t.style.setProperty(r,n,i&it.Important?"important":""):t.style[r]=n}removeStyle(t,r,n){n&it.DashCase?t.style.removeProperty(r):t.style[r]=""}setProperty(t,r,n){t!=null&&(t[r]=n)}setValue(t,r){t.nodeValue=r}listen(t,r,n){if(typeof t=="string"&&(t=ht().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${r}`);return this.eventManager.addEventListener(t,r,this.decoratePreventDefault(n))}decoratePreventDefault(t){return r=>{if(r==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(r)):t(r))===!1&&r.preventDefault()}}};function Fh(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Lu=class extends Pr{constructor(t,r,n,i,o,s,a,u){super(t,o,s,u),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=jh(i.id,i.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,r){return super.appendChild(this.nodeOrShadowRoot(t),r)}insertBefore(t,r,n){return super.insertBefore(this.nodeOrShadowRoot(t),r,n)}removeChild(t,r){return super.removeChild(this.nodeOrShadowRoot(t),r)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},kr=class extends Pr{constructor(t,r,n,i,o,s,a,u){super(t,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=u?jh(u,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},jo=class extends kr{constructor(t,r,n,i,o,s,a,u){let c=i+"-"+n.id;super(t,r,n,o,s,a,u,c),this.contentAttr=wC(c),this.hostAttr=CC(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,r){let n=super.createElement(t,r);return super.setAttribute(n,this.contentAttr,""),n}},EC=(()=>{let t=class t extends Vo{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};t.\u0275fac=function(i){return new(i||t)(b(Q))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),Ph=["alt","control","meta","shift"],bC={"\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"},IC={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},MC=(()=>{let t=class t extends Vo{constructor(n){super(n)}supports(n){return t.parseEventName(n)!=null}addEventListener(n,i,o){let s=t.parseEventName(i),a=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ht().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=t._normalizeKey(i.pop()),a="",u=i.indexOf("code");if(u>-1&&(i.splice(u,1),a="code."),Ph.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,i){let o=bC[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Ph.forEach(a=>{if(a!==o){let u=IC[a];u(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{t.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};t.\u0275fac=function(i){return new(i||t)(b(Q))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();function Uh(e,t){return fh(p({rootComponent:e},_C(t)))}function _C(e){return{appProviders:[...NC,...e?.providers??[]],platformProviders:xC}}function SC(){Pu.makeCurrent()}function TC(){return new nt}function AC(){return uf(document),document}var xC=[{provide:At,useValue:Eh},{provide:Ja,useValue:SC,multi:!0},{provide:Q,useFactory:AC,deps:[]}];var NC=[{provide:so,useValue:"root"},{provide:nt,useFactory:TC,deps:[]},{provide:ku,useClass:EC,multi:!0,deps:[Q,H,At]},{provide:ku,useClass:MC,multi:!0,deps:[Q]},Oh,Lh,kh,{provide:mr,useExisting:Oh},{provide:Hn,useClass:gC,deps:[]},[]];var Bh=(()=>{let t=class t{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};t.\u0275fac=function(i){return new(i||t)(b(Q))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Lr=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:function(i){let o=null;return i?o=new(i||t):o=b(RC),o},providedIn:"root"});let e=t;return e})(),RC=(()=>{let t=class t extends Lr{constructor(n){super(),this._doc=n}sanitize(n,i){if(i==null)return null;switch(n){case je.NONE:return i;case je.HTML:return ct(i,"HTML")?Ve(i):tu(this._doc,String(i)).toString();case je.STYLE:return ct(i,"Style")?Ve(i):i;case je.SCRIPT:if(ct(i,"Script"))return Ve(i);throw new v(5200,!1);case je.URL:return ct(i,"URL")?Ve(i):vo(String(i));case je.RESOURCE_URL:if(ct(i,"ResourceURL"))return Ve(i);throw new v(5201,!1);default:throw new v(5202,!1)}}bypassSecurityTrustHtml(n){return ff(n)}bypassSecurityTrustStyle(n){return hf(n)}bypassSecurityTrustScript(n){return pf(n)}bypassSecurityTrustUrl(n){return gf(n)}bypassSecurityTrustResourceUrl(n){return mf(n)}};t.\u0275fac=function(i){return new(i||t)(b(Q))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var A="primary",Jr=Symbol("RouteTitle"),zu=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let r=this.params[t];return Array.isArray(r)?r[0]:r}return null}getAll(t){if(this.has(t)){let r=this.params[t];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function Yn(e){return new zu(e)}function OC(e,t,r){let n=r.path.split("/");if(n.length>e.length||r.pathMatch==="full"&&(t.hasChildren()||n.lengthn[o]===i)}else return e===t}function Zh(e){return e.length>0?e[e.length-1]:null}function Lt(e){return Es(e)?e:rn(e)?W(Promise.resolve(e)):M(e)}var PC={exact:Qh,subset:Kh},Yh={exact:kC,subset:LC,ignored:()=>!0};function $h(e,t,r){return PC[r.paths](e.root,t.root,r.matrixParams)&&Yh[r.queryParams](e.queryParams,t.queryParams)&&!(r.fragment==="exact"&&e.fragment!==t.fragment)}function kC(e,t){return Qe(e,t)}function Qh(e,t,r){if(!an(e.segments,t.segments)||!$o(e.segments,t.segments,r)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let n in t.children)if(!e.children[n]||!Qh(e.children[n],t.children[n],r))return!1;return!0}function LC(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(r=>qh(e[r],t[r]))}function Kh(e,t,r){return Jh(e,t,t.segments,r)}function Jh(e,t,r,n){if(e.segments.length>r.length){let i=e.segments.slice(0,r.length);return!(!an(i,r)||t.hasChildren()||!$o(i,r,n))}else if(e.segments.length===r.length){if(!an(e.segments,r)||!$o(e.segments,r,n))return!1;for(let i in t.children)if(!e.children[i]||!Kh(e.children[i],t.children[i],n))return!1;return!0}else{let i=r.slice(0,e.segments.length),o=r.slice(e.segments.length);return!an(e.segments,i)||!$o(e.segments,i,n)||!e.children[A]?!1:Jh(e.children[A],t,o,n)}}function $o(e,t,r){return t.every((n,i)=>Yh[r](e[i].parameters,n.parameters))}var Ft=class{constructor(t=new V([],{}),r={},n=null){this.root=t,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Yn(this.queryParams),this._queryParamMap}toString(){return UC.serialize(this)}},V=class{constructor(t,r){this.segments=t,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ho(this)}},sn=class{constructor(t,r){this.path=t,this.parameters=r}get parameterMap(){return this._parameterMap??=Yn(this.parameters),this._parameterMap}toString(){return ep(this)}};function VC(e,t){return an(e,t)&&e.every((r,n)=>Qe(r.parameters,t[n].parameters))}function an(e,t){return e.length!==t.length?!1:e.every((r,n)=>r.path===t[n].path)}function jC(e,t){let r=[];return Object.entries(e.children).forEach(([n,i])=>{n===A&&(r=r.concat(t(i,n)))}),Object.entries(e.children).forEach(([n,i])=>{n!==A&&(r=r.concat(t(i,n)))}),r}var yc=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:()=>new Go,providedIn:"root"});let e=t;return e})(),Go=class{parse(t){let r=new qu(t);return new Ft(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(t){let r=`/${Vr(t.root,!0)}`,n=HC(t.queryParams),i=typeof t.fragment=="string"?`#${BC(t.fragment)}`:"";return`${r}${n}${i}`}},UC=new Go;function Ho(e){return e.segments.map(t=>ep(t)).join("/")}function Vr(e,t){if(!e.hasChildren())return Ho(e);if(t){let r=e.children[A]?Vr(e.children[A],!1):"",n=[];return Object.entries(e.children).forEach(([i,o])=>{i!==A&&n.push(`${i}:${Vr(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=jC(e,(n,i)=>i===A?[Vr(e.children[A],!1)]:[`${i}:${Vr(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[A]!=null?`${Ho(e)}/${r[0]}`:`${Ho(e)}/(${r.join("//")})`}}function Xh(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Uo(e){return Xh(e).replace(/%3B/gi,";")}function BC(e){return encodeURI(e)}function Wu(e){return Xh(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function zo(e){return decodeURIComponent(e)}function Hh(e){return zo(e.replace(/\+/g,"%20"))}function ep(e){return`${Wu(e.path)}${$C(e.parameters)}`}function $C(e){return Object.entries(e).map(([t,r])=>`;${Wu(t)}=${Wu(r)}`).join("")}function HC(e){let t=Object.entries(e).map(([r,n])=>Array.isArray(n)?n.map(i=>`${Uo(r)}=${Uo(i)}`).join("&"):`${Uo(r)}=${Uo(n)}`).filter(r=>r);return t.length?`?${t.join("&")}`:""}var zC=/^[^\/()?;#]+/;function Uu(e){let t=e.match(zC);return t?t[0]:""}var GC=/^[^\/()?;=#]+/;function WC(e){let t=e.match(GC);return t?t[0]:""}var qC=/^[^=?&#]+/;function ZC(e){let t=e.match(qC);return t?t[0]:""}var YC=/^[^&#]+/;function QC(e){let t=e.match(YC);return t?t[0]:""}var qu=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new V([],{}):new V([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(r).length>0)&&(n[A]=new V(t,r)),n}parseSegment(){let t=Uu(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new v(4009,!1);return this.capture(t),new sn(zo(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let r=WC(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=Uu(this.remaining);i&&(n=i,this.capture(n))}t[zo(r)]=zo(n)}parseQueryParam(t){let r=ZC(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=QC(this.remaining);s&&(n=s,this.capture(n))}let i=Hh(r),o=Hh(n);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Uu(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new v(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=A);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[A]:new V([],s),this.consumeOptional("//")}return r}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new v(4011,!1)}};function tp(e){return e.segments.length>0?new V([],{[A]:e}):e}function np(e){let t={};for(let[n,i]of Object.entries(e.children)){let o=np(i);if(n===A&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[n]=o)}let r=new V(e.segments,t);return KC(r)}function KC(e){if(e.numberOfChildren===1&&e.children[A]){let t=e.children[A];return new V(e.segments.concat(t.segments),t.children)}return e}function Qn(e){return e instanceof Ft}function JC(e,t,r=null,n=null){let i=rp(e);return ip(i,t,r,n)}function rp(e){let t;function r(o){let s={};for(let u of o.children){let c=r(u);s[u.outlet]=c}let a=new V(o.url,s);return o===e&&(t=a),a}let n=r(e.root),i=tp(n);return t??i}function ip(e,t,r,n){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return Bu(i,i,i,r,n);let o=XC(t);if(o.toRoot())return Bu(i,i,new V([],{}),r,n);let s=eE(o,i,e),a=s.processChildren?Br(s.segmentGroup,s.index,o.commands):sp(s.segmentGroup,s.index,o.commands);return Bu(i,s.segmentGroup,a,r,n)}function Wo(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function zr(e){return typeof e=="object"&&e!=null&&e.outlets}function Bu(e,t,r,n,i){let o={};n&&Object.entries(n).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;e===t?s=r:s=op(e,t,r);let a=tp(np(s));return new Ft(a,o,i)}function op(e,t,r){let n={};return Object.entries(e.children).forEach(([i,o])=>{o===t?n[i]=r:n[i]=op(o,t,r)}),new V(e.segments,n)}var qo=class{constructor(t,r,n){if(this.isAbsolute=t,this.numberOfDoubleDots=r,this.commands=n,t&&n.length>0&&Wo(n[0]))throw new v(4003,!1);let i=n.find(zr);if(i&&i!==Zh(n))throw new v(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function XC(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new qo(!0,0,e);let t=0,r=!1,n=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?r=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new qo(r,t,n)}var qn=class{constructor(t,r,n){this.segmentGroup=t,this.processChildren=r,this.index=n}};function eE(e,t,r){if(e.isAbsolute)return new qn(t,!0,0);if(!r)return new qn(t,!1,NaN);if(r.parent===null)return new qn(r,!0,0);let n=Wo(e.commands[0])?0:1,i=r.segments.length-1+n;return tE(r,i,e.numberOfDoubleDots)}function tE(e,t,r){let n=e,i=t,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new v(4005,!1);i=n.segments.length}return new qn(n,!1,i-o)}function nE(e){return zr(e[0])?e[0].outlets:{[A]:e}}function sp(e,t,r){if(e??=new V([],{}),e.segments.length===0&&e.hasChildren())return Br(e,t,r);let n=rE(e,t,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==A)&&e.children[A]&&e.numberOfChildren===1&&e.children[A].segments.length===0){let o=Br(e.children[A],t,r);return new V(e.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=sp(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new V(e.segments,i)}}function rE(e,t,r){let n=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=e.segments[i],a=r[n];if(zr(a))break;let u=`${a}`,c=n0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Gh(u,c,s))return o;n+=2}else{if(!Gh(u,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Zu(e,t,r){let n=e.segments.slice(0,t),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(t[r]=Zu(new V([],{}),0,n))}),t}function zh(e){let t={};return Object.entries(e).forEach(([r,n])=>t[r]=`${n}`),t}function Gh(e,t,r){return e==r.path&&Qe(t,r.parameters)}var $r="imperative",oe=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(oe||{}),Re=class{constructor(t,r){this.id=t,this.url=r}},Gr=class extends Re{constructor(t,r,n="imperative",i=null){super(t,r),this.type=oe.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Pt=class extends Re{constructor(t,r,n){super(t,r),this.urlAfterRedirects=n,this.type=oe.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},be=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(be||{}),Yu=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Yu||{}),kt=class extends Re{constructor(t,r,n,i){super(t,r),this.reason=n,this.code=i,this.type=oe.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},un=class extends Re{constructor(t,r,n,i){super(t,r),this.reason=n,this.code=i,this.type=oe.NavigationSkipped}},Wr=class extends Re{constructor(t,r,n,i){super(t,r),this.error=n,this.target=i,this.type=oe.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Zo=class extends Re{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=oe.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Qu=class extends Re{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=oe.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ku=class extends Re{constructor(t,r,n,i,o){super(t,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=oe.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ju=class extends Re{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=oe.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Xu=class extends Re{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=oe.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ec=class{constructor(t){this.route=t,this.type=oe.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},tc=class{constructor(t){this.route=t,this.type=oe.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},nc=class{constructor(t){this.snapshot=t,this.type=oe.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},rc=class{constructor(t){this.snapshot=t,this.type=oe.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ic=class{constructor(t){this.snapshot=t,this.type=oe.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},oc=class{constructor(t){this.snapshot=t,this.type=oe.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var qr=class{},Zr=class{constructor(t){this.url=t}};var sc=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new es,this.attachRef=null}},es=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new sc,this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Yo=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let r=this.pathFromRoot(t);return r.length>1?r[r.length-2]:null}children(t){let r=ac(t,this._root);return r?r.children.map(n=>n.value):[]}firstChild(t){let r=ac(t,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(t){let r=uc(t,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return uc(t,this._root).map(r=>r.value)}};function ac(e,t){if(e===t.value)return t;for(let r of t.children){let n=ac(e,r);if(n)return n}return null}function uc(e,t){if(e===t.value)return[t];for(let r of t.children){let n=uc(e,r);if(n.length)return n.unshift(t),n}return[]}var Ee=class{constructor(t,r){this.value=t,this.children=r}toString(){return`TreeNode(${this.value})`}};function Wn(e){let t={};return e&&e.children.forEach(r=>t[r.value.outlet]=r),t}var Qo=class extends Yo{constructor(t,r){super(t),this.snapshot=r,Dc(this,t)}toString(){return this.snapshot.toString()}};function ap(e){let t=oE(e),r=new J([new sn("",{})]),n=new J({}),i=new J({}),o=new J({}),s=new J(""),a=new cn(r,n,o,s,i,A,e,t.root);return a.snapshot=t.root,new Qo(new Ee(a,[]),t)}function oE(e){let t={},r={},n={},i="",o=new Yr([],t,n,i,r,A,e,null,{});return new Ko("",new Ee(o,[]))}var cn=class{constructor(t,r,n,i,o,s,a,u){this.urlSubject=t,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(S(c=>c[Jr]))??M(void 0),this.url=t,this.params=r,this.queryParams=n,this.fragment=i,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(S(t=>Yn(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(S(t=>Yn(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function vc(e,t,r="emptyOnly"){let n,{routeConfig:i}=e;return t!==null&&(r==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?n={params:p(p({},t.params),e.params),data:p(p({},t.data),e.data),resolve:p(p(p(p({},e.data),t.data),i?.data),e._resolvedData)}:n={params:p({},e.params),data:p({},e.data),resolve:p(p({},e.data),e._resolvedData??{})},i&&cp(i)&&(n.resolve[Jr]=i.title),n}var Yr=class{get title(){return this.data?.[Jr]}constructor(t,r,n,i,o,s,a,u,c){this.url=t,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Yn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Yn(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${r}')`}},Ko=class extends Yo{constructor(t,r){super(r),this.url=t,Dc(this,r)}toString(){return up(this._root)}};function Dc(e,t){t.value._routerState=e,t.children.forEach(r=>Dc(e,r))}function up(e){let t=e.children.length>0?` { ${e.children.map(up).join(", ")} } `:"";return`${e.value}${t}`}function $u(e){if(e.snapshot){let t=e.snapshot,r=e._futureSnapshot;e.snapshot=r,Qe(t.queryParams,r.queryParams)||e.queryParamsSubject.next(r.queryParams),t.fragment!==r.fragment&&e.fragmentSubject.next(r.fragment),Qe(t.params,r.params)||e.paramsSubject.next(r.params),FC(t.url,r.url)||e.urlSubject.next(r.url),Qe(t.data,r.data)||e.dataSubject.next(r.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function cc(e,t){let r=Qe(e.params,t.params)&&VC(e.url,t.url),n=!e.parent!=!t.parent;return r&&!n&&(!e.parent||cc(e.parent,t.parent))}function cp(e){return typeof e.title=="string"||e.title===null}var wc=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=A,this.activateEvents=new ie,this.deactivateEvents=new ie,this.attachEvents=new ie,this.detachEvents=new ie,this.parentContexts=g(es),this.location=g(Mr),this.changeDetector=g(dt),this.environmentInjector=g(he),this.inputBinder=g(Cc,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)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 v(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new v(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new v(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,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,i){if(this.isActivated)throw new v(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,c=new lc(n,u,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=De({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ut]});let e=t;return e})(),lc=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,r,n){this.route=t,this.childContexts=r,this.parent=n}get(t,r){return t===cn?this.route:t===es?this.childContexts:this.parent.get(t,r)}},Cc=new E("");function sE(e,t,r){let n=Qr(e,t._root,r?r._root:void 0);return new Qo(n,t)}function Qr(e,t,r){if(r&&e.shouldReuseRoute(t.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=t.value;let i=aE(e,t,r);return new Ee(n,i)}else{if(e.shouldAttach(t.value)){let o=e.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Qr(e,a)),s}}let n=uE(t.value),i=t.children.map(o=>Qr(e,o));return new Ee(n,i)}}function aE(e,t,r){return t.children.map(n=>{for(let i of r.children)if(e.shouldReuseRoute(n.value,i.value.snapshot))return Qr(e,n,i);return Qr(e,n)})}function uE(e){return new cn(new J(e.url),new J(e.params),new J(e.queryParams),new J(e.fragment),new J(e.data),e.outlet,e.component,e)}var lp="ngNavigationCancelingError";function dp(e,t){let{redirectTo:r,navigationBehaviorOptions:n}=Qn(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=fp(!1,be.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function fp(e,t){let r=new Error(`NavigationCancelingError: ${e||""}`);return r[lp]=!0,r.cancellationCode=t,r}function cE(e){return hp(e)&&Qn(e.url)}function hp(e){return!!e&&e[lp]}var lE=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=Se({type:t,selectors:[["ng-component"]],standalone:!0,features:[xe],decls:1,vars:0,template:function(i,o){i&1&&Ae(0,"router-outlet")},dependencies:[wc],encapsulation:2});let e=t;return e})();function dE(e,t){return e.providers&&!e._injector&&(e._injector=mu(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Ec(e){let t=e.children&&e.children.map(Ec),r=t?L(p({},e),{children:t}):p({},e);return!r.component&&!r.loadComponent&&(t||r.loadChildren)&&r.outlet&&r.outlet!==A&&(r.component=lE),r}function Ke(e){return e.outlet||A}function fE(e,t){let r=e.filter(n=>Ke(n)===t);return r.push(...e.filter(n=>Ke(n)!==t)),r}function Xr(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let r=t.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var hE=(e,t,r,n)=>S(i=>(new dc(t,i.targetRouterState,i.currentRouterState,r,n).activate(e),i)),dc=class{constructor(t,r,n,i,o){this.routeReuseStrategy=t,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,t),$u(this.futureState.root),this.activateChildRoutes(r,n,t)}deactivateChildRoutes(t,r,n){let i=Wn(r);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(t,r,n){let i=t.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,r,s.children)}else this.deactivateChildRoutes(t,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(t,r){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,r):this.deactivateRouteAndOutlet(t,r)}detachAndStoreRouteSubtree(t,r){let n=r.getContext(t.value.outlet),i=n&&t.value.component?n.children:r,o=Wn(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,r){let n=r.getContext(t.value.outlet),i=n&&t.value.component?n.children:r,o=Wn(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(t,r,n){let i=Wn(r);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new oc(o.value.snapshot))}),t.children.length&&this.forwardEvent(new rc(t.value.snapshot))}activateRoutes(t,r,n){let i=t.value,o=r?r.value:null;if($u(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,r,s.children)}else this.activateChildRoutes(t,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),$u(a.route.value),this.activateChildRoutes(t,null,s.children)}else{let a=Xr(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,n)}},Jo=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Zn=class{constructor(t,r){this.component=t,this.route=r}};function pE(e,t,r){let n=e._root,i=t?t._root:null;return jr(n,i,r,[n.value])}function gE(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Jn(e,t){let r=Symbol(),n=t.get(e,r);return n===r?typeof e=="function"&&!ed(e)?e:t.get(e):n}function jr(e,t,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Wn(t);return e.children.forEach(s=>{mE(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Hr(a,r.getContext(s),i)),i}function mE(e,t,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=t?t.value:null,a=r?r.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=yE(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Jo(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?jr(e,t,a?a.children:null,n,i):jr(e,t,r,n,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Zn(a.outlet.component,s))}else s&&Hr(t,a,i),i.canActivateChecks.push(new Jo(n)),o.component?jr(e,null,a?a.children:null,n,i):jr(e,null,r,n,i);return i}function yE(e,t,r){if(typeof r=="function")return r(e,t);switch(r){case"pathParamsChange":return!an(e.url,t.url);case"pathParamsOrQueryParamsChange":return!an(e.url,t.url)||!Qe(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!cc(e,t)||!Qe(e.queryParams,t.queryParams);case"paramsChange":default:return!cc(e,t)}}function Hr(e,t,r){let n=Wn(e),i=e.value;Object.entries(n).forEach(([o,s])=>{i.component?t?Hr(s,t.children.getContext(o),r):Hr(s,null,r):Hr(s,t,r)}),i.component?t&&t.outlet&&t.outlet.isActivated?r.canDeactivateChecks.push(new Zn(t.outlet.component,i)):r.canDeactivateChecks.push(new Zn(null,i)):r.canDeactivateChecks.push(new Zn(null,i))}function ei(e){return typeof e=="function"}function vE(e){return typeof e=="boolean"}function DE(e){return e&&ei(e.canLoad)}function wE(e){return e&&ei(e.canActivate)}function CE(e){return e&&ei(e.canActivateChild)}function EE(e){return e&&ei(e.canDeactivate)}function bE(e){return e&&ei(e.canMatch)}function pp(e){return e instanceof Xe||e?.name==="EmptyError"}var Bo=Symbol("INITIAL_VALUE");function Kn(){return ve(e=>_i(e.map(t=>t.pipe(et(1),xs(Bo)))).pipe(S(t=>{for(let r of t)if(r!==!0){if(r===Bo)return Bo;if(r===!1||r instanceof Ft)return r}return!0}),se(t=>t!==Bo),et(1)))}function IE(e,t){return X(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?M(L(p({},r),{guardsResult:!0})):ME(s,n,i,e).pipe(X(a=>a&&vE(a)?_E(n,o,e,t):M(a)),S(a=>L(p({},r),{guardsResult:a})))})}function ME(e,t,r,n){return W(e).pipe(X(i=>NE(i.component,i.route,r,t,n)),Be(i=>i!==!0,!0))}function _E(e,t,r,n){return W(t).pipe(vt(i=>Dn(TE(i.route.parent,n),SE(i.route,n),xE(e,i.path,r),AE(e,i.route,r))),Be(i=>i!==!0,!0))}function SE(e,t){return e!==null&&t&&t(new ic(e)),M(!0)}function TE(e,t){return e!==null&&t&&t(new nc(e)),M(!0)}function AE(e,t,r){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return M(!0);let i=n.map(o=>Si(()=>{let s=Xr(t)??r,a=Jn(o,s),u=wE(a)?a.canActivate(t,e):ot(s,()=>a(t,e));return Lt(u).pipe(Be())}));return M(i).pipe(Kn())}function xE(e,t,r){let n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>gE(s)).filter(s=>s!==null).map(s=>Si(()=>{let a=s.guards.map(u=>{let c=Xr(s.node)??r,l=Jn(u,c),d=CE(l)?l.canActivateChild(n,e):ot(c,()=>l(n,e));return Lt(d).pipe(Be())});return M(a).pipe(Kn())}));return M(o).pipe(Kn())}function NE(e,t,r,n,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return M(!0);let s=o.map(a=>{let u=Xr(t)??i,c=Jn(a,u),l=EE(c)?c.canDeactivate(e,t,r,n):ot(u,()=>c(e,t,r,n));return Lt(l).pipe(Be())});return M(s).pipe(Kn())}function RE(e,t,r,n){let i=t.canLoad;if(i===void 0||i.length===0)return M(!0);let o=i.map(s=>{let a=Jn(s,e),u=DE(a)?a.canLoad(t,r):ot(e,()=>a(t,r));return Lt(u)});return M(o).pipe(Kn(),gp(n))}function gp(e){return sr(ne(t=>{if(Qn(t))throw dp(e,t)}),S(t=>t===!0))}function OE(e,t,r,n){let i=t.canMatch;if(!i||i.length===0)return M(!0);let o=i.map(s=>{let a=Jn(s,e),u=bE(a)?a.canMatch(t,r):ot(e,()=>a(t,r));return Lt(u)});return M(o).pipe(Kn(),gp(n))}var Kr=class{constructor(t){this.segmentGroup=t||null}},Xo=class extends Error{constructor(t){super(),this.urlTree=t}};function Gn(e){return vn(new Kr(e))}function FE(e){return vn(new v(4e3,!1))}function PE(e){return vn(fp(!1,be.GuardRejected))}var fc=class{constructor(t,r){this.urlSerializer=t,this.urlTree=r}lineralizeSegments(t,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return M(n);if(i.numberOfChildren>1||!i.children[A])return FE(t.redirectTo);i=i.children[A]}}applyRedirectCommands(t,r,n){let i=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),t,n);if(r.startsWith("/"))throw new Xo(i);return i}applyRedirectCreateUrlTree(t,r,n,i){let o=this.createSegmentGroup(t,r.root,n,i);return new Ft(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(t,r){let n={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(t,r,n,i){let o=this.createSegments(t,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(t,u,n,i)}),new V(o,s)}createSegments(t,r,n,i){return r.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,i):this.findOrReturn(o,n))}findPosParam(t,r,n){let i=n[r.path.substring(1)];if(!i)throw new v(4001,!1);return i}findOrReturn(t,r){let n=0;for(let i of r){if(i.path===t.path)return r.splice(n),i;n++}return t}},hc={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function kE(e,t,r,n,i){let o=bc(e,t,r);return o.matched?(n=dE(t,n),OE(n,t,r,i).pipe(S(s=>s===!0?o:p({},hc)))):M(o)}function bc(e,t,r){if(t.path==="**")return LE(r);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||r.length>0)?p({},hc):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(t.matcher||OC)(r,e,t);if(!i)return p({},hc);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?p(p({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function LE(e){return{matched:!0,parameters:e.length>0?Zh(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Wh(e,t,r,n){return r.length>0&&UE(e,r,n)?{segmentGroup:new V(t,jE(n,new V(r,e.children))),slicedSegments:[]}:r.length===0&&BE(e,r,n)?{segmentGroup:new V(e.segments,VE(e,r,n,e.children)),slicedSegments:r}:{segmentGroup:new V(e.segments,e.children),slicedSegments:r}}function VE(e,t,r,n){let i={};for(let o of r)if(ts(e,t,o)&&!n[Ke(o)]){let s=new V([],{});i[Ke(o)]=s}return p(p({},n),i)}function jE(e,t){let r={};r[A]=t;for(let n of e)if(n.path===""&&Ke(n)!==A){let i=new V([],{});r[Ke(n)]=i}return r}function UE(e,t,r){return r.some(n=>ts(e,t,n)&&Ke(n)!==A)}function BE(e,t,r){return r.some(n=>ts(e,t,n))}function ts(e,t,r){return(e.hasChildren()||t.length>0)&&r.pathMatch==="full"?!1:r.path===""}function $E(e,t,r,n){return Ke(e)!==n&&(n===A||!ts(t,r,e))?!1:bc(t,e,r).matched}function HE(e,t,r){return t.length===0&&!e.children[r]}var pc=class{};function zE(e,t,r,n,i,o,s="emptyOnly"){return new gc(e,t,r,n,i,s,o).recognize()}var GE=31,gc=class{constructor(t,r,n,i,o,s,a){this.injector=t,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new fc(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new v(4002,`'${t.segmentGroup}'`)}recognize(){let t=Wh(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(S(r=>{let n=new Yr([],Object.freeze({}),Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,{},A,this.rootComponentType,null,{}),i=new Ee(n,r),o=new Ko("",i),s=JC(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(t){return this.processSegmentGroup(this.injector,this.config,t,A).pipe(yt(n=>{if(n instanceof Xo)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Kr?this.noMatchError(n):n}))}inheritParamsAndData(t,r){let n=t.value,i=vc(n,r,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),t.children.forEach(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(t,r,n,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(t,r,n):this.processSegment(t,r,n,n.segments,i,!0).pipe(S(o=>o instanceof Ee?[o]:[]))}processChildren(t,r,n){let i=[];for(let o of Object.keys(n.children))o==="primary"?i.unshift(o):i.push(o);return W(i).pipe(vt(o=>{let s=n.children[o],a=fE(r,o);return this.processSegmentGroup(t,a,s,o)}),Ss((o,s)=>(o.push(...s),o)),Dt(null),_s(),X(o=>{if(o===null)return Gn(n);let s=mp(o);return WE(s),M(s)}))}processSegment(t,r,n,i,o,s){return W(r).pipe(vt(a=>this.processSegmentAgainstRoute(a._injector??t,r,a,n,i,o,s).pipe(yt(u=>{if(u instanceof Kr)return M(null);throw u}))),Be(a=>!!a),yt(a=>{if(pp(a))return HE(n,i,o)?M(new pc):Gn(n);throw a}))}processSegmentAgainstRoute(t,r,n,i,o,s,a){return $E(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,n,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,r,n,o,s):Gn(i):Gn(i)}expandSegmentAgainstRouteUsingRedirect(t,r,n,i,o,s){let{matched:a,consumedSegments:u,positionalParamSegments:c,remainingSegments:l}=bc(r,i,o);if(!a)return Gn(r);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>GE&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,d).pipe(X(h=>this.processSegment(t,n,r,h.concat(l),s,!1)))}matchSegmentAgainstRoute(t,r,n,i,o){let s=kE(r,n,i,t,this.urlSerializer);return n.path==="**"&&(r.children={}),s.pipe(ve(a=>a.matched?(t=n._injector??t,this.getChildConfig(t,n,i).pipe(ve(({routes:u})=>{let c=n._loadedInjector??t,{consumedSegments:l,remainingSegments:d,parameters:h}=a,f=new Yr(l,h,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,ZE(n),Ke(n),n.component??n._loadedComponent??null,n,YE(n)),{segmentGroup:m,slicedSegments:C}=Wh(r,l,d,u);if(C.length===0&&m.hasChildren())return this.processChildren(c,u,m).pipe(S(y=>y===null?null:new Ee(f,y)));if(u.length===0&&C.length===0)return M(new Ee(f,[]));let w=Ke(n)===o;return this.processSegment(c,u,m,C,w?A:o,!0).pipe(S(y=>new Ee(f,y instanceof Ee?[y]:[])))}))):Gn(r)))}getChildConfig(t,r,n){return r.children?M({routes:r.children,injector:t}):r.loadChildren?r._loadedRoutes!==void 0?M({routes:r._loadedRoutes,injector:r._loadedInjector}):RE(t,r,n,this.urlSerializer).pipe(X(i=>i?this.configLoader.loadChildren(t,r).pipe(ne(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):PE(r))):M({routes:[],injector:t})}};function WE(e){e.sort((t,r)=>t.value.outlet===A?-1:r.value.outlet===A?1:t.value.outlet.localeCompare(r.value.outlet))}function qE(e){let t=e.value.routeConfig;return t&&t.path===""}function mp(e){let t=[],r=new Set;for(let n of e){if(!qE(n)){t.push(n);continue}let i=t.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):t.push(n)}for(let n of r){let i=mp(n.children);t.push(new Ee(n.value,i))}return t.filter(n=>!r.has(n))}function ZE(e){return e.data||{}}function YE(e){return e.resolve||{}}function QE(e,t,r,n,i,o){return X(s=>zE(e,t,r,n,s.extractedUrl,i,o).pipe(S(({state:a,tree:u})=>L(p({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function KE(e,t){return X(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return M(r);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of yp(u))s.add(c);let a=0;return W(s).pipe(vt(u=>o.has(u)?JE(u,n,e,t):(u.data=vc(u,u.parent,e).resolve,M(void 0))),ne(()=>a++),wn(1),X(u=>a===s.size?M(r):ye))})}function yp(e){let t=e.children.map(r=>yp(r)).flat();return[e,...t]}function JE(e,t,r,n){let i=e.routeConfig,o=e._resolve;return i?.title!==void 0&&!cp(i)&&(o[Jr]=i.title),XE(o,e,t,n).pipe(S(s=>(e._resolvedData=s,e.data=vc(e,e.parent,r).resolve,null)))}function XE(e,t,r,n){let i=Gu(e);if(i.length===0)return M({});let o={};return W(i).pipe(X(s=>eb(e[s],t,r,n).pipe(Be(),ne(a=>{o[s]=a}))),wn(1),Ms(o),yt(s=>pp(s)?ye:vn(s)))}function eb(e,t,r,n){let i=Xr(t)??n,o=Jn(e,i),s=o.resolve?o.resolve(t,r):ot(i,()=>o(t,r));return Lt(s)}function Hu(e){return ve(t=>{let r=e(t);return r?W(r).pipe(S(()=>t)):M(t)})}var vp=(()=>{let t=class t{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===A);return i}getResolvedTitleForRoute(n){return n.data[Jr]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:()=>g(tb),providedIn:"root"});let e=t;return e})(),tb=(()=>{let t=class t extends vp{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};t.\u0275fac=function(i){return new(i||t)(b(Bh))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Ic=new E("",{providedIn:"root",factory:()=>({})}),Mc=new E(""),nb=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(Cu)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return M(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=Lt(n.loadComponent()).pipe(S(Dp),ne(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Bt(()=>{this.componentLoaders.delete(n)})),o=new yn(i,()=>new te).pipe(mn());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return M({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=rb(i,this.compiler,n,this.onLoadEndListener).pipe(Bt(()=>{this.childrenLoaders.delete(i)})),a=new yn(s,()=>new te).pipe(mn());return this.childrenLoaders.set(i,a),a}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function rb(e,t,r,n){return Lt(e.loadChildren()).pipe(S(Dp),X(i=>i instanceof vr||Array.isArray(i)?M(i):W(t.compileModuleAsync(i))),S(i=>{n&&n(e);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(Mc,[],{optional:!0,self:!0}).flat()),{routes:s.map(Ec),injector:o}}))}function ib(e){return e&&typeof e=="object"&&"default"in e}function Dp(e){return ib(e)?e.default:e}var _c=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:()=>g(ob),providedIn:"root"});let e=t;return e})(),ob=(()=>{let t=class t{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),sb=new E("");var ab=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new te,this.transitionAbortSubject=new te,this.configLoader=g(nb),this.environmentInjector=g(he),this.urlSerializer=g(yc),this.rootContexts=g(es),this.location=g(xr),this.inputBindingEnabled=g(Cc,{optional:!0})!==null,this.titleStrategy=g(vp),this.options=g(Ic,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(_c),this.createViewTransition=g(sb,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>M(void 0),this.rootComponentType=null;let n=o=>this.events.next(new ec(o)),i=o=>this.events.next(new tc(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(L(p(p({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new J({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:$r,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(se(s=>s.id!==0),S(s=>L(p({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),ve(s=>{let a=!1,u=!1;return M(s).pipe(ve(c=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",be.SupersededByNewNavigation),ye;this.currentTransition=s,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?L(p({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let h="";return this.events.next(new un(c.id,this.urlSerializer.serialize(c.rawUrl),h,Yu.IgnoredSameUrlNavigation)),c.resolve(null),ye}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return M(c).pipe(ve(h=>{let f=this.transitions?.getValue();return this.events.next(new Gr(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?ye:Promise.resolve(h)}),QE(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ne(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=L(p({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let f=new Zo(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:h,extractedUrl:f,source:m,restoredState:C,extras:w}=c,y=new Gr(h,this.urlSerializer.serialize(f),m,C);this.events.next(y);let Z=ap(this.rootComponentType).snapshot;return this.currentTransition=s=L(p({},c),{targetSnapshot:Z,urlAfterRedirects:f,extras:L(p({},w),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,M(s)}else{let h="";return this.events.next(new un(c.id,this.urlSerializer.serialize(c.extractedUrl),h,Yu.IgnoredByUrlHandlingStrategy)),c.resolve(null),ye}}),ne(c=>{let l=new Qu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),S(c=>(this.currentTransition=s=L(p({},c),{guards:pE(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),IE(this.environmentInjector,c=>this.events.next(c)),ne(c=>{if(s.guardsResult=c.guardsResult,Qn(c.guardsResult))throw dp(this.urlSerializer,c.guardsResult);let l=new Ku(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),se(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",be.GuardRejected),!1)),Hu(c=>{if(c.guards.canActivateChecks.length)return M(c).pipe(ne(l=>{let d=new Ju(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),ve(l=>{let d=!1;return M(l).pipe(KE(this.paramsInheritanceStrategy,this.environmentInjector),ne({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",be.NoDataFromResolver)}}))}),ne(l=>{let d=new Xu(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),Hu(c=>{let l=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(ne(f=>{d.component=f}),S(()=>{})));for(let f of d.children)h.push(...l(f));return h};return _i(l(c.targetSnapshot.root)).pipe(Dt(null),et(1))}),Hu(()=>this.afterPreactivation()),ve(()=>{let{currentSnapshot:c,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?W(d).pipe(S(()=>s)):M(s)}),S(c=>{let l=sE(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=L(p({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),ne(()=>{this.events.next(new qr)}),hE(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),et(1),ne({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Pt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),Ns(this.transitionAbortSubject.pipe(ne(c=>{throw c}))),Bt(()=>{!a&&!u&&this.cancelNavigationTransition(s,"",be.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),yt(c=>{if(u=!0,hp(c))this.events.next(new kt(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),cE(c)?this.events.next(new Zr(c.url)):s.resolve(!1);else{this.events.next(new Wr(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(l)}}return ye}))}))}cancelNavigationTransition(n,i,o){let s=new kt(n.id,this.urlSerializer.serialize(n.extractedUrl),i,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}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ub(e){return e!==$r}var cb=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:()=>g(lb),providedIn:"root"});let e=t;return e})(),mc=class{shouldDetach(t){return!1}store(t,r){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,r){return t.routeConfig===r.routeConfig}},lb=(()=>{let t=class t extends mc{};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=Er(t)))(o||t)}})(),t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),wp=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:()=>g(db),providedIn:"root"});let e=t;return e})(),db=(()=>{let t=class t extends wp{constructor(){super(...arguments),this.location=g(xr),this.urlSerializer=g(yc),this.options=g(Ic,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(_c),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ft,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=ap(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(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof Gr)this.stateMemento=this.createStateMemento();else if(n instanceof un)this.rawUrlTree=i.initialUrl;else if(n instanceof Zo){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else n instanceof qr?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof kt&&(n.code===be.GuardRejected||n.code===be.NoDataFromResolver)?this.restoreHistory(i):n instanceof Wr?this.restoreHistory(i,!0):n instanceof Pt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=p(p({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=p(p({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!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"&&(i&&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,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=Er(t)))(o||t)}})(),t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Ur=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Ur||{});function fb(e,t){e.events.pipe(se(r=>r instanceof Pt||r instanceof kt||r instanceof Wr||r instanceof un),S(r=>r instanceof Pt||r instanceof un?Ur.COMPLETE:(r instanceof kt?r.code===be.Redirect||r.code===be.SupersededByNewNavigation:!1)?Ur.REDIRECTING:Ur.FAILED),se(r=>r!==Ur.REDIRECTING),et(1)).subscribe(()=>{t()})}function hb(e){throw e}var pb={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gb={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Sc=(()=>{let t=class t{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=g(So),this.stateManager=g(wp),this.options=g(Ic,{optional:!0})||{},this.pendingTasks=g(Bn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(ab),this.urlSerializer=g(yc),this.location=g(xr),this.urlHandlingStrategy=g(_c),this._events=new te,this.errorHandler=this.options.errorHandler||hb,this.navigated=!1,this.routeReuseStrategy=g(cb),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(Mc,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(Cc,{optional:!0}),this.eventsSubscription=new K,this.isNgZoneEnabled=g(H)instanceof H&&H.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(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof kt&&i.code!==be.Redirect&&i.code!==be.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Pt)this.navigated=!0;else if(i instanceof Zr){let a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),u={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||ub(o.source)};this.scheduleNavigation(a,$r,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}yb(i)&&this._events.next(i)}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),$r,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=p({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let u=this.parseUrl(n);this.scheduleNavigation(u,i,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(Ec),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,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:u,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:a,d=null;switch(u){case"merge":d=p(p({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let f=o?o.snapshot:this.routerState.snapshot.root;h=rp(f)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),h=this.currentUrlTree.root}return ip(h,n,d,l??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=Qn(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,$r,null,i)}navigate(n,i={skipLocationChange:!1}){return mb(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=p({},pb):i===!1?o=p({},gb):o=i,Qn(n))return $h(this.currentUrlTree,n,o);let s=this.parseUrl(n);return $h(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let u,c,l;a?(u=a.resolve,c=a.reject,l=a.promise):l=new Promise((h,f)=>{u=h,c=f});let d=this.pendingTasks.add();return fb(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:u,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(h=>Promise.reject(h))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function mb(e){for(let t=0;t{let t=class t{constructor(n,i,o,s,a,u){this.router=n,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=u,this.href=null,this.commands=null,this.onChanges=new te,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof Pt&&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,i,o,s,a){let u=this.urlTree;if(u===null||this.isAnchorElement&&(n!==0||i||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let i=this.href===null?null:Ef(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(n,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,n,i):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})}};t.\u0275fac=function(i){return new(i||t)(T(Sc),T(cn),Qa("tabindex"),T(Xt),T(Ze),T(Rt))},t.\u0275dir=De({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&tn("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&en("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[ee.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Ye],skipLocationChange:[ee.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Ye],replaceUrl:[ee.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Ye],routerLink:"routerLink"},standalone:!0,features:[_r,ut]});let e=t;return e})();var vb=new E("");function Ep(e,...t){return St([{provide:Mc,multi:!0,useValue:e},[],{provide:cn,useFactory:Db,deps:[Sc]},{provide:To,multi:!0,useFactory:Cb},t.map(r=>r.\u0275providers)])}function Db(e){return e.routerState.root}function wb(e,t){return{\u0275kind:e,\u0275providers:t}}function Cb(){let e=g(Ln);return t=>{let r=e.get($n);if(t!==r.components[0])return;let n=e.get(Sc),i=e.get(Eb);e.get(bb)===1&&n.initialNavigation(),e.get(Ib,null,x.Optional)?.setUpPreloading(),e.get(vb,null,x.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Eb=new E("",{factory:()=>new te}),bb=new E("",{providedIn:"root",factory:()=>1});var Ib=new E("");function bp(){return wb(6,[{provide:Rt,useClass:wh}])}var Ip=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=Se({type:t,selectors:[["app-root"]],standalone:!0,features:[xe],decls:20,vars:0,consts:[[1,"navbar","navbar-expand-lg","navbar-light","bg-light"],["routerLink","/",1,"navbar-brand"],["type","button","data-toggle","collapse","data-target","#navbarNav","aria-controls","navbarNav","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],[1,"collapse","navbar-collapse"],[1,"navbar-nav"],[1,"nav-item"],["routerLink","/",1,"nav-link"],["routerLink","/other",1,"nav-link"],["routerLink","/inline",1,"nav-link"],[2,"line-height","30px"],[2,"margin-top","16px"]],template:function(i,o){i&1&&(j(0,"nav",0)(1,"a",1),q(2,"ngx-tinymce"),U(),j(3,"button",2),Ae(4,"span",3),U(),j(5,"div",4)(6,"ul",5)(7,"li",6)(8,"a",7),q(9,"Home"),U()(),j(10,"li",6)(11,"a",8),q(12,"Other"),U()(),j(13,"li",6)(14,"a",9),q(15,"Inline"),U()()()()(),j(16,"p",10),q(17,"Angular for tinymce"),U(),j(18,"div",11),Ae(19,"router-outlet"),U())},dependencies:[wc,Cp],encapsulation:2});let e=t;return e})();var Rp=(()=>{let t=class t{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};t.\u0275fac=function(i){return new(i||t)(T(Xt),T(Ze))},t.\u0275dir=De({type:t});let e=t;return e})(),Mb=(()=>{let t=class t extends Rp{};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=Er(t)))(o||t)}})(),t.\u0275dir=De({type:t,features:[Un]});let e=t;return e})(),os=new E("");var _b={provide:os,useExisting:Kt(()=>Op),multi:!0};function Sb(){let e=ht()?ht().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var Tb=new E(""),Op=(()=>{let t=class t extends Rp{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Sb())}writeValue(n){let i=n??"";this.setProperty("value",i)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};t.\u0275fac=function(i){return new(i||t)(T(Xt),T(Ze),T(Tb,8))},t.\u0275dir=De({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&tn("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Ar([_b]),Un]});let e=t;return e})();var Ab=new E(""),xb=new E("");function Fp(e){return e!=null}function Pp(e){return rn(e)?W(e):e}function kp(e){let t={};return e.forEach(r=>{t=r!=null?p(p({},t),r):t}),Object.keys(t).length===0?null:t}function Lp(e,t){return t.map(r=>r(e))}function Nb(e){return!e.validate}function Vp(e){return e.map(t=>Nb(t)?t:r=>t.validate(r))}function Rb(e){if(!e)return null;let t=e.filter(Fp);return t.length==0?null:function(r){return kp(Lp(r,t))}}function jp(e){return e!=null?Rb(Vp(e)):null}function Ob(e){if(!e)return null;let t=e.filter(Fp);return t.length==0?null:function(r){let n=Lp(r,t).map(Pp);return Is(n).pipe(S(kp))}}function Up(e){return e!=null?Ob(Vp(e)):null}function Mp(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Fb(e){return e._rawValidators}function Pb(e){return e._rawAsyncValidators}function Tc(e){return e?Array.isArray(e)?e:[e]:[]}function rs(e,t){return Array.isArray(e)?e.includes(t):e===t}function _p(e,t){let r=Tc(t);return Tc(e).forEach(i=>{rs(r,i)||r.push(i)}),r}function Sp(e,t){return Tc(t).filter(r=>!rs(e,r))}var is=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=jp(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Up(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,r){return this.control?this.control.hasError(t,r):!1}getError(t,r){return this.control?this.control.getError(t,r):null}},Ac=class extends is{get formDirective(){return null}get path(){return null}},ri=class extends is{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},xc=class{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},kb={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},rN=L(p({},kb),{"[class.ng-submitted]":"isSubmitted"}),er=(()=>{let t=class t extends xc{constructor(n){super(n)}};t.\u0275fac=function(i){return new(i||t)(T(ri,2))},t.\u0275dir=De({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&yu("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Un]});let e=t;return e})();var ti="VALID",ns="INVALID",Xn="PENDING",ni="DISABLED";function Lb(e){return(ss(e)?e.validators:e)||null}function Vb(e){return Array.isArray(e)?jp(e):e||null}function jb(e,t){return(ss(t)?t.asyncValidators:e)||null}function Ub(e){return Array.isArray(e)?Up(e):e||null}function ss(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Nc=class{constructor(t,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===ti}get invalid(){return this.status===ns}get pending(){return this.status==Xn}get disabled(){return this.status===ni}get enabled(){return this.status!==ni}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(_p(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(_p(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Sp(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Sp(t,this._rawAsyncValidators))}hasValidator(t){return rs(this._rawValidators,t)}hasAsyncValidator(t){return rs(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(r=>{r.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Xn,t.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){let r=this._parentMarkedDirty(t.onlySelf);this.status=ni,this.errors=null,this._forEachChild(n=>{n.disable(L(p({},t),{onlySelf:!0}))}),this._updateValue(),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(L(p({},t),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!0))}enable(t={}){let r=this._parentMarkedDirty(t.onlySelf);this.status=ti,this._forEachChild(n=>{n.enable(L(p({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(L(p({},t),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ti||this.status===Xn)&&this._runAsyncValidator(t.emitEvent)),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ni:ti}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Xn,this._hasOwnPendingAsyncValidator=!0;let r=Pp(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,r={}){this.errors=t,this._updateControlsErrors(r.emitEvent!==!1)}get(t){let r=t;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(t,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[t]:null}hasError(t,r){return!!this.getError(t,r)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new ie,this.statusChanges=new ie}_calculateStatus(){return this._allControlsDisabled()?ni:this.errors?ns:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Xn)?Xn:this._anyControlsHaveStatus(ns)?ns:ti}_anyControlsHaveStatus(t){return this._anyControls(r=>r.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ss(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let r=this._parent&&this._parent.dirty;return!t&&!!r&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=Vb(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Ub(this._rawAsyncValidators)}};var Bp=new E("CallSetDisabledState",{providedIn:"root",factory:()=>Rc}),Rc="always";function Bb(e,t){return[...t.path,e]}function $b(e,t,r=Rc){zb(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||r==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),Gb(e,t),qb(e,t),Wb(e,t),Hb(e,t)}function Tp(e,t){e.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(t)})}function Hb(e,t){if(t.valueAccessor.setDisabledState){let r=n=>{t.valueAccessor.setDisabledState(n)};e.registerOnDisabledChange(r),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(r)})}}function zb(e,t){let r=Fb(e);t.validator!==null?e.setValidators(Mp(r,t.validator)):typeof r=="function"&&e.setValidators([r]);let n=Pb(e);t.asyncValidator!==null?e.setAsyncValidators(Mp(n,t.asyncValidator)):typeof n=="function"&&e.setAsyncValidators([n]);let i=()=>e.updateValueAndValidity();Tp(t._rawValidators,i),Tp(t._rawAsyncValidators,i)}function Gb(e,t){t.valueAccessor.registerOnChange(r=>{e._pendingValue=r,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&$p(e,t)})}function Wb(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&$p(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function $p(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function qb(e,t){let r=(n,i)=>{t.valueAccessor.writeValue(n),i&&t.viewToModelUpdate(n)};e.registerOnChange(r),t._registerOnDestroy(()=>{e._unregisterOnChange(r)})}function Zb(e,t){if(!e.hasOwnProperty("model"))return!1;let r=e.model;return r.isFirstChange()?!0:!Object.is(t,r.currentValue)}function Yb(e){return Object.getPrototypeOf(e.constructor)===Mb}function Qb(e,t){if(!t)return null;Array.isArray(t);let r,n,i;return t.forEach(o=>{o.constructor===Op?r=o:Yb(o)?n=o:i=o}),i||n||r||null}function Ap(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}function xp(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Kb=class extends Nc{constructor(t=null,r,n){super(Lb(r),jb(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ss(r)&&(r.nonNullable||r.initialValueIsDefault)&&(xp(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,r={}){this.value=this._pendingValue=t,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(t,r={}){this.setValue(t,r)}reset(t=this.defaultValue,r={}){this._applyFormState(t),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Ap(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Ap(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){xp(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Jb={provide:ri,useExisting:Kt(()=>pt)},Np=Promise.resolve(),pt=(()=>{let t=class t extends ri{constructor(n,i,o,s,a,u){super(),this._changeDetectorRef=a,this.callSetDisabledState=u,this.control=new Kb,this._registered=!1,this.name="",this.update=new ie,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Qb(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let i=n.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),Zb(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){$b(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){Np.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let i=n.isDisabled.currentValue,o=i!==0&&Ye(i);Np.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?Bb(n,this._parent):[n]}};t.\u0275fac=function(i){return new(i||t)(T(Ac,9),T(Ab,10),T(xb,10),T(os,10),T(dt,8),T(Bp,8))},t.\u0275dir=De({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[ee.None,"disabled","isDisabled"],model:[ee.None,"ngModel","model"],options:[ee.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ar([Jb]),Un,ut]});let e=t;return e})();var Xb=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=_t({type:t}),t.\u0275inj=Mt({});let e=t;return e})();var tr=(()=>{let t=class t{static withConfig(n){return{ngModule:t,providers:[{provide:Bp,useValue:n.callSetDisabledState??Rc}]}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=_t({type:t}),t.\u0275inj=Mt({imports:[Xb]});let e=t;return e})();var eI=new E("HighlightJs-Config"),nr=(()=>{let t=class t{constructor(n,i,o,s,a){this.el=n,this.ngModel=i,this.doc=o,this.ngZone=a,this.lang="html",this.mode="simple",Object.assign(this,s)}escapeHTML(n){return(n||"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}init(){this.ngZone.runOutsideAngular(()=>{this.destroy();let n=this.el.nativeElement,i=this.code||""+n.innerHTML.trim(),o=this.doc;if(this.codeEl=o.createElement(this.mode==="default"?"div":"pre"),this.codeEl==null)return;let s=this.mode==="simple";s?(this.lang&&(this.codeEl.className=this.lang),this.parentEl=n.parentNode,this.parentEl.insertBefore(this.codeEl,n.nextSibling)):(this.parentEl=n,this.parentEl.innerHTML="",this.parentEl.appendChild(this.codeEl)),this.codeEl.innerHTML=i;let a=o.defaultView.hljs;a!=null&&(a.configure(p({},this.options)),s?a.highlightElement(this.codeEl):this.codeEl.querySelectorAll("pre code").forEach(u=>{a.highlightElement(u)}))})}destroy(){this.codeEl&&this.parentEl&&(this.parentEl.removeChild(this.codeEl),this.codeEl=void 0)}ngAfterViewInit(){this.init(),this.ngModel?this.modelValue$=this.ngModel.valueChanges?.subscribe(n=>{this.code=this.escapeHTML(n),this.init()}):this.initMutation()}ngOnDestroy(){this.destroy(),this.observer?.disconnect(),this.modelValue$?.unsubscribe()}initMutation(){typeof MutationObserver>"u"||this.ngZone.runOutsideAngular(()=>{this.observer=new MutationObserver(this.init.bind(this)),this.observer.observe(this.el.nativeElement,{characterData:!0,childList:!0,subtree:!0})})}};t.\u0275fac=function(i){return new(i||t)(T(Ze),T(pt,8),T(Q),T(eI,8),T(H))},t.\u0275dir=De({type:t,selectors:[["","highlight-js",""]],hostVars:2,hostBindings:function(i,o){i&2&&_o("display",o.mode==="simple"?"none":null)},inputs:{options:"options",lang:"lang",code:"code",mode:"mode"},exportAs:["highlightJs"],standalone:!0});let e=t;return e})();var ln=class{constructor(){this.baseURL="./assets/tinymce/",this.fileName="tinymce.min.js"}};var Hp=(()=>{let t=class t{constructor(n){this.doc=n,this.list={},this.cached={},this._notify=new J([])}fixPaths(n){return n=n||[],Array.isArray(n)||(n=[n]),n.map(i=>{let o=typeof i=="string"?{path:i}:i;return o.type||(o.type=o.path.endsWith(".js")||o.callback?"script":"style"),o})}monitor(n){let i=this.fixPaths(n),o=[As(),se(s=>s.length!==0)];return i.length>0&&o.push(se(s=>s.length===i.length&&s.every(a=>a.status==="ok"&&i.find(u=>u.path===a.path)))),this._notify.asObservable().pipe(sr.apply(this,o))}clear(){this.list={},this.cached={}}load(n){return rr(this,null,function*(){return n=this.fixPaths(n),Promise.all(n.map(i=>i.type==="script"?this.loadScript(i.path,{callback:i.callback}):this.loadStyle(i.path))).then(i=>(this._notify.next(i),Promise.resolve(i)))})}loadScript(n,i){let{innerContent:o}=p({},i);return new Promise(s=>{if(this.list[n]===!0){s(L(p({},this.cached[n]),{status:"loading"}));return}this.list[n]=!0;let a=l=>{l.status==="ok"&&i?.callback?window[i?.callback]=()=>{u(l)}:u(l)},u=l=>{l.type="script",this.cached[n]=l,s(l),this._notify.next([l])},c=this.doc.createElement("script");c.type="text/javascript",c.src=n,c.charset="utf-8",o&&(c.innerHTML=o),c.readyState?c.onreadystatechange=()=>{(c.readyState==="loaded"||c.readyState==="complete")&&(c.onreadystatechange=null,a({path:n,status:"ok"}))}:c.onload=()=>a({path:n,status:"ok"}),c.onerror=l=>a({path:n,status:"error",error:l}),this.doc.getElementsByTagName("head")[0].appendChild(c)})}loadStyle(n,i){let{rel:o,innerContent:s}=p({rel:"stylesheet"},i);return new Promise(a=>{if(this.list[n]===!0){a(this.cached[n]);return}this.list[n]=!0;let u=this.doc.createElement("link");u.rel=o,u.type="text/css",u.href=n,s&&(u.innerHTML=s),this.doc.getElementsByTagName("head")[0].appendChild(u);let c={path:n,status:"ok",type:"style"};this.cached[n]=c,a(c)})}};t.\u0275fac=function(i){return new(i||t)(b(Q))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var rI=["*"];function iI(e,t){if(e&1&&Ae(0,"textarea",3),e&2){let r=Tr();en("id",r.id)("placeholder",r.placeholder)}}function oI(e,t){if(e&1&&(j(0,"div"),ih(1),U()),e&2){let r=Tr();en("id",r.id)}}function sI(e,t){if(e&1&&(vu(0),q(1),Du()),e&2){let r=Tr(2);pe(),wu(r._loading)}}function aI(e,t){if(e&1&&(j(0,"div",4),Mo(1,sI,2,1,"ng-container",5),U()),e&2){let r=Tr();pe(),Ce("ngIf",r._loading)("ngIfElse",r._loadingTpl)}}var zp=!(typeof document=="object"&&document),dn=(()=>{let t=class t{set disabled(n){this._disabled=n,this.setDisabled()}set loading(n){n instanceof Ir?(this._loading=null,this._loadingTpl=n):this._loading=n}get instance(){return this._instance}_getWin(){return this.doc.defaultView||window}constructor(n,i,o,s,a){this.defConfig=n,this.lazySrv=i,this.ngZone=o,this.doc=s,this.cd=a,this.value="",this.load=!0,this.id=`_tinymce-${Math.random().toString(36).substring(2)}`,this.placeholder="",this.inline=!1,this._disabled=!1,this._loading=null,this._loadingTpl=null,this.delay=0,this.ready=new ie}initDelay(){zp||setTimeout(()=>this.init(),Math.max(0,this.delay))}init(){let n=this._getWin();if(!n.tinymce)throw new Error("tinymce js\u6587\u4EF6\u52A0\u8F7D\u5931\u8D25");let{defConfig:i,config:o,id:s,inline:a}=this;if(this._instance)return;if(i?.baseURL){let l=""+i.baseURL;l.endsWith("/")&&(l=l.substring(0,l.length-1)),n.tinymce.baseURL=l}let u=p(p({},i?.config),o),c=L(p(p({selector:"#"+s,inline:a},i?.config),o),{setup:l=>{this._instance=l,this.onChange&&l.on("change keyup",()=>{this.value=l.getContent(),this.ngZone.run(()=>this.onChange(this.value))}),typeof u.setup=="function"&&u.setup(l)},init_instance_callback:l=>{l&&this.value&&l.setContent(this.value),this.setDisabled(),typeof u.init_instance_callback=="function"&&u.init_instance_callback(l),this.ready.emit(l)}});u.auto_focus&&(c.auto_focus=s),this.ngZone.runOutsideAngular(()=>n.tinymce.init(c)),this.load=!1,this.cd.detectChanges()}destroy(){this._instance!=null&&(this.ngZone.runOutsideAngular(()=>{this._instance.off(),this._instance.remove()}),this._instance=null)}setDisabled(){this._instance&&this.ngZone.runOutsideAngular(()=>{let n=this._disabled?"readonly":"design",i=this._instance.setMode;typeof i=="function"?i(n):this._instance.mode.set(n)})}ngAfterViewInit(){if(zp)return;if(this._getWin().tinymce){this.initDelay();return}let{defConfig:n}=this,i=n&&n.baseURL,o=n&&n.fileName,s=(i||"./assets/tinymce/")+(o||"tinymce.min.js");this.lazySrv.monitor(s).subscribe(()=>this.initDelay()),this.lazySrv.load(s)}ngOnChanges(n){this._instance&&n.config&&(this.destroy(),this.initDelay())}ngOnDestroy(){this.destroy()}writeValue(n){this.value=n||"",this._instance&&this.ngZone.runOutsideAngular(()=>this._instance.setContent(this.value))}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}setDisabledState(n){this.disabled=n,this.setDisabled()}};t.\u0275fac=function(i){return new(i||t)(T(ln,8),T(Hp),T(H),T(Q),T(dt))},t.\u0275cmp=Se({type:t,selectors:[["tinymce"]],inputs:{config:"config",placeholder:"placeholder",inline:[ee.HasDecoratorInputTransform,"inline","inline",Ye],disabled:[ee.HasDecoratorInputTransform,"disabled","disabled",Ye],loading:"loading",delay:[ee.HasDecoratorInputTransform,"delay","delay",bu]},outputs:{ready:"ready"},exportAs:["tinymce"],standalone:!0,features:[Ar([{provide:os,useExisting:Kt(()=>t),multi:!0}]),_r,ut,xe],ngContentSelectors:rI,decls:3,vars:3,consts:[["class","tinymce-selector",4,"ngIf"],[4,"ngIf"],["class","loading",4,"ngIf"],[1,"tinymce-selector"],[1,"loading"],[4,"ngIf","ngIfElse"]],template:function(i,o){i&1&&(rh(),Mo(0,iI,1,2,"textarea",0)(1,oI,2,1,"div",1)(2,aI,2,2,"div",2)),i&2&&(Ce("ngIf",!o.inline),pe(),Ce("ngIf",o.inline),pe(),Ce("ngIf",o.load))},dependencies:[Ch],styles:[`tinymce .tinymce-selector{display:none} -`],encapsulation:2,changeDetection:0});let e=t;return e})();function Gp(e){return St([{provide:ln,useValue:e}])}var Wp=(()=>{let t=class t{constructor(n){this.san=n,this.html=` -

TinyMCE Logo -

-

Welcome to the TinyMCE Cloud demo!

-
Note, this includes some "enterprise/premium" features.
Visit the pricing page to learn more about our premium plugins.
-

Please try out the features provided in this full featured example.

- -

Got questions or need help?

- - -

A simple table to play with

- - - - - - - - - - - - - - - - - - - - -
ProductCostReally?
TinyMCE CloudGet started for freeYES!
PluploadFreeYES!
- -

Found a bug?

-

If you think you have found a bug please create an issue on the GitHub repo to report it to the developers.

- -

Finally ...

-

Don't forget to check out our other product Plupload, your ultimate upload solution featuring HTML5 upload support.

-

Thanks for supporting TinyMCE! We hope it helps you and your users create great content.
All the best from the TinyMCE team.

- `,this.config={height:350}}};t.\u0275fac=function(i){return new(i||t)(T(Lr))},t.\u0275cmp=Se({type:t,selectors:[["app-home"]],standalone:!0,features:[xe],decls:17,vars:4,consts:[[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["highlight-js",""],[3,"ngModelChange","ngModel","config"],[1,"card","card-outline-secondary","mt-3"],[1,"card-bodyquote",3,"innerHTML"],["disabled","",3,"ngModelChange","ngModel"]],template:function(i,o){i&1&&(j(0,"div",0)(1,"div",1),q(2,"Basic"),U(),j(3,"div",2)(4,"textarea",3),q(5,"<"),q(6,'tinymce [config]="config" [(ngModel)]="html">'),U(),j(7,"tinymce",4),Nt("ngModelChange",function(a){return nn(o.html,a)||(o.html=a),a}),U(),q(8," Result: "),j(9,"div",5)(10,"div",2),Ae(11,"blockquote",6),U()()()(),j(12,"div",0)(13,"div",1),q(14,"Disabled"),U(),j(15,"div",2)(16,"tinymce",7),Nt("ngModelChange",function(a){return nn(o.html,a)||(o.html=a),a}),U()()()),i&2&&(pe(7),xt("ngModel",o.html),Ce("config",o.config),pe(4),Ce("innerHTML",o.san.bypassSecurityTrustHtml(o.html),Do),pe(5),xt("ngModel",o.html))},dependencies:[tr,er,pt,nr,dn],encapsulation:2});let e=t;return e})();var qp=(()=>{let t=class t{constructor(){this.html=`now: ${+new Date}`,this.config={height:500,menubar:!1,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table paste code help wordcount"],toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help",content_css:"//www.tiny.cloud/css/codepen.min.css"}}ready(n){console.log("ready",n)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=Se({type:t,selectors:[["app-other"]],standalone:!0,features:[xe],decls:8,vars:2,consts:[[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["highlight-js",""],["loading","\u52A0\u8F7D\u4E2D\u2026\u2026",3,"ngModelChange","ready","ngModel","config"]],template:function(i,o){i&1&&(j(0,"div",0)(1,"div",1),q(2,"Loading"),U(),j(3,"div",2)(4,"textarea",3),q(5,"<"),q(6,'tinymce [config]="config" [(ngModel)]="html">'),U(),j(7,"tinymce",4),Nt("ngModelChange",function(a){return nn(o.html,a)||(o.html=a),a}),tn("ready",function(a){return o.ready(a)}),U()()()),i&2&&(pe(7),xt("ngModel",o.html),Ce("config",o.config))},dependencies:[tr,er,pt,nr,dn]});let e=t;return e})();var Zp=(()=>{let t=class t{constructor(n){this.san=n,this.html=` -
-
-

-

The world’s first rich text editor in the cloud

-

-
-

- Have you heard about Tiny Cloud? It’s the first step in our journey to help you deliver great content creation - experiences, no matter your level of expertise. 50,000 developers already agree. They get free access to our global CDN, image - proxy services and auto updates to the TinyMCE editor. They’re also ready for some exciting updates coming soon. -

-

- One of these enhancements is Tiny Drive: imagine file management for TinyMCE, in the cloud, made super easy. - Learn more at tiny.cloud/tinydrive, where you’ll find a working demo and an - opportunity to provide feedback to the product team. -

-
-
-

An editor for every project

-
-

Here are some of our customer’s most common use cases for TinyMCE:

-
    -
  • Content Management Systems (e.g. WordPress, Umbraco)
  • -
  • Learning Management Systems (e.g. Blackboard)
  • -
  • Customer Relationship Management and marketing automation (e.g. Marketo)
  • -
  • Email marketing (e.g. Constant Contact)
  • -
  • Content creation in SaaS systems (e.g. Eventbrite, Evernote, GoFundMe, Zendesk)
  • -
-

- And those use cases are just the start. TinyMCE is incredibly flexible, and with hundreds of APIs there’s likely a - solution for your editor project. If you haven’t experienced Tiny Cloud, get started today. You’ll even get a free - trial of our premium plugins – no credit card required! -

-
-
`}ready(n){console.log("ready",n)}};t.\u0275fac=function(i){return new(i||t)(T(Lr))},t.\u0275cmp=Se({type:t,selectors:[["app-inline"]],standalone:!0,features:[xe],decls:12,vars:2,consts:[[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["highlight-js",""],["inline","",3,"ngModelChange","ngModel"],[1,"card","card-outline-secondary","mt-3"],[1,"card-bodyquote",3,"innerHTML"]],template:function(i,o){i&1&&(j(0,"div",0)(1,"div",1),q(2,"Inline mode"),U(),j(3,"div",2)(4,"textarea",3),q(5,"<"),q(6,'tinymce [config]="config" [(ngModel)]="html" inline>'),U(),j(7,"tinymce",4),Nt("ngModelChange",function(a){return nn(o.html,a)||(o.html=a),a}),U(),q(8," Result: "),j(9,"div",5)(10,"div",2),Ae(11,"blockquote",6),U()()()()),i&2&&(pe(7),xt("ngModel",o.html),pe(4),Ce("innerHTML",o.san.bypassSecurityTrustHtml(o.html),Do))},dependencies:[tr,er,pt,nr,dn],encapsulation:2});let e=t;return e})();var Yp=[{path:"",component:Wp},{path:"other",component:qp},{path:"inline",component:Zp}];Uh(Ip,{providers:[Rh(),Ep(Yp,bp()),Gp({baseURL:"//cdn.tiny.cloud/1/no-api-key/tinymce/6/"})]}).catch(e=>console.error(e));