From 39b78c91109852af5203507186315190a82c9a39 Mon Sep 17 00:00:00 2001 From: cipchk Date: Sat, 23 Nov 2024 14:52:42 +0000 Subject: [PATCH] deploy: 626794993836f118a18cac0871a26b879ba45987 --- 404.html | 2 +- index.html | 2 +- main-74SSFCED.js | 87 ------------------------------------------- main-A5VAIROQ.js | 87 +++++++++++++++++++++++++++++++++++++++++++ polyfills-6EAL64PA.js | 2 - polyfills-FFHMD2TL.js | 2 + 6 files changed, 91 insertions(+), 91 deletions(-) delete mode 100644 main-74SSFCED.js create mode 100644 main-A5VAIROQ.js delete mode 100644 polyfills-6EAL64PA.js create mode 100644 polyfills-FFHMD2TL.js diff --git a/404.html b/404.html index 2714cd8..cd44082 100644 --- a/404.html +++ b/404.html @@ -17,5 +17,5 @@ Fork me on GitHub - + diff --git a/index.html b/index.html index 2714cd8..cd44082 100644 --- a/index.html +++ b/index.html @@ -17,5 +17,5 @@ Fork me on GitHub - + diff --git a/main-74SSFCED.js b/main-74SSFCED.js deleted file mode 100644 index 2294987..0000000 --- a/main-74SSFCED.js +++ /dev/null @@ -1,87 +0,0 @@ -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-A5VAIROQ.js b/main-A5VAIROQ.js new file mode 100644 index 0000000..4f92420 --- /dev/null +++ b/main-A5VAIROQ.js @@ -0,0 +1,87 @@ +var Qg=Object.defineProperty,Kg=Object.defineProperties;var Jg=Object.getOwnPropertyDescriptors;var ll=Object.getOwnPropertySymbols;var Xg=Object.prototype.hasOwnProperty,em=Object.prototype.propertyIsEnumerable;var dl=(e,t,n)=>t in e?Qg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p=(e,t)=>{for(var n in t||={})Xg.call(t,n)&&dl(e,n,t[n]);if(ll)for(var n of ll(t))em.call(t,n)&&dl(e,n,t[n]);return e},N=(e,t)=>Kg(e,Jg(t));var wn=(e,t,n)=>new Promise((r,i)=>{var o=c=>{try{a(n.next(c))}catch(u){i(u)}},s=c=>{try{a(n.throw(c))}catch(u){i(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,s);a((n=n.apply(e,t)).next())});function fl(e,t){return Object.is(e,t)}var te=null,Ei=!1,Ii=1,tt=Symbol("SIGNAL");function L(e){let t=te;return te=e,t}function hl(){return te}var yr={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 Us(e){if(Ei)throw new Error("");if(te===null)return;te.consumerOnSignalRead(e);let t=te.nextProducerIndex++;if(Si(te),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function $s(e){Si(e);for(let t=0;t0}function Si(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function vl(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Dl(e){return e.producerNode!==void 0}function Cl(e){let t=Object.create(rm);t.computation=e;let n=()=>{if(pl(t),Us(t),t.value===bi)throw t.error;return t.value};return n[tt]=t,n}var Vs=Symbol("UNSET"),js=Symbol("COMPUTING"),bi=Symbol("ERRORED"),rm=N(p({},yr),{value:Vs,dirty:!0,error:null,equal:fl,producerMustRecompute(e){return e.value===Vs||e.value===js},producerRecomputeValue(e){if(e.value===js)throw new Error("Detected cycle in computations.");let t=e.value;e.value=js;let n=_i(e),r;try{r=e.computation()}catch(i){r=bi,e.error=i}finally{Bs(e,n)}if(t!==Vs&&t!==bi&&r!==bi&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function im(){throw new Error}var wl=im;function El(){wl()}function Il(e){wl=e}var om=null;function bl(e){let t=Object.create(Ml);t.value=e;let n=()=>(Us(t),t.value);return n[tt]=t,n}function zs(e,t){ml()||El(),e.equal(e.value,t)||(e.value=t,sm(e))}function _l(e,t){ml()||El(),zs(e,t(e.value))}var Ml=N(p({},yr),{equal:fl,value:void 0});function sm(e){e.version++,tm(),gl(e),om?.()}function M(e){return typeof e=="function"}function En(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Ti=En(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function vr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var J=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(M(r))try{r()}catch(o){t=o instanceof Ti?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Sl(o)}catch(s){t=t??[],s instanceof Ti?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Ti(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Sl(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&vr(n,t)}remove(t){let{_finalizers:n}=this;n&&vr(n,t),t instanceof e&&t._removeParent(this)}};J.EMPTY=(()=>{let e=new J;return e.closed=!0,e})();var Gs=J.EMPTY;function xi(e){return e instanceof J||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function Sl(e){M(e)?e():e.unsubscribe()}var ke={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var In={setTimeout(e,t,...n){let{delegate:r}=In;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=In;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ai(e){In.setTimeout(()=>{let{onUnhandledError:t}=ke;if(t)t(e);else throw e})}function Dr(){}var Tl=Ws("C",void 0,void 0);function xl(e){return Ws("E",void 0,e)}function Al(e){return Ws("N",e,void 0)}function Ws(e,t,n){return{kind:e,value:t,error:n}}var qt=null;function bn(e){if(ke.useDeprecatedSynchronousErrorHandling){let t=!qt;if(t&&(qt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=qt;if(qt=null,n)throw r}}else e()}function Nl(e){ke.useDeprecatedSynchronousErrorHandling&&qt&&(qt.errorThrown=!0,qt.error=e)}var Zt=class extends J{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,xi(t)&&t.add(this)):this.destination=um}static create(t,n,r){return new nt(t,n,r)}next(t){this.isStopped?Zs(Al(t),this):this._next(t)}error(t){this.isStopped?Zs(xl(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Zs(Tl,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()}}},am=Function.prototype.bind;function qs(e,t){return am.call(e,t)}var Ys=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ni(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ni(r)}else Ni(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ni(n)}}},nt=class extends Zt{constructor(t,n,r){super();let i;if(M(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&ke.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&qs(t.next,o),error:t.error&&qs(t.error,o),complete:t.complete&&qs(t.complete,o)}):i=t}this.destination=new Ys(i)}};function Ni(e){ke.useDeprecatedSynchronousErrorHandling?Nl(e):Ai(e)}function cm(e){throw e}function Zs(e,t){let{onStoppedNotification:n}=ke;n&&In.setTimeout(()=>n(e,t))}var um={closed:!0,next:Dr,error:cm,complete:Dr};var _n=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ve(e){return e}function Cr(...e){return Qs(e)}function Qs(e){return e.length===0?ve:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var P=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=dm(n)?n:new nt(n,r,i);return bn(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Rl(r),new r((i,o)=>{let s=new nt({next:a=>{try{n(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[_n](){return this}pipe(...n){return Qs(n)(this)}toPromise(n){return n=Rl(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function Rl(e){var t;return(t=e??ke.Promise)!==null&&t!==void 0?t:Promise}function lm(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function dm(e){return e&&e instanceof Zt||lm(e)&&xi(e)}function Ks(e){return M(e?.lift)}function R(e){return t=>{if(Ks(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function O(e,t,n,r,i){return new Js(e,t,n,r,i)}var Js=class extends Zt{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function Mn(){return R((e,t)=>{let n=null;e._refCount++;let r=O(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var Sn=class extends P{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Ks(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 J;let n=this.getSubject();t.add(this.source.subscribe(O(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=J.EMPTY)}return t}refCount(){return Mn()(this)}};var Ol=En(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var X=(()=>{class e extends P{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Ri(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Ol}next(n){bn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){bn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){bn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:o}=this;return r||i?Gs:(this.currentObservers=null,o.push(n),new J(()=>{this.currentObservers=null,vr(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new P;return n.source=this,n}}return e.create=(t,n)=>new Ri(t,n),e})(),Ri=class extends X{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Gs}};var ne=class extends X{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var De=new P(e=>e.complete());function Fl(e){return e&&M(e.schedule)}function Pl(e){return e[e.length-1]}function Oi(e){return M(Pl(e))?e.pop():void 0}function Ct(e){return Fl(Pl(e))?e.pop():void 0}function Ll(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?o(l.value):i(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function kl(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yt(e){return this instanceof Yt?(this.v=e,this):new Yt(e)}function Vl(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),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){r[f]&&(i[f]=function(y){return new Promise(function(v,I){o.push([f,y,v,I])>1||c(f,y)})},m&&(i[f]=m(i[f])))}function c(f,m){try{u(r[f](m))}catch(y){h(o[0][3],y)}}function u(f){f.value instanceof Yt?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,m){f(m),o.shift(),o.length&&c(o[0][0],o[0][1])}}function jl(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof kl=="function"?kl(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,c){s=e[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 Fi=e=>e&&typeof e.length=="number"&&typeof e!="function";function Pi(e){return M(e?.then)}function ki(e){return M(e[_n])}function Li(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function Vi(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 fm(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ji=fm();function Ui(e){return M(e?.[ji])}function Bi(e){return Vl(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield Yt(n.read());if(i)return yield Yt(void 0);yield yield Yt(r)}}finally{n.releaseLock()}})}function $i(e){return M(e?.getReader)}function W(e){if(e instanceof P)return e;if(e!=null){if(ki(e))return hm(e);if(Fi(e))return pm(e);if(Pi(e))return gm(e);if(Li(e))return Ul(e);if(Ui(e))return mm(e);if($i(e))return ym(e)}throw Vi(e)}function hm(e){return new P(t=>{let n=e[_n]();if(M(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function pm(e){return new P(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Ai)})}function mm(e){return new P(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Ul(e){return new P(t=>{vm(e,t).catch(n=>t.error(n))})}function ym(e){return Ul(Bi(e))}function vm(e,t){var n,r,i,o;return Ll(this,void 0,void 0,function*(){try{for(n=jl(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function pe(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function Hi(e,t=0){return R((n,r)=>{n.subscribe(O(r,i=>pe(r,e,()=>r.next(i),t),()=>pe(r,e,()=>r.complete(),t),i=>pe(r,e,()=>r.error(i),t)))})}function zi(e,t=0){return R((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Bl(e,t){return W(e).pipe(zi(t),Hi(t))}function $l(e,t){return W(e).pipe(zi(t),Hi(t))}function Hl(e,t){return new P(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function zl(e,t){return new P(n=>{let r;return pe(n,t,()=>{r=e[ji](),pe(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>M(r?.return)&&r.return()})}function Gi(e,t){if(!e)throw new Error("Iterable cannot be null");return new P(n=>{pe(n,t,()=>{let r=e[Symbol.asyncIterator]();pe(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Gl(e,t){return Gi(Bi(e),t)}function Wl(e,t){if(e!=null){if(ki(e))return Bl(e,t);if(Fi(e))return Hl(e,t);if(Pi(e))return $l(e,t);if(Li(e))return Gi(e,t);if(Ui(e))return zl(e,t);if($i(e))return Gl(e,t)}throw Vi(e)}function q(e,t){return t?Wl(e,t):W(e)}function b(...e){let t=Ct(e);return q(e,t)}function Tn(e,t){let n=M(e)?e:()=>e,r=i=>i.error(n());return new P(t?i=>t.schedule(r,0,i):r)}function Xs(e){return!!e&&(e instanceof P||M(e.lift)&&M(e.subscribe))}var rt=En(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function S(e,t){return R((n,r)=>{let i=0;n.subscribe(O(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:Dm}=Array;function Cm(e,t){return Dm(t)?e(...t):e(t)}function Wi(e){return S(t=>Cm(e,t))}var{isArray:wm}=Array,{getPrototypeOf:Em,prototype:Im,keys:bm}=Object;function qi(e){if(e.length===1){let t=e[0];if(wm(t))return{args:t,keys:null};if(_m(t)){let n=bm(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function _m(e){return e&&typeof e=="object"&&Em(e)===Im}function Zi(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function Yi(...e){let t=Ct(e),n=Oi(e),{args:r,keys:i}=qi(e);if(r.length===0)return q([],t);let o=new P(Mm(r,t,i?s=>Zi(i,s):ve));return n?o.pipe(Wi(n)):o}function Mm(e,t,n=ve){return r=>{ql(t,()=>{let{length:i}=e,o=new Array(i),s=i,a=i;for(let c=0;c{let u=q(e[c],t),l=!1;u.subscribe(O(r,d=>{o[c]=d,l||(l=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function ql(e,t,n){e?pe(n,e,t):t()}function Zl(e,t,n,r,i,o,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&t.complete()},f=y=>u{o&&t.next(y),u++;let v=!1;W(n(y,l++)).subscribe(O(t,I=>{i?.(I),o?f(I):t.next(I)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;c.length&&um(I)):m(I)}h()}catch(I){t.error(I)}}))};return e.subscribe(O(t,f,()=>{d=!0,h()})),()=>{a?.()}}function re(e,t,n=1/0){return M(t)?re((r,i)=>S((o,s)=>t(r,o,i,s))(W(e(r,i))),n):(typeof t=="number"&&(n=t),R((r,i)=>Zl(r,i,e,n)))}function ea(e=1/0){return re(ve,e)}function Yl(){return ea(1)}function xn(...e){return Yl()(q(e,Ct(e)))}function Qi(e){return new P(t=>{W(e()).subscribe(t)})}function ta(...e){let t=Oi(e),{args:n,keys:r}=qi(e),i=new P(o=>{let{length:s}=n;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(r?Zi(r,a):a),o.complete())}))}});return t?i.pipe(Wi(t)):i}function ae(e,t){return R((n,r)=>{let i=0;n.subscribe(O(r,o=>e.call(t,o,i++)&&r.next(o)))})}function wt(e){return R((t,n)=>{let r=null,i=!1,o;r=t.subscribe(O(n,void 0,void 0,s=>{o=W(e(s,wt(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function Ql(e,t,n,r,i){return(o,s)=>{let a=n,c=t,u=0;o.subscribe(O(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),r&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}function Et(e,t){return M(t)?re(e,t,1):re(e,1)}function It(e){return R((t,n)=>{let r=!1;t.subscribe(O(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function it(e){return e<=0?()=>De:R((t,n)=>{let r=0;t.subscribe(O(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function na(e){return S(()=>e)}function Ki(e=Sm){return R((t,n)=>{let r=!1;t.subscribe(O(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function Sm(){return new rt}function Qt(e){return R((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function ze(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ae((i,o)=>e(i,o,r)):ve,it(1),n?It(t):Ki(()=>new rt))}function An(e){return e<=0?()=>De:R((t,n)=>{let r=[];t.subscribe(O(n,i=>{r.push(i),e{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function ra(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ae((i,o)=>e(i,o,r)):ve,An(1),n?It(t):Ki(()=>new rt))}function ia(e,t){return R(Ql(e,t,arguments.length>=2,!0))}function sa(e={}){let{connector:t=()=>new X,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;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},m=()=>{let y=s;f(),y?.unsubscribe()};return R((y,v)=>{u++,!d&&!l&&h();let I=c=c??t();v.add(()=>{u--,u===0&&!d&&!l&&(a=oa(m,i))}),I.subscribe(v),!s&&u>0&&(s=new nt({next:z=>I.next(z),error:z=>{d=!0,h(),a=oa(f,n,z),I.error(z)},complete:()=>{l=!0,h(),a=oa(f,r),I.complete()}}),W(y).subscribe(s))})(o)}}function oa(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new nt({next:()=>{r.unsubscribe(),e()}});return W(t(...n)).subscribe(r)}function aa(...e){let t=Ct(e);return R((n,r)=>{(t?xn(e,n,t):xn(e,n)).subscribe(r)})}function Ce(e,t){return R((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(O(r,c=>{i?.unsubscribe();let u=0,l=o++;W(e(c,l)).subscribe(i=O(r,d=>r.next(t?t(c,d,l,u++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function ca(e){return R((t,n)=>{W(e).subscribe(O(n,()=>n.complete(),Dr)),!n.closed&&t.subscribe(n)})}function ie(e,t,n){let r=M(e)||t||n?{next:e,error:t,complete:n}:e;return r?R((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(O(o,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),o.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),o.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),o.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):ve}var Vd="https://g.co/ng/security#xss",C=class extends Error{constructor(t,n){super(No(t,n)),this.code=t}};function No(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function Ro(e){return{toString:e}.toString()}var br=globalThis;function $(e){for(let t in e)if(e[t]===$)return t;throw Error("Could not find renamed property on target object.")}function Tm(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function de(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(de).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` +`);return n===-1?t:t.substring(0,n)}function Kl(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var xm=$({__forward_ref__:$});function sn(e){return e.__forward_ref__=sn,e.toString=function(){return de(this())},e}function le(e){return jd(e)?e():e}function jd(e){return typeof e=="function"&&e.hasOwnProperty(xm)&&e.__forward_ref__===sn}function D(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Rt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Oo(e){return Jl(e,Bd)||Jl(e,$d)}function Ud(e){return Oo(e)!==null}function Jl(e,t){return e.hasOwnProperty(t)?e[t]:null}function Am(e){let t=e&&(e[Bd]||e[$d]);return t||null}function Xl(e){return e&&(e.hasOwnProperty(ed)||e.hasOwnProperty(Nm))?e[ed]:null}var Bd=$({\u0275prov:$}),ed=$({\u0275inj:$}),$d=$({ngInjectableDef:$}),Nm=$({ngInjectorDef:$}),w=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=D({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Hd(e){return e&&!!e.\u0275providers}var Rm=$({\u0275cmp:$}),Om=$({\u0275dir:$}),Fm=$({\u0275pipe:$}),Pm=$({\u0275mod:$}),uo=$({\u0275fac:$}),Ir=$({__NG_ELEMENT_ID__:$}),td=$({__NG_ENV_ID__:$});function Or(e){return typeof e=="string"?e:e==null?"":String(e)}function km(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Or(e)}function Lm(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new C(-200,e)}function pc(e,t){throw new C(-201,!1)}var A=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}(A||{}),Ea;function zd(){return Ea}function _e(e){let t=Ea;return Ea=e,t}function Gd(e,t,n){let r=Oo(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&A.Optional)return null;if(t!==void 0)return t;pc(e,"Injector")}var Vm={},_r=Vm,jm="__NG_DI_FLAG__",lo="ngTempTokenPath",Um="ngTokenPath",Bm=/\n/gm,$m="\u0275",nd="__source",Fn;function Hm(){return Fn}function bt(e){let t=Fn;return Fn=e,t}function zm(e,t=A.Default){if(Fn===void 0)throw new C(-203,!1);return Fn===null?Gd(e,void 0,t):Fn.get(e,t&A.Optional?null:void 0,t)}function E(e,t=A.Default){return(zd()||zm)(le(e),t)}function g(e,t=A.Default){return E(e,Fo(t))}function Fo(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ia(e){let t=[];for(let n=0;n ");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):de(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(Bm,` + `)}`}function kn(e,t){let n=e.hasOwnProperty(uo);return n?e[uo]:null}function gc(e,t){e.forEach(n=>Array.isArray(n)?gc(n,t):t(n))}function Wd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function fo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Zm(e,t){let n=[];for(let r=0;rt;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function Qm(e,t,n){let r=Fr(e,t);return r>=0?e[r|1]=n:(r=~r,Ym(e,r,t,n)),r}function ua(e,t){let n=Fr(e,t);if(n>=0)return e[n|1]}function Fr(e,t){return Km(e,t,1)}function Km(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<t?i=o:r=o+1}return~(i<t){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[l+1].toLowerCase(),r&2&&u!==d){if(Le(r))return!1;s=!0}}}}return Le(r)||s}function Le(e){return(e&1)===0}function ry(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!Le(s)&&(t+=id(o,i),i=""),r=s,o=o||!Le(r);n++}return i!==""&&(t+=id(o,i)),t}function uy(e){return e.map(cy).join(",")}function ly(e){let t=[],n=[],r=1,i=2;for(;r{let t=rf(e),n=N(p({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Yd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||qe.Emulated,styles:e.styles||Me,_:null,schemas:e.schemas||null,tView:null,id:""});of(n);let r=e.dependencies;return n.directiveDefs=sd(r,!1),n.pipeDefs=sd(r,!0),n.id=hy(n),n})}function dy(e){return Jt(e)||Xd(e)}function fy(e){return e!==null}function Ot(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 od(e,t){if(e==null)return Ln;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a=St.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(n[o]=a!==St.None?[r,a]:r,t[o]=s):n[o]=r}return n}function we(e){return Ro(()=>{let t=rf(e);return of(t),t})}function Jt(e){return e[Rm]||null}function Xd(e){return e[Om]||null}function ef(e){return e[Fm]||null}function tf(e){let t=Jt(e)||Xd(e)||ef(e);return t!==null?t.standalone:!1}function nf(e,t){let n=e[Pm]||null;if(!n&&t===!0)throw new Error(`Type ${de(e)} does not have '\u0275mod' property.`);return n}function rf(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||Ln,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:od(e.inputs,t),outputs:od(e.outputs),debugInfo:null}}function of(e){e.features?.forEach(t=>t(e))}function sd(e,t){if(!e)return null;let n=t?ef:dy;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(fy)}function hy(e){let t=0,n=[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 n)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function an(e){return{\u0275providers:e}}function py(...e){return{\u0275providers:sf(!0,e),\u0275fromNgModule:!0}}function sf(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return gc(t,s=>{let a=s;_a(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&af(i,o),n}function af(e,t){for(let n=0;n{t(o,r)})}}function _a(e,t,n,r){if(e=le(e),!e)return!1;let i=null,o=Xl(e),s=!o&&Jt(e);if(!o&&!s){let c=e.ngModule;if(o=Xl(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)_a(u,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let u;try{gc(o.imports,l=>{_a(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&af(u,t)}if(!a){let u=kn(i)||(()=>new i);t({provide:i,useFactory:u,deps:Me},i),t({provide:Zd,useValue:i,multi:!0},i),t({provide:Vn,useValue:()=>E(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let u=e;yc(c,l=>{t(l,u)})}}else return!1;return i!==e&&e.providers!==void 0}function yc(e,t){for(let n of e)Hd(n)&&(n=n.\u0275providers),Array.isArray(n)?yc(n,t):t(n)}var gy=$({provide:String,useValue:$});function cf(e){return e!==null&&typeof e=="object"&&gy in e}function my(e){return!!(e&&e.useExisting)}function yy(e){return!!(e&&e.useFactory)}function jn(e){return typeof e=="function"}function vy(e){return!!e.useClass}var Po=new w(""),io={},Dy={},la;function vc(){return la===void 0&&(la=new ho),la}var ge=class{},Sr=class extends ge{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Sa(t,s=>this.processProvider(s)),this.records.set(qd,Nn(void 0,this)),i.has("environment")&&this.records.set(ge,Nn(void 0,this));let o=this.records.get(Po);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Zd,Me,A.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=L(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),L(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=bt(this),r=_e(void 0),i;try{return t()}finally{bt(n),_e(r)}}get(t,n=_r,r=A.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(td))return t[td](this);r=Fo(r);let i,o=bt(this),s=_e(void 0);try{if(!(r&A.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=by(t)&&Oo(t);u&&this.injectableDefInScope(u)?c=Nn(Ma(t),io):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&A.Self?vc():this.parent;return n=r&A.Optional&&n===_r?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[lo]=a[lo]||[]).unshift(de(t)),o)throw a;return Wm(a,t,"R3InjectorError",this.source)}else throw a}finally{_e(s),bt(o)}}resolveInjectorInitializers(){let t=L(null),n=bt(this),r=_e(void 0),i;try{let o=this.get(Vn,Me,A.Self);for(let s of o)s()}finally{bt(n),_e(r),L(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(de(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(t){t=le(t);let n=jn(t)?t:le(t&&t.provide),r=wy(t);if(!jn(t)&&t.multi===!0){let i=this.records.get(n);i||(i=Nn(void 0,io,!0),i.factory=()=>Ia(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=L(null);try{return n.value===io&&(n.value=Dy,n.value=n.factory()),typeof n.value=="object"&&n.value&&Iy(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{L(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=le(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Ma(e){let t=Oo(e),n=t!==null?t.factory:kn(e);if(n!==null)return n;if(e instanceof w)throw new C(204,!1);if(e instanceof Function)return Cy(e);throw new C(204,!1)}function Cy(e){if(e.length>0)throw new C(204,!1);let n=Am(e);return n!==null?()=>n.factory(e):()=>new e}function wy(e){if(cf(e))return Nn(void 0,e.useValue);{let t=uf(e);return Nn(t,io)}}function uf(e,t,n){let r;if(jn(e)){let i=le(e);return kn(i)||Ma(i)}else if(cf(e))r=()=>le(e.useValue);else if(yy(e))r=()=>e.useFactory(...Ia(e.deps||[]));else if(my(e))r=()=>E(le(e.useExisting));else{let i=le(e&&(e.useClass||e.provide));if(Ey(e))r=()=>new i(...Ia(e.deps));else return kn(i)||Ma(i)}return r}function Nn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Ey(e){return!!e.deps}function Iy(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function by(e){return typeof e=="function"||typeof e=="object"&&e instanceof w}function Sa(e,t){for(let n of e)Array.isArray(n)?Sa(n,t):n&&Hd(n)?Sa(n.\u0275providers,t):t(n)}function Ue(e,t){e instanceof Sr&&e.assertNotDestroyed();let n,r=bt(e),i=_e(void 0);try{return t()}finally{bt(r),_e(i)}}function _y(){return zd()!==void 0||Hm()!=null}function My(e){return typeof e=="function"}var ct=0,F=1,_=2,fe=3,Ve=4,me=5,Tr=6,po=7,Ze=8,Un=9,Ye=10,Q=11,xr=12,ad=13,Yn=14,xe=15,Bn=16,Rn=17,$n=18,ko=19,lf=20,_t=21,da=22,Se=23,je=25,df=1;var Xt=7,go=8,mo=9,Te=10,yo=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(yo||{});function Mt(e){return Array.isArray(e)&&typeof e[df]=="object"}function ut(e){return Array.isArray(e)&&e[df]===!0}function Dc(e){return(e.flags&4)!==0}function Lo(e){return e.componentOffset>-1}function Vo(e){return(e.flags&1)===1}function Tt(e){return!!e.template}function Ta(e){return(e[_]&512)!==0}var xa=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function ff(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function lt(){return hf}function hf(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ty),Sy}lt.ngInherit=!0;function Sy(){let e=gf(this),t=e?.current;if(t){let n=e.previous;if(n===Ln)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Ty(e,t,n,r,i){let o=this.declaredInputs[r],s=gf(e)||xy(e,{previous:Ln,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[o];a[o]=new xa(u&&u.currentValue,n,c===Ln),ff(e,t,i,n)}var pf="__ngSimpleChanges__";function gf(e){return e[pf]||null}function xy(e,t){return e[pf]=t}var cd=null;var Ge=function(e,t,n){cd?.(e,t,n)},Ay="svg",Ny="math";function Qe(e){for(;Array.isArray(e);)e=e[ct];return e}function mf(e,t){return Qe(t[e])}function Ne(e,t){return Qe(t[e.index])}function yf(e,t){return e.data[t]}function Ft(e,t){let n=t[e];return Mt(n)?n:n[ct]}function Cc(e){return(e[_]&128)===128}function Ry(e){return ut(e[fe])}function Hn(e,t){return t==null?null:e[t]}function vf(e){e[Rn]=0}function Df(e){e[_]&1024||(e[_]|=1024,Cc(e)&&Uo(e))}function Oy(e,t){for(;e>0;)t=t[Yn],e--;return t}function jo(e){return!!(e[_]&9216||e[Se]?.dirty)}function Aa(e){e[Ye].changeDetectionScheduler?.notify(8),e[_]&64&&(e[_]|=1024),jo(e)&&Uo(e)}function Uo(e){e[Ye].changeDetectionScheduler?.notify(0);let t=en(e);for(;t!==null&&!(t[_]&8192||(t[_]|=8192,!Cc(t)));)t=en(t)}function Cf(e,t){if((e[_]&256)===256)throw new C(911,!1);e[_t]===null&&(e[_t]=[]),e[_t].push(t)}function Fy(e,t){if(e[_t]===null)return;let n=e[_t].indexOf(t);n!==-1&&e[_t].splice(n,1)}function en(e){let t=e[fe];return ut(t)?t[fe]:t}var k={lFrame:xf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var wf=!1;function Py(){return k.lFrame.elementDepthCount}function ky(){k.lFrame.elementDepthCount++}function Ly(){k.lFrame.elementDepthCount--}function Ef(){return k.bindingsEnabled}function If(){return k.skipHydrationRootTNode!==null}function Vy(e){return k.skipHydrationRootTNode===e}function jy(){k.skipHydrationRootTNode=null}function H(){return k.lFrame.lView}function ce(){return k.lFrame.tView}function ue(){let e=bf();for(;e!==null&&e.type===64;)e=e.parent;return e}function bf(){return k.lFrame.currentTNode}function Uy(){let e=k.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function cn(e,t){let n=k.lFrame;n.currentTNode=e,n.isParent=t}function wc(){return k.lFrame.isParent}function Ec(){k.lFrame.isParent=!1}function _f(){return wf}function ud(e){wf=e}function By(e){return k.lFrame.bindingIndex=e}function Bo(){return k.lFrame.bindingIndex++}function $y(e){let t=k.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Hy(){return k.lFrame.inI18n}function zy(e,t){let n=k.lFrame;n.bindingIndex=n.bindingRootIndex=e,Na(t)}function Gy(){return k.lFrame.currentDirectiveIndex}function Na(e){k.lFrame.currentDirectiveIndex=e}function Wy(e){let t=k.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Mf(e){k.lFrame.currentQueryIndex=e}function qy(e){let t=e[F];return t.type===2?t.declTNode:t.type===1?e[me]:null}function Sf(e,t,n){if(n&A.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(n&A.Host);)if(i=qy(o),i===null||(o=o[Yn],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=k.lFrame=Tf();return r.currentTNode=t,r.lView=e,!0}function Ic(e){let t=Tf(),n=e[F];k.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Tf(){let e=k.lFrame,t=e===null?null:e.child;return t===null?xf(e):t}function xf(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 Af(){let e=k.lFrame;return k.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Nf=Af;function bc(){let e=Af();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 Zy(e){return(k.lFrame.contextLView=Oy(e,k.lFrame.contextLView))[Ze]}function Qn(){return k.lFrame.selectedIndex}function tn(e){k.lFrame.selectedIndex=e}function _c(){let e=k.lFrame;return yf(e.tView,e.selectedIndex)}function Yy(){return k.lFrame.currentNamespace}var Rf=!0;function $o(){return Rf}function Ho(e){Rf=e}function Qy(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=hf(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function zo(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[Rn]+=65536),(a>14>16&&(e[_]&3)===t&&(e[_]+=16384,ld(a,o)):ld(a,o)}var Pn=-1,nn=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Jy(e){return e instanceof nn}function Xy(e){return(e.flags&8)!==0}function ev(e){return(e.flags&16)!==0}var ha={},Ra=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Fo(r);let i=this.injector.get(t,ha,r);return i!==ha||n===ha?i:this.parentInjector.get(t,n,r)}};function Ff(e){return e!==Pn}function vo(e){return e&32767}function tv(e){return e>>16}function Do(e,t){let n=tv(e),r=t;for(;n>0;)r=r[Yn],n--;return r}var Oa=!0;function dd(e){let t=Oa;return Oa=e,t}var nv=256,Pf=nv-1,kf=5,rv=0,We={};function iv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ir)&&(r=n[Ir]),r==null&&(r=n[Ir]=rv++);let i=r&Pf,o=1<>kf)]|=o}function Co(e,t){let n=Lf(e,t);if(n!==-1)return n;let r=t[F];r.firstCreatePass&&(e.injectorIndex=t.length,pa(r.data,e),pa(t,null),pa(r.blueprint,null));let i=Mc(e,t),o=e.injectorIndex;if(Ff(i)){let s=vo(i),a=Do(i,t),c=a[F].data;for(let u=0;u<8;u++)t[o+u]=a[s+u]|c[s+u]}return t[o+8]=i,o}function pa(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Lf(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Mc(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=$f(i),r===null)return Pn;if(n++,i=i[Yn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Pn}function Fa(e,t,n){iv(e,t,n)}function ov(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,i=0;for(;i>20,d=r?a:a+l,h=i?a+l:u;for(let f=d;f=c&&m.type===n)return f}if(i){let f=s[c];if(f&&Tt(f)&&f.type===n)return c}return null}function zn(e,t,n,r){let i=e[n],o=t.data;if(Jy(i)){let s=i;s.resolving&&Lm(km(o[n]));let a=dd(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?_e(s.injectImpl):null,l=Sf(e,r,A.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&Qy(n,o[n],t)}finally{u!==null&&_e(u),dd(a),s.resolving=!1,Nf()}}return i}function cv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Ir)?e[Ir]:void 0;return typeof t=="number"?t>=0?t&Pf:uv:t}function fd(e,t,n){let r=1<>kf)]&r)}function hd(e,t){return!(e&A.Self)&&!(e&A.Host&&t)}var Kt=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Uf(this._tNode,this._lView,t,Fo(r),n)}};function uv(){return new Kt(ue(),H())}function Pr(e){return Ro(()=>{let t=e.prototype.constructor,n=t[uo]||Pa(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[uo]||Pa(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Pa(e){return jd(e)?()=>{let t=Pa(le(e));return t&&t()}:kn(e)}function lv(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[_]&2048&&!(s[_]&512);){let a=Bf(o,s,n,r|A.Self,We);if(a!==We)return a;let c=o.parent;if(!c){let u=s[lf];if(u){let l=u.get(n,We,r);if(l!==We)return l}c=$f(s),s=s[Yn]}o=c}return i}function $f(e){let t=e[F],n=t.type;return n===2?t.declTNode:n===1?e[me]:null}function Sc(e){return ov(ue(),e)}function pd(e,t=null,n=null,r){let i=Hf(e,t,n,r);return i.resolveInjectorInitializers(),i}function Hf(e,t=null,n=null,r,i=new Set){let o=[n||Me,py(e)];return r=r||(typeof e=="object"?void 0:de(e)),new Sr(o,t||vc(),r||null,i)}var xt=class e{static{this.THROW_IF_NOT_FOUND=_r}static{this.NULL=new ho}static create(t,n){if(Array.isArray(t))return pd({name:""},n,t,"");{let r=t.name??"";return pd({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=D({token:e,providedIn:"any",factory:()=>E(qd)})}static{this.__NG_ELEMENT_ID__=-1}};var dv=new w("");dv.__NG_ELEMENT_ID__=e=>{let t=ue();if(t===null)throw new C(204,!1);if(t.type&2)return t.value;if(e&A.Optional)return null;throw new C(204,!1)};var fv="ngOriginalError";function ga(e){return e[fv]}var zf=!0,Gf=(()=>{class e{static{this.__NG_ELEMENT_ID__=hv}static{this.__NG_ENV_ID__=n=>n}}return e})(),ka=class extends Gf{constructor(t){super(),this._lView=t}onDestroy(t){return Cf(this._lView,t),()=>Fy(this._lView,t)}};function hv(){return new ka(H())}var Pt=(()=>{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)}static{this.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e})}}return e})();var La=class extends X{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,_y()&&(this.destroyRef=g(Gf,{optional:!0})??void 0,this.pendingTasks=g(Pt,{optional:!0})??void 0)}emit(t){let n=L(null);try{super.next(t)}finally{L(n)}}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;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 t instanceof J&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},Y=La;function wo(...e){}function Wf(e){let t,n;function r(){e=wo;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function gd(e){return queueMicrotask(()=>e()),()=>{e=wo}}var Tc="isAngularZone",Eo=Tc+"_ID",pv=0,G=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Y(!1),this.onMicrotaskEmpty=new Y(!1),this.onStable=new Y(!1),this.onError=new Y(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=zf}=t;if(typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,yv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Tc)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new C(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,gv,wo,wo);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},gv={};function xc(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 mv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Wf(()=>{e.callbackScheduled=!1,Va(e),e.isCheckStableRunning=!0,xc(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Va(e)}function yv(e){let t=()=>{mv(e)},n=pv++;e._inner=e._inner.fork({name:"angular",properties:{[Tc]:!0,[Eo]:n,[Eo+n]:!0},onInvokeTask:(r,i,o,s,a,c)=>{if(vv(c))return r.invokeTask(o,s,a,c);try{return md(e),r.invokeTask(o,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),yd(e)}},onInvoke:(r,i,o,s,a,c,u)=>{try{return md(e),r.invoke(o,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Dv(c)&&t(),yd(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Va(e),xc(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Va(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function md(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function yd(e){e._nesting--,xc(e)}var ja=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Y,this.onMicrotaskEmpty=new Y,this.onStable=new Y,this.onError=new Y}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}};function vv(e){return qf(e,"__ignore_ng_zone__")}function Dv(e){return qf(e,"__scheduler_tick__")}function qf(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var ot=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&ga(t);for(;n&&ga(n);)n=ga(n);return n||null}},Cv=new w("",{providedIn:"root",factory:()=>{let e=g(G),t=g(ot);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function wv(){return Go(ue(),H())}function Go(e,t){return new Ke(Ne(e,t))}var Ke=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=wv}}return e})();function Zf(e){return(e.flags&128)===128}var Yf=new Map,Ev=0;function Iv(){return Ev++}function bv(e){Yf.set(e[ko],e)}function Ua(e){Yf.delete(e[ko])}var vd="__ngContext__";function At(e,t){Mt(t)?(e[vd]=t[ko],bv(t)):e[vd]=t}function Qf(e){return Jf(e[xr])}function Kf(e){return Jf(e[Ve])}function Jf(e){for(;e!==null&&!ut(e);)e=e[Ve];return e}var Ba;function Xf(e){Ba=e}function eh(){if(Ba!==void 0)return Ba;if(typeof document<"u")return document;throw new C(210,!1)}var Ac=new w("",{providedIn:"root",factory:()=>_v}),_v="ng",Nc=new w(""),kt=new w("",{providedIn:"platform",factory:()=>"unknown"});var Rc=new w("",{providedIn:"root",factory:()=>eh().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Mv="h",Sv="b";var Tv=()=>null;function Oc(e,t,n=!1){return Tv(e,t,n)}var th=!1,xv=new w("",{providedIn:"root",factory:()=>th});var Ji;function Av(){if(Ji===void 0&&(Ji=null,br.trustedTypes))try{Ji=br.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ji}function Wo(e){return Av()?.createHTML(e)||e}var Xi;function nh(){if(Xi===void 0&&(Xi=null,br.trustedTypes))try{Xi=br.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Xi}function Dd(e){return nh()?.createHTML(e)||e}function Cd(e){return nh()?.createScriptURL(e)||e}var st=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Vd})`}},$a=class extends st{getTypeName(){return"HTML"}},Ha=class extends st{getTypeName(){return"Style"}},za=class extends st{getTypeName(){return"Script"}},Ga=class extends st{getTypeName(){return"URL"}},Wa=class extends st{getTypeName(){return"ResourceURL"}};function Be(e){return e instanceof st?e.changingThisBreaksApplicationSecurity:e}function dt(e,t){let n=Nv(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Vd})`)}return n===t}function Nv(e){return e instanceof st&&e.getTypeName()||null}function rh(e){return new $a(e)}function ih(e){return new Ha(e)}function oh(e){return new za(e)}function sh(e){return new Ga(e)}function ah(e){return new Wa(e)}function Rv(e){let t=new Za(e);return Ov()?new qa(t):t}var qa=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(Wo(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},Za=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=Wo(t),n}};function Ov(){try{return!!new window.DOMParser().parseFromString(Wo(""),"text/html")}catch{return!1}}var Fv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function qo(e){return e=String(e),e.match(Fv)?e:"unsafe:"+e}function ft(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function kr(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var ch=ft("area,br,col,hr,img,wbr"),uh=ft("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),lh=ft("rp,rt"),Pv=kr(lh,uh),kv=kr(uh,ft("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")),Lv=kr(lh,ft("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")),wd=kr(ch,kv,Lv,Pv),dh=ft("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Vv=ft("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"),jv=ft("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"),Uv=kr(dh,Vv,jv),Bv=ft("script,style,template"),Ya=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,i=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){i.push(n),n=zv(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=Hv(n);if(o){n=o;break}n=i.pop()}}return this.buf.join("")}startElement(t){let n=Ed(t).toLowerCase();if(!wd.hasOwnProperty(n))return this.sanitizedSomething=!0,!Bv.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let i=0;i"),!0}endElement(t){let n=Ed(t).toLowerCase();wd.hasOwnProperty(n)&&!ch.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Id(t))}};function $v(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Hv(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw fh(t);return t}function zv(e){let t=e.firstChild;if(t&&$v(e,t))throw fh(t);return t}function Ed(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function fh(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Gv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Wv=/([^\#-~ |!])/g;function Id(e){return e.replace(/&/g,"&").replace(Gv,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Wv,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var eo;function Fc(e,t){let n=null;try{eo=eo||Rv(e);let r=t?String(t):"";n=eo.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=eo.getInertBodyElement(r)}while(r!==o);let a=new Ya().sanitizeChildren(bd(n)||n);return Wo(a)}finally{if(n){let r=bd(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function bd(e){return"content"in e&&qv(e)?e.content:null}function qv(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var $e=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}($e||{});function Zo(e){let t=Pc();return t?Dd(t.sanitize($e.HTML,e)||""):dt(e,"HTML")?Dd(Be(e)):Fc(eh(),Or(e))}function Zv(e){let t=Pc();return t?t.sanitize($e.URL,e)||"":dt(e,"URL")?Be(e):qo(Or(e))}function Yv(e){let t=Pc();if(t)return Cd(t.sanitize($e.RESOURCE_URL,e)||"");if(dt(e,"ResourceURL"))return Cd(Be(e));throw new C(904,!1)}function Qv(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?Yv:Zv}function hh(e,t,n){return Qv(t,n)(e)}function Pc(){let e=H();return e&&e[Ye].sanitizer}var Kv=/^>|^->||--!>|)/g,Xv="\u200B$1\u200B";function eD(e){return e.replace(Kv,t=>t.replace(Jv,Xv))}function ph(e){return e instanceof Function?e():e}var at=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(at||{}),tD;function kc(e,t){return tD(e,t)}function On(e,t,n,r,i){if(r!=null){let o,s=!1;ut(r)?o=r:Mt(r)&&(s=!0,r=r[ct]);let a=Qe(r);e===0&&n!==null?i==null?Ch(t,n,a):Io(t,n,a,i||null,!0):e===1&&n!==null?Io(t,n,a,i||null,!0):e===2?gD(t,a,s):e===3&&t.destroyNode(a),o!=null&&yD(t,e,o,n,i)}}function nD(e,t){return e.createText(t)}function rD(e,t,n){e.setValue(t,n)}function iD(e,t){return e.createComment(eD(t))}function gh(e,t,n){return e.createElement(t,n)}function oD(e,t){mh(e,t),t[ct]=null,t[me]=null}function sD(e,t,n,r,i,o){r[ct]=i,r[me]=t,Qo(e,r,n,1,i,o)}function mh(e,t){t[Ye].changeDetectionScheduler?.notify(9),Qo(e,t,t[Q],2,null,null)}function aD(e){let t=e[xr];if(!t)return ma(e[F],e);for(;t;){let n=null;if(Mt(t))n=t[xr];else{let r=t[Te];r&&(n=r)}if(!n){for(;t&&!t[Ve]&&t!==e;)Mt(t)&&ma(t[F],t),t=t[fe];t===null&&(t=e),Mt(t)&&ma(t[F],t),n=t&&t[Ve]}t=n}}function cD(e,t,n,r){let i=Te+r,o=n.length;r>0&&(n[i-1][Ve]=t),r0&&(e[n-1][Ve]=r[Ve]);let o=fo(e,Te+t);oD(r[F],r);let s=o[$n];s!==null&&s.detachView(o[F]),r[fe]=null,r[Ve]=null,r[_]&=-129}return r}function vh(e,t){if(!(t[_]&256)){let n=t[Q];n.destroyNode&&Qo(e,t,n,3,null,null),aD(t)}}function ma(e,t){if(t[_]&256)return;let n=L(null);try{t[_]&=-129,t[_]|=256,t[Se]&&Hs(t[Se]),lD(e,t),uD(e,t),t[F].type===1&&t[Q].destroy();let r=t[Bn];if(r!==null&&ut(t[fe])){r!==t[fe]&&Lc(r,t);let i=t[$n];i!==null&&i.detachView(e)}Ua(t)}finally{L(n)}}function uD(e,t){let n=e.cleanup,r=t[po];if(n!==null)for(let o=0;o=0?r[s]():r[-s].unsubscribe(),o+=2}else{let s=r[n[o+1]];n[o].call(s)}r!==null&&(t[po]=null);let i=t[_t];if(i!==null){t[_t]=null;for(let o=0;o-1){let{encapsulation:o}=e.data[r.directiveStart+i];if(o===qe.None||o===qe.Emulated)return null}return Ne(r,n)}}function Io(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Ch(e,t,n){e.appendChild(t,n)}function _d(e,t,n,r,i){r!==null?Io(e,t,n,r,i):Ch(e,t,n)}function wh(e,t){return e.parentNode(t)}function fD(e,t){return e.nextSibling(t)}function Eh(e,t,n){return pD(e,t,n)}function hD(e,t,n){return e.type&40?Ne(e,n):null}var pD=hD,Md;function Yo(e,t,n,r){let i=Dh(e,r,t),o=t[Q],s=r.parent||t[me],a=Eh(s,r,t);if(i!=null)if(Array.isArray(n))for(let c=0;cje&&Sh(e,t,je,!1),Ge(s?2:0,i),n(r,i)}finally{tn(o),Ge(s?3:1,i)}}function jc(e,t,n){if(Dc(t)){let r=L(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;snull;function MD(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return If()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value: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 Sd(e,t,n,r,i){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;r??={};let a,c=St.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]}e===0?Td(r,n,u,a,c):Td(r,n,u,a)}return r}function Td(e,t,n,r,i){let o;e.hasOwnProperty(n)?(o=e[n]).push(t,r):o=e[n]=[t,r],i!==void 0&&o.push(i)}function SD(e,t,n){let r=t.directiveStart,i=t.directiveEnd,o=e.data,s=t.attrs,a=[],c=null,u=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function RD(e,t,n,r){let i=n.directiveStart,o=n.directiveEnd;Lo(n)&&jD(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||Co(n,t),At(r,t);let s=n.initialInputs;for(let a=i;a{Uo(e.lView)},consumerOnSignalRead(){this.lView[Se]=this}});function tC(e){let t=e[Se]??Object.create(nC);return t.lView=e,t}var nC=N(p({},yr),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=en(e.lView);for(;t&&!Bh(t[F]);)t=en(t);t&&Df(t)},consumerOnSignalRead(){this.lView[Se]=this}});function Bh(e){return e.type!==2}var rC=100;function $h(e,t=!0,n=0){let r=e[Ye],i=r.rendererFactory,o=!1;o||i.begin?.();try{iC(e,n)}catch(s){throw t&&Lh(e,s),s}finally{o||(i.end?.(),r.inlineEffectRunner?.flush())}}function iC(e,t){let n=_f();try{ud(!0),tc(e,t);let r=0;for(;jo(e);){if(r===rC)throw new C(103,!1);r++,tc(e,1)}}finally{ud(n)}}function oC(e,t,n,r){let i=t[_];if((i&256)===256)return;let o=!1,s=!1;!o&&t[Ye].inlineEffectRunner?.flush(),Ic(t);let a=!0,c=null,u=null;o||(Bh(e)?(u=KD(t),c=_i(u)):hl()===null?(a=!1,u=tC(t),c=_i(u)):t[Se]&&(Hs(t[Se]),t[Se]=null));try{vf(t),By(e.bindingStartIndex),n!==null&&Ah(e,t,n,2,r);let l=(i&3)===3;if(!o)if(l){let f=e.preOrderCheckHooks;f!==null&&oo(t,f,null)}else{let f=e.preOrderHooks;f!==null&&so(t,f,0,null),fa(t,0)}if(s||sC(t),Hh(t,0),e.contentQueries!==null&&kh(e,t),!o)if(l){let f=e.contentCheckHooks;f!==null&&oo(t,f)}else{let f=e.contentHooks;f!==null&&so(t,f,1),fa(t,1)}CD(e,t);let d=e.components;d!==null&&Gh(t,d,0);let h=e.viewQuery;if(h!==null&&Xa(2,h,r),!o)if(l){let f=e.viewCheckHooks;f!==null&&oo(t,f)}else{let f=e.viewHooks;f!==null&&so(t,f,2),fa(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[da]){for(let f of t[da])f();t[da]=null}o||(t[_]&=-73)}catch(l){throw o||Uo(t),l}finally{u!==null&&(Bs(u,c),a&&XD(u)),bc()}}function Hh(e,t){for(let n=Qf(e);n!==null;n=Kf(n))for(let r=Te;r-1&&(Qa(t,r),fo(n,r))}this._attachedToViewContainer=!1}vh(this._lView[F],this._lView)}onDestroy(t){Cf(this._lView,t)}markForCheck(){Wc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[_]&=-129}reattach(){Aa(this._lView),this._lView[_]|=128}detectChanges(){this._lView[_]|=1024,$h(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Ta(this._lView),n=this._lView[Bn];n!==null&&!t&&Lc(n,this._lView),mh(this._lView[F],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t;let n=Ta(this._lView),r=this._lView[Bn];r!==null&&!n&&yh(r,this._lView),Aa(this._lView)}},Lr=(()=>{class e{static{this.__NG_ELEMENT_ID__=lC}}return e})(),cC=Lr,uC=class extends cC{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let i=Vh(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new rn(i)}};function lC(){return dC(ue(),H())}function dC(e,t){return e.type&4?new uC(t,e,Go(e,t)):null}var aA=new RegExp(`^(\\d+)*(${Sv}|${Mv})*(.*)`);var fC=()=>null;function nc(e,t){return fC(e,t)}var Gn=class{},qc=new w("",{providedIn:"root",factory:()=>!1});var Wh=new w(""),qh=new w(""),rc=class{},_o=class{};function hC(e){let t=Error(`No component factory found for ${de(e)}.`);return t[pC]=e,t}var pC="ngComponent";var ic=class{resolveComponentFactory(t){throw hC(t)}},Wn=class{static{this.NULL=new ic}},qn=class{},un=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>gC()}}return e})();function gC(){let e=H(),t=ue(),n=Ft(t.index,e);return(Mt(n)?n:e)[Q]}var mC=(()=>{class e{static{this.\u0275prov=D({token:e,providedIn:"root",factory:()=>null})}}return e})();function Mo(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s0&&_h(e,n,o.join(" "))}}function IC(e,t,n){let r=e.projection=[];for(let i=0;i{class e{static{this.__NG_ELEMENT_ID__=_C}}return e})();function _C(){let e=ue();return SC(e,H())}var MC=Vr,Zh=class extends MC{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Go(this._hostTNode,this._hostLView)}get injector(){return new Kt(this._hostTNode,this._hostLView)}get parentInjector(){let t=Mc(this._hostTNode,this._hostLView);if(Ff(t)){let n=Do(t,this._hostLView),r=vo(t),i=n[F].data[r+8];return new Kt(i,n)}else return new Kt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Ad(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Te}createEmbeddedView(t,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=nc(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,ec(this._hostTNode,s)),a}createComponent(t,n,r,i,o){let s=t&&!My(t),a;if(s)a=n;else{let m=n||{};a=m.index,r=m.injector,i=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}let c=s?t:new Ar(Jt(t)),u=r||this.parentInjector;if(!o&&c.ngModule==null){let y=(s?u:this.parentInjector).get(ge,null);y&&(o=y)}let l=Jt(c.componentType??{}),d=nc(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,i,h,o);return this.insertImpl(f.hostView,a,ec(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(Ry(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=i[fe],u=new Zh(c,c[me],c[fe]);u.detach(u.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return jh(s,i,o,r),t.attachToViewContainerRef(),Wd(ya(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Ad(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Qa(this._lContainer,n);r&&(fo(ya(this._lContainer),n),vh(r[F],r))}detach(t){let n=this._adjustIndex(t,-1),r=Qa(this._lContainer,n);return r&&fo(ya(this._lContainer),n)!=null?new rn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Ad(e){return e[go]}function ya(e){return e[go]||(e[go]=[])}function SC(e,t){let n,r=t[e.index];return ut(r)?n=r:(n=Ph(r,t,null,e),t[e.index]=n,Jo(t,n)),xC(n,t,e,r),new Zh(n,e,t)}function TC(e,t){let n=e[Q],r=n.createComment(""),i=Ne(t,e),o=wh(n,i);return Io(n,o,r,fD(n,i),!1),r}var xC=RC,AC=()=>!1;function NC(e,t,n){return AC(e,t,n)}function RC(e,t,n,r){if(e[Xt])return;let i;n.type&8?i=Qe(r):i=TC(t,n),e[Xt]=i}var Nd=new Set;function jr(e){Nd.has(e)||(Nd.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function OC(e){return typeof e=="function"&&e[tt]!==void 0}function Xo(e,t){jr("NgSignals");let n=bl(e),r=n[tt];return t?.equal&&(r.equal=t.equal),n.set=i=>zs(r,i),n.update=i=>_l(r,i),n.asReadonly=FC.bind(n),n}function FC(){let e=this[tt];if(e.readonlyFn===void 0){let t=()=>this();t[tt]=e,e.readonlyFn=t}return e.readonlyFn}function Yh(e){return OC(e)&&typeof e.set=="function"}function PC(e){return Object.getPrototypeOf(e.prototype).constructor}function Xn(e){let t=PC(e.type),n=!0,r=[e];for(;t;){let i;if(Tt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new C(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let s=e;s.inputs=to(e.inputs),s.inputTransforms=to(e.inputTransforms),s.declaredInputs=to(e.declaredInputs),s.outputs=to(e.outputs);let a=i.hostBindings;a&&UC(e,a);let c=i.viewQuery,u=i.contentQueries;if(c&&VC(e,c),u&&jC(e,u),kC(e,i),Tm(e.outputs,i.outputs),Tt(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;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Mr(i.hostAttrs,n=Mr(n,i.hostAttrs))}}function to(e){return e===Ln?{}:e===Me?[]:e}function VC(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function jC(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function UC(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function Ur(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r];Array.isArray(i)&&i[3]&&(n[r]=i[3])}e.inputTransforms=n}var Nt=class{},Nr=class{};var sc=class extends Nt{constructor(t,n,r,i=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new So(this);let o=nf(t);this._bootstrapComponents=ph(o.bootstrap),this._r3Injector=Hf(t,n,[{provide:Nt,useValue:this},{provide:Wn,useValue:this.componentFactoryResolver},...r],de(t),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},ac=class extends Nr{constructor(t){super(),this.moduleType=t}create(t){return new sc(this.moduleType,t,[])}};var To=class extends Nt{constructor(t){super(),this.componentFactoryResolver=new So(this),this.instance=null;let n=new Sr([...t.providers,{provide:Nt,useValue:this},{provide:Wn,useValue:this.componentFactoryResolver}],t.parent||vc(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Zc(e,t,n=null){return new To({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function Br(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function BC(e){return(e.flags&32)===32}function $C(e,t,n,r,i,o,s,a,c){let u=t.consts,l=Jn(t,e,4,s||null,a||null);Hc(t,n,l,Hn(u,c)),zo(t,l);let d=l.tView=$c(2,l,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function Qh(e,t,n,r,i,o,s,a,c,u){let l=n+je,d=t.firstCreatePass?$C(l,t,e,r,i,o,s,a,c):t.data[l];cn(d,!1);let h=HC(t,e,d,n);$o()&&Yo(t,e,h,d),At(h,e);let f=Ph(h,e,h,d);return e[l]=f,Jo(e,f),NC(f,d,e),Vo(d)&&Uc(t,e,d),c!=null&&Bc(e,d,u),d}function es(e,t,n,r,i,o,s,a){let c=H(),u=ce(),l=Hn(u.consts,o);return Qh(c,u,e,t,n,r,i,l,s,a),es}var HC=zC;function zC(e,t,n,r){return Ho(!0),t[Q].createComment("")}var Er=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Er||{}),GC=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e})}}return e})(),Rd=class e{constructor(){this.ngZone=g(G),this.scheduler=g(Gn),this.errorHandler=g(ot,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[Er.EarlyRead,Er.Write,Er.MixedReadWrite,Er.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e})}};function ln(e,t,n,r){let i=H(),o=Bo();if(Br(i,o,t)){let s=ce(),a=_c();UD(a,i,e,t,n,r)}return ln}function WC(e,t,n,r){return Br(e,Bo(),n)?t+Or(n)+r:Kn}function no(e,t){return e<<17|t<<2}function on(e){return e>>17&32767}function qC(e){return(e&2)==2}function ZC(e,t){return e&131071|t<<17}function cc(e){return e|2}function Zn(e){return(e&131068)>>2}function va(e,t){return e&-131069|t<<2}function YC(e){return(e&1)===1}function uc(e){return e|1}function QC(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=on(s),c=Zn(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Fr(d,l)>0)&&(u=!0)}else l=n;if(i)if(c!==0){let h=on(e[a+1]);e[r+1]=no(h,a),h!==0&&(e[h+1]=va(e[h+1],r)),e[a+1]=ZC(e[a+1],r)}else e[r+1]=no(a,0),a!==0&&(e[a+1]=va(e[a+1],r)),a=r;else e[r+1]=no(c,0),a===0?a=r:e[c+1]=va(e[c+1],r),c=r;u&&(e[r+1]=cc(e[r+1])),Od(e,l,r,!0),Od(e,l,r,!1),KC(t,l,e,r,o),s=no(a,c),o?t.classBindings=s:t.styleBindings=s}function KC(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&Fr(o,t)>=0&&(n[r+1]=uc(n[r+1]))}function Od(e,t,n,r){let i=e[n+1],o=t===null,s=r?on(i):Zn(i),a=!1;for(;s!==0&&(a===!1||o);){let c=e[s],u=e[s+1];JC(c,t)&&(a=!0,e[s+1]=r?uc(u):cc(u)),s=r?on(u):Zn(u)}a&&(e[n+1]=r?cc(i):uc(i))}function JC(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Fr(e,t)>=0:!1}function Ee(e,t,n){let r=H(),i=Bo();if(Br(r,i,t)){let o=ce(),s=_c();Rh(o,s,r,e,t,r[Q],n,!1)}return Ee}function Fd(e,t,n,r,i){let o=t.inputs,s=i?"class":"style";zc(e,n,o[s],s,r)}function ts(e,t,n){return Kh(e,t,n,!1),ts}function Yc(e,t){return Kh(e,t,null,!0),Yc}function Kh(e,t,n,r){let i=H(),o=ce(),s=$y(2);if(o.firstUpdatePass&&ew(o,e,s,r),t!==Kn&&Br(i,s,t)){let a=o.data[Qn()];ow(o,a,i,i[Q],e,i[s+1]=sw(t,n),r,s)}}function XC(e,t){return t>=e.expandoStartIndex}function ew(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[Qn()],s=XC(e,n);aw(o,r)&&t===null&&!s&&(t=!1),t=tw(i,o,t,r),QC(i,o,t,n,s,r)}}function tw(e,t,n,r){let i=Wy(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Da(null,e,t,n,r),n=Rr(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=Da(i,e,t,n,r),o===null){let c=nw(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Da(null,e,t,c[1],r),c=Rr(c,t.attrs,r),rw(e,t,r,c))}else o=iw(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function nw(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Zn(r)!==0)return e[on(r)]}function rw(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[on(i)]=r}function iw(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0;){let c=e[i],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=n[i+1];h===Kn&&(h=d?Me:void 0);let f=d?ua(h,r):l===r?h:void 0;if(u&&!xo(f)&&(f=ua(c,r)),xo(f)&&(a=f,s))return a;let m=e[i+1];i=s?on(m):Zn(m)}if(t!==null){let c=o?t.residualClasses:t.residualStyles;c!=null&&(a=ua(c,r))}return a}function xo(e){return e!==void 0}function sw(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=de(Be(e)))),e}function aw(e,t){return(e.flags&(t?8:16))!==0}function cw(e,t,n,r,i,o){let s=t.consts,a=Hn(s,i),c=Jn(t,e,2,r,a);return Hc(t,n,c,Hn(s,o)),c.attrs!==null&&Mo(c,c.attrs,!1),c.mergedAttrs!==null&&Mo(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function U(e,t,n,r){let i=H(),o=ce(),s=je+e,a=i[Q],c=o.firstCreatePass?cw(s,o,i,t,n,r):o.data[s],u=uw(o,i,c,a,t,e);i[s]=u;let l=Vo(c);return cn(c,!0),Mh(a,u,c),!BC(c)&&$o()&&Yo(o,i,u,c),Py()===0&&At(u,i),ky(),l&&(Uc(o,i,c),jc(o,c,i)),r!==null&&Bc(i,c),U}function B(){let e=ue();wc()?Ec():(e=e.parent,cn(e,!1));let t=e;Vy(t)&&jy(),Ly();let n=ce();return n.firstCreatePass&&(zo(n,e),Dc(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&Xy(t)&&Fd(n,t,H(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&ev(t)&&Fd(n,t,H(),t.stylesWithoutHost,!1),B}function Re(e,t,n,r){return U(e,t,n,r),B(),Re}var uw=(e,t,n,r,i,o)=>(Ho(!0),gh(r,i,Yy()));function lw(e,t,n,r,i){let o=t.consts,s=Hn(o,r),a=Jn(t,e,8,"ng-container",s);s!==null&&Mo(a,s,!0);let c=Hn(o,i);return Hc(t,n,a,c),t.queries!==null&&t.queries.elementStart(t,a),a}function Qc(e,t,n){let r=H(),i=ce(),o=e+je,s=i.firstCreatePass?lw(o,i,r,t,n):i.data[o];cn(s,!0);let a=dw(i,r,s,e);return r[o]=a,$o()&&Yo(i,r,a,s),At(a,r),Vo(s)&&(Uc(i,r,s),jc(i,s,r)),n!=null&&Bc(r,s),Qc}function Kc(){let e=ue(),t=ce();return wc()?Ec():(e=e.parent,cn(e,!1)),t.firstCreatePass&&(zo(t,e),Dc(e)&&t.queries.elementEnd(e)),Kc}var dw=(e,t,n,r)=>(Ho(!0),iD(t[Q],""));var Ao="en-US";var fw=Ao;function hw(e){typeof e=="string"&&(fw=e.toLowerCase().replace(/_/g,"-"))}var pw=(e,t,n)=>{};function dn(e,t,n,r){let i=H(),o=ce(),s=ue();return Jh(o,i,i[Q],s,e,t,r),dn}function gw(e,t,n,r){let i=e.cleanup;if(i!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function Jh(e,t,n,r,i,o,s){let a=Vo(r),u=e.firstCreatePass&&GD(e),l=t[Ze],d=zD(t),h=!0;if(r.type&3||s){let y=Ne(r,t),v=s?s(y):y,I=d.length,z=s?oe=>s(Qe(oe[r.index])):r.index,V=null;if(!s&&a&&(V=gw(e,t,i,r.index)),V!==null){let oe=V.__ngLastListenerFn__||V;oe.__ngNextListenerFn__=o,V.__ngLastListenerFn__=o,h=!1}else{o=Ld(r,t,l,o),pw(y,i,o);let oe=n.listen(v,i,o);d.push(o,oe),u&&u.push(i,z,I,I+1)}}else o=Ld(r,t,l,o);let f=r.outputs,m;if(h&&f!==null&&(m=f[i])){let y=m.length;if(y)for(let v=0;v-1?Ft(e.index,t):t;Wc(s,5);let a=kd(t,n,r,o),c=i.__ngNextListenerFn__;for(;c;)a=kd(t,n,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function $r(e=1){return Zy(e)}function mw(e,t){let n=null,r=iy(e);for(let i=0;i(Ho(!0),nD(t[Q],r));function Jc(e){return tp("",e,""),Jc}function tp(e,t,n){let r=H(),i=WC(r,e,t,n);return i!==Kn&&WD(r,Qn(),i),tp}function Lt(e,t,n){Yh(t)&&(t=t());let r=H(),i=Bo();if(Br(r,i,t)){let o=ce(),s=_c();Rh(o,s,r,e,t,r[Q],n,!1)}return Lt}function fn(e,t){let n=Yh(e);return n&&e.set(t),n}function Vt(e,t){let n=H(),r=ce(),i=ue();return Jh(r,n,n[Q],i,e,t),Vt}function Dw(e,t,n){let r=ce();if(r.firstCreatePass){let i=Tt(e);lc(n,r.data,r.blueprint,i,!0),lc(t,r.data,r.blueprint,i,!1)}}function lc(e,t,n,r,i){if(e=le(e),Array.isArray(e))for(let o=0;o>20;if(jn(e)||!e.multi){let f=new nn(u,i,T),m=wa(c,t,i?l:l+h,d);m===-1?(Fa(Co(a,s),o,c),Ca(o,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[m]=f,s[m]=f)}else{let f=wa(c,t,l+h,d),m=wa(c,t,l,l+h),y=f>=0&&n[f],v=m>=0&&n[m];if(i&&!v||!i&&!y){Fa(Co(a,s),o,c);let I=Ew(i?ww:Cw,n.length,i,r,u);!i&&v&&(n[m].providerFactory=I),Ca(o,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(I),s.push(I)}else{let I=np(n[i?m:f],u,!i&&r);Ca(o,e,f>-1?f:m,I)}!i&&r&&v&&n[m].componentProviders++}}}function Ca(e,t,n,r){let i=jn(t),o=vy(t);if(i||o){let c=(o?le(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function np(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function wa(e,t,n,r){for(let i=n;i{n.providersResolver=(r,i)=>Dw(r,i?i(e):e,t)}}var Iw=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=sf(!1,n.type),i=r.length>0?Zc([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=D({token:e,providedIn:"environment",factory:()=>new e(E(ge))})}}return e})();function Oe(e){jr("NgStandalone"),e.getStandaloneInjector=t=>t.get(Iw).getOrCreateStandaloneInjector(e)}var ns=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var rp=new w("");function hn(e){return!!e&&typeof e.then=="function"}function ip(e){return!!e&&typeof e.subscribe=="function"}var op=new w(""),sp=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=g(op,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=i();if(hn(o))n.push(o);else if(ip(o)){let s=new Promise((a,c)=>{o.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),rs=new w("");function bw(){Il(()=>{throw new C(600,!1)})}function _w(e){return e.isBoundToModule}var Mw=10;function Sw(e,t,n){try{let r=n();return hn(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var jt=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=g(Cv),this.afterRenderManager=g(GC),this.zonelessEnabled=g(qc),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new X,this.afterTick=new X,this.componentTypes=[],this.components=[],this.isStable=g(Pt).hasPendingTasks.pipe(S(n=>!n)),this._injector=g(ge)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let i=n instanceof _o;if(!this._injector.get(sp).done){let h=!i&&tf(n),f=!1;throw new C(405,f)}let s;i?s=n:s=this._injector.get(Wn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=_w(s)?void 0:this._injector.get(Nt),c=r||s.selector,u=s.create(xt.NULL,[],c,a),l=u.location.nativeElement,d=u.injector.get(rp,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),ao(this.components,u),d?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new C(101,!1);let n=L(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,L(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(qn,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++jo(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;ao(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(rs,[]);[...this._bootstrapListeners,...r].forEach(i=>i(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),()=>ao(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(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ao(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Tw(e,t,n,r){if(!n&&!jo(e))return;$h(e,t,n&&!r?0:1)}var fc=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Xc=(()=>{class e{compileModuleSync(n){return new ac(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),i=nf(n),o=ph(i.declarations).reduce((s,a)=>{let c=Jt(a);return c&&s.push(new Ar(c)),s},[]);return new fc(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var xw=(()=>{class e{constructor(){this.zone=g(G),this.changeDetectionScheduler=g(Gn),this.applicationRef=g(jt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Aw({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new G(N(p({},Nw()),{scheduleInRootZone:n})),[{provide:G,useFactory:e},{provide:Vn,multi:!0,useFactory:()=>{let r=g(xw,{optional:!0});return()=>r.initialize()}},{provide:Vn,multi:!0,useFactory:()=>{let r=g(Rw);return()=>{r.initialize()}}},t===!0?{provide:Wh,useValue:!0}:[],{provide:qh,useValue:n??zf}]}function Nw(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Rw=(()=>{class e{constructor(){this.subscription=new J,this.initialized=!1,this.zone=g(G),this.pendingTasks=g(Pt)}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(()=>{G.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{G.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Ow=(()=>{class e{constructor(){this.appRef=g(jt),this.taskService=g(Pt),this.ngZone=g(G),this.zonelessEnabled=g(qc),this.disableScheduling=g(Wh,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new J,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Eo):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(qh,{optional:!0})??!1),this.cancelScheduledCallback=null,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 ja||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?gd:Wf;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Eo+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,gd(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Fw(){return typeof $localize<"u"&&$localize.locale||Ao}var eu=new w("",{providedIn:"root",factory:()=>g(eu,A.Optional|A.SkipSelf)||Fw()});var hc=new w("");function ro(e){return!e.moduleRef}function Pw(e){let t=ro(e)?e.r3Injector:e.moduleRef.injector,n=t.get(G);return n.run(()=>{ro(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(ot,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),ro(e)){let o=()=>t.destroy(),s=e.platformInjector.get(hc);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(hc);s.add(o),e.moduleRef.onDestroy(()=>{ao(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return Sw(r,n,()=>{let o=t.get(sp);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(eu,Ao);if(hw(s||Ao),ro(e)){let a=t.get(jt);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return kw(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function kw(e,t){let n=e.injector.get(jt);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new C(-403,!1);t.push(e)}var co=null;function Lw(e=[],t){return xt.create({name:t,providers:[{provide:Po,useValue:"platform"},{provide:hc,useValue:new Set([()=>co=null])},...e]})}function Vw(e=[]){if(co)return co;let t=Lw(e);return co=t,bw(),jw(t),t}function jw(e){e.get(Nc,null)?.forEach(n=>n())}var ht=(()=>{class e{static{this.__NG_ELEMENT_ID__=Uw}}return e})();function Uw(e){return Bw(ue(),H(),(e&16)===16)}function Bw(e,t,n){if(Lo(e)&&!n){let r=Ft(e.index,t);return new rn(r,r)}else if(e.type&175){let r=t[xe];return new rn(r,t)}return null}function ap(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=Vw(r),o=[Aw({}),{provide:Gn,useExisting:Ow},...n||[]],s=new To({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return Pw({r3Injector:s.injector,platformInjector:i,rootComponent:t})}catch(t){return Promise.reject(t)}}function Je(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function tu(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function is(e,t){jr("NgSignals");let n=Cl(e);return t?.equal&&(n[tt].equal=t.equal),n}function Ut(e){let t=L(null);try{return e()}finally{L(t)}}var dp=null;function gt(){return dp}function fp(e){dp??=e}var os=class{};var K=new w(""),iu=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:()=>g(Hw),providedIn:"platform"})}}return e})();var Hw=(()=>{class e extends iu{constructor(){super(),this._doc=g(K),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return gt().getBaseHref(this._doc)}onPopState(n){let r=gt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=gt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,i){this._history.pushState(n,r,i)}replaceState(n,r,i){this._history.replaceState(n,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function ou(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function cp(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function pt(e){return e&&e[0]!=="?"?"?"+e:e}var Bt=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:()=>g(pp),providedIn:"root"})}}return e})(),hp=new w(""),pp=(()=>{class e extends Bt{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g(K).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 ou(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+pt(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+pt(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+pt(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(E(iu),E(hp,8))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),gp=(()=>{class e extends Bt{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}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 r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=ou(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+pt(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+pt(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(E(iu),E(hp,8))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})(),zr=(()=>{class e{constructor(n){this._subject=new Y,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=Ww(cp(up(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+pt(r))}normalize(n){return e.stripTrailingSlash(Gw(this._basePath,up(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+pt(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+pt(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r,complete:i})}static{this.normalizeQueryParams=pt}static{this.joinWithSlash=ou}static{this.stripTrailingSlash=cp}static{this.\u0275fac=function(r){return new(r||e)(E(Bt))}}static{this.\u0275prov=D({token:e,factory:()=>zw(),providedIn:"root"})}}return e})();function zw(){return new zr(E(Bt))}function Gw(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function up(e){return e.replace(/\/index.html$/,"")}function Ww(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function ss(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var mp=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new nu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){lp("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){lp("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(T(Vr),T(Lr))}}static{this.\u0275dir=we({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})(),nu=class{constructor(){this.$implicit=null,this.ngIf=null}};function lp(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${de(t)}'.`)}var yp="browser",qw="server";function as(e){return e===qw}var er=class{};var Wr=class{},us=class{},mt=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` +`).forEach(n=>{let r=n.indexOf(":");if(r>0){let i=n.slice(0,r),o=i.toLowerCase(),s=n.slice(r+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((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let i=(t.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let o=t.value;if(!o)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(o=>o.toString()),i=t.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var au=class{encodeKey(t){return Dp(t)}encodeValue(t){return Dp(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Zw(e,t){let n=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))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var Yw=/%(\d[a-f0-9])/gi,Qw={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Dp(e){return encodeURIComponent(e).replace(Yw,(t,n)=>Qw[n]??t)}function cs(e){return`${e}`}var Ht=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(n=>{let r=t.fromObject[n],i=Array.isArray(r)?r.map(cs):[cs(r)];this.map.set(n,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let i=t[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(cs(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],i=r.indexOf(cs(t.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var cu=class{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function Kw(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Cp(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function wp(e){return typeof Blob<"u"&&e instanceof Blob}function Ep(e){return typeof FormData<"u"&&e instanceof FormData}function Jw(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Gr=class e{constructor(t,n,r,i){this.url=n,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=r!==void 0?r:null,o=i):o=r,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 mt,this.context??=new cu,!this.params)this.params=new Ht,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":ah.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),l)),new e(n,r,s,{params:l,headers:u,context:d,reportProgress:c,responseType:i,withCredentials:a,transferCache:o})}},zt=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}(zt||{}),qr=class{constructor(t,n=200,r="OK"){this.headers=t.headers||new mt,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},ls=class e extends qr{constructor(t={}){super(t),this.type=zt.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})}},Zr=class e extends qr{constructor(t={}){super(t),this.type=zt.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})}},$t=class extends qr{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}},Mp=200,Xw=204;function su(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 eE=(()=>{class e{constructor(n){this.handler=n}request(n,r,i={}){let o;if(n instanceof Gr)o=n;else{let c;i.headers instanceof mt?c=i.headers:c=new mt(i.headers);let u;i.params&&(i.params instanceof Ht?u=i.params:u=new Ht({fromObject:i.params})),o=new Gr(n,r,i.body!==void 0?i.body:null,{headers:c,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let s=b(o).pipe(Et(c=>this.handler.handle(c)));if(n instanceof Gr||i.observe==="events")return s;let a=s.pipe(ae(c=>c instanceof Zr));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.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 a.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 a.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 a.pipe(S(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Ht().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,i={}){return this.request("PATCH",n,su(i,r))}post(n,r,i={}){return this.request("POST",n,su(i,r))}put(n,r,i={}){return this.request("PUT",n,su(i,r))}static{this.\u0275fac=function(r){return new(r||e)(E(Wr))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})(),tE=/^\)\]\}',?\n/,nE="X-Request-URL";function Ip(e){if(e.url)return e.url;let t=nE.toLocaleLowerCase();return e.headers.get(t)}var rE=(()=>{class e{constructor(){this.fetchImpl=g(uu,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n)),this.ngZone=g(G)}handle(n){return new P(r=>{let i=new AbortController;return this.doRequest(n,i.signal,r).then(lu,o=>r.error(new $t({error:o}))),()=>i.abort()})}doRequest(n,r,i){return wn(this,null,function*(){let o=this.createRequestInit(n),s;try{let f=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,p({signal:r},o)));iE(f),i.next({type:zt.Sent}),s=yield f}catch(f){i.error(new $t({error:f,status:f.status??0,statusText:f.statusText,url:n.urlWithParams,headers:f.headers}));return}let a=new mt(s.headers),c=s.statusText,u=Ip(s)??n.urlWithParams,l=s.status,d=null;if(n.reportProgress&&i.next(new ls({headers:a,status:l,statusText:c,url:u})),s.body){let f=s.headers.get("content-length"),m=[],y=s.body.getReader(),v=0,I,z,V=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>wn(this,null,function*(){for(;;){let{done:he,value:ee}=yield y.read();if(he)break;if(m.push(ee),v+=ee.length,n.reportProgress){z=n.responseType==="text"?(z??"")+(I??=new TextDecoder).decode(ee,{stream:!0}):void 0;let et=()=>i.next({type:zt.DownloadProgress,total:f?+f:void 0,loaded:v,partialText:z});V?V.run(et):et()}}}));let oe=this.concatChunks(m,v);try{let he=s.headers.get("Content-Type")??"";d=this.parseBody(n,oe,he)}catch(he){i.error(new $t({error:he,headers:new mt(s.headers),status:s.status,statusText:s.statusText,url:Ip(s)??n.urlWithParams}));return}}l===0&&(l=d?Mp:0),l>=200&&l<300?(i.next(new Zr({body:d,headers:a,status:l,statusText:c,url:u})),i.complete()):i.error(new $t({error:d,headers:a,status:l,statusText:c,url:u}))})}parseBody(n,r,i){switch(n.responseType){case"json":let o=new TextDecoder().decode(r).replace(tE,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},i=n.withCredentials?"include":void 0;if(n.headers.forEach((o,s)=>r[o]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let o=n.detectContentTypeHeader();o!==null&&(r["Content-Type"]=o)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:i}}concatChunks(n,r){let i=new Uint8Array(r),o=0;for(let s of n)i.set(s,o),o+=s.length;return i}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})(),uu=class{};function lu(){}function iE(e){e.then(lu,lu)}function oE(e,t){return t(e)}function sE(e,t,n){return(r,i)=>Ue(n,()=>t(r,o=>e(o,i)))}var Sp=new w(""),aE=new w(""),cE=new w("",{providedIn:"root",factory:()=>!0});var bp=(()=>{class e extends Wr{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=g(Pt),this.contributeToStability=g(cE)}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Sp),...this.injector.get(aE,[])]));this.chain=r.reduceRight((i,o)=>sE(i,o,this.injector),oE)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(Qt(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||e)(E(us),E(ge))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})();var uE=/^\)\]\}',?\n/;function lE(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var _p=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new C(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?q(r.\u0275loadImpl()):b(null)).pipe(Ce(()=>new P(o=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((y,v)=>s.setRequestHeader(y,v.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let y=n.detectContentTypeHeader();y!==null&&s.setRequestHeader("Content-Type",y)}if(n.responseType){let y=n.responseType.toLowerCase();s.responseType=y!=="json"?y:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let y=s.statusText||"OK",v=new mt(s.getAllResponseHeaders()),I=lE(s)||n.url;return c=new ls({headers:v,status:s.status,statusText:y,url:I}),c},l=()=>{let{headers:y,status:v,statusText:I,url:z}=u(),V=null;v!==Xw&&(V=typeof s.response>"u"?s.responseText:s.response),v===0&&(v=V?Mp:0);let oe=v>=200&&v<300;if(n.responseType==="json"&&typeof V=="string"){let he=V;V=V.replace(uE,"");try{V=V!==""?JSON.parse(V):null}catch(ee){V=he,oe&&(oe=!1,V={error:ee,text:V})}}oe?(o.next(new Zr({body:V,headers:y,status:v,statusText:I,url:z||void 0})),o.complete()):o.error(new $t({error:V,headers:y,status:v,statusText:I,url:z||void 0}))},d=y=>{let{url:v}=u(),I=new $t({error:y,status:s.status||0,statusText:s.statusText||"Unknown Error",url:v||void 0});o.error(I)},h=!1,f=y=>{h||(o.next(u()),h=!0);let v={type:zt.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(v.total=y.total),n.responseType==="text"&&s.responseText&&(v.partialText=s.responseText),o.next(v)},m=y=>{let v={type:zt.UploadProgress,loaded:y.loaded};y.lengthComputable&&(v.total=y.total),o.next(v)};return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",f),a!==null&&s.upload&&s.upload.addEventListener("progress",m)),s.send(a),o.next({type:zt.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),a!==null&&s.upload&&s.upload.removeEventListener("progress",m)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||e)(E(er))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})(),Tp=new w(""),dE="XSRF-TOKEN",fE=new w("",{providedIn:"root",factory:()=>dE}),hE="X-XSRF-TOKEN",pE=new w("",{providedIn:"root",factory:()=>hE}),ds=class{},gE=(()=>{class e{constructor(n,r,i){this.doc=n,this.platform=r,this.cookieName=i,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=ss(n,this.cookieName),this.lastCookieString=n),this.lastToken}static{this.\u0275fac=function(r){return new(r||e)(E(K),E(kt),E(fE))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})();function mE(e,t){let n=e.url.toLowerCase();if(!g(Tp)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=g(ds).getToken(),i=g(pE);return r!=null&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),t(e)}function xp(...e){let t=[eE,_p,bp,{provide:Wr,useExisting:bp},{provide:us,useFactory:()=>g(rE,{optional:!0})??g(_p)},{provide:Sp,useValue:mE,multi:!0},{provide:Tp,useValue:!0},{provide:ds,useClass:gE}];for(let n of e)t.push(...n.\u0275providers);return an(t)}var hu=class extends os{constructor(){super(...arguments),this.supportsDOMEvents=!0}},pu=class e extends hu{static makeCurrent(){fp(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=vE();return n==null?null:DE(n)}resetBaseElement(){Yr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ss(document.cookie,t)}},Yr=null;function vE(){return Yr=Yr||document.querySelector("base"),Yr?Yr.getAttribute("href"):null}function DE(e){return new URL(e,document.baseURI).pathname}var CE=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})(),gu=new w(""),Op=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new C(5101,!1);return this._eventNameToPlugin.set(n,r),r}static{this.\u0275fac=function(r){return new(r||e)(E(gu),E(G))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})(),fs=class{constructor(t){this._doc=t}},du="ng-app-id",Fp=(()=>{class e{constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=as(o),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(i=>i.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${du}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(i=>{i.textContent!=null&&r.set(i.textContent,i)}),r}return null}changeUsageCount(n,r){let i=this.styleRef;if(i.has(n)){let o=i.get(n);return o.usage+=r,o.usage}return i.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===n)return i.delete(r),o.removeAttribute(du),o;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(du,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){let i=this.getStyleElement(n,r),o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(E(K),E(Ac),E(Rc,8),E(kt))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})(),fu={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"},yu=/%COMP%/g,Pp="%COMP%",wE=`_nghost-${Pp}`,EE=`_ngcontent-${Pp}`,IE=!0,bE=new w("",{providedIn:"root",factory:()=>IE});function _E(e){return EE.replace(yu,e)}function ME(e){return wE.replace(yu,e)}function kp(e,t){return t.map(n=>n.replace(yu,e))}var Ap=(()=>{class e{constructor(n,r,i,o,s,a,c,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=as(a),this.defaultRenderer=new Qr(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===qe.ShadowDom&&(r=N(p({},r),{encapsulation:qe.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof hs?i.applyToHost(n):i instanceof Kr&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case qe.Emulated:o=new hs(c,u,r,this.appId,l,s,a,d);break;case qe.ShadowDom:return new mu(c,u,n,r,s,a,this.nonce,d);default:o=new Kr(c,u,r,l,s,a,d);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(E(Op),E(Fp),E(Ac),E(bE),E(K),E(kt),E(G),E(Rc))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})(),Qr=class{constructor(t,n,r,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(fu[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Np(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Np(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new C(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;let o=fu[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=fu[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(at.DashCase|at.Important)?t.style.setProperty(n,r,i&at.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&at.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=gt().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Np(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var mu=class extends Qr{constructor(t,n,r,i,o,s,a,c){super(t,o,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=kp(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(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Kr=class extends Qr{constructor(t,n,r,i,o,s,a,c){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=c?kp(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},hs=class extends Kr{constructor(t,n,r,i,o,s,a,c){let u=i+"-"+r.id;super(t,n,r,o,s,a,c,u),this.contentAttr=_E(u),this.hostAttr=ME(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},SE=(()=>{class e extends fs{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}static{this.\u0275fac=function(r){return new(r||e)(E(K))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})(),Rp=["alt","control","meta","shift"],TE={"\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"},xE={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},AE=(()=>{class e extends fs{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i){let o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>gt().onAndCancel(n,o.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Rp.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=o,r.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let i=TE[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Rp.forEach(s=>{if(s!==i){let a=xE[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static{this.\u0275fac=function(r){return new(r||e)(E(K))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})();function Lp(e,t){return ap(p({rootComponent:e},NE(t)))}function NE(e){return{appProviders:[...kE,...e?.providers??[]],platformProviders:PE}}function RE(){pu.makeCurrent()}function OE(){return new ot}function FE(){return Xf(document),document}var PE=[{provide:kt,useValue:yp},{provide:Nc,useValue:RE,multi:!0},{provide:K,useFactory:FE,deps:[]}];var kE=[{provide:Po,useValue:"root"},{provide:ot,useFactory:OE,deps:[]},{provide:gu,useClass:SE,multi:!0,deps:[K,G,kt]},{provide:gu,useClass:AE,multi:!0,deps:[K]},Ap,Fp,Op,{provide:qn,useExisting:Ap},{provide:er,useClass:CE,deps:[]},[]];var Vp=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static{this.\u0275fac=function(r){return new(r||e)(E(K))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Jr=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:function(r){let i=null;return r?i=new(r||e):i=E(LE),i},providedIn:"root"})}}return e})(),LE=(()=>{class e extends Jr{constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case $e.NONE:return r;case $e.HTML:return dt(r,"HTML")?Be(r):Fc(this._doc,String(r)).toString();case $e.STYLE:return dt(r,"Style")?Be(r):r;case $e.SCRIPT:if(dt(r,"Script"))return Be(r);throw new C(5200,!1);case $e.URL:return dt(r,"URL")?Be(r):qo(String(r));case $e.RESOURCE_URL:if(dt(r,"ResourceURL"))return Be(r);throw new C(5201,!1);default:throw new C(5202,!1)}}bypassSecurityTrustHtml(n){return rh(n)}bypassSecurityTrustStyle(n){return ih(n)}bypassSecurityTrustScript(n){return oh(n)}bypassSecurityTrustUrl(n){return sh(n)}bypassSecurityTrustResourceUrl(n){return ah(n)}static{this.\u0275fac=function(r){return new(r||e)(E(K))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var x="primary",pi=Symbol("RouteTitle"),Iu=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function sr(e){return new Iu(e)}function VE(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthr[o]===i)}else return e===t}function qp(e){return e.length>0?e[e.length-1]:null}function Wt(e){return Xs(e)?e:hn(e)?q(Promise.resolve(e)):b(e)}var UE={exact:Yp,subset:Qp},Zp={exact:BE,subset:$E,ignored:()=>!0};function jp(e,t,n){return UE[n.paths](e.root,t.root,n.matrixParams)&&Zp[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function BE(e,t){return Xe(e,t)}function Yp(e,t,n){if(!gn(e.segments,t.segments)||!ms(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Yp(e.children[r],t.children[r],n))return!1;return!0}function $E(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Wp(e[n],t[n]))}function Qp(e,t,n){return Kp(e,t,t.segments,n)}function Kp(e,t,n,r){if(e.segments.length>n.length){let i=e.segments.slice(0,n.length);return!(!gn(i,n)||t.hasChildren()||!ms(i,n,r))}else if(e.segments.length===n.length){if(!gn(e.segments,n)||!ms(e.segments,n,r))return!1;for(let i in t.children)if(!e.children[i]||!Qp(e.children[i],t.children[i],r))return!1;return!0}else{let i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!gn(e.segments,i)||!ms(e.segments,i,r)||!e.children[x]?!1:Kp(e.children[x],t,o,r)}}function ms(e,t,n){return t.every((r,i)=>Zp[n](e[i].parameters,r.parameters))}var vt=class{constructor(t=new j([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=sr(this.queryParams),this._queryParamMap}toString(){return GE.serialize(this)}},j=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ys(this)}},pn=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=sr(this.parameters),this._parameterMap}toString(){return Xp(this)}};function HE(e,t){return gn(e,t)&&e.every((n,r)=>Xe(n.parameters,t[r].parameters))}function gn(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function zE(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===x&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==x&&(n=n.concat(t(i,r)))}),n}var Qu=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:()=>new oi,providedIn:"root"})}}return e})(),oi=class{parse(t){let n=new Mu(t);return new vt(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Xr(t.root,!0)}`,r=ZE(t.queryParams),i=typeof t.fragment=="string"?`#${WE(t.fragment)}`:"";return`${n}${r}${i}`}},GE=new oi;function ys(e){return e.segments.map(t=>Xp(t)).join("/")}function Xr(e,t){if(!e.hasChildren())return ys(e);if(t){let n=e.children[x]?Xr(e.children[x],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==x&&r.push(`${i}:${Xr(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=zE(e,(r,i)=>i===x?[Xr(e.children[x],!1)]:[`${i}:${Xr(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[x]!=null?`${ys(e)}/${n[0]}`:`${ys(e)}/(${n.join("//")})`}}function Jp(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ps(e){return Jp(e).replace(/%3B/gi,";")}function WE(e){return encodeURI(e)}function _u(e){return Jp(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function vs(e){return decodeURIComponent(e)}function Up(e){return vs(e.replace(/\+/g,"%20"))}function Xp(e){return`${_u(e.path)}${qE(e.parameters)}`}function qE(e){return Object.entries(e).map(([t,n])=>`;${_u(t)}=${_u(n)}`).join("")}function ZE(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(i=>`${ps(n)}=${ps(i)}`).join("&"):`${ps(n)}=${ps(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var YE=/^[^\/()?;#]+/;function Du(e){let t=e.match(YE);return t?t[0]:""}var QE=/^[^\/()?;=#]+/;function KE(e){let t=e.match(QE);return t?t[0]:""}var JE=/^[^=?&#]+/;function XE(e){let t=e.match(JE);return t?t[0]:""}var eI=/^[^&#]+/;function tI(e){let t=e.match(eI);return t?t[0]:""}var Mu=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new j([],{}):new j([],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 n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[x]=new j(t,n)),r}parseSegment(){let t=Du(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(t),new pn(vs(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=KE(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=Du(this.remaining);i&&(r=i,this.capture(r))}t[vs(n)]=vs(r)}parseQueryParam(t){let n=XE(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=tI(this.remaining);s&&(r=s,this.capture(r))}let i=Up(n),o=Up(r);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 n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Du(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new C(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=x);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[x]:new j([],s),this.consumeOptional("//")}return n}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 C(4011,!1)}};function eg(e){return e.segments.length>0?new j([],{[x]:e}):e}function tg(e){let t={};for(let[r,i]of Object.entries(e.children)){let o=tg(i);if(r===x&&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[r]=o)}let n=new j(e.segments,t);return nI(n)}function nI(e){if(e.numberOfChildren===1&&e.children[x]){let t=e.children[x];return new j(e.segments.concat(t.segments),t.children)}return e}function mn(e){return e instanceof vt}function rI(e,t,n=null,r=null){let i=ng(e);return rg(i,t,n,r)}function ng(e){let t;function n(o){let s={};for(let c of o.children){let u=n(c);s[c.outlet]=u}let a=new j(o.url,s);return o===e&&(t=a),a}let r=n(e.root),i=eg(r);return t??i}function rg(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return Cu(i,i,i,n,r);let o=iI(t);if(o.toRoot())return Cu(i,i,new j([],{}),n,r);let s=oI(o,i,e),a=s.processChildren?ni(s.segmentGroup,s.index,o.commands):og(s.segmentGroup,s.index,o.commands);return Cu(i,s.segmentGroup,a,n,r)}function Ds(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function si(e){return typeof e=="object"&&e!=null&&e.outlets}function Cu(e,t,n,r,i){let o={};r&&Object.entries(r).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;e===t?s=n:s=ig(e,t,n);let a=eg(tg(s));return new vt(a,o,i)}function ig(e,t,n){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===t?r[i]=n:r[i]=ig(o,t,n)}),new j(e.segments,r)}var Cs=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Ds(r[0]))throw new C(4003,!1);let i=r.find(si);if(i&&i!==qp(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function iI(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Cs(!0,0,e);let t=0,n=!1,r=e.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===""?n=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Cs(n,t,r)}var rr=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function oI(e,t,n){if(e.isAbsolute)return new rr(t,!0,0);if(!n)return new rr(t,!1,NaN);if(n.parent===null)return new rr(n,!0,0);let r=Ds(e.commands[0])?0:1,i=n.segments.length-1+r;return sI(n,i,e.numberOfDoubleDots)}function sI(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new C(4005,!1);i=r.segments.length}return new rr(r,!1,i-o)}function aI(e){return si(e[0])?e[0].outlets:{[x]:e}}function og(e,t,n){if(e??=new j([],{}),e.segments.length===0&&e.hasChildren())return ni(e,t,n);let r=cI(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndexo!==x)&&e.children[x]&&e.numberOfChildren===1&&e.children[x].segments.length===0){let o=ni(e.children[x],t,n);return new j(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=og(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new j(e.segments,i)}}function cI(e,t,n){let r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;let s=e.segments[i],a=n[r];if(si(a))break;let c=`${a}`,u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!$p(c,u,s))return o;r+=2}else{if(!$p(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Su(e,t,n){let r=e.segments.slice(0,t),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Su(new j([],{}),0,r))}),t}function Bp(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function $p(e,t,n){return e==n.path&&Xe(t,n.parameters)}var ri="imperative",se=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}(se||{}),Pe=class{constructor(t,n){this.id=t,this.url=n}},ai=class extends Pe{constructor(t,n,r="imperative",i=null){super(t,n),this.type=se.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Gt=class extends Pe{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=se.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||{}),Tu=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Tu||{}),yt=class extends Pe{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=se.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},yn=class extends Pe{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=se.NavigationSkipped}},ci=class extends Pe{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=se.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ws=class extends Pe{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=se.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xu=class extends Pe{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=se.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Au=class extends Pe{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=se.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Nu=class extends Pe{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=se.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ru=class extends Pe{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=se.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ou=class{constructor(t){this.route=t,this.type=se.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Fu=class{constructor(t){this.route=t,this.type=se.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Pu=class{constructor(t){this.snapshot=t,this.type=se.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ku=class{constructor(t){this.snapshot=t,this.type=se.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Lu=class{constructor(t){this.snapshot=t,this.type=se.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Vu=class{constructor(t){this.snapshot=t,this.type=se.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var ui=class{},ar=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function lI(e,t){return e.providers&&!e._injector&&(e._injector=Zc(e.providers,t,`Route: ${e.path}`)),e._injector??t}function He(e){return e.outlet||x}function dI(e,t){let n=e.filter(r=>He(r)===t);return n.push(...e.filter(r=>He(r)!==t)),n}function gi(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var ju=class{get injector(){return gi(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new Ts(this.rootInjector),this.attachRef=null}},Ts=(()=>{class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let i=this.getOrCreateContext(n);i.outlet=r,this.contexts.set(n,i)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new ju(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static{this.\u0275fac=function(r){return new(r||e)(E(ge))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Es=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=Uu(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Uu(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Bu(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return Bu(t,this._root).map(n=>n.value)}};function Uu(e,t){if(e===t.value)return t;for(let n of t.children){let r=Uu(e,n);if(r)return r}return null}function Bu(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Bu(e,n);if(r.length)return r.unshift(t),r}return[]}var Ie=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function nr(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Is=class extends Es{constructor(t,n){super(t),this.snapshot=n,Ku(this,t)}toString(){return this.snapshot.toString()}};function sg(e){let t=fI(e),n=new ne([new pn("",{})]),r=new ne({}),i=new ne({}),o=new ne({}),s=new ne(""),a=new vn(n,r,o,s,i,x,e,t.root);return a.snapshot=t.root,new Is(new Ie(a,[]),t)}function fI(e){let t={},n={},r={},i="",o=new ir([],t,r,i,n,x,e,null,{});return new _s("",new Ie(o,[]))}var vn=class{constructor(t,n,r,i,o,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(S(u=>u[pi]))??b(void 0),this.url=t,this.params=n,this.queryParams=r,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=>sr(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(S(t=>sr(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function bs(e,t,n="emptyOnly"){let r,{routeConfig:i}=e;return t!==null&&(n==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={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)}:r={params:p({},e.params),data:p({},e.data),resolve:p(p({},e.data),e._resolvedData??{})},i&&cg(i)&&(r.resolve[pi]=i.title),r}var ir=class{get title(){return this.data?.[pi]}constructor(t,n,r,i,o,s,a,c,u){this.url=t,this.params=n,this.queryParams=r,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??=sr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=sr(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},_s=class extends Es{constructor(t,n){super(n),this.url=t,Ku(this,n)}toString(){return ag(this._root)}};function Ku(e,t){t.value._routerState=e,t.children.forEach(n=>Ku(e,n))}function ag(e){let t=e.children.length>0?` { ${e.children.map(ag).join(", ")} } `:"";return`${e.value}${t}`}function wu(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Xe(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Xe(t.params,n.params)||e.paramsSubject.next(n.params),jE(t.url,n.url)||e.urlSubject.next(n.url),Xe(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function $u(e,t){let n=Xe(e.params,t.params)&&HE(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||$u(e.parent,t.parent))}function cg(e){return typeof e.title=="string"||e.title===null}var Ju=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=x,this.activateEvents=new Y,this.deactivateEvents=new Y,this.attachEvents=new Y,this.detachEvents=new Y,this.parentContexts=g(Ts),this.location=g(Vr),this.changeDetector=g(ht),this.inputBinder=g(Xu,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:i}=n.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),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,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=n;let i=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Hu(n,a,i.injector);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=we({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[lt]})}}return e})(),Hu=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===vn?this.route:t===Ts?this.childContexts:this.parent.get(t,n)}},Xu=new w("");function hI(e,t,n){let r=li(e,t._root,n?n._root:void 0);return new Is(r,t)}function li(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let i=pI(e,t,n);return new Ie(r,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=>li(e,a)),s}}let r=gI(t.value),i=t.children.map(o=>li(e,o));return new Ie(r,i)}}function pI(e,t,n){return t.children.map(r=>{for(let i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return li(e,r,i);return li(e,r)})}function gI(e){return new vn(new ne(e.url),new ne(e.params),new ne(e.queryParams),new ne(e.fragment),new ne(e.data),e.outlet,e.component,e)}var di=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},ug="ngNavigationCancelingError";function Ms(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=mn(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=lg(!1,be.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function lg(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[ug]=!0,n.cancellationCode=t,n}function mI(e){return dg(e)&&mn(e.url)}function dg(e){return!!e&&e[ug]}var yI=(e,t,n,r)=>S(i=>(new zu(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)),zu=class{constructor(t,n,r,i,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),wu(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let i=nr(n);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=nr(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=nr(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let i=nr(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Vu(o.value.snapshot))}),t.children.length&&this.forwardEvent(new ku(t.value.snapshot))}activateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(wu(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){let s=r.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),wu(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},Ss=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},or=class{constructor(t,n){this.component=t,this.route=n}};function vI(e,t,n){let r=e._root,i=t?t._root:null;return ei(r,i,n,[r.value])}function DI(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function ur(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Ud(e)?e:t.get(e):r}function ei(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=nr(t);return e.children.forEach(s=>{CI(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>ii(a,n.getContext(s),i)),i}function CI(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=wI(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Ss(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ei(e,t,a?a.children:null,r,i):ei(e,t,n,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new or(a.outlet.component,s))}else s&&ii(t,a,i),i.canActivateChecks.push(new Ss(r)),o.component?ei(e,null,a?a.children:null,r,i):ei(e,null,n,r,i);return i}function wI(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!gn(e.url,t.url);case"pathParamsOrQueryParamsChange":return!gn(e.url,t.url)||!Xe(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$u(e,t)||!Xe(e.queryParams,t.queryParams);case"paramsChange":default:return!$u(e,t)}}function ii(e,t,n){let r=nr(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?t?ii(s,t.children.getContext(o),n):ii(s,null,n):ii(s,t,n)}),i.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new or(t.outlet.component,i)):n.canDeactivateChecks.push(new or(null,i)):n.canDeactivateChecks.push(new or(null,i))}function mi(e){return typeof e=="function"}function EI(e){return typeof e=="boolean"}function II(e){return e&&mi(e.canLoad)}function bI(e){return e&&mi(e.canActivate)}function _I(e){return e&&mi(e.canActivateChild)}function MI(e){return e&&mi(e.canDeactivate)}function SI(e){return e&&mi(e.canMatch)}function fg(e){return e instanceof rt||e?.name==="EmptyError"}var gs=Symbol("INITIAL_VALUE");function cr(){return Ce(e=>Yi(e.map(t=>t.pipe(it(1),aa(gs)))).pipe(S(t=>{for(let n of t)if(n!==!0){if(n===gs)return gs;if(n===!1||TI(n))return n}return!0}),ae(t=>t!==gs),it(1)))}function TI(e){return mn(e)||e instanceof di}function xI(e,t){return re(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?b(N(p({},n),{guardsResult:!0})):AI(s,r,i,e).pipe(re(a=>a&&EI(a)?NI(r,o,e,t):b(a)),S(a=>N(p({},n),{guardsResult:a})))})}function AI(e,t,n,r){return q(e).pipe(re(i=>kI(i.component,i.route,n,t,r)),ze(i=>i!==!0,!0))}function NI(e,t,n,r){return q(t).pipe(Et(i=>xn(OI(i.route.parent,r),RI(i.route,r),PI(e,i.path,n),FI(e,i.route,n))),ze(i=>i!==!0,!0))}function RI(e,t){return e!==null&&t&&t(new Lu(e)),b(!0)}function OI(e,t){return e!==null&&t&&t(new Pu(e)),b(!0)}function FI(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return b(!0);let i=r.map(o=>Qi(()=>{let s=gi(t)??n,a=ur(o,s),c=bI(a)?a.canActivate(t,e):Ue(s,()=>a(t,e));return Wt(c).pipe(ze())}));return b(i).pipe(cr())}function PI(e,t,n){let r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>DI(s)).filter(s=>s!==null).map(s=>Qi(()=>{let a=s.guards.map(c=>{let u=gi(s.node)??n,l=ur(c,u),d=_I(l)?l.canActivateChild(r,e):Ue(u,()=>l(r,e));return Wt(d).pipe(ze())});return b(a).pipe(cr())}));return b(o).pipe(cr())}function kI(e,t,n,r,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return b(!0);let s=o.map(a=>{let c=gi(t)??i,u=ur(a,c),l=MI(u)?u.canDeactivate(e,t,n,r):Ue(c,()=>u(e,t,n,r));return Wt(l).pipe(ze())});return b(s).pipe(cr())}function LI(e,t,n,r){let i=t.canLoad;if(i===void 0||i.length===0)return b(!0);let o=i.map(s=>{let a=ur(s,e),c=II(a)?a.canLoad(t,n):Ue(e,()=>a(t,n));return Wt(c)});return b(o).pipe(cr(),hg(r))}function hg(e){return Cr(ie(t=>{if(typeof t!="boolean")throw Ms(e,t)}),S(t=>t===!0))}function VI(e,t,n,r){let i=t.canMatch;if(!i||i.length===0)return b(!0);let o=i.map(s=>{let a=ur(s,e),c=SI(a)?a.canMatch(t,n):Ue(e,()=>a(t,n));return Wt(c)});return b(o).pipe(cr(),hg(r))}var fi=class{constructor(t){this.segmentGroup=t||null}},hi=class extends Error{constructor(t){super(),this.urlTree=t}};function tr(e){return Tn(new fi(e))}function jI(e){return Tn(new C(4e3,!1))}function UI(e){return Tn(lg(!1,be.GuardRejected))}var Gu=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return b(r);if(i.numberOfChildren>1||!i.children[x])return jI(`${t.redirectTo}`);i=i.children[x]}}applyRedirectCommands(t,n,r,i,o){if(typeof n!="string"){let a=n,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:m,title:y}=i,v=Ue(o,()=>a({params:f,data:m,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:y}));if(v instanceof vt)throw new hi(v);n=v}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new hi(s);return s}applyRedirectCreateUrlTree(t,n,r,i){let o=this.createSegmentGroup(t,n.root,r,i);return new vt(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,i){let o=this.createSegments(t,n.segments,r,i),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,i)}),new j(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path[0]===":"?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){let i=r[n.path.substring(1)];if(!i)throw new C(4001,!1);return i}findOrReturn(t,n){let r=0;for(let i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}},Wu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function BI(e,t,n,r,i){let o=pg(e,t,n);return o.matched?(r=lI(t,r),VI(r,t,n,i).pipe(S(s=>s===!0?o:p({},Wu)))):b(o)}function pg(e,t,n){if(t.path==="**")return $I(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?p({},Wu):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(t.matcher||VE)(n,e,t);if(!i)return p({},Wu);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.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:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function $I(e){return{matched:!0,parameters:e.length>0?qp(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Hp(e,t,n,r){return n.length>0&&GI(e,n,r)?{segmentGroup:new j(t,zI(r,new j(n,e.children))),slicedSegments:[]}:n.length===0&&WI(e,n,r)?{segmentGroup:new j(e.segments,HI(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new j(e.segments,e.children),slicedSegments:n}}function HI(e,t,n,r){let i={};for(let o of n)if(xs(e,t,o)&&!r[He(o)]){let s=new j([],{});i[He(o)]=s}return p(p({},r),i)}function zI(e,t){let n={};n[x]=t;for(let r of e)if(r.path===""&&He(r)!==x){let i=new j([],{});n[He(r)]=i}return n}function GI(e,t,n){return n.some(r=>xs(e,t,r)&&He(r)!==x)}function WI(e,t,n){return n.some(r=>xs(e,t,r))}function xs(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function qI(e,t,n){return t.length===0&&!e.children[n]}var qu=class{};function ZI(e,t,n,r,i,o,s="emptyOnly"){return new Zu(e,t,n,r,i,s,o).recognize()}var YI=31,Zu=class{constructor(t,n,r,i,o,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Gu(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new C(4002,`'${t.segmentGroup}'`)}recognize(){let t=Hp(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(S(({children:n,rootSnapshot:r})=>{let i=new Ie(r,n),o=new _s("",i),s=rI(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(t){let n=new ir([],Object.freeze({}),Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),x,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,x,n).pipe(S(r=>({children:r,rootSnapshot:n})),wt(r=>{if(r instanceof hi)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof fi?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,o):this.processSegment(t,n,r,r.segments,i,!0,o).pipe(S(s=>s instanceof Ie?[s]:[]))}processChildren(t,n,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return q(o).pipe(Et(s=>{let a=r.children[s],c=dI(n,s);return this.processSegmentGroup(t,c,a,s,i)}),ia((s,a)=>(s.push(...a),s)),It(null),ra(),re(s=>{if(s===null)return tr(r);let a=gg(s);return QI(a),b(a)}))}processSegment(t,n,r,i,o,s,a){return q(n).pipe(Et(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,i,o,s,a).pipe(wt(u=>{if(u instanceof fi)return b(null);throw u}))),ze(c=>!!c),wt(c=>{if(fg(c))return qI(r,i,o)?b(new qu):tr(r);throw c}))}processSegmentAgainstRoute(t,n,r,i,o,s,a,c){return He(r)!==s&&(s===x||!xs(i,o,r))?tr(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,r,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s,c):tr(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=pg(n,i,o);if(!c)return tr(n);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>YI&&(this.allowRedirects=!1));let f=new ir(o,u,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,zp(i),He(i),i.component??i._loadedComponent??null,i,Gp(i)),m=bs(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(m.params),f.data=Object.freeze(m.data);let y=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(i,y).pipe(re(v=>this.processSegment(t,r,n,v.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,i,o,s){let a=BI(n,r,i,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(Ce(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,i).pipe(Ce(({routes:u})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=c,m=new ir(h,d,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,zp(r),He(r),r.component??r._loadedComponent??null,r,Gp(r)),y=bs(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(y.params),m.data=Object.freeze(y.data);let{segmentGroup:v,slicedSegments:I}=Hp(n,h,f,u);if(I.length===0&&v.hasChildren())return this.processChildren(l,u,v,m).pipe(S(V=>new Ie(m,V)));if(u.length===0&&I.length===0)return b(new Ie(m,[]));let z=He(r)===o;return this.processSegment(l,u,v,I,z?x:o,!0,m).pipe(S(V=>new Ie(m,V instanceof Ie?[V]:[])))}))):tr(n)))}getChildConfig(t,n,r){return n.children?b({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?b({routes:n._loadedRoutes,injector:n._loadedInjector}):LI(t,n,r,this.urlSerializer).pipe(re(i=>i?this.configLoader.loadChildren(t,n).pipe(ie(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):UI(n))):b({routes:[],injector:t})}};function QI(e){e.sort((t,n)=>t.value.outlet===x?-1:n.value.outlet===x?1:t.value.outlet.localeCompare(n.value.outlet))}function KI(e){let t=e.value.routeConfig;return t&&t.path===""}function gg(e){let t=[],n=new Set;for(let r of e){if(!KI(r)){t.push(r);continue}let i=t.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),n.add(i)):t.push(r)}for(let r of n){let i=gg(r.children);t.push(new Ie(r.value,i))}return t.filter(r=>!n.has(r))}function zp(e){return e.data||{}}function Gp(e){return e.resolve||{}}function JI(e,t,n,r,i,o){return re(s=>ZI(e,t,n,r,s.extractedUrl,i,o).pipe(S(({state:a,tree:c})=>N(p({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function XI(e,t){return re(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return b(n);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 mg(c))s.add(u);let a=0;return q(s).pipe(Et(c=>o.has(c)?eb(c,r,e,t):(c.data=bs(c,c.parent,e).resolve,b(void 0))),ie(()=>a++),An(1),re(c=>a===s.size?b(n):De))})}function mg(e){let t=e.children.map(n=>mg(n)).flat();return[e,...t]}function eb(e,t,n,r){let i=e.routeConfig,o=e._resolve;return i?.title!==void 0&&!cg(i)&&(o[pi]=i.title),tb(o,e,t,r).pipe(S(s=>(e._resolvedData=s,e.data=bs(e,e.parent,n).resolve,null)))}function tb(e,t,n,r){let i=bu(e);if(i.length===0)return b({});let o={};return q(i).pipe(re(s=>nb(e[s],t,n,r).pipe(ze(),ie(a=>{if(a instanceof di)throw Ms(new oi,a);o[s]=a}))),An(1),na(o),wt(s=>fg(s)?De:Tn(s)))}function nb(e,t,n,r){let i=gi(t)??r,o=ur(e,i),s=o.resolve?o.resolve(t,n):Ue(i,()=>o(t,n));return Wt(s)}function Eu(e){return Ce(t=>{let n=e(t);return n?q(n).pipe(S(()=>t)):b(t)})}var yg=(()=>{class e{buildTitle(n){let r,i=n.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===x);return r}getResolvedTitleForRoute(n){return n.data[pi]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:()=>g(rb),providedIn:"root"})}}return e})(),rb=(()=>{class e extends yg{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(E(Vp))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),el=new w("",{providedIn:"root",factory:()=>({})}),ib=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Ae({type:e,selectors:[["ng-component"]],standalone:!0,features:[Oe],decls:1,vars:0,template:function(r,i){r&1&&Re(0,"router-outlet")},dependencies:[Ju],encapsulation:2})}}return e})();function tl(e){let t=e.children&&e.children.map(tl),n=t?N(p({},e),{children:t}):p({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==x&&(n.component=ib),n}var nl=new w(""),ob=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(Xc)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return b(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=Wt(n.loadComponent()).pipe(S(vg),ie(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),Qt(()=>{this.componentLoaders.delete(n)})),i=new Sn(r,()=>new X).pipe(Mn());return this.componentLoaders.set(n,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return b({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=sb(r,this.compiler,n,this.onLoadEndListener).pipe(Qt(()=>{this.childrenLoaders.delete(r)})),s=new Sn(o,()=>new X).pipe(Mn());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function sb(e,t,n,r){return Wt(e.loadChildren()).pipe(S(vg),re(i=>i instanceof Nr||Array.isArray(i)?b(i):q(t.compileModuleAsync(i))),S(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(n).injector,s=o.get(nl,[],{optional:!0,self:!0}).flat()),{routes:s.map(tl),injector:o}}))}function ab(e){return e&&typeof e=="object"&&"default"in e}function vg(e){return ab(e)?e.default:e}var rl=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:()=>g(cb),providedIn:"root"})}}return e})(),cb=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),ub=new w("");var lb=new w(""),db=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new X,this.transitionAbortSubject=new X,this.configLoader=g(ob),this.environmentInjector=g(ge),this.urlSerializer=g(Qu),this.rootContexts=g(Ts),this.location=g(zr),this.inputBindingEnabled=g(Xu,{optional:!0})!==null,this.titleStrategy=g(yg),this.options=g(el,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(rl),this.createViewTransition=g(ub,{optional:!0}),this.navigationErrorHandler=g(lb,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>b(void 0),this.rootComponentType=null;let n=i=>this.events.next(new Ou(i)),r=i=>this.events.next(new Fu(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(N(p(p({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,i){return this.transitions=new ne({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:ri,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ae(o=>o.id!==0),S(o=>N(p({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Ce(o=>{let s=!1,a=!1;return b(o).pipe(Ce(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",be.SupersededByNewNavigation),De;this.currentTransition=o,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?N(p({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&l!=="reload"){let d="";return this.events.next(new yn(c.id,this.urlSerializer.serialize(c.rawUrl),d,Tu.IgnoredSameUrlNavigation)),c.resolve(!1),De}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return b(c).pipe(Ce(d=>{let h=this.transitions?.getValue();return this.events.next(new ai(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?De:Promise.resolve(d)}),JI(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ie(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=N(p({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new ws(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:m,extras:y}=c,v=new ai(d,this.urlSerializer.serialize(h),f,m);this.events.next(v);let I=sg(this.rootComponentType).snapshot;return this.currentTransition=o=N(p({},c),{targetSnapshot:I,urlAfterRedirects:h,extras:N(p({},y),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,b(o)}else{let d="";return this.events.next(new yn(c.id,this.urlSerializer.serialize(c.extractedUrl),d,Tu.IgnoredByUrlHandlingStrategy)),c.resolve(!1),De}}),ie(c=>{let u=new xu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),S(c=>(this.currentTransition=o=N(p({},c),{guards:vI(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),o)),xI(this.environmentInjector,c=>this.events.next(c)),ie(c=>{if(o.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw Ms(this.urlSerializer,c.guardsResult);let u=new Au(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),ae(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",be.GuardRejected),!1)),Eu(c=>{if(c.guards.canActivateChecks.length)return b(c).pipe(ie(u=>{let l=new Nu(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),Ce(u=>{let l=!1;return b(u).pipe(XI(this.paramsInheritanceStrategy,this.environmentInjector),ie({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(u,"",be.NoDataFromResolver)}}))}),ie(u=>{let l=new Ru(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}))}),Eu(c=>{let u=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(ie(h=>{l.component=h}),S(()=>{})));for(let h of l.children)d.push(...u(h));return d};return Yi(u(c.targetSnapshot.root)).pipe(It(null),it(1))}),Eu(()=>this.afterPreactivation()),Ce(()=>{let{currentSnapshot:c,targetSnapshot:u}=o,l=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return l?q(l).pipe(S(()=>o)):b(o)}),S(c=>{let u=hI(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o=N(p({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,o}),ie(()=>{this.events.next(new ui)}),yI(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),it(1),ie({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Gt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),ca(this.transitionAbortSubject.pipe(ie(c=>{throw c}))),Qt(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",be.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),wt(c=>{if(a=!0,dg(c))this.events.next(new yt(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),mI(c)?this.events.next(new ar(c.url,c.navigationBehaviorOptions)):o.resolve(!1);else{let u=new ci(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0);try{let l=Ue(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof di){let{message:d,cancellationCode:h}=Ms(this.urlSerializer,l);this.events.next(new yt(o.id,this.urlSerializer.serialize(o.extractedUrl),d,h)),this.events.next(new ar(l.redirectTo,l.navigationBehaviorOptions))}else{this.events.next(u);let d=n.errorHandler(c);o.resolve(!!d)}}catch(l){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(l)}}return De}))}))}cancelNavigationTransition(n,r,i){let o=new yt(n.id,this.urlSerializer.serialize(n.extractedUrl),r,i);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function fb(e){return e!==ri}var hb=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:()=>g(pb),providedIn:"root"})}}return e})(),Yu=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},pb=(()=>{class e extends Yu{static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Pr(e)))(i||e)}})()}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Dg=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:()=>g(gb),providedIn:"root"})}}return e})(),gb=(()=>{class e extends Dg{constructor(){super(...arguments),this.location=g(zr),this.urlSerializer=g(Qu),this.options=g(el,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(rl),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new vt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=sg(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof ai)this.stateMemento=this.createStateMemento();else if(n instanceof yn)this.rawUrlTree=r.initialUrl;else if(n instanceof ws){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else n instanceof ui?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof yt&&(n.code===be.GuardRejected||n.code===be.NoDataFromResolver)?this.restoreHistory(r):n instanceof ci?this.restoreHistory(r,!0):n instanceof Gt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let i=n instanceof vt?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let o=this.browserPageId,s=p(p({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(i,"",s)}else{let o=p(p({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Pr(e)))(i||e)}})()}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),ti=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(ti||{});function mb(e,t){e.events.pipe(ae(n=>n instanceof Gt||n instanceof yt||n instanceof ci||n instanceof yn),S(n=>n instanceof Gt||n instanceof yn?ti.COMPLETE:(n instanceof yt?n.code===be.Redirect||n.code===be.SupersededByNewNavigation:!1)?ti.REDIRECTING:ti.FAILED),ae(n=>n!==ti.REDIRECTING),it(1)).subscribe(()=>{t()})}function yb(e){throw e}var vb={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Db={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},il=(()=>{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=g(ns),this.stateManager=g(Dg),this.options=g(el,{optional:!0})||{},this.pendingTasks=g(Pt),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(db),this.urlSerializer=g(Qu),this.location=g(zr),this.urlHandlingStrategy=g(rl),this._events=new X,this.errorHandler=this.options.errorHandler||yb,this.navigated=!1,this.routeReuseStrategy=g(hb),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(nl,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(Xu,{optional:!0}),this.eventsSubscription=new J,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof yt&&r.code!==be.Redirect&&r.code!==be.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Gt)this.navigated=!0;else if(r instanceof ar){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c=p({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||fb(i.source)},s);this.scheduleNavigation(a,ri,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}wb(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});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),ri,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let c=p({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(tl),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=p(p({},this.currentUrlTree.queryParams),o);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let h=i?i.snapshot:this.routerState.snapshot.root;d=ng(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return rg(d,n,l,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let i=mn(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,ri,null,r)}navigate(n,r={skipLocationChange:!1}){return Cb(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let i;if(r===!0?i=p({},vb):r===!1?i=p({},Db):i=r,mn(n))return jp(this.currentUrlTree,n,i);let o=this.parseUrl(n);return jp(this.currentUrlTree,o,i)}removeEmptyProps(n){return Object.entries(n).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(n,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((d,h)=>{a=d,c=h});let l=this.pendingTasks.add();return mb(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Cb(e){for(let t=0;t{class e{constructor(n,r,i,o,s,a){this.router=n,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.onChanges=new X,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof Gt&&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.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(mn(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(n!==0||r||i||o||s||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(a,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:hh(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,n,r):i.removeAttribute(o,n)}get urlTree(){return this.routerLinkInput===null?null:mn(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(r){return new(r||e)(T(il),T(vn),Sc("tabindex"),T(un),T(Ke),T(Bt))}}static{this.\u0275dir=we({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&dn("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&ln("target",i.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:[Ur,lt]})}}return e})();var Eb=new w("");function wg(e,...t){return an([{provide:nl,multi:!0,useValue:e},[],{provide:vn,useFactory:Ib,deps:[il]},{provide:rs,multi:!0,useFactory:_b},t.map(n=>n.\u0275providers)])}function Ib(e){return e.routerState.root}function bb(e,t){return{\u0275kind:e,\u0275providers:t}}function _b(){let e=g(xt);return t=>{let n=e.get(jt);if(t!==n.components[0])return;let r=e.get(il),i=e.get(Mb);e.get(Sb)===1&&r.initialNavigation(),e.get(Tb,null,A.Optional)?.setUpPreloading(),e.get(Eb,null,A.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Mb=new w("",{factory:()=>new X}),Sb=new w("",{providedIn:"root",factory:()=>1});var Tb=new w("");function Eg(){return bb(6,[{provide:Bt,useClass:gp}])}var Ig=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\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(r,i){r&1&&(U(0,"nav",0)(1,"a",1),Z(2,"ngx-tinymce"),B(),U(3,"button",2),Re(4,"span",3),B(),U(5,"div",4)(6,"ul",5)(7,"li",6)(8,"a",7),Z(9,"Home"),B()(),U(10,"li",6)(11,"a",8),Z(12,"Other"),B()(),U(13,"li",6)(14,"a",9),Z(15,"Inline"),B()()()()(),U(16,"p",10),Z(17,"Angular for tinymce"),B(),U(18,"div",11),Re(19,"router-outlet"),B())},dependencies:[Ju,Cg],encapsulation:2})}}return e})();var Ng=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static{this.\u0275fac=function(r){return new(r||e)(T(un),T(Ke))}}static{this.\u0275dir=we({type:e})}}return e})(),xb=(()=>{class e extends Ng{static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Pr(e)))(i||e)}})()}static{this.\u0275dir=we({type:e,features:[Xn]})}}return e})(),Fs=new w("");var Ab={provide:Fs,useExisting:sn(()=>Rg),multi:!0};function Nb(){let e=gt()?gt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var Rb=new w(""),Rg=(()=>{class e extends Ng{constructor(n,r,i){super(n,r),this._compositionMode=i,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Nb())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static{this.\u0275fac=function(r){return new(r||e)(T(un),T(Ke),T(Rb,8))}}static{this.\u0275dir=we({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,i){r&1&&dn("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[Hr([Ab]),Xn]})}}return e})();var Ob=new w(""),Fb=new w("");function Og(e){return e!=null}function Fg(e){return hn(e)?q(e):e}function Pg(e){let t={};return e.forEach(n=>{t=n!=null?p(p({},t),n):t}),Object.keys(t).length===0?null:t}function kg(e,t){return t.map(n=>n(e))}function Pb(e){return!e.validate}function Lg(e){return e.map(t=>Pb(t)?t:n=>t.validate(n))}function kb(e){if(!e)return null;let t=e.filter(Og);return t.length==0?null:function(n){return Pg(kg(n,t))}}function Vg(e){return e!=null?kb(Lg(e)):null}function Lb(e){if(!e)return null;let t=e.filter(Og);return t.length==0?null:function(n){let r=kg(n,t).map(Fg);return ta(r).pipe(S(Pg))}}function jg(e){return e!=null?Lb(Lg(e)):null}function bg(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Vb(e){return e._rawValidators}function jb(e){return e._rawAsyncValidators}function ol(e){return e?Array.isArray(e)?e:[e]:[]}function Ns(e,t){return Array.isArray(e)?e.includes(t):e===t}function _g(e,t){let n=ol(t);return ol(e).forEach(i=>{Ns(n,i)||n.push(i)}),n}function Mg(e,t){return ol(t).filter(n=>!Ns(e,n))}var Rs=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=Vg(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=jg(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,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},sl=class extends Rs{get formDirective(){return null}get path(){return null}},wi=class extends Rs{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},al=class{constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Ub={"[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"},rR=N(p({},Ub),{"[class.ng-submitted]":"isSubmitted"}),hr=(()=>{class e extends al{constructor(n){super(n)}static{this.\u0275fac=function(r){return new(r||e)(T(wi,2))}}static{this.\u0275dir=we({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){r&2&&Yc("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[Xn]})}}return e})();var yi="VALID",As="INVALID",lr="PENDING",vi="DISABLED",fr=class{},Os=class extends fr{constructor(t,n){super(),this.value=t,this.source=n}},Di=class extends fr{constructor(t,n){super(),this.pristine=t,this.source=n}},Ci=class extends fr{constructor(t,n){super(),this.touched=t,this.source=n}},dr=class extends fr{constructor(t,n){super(),this.status=t,this.source=n}};function Bb(e){return(Ps(e)?e.validators:e)||null}function $b(e){return Array.isArray(e)?Vg(e):e||null}function Hb(e,t){return(Ps(t)?t.asyncValidators:e)||null}function zb(e){return Array.isArray(e)?jg(e):e||null}function Ps(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var cl=class{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=is(()=>this.statusReactive()),this.statusReactive=Xo(void 0),this._pristine=is(()=>this.pristineReactive()),this.pristineReactive=Xo(!0),this._touched=is(()=>this.touchedReactive()),this.touchedReactive=Xo(!1),this._events=new X,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return Ut(this.statusReactive)}set status(t){Ut(()=>this.statusReactive.set(t))}get valid(){return this.status===yi}get invalid(){return this.status===As}get pending(){return this.status==lr}get disabled(){return this.status===vi}get enabled(){return this.status!==vi}get pristine(){return Ut(this.pristineReactive)}set pristine(t){Ut(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return Ut(this.touchedReactive)}set touched(t){Ut(()=>this.touchedReactive.set(t))}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(_g(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(_g(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Mg(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Mg(t,this._rawAsyncValidators))}hasValidator(t){return Ns(this._rawValidators,t)}hasAsyncValidator(t){return Ns(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(N(p({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Ci(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new Ci(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(N(p({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Di(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new Di(!0,r))}markAsPending(t={}){this.status=lr;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new dr(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(N(p({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=vi,this.errors=null,this._forEachChild(i=>{i.disable(N(p({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Os(this.value,r)),this._events.next(new dr(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(N(p({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=yi,this._forEachChild(r=>{r.enable(N(p({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(N(p({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===yi||this.status===lr)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Os(this.value,n)),this._events.next(new dr(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(N(p({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?vi:yi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=lr,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=Fg(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new dr(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new Y,this.statusChanges=new Y}_calculateStatus(){return this._allControlsDisabled()?vi:this.errors?As:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(lr)?lr:this._anyControlsHaveStatus(As)?As:yi}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),i&&this._events.next(new Di(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new Ci(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Ps(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=$b(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=zb(this._rawAsyncValidators)}};var Ug=new w("CallSetDisabledState",{providedIn:"root",factory:()=>ul}),ul="always";function Gb(e,t){return[...t.path,e]}function Wb(e,t,n=ul){Zb(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),Yb(e,t),Kb(e,t),Qb(e,t),qb(e,t)}function Sg(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function qb(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function Zb(e,t){let n=Vb(e);t.validator!==null?e.setValidators(bg(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=jb(e);t.asyncValidator!==null?e.setAsyncValidators(bg(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();Sg(t._rawValidators,i),Sg(t._rawAsyncValidators,i)}function Yb(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Bg(e,t)})}function Qb(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Bg(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Bg(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Kb(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function Jb(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function Xb(e){return Object.getPrototypeOf(e.constructor)===xb}function e_(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(o=>{o.constructor===Rg?n=o:Xb(o)?r=o:i=o}),i||r||n||null}function Tg(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function xg(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var t_=class extends cl{constructor(t=null,n,r){super(Bb(n),Hb(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ps(n)&&(n.nonNullable||n.initialValueIsDefault)&&(xg(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Tg(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Tg(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){xg(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 n_={provide:wi,useExisting:sn(()=>Dt)},Ag=Promise.resolve(),Dt=(()=>{class e extends wi{constructor(n,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new t_,this._registered=!1,this.name="",this.update=new Y,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=e_(this,o)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),Jb(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(){Wb(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){Ag.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,i=r!==0&&Je(r);Ag.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?Gb(n,this._parent):[n]}static{this.\u0275fac=function(r){return new(r||e)(T(sl,9),T(Ob,10),T(Fb,10),T(Fs,10),T(ht,8),T(Ug,8))}}static{this.\u0275dir=we({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:[Hr([n_]),Xn,lt]})}}return e})();var r_=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Ot({type:e})}static{this.\u0275inj=Rt({})}}return e})();var pr=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Ug,useValue:n.callSetDisabledState??ul}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Ot({type:e})}static{this.\u0275inj=Rt({imports:[r_]})}}return e})();var i_=new w("HighlightJs-Config"),gr=(()=>{class e{constructor(n,r,i,o,s){this.el=n,this.ngModel=r,this.doc=i,this.ngZone=s,this.lang="html",this.mode="simple",Object.assign(this,o)}escapeHTML(n){return(n||"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}init(){this.ngZone.runOutsideAngular(()=>{this.destroy();let n=this.el.nativeElement,r=this.code||""+n.innerHTML.trim(),i=this.doc;if(this.codeEl=i.createElement(this.mode==="default"?"div":"pre"),this.codeEl==null)return;let o=this.mode==="simple";o?(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=r;let s=i.defaultView.hljs;s!=null&&(s.configure(p({},this.options)),o?s.highlightElement(this.codeEl):this.codeEl.querySelectorAll("pre code").forEach(a=>{s.highlightElement(a)}))})}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})})}static{this.\u0275fac=function(r){return new(r||e)(T(Ke),T(Dt,8),T(K),T(i_,8),T(G))}}static{this.\u0275dir=we({type:e,selectors:[["","highlight-js",""]],hostVars:2,hostBindings:function(r,i){r&2&&ts("display",i.mode==="simple"?"none":null)},inputs:{options:"options",lang:"lang",code:"code",mode:"mode"},exportAs:["highlightJs"],standalone:!0})}}return e})();var Dn=class{constructor(){this.baseURL="./assets/tinymce/",this.fileName="tinymce.min.js"}};var $g=(()=>{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(r=>{let i=typeof r=="string"?{path:r}:r;return i.type||(i.type=i.path.endsWith(".js")||i.callback?"script":"style"),i})}monitor(n){let r=this.fixPaths(n),i=[sa(),ae(o=>o.length!==0)];return r.length>0&&i.push(ae(o=>o.length===r.length&&o.every(s=>s.status==="ok"&&r.find(a=>a.path===s.path)))),this._notify.asObservable().pipe(Cr.apply(this,i))}clear(){this.list={},this.cached={}}load(n){return wn(this,null,function*(){return n=this.fixPaths(n),Promise.all(n.map(r=>r.type==="script"?this.loadScript(r.path,{callback:r.callback}):this.loadStyle(r.path))).then(r=>(this._notify.next(r),Promise.resolve(r)))})}loadScript(n,r){let{innerContent:i}=p({},r);return new Promise(o=>{if(this.list[n]===!0){o(N(p({},this.cached[n]),{status:"loading"}));return}this.list[n]=!0;let s=u=>{u.status==="ok"&&r?.callback?window[r?.callback]=()=>{a(u)}:a(u)},a=u=>{u.type="script",this.cached[n]=u,o(u),this._notify.next([u])},c=this.doc.createElement("script");c.type="text/javascript",c.src=n,c.charset="utf-8",i&&(c.innerHTML=i),c.readyState?c.onreadystatechange=()=>{(c.readyState==="loaded"||c.readyState==="complete")&&(c.onreadystatechange=null,s({path:n,status:"ok"}))}:c.onload=()=>s({path:n,status:"ok"}),c.onerror=u=>s({path:n,status:"error",error:u}),this.doc.getElementsByTagName("head")[0].appendChild(c)})}loadStyle(n,r){let{rel:i,innerContent:o}=p({rel:"stylesheet"},r);return new Promise(s=>{if(this.list[n]===!0){s(this.cached[n]);return}this.list[n]=!0;let a=this.doc.createElement("link");a.rel=i,a.type="text/css",a.href=n,o&&(a.innerHTML=o),this.doc.getElementsByTagName("head")[0].appendChild(a);let c={path:n,status:"ok",type:"style"};this.cached[n]=c,s(c)})}static{this.\u0275fac=function(r){return new(r||e)(E(K))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var a_=["*"];function c_(e,t){if(e&1&&Re(0,"textarea",3),e&2){let n=$r();ln("id",n.id)("placeholder",n.placeholder)}}function u_(e,t){if(e&1&&(U(0,"div"),ep(1),B()),e&2){let n=$r();ln("id",n.id)}}function l_(e,t){if(e&1&&(Qc(0),Z(1),Kc()),e&2){let n=$r(2);ye(),Jc(n._loading)}}function d_(e,t){if(e&1&&(U(0,"div",4),es(1,l_,2,1,"ng-container",5),B()),e&2){let n=$r();ye(),Ee("ngIf",n._loading)("ngIfElse",n._loadingTpl)}}var Hg=!(typeof document=="object"&&document),Cn=(()=>{class e{set disabled(n){this._disabled=n,this.setDisabled()}set loading(n){n instanceof Lr?(this._loading=null,this._loadingTpl=n):this._loading=n}get instance(){return this._instance}_getWin(){return this.doc.defaultView||window}constructor(n,r,i,o,s){this.defConfig=n,this.lazySrv=r,this.ngZone=i,this.doc=o,this.cd=s,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 Y}initDelay(){Hg||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:r,config:i,id:o,inline:s}=this;if(this._instance)return;if(r?.baseURL){let u=""+r.baseURL;u.endsWith("/")&&(u=u.substring(0,u.length-1)),n.tinymce.baseURL=u}let a=p(p({},r?.config),i),c=N(p(p({selector:"#"+o,inline:s},r?.config),i),{setup:u=>{this._instance=u,this.onChange&&u.on("change keyup",()=>{this.value=u.getContent(),this.ngZone.run(()=>this.onChange(this.value))}),typeof a.setup=="function"&&a.setup(u)},init_instance_callback:u=>{u&&this.value&&u.setContent(this.value),this.setDisabled(),typeof a.init_instance_callback=="function"&&a.init_instance_callback(u),this.ready.emit(u)}});a.auto_focus&&(c.auto_focus=o),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",r=this._instance.setMode;typeof r=="function"?r(n):this._instance.mode.set(n)})}ngAfterViewInit(){if(Hg)return;if(this._getWin().tinymce){this.initDelay();return}let{defConfig:n}=this,r=n&&n.baseURL,i=n&&n.fileName,o=(r||"./assets/tinymce/")+(i||"tinymce.min.js");this.lazySrv.monitor(o).subscribe(()=>this.initDelay()),this.lazySrv.load(o)}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()}static{this.\u0275fac=function(r){return new(r||e)(T(Dn,8),T($g),T(G),T(K),T(ht))}}static{this.\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",tu]},outputs:{ready:"ready"},exportAs:["tinymce"],standalone:!0,features:[Hr([{provide:Fs,useExisting:sn(()=>e),multi:!0}]),Ur,lt,Oe],ngContentSelectors:a_,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(r,i){r&1&&(Xh(),es(0,c_,1,2,"textarea",0)(1,u_,2,1,"div",1)(2,d_,2,2,"div",2)),r&2&&(Ee("ngIf",!i.inline),ye(),Ee("ngIf",i.inline),ye(),Ee("ngIf",i.load))},dependencies:[mp],styles:[`tinymce .tinymce-selector{display:none} +`],encapsulation:2,changeDetection:0})}}return e})();function zg(e){return an([{provide:Dn,useValue:e}])}var Gg=(()=>{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}}static{this.\u0275fac=function(r){return new(r||e)(T(Jr))}}static{this.\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(r,i){r&1&&(U(0,"div",0)(1,"div",1),Z(2,"Basic"),B(),U(3,"div",2)(4,"textarea",3),Z(5,"<"),Z(6,'tinymce [config]="config" [(ngModel)]="html">'),B(),U(7,"tinymce",4),Vt("ngModelChange",function(s){return fn(i.html,s)||(i.html=s),s}),B(),Z(8," Result: "),U(9,"div",5)(10,"div",2),Re(11,"blockquote",6),B()()()(),U(12,"div",0)(13,"div",1),Z(14,"Disabled"),B(),U(15,"div",2)(16,"tinymce",7),Vt("ngModelChange",function(s){return fn(i.html,s)||(i.html=s),s}),B()()()),r&2&&(ye(7),Lt("ngModel",i.html),Ee("config",i.config),ye(4),Ee("innerHTML",i.san.bypassSecurityTrustHtml(i.html),Zo),ye(5),Lt("ngModel",i.html))},dependencies:[pr,hr,Dt,gr,Cn],encapsulation:2})}}return e})();var Wg=(()=>{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)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\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(r,i){r&1&&(U(0,"div",0)(1,"div",1),Z(2,"Loading"),B(),U(3,"div",2)(4,"textarea",3),Z(5,"<"),Z(6,'tinymce [config]="config" [(ngModel)]="html">'),B(),U(7,"tinymce",4),Vt("ngModelChange",function(s){return fn(i.html,s)||(i.html=s),s}),dn("ready",function(s){return i.ready(s)}),B()()()),r&2&&(ye(7),Lt("ngModel",i.html),Ee("config",i.config))},dependencies:[pr,hr,Dt,gr,Cn]})}}return e})();var qg=(()=>{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)}static{this.\u0275fac=function(r){return new(r||e)(T(Jr))}}static{this.\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(r,i){r&1&&(U(0,"div",0)(1,"div",1),Z(2,"Inline mode"),B(),U(3,"div",2)(4,"textarea",3),Z(5,"<"),Z(6,'tinymce [config]="config" [(ngModel)]="html" inline>'),B(),U(7,"tinymce",4),Vt("ngModelChange",function(s){return fn(i.html,s)||(i.html=s),s}),B(),Z(8," Result: "),U(9,"div",5)(10,"div",2),Re(11,"blockquote",6),B()()()()),r&2&&(ye(7),Lt("ngModel",i.html),ye(4),Ee("innerHTML",i.san.bypassSecurityTrustHtml(i.html),Zo))},dependencies:[pr,hr,Dt,gr,Cn],encapsulation:2})}}return e})();var Zg=[{path:"",component:Gg},{path:"other",component:Wg},{path:"inline",component:qg}];Lp(Ig,{providers:[xp(),wg(Zg,Eg()),zg({baseURL:"//cdn.tiny.cloud/1/no-api-key/tinymce/7/"})]}).catch(e=>console.error(e)); diff --git a/polyfills-6EAL64PA.js b/polyfills-6EAL64PA.js deleted file mode 100644 index f67a2da..0000000 --- a/polyfills-6EAL64PA.js +++ /dev/null @@ -1,2 +0,0 @@ -var ie=globalThis;function Q(e){return(ie.__Zone_symbol_prefix||"__zone_symbol__")+e}function ft(){let e=ie.performance;function n(j){e&&e.mark&&e.mark(j)}function a(j,r){e&&e.measure&&e.measure(j,r)}n("Zone");let $=class ${static assertZonePatched(){if(ie.Promise!==D.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let r=$.current;for(;r.parent;)r=r.parent;return r}static get current(){return k.zone}static get currentTask(){return S}static __load_patch(r,i,s=!1){if(D.hasOwnProperty(r)){let b=ie[Q("forceDuplicateZoneCheck")]===!0;if(!s&&b)throw Error("Already loaded patch: "+r)}else if(!ie["__Zone_disable_"+r]){let b="Zone:"+r;n(b),D[r]=i(ie,$,w),a(b,b)}}get parent(){return this._parent}get name(){return this._name}constructor(r,i){this._parent=r,this._name=i?i.name||"unnamed":"",this._properties=i&&i.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,i)}get(r){let i=this.getZoneWith(r);if(i)return i._properties[r]}getZoneWith(r){let i=this;for(;i;){if(i._properties.hasOwnProperty(r))return i;i=i._parent}return null}fork(r){if(!r)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,r)}wrap(r,i){if(typeof r!="function")throw new Error("Expecting function got: "+r);let s=this._zoneDelegate.intercept(this,r,i),b=this;return function(){return b.runGuarded(s,this,arguments,i)}}run(r,i,s,b){k={parent:k,zone:this};try{return this._zoneDelegate.invoke(this,r,i,s,b)}finally{k=k.parent}}runGuarded(r,i=null,s,b){k={parent:k,zone:this};try{try{return this._zoneDelegate.invoke(this,r,i,s,b)}catch(x){if(this._zoneDelegate.handleError(this,x))throw x}}finally{k=k.parent}}runTask(r,i,s){if(r.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(r.zone||te).name+"; Execution: "+this.name+")");if(r.state===X&&(r.type===U||r.type===g))return;let b=r.state!=F;b&&r._transitionTo(F,d),r.runCount++;let x=S;S=r,k={parent:k,zone:this};try{r.type==g&&r.data&&!r.data.isPeriodic&&(r.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,r,i,s)}catch(M){if(this._zoneDelegate.handleError(this,M))throw M}}finally{r.state!==X&&r.state!==Y&&(r.type==U||r.data&&r.data.isPeriodic?b&&r._transitionTo(d,F):(r.runCount=0,this._updateTaskCount(r,-1),b&&r._transitionTo(X,F,X))),k=k.parent,S=x}}scheduleTask(r){if(r.zone&&r.zone!==this){let s=this;for(;s;){if(s===r.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${r.zone.name}`);s=s.parent}}r._transitionTo(v,X);let i=[];r._zoneDelegates=i,r._zone=this;try{r=this._zoneDelegate.scheduleTask(this,r)}catch(s){throw r._transitionTo(Y,v,X),this._zoneDelegate.handleError(this,s),s}return r._zoneDelegates===i&&this._updateTaskCount(r,1),r.state==v&&r._transitionTo(d,v),r}scheduleMicroTask(r,i,s,b){return this.scheduleTask(new _(B,r,i,s,b,void 0))}scheduleMacroTask(r,i,s,b,x){return this.scheduleTask(new _(g,r,i,s,b,x))}scheduleEventTask(r,i,s,b,x){return this.scheduleTask(new _(U,r,i,s,b,x))}cancelTask(r){if(r.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(r.zone||te).name+"; Execution: "+this.name+")");if(!(r.state!==d&&r.state!==F)){r._transitionTo(q,d,F);try{this._zoneDelegate.cancelTask(this,r)}catch(i){throw r._transitionTo(Y,q),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(r,-1),r._transitionTo(X,q),r.runCount=0,r}}_updateTaskCount(r,i){let s=r._zoneDelegates;i==-1&&(r._zoneDelegates=null);for(let b=0;bj.hasTask(i,s),onScheduleTask:(j,r,i,s)=>j.scheduleTask(i,s),onInvokeTask:(j,r,i,s,b,x)=>j.invokeTask(i,s,b,x),onCancelTask:(j,r,i,s)=>j.cancelTask(i,s)};class f{get zone(){return this._zone}constructor(r,i,s){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=r,this._parentDelegate=i,this._forkZS=s&&(s&&s.onFork?s:i._forkZS),this._forkDlgt=s&&(s.onFork?i:i._forkDlgt),this._forkCurrZone=s&&(s.onFork?this._zone:i._forkCurrZone),this._interceptZS=s&&(s.onIntercept?s:i._interceptZS),this._interceptDlgt=s&&(s.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=s&&(s.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=s&&(s.onInvoke?s:i._invokeZS),this._invokeDlgt=s&&(s.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=s&&(s.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=s&&(s.onHandleError?s:i._handleErrorZS),this._handleErrorDlgt=s&&(s.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=s&&(s.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=s&&(s.onScheduleTask?s:i._scheduleTaskZS),this._scheduleTaskDlgt=s&&(s.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=s&&(s.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=s&&(s.onInvokeTask?s:i._invokeTaskZS),this._invokeTaskDlgt=s&&(s.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=s&&(s.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=s&&(s.onCancelTask?s:i._cancelTaskZS),this._cancelTaskDlgt=s&&(s.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=s&&(s.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let b=s&&s.onHasTask,x=i&&i._hasTaskZS;(b||x)&&(this._hasTaskZS=b?s:c,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,s.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),s.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),s.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(r,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,r,i):new t(r,i)}intercept(r,i,s){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,r,i,s):i}invoke(r,i,s,b,x){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,r,i,s,b,x):i.apply(s,b)}handleError(r,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,r,i):!0}scheduleTask(r,i){let s=i;if(this._scheduleTaskZS)this._hasTaskZS&&s._zoneDelegates.push(this._hasTaskDlgtOwner),s=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,r,i),s||(s=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==B)W(i);else throw new Error("Task is missing scheduleFn.");return s}invokeTask(r,i,s,b){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,r,i,s,b):i.callback.apply(s,b)}cancelTask(r,i){let s;if(this._cancelTaskZS)s=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,r,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");s=i.cancelFn(i)}return s}hasTask(r,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,r,i)}catch(s){this.handleError(r,s)}}_updateTaskCount(r,i){let s=this._taskCounts,b=s[r],x=s[r]=b+i;if(x<0)throw new Error("More tasks executed then were scheduled.");if(b==0||x==0){let M={microTask:s.microTask>0,macroTask:s.macroTask>0,eventTask:s.eventTask>0,change:r};this.hasTask(this._zone,M)}}}class _{constructor(r,i,s,b,x,M){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=r,this.source=i,this.data=b,this.scheduleFn=x,this.cancelFn=M,!s)throw new Error("callback is not defined");this.callback=s;let de=this;r===U&&b&&b.useG?this.invoke=_.invokeTask:this.invoke=function(){return _.invokeTask.call(ie,de,this,arguments)}}static invokeTask(r,i,s){r||(r=this),K++;try{return r.runCount++,r.zone.runTask(r,i,s)}finally{K==1&&A(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,v)}_transitionTo(r,i,s){if(this._state===i||this._state===s)this._state=r,r==X&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${r}', expecting state '${i}'${s?" or '"+s+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let E=Q("setTimeout"),m=Q("Promise"),C=Q("then"),T=[],I=!1,P;function Z(j){if(P||ie[m]&&(P=ie[m].resolve(0)),P){let r=P[C];r||(r=P.then),r.call(P,j)}else ie[E](j,0)}function W(j){K===0&&T.length===0&&Z(A),j&&T.push(j)}function A(){if(!I){for(I=!0;T.length;){let j=T;T=[];for(let r=0;rk,onUnhandledError:z,microtaskDrainDone:z,scheduleMicroTask:W,showUncaughtError:()=>!t[Q("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:z,patchMethod:()=>z,bindArguments:()=>[],patchThen:()=>z,patchMacroTask:()=>z,patchEventPrototype:()=>z,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>z,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>z,wrapWithCurrentZone:()=>z,filterProperties:()=>[],attachOriginToPatched:()=>z,_redefineProperty:()=>z,patchCallbacks:()=>z,nativeScheduleMicroTask:Z},k={parent:null,zone:new t(null,null)},S=null,K=0;function z(){}return a("Zone","Zone"),t}function ht(){let e=globalThis,n=e[Q("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(n||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=ft(),e.Zone}var ve=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,dt=Object.create,_t=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=Q(He),Ie=Q(xe),ce="true",ae="false",be=Q("");function Ge(e,n){return Zone.current.wrap(e,n)}function Ve(e,n,a,t,c){return Zone.current.scheduleMacroTask(e,n,a,t,c)}var H=Q,Se=typeof window<"u",ye=Se?window:void 0,J=Se&&ye||globalThis,Et="removeAttribute";function Fe(e,n){for(let a=e.length-1;a>=0;a--)typeof e[a]=="function"&&(e[a]=Ge(e[a],n+"_"+a));return e}function Tt(e,n){let a=e.constructor.name;for(let t=0;t{let m=function(){return E.apply(this,Fe(arguments,a+"."+c))};return ue(m,E),m})(f)}}}function Qe(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var et=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,De=!("nw"in J)&&typeof J.process<"u"&&J.process.toString()==="[object process]",Be=!De&&!et&&!!(Se&&ye.HTMLElement),tt=typeof J.process<"u"&&J.process.toString()==="[object process]"&&!et&&!!(Se&&ye.HTMLElement),Ce={},Ye=function(e){if(e=e||J.event,!e)return;let n=Ce[e.type];n||(n=Ce[e.type]=H("ON_PROPERTY"+e.type));let a=this||e.target||J,t=a[n],c;if(Be&&a===ye&&e.type==="error"){let f=e;c=t&&t.call(this,f.message,f.filename,f.lineno,f.colno,f.error),c===!0&&e.preventDefault()}else c=t&&t.apply(this,arguments),c!=null&&!c&&e.preventDefault();return c};function $e(e,n,a){let t=ve(e,n);if(!t&&a&&ve(a,n)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let c=H("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete t.writable,delete t.value;let f=t.get,_=t.set,E=n.slice(2),m=Ce[E];m||(m=Ce[E]=H("ON_PROPERTY"+E)),t.set=function(C){let T=this;if(!T&&e===J&&(T=J),!T)return;typeof T[m]=="function"&&T.removeEventListener(E,Ye),_&&_.call(T,null),T[m]=C,typeof C=="function"&&T.addEventListener(E,Ye,!1)},t.get=function(){let C=this;if(!C&&e===J&&(C=J),!C)return null;let T=C[m];if(T)return T;if(f){let I=f.call(this);if(I)return t.set.call(this,I),typeof C[Et]=="function"&&C.removeAttribute(n),I}return null},Ae(e,n,t),e[c]=!0}function nt(e,n,a){if(n)for(let t=0;tfunction(_,E){let m=a(_,E);return m.cbIdx>=0&&typeof E[m.cbIdx]=="function"?Ve(m.name,E[m.cbIdx],m,c):f.apply(_,E)})}function ue(e,n){e[H("OriginalDelegate")]=n}var Je=!1,Me=!1;function yt(){try{let e=ye.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function mt(){if(Je)return Me;Je=!0;try{let e=ye.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}var ge=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){ge=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ge=!1}var pt={useG:!0},ee={},rt={},ot=new RegExp("^"+be+"(\\w+)(true|false)$"),st=H("propagationStopped");function it(e,n){let a=(n?n(e):e)+ae,t=(n?n(e):e)+ce,c=be+a,f=be+t;ee[e]={},ee[e][ae]=c,ee[e][ce]=f}function kt(e,n,a,t){let c=t&&t.add||He,f=t&&t.rm||xe,_=t&&t.listeners||"eventListeners",E=t&&t.rmAll||"removeAllListeners",m=H(c),C="."+c+":",T="prependListener",I="."+T+":",P=function(v,d,F){if(v.isRemoved)return;let q=v.callback;typeof q=="object"&&q.handleEvent&&(v.callback=g=>q.handleEvent(g),v.originalDelegate=q);let Y;try{v.invoke(v,d,[F])}catch(g){Y=g}let B=v.options;if(B&&typeof B=="object"&&B.once){let g=v.originalDelegate?v.originalDelegate:v.callback;d[f].call(d,F.type,g,B)}return Y};function Z(v,d,F){if(d=d||e.event,!d)return;let q=v||d.target||e,Y=q[ee[d.type][F?ce:ae]];if(Y){let B=[];if(Y.length===1){let g=P(Y[0],q,d);g&&B.push(g)}else{let g=Y.slice();for(let U=0;U{throw U})}}}let W=function(v){return Z(this,v,!1)},A=function(v){return Z(this,v,!0)};function te(v,d){if(!v)return!1;let F=!0;d&&d.useG!==void 0&&(F=d.useG);let q=d&&d.vh,Y=!0;d&&d.chkDup!==void 0&&(Y=d.chkDup);let B=!1;d&&d.rt!==void 0&&(B=d.rt);let g=v;for(;g&&!g.hasOwnProperty(c);)g=je(g);if(!g&&v[c]&&(g=v),!g||g[m])return!1;let U=d&&d.eventNameToString,D={},w=g[m]=g[c],k=g[H(f)]=g[f],S=g[H(_)]=g[_],K=g[H(E)]=g[E],z;d&&d.prepend&&(z=g[H(d.prepend)]=g[d.prepend]);function $(o,u){return!ge&&typeof o=="object"&&o?!!o.capture:!ge||!u?o:typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}}let j=function(o){if(!D.isExisting)return w.call(D.target,D.eventName,D.capture?A:W,D.options)},r=function(o){if(!o.isRemoved){let u=ee[o.eventName],p;u&&(p=u[o.capture?ce:ae]);let R=p&&o.target[p];if(R){for(let y=0;yne.zone.cancelTask(ne);o.call(_e,"abort",se,{once:!0}),ne.removeAbortListener=()=>_e.removeEventListener("abort",se)}if(D.target=null,pe&&(pe.taskData=null),Ue&&(D.options.once=!0),!ge&&typeof ne.options=="boolean"||(ne.options=oe),ne.target=N,ne.capture=Oe,ne.eventName=L,V&&(ne.originalDelegate=G),O?Ee.unshift(ne):Ee.push(ne),y)return N}};return g[c]=l(w,C,x,M,B),z&&(g[T]=l(z,I,s,M,B,!0)),g[f]=function(){let o=this||e,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let p=arguments[2],R=p?typeof p=="boolean"?!0:p.capture:!1,y=arguments[1];if(!y)return k.apply(this,arguments);if(q&&!q(k,y,o,arguments))return;let O=ee[u],N;O&&(N=O[R?ce:ae]);let L=N&&o[N];if(L)for(let G=0;Gfunction(c,f){c[st]=!0,t&&t.apply(c,f)})}function bt(e,n){n.patchMethod(e,"queueMicrotask",a=>function(t,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var Re=H("zoneTask");function Te(e,n,a,t){let c=null,f=null;n+=t,a+=t;let _={};function E(C){let T=C.data;return T.args[0]=function(){return C.invoke.apply(this,arguments)},T.handleId=c.apply(e,T.args),C}function m(C){return f.call(e,C.data.handleId)}c=le(e,n,C=>function(T,I){if(typeof I[0]=="function"){let P={isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?I[1]||0:void 0,args:I},Z=I[0];I[0]=function(){try{return Z.apply(this,arguments)}finally{P.isPeriodic||(typeof P.handleId=="number"?delete _[P.handleId]:P.handleId&&(P.handleId[Re]=null))}};let W=Ve(n,I[0],P,E,m);if(!W)return W;let A=W.data.handleId;return typeof A=="number"?_[A]=W:A&&(A[Re]=W),A&&A.ref&&A.unref&&typeof A.ref=="function"&&typeof A.unref=="function"&&(W.ref=A.ref.bind(A),W.unref=A.unref.bind(A)),typeof A=="number"||A?A:W}else return C.apply(e,I)}),f=le(e,a,C=>function(T,I){let P=I[0],Z;typeof P=="number"?Z=_[P]:(Z=P&&P[Re],Z||(Z=P)),Z&&typeof Z.type=="string"?Z.state!=="notScheduled"&&(Z.cancelFn&&Z.data.isPeriodic||Z.runCount===0)&&(typeof P=="number"?delete _[P]:P&&(P[Re]=null),Z.zone.cancelTask(Z)):C.apply(e,I)})}function Pt(e,n){let{isBrowser:a,isMix:t}=n.getGlobalObjects();if(!a&&!t||!e.customElements||!("customElements"in e))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",c)}function wt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:t,TRUE_STR:c,FALSE_STR:f,ZONE_SYMBOL_PREFIX:_}=n.getGlobalObjects();for(let m=0;mf.target===e);if(!t||t.length===0)return n;let c=t[0].ignoreProperties;return n.filter(f=>c.indexOf(f)===-1)}function Ke(e,n,a,t){if(!e)return;let c=at(e,n,a);nt(e,c,t)}function Ze(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Ct(e,n){if(De&&!tt||Zone[e.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,t=[];if(Be){let c=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=yt()?[{target:c,ignoreProperties:["error"]}]:[];Ke(c,Ze(c),a&&a.concat(f),je(c))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{let a=n[e.__symbol__("legacyPatch")];a&&a()}),e.__load_patch("timers",n=>{let a="set",t="clear";Te(n,a,t,"Timeout"),Te(n,a,t,"Interval"),Te(n,a,t,"Immediate")}),e.__load_patch("requestAnimationFrame",n=>{Te(n,"request","cancel","AnimationFrame"),Te(n,"mozRequest","mozCancel","AnimationFrame"),Te(n,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(n,a)=>{let t=["alert","prompt","confirm"];for(let c=0;cfunction(C,T){return a.current.run(_,n,T,m)})}}),e.__load_patch("EventTarget",(n,a,t)=>{Rt(n,t),wt(n,t);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&t.patchEventTarget(n,t,[c.prototype])}),e.__load_patch("MutationObserver",(n,a,t)=>{ke("MutationObserver"),ke("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(n,a,t)=>{ke("IntersectionObserver")}),e.__load_patch("FileReader",(n,a,t)=>{ke("FileReader")}),e.__load_patch("on_property",(n,a,t)=>{Ct(t,n)}),e.__load_patch("customElements",(n,a,t)=>{Pt(n,t)}),e.__load_patch("XHR",(n,a)=>{C(n);let t=H("xhrTask"),c=H("xhrSync"),f=H("xhrListener"),_=H("xhrScheduled"),E=H("xhrURL"),m=H("xhrErrorBeforeScheduled");function C(T){let I=T.XMLHttpRequest;if(!I)return;let P=I.prototype;function Z(w){return w[t]}let W=P[Le],A=P[Ie];if(!W){let w=T.XMLHttpRequestEventTarget;if(w){let k=w.prototype;W=k[Le],A=k[Ie]}}let te="readystatechange",X="scheduled";function v(w){let k=w.data,S=k.target;S[_]=!1,S[m]=!1;let K=S[f];W||(W=S[Le],A=S[Ie]),K&&A.call(S,te,K);let z=S[f]=()=>{if(S.readyState===S.DONE)if(!k.aborted&&S[_]&&w.state===X){let j=S[a.__symbol__("loadfalse")];if(S.status!==0&&j&&j.length>0){let r=w.invoke;w.invoke=function(){let i=S[a.__symbol__("loadfalse")];for(let s=0;sfunction(w,k){return w[c]=k[2]==!1,w[E]=k[1],q.apply(w,k)}),Y="XMLHttpRequest.send",B=H("fetchTaskAborting"),g=H("fetchTaskScheduling"),U=le(P,"send",()=>function(w,k){if(a.current[g]===!0||w[c])return U.apply(w,k);{let S={target:w,url:w[E],isPeriodic:!1,args:k,aborted:!1},K=Ve(Y,d,S,v,F);w&&w[m]===!0&&!S.aborted&&K.state===X&&K.invoke()}}),D=le(P,"abort",()=>function(w,k){let S=Z(w);if(S&&typeof S.type=="string"){if(S.cancelFn==null||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(a.current[B]===!0)return D.apply(w,k)})}}),e.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&Tt(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(n,a)=>{function t(c){return function(f){ct(n,c).forEach(E=>{let m=n.PromiseRejectionEvent;if(m){let C=new m(c,{promise:f.promise,reason:f.rejection});E.invoke(C)}})}}n.PromiseRejectionEvent&&(a[H("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),a[H("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(n,a,t)=>{bt(n,t)})}function Dt(e){e.__load_patch("ZoneAwarePromise",(n,a,t)=>{let c=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function _(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let E=t.symbol,m=[],C=n[E("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,T=E("Promise"),I=E("then"),P="__creationTrace__";t.onUnhandledError=h=>{if(t.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},t.microtaskDrainDone=()=>{for(;m.length;){let h=m.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){W(l)}}};let Z=E("unhandledPromiseRejectionHandler");function W(h){t.onUnhandledError(h);try{let l=a[Z];typeof l=="function"&&l.call(this,h)}catch{}}function A(h){return h&&h.then}function te(h){return h}function X(h){return M.reject(h)}let v=E("state"),d=E("value"),F=E("finally"),q=E("parentPromiseValue"),Y=E("parentPromiseState"),B="Promise.then",g=null,U=!0,D=!1,w=0;function k(h,l){return o=>{try{$(h,l,o)}catch(u){$(h,!1,u)}}}let S=function(){let h=!1;return function(o){return function(){h||(h=!0,o.apply(null,arguments))}}},K="Promise resolved with itself",z=E("currentTaskTrace");function $(h,l,o){let u=S();if(h===o)throw new TypeError(K);if(h[v]===g){let p=null;try{(typeof o=="object"||typeof o=="function")&&(p=o&&o.then)}catch(R){return u(()=>{$(h,!1,R)})(),h}if(l!==D&&o instanceof M&&o.hasOwnProperty(v)&&o.hasOwnProperty(d)&&o[v]!==g)r(o),$(h,o[v],o[d]);else if(l!==D&&typeof p=="function")try{p.call(o,u(k(h,l)),u(k(h,!1)))}catch(R){u(()=>{$(h,!1,R)})()}else{h[v]=l;let R=h[d];if(h[d]=o,h[F]===F&&l===U&&(h[v]=h[Y],h[d]=h[q]),l===D&&o instanceof Error){let y=a.currentTask&&a.currentTask.data&&a.currentTask.data[P];y&&f(o,z,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y{try{let O=h[d],N=!!o&&F===o[F];N&&(o[q]=O,o[Y]=R);let L=l.run(y,void 0,N&&y!==X&&y!==te?[]:[O]);$(o,!0,L)}catch(O){$(o,!1,O)}},o)}let s="function ZoneAwarePromise() { [native code] }",b=function(){},x=n.AggregateError;class M{static toString(){return s}static resolve(l){return l instanceof M?l:$(new this(null),U,l)}static reject(l){return $(new this(null),D,l)}static withResolvers(){let l={};return l.promise=new M((o,u)=>{l.resolve=o,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new x([],"All promises were rejected"));let o=[],u=0;try{for(let y of l)u++,o.push(M.resolve(y))}catch{return Promise.reject(new x([],"All promises were rejected"))}if(u===0)return Promise.reject(new x([],"All promises were rejected"));let p=!1,R=[];return new M((y,O)=>{for(let N=0;N{p||(p=!0,y(L))},L=>{R.push(L),u--,u===0&&(p=!0,O(new x(R,"All promises were rejected")))})})}static race(l){let o,u,p=new this((O,N)=>{o=O,u=N});function R(O){o(O)}function y(O){u(O)}for(let O of l)A(O)||(O=this.resolve(O)),O.then(R,y);return p}static all(l){return M.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof M?this:M).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,o){let u,p,R=new this((L,G)=>{u=L,p=G}),y=2,O=0,N=[];for(let L of l){A(L)||(L=this.resolve(L));let G=O;try{L.then(V=>{N[G]=o?o.thenCallback(V):V,y--,y===0&&u(N)},V=>{o?(N[G]=o.errorCallback(V),y--,y===0&&u(N)):p(V)})}catch(V){p(V)}y++,O++}return y-=2,y===0&&u(N),R}constructor(l){let o=this;if(!(o instanceof M))throw new Error("Must be an instanceof Promise.");o[v]=g,o[d]=[];try{let u=S();l&&l(u(k(o,U)),u(k(o,D)))}catch(u){$(o,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return M}then(l,o){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||M);let p=new u(b),R=a.current;return this[v]==g?this[d].push(R,p,l,o):i(this,R,p,l,o),p}catch(l){return this.then(null,l)}finally(l){let o=this.constructor?.[Symbol.species];(!o||typeof o!="function")&&(o=M);let u=new o(b);u[F]=F;let p=a.current;return this[v]==g?this[d].push(p,u,l,l):i(this,p,u,l,l),u}}M.resolve=M.resolve,M.reject=M.reject,M.race=M.race,M.all=M.all;let de=n[T]=n.Promise;n.Promise=M;let me=E("thenPatched");function he(h){let l=h.prototype,o=c(l,"then");if(o&&(o.writable===!1||!o.configurable))return;let u=l.then;l[I]=u,h.prototype.then=function(p,R){return new M((O,N)=>{u.call(this,O,N)}).then(p,R)},h[me]=!0}t.patchThen=he;function Pe(h){return function(l,o){let u=h.apply(l,o);if(u instanceof M)return u;let p=u.constructor;return p[me]||he(p),u}}return de&&(he(de),le(n,"fetch",h=>Pe(h))),Promise[a.__symbol__("uncaughtPromiseErrors")]=m,M})}function Ot(e){e.__load_patch("toString",n=>{let a=Function.prototype.toString,t=H("OriginalDelegate"),c=H("Promise"),f=H("Error"),_=function(){if(typeof this=="function"){let T=this[t];if(T)return typeof T=="function"?a.call(T):Object.prototype.toString.call(T);if(this===Promise){let I=n[c];if(I)return a.call(I)}if(this===Error){let I=n[f];if(I)return a.call(I)}}return a.call(this)};_[t]=a,Function.prototype.toString=_;let E=Object.prototype.toString,m="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?m:E.call(this)}})}function Nt(e,n,a,t,c){let f=Zone.__symbol__(t);if(n[f])return;let _=n[f]=n[t];n[t]=function(E,m,C){return m&&m.prototype&&c.forEach(function(T){let I=`${a}.${t}::`+T,P=m.prototype;try{if(P.hasOwnProperty(T)){let Z=e.ObjectGetOwnPropertyDescriptor(P,T);Z&&Z.value?(Z.value=e.wrapWithCurrentZone(Z.value,I),e._redefineProperty(m.prototype,T,Z)):P[T]&&(P[T]=e.wrapWithCurrentZone(P[T],I))}else P[T]&&(P[T]=e.wrapWithCurrentZone(P[T],I))}catch{}}),_.call(n,E,m,C)},e.attachOriginToPatched(n[t],_)}function Lt(e){e.__load_patch("util",(n,a,t)=>{let c=Ze(n);t.patchOnProperties=nt,t.patchMethod=le,t.bindArguments=Fe,t.patchMacroTask=gt;let f=a.__symbol__("BLACK_LISTED_EVENTS"),_=a.__symbol__("UNPATCHED_EVENTS");n[_]&&(n[f]=n[_]),n[f]&&(a[f]=a[_]=n[f]),t.patchEventPrototype=vt,t.patchEventTarget=kt,t.isIEOrEdge=mt,t.ObjectDefineProperty=Ae,t.ObjectGetOwnPropertyDescriptor=ve,t.ObjectCreate=dt,t.ArraySlice=_t,t.patchClass=ke,t.wrapWithCurrentZone=Ge,t.filterProperties=at,t.attachOriginToPatched=ue,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Nt,t.getGlobalObjects=()=>({globalSources:rt,zoneSymbolEventNames:ee,eventNames:c,isBrowser:Be,isMix:tt,isNode:De,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:be,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function It(e){Dt(e),Ot(e),Lt(e)}var lt=ht();It(lt);St(lt); diff --git a/polyfills-FFHMD2TL.js b/polyfills-FFHMD2TL.js new file mode 100644 index 0000000..b01b791 --- /dev/null +++ b/polyfills-FFHMD2TL.js @@ -0,0 +1,2 @@ +var ce=globalThis;function te(e){return(ce.__Zone_symbol_prefix||"__zone_symbol__")+e}function dt(){let e=ce.performance;function n(M){e&&e.mark&&e.mark(M)}function a(M,s){e&&e.measure&&e.measure(M,s)}n("Zone");class t{static{this.__symbol__=te}static assertZonePatched(){if(ce.Promise!==S.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let s=t.current;for(;s.parent;)s=s.parent;return s}static get current(){return b.zone}static get currentTask(){return D}static __load_patch(s,i,o=!1){if(S.hasOwnProperty(s)){let g=ce[te("forceDuplicateZoneCheck")]===!0;if(!o&&g)throw Error("Already loaded patch: "+s)}else if(!ce["__Zone_disable_"+s]){let g="Zone:"+s;n(g),S[s]=i(ce,t,w),a(g,g)}}get parent(){return this._parent}get name(){return this._name}constructor(s,i){this._parent=s,this._name=i?i.name||"unnamed":"",this._properties=i&&i.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,i)}get(s){let i=this.getZoneWith(s);if(i)return i._properties[s]}getZoneWith(s){let i=this;for(;i;){if(i._properties.hasOwnProperty(s))return i;i=i._parent}return null}fork(s){if(!s)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,s)}wrap(s,i){if(typeof s!="function")throw new Error("Expecting function got: "+s);let o=this._zoneDelegate.intercept(this,s,i),g=this;return function(){return g.runGuarded(o,this,arguments,i)}}run(s,i,o,g){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,s,i,o,g)}finally{b=b.parent}}runGuarded(s,i=null,o,g){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,s,i,o,g)}catch(V){if(this._zoneDelegate.handleError(this,V))throw V}}finally{b=b.parent}}runTask(s,i,o){if(s.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(s.zone||J).name+"; Execution: "+this.name+")");let g=s,{type:V,data:{isPeriodic:ee=!1,isRefreshable:Z=!1}={}}=s;if(s.state===q&&(V===z||V===y))return;let he=s.state!=A;he&&g._transitionTo(A,d);let _e=D;D=g,b={parent:b,zone:this};try{V==y&&s.data&&!ee&&!Z&&(s.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,g,i,o)}catch(Q){if(this._zoneDelegate.handleError(this,Q))throw Q}}finally{let Q=s.state;if(Q!==q&&Q!==X)if(V==z||ee||Z&&Q===k)he&&g._transitionTo(d,A,k);else{let Ee=g._zoneDelegates;this._updateTaskCount(g,-1),he&&g._transitionTo(q,A,q),Z&&(g._zoneDelegates=Ee)}b=b.parent,D=_e}}scheduleTask(s){if(s.zone&&s.zone!==this){let o=this;for(;o;){if(o===s.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${s.zone.name}`);o=o.parent}}s._transitionTo(k,q);let i=[];s._zoneDelegates=i,s._zone=this;try{s=this._zoneDelegate.scheduleTask(this,s)}catch(o){throw s._transitionTo(X,k,q),this._zoneDelegate.handleError(this,o),o}return s._zoneDelegates===i&&this._updateTaskCount(s,1),s.state==k&&s._transitionTo(d,k),s}scheduleMicroTask(s,i,o,g){return this.scheduleTask(new E(G,s,i,o,g,void 0))}scheduleMacroTask(s,i,o,g,V){return this.scheduleTask(new E(y,s,i,o,g,V))}scheduleEventTask(s,i,o,g,V){return this.scheduleTask(new E(z,s,i,o,g,V))}cancelTask(s){if(s.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(s.zone||J).name+"; Execution: "+this.name+")");if(!(s.state!==d&&s.state!==A)){s._transitionTo(x,d,A);try{this._zoneDelegate.cancelTask(this,s)}catch(i){throw s._transitionTo(X,x),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(s,-1),s._transitionTo(q,x),s.runCount=-1,s}}_updateTaskCount(s,i){let o=s._zoneDelegates;i==-1&&(s._zoneDelegates=null);for(let g=0;gM.hasTask(i,o),onScheduleTask:(M,s,i,o)=>M.scheduleTask(i,o),onInvokeTask:(M,s,i,o,g,V)=>M.invokeTask(i,o,g,V),onCancelTask:(M,s,i,o)=>M.cancelTask(i,o)};class f{get zone(){return this._zone}constructor(s,i,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=s,this._parentDelegate=i,this._forkZS=o&&(o&&o.onFork?o:i._forkZS),this._forkDlgt=o&&(o.onFork?i:i._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:i._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:i._interceptZS),this._interceptDlgt=o&&(o.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:i._invokeZS),this._invokeDlgt=o&&(o.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:i._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:i._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:i._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:i._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let g=o&&o.onHasTask,V=i&&i._hasTaskZS;(g||V)&&(this._hasTaskZS=g?o:c,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(s,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,s,i):new t(s,i)}intercept(s,i,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,s,i,o):i}invoke(s,i,o,g,V){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,s,i,o,g,V):i.apply(o,g)}handleError(s,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,s,i):!0}scheduleTask(s,i){let o=i;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,s,i),o||(o=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==G)U(i);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(s,i,o,g){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,s,i,o,g):i.callback.apply(o,g)}cancelTask(s,i){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,s,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");o=i.cancelFn(i)}return o}hasTask(s,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,s,i)}catch(o){this.handleError(s,o)}}_updateTaskCount(s,i){let o=this._taskCounts,g=o[s],V=o[s]=g+i;if(V<0)throw new Error("More tasks executed then were scheduled.");if(g==0||V==0){let ee={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:s};this.hasTask(this._zone,ee)}}}class E{constructor(s,i,o,g,V,ee){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=s,this.source=i,this.data=g,this.scheduleFn=V,this.cancelFn=ee,!o)throw new Error("callback is not defined");this.callback=o;let Z=this;s===z&&g&&g.useG?this.invoke=E.invokeTask:this.invoke=function(){return E.invokeTask.call(ce,Z,this,arguments)}}static invokeTask(s,i,o){s||(s=this),K++;try{return s.runCount++,s.zone.runTask(s,i,o)}finally{K==1&&$(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(q,k)}_transitionTo(s,i,o){if(this._state===i||this._state===o)this._state=s,s==q&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${s}', expecting state '${i}'${o?" or '"+o+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let T=te("setTimeout"),p=te("Promise"),C=te("then"),_=[],P=!1,I;function H(M){if(I||ce[p]&&(I=ce[p].resolve(0)),I){let s=I[C];s||(s=I.then),s.call(I,M)}else ce[T](M,0)}function U(M){K===0&&_.length===0&&H($),M&&_.push(M)}function $(){if(!P){for(P=!0;_.length;){let M=_;_=[];for(let s=0;sb,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:U,showUncaughtError:()=>!t[te("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:H},b={parent:null,zone:new t(null,null)},D=null,K=0;function W(){}return a("Zone","Zone"),t}function _t(){let e=globalThis,n=e[te("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(n||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=dt(),e.Zone}var be=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,Et=Object.create,Tt=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=te(He),Ie=te(xe),ae="true",le="false",Pe=te("");function Ve(e,n){return Zone.current.wrap(e,n)}function Ge(e,n,a,t,c){return Zone.current.scheduleMacroTask(e,n,a,t,c)}var j=te,De=typeof window<"u",pe=De?window:void 0,Y=De&&pe||globalThis,gt="removeAttribute";function Fe(e,n){for(let a=e.length-1;a>=0;a--)typeof e[a]=="function"&&(e[a]=Ve(e[a],n+"_"+a));return e}function yt(e,n){let a=e.constructor.name;for(let t=0;t{let p=function(){return T.apply(this,Fe(arguments,a+"."+c))};return fe(p,T),p})(f)}}}function tt(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var nt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Se=!("nw"in Y)&&typeof Y.process<"u"&&Y.process.toString()==="[object process]",Be=!Se&&!nt&&!!(De&&pe.HTMLElement),rt=typeof Y.process<"u"&&Y.process.toString()==="[object process]"&&!nt&&!!(De&&pe.HTMLElement),Ce={},mt=j("enable_beforeunload"),Ye=function(e){if(e=e||Y.event,!e)return;let n=Ce[e.type];n||(n=Ce[e.type]=j("ON_PROPERTY"+e.type));let a=this||e.target||Y,t=a[n],c;if(Be&&a===pe&&e.type==="error"){let f=e;c=t&&t.call(this,f.message,f.filename,f.lineno,f.colno,f.error),c===!0&&e.preventDefault()}else c=t&&t.apply(this,arguments),e.type==="beforeunload"&&Y[mt]&&typeof c=="string"?e.returnValue=c:c!=null&&!c&&e.preventDefault();return c};function $e(e,n,a){let t=be(e,n);if(!t&&a&&be(a,n)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let c=j("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete t.writable,delete t.value;let f=t.get,E=t.set,T=n.slice(2),p=Ce[T];p||(p=Ce[T]=j("ON_PROPERTY"+T)),t.set=function(C){let _=this;if(!_&&e===Y&&(_=Y),!_)return;typeof _[p]=="function"&&_.removeEventListener(T,Ye),E&&E.call(_,null),_[p]=C,typeof C=="function"&&_.addEventListener(T,Ye,!1)},t.get=function(){let C=this;if(!C&&e===Y&&(C=Y),!C)return null;let _=C[p];if(_)return _;if(f){let P=f.call(this);if(P)return t.set.call(this,P),typeof C[gt]=="function"&&C.removeAttribute(n),P}return null},Ae(e,n,t),e[c]=!0}function ot(e,n,a){if(n)for(let t=0;tfunction(E,T){let p=a(E,T);return p.cbIdx>=0&&typeof T[p.cbIdx]=="function"?Ge(p.name,T[p.cbIdx],p,c):f.apply(E,T)})}function fe(e,n){e[j("OriginalDelegate")]=n}var Je=!1,Me=!1;function kt(){try{let e=pe.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function vt(){if(Je)return Me;Je=!0;try{let e=pe.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}function Ke(e){return typeof e=="function"}function Qe(e){return typeof e=="number"}var me=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){me=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{me=!1}var bt={useG:!0},ne={},st={},it=new RegExp("^"+Pe+"(\\w+)(true|false)$"),ct=j("propagationStopped");function at(e,n){let a=(n?n(e):e)+le,t=(n?n(e):e)+ae,c=Pe+a,f=Pe+t;ne[e]={},ne[e][le]=c,ne[e][ae]=f}function Pt(e,n,a,t){let c=t&&t.add||He,f=t&&t.rm||xe,E=t&&t.listeners||"eventListeners",T=t&&t.rmAll||"removeAllListeners",p=j(c),C="."+c+":",_="prependListener",P="."+_+":",I=function(k,d,A){if(k.isRemoved)return;let x=k.callback;typeof x=="object"&&x.handleEvent&&(k.callback=y=>x.handleEvent(y),k.originalDelegate=x);let X;try{k.invoke(k,d,[A])}catch(y){X=y}let G=k.options;if(G&&typeof G=="object"&&G.once){let y=k.originalDelegate?k.originalDelegate:k.callback;d[f].call(d,A.type,y,G)}return X};function H(k,d,A){if(d=d||e.event,!d)return;let x=k||d.target||e,X=x[ne[d.type][A?ae:le]];if(X){let G=[];if(X.length===1){let y=I(X[0],x,d);y&&G.push(y)}else{let y=X.slice();for(let z=0;z{throw z})}}}let U=function(k){return H(this,k,!1)},$=function(k){return H(this,k,!0)};function J(k,d){if(!k)return!1;let A=!0;d&&d.useG!==void 0&&(A=d.useG);let x=d&&d.vh,X=!0;d&&d.chkDup!==void 0&&(X=d.chkDup);let G=!1;d&&d.rt!==void 0&&(G=d.rt);let y=k;for(;y&&!y.hasOwnProperty(c);)y=je(y);if(!y&&k[c]&&(y=k),!y||y[p])return!1;let z=d&&d.eventNameToString,S={},w=y[p]=y[c],b=y[j(f)]=y[f],D=y[j(E)]=y[E],K=y[j(T)]=y[T],W;d&&d.prepend&&(W=y[j(d.prepend)]=y[d.prepend]);function M(r,u){return!me&&typeof r=="object"&&r?!!r.capture:!me||!u?r:typeof r=="boolean"?{capture:r,passive:!0}:r?typeof r=="object"&&r.passive!==!1?{...r,passive:!0}:r:{passive:!0}}let s=function(r){if(!S.isExisting)return w.call(S.target,S.eventName,S.capture?$:U,S.options)},i=function(r){if(!r.isRemoved){let u=ne[r.eventName],v;u&&(v=u[r.capture?ae:le]);let R=v&&r.target[v];if(R){for(let m=0;mre.zone.cancelTask(re);r.call(Te,"abort",ie,{once:!0}),re.removeAbortListener=()=>Te.removeEventListener("abort",ie)}if(S.target=null,ke&&(ke.taskData=null),Ue&&(S.options.once=!0),!me&&typeof re.options=="boolean"||(re.options=se),re.target=N,re.capture=Oe,re.eventName=L,B&&(re.originalDelegate=F),O?ge.unshift(re):ge.push(re),m)return N}};return y[c]=l(w,C,ee,Z,G),W&&(y[_]=l(W,P,g,Z,G,!0)),y[f]=function(){let r=this||e,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let v=arguments[2],R=v?typeof v=="boolean"?!0:v.capture:!1,m=arguments[1];if(!m)return b.apply(this,arguments);if(x&&!x(b,m,r,arguments))return;let O=ne[u],N;O&&(N=O[R?ae:le]);let L=N&&r[N];if(L)for(let F=0;Ffunction(c,f){c[ct]=!0,t&&t.apply(c,f)})}function Rt(e,n){n.patchMethod(e,"queueMicrotask",a=>function(t,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var Re=j("zoneTask");function ye(e,n,a,t){let c=null,f=null;n+=t,a+=t;let E={};function T(C){let _=C.data;_.args[0]=function(){return C.invoke.apply(this,arguments)};let P=c.apply(e,_.args);return Qe(P)?_.handleId=P:(_.handle=P,_.isRefreshable=Ke(P.refresh)),C}function p(C){let{handle:_,handleId:P}=C.data;return f.call(e,_??P)}c=ue(e,n,C=>function(_,P){if(Ke(P[0])){let I={isRefreshable:!1,isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?P[1]||0:void 0,args:P},H=P[0];P[0]=function(){try{return H.apply(this,arguments)}finally{let{handle:A,handleId:x,isPeriodic:X,isRefreshable:G}=I;!X&&!G&&(x?delete E[x]:A&&(A[Re]=null))}};let U=Ge(n,P[0],I,T,p);if(!U)return U;let{handleId:$,handle:J,isRefreshable:q,isPeriodic:k}=U.data;if($)E[$]=U;else if(J&&(J[Re]=U,q&&!k)){let d=J.refresh;J.refresh=function(){let{zone:A,state:x}=U;return x==="notScheduled"?(U._state="scheduled",A._updateTaskCount(U,1)):x==="running"&&(U._state="scheduling"),d.call(this)}}return J??$??U}else return C.apply(e,P)}),f=ue(e,a,C=>function(_,P){let I=P[0],H;Qe(I)?(H=E[I],delete E[I]):(H=I?.[Re],H?I[Re]=null:H=I),H?.type?H.cancelFn&&H.zone.cancelTask(H):C.apply(e,P)})}function Ct(e,n){let{isBrowser:a,isMix:t}=n.getGlobalObjects();if(!a&&!t||!e.customElements||!("customElements"in e))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",c)}function Dt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:t,TRUE_STR:c,FALSE_STR:f,ZONE_SYMBOL_PREFIX:E}=n.getGlobalObjects();for(let p=0;pf.target===e);if(!t||t.length===0)return n;let c=t[0].ignoreProperties;return n.filter(f=>c.indexOf(f)===-1)}function et(e,n,a,t){if(!e)return;let c=ut(e,n,a);ot(e,c,t)}function Ze(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Ot(e,n){if(Se&&!rt||Zone[e.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,t=[];if(Be){let c=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=kt()?[{target:c,ignoreProperties:["error"]}]:[];et(c,Ze(c),a&&a.concat(f),je(c))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{let a=n[e.__symbol__("legacyPatch")];a&&a()}),e.__load_patch("timers",n=>{let a="set",t="clear";ye(n,a,t,"Timeout"),ye(n,a,t,"Interval"),ye(n,a,t,"Immediate")}),e.__load_patch("requestAnimationFrame",n=>{ye(n,"request","cancel","AnimationFrame"),ye(n,"mozRequest","mozCancel","AnimationFrame"),ye(n,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(n,a)=>{let t=["alert","prompt","confirm"];for(let c=0;cfunction(C,_){return a.current.run(E,n,_,p)})}}),e.__load_patch("EventTarget",(n,a,t)=>{St(n,t),Dt(n,t);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&t.patchEventTarget(n,t,[c.prototype])}),e.__load_patch("MutationObserver",(n,a,t)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(n,a,t)=>{ve("IntersectionObserver")}),e.__load_patch("FileReader",(n,a,t)=>{ve("FileReader")}),e.__load_patch("on_property",(n,a,t)=>{Ot(t,n)}),e.__load_patch("customElements",(n,a,t)=>{Ct(n,t)}),e.__load_patch("XHR",(n,a)=>{C(n);let t=j("xhrTask"),c=j("xhrSync"),f=j("xhrListener"),E=j("xhrScheduled"),T=j("xhrURL"),p=j("xhrErrorBeforeScheduled");function C(_){let P=_.XMLHttpRequest;if(!P)return;let I=P.prototype;function H(w){return w[t]}let U=I[Le],$=I[Ie];if(!U){let w=_.XMLHttpRequestEventTarget;if(w){let b=w.prototype;U=b[Le],$=b[Ie]}}let J="readystatechange",q="scheduled";function k(w){let b=w.data,D=b.target;D[E]=!1,D[p]=!1;let K=D[f];U||(U=D[Le],$=D[Ie]),K&&$.call(D,J,K);let W=D[f]=()=>{if(D.readyState===D.DONE)if(!b.aborted&&D[E]&&w.state===q){let s=D[a.__symbol__("loadfalse")];if(D.status!==0&&s&&s.length>0){let i=w.invoke;w.invoke=function(){let o=D[a.__symbol__("loadfalse")];for(let g=0;gfunction(w,b){return w[c]=b[2]==!1,w[T]=b[1],x.apply(w,b)}),X="XMLHttpRequest.send",G=j("fetchTaskAborting"),y=j("fetchTaskScheduling"),z=ue(I,"send",()=>function(w,b){if(a.current[y]===!0||w[c])return z.apply(w,b);{let D={target:w,url:w[T],isPeriodic:!1,args:b,aborted:!1},K=Ge(X,d,D,k,A);w&&w[p]===!0&&!D.aborted&&K.state===q&&K.invoke()}}),S=ue(I,"abort",()=>function(w,b){let D=H(w);if(D&&typeof D.type=="string"){if(D.cancelFn==null||D.data&&D.data.aborted)return;D.zone.cancelTask(D)}else if(a.current[G]===!0)return S.apply(w,b)})}}),e.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&yt(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(n,a)=>{function t(c){return function(f){lt(n,c).forEach(T=>{let p=n.PromiseRejectionEvent;if(p){let C=new p(c,{promise:f.promise,reason:f.rejection});T.invoke(C)}})}}n.PromiseRejectionEvent&&(a[j("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),a[j("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(n,a,t)=>{Rt(n,t)})}function Lt(e){e.__load_patch("ZoneAwarePromise",(n,a,t)=>{let c=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function E(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let T=t.symbol,p=[],C=n[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,_=T("Promise"),P=T("then"),I="__creationTrace__";t.onUnhandledError=h=>{if(t.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},t.microtaskDrainDone=()=>{for(;p.length;){let h=p.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){U(l)}}};let H=T("unhandledPromiseRejectionHandler");function U(h){t.onUnhandledError(h);try{let l=a[H];typeof l=="function"&&l.call(this,h)}catch{}}function $(h){return h&&h.then}function J(h){return h}function q(h){return Z.reject(h)}let k=T("state"),d=T("value"),A=T("finally"),x=T("parentPromiseValue"),X=T("parentPromiseState"),G="Promise.then",y=null,z=!0,S=!1,w=0;function b(h,l){return r=>{try{M(h,l,r)}catch(u){M(h,!1,u)}}}let D=function(){let h=!1;return function(r){return function(){h||(h=!0,r.apply(null,arguments))}}},K="Promise resolved with itself",W=T("currentTaskTrace");function M(h,l,r){let u=D();if(h===r)throw new TypeError(K);if(h[k]===y){let v=null;try{(typeof r=="object"||typeof r=="function")&&(v=r&&r.then)}catch(R){return u(()=>{M(h,!1,R)})(),h}if(l!==S&&r instanceof Z&&r.hasOwnProperty(k)&&r.hasOwnProperty(d)&&r[k]!==y)i(r),M(h,r[k],r[d]);else if(l!==S&&typeof v=="function")try{v.call(r,u(b(h,l)),u(b(h,!1)))}catch(R){u(()=>{M(h,!1,R)})()}else{h[k]=l;let R=h[d];if(h[d]=r,h[A]===A&&l===z&&(h[k]=h[X],h[d]=h[x]),l===S&&r instanceof Error){let m=a.currentTask&&a.currentTask.data&&a.currentTask.data[I];m&&f(r,W,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{let O=h[d],N=!!r&&A===r[A];N&&(r[x]=O,r[X]=R);let L=l.run(m,void 0,N&&m!==q&&m!==J?[]:[O]);M(r,!0,L)}catch(O){M(r,!1,O)}},r)}let g="function ZoneAwarePromise() { [native code] }",V=function(){},ee=n.AggregateError;class Z{static toString(){return g}static resolve(l){return l instanceof Z?l:M(new this(null),z,l)}static reject(l){return M(new this(null),S,l)}static withResolvers(){let l={};return l.promise=new Z((r,u)=>{l.resolve=r,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new ee([],"All promises were rejected"));let r=[],u=0;try{for(let m of l)u++,r.push(Z.resolve(m))}catch{return Promise.reject(new ee([],"All promises were rejected"))}if(u===0)return Promise.reject(new ee([],"All promises were rejected"));let v=!1,R=[];return new Z((m,O)=>{for(let N=0;N{v||(v=!0,m(L))},L=>{R.push(L),u--,u===0&&(v=!0,O(new ee(R,"All promises were rejected")))})})}static race(l){let r,u,v=new this((O,N)=>{r=O,u=N});function R(O){r(O)}function m(O){u(O)}for(let O of l)$(O)||(O=this.resolve(O)),O.then(R,m);return v}static all(l){return Z.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof Z?this:Z).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,r){let u,v,R=new this((L,F)=>{u=L,v=F}),m=2,O=0,N=[];for(let L of l){$(L)||(L=this.resolve(L));let F=O;try{L.then(B=>{N[F]=r?r.thenCallback(B):B,m--,m===0&&u(N)},B=>{r?(N[F]=r.errorCallback(B),m--,m===0&&u(N)):v(B)})}catch(B){v(B)}m++,O++}return m-=2,m===0&&u(N),R}constructor(l){let r=this;if(!(r instanceof Z))throw new Error("Must be an instanceof Promise.");r[k]=y,r[d]=[];try{let u=D();l&&l(u(b(r,z)),u(b(r,S)))}catch(u){M(r,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return Z}then(l,r){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||Z);let v=new u(V),R=a.current;return this[k]==y?this[d].push(R,v,l,r):o(this,R,v,l,r),v}catch(l){return this.then(null,l)}finally(l){let r=this.constructor?.[Symbol.species];(!r||typeof r!="function")&&(r=Z);let u=new r(V);u[A]=A;let v=a.current;return this[k]==y?this[d].push(v,u,l,l):o(this,v,u,l,l),u}}Z.resolve=Z.resolve,Z.reject=Z.reject,Z.race=Z.race,Z.all=Z.all;let he=n[_]=n.Promise;n.Promise=Z;let _e=T("thenPatched");function Q(h){let l=h.prototype,r=c(l,"then");if(r&&(r.writable===!1||!r.configurable))return;let u=l.then;l[P]=u,h.prototype.then=function(v,R){return new Z((O,N)=>{u.call(this,O,N)}).then(v,R)},h[_e]=!0}t.patchThen=Q;function Ee(h){return function(l,r){let u=h.apply(l,r);if(u instanceof Z)return u;let v=u.constructor;return v[_e]||Q(v),u}}return he&&(Q(he),ue(n,"fetch",h=>Ee(h))),Promise[a.__symbol__("uncaughtPromiseErrors")]=p,Z})}function It(e){e.__load_patch("toString",n=>{let a=Function.prototype.toString,t=j("OriginalDelegate"),c=j("Promise"),f=j("Error"),E=function(){if(typeof this=="function"){let _=this[t];if(_)return typeof _=="function"?a.call(_):Object.prototype.toString.call(_);if(this===Promise){let P=n[c];if(P)return a.call(P)}if(this===Error){let P=n[f];if(P)return a.call(P)}}return a.call(this)};E[t]=a,Function.prototype.toString=E;let T=Object.prototype.toString,p="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?p:T.call(this)}})}function Mt(e,n,a,t,c){let f=Zone.__symbol__(t);if(n[f])return;let E=n[f]=n[t];n[t]=function(T,p,C){return p&&p.prototype&&c.forEach(function(_){let P=`${a}.${t}::`+_,I=p.prototype;try{if(I.hasOwnProperty(_)){let H=e.ObjectGetOwnPropertyDescriptor(I,_);H&&H.value?(H.value=e.wrapWithCurrentZone(H.value,P),e._redefineProperty(p.prototype,_,H)):I[_]&&(I[_]=e.wrapWithCurrentZone(I[_],P))}else I[_]&&(I[_]=e.wrapWithCurrentZone(I[_],P))}catch{}}),E.call(n,T,p,C)},e.attachOriginToPatched(n[t],E)}function Zt(e){e.__load_patch("util",(n,a,t)=>{let c=Ze(n);t.patchOnProperties=ot,t.patchMethod=ue,t.bindArguments=Fe,t.patchMacroTask=pt;let f=a.__symbol__("BLACK_LISTED_EVENTS"),E=a.__symbol__("UNPATCHED_EVENTS");n[E]&&(n[f]=n[E]),n[f]&&(a[f]=a[E]=n[f]),t.patchEventPrototype=wt,t.patchEventTarget=Pt,t.isIEOrEdge=vt,t.ObjectDefineProperty=Ae,t.ObjectGetOwnPropertyDescriptor=be,t.ObjectCreate=Et,t.ArraySlice=Tt,t.patchClass=ve,t.wrapWithCurrentZone=Ve,t.filterProperties=ut,t.attachOriginToPatched=fe,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Mt,t.getGlobalObjects=()=>({globalSources:st,zoneSymbolEventNames:ne,eventNames:c,isBrowser:Be,isMix:rt,isNode:Se,TRUE_STR:ae,FALSE_STR:le,ZONE_SYMBOL_PREFIX:Pe,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function At(e){Lt(e),It(e),Zt(e)}var ft=_t();At(ft);Nt(ft);