diff --git a/docs/assets/audio/Sound.ts b/docs/assets/audio/Sound.ts index 31683b1..f8f41a5 100644 --- a/docs/assets/audio/Sound.ts +++ b/docs/assets/audio/Sound.ts @@ -1,18 +1,26 @@ let audio = new Audio(); +let isMuted: boolean = false; export async function playSucess(){ audio.src = "assets/audio/complete.mp3"; audio.load(); - audio.play(); + if(!isMuted) + audio.play(); } export async function playSwap() { audio.src = "assets/audio/swap.mp3"; audio.load(); - audio.play(); + if(!isMuted) + audio.play(); } export async function playFind(){ audio.src = "assets/audio/find.mp3"; audio.load(); - audio.play(); + if(!isMuted) + audio.play(); +} + +export function setMute(val: boolean) { + isMuted = val; } \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 5f7db6d..7a3a69e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -9,9 +9,10 @@ + - + - + \ No newline at end of file diff --git a/docs/main.37fd85ba5733b9d3.js b/docs/main.37fd85ba5733b9d3.js deleted file mode 100644 index 13216c3..0000000 --- a/docs/main.37fd85ba5733b9d3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkSortingVisualizer=self.webpackChunkSortingVisualizer||[]).push([[179],{18:()=>{function ne(e){return"function"==typeof e}function Kr(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const Xr=Kr(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function Yn(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class ct{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(ne(r))try{r()}catch(i){t=i instanceof Xr?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{zu(i)}catch(s){t=t??[],s instanceof Xr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Xr(t)}}add(t){var n;if(t&&t!==this)if(this.closed)zu(t);else{if(t instanceof ct){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Yn(n,t)}remove(t){const{_finalizers:n}=this;n&&Yn(n,t),t instanceof ct&&t._removeParent(this)}}ct.EMPTY=(()=>{const e=new ct;return e.closed=!0,e})();const $u=ct.EMPTY;function Uu(e){return e instanceof ct||e&&"closed"in e&&ne(e.remove)&&ne(e.add)&&ne(e.unsubscribe)}function zu(e){ne(e)?e():e.unsubscribe()}const Ut={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Jr={setTimeout(e,t,...n){const{delegate:r}=Jr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=Jr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Gu(e){Jr.setTimeout(()=>{const{onUnhandledError:t}=Ut;if(!t)throw e;t(e)})}function Wu(){}const Gg=xi("C",void 0,void 0);function xi(e,t,n){return{kind:e,value:t,error:n}}let zt=null;function eo(e){if(Ut.useDeprecatedSynchronousErrorHandling){const t=!zt;if(t&&(zt={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=zt;if(zt=null,n)throw r}}else e()}class Ni extends ct{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Uu(t)&&t.add(this)):this.destination=Xg}static create(t,n,r){return new Kn(t,n,r)}next(t){this.isStopped?Fi(function qg(e){return xi("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Fi(function Wg(e){return xi("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Fi(Gg,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()}}}const Zg=Function.prototype.bind;function Pi(e,t){return Zg.call(e,t)}class Yg{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){to(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){to(r)}else to(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){to(n)}}}class Kn extends Ni{constructor(t,n,r){let o;if(super(),ne(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Ut.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Pi(t.next,i),error:t.error&&Pi(t.error,i),complete:t.complete&&Pi(t.complete,i)}):o=t}this.destination=new Yg(o)}}function to(e){Ut.useDeprecatedSynchronousErrorHandling?function Qg(e){Ut.useDeprecatedSynchronousErrorHandling&&zt&&(zt.errorThrown=!0,zt.error=e)}(e):Gu(e)}function Fi(e,t){const{onStoppedNotification:n}=Ut;n&&Jr.setTimeout(()=>n(e,t))}const Xg={closed:!0,next:Wu,error:function Kg(e){throw e},complete:Wu},Oi="function"==typeof Symbol&&Symbol.observable||"@@observable";function qu(e){return e}let Pe=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function em(e){return e&&e instanceof Ni||function Jg(e){return e&&ne(e.next)&&ne(e.error)&&ne(e.complete)}(e)&&Uu(e)}(n)?n:new Kn(n,r,o);return eo(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Zu(r))((o,i)=>{const s=new Kn({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Oi](){return this}pipe(...n){return function Qu(e){return 0===e.length?qu:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=Zu(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Zu(e){var t;return null!==(t=e??Ut.Promise)&&void 0!==t?t:Promise}const tm=Kr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Li=(()=>{class e extends Pe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Yu(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new tm}next(n){eo(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){eo(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){eo(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{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(null===(n=this.observers)||void 0===n?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){const{hasError:r,isStopped:o,observers:i}=this;return r||o?$u:(this.currentObservers=null,i.push(n),new ct(()=>{this.currentObservers=null,Yn(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new Pe;return n.source=this,n}}return e.create=(t,n)=>new Yu(t,n),e})();class Yu extends Li{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:$u}}function Xn(e){return t=>{if(function nm(e){return ne(e?.lift)}(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 no(e,t,n,r,o){return new rm(e,t,n,r,o)}class rm extends Ni{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}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()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function Gt(e){return this instanceof Gt?(this.v=e,this):new Gt(e)}function am(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(p){return new Promise(function(h,g){i.push([f,p,h,g])>1||a(f,p)})})}function a(f,p){try{!function u(f){f.value instanceof Gt?Promise.resolve(f.value.v).then(l,c):d(i[0][2],f)}(r[f](p))}catch(h){d(i[0][3],h)}}function l(f){a("next",f)}function c(f){a("throw",f)}function d(f,p){f(p),i.shift(),i.length&&a(i[0][0],i[0][1])}}function um(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Ju(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)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.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){!function o(i,s,a,u){Promise.resolve(u).then(function(l){i({value:l,done:a})},s)}(a,u,(s=e[i](s)).done,s.value)})}}}const el=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function tl(e){return ne(e?.then)}function nl(e){return ne(e[Oi])}function rl(e){return Symbol.asyncIterator&&ne(e?.[Symbol.asyncIterator])}function ol(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const il=function cm(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function sl(e){return ne(e?.[il])}function al(e){return am(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield Gt(n.read());if(o)return yield Gt(void 0);yield yield Gt(r)}}finally{n.releaseLock()}})}function ul(e){return ne(e?.getReader)}function Wt(e){if(e instanceof Pe)return e;if(null!=e){if(nl(e))return function dm(e){return new Pe(t=>{const n=e[Oi]();if(ne(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(el(e))return function fm(e){return new Pe(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Gu)})}(e);if(rl(e))return ll(e);if(sl(e))return function hm(e){return new Pe(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(ul(e))return function gm(e){return ll(al(e))}(e)}throw ol(e)}function ll(e){return new Pe(t=>{(function mm(e,t){var n,r,o,i;return function im(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(c){try{l(r.next(c))}catch(d){s(d)}}function u(c){try{l(r.throw(c))}catch(d){s(d)}}function l(c){c.done?i(c.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(c.value).then(a,u)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=um(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Lt(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function cl(e,t,n=1/0){return ne(t)?cl((r,o)=>function om(e,t){return Xn((n,r)=>{let o=0;n.subscribe(no(r,i=>{r.next(e.call(t,i,o++))}))})}((i,s)=>t(r,i,o,s))(Wt(e(r,o))),n):("number"==typeof t&&(n=t),Xn((r,o)=>function ym(e,t,n,r,o,i,s,a){const u=[];let l=0,c=0,d=!1;const f=()=>{d&&!u.length&&!l&&t.complete()},p=g=>l{i&&t.next(g),l++;let D=!1;Wt(n(g,c++)).subscribe(no(t,v=>{o?.(v),i?p(v):t.next(v)},()=>{D=!0},void 0,()=>{if(D)try{for(l--;u.length&&lh(v)):h(v)}f()}catch(v){t.error(v)}}))};return e.subscribe(no(t,p,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}const dl=new Pe(e=>e.complete());function ki(e){return e[e.length-1]}function fl(e,t=0){return Xn((n,r)=>{n.subscribe(no(r,o=>Lt(r,e,()=>r.next(o),t),()=>Lt(r,e,()=>r.complete(),t),o=>Lt(r,e,()=>r.error(o),t)))})}function pl(e,t=0){return Xn((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function hl(e,t){if(!e)throw new Error("Iterable cannot be null");return new Pe(n=>{Lt(n,t,()=>{const r=e[Symbol.asyncIterator]();Lt(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function xm(...e){const t=function Em(e){return function _m(e){return e&&ne(e.schedule)}(ki(e))?e.pop():void 0}(e),n=function Cm(e,t){return"number"==typeof ki(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?Wt(r[0]):function Dm(e=1/0){return cl(qu,e)}(n)(function Am(e,t){return t?function Tm(e,t){if(null!=e){if(nl(e))return function wm(e,t){return Wt(e).pipe(pl(t),fl(t))}(e,t);if(el(e))return function bm(e,t){return new Pe(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(tl(e))return function Im(e,t){return Wt(e).pipe(pl(t),fl(t))}(e,t);if(rl(e))return hl(e,t);if(sl(e))return function Sm(e,t){return new Pe(n=>{let r;return Lt(n,t,()=>{r=e[il](),Lt(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>ne(r?.return)&&r.return()})}(e,t);if(ul(e))return function Mm(e,t){return hl(al(e),t)}(e,t)}throw ol(e)}(e,t):Wt(e)}(r,t)):dl}function Bi(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Kn({next:()=>{r.unsubscribe(),e()}});return t(...n).subscribe(r)}function q(e){for(let t in e)if(e[t]===q)return t;throw Error("Could not find renamed property on target object.")}function Q(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Q).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function ji(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Pm=q({__forward_ref__:q});function Vi(e){return e.__forward_ref__=Vi,e.toString=function(){return Q(this())},e}function b(e){return function $i(e){return"function"==typeof e&&e.hasOwnProperty(Pm)&&e.__forward_ref__===Vi}(e)?e():e}function Ui(e){return e&&!!e.\u0275providers}class w extends Error{constructor(t,n){super(function ro(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,n)),this.code=t}}function A(e){return"string"==typeof e?e:null==e?"":String(e)}function oo(e,t){throw new w(-201,!1)}function Ge(e,t){null==e&&function z(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function J(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ln(e){return{providers:e.providers||[],imports:e.imports||[]}}function io(e){return ml(e,so)||ml(e,Dl)}function ml(e,t){return e.hasOwnProperty(t)?e[t]:null}function yl(e){return e&&(e.hasOwnProperty(zi)||e.hasOwnProperty(jm))?e[zi]:null}const so=q({\u0275prov:q}),zi=q({\u0275inj:q}),Dl=q({ngInjectableDef:q}),jm=q({ngInjectorDef:q});var T=(()=>((T=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))();let Gi;function We(e){const t=Gi;return Gi=e,t}function vl(e,t,n){const r=io(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&T.Optional?null:void 0!==t?t:void oo(Q(e))}const Y=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Jn={},Wi="__NG_DI_FLAG__",ao="ngTempTokenPath",Um=/\n/gm,_l="__source";let er;function cn(e){const t=er;return er=e,t}function Gm(e,t=T.Default){if(void 0===er)throw new w(-203,!1);return null===er?vl(e,void 0,t):er.get(e,t&T.Optional?null:void 0,t)}function G(e,t=T.Default){return(function Vm(){return Gi}()||Gm)(b(e),t)}function uo(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function qi(e){const t=[];for(let n=0;n((et=et||{})[et.OnPush=0]="OnPush",et[et.Default=1]="Default",et))(),dt=(()=>{return(e=dt||(dt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",dt;var e})();const _t={},$=[],lo=q({\u0275cmp:q}),Qi=q({\u0275dir:q}),Zi=q({\u0275pipe:q}),Cl=q({\u0275mod:q}),Et=q({\u0275fac:q}),nr=q({__NG_ELEMENT_ID__:q});let Ym=0;function co(e){return kt(()=>{const n=!0===e.standalone,r={},o={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===et.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||$,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||dt.Emulated,id:"c"+Ym++,styles:e.styles||$,_:null,setInput:null,schemas:e.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},i=e.dependencies,s=e.features;return o.inputs=bl(e.inputs,r),o.outputs=bl(e.outputs),s&&s.forEach(a=>a(o)),o.directiveDefs=i?()=>("function"==typeof i?i():i).map(wl).filter(Il):null,o.pipeDefs=i?()=>("function"==typeof i?i():i).map(be).filter(Il):null,o})}function wl(e){return W(e)||De(e)}function Il(e){return null!==e}function rr(e){return kt(()=>({type:e.type,bootstrap:e.bootstrap||$,declarations:e.declarations||$,imports:e.imports||$,exports:e.exports||$,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function bl(e,t){if(null==e)return _t;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}const qe=co;function W(e){return e[lo]||null}function De(e){return e[Qi]||null}function be(e){return e[Zi]||null}const L=11,X=22;function je(e){return Array.isArray(e)&&"object"==typeof e[1]}function nt(e){return Array.isArray(e)&&!0===e[1]}function Xi(e){return 0!=(4&e.flags)}function ur(e){return e.componentOffset>-1}function mo(e){return 1==(1&e.flags)}function rt(e){return null!==e.template}function Jm(e){return 0!=(256&e[2])}function Qt(e,t){return e.hasOwnProperty(Et)?e[Et]:null}class ny{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Nl(e){return e.type.prototype.ngOnChanges&&(e.setInput=oy),ry}function ry(){const e=Fl(this),t=e?.current;if(t){const n=e.previous;if(n===_t)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function oy(e,t,n,r){const o=this.declaredInputs[n],i=Fl(e)||function iy(e,t){return e[Pl]=t}(e,{previous:_t,current:null}),s=i.current||(i.current={}),a=i.previous,u=a[o];s[o]=new ny(u&&u.currentValue,t,a===_t),e[r]=t}const Pl="__ngSimpleChanges__";function Fl(e){return e[Pl]||null}function me(e){for(;Array.isArray(e);)e=e[0];return e}function Ve(e,t){return me(t[e.index])}function Rl(e,t){return e.data[t]}function $e(e,t){const n=t[e];return je(n)?n:n[0]}function vo(e){return 64==(64&e[2])}function Bt(e,t){return null==t?null:e[t]}function kl(e){e[18]=0}function es(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const x={lFrame:ql(null),bindingsEnabled:!0};function Hl(){return x.bindingsEnabled}function y(){return x.lFrame.lView}function j(){return x.lFrame.tView}function _o(e){return x.lFrame.contextLView=e,e[8]}function Eo(e){return x.lFrame.contextLView=null,e}function ye(){let e=jl();for(;null!==e&&64===e.type;)e=e.parent;return e}function jl(){return x.lFrame.currentTNode}function pt(e,t){const n=x.lFrame;n.currentTNode=e,n.isParent=t}function ts(){return x.lFrame.isParent}function mn(){return x.lFrame.bindingIndex++}function Dy(e,t){const n=x.lFrame;n.bindingIndex=n.bindingRootIndex=e,rs(t)}function rs(e){x.lFrame.currentDirectiveIndex=e}function is(e){x.lFrame.currentQueryIndex=e}function _y(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Gl(e,t,n){if(n&T.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&T.Host||(o=_y(i),null===o||(i=i[15],10&o.type))););if(null===o)return!1;t=o,e=i}const r=x.lFrame=Wl();return r.currentTNode=t,r.lView=e,!0}function ss(e){const t=Wl(),n=e[1];x.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Wl(){const e=x.lFrame,t=null===e?null:e.child;return null===t?ql(e):t}function ql(e){const 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 null!==e&&(e.child=t),t}function Ql(){const e=x.lFrame;return x.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Zl=Ql;function as(){const e=Ql();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 Te(){return x.lFrame.selectedIndex}function Zt(e){x.lFrame.selectedIndex=e}function Co(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{i.call(a)}finally{}}}else try{i.call(a)}finally{}}class cr{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function cs(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let ds=!0;function Mo(e){const t=ds;return ds=e,t}let Oy=0;const ht={};function To(e,t){const n=rc(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,fs(r.data,e),fs(t,null),fs(r.blueprint,null));const o=ps(e,t),i=e.injectorIndex;if(ec(o)){const s=bo(o),a=So(o,t),u=a[1].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|u[s+l]}return t[i+8]=o,i}function fs(e,t){e.push(0,0,0,0,0,0,0,0,t)}function rc(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ps(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=cc(o),null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function hs(e,t,n){!function Ly(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(nr)&&(r=n[nr]),null==r&&(r=n[nr]=Oy++);const o=255&r;t.data[e+(o>>5)]|=1<=0?255&t:Hy:t}(n);if("function"==typeof i){if(!Gl(t,e,r))return r&T.Host?oc(o,0,r):ic(t,n,r,o);try{const s=i(r);if(null!=s||r&T.Optional)return s;oo()}finally{Zl()}}else if("number"==typeof i){let s=null,a=rc(e,t),u=-1,l=r&T.Host?t[16][6]:null;for((-1===a||r&T.SkipSelf)&&(u=-1===a?ps(e,t):t[a+8],-1!==u&&lc(r,!1)?(s=t[1],a=bo(u),t=So(u,t)):a=-1);-1!==a;){const c=t[1];if(uc(i,a,c.data)){const d=ky(a,t,n,s,r,l);if(d!==ht)return d}u=t[a+8],-1!==u&&lc(r,t[1].data[a+8]===l)&&uc(i,a,t)?(s=c,a=bo(u),t=So(u,t)):a=-1}}return o}function ky(e,t,n,r,o,i){const s=t[1],a=s.data[e+8],c=function Ao(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,u=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let p=r?a:a+c;p=u&&h.type===n)return p}if(o){const p=s[u];if(p&&rt(p)&&p.type===n)return u}return null}(a,s,n,null==r?ur(a)&&ds:r!=s&&0!=(3&a.type),o&T.Host&&i===a);return null!==c?Yt(t,s,c,a):ht}function Yt(e,t,n,r){let o=e[n];const i=t.data;if(function xy(e){return e instanceof cr}(o)){const s=o;s.resolving&&function Fm(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new w(-200,`Circular dependency in DI detected for ${e}${n}`)}(function U(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():A(e)}(i[n]));const a=Mo(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?We(s.injectImpl):null;Gl(e,r,T.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function Ty(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=Nl(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{null!==u&&We(u),Mo(a),s.resolving=!1,Zl()}}return o}function uc(e,t,n){return!!(n[t+(e>>5)]&1<{const r=function ys(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(u,l,c){const d=u.hasOwnProperty(_n)?u[_n]:Object.defineProperty(u,_n,{value:[]})[_n];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class R{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=J({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Kt(e,t){e.forEach(n=>Array.isArray(n)?Kt(n,t):t(n))}function fc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const Po=tr(Cn("Optional"),8),Fo=tr(Cn("SkipSelf"),4);var Oe=(()=>((Oe=Oe||{})[Oe.Important=1]="Important",Oe[Oe.DashCase=2]="DashCase",Oe))();const bs=new Map;let pD=0;const Ms="__ngContext__";function Ee(e,t){je(t)?(e[Ms]=t[20],function gD(e){bs.set(e[20],e)}(t)):e[Ms]=t}function As(e,t){return undefined(e,t)}function Dr(e){const t=e[3];return nt(t)?t[3]:t}function xs(e){return Fc(e[13])}function Ns(e){return Fc(e[4])}function Fc(e){for(;null!==e&&!nt(e);)e=e[4];return e}function bn(e,t,n,r,o){if(null!=r){let i,s=!1;nt(r)?i=r:je(r)&&(s=!0,r=r[0]);const a=me(r);0===e&&null!==n?null==o?Hc(t,n,a):Xt(t,n,a,o||null,!0):1===e&&null!==n?Xt(t,n,a,o||null,!0):2===e?function Bs(e,t,n){const r=Ro(e,t);r&&function LD(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function BD(e,t,n,r,o){const i=n[7];i!==me(n)&&bn(t,e,r,i,o);for(let a=10;a0&&(e[n-1][4]=r[4]);const i=xo(e,10+t);!function MD(e,t){vr(e,t,t[L],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=i[19];null!==s&&s.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-65}return r}function Rc(e,t){if(!(128&t[2])){const n=t[L];n.destroyNode&&vr(e,t,n,3,null,null),function xD(e){let t=e[13];if(!t)return Ls(e[1],e);for(;t;){let n=null;if(je(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)je(t)&&Ls(t[1],t),t=t[3];null===t&&(t=e),je(t)&&Ls(t[1],t),n=t&&t[4]}t=n}}(t)}}function Ls(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function OD(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[o=s]():r[o=-s].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===dt.None||i===dt.Emulated)return null}return Ve(r,n)}}(e,t.parent,n)}function Xt(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Hc(e,t,n){e.appendChild(t,n)}function jc(e,t,n,r,o){null!==r?Xt(e,t,n,r,o):Hc(e,t,n)}function Ro(e,t){return e.parentNode(t)}let Vs,Uc=function $c(e,t,n){return 40&e.type?Ve(e,n):null};function ko(e,t,n,r){const o=kc(e,r,t),i=t[L],a=function Vc(e,t,n){return Uc(e,t,n)}(r.parent||t[6],r,t);if(null!=o)if(Array.isArray(n))for(let u=0;u{const s=i;qs(s,n,[],r)&&(o||(o=[]),o.push(s))}),void 0!==o&&pd(o,n),n}function pd(e,t){for(let n=0;n{t.push(i)})}}function qs(e,t,n,r){if(!(e=b(e)))return!1;let o=null,i=yl(e);const s=!i&&W(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const u=e.ngModule;if(i=yl(u),!i)return!1;o=u}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const u="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of u)qs(l,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{Kt(i.imports,c=>{qs(c,t,n,r)&&(l||(l=[]),l.push(c))})}finally{}void 0!==l&&pd(l,t)}if(!a){const l=Qt(o)||(()=>new o);t.push({provide:o,useFactory:l,deps:$},{provide:cd,useValue:o,multi:!0},{provide:ud,useValue:()=>G(o),multi:!0})}const u=i.providers;null==u||a||Qs(u,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function Qs(e,t){for(let n of e)Ui(n)&&(n=n.\u0275providers),Array.isArray(n)?Qs(n,t):t(n)}const gv=q({provide:String,useValue:q});function Zs(e){return null!==e&&"object"==typeof e&&gv in e}function en(e){return"function"==typeof e}const Ys=new R("Set Injector scope."),$o={},yv={};let Ks;function Uo(){return void 0===Ks&&(Ks=new dd),Ks}class Sn{}class md extends Sn{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Js(t,s=>this.processProvider(s)),this.records.set(ld,Mn(void 0,this)),o.has("environment")&&this.records.set(Sn,Mn(void 0,this));const i=this.records.get(Ys);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(cd.multi,$,T.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=cn(this),r=We(void 0);try{return t()}finally{cn(n),We(r)}}get(t,n=Jn,r=T.Default){this.assertNotDestroyed(),r=uo(r);const o=cn(this),i=We(void 0);try{if(!(r&T.SkipSelf)){let a=this.records.get(t);if(void 0===a){const u=function Cv(e){return"function"==typeof e||"object"==typeof e&&e instanceof R}(t)&&io(t);a=u&&this.injectableDefInScope(u)?Mn(Xs(t),$o):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&T.Self?Uo():this.parent).get(t,n=r&T.Optional&&n===Jn?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[ao]=s[ao]||[]).unshift(Q(t)),o)throw s;return function Qm(e,t,n,r){const o=e[ao];throw t[_l]&&o.unshift(t[_l]),e.message=function Zm(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Q(t);if(Array.isArray(t))o=t.map(Q).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):Q(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Um,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[ao]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{We(i),cn(o)}}resolveInjectorInitializers(){const t=cn(this),n=We(void 0);try{const r=this.get(ud.multi,$,T.Self);for(const o of r)o()}finally{cn(t),We(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Q(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(t){let n=en(t=b(t))?t:b(t&&t.provide);const r=function vv(e){return Zs(e)?Mn(void 0,e.useValue):Mn(function yd(e,t,n){let r;if(en(e)){const o=b(e);return Qt(o)||Xs(o)}if(Zs(e))r=()=>b(e.useValue);else if(function gd(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...qi(e.deps||[]));else if(function hd(e){return!(!e||!e.useExisting)}(e))r=()=>G(b(e.useExisting));else{const o=b(e&&(e.useClass||e.provide));if(!function _v(e){return!!e.deps}(e))return Qt(o)||Xs(o);r=()=>new o(...qi(e.deps))}return r}(e),$o)}(t);if(en(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=Mn(void 0,$o,!0),o.factory=()=>qi(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===$o&&(n.value=yv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Ev(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=b(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Xs(e){const t=io(e),n=null!==t?t.factory:Qt(e);if(null!==n)return n;if(e instanceof R)throw new w(204,!1);if(e instanceof Function)return function Dv(e){const t=e.length;if(t>0)throw function hr(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new w(204,!1)}function Mn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Js(e,t){for(const n of e)Array.isArray(n)?Js(n,t):n&&Ui(n)?Js(n.\u0275providers,t):t(n)}class wv{}class Dd{}class bv{resolveComponentFactory(t){throw function Iv(e){const t=Error(`No component factory found for ${Q(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let zo=(()=>{class e{}return e.NULL=new bv,e})();function Sv(){return Tn(ye(),y())}function Tn(e,t){return new An(Ve(e,t))}let An=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=Sv,e})();class _d{}let Ed=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function Tv(){const e=y(),n=$e(ye().index,e);return(je(n)?n:e)[L]}(),e})(),Av=(()=>{class e{}return e.\u0275prov=J({token:e,providedIn:"root",factory:()=>null}),e})();class ea{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const xv=new ea("15.1.0"),ta={};function ra(e){return e.ngOriginalError}class xn{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&ra(t);for(;n&&ra(n);)n=ra(n);return n||null}}function wd(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}const Id="ng-template";function Vv(e,t,n){let r=0;for(;ri?"":o[d+1].toLowerCase();const p=8&r?f:null;if(p&&-1!==wd(p,l,0)||2&r&&l!==f){if(ot(r))return!1;s=!0}}}}else{if(!s&&!ot(r)&&!ot(u))return!1;if(s&&ot(u))continue;s=!1,r=u|1&r}}return ot(r)||s}function ot(e){return 0==(1&e)}function zv(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!ot(s)&&(t+=Md(i,o),o=""),r=s,i=i||!ot(r);n++}return""!==o&&(t+=Md(i,o)),t}const N={};function Ce(e){Td(j(),y(),Te()+e,!1)}function Td(e,t,n,r){if(!r)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&wo(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Io(t,i,0,n)}Zt(n)}function Pd(e,t=null,n=null,r){const o=Fd(e,t,n,r);return o.resolveInjectorInitializers(),o}function Fd(e,t=null,n=null,r,o=new Set){const i=[n||$,hv(e)];return r=r||("object"==typeof e?void 0:Q(e)),new md(i,t||Uo(),r||null,o)}let tn=(()=>{class e{static create(n,r){if(Array.isArray(n))return Pd({name:""},r,n,"");{const o=n.name??"";return Pd({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=Jn,e.NULL=new dd,e.\u0275prov=J({token:e,providedIn:"any",factory:()=>G(ld)}),e.__NG_ELEMENT_ID__=-1,e})();function k(e,t=T.Default){const n=y();return null===n?G(e,t):sc(ye(),n,b(e),t)}function jd(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;rX&&Td(e,t,X,!1),n(r,o)}finally{Zt(i)}}function ca(e,t,n){if(Xi(t)){const o=t.directiveEnd;for(let i=t.directiveStart;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,wr(e,n,o.hostVars,N),o)}function R_(e,t,n,r,o,i){const s=i[t];if(null!==s){const a=r.setInput;for(let u=0;u0&&ya(n)}}function ya(e){for(let r=xs(e);null!==r;r=Ns(r))for(let o=10;o0&&ya(i)}const n=e[1].components;if(null!==n)for(let r=0;r0&&ya(o)}}function V_(e,t){const n=$e(t,e),r=n[1];(function $_(e,t){for(let n=t.length;n-1&&(Os(t,r),xo(n,r))}this._attachedToViewContainer=!1}Rc(this._lView[1],this._lView)}onDestroy(t){!function Ud(e,t,n,r){const o=Yd(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&Kd(e).push(r,o.length-1))}(this._lView[1],this._lView,null,t)}markForCheck(){Da(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Zo(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function AD(e,t){vr(e,t,t[L],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=t}}class U_ extends Ir{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Zo(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class ef extends zo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=W(t);return new br(n,this.ngModule)}}function tf(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class G_{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=uo(r);const o=this.injector.get(t,ta,r);return o!==ta||n===ta?o:this.parentInjector.get(t,n,r)}}class br extends Dd{get inputs(){return tf(this.componentDef.inputs)}get outputs(){return tf(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Yv(e){return e.map(Zv).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof Sn?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new G_(t,i):t,a=s.get(_d,null);if(null===a)throw new w(407,!1);const u=s.get(Av,null),l=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=r?function E_(e,t,n){return e.selectRootElement(t,n===dt.ShadowDom)}(l,r,this.componentDef.encapsulation):Fs(l,c,function z_(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),f=this.componentDef.onPush?288:272,p=pa(0,null,null,1,0,null,null,null,null,null),h=Wo(null,p,null,f,null,null,a,l,u,s,null);let g,D;ss(h);try{const v=this.componentDef;let C,m=null;v.findHostDirectiveDefs?(C=[],m=new Map,v.findHostDirectiveDefs(v,C,m),C.push(v)):C=[v];const M=function q_(e,t){const n=e[1];return e[22]=t,Fn(n,22,2,"#host",null)}(h,d),Z=function Q_(e,t,n,r,o,i,s,a){const u=o[1];!function Z_(e,t,n,r){for(const o of e)t.mergedAttrs=dr(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(Yo(t,t.mergedAttrs,!0),null!==n&&Qc(r,n,t))}(r,e,t,s);const l=i.createRenderer(t,n),c=Wo(o,$d(n),null,n.onPush?32:16,o[e.index],e,i,l,a||null,null,null);return u.firstCreatePass&&ga(u,e,r.length-1),Qo(o,c),o[e.index]=c}(M,d,v,C,h,a,l);D=Rl(p,X),d&&function K_(e,t,n,r){if(r)cs(e,n,["ng-version",xv.full]);else{const{attrs:o,classes:i}=function Kv(e){const t=[],n=[];let r=1,o=2;for(;r0&&qc(e,n,i.join(" "))}}(l,v,d,r),void 0!==n&&function X_(e,t,n){const r=e.projection=[];for(let o=0;os(me(M[r.index])):r.index;let m=null;if(!s&&a&&(m=function DE(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;iu?a[u]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=i,m.__ngLastListenerFn__=i,f=!1;else{i=If(r,t,c,i,!1);const M=n.listen(D,o,i);d.push(i,M),l&&l.push(o,C,v,v+1)}}else i=If(r,t,c,i,!1);const p=r.outputs;let h;if(f&&null!==p&&(h=p[o])){const g=h.length;if(g)for(let D=0;D-1?$e(e.index,t):t);let u=wf(t,0,r,s),l=i.__ngNextListenerFn__;for(;l;)u=wf(t,0,l,s)&&u,l=l.__ngNextListenerFn__;return o&&!1===u&&(s.preventDefault(),s.returnValue=!1),u}}function F(e,t=""){const n=y(),r=j(),o=e+X,i=r.firstCreatePass?Fn(r,o,1,t,null):r.data[o],s=n[o]=function Ps(e,t){return e.createText(t)}(n[L],t);ko(r,n,s,i),pt(i,!1)}function xr(e){return Pa("",e,""),xr}function Pa(e,t,n){const r=y(),o=function Ln(e,t,n,r){return we(e,mn(),n)?t+A(n)+r:N}(r,e,t,n);return o!==N&&Mt(r,Te(),o),Pa}const Gn="en-US";let mp=Gn;class Wn{}class lw{}class $p extends Wn{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ef(this);const r=function He(e,t){const n=e[Cl]||null;if(!n&&!0===t)throw new Error(`Type ${Q(e)} does not have '\u0275mod' property.`);return n}(t);this._bootstrapComponents=function St(e){return e instanceof Function?e():e}(r.bootstrap),this._r3Injector=Fd(t,n,[{provide:Wn,useValue:this},{provide:zo,useValue:this.componentFactoryResolver}],Q(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ha extends lw{constructor(t){super(),this.moduleType=t}create(t){return new $p(this.moduleType,t)}}function Va(e,t,n,r){return function Yp(e,t,n,r,o,i){const s=t+n;return we(e,s,o)?function mt(e,t,n){return e[t]=n}(e,s+1,i?r.call(i,o):r(o)):function Rr(e,t){const n=e[t];return n===N?void 0:n}(e,s+1)}(y(),function Me(){const e=x.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),e,t,n,r)}function $a(e){return t=>{setTimeout(e,void 0,t)}}const Tt=class Bw extends Li{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=$a(i),o&&(o=$a(o)),s&&(s=$a(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof ct&&t.add(a),a}};let At=(()=>{class e{}return e.__NG_ELEMENT_ID__=$w,e})();const jw=At,Vw=class extends jw{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t,n){const r=this._declarationTContainer.tViews,o=Wo(this._declarationLView,r,t,16,null,r.declTNode,null,null,null,null,n||null);o[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(o[19]=s.createEmbeddedView(r)),la(r,o,t),new Ir(o)}};function $w(){return function ai(e,t){return 4&e.type?new Vw(t,e,Tn(e,t)):null}(ye(),y())}let vt=(()=>{class e{}return e.__NG_ELEMENT_ID__=Uw,e})();function Uw(){return function rh(e,t){let n;const r=t[e.index];if(nt(r))n=r;else{let o;if(8&e.type)o=me(r);else{const i=t[L];o=i.createComment("");const s=Ve(e,t);Xt(i,Ro(i,s),o,function RD(e,t){return e.nextSibling(t)}(i,s),!1)}t[e.index]=n=Zd(r,t,o,e),Qo(t,n)}return new th(n,e,t)}(ye(),y())}const zw=vt,th=class extends zw{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Tn(this._hostTNode,this._hostLView)}get injector(){return new Dn(this._hostTNode,this._hostLView)}get parentInjector(){const t=ps(this._hostTNode,this._hostLView);if(ec(t)){const n=So(t,this._hostLView),r=bo(t);return new Dn(n[1].data[r+8],n)}return new Dn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=nh(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const s=t.createEmbeddedView(n||{},i);return this.insert(s,o),s}createComponent(t,n,r,o,i){const s=t&&!function pr(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const d=n||{};a=d.index,r=d.injector,o=d.projectableNodes,i=d.environmentInjector||d.ngModuleRef}const u=s?t:new br(W(t)),l=r||this.parentInjector;if(!i&&null==u.ngModule){const f=(s?l:this.parentInjector).get(Sn,null);f&&(i=f)}const c=u.create(l,o,void 0,i);return this.insert(c.hostView,a),c}insert(t,n){const r=t._lView,o=r[1];if(function cy(e){return nt(e[3])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const d=r[3],f=new th(d,d[6],d[3]);f.detach(f.indexOf(t))}}const i=this._adjustIndex(n),s=this._lContainer;!function ND(e,t,n,r){const o=10+r,i=n.length;r>0&&(n[o-1][4]=t),r{class e{constructor(n){this.appInits=n,this.resolve=li,this.reject=li,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{i.subscribe({complete:a,error:u})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(G(Mh,8))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Hr=new R("AppId",{providedIn:"root",factory:function Th(){return`${eu()}${eu()}${eu()}`}});function eu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ah=new R("Platform Initializer"),xh=new R("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),EI=new R("appBootstrapListener"),xt=new R("LocaleId",{providedIn:"root",factory:()=>function Wm(e,t=T.Default){return G(e,uo(t))}(xt,T.Optional|T.SkipSelf)||function CI(){return typeof $localize<"u"&&$localize.locale||Gn}()}),MI=(()=>Promise.resolve(0))();function tu(e){typeof Zone>"u"?MI.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Ie{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Tt(!1),this.onMicrotaskEmpty=new Tt(!1),this.onStable=new Tt(!1),this.onError=new Tt(!1),typeof Zone>"u")throw new w(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function TI(){let e=Y.requestAnimationFrame,t=Y.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function NI(e){const t=()=>{!function xI(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Y,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,ru(e),e.isCheckStableRunning=!0,nu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),ru(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return Fh(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),Oh(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return Fh(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),Oh(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,ru(e),nu(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ie.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(Ie.isInAngularZone())throw new w(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,AI,li,li);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const AI={};function nu(e){if(0==e._nesting&&!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 ru(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Fh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Oh(e){e._nesting--,nu(e)}class PI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Tt,this.onMicrotaskEmpty=new Tt,this.onStable=new Tt,this.onError=new Tt}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const Lh=new R(""),di=new R("");let su,ou=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,su||(function FI(e){su=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ie.assertNotInAngularZone(),tu(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())tu(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(G(Ie),G(iu),G(di))},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})(),iu=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return su?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Vt=null;const Rh=new R("AllowMultipleToken"),au=new R("PlatformDestroyListeners");function Bh(e,t,n=[]){const r=`Platform: ${t}`,o=new R(r);return(i=[])=>{let s=uu();if(!s||s.injector.get(Rh,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function RI(e){if(Vt&&!Vt.get(Rh,!1))throw new w(400,!1);Vt=e;const t=e.get(jh);(function kh(e){const t=e.get(Ah,null);t&&t.forEach(n=>n())})(e)}(function Hh(e=[],t){return tn.create({name:t,providers:[{provide:Ys,useValue:"platform"},{provide:au,useValue:new Set([()=>Vt=null])},...e]})}(a,r))}return function BI(e){const t=uu();if(!t)throw new w(401,!1);return t}()}}function uu(){return Vt?.get(jh)??null}let jh=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function $h(e,t){let n;return n="noop"===e?new PI:("zone.js"===e?void 0:e)||new Ie(t),n}(r?.ngZone,function Vh(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),i=[{provide:Ie,useValue:o}];return o.run(()=>{const s=tn.create({providers:i,parent:this.injector,name:n.moduleType.name}),a=n.create(s),u=a.injector.get(xn,null);if(!u)throw new w(402,!1);return o.runOutsideAngular(()=>{const l=o.onError.subscribe({next:c=>{u.handleError(c)}});a.onDestroy(()=>{fi(this._modules,a),l.unsubscribe()})}),function Uh(e,t,n){try{const r=n();return Sa(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(u,o,()=>{const l=a.injector.get(ci);return l.runInitializers(),l.donePromise.then(()=>(function yp(e){Ge(e,"Expected localeId to be defined"),"string"==typeof e&&(mp=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(xt,Gn)||Gn),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const o=zh({},r);return function OI(e,t,n){const r=new Ha(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(lu);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new w(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(au,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(G(tn))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function zh(e,t){return Array.isArray(t)?t.reduce(zh,e):{...e,...t}}let lu=(()=>{class e{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(n,r,o){this._zone=n,this._injector=r,this._exceptionHandler=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new Pe(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new Pe(a=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{Ie.assertNotInAngularZone(),tu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const l=this._zone.onUnstable.subscribe(()=>{Ie.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{u.unsubscribe(),l.unsubscribe()}});this.isStable=xm(i,s.pipe(function Nm(e={}){const{connector:t=(()=>new Li),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,l=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},p=()=>{f(),s=u=void 0,c=d=!1},h=()=>{const g=s;p(),g?.unsubscribe()};return Xn((g,D)=>{l++,!d&&!c&&f();const v=u=u??t();D.add(()=>{l--,0===l&&!d&&!c&&(a=Bi(h,o))}),v.subscribe(D),!s&&l>0&&(s=new Kn({next:C=>v.next(C),error:C=>{d=!0,f(),a=Bi(p,n,C),v.error(C)},complete:()=>{c=!0,f(),a=Bi(p,r),v.complete()}}),Wt(g).subscribe(s))})(i)}}()))}bootstrap(n,r){const o=n instanceof Dd;if(!this._injector.get(ci).done)throw!o&&function or(e){const t=W(e)||De(e)||be(e);return null!==t&&t.standalone}(n),new w(405,false);let s;s=o?n:this._injector.get(zo).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function LI(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Wn),l=s.create(tn.NULL,[],r||s.selector,a),c=l.location.nativeElement,d=l.injector.get(Lh,null);return d?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),fi(this.components,l),d?.unregisterApplication(c)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new w(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;fi(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(EI,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>fi(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new w(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(G(Ie),G(Sn),G(xn))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function fi(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Zh{constructor(){}supports(t){return Sr(t)}create(t){return new QI(t)}}const qI=(e,t)=>t;class QI{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||qI}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new ZI(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Yh),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Yh),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class ZI{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class YI{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Yh{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new YI,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Kh(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new XI(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class XI{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Jh(){return new gi([new Zh])}let gi=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Jh()),deps:[[e,new Fo,new Po]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new w(901,!1)}}return e.\u0275prov=J({token:e,providedIn:"root",factory:Jh}),e})();function eg(){return new jr([new Xh])}let jr=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||eg()),deps:[[e,new Fo,new Po]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new w(901,!1)}}return e.\u0275prov=J({token:e,providedIn:"root",factory:eg}),e})();const t0=Bh(null,"core",[]);let n0=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(G(lu))},e.\u0275mod=rr({type:e}),e.\u0275inj=ln({}),e})(),hu=null;function Vr(){return hu}class s0{}const Pt=new R("DocumentToken");let cg=(()=>{class e{constructor(n,r,o,i){this._iterableDiffers=n,this._keyValueDiffers=r,this._ngEl=o,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(n){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof n?n.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(n){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof n?n.split(/\s+/):n,this._rawClass&&(Sr(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const n=this._iterableDiffer.diff(this._rawClass);n&&this._applyIterableChanges(n)}else if(this._keyValueDiffer){const n=this._keyValueDiffer.diff(this._rawClass);n&&this._applyKeyValueChanges(n)}}_applyKeyValueChanges(n){n.forEachAddedItem(r=>this._toggleClass(r.key,r.currentValue)),n.forEachChangedItem(r=>this._toggleClass(r.key,r.currentValue)),n.forEachRemovedItem(r=>{r.previousValue&&this._toggleClass(r.key,!1)})}_applyIterableChanges(n){n.forEachAddedItem(r=>{if("string"!=typeof r.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Q(r.item)}`);this._toggleClass(r.item,!0)}),n.forEachRemovedItem(r=>this._toggleClass(r.item,!1))}_applyClasses(n){n&&(Array.isArray(n)||n instanceof Set?n.forEach(r=>this._toggleClass(r,!0)):Object.keys(n).forEach(r=>this._toggleClass(r,!!n[r])))}_removeClasses(n){n&&(Array.isArray(n)||n instanceof Set?n.forEach(r=>this._toggleClass(r,!1)):Object.keys(n).forEach(r=>this._toggleClass(r,!1)))}_toggleClass(n,r){(n=n.trim())&&n.split(/\s+/g).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return e.\u0275fac=function(n){return new(n||e)(k(gi),k(jr),k(An),k(Ed))},e.\u0275dir=qe({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})();class Iu{constructor(t,n){this._viewContainerRef=t,this._templateRef=n,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let bi=(()=>{class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(n){this._ngSwitch=n,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(n){this._defaultViews.push(n)}_matchCase(n){const r=n==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(n){if(this._defaultViews.length>0&&n!==this._defaultUsed){this._defaultUsed=n;for(const r of this._defaultViews)r.enforceState(n)}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=qe({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),e})(),gg=(()=>{class e{constructor(n,r,o){this.ngSwitch=o,o._addCase(),this._view=new Iu(n,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(n){return new(n||e)(k(vt),k(At),k(bi,9))},e.\u0275dir=qe({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),e})(),mg=(()=>{class e{constructor(n,r,o){o._addDefault(new Iu(n,r))}}return e.\u0275fac=function(n){return new(n||e)(k(vt),k(At),k(bi,9))},e.\u0275dir=qe({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0}),e})(),_b=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=rr({type:e}),e.\u0275inj=ln({}),e})();class Xb extends s0{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Au extends Xb{static makeCurrent(){!function o0(e){hu||(hu=e)}(new Au)}onAndCancel(t,n,r){return t.addEventListener(n,r,!1),()=>{t.removeEventListener(n,r,!1)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).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"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function Jb(){return Gr=Gr||document.querySelector("base"),Gr?Gr.getAttribute("href"):null}();return null==n?null:function eS(e){Mi=Mi||document.createElement("a"),Mi.setAttribute("href",e);const t=Mi.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Gr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function G0(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,t)}}let Mi,Gr=null;const Sg=new R("TRANSITION_ID"),nS=[{provide:Mh,useFactory:function tS(e,t,n){return()=>{n.get(ci).donePromise.then(()=>{const r=Vr(),o=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let i=0;i{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();const Ti=new R("EventManagerPlugins");let Ai=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>o.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}addGlobalEventListener(n,r,o){return this._findPluginFor(r).addGlobalEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const o=this._plugins;for(let i=0;i{class e{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),r.add(o))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})(),Wr=(()=>{class e extends Tg{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,o){n.forEach(i=>{const s=this._doc.createElement("style");s.textContent=i,o.push(r.appendChild(s))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(Ag),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(n,o,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(Ag))}}return e.\u0275fac=function(n){return new(n||e)(G(Pt))},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();function Ag(e){Vr().remove(e)}const xu={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Nu=/%COMP%/g;function Pu(e,t){return t.flat(100).map(n=>n.replace(Nu,e))}function Pg(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Fu=(()=>{class e{constructor(n,r,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new Ou(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case dt.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new cS(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(n),o}case dt.ShadowDom:return new dS(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const o=Pu(r.id,r.styles);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(G(Ai),G(Wr),G(Hr))},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();class Ou{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(xu[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){(Og(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Og(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=xu[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=xu[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Oe.DashCase|Oe.Important)?t.style.setProperty(n,r,o&Oe.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Oe.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,Pg(r)):this.eventManager.addEventListener(t,n,Pg(r))}}function Og(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class cS extends Ou{constructor(t,n,r,o){super(t),this.component=r;const i=Pu(o+"-"+r.id,r.styles);n.addStyles(i),this.contentAttr=function aS(e){return"_ngcontent-%COMP%".replace(Nu,e)}(o+"-"+r.id),this.hostAttr=function uS(e){return"_nghost-%COMP%".replace(Nu,e)}(o+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}class dS extends Ou{constructor(t,n,r,o){super(t),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=Pu(o.id,o.styles);for(let s=0;s{class e extends Mg{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(G(Pt))},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();const Lg=["alt","control","meta","shift"],pS={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},hS={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let gS=(()=>{class e extends Mg{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Vr().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Lg.forEach(l=>{const c=r.indexOf(l);c>-1&&(r.splice(c,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const u={};return u.domEventName=o,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let o=pS[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Lg.forEach(s=>{s!==o&&(0,hS[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(G(Pt))},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();const vS=Bh(t0,"browser",[{provide:xh,useValue:"browser"},{provide:Ah,useValue:function mS(){Au.makeCurrent()},multi:!0},{provide:Pt,useFactory:function DS(){return function zD(e){Vs=e}(document),document},deps:[]}]),Bg=new R(""),Hg=[{provide:di,useClass:class rS{addToWindow(t){Y.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},Y.getAllAngularTestabilities=()=>t.getAllTestabilities(),Y.getAllAngularRootElements=()=>t.getAllRootElements(),Y.frameworkStabilizers||(Y.frameworkStabilizers=[]),Y.frameworkStabilizers.push(r=>{const o=Y.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(u){s=s||u,i--,0==i&&r(s)};o.forEach(function(u){u.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?Vr().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:Lh,useClass:ou,deps:[Ie,iu,di]},{provide:ou,useClass:ou,deps:[Ie,iu,di]}],jg=[{provide:Ys,useValue:"root"},{provide:xn,useFactory:function yS(){return new xn},deps:[]},{provide:Ti,useClass:fS,multi:!0,deps:[Pt,Ie,xh]},{provide:Ti,useClass:gS,multi:!0,deps:[Pt]},{provide:Fu,useClass:Fu,deps:[Ai,Wr,Hr]},{provide:_d,useExisting:Fu},{provide:Tg,useExisting:Wr},{provide:Wr,useClass:Wr,deps:[Pt]},{provide:Ai,useClass:Ai,deps:[Ti,Ie]},{provide:class bb{},useClass:oS,deps:[]},[]];let _S=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Hr,useValue:n.appId},{provide:Sg,useExisting:Hr},nS]}}}return e.\u0275fac=function(n){return new(n||e)(G(Bg,12))},e.\u0275mod=rr({type:e}),e.\u0275inj=ln({providers:[...jg,...Hg],imports:[_b,n0]}),e})();function Ug(e,t,n,r,o,i,s){try{var a=e[i](s),u=a.value}catch(l){return void n(l)}a.done?t(u):Promise.resolve(u).then(r,o)}function Ne(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(u){Ug(i,r,o,s,a,"next",u)}function a(u){Ug(i,r,o,s,a,"throw",u)}s(void 0)})}}typeof window<"u"&&window;let Ot=new Audio;function qr(){return ku.apply(this,arguments)}function ku(){return(ku=Ne(function*(){Ot.src="assets/audio/complete.mp3",Ot.load(),Ot.play()})).apply(this,arguments)}function Qr(){return Bu.apply(this,arguments)}function Bu(){return(Bu=Ne(function*(){Ot.src="assets/audio/swap.mp3",Ot.load(),Ot.play()})).apply(this,arguments)}function Hu(){return ju.apply(this,arguments)}function ju(){return(ju=Ne(function*(){Ot.src="assets/audio/find.mp3",Ot.load(),Ot.play()})).apply(this,arguments)}const xS=e=>new Promise(t=>setTimeout(t,e));let zg=0;function de(){return Vu.apply(this,arguments)}function Vu(){return(Vu=Ne(function*(){yield xS(1e3-zg)})).apply(this,arguments)}class PS{sort(t){var n=this;return Ne(function*(){n.size=t,yield n.divide(0,t-1)})()}divide(t,n){var r=this;return Ne(function*(){if(t>=n)return;let o=Math.floor((t+n)/2);yield r.divide(t,o),yield r.divide(o+1,n),yield r.merge(t,n,o)})()}merge(t,n,r){var o=this;return Ne(function*(){let i=document.getElementById("details"),s=document.getElementById("temp"),u=new Array(n-t+1),l=t,c=r+1,d=0;const f=r-t+1,p=n-r;o.size<19&&(s.innerHTML=`tempArray: [ ${u} ]`);for(let h=l;h<=r;h++)document.getElementById(h.toString()).style.background="#ccccff";for(let h=c;h<=n;h++)document.getElementById(h.toString()).style.background="#f39c12";for(o.size<19&&(document.getElementById("indx"+t).innerHTML="low, i",document.getElementById("indx"+n).innerHTML=n==c?"high, j":"high",document.getElementById("indx"+r).innerHTML=r==t&&l==t?"low, mid, i":r==t?"low, mid":r==n?"high, mid":r==l?"mid, i":"mid",document.getElementById(l.toString()).style.backgroundColor="#0099ff",document.getElementById(c.toString()).style.backgroundColor="#0099ffb4"),yield de(),console.log(l);l<=r&&c<=n;)parseInt(document.getElementById(l.toString()).style.height)and (i <= mid, j< = high) , tempArr[ k ] = arr [ j ]"),c++,d++,o.size<19&&c<=n&&(document.getElementById("indx"+c).innerHTML=c==r?"mid, j":c==n?"high, j":"j",document.getElementById(c.toString()).style.backgroundColor="#0099ffb4",yield de(),i.innerHTML=""));for(;l<=r;)u[d]=parseInt(document.getElementById(l.toString()).style.height),o.size<19&&(document.getElementById("indx"+l).innerHTML="",document.getElementById("indx"+l).innerHTML=l==t&&l==r?"low, mid":l==t?"low":l==r?"mid":"",s.innerHTML=`tempArray: [ ${u} ]`,i.innerHTML="j > high, and i <= mid, tempArr[ k ] = arr [ i ]"),l++,d++,o.size<19&&l<=r&&(document.getElementById("indx"+l).innerHTML=l==r?"mid, i":l==n?"high, i":"i",document.getElementById(l.toString()).style.backgroundColor="#0099ff",yield de(),document.getElementById(l.toString()).style.backgroundColor="#ccccff",i.innerHTML="");for(;c<=r;)u[d]=parseInt(document.getElementById(c.toString()).style.height),o.size<19&&(document.getElementById("indx"+c).innerHTML="",document.getElementById("indx"+c).innerHTML=c==t&&c==r?"low, mid":c==n?"high":c==t?"low":"",s.innerHTML=`tempArray: [ ${u} ]`,i.innerHTML="i > mid, and j <= high, tempArr[ k ] = arr [ j ]"),c++,d++,o.size<19&&c<=n&&(document.getElementById("indx"+c).innerHTML=c==r?"mid, j":c==t?"low, j":c==n?"high, j":"j",document.getElementById(c.toString()).style.backgroundColor="#0099ffb4",yield de(),document.getElementById(c.toString()).style.backgroundColor="#f39c12",i.innerHTML="");yield de(),o.size<19&&(document.getElementById("indx"+r).innerHTML="",document.getElementById("indx"+t).innerHTML="",document.getElementById("indx"+n).innerHTML="");for(let h=0,g=t;h=19&&(document.getElementById(g.toString()).innerHTML=parseInt(document.getElementById(g.toString()).style.height).toString()+`

`),o.size<19&&(document.getElementById("indx"+g).innerHTML="",s.innerHTML=`tempArray: [ ${u} ]`,i.innerHTML=" Copy tempArr to arr, tempArr [ ] = arr [ ]"),f+p==o.size?(qr(),document.getElementById(g.toString()).style.background="#00cc00"):(Qr(),document.getElementById(g.toString()).style.background="#90ee90");yield de(),s.innerHTML="",i.innerHTML=""})()}}class FS{sort(t){var n=this;return Ne(function*(){n.size=t,yield n.quickSort(t-1,0),qr()})()}quickSort(t,n){var r=this;return Ne(function*(){if(n=0&&t>=0&&ni ++",document.getElementById("indx"+s).innerHTML=a==s?"j, i":"i"),yield de(),o.innerHTML="";for(;parseInt(document.getElementById(a.toString()).style.height)>i&&a>n;)document.getElementById(a.toString()).style.backgroundColor="#f39c12",r.size<19&&(document.getElementById("indx"+a).innerHTML=a==s?"i":""),a--,document.getElementById(a.toString()).style.backgroundColor="#0099ffb4",r.size<19&&(o.innerHTML="arr[ j ] <= pivot, j ++",document.getElementById("indx"+a).innerHTML=a==s?"i, j":a==n?"pivot, j":"j"),yield de(),o.innerHTML="";if(s=19?(document.getElementById(s.toString()).innerHTML=parseInt(document.getElementById(s.toString()).style.height).toString(),document.getElementById(a.toString()).innerHTML=parseInt(document.getElementById(a.toString()).style.height).toString()):r.size<19&&(o.innerHTML="arr[ i ] < a[ j ] and i < j, Swap( arr[ i ], arr[ j ] )",document.getElementById(s.toString()).innerHTML=parseInt(document.getElementById(s.toString()).style.height).toString()+`

i

`,document.getElementById(a.toString()).innerHTML=parseInt(document.getElementById(a.toString()).style.height).toString()+`

j

`),yield de(),o.innerHTML=""}yield de()}Qr();let u=document.getElementById(a.toString()).style.height;document.getElementById(a.toString()).style.height=document.getElementById(n.toString()).style.height,document.getElementById(n.toString()).style.height=u,r.size<30&&r.size>=19?(document.getElementById(n.toString()).innerHTML=parseInt(document.getElementById(n.toString()).style.height).toString(),document.getElementById(s.toString()).innerHTML=parseInt(document.getElementById(s.toString()).style.height).toString(),document.getElementById(a.toString()).innerHTML=parseInt(document.getElementById(a.toString()).style.height).toString()):r.size<19&&(o.innerHTML="i !< j, Swap( arr[ j ], arr[ low ] )",document.getElementById(n.toString()).innerHTML=parseInt(document.getElementById(n.toString()).style.height).toString()+`

`,document.getElementById(s.toString()).innerHTML=parseInt(document.getElementById(s.toString()).style.height).toString()+`

`,document.getElementById(a.toString()).innerHTML=parseInt(document.getElementById(a.toString()).style.height).toString()+`

`),document.getElementById(a.toString()).style.backgroundColor="#00cc00",document.getElementById(n.toString()).style.backgroundColor="#ff339962",yield de(),o.innerHTML="";for(var l=0;lparseInt(document.getElementById((o+1).toString()).style.height)){let i=document.getElementById(o.toString()).style.height;document.getElementById(o.toString()).style.height=document.getElementById((o+1).toString()).style.height,document.getElementById((o+1).toString()).style.height=i,Qr(),t<30&&t>=19?(document.getElementById(o.toString()).innerHTML=parseInt(document.getElementById(o.toString()).style.height).toString(),document.getElementById((o+1).toString()).innerHTML=parseInt(document.getElementById((o+1).toString()).style.height).toString()):t<19&&(n.innerHTML="arr[ j ] > arr[ j+1 ], Swap( arr[ j ], arr[ j+1 ] )",document.getElementById(o.toString()).innerHTML=parseInt(document.getElementById(o.toString()).style.height).toString()+`

`,document.getElementById((o+1).toString()).innerHTML=parseInt(document.getElementById((o+1).toString()).style.height).toString()+`

`),yield de(),n.innerHTML=""}t<30&&t>=19?(document.getElementById(o.toString()).innerHTML=parseInt(document.getElementById(o.toString()).style.height).toString(),document.getElementById((o+1).toString()).innerHTML=parseInt(document.getElementById((o+1).toString()).style.height).toString()):t<19&&(document.getElementById(o.toString()).innerHTML=parseInt(document.getElementById(o.toString()).style.height).toString()+`

`,document.getElementById((o+1).toString()).innerHTML=parseInt(document.getElementById((o+1).toString()).style.height).toString()+`

`),document.getElementById(o.toString()).style.background="#ff339962",document.getElementById((o+1).toString()).style.background="#ff339962"}document.getElementById((t-1-r).toString()).style.background="#00cc00"}document.getElementById("0").style.background="#00cc00",yield qr()})()}}class LS{sort(t){return Ne(function*(){let n=document.getElementById("details");for(var r=1;r=0&&o=19?document.getElementById((i+1).toString()).innerHTML=parseInt(document.getElementById((i+1).toString()).style.height).toString():t<19&&(document.getElementById((i+1).toString()).innerHTML=parseInt(document.getElementById((i+1).toString()).style.height).toString()+`

`),document.getElementById(r.toString()).style.backgroundColor="#00cc00",document.getElementById(i.toString()).style.backgroundColor="#0099ff",t<19&&(n.innerHTML="j >= 0 and curr < arr[ j+1 ], arr[ j+1 ] = arr[ j ]",document.getElementById("indx"+i).innerHTML=`curr=${o}`,document.getElementById("indx"+(i+1)).innerHTML=""),yield de(),i--,t<19&&(i>=0&&(document.getElementById("indx"+i).innerHTML=""),document.getElementById("indx"+(i+1)).innerHTML=`curr=${o}`),document.getElementById((i+1).toString()).style.backgroundColor="#00cc00",n.innerHTML="";document.getElementById((i+1).toString()).style.height=o+"px",Qr(),t<30&&t>=19?document.getElementById((i+1).toString()).innerHTML=parseInt(document.getElementById((i+1).toString()).style.height).toString():t<19&&(n.innerHTML="arr[ j+1 ] = curr",document.getElementById((i+1).toString()).innerHTML=parseInt(document.getElementById((i+1).toString()).style.height).toString()+`

`)}document.getElementById((t-1).toString()).style.backgroundColor="#00cc00",yield qr(),n.innerHTML=""})()}}class RS{sort(t){return Ne(function*(){let n=document.getElementById("details");for(var r=0;rparseInt(document.getElementById(o.toString()).style.height)&&(Hu(),t<19&&(document.getElementById("indx"+i).innerHTML=i==r?"i":"",document.getElementById("indx"+o).innerHTML="small",n.innerHTML="small > j, Swap( small, j )"),r!=i&&(document.getElementById(i.toString()).style.backgroundColor="#ff339962"),yield de(),document.getElementById(r.toString()).style.backgroundColor="#0099ff",i=o),n.innerHTML="",t<19&&(document.getElementById("indx"+i).innerHTML="small",document.getElementById("indx"+o).innerHTML=""),document.getElementById(i.toString()).style.backgroundColor="#ff6600",document.getElementById(r.toString()).style.backgroundColor="#ff339962",document.getElementById(o.toString()).style.backgroundColor="#ff339962";Qr();let s=document.getElementById(r.toString()).style.height;document.getElementById(r.toString()).style.height=document.getElementById(i.toString()).style.height,document.getElementById(i.toString()).style.height=s,t<30&&t>=19?(document.getElementById(r.toString()).innerHTML=parseInt(document.getElementById(r.toString()).style.height).toString(),document.getElementById(i.toString()).innerHTML=parseInt(document.getElementById(i.toString()).style.height).toString()):t<19&&(n.innerHTML="Swap( arr[ i ], arr[ small ] )",document.getElementById(r.toString()).innerHTML=parseInt(document.getElementById(r.toString()).style.height).toString()+`

`,document.getElementById(i.toString()).innerHTML=parseInt(document.getElementById(i.toString()).style.height).toString()+`

`),document.getElementById(i.toString()).style.backgroundColor="#ff339962",document.getElementById(r.toString()).style.backgroundColor="#00cc00",yield de(),n.innerHTML=""}document.getElementById((t-1).toString()).style.backgroundColor="#00cc00",yield qr()})()}}class Zr{constructor(){this.size=6}ngOnInit(){let t=document.getElementById("array");t.innerHTML="";for(var n=0;nconsole.error(e))}},ne=>{ne(ne.s=18)}]); \ No newline at end of file diff --git a/docs/main.e6d5a8532acf4daf.js b/docs/main.e6d5a8532acf4daf.js new file mode 100644 index 0000000..e9d55b3 --- /dev/null +++ b/docs/main.e6d5a8532acf4daf.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkSortingVisualizer=self.webpackChunkSortingVisualizer||[]).push([[179],{18:()=>{function ne(e){return"function"==typeof e}function Kr(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const Xr=Kr(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function Yn(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class ct{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(ne(r))try{r()}catch(i){t=i instanceof Xr?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{Gu(i)}catch(s){t=t??[],s instanceof Xr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Xr(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Gu(t);else{if(t instanceof ct){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Yn(n,t)}remove(t){const{_finalizers:n}=this;n&&Yn(n,t),t instanceof ct&&t._removeParent(this)}}ct.EMPTY=(()=>{const e=new ct;return e.closed=!0,e})();const Uu=ct.EMPTY;function zu(e){return e instanceof ct||e&&"closed"in e&&ne(e.remove)&&ne(e.add)&&ne(e.unsubscribe)}function Gu(e){ne(e)?e():e.unsubscribe()}const Ut={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Jr={setTimeout(e,t,...n){const{delegate:r}=Jr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=Jr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Wu(e){Jr.setTimeout(()=>{const{onUnhandledError:t}=Ut;if(!t)throw e;t(e)})}function qu(){}const qg=Ni("C",void 0,void 0);function Ni(e,t,n){return{kind:e,value:t,error:n}}let zt=null;function eo(e){if(Ut.useDeprecatedSynchronousErrorHandling){const t=!zt;if(t&&(zt={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=zt;if(zt=null,n)throw r}}else e()}class Pi extends ct{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,zu(t)&&t.add(this)):this.destination=em}static create(t,n,r){return new Kn(t,n,r)}next(t){this.isStopped?Oi(function Zg(e){return Ni("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Oi(function Qg(e){return Ni("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Oi(qg,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()}}}const Kg=Function.prototype.bind;function Fi(e,t){return Kg.call(e,t)}class Xg{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){to(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){to(r)}else to(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){to(n)}}}class Kn extends Pi{constructor(t,n,r){let o;if(super(),ne(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Ut.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Fi(t.next,i),error:t.error&&Fi(t.error,i),complete:t.complete&&Fi(t.complete,i)}):o=t}this.destination=new Xg(o)}}function to(e){Ut.useDeprecatedSynchronousErrorHandling?function Yg(e){Ut.useDeprecatedSynchronousErrorHandling&&zt&&(zt.errorThrown=!0,zt.error=e)}(e):Wu(e)}function Oi(e,t){const{onStoppedNotification:n}=Ut;n&&Jr.setTimeout(()=>n(e,t))}const em={closed:!0,next:qu,error:function Jg(e){throw e},complete:qu},Li="function"==typeof Symbol&&Symbol.observable||"@@observable";function Qu(e){return e}let Pe=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function nm(e){return e&&e instanceof Pi||function tm(e){return e&&ne(e.next)&&ne(e.error)&&ne(e.complete)}(e)&&zu(e)}(n)?n:new Kn(n,r,o);return eo(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Yu(r))((o,i)=>{const s=new Kn({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Li](){return this}pipe(...n){return function Zu(e){return 0===e.length?Qu:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=Yu(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Yu(e){var t;return null!==(t=e??Ut.Promise)&&void 0!==t?t:Promise}const rm=Kr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Ri=(()=>{class e extends Pe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Ku(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new rm}next(n){eo(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){eo(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){eo(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{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(null===(n=this.observers)||void 0===n?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){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Uu:(this.currentObservers=null,i.push(n),new ct(()=>{this.currentObservers=null,Yn(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new Pe;return n.source=this,n}}return e.create=(t,n)=>new Ku(t,n),e})();class Ku extends Ri{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Uu}}function Xn(e){return t=>{if(function om(e){return ne(e?.lift)}(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 no(e,t,n,r,o){return new im(e,t,n,r,o)}class im extends Pi{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}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()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function Gt(e){return this instanceof Gt?(this.v=e,this):new Gt(e)}function lm(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(p){return new Promise(function(h,g){i.push([f,p,h,g])>1||a(f,p)})})}function a(f,p){try{!function u(f){f.value instanceof Gt?Promise.resolve(f.value.v).then(l,c):d(i[0][2],f)}(r[f](p))}catch(h){d(i[0][3],h)}}function l(f){a("next",f)}function c(f){a("throw",f)}function d(f,p){f(p),i.shift(),i.length&&a(i[0][0],i[0][1])}}function cm(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function el(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)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.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){!function o(i,s,a,u){Promise.resolve(u).then(function(l){i({value:l,done:a})},s)}(a,u,(s=e[i](s)).done,s.value)})}}}const tl=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function nl(e){return ne(e?.then)}function rl(e){return ne(e[Li])}function ol(e){return Symbol.asyncIterator&&ne(e?.[Symbol.asyncIterator])}function il(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const sl=function fm(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function al(e){return ne(e?.[sl])}function ul(e){return lm(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield Gt(n.read());if(o)return yield Gt(void 0);yield yield Gt(r)}}finally{n.releaseLock()}})}function ll(e){return ne(e?.getReader)}function Wt(e){if(e instanceof Pe)return e;if(null!=e){if(rl(e))return function pm(e){return new Pe(t=>{const n=e[Li]();if(ne(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(tl(e))return function hm(e){return new Pe(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Wu)})}(e);if(ol(e))return cl(e);if(al(e))return function mm(e){return new Pe(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(ll(e))return function ym(e){return cl(ul(e))}(e)}throw il(e)}function cl(e){return new Pe(t=>{(function Dm(e,t){var n,r,o,i;return function am(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(c){try{l(r.next(c))}catch(d){s(d)}}function u(c){try{l(r.throw(c))}catch(d){s(d)}}function l(c){c.done?i(c.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(c.value).then(a,u)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=cm(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Lt(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function dl(e,t,n=1/0){return ne(t)?dl((r,o)=>function sm(e,t){return Xn((n,r)=>{let o=0;n.subscribe(no(r,i=>{r.next(e.call(t,i,o++))}))})}((i,s)=>t(r,i,o,s))(Wt(e(r,o))),n):("number"==typeof t&&(n=t),Xn((r,o)=>function vm(e,t,n,r,o,i,s,a){const u=[];let l=0,c=0,d=!1;const f=()=>{d&&!u.length&&!l&&t.complete()},p=g=>l{i&&t.next(g),l++;let D=!1;Wt(n(g,c++)).subscribe(no(t,v=>{o?.(v),i?p(v):t.next(v)},()=>{D=!0},void 0,()=>{if(D)try{for(l--;u.length&&lh(v)):h(v)}f()}catch(v){t.error(v)}}))};return e.subscribe(no(t,p,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}const fl=new Pe(e=>e.complete());function Bi(e){return e[e.length-1]}function pl(e,t=0){return Xn((n,r)=>{n.subscribe(no(r,o=>Lt(r,e,()=>r.next(o),t),()=>Lt(r,e,()=>r.complete(),t),o=>Lt(r,e,()=>r.error(o),t)))})}function hl(e,t=0){return Xn((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function gl(e,t){if(!e)throw new Error("Iterable cannot be null");return new Pe(n=>{Lt(n,t,()=>{const r=e[Symbol.asyncIterator]();Lt(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Pm(...e){const t=function wm(e){return function Cm(e){return e&&ne(e.schedule)}(Bi(e))?e.pop():void 0}(e),n=function Im(e,t){return"number"==typeof Bi(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?Wt(r[0]):function _m(e=1/0){return dl(Qu,e)}(n)(function Nm(e,t){return t?function xm(e,t){if(null!=e){if(rl(e))return function bm(e,t){return Wt(e).pipe(hl(t),pl(t))}(e,t);if(tl(e))return function Mm(e,t){return new Pe(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(nl(e))return function Sm(e,t){return Wt(e).pipe(hl(t),pl(t))}(e,t);if(ol(e))return gl(e,t);if(al(e))return function Tm(e,t){return new Pe(n=>{let r;return Lt(n,t,()=>{r=e[sl](),Lt(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>ne(r?.return)&&r.return()})}(e,t);if(ll(e))return function Am(e,t){return gl(ul(e),t)}(e,t)}throw il(e)}(e,t):Wt(e)}(r,t)):fl}function Hi(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Kn({next:()=>{r.unsubscribe(),e()}});return t(...n).subscribe(r)}function q(e){for(let t in e)if(e[t]===q)return t;throw Error("Could not find renamed property on target object.")}function Q(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Q).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Vi(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Om=q({__forward_ref__:q});function $i(e){return e.__forward_ref__=$i,e.toString=function(){return Q(this())},e}function b(e){return function Ui(e){return"function"==typeof e&&e.hasOwnProperty(Om)&&e.__forward_ref__===$i}(e)?e():e}function zi(e){return e&&!!e.\u0275providers}class w extends Error{constructor(t,n){super(function ro(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,n)),this.code=t}}function A(e){return"string"==typeof e?e:null==e?"":String(e)}function oo(e,t){throw new w(-201,!1)}function We(e,t){null==e&&function z(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function J(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ln(e){return{providers:e.providers||[],imports:e.imports||[]}}function io(e){return yl(e,so)||yl(e,vl)}function yl(e,t){return e.hasOwnProperty(t)?e[t]:null}function Dl(e){return e&&(e.hasOwnProperty(Gi)||e.hasOwnProperty($m))?e[Gi]:null}const so=q({\u0275prov:q}),Gi=q({\u0275inj:q}),vl=q({ngInjectableDef:q}),$m=q({ngInjectorDef:q});var T=(()=>((T=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))();let Wi;function qe(e){const t=Wi;return Wi=e,t}function _l(e,t,n){const r=io(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&T.Optional?null:void 0!==t?t:void oo(Q(e))}const Y=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Jn={},qi="__NG_DI_FLAG__",ao="ngTempTokenPath",Gm=/\n/gm,El="__source";let er;function cn(e){const t=er;return er=e,t}function qm(e,t=T.Default){if(void 0===er)throw new w(-203,!1);return null===er?_l(e,void 0,t):er.get(e,t&T.Optional?null:void 0,t)}function G(e,t=T.Default){return(function Um(){return Wi}()||qm)(b(e),t)}function uo(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Qi(e){const t=[];for(let n=0;n((et=et||{})[et.OnPush=0]="OnPush",et[et.Default=1]="Default",et))(),dt=(()=>{return(e=dt||(dt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",dt;var e})();const _t={},$=[],lo=q({\u0275cmp:q}),Zi=q({\u0275dir:q}),Yi=q({\u0275pipe:q}),wl=q({\u0275mod:q}),Et=q({\u0275fac:q}),nr=q({__NG_ELEMENT_ID__:q});let Xm=0;function co(e){return kt(()=>{const n=!0===e.standalone,r={},o={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===et.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||$,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||dt.Emulated,id:"c"+Xm++,styles:e.styles||$,_:null,setInput:null,schemas:e.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},i=e.dependencies,s=e.features;return o.inputs=Sl(e.inputs,r),o.outputs=Sl(e.outputs),s&&s.forEach(a=>a(o)),o.directiveDefs=i?()=>("function"==typeof i?i():i).map(Il).filter(bl):null,o.pipeDefs=i?()=>("function"==typeof i?i():i).map(be).filter(bl):null,o})}function Il(e){return W(e)||De(e)}function bl(e){return null!==e}function rr(e){return kt(()=>({type:e.type,bootstrap:e.bootstrap||$,declarations:e.declarations||$,imports:e.imports||$,exports:e.exports||$,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Sl(e,t){if(null==e)return _t;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}const Qe=co;function W(e){return e[lo]||null}function De(e){return e[Zi]||null}function be(e){return e[Yi]||null}const L=11,X=22;function je(e){return Array.isArray(e)&&"object"==typeof e[1]}function nt(e){return Array.isArray(e)&&!0===e[1]}function Ji(e){return 0!=(4&e.flags)}function ur(e){return e.componentOffset>-1}function mo(e){return 1==(1&e.flags)}function rt(e){return null!==e.template}function ty(e){return 0!=(256&e[2])}function Qt(e,t){return e.hasOwnProperty(Et)?e[Et]:null}class oy{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Pl(e){return e.type.prototype.ngOnChanges&&(e.setInput=sy),iy}function iy(){const e=Ol(this),t=e?.current;if(t){const n=e.previous;if(n===_t)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function sy(e,t,n,r){const o=this.declaredInputs[n],i=Ol(e)||function ay(e,t){return e[Fl]=t}(e,{previous:_t,current:null}),s=i.current||(i.current={}),a=i.previous,u=a[o];s[o]=new oy(u&&u.currentValue,t,a===_t),e[r]=t}const Fl="__ngSimpleChanges__";function Ol(e){return e[Fl]||null}function me(e){for(;Array.isArray(e);)e=e[0];return e}function Ve(e,t){return me(t[e.index])}function kl(e,t){return e.data[t]}function $e(e,t){const n=t[e];return je(n)?n:n[0]}function vo(e){return 64==(64&e[2])}function Bt(e,t){return null==t?null:e[t]}function Bl(e){e[18]=0}function ts(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const x={lFrame:Ql(null),bindingsEnabled:!0};function jl(){return x.bindingsEnabled}function y(){return x.lFrame.lView}function V(){return x.lFrame.tView}function _o(e){return x.lFrame.contextLView=e,e[8]}function Eo(e){return x.lFrame.contextLView=null,e}function ye(){let e=Vl();for(;null!==e&&64===e.type;)e=e.parent;return e}function Vl(){return x.lFrame.currentTNode}function pt(e,t){const n=x.lFrame;n.currentTNode=e,n.isParent=t}function ns(){return x.lFrame.isParent}function mn(){return x.lFrame.bindingIndex++}function _y(e,t){const n=x.lFrame;n.bindingIndex=n.bindingRootIndex=e,os(t)}function os(e){x.lFrame.currentDirectiveIndex=e}function ss(e){x.lFrame.currentQueryIndex=e}function Cy(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Wl(e,t,n){if(n&T.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&T.Host||(o=Cy(i),null===o||(i=i[15],10&o.type))););if(null===o)return!1;t=o,e=i}const r=x.lFrame=ql();return r.currentTNode=t,r.lView=e,!0}function as(e){const t=ql(),n=e[1];x.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ql(){const e=x.lFrame,t=null===e?null:e.child;return null===t?Ql(e):t}function Ql(e){const 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 null!==e&&(e.child=t),t}function Zl(){const e=x.lFrame;return x.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Yl=Zl;function us(){const e=Zl();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 Te(){return x.lFrame.selectedIndex}function Zt(e){x.lFrame.selectedIndex=e}function Co(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{i.call(a)}finally{}}}else try{i.call(a)}finally{}}class cr{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function ds(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let fs=!0;function Mo(e){const t=fs;return fs=e,t}let Ry=0;const ht={};function To(e,t){const n=oc(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,ps(r.data,e),ps(t,null),ps(r.blueprint,null));const o=hs(e,t),i=e.injectorIndex;if(tc(o)){const s=bo(o),a=So(o,t),u=a[1].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|u[s+l]}return t[i+8]=o,i}function ps(e,t){e.push(0,0,0,0,0,0,0,0,t)}function oc(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function hs(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=dc(o),null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function gs(e,t,n){!function ky(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(nr)&&(r=n[nr]),null==r&&(r=n[nr]=Ry++);const o=255&r;t.data[e+(o>>5)]|=1<=0?255&t:Vy:t}(n);if("function"==typeof i){if(!Wl(t,e,r))return r&T.Host?ic(o,0,r):sc(t,n,r,o);try{const s=i(r);if(null!=s||r&T.Optional)return s;oo()}finally{Yl()}}else if("number"==typeof i){let s=null,a=oc(e,t),u=-1,l=r&T.Host?t[16][6]:null;for((-1===a||r&T.SkipSelf)&&(u=-1===a?hs(e,t):t[a+8],-1!==u&&cc(r,!1)?(s=t[1],a=bo(u),t=So(u,t)):a=-1);-1!==a;){const c=t[1];if(lc(i,a,c.data)){const d=Hy(a,t,n,s,r,l);if(d!==ht)return d}u=t[a+8],-1!==u&&cc(r,t[1].data[a+8]===l)&&lc(i,a,t)?(s=c,a=bo(u),t=So(u,t)):a=-1}}return o}function Hy(e,t,n,r,o,i){const s=t[1],a=s.data[e+8],c=function Ao(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,u=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let p=r?a:a+c;p=u&&h.type===n)return p}if(o){const p=s[u];if(p&&rt(p)&&p.type===n)return u}return null}(a,s,n,null==r?ur(a)&&fs:r!=s&&0!=(3&a.type),o&T.Host&&i===a);return null!==c?Yt(t,s,c,a):ht}function Yt(e,t,n,r){let o=e[n];const i=t.data;if(function Py(e){return e instanceof cr}(o)){const s=o;s.resolving&&function Lm(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new w(-200,`Circular dependency in DI detected for ${e}${n}`)}(function U(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():A(e)}(i[n]));const a=Mo(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?qe(s.injectImpl):null;Wl(e,r,T.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function xy(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=Pl(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{null!==u&&qe(u),Mo(a),s.resolving=!1,Yl()}}return o}function lc(e,t,n){return!!(n[t+(e>>5)]&1<{const r=function Ds(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(u,l,c){const d=u.hasOwnProperty(_n)?u[_n]:Object.defineProperty(u,_n,{value:[]})[_n];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class R{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=J({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Kt(e,t){e.forEach(n=>Array.isArray(n)?Kt(n,t):t(n))}function pc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const Po=tr(Cn("Optional"),8),Fo=tr(Cn("SkipSelf"),4);var Oe=(()=>((Oe=Oe||{})[Oe.Important=1]="Important",Oe[Oe.DashCase=2]="DashCase",Oe))();const Ss=new Map;let gD=0;const Ts="__ngContext__";function Ee(e,t){je(t)?(e[Ts]=t[20],function yD(e){Ss.set(e[20],e)}(t)):e[Ts]=t}function xs(e,t){return undefined(e,t)}function Dr(e){const t=e[3];return nt(t)?t[3]:t}function Ns(e){return Oc(e[13])}function Ps(e){return Oc(e[4])}function Oc(e){for(;null!==e&&!nt(e);)e=e[4];return e}function bn(e,t,n,r,o){if(null!=r){let i,s=!1;nt(r)?i=r:je(r)&&(s=!0,r=r[0]);const a=me(r);0===e&&null!==n?null==o?jc(t,n,a):Xt(t,n,a,o||null,!0):1===e&&null!==n?Xt(t,n,a,o||null,!0):2===e?function Hs(e,t,n){const r=Ro(e,t);r&&function kD(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function jD(e,t,n,r,o){const i=n[7];i!==me(n)&&bn(t,e,r,i,o);for(let a=10;a0&&(e[n-1][4]=r[4]);const i=xo(e,10+t);!function AD(e,t){vr(e,t,t[L],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=i[19];null!==s&&s.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-65}return r}function kc(e,t){if(!(128&t[2])){const n=t[L];n.destroyNode&&vr(e,t,n,3,null,null),function PD(e){let t=e[13];if(!t)return Rs(e[1],e);for(;t;){let n=null;if(je(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)je(t)&&Rs(t[1],t),t=t[3];null===t&&(t=e),je(t)&&Rs(t[1],t),n=t&&t[4]}t=n}}(t)}}function Rs(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function RD(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[o=s]():r[o=-s].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===dt.None||i===dt.Emulated)return null}return Ve(r,n)}}(e,t.parent,n)}function Xt(e,t,n,r,o){e.insertBefore(t,n,r,o)}function jc(e,t,n){e.appendChild(t,n)}function Vc(e,t,n,r,o){null!==r?Xt(e,t,n,r,o):jc(e,t,n)}function Ro(e,t){return e.parentNode(t)}let $s,zc=function Uc(e,t,n){return 40&e.type?Ve(e,n):null};function ko(e,t,n,r){const o=Bc(e,r,t),i=t[L],a=function $c(e,t,n){return zc(e,t,n)}(r.parent||t[6],r,t);if(null!=o)if(Array.isArray(n))for(let u=0;u{const s=i;Qs(s,n,[],r)&&(o||(o=[]),o.push(s))}),void 0!==o&&hd(o,n),n}function hd(e,t){for(let n=0;n{t.push(i)})}}function Qs(e,t,n,r){if(!(e=b(e)))return!1;let o=null,i=Dl(e);const s=!i&&W(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const u=e.ngModule;if(i=Dl(u),!i)return!1;o=u}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const u="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of u)Qs(l,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{Kt(i.imports,c=>{Qs(c,t,n,r)&&(l||(l=[]),l.push(c))})}finally{}void 0!==l&&hd(l,t)}if(!a){const l=Qt(o)||(()=>new o);t.push({provide:o,useFactory:l,deps:$},{provide:dd,useValue:o,multi:!0},{provide:ld,useValue:()=>G(o),multi:!0})}const u=i.providers;null==u||a||Zs(u,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function Zs(e,t){for(let n of e)zi(n)&&(n=n.\u0275providers),Array.isArray(n)?Zs(n,t):t(n)}const yv=q({provide:String,useValue:q});function Ys(e){return null!==e&&"object"==typeof e&&yv in e}function en(e){return"function"==typeof e}const Ks=new R("Set Injector scope."),$o={},vv={};let Xs;function Uo(){return void 0===Xs&&(Xs=new fd),Xs}class Sn{}class yd extends Sn{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ea(t,s=>this.processProvider(s)),this.records.set(cd,Mn(void 0,this)),o.has("environment")&&this.records.set(Sn,Mn(void 0,this));const i=this.records.get(Ks);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(dd.multi,$,T.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=cn(this),r=qe(void 0);try{return t()}finally{cn(n),qe(r)}}get(t,n=Jn,r=T.Default){this.assertNotDestroyed(),r=uo(r);const o=cn(this),i=qe(void 0);try{if(!(r&T.SkipSelf)){let a=this.records.get(t);if(void 0===a){const u=function Iv(e){return"function"==typeof e||"object"==typeof e&&e instanceof R}(t)&&io(t);a=u&&this.injectableDefInScope(u)?Mn(Js(t),$o):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&T.Self?Uo():this.parent).get(t,n=r&T.Optional&&n===Jn?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[ao]=s[ao]||[]).unshift(Q(t)),o)throw s;return function Ym(e,t,n,r){const o=e[ao];throw t[El]&&o.unshift(t[El]),e.message=function Km(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Q(t);if(Array.isArray(t))o=t.map(Q).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):Q(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Gm,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[ao]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{qe(i),cn(o)}}resolveInjectorInitializers(){const t=cn(this),n=qe(void 0);try{const r=this.get(ld.multi,$,T.Self);for(const o of r)o()}finally{cn(t),qe(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Q(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(t){let n=en(t=b(t))?t:b(t&&t.provide);const r=function Ev(e){return Ys(e)?Mn(void 0,e.useValue):Mn(function Dd(e,t,n){let r;if(en(e)){const o=b(e);return Qt(o)||Js(o)}if(Ys(e))r=()=>b(e.useValue);else if(function md(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Qi(e.deps||[]));else if(function gd(e){return!(!e||!e.useExisting)}(e))r=()=>G(b(e.useExisting));else{const o=b(e&&(e.useClass||e.provide));if(!function Cv(e){return!!e.deps}(e))return Qt(o)||Js(o);r=()=>new o(...Qi(e.deps))}return r}(e),$o)}(t);if(en(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=Mn(void 0,$o,!0),o.factory=()=>Qi(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===$o&&(n.value=vv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function wv(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=b(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Js(e){const t=io(e),n=null!==t?t.factory:Qt(e);if(null!==n)return n;if(e instanceof R)throw new w(204,!1);if(e instanceof Function)return function _v(e){const t=e.length;if(t>0)throw function hr(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new w(204,!1)}function Mn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ea(e,t){for(const n of e)Array.isArray(n)?ea(n,t):n&&zi(n)?ea(n.\u0275providers,t):t(n)}class bv{}class vd{}class Mv{resolveComponentFactory(t){throw function Sv(e){const t=Error(`No component factory found for ${Q(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let zo=(()=>{class e{}return e.NULL=new Mv,e})();function Tv(){return Tn(ye(),y())}function Tn(e,t){return new An(Ve(e,t))}let An=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=Tv,e})();class Ed{}let Cd=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function xv(){const e=y(),n=$e(ye().index,e);return(je(n)?n:e)[L]}(),e})(),Nv=(()=>{class e{}return e.\u0275prov=J({token:e,providedIn:"root",factory:()=>null}),e})();class ta{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Pv=new ta("15.1.0"),na={};function oa(e){return e.ngOriginalError}class xn{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&oa(t);for(;n&&oa(n);)n=oa(n);return n||null}}function Id(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}const bd="ng-template";function Uv(e,t,n){let r=0;for(;ri?"":o[d+1].toLowerCase();const p=8&r?f:null;if(p&&-1!==Id(p,l,0)||2&r&&l!==f){if(ot(r))return!1;s=!0}}}}else{if(!s&&!ot(r)&&!ot(u))return!1;if(s&&ot(u))continue;s=!1,r=u|1&r}}return ot(r)||s}function ot(e){return 0==(1&e)}function Wv(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!ot(s)&&(t+=Td(i,o),o=""),r=s,i=i||!ot(r);n++}return""!==o&&(t+=Td(i,o)),t}const N={};function Ce(e){Ad(V(),y(),Te()+e,!1)}function Ad(e,t,n,r){if(!r)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&wo(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Io(t,i,0,n)}Zt(n)}function Fd(e,t=null,n=null,r){const o=Od(e,t,n,r);return o.resolveInjectorInitializers(),o}function Od(e,t=null,n=null,r,o=new Set){const i=[n||$,mv(e)];return r=r||("object"==typeof e?void 0:Q(e)),new yd(i,t||Uo(),r||null,o)}let tn=(()=>{class e{static create(n,r){if(Array.isArray(n))return Fd({name:""},r,n,"");{const o=n.name??"";return Fd({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=Jn,e.NULL=new fd,e.\u0275prov=J({token:e,providedIn:"any",factory:()=>G(cd)}),e.__NG_ELEMENT_ID__=-1,e})();function k(e,t=T.Default){const n=y();return null===n?G(e,t):ac(ye(),n,b(e),t)}function Vd(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;rX&&Ad(e,t,X,!1),n(r,o)}finally{Zt(i)}}function da(e,t,n){if(Ji(t)){const o=t.directiveEnd;for(let i=t.directiveStart;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,wr(e,n,o.hostVars,N),o)}function B_(e,t,n,r,o,i){const s=i[t];if(null!==s){const a=r.setInput;for(let u=0;u0&&Da(n)}}function Da(e){for(let r=Ns(e);null!==r;r=Ps(r))for(let o=10;o0&&Da(i)}const n=e[1].components;if(null!==n)for(let r=0;r0&&Da(o)}}function U_(e,t){const n=$e(t,e),r=n[1];(function z_(e,t){for(let n=t.length;n-1&&(Ls(t,r),xo(n,r))}this._attachedToViewContainer=!1}kc(this._lView[1],this._lView)}onDestroy(t){!function zd(e,t,n,r){const o=Kd(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&Xd(e).push(r,o.length-1))}(this._lView[1],this._lView,null,t)}markForCheck(){va(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Zo(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ND(e,t){vr(e,t,t[L],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=t}}class G_ extends Ir{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Zo(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class tf extends zo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=W(t);return new br(n,this.ngModule)}}function nf(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class q_{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=uo(r);const o=this.injector.get(t,na,r);return o!==na||n===na?o:this.parentInjector.get(t,n,r)}}class br extends vd{get inputs(){return nf(this.componentDef.inputs)}get outputs(){return nf(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Xv(e){return e.map(Kv).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof Sn?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new q_(t,i):t,a=s.get(Ed,null);if(null===a)throw new w(407,!1);const u=s.get(Nv,null),l=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=r?function w_(e,t,n){return e.selectRootElement(t,n===dt.ShadowDom)}(l,r,this.componentDef.encapsulation):Os(l,c,function W_(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),f=this.componentDef.onPush?288:272,p=ha(0,null,null,1,0,null,null,null,null,null),h=Wo(null,p,null,f,null,null,a,l,u,s,null);let g,D;as(h);try{const v=this.componentDef;let C,m=null;v.findHostDirectiveDefs?(C=[],m=new Map,v.findHostDirectiveDefs(v,C,m),C.push(v)):C=[v];const M=function Z_(e,t){const n=e[1];return e[22]=t,Fn(n,22,2,"#host",null)}(h,d),Z=function Y_(e,t,n,r,o,i,s,a){const u=o[1];!function K_(e,t,n,r){for(const o of e)t.mergedAttrs=dr(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(Yo(t,t.mergedAttrs,!0),null!==n&&Zc(r,n,t))}(r,e,t,s);const l=i.createRenderer(t,n),c=Wo(o,Ud(n),null,n.onPush?32:16,o[e.index],e,i,l,a||null,null,null);return u.firstCreatePass&&ma(u,e,r.length-1),Qo(o,c),o[e.index]=c}(M,d,v,C,h,a,l);D=kl(p,X),d&&function J_(e,t,n,r){if(r)ds(e,n,["ng-version",Pv.full]);else{const{attrs:o,classes:i}=function Jv(e){const t=[],n=[];let r=1,o=2;for(;r0&&Qc(e,n,i.join(" "))}}(l,v,d,r),void 0!==n&&function eE(e,t,n){const r=e.projection=[];for(let o=0;os(me(M[r.index])):r.index;let m=null;if(!s&&a&&(m=function _E(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;iu?a[u]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=i,m.__ngLastListenerFn__=i,f=!1;else{i=bf(r,t,c,i,!1);const M=n.listen(D,o,i);d.push(i,M),l&&l.push(o,C,v,v+1)}}else i=bf(r,t,c,i,!1);const p=r.outputs;let h;if(f&&null!==p&&(h=p[o])){const g=h.length;if(g)for(let D=0;D-1?$e(e.index,t):t);let u=If(t,0,r,s),l=i.__ngNextListenerFn__;for(;l;)u=If(t,0,l,s)&&u,l=l.__ngNextListenerFn__;return o&&!1===u&&(s.preventDefault(),s.returnValue=!1),u}}function P(e,t=""){const n=y(),r=V(),o=e+X,i=r.firstCreatePass?Fn(r,o,1,t,null):r.data[o],s=n[o]=function Fs(e,t){return e.createText(t)}(n[L],t);ko(r,n,s,i),pt(i,!1)}function xr(e){return Fa("",e,""),xr}function Fa(e,t,n){const r=y(),o=function Ln(e,t,n,r){return we(e,mn(),n)?t+A(n)+r:N}(r,e,t,n);return o!==N&&Mt(r,Te(),o),Fa}const Gn="en-US";let yp=Gn;class Wn{}class dw{}class Up extends Wn{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new tf(this);const r=function He(e,t){const n=e[wl]||null;if(!n&&!0===t)throw new Error(`Type ${Q(e)} does not have '\u0275mod' property.`);return n}(t);this._bootstrapComponents=function St(e){return e instanceof Function?e():e}(r.bootstrap),this._r3Injector=Od(t,n,[{provide:Wn,useValue:this},{provide:zo,useValue:this.componentFactoryResolver}],Q(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ja extends dw{constructor(t){super(),this.moduleType=t}create(t){return new Up(this.moduleType,t)}}function $a(e,t,n,r){return function Kp(e,t,n,r,o,i){const s=t+n;return we(e,s,o)?function mt(e,t,n){return e[t]=n}(e,s+1,i?r.call(i,o):r(o)):function Rr(e,t){const n=e[t];return n===N?void 0:n}(e,s+1)}(y(),function Me(){const e=x.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),e,t,n,r)}function Ua(e){return t=>{setTimeout(e,void 0,t)}}const Tt=class jw extends Ri{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=Ua(i),o&&(o=Ua(o)),s&&(s=Ua(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof ct&&t.add(a),a}};let At=(()=>{class e{}return e.__NG_ELEMENT_ID__=zw,e})();const $w=At,Uw=class extends $w{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t,n){const r=this._declarationTContainer.tViews,o=Wo(this._declarationLView,r,t,16,null,r.declTNode,null,null,null,null,n||null);o[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(o[19]=s.createEmbeddedView(r)),ca(r,o,t),new Ir(o)}};function zw(){return function ai(e,t){return 4&e.type?new Uw(t,e,Tn(e,t)):null}(ye(),y())}let vt=(()=>{class e{}return e.__NG_ELEMENT_ID__=Gw,e})();function Gw(){return function oh(e,t){let n;const r=t[e.index];if(nt(r))n=r;else{let o;if(8&e.type)o=me(r);else{const i=t[L];o=i.createComment("");const s=Ve(e,t);Xt(i,Ro(i,s),o,function BD(e,t){return e.nextSibling(t)}(i,s),!1)}t[e.index]=n=Yd(r,t,o,e),Qo(t,n)}return new nh(n,e,t)}(ye(),y())}const Ww=vt,nh=class extends Ww{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Tn(this._hostTNode,this._hostLView)}get injector(){return new Dn(this._hostTNode,this._hostLView)}get parentInjector(){const t=hs(this._hostTNode,this._hostLView);if(tc(t)){const n=So(t,this._hostLView),r=bo(t);return new Dn(n[1].data[r+8],n)}return new Dn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=rh(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const s=t.createEmbeddedView(n||{},i);return this.insert(s,o),s}createComponent(t,n,r,o,i){const s=t&&!function pr(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const d=n||{};a=d.index,r=d.injector,o=d.projectableNodes,i=d.environmentInjector||d.ngModuleRef}const u=s?t:new br(W(t)),l=r||this.parentInjector;if(!i&&null==u.ngModule){const f=(s?l:this.parentInjector).get(Sn,null);f&&(i=f)}const c=u.create(l,o,void 0,i);return this.insert(c.hostView,a),c}insert(t,n){const r=t._lView,o=r[1];if(function fy(e){return nt(e[3])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const d=r[3],f=new nh(d,d[6],d[3]);f.detach(f.indexOf(t))}}const i=this._adjustIndex(n),s=this._lContainer;!function FD(e,t,n,r){const o=10+r,i=n.length;r>0&&(n[o-1][4]=t),r{class e{constructor(n){this.appInits=n,this.resolve=li,this.reject=li,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{i.subscribe({complete:a,error:u})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(G(Th,8))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Hr=new R("AppId",{providedIn:"root",factory:function Ah(){return`${tu()}${tu()}${tu()}`}});function tu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const xh=new R("Platform Initializer"),Nh=new R("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),wI=new R("appBootstrapListener"),xt=new R("LocaleId",{providedIn:"root",factory:()=>function Qm(e,t=T.Default){return G(e,uo(t))}(xt,T.Optional|T.SkipSelf)||function II(){return typeof $localize<"u"&&$localize.locale||Gn}()}),AI=(()=>Promise.resolve(0))();function nu(e){typeof Zone>"u"?AI.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Ie{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Tt(!1),this.onMicrotaskEmpty=new Tt(!1),this.onStable=new Tt(!1),this.onError=new Tt(!1),typeof Zone>"u")throw new w(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function xI(){let e=Y.requestAnimationFrame,t=Y.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function FI(e){const t=()=>{!function PI(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Y,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,ou(e),e.isCheckStableRunning=!0,ru(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),ou(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return Oh(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),Lh(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return Oh(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),Lh(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,ou(e),ru(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ie.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(Ie.isInAngularZone())throw new w(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,NI,li,li);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const NI={};function ru(e){if(0==e._nesting&&!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 ou(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Oh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Lh(e){e._nesting--,ru(e)}class OI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Tt,this.onMicrotaskEmpty=new Tt,this.onStable=new Tt,this.onError=new Tt}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const Rh=new R(""),di=new R("");let au,iu=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,au||(function LI(e){au=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ie.assertNotInAngularZone(),nu(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())nu(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(G(Ie),G(su),G(di))},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})(),su=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return au?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Vt=null;const kh=new R("AllowMultipleToken"),uu=new R("PlatformDestroyListeners");function Hh(e,t,n=[]){const r=`Platform: ${t}`,o=new R(r);return(i=[])=>{let s=lu();if(!s||s.injector.get(kh,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function BI(e){if(Vt&&!Vt.get(kh,!1))throw new w(400,!1);Vt=e;const t=e.get(Vh);(function Bh(e){const t=e.get(xh,null);t&&t.forEach(n=>n())})(e)}(function jh(e=[],t){return tn.create({name:t,providers:[{provide:Ks,useValue:"platform"},{provide:uu,useValue:new Set([()=>Vt=null])},...e]})}(a,r))}return function jI(e){const t=lu();if(!t)throw new w(401,!1);return t}()}}function lu(){return Vt?.get(Vh)??null}let Vh=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function Uh(e,t){let n;return n="noop"===e?new OI:("zone.js"===e?void 0:e)||new Ie(t),n}(r?.ngZone,function $h(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),i=[{provide:Ie,useValue:o}];return o.run(()=>{const s=tn.create({providers:i,parent:this.injector,name:n.moduleType.name}),a=n.create(s),u=a.injector.get(xn,null);if(!u)throw new w(402,!1);return o.runOutsideAngular(()=>{const l=o.onError.subscribe({next:c=>{u.handleError(c)}});a.onDestroy(()=>{fi(this._modules,a),l.unsubscribe()})}),function zh(e,t,n){try{const r=n();return Ma(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(u,o,()=>{const l=a.injector.get(ci);return l.runInitializers(),l.donePromise.then(()=>(function Dp(e){We(e,"Expected localeId to be defined"),"string"==typeof e&&(yp=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(xt,Gn)||Gn),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const o=Gh({},r);return function RI(e,t,n){const r=new ja(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(cu);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new w(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(uu,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(G(tn))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Gh(e,t){return Array.isArray(t)?t.reduce(Gh,e):{...e,...t}}let cu=(()=>{class e{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(n,r,o){this._zone=n,this._injector=r,this._exceptionHandler=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new Pe(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new Pe(a=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{Ie.assertNotInAngularZone(),nu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const l=this._zone.onUnstable.subscribe(()=>{Ie.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{u.unsubscribe(),l.unsubscribe()}});this.isStable=Pm(i,s.pipe(function Fm(e={}){const{connector:t=(()=>new Ri),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,l=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},p=()=>{f(),s=u=void 0,c=d=!1},h=()=>{const g=s;p(),g?.unsubscribe()};return Xn((g,D)=>{l++,!d&&!c&&f();const v=u=u??t();D.add(()=>{l--,0===l&&!d&&!c&&(a=Hi(h,o))}),v.subscribe(D),!s&&l>0&&(s=new Kn({next:C=>v.next(C),error:C=>{d=!0,f(),a=Hi(p,n,C),v.error(C)},complete:()=>{c=!0,f(),a=Hi(p,r),v.complete()}}),Wt(g).subscribe(s))})(i)}}()))}bootstrap(n,r){const o=n instanceof vd;if(!this._injector.get(ci).done)throw!o&&function or(e){const t=W(e)||De(e)||be(e);return null!==t&&t.standalone}(n),new w(405,false);let s;s=o?n:this._injector.get(zo).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function kI(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Wn),l=s.create(tn.NULL,[],r||s.selector,a),c=l.location.nativeElement,d=l.injector.get(Rh,null);return d?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),fi(this.components,l),d?.unregisterApplication(c)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new w(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;fi(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(wI,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>fi(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new w(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(G(Ie),G(Sn),G(xn))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function fi(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Yh{constructor(){}supports(t){return Sr(t)}create(t){return new YI(t)}}const ZI=(e,t)=>t;class YI{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||ZI}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new KI(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Kh),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Kh),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class KI{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class XI{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Kh{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new XI,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Xh(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new e0(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class e0{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function eg(){return new gi([new Yh])}let gi=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||eg()),deps:[[e,new Fo,new Po]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new w(901,!1)}}return e.\u0275prov=J({token:e,providedIn:"root",factory:eg}),e})();function tg(){return new jr([new Jh])}let jr=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||tg()),deps:[[e,new Fo,new Po]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new w(901,!1)}}return e.\u0275prov=J({token:e,providedIn:"root",factory:tg}),e})();const r0=Hh(null,"core",[]);let o0=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(G(cu))},e.\u0275mod=rr({type:e}),e.\u0275inj=ln({}),e})(),gu=null;function Vr(){return gu}class u0{}const Pt=new R("DocumentToken");let dg=(()=>{class e{constructor(n,r,o,i){this._iterableDiffers=n,this._keyValueDiffers=r,this._ngEl=o,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(n){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof n?n.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(n){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof n?n.split(/\s+/):n,this._rawClass&&(Sr(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const n=this._iterableDiffer.diff(this._rawClass);n&&this._applyIterableChanges(n)}else if(this._keyValueDiffer){const n=this._keyValueDiffer.diff(this._rawClass);n&&this._applyKeyValueChanges(n)}}_applyKeyValueChanges(n){n.forEachAddedItem(r=>this._toggleClass(r.key,r.currentValue)),n.forEachChangedItem(r=>this._toggleClass(r.key,r.currentValue)),n.forEachRemovedItem(r=>{r.previousValue&&this._toggleClass(r.key,!1)})}_applyIterableChanges(n){n.forEachAddedItem(r=>{if("string"!=typeof r.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Q(r.item)}`);this._toggleClass(r.item,!0)}),n.forEachRemovedItem(r=>this._toggleClass(r.item,!1))}_applyClasses(n){n&&(Array.isArray(n)||n instanceof Set?n.forEach(r=>this._toggleClass(r,!0)):Object.keys(n).forEach(r=>this._toggleClass(r,!!n[r])))}_removeClasses(n){n&&(Array.isArray(n)||n instanceof Set?n.forEach(r=>this._toggleClass(r,!1)):Object.keys(n).forEach(r=>this._toggleClass(r,!1)))}_toggleClass(n,r){(n=n.trim())&&n.split(/\s+/g).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return e.\u0275fac=function(n){return new(n||e)(k(gi),k(jr),k(An),k(Cd))},e.\u0275dir=Qe({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})();class bu{constructor(t,n){this._viewContainerRef=t,this._templateRef=n,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let bi=(()=>{class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(n){this._ngSwitch=n,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(n){this._defaultViews.push(n)}_matchCase(n){const r=n==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(n){if(this._defaultViews.length>0&&n!==this._defaultUsed){this._defaultUsed=n;for(const r of this._defaultViews)r.enforceState(n)}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=Qe({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),e})(),mg=(()=>{class e{constructor(n,r,o){this.ngSwitch=o,o._addCase(),this._view=new bu(n,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(n){return new(n||e)(k(vt),k(At),k(bi,9))},e.\u0275dir=Qe({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),e})(),yg=(()=>{class e{constructor(n,r,o){o._addDefault(new bu(n,r))}}return e.\u0275fac=function(n){return new(n||e)(k(vt),k(At),k(bi,9))},e.\u0275dir=Qe({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0}),e})(),Cb=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=rr({type:e}),e.\u0275inj=ln({}),e})();class eS extends u0{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class xu extends eS{static makeCurrent(){!function a0(e){gu||(gu=e)}(new xu)}onAndCancel(t,n,r){return t.addEventListener(n,r,!1),()=>{t.removeEventListener(n,r,!1)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).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"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function tS(){return Gr=Gr||document.querySelector("base"),Gr?Gr.getAttribute("href"):null}();return null==n?null:function nS(e){Mi=Mi||document.createElement("a"),Mi.setAttribute("href",e);const t=Mi.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Gr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function q0(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,t)}}let Mi,Gr=null;const Mg=new R("TRANSITION_ID"),oS=[{provide:Th,useFactory:function rS(e,t,n){return()=>{n.get(ci).donePromise.then(()=>{const r=Vr(),o=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let i=0;i{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();const Ti=new R("EventManagerPlugins");let Ai=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>o.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}addGlobalEventListener(n,r,o){return this._findPluginFor(r).addGlobalEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const o=this._plugins;for(let i=0;i{class e{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),r.add(o))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})(),Wr=(()=>{class e extends Ag{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,o){n.forEach(i=>{const s=this._doc.createElement("style");s.textContent=i,o.push(r.appendChild(s))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(xg),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(n,o,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(xg))}}return e.\u0275fac=function(n){return new(n||e)(G(Pt))},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();function xg(e){Vr().remove(e)}const Nu={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Pu=/%COMP%/g;function Fu(e,t){return t.flat(100).map(n=>n.replace(Pu,e))}function Fg(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Ou=(()=>{class e{constructor(n,r,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new Lu(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case dt.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new fS(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(n),o}case dt.ShadowDom:return new pS(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const o=Fu(r.id,r.styles);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(G(Ai),G(Wr),G(Hr))},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();class Lu{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(Nu[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){(Lg(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Lg(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=Nu[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=Nu[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Oe.DashCase|Oe.Important)?t.style.setProperty(n,r,o&Oe.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Oe.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,Fg(r)):this.eventManager.addEventListener(t,n,Fg(r))}}function Lg(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class fS extends Lu{constructor(t,n,r,o){super(t),this.component=r;const i=Fu(o+"-"+r.id,r.styles);n.addStyles(i),this.contentAttr=function lS(e){return"_ngcontent-%COMP%".replace(Pu,e)}(o+"-"+r.id),this.hostAttr=function cS(e){return"_nghost-%COMP%".replace(Pu,e)}(o+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}class pS extends Lu{constructor(t,n,r,o){super(t),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=Fu(o.id,o.styles);for(let s=0;s{class e extends Tg{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(G(Pt))},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();const Rg=["alt","control","meta","shift"],gS={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},mS={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let yS=(()=>{class e extends Tg{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Vr().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Rg.forEach(l=>{const c=r.indexOf(l);c>-1&&(r.splice(c,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const u={};return u.domEventName=o,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let o=gS[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Rg.forEach(s=>{s!==o&&(0,mS[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(G(Pt))},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();const ES=Hh(r0,"browser",[{provide:Nh,useValue:"browser"},{provide:xh,useValue:function DS(){xu.makeCurrent()},multi:!0},{provide:Pt,useFactory:function _S(){return function WD(e){$s=e}(document),document},deps:[]}]),Hg=new R(""),jg=[{provide:di,useClass:class iS{addToWindow(t){Y.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},Y.getAllAngularTestabilities=()=>t.getAllTestabilities(),Y.getAllAngularRootElements=()=>t.getAllRootElements(),Y.frameworkStabilizers||(Y.frameworkStabilizers=[]),Y.frameworkStabilizers.push(r=>{const o=Y.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(u){s=s||u,i--,0==i&&r(s)};o.forEach(function(u){u.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?Vr().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:Rh,useClass:iu,deps:[Ie,su,di]},{provide:iu,useClass:iu,deps:[Ie,su,di]}],Vg=[{provide:Ks,useValue:"root"},{provide:xn,useFactory:function vS(){return new xn},deps:[]},{provide:Ti,useClass:hS,multi:!0,deps:[Pt,Ie,Nh]},{provide:Ti,useClass:yS,multi:!0,deps:[Pt]},{provide:Ou,useClass:Ou,deps:[Ai,Wr,Hr]},{provide:Ed,useExisting:Ou},{provide:Ag,useExisting:Wr},{provide:Wr,useClass:Wr,deps:[Pt]},{provide:Ai,useClass:Ai,deps:[Ti,Ie]},{provide:class Mb{},useClass:sS,deps:[]},[]];let CS=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Hr,useValue:n.appId},{provide:Mg,useExisting:Hr},oS]}}}return e.\u0275fac=function(n){return new(n||e)(G(Hg,12))},e.\u0275mod=rr({type:e}),e.\u0275inj=ln({providers:[...Vg,...jg],imports:[Cb,o0]}),e})();function zg(e,t,n,r,o,i,s){try{var a=e[i](s),u=a.value}catch(l){return void n(l)}a.done?t(u):Promise.resolve(u).then(r,o)}function Ne(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(u){zg(i,r,o,s,a,"next",u)}function a(u){zg(i,r,o,s,a,"throw",u)}s(void 0)})}}typeof window<"u"&&window;let Ot=new Audio,xi=!1;function qr(){return Bu.apply(this,arguments)}function Bu(){return(Bu=Ne(function*(){Ot.src="assets/audio/complete.mp3",Ot.load(),xi||Ot.play()})).apply(this,arguments)}function Qr(){return Hu.apply(this,arguments)}function Hu(){return(Hu=Ne(function*(){Ot.src="assets/audio/swap.mp3",Ot.load(),xi||Ot.play()})).apply(this,arguments)}function ju(){return Vu.apply(this,arguments)}function Vu(){return(Vu=Ne(function*(){Ot.src="assets/audio/find.mp3",Ot.load(),xi||Ot.play()})).apply(this,arguments)}function Gg(e){xi=e}const PS=e=>new Promise(t=>setTimeout(t,e));let Wg=0;function de(){return $u.apply(this,arguments)}function $u(){return($u=Ne(function*(){yield PS(1e3-Wg)})).apply(this,arguments)}class OS{sort(t){var n=this;return Ne(function*(){n.size=t,yield n.divide(0,t-1)})()}divide(t,n){var r=this;return Ne(function*(){if(t>=n)return;let o=Math.floor((t+n)/2);yield r.divide(t,o),yield r.divide(o+1,n),yield r.merge(t,n,o)})()}merge(t,n,r){var o=this;return Ne(function*(){let i=document.getElementById("details"),s=document.getElementById("temp"),u=new Array(n-t+1),l=t,c=r+1,d=0;const f=r-t+1,p=n-r;o.size<19&&(s.innerHTML=`tempArray: [ ${u} ]`);for(let h=l;h<=r;h++)document.getElementById(h.toString()).style.background="#ccccff";for(let h=c;h<=n;h++)document.getElementById(h.toString()).style.background="#f39c12";for(o.size<19&&(document.getElementById("indx"+t).innerHTML="low, i",document.getElementById("indx"+n).innerHTML=n==c?"high, j":"high",document.getElementById("indx"+r).innerHTML=r==t&&l==t?"low, mid, i":r==t?"low, mid":r==n?"high, mid":r==l?"mid, i":"mid",document.getElementById(l.toString()).style.backgroundColor="#0099ff",document.getElementById(c.toString()).style.backgroundColor="#0099ffb4"),yield de(),console.log(l);l<=r&&c<=n;)parseInt(document.getElementById(l.toString()).style.height)and (i <= mid, j< = high) , tempArr[ k ] = arr [ j ]"),c++,d++,o.size<19&&c<=n&&(document.getElementById("indx"+c).innerHTML=c==r?"mid, j":c==n?"high, j":"j",document.getElementById(c.toString()).style.backgroundColor="#0099ffb4",yield de(),i.innerHTML=""));for(;l<=r;)u[d]=parseInt(document.getElementById(l.toString()).style.height),o.size<19&&(document.getElementById("indx"+l).innerHTML="",document.getElementById("indx"+l).innerHTML=l==t&&l==r?"low, mid":l==t?"low":l==r?"mid":"",s.innerHTML=`tempArray: [ ${u} ]`,i.innerHTML="j > high, and i <= mid, tempArr[ k ] = arr [ i ]"),l++,d++,o.size<19&&l<=r&&(document.getElementById("indx"+l).innerHTML=l==r?"mid, i":l==n?"high, i":"i",document.getElementById(l.toString()).style.backgroundColor="#0099ff",yield de(),document.getElementById(l.toString()).style.backgroundColor="#ccccff",i.innerHTML="");for(;c<=r;)u[d]=parseInt(document.getElementById(c.toString()).style.height),o.size<19&&(document.getElementById("indx"+c).innerHTML="",document.getElementById("indx"+c).innerHTML=c==t&&c==r?"low, mid":c==n?"high":c==t?"low":"",s.innerHTML=`tempArray: [ ${u} ]`,i.innerHTML="i > mid, and j <= high, tempArr[ k ] = arr [ j ]"),c++,d++,o.size<19&&c<=n&&(document.getElementById("indx"+c).innerHTML=c==r?"mid, j":c==t?"low, j":c==n?"high, j":"j",document.getElementById(c.toString()).style.backgroundColor="#0099ffb4",yield de(),document.getElementById(c.toString()).style.backgroundColor="#f39c12",i.innerHTML="");yield de(),o.size<19&&(document.getElementById("indx"+r).innerHTML="",document.getElementById("indx"+t).innerHTML="",document.getElementById("indx"+n).innerHTML="");for(let h=0,g=t;h=19&&(document.getElementById(g.toString()).innerHTML=parseInt(document.getElementById(g.toString()).style.height).toString()+`

`),o.size<19&&(document.getElementById("indx"+g).innerHTML="",s.innerHTML=`tempArray: [ ${u} ]`,i.innerHTML=" Copy tempArr to arr, tempArr [ ] = arr [ ]"),f+p==o.size?(qr(),document.getElementById(g.toString()).style.background="#00cc00"):(Qr(),document.getElementById(g.toString()).style.background="#90ee90");yield de(),s.innerHTML="",i.innerHTML=""})()}}class LS{sort(t){var n=this;return Ne(function*(){n.size=t,yield n.quickSort(t-1,0),qr()})()}quickSort(t,n){var r=this;return Ne(function*(){if(n=0&&t>=0&&ni ++",document.getElementById("indx"+s).innerHTML=a==s?"j, i":"i"),yield de(),o.innerHTML="";for(;parseInt(document.getElementById(a.toString()).style.height)>i&&a>n;)document.getElementById(a.toString()).style.backgroundColor="#f39c12",r.size<19&&(document.getElementById("indx"+a).innerHTML=a==s?"i":""),a--,document.getElementById(a.toString()).style.backgroundColor="#0099ffb4",r.size<19&&(o.innerHTML="arr[ j ] <= pivot, j ++",document.getElementById("indx"+a).innerHTML=a==s?"i, j":a==n?"pivot, j":"j"),yield de(),o.innerHTML="";if(s=19?(document.getElementById(s.toString()).innerHTML=parseInt(document.getElementById(s.toString()).style.height).toString(),document.getElementById(a.toString()).innerHTML=parseInt(document.getElementById(a.toString()).style.height).toString()):r.size<19&&(o.innerHTML="arr[ i ] < a[ j ] and i < j, Swap( arr[ i ], arr[ j ] )",document.getElementById(s.toString()).innerHTML=parseInt(document.getElementById(s.toString()).style.height).toString()+`

i

`,document.getElementById(a.toString()).innerHTML=parseInt(document.getElementById(a.toString()).style.height).toString()+`

j

`),yield de(),o.innerHTML=""}yield de()}Qr();let u=document.getElementById(a.toString()).style.height;document.getElementById(a.toString()).style.height=document.getElementById(n.toString()).style.height,document.getElementById(n.toString()).style.height=u,r.size<30&&r.size>=19?(document.getElementById(n.toString()).innerHTML=parseInt(document.getElementById(n.toString()).style.height).toString(),document.getElementById(s.toString()).innerHTML=parseInt(document.getElementById(s.toString()).style.height).toString(),document.getElementById(a.toString()).innerHTML=parseInt(document.getElementById(a.toString()).style.height).toString()):r.size<19&&(o.innerHTML="i !< j, Swap( arr[ j ], arr[ low ] )",document.getElementById(n.toString()).innerHTML=parseInt(document.getElementById(n.toString()).style.height).toString()+`

`,document.getElementById(s.toString()).innerHTML=parseInt(document.getElementById(s.toString()).style.height).toString()+`

`,document.getElementById(a.toString()).innerHTML=parseInt(document.getElementById(a.toString()).style.height).toString()+`

`),document.getElementById(a.toString()).style.backgroundColor="#00cc00",document.getElementById(n.toString()).style.backgroundColor="#ff339962",yield de(),o.innerHTML="";for(var l=0;lparseInt(document.getElementById((o+1).toString()).style.height)){let i=document.getElementById(o.toString()).style.height;document.getElementById(o.toString()).style.height=document.getElementById((o+1).toString()).style.height,document.getElementById((o+1).toString()).style.height=i,Qr(),t<30&&t>=19?(document.getElementById(o.toString()).innerHTML=parseInt(document.getElementById(o.toString()).style.height).toString(),document.getElementById((o+1).toString()).innerHTML=parseInt(document.getElementById((o+1).toString()).style.height).toString()):t<19&&(n.innerHTML="arr[ j ] > arr[ j+1 ], Swap( arr[ j ], arr[ j+1 ] )",document.getElementById(o.toString()).innerHTML=parseInt(document.getElementById(o.toString()).style.height).toString()+`

`,document.getElementById((o+1).toString()).innerHTML=parseInt(document.getElementById((o+1).toString()).style.height).toString()+`

`),yield de(),n.innerHTML=""}t<30&&t>=19?(document.getElementById(o.toString()).innerHTML=parseInt(document.getElementById(o.toString()).style.height).toString(),document.getElementById((o+1).toString()).innerHTML=parseInt(document.getElementById((o+1).toString()).style.height).toString()):t<19&&(document.getElementById(o.toString()).innerHTML=parseInt(document.getElementById(o.toString()).style.height).toString()+`

`,document.getElementById((o+1).toString()).innerHTML=parseInt(document.getElementById((o+1).toString()).style.height).toString()+`

`),document.getElementById(o.toString()).style.background="#ff339962",document.getElementById((o+1).toString()).style.background="#ff339962"}document.getElementById((t-1-r).toString()).style.background="#00cc00"}document.getElementById("0").style.background="#00cc00",yield qr()})()}}class kS{sort(t){return Ne(function*(){let n=document.getElementById("details");for(var r=1;r=0&&o=19?document.getElementById((i+1).toString()).innerHTML=parseInt(document.getElementById((i+1).toString()).style.height).toString():t<19&&(document.getElementById((i+1).toString()).innerHTML=parseInt(document.getElementById((i+1).toString()).style.height).toString()+`

`),document.getElementById(r.toString()).style.backgroundColor="#00cc00",document.getElementById(i.toString()).style.backgroundColor="#0099ff",t<19&&(n.innerHTML="j >= 0 and curr < arr[ j+1 ], arr[ j+1 ] = arr[ j ]",document.getElementById("indx"+i).innerHTML=`curr=${o}`,document.getElementById("indx"+(i+1)).innerHTML=""),yield de(),i--,t<19&&(i>=0&&(document.getElementById("indx"+i).innerHTML=""),document.getElementById("indx"+(i+1)).innerHTML=`curr=${o}`),document.getElementById((i+1).toString()).style.backgroundColor="#00cc00",n.innerHTML="";document.getElementById((i+1).toString()).style.height=o+"px",Qr(),t<30&&t>=19?document.getElementById((i+1).toString()).innerHTML=parseInt(document.getElementById((i+1).toString()).style.height).toString():t<19&&(n.innerHTML="arr[ j+1 ] = curr",document.getElementById((i+1).toString()).innerHTML=parseInt(document.getElementById((i+1).toString()).style.height).toString()+`

`)}document.getElementById((t-1).toString()).style.backgroundColor="#00cc00",yield qr(),n.innerHTML=""})()}}class BS{sort(t){return Ne(function*(){let n=document.getElementById("details");for(var r=0;rparseInt(document.getElementById(o.toString()).style.height)&&(ju(),t<19&&(document.getElementById("indx"+i).innerHTML=i==r?"i":"",document.getElementById("indx"+o).innerHTML="small",n.innerHTML="small > j, Swap( small, j )"),r!=i&&(document.getElementById(i.toString()).style.backgroundColor="#ff339962"),yield de(),document.getElementById(r.toString()).style.backgroundColor="#0099ff",i=o),n.innerHTML="",t<19&&(document.getElementById("indx"+i).innerHTML="small",document.getElementById("indx"+o).innerHTML=""),document.getElementById(i.toString()).style.backgroundColor="#ff6600",document.getElementById(r.toString()).style.backgroundColor="#ff339962",document.getElementById(o.toString()).style.backgroundColor="#ff339962";Qr();let s=document.getElementById(r.toString()).style.height;document.getElementById(r.toString()).style.height=document.getElementById(i.toString()).style.height,document.getElementById(i.toString()).style.height=s,t<30&&t>=19?(document.getElementById(r.toString()).innerHTML=parseInt(document.getElementById(r.toString()).style.height).toString(),document.getElementById(i.toString()).innerHTML=parseInt(document.getElementById(i.toString()).style.height).toString()):t<19&&(n.innerHTML="Swap( arr[ i ], arr[ small ] )",document.getElementById(r.toString()).innerHTML=parseInt(document.getElementById(r.toString()).style.height).toString()+`

`,document.getElementById(i.toString()).innerHTML=parseInt(document.getElementById(i.toString()).style.height).toString()+`

`),document.getElementById(i.toString()).style.backgroundColor="#ff339962",document.getElementById(r.toString()).style.backgroundColor="#00cc00",yield de(),n.innerHTML=""}document.getElementById((t-1).toString()).style.backgroundColor="#00cc00",yield qr()})()}}class Zr{constructor(){this.size=6}ngOnInit(){let t=document.getElementById("array");t.innerHTML="";for(var n=0;nconsole.error(e))}},ne=>{ne(ne.s=18)}]); \ No newline at end of file