-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.737d197b7b019d81ab7c.js
1 lines (1 loc) · 199 KB
/
main.737d197b7b019d81ab7c.js
1
(self.webpackChunkangular_game=self.webpackChunkangular_game||[]).push([[179],{255:Ri=>{function Cn(xi){return Promise.resolve().then(()=>{var tn=new Error("Cannot find module '"+xi+"'");throw tn.code="MODULE_NOT_FOUND",tn})}Cn.keys=()=>[],Cn.resolve=Cn,Cn.id=255,Ri.exports=Cn},84:(Ri,Cn,xi)=>{"use strict";function tn(t){return"function"==typeof t}let cu=!1;const Et={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else cu&&console.log("RxJS: Back to a better error behavior. Thank you. <3");cu=t},get useDeprecatedSynchronousErrorHandling(){return cu}};function gr(t){setTimeout(()=>{throw t},0)}const Js={closed:!0,next(t){},error(t){if(Et.useDeprecatedSynchronousErrorHandling)throw t;gr(t)},complete(){}},Cf=Array.isArray||(t=>t&&"number"==typeof t.length);function Df(t){return null!==t&&"object"==typeof t}const Xs=(()=>{function t(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return t.prototype=Object.create(Error.prototype),t})();class ue{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:i,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof ue)n.remove(this);else if(null!==n)for(let o=0;o<n.length;++o)n[o].remove(this);if(tn(i)){r&&(this._unsubscribe=void 0);try{i.call(this)}catch(o){e=o instanceof Xs?Ef(o.errors):[o]}}if(Cf(s)){let o=-1,a=s.length;for(;++o<a;){const u=s[o];if(Df(u))try{u.unsubscribe()}catch(l){e=e||[],l instanceof Xs?e=e.concat(Ef(l.errors)):e.push(l)}}}if(e)throw new Xs(e)}add(e){let n=e;if(!e)return ue.EMPTY;switch(typeof e){case"function":n=new ue(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof ue)){const s=n;n=new ue,n._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof ue){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n}remove(e){const n=this._subscriptions;if(n){const r=n.indexOf(e);-1!==r&&n.splice(r,1)}}}var t;function Ef(t){return t.reduce((e,n)=>e.concat(n instanceof Xs?n.errors:n),[])}ue.EMPTY=((t=new ue).closed=!0,t);const eo="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class ie extends ue{constructor(e,n,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Js;break;case 1:if(!e){this.destination=Js;break}if("object"==typeof e){e instanceof ie?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new vf(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new vf(this,e,n,r)}}[eo](){return this}static create(e,n,r){const i=new ie(e,n,r);return i.syncErrorThrowable=!1,i}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class vf extends ie{constructor(e,n,r,i){super(),this._parentSubscriber=e;let s,o=this;tn(n)?s=n:n&&(s=n.next,r=n.error,i=n.complete,n!==Js&&(o=Object.create(n),tn(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=r,this._complete=i}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:n}=this;Et.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:r}=Et;if(this._error)r&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)r?(n.syncErrorValue=e,n.syncErrorThrown=!0):gr(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;gr(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const n=()=>this._complete.call(this._context);Et.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,n){try{e.call(this._context,n)}catch(r){if(this.unsubscribe(),Et.useDeprecatedSynchronousErrorHandling)throw r;gr(r)}}__tryOrSetError(e,n,r){if(!Et.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,r)}catch(i){return Et.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(gr(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Pi="function"==typeof Symbol&&Symbol.observable||"@@observable";function to(t){return t}let se=(()=>{class t{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,i){const{operator:s}=this,o=function(t,e,n){if(t){if(t instanceof ie)return t;if(t[eo])return t[eo]()}return t||e||n?new ie(t,e,n):new ie(Js)}(n,r,i);if(o.add(s?s.call(o,this.source):this.source||Et.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),Et.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){Et.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=r),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof ie?n:null}return!0}(n)?n.error(r):console.warn(r)}}forEach(n,r){return new(r=wf(r))((i,s)=>{let o;o=this.subscribe(a=>{try{n(a)}catch(u){s(u),o&&o.unsubscribe()}},s,i)})}_subscribe(n){const{source:r}=this;return r&&r.subscribe(n)}[Pi](){return this}pipe(...n){return 0===n.length?this:function(t){return 0===t.length?to:1===t.length?t[0]:function(n){return t.reduce((r,i)=>i(r),n)}}(n)(this)}toPromise(n){return new(n=wf(n))((r,i)=>{let s;this.subscribe(o=>s=o,o=>i(o),()=>r(s))})}}return t.create=e=>new t(e),t})();function wf(t){if(t||(t=Et.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const mr=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class nE extends ue{constructor(e,n){super(),this.subject=e,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,n=e.observers;if(this.subject=null,!n||0===n.length||e.isStopped||e.closed)return;const r=n.indexOf(this.subscriber);-1!==r&&n.splice(r,1)}}class If extends ie{constructor(e){super(e),this.destination=e}}let nn=(()=>{class t extends se{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[eo](){return new If(this)}lift(n){const r=new Tf(this,this);return r.operator=n,r}next(n){if(this.closed)throw new mr;if(!this.isStopped){const{observers:r}=this,i=r.length,s=r.slice();for(let o=0;o<i;o++)s[o].next(n)}}error(n){if(this.closed)throw new mr;this.hasError=!0,this.thrownError=n,this.isStopped=!0;const{observers:r}=this,i=r.length,s=r.slice();for(let o=0;o<i;o++)s[o].error(n);this.observers.length=0}complete(){if(this.closed)throw new mr;this.isStopped=!0;const{observers:n}=this,r=n.length,i=n.slice();for(let s=0;s<r;s++)i[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(n){if(this.closed)throw new mr;return super._trySubscribe(n)}_subscribe(n){if(this.closed)throw new mr;return this.hasError?(n.error(this.thrownError),ue.EMPTY):this.isStopped?(n.complete(),ue.EMPTY):(this.observers.push(n),new nE(this,n))}asObservable(){const n=new se;return n.source=this,n}}return t.create=(e,n)=>new Tf(e,n),t})();class Tf extends nn{constructor(e,n){super(),this.destination=e,this.source=n}next(e){const{destination:n}=this;n&&n.next&&n.next(e)}error(e){const{destination:n}=this;n&&n.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:n}=this;return n?this.source.subscribe(e):ue.EMPTY}}function no(t){return t&&"function"==typeof t.schedule}function te(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new rE(t,e))}}class rE{constructor(e,n){this.project=e,this.thisArg=n}call(e,n){return n.subscribe(new iE(e,this.project,this.thisArg))}}class iE extends ie{constructor(e,n,r){super(e),this.project=n,this.count=0,this.thisArg=r||this}_next(e){let n;try{n=this.project.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(n)}}const Sf=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()},ro="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",Mf=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Af(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const du=t=>{if(t&&"function"==typeof t[Pi])return(t=>e=>{const n=t[Pi]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if(Mf(t))return Sf(t);if(Af(t))return(t=>e=>(t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,gr),e))(t);if(t&&"function"==typeof t[ro])return(t=>e=>{const n=t[ro]();for(;;){let r;try{r=n.next()}catch(i){return e.error(i),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const n=`You provided ${Df(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function fu(t,e){return new se(n=>{const r=new ue;let i=0;return r.add(e.schedule(function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function ke(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[Pi]}(t))return function(t,e){return new se(n=>{const r=new ue;return r.add(e.schedule(()=>{const i=t[Pi]();r.add(i.subscribe({next(s){r.add(e.schedule(()=>n.next(s)))},error(s){r.add(e.schedule(()=>n.error(s)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(Af(t))return function(t,e){return new se(n=>{const r=new ue;return r.add(e.schedule(()=>t.then(i=>{r.add(e.schedule(()=>{n.next(i),r.add(e.schedule(()=>n.complete()))}))},i=>{r.add(e.schedule(()=>n.error(i)))}))),r})}(t,e);if(Mf(t))return fu(t,e);if(function(t){return t&&"function"==typeof t[ro]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new se(n=>{const r=new ue;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(e.schedule(()=>{i=t[ro](),r.add(e.schedule(function(){if(n.closed)return;let s,o;try{const a=i.next();s=a.value,o=a.done}catch(a){return void n.error(a)}o?n.complete():(n.next(s),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof se?t:new se(du(t))}class hu extends ie{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class pu extends ie{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function gu(t,e){if(e.closed)return;if(t instanceof se)return t.subscribe(e);let n;try{n=du(t)(e)}catch(r){e.error(r)}return n}function Se(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(Se((i,s)=>ke(t(i,s)).pipe(te((o,a)=>e(i,o,s,a))),n)):("number"==typeof e&&(n=e),r=>r.lift(new gE(t,n)))}class gE{constructor(e,n=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=n}call(e,n){return n.subscribe(new mE(e,this.project,this.concurrent))}}class mE extends pu{constructor(e,n,r=Number.POSITIVE_INFINITY){super(e),this.project=n,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let n;const r=this.index++;try{n=this.project(e,r)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(n)}_innerSub(e){const n=new hu(this),r=this.destination;r.add(n);const i=gu(e,n);i!==n&&r.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Ni(t=Number.POSITIVE_INFINITY){return Se(to,t)}function mu(t,e){return e?fu(t,e):new se(Sf(t))}function yu(){return function(e){return e.lift(new _E(e))}}class _E{constructor(e){this.connectable=e}call(e,n){const{connectable:r}=this;r._refCount++;const i=new CE(e,r),s=n.subscribe(i);return i.closed||(i.connection=r.connect()),s}}class CE extends ie{constructor(e,n){super(e),this.connectable=n}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const n=e._refCount;if(n<=0)return void(this.connection=null);if(e._refCount=n-1,n>1)return void(this.connection=null);const{connection:r}=this,i=e._connection;this.connection=null,i&&(!r||i===r)&&i.unsubscribe()}}class Rf extends se{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new ue,e.add(this.source.subscribe(new EE(this.getSubject(),this))),e.closed&&(this._connection=null,e=ue.EMPTY)),e}refCount(){return yu()(this)}}const DE=(()=>{const t=Rf.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class EE extends If{constructor(e,n){super(e),this.connectable=n}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const n=e._connection;e._refCount=0,e._subject=null,e._connection=null,n&&n.unsubscribe()}}}function IE(){return new nn}function Q(t){for(let e in t)if(t[e]===Q)return e;throw Error("Could not find renamed property on target object.")}function V(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(V).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function Cu(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const SE=Q({__forward_ref__:Q});function Du(t){return t.__forward_ref__=Du,t.toString=function(){return V(this())},t}function I(t){return function(t){return"function"==typeof t&&t.hasOwnProperty(SE)&&t.__forward_ref__===Du}(t)?t():t}class Un extends Error{constructor(e,n){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(e,n)),this.code=e}}function O(t){return"string"==typeof t?t:null==t?"":String(t)}function Le(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():O(t)}function io(t,e){const n=e?` in ${e}`:"";throw new Un("201",`No provider for ${Le(t)} found${n}`)}function Ye(t,e){null==t&&function(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}(e,t,null,"!=")}function B(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function sn(t){return{providers:t.providers||[],imports:t.imports||[]}}function on(t){return Pf(t,so)||Pf(t,Of)}function Pf(t,e){return t.hasOwnProperty(e)?t[e]:null}function Nf(t){return t&&(t.hasOwnProperty(vu)||t.hasOwnProperty(OE))?t[vu]:null}const so=Q({\u0275prov:Q}),vu=Q({\u0275inj:Q}),Of=Q({ngInjectableDef:Q}),OE=Q({ngInjectorDef:Q});var S=(()=>((S=S||{})[S.Default=0]="Default",S[S.Host=1]="Host",S[S.Self=2]="Self",S[S.SkipSelf=4]="SkipSelf",S[S.Optional=8]="Optional",S))();let bu;function Dn(t){const e=bu;return bu=t,e}function Ff(t,e,n){const r=on(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&S.Optional?null:void 0!==e?e:void io(V(t),"Injector")}function En(t){return{toString:t}.toString()}var ot=(()=>((ot=ot||{})[ot.OnPush=0]="OnPush",ot[ot.Default=1]="Default",ot))(),_e=(()=>((_e=_e||{})[_e.Emulated=0]="Emulated",_e[_e.None=2]="None",_e[_e.ShadowDom=3]="ShadowDom",_e))();const kE="undefined"!=typeof globalThis&&globalThis,LE="undefined"!=typeof window&&window,VE="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,jE="undefined"!=typeof global&&global,K=kE||jE||LE||VE,yr={},Y=[],oo=Q({\u0275cmp:Q}),wu=Q({\u0275dir:Q}),Iu=Q({\u0275pipe:Q}),kf=Q({\u0275mod:Q}),BE=Q({\u0275loc:Q}),an=Q({\u0275fac:Q}),Oi=Q({__NG_ELEMENT_ID__:Q});let HE=0;function ao(t){return En(()=>{const n={},r={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===ot.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Y,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||_e.Emulated,id:"c",styles:t.styles||Y,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,o=t.pipes;return r.id+=HE++,r.inputs=Bf(t.inputs,n),r.outputs=Bf(t.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(Lf):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(Vf):null,r})}function Lf(t){return Ve(t)||function(t){return t[wu]||null}(t)}function Vf(t){return function(t){return t[Iu]||null}(t)}const jf={};function $n(t){return En(()=>{const e={type:t.type,bootstrap:t.bootstrap||Y,declarations:t.declarations||Y,imports:t.imports||Y,exports:t.exports||Y,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(jf[t.id]=t.type),e})}function Bf(t,e){if(null==t)return yr;const n={};for(const r in t)if(t.hasOwnProperty(r)){let i=t[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),n[i]=r,e&&(e[i]=s)}return n}const Re=ao;function Ve(t){return t[oo]||null}function at(t,e){const n=t[kf]||null;if(!n&&!0===e)throw new Error(`Type ${V(t)} does not have '\u0275mod' property.`);return n}const k=11,X=20;function Bt(t){return Array.isArray(t)&&"object"==typeof t[1]}function bt(t){return Array.isArray(t)&&!0===t[1]}function Mu(t){return 0!=(8&t.flags)}function fo(t){return 2==(2&t.flags)}function ho(t){return 1==(1&t.flags)}function wt(t){return null!==t.template}function QE(t){return 0!=(512&t[2])}function Qn(t,e){return t.hasOwnProperty(an)?t[an]:null}class Uf{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function $f(t){return t.type.prototype.ngOnChanges&&(t.setInput=JE),YE}function YE(){const t=Gf(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===yr)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function JE(t,e,n,r){const i=Gf(t)||function(t,e){return t[Wf]=e}(t,{previous:yr,current:null}),s=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[n],u=o[a];s[a]=new Uf(u&&u.currentValue,e,o===yr),t[r]=e}const Wf="__ngSimpleChanges__";function Gf(t){return t[Wf]||null}let xu;function le(t){return!!t.listen}const Qf={createRenderer:(t,e)=>void 0!==xu?xu:"undefined"!=typeof document?document:void 0};function pe(t){for(;Array.isArray(t);)t=t[0];return t}function ct(t,e){return pe(e[t.index])}function Nu(t,e){return t.data[e]}function Xe(t,e){const n=e[t];return Bt(n)?n:n[0]}function Ou(t){return 128==(128&t[2])}function bn(t,e){return null==e?null:t[e]}function Zf(t){t[18]=0}function Fu(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const R={lFrame:ih(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Yf(){return R.bindingsEnabled}function C(){return R.lFrame.lView}function G(){return R.lFrame.tView}function Ce(){let t=Jf();for(;null!==t&&64===t.type;)t=t.parent;return t}function Jf(){return R.lFrame.currentTNode}function Ht(t,e){const n=R.lFrame;n.currentTNode=t,n.isParent=e}function ku(){return R.lFrame.isParent}function go(){return R.isInCheckNoChangesMode}function mo(t){R.isInCheckNoChangesMode=t}function br(){return R.lFrame.bindingIndex++}function pv(t,e){const n=R.lFrame;n.bindingIndex=n.bindingRootIndex=t,Vu(e)}function Vu(t){R.lFrame.currentDirectiveIndex=t}function Bu(t){R.lFrame.currentQueryIndex=t}function mv(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function nh(t,e,n){if(n&S.SkipSelf){let i=e,s=t;for(;!(i=i.parent,null!==i||n&S.Host||(i=mv(s),null===i||(s=s[15],10&i.type))););if(null===i)return!1;e=i,t=s}const r=R.lFrame=rh();return r.currentTNode=e,r.lView=t,!0}function yo(t){const e=rh(),n=t[1];R.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function rh(){const t=R.lFrame,e=null===t?null:t.child;return null===e?ih(t):e}function ih(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function sh(){const t=R.lFrame;return R.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const oh=sh;function _o(){const t=sh();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Be(){return R.lFrame.selectedIndex}function wn(t){R.lFrame.selectedIndex=t}function Co(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const s=t.data[n].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:u,ngAfterViewChecked:l,ngOnDestroy:c}=s;o&&(t.contentHooks||(t.contentHooks=[])).push(-n,o),a&&((t.contentHooks||(t.contentHooks=[])).push(n,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,a)),u&&(t.viewHooks||(t.viewHooks=[])).push(-n,u),l&&((t.viewHooks||(t.viewHooks=[])).push(n,l),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,l)),null!=c&&(t.destroyHooks||(t.destroyHooks=[])).push(n,c)}}function Do(t,e,n){ah(t,e,3,n)}function Eo(t,e,n,r){(3&t[2])===n&&ah(t,e,n,r)}function Hu(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function ah(t,e,n,r){const s=null!=r?r:-1,o=e.length-1;let a=0;for(let u=void 0!==r?65535&t[18]:0;u<o;u++)if("number"==typeof e[u+1]){if(a=e[u],null!=r&&a>=r)break}else e[u]<0&&(t[18]+=65536),(a<s||-1==s)&&(Iv(t,n,e,u),t[18]=(4294901760&t[18])+u+2),u++}function Iv(t,e,n,r){const i=n[r]<0,s=n[r+1],a=t[i?-n[r]:n[r]];if(i){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class ji{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function vo(t,e,n){const r=le(t);let i=0;for(;i<n.length;){const s=n[i];if("number"==typeof s){if(0!==s)break;i++;const o=n[i++],a=n[i++],u=n[i++];r?t.setAttribute(e,a,u,o):e.setAttributeNS(o,a,u)}else{const o=s,a=n[++i];$u(o)?r&&t.setProperty(e,o,a):r?t.setAttribute(e,o,a):e.setAttribute(o,a),i++}}return i}function uh(t){return 3===t||4===t||6===t}function $u(t){return 64===t.charCodeAt(0)}function bo(t,e){if(null!==e&&0!==e.length)if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const i=e[r];"number"==typeof i?n=i:0===n||lh(t,n,i,null,-1===n||2===n?e[++r]:null)}}return t}function lh(t,e,n,r,i){let s=0,o=t.length;if(-1===e)o=-1;else for(;s<t.length;){const a=t[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<t.length;){const a=t[s];if("number"==typeof a)break;if(a===n){if(null===r)return void(null!==i&&(t[s+1]=i));if(r===t[s+1])return void(t[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==o&&(t.splice(o,0,e),s=o+1),t.splice(s++,0,n),null!==r&&t.splice(s++,0,r),null!==i&&t.splice(s++,0,i)}function ch(t){return-1!==t}function wr(t){return 32767&t}function Ir(t,e){let n=function(t){return t>>16}(t),r=e;for(;n>0;)r=r[15],n--;return r}let Wu=!0;function wo(t){const e=Wu;return Wu=t,e}let xv=0;function Hi(t,e){const n=qu(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,Gu(r.data,t),Gu(e,null),Gu(r.blueprint,null));const i=Io(t,e),s=t.injectorIndex;if(ch(i)){const o=wr(i),a=Ir(i,e),u=a[1].data;for(let l=0;l<8;l++)e[s+l]=a[o+l]|u[o+l]}return e[s+8]=i,s}function Gu(t,e){t.push(0,0,0,0,0,0,0,0,e)}function qu(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Io(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;null!==i;){const s=i[1],o=s.type;if(r=2===o?s.declTNode:1===o?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function To(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Oi)&&(r=n[Oi]),null==r&&(r=n[Oi]=xv++);const i=255&r;e.data[t+(i>>5)]|=1<<i}(t,e,n)}function hh(t,e,n){if(n&S.Optional)return t;io(e,"NodeInjector")}function ph(t,e,n,r){if(n&S.Optional&&void 0===r&&(r=null),0==(n&(S.Self|S.Host))){const i=t[9],s=Dn(void 0);try{return i?i.get(e,r,n&S.Optional):Ff(e,r,n&S.Optional)}finally{Dn(s)}}return hh(r,e,n)}function gh(t,e,n,r=S.Default,i){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(Oi)?t[Oi]:void 0;return"number"==typeof e?e>=0?255&e:Ov:e}(n);if("function"==typeof s){if(!nh(e,t,r))return r&S.Host?hh(i,n,r):ph(e,n,r,i);try{const o=s(r);if(null!=o||r&S.Optional)return o;io(n)}finally{oh()}}else if("number"==typeof s){let o=null,a=qu(t,e),u=-1,l=r&S.Host?e[16][6]:null;for((-1===a||r&S.SkipSelf)&&(u=-1===a?Io(t,e):e[a+8],-1!==u&&_h(r,!1)?(o=e[1],a=wr(u),e=Ir(u,e)):a=-1);-1!==a;){const c=e[1];if(yh(s,a,c.data)){const d=Fv(a,e,n,o,r,l);if(d!==mh)return d}u=e[a+8],-1!==u&&_h(r,e[1].data[a+8]===l)&&yh(s,a,e)?(o=c,a=wr(u),e=Ir(u,e)):a=-1}}}return ph(e,n,r,i)}const mh={};function Ov(){return new Tr(Ce(),C())}function Fv(t,e,n,r,i,s){const o=e[1],a=o.data[t+8],c=function(t,e,n,r,i){const s=t.providerIndexes,o=e.data,a=1048575&s,u=t.directiveStart,c=s>>20,f=i?a+c:t.directiveEnd;for(let h=r?a:a+c;h<f;h++){const p=o[h];if(h<u&&n===p||h>=u&&p.type===n)return h}if(i){const h=o[u];if(h&&wt(h)&&h.type===n)return u}return null}(a,o,n,null==r?fo(a)&&Wu:r!=o&&0!=(3&a.type),i&S.Host&&s===a);return null!==c?Ui(e,o,c,a):mh}function Ui(t,e,n,r){let i=t[n];const s=e.data;if(function(t){return t instanceof ji}(i)){const o=i;o.resolving&&function(t,e){throw new Un("200",`Circular dependency in DI detected for ${t}`)}(Le(s[n]));const a=wo(o.canSeeViewProviders);o.resolving=!0;const u=o.injectImpl?Dn(o.injectImpl):null;nh(t,r,S.Default);try{i=t[n]=o.factory(void 0,s,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=e.type.prototype;if(r){const o=$f(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s))}(n,s[n],e)}finally{null!==u&&Dn(u),wo(a),o.resolving=!1,oh()}}return i}function yh(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function _h(t,e){return!(t&S.Self||t&S.Host&&e)}class Tr{constructor(e,n){this._tNode=e,this._lView=n}get(e,n){return gh(this._tNode,this._lView,e,void 0,n)}}const Mr="__parameters__";function Zn(t,e,n){return En(()=>{const r=function(t){return function(...n){if(t){const r=t(...n);for(const i in r)this[i]=r[i]}}}(e);function i(...s){if(this instanceof i)return r.apply(this,s),this;const o=new i(...s);return a.annotation=o,a;function a(u,l,c){const d=u.hasOwnProperty(Mr)?u[Mr]:Object.defineProperty(u,Mr,{value:[]})[Mr];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(o),u}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}class z{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=B({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Bv=new z("AnalyzeForEntryComponents"),Mo=Function;function $t(t,e){t.forEach(n=>Array.isArray(n)?$t(n,e):e(n))}function Ro(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Yn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}const zi={},Yu="__NG_DI_FLAG__",xr="ngTempTokenPath",Zv=/\n/gm,Ju="__source",Xu=Q({provide:String,useValue:Q});let Qi;function Pr(t){const e=Qi;return Qi=t,e}function Jv(t,e=S.Default){if(void 0===Qi)throw new Error("inject() must be called from an injection context");return null===Qi?Ff(t,void 0,e):Qi.get(t,e&S.Optional?null:void 0,e)}function b(t,e=S.Default){return(bu||Jv)(I(t),e)}function Jn(t){const e=[];for(let n=0;n<t.length;n++){const r=I(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let i,s=S.Default;for(let o=0;o<r.length;o++){const a=r[o],u=Xv(a);"number"==typeof u?-1===u?i=a.token:s|=u:i=a}e.push(b(i,s))}else e.push(b(r))}return e}function Ki(t,e){return t[Yu]=e,t.prototype[Yu]=e,t}function Xv(t){return t[Yu]}function wh(t,e,n,r){const i=t[xr];throw e[Ju]&&i.unshift(e[Ju]),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=V(e);if(Array.isArray(e))i=e.map(V).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):V(a)))}i=`{${s.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(Zv,"\n ")}`}("\n"+t.message,i,n,r),t.ngTokenPath=i,t[xr]=null,t}const Nr=Ki(Zn("Inject",t=>({token:t})),-1),ze=Ki(Zn("Optional"),8),Sn=Ki(Zn("SkipSelf"),4);class Xn{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function Wt(t,e){const n=function(t){return t instanceof Xn&&t.getTypeName()||null}(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}const bb=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,wb=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;var J=(()=>((J=J||{})[J.NONE=0]="NONE",J[J.HTML=1]="HTML",J[J.STYLE=2]="STYLE",J[J.SCRIPT=3]="SCRIPT",J[J.URL=4]="URL",J[J.RESOURCE_URL=5]="RESOURCE_URL",J))();function kr(t){const e=function(){const t=C();return t&&t[12]}();return e?e.sanitize(J.URL,t)||"":Wt(t,"URL")?function(t){return t instanceof Xn?t.changingThisBreaksApplicationSecurity:t}(t):function(t){return(t=String(t)).match(bb)||t.match(wb)?t:"unsafe:"+t}(O(t))}const $h="__ngContext__";function Pe(t,e){t[$h]=e}function ul(t){const e=function(t){return t[$h]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Lo(t){return t.ngOriginalError}function qb(t,...e){t.error(...e)}class er{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e),r=this._findContext(e),i=function(t){return t&&t.ngErrorLogger||qb}(e);i(this._console,"ERROR",e),n&&i(this._console,"ORIGINAL ERROR",n),r&&i(this._console,"ERROR CONTEXT",r)}_findContext(e){return e?function(t){return t.ngDebugContext}(e)||this._findContext(Lo(e)):null}_findOriginalError(e){let n=e&&Lo(e);for(;n&&Lo(n);)n=Lo(n);return n||null}}const Jh=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(K))();function Xh(t){return t.ownerDocument.defaultView}function qt(t){return t instanceof Function?t():t}var nt=(()=>((nt=nt||{})[nt.Important=1]="Important",nt[nt.DashCase=2]="DashCase",nt))();function dl(t,e){return undefined(t,e)}function ts(t){const e=t[3];return bt(e)?e[3]:e}function fl(t){return ip(t[13])}function hl(t){return ip(t[4])}function ip(t){for(;null!==t&&!bt(t);)t=t[4];return t}function Vr(t,e,n,r,i){if(null!=r){let s,o=!1;bt(r)?s=r:Bt(r)&&(o=!0,r=r[0]);const a=pe(r);0===t&&null!==n?null==i?cp(e,n,a):tr(e,n,a,i||null,!0):1===t&&null!==n?tr(e,n,a,i||null,!0):2===t?function(t,e,n){const r=jo(t,e);r&&function(t,e,n,r){le(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=s&&function(t,e,n,r,i){const s=n[7];s!==pe(n)&&Vr(e,t,r,s,i);for(let a=10;a<n.length;a++){const u=n[a];ns(u[1],u,t,e,r,s)}}(e,t,s,n,i)}}function gl(t,e,n){return le(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function op(t,e){const n=t[9],r=n.indexOf(e),i=e[3];1024&e[2]&&(e[2]&=-1025,Fu(i,-1)),n.splice(r,1)}function ml(t,e){if(t.length<=10)return;const n=10+e,r=t[n];if(r){const i=r[17];null!==i&&i!==t&&op(i,r),e>0&&(t[n-1][4]=r[4]);const s=Yn(t,10+e);!function(t,e){ns(t,e,e[k],2,null,null),e[0]=null,e[6]=null}(r[1],r);const o=s[19];null!==o&&o.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function ap(t,e){if(!(256&e[2])){const n=e[k];le(n)&&n.destroyNode&&ns(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return yl(t[1],t);for(;e;){let n=null;if(Bt(e))n=e[13];else{const r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)Bt(e)&&yl(e[1],e),e=e[3];null===e&&(e=t),Bt(e)&&yl(e[1],e),n=e&&e[4]}e=n}}(e)}}function yl(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r<n.length;r+=2){const i=e[n[r]];if(!(i instanceof ji)){const s=n[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=i[s[o]],u=s[o+1];try{u.call(a)}finally{}}else try{s.call(i)}finally{}}}}(t,e),function(t,e){const n=t.cleanup,r=e[7];let i=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const o=n[s+1],a="function"==typeof o?o(e):pe(e[o]),u=r[i=n[s+2]],l=n[s+3];"boolean"==typeof l?a.removeEventListener(n[s],u,l):l>=0?r[i=l]():r[i=-l].unsubscribe(),s+=2}else{const o=r[i=n[s+1]];n[s].call(o)}if(null!==r){for(let s=i+1;s<r.length;s++)r[s]();e[7]=null}}(t,e),1===e[1].type&&le(e[k])&&e[k].destroy();const n=e[17];if(null!==n&&bt(e[3])){n!==e[3]&&op(n,e);const r=e[19];null!==r&&r.detachView(t)}}}function up(t,e,n){return function(t,e,n){let r=e;for(;null!==r&&40&r.type;)r=(e=r).parent;if(null===r)return n[0];if(2&r.flags){const i=t.data[r.directiveStart].encapsulation;if(i===_e.None||i===_e.Emulated)return null}return ct(r,n)}(t,e.parent,n)}function tr(t,e,n,r,i){le(t)?t.insertBefore(e,n,r,i):e.insertBefore(n,r,i)}function cp(t,e,n){le(t)?t.appendChild(e,n):e.appendChild(n)}function dp(t,e,n,r,i){null!==r?tr(t,e,n,r,i):cp(t,e,n)}function jo(t,e){return le(t)?t.parentNode(e):e.parentNode}let pp=function(t,e,n){return 40&t.type?ct(t,n):null};function Bo(t,e,n,r){const i=up(t,r,e),s=e[k],a=function(t,e,n){return pp(t,e,n)}(r.parent||e[6],r,e);if(null!=i)if(Array.isArray(n))for(let u=0;u<n.length;u++)dp(s,i,n[u],a,!1);else dp(s,i,n,a,!1)}function Ho(t,e){if(null!==e){const n=e.type;if(3&n)return ct(e,t);if(4&n)return Cl(-1,t[e.index]);if(8&n){const r=e.child;if(null!==r)return Ho(t,r);{const i=t[e.index];return bt(i)?Cl(-1,i):pe(i)}}if(32&n)return dl(e,t)()||pe(t[e.index]);{const r=mp(t,e);return null!==r?Array.isArray(r)?r[0]:Ho(ts(t[16]),r):Ho(t,e.next)}}return null}function mp(t,e){return null!==e?t[16][6].projection[e.projection]:null}function Cl(t,e){const n=10+t+1;if(n<e.length){const r=e[n],i=r[1].firstChild;if(null!==i)return Ho(r,i)}return e[7]}function Dl(t,e,n,r,i,s,o){for(;null!=n;){const a=r[n.index],u=n.type;if(o&&0===e&&(a&&Pe(pe(a),r),n.flags|=4),64!=(64&n.flags))if(8&u)Dl(t,e,n.child,r,i,s,!1),Vr(e,t,i,a,s);else if(32&u){const l=dl(n,r);let c;for(;c=l();)Vr(e,t,i,c,s);Vr(e,t,i,a,s)}else 16&u?_p(t,e,r,n,i,s):Vr(e,t,i,a,s);n=o?n.projectionNext:n.next}}function ns(t,e,n,r,i,s){Dl(n,r,t.firstChild,e,i,s,!1)}function _p(t,e,n,r,i,s){const o=n[16],u=o[6].projection[r.projection];if(Array.isArray(u))for(let l=0;l<u.length;l++)Vr(e,t,i,u[l],s);else Dl(t,e,u,o[3],i,s,!0)}function Cp(t,e,n){le(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function El(t,e,n){le(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function Dp(t,e,n){let r=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const s=e.length;if(i+s===r||t.charCodeAt(i+s)<=32)return i}n=i+1}}const Ep="ng-template";function yw(t,e,n){let r=0;for(;r<t.length;){let i=t[r++];if(n&&"class"===i){if(i=t[r],-1!==Dp(i.toLowerCase(),e,0))return!0}else if(1===i){for(;r<t.length&&"string"==typeof(i=t[r++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function vp(t){return 4===t.type&&t.value!==Ep}function _w(t,e,n){return e===(4!==t.type||n?t.value:Ep)}function Cw(t,e,n){let r=4;const i=t.attrs||[],s=function(t){for(let e=0;e<t.length;e++)if(uh(t[e]))return e;return t.length}(i);let o=!1;for(let a=0;a<e.length;a++){const u=e[a];if("number"!=typeof u){if(!o)if(4&r){if(r=2|1&r,""!==u&&!_w(t,u,n)||""===u&&1===e.length){if(It(r))return!1;o=!0}}else{const l=8&r?u:e[++a];if(8&r&&null!==t.attrs){if(!yw(t.attrs,l,n)){if(It(r))return!1;o=!0}continue}const d=Dw(8&r?"class":u,i,vp(t),n);if(-1===d){if(It(r))return!1;o=!0;continue}if(""!==l){let f;f=d>s?"":i[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==Dp(h,l,0)||2&r&&l!==f){if(It(r))return!1;o=!0}}}}else{if(!o&&!It(r)&&!It(u))return!1;if(o&&It(u))continue;o=!1,r=u|1&r}}return It(r)||o}function It(t){return 0==(1&t)}function Dw(t,e,n,r){if(null===e)return-1;let i=0;if(r||!n){let s=!1;for(;i<e.length;){const o=e[i];if(o===t)return i;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++i];for(;"string"==typeof a;)a=e[++i];continue}if(4===o)break;if(0===o){i+=4;continue}}i+=s?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const r=t[n];if("number"==typeof r)return-1;if(r===e)return n;n++}return-1}(e,t)}function bp(t,e,n=!1){for(let r=0;r<e.length;r++)if(Cw(t,e[r],n))return!0;return!1}function wp(t,e){return t?":not("+e.trim()+")":e}function Iw(t){let e=t[0],n=1,r=2,i="",s=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&r){const a=t[++n];i+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""!==i&&!It(o)&&(e+=wp(s,i),i=""),r=o,s=s||!It(r);n++}return""!==i&&(e+=wp(s,i)),e}const P={};function Mn(t){Ip(G(),C(),Be()+t,go())}function Ip(t,e,n,r){if(!r)if(3==(3&e[2])){const s=t.preOrderCheckHooks;null!==s&&Do(e,s,n)}else{const s=t.preOrderHooks;null!==s&&Eo(e,s,0,n)}wn(n)}function Fp(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],s=n[r+1];if(-1!==s){const o=t.data[s];Bu(i),o.contentQueries(2,e[s],s)}}}function rs(t,e,n,r,i,s,o,a,u,l){const c=e.blueprint.slice();return c[0]=i,c[2]=140|r,Zf(c),c[3]=c[15]=t,c[8]=n,c[10]=o||t&&t[10],c[k]=a||t&&t[k],c[12]=u||t&&t[12]||null,c[9]=l||t&&t[9]||null,c[6]=s,c[16]=2==e.type?t[16]:c,c}function jr(t,e,n,r,i){let s=t.data[e];if(null===s)s=function(t,e,n,r,i){const s=Jf(),o=ku(),u=t.data[e]=function(t,e,n,r,i,s){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,n,e,r,i);return null===t.firstChild&&(t.firstChild=u),null!==s&&(o?null==s.child&&null!==u.parent&&(s.child=u):null===s.next&&(s.next=u)),u}(t,e,n,r,i),R.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=r,s.attrs=i;const o=function(){const t=R.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Ht(s,!0),s}function Br(t,e,n,r){if(0===n)return-1;const i=e.length;for(let s=0;s<n;s++)e.push(r),t.blueprint.push(r),t.data.push(null);return i}function is(t,e,n){yo(e);try{const r=t.viewQuery;null!==r&&Bl(1,r,n);const i=t.template;null!==i&&kp(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Fp(t,e),t.staticViewQueries&&Bl(2,t.viewQuery,n);const s=t.components;null!==s&&function(t,e){for(let n=0;n<e.length;n++)i0(t,e[n])}(e,s)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[2]&=-5,_o()}}function Hr(t,e,n,r){const i=e[2];if(256==(256&i))return;yo(e);const s=go();try{Zf(e),function(t){R.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==n&&kp(t,e,n,2,r);const o=3==(3&i);if(!s)if(o){const l=t.preOrderCheckHooks;null!==l&&Do(e,l,null)}else{const l=t.preOrderHooks;null!==l&&Eo(e,l,0,null),Hu(e,0)}if(function(t){for(let e=fl(t);null!==e;e=hl(e)){if(!e[2])continue;const n=e[9];for(let r=0;r<n.length;r++){const i=n[r],s=i[3];0==(1024&i[2])&&Fu(s,1),i[2]|=1024}}}(e),function(t){for(let e=fl(t);null!==e;e=hl(e))for(let n=10;n<e.length;n++){const r=e[n],i=r[1];Ou(r)&&Hr(i,r,i.template,r[8])}}(e),null!==t.contentQueries&&Fp(t,e),!s)if(o){const l=t.contentCheckHooks;null!==l&&Do(e,l)}else{const l=t.contentHooks;null!==l&&Eo(e,l,1),Hu(e,1)}!function(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const i=n[r];if(i<0)wn(~i);else{const s=i,o=n[++r],a=n[++r];pv(o,s),a(2,e[s])}}}finally{wn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)r0(t,e[n])}(e,a);const u=t.viewQuery;if(null!==u&&Bl(2,u,r),!s)if(o){const l=t.viewCheckHooks;null!==l&&Do(e,l)}else{const l=t.viewHooks;null!==l&&Eo(e,l,2),Hu(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),s||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Fu(e[3],-1))}finally{_o()}}function Vw(t,e,n,r){const i=e[10],s=!go(),o=function(t){return 4==(4&t[2])}(e);try{s&&!o&&i.begin&&i.begin(),o&&is(t,e,r),Hr(t,e,n,r)}finally{s&&!o&&i.end&&i.end()}}function kp(t,e,n,r,i){const s=Be(),o=2&r;try{wn(-1),o&&e.length>X&&Ip(t,e,X,go()),n(r,i)}finally{wn(s)}}function Pl(t,e,n){!Yf()||(function(t,e,n,r){const i=n.directiveStart,s=n.directiveEnd;t.firstCreatePass||Hi(n,e),Pe(r,e);const o=n.initialInputs;for(let a=i;a<s;a++){const u=t.data[a],l=wt(u);l&&Jw(e,n,u);const c=Ui(e,t,a,n);Pe(c,e),null!==o&&Xw(0,a-i,c,u,0,o),l&&(Xe(n.index,e)[8]=c)}}(t,e,n,ct(n,e)),128==(128&n.flags)&&function(t,e,n){const r=n.directiveStart,i=n.directiveEnd,o=n.index,a=R.lFrame.currentDirectiveIndex;try{wn(o);for(let u=r;u<i;u++){const l=t.data[u],c=e[u];Vu(u),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&Gp(l,c)}}finally{wn(-1),Vu(a)}}(t,e,n))}function Nl(t,e,n=ct){const r=e.localNames;if(null!==r){let i=e.index+1;for(let s=0;s<r.length;s+=2){const o=r[s+1],a=-1===o?n(e,t):t[o];t[i++]=a}}}function Vp(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Go(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Go(t,e,n,r,i,s,o,a,u,l){const c=X+r,d=c+i,f=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:P);return n}(c,d),h="function"==typeof l?l():l;return f[1]={type:t,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:e,data:f.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:u,consts:h,incompleteFirstPass:!1}}function Up(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const i=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,i):n[r]=[e,i]}return n}function Ol(t,e,n,r){let i=!1;if(Yf()){const s=function(t,e,n){const r=t.directiveRegistry;let i=null;if(r)for(let s=0;s<r.length;s++){const o=r[s];bp(n,o.selectors,!1)&&(i||(i=[]),To(Hi(n,e),t,o.type),wt(o)?(qp(t,n),i.unshift(o)):i.push(o))}return i}(t,e,n),o=null===r?null:{"":-1};if(null!==s){i=!0,zp(n,t.data.length,s.length);for(let c=0;c<s.length;c++){const d=s[c];d.providersResolver&&d.providersResolver(d)}let a=!1,u=!1,l=Br(t,e,s.length,null);for(let c=0;c<s.length;c++){const d=s[c];n.mergedAttrs=bo(n.mergedAttrs,d.hostAttrs),Qp(t,n,e,l,d),Yw(l,d,o),null!==d.contentQueries&&(n.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(n.flags|=128);const f=d.type.prototype;!a&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),a=!0),!u&&(f.ngOnChanges||f.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),u=!0),l++}!function(t,e){const r=e.directiveEnd,i=t.data,s=e.attrs,o=[];let a=null,u=null;for(let l=e.directiveStart;l<r;l++){const c=i[l],d=c.inputs,f=null===s||vp(e)?null:e0(d,s);o.push(f),a=Up(d,l,a),u=Up(c.outputs,l,u)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=u}(t,n)}o&&function(t,e,n){if(e){const r=t.localNames=[];for(let i=0;i<e.length;i+=2){const s=n[e[i+1]];if(null==s)throw new Un("301",`Export of name '${e[i+1]}' not found!`);r.push(e[i],s)}}}(n,r,o)}return n.mergedAttrs=bo(n.mergedAttrs,n.attrs),i}function Wp(t,e,n,r,i,s){const o=s.hostBindings;if(o){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const u=~e.index;(function(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(a)!=u&&a.push(u),a.push(r,i,o)}}function Gp(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function qp(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Yw(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;wt(e)&&(n[""]=t)}}function zp(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Qp(t,e,n,r,i){t.data[r]=i;const s=i.factory||(i.factory=Qn(i.type)),o=new ji(s,wt(i),null);t.blueprint[r]=o,n[r]=o,Wp(t,e,0,r,Br(t,n,i.hostVars,P),i)}function Jw(t,e,n){const r=ct(e,t),i=Vp(n),s=t[10],o=qo(t,rs(t,i,null,n.onPush?64:16,r,e,s,s.createRenderer(r,n),null,null));t[e.index]=o}function Xw(t,e,n,r,i,s){const o=s[e];if(null!==o){const a=r.setInput;for(let u=0;u<o.length;){const l=o[u++],c=o[u++],d=o[u++];null!==a?r.setInput(n,d,l,c):n[c]=d}}}function e0(t,e){let n=null,r=0;for(;r<e.length;){const i=e[r];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,t[i],e[r+1])),r+=2}else r+=2;else r+=4}return n}function Kp(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}function r0(t,e){const n=Xe(e,t);if(Ou(n)){const r=n[1];80&n[2]?Hr(r,n,r.template,n[8]):n[5]>0&&kl(n)}}function kl(t){for(let r=fl(t);null!==r;r=hl(r))for(let i=10;i<r.length;i++){const s=r[i];if(1024&s[2]){const o=s[1];Hr(o,s,o.template,s[8])}else s[5]>0&&kl(s)}const n=t[1].components;if(null!==n)for(let r=0;r<n.length;r++){const i=Xe(n[r],t);Ou(i)&&i[5]>0&&kl(i)}}function i0(t,e){const n=Xe(e,t),r=n[1];(function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])})(r,n),is(r,n,n[8])}function qo(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Ll(t){for(;t;){t[2]|=64;const e=ts(t);if(QE(t)&&!e)return t;t=e}return null}function jl(t,e,n){const r=e[10];r.begin&&r.begin();try{Hr(t,e,t.template,n)}catch(i){throw eg(e,i),i}finally{r.end&&r.end()}}function Zp(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=ul(n),i=r[1];Vw(i,r,i.template,n)}}(t[8])}function Bl(t,e,n){Bu(0),e(t,n)}const l0=(()=>Promise.resolve(null))();function Yp(t){return t[7]||(t[7]=[])}function Jp(t){return t.cleanup||(t.cleanup=[])}function eg(t,e){const n=t[9],r=n?n.get(er,null):null;r&&r.handleError(e)}function tg(t,e,n,r,i){for(let s=0;s<n.length;){const o=n[s++],a=n[s++],u=e[o],l=t.data[o];null!==l.setInput?l.setInput(u,i,r,a):u[a]=i}}function dn(t,e,n){const r=function(t,e){return pe(e[t])}(e,t);!function(t,e,n){le(t)?t.setValue(e,n):e.textContent=n}(t[k],r,n)}function zo(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?i=Cu(i,a):2==s&&(r=Cu(r,a+": "+e[++o]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}const Ur=new z("INJECTOR",-1);class ng{get(e,n=zi){if(n===zi){const r=new Error(`NullInjectorError: No provider for ${V(e)}!`);throw r.name="NullInjectorError",r}return n}}const ss=new z("Set Injector scope."),os={},f0={};let Hl;function rg(){return void 0===Hl&&(Hl=new ng),Hl}function ig(t,e=null,n=null,r){return new p0(t,n,e||rg(),r)}class p0{constructor(e,n,r,i=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];n&&$t(n,a=>this.processProvider(a,e,n)),$t([e],a=>this.processInjectorType(a,[],s)),this.records.set(Ur,$r(void 0,this));const o=this.records.get(ss);this.scope=null!=o?o.value:null,this.source=i||("object"==typeof e?null:V(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,n=zi,r=S.Default){this.assertNotDestroyed();const i=Pr(this),s=Dn(void 0);try{if(!(r&S.SkipSelf)){let a=this.records.get(e);if(void 0===a){const u=function(t){return"function"==typeof t||"object"==typeof t&&t instanceof z}(e)&&on(e);a=u&&this.injectableDefInScope(u)?$r(Ul(e),os):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(r&S.Self?rg():this.parent).get(e,n=r&S.Optional&&n===zi?null:n)}catch(o){if("NullInjectorError"===o.name){if((o[xr]=o[xr]||[]).unshift(V(e)),i)throw o;return wh(o,e,"R3InjectorError",this.source)}throw o}finally{Dn(s),Pr(i)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((r,i)=>e.push(V(i))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,n,r){if(!(e=I(e)))return!1;let i=Nf(e);const s=null==i&&e.ngModule||void 0,o=void 0===s?e:s,a=-1!==r.indexOf(o);if(void 0!==s&&(i=Nf(s)),null==i)return!1;if(null!=i.imports&&!a){let c;r.push(o);try{$t(i.imports,d=>{this.processInjectorType(d,n,r)&&(void 0===c&&(c=[]),c.push(d))})}finally{}if(void 0!==c)for(let d=0;d<c.length;d++){const{ngModule:f,providers:h}=c[d];$t(h,p=>this.processProvider(p,f,h||Y))}}this.injectorDefTypes.add(o);const u=Qn(o)||(()=>new o);this.records.set(o,$r(u,os));const l=i.providers;if(null!=l&&!a){const c=e;$t(l,d=>this.processProvider(d,c,l))}return void 0!==s&&void 0!==e.providers}processProvider(e,n,r){let i=Wr(e=I(e))?e:I(e&&e.provide);const s=function(t,e,n){return og(t)?$r(void 0,t.useValue):$r(function(t,e,n){let r;if(Wr(t)){const i=I(t);return Qn(i)||Ul(i)}if(og(t))r=()=>I(t.useValue);else if(function(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...Jn(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>b(I(t.useExisting));else{const i=I(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Qn(i)||Ul(i);r=()=>new i(...Jn(t.deps))}return r}(t),os)}(e);if(Wr(e)||!0!==e.multi)this.records.get(i);else{let o=this.records.get(i);o||(o=$r(void 0,os,!0),o.factory=()=>Jn(o.multi),this.records.set(i,o)),i=e,o.multi.push(e)}this.records.set(i,s)}hydrate(e,n){return n.value===os&&(n.value=f0,n.value=n.factory()),"object"==typeof n.value&&n.value&&function(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(e){if(!e.providedIn)return!1;const n=I(e.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Ul(t){const e=on(t),n=null!==e?e.factory:Qn(t);if(null!==n)return n;if(t instanceof z)throw new Error(`Token ${V(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const r=function(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}(e,"?");throw new Error(`Can't resolve all parameters for ${V(t)}: (${r.join(", ")}).`)}const n=function(t){const e=t&&(t[so]||t[Of]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function $r(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function og(t){return null!==t&&"object"==typeof t&&Xu in t}function Wr(t){return"function"==typeof t}const ag=function(t,e,n){return function(t,e=null,n=null,r){const i=ig(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)};class q{static create(e,n){return Array.isArray(e)?ag(e,n,""):ag(e.providers,e.parent,e.name||"")}}function F0(t,e){Co(ul(t)[1],Ce())}q.THROW_IF_NOT_FOUND=zi,q.NULL=new ng,q.\u0275prov=B({token:q,providedIn:"any",factory:()=>b(Ur)}),q.__NG_ELEMENT_ID__=-1;let Qo=null;function Gr(){if(!Qo){const t=K.Symbol;if(t&&t.iterator)Qo=t.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<e.length;++n){const r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Qo=r)}}}return Qo}function us(t){return!!Kl(t)&&(Array.isArray(t)||!(t instanceof Map)&&Gr()in t)}function Kl(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Ne(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function ti(t,e,n,r,i,s,o,a){const u=C(),l=G(),c=t+X,d=l.firstCreatePass?function(t,e,n,r,i,s,o,a,u){const l=e.consts,c=jr(e,t,4,o||null,bn(l,a));Ol(e,n,c,bn(l,u)),Co(e,c);const d=c.tViews=Go(2,c,r,i,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l);return null!==e.queries&&(e.queries.template(e,c),d.queries=e.queries.embeddedTView(c)),c}(c,l,u,e,n,r,i,s,o):l.data[c];Ht(d,!1);const f=u[k].createComment("");Bo(l,u,f,d),Pe(f,u),qo(u,u[c]=Kp(f,u,f,d)),ho(d)&&Pl(l,u,d),null!=o&&Nl(u,d,a)}function T(t,e=S.Default){const n=C();return null===n?b(t,e):gh(Ce(),n,I(t),e)}function Kt(t,e,n){const r=C();return Ne(r,br(),e)&&function(t,e,n,r,i,s,o,a){const u=ct(e,n);let c,l=e.inputs;!a&&null!=l&&(c=l[r])?(tg(t,n,c,r,i),fo(e)&&function(t,e){const n=Xe(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(r=function(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(r),i=null!=o?o(i,e.value||"",r):i,le(s)?s.setProperty(u,r,i):$u(r)||(u.setProperty?u.setProperty(r,i):u[r]=i))}(G(),function(){const t=R.lFrame;return Nu(t.tView,t.selectedIndex)}(),r,t,e,r[k],n,!1),Kt}function tc(t,e,n,r,i){const o=i?"class":"style";tg(t,n,e.inputs[o],o,r)}function xn(t,e,n,r){const i=C(),s=G(),o=X+t,a=i[k],u=i[o]=gl(a,e,R.lFrame.currentNamespace),l=s.firstCreatePass?function(t,e,n,r,i,s,o){const a=e.consts,l=jr(e,t,2,i,bn(a,s));return Ol(e,n,l,bn(a,o)),null!==l.attrs&&zo(l,l.attrs,!1),null!==l.mergedAttrs&&zo(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(o,s,i,0,e,n,r):s.data[o];Ht(l,!0);const c=l.mergedAttrs;null!==c&&vo(a,u,c);const d=l.classes;null!==d&&El(a,u,d);const f=l.styles;null!==f&&Cp(a,u,f),64!=(64&l.flags)&&Bo(s,i,u,l),0===R.lFrame.elementDepthCount&&Pe(u,i),R.lFrame.elementDepthCount++,ho(l)&&(Pl(s,i,l),function(t,e,n){if(Mu(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s<i;s++){const o=t.data[s];o.contentQueries&&o.contentQueries(1,n[s],s)}}}(s,l,i)),null!==r&&Nl(i,l)}function Pn(){let t=Ce();ku()?R.lFrame.isParent=!1:(t=t.parent,Ht(t,!1));const e=t;R.lFrame.elementDepthCount--;const n=G();n.firstCreatePass&&(Co(n,t),Mu(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&tc(n,e,C(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&tc(n,e,C(),e.stylesWithoutHost,!1)}function cs(t,e,n,r){xn(t,e,n,r),Pn()}function Yo(t){return!!t&&"function"==typeof t.then}const nc=function(t){return!!t&&"function"==typeof t.subscribe};function ri(t,e,n,r){const i=C(),s=G(),o=Ce();return function(t,e,n,r,i,s,o,a){const u=ho(r),c=t.firstCreatePass&&Jp(t),d=e[8],f=Yp(e);let h=!0;if(3&r.type||a){const g=ct(r,e),_=a?a(g):g,y=f.length,v=a?w=>a(pe(w[r.index])):r.index;if(le(n)){let w=null;if(!a&&u&&(w=function(t,e,n,r){const i=t.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const o=i[s];if(o===n&&i[s+1]===r){const a=e[7],u=i[s+2];return a.length>u?a[u]:null}"string"==typeof o&&(s+=2)}return null}(t,e,i,r.index)),null!==w)(w.__ngLastListenerFn__||w).__ngNextListenerFn__=s,w.__ngLastListenerFn__=s,h=!1;else{s=rc(r,e,d,s,!1);const j=n.listen(_,i,s);f.push(s,j),c&&c.push(i,v,y,y+1)}}else s=rc(r,e,d,s,!0),_.addEventListener(i,s,o),f.push(s),c&&c.push(i,v,y,o)}else s=rc(r,e,d,s,!1);const p=r.outputs;let m;if(h&&null!==p&&(m=p[i])){const g=m.length;if(g)for(let _=0;_<g;_+=2){const be=e[m[_]][m[_+1]].subscribe(s),Dt=f.length;f.push(s,be),c&&c.push(i,r.index,Dt,-(Dt+1))}}}(s,i,i[k],o,t,e,!!n,r),ri}function Yg(t,e,n,r){try{return!1!==n(r)}catch(i){return eg(t,i),!1}}function rc(t,e,n,r,i){return function s(o){if(o===Function)return r;const a=2&t.flags?Xe(t.index,e):e;0==(32&e[2])&&Ll(a);let u=Yg(e,0,r,o),l=s.__ngNextListenerFn__;for(;l;)u=Yg(e,0,l,o)&&u,l=l.__ngNextListenerFn__;return i&&!1===u&&(o.preventDefault(),o.returnValue=!1),u}}function Jo(t=1){return function(t){return(R.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,R.lFrame.contextLView))[8]}(t)}function oc(t,e=""){const n=C(),r=G(),i=t+X,s=r.firstCreatePass?jr(r,i,1,e,null):r.data[i],o=n[i]=function(t,e){return le(t)?t.createText(e):t.createTextNode(e)}(n[k],e);Bo(r,n,o,s),Ht(s,!1)}function ac(t){return ea("",t,""),ac}function ea(t,e,n){const r=C(),i=function(t,e,n,r){return Ne(t,br(),n)?e+O(n)+r:P}(r,t,e,n);return i!==P&&dn(r,Be(),i),ea}const rr=void 0;var uT=["en",[["a","p"],["AM","PM"],rr],[["AM","PM"],rr,rr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],rr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],rr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",rr,"{1} 'at' {0}",rr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let si={};function Hm(t){return t in si||(si[t]=K.ng&&K.ng.common&&K.ng.common.locales&&K.ng.common.locales[t]),si[t]}var E=(()=>((E=E||{})[E.LocaleId=0]="LocaleId",E[E.DayPeriodsFormat=1]="DayPeriodsFormat",E[E.DayPeriodsStandalone=2]="DayPeriodsStandalone",E[E.DaysFormat=3]="DaysFormat",E[E.DaysStandalone=4]="DaysStandalone",E[E.MonthsFormat=5]="MonthsFormat",E[E.MonthsStandalone=6]="MonthsStandalone",E[E.Eras=7]="Eras",E[E.FirstDayOfWeek=8]="FirstDayOfWeek",E[E.WeekendRange=9]="WeekendRange",E[E.DateFormat=10]="DateFormat",E[E.TimeFormat=11]="TimeFormat",E[E.DateTimeFormat=12]="DateTimeFormat",E[E.NumberSymbols=13]="NumberSymbols",E[E.NumberFormats=14]="NumberFormats",E[E.CurrencyCode=15]="CurrencyCode",E[E.CurrencySymbol=16]="CurrencySymbol",E[E.CurrencyName=17]="CurrencyName",E[E.Currencies=18]="Currencies",E[E.Directionality=19]="Directionality",E[E.PluralCase=20]="PluralCase",E[E.ExtraData=21]="ExtraData",E))();const ta="en-US";let Um=ta;function lc(t){Ye(t,"Expected localeId to be defined"),"string"==typeof t&&(Um=t.toLowerCase().replace(/_/g,"-"))}class hy{}const gy="ngComponent";class lS{resolveComponentFactory(e){throw function(t){const e=Error(`No component factory found for ${V(t)}. Did you add it to @NgModule.entryComponents?`);return e[gy]=t,e}(e)}}class Nn{}function oa(...t){}function ai(t,e){return new it(ct(t,e))}Nn.NULL=new lS;const fS=function(){return ai(Ce(),C())};let it=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=fS,t})();class aa{}let yc=(()=>{class t{}return t.\u0275prov=B({token:t,providedIn:"root",factory:()=>null}),t})();class la{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const yy=new la("12.2.4");class _y{constructor(){}supports(e){return us(e)}create(e){return new _S(e)}}const yS=(t,e)=>e;class _S{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||yS}forEachItem(e){let n;for(n=this._itHead;null!==n;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,i=0,s=null;for(;n||r;){const o=!r||n&&n.currentIndex<Dy(r,i,s)?n:r,a=Dy(o,i,s),u=o.currentIndex;if(o===r)i--,r=r._nextRemoved;else if(n=n._next,null==o.previousIndex)i++;else{s||(s=[]);const l=a-i,c=u-i;if(l!=c){for(let f=0;f<l;f++){const h=f<s.length?s[f]:s[f]=0,p=h+f;c<=p&&p<l&&(s[f]=h+1)}s[o.previousIndex]=c-l}}a!==u&&e(o,a,u)}}forEachPreviousItem(e){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)e(n)}forEachMovedItem(e){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)e(n)}forEachIdentityChange(e){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)e(n)}diff(e){if(null==e&&(e=[]),!us(e))throw new Error(`Error trying to diff '${V(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let i,s,o,n=this._itHead,r=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==n&&Object.is(n.trackById,o)?(r&&(n=this._verifyReinsertion(n,s,o,a)),Object.is(n.item,s)||this._addIdentityChange(n,s)):(n=this._mismatch(n,s,o,a),r=!0),n=n._next}else i=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[Gr()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(e,a=>{o=this._trackByFn(i,a),null!==n&&Object.is(n.trackById,o)?(r&&(n=this._verifyReinsertion(n,a,o,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,o,i),r=!0),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,i){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,s,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,s,i)):e=this._addAfter(new CS(n,r),s,i),e}_verifyReinsertion(e,n,r,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==s?e=this._reinsertAfter(s,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const n=e._next;this._addToRemovals(this._unlink(e)),e=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(e,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,s=e._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){const i=null===n?this._itHead:n._next;return e._next=i,e._prev=n,null===i?this._itTail=e:i._prev=e,null===n?this._itHead=e:n._next=e,null===this._linkedRecords&&(this._linkedRecords=new Cy),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const n=e._prev,r=e._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Cy),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class CS{constructor(e,n){this.item=e,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 DS{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const n=e._prevDup,r=e._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Cy{constructor(){this.map=new Map}put(e){const n=e.trackById;let r=this.map.get(n);r||(r=new DS,this.map.set(n,r)),r.add(e)}get(e,n){const i=this.map.get(e);return i?i.get(e,n):null}remove(e){const n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Dy(t,e,n){const r=t.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+e+i}class Ey{constructor(){}supports(e){return e instanceof Map||Kl(e)}create(){return new ES}}class ES{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let n;for(n=this._mapHead;null!==n;n=n._next)e(n)}forEachPreviousItem(e){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)e(n)}forEachChangedItem(e){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)e(n)}diff(e){if(e){if(!(e instanceof Map||Kl(e)))throw new Error(`Error trying to diff '${V(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(e,(r,i)=>{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,n){if(e){const r=e._prev;return n._next=e,n._prev=r,e._prev=n,r&&(r._next=n),e===this._mapHead&&(this._mapHead=n),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(e,n){if(this._records.has(e)){const i=this._records.get(e);this._maybeAddToChanges(i,n);const s=i._prev,o=i._next;return s&&(s._next=o),o&&(o._prev=s),i._next=null,i._prev=null,i}const r=new vS(e);return this._records.set(e,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,n){Object.is(n,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=n,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,n){e instanceof Map?e.forEach(n):Object.keys(e).forEach(r=>n(e[r],r))}}class vS{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function vy(){return new ms([new _y])}let ms=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(null!=r){const i=r.factories.slice();n=n.concat(i)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||vy()),deps:[[t,new Sn,new ze]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(t){return t.name||typeof t}(n)}'`)}}return t.\u0275prov=B({token:t,providedIn:"root",factory:vy}),t})();function by(){return new ui([new Ey])}let ui=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(r){const i=r.factories.slice();n=n.concat(i)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||by()),deps:[[t,new Sn,new ze]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return t.\u0275prov=B({token:t,providedIn:"root",factory:by}),t})();function ca(t,e,n,r,i=!1){for(;null!==n;){const s=e[n.index];if(null!==s&&r.push(pe(s)),bt(s))for(let a=10;a<s.length;a++){const u=s[a],l=u[1].firstChild;null!==l&&ca(u[1],u,l,r)}const o=n.type;if(8&o)ca(t,e,n.child,r);else if(32&o){const a=dl(n,e);let u;for(;u=a();)r.push(u)}else if(16&o){const a=mp(e,n);if(Array.isArray(a))r.push(...a);else{const u=ts(e[16]);ca(u[1],u,a,r,!0)}}n=i?n.projectionNext:n.next}return r}class ys{constructor(e,n){this._lView=e,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,n=e[1];return ca(n,e,n.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(bt(e)){const n=e[8],r=n?n.indexOf(this):-1;r>-1&&(ml(e,r),Yn(n,r))}this._attachedToViewContainer=!1}ap(this._lView[1],this._lView)}onDestroy(e){!function(t,e,n,r){const i=Yp(e);null===n?i.push(r):(i.push(n),t.firstCreatePass&&Jp(t).push(r,i.length-1))}(this._lView[1],this._lView,null,e)}markForCheck(){Ll(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){jl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){mo(!0);try{jl(t,e,n)}finally{mo(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function(t,e){ns(t,e,e[k],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class wS extends ys{constructor(e){super(e),this._view=e}detectChanges(){Zp(this._view)}checkNoChanges(){!function(t){mo(!0);try{Zp(t)}finally{mo(!1)}}(this._view)}get context(){return null}}const TS=function(t){return function(t,e,n){if(fo(t)&&!n){const r=Xe(t.index,e);return new ys(r,r)}return 47&t.type?new ys(e[16],e):null}(Ce(),C(),16==(16&t))};let _c=(()=>{class t{}return t.__NG_ELEMENT_ID__=TS,t})();const AS=[new Ey],xS=new ms([new _y]),PS=new ui(AS),OS=function(){return function(t,e){return 4&t.type?new kS(e,t,ai(t,e)):null}(Ce(),C())};let hn=(()=>{class t{}return t.__NG_ELEMENT_ID__=OS,t})();const FS=hn,kS=class extends FS{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(e){const n=this._declarationTContainer.tViews,r=rs(this._declarationLView,n,e,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(n)),is(n,r,e),new ys(r)}};class Jt{}class wy{}const jS=function(){return function(t,e){let n;const r=e[t.index];if(bt(r))n=r;else{let i;if(8&t.type)i=pe(r);else{const s=e[k];i=s.createComment("");const o=ct(t,e);tr(s,jo(s,o),i,function(t,e){return le(t)?t.nextSibling(e):e.nextSibling}(s,o),!1)}e[t.index]=n=Kp(r,e,i,t),qo(e,n)}return new Iy(n,t,e)}(Ce(),C())};let xt=(()=>{class t{}return t.__NG_ELEMENT_ID__=jS,t})();const HS=xt,Iy=class extends HS{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return ai(this._hostTNode,this._hostLView)}get injector(){return new Tr(this._hostTNode,this._hostLView)}get parentInjector(){const e=Io(this._hostTNode,this._hostLView);if(ch(e)){const n=Ir(e,this._hostLView),r=wr(e);return new Tr(n[1].data[r+8],n)}return new Tr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=Ty(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,n,r){const i=e.createEmbeddedView(n||{});return this.insert(i,r),i}createComponent(e,n,r,i,s){const o=r||this.parentInjector;if(!s&&null==e.ngModule&&o){const u=o.get(Jt,null);u&&(s=u)}const a=e.create(o,i,void 0,s);return this.insert(a.hostView,n),a}insert(e,n){const r=e._lView,i=r[1];if(function(t){return bt(t[3])}(r)){const c=this.indexOf(e);if(-1!==c)this.detach(c);else{const d=r[3],f=new Iy(d,d[6],d[3]);f.detach(f.indexOf(e))}}const s=this._adjustIndex(n),o=this._lContainer;!function(t,e,n,r){const i=10+r,s=n.length;r>0&&(n[i-1][4]=e),r<s-10?(e[4]=n[i],Ro(n,10+r,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(i,r,o,s);const a=Cl(s,o),u=r[k],l=jo(u,o[7]);return null!==l&&function(t,e,n,r,i,s){r[0]=i,r[6]=e,ns(t,r,n,1,i,s)}(i,o[6],u,r,l,a),e.attachToViewContainerRef(),Ro(Cc(o),s,e),e}move(e,n){return this.insert(e,n)}indexOf(e){const n=Ty(this._lContainer);return null!==n?n.indexOf(e):-1}remove(e){const n=this._adjustIndex(e,-1),r=ml(this._lContainer,n);r&&(Yn(Cc(this._lContainer),n),ap(r[1],r))}detach(e){const n=this._adjustIndex(e,-1),r=ml(this._lContainer,n);return r&&null!=Yn(Cc(this._lContainer),n)?new ys(r):null}_adjustIndex(e,n=0){return null==e?this.length+n:e}};function Ty(t){return t[8]}function Cc(t){return t[8]||(t[8]=[])}const fi={};class zy extends Nn{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const n=Ve(e);return new Ky(n,this.ngModule)}}function Qy(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const LM=new z("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Jh});class Ky extends hy{constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=function(t){return t.map(Iw).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Qy(this.componentDef.inputs)}get outputs(){return Qy(this.componentDef.outputs)}create(e,n,r,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,r,i)=>{const s=t.get(n,fi,i);return s!==fi||r===fi?s:e.get(n,r,i)}}}(e,i.injector):e,o=s.get(aa,Qf),a=s.get(yc,null),u=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=r?function(t,e,n){if(le(t))return t.selectRootElement(e,n===_e.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(u,r,this.componentDef.encapsulation):gl(o.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),d=this.componentDef.onPush?576:528,f=function(t,e){return{components:[],scheduler:t||Jh,clean:l0,playerHandler:e||null,flags:0}}(),h=Go(0,null,null,1,0,null,null,null,null,null),p=rs(null,h,f,d,null,null,o,u,a,s);let m,g;yo(p);try{const _=function(t,e,n,r,i,s){const o=n[1];n[20]=t;const u=jr(o,20,2,"#host",null),l=u.mergedAttrs=e.hostAttrs;null!==l&&(zo(u,l,!0),null!==t&&(vo(i,t,l),null!==u.classes&&El(i,t,u.classes),null!==u.styles&&Cp(i,t,u.styles)));const c=r.createRenderer(t,e),d=rs(n,Vp(e),null,e.onPush?64:16,n[20],u,r,c,s||null,null);return o.firstCreatePass&&(To(Hi(u,n),o,e.type),qp(o,u),zp(u,n.length,1)),qo(n,d),n[20]=d}(c,this.componentDef,p,o,u);if(c)if(r)vo(u,c,["ng-version",yy.full]);else{const{attrs:y,classes:v}=function(t){const e=[],n=[];let r=1,i=2;for(;r<t.length;){let s=t[r];if("string"==typeof s)2===i?""!==s&&e.push(s,t[++r]):8===i&&n.push(s);else{if(!It(i))break;i=s}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);y&&vo(u,c,y),v&&v.length>0&&El(u,c,v.join(" "))}if(g=Nu(h,X),void 0!==n){const y=g.projection=[];for(let v=0;v<this.ngContentSelectors.length;v++){const w=n[v];y.push(null!=w?Array.from(w):null)}}m=function(t,e,n,r,i){const s=n[1],o=function(t,e,n){const r=Ce();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Qp(t,r,e,Br(t,e,1,null),n));const i=Ui(e,t,r.directiveStart,r);Pe(i,e);const s=ct(r,e);return s&&Pe(s,e),i}(s,n,e);if(r.components.push(o),t[8]=o,i&&i.forEach(u=>u(o,e)),e.contentQueries){const u=Ce();e.contentQueries(1,o,u.directiveStart)}const a=Ce();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(wn(a.index),Wp(n[1],a,0,a.directiveStart,a.directiveEnd,e),Gp(e,o)),o}(_,this.componentDef,p,f,[F0]),is(h,p,null)}finally{_o()}return new BM(this.componentType,m,ai(g,p),p,g)}}class BM extends class{}{constructor(e,n,r,i,s){super(),this.location=r,this._rootLView=i,this._tNode=s,this.instance=n,this.hostView=this.changeDetectorRef=new wS(i),this.componentType=e}get injector(){return new Tr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const hi=new Map;class $M extends Jt{constructor(e,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new zy(this);const r=at(e),i=function(t){return t[BE]||null}(e);i&&lc(i),this._bootstrapComponents=qt(r.bootstrap),this._r3Injector=ig(e,n,[{provide:Jt,useValue:this},{provide:Nn,useValue:this.componentFactoryResolver}],V(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,n=q.THROW_IF_NOT_FOUND,r=S.Default){return e===q||e===Jt||e===Ur?this:this._r3Injector.get(e,n,r)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Pc extends wy{constructor(e){super(),this.moduleType=e,null!==at(e)&&function(t){const e=new Set;!function n(r){const i=at(r,!0),s=i.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${V(e)} vs ${V(e.name)}`)}(s,hi.get(s),r),hi.set(s,r));const o=qt(i.imports);for(const a of o)e.has(a)||(e.add(a),n(a))}(t)}(e)}create(e){return new $M(this.moduleType,e)}}function Nc(t){return e=>{setTimeout(t,void 0,e)}}const mt=class extends nn{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,r){var i,s,o;let a=e,u=n||(()=>null),l=r;if(e&&"object"==typeof e){const d=e;a=null===(i=d.next)||void 0===i?void 0:i.bind(d),u=null===(s=d.error)||void 0===s?void 0:s.bind(d),l=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(u=Nc(u),a&&(a=Nc(a)),l&&(l=Nc(l)));const c=super.subscribe({next:a,error:u,complete:l});return e instanceof ue&&e.add(c),c}};Symbol;const As=new z("Application Initializer");let gi=(()=>{class t{constructor(n){this.appInits=n,this.resolve=oa,this.reject=oa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const s=this.appInits[i]();if(Yo(s))n.push(s);else if(nc(s)){const o=new Promise((a,u)=>{s.subscribe({complete:a,error:u})});n.push(o)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return t.\u0275fac=function(n){return new(n||t)(b(As,8))},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})();const Rs=new z("AppId"),GA={provide:Rs,useFactory:function(){return`${zc()}${zc()}${zc()}`},deps:[]};function zc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const I_=new z("Platform Initializer"),Qc=new z("Platform ID"),T_=new z("appBootstrapListener");let Ca=(()=>{class t{log(n){console.log(n)}warn(n){console.warn(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})();const Fn=new z("LocaleId"),S_=new z("DefaultCurrencyCode");class zA{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}}const Kc=function(t){return new Pc(t)},QA=Kc,KA=function(t){return Promise.resolve(Kc(t))},M_=function(t){const e=Kc(t),r=qt(at(t).declarations).reduce((i,s)=>{const o=Ve(s);return o&&i.push(new Ky(o)),i},[]);return new zA(e,r)},ZA=M_,YA=function(t){return Promise.resolve(M_(t))};let or=(()=>{class t{constructor(){this.compileModuleSync=QA,this.compileModuleAsync=KA,this.compileModuleAndAllComponentsSync=ZA,this.compileModuleAndAllComponentsAsync=YA}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})();const eR=(()=>Promise.resolve(0))();function Zc(t){"undefined"==typeof Zone?eR.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ge{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new mt(!1),this.onMicrotaskEmpty=new mt(!1),this.onStable=new mt(!1),this.onError=new mt(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=K.requestAnimationFrame,e=K.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(K,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Jc(t),t.isCheckStableRunning=!0,Yc(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Jc(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,s,o,a)=>{try{return A_(t),n.invokeTask(i,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&e(),R_(t)}},onInvoke:(n,r,i,s,o,a,u)=>{try{return A_(t),n.invoke(i,s,o,a,u)}finally{t.shouldCoalesceRunChangeDetection&&e(),R_(t)}},onHasTask:(n,r,i,s)=>{n.hasTask(i,s),r===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Jc(t),Yc(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,r,i,s)=>(n.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ge.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ge.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,i){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+i,e,nR,oa,oa);try{return s.runTask(o,n,r)}finally{s.cancelTask(o)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}}const nR={};function Yc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Jc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function A_(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function R_(t){t._nesting--,Yc(t)}class sR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new mt,this.onMicrotaskEmpty=new mt,this.onStable=new mt,this.onError=new mt}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,i){return e.apply(n,r)}}let Xc=(()=>{class t{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{ge.assertNotInAngularZone(),Zc(()=>{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())Zc(()=>{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,i){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:i})}whenStable(n,r,i){if(i&&!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,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,i){return[]}}return t.\u0275fac=function(n){return new(n||t)(b(ge))},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})(),x_=(()=>{class t{constructor(){this._applications=new Map,ed.addToWindow(this)}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 ed.findTestabilityInTree(this,n,r)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})();class oR{addToWindow(e){}findTestabilityInTree(e,n,r){return null}}let ed=new oR,P_=!0,N_=!1;let Ot;const F_=new z("AllowMultipleToken");class td{constructor(e,n){this.name=e,this.token=n}}function k_(t,e,n=[]){const r=`Platform: ${e}`,i=new z(r);return(s=[])=>{let o=L_();if(!o||o.injector.get(F_,!1))if(t)t(n.concat(s).concat({provide:i,useValue:!0}));else{const a=n.concat(s).concat({provide:i,useValue:!0},{provide:ss,useValue:"platform"});!function(t){if(Ot&&!Ot.destroyed&&!Ot.injector.get(F_,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ot=t.get(V_);const e=t.get(I_,null);e&&e.forEach(n=>n())}(q.create({providers:a,name:r}))}return function(t){const e=L_();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function L_(){return Ot&&!Ot.destroyed?Ot:null}let V_=(()=>{class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function(t,e){let n;return n="noop"===t?new sR:("zone.js"===t?void 0:t)||new ge({enableLongStackTrace:(N_=!0,P_),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),u=[{provide:ge,useValue:a}];return a.run(()=>{const l=q.create({providers:u,parent:this.injector,name:n.moduleType.name}),c=n.create(l),d=c.injector.get(er,null);if(!d)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:h=>{d.handleError(h)}});c.onDestroy(()=>{nd(this._modules,c),f.unsubscribe()})}),function(t,e,n){try{const r=n();return Yo(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(d,a,()=>{const f=c.injector.get(gi);return f.runInitializers(),f.donePromise.then(()=>(lc(c.injector.get(Fn,ta)||ta),this._moduleDoBootstrap(c),c))})})}bootstrapModule(n,r=[]){const i=j_({},r);return function(t,e,n){const r=new Pc(n);return Promise.resolve(r)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(n){const r=n.injector.get(mi);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${V(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);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 Error("The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(n){return new(n||t)(b(q))},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})();function j_(t,e){return Array.isArray(e)?e.reduce(j_,t):Object.assign(Object.assign({},t),e)}let mi=(()=>{class t{constructor(n,r,i,s,o){this._zone=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new se(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),u=new se(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{ge.assertNotInAngularZone(),Zc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{ge.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),d.unsubscribe()}});this.isStable=function(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return no(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof se?t[0]:Ni(e)(mu(t,n))}(a,u.pipe(t=>yu()(function(t,e){return function(r){let i;i="function"==typeof t?t:function(){return t};const s=Object.create(r,DE);return s.source=r,s.subjectFactory=i,s}}(IE)(t))))}bootstrap(n,r){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=n instanceof hy?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(i.componentType);const s=function(t){return t.isBoundToModule}(i)?void 0:this._injector.get(Jt),a=i.create(q.NULL,[],r||i.selector,s),u=a.location.nativeElement,l=a.injector.get(Xc,null),c=l&&a.injector.get(x_);return l&&c&&c.registerApplication(u,l),a.onDestroy(()=>{this.detachView(a.hostView),nd(this.components,a),c&&c.unregisterApplication(u)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");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;nd(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(T_,[]).concat(this._bootstrapListeners).forEach(i=>i(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(n){return new(n||t)(b(ge),b(q),b(er),b(Nn),b(gi))},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})();function nd(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Ea{}class ER{}const vR={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let bR=(()=>{class t{constructor(n,r){this._compiler=n,this._config=r||vR}load(n){return this.loadAndCompile(n)}loadAndCompile(n){let[r,i]=n.split("#");return void 0===i&&(i="default"),xi(255)(r).then(s=>s[i]).then(s=>$_(s,r,i)).then(s=>this._compiler.compileModuleAsync(s))}loadFactory(n){let[r,i]=n.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),xi(255)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(o=>o[i+s]).then(o=>$_(o,r,i))}}return t.\u0275fac=function(n){return new(n||t)(b(or),b(ER,8))},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})();function $_(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const NR=k_(null,"core",[{provide:Qc,useValue:"unknown"},{provide:V_,deps:[q]},{provide:x_,deps:[]},{provide:Ca,deps:[]}]),VR=[{provide:mi,useClass:mi,deps:[ge,q,er,Nn,gi]},{provide:LM,deps:[ge],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(n){e.push(n)}}},{provide:gi,useClass:gi,deps:[[new ze,As]]},{provide:or,useClass:or,deps:[]},GA,{provide:ms,useFactory:function(){return xS},deps:[]},{provide:ui,useFactory:function(){return PS},deps:[]},{provide:Fn,useFactory:function(t){return lc(t=t||"undefined"!=typeof $localize&&$localize.locale||ta),t},deps:[[new Nr(Fn),new ze,new Sn]]},{provide:S_,useValue:"USD"}];let BR=(()=>{class t{constructor(n){}}return t.\u0275fac=function(n){return new(n||t)(b(mi))},t.\u0275mod=$n({type:t}),t.\u0275inj=sn({providers:VR}),t})(),xa=null;function Ln(){return xa}const Me=new z("DocumentToken");let lr=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=B({factory:jx,token:t,providedIn:"platform"}),t})();function jx(){return b(hC)}const Bx=new z("Location Initialized");let hC=(()=>{class t extends lr{constructor(n){super(),this._doc=n,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ln().getBaseHref(this._doc)}onPopState(n){const r=Ln().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Ln().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(n){this.location.pathname=n}pushState(n,r,i){pC()?this._history.pushState(n,r,i):this.location.hash=i}replaceState(n,r,i){pC()?this._history.replaceState(n,r,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return t.\u0275fac=function(n){return new(n||t)(b(Me))},t.\u0275prov=B({factory:Hx,token:t,providedIn:"platform"}),t})();function pC(){return!!window.history.pushState}function Hx(){return new hC(b(Me))}function yd(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function gC(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function gn(t){return t&&"?"!==t[0]?"?"+t:t}let Ci=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=B({factory:Ux,token:t,providedIn:"root"}),t})();function Ux(t){const e=b(Me).location;return new mC(b(lr),e&&e.origin||"")}const _d=new z("appBaseHref");let mC=(()=>{class t extends Ci{constructor(n,r){if(super(),this._platformLocation=n,this._removeListenerFns=[],null==r&&(r=this._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");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}prepareExternalUrl(n){return yd(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+gn(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,s){const o=this.prepareExternalUrl(i+gn(s));this._platformLocation.pushState(n,r,o)}replaceState(n,r,i,s){const o=this.prepareExternalUrl(i+gn(s));this._platformLocation.replaceState(n,r,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,i;null===(i=(r=this._platformLocation).historyGo)||void 0===i||i.call(r,n)}}return t.\u0275fac=function(n){return new(n||t)(b(lr),b(_d,8))},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})(),$x=(()=>{class t extends Ci{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=yd(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,i,s){let o=this.prepareExternalUrl(i+gn(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(n,r,o)}replaceState(n,r,i,s){let o=this.prepareExternalUrl(i+gn(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,i;null===(i=(r=this._platformLocation).historyGo)||void 0===i||i.call(r,n)}}return t.\u0275fac=function(n){return new(n||t)(b(lr),b(_d,8))},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})(),Pa=(()=>{class t{constructor(n,r){this._subject=new mt,this._urlChangeListeners=[],this._platformStrategy=n;const i=this._platformStrategy.getBaseHref();this._platformLocation=r,this._baseHref=gC(yC(i)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(n=!1){return this.normalize(this._platformStrategy.path(n))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+gn(r))}normalize(n){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,yC(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._platformStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+gn(r)),i)}replaceState(n,r="",i=null){this._platformStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+gn(r)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(n=0){var r,i;null===(i=(r=this._platformStrategy).historyGo)||void 0===i||i.call(r,n)}onUrlChange(n){this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}))}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r,complete:i})}}return t.\u0275fac=function(n){return new(n||t)(b(Ci),b(lr))},t.normalizeQueryParams=gn,t.joinWithSlash=yd,t.stripTrailingSlash=gC,t.\u0275prov=B({factory:Wx,token:t,providedIn:"root"}),t})();function Wx(){return new Pa(b(Ci),b(lr))}function yC(t){return t.replace(/\/index.html$/,"")}var me=(()=>((me=me||{})[me.Zero=0]="Zero",me[me.One=1]="One",me[me.Two=2]="Two",me[me.Few=3]="Few",me[me.Many=4]="Many",me[me.Other=5]="Other",me))();const Jx=function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Hm(e);if(n)return n;const r=e.split("-")[0];if(n=Hm(r),n)return n;if("en"===r)return uT;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[E.PluralCase]};class Ua{}let SP=(()=>{class t extends Ua{constructor(n){super(),this.locale=n}getPluralCategory(n,r){switch(Jx(r||this.locale)(n)){case me.Zero:return"zero";case me.One:return"one";case me.Two:return"two";case me.Few:return"few";case me.Many:return"many";default:return"other"}}}return t.\u0275fac=function(n){return new(n||t)(b(Fn))},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})();class xP{constructor(e,n,r,i){this.$implicit=e,this.ngForOf=n,this.index=r,this.count=i}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 TC=(()=>{class t{constructor(n,r,i){this._viewContainer=n,this._template=r,this._differs=i,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;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(r){throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(t){return t.name||typeof t}(n)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=[];n.forEachOperation((i,s,o)=>{if(null==i.previousIndex){const a=this._viewContainer.createEmbeddedView(this._template,new xP(null,this._ngForOf,-1,-1),null===o?void 0:o),u=new SC(i,a);r.push(u)}else if(null==o)this._viewContainer.remove(null===s?void 0:s);else if(null!==s){const a=this._viewContainer.get(s);this._viewContainer.move(a,o);const u=new SC(i,a);r.push(u)}});for(let i=0;i<r.length;i++)this._perViewChange(r[i].view,r[i].record);for(let i=0,s=this._viewContainer.length;i<s;i++){const o=this._viewContainer.get(i);o.context.index=i,o.context.count=s,o.context.ngForOf=this._ngForOf}n.forEachIdentityChange(i=>{this._viewContainer.get(i.currentIndex).context.$implicit=i.item})}_perViewChange(n,r){n.context.$implicit=r.item}static ngTemplateContextGuard(n,r){return!0}}return t.\u0275fac=function(n){return new(n||t)(T(xt),T(hn),T(ms))},t.\u0275dir=Re({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class SC{constructor(e,n){this.record=e,this.view=n}}let MC=(()=>{class t{constructor(n,r){this._viewContainer=n,this._context=new NP,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){AC("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){AC("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return t.\u0275fac=function(n){return new(n||t)(T(xt),T(hn))},t.\u0275dir=Re({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class NP{constructor(){this.$implicit=null,this.ngIf=null}}function AC(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${V(e)}'.`)}let sN=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=$n({type:t}),t.\u0275inj=sn({providers:[{provide:Ua,useClass:SP}]}),t})();let NC=(()=>{class t{}return t.\u0275prov=B({token:t,providedIn:"root",factory:()=>new lN(b(Me),window)}),t})();class lN{constructor(e,n){this.document=e,this.window=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const n=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const s=i.shadowRoot;if(s){const o=s.getElementById(e)||s.querySelector(`[name="${e}"]`);if(o)return o}i=r.nextNode()}}return null}(this.document,e);n&&(this.scrollToElement(n),this.attemptFocus(n))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=e)}}scrollToElement(e){const n=e.getBoundingClientRect(),r=n.left+this.window.pageXOffset,i=n.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(r-s[0],i-s[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=OC(this.window.history)||OC(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function OC(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class xd extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function(t){xa||(xa=t)}(new xd)}onAndCancel(e,n,r){return e.addEventListener(n,r,!1),()=>{e.removeEventListener(n,r,!1)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=(Ls=Ls||document.querySelector("base"),Ls?Ls.getAttribute("href"):null);return null==n?null:function(t){$a=$a||document.createElement("a"),$a.setAttribute("href",t);const e=$a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(n)}resetBaseElement(){Ls=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const r=n.indexOf("="),[i,s]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,e)}}let $a,Ls=null;const FC=new z("TRANSITION_ID"),mN=[{provide:As,useFactory:function(t,e,n){return()=>{n.get(gi).donePromise.then(()=>{const r=Ln(),i=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let s=0;s<i.length;s++)r.remove(i[s])})}},deps:[FC,Me,q],multi:!0}];class Pd{static init(){!function(t){ed=t}(new Pd)}addToWindow(e){K.getAngularTestability=(r,i=!0)=>{const s=e.findTestabilityInTree(r,i);if(null==s)throw new Error("Could not find testability for element.");return s},K.getAllAngularTestabilities=()=>e.getAllTestabilities(),K.getAllAngularRootElements=()=>e.getAllRootElements(),K.frameworkStabilizers||(K.frameworkStabilizers=[]),K.frameworkStabilizers.push(r=>{const i=K.getAllAngularTestabilities();let s=i.length,o=!1;const a=function(u){o=o||u,s--,0==s&&r(o)};i.forEach(function(u){u.whenStable(a)})})}findTestabilityInTree(e,n,r){if(null==n)return null;const i=e.getTestability(n);return null!=i?i:r?Ln().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null}}let yN=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})();const Vs=new z("EventManagerPlugins");let Ga=(()=>{class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>i.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}addGlobalEventListener(n,r,i){return this._findPluginFor(r).addGlobalEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const i=this._plugins;for(let s=0;s<i.length;s++){const o=i[s];if(o.supports(n))return this._eventNameToPlugin.set(n,o),o}throw new Error(`No event manager plugin found for event ${n}`)}}return t.\u0275fac=function(n){return new(n||t)(b(Vs),b(ge))},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})();class Nd{constructor(e){this._doc=e}addGlobalEventListener(e,n,r){const i=Ln().getGlobalEventTarget(this._doc,e);if(!i)throw new Error(`Unsupported event target ${i} for event ${n}`);return this.addEventListener(i,n,r)}}let LC=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})(),js=(()=>{class t extends LC{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,i){n.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,i.push(r.appendChild(o))})}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(VC),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(n,i,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(VC))}}return t.\u0275fac=function(n){return new(n||t)(b(Me))},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})();function VC(t){Ln().remove(t)}const Od={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/"},Fd=/%COMP%/g;function qa(t,e,n){for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?qa(t,i,n):(i=i.replace(Fd,t),n.push(i))}return n}function HC(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let kd=(()=>{class t{constructor(n,r,i){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Ld(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case _e.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new PN(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(n),i}case 1:case _e.ShadowDom:return new NN(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const i=qa(r.id,r.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(n){return new(n||t)(b(Ga),b(js),b(Rs))},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})();class Ld{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,n){return n?document.createElementNS(Od[n]||n,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,n){e.appendChild(n)}insertBefore(e,n,r){e&&e.insertBefore(n,r)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,i){if(i){n=i+":"+n;const s=Od[i];s?e.setAttributeNS(s,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){const i=Od[r];i?e.removeAttributeNS(i,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,i){i&(nt.DashCase|nt.Important)?e.style.setProperty(n,r,i&nt.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&nt.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e[n]=r}setValue(e,n){e.nodeValue=n}listen(e,n,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,HC(r)):this.eventManager.addEventListener(e,n,HC(r))}}class PN extends Ld{constructor(e,n,r,i){super(e),this.component=r;const s=qa(i+"-"+r.id,r.styles,[]);n.addStyles(s),this.contentAttr=function(t){return"_ngcontent-%COMP%".replace(Fd,t)}(i+"-"+r.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(Fd,t)}(i+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,n){const r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}}class NN extends Ld{constructor(e,n,r,i){super(e),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=qa(i.id,i.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(this.nodeOrShadowRoot(e),n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let ON=(()=>{class t extends Nd{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}}return t.\u0275fac=function(n){return new(n||t)(b(Me))},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})();const WC=["alt","control","meta","shift"],HN={"\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"},GC={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},UN={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let $N=(()=>{class t extends Nd{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,i){const s=t.parseEventName(r),o=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ln().onAndCancel(n,s.domEventName,o))}static parseEventName(n){const r=n.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(r.pop());let o="";if(WC.forEach(u=>{const l=r.indexOf(u);l>-1&&(r.splice(l,1),o+=u+".")}),o+=s,0!=r.length||0===s.length)return null;const a={};return a.domEventName=i,a.fullKey=o,a}static getEventFullKey(n){let r="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&GC.hasOwnProperty(e)&&(e=GC[e]))}return HN[e]||e}(n);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),WC.forEach(s=>{s!=i&&UN[s](n)&&(r+=s+".")}),r+=i,r}static eventCallback(n,r,i){return s=>{t.getEventFullKey(s)===n&&i.runGuarded(()=>r(s))}}static _normalizeKey(n){switch(n){case"esc":return"escape";default:return n}}}return t.\u0275fac=function(n){return new(n||t)(b(Me))},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})();const YN=k_(NR,"browser",[{provide:Qc,useValue:"browser"},{provide:I_,useValue:function(){xd.makeCurrent(),Pd.init()},multi:!0},{provide:Me,useFactory:function(){return function(t){xu=t}(document),document},deps:[]}]),JN=[[],{provide:ss,useValue:"root"},{provide:er,useFactory:function(){return new er},deps:[]},{provide:Vs,useClass:ON,multi:!0,deps:[Me,ge,Qc]},{provide:Vs,useClass:$N,multi:!0,deps:[Me]},[],{provide:kd,useClass:kd,deps:[Ga,js,Rs]},{provide:aa,useExisting:kd},{provide:LC,useExisting:js},{provide:js,useClass:js,deps:[Me]},{provide:Xc,useClass:Xc,deps:[ge]},{provide:Ga,useClass:Ga,deps:[Vs,ge]},{provide:class{},useClass:yN,deps:[]},[]];let XN=(()=>{class t{constructor(n){if(n)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(n){return{ngModule:t,providers:[{provide:Rs,useValue:n.appId},{provide:FC,useExisting:Rs},mN]}}}return t.\u0275fac=function(n){return new(n||t)(b(t,12))},t.\u0275mod=$n({type:t}),t.\u0275inj=sn({providers:JN,imports:[sN,BR]}),t})();function F(...t){let e=t[t.length-1];return no(e)?(t.pop(),fu(t,e)):mu(t)}"undefined"!=typeof window&&window;class jt extends nn{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const n=super._subscribe(e);return n&&!n.closed&&e.next(this._value),n}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new mr;return this._value}next(e){super.next(this._value=e)}}class a1 extends ie{notifyNext(e,n,r,i,s){this.destination.next(n)}notifyError(e,n){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class u1 extends ie{constructor(e,n,r){super(),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function l1(t,e,n,r,i=new u1(t,n,r)){if(!i.closed)return e instanceof se?e.subscribe(i):du(e)(i)}const zC={};class d1{constructor(e){this.resultSelector=e}call(e,n){return n.subscribe(new f1(e,this.resultSelector))}}class f1 extends a1{constructor(e,n){super(e),this.resultSelector=n,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(zC),this.observables.push(e)}_complete(){const e=this.observables,n=e.length;if(0===n)this.destination.complete();else{this.active=n,this.toRespond=n;for(let r=0;r<n;r++)this.add(l1(this,e[r],void 0,r))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,n,r){const i=this.values,o=this.toRespond?i[r]===zC?--this.toRespond:this.toRespond:0;i[r]=n,0===o&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(e){let n;try{n=this.resultSelector.apply(this,e)}catch(r){return void this.destination.error(r)}this.destination.next(n)}}const za=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function Ud(...t){return Ni(1)(F(...t))}const Di=new se(t=>t.complete());function $d(t){return t?function(t){return new se(e=>t.schedule(()=>e.complete()))}(t):Di}function QC(t){return new se(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?ke(n):$d()).subscribe(e)})}function jn(t,e){return"function"==typeof e?n=>n.pipe(jn((r,i)=>ke(t(r,i)).pipe(te((s,o)=>e(r,s,i,o))))):n=>n.lift(new g1(t))}class g1{constructor(e){this.project=e}call(e,n){return n.subscribe(new m1(e,this.project))}}class m1 extends pu{constructor(e,n){super(e),this.project=n,this.index=0}_next(e){let n;const r=this.index++;try{n=this.project(e,r)}catch(i){return void this.destination.error(i)}this._innerSub(n)}_innerSub(e){const n=this.innerSubscription;n&&n.unsubscribe();const r=new hu(this),i=this.destination;i.add(r),this.innerSubscription=gu(e,r),this.innerSubscription!==r&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const KC=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Wd(t){return e=>0===t?$d():e.lift(new y1(t))}class y1{constructor(e){if(this.total=e,this.total<0)throw new KC}call(e,n){return n.subscribe(new _1(e,this.total))}}class _1 extends ie{constructor(e,n){super(e),this.total=n,this.count=0}_next(e){const n=this.total,r=++this.count;r<=n&&(this.destination.next(e),r===n&&(this.destination.complete(),this.unsubscribe()))}}function ZC(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new D1(t,e,n))}}class D1{constructor(e,n,r=!1){this.accumulator=e,this.seed=n,this.hasSeed=r}call(e,n){return n.subscribe(new E1(e,this.accumulator,this.seed,this.hasSeed))}}class E1 extends ie{constructor(e,n,r,i){super(e),this.accumulator=n,this._seed=r,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const n=this.index++;let r;try{r=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=r,this.destination.next(r)}}function Ei(t,e){return function(r){return r.lift(new v1(t,e))}}class v1{constructor(e,n){this.predicate=e,this.thisArg=n}call(e,n){return n.subscribe(new b1(e,this.predicate,this.thisArg))}}class b1 extends ie{constructor(e,n,r){super(e),this.predicate=n,this.thisArg=r,this.count=0}_next(e){let n;try{n=this.predicate.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}n&&this.destination.next(e)}}function cr(t){return function(n){const r=new w1(t),i=n.lift(r);return r.caught=i}}class w1{constructor(e){this.selector=e}call(e,n){return n.subscribe(new I1(e,this.selector,this.caught))}}class I1 extends pu{constructor(e,n,r){super(e),this.selector=n,this.caught=r}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const r=new hu(this);this.add(r);const i=gu(n,r);i!==r&&this.add(i)}}}function Bs(t,e){return Se(t,e,1)}function Gd(t){return function(n){return 0===t?$d():n.lift(new T1(t))}}class T1{constructor(e){if(this.total=e,this.total<0)throw new KC}call(e,n){return n.subscribe(new S1(e,this.total))}}class S1 extends ie{constructor(e,n){super(e),this.total=n,this.ring=new Array,this.count=0}_next(e){const n=this.ring,r=this.total,i=this.count++;n.length<r?n.push(e):n[i%r]=e}_complete(){const e=this.destination;let n=this.count;if(n>0){const r=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;s<r;s++){const o=n++%r;e.next(i[o])}}e.complete()}}function YC(t=R1){return e=>e.lift(new M1(t))}class M1{constructor(e){this.errorFactory=e}call(e,n){return n.subscribe(new A1(e,this.errorFactory))}}class A1 extends ie{constructor(e,n){super(e),this.errorFactory=n,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(n){e=n}this.destination.error(e)}}}function R1(){return new za}function JC(t=null){return e=>e.lift(new x1(t))}class x1{constructor(e){this.defaultValue=e}call(e,n){return n.subscribe(new P1(e,this.defaultValue))}}class P1 extends ie{constructor(e,n){super(e),this.defaultValue=n,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function vi(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Ei((i,s)=>t(i,s,r)):to,Wd(1),n?JC(e):YC(()=>new za))}function Bn(){}function st(t,e,n){return function(i){return i.lift(new O1(t,e,n))}}class O1{constructor(e,n,r){this.nextOrObserver=e,this.error=n,this.complete=r}call(e,n){return n.subscribe(new F1(e,this.nextOrObserver,this.error,this.complete))}}class F1 extends ie{constructor(e,n,r,i){super(e),this._tapNext=Bn,this._tapError=Bn,this._tapComplete=Bn,this._tapError=r||Bn,this._tapComplete=i||Bn,tn(n)?(this._context=this,this._tapNext=n):n&&(this._context=n,this._tapNext=n.next||Bn,this._tapError=n.error||Bn,this._tapComplete=n.complete||Bn)}_next(e){try{this._tapNext.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}class L1{constructor(e){this.callback=e}call(e,n){return n.subscribe(new V1(e,this.callback))}}class V1 extends ie{constructor(e,n){super(e),this.add(new ue(n))}}class yn{constructor(e,n){this.id=e,this.url=n}}class qd extends yn{constructor(e,n,r="imperative",i=null){super(e,n),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Hs extends yn{constructor(e,n,r){super(e,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class XC extends yn{constructor(e,n,r){super(e,n),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class j1 extends yn{constructor(e,n,r){super(e,n),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class B1 extends yn{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class H1 extends yn{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class U1 extends yn{constructor(e,n,r,i,s){super(e,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class $1 extends yn{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class W1 extends yn{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class eD{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class tD{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class G1{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class q1{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class z1{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Q1{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nD{constructor(e,n,r){this.routerEvent=e,this.position=n,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const U="primary";class K1{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n[0]:n}return null}getAll(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function bi(t){return new K1(t)}const rD="ngNavigationCancelingError";function zd(t){const e=Error("NavigationCancelingError: "+t);return e[rD]=!0,e}function Y1(t,e,n){const r=n.path.split("/");if(r.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;const i={};for(let s=0;s<r.length;s++){const o=r[s],a=t[s];if(o.startsWith(":"))i[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function Xt(t,e){const n=t?Object.keys(t):void 0,r=e?Object.keys(e):void 0;if(!n||!r||n.length!=r.length)return!1;let i;for(let s=0;s<n.length;s++)if(i=n[s],!iD(t[i],e[i]))return!1;return!0}function iD(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const n=[...t].sort(),r=[...e].sort();return n.every((i,s)=>r[s]===i)}return t===e}function sD(t){return Array.prototype.concat.apply([],t)}function oD(t){return t.length>0?t[t.length-1]:null}function Ae(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function en(t){return nc(t)?t:Yo(t)?ke(Promise.resolve(t)):F(t)}const eO={exact:function lD(t,e,n){if(!fr(t.segments,e.segments)||!Qa(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(const r in e.children)if(!t.children[r]||!lD(t.children[r],e.children[r],n))return!1;return!0},subset:cD},aD={exact:function(t,e){return Xt(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>iD(t[n],e[n]))},ignored:()=>!0};function uD(t,e,n){return eO[n.paths](t.root,e.root,n.matrixParams)&&aD[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function cD(t,e,n){return dD(t,e,e.segments,n)}function dD(t,e,n,r){if(t.segments.length>n.length){const i=t.segments.slice(0,n.length);return!(!fr(i,n)||e.hasChildren()||!Qa(i,n,r))}if(t.segments.length===n.length){if(!fr(t.segments,n)||!Qa(t.segments,n,r))return!1;for(const i in e.children)if(!t.children[i]||!cD(t.children[i],e.children[i],r))return!1;return!0}{const i=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!(fr(t.segments,i)&&Qa(t.segments,i,r)&&t.children[U])&&dD(t.children[U],e,s,r)}}function Qa(t,e,n){return e.every((r,i)=>aD[n](t[i].parameters,r.parameters))}class dr{constructor(e,n,r){this.root=e,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=bi(this.queryParams)),this._queryParamMap}toString(){return sO.serialize(this)}}class W{constructor(e,n){this.segments=e,this.children=n,this.parent=null,Ae(n,(r,i)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ka(this)}}class Us{constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=bi(this.parameters)),this._parameterMap}toString(){return gD(this)}}function fr(t,e){return t.length===e.length&&t.every((n,r)=>n.path===e[r].path)}class Qd{}class fD{parse(e){const n=new pO(e);return new dr(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){return`${`/${$s(e.root,!0)}`}${function(t){const e=Object.keys(t).map(n=>{const r=t[n];return Array.isArray(r)?r.map(i=>`${Za(n)}=${Za(i)}`).join("&"):`${Za(n)}=${Za(r)}`}).filter(n=>!!n);return e.length?`?${e.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${function(t){return encodeURI(t)}(e.fragment)}`:""}`}}const sO=new fD;function Ka(t){return t.segments.map(e=>gD(e)).join("/")}function $s(t,e){if(!t.hasChildren())return Ka(t);if(e){const n=t.children[U]?$s(t.children[U],!1):"",r=[];return Ae(t.children,(i,s)=>{s!==U&&r.push(`${s}:${$s(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function(t,e){let n=[];return Ae(t.children,(r,i)=>{i===U&&(n=n.concat(e(r,i)))}),Ae(t.children,(r,i)=>{i!==U&&(n=n.concat(e(r,i)))}),n}(t,(r,i)=>i===U?[$s(t.children[U],!1)]:[`${i}:${$s(r,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[U]?`${Ka(t)}/${n[0]}`:`${Ka(t)}/(${n.join("//")})`}}function hD(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Za(t){return hD(t).replace(/%3B/gi,";")}function Kd(t){return hD(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ya(t){return decodeURIComponent(t)}function pD(t){return Ya(t.replace(/\+/g,"%20"))}function gD(t){return`${Kd(t.path)}${function(t){return Object.keys(t).map(e=>`;${Kd(e)}=${Kd(t[e])}`).join("")}(t.parameters)}`}const lO=/^[^\/()?;=#]+/;function Ja(t){const e=t.match(lO);return e?e[0]:""}const cO=/^[^=?&#]+/,fO=/^[^?&#]+/;class pO{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new W([],{}):new W([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(n).length>0)&&(r[U]=new W(e,n)),r}parseSegment(){const e=Ja(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Us(Ya(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const n=Ja(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const i=Ja(this.remaining);i&&(r=i,this.capture(r))}e[Ya(n)]=Ya(r)}parseQueryParam(e){const n=function(t){const e=t.match(cO);return e?e[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=function(t){const e=t.match(fO);return e?e[0]:""}(this.remaining);o&&(r=o,this.capture(r))}const i=pD(n),s=pD(r);if(e.hasOwnProperty(i)){let o=e[i];Array.isArray(o)||(o=[o],e[i]=o),o.push(s)}else e[i]=s}parseParens(e){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Ja(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s;r.indexOf(":")>-1?(s=r.substr(0,r.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=U);const o=this.parseChildren();n[s]=1===Object.keys(o).length?o[U]:new W([],o),this.consumeOptional("//")}return n}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class mD{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const n=this.pathFromRoot(e);return n.length>1?n[n.length-2]:null}children(e){const n=Zd(e,this._root);return n?n.children.map(r=>r.value):[]}firstChild(e){const n=Zd(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){const n=Yd(e,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return Yd(e,this._root).map(n=>n.value)}}function Zd(t,e){if(t===e.value)return e;for(const n of e.children){const r=Zd(t,n);if(r)return r}return null}function Yd(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Yd(t,n);if(r.length)return r.unshift(e),r}return[]}class _n{constructor(e,n){this.value=e,this.children=n}toString(){return`TreeNode(${this.value})`}}function Ws(t){const e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e}class yD extends mD{constructor(e,n){super(e),this.snapshot=n,Jd(this,e)}toString(){return this.snapshot.toString()}}function _D(t,e){const n=function(t,e){const o=new Xa([],{},{},"",{},U,e,null,t.root,-1,{});return new DD("",new _n(o,[]))}(t,e),r=new jt([new Us("",{})]),i=new jt({}),s=new jt({}),o=new jt({}),a=new jt(""),u=new wi(r,i,o,a,s,U,e,n.root);return u.snapshot=n.root,new yD(new _n(u,[]),n)}class wi{constructor(e,n,r,i,s,o,a,u){this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=s,this.outlet=o,this.component=a,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(te(e=>bi(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(te(e=>bi(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function CD(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const i=n[r],s=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(s.component)break;r--}}return function(t){return t.reduce((e,n)=>({params:Object.assign(Object.assign({},e.params),n.params),data:Object.assign(Object.assign({},e.data),n.data),resolve:Object.assign(Object.assign({},e.resolve),n._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Xa{constructor(e,n,r,i,s,o,a,u,l,c,d){this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=s,this.outlet=o,this.component=a,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=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=bi(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=bi(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class DD extends mD{constructor(e,n){super(n),this.url=e,Jd(this,n)}toString(){return ED(this._root)}}function Jd(t,e){e.value._routerState=t,e.children.forEach(n=>Jd(t,n))}function ED(t){const e=t.children.length>0?` { ${t.children.map(ED).join(", ")} } `:"";return`${t.value}${e}`}function Xd(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Xt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Xt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!Xt(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Xt(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function ef(t,e){return Xt(t.params,e.params)&&function(t,e){return fr(t,e)&&t.every((n,r)=>Xt(n.parameters,e[r].parameters))}(t.url,e.url)&&!(!t.parent!=!e.parent)&&(!t.parent||ef(t.parent,e.parent))}function eu(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=e.value;const i=function(t,e,n){return e.children.map(r=>{for(const i of n.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return eu(t,r,i);return eu(t,r)})}(t,e,n);return new _n(r,i)}{if(t.shouldAttach(e.value)){const s=t.retrieve(e.value);if(null!==s){const o=s.route;return vD(e,o),o}}const r=function(t){return new wi(new jt(t.url),new jt(t.params),new jt(t.queryParams),new jt(t.fragment),new jt(t.data),t.outlet,t.component,t)}(e.value),i=e.children.map(s=>eu(t,s));return new _n(r,i)}}function vD(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n<t.children.length;++n)vD(t.children[n],e.children[n])}function tu(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Gs(t){return"object"==typeof t&&null!=t&&t.outlets}function tf(t,e,n,r,i){let s={};return r&&Ae(r,(o,a)=>{s[a]=Array.isArray(o)?o.map(u=>`${u}`):`${o}`}),new dr(n.root===t?e:bD(n.root,t,e),s,i)}function bD(t,e,n){const r={};return Ae(t.children,(i,s)=>{r[s]=i===e?n:bD(i,e,n)}),new W(t.segments,r)}class wD{constructor(e,n,r){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&tu(r[0]))throw new Error("Root segment cannot have matrix parameters");const i=r.find(Gs);if(i&&i!==oD(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class nf{constructor(e,n,r){this.segmentGroup=e,this.processChildren=n,this.index=r}}function ID(t,e,n){if(t||(t=new W([],{})),0===t.segments.length&&t.hasChildren())return nu(t,e,n);const r=function(t,e,n){let r=0,i=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=n.length)return s;const o=t.segments[i],a=n[r];if(Gs(a))break;const u=`${a}`,l=r<n.length-1?n[r+1]:null;if(i>0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!SD(u,l,o))return s;r+=2}else{if(!SD(u,{},o))return s;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){const s=new W(t.segments.slice(0,r.pathIndex),{});return s.children[U]=new W(t.segments.slice(r.pathIndex),t.children),nu(s,0,i)}return r.match&&0===i.length?new W(t.segments,{}):r.match&&!t.hasChildren()?rf(t,e,n):r.match?nu(t,0,i):rf(t,e,n)}function nu(t,e,n){if(0===n.length)return new W(t.segments,{});{const r=function(t){return Gs(t[0])?t[0].outlets:{[U]:t}}(n),i={};return Ae(r,(s,o)=>{"string"==typeof s&&(s=[s]),null!==s&&(i[o]=ID(t.children[o],e,s))}),Ae(t.children,(s,o)=>{void 0===r[o]&&(i[o]=s)}),new W(t.segments,i)}}function rf(t,e,n){const r=t.segments.slice(0,e);let i=0;for(;i<n.length;){const s=n[i];if(Gs(s)){const u=TO(s.outlets);return new W(r,u)}if(0===i&&tu(n[0])){r.push(new Us(t.segments[e].path,TD(n[0]))),i++;continue}const o=Gs(s)?s.outlets[U]:`${s}`,a=i<n.length-1?n[i+1]:null;o&&a&&tu(a)?(r.push(new Us(o,TD(a))),i+=2):(r.push(new Us(o,{})),i++)}return new W(r,{})}function TO(t){const e={};return Ae(t,(n,r)=>{"string"==typeof n&&(n=[n]),null!==n&&(e[r]=rf(new W([],{}),0,n))}),e}function TD(t){const e={};return Ae(t,(n,r)=>e[r]=`${n}`),e}function SD(t,e,n){return t==n.path&&Xt(e,n.parameters)}class MO{constructor(e,n,r,i){this.routeReuseStrategy=e,this.futureState=n,this.currState=r,this.forwardEvent=i}activate(e){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,e),Xd(this.futureState.root),this.activateChildRoutes(n,r,e)}deactivateChildRoutes(e,n,r){const i=Ws(n);e.children.forEach(s=>{const o=s.value.outlet;this.deactivateRoutes(s,i[o],r),delete i[o]}),Ae(i,(s,o)=>{this.deactivateRouteAndItsChildren(s,r)})}deactivateRoutes(e,n,r){const i=e.value,s=n?n.value:null;if(i===s)if(i.component){const o=r.getContext(i.outlet);o&&this.deactivateChildRoutes(e,n,o.children)}else this.deactivateChildRoutes(e,n,r);else s&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(e,n){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,n):this.deactivateRouteAndOutlet(e,n)}detachAndStoreRouteSubtree(e,n){const r=n.getContext(e.value.outlet);if(r&&r.outlet){const i=r.outlet.detach(),s=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:i,route:e,contexts:s})}}deactivateRouteAndOutlet(e,n){const r=n.getContext(e.value.outlet),i=r&&e.value.component?r.children:n,s=Ws(e);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],i);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(e,n,r){const i=Ws(n);e.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],r),this.forwardEvent(new Q1(s.value.snapshot))}),e.children.length&&this.forwardEvent(new q1(e.value.snapshot))}activateRoutes(e,n,r){const i=e.value,s=n?n.value:null;if(Xd(i),i===s)if(i.component){const o=r.getOrCreateContext(i.outlet);this.activateChildRoutes(e,n,o.children)}else this.activateChildRoutes(e,n,r);else if(i.component){const o=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),MD(a.route)}else{const a=function(t){for(let e=t.parent;e;e=e.parent){const n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(i.snapshot),u=a?a.module.componentFactoryResolver:null;o.attachRef=null,o.route=i,o.resolver=u,o.outlet&&o.outlet.activateWith(i,u),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,r)}}function MD(t){Xd(t.value),t.children.forEach(MD)}class sf{constructor(e,n){this.routes=e,this.module=n}}function Hn(t){return"function"==typeof t}function hr(t){return t instanceof dr}const qs=Symbol("INITIAL_VALUE");function zs(){return jn(t=>function(...t){let e,n;return no(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Cf(t[0])&&(t=t[0]),mu(t,n).lift(new d1(e))}(t.map(e=>e.pipe(Wd(1),function(...t){const e=t[t.length-1];return no(e)?(t.pop(),n=>Ud(t,n,e)):n=>Ud(t,n)}(qs)))).pipe(ZC((e,n)=>{let r=!1;return n.reduce((i,s,o)=>i!==qs?i:(s===qs&&(r=!0),r||!1!==s&&o!==n.length-1&&!hr(s)?i:s),e)},qs),Ei(e=>e!==qs),te(e=>hr(e)?e:!0===e),Wd(1)))}let AD=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=ao({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(n,r){1&n&&cs(0,"router-outlet")},directives:function(){return[qD]},encapsulation:2}),t})();function RD(t,e=""){for(let n=0;n<t.length;n++){const r=t[n];FO(r,kO(e,r))}}function FO(t,e){t.children&&RD(t.children,e)}function kO(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function of(t){const e=t.children&&t.children.map(of),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==U&&(n.component=AD),n}function Ct(t){return t.outlet||U}function xD(t,e){const n=t.filter(r=>Ct(r)===e);return n.push(...t.filter(r=>Ct(r)!==e)),n}const PD={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function ru(t,e,n){var r;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},PD):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||Y1)(n,t,e);if(!s)return Object.assign({},PD);const o={};Ae(s.posParams,(u,l)=>{o[l]=u.path});const a=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:a,positionalParamSegments:null!==(r=s.posParams)&&void 0!==r?r:{}}}function iu(t,e,n,r,i="corrected"){if(n.length>0&&function(t,e,n){return n.some(r=>su(t,e,r)&&Ct(r)!==U)}(t,n,r)){const o=new W(e,function(t,e,n,r){const i={};i[U]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const s of n)if(""===s.path&&Ct(s)!==U){const o=new W([],{});o._sourceSegment=t,o._segmentIndexShift=e.length,i[Ct(s)]=o}return i}(t,e,r,new W(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(r=>su(t,e,r))}(t,n,r)){const o=new W(t.segments,function(t,e,n,r,i,s){const o={};for(const a of r)if(su(t,n,a)&&!i[Ct(a)]){const u=new W([],{});u._sourceSegment=t,u._segmentIndexShift="legacy"===s?t.segments.length:e.length,o[Ct(a)]=u}return Object.assign(Object.assign({},i),o)}(t,e,n,r,t.children,i));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}const s=new W(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function su(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function ND(t,e,n,r){return!!(Ct(t)===r||r!==U&&su(e,n,t))&&("**"===t.path||ru(e,t,n).matched)}function OD(t,e,n){return 0===e.length&&!t.children[n]}class Qs{constructor(e){this.segmentGroup=e||null}}class FD{constructor(e){this.urlTree=e}}function ou(t){return new se(e=>e.error(new Qs(t)))}function kD(t){return new se(e=>e.error(new FD(t)))}function HO(t){return new se(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class WO{constructor(e,n,r,i,s){this.configLoader=n,this.urlSerializer=r,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(Jt)}apply(){const e=iu(this.urlTree.root,[],[],this.config).segmentGroup,n=new W(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,U).pipe(te(s=>this.createUrlTree(af(s),this.urlTree.queryParams,this.urlTree.fragment))).pipe(cr(s=>{if(s instanceof FD)return this.allowRedirects=!1,this.match(s.urlTree);throw s instanceof Qs?this.noMatchError(s):s}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,U).pipe(te(i=>this.createUrlTree(af(i),e.queryParams,e.fragment))).pipe(cr(i=>{throw i instanceof Qs?this.noMatchError(i):i}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,n,r){const i=e.segments.length>0?new W([],{[U]:e}):e;return new dr(i,n,r)}expandSegmentGroup(e,n,r,i){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(e,n,r).pipe(te(s=>new W([],s))):this.expandSegment(e,r,n,r.segments,i,!0)}expandChildren(e,n,r){const i=[];for(const s of Object.keys(r.children))"primary"===s?i.unshift(s):i.push(s);return ke(i).pipe(Bs(s=>{const o=r.children[s],a=xD(n,s);return this.expandSegmentGroup(e,a,o,s).pipe(te(u=>({segment:u,outlet:s})))}),ZC((s,o)=>(s[o.outlet]=o.segment,s),{}),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Ei((i,s)=>t(i,s,r)):to,Gd(1),n?JC(e):YC(()=>new za))}())}expandSegment(e,n,r,i,s,o){return ke(r).pipe(Bs(a=>this.expandSegmentAgainstRoute(e,n,r,a,i,s,o).pipe(cr(l=>{if(l instanceof Qs)return F(null);throw l}))),vi(a=>!!a),cr((a,u)=>{if(a instanceof za||"EmptyError"===a.name){if(OD(n,i,s))return F(new W([],{}));throw new Qs(n)}throw a}))}expandSegmentAgainstRoute(e,n,r,i,s,o,a){return ND(i,n,s,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,n,i,s,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,n,r,i,s,o):ou(n):ou(n)}expandSegmentAgainstRouteUsingRedirect(e,n,r,i,s,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,r,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,i,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,i){const s=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?kD(s):this.lineralizeSegments(r,s).pipe(Se(o=>{const a=new W(o,{});return this.expandSegment(e,a,n,o,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,i,s,o){const{matched:a,consumedSegments:u,lastChild:l,positionalParamSegments:c}=ru(n,i,s);if(!a)return ou(n);const d=this.applyRedirectCommands(u,i.redirectTo,c);return i.redirectTo.startsWith("/")?kD(d):this.lineralizeSegments(i,d).pipe(Se(f=>this.expandSegment(e,n,r,f.concat(s.slice(l)),o,!1)))}matchSegmentAgainstRoute(e,n,r,i,s){if("**"===r.path)return r.loadChildren?(r._loadedConfig?F(r._loadedConfig):this.configLoader.load(e.injector,r)).pipe(te(f=>(r._loadedConfig=f,new W(i,{})))):F(new W(i,{}));const{matched:o,consumedSegments:a,lastChild:u}=ru(n,r,i);if(!o)return ou(n);const l=i.slice(u);return this.getChildConfig(e,r,i).pipe(Se(d=>{const f=d.module,h=d.routes,{segmentGroup:p,slicedSegments:m}=iu(n,a,l,h),g=new W(p.segments,p.children);if(0===m.length&&g.hasChildren())return this.expandChildren(f,h,g).pipe(te(w=>new W(a,w)));if(0===h.length&&0===m.length)return F(new W(a,{}));const _=Ct(r)===s;return this.expandSegment(f,g,h,m,_?U:s,!0).pipe(te(v=>new W(a.concat(v.segments),v.children)))}))}getChildConfig(e,n,r){return n.children?F(new sf(n.children,e)):n.loadChildren?void 0!==n._loadedConfig?F(n._loadedConfig):this.runCanLoadGuards(e.injector,n,r).pipe(Se(i=>i?this.configLoader.load(e.injector,n).pipe(te(s=>(n._loadedConfig=s,s))):function(t){return new se(e=>e.error(zd(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(n))):F(new sf([],e))}runCanLoadGuards(e,n,r){const i=n.canLoad;return i&&0!==i.length?F(i.map(o=>{const a=e.get(o);let u;if(function(t){return t&&Hn(t.canLoad)}(a))u=a.canLoad(n,r);else{if(!Hn(a))throw new Error("Invalid CanLoad guard");u=a(n,r)}return en(u)})).pipe(zs(),st(o=>{if(!hr(o))return;const a=zd(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw a.url=o,a}),te(o=>!0===o)):F(!0)}lineralizeSegments(e,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return F(r);if(i.numberOfChildren>1||!i.children[U])return HO(e.redirectTo);i=i.children[U]}}applyRedirectCommands(e,n,r){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),e,r)}applyRedirectCreatreUrlTree(e,n,r,i){const s=this.createSegmentGroup(e,n.root,r,i);return new dr(s,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(e,n){const r={};return Ae(e,(i,s)=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[s]=n[a]}else r[s]=i}),r}createSegmentGroup(e,n,r,i){const s=this.createSegments(e,n.segments,r,i);let o={};return Ae(n.children,(a,u)=>{o[u]=this.createSegmentGroup(e,a,r,i)}),new W(s,o)}createSegments(e,n,r,i){return n.map(s=>s.path.startsWith(":")?this.findPosParam(e,s,i):this.findOrReturn(s,r))}findPosParam(e,n,r){const i=r[n.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${e}'. Cannot find '${n.path}'.`);return i}findOrReturn(e,n){let r=0;for(const i of n){if(i.path===e.path)return n.splice(r),i;r++}return e}}function af(t){const e={};for(const r of Object.keys(t.children)){const s=af(t.children[r]);(s.segments.length>0||s.hasChildren())&&(e[r]=s)}return function(t){if(1===t.numberOfChildren&&t.children[U]){const e=t.children[U];return new W(t.segments.concat(e.segments),e.children)}return t}(new W(t.segments,e))}class LD{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class au{constructor(e,n){this.component=e,this.route=n}}function zO(t,e,n){const r=t._root;return Ks(r,e?e._root:null,n,[r.value])}function uu(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Ks(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const s=Ws(e);return t.children.forEach(o=>{(function(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const u=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!fr(t.url,e.url);case"pathParamsOrQueryParamsChange":return!fr(t.url,e.url)||!Xt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ef(t,e)||!Xt(t.queryParams,e.queryParams);case"paramsChange":default:return!ef(t,e)}}(o,s,s.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new LD(r)):(s.data=o.data,s._resolvedData=o._resolvedData),Ks(t,e,s.component?a?a.children:null:n,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new au(a.outlet.component,o))}else o&&Zs(e,a,i),i.canActivateChecks.push(new LD(r)),Ks(t,null,s.component?a?a.children:null:n,r,i)})(o,s[o.value.outlet],n,r.concat([o.value]),i),delete s[o.value.outlet]}),Ae(s,(o,a)=>Zs(o,n.getContext(a),i)),i}function Zs(t,e,n){const r=Ws(t),i=t.value;Ae(r,(s,o)=>{Zs(s,i.component?e?e.children.getContext(o):null:e,n)}),n.canDeactivateChecks.push(new au(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}class oF{}function VD(t){return new se(e=>e.error(t))}class uF{constructor(e,n,r,i,s,o){this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const e=iu(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,e,U);if(null===n)return null;const r=new Xa([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},U,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new _n(r,n),s=new DD(this.url,i);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(e){const n=e.value,r=CD(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(e,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(e,n):this.processSegment(e,n,n.segments,r)}processChildren(e,n){const r=[];for(const s of Object.keys(n.children)){const o=n.children[s],a=xD(e,s),u=this.processSegmentGroup(a,o,s);if(null===u)return null;r.push(...u)}const i=jD(r);return function(t){t.sort((e,n)=>e.value.outlet===U?-1:n.value.outlet===U?1:e.value.outlet.localeCompare(n.value.outlet))}(i),i}processSegment(e,n,r,i){for(const s of e){const o=this.processSegmentAgainstRoute(s,n,r,i);if(null!==o)return o}return OD(n,r,i)?[]:null}processSegmentAgainstRoute(e,n,r,i){if(e.redirectTo||!ND(e,n,r,i))return null;let s,o=[],a=[];if("**"===e.path){const h=r.length>0?oD(r).parameters:{};s=new Xa(r,h,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,UD(e),Ct(e),e.component,e,BD(n),HD(n)+r.length,$D(e))}else{const h=ru(n,e,r);if(!h.matched)return null;o=h.consumedSegments,a=r.slice(h.lastChild),s=new Xa(o,h.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,UD(e),Ct(e),e.component,e,BD(n),HD(n)+o.length,$D(e))}const u=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:c}=iu(n,o,a,u.filter(h=>void 0===h.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const h=this.processChildren(u,l);return null===h?null:[new _n(s,h)]}if(0===u.length&&0===c.length)return[new _n(s,[])];const d=Ct(e)===i,f=this.processSegment(u,l,c,d?U:i);return null===f?null:[new _n(s,f)]}}function dF(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function jD(t){const e=[],n=new Set;for(const r of t){if(!dF(r)){e.push(r);continue}const i=e.find(s=>r.value.routeConfig===s.value.routeConfig);void 0!==i?(i.children.push(...r.children),n.add(i)):e.push(r)}for(const r of n){const i=jD(r.children);e.push(new _n(r.value,i))}return e.filter(r=>!n.has(r))}function BD(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function HD(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function UD(t){return t.data||{}}function $D(t){return t.resolve||{}}function uf(t){return jn(e=>{const n=t(e);return n?ke(n).pipe(te(()=>e)):F(e)})}class CF extends class{shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}}{}const lf=new z("ROUTES");class WD{constructor(e,n,r,i){this.loader=e,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}load(e,n){if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);const i=this.loadModuleFactory(n.loadChildren).pipe(te(s=>{this.onLoadEndListener&&this.onLoadEndListener(n);const o=s.create(e);return new sf(sD(o.injector.get(lf,void 0,S.Self|S.Optional)).map(of),o)}),cr(s=>{throw n._loader$=void 0,s}));return n._loader$=new Rf(i,()=>new nn).pipe(yu()),n._loader$}loadModuleFactory(e){return"string"==typeof e?ke(this.loader.load(e)):en(e()).pipe(Se(n=>n instanceof wy?F(n):ke(this.compiler.compileModuleAsync(n))))}}class DF{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ii,this.attachRef=null}}class Ii{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const r=this.getOrCreateContext(e);r.outlet=n,this.contexts.set(e,r)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new DF,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}}class vF{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}}function bF(t){throw t}function wF(t,e,n){return e.parse("/")}function GD(t,e){return F(null)}const IF={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},TF={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ke=(()=>{class t{constructor(n,r,i,s,o,a,u,l){this.rootComponentType=n,this.urlSerializer=r,this.rootContexts=i,this.location=s,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new nn,this.errorHandler=bF,this.malformedUriErrorHandler=wF,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:GD,afterPreactivation:GD},this.urlHandlingStrategy=new vF,this.routeReuseStrategy=new CF,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(Jt),this.console=o.get(Ca);const f=o.get(ge);this.isNgZoneEnabled=f instanceof ge&&ge.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new dr(new W([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new WD(a,u,h=>this.triggerEvent(new eD(h)),h=>this.triggerEvent(new tD(h))),this.routerState=_D(this.currentUrlTree,this.rootComponentType),this.transitions=new jt({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(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}setupNavigations(n){const r=this.events;return n.pipe(Ei(i=>0!==i.id),te(i=>Object.assign(Object.assign({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),jn(i=>{let s=!1,o=!1;return F(i).pipe(st(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),jn(a=>{const u=!this.navigated||a.extractedUrl.toString()!==this.browserUrlTree.toString(),l=("reload"===this.onSameUrlNavigation||u)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl);if(lu(a.source)&&(this.browserUrlTree=a.rawUrl),l)return F(a).pipe(jn(c=>{const d=this.transitions.getValue();return r.next(new qd(c.id,this.serializeUrl(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions.getValue()?Di:Promise.resolve(c)}),function(t,e,n,r){return jn(i=>function(t,e,n,r,i){return new WO(t,e,n,r,i).apply()}(t,e,n,i.extractedUrl,r).pipe(te(s=>Object.assign(Object.assign({},i),{urlAfterRedirects:s}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),st(c=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:c.urlAfterRedirects})}),function(t,e,n,r,i){return Se(s=>function(t,e,n,r,i="emptyOnly",s="legacy"){try{const o=new uF(t,e,n,r,i,s).recognize();return null===o?VD(new oF):F(o)}catch(o){return VD(o)}}(t,e,s.urlAfterRedirects,n(s.urlAfterRedirects),r,i).pipe(te(o=>Object.assign(Object.assign({},s),{targetSnapshot:o}))))}(this.rootComponentType,this.config,c=>this.serializeUrl(c),this.paramsInheritanceStrategy,this.relativeLinkResolution),st(c=>{"eager"===this.urlUpdateStrategy&&(c.extras.skipLocationChange||this.setBrowserUrl(c.urlAfterRedirects,c),this.browserUrlTree=c.urlAfterRedirects);const d=new B1(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);r.next(d)}));if(u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:d,extractedUrl:f,source:h,restoredState:p,extras:m}=a,g=new qd(d,this.serializeUrl(f),h,p);r.next(g);const _=_D(f,this.rootComponentType).snapshot;return F(Object.assign(Object.assign({},a),{targetSnapshot:_,urlAfterRedirects:f,extras:Object.assign(Object.assign({},m),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,this.browserUrlTree=a.urlAfterRedirects,a.resolve(null),Di}),uf(a=>{const{targetSnapshot:u,id:l,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.beforePreactivation(u,{navigationId:l,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),st(a=>{const u=new H1(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(u)}),te(a=>Object.assign(Object.assign({},a),{guards:zO(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function(t,e){return Se(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=n;return 0===o.length&&0===s.length?F(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return ke(t).pipe(Se(i=>function(t,e,n,r,i){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return s&&0!==s.length?F(s.map(a=>{const u=uu(a,e,i);let l;if(function(t){return t&&Hn(t.canDeactivate)}(u))l=en(u.canDeactivate(t,e,n,r));else{if(!Hn(u))throw new Error("Invalid CanDeactivate guard");l=en(u(t,e,n,r))}return l.pipe(vi())})).pipe(zs()):F(!0)}(i.component,i.route,n,e,r)),vi(i=>!0!==i,!0))}(o,r,i,t).pipe(Se(a=>a&&function(t){return"boolean"==typeof t}(a)?function(t,e,n,r){return ke(e).pipe(Bs(i=>Ud(function(t,e){return null!==t&&e&&e(new G1(t)),F(!0)}(i.route.parent,r),function(t,e){return null!==t&&e&&e(new z1(t)),F(!0)}(i.route,r),function(t,e,n){const r=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(o)).filter(o=>null!==o).map(o=>QC(()=>F(o.guards.map(u=>{const l=uu(u,o.node,n);let c;if(function(t){return t&&Hn(t.canActivateChild)}(l))c=en(l.canActivateChild(r,t));else{if(!Hn(l))throw new Error("Invalid CanActivateChild guard");c=en(l(r,t))}return c.pipe(vi())})).pipe(zs())));return F(s).pipe(zs())}(t,i.path,n),function(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?F(r.map(s=>QC(()=>{const o=uu(s,e,n);let a;if(function(t){return t&&Hn(t.canActivate)}(o))a=en(o.canActivate(e,t));else{if(!Hn(o))throw new Error("Invalid CanActivate guard");a=en(o(e,t))}return a.pipe(vi())}))).pipe(zs()):F(!0)}(t,i.route,n))),vi(i=>!0!==i,!0))}(r,s,t,e):F(a)),te(a=>Object.assign(Object.assign({},n),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),st(a=>{if(hr(a.guardsResult)){const l=zd(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw l.url=a.guardsResult,l}const u=new U1(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(u)}),Ei(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),uf(a=>{if(a.guards.canActivateChecks.length)return F(a).pipe(st(u=>{const l=new $1(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}),jn(u=>{let l=!1;return F(u).pipe(function(t,e){return Se(n=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return F(n);let s=0;return ke(i).pipe(Bs(o=>function(t,e,n,r){return function(t,e,n,r){const i=Object.keys(t);if(0===i.length)return F({});const s={};return ke(i).pipe(Se(o=>function(t,e,n,r){const i=uu(t,e,r);return en(i.resolve?i.resolve(e,n):i(e,n))}(t[o],e,n,r).pipe(st(a=>{s[o]=a}))),Gd(1),Se(()=>Object.keys(s).length===i.length?F(s):Di))}(t._resolve,t,e,r).pipe(te(s=>(t._resolvedData=s,t.data=Object.assign(Object.assign({},t.data),CD(t,n).resolve),null)))}(o.route,r,t,e)),st(()=>s++),Gd(1),Se(o=>s===i.length?F(n):Di))})}(this.paramsInheritanceStrategy,this.ngModule.injector),st({next:()=>l=!0,complete:()=>{l||(this.restoreHistory(u),this.cancelNavigationTransition(u,"At least one route resolver didn't emit any value."))}}))}),st(u=>{const l=new W1(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}))}),uf(a=>{const{targetSnapshot:u,id:l,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.afterPreactivation(u,{navigationId:l,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),te(a=>{const u=function(t,e,n){const r=eu(t,e._root,n?n._root:void 0);return new yD(r,e)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:u})}),st(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,e,n)=>te(r=>(new MO(e,r.targetRouterState,r.currentRouterState,n).activate(t),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),st({next(){s=!0},complete(){s=!0}}),function(t){return e=>e.lift(new L1(t))}(()=>{if(!s&&!o){const a=`Navigation ID ${i.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(i),this.cancelNavigationTransition(i,a)):this.cancelNavigationTransition(i,a)}this.currentNavigation=null}),cr(a=>{if(o=!0,function(t){return t&&t[rD]}(a)){const u=hr(a.url);u||(this.navigated=!0,this.restoreHistory(i,!0));const l=new XC(i.id,this.serializeUrl(i.extractedUrl),a.message);r.next(l),u?setTimeout(()=>{const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||lu(i.source)};this.scheduleNavigation(c,"imperative",null,d,{resolve:i.resolve,reject:i.reject,promise:i.promise})},0):i.resolve(!1)}else{this.restoreHistory(i,!0);const u=new j1(i.id,this.serializeUrl(i.extractedUrl),a);r.next(u);try{i.resolve(this.errorHandler(a))}catch(l){i.reject(l)}}return Di}))}))}resetRootComponentType(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}getTransition(){const n=this.transitions.value;return n.urlAfterRedirects=this.browserUrlTree,n}setTransition(n){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),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=this.extractLocationChangeInfoFromEvent(n);this.shouldScheduleNavigation(this.lastLocationChangeInfo,r)&&setTimeout(()=>{const{source:i,state:s,urlTree:o}=r,a={replaceUrl:!0};if(s){const u=Object.assign({},s);delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(a.state=u)}this.scheduleNavigation(o,i,s,a)},0),this.lastLocationChangeInfo=r}))}extractLocationChangeInfoFromEvent(n){var r;return{source:"popstate"===n.type?"popstate":"hashchange",urlTree:this.parseUrl(n.url),state:(null===(r=n.state)||void 0===r?void 0:r.navigationId)?n.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(n,r){if(!n)return!0;const i=r.urlTree.toString()===n.urlTree.toString();return r.transitionId!==n.transitionId||!i||!("hashchange"===r.source&&"popstate"===n.source||"popstate"===r.source&&"hashchange"===n.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(n){this.events.next(n)}resetConfig(n){RD(n),this.config=n.map(of),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:i,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:u}=r,l=i||this.routerState.root,c=u?this.currentUrlTree.fragment:o;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}return null!==d&&(d=this.removeEmptyProps(d)),function(t,e,n,r,i){if(0===n.length)return tf(e.root,e.root,e,r,i);const s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new wD(!0,0,t);let e=0,n=!1;const r=t.reduce((i,s,o)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return Ae(s.outlets,(u,l)=>{a[l]="string"==typeof u?u.split("/"):u}),[...i,{outlets:a}]}if(s.segmentPath)return[...i,s.segmentPath]}return"string"!=typeof s?[...i,s]:0===o?(s.split("/").forEach((a,u)=>{0==u&&"."===a||(0==u&&""===a?n=!0:".."===a?e++:""!=a&&i.push(a))}),i):[...i,s]},[]);return new wD(n,e,r)}(n);if(s.toRoot())return tf(e.root,new W([],{}),e,r,i);const o=function(t,e,n){if(t.isAbsolute)return new nf(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const s=n.snapshot._urlSegment;return new nf(s,s===e.root,0)}const r=tu(t.commands[0])?0:1;return function(t,e,n){let r=t,i=e,s=n;for(;s>i;){if(s-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new nf(r,!1,i-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(s,e,t),a=o.processChildren?nu(o.segmentGroup,o.index,s.commands):ID(o.segmentGroup,o.index,s.commands);return tf(o.segmentGroup,a,e,r,i)}(l,this.currentUrlTree,n,d,null!=c?c:null)}navigateByUrl(n,r={skipLocationChange:!1}){const i=hr(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,r)}navigate(n,r={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){let r;try{r=this.urlSerializer.parse(n)}catch(i){r=this.malformedUriErrorHandler(i,this.urlSerializer,n)}return r}isActive(n,r){let i;if(i=!0===r?Object.assign({},IF):!1===r?Object.assign({},TF):r,hr(n))return uD(this.currentUrlTree,n,i);const s=this.parseUrl(n);return uD(this.currentUrlTree,s,i)}removeEmptyProps(n){return Object.keys(n).reduce((r,i)=>{const s=n[i];return null!=s&&(r[i]=s),r},{})}processNavigations(){this.navigations.subscribe(n=>{this.navigated=!0,this.lastSuccessfulId=n.id,this.currentPageId=n.targetPageId,this.events.next(new Hs(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,n.resolve(!0)},n=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(n,r,i,s,o){var a,u;if(this.disposed)return Promise.resolve(!1);const l=this.getTransition(),c=lu(r)&&l&&!lu(l.source),h=(this.lastSuccessfulId===l.id||this.currentNavigation?l.rawUrl:l.urlAfterRedirects).toString()===n.toString();if(c&&h)return Promise.resolve(!0);let p,m,g;o?(p=o.resolve,m=o.reject,g=o.promise):g=new Promise((v,w)=>{p=v,m=w});const _=++this.navigationId;let y;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(i=this.location.getState()),y=i&&i.\u0275routerPageId?i.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(u=this.browserPageId)&&void 0!==u?u:0)+1):y=0,this.setTransition({id:_,targetPageId:y,source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:s,resolve:p,reject:m,promise:g,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),g.catch(v=>Promise.reject(v))}setBrowserUrl(n,r){const i=this.urlSerializer.serialize(n),s=Object.assign(Object.assign({},r.extras.state),this.generateNgRouterState(r.id,r.targetPageId));this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl?this.location.replaceState(i,"",s):this.location.go(i,"",s)}restoreHistory(n,r=!1){var i,s;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)||0===o?this.currentUrlTree===(null===(s=this.currentNavigation)||void 0===s?void 0:s.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){const i=new XC(n.id,this.serializeUrl(n.extractedUrl),r);this.triggerEvent(i),n.resolve(!1)}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return t.\u0275fac=function(n){return new(n||t)(b(Mo),b(Qd),b(Ii),b(Pa),b(q),b(Ea),b(or),b(void 0))},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})();function lu(t){return"imperative"!==t}let qD=(()=>{class t{constructor(n,r,i,s,o){this.parentContexts=n,this.location=r,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new mt,this.deactivateEvents=new mt,this.name=s||U,n.onChildOutletCreated(this.name,this)}ngOnDestroy(){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.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView)}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 Error("Cannot activate an already activated outlet");this._activatedRoute=n;const o=(r=r||this.resolver).resolveComponentFactory(n._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,u=new RF(n,a,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,u),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(n){return new(n||t)(T(Ii),T(xt),T(Nn),function(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const r=n.length;let i=0;for(;i<r;){const s=n[i];if(uh(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<r&&"string"==typeof n[i];)i++;else{if(s===e)return n[i+1];i+=2}}}return null}(Ce(),t)}("name"),T(_c))},t.\u0275dir=Re({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class RF{constructor(e,n,r){this.route=e,this.childContexts=n,this.parent=r}get(e,n){return e===wi?this.route:e===Ii?this.childContexts:this.parent.get(e,n)}}class zD{}class QD{preload(e,n){return F(null)}}let KD=(()=>{class t{constructor(n,r,i,s,o){this.router=n,this.injector=s,this.preloadingStrategy=o,this.loader=new WD(r,i,l=>n.triggerEvent(new eD(l)),l=>n.triggerEvent(new tD(l)))}setUpPreloading(){this.subscription=this.router.events.pipe(Ei(n=>n instanceof Hs),Bs(()=>this.preload())).subscribe(()=>{})}preload(){const n=this.injector.get(Jt);return this.processRoutes(n,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const i=[];for(const s of r)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const o=s._loadedConfig;i.push(this.processRoutes(o.module,o.routes))}else s.loadChildren&&!s.canLoad?i.push(this.preloadConfig(n,s)):s.children&&i.push(this.processRoutes(n,s.children));return ke(i).pipe(Ni(),te(s=>{}))}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>(r._loadedConfig?F(r._loadedConfig):this.loader.load(n.injector,r)).pipe(Se(s=>(r._loadedConfig=s,this.processRoutes(s.module,s.routes)))))}}return t.\u0275fac=function(n){return new(n||t)(b(Ke),b(Ea),b(or),b(q),b(zD))},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})(),ff=(()=>{class t{constructor(n,r,i={}){this.router=n,this.viewportScroller=r,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.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 qd?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Hs&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.router.parseUrl(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(n=>{n instanceof nD&&(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 nD(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(b(Ke),b(NC),b(void 0))},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})();const pr=new z("ROUTER_CONFIGURATION"),ZD=new z("ROUTER_FORROOT_GUARD"),PF=[Pa,{provide:Qd,useClass:fD},{provide:Ke,useFactory:function(t,e,n,r,i,s,o,a={},u,l){const c=new Ke(null,t,e,n,r,i,s,sD(o));return u&&(c.urlHandlingStrategy=u),l&&(c.routeReuseStrategy=l),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,c),a.enableTracing&&c.events.subscribe(d=>{var f,h;null===(f=console.group)||void 0===f||f.call(console,`Router Event: ${d.constructor.name}`),console.log(d.toString()),console.log(d),null===(h=console.groupEnd)||void 0===h||h.call(console)}),c},deps:[Qd,Ii,Pa,q,Ea,or,lf,pr,[class{},new ze],[class{},new ze]]},Ii,{provide:wi,useFactory:function(t){return t.routerState.root},deps:[Ke]},{provide:Ea,useClass:bR},KD,QD,class{preload(e,n){return n().pipe(cr(()=>F(null)))}},{provide:pr,useValue:{enableTracing:!1}}];function NF(){return new td("Router",Ke)}let YD=(()=>{class t{constructor(n,r){}static forRoot(n,r){return{ngModule:t,providers:[PF,JD(n),{provide:ZD,useFactory:kF,deps:[[Ke,new ze,new Sn]]},{provide:pr,useValue:r||{}},{provide:Ci,useFactory:FF,deps:[lr,[new Nr(_d),new ze],pr]},{provide:ff,useFactory:OF,deps:[Ke,NC,pr]},{provide:zD,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:QD},{provide:td,multi:!0,useFactory:NF},[hf,{provide:As,multi:!0,useFactory:BF,deps:[hf]},{provide:XD,useFactory:HF,deps:[hf]},{provide:T_,multi:!0,useExisting:XD}]]}}static forChild(n){return{ngModule:t,providers:[JD(n)]}}}return t.\u0275fac=function(n){return new(n||t)(b(ZD,8),b(Ke,8))},t.\u0275mod=$n({type:t}),t.\u0275inj=sn({}),t})();function OF(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new ff(t,e,n)}function FF(t,e,n={}){return n.useHash?new $x(t,e):new mC(t,e)}function kF(t){return"guarded"}function JD(t){return[{provide:Bv,multi:!0,useValue:t},{provide:lf,multi:!0,useValue:t}]}let hf=(()=>{class t{constructor(n){this.injector=n,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new nn}appInitializer(){return this.injector.get(Bx,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let r=null;const i=new Promise(a=>r=a),s=this.injector.get(Ke),o=this.injector.get(pr);return"disabled"===o.initialNavigation?(s.setUpLocationChangeListener(),r(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(s.hooks.afterPreactivation=()=>this.initNavigation?F(null):(this.initNavigation=!0,r(!0),this.resultOfPreactivationDone),s.initialNavigation()):r(!0),i})}bootstrapListener(n){const r=this.injector.get(pr),i=this.injector.get(KD),s=this.injector.get(ff),o=this.injector.get(Ke),a=this.injector.get(mi);n===a.components[0]&&(("enabledNonBlocking"===r.initialNavigation||void 0===r.initialNavigation)&&o.initialNavigation(),i.setUpPreloading(),s.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(n){return new(n||t)(b(q))},t.\u0275prov=B({token:t,factory:t.\u0275fac}),t})();function BF(t){return t.appInitializer.bind(t)}function HF(t){return t.bootstrapListener.bind(t)}const XD=new z("Router Initializer"),$F=[];let WF=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=$n({type:t}),t.\u0275inj=sn({imports:[[YD.forRoot($F)],YD]}),t})();function GF(t,e){if(1&t&&cs(0,"img",8),2&t){const n=Jo().$implicit;Kt("src","../assets/img/"+n+(4===n||5===n||8===n?".gif":".png"),kr)}}function qF(t,e){1&t&&cs(0,"img",8),2&t&&Kt("src","../assets/img/3.png",kr)}function zF(t,e){1&t&&cs(0,"img",8),2&t&&Kt("src","../assets/img/5.gif",kr)}function QF(t,e){if(1&t&&(xn(0,"div",6),ti(1,GF,1,1,"img",7),ti(2,qF,1,1,"img",7),ti(3,zF,1,1,"img",7),Pn()),2&t){const n=e.index,r=Jo().index,i=Jo();Mn(1),Kt("ngIf",!i.isPlayerPos(r,n)&&!i.isEnemyPos(r,n)),Mn(1),Kt("ngIf",i.isPlayerPos(r,n)&&!i.isEnemyPos(r,n)),Mn(1),Kt("ngIf",i.isEnemyPos(r,n))}}function KF(t,e){if(1&t&&(xn(0,"div",4),ti(1,QF,4,3,"div",5),Pn()),2&t){const n=e.$implicit;Mn(1),Kt("ngForOf",n)}}let ZF=(()=>{class t{constructor(){this.MAP_WIDTH=17,this.MAP_HEIGHT=13,this.MAX_ENEMIES=5,this.ENEMY_GEN_FREQ=1e3,this.ENEMY_MOV_FREQ=300,this.MAP={GRASS:0,STONE:1,BRICK:2,PLAYER:3,BOMB:4,ENEMY:5,DEAD:6,GIFT:7,MEGABOMB:8},this.mute=!1,this.map=[],this.bombPlaced=!1,this.playerPos={x:5,y:7},this.playerDead=!1,this.enemies=[],this.enemyKilled=0,this.megaBomb=!1,this.audio=new Audio("../assets/audio/soundtrack.ogg"),this.deathSound=new Audio("../assets/audio/death.wav"),this.explosionSound=new Audio("../assets/audio/explosion.ogg"),this.roarSound=new Audio("../assets/audio/roar.wav"),this.zombieDeathSound=new Audio("../assets/audio/zombie_death.wav")}ngOnInit(){this.init()}ngAfterViewInit(){this.audio.play()}init(){for(let n=0;n<this.MAP_HEIGHT;n++){this.map.push([]);for(let r=0;r<this.MAP_WIDTH;r++)this.map[n].push(0==n||0==r||n==this.MAP_HEIGHT-1||r==this.MAP_WIDTH-1||n%2==0&&r%2==0?this.MAP.STONE:this.MAP.GRASS)}this.map[5][9]=this.MAP.BRICK,this.map[5][8]=this.MAP.BRICK,this.map[6][9]=this.MAP.BRICK,this.map[7][9]=this.MAP.BRICK,this.enemyAI(),this.spawnBonus()}spawnBonus(){const n=Math.floor(20*Math.random())+5;setTimeout(()=>{let r,i;do{r=Math.floor(Math.random()*(this.MAP_HEIGHT-1)),i=Math.floor(Math.random()*(this.MAP_WIDTH-1))}while(!this.canGoTo(r,i));this.map[r][i]=this.MAP.GIFT,setTimeout(()=>{this.map[r][i]=this.MAP.GRASS},5e3),this.spawnBonus()},1e3*n)}enemyAI(){this.enemySpawnAI(),this.enemyMovementAI()}enemySpawnAI(){const n=setInterval(()=>{let r,i;do{i=Math.floor(Math.random()*(this.MAP_WIDTH-1)),r=Math.floor(Math.random()*(this.MAP_HEIGHT-1))}while(!this.canGoTo(r,i));this.enemies.push({x:r,y:i}),this.enemies.length===this.MAX_ENEMIES&&clearInterval(n)},this.ENEMY_GEN_FREQ)}enemyMovementAI(){setInterval(()=>{for(let r of this.enemies){let i=0,s=0;switch(Math.floor(4*Math.random())){case 0:i=0,s=1;break;case 1:i=-1,s=0;break;case 2:i=0,s=-1;break;case 3:i=1,s=0}this.canGoTo(r.x+i,r.y+s)&&(r.x+=i,r.y+=s),this.isEnemyOnPlayer(r)&&this.killPlayer(),0===Math.floor(100*Math.random())&&(this.mute||this.roarSound.play())}},this.ENEMY_MOV_FREQ)}isPlayerPos(n,r){return n===this.playerPos.x&&r===this.playerPos.y}isEnemyPos(n,r){for(let i of this.enemies)if(n===i.x&&r===i.y)return!0;return!1}isEnemyOnPlayer(n){return this.playerPos.x==n.x&&this.playerPos.y==n.y}keyEvent(n){this.playerDead||("ArrowDown"===n.key&&this.goDown(),"ArrowUp"===n.key&&this.goUp(),"ArrowLeft"===n.key&&this.goLeft(),"ArrowRight"===n.key&&this.goRight(),"Space"===n.code&&this.placeBomb())}goUp(){this.canGoTo(this.playerPos.x-1,this.playerPos.y)&&(this.playerPos.x-=1,this.checkBonus())}goDown(){this.canGoTo(this.playerPos.x+1,this.playerPos.y)&&(this.playerPos.x+=1,this.checkBonus())}goLeft(){this.canGoTo(this.playerPos.x,this.playerPos.y-1)&&(this.playerPos.y-=1,this.checkBonus())}goRight(){this.canGoTo(this.playerPos.x,this.playerPos.y+1)&&(this.playerPos.y+=1,this.checkBonus())}checkBonus(){this.map[this.playerPos.x][this.playerPos.y]==this.MAP.GIFT&&(this.megaBomb=!0,this.map[this.playerPos.x][this.playerPos.y]=this.MAP.GRASS)}canGoTo(n,r){return this.map[n][r]===this.MAP.GRASS||this.map[n][r]===this.MAP.GIFT}isSoft(n,r){return this.map[n][r]===this.MAP.BRICK}placeBomb(){if(this.bombPlaced)return;this.bombPlaced=!0;const n=this.playerPos.x,r=this.playerPos.y;this.map[n][r]=this.megaBomb?this.MAP.MEGABOMB:this.MAP.BOMB,setTimeout(()=>{this.mute||this.explosionSound.play(),this.explodeWalls(n,r),this.killPlayers(n,r)},1e3),setTimeout(()=>{this.map[n][r]=this.MAP.GRASS,this.bombPlaced=!1},1500)}explodeWalls(n,r){this.isSoft(n-1,r)&&(this.map[n-1][r]=this.MAP.GRASS),this.isSoft(n,r-1)&&(this.map[n][r-1]=this.MAP.GRASS),this.isSoft(n+1,r)&&(this.map[n+1][r]=this.MAP.GRASS),this.isSoft(n,r+1)&&(this.map[n][r+1]=this.MAP.GRASS)}killPlayers(n,r){(this.isPlayerPos(n,r)||this.isPlayerPos(n-1,r)||this.isPlayerPos(n,r-1)||this.isPlayerPos(n+1,r)||this.isPlayerPos(n,r+1))&&this.killPlayer(),this.isEnemyPos(n,r)&&this.killEnemy({x:r,y:r}),this.isEnemyPos(n-1,r)&&this.killEnemy({x:n-1,y:r}),this.isEnemyPos(n,r-1)&&this.killEnemy({x:n,y:r-1}),this.isEnemyPos(n+1,r)&&this.killEnemy({x:n+1,y:r}),this.isEnemyPos(n,r+1)&&this.killEnemy({x:n,y:r+1})}killPlayer(){this.map[this.playerPos.x][this.playerPos.y]=this.MAP.DEAD,this.playerDead=!0,this.playerPos={x:-1,y:-1},this.mute||this.deathSound.play()}killEnemy(n){this.map[n.x][n.y]=this.MAP.GRASS,this.enemies=this.enemies.filter(r=>!(n.x===r.x&&n.y===r.y)),this.enemyKilled++,this.mute||this.zombieDeathSound.play()}muteAudio(){this.mute=!this.mute,this.audio.muted=!this.audio.muted}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=ao({type:t,selectors:[["app-root"]],hostBindings:function(n,r){1&n&&ri("keyup",function(s){return r.keyEvent(s)},!1,Xh)},decls:7,vars:3,consts:[[3,"click"],[1,"container"],["class","row",4,"ngFor","ngForOf"],[1,"score"],[1,"row"],["class","column",4,"ngFor","ngForOf"],[1,"column"],[3,"src",4,"ngIf"],[3,"src"]],template:function(n,r){1&n&&(xn(0,"button",0),ri("click",function(){return r.muteAudio()}),oc(1),Pn(),xn(2,"div",1),ti(3,KF,2,1,"div",2),Pn(),xn(4,"div",3),xn(5,"p"),oc(6),Pn(),Pn()),2&n&&(Mn(1),ac(r.audio.muted?"\u{1f507}":"\u{1f50a}"),Mn(2),Kt("ngForOf",r.map),Mn(3),ea("Kills: ",r.enemyKilled,""))},directives:[TC,MC],styles:[".container[_ngcontent-%COMP%]{margin:auto;width:850px;background-image:url(0.6e20e99259d3b47c54b7.png);background-size:50px 50px}.row[_ngcontent-%COMP%]{height:50px}.column[_ngcontent-%COMP%]{width:50px;height:50px;display:inline-block;text-align:center;line-height:50px}.column[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%}.score[_ngcontent-%COMP%]{font-weight:bold;font-size:29px;text-align:center;color:#fff;background:black}"]}),t})(),YF=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=$n({type:t,bootstrap:[ZF]}),t.\u0275inj=sn({providers:[],imports:[[XN,WF]]}),t})();(function(){if(N_)throw new Error("Cannot enable prod mode after platform setup.");P_=!1})(),YN().bootstrapModule(YF).catch(t=>console.error(t))}},Ri=>{Ri(Ri.s=84)}]);