From fec16c07ce8273dc8807693b8395095cdbdbdc37 Mon Sep 17 00:00:00 2001 From: babali42 Date: Wed, 3 Jan 2024 22:26:14 +0100 Subject: [PATCH] Auto-generated commit [ci skip] --- 404.html | 2 +- assets/beats/garage.json | 21 +++++++++++++++++++ index.html | 2 +- ...50b0c0a33b9.js => main.f6d259079bc75a76.js | 2 +- 4 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 assets/beats/garage.json rename main.6ea3650b0c0a33b9.js => main.f6d259079bc75a76.js (82%) diff --git a/404.html b/404.html index 910adbd..73f5755 100644 --- a/404.html +++ b/404.html @@ -10,6 +10,6 @@ - + \ No newline at end of file diff --git a/assets/beats/garage.json b/assets/beats/garage.json new file mode 100644 index 0000000..90b497f --- /dev/null +++ b/assets/beats/garage.json @@ -0,0 +1,21 @@ +{ + "name": "garage - 2 step", + "bpm": 130, + "tracks": [ + { + "name": "Snare", + "fileName": "techno/snare.mp3", + "steps": [" ", " ", " ", " ", "X", " ", " ", " ", " ", " ", " ", " ", "X", " ", " ", " "] + }, + { + "name": "Hats", + "fileName": "techno/open_hat.mp3", + "steps": [" ", " ", "X", " ", " ", " ", "X", " ", " ", " ", "X", " ", " ", " ", "X", " "] + }, + { + "name": "Kick", + "fileName": "techno/kick.mp3", + "steps": ["X", " ", " ", " ", " ", " ", " ", " ", " ", " ", "X", " ", " ", " ", "X", " "] + } + ] +} diff --git a/index.html b/index.html index 910adbd..73f5755 100644 --- a/index.html +++ b/index.html @@ -10,6 +10,6 @@ - + \ No newline at end of file diff --git a/main.6ea3650b0c0a33b9.js b/main.f6d259079bc75a76.js similarity index 82% rename from main.6ea3650b0c0a33b9.js rename to main.f6d259079bc75a76.js index 9971439..860db2a 100644 --- a/main.6ea3650b0c0a33b9.js +++ b/main.f6d259079bc75a76.js @@ -1 +1 @@ -"use strict";(self.webpackChunkDrumsPatternLibrary=self.webpackChunkDrumsPatternLibrary||[]).push([[179],{892:()=>{function ee(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 fi=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 Zr(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class ut{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(ee(r))try{r()}catch(i){t=i instanceof fi?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{Vd(i)}catch(s){t=t??[],s instanceof fi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new fi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Vd(t);else{if(t instanceof ut){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)&&Zr(n,t)}remove(t){const{_finalizers:n}=this;n&&Zr(n,t),t instanceof ut&&t._removeParent(this)}}ut.EMPTY=(()=>{const e=new ut;return e.closed=!0,e})();const Ld=ut.EMPTY;function jd(e){return e instanceof ut||e&&"closed"in e&&ee(e.remove)&&ee(e.add)&&ee(e.unsubscribe)}function Vd(e){ee(e)?e():e.unsubscribe()}const An={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},hi={setTimeout(e,t,...n){const{delegate:r}=hi;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=hi;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function $d(e){hi.setTimeout(()=>{const{onUnhandledError:t}=An;if(!t)throw e;t(e)})}function Bd(){}const Dw=ma("C",void 0,void 0);function ma(e,t,n){return{kind:e,value:t,error:n}}let xn=null;function pi(e){if(An.useDeprecatedSynchronousErrorHandling){const t=!xn;if(t&&(xn={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=xn;if(xn=null,n)throw r}}else e()}class ya extends ut{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,jd(t)&&t.add(this)):this.destination=Sw}static create(t,n,r){return new Qr(t,n,r)}next(t){this.isStopped?Da(function Cw(e){return ma("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Da(function ww(e){return ma("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Da(Dw,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 Ew=Function.prototype.bind;function va(e,t){return Ew.call(e,t)}class bw{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){gi(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){gi(r)}else gi(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){gi(n)}}}class Qr extends ya{constructor(t,n,r){let o;if(super(),ee(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&An.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&va(t.next,i),error:t.error&&va(t.error,i),complete:t.complete&&va(t.complete,i)}):o=t}this.destination=new bw(o)}}function gi(e){An.useDeprecatedSynchronousErrorHandling?function _w(e){An.useDeprecatedSynchronousErrorHandling&&xn&&(xn.errorThrown=!0,xn.error=e)}(e):$d(e)}function Da(e,t){const{onStoppedNotification:n}=An;n&&hi.setTimeout(()=>n(e,t))}const Sw={closed:!0,next:Bd,error:function Iw(e){throw e},complete:Bd},wa="function"==typeof Symbol&&Symbol.observable||"@@observable";function Rn(e){return e}function Hd(e){return 0===e.length?Rn:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let ge=(()=>{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 Aw(e){return e&&e instanceof ya||function Tw(e){return e&&ee(e.next)&&ee(e.error)&&ee(e.complete)}(e)&&jd(e)}(n)?n:new Qr(n,r,o);return pi(()=>{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=Ud(r))((o,i)=>{const s=new Qr({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)}[wa](){return this}pipe(...n){return Hd(n)(this)}toPromise(n){return new(n=Ud(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Ud(e){var t;return null!==(t=e??An.Promise)&&void 0!==t?t:Promise}const xw=Kr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let xt=(()=>{class e extends ge{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new zd(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new xw}next(n){pi(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){pi(()=>{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(){pi(()=>{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?Ld:(this.currentObservers=null,i.push(n),new ut(()=>{this.currentObservers=null,Zr(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new ge;return n.source=this,n}}return e.create=(t,n)=>new zd(t,n),e})();class zd extends xt{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:Ld}}function Gd(e){return ee(e?.lift)}function Me(e){return t=>{if(Gd(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 Te(e,t,n,r,o){return new Rw(e,t,n,r,o)}class Rw extends ya{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 H(e,t){return Me((n,r)=>{let o=0;n.subscribe(Te(r,i=>{r.next(e.call(t,i,o++))}))})}function cn(e){return this instanceof cn?(this.v=e,this):new cn(e)}function Kd(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(h){return new Promise(function(p,g){i.push([f,h,p,g])>1||a(f,h)})})}function a(f,h){try{!function u(f){f.value instanceof cn?Promise.resolve(f.value.v).then(l,c):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function l(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Zd(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 ba(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)})}}}"function"==typeof SuppressedError&&SuppressedError;const Qd=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Yd(e){return ee(e?.then)}function Jd(e){return ee(e[wa])}function Xd(e){return Symbol.asyncIterator&&ee(e?.[Symbol.asyncIterator])}function ef(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 tf=function Xw(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function nf(e){return ee(e?.[tf])}function rf(e){return Kd(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield cn(n.read());if(o)return yield cn(void 0);yield yield cn(r)}}finally{n.releaseLock()}})}function sf(e){return ee(e?.getReader)}function Rt(e){if(e instanceof ge)return e;if(null!=e){if(Jd(e))return function eC(e){return new ge(t=>{const n=e[wa]();if(ee(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Qd(e))return function tC(e){return new ge(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,$d)})}(e);if(Xd(e))return af(e);if(nf(e))return function rC(e){return new ge(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(sf(e))return function oC(e){return af(rf(e))}(e)}throw ef(e)}function af(e){return new ge(t=>{(function iC(e,t){var n,r,o,i;return function qd(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=Zd(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 Ht(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 xe(e,t,n=1/0){return ee(t)?xe((r,o)=>H((i,s)=>t(r,i,o,s))(Rt(e(r,o))),n):("number"==typeof t&&(n=t),Me((r,o)=>function sC(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()},h=g=>l{i&&t.next(g),l++;let m=!1;Rt(n(g,c++)).subscribe(Te(t,v=>{o?.(v),i?h(v):t.next(v)},()=>{m=!0},void 0,()=>{if(m)try{for(l--;u.length&&lp(v)):p(v)}f()}catch(v){t.error(v)}}))};return e.subscribe(Te(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}function Xn(e=1/0){return xe(Rn,e)}const Ut=new ge(e=>e.complete());function Ia(e){return e[e.length-1]}function Yr(e){return function uC(e){return e&&ee(e.schedule)}(Ia(e))?e.pop():void 0}function uf(e,t=0){return Me((n,r)=>{n.subscribe(Te(r,o=>Ht(r,e,()=>r.next(o),t),()=>Ht(r,e,()=>r.complete(),t),o=>Ht(r,e,()=>r.error(o),t)))})}function lf(e,t=0){return Me((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function cf(e,t){if(!e)throw new Error("Iterable cannot be null");return new ge(n=>{Ht(n,t,()=>{const r=e[Symbol.asyncIterator]();Ht(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Ce(e,t){return t?function mC(e,t){if(null!=e){if(Jd(e))return function dC(e,t){return Rt(e).pipe(lf(t),uf(t))}(e,t);if(Qd(e))return function hC(e,t){return new ge(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(Yd(e))return function fC(e,t){return Rt(e).pipe(lf(t),uf(t))}(e,t);if(Xd(e))return cf(e,t);if(nf(e))return function pC(e,t){return new ge(n=>{let r;return Ht(n,t,()=>{r=e[tf](),Ht(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)}),()=>ee(r?.return)&&r.return()})}(e,t);if(sf(e))return function gC(e,t){return cf(rf(e),t)}(e,t)}throw ef(e)}(e,t):Rt(e)}function Sa(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Qr({next:()=>{r.unsubscribe(),e()}});return t(...n).subscribe(r)}function J(e){for(let t in e)if(e[t]===J)return t;throw Error("Could not find renamed property on target object.")}function X(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(X).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 Ta(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const DC=J({__forward_ref__:J});function Aa(e){return e.__forward_ref__=Aa,e.toString=function(){return X(this())},e}function N(e){return function xa(e){return"function"==typeof e&&e.hasOwnProperty(DC)&&e.__forward_ref__===Aa}(e)?e():e}class E extends Error{constructor(t,n){super(function mi(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,n)),this.code=t}}function F(e){return"string"==typeof e?e:null==e?"":String(e)}function yi(e,t){throw new E(-201,!1)}function et(e,t){null==e&&function Q(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function P(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Nt(e){return{providers:e.providers||[],imports:e.imports||[]}}function vi(e){return df(e,Di)||df(e,hf)}function df(e,t){return e.hasOwnProperty(t)?e[t]:null}function ff(e){return e&&(e.hasOwnProperty(Ra)||e.hasOwnProperty(TC))?e[Ra]:null}const Di=J({\u0275prov:J}),Ra=J({\u0275inj:J}),hf=J({ngInjectableDef:J}),TC=J({ngInjectorDef:J});var A=(()=>((A=A||{})[A.Default=0]="Default",A[A.Host=1]="Host",A[A.Self=2]="Self",A[A.SkipSelf=4]="SkipSelf",A[A.Optional=8]="Optional",A))();let Na;function lt(e){const t=Na;return Na=e,t}function pf(e,t,n){const r=vi(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&A.Optional?null:void 0!==t?t:void yi(X(e))}function dn(e){return{toString:e}.toString()}var yt=(()=>((yt=yt||{})[yt.OnPush=0]="OnPush",yt[yt.Default=1]="Default",yt))(),Pt=(()=>{return(e=Pt||(Pt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Pt;var e})();const te=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),er={},K=[],wi=J({\u0275cmp:J}),Pa=J({\u0275dir:J}),Oa=J({\u0275pipe:J}),gf=J({\u0275mod:J}),Gt=J({\u0275fac:J}),Jr=J({__NG_ELEMENT_ID__:J});let xC=0;function Ke(e){return dn(()=>{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===yt.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||K,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Pt.Emulated,id:"c"+xC++,styles:e.styles||K,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.dependencies,s=e.features;return o.inputs=vf(e.inputs,r),o.outputs=vf(e.outputs),s&&s.forEach(a=>a(o)),o.directiveDefs=i?()=>("function"==typeof i?i():i).map(mf).filter(yf):null,o.pipeDefs=i?()=>("function"==typeof i?i():i).map($e).filter(yf):null,o})}function mf(e){return Y(e)||Ve(e)}function yf(e){return null!==e}function qt(e){return dn(()=>({type:e.type,bootstrap:e.bootstrap||K,declarations:e.declarations||K,imports:e.imports||K,exports:e.exports||K,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function vf(e,t){if(null==e)return er;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 Pe=Ke;function Ze(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Y(e){return e[wi]||null}function Ve(e){return e[Pa]||null}function $e(e){return e[Oa]||null}function tt(e,t){const n=e[gf]||null;if(!n&&!0===t)throw new Error(`Type ${X(e)} does not have '\u0275mod' property.`);return n}const j=11;function Qe(e){return Array.isArray(e)&&"object"==typeof e[1]}function Dt(e){return Array.isArray(e)&&!0===e[1]}function La(e){return 0!=(8&e.flags)}function bi(e){return 2==(2&e.flags)}function Ii(e){return 1==(1&e.flags)}function wt(e){return null!==e.template}function kC(e){return 0!=(256&e[2])}function kn(e,t){return e.hasOwnProperty(Gt)?e[Gt]:null}class VC{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ln(){return Cf}function Cf(e){return e.type.prototype.ngOnChanges&&(e.setInput=BC),$C}function $C(){const e=Ef(this),t=e?.current;if(t){const n=e.previous;if(n===er)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function BC(e,t,n,r){const o=Ef(e)||function HC(e,t){return e[_f]=t}(e,{previous:er,current:null}),i=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[n],u=s[a];i[a]=new VC(u&&u.currentValue,t,s===er),e[r]=t}Ln.ngInherit=!0;const _f="__ngSimpleChanges__";function Ef(e){return e[_f]||null}function me(e){for(;Array.isArray(e);)e=e[0];return e}function Si(e,t){return me(t[e])}function rt(e,t){return me(t[e.index])}function Ha(e,t){return e.data[t]}function ot(e,t){const n=t[e];return Qe(n)?n:n[0]}function Mi(e){return 64==(64&e[2])}function fn(e,t){return null==t?null:e[t]}function bf(e){e[18]=0}function Ua(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 O={lFrame:Of(null),bindingsEnabled:!0};function Sf(){return O.bindingsEnabled}function D(){return O.lFrame.lView}function z(){return O.lFrame.tView}function _e(){let e=Mf();for(;null!==e&&64===e.type;)e=e.parent;return e}function Mf(){return O.lFrame.currentTNode}function Ot(e,t){const n=O.lFrame;n.currentTNode=e,n.isParent=t}function za(){return O.lFrame.isParent}function sr(){return O.lFrame.bindingIndex++}function i_(e,t){const n=O.lFrame;n.bindingIndex=n.bindingRootIndex=e,qa(t)}function qa(e){O.lFrame.currentDirectiveIndex=e}function Ka(e){O.lFrame.currentQueryIndex=e}function a_(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Nf(e,t,n){if(n&A.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&A.Host||(o=a_(i),null===o||(i=i[15],10&o.type))););if(null===o)return!1;t=o,e=i}const r=O.lFrame=Pf();return r.currentTNode=t,r.lView=e,!0}function Za(e){const t=Pf(),n=e[1];O.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Pf(){const e=O.lFrame,t=null===e?null:e.child;return null===t?Of(e):t}function Of(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 Ff(){const e=O.lFrame;return O.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const kf=Ff;function Qa(){const e=Ff();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 He(){return O.lFrame.selectedIndex}function hn(e){O.lFrame.selectedIndex=e}function ae(){const e=O.lFrame;return Ha(e.tView,e.selectedIndex)}function Ti(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 oo{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Ri(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 Xa=!0;function Pi(e){const t=Xa;return Xa=e,t}let __=0;const Ft={};function so(e,t){const n=tu(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,eu(r.data,e),eu(t,null),eu(r.blueprint,null));const o=Oi(e,t),i=e.injectorIndex;if(Bf(o)){const s=ar(o),a=ur(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 eu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function tu(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Oi(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=Qf(o),null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Fi(e,t,n){!function E_(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Jr)&&(r=n[Jr]),null==r&&(r=n[Jr]=__++);const o=255&r;t.data[e+(o>>5)]|=1<=0?255&t:M_:t}(n);if("function"==typeof i){if(!Nf(t,e,r))return r&A.Host?zf(o,0,r):Gf(t,n,r,o);try{const s=i(r);if(null!=s||r&A.Optional)return s;yi()}finally{kf()}}else if("number"==typeof i){let s=null,a=tu(e,t),u=-1,l=r&A.Host?t[16][6]:null;for((-1===a||r&A.SkipSelf)&&(u=-1===a?Oi(e,t):t[a+8],-1!==u&&Zf(r,!1)?(s=t[1],a=ar(u),t=ur(u,t)):a=-1);-1!==a;){const c=t[1];if(Kf(i,a,c.data)){const d=I_(a,t,n,s,r,l);if(d!==Ft)return d}u=t[a+8],-1!==u&&Zf(r,t[1].data[a+8]===l)&&Kf(i,a,t)?(s=c,a=ar(u),t=ur(u,t)):a=-1}}return o}function I_(e,t,n,r,o,i){const s=t[1],a=s.data[e+8],c=function ki(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 h=r?a:a+c;h=u&&p.type===n)return h}if(o){const h=s[u];if(h&&wt(h)&&h.type===n)return u}return null}(a,s,n,null==r?bi(a)&&Xa:r!=s&&0!=(3&a.type),o&A.Host&&i===a);return null!==c?ao(t,s,c,a):Ft}function ao(e,t,n,r){let o=e[n];const i=t.data;if(function y_(e){return e instanceof oo}(o)){const s=o;s.resolving&&function wC(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new E(-200,`Circular dependency in DI detected for ${e}${n}`)}(function W(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():F(e)}(i[n]));const a=Pi(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?lt(s.injectImpl):null;Nf(e,r,A.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function g_(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=Cf(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&<(u),Pi(a),s.resolving=!1,kf()}}return o}function Kf(e,t,n){return!!(n[t+(e>>5)]&1<{const r=function ru(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(dr)?u[dr]:Object.defineProperty(u,dr,{value:[]})[dr];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 x{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=P({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Zt(e,t){e.forEach(n=>Array.isArray(n)?Zt(n,t):t(n))}function Jf(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Li(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function st(e,t,n){let r=pr(e,t);return r>=0?e[1|r]=n:(r=~r,function P_(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function iu(e,t){const n=pr(e,t);if(n>=0)return e[1|n]}function pr(e,t){return function th(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<((Ye=Ye||{})[Ye.Important=1]="Important",Ye[Ye.DashCase=2]="DashCase",Ye))();const hu=new Map;let uE=0;const gu="__ngContext__";function ke(e,t){Qe(t)?(e[gu]=t[20],function cE(e){hu.set(e[20],e)}(t)):e[gu]=t}function yu(e,t){return undefined(e,t)}function Co(e){const t=e[3];return Dt(t)?t[3]:t}function vu(e){return Eh(e[13])}function Du(e){return Eh(e[4])}function Eh(e){for(;null!==e&&!Dt(e);)e=e[4];return e}function yr(e,t,n,r,o){if(null!=r){let i,s=!1;Dt(r)?i=r:Qe(r)&&(s=!0,r=r[0]);const a=me(r);0===e&&null!==n?null==o?Ah(t,n,a):jn(t,n,a,o||null,!0):1===e&&null!==n?jn(t,n,a,o||null,!0):2===e?function Su(e,t,n){const r=Hi(e,t);r&&function NE(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function FE(e,t,n,r,o){const i=n[7];i!==me(n)&&yr(t,e,r,i,o);for(let a=10;a0&&(e[n-1][4]=r[4]);const i=Li(e,10+t);!function bE(e,t){_o(e,t,t[j],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 Sh(e,t){if(!(128&t[2])){const n=t[j];n.destroyNode&&_o(e,t,n,3,null,null),function ME(e){let t=e[13];if(!t)return Eu(e[1],e);for(;t;){let n=null;if(Qe(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Qe(t)&&Eu(t[1],t),t=t[3];null===t&&(t=e),Qe(t)&&Eu(t[1],t),n=t&&t[4]}t=n}}(t)}}function Eu(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function RE(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[o=l]():r[o=-l].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;i((ye=ye||{})[ye.NONE=0]="NONE",ye[ye.HTML=1]="HTML",ye[ye.STYLE=2]="STYLE",ye[ye.SCRIPT=3]="SCRIPT",ye[ye.URL=4]="URL",ye[ye.RESOURCE_URL=5]="RESOURCE_URL",ye))();function ku(e){const t=function Io(){const e=D();return e&&e[12]}();return t?t.sanitize(ye.URL,e)||"":function Eo(e,t){const n=function qE(e){return e instanceof Hh&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}(e,"URL")?gn(e):function Nu(e){return(e=String(e)).match(QE)?e:"unsafe:"+e}(F(e))}const Lu=new x("ENVIRONMENT_INITIALIZER"),Qh=new x("INJECTOR",-1),Yh=new x("INJECTOR_DEF_TYPES");class Jh{get(t,n=ho){if(n===ho){const r=new Error(`NullInjectorError: No provider for ${X(t)}!`);throw r.name="NullInjectorError",r}return n}}function cb(...e){return{\u0275providers:Xh(0,e)}}function Xh(e,...t){const n=[],r=new Set;let o;return Zt(t,i=>{const s=i;ju(s,n,[],r)&&(o||(o=[]),o.push(s))}),void 0!==o&&ep(o,n),n}function ep(e,t){for(let n=0;n{t.push(i)})}}function ju(e,t,n,r){if(!(e=N(e)))return!1;let o=null,i=ff(e);const s=!i&&Y(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const u=e.ngModule;if(i=ff(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)ju(l,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{Zt(i.imports,c=>{ju(c,t,n,r)&&(l||(l=[]),l.push(c))})}finally{}void 0!==l&&ep(l,t)}if(!a){const l=kn(o)||(()=>new o);t.push({provide:o,useFactory:l,deps:K},{provide:Yh,useValue:o,multi:!0},{provide:Lu,useValue:()=>b(o),multi:!0})}const u=i.providers;null==u||a||Zt(u,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}const db=J({provide:String,useValue:J});function Vu(e){return null!==e&&"object"==typeof e&&db in e}function $n(e){return"function"==typeof e}const $u=new x("Set Injector scope."),Ki={},hb={};let Bu;function Zi(){return void 0===Bu&&(Bu=new Jh),Bu}class mn{}class rp extends mn{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,Uu(t,s=>this.processProvider(s)),this.records.set(Qh,vr(void 0,this)),o.has("environment")&&this.records.set(mn,vr(void 0,this));const i=this.records.get($u);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Yh.multi,K,A.Self))}get destroyed(){return this._destroyed}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=gr(this),r=lt(void 0);try{return t()}finally{gr(n),lt(r)}}get(t,n=ho,r=A.Default){this.assertNotDestroyed();const o=gr(this),i=lt(void 0);try{if(!(r&A.SkipSelf)){let a=this.records.get(t);if(void 0===a){const u=function vb(e){return"function"==typeof e||"object"==typeof e&&e instanceof x}(t)&&vi(t);a=u&&this.injectableDefInScope(u)?vr(Hu(t),Ki):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&A.Self?Zi():this.parent).get(t,n=r&A.Optional&&n===ho?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Vi]=s[Vi]||[]).unshift(X(t)),o)throw s;return function G_(e,t,n,r){const o=e[Vi];throw t[nh]&&o.unshift(t[nh]),e.message=function q_(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=X(t);if(Array.isArray(t))o=t.map(X).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):X(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(B_,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Vi]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{lt(i),gr(o)}}resolveInjectorInitializers(){const t=gr(this),n=lt(void 0);try{const r=this.get(Lu.multi,K,A.Self);for(const o of r)o()}finally{gr(t),lt(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(X(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new E(205,!1)}processProvider(t){let n=$n(t=N(t))?t:N(t&&t.provide);const r=function gb(e){return Vu(e)?vr(void 0,e.useValue):vr(function op(e,t,n){let r;if($n(e)){const o=N(e);return kn(o)||Hu(o)}if(Vu(e))r=()=>N(e.useValue);else if(function np(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...uu(e.deps||[]));else if(function tp(e){return!(!e||!e.useExisting)}(e))r=()=>b(N(e.useExisting));else{const o=N(e&&(e.useClass||e.provide));if(!function mb(e){return!!e.deps}(e))return kn(o)||Hu(o);r=()=>new o(...uu(e.deps))}return r}(e),Ki)}(t);if($n(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=vr(void 0,Ki,!0),o.factory=()=>uu(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Ki&&(n.value=hb,n.value=n.factory()),"object"==typeof n.value&&n.value&&function yb(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=N(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Hu(e){const t=vi(e),n=null!==t?t.factory:kn(e);if(null!==n)return n;if(e instanceof x)throw new E(204,!1);if(e instanceof Function)return function pb(e){const t=e.length;if(t>0)throw function fo(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new E(204,!1)}function vr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Db(e){return!!e.\u0275providers}function Uu(e,t){for(const n of e)Array.isArray(n)?Uu(n,t):Db(n)?Uu(n.\u0275providers,t):t(n)}class ip{}class _b{resolveComponentFactory(t){throw function Cb(e){const t=Error(`No component factory found for ${X(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let So=(()=>{class e{}return e.NULL=new _b,e})();function Eb(){return Dr(_e(),D())}function Dr(e,t){return new yn(rt(e,t))}let yn=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=Eb,e})();class ap{}let Sb=(()=>{class e{}return e.\u0275prov=P({token:e,providedIn:"root",factory:()=>null}),e})();class Yi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Mb=new Yi("14.3.0"),zu={};function qu(e){return e.ngOriginalError}class wr{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&&qu(t);for(;n&&qu(n);)n=qu(n);return n||null}}function Yt(e){return e instanceof Function?e():e}function lp(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 cp="ng-template";function jb(e,t,n){let r=0;for(;ri?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==lp(h,l,0)||2&r&&l!==f){if(Ct(r))return!1;s=!0}}}}else{if(!s&&!Ct(r)&&!Ct(u))return!1;if(s&&Ct(u))continue;s=!1,r=u|1&r}}return Ct(r)||s}function Ct(e){return 0==(1&e)}function Bb(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&&!Ct(s)&&(t+=hp(i,o),o=""),r=s,i=i||!Ct(r);n++}return""!==o&&(t+=hp(i,o)),t}const k={};function vn(e){pp(z(),D(),He()+e,!1)}function pp(e,t,n,r){if(!r)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&Ai(t,i,n)}else{const i=e.preOrderHooks;null!==i&&xi(t,i,0,n)}hn(n)}function vp(e,t=null,n=null,r){const o=Dp(e,t,n,r);return o.resolveInjectorInitializers(),o}function Dp(e,t=null,n=null,r,o=new Set){const i=[n||K,cb(e)];return r=r||("object"==typeof e?void 0:X(e)),new rp(i,t||Zi(),r||null,o)}let ft=(()=>{class e{static create(n,r){if(Array.isArray(n))return vp({name:""},r,n,"");{const o=n.name??"";return vp({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=ho,e.NULL=new Jh,e.\u0275prov=P({token:e,providedIn:"any",factory:()=>b(Qh)}),e.__NG_ELEMENT_ID__=-1,e})();function I(e,t=A.Default){const n=D();return null===n?b(e,t):qf(_e(),n,N(e),t)}function Yu(){throw new Error("invalid")}function Xi(e,t){return e<<17|t<<2}function _t(e){return e>>17&32767}function Ju(e){return 2|e}function Jt(e){return(131068&e)>>2}function Xu(e,t){return-131069&e|t<<2}function el(e){return 1|e}function kp(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r22&&pp(e,t,22,!1),n(r,o)}finally{hn(i)}}function cl(e,t,n){!Sf()||(function O0(e,t,n,r){const o=n.directiveStart,i=n.directiveEnd;e.firstCreatePass||so(n,t),ke(r,t);const s=n.initialInputs;for(let a=o;a0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=u&&a.push(u),a.push(r,o,s)}}function Gp(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function qp(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function j0(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&gl(n)}}function gl(e){for(let r=vu(e);null!==r;r=Du(r))for(let o=10;o0&&gl(i)}const n=e[1].components;if(null!==n)for(let r=0;r0&&gl(o)}}function G0(e,t){const n=ot(t,e),r=n[1];(function q0(e,t){for(let n=t.length;n-1&&(_u(t,r),Li(n,r))}this._attachedToViewContainer=!1}Sh(this._lView[1],this._lView)}onDestroy(t){!function $p(e,t,n,r){const o=Qp(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&Yp(e).push(r,o.length-1))}(this._lView[1],this._lView,null,t)}markForCheck(){ml(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){is(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new E(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function SE(e,t){_o(e,t,t[j],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new E(902,!1);this._appRef=t}}class W0 extends Mo{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;is(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class Dl extends So{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Y(t);return new To(n,this.ngModule)}}function eg(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class Z0{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){const o=this.injector.get(t,zu,r);return o!==zu||n===zu?o:this.parentInjector.get(t,n,r)}}class To extends ip{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Wb(e){return e.map(qb).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return eg(this.componentDef.inputs)}get outputs(){return eg(this.componentDef.outputs)}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof mn?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new Z0(t,i):t,a=s.get(ap,null);if(null===a)throw new E(407,!1);const u=s.get(Sb,null),l=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=r?function T0(e,t,n){return e.selectRootElement(t,n===Pt.ShadowDom)}(l,r,this.componentDef.encapsulation):Cu(l,c,function K0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),f=this.componentDef.onPush?288:272,h=fl(0,null,null,1,0,null,null,null,null,null),p=ns(null,h,null,f,null,null,a,l,u,s,null);let g,m;Za(p);try{const v=function J0(e,t,n,r,o,i){const s=n[1];n[22]=e;const u=Er(s,22,2,"#host",null),l=u.mergedAttrs=t.hostAttrs;null!==l&&(ss(u,l,!0),null!==e&&(Ri(o,e,l),null!==u.classes&&Tu(o,e,u.classes),null!==u.styles&&Lh(o,e,u.styles)));const c=r.createRenderer(e,t),d=ns(n,Vp(t),null,t.onPush?32:16,n[22],u,r,c,i||null,null,null);return s.firstCreatePass&&(Fi(so(u,n),s,t.type),qp(s,u),Wp(u,n.length,1)),os(n,d),n[22]=d}(d,this.componentDef,p,a,l);if(d)if(r)Ri(l,d,["ng-version",Mb.full]);else{const{attrs:w,classes:y}=function Kb(e){const t=[],n=[];let r=1,o=2;for(;r0&&Tu(l,d,y.join(" "))}if(m=Ha(h,22),void 0!==n){const w=m.projection=[];for(let y=0;ya(me(G[r.index])):r.index;let S=null;if(!a&&u&&(S=function vI(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!==S)(S.__ngLastListenerFn__||S).__ngNextListenerFn__=i,S.__ngLastListenerFn__=i,h=!1;else{i=vg(r,t,d,i,!1);const G=n.listen(v,o,i);f.push(i,G),c&&c.push(o,y,w,w+1)}}else i=vg(r,t,d,i,!1);const p=r.outputs;let g;if(h&&null!==p&&(g=p[o])){const m=g.length;if(m)for(let v=0;v0;)t=t[15],e--;return t}(e,O.lFrame.contextLView))[8]}(e)}function Tg(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?_t(i):Jt(i),u=!1;for(;0!==a&&(!1===u||s);){const c=e[a+1];bI(e[a],t)&&(u=!0,e[a+1]=r?el(c):Ju(c)),a=r?_t(c):Jt(c)}u&&(e[n+1]=r?Ju(i):el(i))}function bI(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&pr(e,t)>=0}function Al(e,t){return function Et(e,t,n,r){const o=D(),i=z(),s=function Kt(e){const t=O.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);i.firstUpdatePass&&function Lg(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[He()],s=function kg(e,t){return t>=e.expandoStartIndex}(e,n);(function Bg(e,t){return 0!=(e.flags&(t?16:32))})(i,r)&&null===t&&!s&&(t=!1),t=function PI(e,t,n,r){const o=function Wa(e){const t=O.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Po(n=xl(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=xl(o,e,t,n,r),null===i){let u=function OI(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Jt(r))return e[_t(r)]}(e,t,r);void 0!==u&&Array.isArray(u)&&(u=xl(null,e,t,u[1],r),u=Po(u,t.attrs,r),function FI(e,t,n,r){e[_t(n?t.classBindings:t.styleBindings)]=r}(e,t,r,u))}else i=function kI(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(l=!0)}else c=n;if(o)if(0!==u){const f=_t(e[a+1]);e[r+1]=Xi(f,a),0!==f&&(e[f+1]=Xu(e[f+1],r)),e[a+1]=function p0(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=Xi(a,0),0!==a&&(e[a+1]=Xu(e[a+1],r)),a=r;else e[r+1]=Xi(u,0),0===a?a=r:e[u+1]=Xu(e[u+1],r),u=r;l&&(e[r+1]=Ju(e[r+1])),Tg(e,c,r,!0),Tg(e,c,r,!1),function EI(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&pr(i,t)>=0&&(n[r+1]=el(n[r+1]))}(t,c,e,r,i),s=Xi(a,u),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==k&&Le(o,s,t)&&function Vg(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const u=e.data,l=u[a+1];ds(function Tp(e){return 1==(1&e)}(l)?$g(u,t,n,o,Jt(l),s):void 0)||(ds(i)||function Mp(e){return 2==(2&e)}(l)&&(i=$g(u,null,n,o,a,s)),function kE(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:Ye.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Ye.Important),e.setStyle(n,r,o,i))}}(r,s,Si(He(),n),o,i))}(i,i.data[He()],o,o[j],e,o[s+1]=function VI(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=X(gn(e)))),e}(t,n),r,s)}(e,t,null,!0),Al}function xl(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const u=e[o],l=Array.isArray(u),c=l?u[1]:u,d=null===c;let f=n[o+1];f===k&&(f=d?K:void 0);let h=d?iu(f,r):c===r?f:void 0;if(l&&!ds(h)&&(h=iu(u,r)),ds(h)&&(a=h,s))return a;const p=e[o+1];o=s?_t(p):Jt(p)}if(null!==t){let u=i?t.residualClasses:t.residualStyles;null!=u&&(a=iu(u,r))}return a}function ds(e){return void 0!==e}function oe(e,t=""){const n=D(),r=z(),o=e+22,i=r.firstCreatePass?Er(r,o,1,t,null):r.data[o],s=n[o]=function wu(e,t){return e.createText(t)}(n[j],t);Ui(r,n,s,i),Ot(i,!1)}function Oo(e){return fs("",e,""),Oo}function fs(e,t,n){const r=D(),o=function Sr(e,t,n,r){return Le(e,sr(),n)?t+F(n)+r:k}(r,e,t,n);return o!==k&&function Xt(e,t,n){const r=Si(t,e);!function bh(e,t,n){e.setValue(t,n)}(e[j],r,n)}(r,He(),o),fs}const kr="en-US";let lm=kr;class zn{}class Fm{}class km extends zn{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Dl(this);const r=tt(t);this._bootstrapComponents=Yt(r.bootstrap),this._r3Injector=Dp(t,n,[{provide:zn,useValue:this},{provide:So,useValue:this.componentFactoryResolver}],X(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 Ll extends Fm{constructor(t){super(),this.moduleType=t}create(t){return new km(this.moduleType,t)}}class sM extends zn{constructor(t,n,r){super(),this.componentFactoryResolver=new Dl(this),this.instance=null;const o=new rp([...t,{provide:zn,useValue:this},{provide:So,useValue:this.componentFactoryResolver}],n||Zi(),r,new Set(["environment"]));this.injector=o,o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function ys(e,t,n=null){return new sM(e,t,n).injector}let aM=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const r=Xh(0,n.type),o=r.length>0?ys([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,o)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=P({token:e,providedIn:"environment",factory:()=>new e(b(mn))}),e})();function Lm(e){e.getStandaloneInjector=t=>t.get(aM).getOrCreateStandaloneInjector(e)}function zm(e,t,n,r,o,i){const s=t+n;return Le(e,s,o)?function Lt(e,t,n){return e[t]=n}(e,s+1,i?r.call(i,o):r(o)):function $o(e,t){const n=e[t];return n===k?void 0:n}(e,s+1)}function Qm(e,t,n){const r=e+22,o=D(),i=function ir(e,t){return e[t]}(o,r);return function Bo(e,t){return e[1].data[t].pure}(o,r)?zm(o,function Be(){const e=O.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),t,i.transform,n,i):i.transform(n)}function Vl(e){return t=>{setTimeout(e,void 0,t)}}const Ge=class RM extends xt{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=Vl(i),o&&(o=Vl(o)),s&&(s=Vl(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof ut&&t.add(a),a}};let en=(()=>{class e{}return e.__NG_ELEMENT_ID__=FM,e})();const PM=en,OM=class extends PM{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t,n){const r=this._declarationTContainer.tViews,o=ns(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)),ll(r,o,t),new Mo(o)}};function FM(){return function vs(e,t){return 4&e.type?new OM(t,e,Dr(e,t)):null}(_e(),D())}let It=(()=>{class e{}return e.__NG_ELEMENT_ID__=kM,e})();function kM(){return function Xm(e,t){let n;const r=t[e.index];if(Dt(r))n=r;else{let o;if(8&e.type)o=me(r);else{const i=t[j];o=i.createComment("");const s=rt(e,t);jn(i,Hi(i,s),o,function PE(e,t){return e.nextSibling(t)}(i,s),!1)}t[e.index]=n=Zp(r,t,o,e),os(t,n)}return new Ym(n,e,t)}(_e(),D())}const LM=It,Ym=class extends LM{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Dr(this._hostTNode,this._hostLView)}get injector(){return new lr(this._hostTNode,this._hostLView)}get parentInjector(){const t=Oi(this._hostTNode,this._hostLView);if(Bf(t)){const n=ur(t,this._hostLView),r=ar(t);return new lr(n[1].data[r+8],n)}return new lr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Jm(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 co(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 To(Y(t)),l=r||this.parentInjector;if(!i&&null==u.ngModule){const f=(s?l:this.parentInjector).get(mn,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 ZC(e){return Dt(e[3])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const d=r[3],f=new Ym(d,d[6],d[3]);f.detach(f.indexOf(t))}}const i=this._adjustIndex(n),s=this._lContainer;!function TE(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=ws,this.reject=ws,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)(b(Cs,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Uo=new x("AppId",{providedIn:"root",factory:function Ey(){return`${ec()}${ec()}${ec()}`}});function ec(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const by=new x("Platform Initializer"),tc=new x("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),nc=new x("appBootstrapListener");let hT=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const tn=new x("LocaleId",{providedIn:"root",factory:()=>de(tn,A.Optional|A.SkipSelf)||function pT(){return typeof $localize<"u"&&$localize.locale||kr}()});class mT{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let rc=(()=>{class e{compileModuleSync(n){return new Ll(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=Yt(tt(n).declarations).reduce((s,a)=>{const u=Y(a);return u&&s.push(new To(u)),s},[]);return new mT(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const DT=(()=>Promise.resolve(0))();function oc(e){typeof Zone>"u"?DT.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 Ge(!1),this.onMicrotaskEmpty=new Ge(!1),this.onStable=new Ge(!1),this.onError=new Ge(!1),typeof Zone>"u")throw new E(908,!1);Zone.assertZonePatched();const o=this;if(o._nesting=0,o._outer=o._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const i=Zone.AsyncStackTaggingZoneSpec;o._inner=o._inner.fork(new i("Angular"))}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 wT(){let e=te.requestAnimationFrame,t=te.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 ET(e){const t=()=>{!function _T(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(te,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,sc(e),e.isCheckStableRunning=!0,ic(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),sc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return My(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),Ty(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return My(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),Ty(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,sc(e),ic(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 E(909,!1)}static assertNotInAngularZone(){if(Ie.isInAngularZone())throw new E(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,CT,ws,ws);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 CT={};function ic(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 sc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function My(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ty(e){e._nesting--,ic(e)}class bT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ge,this.onMicrotaskEmpty=new Ge,this.onStable=new Ge,this.onError=new Ge}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 Ay=new x(""),Es=new x("");let lc,ac=(()=>{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,lc||(function IT(e){lc=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(),oc(()=>{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())oc(()=>{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)(b(Ie),b(uc),b(Es))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})(),uc=(()=>{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 lc?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Cn=null;const xy=new x("AllowMultipleToken"),cc=new x("PlatformDestroyListeners");class Ry{constructor(t,n){this.name=t,this.token=n}}function Py(e,t,n=[]){const r=`Platform: ${t}`,o=new x(r);return(i=[])=>{let s=dc();if(!s||s.injector.get(xy,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function TT(e){if(Cn&&!Cn.get(xy,!1))throw new E(400,!1);Cn=e;const t=e.get(Fy);(function Ny(e){const t=e.get(by,null);t&&t.forEach(n=>n())})(e)}(function Oy(e=[],t){return ft.create({name:t,providers:[{provide:$u,useValue:"platform"},{provide:cc,useValue:new Set([()=>Cn=null])},...e]})}(a,r))}return function xT(e){const t=dc();if(!t)throw new E(401,!1);return t}()}}function dc(){return Cn?.get(Fy)??null}let Fy=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function Ly(e,t){let n;return n="noop"===e?new bT:("zone.js"===e?void 0:e)||new Ie(t),n}(r?.ngZone,function ky(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=ft.create({providers:i,parent:this.injector,name:n.moduleType.name}),a=n.create(s),u=a.injector.get(wr,null);if(!u)throw new E(402,!1);return o.runOutsideAngular(()=>{const l=o.onError.subscribe({next:c=>{u.handleError(c)}});a.onDestroy(()=>{Is(this._modules,a),l.unsubscribe()})}),function jy(e,t,n){try{const r=n();return cs(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(_s);return l.runInitializers(),l.donePromise.then(()=>(function cm(e){et(e,"Expected localeId to be defined"),"string"==typeof e&&(lm=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(tn,kr)||kr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const o=Vy({},r);return function ST(e,t,n){const r=new Ll(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(bs);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new E(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 E(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(cc,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)(b(ft))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Vy(e,t){return Array.isArray(t)?t.reduce(Vy,e):{...e,...t}}let bs=(()=>{class e{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 ge(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new ge(a=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{Ie.assertNotInAngularZone(),oc(()=>{!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=function yC(...e){const t=Yr(e),n=function cC(e,t){return"number"==typeof Ia(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?Rt(r[0]):Xn(n)(Ce(r,t)):Ut}(i,s.pipe(function vC(e={}){const{connector:t=(()=>new xt),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},h=()=>{f(),s=u=void 0,c=d=!1},p=()=>{const g=s;h(),g?.unsubscribe()};return Me((g,m)=>{l++,!d&&!c&&f();const v=u=u??t();m.add(()=>{l--,0===l&&!d&&!c&&(a=Sa(p,o))}),v.subscribe(m),!s&&l>0&&(s=new Qr({next:w=>v.next(w),error:w=>{d=!0,f(),a=Sa(h,n,w),v.error(w)},complete:()=>{c=!0,f(),a=Sa(h,r),v.complete()}}),Rt(g).subscribe(s))})(i)}}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof ip;if(!this._injector.get(_s).done)throw!o&&function tr(e){const t=Y(e)||Ve(e)||$e(e);return null!==t&&t.standalone}(n),new E(405,false);let s;s=o?n:this._injector.get(So).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function MT(e){return e.isBoundToModule}(s)?void 0:this._injector.get(zn),l=s.create(ft.NULL,[],r||s.selector,a),c=l.location.nativeElement,d=l.injector.get(Ay,null);return d?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),Is(this.components,l),d?.unregisterApplication(c)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new E(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;Is(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(nc,[]).concat(this._bootstrapListeners).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),()=>Is(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new E(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)(b(Ie),b(mn),b(wr))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Is(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let By=!0,fc=(()=>{class e{}return e.__NG_ELEMENT_ID__=PT,e})();function PT(e){return function OT(e,t,n){if(bi(e)&&!n){const r=ot(e.index,t);return new Mo(r,r)}return 47&e.type?new Mo(t[16],t):null}(_e(),D(),16==(16&e))}class qy{constructor(){}supports(t){return Ao(t)}create(t){return new $T(t)}}const VT=(e,t)=>t;class $T{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||VT}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 BT(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 Wy),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 Wy),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 BT{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 HT{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 Wy{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new HT,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 Ky(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{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||Qy()),deps:[[e,new yo,new mo]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new E(901,!1)}}return e.\u0275prov=P({token:e,providedIn:"root",factory:Qy}),e})();const WT=Py(null,"core",[]);let KT=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(b(bs))},e.\u0275mod=qt({type:e}),e.\u0275inj=Nt({}),e})();function Vr(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let As=null;function _n(){return As}const We=new x("DocumentToken");let yc=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:function(){return function JT(){return b(Jy)}()},providedIn:"platform"}),e})();const XT=new x("Location Initialized");let Jy=(()=>{class e extends yc{constructor(n){super(),this._doc=n,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _n().getBaseHref(this._doc)}onPopState(n){const r=_n().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=_n().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(n){this.location.pathname=n}pushState(n,r,o){Xy()?this._history.pushState(n,r,o):this.location.hash=o}replaceState(n,r,o){Xy()?this._history.replaceState(n,r,o):this.location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return e.\u0275fac=function(n){return new(n||e)(b(We))},e.\u0275prov=P({token:e,factory:function(){return function eA(){return new Jy(b(We))}()},providedIn:"platform"}),e})();function Xy(){return!!window.history.pushState}function vc(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function ev(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function rn(e){return e&&"?"!==e[0]?"?"+e:e}let qn=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:function(){return de(nv)},providedIn:"root"}),e})();const tv=new x("appBaseHref");let nv=(()=>{class e extends qn{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??de(We).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return vc(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+rn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+rn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+rn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(b(yc),b(tv,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),tA=(()=>{class e extends qn{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=vc(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+rn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+rn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(b(yc),b(tv,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})(),Dc=(()=>{class e{constructor(n){this._subject=new Ge,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._baseHref=ev(rv(r)),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+rn(r))}normalize(n){return e.stripTrailingSlash(function rA(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,rv(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+rn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+rn(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return e.normalizeQueryParams=rn,e.joinWithSlash=vc,e.stripTrailingSlash=ev,e.\u0275fac=function(n){return new(n||e)(b(qn))},e.\u0275prov=P({token:e,factory:function(){return function nA(){return new Dc(b(qn))}()},providedIn:"root"}),e})();function rv(e){return e.replace(/\/index.html$/,"")}function fv(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}class HA{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ac=(()=>{class e{constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new HA(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),gv(a,o)}});for(let o=0,i=r.length;o{gv(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(I(It),I(en),I(Ts))},e.\u0275dir=Pe({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function gv(e,t){e.context.$implicit=t.item}const rx=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let vv=(()=>{class e{transform(n){if(null==n)return null;if("string"!=typeof n)throw function Tt(e,t){return new E(2100,!1)}();return n.replace(rx,r=>r[0].toUpperCase()+r.slice(1).toLowerCase())}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Ze({name:"titlecase",type:e,pure:!0,standalone:!0}),e})(),yx=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=qt({type:e}),e.\u0275inj=Nt({}),e})();let Cx=(()=>{class e{}return e.\u0275prov=P({token:e,providedIn:"root",factory:()=>new _x(b(We),window)}),e})();class _x{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const n=function Ex(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Cv(this.window.history)||Cv(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Cv(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class _v{}class kc extends class Qx extends class YT{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function QT(e){As||(As=e)}(new kc)}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 Yx(){return Ko=Ko||document.querySelector("base"),Ko?Ko.getAttribute("href"):null}();return null==n?null:function Jx(e){Bs=Bs||document.createElement("a"),Bs.setAttribute("href",e);const t=Bs.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Ko=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return fv(document.cookie,t)}}let Bs,Ko=null;const Mv=new x("TRANSITION_ID"),eR=[{provide:Cs,useFactory:function Xx(e,t,n){return()=>{n.get(_s).donePromise.then(()=>{const r=_n(),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=P({token:e,factory:e.\u0275fac}),e})();const Hs=new x("EventManagerPlugins");let Us=(()=>{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=P({token:e,factory:e.\u0275fac}),e})(),Zo=(()=>{class e extends Av{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(xv),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(n,o,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(xv))}}return e.\u0275fac=function(n){return new(n||e)(b(We))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();function xv(e){_n().remove(e)}const Lc={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/"},jc=/%COMP%/g;function zs(e,t,n){for(let r=0;r{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Vc=(()=>{class e{constructor(n,r,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new $c(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case Pt.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new uR(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(n),o}case 1:case Pt.ShadowDom:return new lR(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const o=zs(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)(b(Us),b(Zo),b(Uo))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();class $c{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(Lc[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){(Fv(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Fv(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=Lc[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=Lc[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&(Ye.DashCase|Ye.Important)?t.style.setProperty(n,r,o&Ye.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Ye.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,Pv(r)):this.eventManager.addEventListener(t,n,Pv(r))}}function Fv(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class uR extends $c{constructor(t,n,r,o){super(t),this.component=r;const i=zs(o+"-"+r.id,r.styles,[]);n.addStyles(i),this.contentAttr=function iR(e){return"_ngcontent-%COMP%".replace(jc,e)}(o+"-"+r.id),this.hostAttr=function sR(e){return"_nghost-%COMP%".replace(jc,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 lR extends $c{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=zs(o.id,o.styles,[]);for(let s=0;s{class e extends Tv{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)(b(We))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const kv=["alt","control","meta","shift"],dR={"\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"},fR={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let hR=(()=>{class e extends Tv{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(()=>_n().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."),kv.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=dR[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"),kv.forEach(s=>{s!==o&&(0,fR[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)(b(We))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const yR=Py(WT,"browser",[{provide:tc,useValue:"browser"},{provide:by,useValue:function pR(){kc.makeCurrent()},multi:!0},{provide:We,useFactory:function mR(){return function $E(e){xu=e}(document),document},deps:[]}]),Vv=new x(""),$v=[{provide:Es,useClass:class tR{addToWindow(t){te.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},te.getAllAngularTestabilities=()=>t.getAllTestabilities(),te.getAllAngularRootElements=()=>t.getAllRootElements(),te.frameworkStabilizers||(te.frameworkStabilizers=[]),te.frameworkStabilizers.push(r=>{const o=te.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?_n().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:Ay,useClass:ac,deps:[Ie,uc,Es]},{provide:ac,useClass:ac,deps:[Ie,uc,Es]}],Bv=[{provide:$u,useValue:"root"},{provide:wr,useFactory:function gR(){return new wr},deps:[]},{provide:Hs,useClass:cR,multi:!0,deps:[We,Ie,tc]},{provide:Hs,useClass:hR,multi:!0,deps:[We]},{provide:Vc,useClass:Vc,deps:[Us,Zo,Uo]},{provide:ap,useExisting:Vc},{provide:Av,useExisting:Zo},{provide:Zo,useClass:Zo,deps:[We]},{provide:Us,useClass:Us,deps:[Hs,Ie]},{provide:_v,useClass:nR,deps:[]},[]];let vR=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Uo,useValue:n.appId},{provide:Mv,useExisting:Uo},eR]}}}return e.\u0275fac=function(n){return new(n||e)(b(Vv,12))},e.\u0275mod=qt({type:e}),e.\u0275inj=Nt({providers:[...Bv,...$v],imports:[yx,KT]}),e})(),Hv=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return e.\u0275fac=function(n){return new(n||e)(b(We))},e.\u0275prov=P({token:e,factory:function(n){let r=null;return r=n?new n:function wR(){return new Hv(b(We))}(),r},providedIn:"root"}),e})();function M(...e){return Ce(e,Yr(e))}typeof window<"u"&&window;class At extends xt{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}const Gs=Kr(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:TR}=Array,{getPrototypeOf:AR,prototype:xR,keys:RR}=Object;const{isArray:OR}=Array;function Gv(...e){const t=Yr(e),n=function lC(e){return ee(Ia(e))?e.pop():void 0}(e),{args:r,keys:o}=function NR(e){if(1===e.length){const t=e[0];if(TR(t))return{args:t,keys:null};if(function PR(e){return e&&"object"==typeof e&&AR(e)===xR}(t)){const n=RR(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}(e);if(0===r.length)return Ce([],t);const i=new ge(function jR(e,t,n=Rn){return r=>{qv(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let u=0;u{const l=Ce(e[u],t);let c=!1;l.subscribe(Te(r,d=>{i[u]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>function LR(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}(o,s):Rn));return n?i.pipe(function kR(e){return H(t=>function FR(e,t){return OR(t)?e(...t):e(t)}(e,t))}(n)):i}function qv(e,t,n){e?Ht(n,e,t):t()}function Uc(...e){return function VR(){return Xn(1)}()(Ce(e,Yr(e)))}function Wv(e){return new ge(t=>{Rt(e()).subscribe(t)})}function Qo(e,t){const n=ee(e)?e:()=>e,r=o=>o.error(n());return new ge(t?o=>t.schedule(r,0,o):r)}function zc(){return Me((e,t)=>{let n=null;e._refCount++;const r=Te(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class Kv extends ge{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Gd(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new ut;const n=this.getSubject();t.add(this.source.subscribe(Te(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=ut.EMPTY)}return t}refCount(){return zc()(this)}}function $t(e,t){return Me((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(Te(r,u=>{o?.unsubscribe();let l=0;const c=i++;Rt(e(u,c)).subscribe(o=Te(r,d=>r.next(t?t(u,d,c,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Yo(e){return e<=0?()=>Ut:Me((t,n)=>{let r=0;t.subscribe(Te(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function sn(e,t){return Me((n,r)=>{let o=0;n.subscribe(Te(r,i=>e.call(t,i,o++)&&r.next(i)))})}function qs(e){return Me((t,n)=>{let r=!1;t.subscribe(Te(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Zv(e=BR){return Me((t,n)=>{let r=!1;t.subscribe(Te(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function BR(){return new Gs}function bn(e,t){const n=arguments.length>=2;return r=>r.pipe(e?sn((o,i)=>e(o,i,r)):Rn,Yo(1),n?qs(t):Zv(()=>new Gs))}function In(e,t){return ee(t)?xe(e,t,1):xe(e,1)}function je(e,t,n){const r=ee(e)||t||n?{next:e,error:t,complete:n}:e;return r?Me((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(Te(i,u=>{var l;null===(l=r.next)||void 0===l||l.call(r,u),i.next(u)},()=>{var u;a=!1,null===(u=r.complete)||void 0===u||u.call(r),i.complete()},u=>{var l;a=!1,null===(l=r.error)||void 0===l||l.call(r,u),i.error(u)},()=>{var u,l;a&&(null===(u=r.unsubscribe)||void 0===u||u.call(r)),null===(l=r.finalize)||void 0===l||l.call(r)}))}):Rn}function Sn(e){return Me((t,n)=>{let i,r=null,o=!1;r=t.subscribe(Te(n,void 0,void 0,s=>{i=Rt(e(s,Sn(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function HR(e,t,n,r,o){return(i,s)=>{let a=n,u=t,l=0;i.subscribe(Te(s,c=>{const d=l++;u=a?e(u,c,d):(a=!0,c),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function Qv(e,t){return Me(HR(e,t,arguments.length>=2,!0))}function Gc(e){return e<=0?()=>Ut:Me((t,n)=>{let r=[];t.subscribe(Te(n,o=>{r.push(o),e{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Yv(e,t){const n=arguments.length>=2;return r=>r.pipe(e?sn((o,i)=>e(o,i,r)):Rn,Gc(1),n?qs(t):Zv(()=>new Gs))}function qc(e){return Me((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const $="primary",Jo=Symbol("RouteTitle");class GR{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function $r(e){return new GR(e)}function qR(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[i]===o)}return e===t}function Xv(e){return Array.prototype.concat.apply([],e)}function eD(e){return e.length>0?e[e.length-1]:null}function Re(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Mn(e){return pg(e)?e:cs(e)?Ce(Promise.resolve(e)):M(e)}const ZR={exact:function rD(e,t,n){if(!Kn(e.segments,t.segments)||!Ws(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!rD(e.children[r],t.children[r],n))return!1;return!0},subset:oD},tD={exact:function QR(e,t){return Bt(e,t)},subset:function YR(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Jv(e[n],t[n]))},ignored:()=>!0};function nD(e,t,n){return ZR[n.paths](e.root,t.root,n.matrixParams)&&tD[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function oD(e,t,n){return iD(e,t,t.segments,n)}function iD(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!Kn(o,n)||t.hasChildren()||!Ws(o,n,r))}if(e.segments.length===n.length){if(!Kn(e.segments,n)||!Ws(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!oD(e.children[o],t.children[o],r))return!1;return!0}{const o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!(Kn(e.segments,o)&&Ws(e.segments,o,r)&&e.children[$])&&iD(e.children[$],t,i,r)}}function Ws(e,t,n){return t.every((r,o)=>tD[n](e[o].parameters,r.parameters))}class Wn{constructor(t,n,r){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=$r(this.queryParams)),this._queryParamMap}toString(){return eN.serialize(this)}}class B{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Re(n,(r,o)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ks(this)}}class Xo{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=$r(this.parameters)),this._parameterMap}toString(){return lD(this)}}function Kn(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let sD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:function(){return new Kc},providedIn:"root"}),e})();class Kc{parse(t){const n=new lN(t);return new Wn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${ei(t.root,!0)}`,r=function rN(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${Zs(n)}=${Zs(o)}`).join("&"):`${Zs(n)}=${Zs(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function tN(e){return encodeURI(e)}(t.fragment)}`:""}`}}const eN=new Kc;function Ks(e){return e.segments.map(t=>lD(t)).join("/")}function ei(e,t){if(!e.hasChildren())return Ks(e);if(t){const n=e.children[$]?ei(e.children[$],!1):"",r=[];return Re(e.children,(o,i)=>{i!==$&&r.push(`${i}:${ei(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function XR(e,t){let n=[];return Re(e.children,(r,o)=>{o===$&&(n=n.concat(t(r,o)))}),Re(e.children,(r,o)=>{o!==$&&(n=n.concat(t(r,o)))}),n}(e,(r,o)=>o===$?[ei(e.children[$],!1)]:[`${o}:${ei(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[$]?`${Ks(e)}/${n[0]}`:`${Ks(e)}/(${n.join("//")})`}}function aD(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zs(e){return aD(e).replace(/%3B/gi,";")}function Zc(e){return aD(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Qs(e){return decodeURIComponent(e)}function uD(e){return Qs(e.replace(/\+/g,"%20"))}function lD(e){return`${Zc(e.path)}${function nN(e){return Object.keys(e).map(t=>`;${Zc(t)}=${Zc(e[t])}`).join("")}(e.parameters)}`}const oN=/^[^\/()?;=#]+/;function Ys(e){const t=e.match(oN);return t?t[0]:""}const iN=/^[^=?&#]+/,aN=/^[^&#]+/;class lN{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new B([],{}):new B([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[$]=new B(t,n)),r}parseSegment(){const t=Ys(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new E(4009,!1);return this.capture(t),new Xo(Qs(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=Ys(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=Ys(this.remaining);o&&(r=o,this.capture(r))}t[Qs(n)]=Qs(r)}parseQueryParam(t){const n=function sN(e){const t=e.match(iN);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function uN(e){const t=e.match(aN);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=uD(n),i=uD(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Ys(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new E(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=$);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[$]:new B([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new E(4011,!1)}}function Qc(e){return e.segments.length>0?new B([],{[$]:e}):e}function Js(e){const t={};for(const r of Object.keys(e.children)){const i=Js(e.children[r]);(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function cN(e){if(1===e.numberOfChildren&&e.children[$]){const t=e.children[$];return new B(e.segments.concat(t.segments),t.children)}return e}(new B(e.segments,t))}function Zn(e){return e instanceof Wn}function hN(e,t,n,r,o){if(0===n.length)return Br(t.root,t.root,t.root,r,o);const i=function fD(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new dD(!0,0,e);let t=0,n=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Re(i.outlets,(u,l)=>{a[l]="string"==typeof u?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,u)=>{0==u&&"."===a||(0==u&&""===a?n=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new dD(n,t,r)}(n);return i.toRoot()?Br(t.root,t.root,new B([],{}),r,o):function s(u){const l=function gN(e,t,n,r){if(e.isAbsolute)return new Hr(t.root,!0,0);if(-1===r)return new Hr(n,n===t.root,0);return function hD(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new E(4005,!1);o=r.segments.length}return new Hr(r,!1,o-i)}(n,r+(ti(e.commands[0])?0:1),e.numberOfDoubleDots)}(i,t,e.snapshot?._urlSegment,u),c=l.processChildren?ri(l.segmentGroup,l.index,i.commands):Jc(l.segmentGroup,l.index,i.commands);return Br(t.root,l.segmentGroup,c,r,o)}(e.snapshot?._lastPathIndex)}function ti(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ni(e){return"object"==typeof e&&null!=e&&e.outlets}function Br(e,t,n,r,o){let s,i={};r&&Re(r,(u,l)=>{i[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`}),s=e===t?n:cD(e,t,n);const a=Qc(Js(s));return new Wn(a,i,o)}function cD(e,t,n){const r={};return Re(e.children,(o,i)=>{r[i]=o===t?n:cD(o,t,n)}),new B(e.segments,r)}class dD{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&ti(r[0]))throw new E(4003,!1);const o=r.find(ni);if(o&&o!==eD(r))throw new E(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Hr{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function Jc(e,t,n){if(e||(e=new B([],{})),0===e.segments.length&&e.hasChildren())return ri(e,t,n);const r=function yN(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=e.segments[o],a=n[r];if(ni(a))break;const u=`${a}`,l=r0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!gD(u,l,s))return i;r+=2}else{if(!gD(u,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(o[s]=Jc(e.children[s],t,i))}),Re(e.children,(i,s)=>{void 0===r[s]&&(o[s]=i)}),new B(e.segments,o)}}function Xc(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o{"string"==typeof n&&(n=[n]),null!==n&&(t[r]=Xc(new B([],{}),0,n))}),t}function pD(e){const t={};return Re(e,(n,r)=>t[r]=`${n}`),t}function gD(e,t,n){return e==n.path&&Bt(t,n.parameters)}class an{constructor(t,n){this.id=t,this.url=n}}class ed extends an{constructor(t,n,r="imperative",o=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Qn extends an{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Xs extends an{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class mD extends an{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class DN extends an{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wN extends an{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class CN extends an{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class _N extends an{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class EN extends an{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bN{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class IN{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class SN{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class MN{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class TN{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class AN{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yD{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class vD{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=td(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=td(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=nd(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return nd(t,this._root).map(n=>n.value)}}function td(e,t){if(e===t.value)return t;for(const n of t.children){const r=td(e,n);if(r)return r}return null}function nd(e,t){if(e===t.value)return[t];for(const n of t.children){const r=nd(e,n);if(r.length)return r.unshift(t),r}return[]}class un{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function Ur(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class DD extends vD{constructor(t,n){super(t),this.snapshot=n,rd(this,t)}toString(){return this.snapshot.toString()}}function wD(e,t){const n=function RN(e,t){const s=new ea([],{},{},"",{},$,t,null,e.root,-1,{});return new _D("",new un(s,[]))}(e,t),r=new At([new Xo("",{})]),o=new At({}),i=new At({}),s=new At({}),a=new At(""),u=new Yn(r,o,s,a,i,$,t,n.root);return u.snapshot=n.root,new DD(new un(u,[]),n)}class Yn{constructor(t,n,r,o,i,s,a,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.title=this.data?.pipe(H(l=>l[Jo]))??M(void 0),this._futureSnapshot=u}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(H(t=>$r(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(H(t=>$r(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function CD(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function NN(e){return e.reduce((t,n)=>({params:{...t.params,...n.params},data:{...t.data,...n.data},resolve:{...n.data,...t.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(r))}class ea{constructor(t,n,r,o,i,s,a,u,l,c,d,f){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.title=this.data?.[Jo],this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._correctedLastPathIndex=f??c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=$r(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=$r(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class _D extends vD{constructor(t,n){super(n),this.url=t,rd(this,n)}toString(){return ED(this._root)}}function rd(e,t){t.value._routerState=e,t.children.forEach(n=>rd(e,n))}function ED(e){const t=e.children.length>0?` { ${e.children.map(ED).join(", ")} } `:"";return`${e.value}${t}`}function od(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Bt(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Bt(t.params,n.params)||e.params.next(n.params),function WR(e,t){if(e.length!==t.length)return!1;for(let n=0;nBt(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||id(e.parent,t.parent))}function oi(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function ON(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return oi(e,r,o);return oi(e,r)})}(e,t,n);return new un(r,o)}{if(e.shouldAttach(t.value)){const i=e.retrieve(t.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>oi(e,a)),s}}const r=function FN(e){return new Yn(new At(e.url),new At(e.params),new At(e.queryParams),new At(e.fragment),new At(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>oi(e,i));return new un(r,o)}}const sd="ngNavigationCancelingError";function bD(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=Zn(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=ID(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function ID(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[sd]=!0,r.cancellationCode=t,n&&(r.url=n),r}function SD(e){return MD(e)&&Zn(e.url)}function MD(e){return e&&e[sd]}class kN{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new ii,this.attachRef=null}}let ii=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new kN,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ta=!1;let ad=(()=>{class e{constructor(n,r,o,i,s){this.parentContexts=n,this.location=r,this.changeDetector=i,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ge,this.deactivateEvents=new Ge,this.attachEvents=new Ge,this.detachEvents=new Ge,this.name=o||$,n.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const n=this.parentContexts.getContext(this.name);n&&n.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new E(4012,ta);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new E(4012,ta);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new E(4012,ta);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new E(4013,ta);this._activatedRoute=n;const o=this.location,s=n._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new LN(n,a,o.injector);if(r&&function jN(e){return!!e.resolveComponentFactory}(r)){const l=r.resolveComponentFactory(s);this.activated=o.createComponent(l,o.length,u)}else this.activated=o.createComponent(s,{index:o.length,injector:u,environmentInjector:r??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(n){return new(n||e)(I(ii),I(It),function uo(e){return function b_(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ke({type:e,selectors:[["ng-component"]],standalone:!0,features:[Lm],decls:1,vars:0,template:function(n,r){1&n&&fe(0,"router-outlet")},dependencies:[ad],encapsulation:2}),e})();function TD(e,t){return e.providers&&!e._injector&&(e._injector=ys(e.providers,t,`Route: ${e.path}`)),e._injector??t}function cd(e){const t=e.children&&e.children.map(cd),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==$&&(n.component=ud),n}function mt(e){return e.outlet||$}function AD(e,t){const n=e.filter(r=>mt(r)===t);return n.push(...e.filter(r=>mt(r)!==t)),n}function si(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class UN{constructor(t,n,r,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),od(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=Ur(n);t.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Re(o,(i,s)=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Ur(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Ur(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(t,n,r){const o=Ur(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new AN(i.value.snapshot))}),t.children.length&&this.forwardEvent(new MN(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(od(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),od(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=si(o.snapshot),u=a?.get(So)??null;s.attachRef=null,s.route=o,s.resolver=u,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class xD{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class na{constructor(t,n){this.component=t,this.route=n}}function zN(e,t,n){const r=e._root;return ai(r,t?t._root:null,n,[r.value])}function zr(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function IC(e){return null!==vi(e)}(e)?t.get(e):e:r}function ai(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=Ur(t);return e.children.forEach(s=>{(function qN(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const u=function WN(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Kn(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Kn(e.url,t.url)||!Bt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!id(e,t)||!Bt(e.queryParams,t.queryParams);default:return!id(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new xD(r)):(i.data=s.data,i._resolvedData=s._resolvedData),ai(e,t,i.component?a?a.children:null:n,r,o),u&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new na(a.outlet.component,s))}else s&&ui(t,a,o),o.canActivateChecks.push(new xD(r)),ai(e,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Re(i,(s,a)=>ui(s,n.getContext(a),o)),o}function ui(e,t,n){const r=Ur(e),o=e.value;Re(r,(i,s)=>{ui(i,o.component?t?t.children.getContext(s):null:t,n)}),n.canDeactivateChecks.push(new na(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function li(e){return"function"==typeof e}function dd(e){return e instanceof Gs||"EmptyError"===e?.name}const ra=Symbol("INITIAL_VALUE");function Gr(){return $t(e=>Gv(e.map(t=>t.pipe(Yo(1),function $R(...e){const t=Yr(e);return Me((n,r)=>{(t?Uc(e,n,t):Uc(e,n)).subscribe(r)})}(ra)))).pipe(H(t=>{for(const n of t)if(!0!==n){if(n===ra)return ra;if(!1===n||n instanceof Wn)return n}return!0}),sn(t=>t!==ra),Yo(1)))}function RD(e){return function Mw(...e){return Hd(e)}(je(t=>{if(Zn(t))throw bD(0,t)}),H(t=>!0===t))}const fd={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ND(e,t,n,r,o){const i=hd(e,t,n);return i.matched?function cP(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?M(o.map(s=>{const a=zr(s,e);return Mn(function XN(e){return e&&li(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(Gr(),RD()):M(!0)}(r=TD(t,r),t,n).pipe(H(s=>!0===s?i:{...fd})):M(i)}function hd(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...fd}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||qR)(n,e,t);if(!o)return{...fd};const i={};Re(o.posParams,(a,u)=>{i[u]=a.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function oa(e,t,n,r,o="corrected"){if(n.length>0&&function hP(e,t,n){return n.some(r=>ia(e,t,r)&&mt(r)!==$)}(e,n,r)){const s=new B(t,function fP(e,t,n,r){const o={};o[$]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&mt(i)!==$){const s=new B([],{});s._sourceSegment=e,s._segmentIndexShift=t.length,o[mt(i)]=s}return o}(e,t,r,new B(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function pP(e,t,n){return n.some(r=>ia(e,t,r))}(e,n,r)){const s=new B(e.segments,function dP(e,t,n,r,o,i){const s={};for(const a of r)if(ia(e,n,a)&&!o[mt(a)]){const u=new B([],{});u._sourceSegment=e,u._segmentIndexShift="legacy"===i?e.segments.length:t.length,s[mt(a)]=u}return{...o,...s}}(e,t,n,r,e.children,o));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}const i=new B(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function ia(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function PD(e,t,n,r){return!!(mt(e)===r||r!==$&&ia(t,n,e))&&("**"===e.path||hd(t,e,n).matched)}function OD(e,t,n){return 0===t.length&&!e.children[n]}const sa=!1;class aa{constructor(t){this.segmentGroup=t||null}}class FD{constructor(t){this.urlTree=t}}function ci(e){return Qo(new aa(e))}function kD(e){return Qo(new FD(e))}class vP{constructor(t,n,r,o,i){this.injector=t,this.configLoader=n,this.urlSerializer=r,this.urlTree=o,this.config=i,this.allowRedirects=!0}apply(){const t=oa(this.urlTree.root,[],[],this.config).segmentGroup,n=new B(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,n,$).pipe(H(i=>this.createUrlTree(Js(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Sn(i=>{if(i instanceof FD)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof aa?this.noMatchError(i):i}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,$).pipe(H(o=>this.createUrlTree(Js(o),t.queryParams,t.fragment))).pipe(Sn(o=>{throw o instanceof aa?this.noMatchError(o):o}))}noMatchError(t){return new E(4002,sa)}createUrlTree(t,n,r){const o=Qc(t);return new Wn(o,n,r)}expandSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,n,r).pipe(H(i=>new B([],i))):this.expandSegment(t,r,n,r.segments,o,!0)}expandChildren(t,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return Ce(o).pipe(In(i=>{const s=r.children[i],a=AD(n,i);return this.expandSegmentGroup(t,a,s,i).pipe(H(u=>({segment:u,outlet:i})))}),Qv((i,s)=>(i[s.outlet]=s.segment,i),{}),Yv())}expandSegment(t,n,r,o,i,s){return Ce(r).pipe(In(a=>this.expandSegmentAgainstRoute(t,n,r,a,o,i,s).pipe(Sn(l=>{if(l instanceof aa)return M(null);throw l}))),bn(a=>!!a),Sn((a,u)=>{if(dd(a))return OD(n,o,i)?M(new B([],{})):ci(n);throw a}))}expandSegmentAgainstRoute(t,n,r,o,i,s,a){return PD(o,n,i,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(t,n,o,i,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s):ci(n):ci(n)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o){const i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?kD(i):this.lineralizeSegments(r,i).pipe(xe(s=>{const a=new B(s,{});return this.expandSegment(t,a,n,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){const{matched:a,consumedSegments:u,remainingSegments:l,positionalParamSegments:c}=hd(n,o,i);if(!a)return ci(n);const d=this.applyRedirectCommands(u,o.redirectTo,c);return o.redirectTo.startsWith("/")?kD(d):this.lineralizeSegments(o,d).pipe(xe(f=>this.expandSegment(t,n,r,f.concat(l),s,!1)))}matchSegmentAgainstRoute(t,n,r,o,i){return"**"===r.path?(t=TD(r,t),r.loadChildren?(r._loadedRoutes?M({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(t,r)).pipe(H(a=>(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,new B(o,{})))):M(new B(o,{}))):ND(n,r,o,t).pipe($t(({matched:s,consumedSegments:a,remainingSegments:u})=>s?this.getChildConfig(t=r._injector??t,r,o).pipe(xe(c=>{const d=c.injector??t,f=c.routes,{segmentGroup:h,slicedSegments:p}=oa(n,a,u,f),g=new B(h.segments,h.children);if(0===p.length&&g.hasChildren())return this.expandChildren(d,f,g).pipe(H(y=>new B(a,y)));if(0===f.length&&0===p.length)return M(new B(a,{}));const m=mt(r)===i;return this.expandSegment(d,g,f,p,m?$:i,!0).pipe(H(w=>new B(a.concat(w.segments),w.children)))})):ci(n)))}getChildConfig(t,n,r){return n.children?M({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?M({routes:n._loadedRoutes,injector:n._loadedInjector}):function lP(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?M(!0):M(o.map(s=>{const a=zr(s,e);return Mn(function ZN(e){return e&&li(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(Gr(),RD())}(t,n,r).pipe(xe(o=>o?this.configLoader.loadChildren(t,n).pipe(je(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function mP(e){return Qo(ID(sa,3))}())):M({routes:[],injector:t})}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return M(r);if(o.numberOfChildren>1||!o.children[$])return Qo(new E(4e3,sa));o=o.children[$]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreateUrlTree(t,n,r,o){const i=this.createSegmentGroup(t,n.root,r,o);return new Wn(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Re(t,(o,i)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,o){const i=this.createSegments(t,n.segments,r,o);let s={};return Re(n.children,(a,u)=>{s[u]=this.createSegmentGroup(t,a,r,o)}),new B(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){const o=r[n.path.substring(1)];if(!o)throw new E(4001,sa);return o}findOrReturn(t,n){let r=0;for(const o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}}class wP{}class EP{constructor(t,n,r,o,i,s,a,u){this.injector=t,this.rootComponentType=n,this.config=r,this.urlTree=o,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=u}recognize(){const t=oa(this.urlTree.root,[],[],this.config.filter(n=>void 0===n.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,$).pipe(H(n=>{if(null===n)return null;const r=new ea([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},$,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new un(r,n),i=new _D(this.url,o);return this.inheritParamsAndData(i._root),i}))}inheritParamsAndData(t){const n=t.value,r=CD(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,o)}processChildren(t,n,r){return Ce(Object.keys(r.children)).pipe(In(o=>{const i=r.children[o],s=AD(n,o);return this.processSegmentGroup(t,s,i,o)}),Qv((o,i)=>o&&i?(o.push(...i),o):null),function UR(e,t=!1){return Me((n,r)=>{let o=0;n.subscribe(Te(r,i=>{const s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}(o=>null!==o),qs(null),Yv(),H(o=>{if(null===o)return null;const i=LD(o);return function bP(e){e.sort((t,n)=>t.value.outlet===$?-1:n.value.outlet===$?1:t.value.outlet.localeCompare(n.value.outlet))}(i),i}))}processSegment(t,n,r,o,i){return Ce(n).pipe(In(s=>this.processSegmentAgainstRoute(s._injector??t,s,r,o,i)),bn(s=>!!s),Sn(s=>{if(dd(s))return OD(r,o,i)?M([]):M(null);throw s}))}processSegmentAgainstRoute(t,n,r,o,i){if(n.redirectTo||!PD(n,r,o,i))return M(null);let s;if("**"===n.path){const a=o.length>0?eD(o).parameters:{},u=VD(r)+o.length;s=M({snapshot:new ea(o,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,BD(n),mt(n),n.component??n._loadedComponent??null,n,jD(r),u,HD(n),u),consumedSegments:[],remainingSegments:[]})}else s=ND(r,n,o,t).pipe(H(({matched:a,consumedSegments:u,remainingSegments:l,parameters:c})=>{if(!a)return null;const d=VD(r)+u.length;return{snapshot:new ea(u,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,BD(n),mt(n),n.component??n._loadedComponent??null,n,jD(r),d,HD(n),d),consumedSegments:u,remainingSegments:l}}));return s.pipe($t(a=>{if(null===a)return M(null);const{snapshot:u,consumedSegments:l,remainingSegments:c}=a;t=n._injector??t;const d=n._loadedInjector??t,f=function IP(e){return e.children?e.children:e.loadChildren?e._loadedRoutes:[]}(n),{segmentGroup:h,slicedSegments:p}=oa(r,l,c,f.filter(m=>void 0===m.redirectTo),this.relativeLinkResolution);if(0===p.length&&h.hasChildren())return this.processChildren(d,f,h).pipe(H(m=>null===m?null:[new un(u,m)]));if(0===f.length&&0===p.length)return M([new un(u,[])]);const g=mt(n)===i;return this.processSegment(d,f,h,p,g?$:i).pipe(H(m=>null===m?null:[new un(u,m)]))}))}}function SP(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function LD(e){const t=[],n=new Set;for(const r of e){if(!SP(r)){t.push(r);continue}const o=t.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):t.push(r)}for(const r of n){const o=LD(r.children);t.push(new un(r.value,o))}return t.filter(r=>!n.has(r))}function jD(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function VD(e){let t=e,n=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift??0;return n-1}function BD(e){return e.data||{}}function HD(e){return e.resolve||{}}function UD(e){return"string"==typeof e.title||null===e.title}function pd(e){return $t(t=>{const n=e(t);return n?Ce(n).pipe(H(()=>t)):M(t)})}let zD=(()=>{class e{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===$);return r}getResolvedTitleForRoute(n){return n.data[Jo]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:function(){return de(GD)},providedIn:"root"}),e})(),GD=(()=>{class e extends zD{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(n){return new(n||e)(b(Hv))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class OP{}class kP extends class FP{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}{}const la=new x("",{providedIn:"root",factory:()=>({})}),gd=new x("ROUTES");let md=(()=>{class e{constructor(n,r){this.injector=n,this.compiler=r,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return M(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=Mn(n.loadComponent()).pipe(je(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),qc(()=>{this.componentLoaders.delete(n)})),o=new Kv(r,()=>new xt).pipe(zc());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return M({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(H(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let u,l,c=!1;Array.isArray(a)?l=a:(u=a.create(n).injector,l=Xv(u.get(gd,[],A.Self|A.Optional)));return{routes:l.map(cd),injector:u}}),qc(()=>{this.childrenLoaders.delete(r)})),s=new Kv(i,()=>new xt).pipe(zc());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return Mn(n()).pipe(xe(r=>r instanceof Fm||Array.isArray(r)?M(r):Ce(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)(b(ft),b(rc))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class jP{}class VP{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}}function $P(e){throw e}function BP(e,t,n){return t.parse("/")}const HP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},UP={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function WD(){const e=de(sD),t=de(ii),n=de(Dc),r=de(ft),o=de(rc),i=de(gd,{optional:!0})??[],s=de(la,{optional:!0})??{},a=de(GD),u=de(zD,{optional:!0}),l=de(jP,{optional:!0}),c=de(OP,{optional:!0}),d=new Ne(null,e,t,n,r,o,Xv(i));return l&&(d.urlHandlingStrategy=l),c&&(d.routeReuseStrategy=c),d.titleStrategy=u??a,function zP(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy),e.canceledNavigationResolution&&(t.canceledNavigationResolution=e.canceledNavigationResolution)}(s,d),d}let Ne=(()=>{class e{constructor(n,r,o,i,s,a,u){this.rootComponentType=n,this.urlSerializer=r,this.rootContexts=o,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new xt,this.errorHandler=$P,this.malformedUriErrorHandler=BP,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>M(void 0),this.urlHandlingStrategy=new VP,this.routeReuseStrategy=new kP,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(md),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new IN(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new bN(f)),this.ngModule=s.get(zn),this.console=s.get(hT);const d=s.get(Ie);this.isNgZoneEnabled=d instanceof Ie&&Ie.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=function KR(){return new Wn(new B([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=wD(this.currentUrlTree,this.rootComponentType),this.transitions=new At({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(n){const r=this.events;return n.pipe(sn(o=>0!==o.id),H(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),$t(o=>{let i=!1,s=!1;return M(o).pipe(je(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),$t(a=>{const u=this.browserUrlTree.toString(),l=!this.navigated||a.extractedUrl.toString()!==u||u!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||l)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return KD(a.source)&&(this.browserUrlTree=a.extractedUrl),M(a).pipe($t(d=>{const f=this.transitions.getValue();return r.next(new ed(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions.getValue()?Ut:Promise.resolve(d)}),function DP(e,t,n,r){return $t(o=>function yP(e,t,n,r,o){return new vP(e,t,n,r,o).apply()}(e,t,n,o.extractedUrl,r).pipe(H(i=>({...o,urlAfterRedirects:i}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),je(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},o.urlAfterRedirects=d.urlAfterRedirects}),function TP(e,t,n,r,o,i){return xe(s=>function _P(e,t,n,r,o,i,s="emptyOnly",a="legacy"){return new EP(e,t,n,r,o,s,a,i).recognize().pipe($t(u=>null===u?function CP(e){return new ge(t=>t.error(e))}(new wP):M(u)))}(e,t,n,s.urlAfterRedirects,r.serialize(s.urlAfterRedirects),r,o,i).pipe(H(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),je(d=>{if(o.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const h=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(h,d)}this.browserUrlTree=d.urlAfterRedirects}const f=new DN(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);r.next(f)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:h,source:p,restoredState:g,extras:m}=a,v=new ed(f,this.serializeUrl(h),p,g);r.next(v);const w=wD(h,this.rootComponentType).snapshot;return M(o={...a,targetSnapshot:w,urlAfterRedirects:h,extras:{...m,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),Ut}),je(a=>{const u=new wN(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(u)}),H(a=>o={...a,guards:zN(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function tP(e,t){return xe(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?M({...n,guardsResult:!0}):function nP(e,t,n,r){return Ce(e).pipe(xe(o=>function uP(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?M(i.map(a=>{const u=si(t)??o,l=zr(a,u);return Mn(function JN(e){return e&&li(e.canDeactivate)}(l)?l.canDeactivate(e,t,n,r):u.runInContext(()=>l(e,t,n,r))).pipe(bn())})).pipe(Gr()):M(!0)}(o.component,o.route,n,t,r)),bn(o=>!0!==o,!0))}(s,r,o,e).pipe(xe(a=>a&&function KN(e){return"boolean"==typeof e}(a)?function rP(e,t,n,r){return Ce(t).pipe(In(o=>Uc(function iP(e,t){return null!==e&&t&&t(new SN(e)),M(!0)}(o.route.parent,r),function oP(e,t){return null!==e&&t&&t(new TN(e)),M(!0)}(o.route,r),function aP(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function GN(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>Wv(()=>M(s.guards.map(u=>{const l=si(s.node)??n,c=zr(u,l);return Mn(function YN(e){return e&&li(e.canActivateChild)}(c)?c.canActivateChild(r,e):l.runInContext(()=>c(r,e))).pipe(bn())})).pipe(Gr())));return M(i).pipe(Gr())}(e,o.path,n),function sP(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return M(!0);const o=r.map(i=>Wv(()=>{const s=si(t)??n,a=zr(i,s);return Mn(function QN(e){return e&&li(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(bn())}));return M(o).pipe(Gr())}(e,o.route,n))),bn(o=>!0!==o,!0))}(r,i,e,t):M(a)),H(a=>({...n,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),je(a=>{if(o.guardsResult=a.guardsResult,Zn(a.guardsResult))throw bD(0,a.guardsResult);const u=new CN(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(u)}),sn(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),pd(a=>{if(a.guards.canActivateChecks.length)return M(a).pipe(je(u=>{const l=new _N(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}),$t(u=>{let l=!1;return M(u).pipe(function AP(e,t){return xe(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return M(n);let i=0;return Ce(o).pipe(In(s=>function xP(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!UD(o)&&(i[Jo]=o.title),function RP(e,t,n,r){const o=function NP(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return M({});const i={};return Ce(o).pipe(xe(s=>function PP(e,t,n,r){const o=si(t)??r,i=zr(e,o);return Mn(i.resolve?i.resolve(t,n):o.runInContext(()=>i(t,n)))}(e[s],t,n,r).pipe(bn(),je(a=>{i[s]=a}))),Gc(1),function zR(e){return H(()=>e)}(i),Sn(s=>dd(s)?Ut:Qo(s)))}(i,e,t,r).pipe(H(s=>(e._resolvedData=s,e.data=CD(e,n).resolve,o&&UD(o)&&(e.data[Jo]=o.title),null)))}(s.route,r,e,t)),je(()=>i++),Gc(1),xe(s=>i===o.length?M(n):Ut))})}(this.paramsInheritanceStrategy,this.ngModule.injector),je({next:()=>l=!0,complete:()=>{l||(this.restoreHistory(u),this.cancelNavigationTransition(u,"",2))}}))}),je(u=>{const l=new EN(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}))}),pd(a=>{const u=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(je(d=>{l.component=d}),H(()=>{})));for(const d of l.children)c.push(...u(d));return c};return Gv(u(a.targetSnapshot.root)).pipe(qs(),Yo(1))}),pd(()=>this.afterPreactivation()),H(a=>{const u=function PN(e,t,n){const r=oi(e,t._root,n?n._root:void 0);return new DD(r,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return o={...a,targetRouterState:u}}),je(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((e,t,n)=>H(r=>(new UN(t,r.targetRouterState,r.currentRouterState,n).activate(e),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),je({next(){i=!0},complete(){i=!0}}),qc(()=>{i||s||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),Sn(a=>{if(s=!0,MD(a)){SD(a)||(this.navigated=!0,this.restoreHistory(o,!0));const u=new Xs(o.id,this.serializeUrl(o.extractedUrl),a.message,a.cancellationCode);if(r.next(u),SD(a)){const l=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),c={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||KD(o.source)};this.scheduleNavigation(l,"imperative",null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}else o.resolve(!1)}else{this.restoreHistory(o,!0);const u=new mD(o.id,this.serializeUrl(o.extractedUrl),a,o.targetSnapshot??void 0);r.next(u);try{o.resolve(this.errorHandler(a))}catch(l){o.reject(l)}}return Ut}))}))}resetRootComponentType(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}setTransition(n){this.transitions.next({...this.transitions.value,...n})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{const o={replaceUrl:!0},i=n.state?.navigationId?n.state:null;if(i){const a={...i};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}const s=this.parseUrl(n.url);this.scheduleNavigation(s,r,i,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(n){this.events.next(n)}resetConfig(n){this.config=n.map(cd),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,l=o||this.routerState.root,c=u?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...i};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=i||null}return null!==d&&(d=this.removeEmptyProps(d)),hN(l,this.currentUrlTree,n,d,c??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=Zn(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,r)}navigate(n,r={skipLocationChange:!1}){return function GP(e){for(let t=0;t{const i=n[o];return null!=i&&(r[o]=i),r},{})}processNavigations(){this.navigations.subscribe(n=>{this.navigated=!0,this.lastSuccessfulId=n.id,this.currentPageId=n.targetPageId,this.events.next(new Qn(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),n.resolve(!0)},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,u,l;s?(a=s.resolve,u=s.reject,l=s.promise):l=new Promise((f,h)=>{a=f,u=h});const c=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),d=o&&o.\u0275routerPageId?o.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:c,targetPageId:d,source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:i,resolve:a,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n),i={...r.extras.state,...this.generateNgRouterState(r.id,r.targetPageId)};this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl?this.location.replaceState(o,"",i):this.location.go(o,"",i)}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===o?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===o&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(n,r,o){const i=new Xs(n.id,this.serializeUrl(n.extractedUrl),r,o);this.triggerEvent(i),n.resolve(!1)}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){Yu()},e.\u0275prov=P({token:e,factory:function(){return WD()},providedIn:"root"}),e})();function KD(e){return"imperative"!==e}let da=(()=>{class e{constructor(n,r,o){this.router=n,this.route=r,this.locationStrategy=o,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new xt,this.subscription=n.events.subscribe(i=>{i instanceof Qn&&this.updateTargetUrlAndHref()})}set preserveFragment(n){this._preserveFragment=Vr(n)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(n){this._skipLocationChange=Vr(n)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(n){this._replaceUrl=Vr(n)}get replaceUrl(){return this._replaceUrl}set routerLink(n){this.commands=null!=n?Array.isArray(n)?n:[n]:null}ngOnChanges(n){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(n,r,o,i,s){return!!(0!==n||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return e.\u0275fac=function(n){return new(n||e)(I(Ne),I(Yn),I(qn))},e.\u0275dir=Pe({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(n,r){1&n&&No("click",function(i){return r.onClick(i.button,i.ctrlKey,i.shiftKey,i.altKey,i.metaKey)}),2&n&&_l("target",r.target)("href",r.href,ku)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[Ln]}),e})();class ZD{}let KP=(()=>{class e{constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(sn(n=>n instanceof Qn),In(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=ys(i.providers,n,`Route: ${i.path}`));const s=i._injector??n,a=i._loadedInjector??s;i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent?o.push(this.preloadConfig(s,i)):(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return Ce(o).pipe(Xn())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):M(null);const i=o.pipe(xe(s=>null===s?M(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?Ce([i,this.loader.loadComponent(r)]).pipe(Xn()):i})}}return e.\u0275fac=function(n){return new(n||e)(b(Ne),b(rc),b(mn),b(ZD),b(md))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const vd=new x("");let QD=(()=>{class e{constructor(n,r,o={}){this.router=n,this.viewportScroller=r,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(n=>{n instanceof ed?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Qn&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.router.parseUrl(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(n=>{n instanceof yD&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.router.triggerEvent(new yD(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(n){Yu()},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();function ZP(e,...t){return[Dd(e),{provide:Yn,useFactory:YD,deps:[Ne]},{provide:nc,multi:!0,useFactory:JD},t.map(n=>n.\u0275providers)]}function YD(e){return e.routerState.root}function qr(e,t){return{\u0275kind:e,\u0275providers:t}}function Dd(e){return[{provide:gd,multi:!0,useValue:e}]}function JD(){const e=de(ft);return t=>{const n=e.get(bs);if(t!==n.components[0])return;const r=e.get(Ne),o=e.get(XD);1===e.get(wd)&&r.initialNavigation(),e.get(ew,null,A.Optional)?.setUpPreloading(),e.get(vd,null,A.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.unsubscribe())}}const XD=new x("",{factory:()=>new xt}),wd=new x("",{providedIn:"root",factory:()=>1});const ew=new x("");function XP(e){return qr(0,[{provide:ew,useExisting:KP},{provide:ZD,useExisting:e}])}const tw=new x("ROUTER_FORROOT_GUARD"),eO=[Dc,{provide:sD,useClass:Kc},{provide:Ne,useFactory:WD},ii,{provide:Yn,useFactory:YD,deps:[Ne]},md];function tO(){return new Ry("Router",Ne)}let nw=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[eO,[],Dd(n),{provide:tw,useFactory:iO,deps:[[Ne,new mo,new yo]]},{provide:la,useValue:r||{}},r?.useHash?{provide:qn,useClass:tA}:{provide:qn,useClass:nv},{provide:vd,useFactory:()=>{const e=de(Ne),t=de(Cx),n=de(la);return n.scrollOffset&&t.setOffset(n.scrollOffset),new QD(e,t,n)}},r?.preloadingStrategy?XP(r.preloadingStrategy).\u0275providers:[],{provide:Ry,multi:!0,useFactory:tO},r?.initialNavigation?sO(r):[],[{provide:rw,useFactory:JD},{provide:nc,multi:!0,useExisting:rw}]]}}static forChild(n){return{ngModule:e,providers:[Dd(n)]}}}return e.\u0275fac=function(n){return new(n||e)(b(tw,8))},e.\u0275mod=qt({type:e}),e.\u0275inj=Nt({imports:[ud]}),e})();function iO(e){return"guarded"}function sO(e){return["disabled"===e.initialNavigation?qr(3,[{provide:Cs,multi:!0,useFactory:()=>{const t=de(Ne);return()=>{t.setUpLocationChangeListener()}}},{provide:wd,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?qr(2,[{provide:wd,useValue:0},{provide:Cs,multi:!0,deps:[ft],useFactory:t=>{const n=t.get(XT,Promise.resolve());let r=!1;return()=>n.then(()=>new Promise(i=>{const s=t.get(Ne),a=t.get(XD);(function o(i){t.get(Ne).events.pipe(sn(a=>a instanceof Qn||a instanceof Xs||a instanceof mD),H(a=>a instanceof Qn||a instanceof Xs&&(0===a.code||1===a.code)&&null),sn(a=>null!==a),Yo(1)).subscribe(()=>{i()})})(()=>{i(!0),r=!0}),s.afterPreactivation=()=>(i(!0),r||a.closed?M(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const rw=new x(""),uO=[];let lO=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=qt({type:e}),e.\u0275inj=Nt({imports:[nw.forRoot(uO),nw]}),e})(),cO=(()=>{class e{constructor(){this.title="DrumsPatternLibrary"}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ke({type:e,selectors:[["app-root"]],decls:35,vars:0,consts:[[1,"flex","main-container"],[1,"flex","column","left-menu"],[1,"header"],[1,"flex","menu"],["routerLink","/techno",1,"button"],["routerLink","/metal",1,"button"],["routerLink","/rock",1,"button"],["routerLink","/rock-variation",1,"button"],["routerLink","/half-time-groove",1,"button"],["routerLink","/ebm",1,"button"],["routerLink","/gabber",1,"button"],["routerLink","/drum-n-bass",1,"button"],[1,"content"]],template:function(n,r){1&n&&(q(0,"div",0)(1,"div",1)(2,"div",2),oe(3," DRUMS"),fe(4,"br"),oe(5," PATTERN"),fe(6,"br"),oe(7," LIBRARY"),Z(),q(8,"div",3)(9,"a",4),oe(10,"Techno"),Z(),q(11,"a",5),oe(12,"Metal"),Z(),q(13,"a",6),oe(14,"Rock"),Z(),q(15,"a",7),oe(16,"Rock variation"),Z(),q(17,"a",8),oe(18,"Half time groove"),Z(),q(19,"a",9),oe(20,"EBM"),Z(),q(21,"a",10),oe(22,"Gabber"),Z(),q(23,"a",11),oe(24,"Drum & Bass"),Z(),q(25,"div"),oe(26,"Acid"),Z(),q(27,"div"),oe(28,"Drum 'n Bass"),Z(),q(29,"div"),oe(30,"Dub"),Z()(),q(31,"div"),oe(32,"Babali - 2023"),Z()(),q(33,"div",12),fe(34,"router-outlet"),Z()())},dependencies:[ad,da],styles:[".flex[_ngcontent-%COMP%]{display:flex;height:100%}.menu[_ngcontent-%COMP%]{flex-direction:column;justify-content:center;align-content:center;text-align:right}.content[_ngcontent-%COMP%]{width:100%}.header[_ngcontent-%COMP%]{width:140px;font-size:30px}.column[_ngcontent-%COMP%]{flex-direction:column}.left-menu[_ngcontent-%COMP%]{border-right:solid 1px black}"]}),e})();class ow{constructor(t,n,r){this.name=t,this.bpm=n,this.tracks=r}}class iw{constructor(t,n,r){this.name=t,this.fileName=n,this.steps=r}}class Cd{static toBeat(t){let n=t.tracks.map(r=>Cd.toTrack(r));return new ow(t.name,t.bpm,n)}static toTrack(t){let n=t.steps.map(r=>r.trim()).map(r=>Boolean(r));return new iw(t.name,t.fileName,n)}}class sw{}class aw{}class ln{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(n=>{let r=t[n];const o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(o,r),this.maybeSetNormalizedName(n,o))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof ln?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new ln;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof ln?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=t.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class dO{encodeKey(t){return uw(t)}encodeValue(t){return uw(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const hO=/%(\d[a-f0-9])/gi,pO={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function uw(e){return encodeURIComponent(e).replace(hO,(t,n)=>pO[n]??t)}function pa(e){return`${e}`}class Tn{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new dO,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function fO(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],u=n.get(s)||[];u.push(a),n.set(s,u)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(pa):[pa(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new Tn({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(pa(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(pa(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class gO{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function lw(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function cw(e){return typeof Blob<"u"&&e instanceof Blob}function dw(e){return typeof FormData<"u"&&e instanceof FormData}class di{constructor(t,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function mO(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new ln),this.context||(this.context=new gO),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":ad.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),l)),new di(n,r,i,{params:l,headers:u,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var we=(()=>((we=we||{})[we.Sent=0]="Sent",we[we.UploadProgress=1]="UploadProgress",we[we.ResponseHeader=2]="ResponseHeader",we[we.DownloadProgress=3]="DownloadProgress",we[we.Response=4]="Response",we[we.User=5]="User",we))();class _d{constructor(t,n=200,r="OK"){this.headers=t.headers||new ln,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Ed extends _d{constructor(t={}){super(t),this.type=we.ResponseHeader}clone(t={}){return new Ed({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class ga extends _d{constructor(t={}){super(t),this.type=we.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new ga({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class fw extends _d{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function bd(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let hw=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof di)i=n;else{let u,l;u=o.headers instanceof ln?o.headers:new ln(o.headers),o.params&&(l=o.params instanceof Tn?o.params:new Tn({fromObject:o.params})),i=new di(n,r,void 0!==o.body?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=M(i).pipe(In(u=>this.handler.handle(u)));if(n instanceof di||"events"===o.observe)return s;const a=s.pipe(sn(u=>u instanceof ga));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(H(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return a.pipe(H(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return a.pipe(H(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return a.pipe(H(u=>u.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new Tn).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,bd(o,r))}post(n,r,o={}){return this.request("POST",n,bd(o,r))}put(n,r,o={}){return this.request("PUT",n,bd(o,r))}}return e.\u0275fac=function(n){return new(n||e)(b(sw))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();class pw{constructor(t,n){this.next=t,this.interceptor=n}handle(t){return this.interceptor.intercept(t,this.next)}}const gw=new x("HTTP_INTERCEPTORS");let vO=(()=>{class e{intercept(n,r){return r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const DO=/^\)\]\}',?\n/;let mw=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ge(r=>{const o=this.xhrFactory.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((h,p)=>o.setRequestHeader(h,p.join(","))),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const h=n.detectContentTypeHeader();null!==h&&o.setRequestHeader("Content-Type",h)}if(n.responseType){const h=n.responseType.toLowerCase();o.responseType="json"!==h?h:"text"}const i=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=o.statusText||"OK",p=new ln(o.getAllResponseHeaders()),g=function wO(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(o)||n.url;return s=new Ed({headers:p,status:o.status,statusText:h,url:g}),s},u=()=>{let{headers:h,status:p,statusText:g,url:m}=a(),v=null;204!==p&&(v=typeof o.response>"u"?o.responseText:o.response),0===p&&(p=v?200:0);let w=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof v){const y=v;v=v.replace(DO,"");try{v=""!==v?JSON.parse(v):null}catch(S){v=y,w&&(w=!1,v={error:S,text:v})}}w?(r.next(new ga({body:v,headers:h,status:p,statusText:g,url:m||void 0})),r.complete()):r.error(new fw({error:v,headers:h,status:p,statusText:g,url:m||void 0}))},l=h=>{const{url:p}=a(),g=new fw({error:h,status:o.status||0,statusText:o.statusText||"Unknown Error",url:p||void 0});r.error(g)};let c=!1;const d=h=>{c||(r.next(a()),c=!0);let p={type:we.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===n.responseType&&!!o.responseText&&(p.partialText=o.responseText),r.next(p)},f=h=>{let p={type:we.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return o.addEventListener("load",u),o.addEventListener("error",l),o.addEventListener("timeout",l),o.addEventListener("abort",l),n.reportProgress&&(o.addEventListener("progress",d),null!==i&&o.upload&&o.upload.addEventListener("progress",f)),o.send(i),r.next({type:we.Sent}),()=>{o.removeEventListener("error",l),o.removeEventListener("abort",l),o.removeEventListener("load",u),o.removeEventListener("timeout",l),n.reportProgress&&(o.removeEventListener("progress",d),null!==i&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return e.\u0275fac=function(n){return new(n||e)(b(_v))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const Id=new x("XSRF_COOKIE_NAME"),Sd=new x("XSRF_HEADER_NAME");class yw{}let CO=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=fv(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(b(We),b(tc),b(Id))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})(),Md=(()=>{class e{constructor(n,r){this.tokenService=n,this.headerName=r}intercept(n,r){const o=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||o.startsWith("http://")||o.startsWith("https://"))return r.handle(n);const i=this.tokenService.getToken();return null!==i&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,i)})),r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(b(yw),b(Sd))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})(),_O=(()=>{class e{constructor(n,r){this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=this.injector.get(gw,[]);this.chain=r.reduceRight((o,i)=>new pw(o,i),this.backend)}return this.chain.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(b(aw),b(ft))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})(),EO=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:Md,useClass:vO}]}}static withOptions(n={}){return{ngModule:e,providers:[n.cookieName?{provide:Id,useValue:n.cookieName}:[],n.headerName?{provide:Sd,useValue:n.headerName}:[]]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=qt({type:e}),e.\u0275inj=Nt({providers:[Md,{provide:gw,useExisting:Md,multi:!0},{provide:yw,useClass:CO},{provide:Id,useValue:"XSRF-TOKEN"},{provide:Sd,useValue:"X-XSRF-TOKEN"}]}),e})(),bO=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=qt({type:e}),e.\u0275inj=Nt({providers:[hw,{provide:sw,useClass:_O},mw,{provide:aw,useExisting:mw}],imports:[EO.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),e})(),IO=(()=>{class e{constructor(n){this.http=n,this.apiUrl="assets/beats/",this.fileExtension=".json"}getData(n){return this.http.get(this.apiUrl+n+this.fileExtension)}}return e.\u0275fac=function(n){return new(n||e)(b(hw))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function vw(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)}class MO{constructor(t){this.fileName=t}}let TO=(()=>{class e{constructor(){this.bpm=120,this.isPlaying=!1,this.samples=[],this.tracks=[],this.ms=this.getMillisStepFromBpm(),this.audioCtx=new AudioContext,this.index=0,this.scheduler()}playPause(){this.isPlaying=!this.isPlaying}scheduler(){this.isPlaying&&(this.playSamples(this.index),this.index<15?this.index++:this.index=0),setTimeout(()=>{this.scheduler()},this.ms)}getMillisStepFromBpm(){let r=6e4/this.bpm/4;return r=Math.min(r,1e3),r=Math.max(r,10),r}playSamples(n){this.tracks.forEach(r=>{r.steps[n]&&this.playSound(this.samples.find(o=>o.fileName===r.fileName).sample)})}playSound(n){let r=this.audioCtx.createBufferSource();r.buffer=n,r.connect(this.audioCtx.destination),r.start(0)}reset(){this.isPlaying=!1,this.index=0}setBpm(n){this.bpm=n,this.ms=this.getMillisStepFromBpm()}setTracks(n){this.tracks=n;let r=n.map(o=>o.fileName);this.loadTracks(r)}loadTracks(n){n.forEach(r=>this.samples.push(new MO(r))),this.samples.forEach(r=>{this.getAudioBuffer(r.fileName).then(o=>{r.sample=o})})}getAudioBuffer(n){var r=this;return function SO(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(u){vw(i,r,o,s,a,"next",u)}function a(u){vw(i,r,o,s,a,"throw",u)}s(void 0)})}}(function*(){let o=new Request(`assets/sounds/${n}`);const s=yield(yield fetch(o)).arrayBuffer();return yield r.audioCtx.decodeAudioData(s).then(a=>a)})()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function AO(e,t){if(1&e&&fe(0,"div",4),2&e){const n=t.$implicit,r=t.index,o=Ml();Al("active",n)("current",r===o.currentStepIndex)}}let xO=(()=>{class e{constructor(){this.track=new iw("","",[]),this.currentStepIndex=0,this.steps=[],this.name=""}ngOnInit(){this.name=this.track.name,this.steps=this.track.steps}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ke({type:e,selectors:[["app-track"]],inputs:{track:"track",currentStepIndex:["current-step-index","currentStepIndex"]},decls:6,vars:2,consts:[["id","track-container"],[1,"track-name"],["id","track"],["class","step",3,"active","current",4,"ngFor","ngForOf"],[1,"step"]],template:function(n,r){1&n&&(q(0,"div",0)(1,"div",1)(2,"div"),oe(3),Z()(),q(4,"div",2),El(5,AO,1,4,"div",3),Z()()),2&n&&(vn(3),Oo(r.name),vn(2),Ro("ngForOf",r.steps))},dependencies:[Ac],styles:["#track-container[_ngcontent-%COMP%]{display:flex;margin:4px 0 0}#track[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(16,1fr);grid-template-rows:repeat(1,1fr);gap:4px}.step[_ngcontent-%COMP%]{height:40px;width:40px;background-color:#fff;border-radius:4px;cursor:pointer;border:solid 1px black}.active[_ngcontent-%COMP%]{background-color:#003b8f}.track-name[_ngcontent-%COMP%]{text-align:end;height:40px;width:50px;min-width:50px;margin-right:10px}.current[_ngcontent-%COMP%]{filter:invert(15%) saturate(10%)}"]}),e})();function RO(e,t){if(1&e&&(q(0,"div"),fe(1,"app-track",7),Z()),2&e){const n=t.$implicit,r=Ml();vn(1),Ro("track",n)("current-step-index",r.soundService.index)}}let Wr=(()=>{class e{constructor(n,r){this.dataService=n,this.soundService=r,this.fileName="",this.beat=new ow("",120,[])}ngOnInit(){this.dataService.getData(this.fileName).subscribe(n=>{this.beat=Cd.toBeat(n),this.soundService.reset(),this.soundService.setBpm(this.beat.bpm),this.soundService.setTracks(this.beat.tracks)})}toggleIsPlaying(){this.soundService.playPause()}}return e.\u0275fac=function(n){return new(n||e)(I(IO),I(TO))},e.\u0275cmp=Ke({type:e,selectors:[["sequencer"]],inputs:{fileName:"fileName"},decls:14,vars:6,consts:[[1,"sequencer"],[1,"sequencer-header"],[1,"space"],[1,"play-pause-button",3,"click"],[1,"beat-name"],[1,"sequencer-grid"],[4,"ngFor","ngForOf"],[3,"track","current-step-index"]],template:function(n,r){1&n&&(q(0,"div",0)(1,"div",1),fe(2,"div",2),q(3,"button",3),No("click",function(){return r.toggleIsPlaying()}),oe(4),Z(),fe(5,"div",2),q(6,"div",4),oe(7),function Zm(e,t){const n=z();let r;const o=e+22;n.firstCreatePass?(r=function SM(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=kn(r.type)),s=lt(I);try{const a=Pi(!1),u=i();return Pi(a),function hI(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,D(),o,u),u}finally{lt(s)}}(8,"titlecase"),Z(),fe(9,"div",2),q(10,"div",4),oe(11),Z()(),q(12,"div",5),El(13,RO,2,2,"div",6),Z()()),2&n&&(vn(4),Oo(r.soundService.isPlaying?"\u23f8":"\u25b6"),vn(3),Oo(Qm(8,4,r.beat.name)),vn(4),fs("",r.beat.bpm," bpm"),vn(2),Ro("ngForOf",r.beat.tracks))},dependencies:[Ac,xO,vv],styles:[".play-pause-button[_ngcontent-%COMP%]{height:40px;width:40px;min-width:40px;background-color:#000;color:#fff;border-radius:4px;cursor:pointer;border:solid 2px black;font-size:20px}.sequencer-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column}.sequencer-header[_ngcontent-%COMP%]{display:flex}.space[_ngcontent-%COMP%]{width:60px;min-width:60px}.sequencer[_ngcontent-%COMP%]{display:flex;flex-direction:column}.beat-name[_ngcontent-%COMP%]{height:40px;text-align:center;vertical-align:middle;width:120px;min-width:120px;font-size:20px}"]}),e})();const NO=[{path:"techno",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ke({type:e,selectors:[["app-techno"]],decls:9,vars:0,consts:[["href","https://www.studiobrootle.com/techno-drum-patterns-and-drum-programming-tips/"],["href","https://www.aulart.com/blog/create-a-909-dark-techno-pattern-2/"],["fileName","techno"]],template:function(n,r){1&n&&(q(0,"h1"),oe(1,"Techno drums patterns"),Z(),q(2,"a",0),oe(3,"Techno drum patterns"),Z(),fe(4,"br"),q(5,"a",1),oe(6,"Dark techno pattern"),Z(),fe(7,"br")(8,"sequencer",2))},dependencies:[Wr]}),e})()},{path:"metal",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ke({type:e,selectors:[["app-metal"]],decls:3,vars:0,consts:[["fileName","metal"]],template:function(n,r){1&n&&(q(0,"h1"),oe(1,"Metal drums patterns"),Z(),fe(2,"sequencer",0))},dependencies:[Wr]}),e})()},{path:"rock",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ke({type:e,selectors:[["app-rock"]],decls:1,vars:0,consts:[["fileName","rock-beat"]],template:function(n,r){1&n&&fe(0,"sequencer",0)},dependencies:[Wr]}),e})()},{path:"rock-variation",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ke({type:e,selectors:[["app-rock-variation"]],decls:1,vars:0,consts:[["fileName","rock-beat-variation"]],template:function(n,r){1&n&&fe(0,"sequencer",0)},dependencies:[Wr]}),e})()},{path:"half-time-groove",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ke({type:e,selectors:[["app-half-time-groove"]],decls:1,vars:0,consts:[["fileName","half-time-groove"]],template:function(n,r){1&n&&fe(0,"sequencer",0)},dependencies:[Wr]}),e})()},{path:"drum-n-bass",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ke({type:e,selectors:[["app-drum-n-bass"]],decls:1,vars:0,consts:[["fileName","drum-n-bass"]],template:function(n,r){1&n&&fe(0,"sequencer",0)},dependencies:[Wr]}),e})()},{path:"gabber",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ke({type:e,selectors:[["app-gabber"]],decls:3,vars:0,consts:[["width","560","height","315","src","https://www.youtube.com/embed/Vz9OhBrarAE?si=XLq2pZZjkxNTfCt-","title","YouTube video player","frameborder","0","allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share","allowfullscreen",""],["width","560","height","315","src","https://www.youtube.com/embed/MqnoSMk2qPc?si=XNyYReufCF_-lUqS","title","YouTube video player","frameborder","0","allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share","allowfullscreen",""]],template:function(n,r){1&n&&fe(0,"iframe",0)(1,"br")(2,"iframe",1)}}),e})()},{path:"ebm",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ke({type:e,selectors:[["app-ebm"]],decls:6,vars:0,consts:[["width","560","height","315","src","https://www.youtube.com/embed/JtvyXf0Q2ug?si=g2pHeC_EU_2wjSO0","title","YouTube video player","frameborder","0","allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share","allowfullscreen",""],["width","560","height","315","src","https://www.youtube.com/embed/G3qsp8vZn0g?si=BySVdOLEu07nXXSv","title","YouTube video player","frameborder","0","allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share","allowfullscreen",""]],template:function(n,r){1&n&&(q(0,"h1"),oe(1,"EBM Drums Patterns"),Z(),q(2,"div"),fe(3,"iframe",0),Z(),q(4,"div"),fe(5,"iframe",1),Z())}}),e})()}];let PO=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=qt({type:e,bootstrap:[cO]}),e.\u0275inj=Nt({providers:[ZP(NO)],imports:[vR,lO,bO]}),e})();(function NT(){By=!1})(),yR().bootstrapModule(PO).catch(e=>console.error(e))}},ee=>{ee(ee.s=892)}]); \ No newline at end of file +"use strict";(self.webpackChunkDrumsPatternLibrary=self.webpackChunkDrumsPatternLibrary||[]).push([[179],{137:()=>{function ee(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 fi=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 Zr(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class ut{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(ee(r))try{r()}catch(i){t=i instanceof fi?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{Vd(i)}catch(s){t=t??[],s instanceof fi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new fi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Vd(t);else{if(t instanceof ut){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)&&Zr(n,t)}remove(t){const{_finalizers:n}=this;n&&Zr(n,t),t instanceof ut&&t._removeParent(this)}}ut.EMPTY=(()=>{const e=new ut;return e.closed=!0,e})();const Ld=ut.EMPTY;function jd(e){return e instanceof ut||e&&"closed"in e&&ee(e.remove)&&ee(e.add)&&ee(e.unsubscribe)}function Vd(e){ee(e)?e():e.unsubscribe()}const An={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},hi={setTimeout(e,t,...n){const{delegate:r}=hi;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=hi;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function $d(e){hi.setTimeout(()=>{const{onUnhandledError:t}=An;if(!t)throw e;t(e)})}function Bd(){}const Dw=ma("C",void 0,void 0);function ma(e,t,n){return{kind:e,value:t,error:n}}let xn=null;function pi(e){if(An.useDeprecatedSynchronousErrorHandling){const t=!xn;if(t&&(xn={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=xn;if(xn=null,n)throw r}}else e()}class ya extends ut{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,jd(t)&&t.add(this)):this.destination=Sw}static create(t,n,r){return new Qr(t,n,r)}next(t){this.isStopped?Da(function Cw(e){return ma("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Da(function ww(e){return ma("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Da(Dw,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 Ew=Function.prototype.bind;function va(e,t){return Ew.call(e,t)}class bw{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){gi(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){gi(r)}else gi(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){gi(n)}}}class Qr extends ya{constructor(t,n,r){let o;if(super(),ee(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&An.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&va(t.next,i),error:t.error&&va(t.error,i),complete:t.complete&&va(t.complete,i)}):o=t}this.destination=new bw(o)}}function gi(e){An.useDeprecatedSynchronousErrorHandling?function _w(e){An.useDeprecatedSynchronousErrorHandling&&xn&&(xn.errorThrown=!0,xn.error=e)}(e):$d(e)}function Da(e,t){const{onStoppedNotification:n}=An;n&&hi.setTimeout(()=>n(e,t))}const Sw={closed:!0,next:Bd,error:function Iw(e){throw e},complete:Bd},wa="function"==typeof Symbol&&Symbol.observable||"@@observable";function Rn(e){return e}function Hd(e){return 0===e.length?Rn:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let ge=(()=>{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 Aw(e){return e&&e instanceof ya||function Tw(e){return e&&ee(e.next)&&ee(e.error)&&ee(e.complete)}(e)&&jd(e)}(n)?n:new Qr(n,r,o);return pi(()=>{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=Ud(r))((o,i)=>{const s=new Qr({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)}[wa](){return this}pipe(...n){return Hd(n)(this)}toPromise(n){return new(n=Ud(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Ud(e){var t;return null!==(t=e??An.Promise)&&void 0!==t?t:Promise}const xw=Kr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let xt=(()=>{class e extends ge{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new zd(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new xw}next(n){pi(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){pi(()=>{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(){pi(()=>{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?Ld:(this.currentObservers=null,i.push(n),new ut(()=>{this.currentObservers=null,Zr(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new ge;return n.source=this,n}}return e.create=(t,n)=>new zd(t,n),e})();class zd extends xt{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:Ld}}function Gd(e){return ee(e?.lift)}function Me(e){return t=>{if(Gd(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 Te(e,t,n,r,o){return new Rw(e,t,n,r,o)}class Rw extends ya{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 H(e,t){return Me((n,r)=>{let o=0;n.subscribe(Te(r,i=>{r.next(e.call(t,i,o++))}))})}function cn(e){return this instanceof cn?(this.v=e,this):new cn(e)}function Kd(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(h){return new Promise(function(p,g){i.push([f,h,p,g])>1||a(f,h)})})}function a(f,h){try{!function u(f){f.value instanceof cn?Promise.resolve(f.value.v).then(l,c):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function l(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Zd(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 ba(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)})}}}"function"==typeof SuppressedError&&SuppressedError;const Qd=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Yd(e){return ee(e?.then)}function Jd(e){return ee(e[wa])}function Xd(e){return Symbol.asyncIterator&&ee(e?.[Symbol.asyncIterator])}function ef(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 tf=function Xw(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function nf(e){return ee(e?.[tf])}function rf(e){return Kd(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield cn(n.read());if(o)return yield cn(void 0);yield yield cn(r)}}finally{n.releaseLock()}})}function sf(e){return ee(e?.getReader)}function Rt(e){if(e instanceof ge)return e;if(null!=e){if(Jd(e))return function eC(e){return new ge(t=>{const n=e[wa]();if(ee(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Qd(e))return function tC(e){return new ge(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,$d)})}(e);if(Xd(e))return af(e);if(nf(e))return function rC(e){return new ge(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(sf(e))return function oC(e){return af(rf(e))}(e)}throw ef(e)}function af(e){return new ge(t=>{(function iC(e,t){var n,r,o,i;return function qd(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=Zd(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 Ht(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 xe(e,t,n=1/0){return ee(t)?xe((r,o)=>H((i,s)=>t(r,i,o,s))(Rt(e(r,o))),n):("number"==typeof t&&(n=t),Me((r,o)=>function sC(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()},h=g=>l{i&&t.next(g),l++;let m=!1;Rt(n(g,c++)).subscribe(Te(t,v=>{o?.(v),i?h(v):t.next(v)},()=>{m=!0},void 0,()=>{if(m)try{for(l--;u.length&&lp(v)):p(v)}f()}catch(v){t.error(v)}}))};return e.subscribe(Te(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}function er(e=1/0){return xe(Rn,e)}const Ut=new ge(e=>e.complete());function Ia(e){return e[e.length-1]}function Yr(e){return function uC(e){return e&&ee(e.schedule)}(Ia(e))?e.pop():void 0}function uf(e,t=0){return Me((n,r)=>{n.subscribe(Te(r,o=>Ht(r,e,()=>r.next(o),t),()=>Ht(r,e,()=>r.complete(),t),o=>Ht(r,e,()=>r.error(o),t)))})}function lf(e,t=0){return Me((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function cf(e,t){if(!e)throw new Error("Iterable cannot be null");return new ge(n=>{Ht(n,t,()=>{const r=e[Symbol.asyncIterator]();Ht(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Ce(e,t){return t?function mC(e,t){if(null!=e){if(Jd(e))return function dC(e,t){return Rt(e).pipe(lf(t),uf(t))}(e,t);if(Qd(e))return function hC(e,t){return new ge(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(Yd(e))return function fC(e,t){return Rt(e).pipe(lf(t),uf(t))}(e,t);if(Xd(e))return cf(e,t);if(nf(e))return function pC(e,t){return new ge(n=>{let r;return Ht(n,t,()=>{r=e[tf](),Ht(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)}),()=>ee(r?.return)&&r.return()})}(e,t);if(sf(e))return function gC(e,t){return cf(rf(e),t)}(e,t)}throw ef(e)}(e,t):Rt(e)}function Sa(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Qr({next:()=>{r.unsubscribe(),e()}});return t(...n).subscribe(r)}function J(e){for(let t in e)if(e[t]===J)return t;throw Error("Could not find renamed property on target object.")}function X(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(X).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 Ta(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const DC=J({__forward_ref__:J});function Aa(e){return e.__forward_ref__=Aa,e.toString=function(){return X(this())},e}function N(e){return function xa(e){return"function"==typeof e&&e.hasOwnProperty(DC)&&e.__forward_ref__===Aa}(e)?e():e}class E extends Error{constructor(t,n){super(function mi(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,n)),this.code=t}}function F(e){return"string"==typeof e?e:null==e?"":String(e)}function yi(e,t){throw new E(-201,!1)}function et(e,t){null==e&&function K(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function P(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Nt(e){return{providers:e.providers||[],imports:e.imports||[]}}function vi(e){return df(e,Di)||df(e,hf)}function df(e,t){return e.hasOwnProperty(t)?e[t]:null}function ff(e){return e&&(e.hasOwnProperty(Ra)||e.hasOwnProperty(TC))?e[Ra]:null}const Di=J({\u0275prov:J}),Ra=J({\u0275inj:J}),hf=J({ngInjectableDef:J}),TC=J({ngInjectorDef:J});var A=(()=>((A=A||{})[A.Default=0]="Default",A[A.Host=1]="Host",A[A.Self=2]="Self",A[A.SkipSelf=4]="SkipSelf",A[A.Optional=8]="Optional",A))();let Na;function lt(e){const t=Na;return Na=e,t}function pf(e,t,n){const r=vi(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&A.Optional?null:void 0!==t?t:void yi(X(e))}function dn(e){return{toString:e}.toString()}var yt=(()=>((yt=yt||{})[yt.OnPush=0]="OnPush",yt[yt.Default=1]="Default",yt))(),Pt=(()=>{return(e=Pt||(Pt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Pt;var e})();const te=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),tr={},W=[],wi=J({\u0275cmp:J}),Pa=J({\u0275dir:J}),Oa=J({\u0275pipe:J}),gf=J({\u0275mod:J}),Gt=J({\u0275fac:J}),Jr=J({__NG_ELEMENT_ID__:J});let xC=0;function Ve(e){return dn(()=>{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===yt.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||W,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Pt.Emulated,id:"c"+xC++,styles:e.styles||W,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.dependencies,s=e.features;return o.inputs=vf(e.inputs,r),o.outputs=vf(e.outputs),s&&s.forEach(a=>a(o)),o.directiveDefs=i?()=>("function"==typeof i?i():i).map(mf).filter(yf):null,o.pipeDefs=i?()=>("function"==typeof i?i():i).map(Be).filter(yf):null,o})}function mf(e){return Q(e)||$e(e)}function yf(e){return null!==e}function qt(e){return dn(()=>({type:e.type,bootstrap:e.bootstrap||W,declarations:e.declarations||W,imports:e.imports||W,exports:e.exports||W,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function vf(e,t){if(null==e)return tr;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 Pe=Ve;function Ze(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Q(e){return e[wi]||null}function $e(e){return e[Pa]||null}function Be(e){return e[Oa]||null}function tt(e,t){const n=e[gf]||null;if(!n&&!0===t)throw new Error(`Type ${X(e)} does not have '\u0275mod' property.`);return n}const j=11;function Qe(e){return Array.isArray(e)&&"object"==typeof e[1]}function Dt(e){return Array.isArray(e)&&!0===e[1]}function La(e){return 0!=(8&e.flags)}function bi(e){return 2==(2&e.flags)}function Ii(e){return 1==(1&e.flags)}function wt(e){return null!==e.template}function kC(e){return 0!=(256&e[2])}function kn(e,t){return e.hasOwnProperty(Gt)?e[Gt]:null}class VC{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ln(){return Cf}function Cf(e){return e.type.prototype.ngOnChanges&&(e.setInput=BC),$C}function $C(){const e=Ef(this),t=e?.current;if(t){const n=e.previous;if(n===tr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function BC(e,t,n,r){const o=Ef(e)||function HC(e,t){return e[_f]=t}(e,{previous:tr,current:null}),i=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[n],u=s[a];i[a]=new VC(u&&u.currentValue,t,s===tr),e[r]=t}Ln.ngInherit=!0;const _f="__ngSimpleChanges__";function Ef(e){return e[_f]||null}function me(e){for(;Array.isArray(e);)e=e[0];return e}function Si(e,t){return me(t[e])}function rt(e,t){return me(t[e.index])}function Ha(e,t){return e.data[t]}function ot(e,t){const n=t[e];return Qe(n)?n:n[0]}function Mi(e){return 64==(64&e[2])}function fn(e,t){return null==t?null:e[t]}function bf(e){e[18]=0}function Ua(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 O={lFrame:Of(null),bindingsEnabled:!0};function Sf(){return O.bindingsEnabled}function D(){return O.lFrame.lView}function z(){return O.lFrame.tView}function _e(){let e=Mf();for(;null!==e&&64===e.type;)e=e.parent;return e}function Mf(){return O.lFrame.currentTNode}function Ot(e,t){const n=O.lFrame;n.currentTNode=e,n.isParent=t}function za(){return O.lFrame.isParent}function ar(){return O.lFrame.bindingIndex++}function i_(e,t){const n=O.lFrame;n.bindingIndex=n.bindingRootIndex=e,qa(t)}function qa(e){O.lFrame.currentDirectiveIndex=e}function Ka(e){O.lFrame.currentQueryIndex=e}function a_(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Nf(e,t,n){if(n&A.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&A.Host||(o=a_(i),null===o||(i=i[15],10&o.type))););if(null===o)return!1;t=o,e=i}const r=O.lFrame=Pf();return r.currentTNode=t,r.lView=e,!0}function Za(e){const t=Pf(),n=e[1];O.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Pf(){const e=O.lFrame,t=null===e?null:e.child;return null===t?Of(e):t}function Of(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 Ff(){const e=O.lFrame;return O.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const kf=Ff;function Qa(){const e=Ff();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 Ue(){return O.lFrame.selectedIndex}function hn(e){O.lFrame.selectedIndex=e}function ae(){const e=O.lFrame;return Ha(e.tView,e.selectedIndex)}function Ti(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 oo{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Ri(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 Xa=!0;function Pi(e){const t=Xa;return Xa=e,t}let __=0;const Ft={};function so(e,t){const n=tu(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,eu(r.data,e),eu(t,null),eu(r.blueprint,null));const o=Oi(e,t),i=e.injectorIndex;if(Bf(o)){const s=ur(o),a=lr(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 eu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function tu(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Oi(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=Qf(o),null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Fi(e,t,n){!function E_(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Jr)&&(r=n[Jr]),null==r&&(r=n[Jr]=__++);const o=255&r;t.data[e+(o>>5)]|=1<=0?255&t:M_:t}(n);if("function"==typeof i){if(!Nf(t,e,r))return r&A.Host?zf(o,0,r):Gf(t,n,r,o);try{const s=i(r);if(null!=s||r&A.Optional)return s;yi()}finally{kf()}}else if("number"==typeof i){let s=null,a=tu(e,t),u=-1,l=r&A.Host?t[16][6]:null;for((-1===a||r&A.SkipSelf)&&(u=-1===a?Oi(e,t):t[a+8],-1!==u&&Zf(r,!1)?(s=t[1],a=ur(u),t=lr(u,t)):a=-1);-1!==a;){const c=t[1];if(Kf(i,a,c.data)){const d=I_(a,t,n,s,r,l);if(d!==Ft)return d}u=t[a+8],-1!==u&&Zf(r,t[1].data[a+8]===l)&&Kf(i,a,t)?(s=c,a=ur(u),t=lr(u,t)):a=-1}}return o}function I_(e,t,n,r,o,i){const s=t[1],a=s.data[e+8],c=function ki(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 h=r?a:a+c;h=u&&p.type===n)return h}if(o){const h=s[u];if(h&&wt(h)&&h.type===n)return u}return null}(a,s,n,null==r?bi(a)&&Xa:r!=s&&0!=(3&a.type),o&A.Host&&i===a);return null!==c?ao(t,s,c,a):Ft}function ao(e,t,n,r){let o=e[n];const i=t.data;if(function y_(e){return e instanceof oo}(o)){const s=o;s.resolving&&function wC(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new E(-200,`Circular dependency in DI detected for ${e}${n}`)}(function q(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():F(e)}(i[n]));const a=Pi(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?lt(s.injectImpl):null;Nf(e,r,A.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function g_(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=Cf(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&<(u),Pi(a),s.resolving=!1,kf()}}return o}function Kf(e,t,n){return!!(n[t+(e>>5)]&1<{const r=function ru(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(fr)?u[fr]:Object.defineProperty(u,fr,{value:[]})[fr];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 x{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=P({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Zt(e,t){e.forEach(n=>Array.isArray(n)?Zt(n,t):t(n))}function Jf(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Li(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function st(e,t,n){let r=gr(e,t);return r>=0?e[1|r]=n:(r=~r,function P_(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function iu(e,t){const n=gr(e,t);if(n>=0)return e[1|n]}function gr(e,t){return function th(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<((Ye=Ye||{})[Ye.Important=1]="Important",Ye[Ye.DashCase=2]="DashCase",Ye))();const hu=new Map;let uE=0;const gu="__ngContext__";function ke(e,t){Qe(t)?(e[gu]=t[20],function cE(e){hu.set(e[20],e)}(t)):e[gu]=t}function yu(e,t){return undefined(e,t)}function Co(e){const t=e[3];return Dt(t)?t[3]:t}function vu(e){return Eh(e[13])}function Du(e){return Eh(e[4])}function Eh(e){for(;null!==e&&!Dt(e);)e=e[4];return e}function vr(e,t,n,r,o){if(null!=r){let i,s=!1;Dt(r)?i=r:Qe(r)&&(s=!0,r=r[0]);const a=me(r);0===e&&null!==n?null==o?Ah(t,n,a):jn(t,n,a,o||null,!0):1===e&&null!==n?jn(t,n,a,o||null,!0):2===e?function Su(e,t,n){const r=Hi(e,t);r&&function NE(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function FE(e,t,n,r,o){const i=n[7];i!==me(n)&&vr(t,e,r,i,o);for(let a=10;a0&&(e[n-1][4]=r[4]);const i=Li(e,10+t);!function bE(e,t){_o(e,t,t[j],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 Sh(e,t){if(!(128&t[2])){const n=t[j];n.destroyNode&&_o(e,t,n,3,null,null),function ME(e){let t=e[13];if(!t)return Eu(e[1],e);for(;t;){let n=null;if(Qe(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Qe(t)&&Eu(t[1],t),t=t[3];null===t&&(t=e),Qe(t)&&Eu(t[1],t),n=t&&t[4]}t=n}}(t)}}function Eu(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function RE(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[o=l]():r[o=-l].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;i((ye=ye||{})[ye.NONE=0]="NONE",ye[ye.HTML=1]="HTML",ye[ye.STYLE=2]="STYLE",ye[ye.SCRIPT=3]="SCRIPT",ye[ye.URL=4]="URL",ye[ye.RESOURCE_URL=5]="RESOURCE_URL",ye))();function ku(e){const t=function Io(){const e=D();return e&&e[12]}();return t?t.sanitize(ye.URL,e)||"":function Eo(e,t){const n=function qE(e){return e instanceof Hh&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}(e,"URL")?gn(e):function Nu(e){return(e=String(e)).match(QE)?e:"unsafe:"+e}(F(e))}const Lu=new x("ENVIRONMENT_INITIALIZER"),Qh=new x("INJECTOR",-1),Yh=new x("INJECTOR_DEF_TYPES");class Jh{get(t,n=ho){if(n===ho){const r=new Error(`NullInjectorError: No provider for ${X(t)}!`);throw r.name="NullInjectorError",r}return n}}function cb(...e){return{\u0275providers:Xh(0,e)}}function Xh(e,...t){const n=[],r=new Set;let o;return Zt(t,i=>{const s=i;ju(s,n,[],r)&&(o||(o=[]),o.push(s))}),void 0!==o&&ep(o,n),n}function ep(e,t){for(let n=0;n{t.push(i)})}}function ju(e,t,n,r){if(!(e=N(e)))return!1;let o=null,i=ff(e);const s=!i&&Q(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const u=e.ngModule;if(i=ff(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)ju(l,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{Zt(i.imports,c=>{ju(c,t,n,r)&&(l||(l=[]),l.push(c))})}finally{}void 0!==l&&ep(l,t)}if(!a){const l=kn(o)||(()=>new o);t.push({provide:o,useFactory:l,deps:W},{provide:Yh,useValue:o,multi:!0},{provide:Lu,useValue:()=>b(o),multi:!0})}const u=i.providers;null==u||a||Zt(u,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}const db=J({provide:String,useValue:J});function Vu(e){return null!==e&&"object"==typeof e&&db in e}function $n(e){return"function"==typeof e}const $u=new x("Set Injector scope."),Ki={},hb={};let Bu;function Zi(){return void 0===Bu&&(Bu=new Jh),Bu}class mn{}class rp extends mn{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,Uu(t,s=>this.processProvider(s)),this.records.set(Qh,Dr(void 0,this)),o.has("environment")&&this.records.set(mn,Dr(void 0,this));const i=this.records.get($u);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Yh.multi,W,A.Self))}get destroyed(){return this._destroyed}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=mr(this),r=lt(void 0);try{return t()}finally{mr(n),lt(r)}}get(t,n=ho,r=A.Default){this.assertNotDestroyed();const o=mr(this),i=lt(void 0);try{if(!(r&A.SkipSelf)){let a=this.records.get(t);if(void 0===a){const u=function vb(e){return"function"==typeof e||"object"==typeof e&&e instanceof x}(t)&&vi(t);a=u&&this.injectableDefInScope(u)?Dr(Hu(t),Ki):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&A.Self?Zi():this.parent).get(t,n=r&A.Optional&&n===ho?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Vi]=s[Vi]||[]).unshift(X(t)),o)throw s;return function G_(e,t,n,r){const o=e[Vi];throw t[nh]&&o.unshift(t[nh]),e.message=function q_(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=X(t);if(Array.isArray(t))o=t.map(X).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):X(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(B_,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Vi]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{lt(i),mr(o)}}resolveInjectorInitializers(){const t=mr(this),n=lt(void 0);try{const r=this.get(Lu.multi,W,A.Self);for(const o of r)o()}finally{mr(t),lt(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(X(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new E(205,!1)}processProvider(t){let n=$n(t=N(t))?t:N(t&&t.provide);const r=function gb(e){return Vu(e)?Dr(void 0,e.useValue):Dr(function op(e,t,n){let r;if($n(e)){const o=N(e);return kn(o)||Hu(o)}if(Vu(e))r=()=>N(e.useValue);else if(function np(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...uu(e.deps||[]));else if(function tp(e){return!(!e||!e.useExisting)}(e))r=()=>b(N(e.useExisting));else{const o=N(e&&(e.useClass||e.provide));if(!function mb(e){return!!e.deps}(e))return kn(o)||Hu(o);r=()=>new o(...uu(e.deps))}return r}(e),Ki)}(t);if($n(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=Dr(void 0,Ki,!0),o.factory=()=>uu(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Ki&&(n.value=hb,n.value=n.factory()),"object"==typeof n.value&&n.value&&function yb(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=N(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Hu(e){const t=vi(e),n=null!==t?t.factory:kn(e);if(null!==n)return n;if(e instanceof x)throw new E(204,!1);if(e instanceof Function)return function pb(e){const t=e.length;if(t>0)throw function fo(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new E(204,!1)}function Dr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Db(e){return!!e.\u0275providers}function Uu(e,t){for(const n of e)Array.isArray(n)?Uu(n,t):Db(n)?Uu(n.\u0275providers,t):t(n)}class ip{}class _b{resolveComponentFactory(t){throw function Cb(e){const t=Error(`No component factory found for ${X(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let So=(()=>{class e{}return e.NULL=new _b,e})();function Eb(){return wr(_e(),D())}function wr(e,t){return new yn(rt(e,t))}let yn=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=Eb,e})();class ap{}let Sb=(()=>{class e{}return e.\u0275prov=P({token:e,providedIn:"root",factory:()=>null}),e})();class Yi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Mb=new Yi("14.3.0"),zu={};function qu(e){return e.ngOriginalError}class Cr{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&&qu(t);for(;n&&qu(n);)n=qu(n);return n||null}}function Yt(e){return e instanceof Function?e():e}function lp(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 cp="ng-template";function jb(e,t,n){let r=0;for(;ri?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==lp(h,l,0)||2&r&&l!==f){if(Ct(r))return!1;s=!0}}}}else{if(!s&&!Ct(r)&&!Ct(u))return!1;if(s&&Ct(u))continue;s=!1,r=u|1&r}}return Ct(r)||s}function Ct(e){return 0==(1&e)}function Bb(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&&!Ct(s)&&(t+=hp(i,o),o=""),r=s,i=i||!Ct(r);n++}return""!==o&&(t+=hp(i,o)),t}const k={};function vn(e){pp(z(),D(),Ue()+e,!1)}function pp(e,t,n,r){if(!r)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&Ai(t,i,n)}else{const i=e.preOrderHooks;null!==i&&xi(t,i,0,n)}hn(n)}function vp(e,t=null,n=null,r){const o=Dp(e,t,n,r);return o.resolveInjectorInitializers(),o}function Dp(e,t=null,n=null,r,o=new Set){const i=[n||W,cb(e)];return r=r||("object"==typeof e?void 0:X(e)),new rp(i,t||Zi(),r||null,o)}let ft=(()=>{class e{static create(n,r){if(Array.isArray(n))return vp({name:""},r,n,"");{const o=n.name??"";return vp({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=ho,e.NULL=new Jh,e.\u0275prov=P({token:e,providedIn:"any",factory:()=>b(Qh)}),e.__NG_ELEMENT_ID__=-1,e})();function I(e,t=A.Default){const n=D();return null===n?b(e,t):qf(_e(),n,N(e),t)}function Yu(){throw new Error("invalid")}function Xi(e,t){return e<<17|t<<2}function _t(e){return e>>17&32767}function Ju(e){return 2|e}function Jt(e){return(131068&e)>>2}function Xu(e,t){return-131069&e|t<<2}function el(e){return 1|e}function kp(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r22&&pp(e,t,22,!1),n(r,o)}finally{hn(i)}}function cl(e,t,n){!Sf()||(function O0(e,t,n,r){const o=n.directiveStart,i=n.directiveEnd;e.firstCreatePass||so(n,t),ke(r,t);const s=n.initialInputs;for(let a=o;a0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=u&&a.push(u),a.push(r,o,s)}}function Gp(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function qp(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function j0(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&gl(n)}}function gl(e){for(let r=vu(e);null!==r;r=Du(r))for(let o=10;o0&&gl(i)}const n=e[1].components;if(null!==n)for(let r=0;r0&&gl(o)}}function G0(e,t){const n=ot(t,e),r=n[1];(function q0(e,t){for(let n=t.length;n-1&&(_u(t,r),Li(n,r))}this._attachedToViewContainer=!1}Sh(this._lView[1],this._lView)}onDestroy(t){!function $p(e,t,n,r){const o=Qp(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&Yp(e).push(r,o.length-1))}(this._lView[1],this._lView,null,t)}markForCheck(){ml(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){is(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new E(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function SE(e,t){_o(e,t,t[j],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new E(902,!1);this._appRef=t}}class W0 extends Mo{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;is(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class Dl extends So{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Q(t);return new To(n,this.ngModule)}}function eg(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class Z0{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){const o=this.injector.get(t,zu,r);return o!==zu||n===zu?o:this.parentInjector.get(t,n,r)}}class To extends ip{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Wb(e){return e.map(qb).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return eg(this.componentDef.inputs)}get outputs(){return eg(this.componentDef.outputs)}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof mn?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new Z0(t,i):t,a=s.get(ap,null);if(null===a)throw new E(407,!1);const u=s.get(Sb,null),l=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=r?function T0(e,t,n){return e.selectRootElement(t,n===Pt.ShadowDom)}(l,r,this.componentDef.encapsulation):Cu(l,c,function K0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),f=this.componentDef.onPush?288:272,h=fl(0,null,null,1,0,null,null,null,null,null),p=ns(null,h,null,f,null,null,a,l,u,s,null);let g,m;Za(p);try{const v=function J0(e,t,n,r,o,i){const s=n[1];n[22]=e;const u=br(s,22,2,"#host",null),l=u.mergedAttrs=t.hostAttrs;null!==l&&(ss(u,l,!0),null!==e&&(Ri(o,e,l),null!==u.classes&&Tu(o,e,u.classes),null!==u.styles&&Lh(o,e,u.styles)));const c=r.createRenderer(e,t),d=ns(n,Vp(t),null,t.onPush?32:16,n[22],u,r,c,i||null,null,null);return s.firstCreatePass&&(Fi(so(u,n),s,t.type),qp(s,u),Wp(u,n.length,1)),os(n,d),n[22]=d}(d,this.componentDef,p,a,l);if(d)if(r)Ri(l,d,["ng-version",Mb.full]);else{const{attrs:w,classes:y}=function Kb(e){const t=[],n=[];let r=1,o=2;for(;r0&&Tu(l,d,y.join(" "))}if(m=Ha(h,22),void 0!==n){const w=m.projection=[];for(let y=0;ya(me(G[r.index])):r.index;let S=null;if(!a&&u&&(S=function vI(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!==S)(S.__ngLastListenerFn__||S).__ngNextListenerFn__=i,S.__ngLastListenerFn__=i,h=!1;else{i=vg(r,t,d,i,!1);const G=n.listen(v,o,i);f.push(i,G),c&&c.push(o,y,w,w+1)}}else i=vg(r,t,d,i,!1);const p=r.outputs;let g;if(h&&null!==p&&(g=p[o])){const m=g.length;if(m)for(let v=0;v0;)t=t[15],e--;return t}(e,O.lFrame.contextLView))[8]}(e)}function Tg(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?_t(i):Jt(i),u=!1;for(;0!==a&&(!1===u||s);){const c=e[a+1];bI(e[a],t)&&(u=!0,e[a+1]=r?el(c):Ju(c)),a=r?_t(c):Jt(c)}u&&(e[n+1]=r?Ju(i):el(i))}function bI(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&gr(e,t)>=0}function Al(e,t){return function Et(e,t,n,r){const o=D(),i=z(),s=function Kt(e){const t=O.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);i.firstUpdatePass&&function Lg(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[Ue()],s=function kg(e,t){return t>=e.expandoStartIndex}(e,n);(function Bg(e,t){return 0!=(e.flags&(t?16:32))})(i,r)&&null===t&&!s&&(t=!1),t=function PI(e,t,n,r){const o=function Wa(e){const t=O.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Po(n=xl(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=xl(o,e,t,n,r),null===i){let u=function OI(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Jt(r))return e[_t(r)]}(e,t,r);void 0!==u&&Array.isArray(u)&&(u=xl(null,e,t,u[1],r),u=Po(u,t.attrs,r),function FI(e,t,n,r){e[_t(n?t.classBindings:t.styleBindings)]=r}(e,t,r,u))}else i=function kI(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(l=!0)}else c=n;if(o)if(0!==u){const f=_t(e[a+1]);e[r+1]=Xi(f,a),0!==f&&(e[f+1]=Xu(e[f+1],r)),e[a+1]=function p0(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=Xi(a,0),0!==a&&(e[a+1]=Xu(e[a+1],r)),a=r;else e[r+1]=Xi(u,0),0===a?a=r:e[u+1]=Xu(e[u+1],r),u=r;l&&(e[r+1]=Ju(e[r+1])),Tg(e,c,r,!0),Tg(e,c,r,!1),function EI(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&gr(i,t)>=0&&(n[r+1]=el(n[r+1]))}(t,c,e,r,i),s=Xi(a,u),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==k&&Le(o,s,t)&&function Vg(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const u=e.data,l=u[a+1];ds(function Tp(e){return 1==(1&e)}(l)?$g(u,t,n,o,Jt(l),s):void 0)||(ds(i)||function Mp(e){return 2==(2&e)}(l)&&(i=$g(u,null,n,o,a,s)),function kE(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:Ye.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Ye.Important),e.setStyle(n,r,o,i))}}(r,s,Si(Ue(),n),o,i))}(i,i.data[Ue()],o,o[j],e,o[s+1]=function VI(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=X(gn(e)))),e}(t,n),r,s)}(e,t,null,!0),Al}function xl(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const u=e[o],l=Array.isArray(u),c=l?u[1]:u,d=null===c;let f=n[o+1];f===k&&(f=d?W:void 0);let h=d?iu(f,r):c===r?f:void 0;if(l&&!ds(h)&&(h=iu(u,r)),ds(h)&&(a=h,s))return a;const p=e[o+1];o=s?_t(p):Jt(p)}if(null!==t){let u=i?t.residualClasses:t.residualStyles;null!=u&&(a=iu(u,r))}return a}function ds(e){return void 0!==e}function ue(e,t=""){const n=D(),r=z(),o=e+22,i=r.firstCreatePass?br(r,o,1,t,null):r.data[o],s=n[o]=function wu(e,t){return e.createText(t)}(n[j],t);Ui(r,n,s,i),Ot(i,!1)}function Oo(e){return fs("",e,""),Oo}function fs(e,t,n){const r=D(),o=function Mr(e,t,n,r){return Le(e,ar(),n)?t+F(n)+r:k}(r,e,t,n);return o!==k&&function Xt(e,t,n){const r=Si(t,e);!function bh(e,t,n){e.setValue(t,n)}(e[j],r,n)}(r,Ue(),o),fs}const Lr="en-US";let lm=Lr;class zn{}class Fm{}class km extends zn{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Dl(this);const r=tt(t);this._bootstrapComponents=Yt(r.bootstrap),this._r3Injector=Dp(t,n,[{provide:zn,useValue:this},{provide:So,useValue:this.componentFactoryResolver}],X(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 Ll extends Fm{constructor(t){super(),this.moduleType=t}create(t){return new km(this.moduleType,t)}}class sM extends zn{constructor(t,n,r){super(),this.componentFactoryResolver=new Dl(this),this.instance=null;const o=new rp([...t,{provide:zn,useValue:this},{provide:So,useValue:this.componentFactoryResolver}],n||Zi(),r,new Set(["environment"]));this.injector=o,o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function ys(e,t,n=null){return new sM(e,t,n).injector}let aM=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const r=Xh(0,n.type),o=r.length>0?ys([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,o)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=P({token:e,providedIn:"environment",factory:()=>new e(b(mn))}),e})();function Lm(e){e.getStandaloneInjector=t=>t.get(aM).getOrCreateStandaloneInjector(e)}function zm(e,t,n,r,o,i){const s=t+n;return Le(e,s,o)?function Lt(e,t,n){return e[t]=n}(e,s+1,i?r.call(i,o):r(o)):function $o(e,t){const n=e[t];return n===k?void 0:n}(e,s+1)}function Qm(e,t,n){const r=e+22,o=D(),i=function sr(e,t){return e[t]}(o,r);return function Bo(e,t){return e[1].data[t].pure}(o,r)?zm(o,function He(){const e=O.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),t,i.transform,n,i):i.transform(n)}function Vl(e){return t=>{setTimeout(e,void 0,t)}}const qe=class RM extends xt{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=Vl(i),o&&(o=Vl(o)),s&&(s=Vl(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof ut&&t.add(a),a}};let en=(()=>{class e{}return e.__NG_ELEMENT_ID__=FM,e})();const PM=en,OM=class extends PM{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t,n){const r=this._declarationTContainer.tViews,o=ns(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)),ll(r,o,t),new Mo(o)}};function FM(){return function vs(e,t){return 4&e.type?new OM(t,e,wr(e,t)):null}(_e(),D())}let It=(()=>{class e{}return e.__NG_ELEMENT_ID__=kM,e})();function kM(){return function Xm(e,t){let n;const r=t[e.index];if(Dt(r))n=r;else{let o;if(8&e.type)o=me(r);else{const i=t[j];o=i.createComment("");const s=rt(e,t);jn(i,Hi(i,s),o,function PE(e,t){return e.nextSibling(t)}(i,s),!1)}t[e.index]=n=Zp(r,t,o,e),os(t,n)}return new Ym(n,e,t)}(_e(),D())}const LM=It,Ym=class extends LM{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return wr(this._hostTNode,this._hostLView)}get injector(){return new cr(this._hostTNode,this._hostLView)}get parentInjector(){const t=Oi(this._hostTNode,this._hostLView);if(Bf(t)){const n=lr(t,this._hostLView),r=ur(t);return new cr(n[1].data[r+8],n)}return new cr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Jm(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 co(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 To(Q(t)),l=r||this.parentInjector;if(!i&&null==u.ngModule){const f=(s?l:this.parentInjector).get(mn,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 ZC(e){return Dt(e[3])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const d=r[3],f=new Ym(d,d[6],d[3]);f.detach(f.indexOf(t))}}const i=this._adjustIndex(n),s=this._lContainer;!function TE(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=ws,this.reject=ws,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)(b(Cs,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Uo=new x("AppId",{providedIn:"root",factory:function Ey(){return`${ec()}${ec()}${ec()}`}});function ec(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const by=new x("Platform Initializer"),tc=new x("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),nc=new x("appBootstrapListener");let hT=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const tn=new x("LocaleId",{providedIn:"root",factory:()=>fe(tn,A.Optional|A.SkipSelf)||function pT(){return typeof $localize<"u"&&$localize.locale||Lr}()});class mT{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let rc=(()=>{class e{compileModuleSync(n){return new Ll(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=Yt(tt(n).declarations).reduce((s,a)=>{const u=Q(a);return u&&s.push(new To(u)),s},[]);return new mT(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const DT=(()=>Promise.resolve(0))();function oc(e){typeof Zone>"u"?DT.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 qe(!1),this.onMicrotaskEmpty=new qe(!1),this.onStable=new qe(!1),this.onError=new qe(!1),typeof Zone>"u")throw new E(908,!1);Zone.assertZonePatched();const o=this;if(o._nesting=0,o._outer=o._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const i=Zone.AsyncStackTaggingZoneSpec;o._inner=o._inner.fork(new i("Angular"))}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 wT(){let e=te.requestAnimationFrame,t=te.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 ET(e){const t=()=>{!function _T(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(te,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,sc(e),e.isCheckStableRunning=!0,ic(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),sc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return My(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),Ty(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return My(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),Ty(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,sc(e),ic(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 E(909,!1)}static assertNotInAngularZone(){if(Ie.isInAngularZone())throw new E(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,CT,ws,ws);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 CT={};function ic(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 sc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function My(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ty(e){e._nesting--,ic(e)}class bT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new qe,this.onMicrotaskEmpty=new qe,this.onStable=new qe,this.onError=new qe}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 Ay=new x(""),Es=new x("");let lc,ac=(()=>{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,lc||(function IT(e){lc=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(),oc(()=>{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())oc(()=>{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)(b(Ie),b(uc),b(Es))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})(),uc=(()=>{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 lc?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Cn=null;const xy=new x("AllowMultipleToken"),cc=new x("PlatformDestroyListeners");class Ry{constructor(t,n){this.name=t,this.token=n}}function Py(e,t,n=[]){const r=`Platform: ${t}`,o=new x(r);return(i=[])=>{let s=dc();if(!s||s.injector.get(xy,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function TT(e){if(Cn&&!Cn.get(xy,!1))throw new E(400,!1);Cn=e;const t=e.get(Fy);(function Ny(e){const t=e.get(by,null);t&&t.forEach(n=>n())})(e)}(function Oy(e=[],t){return ft.create({name:t,providers:[{provide:$u,useValue:"platform"},{provide:cc,useValue:new Set([()=>Cn=null])},...e]})}(a,r))}return function xT(e){const t=dc();if(!t)throw new E(401,!1);return t}()}}function dc(){return Cn?.get(Fy)??null}let Fy=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function Ly(e,t){let n;return n="noop"===e?new bT:("zone.js"===e?void 0:e)||new Ie(t),n}(r?.ngZone,function ky(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=ft.create({providers:i,parent:this.injector,name:n.moduleType.name}),a=n.create(s),u=a.injector.get(Cr,null);if(!u)throw new E(402,!1);return o.runOutsideAngular(()=>{const l=o.onError.subscribe({next:c=>{u.handleError(c)}});a.onDestroy(()=>{Is(this._modules,a),l.unsubscribe()})}),function jy(e,t,n){try{const r=n();return cs(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(_s);return l.runInitializers(),l.donePromise.then(()=>(function cm(e){et(e,"Expected localeId to be defined"),"string"==typeof e&&(lm=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(tn,Lr)||Lr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const o=Vy({},r);return function ST(e,t,n){const r=new Ll(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(bs);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new E(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 E(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(cc,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)(b(ft))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Vy(e,t){return Array.isArray(t)?t.reduce(Vy,e):{...e,...t}}let bs=(()=>{class e{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 ge(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new ge(a=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{Ie.assertNotInAngularZone(),oc(()=>{!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=function yC(...e){const t=Yr(e),n=function cC(e,t){return"number"==typeof Ia(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?Rt(r[0]):er(n)(Ce(r,t)):Ut}(i,s.pipe(function vC(e={}){const{connector:t=(()=>new xt),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},h=()=>{f(),s=u=void 0,c=d=!1},p=()=>{const g=s;h(),g?.unsubscribe()};return Me((g,m)=>{l++,!d&&!c&&f();const v=u=u??t();m.add(()=>{l--,0===l&&!d&&!c&&(a=Sa(p,o))}),v.subscribe(m),!s&&l>0&&(s=new Qr({next:w=>v.next(w),error:w=>{d=!0,f(),a=Sa(h,n,w),v.error(w)},complete:()=>{c=!0,f(),a=Sa(h,r),v.complete()}}),Rt(g).subscribe(s))})(i)}}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof ip;if(!this._injector.get(_s).done)throw!o&&function nr(e){const t=Q(e)||$e(e)||Be(e);return null!==t&&t.standalone}(n),new E(405,false);let s;s=o?n:this._injector.get(So).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function MT(e){return e.isBoundToModule}(s)?void 0:this._injector.get(zn),l=s.create(ft.NULL,[],r||s.selector,a),c=l.location.nativeElement,d=l.injector.get(Ay,null);return d?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),Is(this.components,l),d?.unregisterApplication(c)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new E(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;Is(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(nc,[]).concat(this._bootstrapListeners).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),()=>Is(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new E(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)(b(Ie),b(mn),b(Cr))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Is(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let By=!0,fc=(()=>{class e{}return e.__NG_ELEMENT_ID__=PT,e})();function PT(e){return function OT(e,t,n){if(bi(e)&&!n){const r=ot(e.index,t);return new Mo(r,r)}return 47&e.type?new Mo(t[16],t):null}(_e(),D(),16==(16&e))}class qy{constructor(){}supports(t){return Ao(t)}create(t){return new $T(t)}}const VT=(e,t)=>t;class $T{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||VT}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 BT(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 Wy),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 Wy),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 BT{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 HT{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 Wy{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new HT,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 Ky(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{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||Qy()),deps:[[e,new yo,new mo]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new E(901,!1)}}return e.\u0275prov=P({token:e,providedIn:"root",factory:Qy}),e})();const WT=Py(null,"core",[]);let KT=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(b(bs))},e.\u0275mod=qt({type:e}),e.\u0275inj=Nt({}),e})();function $r(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let As=null;function _n(){return As}const Ke=new x("DocumentToken");let yc=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:function(){return function JT(){return b(Jy)}()},providedIn:"platform"}),e})();const XT=new x("Location Initialized");let Jy=(()=>{class e extends yc{constructor(n){super(),this._doc=n,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _n().getBaseHref(this._doc)}onPopState(n){const r=_n().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=_n().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(n){this.location.pathname=n}pushState(n,r,o){Xy()?this._history.pushState(n,r,o):this.location.hash=o}replaceState(n,r,o){Xy()?this._history.replaceState(n,r,o):this.location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return e.\u0275fac=function(n){return new(n||e)(b(Ke))},e.\u0275prov=P({token:e,factory:function(){return function eA(){return new Jy(b(Ke))}()},providedIn:"platform"}),e})();function Xy(){return!!window.history.pushState}function vc(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function ev(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function rn(e){return e&&"?"!==e[0]?"?"+e:e}let qn=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:function(){return fe(nv)},providedIn:"root"}),e})();const tv=new x("appBaseHref");let nv=(()=>{class e extends qn{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??fe(Ke).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return vc(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+rn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+rn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+rn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(b(yc),b(tv,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),tA=(()=>{class e extends qn{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=vc(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+rn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+rn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(b(yc),b(tv,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})(),Dc=(()=>{class e{constructor(n){this._subject=new qe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._baseHref=ev(rv(r)),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+rn(r))}normalize(n){return e.stripTrailingSlash(function rA(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,rv(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+rn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+rn(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return e.normalizeQueryParams=rn,e.joinWithSlash=vc,e.stripTrailingSlash=ev,e.\u0275fac=function(n){return new(n||e)(b(qn))},e.\u0275prov=P({token:e,factory:function(){return function nA(){return new Dc(b(qn))}()},providedIn:"root"}),e})();function rv(e){return e.replace(/\/index.html$/,"")}function fv(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}class HA{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ac=(()=>{class e{constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new HA(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),gv(a,o)}});for(let o=0,i=r.length;o{gv(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(I(It),I(en),I(Ts))},e.\u0275dir=Pe({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function gv(e,t){e.context.$implicit=t.item}const rx=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let vv=(()=>{class e{transform(n){if(null==n)return null;if("string"!=typeof n)throw function Tt(e,t){return new E(2100,!1)}();return n.replace(rx,r=>r[0].toUpperCase()+r.slice(1).toLowerCase())}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Ze({name:"titlecase",type:e,pure:!0,standalone:!0}),e})(),yx=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=qt({type:e}),e.\u0275inj=Nt({}),e})();let Cx=(()=>{class e{}return e.\u0275prov=P({token:e,providedIn:"root",factory:()=>new _x(b(Ke),window)}),e})();class _x{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const n=function Ex(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Cv(this.window.history)||Cv(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Cv(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class _v{}class kc extends class Qx extends class YT{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function QT(e){As||(As=e)}(new kc)}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 Yx(){return Ko=Ko||document.querySelector("base"),Ko?Ko.getAttribute("href"):null}();return null==n?null:function Jx(e){Bs=Bs||document.createElement("a"),Bs.setAttribute("href",e);const t=Bs.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Ko=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return fv(document.cookie,t)}}let Bs,Ko=null;const Mv=new x("TRANSITION_ID"),eR=[{provide:Cs,useFactory:function Xx(e,t,n){return()=>{n.get(_s).donePromise.then(()=>{const r=_n(),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=P({token:e,factory:e.\u0275fac}),e})();const Hs=new x("EventManagerPlugins");let Us=(()=>{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=P({token:e,factory:e.\u0275fac}),e})(),Zo=(()=>{class e extends Av{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(xv),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(n,o,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(xv))}}return e.\u0275fac=function(n){return new(n||e)(b(Ke))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();function xv(e){_n().remove(e)}const Lc={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/"},jc=/%COMP%/g;function zs(e,t,n){for(let r=0;r{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Vc=(()=>{class e{constructor(n,r,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new $c(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case Pt.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new uR(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(n),o}case 1:case Pt.ShadowDom:return new lR(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const o=zs(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)(b(Us),b(Zo),b(Uo))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();class $c{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(Lc[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){(Fv(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Fv(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=Lc[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=Lc[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&(Ye.DashCase|Ye.Important)?t.style.setProperty(n,r,o&Ye.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Ye.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,Pv(r)):this.eventManager.addEventListener(t,n,Pv(r))}}function Fv(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class uR extends $c{constructor(t,n,r,o){super(t),this.component=r;const i=zs(o+"-"+r.id,r.styles,[]);n.addStyles(i),this.contentAttr=function iR(e){return"_ngcontent-%COMP%".replace(jc,e)}(o+"-"+r.id),this.hostAttr=function sR(e){return"_nghost-%COMP%".replace(jc,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 lR extends $c{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=zs(o.id,o.styles,[]);for(let s=0;s{class e extends Tv{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)(b(Ke))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const kv=["alt","control","meta","shift"],dR={"\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"},fR={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let hR=(()=>{class e extends Tv{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(()=>_n().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."),kv.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=dR[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"),kv.forEach(s=>{s!==o&&(0,fR[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)(b(Ke))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const yR=Py(WT,"browser",[{provide:tc,useValue:"browser"},{provide:by,useValue:function pR(){kc.makeCurrent()},multi:!0},{provide:Ke,useFactory:function mR(){return function $E(e){xu=e}(document),document},deps:[]}]),Vv=new x(""),$v=[{provide:Es,useClass:class tR{addToWindow(t){te.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},te.getAllAngularTestabilities=()=>t.getAllTestabilities(),te.getAllAngularRootElements=()=>t.getAllRootElements(),te.frameworkStabilizers||(te.frameworkStabilizers=[]),te.frameworkStabilizers.push(r=>{const o=te.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?_n().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:Ay,useClass:ac,deps:[Ie,uc,Es]},{provide:ac,useClass:ac,deps:[Ie,uc,Es]}],Bv=[{provide:$u,useValue:"root"},{provide:Cr,useFactory:function gR(){return new Cr},deps:[]},{provide:Hs,useClass:cR,multi:!0,deps:[Ke,Ie,tc]},{provide:Hs,useClass:hR,multi:!0,deps:[Ke]},{provide:Vc,useClass:Vc,deps:[Us,Zo,Uo]},{provide:ap,useExisting:Vc},{provide:Av,useExisting:Zo},{provide:Zo,useClass:Zo,deps:[Ke]},{provide:Us,useClass:Us,deps:[Hs,Ie]},{provide:_v,useClass:nR,deps:[]},[]];let vR=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Uo,useValue:n.appId},{provide:Mv,useExisting:Uo},eR]}}}return e.\u0275fac=function(n){return new(n||e)(b(Vv,12))},e.\u0275mod=qt({type:e}),e.\u0275inj=Nt({providers:[...Bv,...$v],imports:[yx,KT]}),e})(),Hv=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return e.\u0275fac=function(n){return new(n||e)(b(Ke))},e.\u0275prov=P({token:e,factory:function(n){let r=null;return r=n?new n:function wR(){return new Hv(b(Ke))}(),r},providedIn:"root"}),e})();function M(...e){return Ce(e,Yr(e))}typeof window<"u"&&window;class At extends xt{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}const Gs=Kr(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:TR}=Array,{getPrototypeOf:AR,prototype:xR,keys:RR}=Object;const{isArray:OR}=Array;function Gv(...e){const t=Yr(e),n=function lC(e){return ee(Ia(e))?e.pop():void 0}(e),{args:r,keys:o}=function NR(e){if(1===e.length){const t=e[0];if(TR(t))return{args:t,keys:null};if(function PR(e){return e&&"object"==typeof e&&AR(e)===xR}(t)){const n=RR(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}(e);if(0===r.length)return Ce([],t);const i=new ge(function jR(e,t,n=Rn){return r=>{qv(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let u=0;u{const l=Ce(e[u],t);let c=!1;l.subscribe(Te(r,d=>{i[u]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>function LR(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}(o,s):Rn));return n?i.pipe(function kR(e){return H(t=>function FR(e,t){return OR(t)?e(...t):e(t)}(e,t))}(n)):i}function qv(e,t,n){e?Ht(n,e,t):t()}function Uc(...e){return function VR(){return er(1)}()(Ce(e,Yr(e)))}function Wv(e){return new ge(t=>{Rt(e()).subscribe(t)})}function Qo(e,t){const n=ee(e)?e:()=>e,r=o=>o.error(n());return new ge(t?o=>t.schedule(r,0,o):r)}function zc(){return Me((e,t)=>{let n=null;e._refCount++;const r=Te(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class Kv extends ge{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Gd(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new ut;const n=this.getSubject();t.add(this.source.subscribe(Te(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=ut.EMPTY)}return t}refCount(){return zc()(this)}}function $t(e,t){return Me((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(Te(r,u=>{o?.unsubscribe();let l=0;const c=i++;Rt(e(u,c)).subscribe(o=Te(r,d=>r.next(t?t(u,d,c,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Yo(e){return e<=0?()=>Ut:Me((t,n)=>{let r=0;t.subscribe(Te(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function sn(e,t){return Me((n,r)=>{let o=0;n.subscribe(Te(r,i=>e.call(t,i,o++)&&r.next(i)))})}function qs(e){return Me((t,n)=>{let r=!1;t.subscribe(Te(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Zv(e=BR){return Me((t,n)=>{let r=!1;t.subscribe(Te(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function BR(){return new Gs}function bn(e,t){const n=arguments.length>=2;return r=>r.pipe(e?sn((o,i)=>e(o,i,r)):Rn,Yo(1),n?qs(t):Zv(()=>new Gs))}function In(e,t){return ee(t)?xe(e,t,1):xe(e,1)}function je(e,t,n){const r=ee(e)||t||n?{next:e,error:t,complete:n}:e;return r?Me((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(Te(i,u=>{var l;null===(l=r.next)||void 0===l||l.call(r,u),i.next(u)},()=>{var u;a=!1,null===(u=r.complete)||void 0===u||u.call(r),i.complete()},u=>{var l;a=!1,null===(l=r.error)||void 0===l||l.call(r,u),i.error(u)},()=>{var u,l;a&&(null===(u=r.unsubscribe)||void 0===u||u.call(r)),null===(l=r.finalize)||void 0===l||l.call(r)}))}):Rn}function Sn(e){return Me((t,n)=>{let i,r=null,o=!1;r=t.subscribe(Te(n,void 0,void 0,s=>{i=Rt(e(s,Sn(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function HR(e,t,n,r,o){return(i,s)=>{let a=n,u=t,l=0;i.subscribe(Te(s,c=>{const d=l++;u=a?e(u,c,d):(a=!0,c),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function Qv(e,t){return Me(HR(e,t,arguments.length>=2,!0))}function Gc(e){return e<=0?()=>Ut:Me((t,n)=>{let r=[];t.subscribe(Te(n,o=>{r.push(o),e{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Yv(e,t){const n=arguments.length>=2;return r=>r.pipe(e?sn((o,i)=>e(o,i,r)):Rn,Gc(1),n?qs(t):Zv(()=>new Gs))}function qc(e){return Me((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const $="primary",Jo=Symbol("RouteTitle");class GR{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function Br(e){return new GR(e)}function qR(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[i]===o)}return e===t}function Xv(e){return Array.prototype.concat.apply([],e)}function eD(e){return e.length>0?e[e.length-1]:null}function Re(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Mn(e){return pg(e)?e:cs(e)?Ce(Promise.resolve(e)):M(e)}const ZR={exact:function rD(e,t,n){if(!Kn(e.segments,t.segments)||!Ws(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!rD(e.children[r],t.children[r],n))return!1;return!0},subset:oD},tD={exact:function QR(e,t){return Bt(e,t)},subset:function YR(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Jv(e[n],t[n]))},ignored:()=>!0};function nD(e,t,n){return ZR[n.paths](e.root,t.root,n.matrixParams)&&tD[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function oD(e,t,n){return iD(e,t,t.segments,n)}function iD(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!Kn(o,n)||t.hasChildren()||!Ws(o,n,r))}if(e.segments.length===n.length){if(!Kn(e.segments,n)||!Ws(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!oD(e.children[o],t.children[o],r))return!1;return!0}{const o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!(Kn(e.segments,o)&&Ws(e.segments,o,r)&&e.children[$])&&iD(e.children[$],t,i,r)}}function Ws(e,t,n){return t.every((r,o)=>tD[n](e[o].parameters,r.parameters))}class Wn{constructor(t,n,r){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Br(this.queryParams)),this._queryParamMap}toString(){return eN.serialize(this)}}class B{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Re(n,(r,o)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ks(this)}}class Xo{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=Br(this.parameters)),this._parameterMap}toString(){return lD(this)}}function Kn(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let sD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:function(){return new Kc},providedIn:"root"}),e})();class Kc{parse(t){const n=new lN(t);return new Wn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${ei(t.root,!0)}`,r=function rN(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${Zs(n)}=${Zs(o)}`).join("&"):`${Zs(n)}=${Zs(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function tN(e){return encodeURI(e)}(t.fragment)}`:""}`}}const eN=new Kc;function Ks(e){return e.segments.map(t=>lD(t)).join("/")}function ei(e,t){if(!e.hasChildren())return Ks(e);if(t){const n=e.children[$]?ei(e.children[$],!1):"",r=[];return Re(e.children,(o,i)=>{i!==$&&r.push(`${i}:${ei(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function XR(e,t){let n=[];return Re(e.children,(r,o)=>{o===$&&(n=n.concat(t(r,o)))}),Re(e.children,(r,o)=>{o!==$&&(n=n.concat(t(r,o)))}),n}(e,(r,o)=>o===$?[ei(e.children[$],!1)]:[`${o}:${ei(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[$]?`${Ks(e)}/${n[0]}`:`${Ks(e)}/(${n.join("//")})`}}function aD(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zs(e){return aD(e).replace(/%3B/gi,";")}function Zc(e){return aD(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Qs(e){return decodeURIComponent(e)}function uD(e){return Qs(e.replace(/\+/g,"%20"))}function lD(e){return`${Zc(e.path)}${function nN(e){return Object.keys(e).map(t=>`;${Zc(t)}=${Zc(e[t])}`).join("")}(e.parameters)}`}const oN=/^[^\/()?;=#]+/;function Ys(e){const t=e.match(oN);return t?t[0]:""}const iN=/^[^=?&#]+/,aN=/^[^&#]+/;class lN{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new B([],{}):new B([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[$]=new B(t,n)),r}parseSegment(){const t=Ys(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new E(4009,!1);return this.capture(t),new Xo(Qs(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=Ys(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=Ys(this.remaining);o&&(r=o,this.capture(r))}t[Qs(n)]=Qs(r)}parseQueryParam(t){const n=function sN(e){const t=e.match(iN);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function uN(e){const t=e.match(aN);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=uD(n),i=uD(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Ys(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new E(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=$);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[$]:new B([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new E(4011,!1)}}function Qc(e){return e.segments.length>0?new B([],{[$]:e}):e}function Js(e){const t={};for(const r of Object.keys(e.children)){const i=Js(e.children[r]);(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function cN(e){if(1===e.numberOfChildren&&e.children[$]){const t=e.children[$];return new B(e.segments.concat(t.segments),t.children)}return e}(new B(e.segments,t))}function Zn(e){return e instanceof Wn}function hN(e,t,n,r,o){if(0===n.length)return Hr(t.root,t.root,t.root,r,o);const i=function fD(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new dD(!0,0,e);let t=0,n=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Re(i.outlets,(u,l)=>{a[l]="string"==typeof u?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,u)=>{0==u&&"."===a||(0==u&&""===a?n=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new dD(n,t,r)}(n);return i.toRoot()?Hr(t.root,t.root,new B([],{}),r,o):function s(u){const l=function gN(e,t,n,r){if(e.isAbsolute)return new Ur(t.root,!0,0);if(-1===r)return new Ur(n,n===t.root,0);return function hD(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new E(4005,!1);o=r.segments.length}return new Ur(r,!1,o-i)}(n,r+(ti(e.commands[0])?0:1),e.numberOfDoubleDots)}(i,t,e.snapshot?._urlSegment,u),c=l.processChildren?ri(l.segmentGroup,l.index,i.commands):Jc(l.segmentGroup,l.index,i.commands);return Hr(t.root,l.segmentGroup,c,r,o)}(e.snapshot?._lastPathIndex)}function ti(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ni(e){return"object"==typeof e&&null!=e&&e.outlets}function Hr(e,t,n,r,o){let s,i={};r&&Re(r,(u,l)=>{i[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`}),s=e===t?n:cD(e,t,n);const a=Qc(Js(s));return new Wn(a,i,o)}function cD(e,t,n){const r={};return Re(e.children,(o,i)=>{r[i]=o===t?n:cD(o,t,n)}),new B(e.segments,r)}class dD{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&ti(r[0]))throw new E(4003,!1);const o=r.find(ni);if(o&&o!==eD(r))throw new E(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ur{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function Jc(e,t,n){if(e||(e=new B([],{})),0===e.segments.length&&e.hasChildren())return ri(e,t,n);const r=function yN(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=e.segments[o],a=n[r];if(ni(a))break;const u=`${a}`,l=r0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!gD(u,l,s))return i;r+=2}else{if(!gD(u,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(o[s]=Jc(e.children[s],t,i))}),Re(e.children,(i,s)=>{void 0===r[s]&&(o[s]=i)}),new B(e.segments,o)}}function Xc(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o{"string"==typeof n&&(n=[n]),null!==n&&(t[r]=Xc(new B([],{}),0,n))}),t}function pD(e){const t={};return Re(e,(n,r)=>t[r]=`${n}`),t}function gD(e,t,n){return e==n.path&&Bt(t,n.parameters)}class an{constructor(t,n){this.id=t,this.url=n}}class ed extends an{constructor(t,n,r="imperative",o=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Qn extends an{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Xs extends an{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class mD extends an{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class DN extends an{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wN extends an{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class CN extends an{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class _N extends an{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class EN extends an{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bN{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class IN{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class SN{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class MN{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class TN{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class AN{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yD{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class vD{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=td(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=td(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=nd(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return nd(t,this._root).map(n=>n.value)}}function td(e,t){if(e===t.value)return t;for(const n of t.children){const r=td(e,n);if(r)return r}return null}function nd(e,t){if(e===t.value)return[t];for(const n of t.children){const r=nd(e,n);if(r.length)return r.unshift(t),r}return[]}class un{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function zr(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class DD extends vD{constructor(t,n){super(t),this.snapshot=n,rd(this,t)}toString(){return this.snapshot.toString()}}function wD(e,t){const n=function RN(e,t){const s=new ea([],{},{},"",{},$,t,null,e.root,-1,{});return new _D("",new un(s,[]))}(e,t),r=new At([new Xo("",{})]),o=new At({}),i=new At({}),s=new At({}),a=new At(""),u=new Yn(r,o,s,a,i,$,t,n.root);return u.snapshot=n.root,new DD(new un(u,[]),n)}class Yn{constructor(t,n,r,o,i,s,a,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.title=this.data?.pipe(H(l=>l[Jo]))??M(void 0),this._futureSnapshot=u}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(H(t=>Br(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(H(t=>Br(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function CD(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function NN(e){return e.reduce((t,n)=>({params:{...t.params,...n.params},data:{...t.data,...n.data},resolve:{...n.data,...t.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(r))}class ea{constructor(t,n,r,o,i,s,a,u,l,c,d,f){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.title=this.data?.[Jo],this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._correctedLastPathIndex=f??c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Br(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Br(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class _D extends vD{constructor(t,n){super(n),this.url=t,rd(this,n)}toString(){return ED(this._root)}}function rd(e,t){t.value._routerState=e,t.children.forEach(n=>rd(e,n))}function ED(e){const t=e.children.length>0?` { ${e.children.map(ED).join(", ")} } `:"";return`${e.value}${t}`}function od(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Bt(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Bt(t.params,n.params)||e.params.next(n.params),function WR(e,t){if(e.length!==t.length)return!1;for(let n=0;nBt(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||id(e.parent,t.parent))}function oi(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function ON(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return oi(e,r,o);return oi(e,r)})}(e,t,n);return new un(r,o)}{if(e.shouldAttach(t.value)){const i=e.retrieve(t.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>oi(e,a)),s}}const r=function FN(e){return new Yn(new At(e.url),new At(e.params),new At(e.queryParams),new At(e.fragment),new At(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>oi(e,i));return new un(r,o)}}const sd="ngNavigationCancelingError";function bD(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=Zn(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=ID(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function ID(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[sd]=!0,r.cancellationCode=t,n&&(r.url=n),r}function SD(e){return MD(e)&&Zn(e.url)}function MD(e){return e&&e[sd]}class kN{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new ii,this.attachRef=null}}let ii=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new kN,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ta=!1;let ad=(()=>{class e{constructor(n,r,o,i,s){this.parentContexts=n,this.location=r,this.changeDetector=i,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new qe,this.deactivateEvents=new qe,this.attachEvents=new qe,this.detachEvents=new qe,this.name=o||$,n.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const n=this.parentContexts.getContext(this.name);n&&n.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new E(4012,ta);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new E(4012,ta);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new E(4012,ta);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new E(4013,ta);this._activatedRoute=n;const o=this.location,s=n._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new LN(n,a,o.injector);if(r&&function jN(e){return!!e.resolveComponentFactory}(r)){const l=r.resolveComponentFactory(s);this.activated=o.createComponent(l,o.length,u)}else this.activated=o.createComponent(s,{index:o.length,injector:u,environmentInjector:r??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(n){return new(n||e)(I(ii),I(It),function uo(e){return function b_(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ve({type:e,selectors:[["ng-component"]],standalone:!0,features:[Lm],decls:1,vars:0,template:function(n,r){1&n&&ie(0,"router-outlet")},dependencies:[ad],encapsulation:2}),e})();function TD(e,t){return e.providers&&!e._injector&&(e._injector=ys(e.providers,t,`Route: ${e.path}`)),e._injector??t}function cd(e){const t=e.children&&e.children.map(cd),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==$&&(n.component=ud),n}function mt(e){return e.outlet||$}function AD(e,t){const n=e.filter(r=>mt(r)===t);return n.push(...e.filter(r=>mt(r)!==t)),n}function si(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class UN{constructor(t,n,r,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),od(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=zr(n);t.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Re(o,(i,s)=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=zr(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=zr(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(t,n,r){const o=zr(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new AN(i.value.snapshot))}),t.children.length&&this.forwardEvent(new MN(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(od(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),od(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=si(o.snapshot),u=a?.get(So)??null;s.attachRef=null,s.route=o,s.resolver=u,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class xD{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class na{constructor(t,n){this.component=t,this.route=n}}function zN(e,t,n){const r=e._root;return ai(r,t?t._root:null,n,[r.value])}function Gr(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function IC(e){return null!==vi(e)}(e)?t.get(e):e:r}function ai(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=zr(t);return e.children.forEach(s=>{(function qN(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const u=function WN(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Kn(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Kn(e.url,t.url)||!Bt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!id(e,t)||!Bt(e.queryParams,t.queryParams);default:return!id(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new xD(r)):(i.data=s.data,i._resolvedData=s._resolvedData),ai(e,t,i.component?a?a.children:null:n,r,o),u&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new na(a.outlet.component,s))}else s&&ui(t,a,o),o.canActivateChecks.push(new xD(r)),ai(e,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Re(i,(s,a)=>ui(s,n.getContext(a),o)),o}function ui(e,t,n){const r=zr(e),o=e.value;Re(r,(i,s)=>{ui(i,o.component?t?t.children.getContext(s):null:t,n)}),n.canDeactivateChecks.push(new na(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function li(e){return"function"==typeof e}function dd(e){return e instanceof Gs||"EmptyError"===e?.name}const ra=Symbol("INITIAL_VALUE");function qr(){return $t(e=>Gv(e.map(t=>t.pipe(Yo(1),function $R(...e){const t=Yr(e);return Me((n,r)=>{(t?Uc(e,n,t):Uc(e,n)).subscribe(r)})}(ra)))).pipe(H(t=>{for(const n of t)if(!0!==n){if(n===ra)return ra;if(!1===n||n instanceof Wn)return n}return!0}),sn(t=>t!==ra),Yo(1)))}function RD(e){return function Mw(...e){return Hd(e)}(je(t=>{if(Zn(t))throw bD(0,t)}),H(t=>!0===t))}const fd={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ND(e,t,n,r,o){const i=hd(e,t,n);return i.matched?function cP(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?M(o.map(s=>{const a=Gr(s,e);return Mn(function XN(e){return e&&li(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(qr(),RD()):M(!0)}(r=TD(t,r),t,n).pipe(H(s=>!0===s?i:{...fd})):M(i)}function hd(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...fd}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||qR)(n,e,t);if(!o)return{...fd};const i={};Re(o.posParams,(a,u)=>{i[u]=a.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function oa(e,t,n,r,o="corrected"){if(n.length>0&&function hP(e,t,n){return n.some(r=>ia(e,t,r)&&mt(r)!==$)}(e,n,r)){const s=new B(t,function fP(e,t,n,r){const o={};o[$]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&mt(i)!==$){const s=new B([],{});s._sourceSegment=e,s._segmentIndexShift=t.length,o[mt(i)]=s}return o}(e,t,r,new B(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function pP(e,t,n){return n.some(r=>ia(e,t,r))}(e,n,r)){const s=new B(e.segments,function dP(e,t,n,r,o,i){const s={};for(const a of r)if(ia(e,n,a)&&!o[mt(a)]){const u=new B([],{});u._sourceSegment=e,u._segmentIndexShift="legacy"===i?e.segments.length:t.length,s[mt(a)]=u}return{...o,...s}}(e,t,n,r,e.children,o));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}const i=new B(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function ia(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function PD(e,t,n,r){return!!(mt(e)===r||r!==$&&ia(t,n,e))&&("**"===e.path||hd(t,e,n).matched)}function OD(e,t,n){return 0===t.length&&!e.children[n]}const sa=!1;class aa{constructor(t){this.segmentGroup=t||null}}class FD{constructor(t){this.urlTree=t}}function ci(e){return Qo(new aa(e))}function kD(e){return Qo(new FD(e))}class vP{constructor(t,n,r,o,i){this.injector=t,this.configLoader=n,this.urlSerializer=r,this.urlTree=o,this.config=i,this.allowRedirects=!0}apply(){const t=oa(this.urlTree.root,[],[],this.config).segmentGroup,n=new B(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,n,$).pipe(H(i=>this.createUrlTree(Js(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Sn(i=>{if(i instanceof FD)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof aa?this.noMatchError(i):i}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,$).pipe(H(o=>this.createUrlTree(Js(o),t.queryParams,t.fragment))).pipe(Sn(o=>{throw o instanceof aa?this.noMatchError(o):o}))}noMatchError(t){return new E(4002,sa)}createUrlTree(t,n,r){const o=Qc(t);return new Wn(o,n,r)}expandSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,n,r).pipe(H(i=>new B([],i))):this.expandSegment(t,r,n,r.segments,o,!0)}expandChildren(t,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return Ce(o).pipe(In(i=>{const s=r.children[i],a=AD(n,i);return this.expandSegmentGroup(t,a,s,i).pipe(H(u=>({segment:u,outlet:i})))}),Qv((i,s)=>(i[s.outlet]=s.segment,i),{}),Yv())}expandSegment(t,n,r,o,i,s){return Ce(r).pipe(In(a=>this.expandSegmentAgainstRoute(t,n,r,a,o,i,s).pipe(Sn(l=>{if(l instanceof aa)return M(null);throw l}))),bn(a=>!!a),Sn((a,u)=>{if(dd(a))return OD(n,o,i)?M(new B([],{})):ci(n);throw a}))}expandSegmentAgainstRoute(t,n,r,o,i,s,a){return PD(o,n,i,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(t,n,o,i,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s):ci(n):ci(n)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o){const i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?kD(i):this.lineralizeSegments(r,i).pipe(xe(s=>{const a=new B(s,{});return this.expandSegment(t,a,n,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){const{matched:a,consumedSegments:u,remainingSegments:l,positionalParamSegments:c}=hd(n,o,i);if(!a)return ci(n);const d=this.applyRedirectCommands(u,o.redirectTo,c);return o.redirectTo.startsWith("/")?kD(d):this.lineralizeSegments(o,d).pipe(xe(f=>this.expandSegment(t,n,r,f.concat(l),s,!1)))}matchSegmentAgainstRoute(t,n,r,o,i){return"**"===r.path?(t=TD(r,t),r.loadChildren?(r._loadedRoutes?M({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(t,r)).pipe(H(a=>(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,new B(o,{})))):M(new B(o,{}))):ND(n,r,o,t).pipe($t(({matched:s,consumedSegments:a,remainingSegments:u})=>s?this.getChildConfig(t=r._injector??t,r,o).pipe(xe(c=>{const d=c.injector??t,f=c.routes,{segmentGroup:h,slicedSegments:p}=oa(n,a,u,f),g=new B(h.segments,h.children);if(0===p.length&&g.hasChildren())return this.expandChildren(d,f,g).pipe(H(y=>new B(a,y)));if(0===f.length&&0===p.length)return M(new B(a,{}));const m=mt(r)===i;return this.expandSegment(d,g,f,p,m?$:i,!0).pipe(H(w=>new B(a.concat(w.segments),w.children)))})):ci(n)))}getChildConfig(t,n,r){return n.children?M({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?M({routes:n._loadedRoutes,injector:n._loadedInjector}):function lP(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?M(!0):M(o.map(s=>{const a=Gr(s,e);return Mn(function ZN(e){return e&&li(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(qr(),RD())}(t,n,r).pipe(xe(o=>o?this.configLoader.loadChildren(t,n).pipe(je(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function mP(e){return Qo(ID(sa,3))}())):M({routes:[],injector:t})}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return M(r);if(o.numberOfChildren>1||!o.children[$])return Qo(new E(4e3,sa));o=o.children[$]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreateUrlTree(t,n,r,o){const i=this.createSegmentGroup(t,n.root,r,o);return new Wn(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Re(t,(o,i)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,o){const i=this.createSegments(t,n.segments,r,o);let s={};return Re(n.children,(a,u)=>{s[u]=this.createSegmentGroup(t,a,r,o)}),new B(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){const o=r[n.path.substring(1)];if(!o)throw new E(4001,sa);return o}findOrReturn(t,n){let r=0;for(const o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}}class wP{}class EP{constructor(t,n,r,o,i,s,a,u){this.injector=t,this.rootComponentType=n,this.config=r,this.urlTree=o,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=u}recognize(){const t=oa(this.urlTree.root,[],[],this.config.filter(n=>void 0===n.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,$).pipe(H(n=>{if(null===n)return null;const r=new ea([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},$,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new un(r,n),i=new _D(this.url,o);return this.inheritParamsAndData(i._root),i}))}inheritParamsAndData(t){const n=t.value,r=CD(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,o)}processChildren(t,n,r){return Ce(Object.keys(r.children)).pipe(In(o=>{const i=r.children[o],s=AD(n,o);return this.processSegmentGroup(t,s,i,o)}),Qv((o,i)=>o&&i?(o.push(...i),o):null),function UR(e,t=!1){return Me((n,r)=>{let o=0;n.subscribe(Te(r,i=>{const s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}(o=>null!==o),qs(null),Yv(),H(o=>{if(null===o)return null;const i=LD(o);return function bP(e){e.sort((t,n)=>t.value.outlet===$?-1:n.value.outlet===$?1:t.value.outlet.localeCompare(n.value.outlet))}(i),i}))}processSegment(t,n,r,o,i){return Ce(n).pipe(In(s=>this.processSegmentAgainstRoute(s._injector??t,s,r,o,i)),bn(s=>!!s),Sn(s=>{if(dd(s))return OD(r,o,i)?M([]):M(null);throw s}))}processSegmentAgainstRoute(t,n,r,o,i){if(n.redirectTo||!PD(n,r,o,i))return M(null);let s;if("**"===n.path){const a=o.length>0?eD(o).parameters:{},u=VD(r)+o.length;s=M({snapshot:new ea(o,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,BD(n),mt(n),n.component??n._loadedComponent??null,n,jD(r),u,HD(n),u),consumedSegments:[],remainingSegments:[]})}else s=ND(r,n,o,t).pipe(H(({matched:a,consumedSegments:u,remainingSegments:l,parameters:c})=>{if(!a)return null;const d=VD(r)+u.length;return{snapshot:new ea(u,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,BD(n),mt(n),n.component??n._loadedComponent??null,n,jD(r),d,HD(n),d),consumedSegments:u,remainingSegments:l}}));return s.pipe($t(a=>{if(null===a)return M(null);const{snapshot:u,consumedSegments:l,remainingSegments:c}=a;t=n._injector??t;const d=n._loadedInjector??t,f=function IP(e){return e.children?e.children:e.loadChildren?e._loadedRoutes:[]}(n),{segmentGroup:h,slicedSegments:p}=oa(r,l,c,f.filter(m=>void 0===m.redirectTo),this.relativeLinkResolution);if(0===p.length&&h.hasChildren())return this.processChildren(d,f,h).pipe(H(m=>null===m?null:[new un(u,m)]));if(0===f.length&&0===p.length)return M([new un(u,[])]);const g=mt(n)===i;return this.processSegment(d,f,h,p,g?$:i).pipe(H(m=>null===m?null:[new un(u,m)]))}))}}function SP(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function LD(e){const t=[],n=new Set;for(const r of e){if(!SP(r)){t.push(r);continue}const o=t.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):t.push(r)}for(const r of n){const o=LD(r.children);t.push(new un(r.value,o))}return t.filter(r=>!n.has(r))}function jD(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function VD(e){let t=e,n=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift??0;return n-1}function BD(e){return e.data||{}}function HD(e){return e.resolve||{}}function UD(e){return"string"==typeof e.title||null===e.title}function pd(e){return $t(t=>{const n=e(t);return n?Ce(n).pipe(H(()=>t)):M(t)})}let zD=(()=>{class e{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===$);return r}getResolvedTitleForRoute(n){return n.data[Jo]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:function(){return fe(GD)},providedIn:"root"}),e})(),GD=(()=>{class e extends zD{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(n){return new(n||e)(b(Hv))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class OP{}class kP extends class FP{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}{}const la=new x("",{providedIn:"root",factory:()=>({})}),gd=new x("ROUTES");let md=(()=>{class e{constructor(n,r){this.injector=n,this.compiler=r,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return M(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=Mn(n.loadComponent()).pipe(je(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),qc(()=>{this.componentLoaders.delete(n)})),o=new Kv(r,()=>new xt).pipe(zc());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return M({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(H(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let u,l,c=!1;Array.isArray(a)?l=a:(u=a.create(n).injector,l=Xv(u.get(gd,[],A.Self|A.Optional)));return{routes:l.map(cd),injector:u}}),qc(()=>{this.childrenLoaders.delete(r)})),s=new Kv(i,()=>new xt).pipe(zc());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return Mn(n()).pipe(xe(r=>r instanceof Fm||Array.isArray(r)?M(r):Ce(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)(b(ft),b(rc))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class jP{}class VP{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}}function $P(e){throw e}function BP(e,t,n){return t.parse("/")}const HP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},UP={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function WD(){const e=fe(sD),t=fe(ii),n=fe(Dc),r=fe(ft),o=fe(rc),i=fe(gd,{optional:!0})??[],s=fe(la,{optional:!0})??{},a=fe(GD),u=fe(zD,{optional:!0}),l=fe(jP,{optional:!0}),c=fe(OP,{optional:!0}),d=new Ne(null,e,t,n,r,o,Xv(i));return l&&(d.urlHandlingStrategy=l),c&&(d.routeReuseStrategy=c),d.titleStrategy=u??a,function zP(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy),e.canceledNavigationResolution&&(t.canceledNavigationResolution=e.canceledNavigationResolution)}(s,d),d}let Ne=(()=>{class e{constructor(n,r,o,i,s,a,u){this.rootComponentType=n,this.urlSerializer=r,this.rootContexts=o,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new xt,this.errorHandler=$P,this.malformedUriErrorHandler=BP,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>M(void 0),this.urlHandlingStrategy=new VP,this.routeReuseStrategy=new kP,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(md),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new IN(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new bN(f)),this.ngModule=s.get(zn),this.console=s.get(hT);const d=s.get(Ie);this.isNgZoneEnabled=d instanceof Ie&&Ie.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=function KR(){return new Wn(new B([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=wD(this.currentUrlTree,this.rootComponentType),this.transitions=new At({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(n){const r=this.events;return n.pipe(sn(o=>0!==o.id),H(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),$t(o=>{let i=!1,s=!1;return M(o).pipe(je(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),$t(a=>{const u=this.browserUrlTree.toString(),l=!this.navigated||a.extractedUrl.toString()!==u||u!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||l)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return KD(a.source)&&(this.browserUrlTree=a.extractedUrl),M(a).pipe($t(d=>{const f=this.transitions.getValue();return r.next(new ed(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions.getValue()?Ut:Promise.resolve(d)}),function DP(e,t,n,r){return $t(o=>function yP(e,t,n,r,o){return new vP(e,t,n,r,o).apply()}(e,t,n,o.extractedUrl,r).pipe(H(i=>({...o,urlAfterRedirects:i}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),je(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},o.urlAfterRedirects=d.urlAfterRedirects}),function TP(e,t,n,r,o,i){return xe(s=>function _P(e,t,n,r,o,i,s="emptyOnly",a="legacy"){return new EP(e,t,n,r,o,s,a,i).recognize().pipe($t(u=>null===u?function CP(e){return new ge(t=>t.error(e))}(new wP):M(u)))}(e,t,n,s.urlAfterRedirects,r.serialize(s.urlAfterRedirects),r,o,i).pipe(H(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),je(d=>{if(o.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const h=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(h,d)}this.browserUrlTree=d.urlAfterRedirects}const f=new DN(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);r.next(f)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:h,source:p,restoredState:g,extras:m}=a,v=new ed(f,this.serializeUrl(h),p,g);r.next(v);const w=wD(h,this.rootComponentType).snapshot;return M(o={...a,targetSnapshot:w,urlAfterRedirects:h,extras:{...m,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),Ut}),je(a=>{const u=new wN(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(u)}),H(a=>o={...a,guards:zN(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function tP(e,t){return xe(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?M({...n,guardsResult:!0}):function nP(e,t,n,r){return Ce(e).pipe(xe(o=>function uP(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?M(i.map(a=>{const u=si(t)??o,l=Gr(a,u);return Mn(function JN(e){return e&&li(e.canDeactivate)}(l)?l.canDeactivate(e,t,n,r):u.runInContext(()=>l(e,t,n,r))).pipe(bn())})).pipe(qr()):M(!0)}(o.component,o.route,n,t,r)),bn(o=>!0!==o,!0))}(s,r,o,e).pipe(xe(a=>a&&function KN(e){return"boolean"==typeof e}(a)?function rP(e,t,n,r){return Ce(t).pipe(In(o=>Uc(function iP(e,t){return null!==e&&t&&t(new SN(e)),M(!0)}(o.route.parent,r),function oP(e,t){return null!==e&&t&&t(new TN(e)),M(!0)}(o.route,r),function aP(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function GN(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>Wv(()=>M(s.guards.map(u=>{const l=si(s.node)??n,c=Gr(u,l);return Mn(function YN(e){return e&&li(e.canActivateChild)}(c)?c.canActivateChild(r,e):l.runInContext(()=>c(r,e))).pipe(bn())})).pipe(qr())));return M(i).pipe(qr())}(e,o.path,n),function sP(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return M(!0);const o=r.map(i=>Wv(()=>{const s=si(t)??n,a=Gr(i,s);return Mn(function QN(e){return e&&li(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(bn())}));return M(o).pipe(qr())}(e,o.route,n))),bn(o=>!0!==o,!0))}(r,i,e,t):M(a)),H(a=>({...n,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),je(a=>{if(o.guardsResult=a.guardsResult,Zn(a.guardsResult))throw bD(0,a.guardsResult);const u=new CN(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(u)}),sn(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),pd(a=>{if(a.guards.canActivateChecks.length)return M(a).pipe(je(u=>{const l=new _N(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}),$t(u=>{let l=!1;return M(u).pipe(function AP(e,t){return xe(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return M(n);let i=0;return Ce(o).pipe(In(s=>function xP(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!UD(o)&&(i[Jo]=o.title),function RP(e,t,n,r){const o=function NP(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return M({});const i={};return Ce(o).pipe(xe(s=>function PP(e,t,n,r){const o=si(t)??r,i=Gr(e,o);return Mn(i.resolve?i.resolve(t,n):o.runInContext(()=>i(t,n)))}(e[s],t,n,r).pipe(bn(),je(a=>{i[s]=a}))),Gc(1),function zR(e){return H(()=>e)}(i),Sn(s=>dd(s)?Ut:Qo(s)))}(i,e,t,r).pipe(H(s=>(e._resolvedData=s,e.data=CD(e,n).resolve,o&&UD(o)&&(e.data[Jo]=o.title),null)))}(s.route,r,e,t)),je(()=>i++),Gc(1),xe(s=>i===o.length?M(n):Ut))})}(this.paramsInheritanceStrategy,this.ngModule.injector),je({next:()=>l=!0,complete:()=>{l||(this.restoreHistory(u),this.cancelNavigationTransition(u,"",2))}}))}),je(u=>{const l=new EN(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}))}),pd(a=>{const u=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(je(d=>{l.component=d}),H(()=>{})));for(const d of l.children)c.push(...u(d));return c};return Gv(u(a.targetSnapshot.root)).pipe(qs(),Yo(1))}),pd(()=>this.afterPreactivation()),H(a=>{const u=function PN(e,t,n){const r=oi(e,t._root,n?n._root:void 0);return new DD(r,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return o={...a,targetRouterState:u}}),je(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((e,t,n)=>H(r=>(new UN(t,r.targetRouterState,r.currentRouterState,n).activate(e),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),je({next(){i=!0},complete(){i=!0}}),qc(()=>{i||s||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),Sn(a=>{if(s=!0,MD(a)){SD(a)||(this.navigated=!0,this.restoreHistory(o,!0));const u=new Xs(o.id,this.serializeUrl(o.extractedUrl),a.message,a.cancellationCode);if(r.next(u),SD(a)){const l=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),c={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||KD(o.source)};this.scheduleNavigation(l,"imperative",null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}else o.resolve(!1)}else{this.restoreHistory(o,!0);const u=new mD(o.id,this.serializeUrl(o.extractedUrl),a,o.targetSnapshot??void 0);r.next(u);try{o.resolve(this.errorHandler(a))}catch(l){o.reject(l)}}return Ut}))}))}resetRootComponentType(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}setTransition(n){this.transitions.next({...this.transitions.value,...n})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{const o={replaceUrl:!0},i=n.state?.navigationId?n.state:null;if(i){const a={...i};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}const s=this.parseUrl(n.url);this.scheduleNavigation(s,r,i,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(n){this.events.next(n)}resetConfig(n){this.config=n.map(cd),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,l=o||this.routerState.root,c=u?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...i};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=i||null}return null!==d&&(d=this.removeEmptyProps(d)),hN(l,this.currentUrlTree,n,d,c??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=Zn(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,r)}navigate(n,r={skipLocationChange:!1}){return function GP(e){for(let t=0;t{const i=n[o];return null!=i&&(r[o]=i),r},{})}processNavigations(){this.navigations.subscribe(n=>{this.navigated=!0,this.lastSuccessfulId=n.id,this.currentPageId=n.targetPageId,this.events.next(new Qn(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),n.resolve(!0)},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,u,l;s?(a=s.resolve,u=s.reject,l=s.promise):l=new Promise((f,h)=>{a=f,u=h});const c=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),d=o&&o.\u0275routerPageId?o.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:c,targetPageId:d,source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:i,resolve:a,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n),i={...r.extras.state,...this.generateNgRouterState(r.id,r.targetPageId)};this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl?this.location.replaceState(o,"",i):this.location.go(o,"",i)}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===o?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===o&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(n,r,o){const i=new Xs(n.id,this.serializeUrl(n.extractedUrl),r,o);this.triggerEvent(i),n.resolve(!1)}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){Yu()},e.\u0275prov=P({token:e,factory:function(){return WD()},providedIn:"root"}),e})();function KD(e){return"imperative"!==e}let da=(()=>{class e{constructor(n,r,o){this.router=n,this.route=r,this.locationStrategy=o,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new xt,this.subscription=n.events.subscribe(i=>{i instanceof Qn&&this.updateTargetUrlAndHref()})}set preserveFragment(n){this._preserveFragment=$r(n)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(n){this._skipLocationChange=$r(n)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(n){this._replaceUrl=$r(n)}get replaceUrl(){return this._replaceUrl}set routerLink(n){this.commands=null!=n?Array.isArray(n)?n:[n]:null}ngOnChanges(n){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(n,r,o,i,s){return!!(0!==n||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return e.\u0275fac=function(n){return new(n||e)(I(Ne),I(Yn),I(qn))},e.\u0275dir=Pe({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(n,r){1&n&&No("click",function(i){return r.onClick(i.button,i.ctrlKey,i.shiftKey,i.altKey,i.metaKey)}),2&n&&_l("target",r.target)("href",r.href,ku)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[Ln]}),e})();class ZD{}let KP=(()=>{class e{constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(sn(n=>n instanceof Qn),In(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=ys(i.providers,n,`Route: ${i.path}`));const s=i._injector??n,a=i._loadedInjector??s;i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent?o.push(this.preloadConfig(s,i)):(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return Ce(o).pipe(er())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):M(null);const i=o.pipe(xe(s=>null===s?M(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?Ce([i,this.loader.loadComponent(r)]).pipe(er()):i})}}return e.\u0275fac=function(n){return new(n||e)(b(Ne),b(rc),b(mn),b(ZD),b(md))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const vd=new x("");let QD=(()=>{class e{constructor(n,r,o={}){this.router=n,this.viewportScroller=r,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(n=>{n instanceof ed?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Qn&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.router.parseUrl(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(n=>{n instanceof yD&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.router.triggerEvent(new yD(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(n){Yu()},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();function ZP(e,...t){return[Dd(e),{provide:Yn,useFactory:YD,deps:[Ne]},{provide:nc,multi:!0,useFactory:JD},t.map(n=>n.\u0275providers)]}function YD(e){return e.routerState.root}function Wr(e,t){return{\u0275kind:e,\u0275providers:t}}function Dd(e){return[{provide:gd,multi:!0,useValue:e}]}function JD(){const e=fe(ft);return t=>{const n=e.get(bs);if(t!==n.components[0])return;const r=e.get(Ne),o=e.get(XD);1===e.get(wd)&&r.initialNavigation(),e.get(ew,null,A.Optional)?.setUpPreloading(),e.get(vd,null,A.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.unsubscribe())}}const XD=new x("",{factory:()=>new xt}),wd=new x("",{providedIn:"root",factory:()=>1});const ew=new x("");function XP(e){return Wr(0,[{provide:ew,useExisting:KP},{provide:ZD,useExisting:e}])}const tw=new x("ROUTER_FORROOT_GUARD"),e1=[Dc,{provide:sD,useClass:Kc},{provide:Ne,useFactory:WD},ii,{provide:Yn,useFactory:YD,deps:[Ne]},md];function t1(){return new Ry("Router",Ne)}let nw=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[e1,[],Dd(n),{provide:tw,useFactory:i1,deps:[[Ne,new mo,new yo]]},{provide:la,useValue:r||{}},r?.useHash?{provide:qn,useClass:tA}:{provide:qn,useClass:nv},{provide:vd,useFactory:()=>{const e=fe(Ne),t=fe(Cx),n=fe(la);return n.scrollOffset&&t.setOffset(n.scrollOffset),new QD(e,t,n)}},r?.preloadingStrategy?XP(r.preloadingStrategy).\u0275providers:[],{provide:Ry,multi:!0,useFactory:t1},r?.initialNavigation?s1(r):[],[{provide:rw,useFactory:JD},{provide:nc,multi:!0,useExisting:rw}]]}}static forChild(n){return{ngModule:e,providers:[Dd(n)]}}}return e.\u0275fac=function(n){return new(n||e)(b(tw,8))},e.\u0275mod=qt({type:e}),e.\u0275inj=Nt({imports:[ud]}),e})();function i1(e){return"guarded"}function s1(e){return["disabled"===e.initialNavigation?Wr(3,[{provide:Cs,multi:!0,useFactory:()=>{const t=fe(Ne);return()=>{t.setUpLocationChangeListener()}}},{provide:wd,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Wr(2,[{provide:wd,useValue:0},{provide:Cs,multi:!0,deps:[ft],useFactory:t=>{const n=t.get(XT,Promise.resolve());let r=!1;return()=>n.then(()=>new Promise(i=>{const s=t.get(Ne),a=t.get(XD);(function o(i){t.get(Ne).events.pipe(sn(a=>a instanceof Qn||a instanceof Xs||a instanceof mD),H(a=>a instanceof Qn||a instanceof Xs&&(0===a.code||1===a.code)&&null),sn(a=>null!==a),Yo(1)).subscribe(()=>{i()})})(()=>{i(!0),r=!0}),s.afterPreactivation=()=>(i(!0),r||a.closed?M(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const rw=new x(""),u1=[];let l1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=qt({type:e}),e.\u0275inj=Nt({imports:[nw.forRoot(u1),nw]}),e})(),c1=(()=>{class e{constructor(){this.title="DrumsPatternLibrary"}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-root"]],decls:33,vars:0,consts:[[1,"flex","main-container"],[1,"flex","column","left-menu"],[1,"header"],[1,"flex","menu"],["routerLink","/techno",1,"button"],["routerLink","/drum-n-bass",1,"button"],["routerLink","/garage",1,"button"],["routerLink","/metal",1,"button"],["routerLink","/rock",1,"button"],["routerLink","/rock-variation",1,"button"],["routerLink","/half-time-groove",1,"button"],["routerLink","/ebm",1,"button"],["routerLink","/gabber",1,"button"],[1,"content"]],template:function(n,r){1&n&&(Z(0,"div",0)(1,"div",1)(2,"div",2),ue(3," DRUMS"),ie(4,"br"),ue(5," PATTERN"),ie(6,"br"),ue(7," LIBRARY"),Y(),Z(8,"div",3)(9,"a",4),ue(10,"Techno"),Y(),Z(11,"a",5),ue(12,"Drum & Bass"),Y(),Z(13,"a",6),ue(14,"Garage - 2 step"),Y(),ie(15,"br"),Z(16,"a",7),ue(17,"Metal"),Y(),Z(18,"a",8),ue(19,"Rock"),Y(),Z(20,"a",9),ue(21,"Rock variation"),Y(),Z(22,"a",10),ue(23,"Half time groove"),Y(),ie(24,"br"),Z(25,"a",11),ue(26,"EBM"),Y(),Z(27,"a",12),ue(28,"Gabber"),Y()(),Z(29,"div"),ue(30,"Babali - 2023"),Y()(),Z(31,"div",13),ie(32,"router-outlet"),Y()())},dependencies:[ad,da],styles:[".flex[_ngcontent-%COMP%]{display:flex;height:100%}.menu[_ngcontent-%COMP%]{flex-direction:column;justify-content:center;align-content:center;text-align:right}.content[_ngcontent-%COMP%]{width:100%}.header[_ngcontent-%COMP%]{width:140px;font-size:30px}.column[_ngcontent-%COMP%]{flex-direction:column}.left-menu[_ngcontent-%COMP%]{border-right:solid 1px black}"]}),e})();class ow{constructor(t,n,r){this.name=t,this.bpm=n,this.tracks=r}}class iw{constructor(t,n,r){this.name=t,this.fileName=n,this.steps=r}}class Cd{static toBeat(t){let n=t.tracks.map(r=>Cd.toTrack(r));return new ow(t.name,t.bpm,n)}static toTrack(t){let n=t.steps.map(r=>r.trim()).map(r=>Boolean(r));return new iw(t.name,t.fileName,n)}}class sw{}class aw{}class ln{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(n=>{let r=t[n];const o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(o,r),this.maybeSetNormalizedName(n,o))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof ln?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new ln;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof ln?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=t.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class d1{encodeKey(t){return uw(t)}encodeValue(t){return uw(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const h1=/%(\d[a-f0-9])/gi,p1={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function uw(e){return encodeURIComponent(e).replace(h1,(t,n)=>p1[n]??t)}function pa(e){return`${e}`}class Tn{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new d1,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function f1(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],u=n.get(s)||[];u.push(a),n.set(s,u)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(pa):[pa(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new Tn({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(pa(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(pa(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class g1{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function lw(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function cw(e){return typeof Blob<"u"&&e instanceof Blob}function dw(e){return typeof FormData<"u"&&e instanceof FormData}class di{constructor(t,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function m1(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new ln),this.context||(this.context=new g1),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":ad.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),l)),new di(n,r,i,{params:l,headers:u,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var we=(()=>((we=we||{})[we.Sent=0]="Sent",we[we.UploadProgress=1]="UploadProgress",we[we.ResponseHeader=2]="ResponseHeader",we[we.DownloadProgress=3]="DownloadProgress",we[we.Response=4]="Response",we[we.User=5]="User",we))();class _d{constructor(t,n=200,r="OK"){this.headers=t.headers||new ln,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Ed extends _d{constructor(t={}){super(t),this.type=we.ResponseHeader}clone(t={}){return new Ed({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class ga extends _d{constructor(t={}){super(t),this.type=we.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new ga({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class fw extends _d{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function bd(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let hw=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof di)i=n;else{let u,l;u=o.headers instanceof ln?o.headers:new ln(o.headers),o.params&&(l=o.params instanceof Tn?o.params:new Tn({fromObject:o.params})),i=new di(n,r,void 0!==o.body?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=M(i).pipe(In(u=>this.handler.handle(u)));if(n instanceof di||"events"===o.observe)return s;const a=s.pipe(sn(u=>u instanceof ga));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(H(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return a.pipe(H(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return a.pipe(H(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return a.pipe(H(u=>u.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new Tn).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,bd(o,r))}post(n,r,o={}){return this.request("POST",n,bd(o,r))}put(n,r,o={}){return this.request("PUT",n,bd(o,r))}}return e.\u0275fac=function(n){return new(n||e)(b(sw))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();class pw{constructor(t,n){this.next=t,this.interceptor=n}handle(t){return this.interceptor.intercept(t,this.next)}}const gw=new x("HTTP_INTERCEPTORS");let v1=(()=>{class e{intercept(n,r){return r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const D1=/^\)\]\}',?\n/;let mw=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ge(r=>{const o=this.xhrFactory.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((h,p)=>o.setRequestHeader(h,p.join(","))),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const h=n.detectContentTypeHeader();null!==h&&o.setRequestHeader("Content-Type",h)}if(n.responseType){const h=n.responseType.toLowerCase();o.responseType="json"!==h?h:"text"}const i=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=o.statusText||"OK",p=new ln(o.getAllResponseHeaders()),g=function w1(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(o)||n.url;return s=new Ed({headers:p,status:o.status,statusText:h,url:g}),s},u=()=>{let{headers:h,status:p,statusText:g,url:m}=a(),v=null;204!==p&&(v=typeof o.response>"u"?o.responseText:o.response),0===p&&(p=v?200:0);let w=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof v){const y=v;v=v.replace(D1,"");try{v=""!==v?JSON.parse(v):null}catch(S){v=y,w&&(w=!1,v={error:S,text:v})}}w?(r.next(new ga({body:v,headers:h,status:p,statusText:g,url:m||void 0})),r.complete()):r.error(new fw({error:v,headers:h,status:p,statusText:g,url:m||void 0}))},l=h=>{const{url:p}=a(),g=new fw({error:h,status:o.status||0,statusText:o.statusText||"Unknown Error",url:p||void 0});r.error(g)};let c=!1;const d=h=>{c||(r.next(a()),c=!0);let p={type:we.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===n.responseType&&!!o.responseText&&(p.partialText=o.responseText),r.next(p)},f=h=>{let p={type:we.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return o.addEventListener("load",u),o.addEventListener("error",l),o.addEventListener("timeout",l),o.addEventListener("abort",l),n.reportProgress&&(o.addEventListener("progress",d),null!==i&&o.upload&&o.upload.addEventListener("progress",f)),o.send(i),r.next({type:we.Sent}),()=>{o.removeEventListener("error",l),o.removeEventListener("abort",l),o.removeEventListener("load",u),o.removeEventListener("timeout",l),n.reportProgress&&(o.removeEventListener("progress",d),null!==i&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return e.\u0275fac=function(n){return new(n||e)(b(_v))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const Id=new x("XSRF_COOKIE_NAME"),Sd=new x("XSRF_HEADER_NAME");class yw{}let C1=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=fv(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(b(Ke),b(tc),b(Id))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})(),Md=(()=>{class e{constructor(n,r){this.tokenService=n,this.headerName=r}intercept(n,r){const o=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||o.startsWith("http://")||o.startsWith("https://"))return r.handle(n);const i=this.tokenService.getToken();return null!==i&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,i)})),r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(b(yw),b(Sd))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})(),_1=(()=>{class e{constructor(n,r){this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=this.injector.get(gw,[]);this.chain=r.reduceRight((o,i)=>new pw(o,i),this.backend)}return this.chain.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(b(aw),b(ft))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})(),E1=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:Md,useClass:v1}]}}static withOptions(n={}){return{ngModule:e,providers:[n.cookieName?{provide:Id,useValue:n.cookieName}:[],n.headerName?{provide:Sd,useValue:n.headerName}:[]]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=qt({type:e}),e.\u0275inj=Nt({providers:[Md,{provide:gw,useExisting:Md,multi:!0},{provide:yw,useClass:C1},{provide:Id,useValue:"XSRF-TOKEN"},{provide:Sd,useValue:"X-XSRF-TOKEN"}]}),e})(),b1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=qt({type:e}),e.\u0275inj=Nt({providers:[hw,{provide:sw,useClass:_1},mw,{provide:aw,useExisting:mw}],imports:[E1.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),e})(),I1=(()=>{class e{constructor(n){this.http=n,this.apiUrl="assets/beats/",this.fileExtension=".json"}getData(n){return this.http.get(this.apiUrl+n+this.fileExtension)}}return e.\u0275fac=function(n){return new(n||e)(b(hw))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function vw(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)}class M1{constructor(t){this.fileName=t}}let T1=(()=>{class e{constructor(){this.bpm=120,this.isPlaying=!1,this.samples=[],this.tracks=[],this.ms=this.getMillisStepFromBpm(),this.audioCtx=new AudioContext,this.index=0,this.scheduler()}playPause(){this.isPlaying=!this.isPlaying}scheduler(){this.isPlaying&&(this.playSamples(this.index),this.index<15?this.index++:this.index=0),setTimeout(()=>{this.scheduler()},this.ms)}getMillisStepFromBpm(){let r=6e4/this.bpm/4;return r=Math.min(r,1e3),r=Math.max(r,10),r}playSamples(n){this.tracks.forEach(r=>{r.steps[n]&&this.playSound(this.samples.find(o=>o.fileName===r.fileName).sample)})}playSound(n){let r=this.audioCtx.createBufferSource();r.buffer=n,r.connect(this.audioCtx.destination),r.start(0)}reset(){this.isPlaying=!1,this.index=0}setBpm(n){this.bpm=n,this.ms=this.getMillisStepFromBpm()}setTracks(n){this.tracks=n;let r=n.map(o=>o.fileName);this.loadTracks(r)}loadTracks(n){n.forEach(r=>this.samples.push(new M1(r))),this.samples.forEach(r=>{this.getAudioBuffer(r.fileName).then(o=>{r.sample=o})})}getAudioBuffer(n){var r=this;return function S1(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(u){vw(i,r,o,s,a,"next",u)}function a(u){vw(i,r,o,s,a,"throw",u)}s(void 0)})}}(function*(){let o=new Request(`assets/sounds/${n}`);const s=yield(yield fetch(o)).arrayBuffer();return yield r.audioCtx.decodeAudioData(s).then(a=>a)})()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function A1(e,t){if(1&e&&ie(0,"div",4),2&e){const n=t.$implicit,r=t.index,o=Ml();Al("active",n)("current",r===o.currentStepIndex)}}let x1=(()=>{class e{constructor(){this.track=new iw("","",[]),this.currentStepIndex=0,this.steps=[],this.name=""}ngOnInit(){this.name=this.track.name,this.steps=this.track.steps}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-track"]],inputs:{track:"track",currentStepIndex:["current-step-index","currentStepIndex"]},decls:6,vars:2,consts:[["id","track-container"],[1,"track-name"],["id","track"],["class","step",3,"active","current",4,"ngFor","ngForOf"],[1,"step"]],template:function(n,r){1&n&&(Z(0,"div",0)(1,"div",1)(2,"div"),ue(3),Y()(),Z(4,"div",2),El(5,A1,1,4,"div",3),Y()()),2&n&&(vn(3),Oo(r.name),vn(2),Ro("ngForOf",r.steps))},dependencies:[Ac],styles:["#track-container[_ngcontent-%COMP%]{display:flex;margin:4px 0 0}#track[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(16,1fr);grid-template-rows:repeat(1,1fr);gap:4px}.step[_ngcontent-%COMP%]{height:40px;width:40px;background-color:#fff;border-radius:4px;cursor:pointer;border:solid 1px black}.active[_ngcontent-%COMP%]{background-color:#003b8f}.track-name[_ngcontent-%COMP%]{text-align:end;height:40px;width:50px;min-width:50px;margin-right:10px}.current[_ngcontent-%COMP%]{filter:invert(15%) saturate(10%)}"]}),e})();function R1(e,t){if(1&e&&(Z(0,"div"),ie(1,"app-track",7),Y()),2&e){const n=t.$implicit,r=Ml();vn(1),Ro("track",n)("current-step-index",r.soundService.index)}}let Jn=(()=>{class e{constructor(n,r){this.dataService=n,this.soundService=r,this.fileName="",this.beat=new ow("",120,[])}ngOnInit(){this.dataService.getData(this.fileName).subscribe(n=>{this.beat=Cd.toBeat(n),this.soundService.reset(),this.soundService.setBpm(this.beat.bpm),this.soundService.setTracks(this.beat.tracks)})}toggleIsPlaying(){this.soundService.playPause()}}return e.\u0275fac=function(n){return new(n||e)(I(I1),I(T1))},e.\u0275cmp=Ve({type:e,selectors:[["sequencer"]],inputs:{fileName:"fileName"},decls:14,vars:6,consts:[[1,"sequencer"],[1,"sequencer-header"],[1,"space"],[1,"play-pause-button",3,"click"],[1,"beat-name"],[1,"sequencer-grid"],[4,"ngFor","ngForOf"],[3,"track","current-step-index"]],template:function(n,r){1&n&&(Z(0,"div",0)(1,"div",1),ie(2,"div",2),Z(3,"button",3),No("click",function(){return r.toggleIsPlaying()}),ue(4),Y(),ie(5,"div",2),Z(6,"div",4),ue(7),function Zm(e,t){const n=z();let r;const o=e+22;n.firstCreatePass?(r=function SM(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=kn(r.type)),s=lt(I);try{const a=Pi(!1),u=i();return Pi(a),function hI(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,D(),o,u),u}finally{lt(s)}}(8,"titlecase"),Y(),ie(9,"div",2),Z(10,"div",4),ue(11),Y()(),Z(12,"div",5),El(13,R1,2,2,"div",6),Y()()),2&n&&(vn(4),Oo(r.soundService.isPlaying?"\u23f8":"\u25b6"),vn(3),Oo(Qm(8,4,r.beat.name)),vn(4),fs("",r.beat.bpm," bpm"),vn(2),Ro("ngForOf",r.beat.tracks))},dependencies:[Ac,x1,vv],styles:[".play-pause-button[_ngcontent-%COMP%]{height:40px;width:40px;min-width:40px;background-color:#000;color:#fff;border-radius:4px;cursor:pointer;border:solid 2px black;font-size:20px}.sequencer-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column}.sequencer-header[_ngcontent-%COMP%]{display:flex}.space[_ngcontent-%COMP%]{width:60px;min-width:60px}.sequencer[_ngcontent-%COMP%]{display:flex;flex-direction:column}.beat-name[_ngcontent-%COMP%]{height:40px;text-align:center;vertical-align:middle;width:120px;min-width:120px;font-size:20px}"]}),e})();const N1=[{path:"techno",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-techno"]],decls:9,vars:0,consts:[["href","https://www.studiobrootle.com/techno-drum-patterns-and-drum-programming-tips/"],["href","https://www.aulart.com/blog/create-a-909-dark-techno-pattern-2/"],["fileName","techno"]],template:function(n,r){1&n&&(Z(0,"h1"),ue(1,"Techno drums patterns"),Y(),Z(2,"a",0),ue(3,"Techno drum patterns"),Y(),ie(4,"br"),Z(5,"a",1),ue(6,"Dark techno pattern"),Y(),ie(7,"br")(8,"sequencer",2))},dependencies:[Jn]}),e})()},{path:"metal",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-metal"]],decls:3,vars:0,consts:[["fileName","metal"]],template:function(n,r){1&n&&(Z(0,"h1"),ue(1,"Metal drums patterns"),Y(),ie(2,"sequencer",0))},dependencies:[Jn]}),e})()},{path:"rock",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-rock"]],decls:1,vars:0,consts:[["fileName","rock-beat"]],template:function(n,r){1&n&&ie(0,"sequencer",0)},dependencies:[Jn]}),e})()},{path:"rock-variation",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-rock-variation"]],decls:1,vars:0,consts:[["fileName","rock-beat-variation"]],template:function(n,r){1&n&&ie(0,"sequencer",0)},dependencies:[Jn]}),e})()},{path:"half-time-groove",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-half-time-groove"]],decls:1,vars:0,consts:[["fileName","half-time-groove"]],template:function(n,r){1&n&&ie(0,"sequencer",0)},dependencies:[Jn]}),e})()},{path:"drum-n-bass",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-drum-n-bass"]],decls:1,vars:0,consts:[["fileName","drum-n-bass"]],template:function(n,r){1&n&&ie(0,"sequencer",0)},dependencies:[Jn]}),e})()},{path:"garage",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-garage"]],decls:1,vars:0,consts:[["fileName","garage"]],template:function(n,r){1&n&&ie(0,"sequencer",0)},dependencies:[Jn]}),e})()},{path:"gabber",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-gabber"]],decls:3,vars:0,consts:[["width","560","height","315","src","https://www.youtube.com/embed/Vz9OhBrarAE?si=XLq2pZZjkxNTfCt-","title","YouTube video player","frameborder","0","allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share","allowfullscreen",""],["width","560","height","315","src","https://www.youtube.com/embed/MqnoSMk2qPc?si=XNyYReufCF_-lUqS","title","YouTube video player","frameborder","0","allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share","allowfullscreen",""]],template:function(n,r){1&n&&ie(0,"iframe",0)(1,"br")(2,"iframe",1)}}),e})()},{path:"ebm",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ve({type:e,selectors:[["app-ebm"]],decls:6,vars:0,consts:[["width","560","height","315","src","https://www.youtube.com/embed/JtvyXf0Q2ug?si=g2pHeC_EU_2wjSO0","title","YouTube video player","frameborder","0","allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share","allowfullscreen",""],["width","560","height","315","src","https://www.youtube.com/embed/G3qsp8vZn0g?si=BySVdOLEu07nXXSv","title","YouTube video player","frameborder","0","allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share","allowfullscreen",""]],template:function(n,r){1&n&&(Z(0,"h1"),ue(1,"EBM Drums Patterns"),Y(),Z(2,"div"),ie(3,"iframe",0),Y(),Z(4,"div"),ie(5,"iframe",1),Y())}}),e})()}];let P1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=qt({type:e,bootstrap:[c1]}),e.\u0275inj=Nt({providers:[ZP(N1)],imports:[vR,l1,b1]}),e})();(function NT(){By=!1})(),yR().bootstrapModule(P1).catch(e=>console.error(e))}},ee=>{ee(ee.s=137)}]); \ No newline at end of file