text: (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},P6L6:function(t){t.exports=JSON.parse('{"team_member_cards":[{"memberName":"Michelle Patterson","imageSrc":"assets/images/truck_umbrella.jpg","position":"Founder/Director","description":"Has a background in Social Work and extensive knowledge about the shelter services provided in the Phoenix metropolitan area.","imageDescription":"Michelle\'s face"},{"memberName":"Dan Dito","imageSrc":"assets/images/test.jpg","position":"Developer Extrodinair","description":"Builder of this website","imageDescription":"Jurrasic Park"},{"memberName":"Michelle Patterson","imageSrc":"assets/images/truck_umbrella.jpg","position":"Founder/Director","description":"Has a background in Social Work and extensive knowledge about the shelter services provided in the Phoenix metropolitan area.","imageDescription":"Michelle\'s face"}]}')},zUnb:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.r(e);let s=!1;const o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function i(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(o.useDeprecatedSynchronousErrorHandling)throw t;i(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const u=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let h=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:s,_unsubscribe:o,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(r(o)){s&&(this._unsubscribe=void 0);try{o.call(this)}catch(a){e=a instanceof u?d(a.errors):[a]}}if(l(i)){let t=-1,n=i.length;for(;++t<n;){const n=i[t];if(c(n))try{n.unsubscribe()}catch(a){e=e||[],a instanceof u?e=e.concat(d(a.errors)):e.push(a)}}}if(e)throw new u(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}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 t){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}return t.EMPTY=function(t){return t.closed=!0,t}(new t),t})();function d(t){return t.reduce((t,e)=>t.concat(e instanceof u?e.errors:e),[])}const f=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class p extends h{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof p?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,n)}}[f](){return this}static create(t,e,n){const r=new p(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class g extends p{constructor(t,e,n,s){let o;super(),this._parentSubscriber=t;let i=this;r(e)?o=e:e&&(o=e.next,n=e.error,s=e.complete,e!==a&&(i=Object.create(e),r(i.unsubscribe)&&this.add(i.unsubscribe.bind(i)),i.unsubscribe=this.unsubscribe.bind(this))),this._context=i,this._next=o,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;o.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=o;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):i(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;i(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);o.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),o.useDeprecatedSynchronousErrorHandling)throw n;i(n)}}__tryOrSetError(t,e,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return o.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(i(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(t){return t}let v=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:r}=this,s=function(t,e,n){if(t){if(t instanceof p)return t;if(t[f])return t[f]()}return t||e||n?new p(t,e,n):new p(a)}(t,e,n);if(s.add(r?r.call(s,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),o.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){o.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof p?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=_(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(s){n(s),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=_(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function _(t){if(t||(t=o.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const w=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class b extends h{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class C extends p{constructor(t){super(t),this.destination=t}}let S=(()=>{class t extends v{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new C(this)}lift(t){const e=new x(this,this);return e.operator=t,e}next(t){if(this.closed)throw new w;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;s<n;s++)r[s].next(t)}}error(t){if(this.closed)throw new w;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;s<n;s++)r[s].error(t);this.observers.length=0}complete(){if(this.closed)throw new w;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let r=0;r<e;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new w;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new w;return this.hasError?(t.error(this.thrownError),h.EMPTY):this.isStopped?(t.complete(),h.EMPTY):(this.observers.push(t),new b(this,t))}asObservable(){const t=new v;return t.source=this,t}}return t.create=(t,e)=>new x(t,e),t})();class x extends S{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):h.EMPTY}}function E(t){return t&&"function"==typeof t.schedule}function T(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new k(t,e))}}class k{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new A(t,this.project,this.thisArg))}}class A extends p{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const O=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()};function I(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const R=I(),P=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function j(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const N=t=>{if(t&&"function"==typeof t[m])return r=t,t=>{const e=r[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(P(t))return O(t);if(j(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,i),t);if(t&&"function"==typeof t[R])return e=t,t=>{const n=e[R]();for(;;){let e;try{e=n.next()}catch(r){return t.error(r),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,r};function D(t,e){return new v(n=>{const r=new h;let s=0;return r.add(e.schedule((function(){s!==t.length?(n.next(t[s++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}function U(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new v(n=>{const r=new h;return r.add(e.schedule(()=>{const s=t[m]();r.add(s.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(j(t))return function(t,e){return new v(n=>{const r=new h;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(P(t))return D(t,e);if(function(t){return t&&"function"==typeof t[R]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new v(n=>{const r=new h;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(e.schedule(()=>{s=t[R](),r.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())})))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof v?t:new v(N(t))}class M extends p{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class H extends p{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function L(t,e){if(!e.closed)return t instanceof v?t.subscribe(e):N(t)(e)}function F(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(F((n,r)=>U(t(n,r)).pipe(T((t,s)=>e(n,t,r,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new V(t,n)))}class V{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new $(t,this.project,this.concurrent))}}class $ extends H{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)}_innerSub(t){const e=new M(this),n=this.destination;n.add(e);const r=L(t,e);r!==e&&n.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function z(t=Number.POSITIVE_INFINITY){return F(y,t)}function B(t,e){return e?D(t,e):new v(O(t))}function q(){return function(t){return t.lift(new W(t))}}class W{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new Z(t,n),s=e.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class Z extends p{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class G extends v{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new h,t.add(this.source.subscribe(new J(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return q()(this)}}const Q=(()=>{const t=G.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 J extends C{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function Y(){return new S}function K(t){return{toString:t}.toString()}const X="__parameters__";function tt(t,e,n){return K(()=>{const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return r.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,r){const s=t.hasOwnProperty(X)?t[X]:Object.defineProperty(t,X,{value:[]})[X];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const et=tt("Inject",t=>({token:t})),nt=tt("Optional"),rt=tt("Self"),st=tt("SkipSelf");var ot=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function it(t){for(let e in t)if(t[e]===it)return e;throw Error("Could not find renamed property on target object.")}function at(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function lt(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function ct(t){return ut(t,t[dt])||ut(t,t[gt])}function ut(t,e){return e&&e.token===t?e:null}function ht(t){return t&&(t.hasOwnProperty(ft)||t.hasOwnProperty(mt))?t[ft]:null}const dt=it({"\u0275prov":it}),ft=it({"\u0275inj":it}),pt=it({"\u0275provFallback":it}),gt=it({ngInjectableDef:it}),mt=it({ngInjectorDef:it});function yt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(yt).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 vt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const _t=it({__forward_ref__:it});function wt(t){return t.__forward_ref__=wt,t.toString=function(){return yt(this())},t}function bt(t){return"function"==typeof(e=t)&&e.hasOwnProperty(_t)&&e.__forward_ref__===wt?t():t;var e}const Ct="undefined"!=typeof globalThis&&globalThis,St="undefined"!=typeof window&&window,xt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Et="undefined"!=typeof global&&global,Tt=Ct||Et||St||xt,kt=it({"\u0275cmp":it}),At=it({"\u0275dir":it}),Ot=it({"\u0275pipe":it}),It=it({"\u0275mod":it}),Rt=it({"\u0275loc":it}),Pt=it({"\u0275fac":it}),jt=it({__NG_ELEMENT_ID__:it});class Nt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=at({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Dt=new Nt("INJECTOR",-1),Ut={},Mt=/\n/gm,Ht="__source",Lt=it({provide:String,useValue:it});let Ft,Vt=void 0;function $t(t){const e=Vt;return Vt=t,e}function zt(t){const e=Ft;return Ft=t,e}function Bt(t,e=ot.Default){if(void 0===Vt)throw new Error("inject() must be called from an injection context");return null===Vt?Wt(t,void 0,e):Vt.get(t,e&ot.Optional?null:void 0,e)}function qt(t,e=ot.Default){return(Ft||Bt)(bt(t),e)}function Wt(t,e,n){const r=ct(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&ot.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${yt(t)}]`)}function Zt(t){const e=[];for(let n=0;n<t.length;n++){const r=bt(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=ot.Default;for(let e=0;e<r.length;e++){const s=r[e];s instanceof nt||"Optional"===s.ngMetadataName||s===nt?n|=ot.Optional:s instanceof st||"SkipSelf"===s.ngMetadataName||s===st?n|=ot.SkipSelf:s instanceof rt||"Self"===s.ngMetadataName||s===rt?n|=ot.Self:t=s instanceof et||s===et?s.token:s}e.push(qt(t,n))}else e.push(qt(r))}return e}class Gt{get(t,e=Ut){if(e===Ut){const e=new Error(`NullInjectorError: No provider for ${yt(t)}!`);throw e.name="NullInjectorError",e}return e}}class Qt{}class Jt{}function Yt(t,e){t.forEach(t=>Array.isArray(t)?Yt(t,e):e(t))}function Kt(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Xt(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function te(t,e,n){let r=ne(t,e);return r>=0?t[1|r]=n:(r=~r,function(t,e,n,r){let s=t.length;if(s==e)t.push(n,r);else if(1===s)t.push(r,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function ee(t,e){const n=ne(t,e);if(n>=0)return t[1|n]}function ne(t,e){return function(t,e,n){let r=0,s=t.length>>1;for(;s!==r;){const n=r+(s-r>>1),o=t[n<<1];if(e===o)return n<<1;o>e?s=n:r=n+1}return~(s<<1)}(t,e)}var re=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),se=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const oe={},ie=[];let ae=0;function le(t){return K(()=>{const e={},n={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:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===re.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ie,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||se.Emulated,id:"c",styles:t.styles||ie,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,s=t.features,o=t.pipes;return n.id+=ae++,n.inputs=fe(t.inputs,e),n.outputs=fe(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(ce):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(ue):null,n})}function ce(t){return ge(t)||function(t){return t[At]||null}(t)}function ue(t){return function(t){return t[Ot]||null}(t)}const he={};function de(t){const e={type:t.type,bootstrap:t.bootstrap||ie,declarations:t.declarations||ie,imports:t.imports||ie,exports:t.exports||ie,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&K(()=>{he[t.id]=t.type}),e}function fe(t,e){if(null==t)return oe;const n={};for(const r in t)if(t.hasOwnProperty(r)){let s=t[r],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),n[s]=r,e&&(e[s]=o)}return n}const pe=le;function ge(t){return t[kt]||null}function me(t,e){return t.hasOwnProperty(Pt)?t[Pt]:null}function ye(t,e){const n=t[It]||null;if(!n&&!0===e)throw new Error(`Type ${yt(t)} does not have '\u0275mod' property.`);return n}const ve=20,_e=10;function we(t){return Array.isArray(t)&&"object"==typeof t[1]}function be(t){return Array.isArray(t)&&!0===t[1]}function Ce(t){return 0!=(8&t.flags)}function Se(t){return 2==(2&t.flags)}function xe(t){return 1==(1&t.flags)}function Ee(t){return null!==t.template}function Te(t){return 0!=(512&t[2])}class ke{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ae(){return Oe}function Oe(t){return t.type.prototype.ngOnChanges&&(t.setInput=Re),Ie}function Ie(){const t=Pe(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===oe)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Re(t,e,n,r){const s=Pe(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:oe,current:null}),o=s.current||(s.current={}),i=s.previous,a=this.declaredInputs[n],l=i[a];o[a]=new ke(l&&l.currentValue,e,i===oe),t[r]=e}function Pe(t){return t.__ngSimpleChanges__||null}Ae.ngInherit=!0;let je=void 0;function Ne(t){return!!t.listen}const De={createRenderer:(t,e)=>void 0!==je?je:"undefined"!=typeof document?document:void 0};function Ue(t){for(;Array.isArray(t);)t=t[0];return t}function Me(t,e){return Ue(e[t+ve])}function He(t,e){return Ue(e[t.index])}function Le(t,e){return t.data[e+ve]}function Fe(t,e){const n=e[t];return we(n)?n:n[0]}function Ve(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function $e(t){return 128==(128&t[2])}function ze(t,e){return null===t||null==e?null:t[e]}function Be(t){t[18]=0}function qe(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 We={lFrame:cn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Ze(){return We.bindingsEnabled}function Ge(){return We.lFrame.lView}function Qe(){return We.lFrame.tView}function Je(){return We.lFrame.currentTNode}function Ye(t,e){We.lFrame.currentTNode=t,We.lFrame.isParent=e}function Ke(){return We.lFrame.isParent}function Xe(){return We.checkNoChangesMode}function tn(t){We.checkNoChangesMode=t}function en(){return We.lFrame.bindingIndex++}function nn(t,e){const n=We.lFrame;n.bindingIndex=n.bindingRootIndex=t,rn(e)}function rn(t){We.lFrame.currentDirectiveIndex=t}function sn(t){We.lFrame.currentQueryIndex=t}function on(t,e){const n=ln();We.lFrame=n,n.currentTNode=e,n.lView=t}function an(t){const e=ln(),n=t[1];We.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex}function ln(){const t=We.lFrame,e=null===t?null:t.child;return null===e?cn(t):e}function cn(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function un(){const t=We.lFrame;return We.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const hn=un;function dn(){const t=un();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function fn(){return We.lFrame.selectedIndex}function pn(t){We.lFrame.selectedIndex=t}function gn(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:r,ngAfterContentChecked:s,ngAfterViewInit:o,ngAfterViewChecked:i,ngOnDestroy:a}=e;r&&(t.contentHooks||(t.contentHooks=[])).push(-n,r),s&&((t.contentHooks||(t.contentHooks=[])).push(n,s),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,s)),o&&(t.viewHooks||(t.viewHooks=[])).push(-n,o),i&&((t.viewHooks||(t.viewHooks=[])).push(n,i),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,i)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function mn(t,e,n){_n(t,e,3,n)}function yn(t,e,n,r){(3&t[2])===n&&_n(t,e,n,r)}function vn(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function _n(t,e,n,r){const s=null!=r?r:-1;let o=0;for(let i=void 0!==r?65535&t[18]:0;i<e.length;i++)if("number"==typeof e[i+1]){if(o=e[i],null!=r&&o>=r)break}else e[i]<0&&(t[18]+=65536),(o<s||-1==s)&&(wn(t,n,e,i),t[18]=(4294901760&t[18])+i+2),i++}function wn(t,e,n,r){const s=n[r]<0,o=n[r+1],i=t[s?-n[r]:n[r]];s?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,o.call(i)):o.call(i)}const bn=-1;class Cn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Sn(t,e,n){const r=Ne(t);let s=0;for(;s<n.length;){const o=n[s];if("number"==typeof o){if(0!==o)break;s++;const i=n[s++],a=n[s++],l=n[s++];r?t.setAttribute(e,a,l,i):e.setAttributeNS(i,a,l)}else{const i=o,a=n[++s];En(i)?r&&t.setProperty(e,i,a):r?t.setAttribute(e,i,a):e.setAttribute(i,a),s++}}return s}function xn(t){return 3===t||4===t||6===t}function En(t){return 64===t.charCodeAt(0)}function Tn(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const s=e[r];"number"==typeof s?n=s:0===n||kn(t,n,s,null,-1===n||2===n?e[++r]:null)}}return t}function kn(t,e,n,r,s){let o=0,i=t.length;if(-1===e)i=-1;else for(;o<t.length;){const n=t[o++];if("number"==typeof n){if(n===e){i=-1;break}if(n>e){i=o-1;break}}}for(;o<t.length;){const e=t[o];if("number"==typeof e)break;if(e===n){if(null===r)return void(null!==s&&(t[o+1]=s));if(r===t[o+1])return void(t[o+2]=s)}o++,null!==r&&o++,null!==s&&o++}-1!==i&&(t.splice(i,0,e),o=i+1),t.splice(o++,0,n),null!==r&&t.splice(o++,0,r),null!==s&&t.splice(o++,0,s)}function An(t){return t!==bn}function On(t){return 32767&t}function In(t,e){let n=t>>16,r=e;for(;n>0;)r=r[15],n--;return r}function Rn(t){return"string"==typeof t?t:null==t?"":""+t}function Pn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Rn(t)}const jn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Tt))();function Nn(t){return t instanceof Function?t():t}let Dn=!0;function Un(t){const e=Dn;return Dn=t,e}let Mn=0;function Hn(t,e){const n=Fn(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,Ln(r.data,t),Ln(e,null),Ln(r.blueprint,null));const s=Vn(t,e),o=t.injectorIndex;if(An(s)){const t=On(s),n=In(s,e),r=n[1].data;for(let s=0;s<8;s++)e[o+s]=n[t+s]|r[t+s]}return e[o+8]=s,o}function Ln(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Fn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Vn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(r=2===e?t.declTNode:1===e?s[6]:null,null===r)return bn;if(n++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return bn}function $n(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(jt)&&(r=n[jt]),null==r&&(r=n[jt]=Mn++);const s=255&r,o=1<<s,i=64&s,a=32&s,l=e.data;128&s?i?a?l[t+7]|=o:l[t+6]|=o:a?l[t+5]|=o:l[t+4]|=o:i?a?l[t+3]|=o:l[t+2]|=o:a?l[t+1]|=o:l[t]|=o}(t,e,n)}function zn(t,e,n,r=ot.Default,s){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(jt)?t[jt]:void 0;return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof s){on(e,t);try{const t=s();if(null!=t||r&ot.Optional)return t;throw new Error(`No provider for ${Pn(n)}!`)}finally{hn()}}else if("number"==typeof s){if(-1===s)return new Qn(t,e);let o=null,i=Fn(t,e),a=bn,l=r&ot.Host?e[16][6]:null;for((-1===i||r&ot.SkipSelf)&&(a=-1===i?Vn(t,e):e[i+8],a!==bn&&Gn(r,!1)?(o=e[1],i=On(a),e=In(a,e)):i=-1);-1!==i;){const t=e[1];if(Zn(s,i,t.data)){const t=qn(i,e,n,o,r,l);if(t!==Bn)return t}a=e[i+8],a!==bn&&Gn(r,e[1].data[i+8]===l)&&Zn(s,i,e)?(o=t,i=On(a),e=In(a,e)):i=-1}}}if(r&ot.Optional&&void 0===s&&(s=null),0==(r&(ot.Self|ot.Host))){const t=e[9],o=zt(void 0);try{return t?t.get(n,s,r&ot.Optional):Wt(n,s,r&ot.Optional)}finally{zt(o)}}if(r&ot.Optional)return s;throw new Error(`NodeInjector: NOT_FOUND [${Pn(n)}]`)}const Bn={};function qn(t,e,n,r,s,o){const i=e[1],a=i.data[t+8],l=function(t,e,n,r,s){const o=t.providerIndexes,i=e.data,a=1048575&o,l=t.directiveStart,c=o>>20,u=s?a+c:t.directiveEnd;for(let h=r?a:a+c;h<u;h++){const t=i[h];if(h<l&&n===t||h>=l&&t.type===n)return h}if(s){const t=i[l];if(t&&Ee(t)&&t.type===n)return l}return null}(a,i,n,null==r?Se(a)&&Dn:r!=i&&2===a.type,s&ot.Host&&o===a);return null!==l?Wn(e,i,l,a):Bn}function Wn(t,e,n,r){let s=t[n];const o=e.data;if(s instanceof Cn){const i=s;if(i.resolving)throw new Error("Circular dep for "+Pn(o[n]));const a=Un(i.canSeeViewProviders);i.resolving=!0;const l=i.injectImpl?zt(i.injectImpl):null;on(t,r);try{s=t[n]=i.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:o}=e.type.prototype;if(r){const r=Oe(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==l&&zt(l),Un(a),i.resolving=!1,hn()}}return s}function Zn(t,e,n){const r=64&t,s=32&t;let o;return o=128&t?r?s?n[e+7]:n[e+6]:s?n[e+5]:n[e+4]:r?s?n[e+3]:n[e+2]:s?n[e+1]:n[e],!!(o&1<<t)}function Gn(t,e){return!(t&ot.Self||t&ot.Host&&e)}class Qn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return zn(this._tNode,this._lView,t,void 0,e)}}function Jn(t){return t.ngDebugContext}function Yn(t){return t.ngOriginalError}function Kn(t,...e){t.error(...e)}class Xn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||Kn}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?Jn(t)?Jn(t):this._findContext(Yn(t)):null}_findOriginalError(t){let e=Yn(t);for(;e&&Yn(e);)e=Yn(e);return e}}class tr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}function er(t){return t instanceof tr?t.changingThisBreaksApplicationSecurity:t}let nr=!0,rr=!1;function sr(){return rr=!0,nr}const or=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,ir=/^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 ar=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function lr(t){const e=function(){const t=Ge();return t&&t[12]}();return e?e.sanitize(ar.URL,t)||"":function(t,e){const n=function(t){return t instanceof tr&&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 http://g.co/ng/security#xss)`)}return n===e}(t,"URL")?er(t):(n=Rn(t),(n=String(n)).match(or)||n.match(ir)?n:(sr()&&console.warn(`WARNING: sanitizing unsafe URL value ${n} (see http://g.co/ng/security#xss)`),"unsafe:"+n));var n}function cr(t,e){t.__ngContext__=e}function ur(t,e,n){let r=t.length;for(;;){const s=t.indexOf(e,n);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const n=e.length;if(s+n===r||t.charCodeAt(s+n)<=32)return s}n=s+1}}const hr="ng-template";function dr(t,e,n){let r=0;for(;r<t.length;){let s=t[r++];if(n&&"class"===s){if(s=t[r],-1!==ur(s.toLowerCase(),e,0))return!0}else if(1===s){for(;r<t.length&&"string"==typeof(s=t[r++]);)if(s.toLowerCase()===e)return!0;return!1}}return!1}function fr(t){return 0===t.type&&t.tagName!==hr}function pr(t,e,n){return e===(0!==t.type||n?t.tagName:hr)}function gr(t,e,n){let r=4;const s=t.attrs||[],o=function(t){for(let e=0;e<t.length;e++)if(xn(t[e]))return e;return t.length}(s);let i=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!i)if(4&r){if(r=2|1&r,""!==l&&!pr(t,l,n)||""===l&&1===e.length){if(mr(r))return!1;i=!0}}else{const c=8&r?l:e[++a];if(8&r&&null!==t.attrs){if(!dr(t.attrs,c,n)){if(mr(r))return!1;i=!0}continue}const u=yr(8&r?"class":l,s,fr(t),n);if(-1===u){if(mr(r))return!1;i=!0;continue}if(""!==c){let t;t=u>o?"":s[u+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==ur(e,c,0)||2&r&&c!==t){if(mr(r))return!1;i=!0}}}}else{if(!i&&!mr(r)&&!mr(l))return!1;if(i&&mr(l))continue;i=!1,r=l|1&r}}return mr(r)||i}function mr(t){return 0==(1&t)}function yr(t,e,n,r){if(null===e)return-1;let s=0;if(r||!n){let n=!1;for(;s<e.length;){const r=e[s];if(r===t)return s;if(3===r||6===r)n=!0;else{if(1===r||2===r){let t=e[++s];for(;"string"==typeof t;)t=e[++s];continue}if(4===r)break;if(0===r){s+=4;continue}}s+=n?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 vr(t,e,n=!1){for(let r=0;r<e.length;r++)if(gr(t,e[r],n))return!0;return!1}function _r(t,e){return t?":not("+e.trim()+")":e}function wr(t){let e=t[0],n=1,r=2,s="",o=!1;for(;n<t.length;){let i=t[n];if("string"==typeof i)if(2&r){const e=t[++n];s+="["+i+(e.length>0?'="'+e+'"':"")+"]"}else 8&r?s+="."+i:4&r&&(s+=" "+i);else""===s||mr(i)||(e+=_r(o,s),s=""),r=i,o=o||!mr(r);n++}return""!==s&&(e+=_r(o,s)),e}const br={};function Cr(t){const e=t[3];return be(e)?e[3]:e}function Sr(t){return Er(t[13])}function xr(t){return Er(t[4])}function Er(t){for(;null!==t&&!be(t);)t=t[4];return t}function Tr(t){kr(Qe(),Ge(),fn()+t,Xe())}function kr(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&mn(e,r,n)}else{const r=t.preOrderHooks;null!==r&&yn(e,r,0,n)}pn(n)}function Ar(t,e){return t<<17|e<<2}function Or(t){return t>>17&32767}function Ir(t){return 2|t}function Rr(t){return(131068&t)>>2}function Pr(t,e){return-131069&t|e<<2}function jr(t){return 1|t}function Nr(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const s=n[r],o=n[r+1];if(-1!==o){const n=t.data[o];sn(s),n.contentQueries(2,e[o],o)}}}function Dr(t,e,n){return Ne(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Ur(t,e,n,r,s,o,i,a,l,c){const u=e.blueprint.slice();return u[0]=s,u[2]=140|r,Be(u),u[3]=u[15]=t,u[8]=n,u[10]=i||t&&t[10],u[11]=a||t&&t[11],u[12]=l||t&&t[12]||null,u[9]=c||t&&t[9]||null,u[6]=o,u[16]=2==e.type?t[16]:u,u}function Mr(t,e,n,r,s){const o=e+ve,i=t.data[o]||function(t,e,n,r,s){const o=Je(),i=Ke(),a=t.data[e]=function(t,e,n,r,s,o){return{type:n,index:r,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:s,attrs:o,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,i?o:o&&o.parent,n,e,r,s);return null===t.firstChild&&(t.firstChild=a),null!==o&&(i&&null==o.child&&null!==a.parent?o.child=a:i||(o.next=a)),a}(t,o,n,r,s);return Ye(i,!0),i}function Hr(t,e,n){an(e);try{const r=t.viewQuery;null!==r&&ds(1,r,n);const s=t.template;null!==s&&Vr(t,e,s,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Nr(t,e),t.staticViewQueries&&ds(2,t.viewQuery,n);const o=t.components;null!==o&&function(t,e){for(let n=0;n<e.length;n++)as(t,e[n])}(e,o)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),r}finally{e[2]&=-5,dn()}}function Lr(t,e,n,r){const s=e[2];if(256==(256&s))return;an(e);const o=Xe();try{Be(e),We.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Vr(t,e,n,2,r);const i=3==(3&s);if(!o)if(i){const n=t.preOrderCheckHooks;null!==n&&mn(e,n,null)}else{const n=t.preOrderHooks;null!==n&&yn(e,n,0,null),vn(e,0)}if(function(t){for(let e=Sr(t);null!==e;e=xr(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],r=n[3];0==(1024&n[2])&&qe(r,1),n[2]|=1024}}}(e),function(t){for(let e=Sr(t);null!==e;e=xr(e))for(let t=_e;t<e.length;t++){const n=e[t],r=n[1];$e(n)&&Lr(r,n,r.template,n[8])}}(e),null!==t.contentQueries&&Nr(t,e),!o)if(i){const n=t.contentCheckHooks;null!==n&&mn(e,n)}else{const n=t.contentHooks;null!==n&&yn(e,n,1),vn(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let r=t.expandoStartIndex,s=-1,o=-1;for(let t=0;t<n.length;t++){const i=n[t];"number"==typeof i?i<=0?(o=0-i,pn(o),r+=9+n[++t],s=r):r+=i:(null!==i&&(nn(r,s),i(2,e[s])),s++)}}}finally{pn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)is(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&ds(2,l,r),!o)if(i){const n=t.viewCheckHooks;null!==n&&mn(e,n)}else{const n=t.viewHooks;null!==n&&yn(e,n,2),vn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),o||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,qe(e[3],-1))}finally{dn()}}function Fr(t,e,n,r){const s=e[10],o=!Xe(),i=4==(4&e[2]);try{o&&!i&&s.begin&&s.begin(),i&&Hr(t,e,r),Lr(t,e,n,r)}finally{o&&!i&&s.end&&s.end()}}function Vr(t,e,n,r,s){const o=fn();try{pn(-1),2&r&&e.length>ve&&kr(t,e,0,Xe()),n(r,s)}finally{pn(o)}}function $r(t,e,n){Ze()&&(function(t,e,n,r){const s=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||Hn(n,e),cr(r,e);const i=n.initialInputs;for(let a=s;a<o;a++){const r=t.data[a],o=Ee(r);o&&ns(e,n,r);const l=Wn(e,t,a,n);cr(l,e),null!==i&&rs(0,a-s,l,r,0,i),o&&(Fe(n.index,e)[8]=l)}}(t,e,n,He(n,e)),128==(128&n.flags)&&function(t,e,n){const r=n.directiveStart,s=n.directiveEnd,o=t.expandoInstructions,i=t.firstCreatePass,a=n.index-ve,l=We.lFrame.currentDirectiveIndex;try{pn(a);for(let n=r;n<s;n++){const r=t.data[n],s=e[n];rn(n),null!==r.hostBindings||0!==r.hostVars||null!==r.hostAttrs?Jr(r,s):i&&o.push(null)}}finally{pn(-1),rn(l)}}(t,e,n))}function zr(t,e,n=He){const r=e.localNames;if(null!==r){let s=e.index+1;for(let o=0;o<r.length;o+=2){const i=r[o+1],a=-1===i?n(e,t):t[i];t[s++]=a}}}function Br(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=qr(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function qr(t,e,n,r,s,o,i,a,l,c){const u=ve+r,h=u+s,d=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:br);return n}(u,h),f="function"==typeof c?c():c;return d[1]={type:t,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:e,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,expandoInstructions: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 o?o():o,pipeRegistry:"function"==typeof i?i():i,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function Wr(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const s=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,s):n[r]=[e,s]}return n}function Zr(t,e,n,r){let s=!1;if(Ze()){const o=function(t,e,n){const r=t.directiveRegistry;let s=null;if(r)for(let o=0;o<r.length;o++){const i=r[o];vr(n,i.selectors,!1)&&(s||(s=[]),$n(Hn(n,e),t,i.type),Ee(i)?(Kr(t,n),s.unshift(i)):s.push(i))}return s}(t,e,n),i=null===r?null:{"":-1};if(null!==o){let r=0;s=!0,ts(n,t.data.length,o.length);for(let t=0;t<o.length;t++){const e=o[t];e.providersResolver&&e.providersResolver(e)}Yr(t,n,o.length);let a=!1,l=!1;for(let s=0;s<o.length;s++){const c=o[s];n.mergedAttrs=Tn(n.mergedAttrs,c.hostAttrs),es(t,e,c),Xr(t.data.length-1,c,i),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const u=c.type.prototype;!a&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-ve),a=!0),l||!u.ngOnChanges&&!u.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-ve),l=!0),Gr(t,c),r+=c.hostVars}!function(t,e){const n=e.directiveEnd,r=t.data,s=e.attrs,o=[];let i=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=r[l],n=t.inputs,c=null===s||fr(e)?null:ss(n,s);o.push(c),i=Wr(n,l,i),a=Wr(t.outputs,l,a)}null!==i&&(i.hasOwnProperty("class")&&(e.flags|=16),i.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=i,e.outputs=a}(t,n),Qr(t,e,r)}i&&function(t,e,n){if(e){const r=t.localNames=[];for(let t=0;t<e.length;t+=2){const s=n[e[t+1]];if(null==s)throw new Error(`Export of name '${e[t+1]}' not found!`);r.push(e[t],s)}}}(n,r,i)}return n.mergedAttrs=Tn(n.mergedAttrs,n.attrs),s}function Gr(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function Qr(t,e,n){for(let r=0;r<n;r++)e.push(br),t.blueprint.push(br),t.data.push(null)}function Jr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Yr(t,e,n){const r=ve-e.index,s=t.data.length-(1048575&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(r,s,n)}function Kr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Xr(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Ee(e)&&(n[""]=t)}}function ts(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function es(t,e,n){t.data.push(n);const r=n.factory||(n.factory=me(n.type)),s=new Cn(r,Ee(n),null);t.blueprint.push(s),e.push(s)}function ns(t,e,n){const r=He(e,t),s=Br(n),o=t[10],i=ls(t,Ur(t,s,null,n.onPush?64:16,r,e,o,o.createRenderer(r,n),null,null));t[e.index]=i}function rs(t,e,n,r,s,o){const i=o[e];if(null!==i){const t=r.setInput;for(let e=0;e<i.length;){const s=i[e++],o=i[e++],a=i[e++];null!==t?r.setInput(n,a,s,o):n[o]=a}}}function ss(t,e){let n=null,r=0;for(;r<e.length;){const s=e[r];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,t[s],e[r+1])),r+=2}else r+=2;else r+=4}return n}function os(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}function is(t,e){const n=Fe(e,t);if($e(n)){const t=n[1];80&n[2]?Lr(t,n,t.template,n[8]):n[5]>0&&function t(e){for(let r=Sr(e);null!==r;r=xr(r))for(let e=_e;e<r.length;e++){const n=r[e];if(1024&n[2]){const t=n[1];Lr(t,n,t.template,n[8])}else n[5]>0&&t(n)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const s=Fe(n[r],e);$e(s)&&s[5]>0&&t(s)}}(n)}}function as(t,e){const n=Fe(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),Hr(r,n,n[8])}function ls(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function cs(t){for(;t;){t[2]|=64;const e=Cr(t);if(Te(t)&&!e)return t;t=e}return null}function us(t,e,n){const r=e[10];r.begin&&r.begin();try{Lr(t,e,t.template,n)}catch(s){throw gs(e,s),s}finally{r.end&&r.end()}}function hs(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=Ve(n),s=r[1];Fr(s,r,s.template,n)}}(t[8])}function ds(t,e,n){sn(0),e(t,n)}const fs=(()=>Promise.resolve(null))();function ps(t){return t[7]||(t[7]=[])}function gs(t,e){const n=t[9],r=n?n.get(Xn,null):null;r&&r.handleError(e)}function ms(t,e,n,r,s){for(let o=0;o<n.length;){const i=n[o++],a=n[o++],l=e[i],c=t.data[i];null!==c.setInput?c.setInput(l,s,r,a):l[a]=s}}function ys(t,e,n,r,s){if(null!=r){let o,i=!1;be(r)?o=r:we(r)&&(i=!0,r=r[0]);const a=Ue(r);0===t&&null!==n?null==s?Ss(e,n,a):Cs(e,n,a,s||null):1===t&&null!==n?Cs(e,n,a,s||null):2===t?function(t,e,n){const r=Es(t,e);r&&function(t,e,n,r){Ne(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,i):3===t&&e.destroyNode(a),null!=o&&function(t,e,n,r,s){const o=n[7];o!==Ue(n)&&ys(e,t,r,o,s);for(let i=_e;i<n.length;i++){const s=n[i];As(s[1],s,t,e,r,o)}}(e,t,o,n,s)}}function vs(t,e){const n=t[9],r=n.indexOf(e),s=e[3];1024&e[2]&&(e[2]&=-1025,qe(s,-1)),n.splice(r,1)}function _s(t,e){if(t.length<=_e)return;const n=_e+e,r=t[n];if(r){const o=r[17];null!==o&&o!==t&&vs(o,r),e>0&&(t[n-1][4]=r[4]);const i=Xt(t,_e+e);As(r[1],s=r,s[11],2,null,null),s[0]=null,s[6]=null;const a=i[19];null!==a&&a.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}var s;return r}function ws(t,e){if(!(256&e[2])){const n=e[11];Ne(n)&&n.destroyNode&&As(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return bs(t[1],t);for(;e;){let n=null;if(we(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)we(e)&&bs(e[1],e),e=e[3];null===e&&(e=t),we(e)&&bs(e[1],e),n=e&&e[4]}e=n}}(e)}}function bs(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 t=e[n[r]];if(!(t instanceof Cn)){const e=n[r+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const s=n[r+1],o="function"==typeof s?s(e):Ue(e[s]),i=t[n[r+2]],a=n[r+3];"boolean"==typeof a?o.removeEventListener(n[r],i,a):a>=0?t[a]():t[-a].unsubscribe(),r+=2}else n[r].call(t[n[r+1]]);e[7]=null}}(t,e),1===e[1].type&&Ne(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&be(e[3])){n!==e[3]&&vs(n,e);const r=e[19];null!==r&&r.detachView(t)}}}function Cs(t,e,n,r){Ne(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function Ss(t,e,n){Ne(t)?t.appendChild(e,n):e.appendChild(n)}function xs(t,e,n,r){null!==r?Cs(t,e,n,r):Ss(t,e,n)}function Es(t,e){return Ne(t)?t.parentNode(e):e.parentNode}function Ts(t,e,n,r){const s=function(t,e,n){let r=e.parent;for(;null!=r&&(3===r.type||4===r.type);)r=(e=r).parent;if(null===r)return n[0];if(e&&4===e.type&&4&e.flags)return He(e,n).parentNode;if(2&r.flags){const e=t.data,n=e[e[r.index].directiveStart].encapsulation;if(n!==se.ShadowDom&&n!==se.Native)return null}return He(r,n)}(t,r,e);if(null!=s){const t=e[11],o=function(t,e){return 3===t.type||4===t.type?He(t,e):null}(r.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)xs(t,s,n[e],o);else xs(t,s,n,o)}}function ks(t,e,n,r,s,o,i){for(;null!=n;){const a=r[n.index],l=n.type;i&&0===e&&(a&&cr(Ue(a),r),n.flags|=4),64!=(64&n.flags)&&(3===l||4===l?(ks(t,e,n.child,r,s,o,!1),ys(e,t,s,a,o)):1===l?Os(t,e,r,n,s,o):ys(e,t,s,a,o)),n=i?n.projectionNext:n.next}}function As(t,e,n,r,s,o){ks(n,r,t.firstChild,e,s,o,!1)}function Os(t,e,n,r,s,o){const i=n[16],a=i[6].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)ys(e,t,s,a[l],o);else ks(t,e,a,i[3],s,o,!0)}function Is(t,e,n){Ne(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Rs(t,e,n){Ne(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class Ps{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView,e=t[1];return function t(e,n,r,s,o=!1){for(;null!==r;){const i=n[r.index];if(null!==i&&s.push(Ue(i)),be(i))for(let e=_e;e<i.length;e++){const n=i[e],r=n[1].firstChild;null!==r&&t(n[1],n,r,s)}const a=r.type;if(3===a||4===a)t(e,n,r.child,s);else if(1===a){const e=n[16],o=e[6].projection[r.projection];if(Array.isArray(o))s.push(...o);else{const n=Cr(e);t(n[1],n,o,s,!0)}}r=o?r.projectionNext:r.next}return s}(e,t,e.firstChild,[])}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}ws(this._lView[1],this._lView)}onDestroy(t){!function(t,e,n,r){const s=ps(e);s.push(null),t.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(t).push(r,s.length-1)}(this._lView[1],this._lView,0,t)}markForCheck(){cs(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){us(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){tn(!0);try{us(t,e,n)}finally{tn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,As(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class js extends Ps{constructor(t){super(t),this._view=t}detectChanges(){hs(this._view)}checkNoChanges(){!function(t){tn(!0);try{hs(t)}finally{tn(!1)}}(this._view)}get context(){return null}}let Ns,Ds,Us;function Ms(t,e,n){return Ns||(Ns=class extends t{}),new Ns(He(e,n))}let Hs=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ls(),t})();const Ls=function(t=!1){return function(t,e,n){if(!n&&Se(t)){const n=Fe(t.index,e);return new Ps(n,n)}return 2===t.type||0===t.type||3===t.type||4===t.type?new Ps(e[16],e):null}(Je(),Ge(),t)},Fs=Function,Vs=new Nt("Set Injector scope."),$s={},zs={},Bs=[];let qs=void 0;function Ws(){return void 0===qs&&(qs=new Gt),qs}function Zs(t,e=null,n=null,r){return new Gs(t,n,e||Ws(),r)}class Gs{constructor(t,e,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&Yt(e,n=>this.processProvider(n,t,e)),Yt([t],t=>this.processInjectorType(t,[],s)),this.records.set(Dt,Js(void 0,this));const o=this.records.get(Vs);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:yt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Ut,n=ot.Default){this.assertNotDestroyed();const r=$t(this);try{if(!(n&ot.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Nt)&&ct(t);e=n&&this.injectableDefInScope(n)?Js(Qs(t),$s):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&ot.Self?Ws():this.parent).get(t,e=n&ot.Optional&&e===Ut?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(yt(t)),r)throw o;return function(t,e,n,r){const s=t.ngTempTokenPath;throw e[Ht]&&s.unshift(e[Ht]),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=yt(e);if(Array.isArray(e))s=e.map(yt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):yt(r)))}s=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${t.replace(Mt,"\n  ")}`}("\n"+t.message,s,n,r),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{$t(r)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(yt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=bt(t)))return!1;let r=ht(t);const s=null==r&&t.ngModule||void 0,o=void 0===s?t:s,i=-1!==n.indexOf(o);if(void 0!==s&&(r=ht(s)),null==r)return!1;if(null!=r.imports&&!i){let t;n.push(o);try{Yt(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:r}=t[e];Yt(r,t=>this.processProvider(t,n,r||Bs))}}this.injectorDefTypes.add(o),this.records.set(o,Js(r.factory,$s));const a=r.providers;if(null!=a&&!i){const e=t;Yt(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let r=Ks(t=bt(t))?t:bt(t&&t.provide);const s=function(t,e,n){return Ys(t)?Js(void 0,t.useValue):Js(function(t,e,n){let r=void 0;if(Ks(t)){const e=bt(t);return me(e)||Qs(e)}if(Ys(t))r=()=>bt(t.useValue);else if((s=t)&&s.useFactory)r=()=>t.useFactory(...Zt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>qt(bt(t.useExisting));else{const e=bt(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return me(e)||Qs(e);r=()=>new e(...Zt(t.deps))}var s;return r}(t),$s)}(t);if(Ks(t)||!0!==t.multi)this.records.get(r);else{let e=this.records.get(r);e||(e=Js(void 0,$s,!0),e.factory=()=>Zt(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,s)}hydrate(t,e){var n;return e.value===$s&&(e.value=zs,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Qs(t){const e=ct(t),n=null!==e?e.factory:me(t);if(null!==n)return n;const r=ht(t);if(null!==r)return r.factory;if(t instanceof Nt)throw new Error(`Token ${yt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=function(t,e){const n=[];for(let r=0;r<t;r++)n.push("?");return n}(e);throw new Error(`Can't resolve all parameters for ${yt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[dt]||t[gt]||t[pt]&&t[pt]());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 Js(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Ys(t){return null!==t&&"object"==typeof t&&Lt in t}function Ks(t){return"function"==typeof t}const Xs=function(t,e,n){return function(t,e=null,n=null,r){const s=Zs(t,e,n,r);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let to=(()=>{class t{static create(t,e){return Array.isArray(t)?Xs(t,e,""):Xs(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Ut,t.NULL=new Gt,t.\u0275prov=at({token:t,providedIn:"any",factory:()=>qt(Dt)}),t.__NG_ELEMENT_ID__=-1,t})();const eo=new Nt("AnalyzeForEntryComponents");function no(t,e,n){let r=n?t.styles:null,s=n?t.classes:null,o=0;if(null!==e)for(let i=0;i<e.length;i++){const t=e[i];"number"==typeof t?o=t:1==o?s=vt(s,t):2==o&&(r=vt(r,t+": "+e[++i]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=s:t.classesWithoutHost=s}function ro(t,e){const n=Ve(t)[1],r=n.data.length-1;gn(n,{directiveStart:r,directiveEnd:r+1})}let so=null;function oo(){if(!so){const t=Tt.Symbol;if(t&&t.iterator)so=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(so=n)}}}return so}function io(t){return!!ao(t)&&(Array.isArray(t)||!(t instanceof Map)&&oo()in t)}function ao(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function lo(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function co(t,e=ot.Default){const n=Ge();return null===n?qt(t,e):zn(Je(),n,bt(t),e)}function uo(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let r=0;for(;r<t;){const s=n[r];if(xn(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<t&&"string"==typeof n[r];)r++;else{if(s===e)return n[r+1];r+=2}}}return null}(Je(),t)}function ho(t,e,n){const r=Ge();return lo(r,en(),e)&&function(t,e,n,r,s,o,i,a){const l=He(e,n);let c,u=e.inputs;var h;null!=u&&(c=u[r])?(ms(t,n,c,r,s),Se(e)&&function(t,e){const n=Fe(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):2===e.type&&(r="class"===(h=r)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,s=null!=i?i(s,e.tagName||"",r):s,Ne(o)?o.setProperty(l,r,s):En(r)||(l.setProperty?l.setProperty(r,s):l[r]=s))}(Qe(),function(){const t=We.lFrame;return Le(t.tView,t.selectedIndex)}(),r,t,e,r[11],n),ho}function fo(t,e,n,r,s){const o=s?"class":"style";ms(t,n,e.inputs[o],o,r)}function po(t,e,n,r){const s=Ge(),o=Qe(),i=ve+t,a=s[11],l=s[i]=Dr(e,a,We.lFrame.currentNamespace),c=o.firstCreatePass?function(t,e,n,r,s,o,i){const a=e.consts,l=Mr(e,t,2,s,ze(a,o));return Zr(e,n,l,ze(a,i)),null!==l.attrs&&no(l,l.attrs,!1),null!==l.mergedAttrs&&no(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(t,o,s,0,e,n,r):o.data[i];Ye(c,!0);const u=c.mergedAttrs;null!==u&&Sn(a,l,u);const h=c.classes;null!==h&&Rs(a,l,h);const d=c.styles;null!==d&&Is(a,l,d),Ts(o,s,l,c),0===We.lFrame.elementDepthCount&&cr(l,s),We.lFrame.elementDepthCount++,xe(c)&&($r(o,s,c),function(t,e,n){if(Ce(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const e=t.data[s];e.contentQueries&&e.contentQueries(1,n[s],s)}}}(o,c,s)),null!==r&&zr(s,c)}function go(){let t=Je();Ke()?We.lFrame.isParent=!1:(t=t.parent,Ye(t,!1));const e=t;We.lFrame.elementDepthCount--;const n=Qe();n.firstCreatePass&&(gn(n,t),Ce(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&fo(n,e,Ge(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&fo(n,e,Ge(),e.stylesWithoutHost,!1)}function mo(t,e,n,r){po(t,e,n,r),go()}function yo(t){return!!t&&"function"==typeof t.then}function vo(t,e,n=!1,r){const s=Ge(),o=Qe(),i=Je();return function(t,e,n,r,s,o,i=!1,a){const l=xe(r),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),u=ps(e);let h=!0;if(2===r.type){const d=He(r,e),f=a?a(d):oe,p=f.target||d,g=u.length,m=a?t=>a(Ue(t[r.index])).target:r.index;if(Ne(n)){let i=null;if(!a&&l&&(i=function(t,e,n,r){const s=t.cleanup;if(null!=s)for(let o=0;o<s.length-1;o+=2){const t=s[o];if(t===n&&s[o+1]===r){const t=e[7],n=s[o+2];return t.length>n?t[n]:null}"string"==typeof t&&(o+=2)}return null}(t,e,s,r.index)),null!==i)(i.__ngLastListenerFn__||i).__ngNextListenerFn__=o,i.__ngLastListenerFn__=o,h=!1;else{o=wo(r,e,o,!1);const t=n.listen(f.name||p,s,o);u.push(o,t),c&&c.push(s,m,g,g+1)}}else o=wo(r,e,o,!0),p.addEventListener(s,o,i),u.push(o),c&&c.push(s,m,g,i)}const d=r.outputs;let f;if(h&&null!==d&&(f=d[s])){const t=f.length;if(t)for(let n=0;n<t;n+=2){const t=e[f[n]][f[n+1]].subscribe(o),i=u.length;u.push(o,t),c&&c.push(s,r.index,i,-(i+1))}}}(o,s,s[11],i,t,e,n,r),vo}function _o(t,e,n){try{return!1!==e(n)}catch(r){return gs(t,r),!1}}function wo(t,e,n,r){return function s(o){if(o===Function)return n;const i=2&t.flags?Fe(t.index,e):e;0==(32&e[2])&&cs(i);let a=_o(e,n,o),l=s.__ngNextListenerFn__;for(;l;)a=_o(e,l,o)&&a,l=l.__ngNextListenerFn__;return r&&!1===a&&(o.preventDefault(),o.returnValue=!1),a}}const bo=[];function Co(t,e,n,r,s){const o=t[n+1],i=null===e;let a=r?Or(o):Rr(o),l=!1;for(;0!==a&&(!1===l||i);){const n=t[a+1];So(t[a],e)&&(l=!0,t[a+1]=r?jr(n):Ir(n)),a=r?Or(n):Rr(n)}l&&(t[n+1]=r?Ir(o):jr(o))}function So(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ne(t,e)>=0}function xo(t,e,n){return To(t,e,n,!1),xo}function Eo(t,e){return To(t,e,null,!0),Eo}function To(t,e,n,r){const s=Ge(),o=Qe(),i=function(t){const e=We.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+2,n}();o.firstUpdatePass&&function(t,e,n,r){const s=t.data;if(null===s[n+1]){const o=s[fn()+ve],i=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(t.flags&(e?16:32))})(o,r)&&null===e&&!i&&(e=!1),e=function(t,e,n,r){const s=function(t){const e=We.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let o=r?e.residualClasses:e.residualStyles;if(null===s)0===(r?e.classBindings:e.styleBindings)&&(n=Ao(n=ko(null,t,e,n,r),e.attrs,r),o=null);else{const i=e.directiveStylingLast;if(-1===i||t[i]!==s)if(n=ko(s,t,e,n,r),null===o){let n=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==Rr(r))return t[Or(r)]}(t,e,r);void 0!==n&&Array.isArray(n)&&(n=ko(null,t,e,n[1],r),n=Ao(n,e.attrs,r),function(t,e,n,r){t[Or(n?e.classBindings:e.styleBindings)]=r}(t,e,r,n))}else o=function(t,e,n){let r=void 0;const s=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<s;o++)r=Ao(r,t[o].hostAttrs,n);return Ao(r,e.attrs,n)}(t,e,r)}return void 0!==o&&(r?e.residualClasses=o:e.residualStyles=o),n}(s,o,e,r),function(t,e,n,r,s,o){let i=o?e.classBindings:e.styleBindings,a=Or(i),l=Rr(i);t[r]=n;let c,u=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||ne(t,c)>0)&&(u=!0)}else c=n;if(s)if(0!==l){const e=Or(t[a+1]);t[r+1]=Ar(e,a),0!==e&&(t[e+1]=Pr(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=Ar(a,0),0!==a&&(t[a+1]=Pr(t[a+1],r)),a=r;else t[r+1]=Ar(l,0),0===a?a=r:t[l+1]=Pr(t[l+1],r),l=r;u&&(t[r+1]=Ir(t[r+1])),Co(t,c,r,!0),Co(t,c,r,!1),function(t,e,n,r,s){const o=s?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&ne(o,e)>=0&&(n[r+1]=jr(n[r+1]))}(e,c,t,r,o),i=Ar(a,l),o?e.classBindings=i:e.styleBindings=i}(s,o,e,n,i,r)}}(o,t,i,r),e!==br&&lo(s,i,e)&&function(t,e,n,r,s,o,i,a){if(2!==e.type)return;const l=t.data,c=l[a+1];Io(1==(1&c)?Oo(l,e,n,s,Rr(c),i):void 0)||(Io(o)||function(t){return 2==(2&t)}(c)&&(o=Oo(l,null,n,s,a,i)),function(t,e,n,r,s){const o=Ne(t);if(e)s?o?t.addClass(n,r):n.classList.add(r):o?t.removeClass(n,r):n.classList.remove(r);else{const e=-1==r.indexOf("-")?void 0:2;null==s?o?t.removeStyle(n,r,e):n.style.removeProperty(r):o?t.setStyle(n,r,s,e):n.style.setProperty(r,s)}}(r,i,Me(fn(),n),s,o))}(o,o.data[fn()+ve],s,s[11],t,s[i+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=yt(er(t)))),t}(e,n),r,i)}function ko(t,e,n,r,s){let o=null;const i=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<i&&(o=e[a],r=Ao(r,o.hostAttrs,s),o!==t);)a++;return null!==t&&(n.directiveStylingLast=a),r}function Ao(t,e,n){const r=n?1:2;let s=-1;if(null!==e)for(let o=0;o<e.length;o++){const i=e[o];"number"==typeof i?s=i:s===r&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),te(t,i,!!n||e[++o]))}return void 0===t?null:t}function Oo(t,e,n,r,s,o){const i=null===e;let a=void 0;for(;s>0;){const e=t[s],o=Array.isArray(e),l=o?e[1]:e,c=null===l;let u=n[s+1];u===br&&(u=c?bo:void 0);let h=c?ee(u,r):l===r?u:void 0;if(o&&!Io(h)&&(h=ee(e,r)),Io(h)&&(a=h,i))return a;const d=t[s+1];s=i?Or(d):Rr(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=ee(t,r))}return a}function Io(t){return void 0!==t}function Ro(t,e=""){const n=Ge(),r=Qe(),s=t+ve,o=r.firstCreatePass?Mr(r,t,2,null,null):r.data[s],i=n[s]=function(t,e){return Ne(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Ts(r,n,i,o),Ye(o,!1)}function Po(t){return jo("",t,""),Po}function jo(t,e,n){const r=Ge(),s=function(t,e,n,r){return lo(t,en(),n)?e+Rn(n)+r:br}(r,t,e,n);return s!==br&&function(t,e,n){const r=Me(e,t),s=t[11];Ne(s)?s.setValue(r,n):r.textContent=n}(r,fn(),s),jo}class No{}class Do{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${yt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Uo=(()=>{class t{}return t.NULL=new Do,t})(),Mo=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>Ho(t),t})();const Ho=function(t){return Ms(t,Je(),Ge())};class Lo{}var Fo=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let Vo=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>$o(),t})();const $o=function(){const t=Ge(),e=Fe(Je().index,t);return function(t){const e=t[11];if(Ne(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(we(e)?e:t)};let zo=(()=>{class t{}return t.\u0275prov=at({token:t,providedIn:"root",factory:()=>null}),t})();class Bo{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const qo=new Bo("10.1.5");class Wo{constructor(){}supports(t){return io(t)}create(t){return new Go(t)}}const Zo=(t,e)=>e;class Go{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Zo}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,s=null;for(;e||n;){const o=!n||e&&e.currentIndex<Ko(n,r,s)?e:n,i=Ko(o,r,s),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{s||(s=[]);const t=i-r,e=a-r;if(t!=e){for(let n=0;n<t;n++){const r=n<s.length?s[n]:s[n]=0,o=r+n;e<=o&&o<t&&(s[n]=r+1)}s[o.previousIndex]=e-t}}i!==a&&t(o,i,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!io(t))throw new Error(`Error trying to diff '${yt(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,r,s=this._itHead,o=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],r=this._trackByFn(e,n),null!==s&&Object.is(s.trackById,r)?(o&&(s=this._verifyReinsertion(s,n,r,e)),Object.is(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,r,e),o=!0),s=s._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[oo()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(t,t=>{r=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,r)?(o&&(s=this._verifyReinsertion(s,t,r,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,r,e),o=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):t=this._addAfter(new Qo(e,n),s,r),t}_verifyReinsertion(t,e,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Yo),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Yo),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Qo{constructor(t,e){this.item=t,this.trackById=e,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 Jo{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Yo{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Jo,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ko(t,e,n){const r=t.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+e+s}class Xo{constructor(){}supports(t){return t instanceof Map||ao(t)}create(){return new ti}}class ti{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(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||ao(t)))throw new Error(`Error trying to diff '${yt(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new ei(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class ei{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let ni=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new st,new nt]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=at({token:t,providedIn:"root",factory:()=>new t([new Wo])}),t})(),ri=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new st,new nt]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=at({token:t,providedIn:"root",factory:()=>new t([new Xo])}),t})();const si=[new Xo],oi=new ni([new Wo]),ii=new ri(si);let ai=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>li(t,Mo),t})();const li=function(t,e){return function(t,e,n,r){return Ds||(Ds=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Ur(this._declarationView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),Hr(e,n,t),new Ps(n)}}),0===n.type?new Ds(r,n,Ms(e,n,r)):null}(t,e,Je(),Ge())};let ci=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ui(t,Mo),t})();const ui=function(t,e){return function(t,e,n,r){let s;Us||(Us=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return Ms(e,this._hostTNode,this._hostView)}get injector(){return new Qn(this._hostTNode,this._hostView)}get parentInjector(){const t=Vn(this._hostTNode,this._hostView);if(An(t)){const e=In(t,this._hostView),n=On(t);return new Qn(e[1].data[n+8],e)}return new Qn(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-_e}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,s){const o=n||this.parentInjector;if(!s&&null==t.ngModule&&o){const t=o.get(Qt,null);t&&(s=t)}const i=t.create(o,r,void 0,s);return this.insert(i.hostView,e),i}insert(t,e){const n=t._lView,r=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),be(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new Us(e,e[6],e[3]);r.detach(r.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function(t,e,n,r){const s=_e+r,o=n.length;r>0&&(n[s-1][4]=e),r<o-_e?(e[4]=n[s],Kt(n,_e+r,e)):(n.push(e),e[4]=null),e[3]=n;const i=e[17];null!==i&&n!==i&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(i,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(r,n,o,s);const i=function t(e,n){const r=_e+e+1;if(r<n.length){const e=n[r],s=e[1].firstChild;if(null!==s)return function e(n,r){if(null!==r){const s=r.type;if(2===s)return He(r,n);if(0===s)return t(-1,n[r.index]);if(3===s||4===s){const s=r.child;if(null!==s)return e(n,s);{const e=n[r.index];return be(e)?t(-1,e):Ue(e)}}{const t=n[16],s=t[6],o=Cr(t),i=s.projection[r.projection];return null!=i?e(o,i):e(n,r.next)}}return null}(e,s)}return n[7]}(s,o),a=n[11],l=Es(a,o[7]);return null!==l&&function(t,e,n,r,s,o){r[0]=s,r[6]=e,As(t,r,n,1,s,o)}(r,o[6],a,n,l,i),t.attachToViewContainerRef(this),Kt(o[8],s,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=_s(this._lContainer,e);n&&(Xt(this._lContainer[8],e),ws(n[1],n))}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=_s(this._lContainer,e);return n&&null!=Xt(this._lContainer[8],e)?new Ps(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const o=r[n.index];if(be(o))s=o;else{let t;if(3===n.type)t=Ue(o);else if(t=r[11].createComment(""),Te(r)){const e=r[11],s=He(n,r);Cs(e,Es(e,s),t,function(t,e){return Ne(t)?t.nextSibling(e):e.nextSibling}(e,s))}else Ts(r[1],r,t,n);r[n.index]=s=os(o,r,t,n),ls(r,s)}return new Us(s,n,r)}(t,e,Je(),Ge())},hi={};class di extends Uo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=ge(t);return new gi(e,this.ngModule)}}function fi(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const pi=new Nt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>jn});class gi extends No{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(wr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return fi(this.componentDef.inputs)}get outputs(){return fi(this.componentDef.outputs)}create(t,e,n,r){const s=(r=r||this.ngModule)?function(t,e){return{get:(n,r,s)=>{const o=t.get(n,hi,s);return o!==hi||r===hi?o:e.get(n,r,s)}}}(t,r.injector):t,o=s.get(Lo,De),i=s.get(zo,null),a=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Ne(t))return t.selectRootElement(e,n===se.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):Dr(l,o.createRenderer(null,this.componentDef),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)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:jn,clean:fs,playerHandler:null,flags:0},d=qr(0,null,null,1,0,null,null,null,null,null),f=Ur(null,d,h,u,null,null,o,a,i,s);let p,g;an(f);try{const t=function(t,e,n,r,s,o){const i=n[1];n[20]=t;const a=Mr(i,0,2,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(no(a,l,!0),null!==t&&(Sn(s,t,l),null!==a.classes&&Rs(s,t,a.classes),null!==a.styles&&Is(s,t,a.styles)));const c=r.createRenderer(t,e),u=Ur(n,Br(e),null,e.onPush?64:16,n[20],a,r,c,null,null);return i.firstCreatePass&&($n(Hn(a,n),i,e.type),Kr(i,a),ts(a,n.length,1)),ls(n,u),n[20]=u}(c,this.componentDef,f,o,a);if(c)if(n)Sn(a,c,["ng-version",qo.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,s=2;for(;r<t.length;){let o=t[r];if("string"==typeof o)2===s?""!==o&&e.push(o,t[++r]):8===s&&n.push(o);else{if(!mr(s))break;s=o}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Sn(a,c,t),e&&e.length>0&&Rs(a,c,e.join(" "))}if(g=Le(d,0),void 0!==e){const t=g.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const r=e[n];t.push(null!=r?Array.from(r):null)}}p=function(t,e,n,r,s){const o=n[1],i=function(t,e,n){const r=Je();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Yr(t,r,1),es(t,e,n));const s=Wn(e,t,e.length-1,r);cr(s,e);const o=He(r,e);return o&&cr(o,e),s}(o,n,e);r.components.push(i),t[8]=i,s&&s.forEach(t=>t(i,e)),e.contentQueries&&e.contentQueries(1,i,n.length-1);const a=Je();if(o.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){pn(a.index-ve);const t=n[1];Gr(t,e),Qr(t,n,e.hostVars),Jr(e,i)}return i}(t,this.componentDef,f,h,[ro]),Hr(d,f,null)}finally{dn()}return new mi(this.componentType,p,Ms(Mo,g,f),f,g)}}class mi extends class{}{constructor(t,e,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new js(r),this.componentType=t}get injector(){return new Qn(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const yi=void 0;var vi=["en",[["a","p"],["AM","PM"],yi],[["AM","PM"],yi,yi],[["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"]],yi,[["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"]],yi,[["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}",yi,"{1} 'at' {0}",yi],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let _i={};function wi(t){return t in _i||(_i[t]=Tt.ng&&Tt.ng.common&&Tt.ng.common.locales&&Tt.ng.common.locales[t]),_i[t]}var bi=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const Ci="en-US";let Si=Ci;function xi(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Si=t.toLowerCase().replace(/_/g,"-"))}const Ei=new Map;class Ti extends Qt{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new di(this);const n=ye(t),r=t[Rt]||null;r&&xi(r),this._bootstrapComponents=Nn(n.bootstrap),this._r3Injector=Zs(t,e,[{provide:Qt,useValue:this},{provide:Uo,useValue:this.componentFactoryResolver}],yt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=to.THROW_IF_NOT_FOUND,n=ot.Default){return t===to||t===Qt||t===Dt?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ki extends Jt{constructor(t){super(),this.moduleType=t,null!==ye(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${yt(e)} vs ${yt(e.name)}`)})(t,Ei.get(t),e),Ei.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new Ti(this.moduleType,t)}}const Ai=class extends S{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,s=t=>null,o=()=>null;t&&"object"==typeof t?(r=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(o=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const i=super.subscribe(r,s,o);return t instanceof h&&t.add(i),i}},Oi=new Nt("Application Initializer");let Ii=(()=>{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();yo(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(qt(Oi,8))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const Ri=new Nt("AppId"),Pi={provide:Ri,useFactory:function(){return`${ji()}${ji()}${ji()}`},deps:[]};function ji(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ni=new Nt("Platform Initializer"),Di=new Nt("Platform ID"),Ui=new Nt("appBootstrapListener");let Mi=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const Hi=new Nt("LocaleId"),Li=new Nt("DefaultCurrencyCode");class Fi{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Vi=function(t){return new ki(t)},$i=Vi,zi=function(t){return Promise.resolve(Vi(t))},Bi=function(t){const e=Vi(t),n=Nn(ye(t).declarations).reduce((t,e)=>{const n=ge(e);return n&&t.push(new gi(n)),t},[]);return new Fi(e,n)},qi=Bi,Wi=function(t){return Promise.resolve(Bi(t))};let Zi=(()=>{class t{constructor(){this.compileModuleSync=$i,this.compileModuleAsync=zi,this.compileModuleAndAllComponentsSync=qi,this.compileModuleAndAllComponentsAsync=Wi}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const Gi=(()=>Promise.resolve(0))();function Qi(t){"undefined"==typeof Zone?Gi.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Ji{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ai(!1),this.onMicrotaskEmpty=new Ai(!1),this.onStable=new Ai(!1),this.onError=new Ai(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=e,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=Tt.requestAnimationFrame,e=Tt.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=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Tt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,ta(t),Xi(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),ta(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,r,s,o,i,a)=>{try{return ea(t),n.invokeTask(s,o,i,a)}finally{e&&"eventTask"===o.type&&e(),na(t)}},onInvoke:(e,n,r,s,o,i,a)=>{try{return ea(t),e.invoke(r,s,o,i,a)}finally{na(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,ta(t),Xi(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ji.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ji.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,Ki,Yi,Yi);try{return s.runTask(o,e,n)}finally{s.cancelTask(o)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Yi(){}const Ki={};function Xi(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 ta(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function ea(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function na(t){t._nesting--,Xi(t)}class ra{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ai,this.onMicrotaskEmpty=new Ai,this.onStable=new Ai,this.onError=new Ai}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let sa=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{Ji.assertNotInAngularZone(),Qi(()=>{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())Qi(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(qt(Ji))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),oa=(()=>{class t{constructor(){this._applications=new Map,la.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return la.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();class ia{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let aa,la=new ia;const ca=new Nt("AllowMultipleToken");class ua{constructor(t,e){this.name=t,this.token=e}}function ha(t,e,n=[]){const r="Platform: "+e,s=new Nt(r);return(e=[])=>{let o=da();if(!o||o.injector.get(ca,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:Vs,useValue:"platform"});!function(t){if(aa&&!aa.destroyed&&!aa.injector.get(ca,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");aa=t.get(fa);const e=t.get(Ni,null);e&&e.forEach(t=>t())}(to.create({providers:t,name:r}))}return function(t){const e=da();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}(s)}}function da(){return aa&&!aa.destroyed?aa:null}let fa=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new ra:("zone.js"===t?void 0:t)||new Ji({enableLongStackTrace:sr(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),r=[{provide:Ji,useValue:n}];return n.run(()=>{const e=to.create({providers:r,parent:this.injector,name:t.moduleType.name}),s=t.create(e),o=s.injector.get(Xn,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>ma(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{o.handleError(t)}})),function(t,e,n){try{const r=n();return yo(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(o,n,()=>{const t=s.injector.get(Ii);return t.runInitializers(),t.donePromise.then(()=>(xi(s.injector.get(Hi,Ci)||Ci),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=pa({},e);return function(t,e,n){const r=new ki(n);return Promise.resolve(r)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(ga);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${yt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(qt(to))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();function pa(t,e){return Array.isArray(e)?e.reduce(pa,t):Object.assign(Object.assign({},t),e)}let ga=(()=>{class t{constructor(t,e,n,r,s,o){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=sr(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new v(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new v(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Ji.assertNotInAngularZone(),Qi(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Ji.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=function(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return E(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 v?t[0]:z(e)(B(t,n))}(i,a.pipe(t=>{return q()((e=Y,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,Q);return r.source=t,r.subjectFactory=n,r})(t));var e}))}bootstrap(t,e){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 n;n=t instanceof No?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(Qt),s=n.create(to.NULL,[],e||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const o=s.injector.get(sa,null);return o&&s.injector.get(oa).registerApplication(s.location.nativeElement,o),this._loadComponent(s),sr()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;ma(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ui,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),ma(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(qt(Ji),qt(Mi),qt(to),qt(Xn),qt(Uo),qt(Ii))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();function ma(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ya{}class va{}const _a={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let wa=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||_a}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n("zn8P")(e).then(t=>t[r]).then(t=>ba(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+s]).then(t=>ba(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(qt(Zi),qt(va,8))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();function ba(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Ca=ha(null,"core",[{provide:Di,useValue:"unknown"},{provide:fa,deps:[to]},{provide:oa,deps:[]},{provide:Mi,deps:[]}]),Sa=[{provide:ga,useClass:ga,deps:[Ji,Mi,to,Xn,Uo,Ii]},{provide:pi,deps:[Ji],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Ii,useClass:Ii,deps:[[new nt,Oi]]},{provide:Zi,useClass:Zi,deps:[]},Pi,{provide:ni,useFactory:function(){return oi},deps:[]},{provide:ri,useFactory:function(){return ii},deps:[]},{provide:Hi,useFactory:function(t){return xi(t=t||"undefined"!=typeof $localize&&$localize.locale||Ci),t},deps:[[new et(Hi),new nt,new st]]},{provide:Li,useValue:"USD"}];let xa=(()=>{class t{constructor(t){}}return t.\u0275mod=de({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)(qt(ga))},providers:Sa}),t})(),Ea=null;function Ta(){return Ea}const ka=new Nt("DocumentToken");let Aa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({factory:Oa,token:t,providedIn:"platform"}),t})();function Oa(){return qt(Ra)}const Ia=new Nt("Location Initialized");let Ra=(()=>{class t extends Aa{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Ta().getLocation(),this._history=Ta().getHistory()}getBaseHrefFromDOM(){return Ta().getBaseHref(this._doc)}onPopState(t){Ta().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Ta().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}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(t){this.location.pathname=t}pushState(t,e,n){Pa()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){Pa()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(qt(ka))},t.\u0275prov=at({factory:ja,token:t,providedIn:"platform"}),t})();function Pa(){return!!window.history.pushState}function ja(){return new Ra(qt(ka))}function Na(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 Da(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 Ua(t){return t&&"?"!==t[0]?"?"+t:t}let Ma=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({factory:Ha,token:t,providedIn:"root"}),t})();function Ha(t){const e=qt(ka).location;return new Fa(qt(Aa),e&&e.origin||"")}const La=new Nt("appBaseHref");let Fa=(()=>{class t extends Ma{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Na(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Ua(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const s=this.prepareExternalUrl(n+Ua(r));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){const s=this.prepareExternalUrl(n+Ua(r));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(qt(Aa),qt(La,8))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),Va=(()=>{class t extends Ma{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=Na(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let s=this.prepareExternalUrl(n+Ua(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){let s=this.prepareExternalUrl(n+Ua(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(qt(Aa),qt(La,8))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),$a=(()=>{class t{constructor(t,e){this._subject=new Ai,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Da(Ba(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+Ua(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Ba(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ua(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ua(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(qt(Ma),qt(Aa))},t.normalizeQueryParams=Ua,t.joinWithSlash=Na,t.stripTrailingSlash=Da,t.\u0275prov=at({factory:za,token:t,providedIn:"root"}),t})();function za(){return new $a(qt(Ma),qt(Aa))}function Ba(t){return t.replace(/\/index.html$/,"")}var qa=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});class Wa{}let Za=(()=>{class t extends Wa{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=wi(e);if(n)return n;const r=e.split("-")[0];if(n=wi(r),n)return n;if("en"===r)return vi;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[bi.PluralCase]}(e||this.locale)(t)){case qa.Zero:return"zero";case qa.One:return"one";case qa.Two:return"two";case qa.Few:return"few";case qa.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(qt(Hi))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();class Ga{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}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 Qa=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){sr()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}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(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Ga(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new Ja(t,n);e.push(s)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const o=new Ja(t,s);e.push(o)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=r,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(co(ci),co(ai),co(ni))},t.\u0275dir=pe({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Ja{constructor(t,e){this.record=t,this.view=e}}let Ya=(()=>{class t{}return t.\u0275mod=de({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[{provide:Wa,useClass:Za}]}),t})(),Ka=(()=>{class t{}return t.\u0275prov=at({token:t,providedIn:"root",factory:()=>new Xa(qt(ka),window,qt(Xn))}),t})();class Xa{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportsScrolling()){const e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(e)}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}supportScrollRestoration(){try{if(!this.window||!this.window.scrollTo)return!1;const t=tl(this.window.history)||tl(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window.scrollTo}catch(t){return!1}}}function tl(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class el extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new el,Ea||(Ea=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=rl||(rl=document.querySelector("base"),rl)?rl.getAttribute("href"):null;return null==e?null:(n=e,nl||(nl=document.createElement("a")),nl.setAttribute("href",n),"/"===nl.pathname.charAt(0)?nl.pathname:"/"+nl.pathname);var n}resetBaseElement(){rl=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return function(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,t)}}let nl,rl=null;const sl=new Nt("TRANSITION_ID"),ol=[{provide:Oi,useFactory:function(t,e,n){return()=>{n.get(Ii).donePromise.then(()=>{const n=Ta();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[sl,ka,to],multi:!0}];class il{static init(){var t;t=new il,la=t}addToWindow(t){Tt.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},Tt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Tt.getAllAngularRootElements=()=>t.getAllRootElements(),Tt.frameworkStabilizers||(Tt.frameworkStabilizers=[]),Tt.frameworkStabilizers.push(t=>{const e=Tt.getAllAngularTestabilities();let n=e.length,r=!1;const s=function(e){r=r||e,n--,0==n&&t(r)};e.forEach((function(t){t.whenStable(s)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?Ta().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const al=new Nt("EventManagerPlugins");let ll=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r<n.length;r++){const e=n[r];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error("No event manager plugin found for event "+t)}}return t.\u0275fac=function(e){return new(e||t)(qt(al),qt(Ji))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();class cl{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const r=Ta().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,n)}}let ul=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),hl=(()=>{class t extends ul{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Ta().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(qt(ka))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const dl={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/"},fl=/%COMP%/g;function pl(t,e,n){for(let r=0;r<e.length;r++){let s=e[r];Array.isArray(s)?pl(t,s,n):(s=s.replace(fl,t),n.push(s))}return n}function gl(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let ml=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new yl(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case se.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new vl(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case se.Native:case se.ShadowDom:return new _l(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=pl(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(qt(ll),qt(hl),qt(Ri))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();class yl{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(dl[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const s=dl[r];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=dl[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&Fo.DashCase?t.style.setProperty(e,n,r&Fo.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Fo.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,gl(n)):this.eventManager.addEventListener(t,e,gl(n))}}class vl extends yl{constructor(t,e,n,r){super(t),this.component=n;const s=pl(r+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(fl,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(fl,r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class _l extends yl{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===se.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=pl(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const t=document.createElement("style");t.textContent=s[o],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let wl=(()=>{class t extends cl{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(qt(ka))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const bl=["alt","control","meta","shift"],Cl={"\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"},Sl={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"},xl={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let El=(()=>{class t extends cl{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const s=t.parseEventName(n),o=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ta().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=t._normalizeKey(n.pop());let o="";if(bl.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=s,0!=n.length||0===s.length)return null;const i={};return i.domEventName=r,i.fullKey=o,i}static getEventFullKey(t){let e="",n=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&&Sl.hasOwnProperty(e)&&(e=Sl[e]))}return Cl[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),bl.forEach(r=>{r!=n&&(0,xl[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return s=>{t.getEventFullKey(s)===e&&r.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(qt(ka))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const Tl=ha(Ca,"browser",[{provide:Di,useValue:"browser"},{provide:Ni,useValue:function(){el.makeCurrent(),il.init()},multi:!0},{provide:ka,useFactory:function(){return function(t){je=t}(document),document},deps:[]}]),kl=[[],{provide:Vs,useValue:"root"},{provide:Xn,useFactory:function(){return new Xn},deps:[]},{provide:al,useClass:wl,multi:!0,deps:[ka,Ji,Di]},{provide:al,useClass:El,multi:!0,deps:[ka]},[],{provide:ml,useClass:ml,deps:[ll,hl,Ri]},{provide:Lo,useExisting:ml},{provide:ul,useExisting:hl},{provide:hl,useClass:hl,deps:[ka]},{provide:sa,useClass:sa,deps:[Ji]},{provide:ll,useClass:ll,deps:[al,Ji]},[]];let Al=(()=>{class t{constructor(t){if(t)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(e){return{ngModule:t,providers:[{provide:Ri,useValue:e.appId},{provide:sl,useExisting:Ri},ol]}}}return t.\u0275mod=de({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)(qt(t,12))},providers:kl,imports:[Ya,xa]}),t})();function Ol(...t){let e=t[t.length-1];return E(e)?(t.pop(),D(t,e)):B(t)}"undefined"!=typeof window&&window;class Il extends S{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new w;return this._value}next(t){super.next(this._value=t)}}class Rl extends p{notifyNext(t,e,n,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class Pl extends p{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function jl(t,e,n,r,s=new Pl(t,n,r)){if(!s.closed)return e instanceof v?e.subscribe(s):N(e)(s)}const Nl={};class Dl{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Ul(t,this.resultSelector))}}class Ul extends Rl{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Nl),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++)this.add(jl(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const r=this.values,s=this.toRespond?r[n]===Nl?--this.toRespond:this.toRespond:0;r[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const Ml=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),Hl=new v(t=>t.complete());function Ll(t){return t?function(t){return new v(e=>t.schedule(()=>e.complete()))}(t):Hl}function Fl(t){return new v(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?U(n):Ll()).subscribe(e)})}function Vl(){return z(1)}function $l(t,e){return function(n){return n.lift(new zl(t,e))}}class zl{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Bl(t,this.predicate,this.thisArg))}}class Bl extends p{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}const ql=(()=>{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 Wl(t){return function(e){return 0===t?Ll():e.lift(new Zl(t))}}class Zl{constructor(t){if(this.total=t,this.total<0)throw new ql}call(t,e){return e.subscribe(new Gl(t,this.total))}}class Gl extends p{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;s<n;s++){const s=e++%n;t.next(r[s])}}t.complete()}}function Ql(t=Kl){return e=>e.lift(new Jl(t))}class Jl{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Yl(t,this.errorFactory))}}class Yl extends p{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function Kl(){return new Ml}function Xl(t=null){return e=>e.lift(new tc(t))}class tc{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new ec(t,this.defaultValue))}}class ec extends p{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function nc(t,e){return"function"==typeof e?n=>n.pipe(nc((n,r)=>U(t(n,r)).pipe(T((t,s)=>e(n,t,r,s))))):e=>e.lift(new rc(t))}class rc{constructor(t){this.project=t}call(t,e){return e.subscribe(new sc(t,this.project))}}class sc extends H{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new M(this),r=this.destination;r.add(n),this.innerSubscription=L(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}function oc(t){return e=>0===t?Ll():e.lift(new ic(t))}class ic{constructor(t){if(this.total=t,this.total<0)throw new ql}call(t,e){return e.subscribe(new ac(t,this.total))}}class ac extends p{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function lc(...t){return Vl()(Ol(...t))}class cc{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new uc(t,this.accumulator,this.seed,this.hasSeed))}}class uc extends p{constructor(t,e,n,r){super(t),this.accumulator=e,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function hc(t){return function(e){const n=new dc(t),r=e.lift(n);return n.caught=r}}class dc{constructor(t){this.selector=t}call(t,e){return e.subscribe(new fc(t,this.selector,this.caught))}}class fc extends H{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new M(this);this.add(r);const s=L(n,r);s!==r&&this.add(s)}}}function pc(t,e){return F(t,e,1)}function gc(t,e){const n=arguments.length>=2;return r=>r.pipe(t?$l((e,n)=>t(e,n,r)):y,oc(1),n?Xl(e):Ql(()=>new Ml))}function mc(){}function yc(t,e,n){return function(r){return r.lift(new vc(t,e,n))}}class vc{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new _c(t,this.nextOrObserver,this.error,this.complete))}}class _c extends p{constructor(t,e,n,s){super(t),this._tapNext=mc,this._tapError=mc,this._tapComplete=mc,this._tapError=n||mc,this._tapComplete=s||mc,r(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||mc,this._tapError=e.error||mc,this._tapComplete=e.complete||mc)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class wc{constructor(t){this.callback=t}call(t,e){return e.subscribe(new bc(t,this.callback))}}class bc extends p{constructor(t,e){super(t),this.add(new h(e))}}class Cc{constructor(t,e){this.id=t,this.url=e}}class Sc extends Cc{constructor(t,e,n="imperative",r=null){super(t,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class xc extends Cc{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ec extends Cc{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Tc extends Cc{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class kc extends Cc{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ac extends Cc{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Oc extends Cc{constructor(t,e,n,r,s){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ic extends Cc{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Rc extends Cc{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Pc{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class jc{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Nc{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Dc{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Uc{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mc{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hc{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Lc="primary";class Fc{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Vc(t){return new Fc(t)}function $c(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function zc(t,e,n){const r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;const s={};for(let o=0;o<r.length;o++){const e=r[o],n=t[o];if(e.startsWith(":"))s[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,r.length),posParams:s}}function Bc(t,e){const n=Object.keys(t),r=Object.keys(e);if(!n||!r||n.length!=r.length)return!1;let s;for(let o=0;o<n.length;o++)if(s=n[o],!qc(t[s],e[s]))return!1;return!0}function qc(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((t,e)=>r[e]===t)}return t===e}function Wc(t){return Array.prototype.concat.apply([],t)}function Zc(t){return t.length>0?t[t.length-1]:null}function Gc(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Qc(t){return(e=t)&&"function"==typeof e.subscribe?t:yo(t)?U(Promise.resolve(t)):Ol(t);var e}function Jc(t,e,n){return n?function(t,e){return Bc(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!tu(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>qc(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,s){if(n.segments.length>s.length)return!!tu(n.segments.slice(0,s.length),s)&&!r.hasChildren();if(n.segments.length===s.length){if(!tu(n.segments,s))return!1;for(const e in r.children){if(!n.children[e])return!1;if(!t(n.children[e],r.children[e]))return!1}return!0}{const t=s.slice(0,n.segments.length),o=s.slice(n.segments.length);return!!tu(n.segments,t)&&!!n.children.primary&&e(n.children.primary,r,o)}}(e,n,n.segments)}(t.root,e.root)}class Yc{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Vc(this.queryParams)),this._queryParamMap}toString(){return su.serialize(this)}}class Kc{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Gc(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ou(this)}}class Xc{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Vc(this.parameters)),this._parameterMap}toString(){return hu(this)}}function tu(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function eu(t,e){let n=[];return Gc(t.children,(t,r)=>{r===Lc&&(n=n.concat(e(t,r)))}),Gc(t.children,(t,r)=>{r!==Lc&&(n=n.concat(e(t,r)))}),n}class nu{}class ru{parse(t){const e=new mu(t);return new Yc(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+function t(e,n){if(!e.hasChildren())return ou(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",r=[];return Gc(e.children,(e,n)=>{n!==Lc&&r.push(`${n}:${t(e,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=eu(e,(n,r)=>r===Lc?[t(e.children.primary,!1)]:[`${r}:${t(n,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${ou(e)}/${n[0]}`:`${ou(e)}/(${n.join("//")})`}}(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${au(e)}=${au(t)}`).join("&"):`${au(e)}=${au(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const su=new ru;function ou(t){return t.segments.map(t=>hu(t)).join("/")}function iu(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function au(t){return iu(t).replace(/%3B/gi,";")}function lu(t){return iu(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function cu(t){return decodeURIComponent(t)}function uu(t){return cu(t.replace(/\+/g,"%20"))}function hu(t){return`${lu(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${lu(t)}=${lu(e[t])}`).join("")}`;var e}const du=/^[^\/()?;=#]+/;function fu(t){const e=t.match(du);return e?e[0]:""}const pu=/^[^=?&#]+/,gu=/^[^?&#]+/;class mu{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Kc([],{}):new Kc([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Kc(t,e)),n}parseSegment(){const t=fu(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Xc(cu(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=fu(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=fu(this.remaining);t&&(n=t,this.capture(n))}t[cu(e)]=cu(n)}parseQueryParam(t){const e=function(t){const e=t.match(pu);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(gu);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=uu(e),s=uu(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=fu(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=Lc);const o=this.parseChildren();e[s]=1===Object.keys(o).length?o.primary:new Kc([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class yu{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=vu(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=vu(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=_u(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return _u(t,this._root).map(t=>t.value)}}function vu(t,e){if(t===e.value)return e;for(const n of e.children){const e=vu(t,n);if(e)return e}return null}function _u(t,e){if(t===e.value)return[e];for(const n of e.children){const r=_u(t,n);if(r.length)return r.unshift(e),r}return[]}class wu{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function bu(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Cu extends yu{constructor(t,e){super(t),this.snapshot=e,Au(this,t)}toString(){return this.snapshot.toString()}}function Su(t,e){const n=function(t,e){const n=new Tu([],{},{},"",{},Lc,e,null,t.root,-1,{});return new ku("",new wu(n,[]))}(t,e),r=new Il([new Xc("",{})]),s=new Il({}),o=new Il({}),i=new Il({}),a=new Il(""),l=new xu(r,s,i,a,o,Lc,e,n.root);return l.snapshot=n.root,new Cu(new wu(l,[]),n)}class xu{constructor(t,e,n,r,s,o,i,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=o,this.component=i,this._futureSnapshot=a}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(T(t=>Vc(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(T(t=>Vc(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Eu(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const t=n[r],e=n[r-1];if(t.routeConfig&&""===t.routeConfig.path)r--;else{if(e.component)break;r--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Tu{constructor(t,e,n,r,s,o,i,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=o,this.component=i,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Vc(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Vc(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ku extends yu{constructor(t,e){super(e),this.url=t,Au(this,e)}toString(){return Ou(this._root)}}function Au(t,e){e.value._routerState=t,e.children.forEach(e=>Au(t,e))}function Ou(t){const e=t.children.length>0?` { ${t.children.map(Ou).join(", ")} } `:"";return`${t.value}${e}`}function Iu(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Bc(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Bc(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(!Bc(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Bc(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Ru(t,e){var n,r;return Bc(t.params,e.params)&&tu(n=t.url,r=e.url)&&n.every((t,e)=>Bc(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Ru(t.parent,e.parent))}function Pu(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ju(t,e,n,r,s){let o={};return r&&Gc(r,(t,e)=>{o[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new Yc(n.root===t?e:function t(e,n,r){const s={};return Gc(e.children,(e,o)=>{s[o]=e===n?r:t(e,n,r)}),new Kc(e.segments,s)}(n.root,t,e),o,s)}class Nu{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Pu(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(r&&r!==Zc(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Du{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Uu(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function Mu(t,e,n){if(t||(t=new Kc([],{})),0===t.segments.length&&t.hasChildren())return Hu(t,e,n);const r=function(t,e,n){let r=0,s=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(r>=n.length)return o;const e=t.segments[s],i=Uu(n[r]),a=r<n.length-1?n[r+1]:null;if(s>0&&void 0===i)break;if(i&&a&&"object"==typeof a&&void 0===a.outlets){if(!$u(i,a,e))return o;r+=2}else{if(!$u(i,{},e))return o;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(t,e,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){const e=new Kc(t.segments.slice(0,r.pathIndex),{});return e.children.primary=new Kc(t.segments.slice(r.pathIndex),t.children),Hu(e,0,s)}return r.match&&0===s.length?new Kc(t.segments,{}):r.match&&!t.hasChildren()?Lu(t,e,n):r.match?Hu(t,0,s):Lu(t,e,n)}function Hu(t,e,n){if(0===n.length)return new Kc(t.segments,{});{const r=function(t){return"object"==typeof t[0]&&null!==t[0]&&t[0].outlets?t[0].outlets:{[Lc]:t}}(n),s={};return Gc(r,(n,r)=>{null!==n&&(s[r]=Mu(t.children[r],e,n))}),Gc(t.children,(t,e)=>{void 0===r[e]&&(s[e]=t)}),new Kc(t.segments,s)}}function Lu(t,e,n){const r=t.segments.slice(0,e);let s=0;for(;s<n.length;){if("object"==typeof n[s]&&null!==n[s]&&void 0!==n[s].outlets){const t=Fu(n[s].outlets);return new Kc(r,t)}if(0===s&&Pu(n[0])){r.push(new Xc(t.segments[e].path,n[0])),s++;continue}const o=Uu(n[s]),i=s<n.length-1?n[s+1]:null;o&&i&&Pu(i)?(r.push(new Xc(o,Vu(i))),s+=2):(r.push(new Xc(o,{})),s++)}return new Kc(r,{})}function Fu(t){const e={};return Gc(t,(t,n)=>{null!==t&&(e[n]=Lu(new Kc([],{}),0,t))}),e}function Vu(t){const e={};return Gc(t,(t,n)=>e[n]=""+t),e}function $u(t,e,n){return t==n.path&&Bc(e,n.parameters)}class zu{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Iu(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=bu(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),Gc(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const r=bu(t),s=t.value.component?n.children:e;Gc(r,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const r=bu(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new Mc(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Dc(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(Iu(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Bu(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(r.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=s,e.outlet&&e.outlet.activateWith(r,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Bu(t){Iu(t.value),t.children.forEach(Bu)}class qu{constructor(t,e){this.routes=t,this.module=e}}function Wu(t){return"function"==typeof t}function Zu(t){return t instanceof Yc}const Gu=Symbol("INITIAL_VALUE");function Qu(){return nc(t=>function(...t){let e=void 0,n=void 0;return E(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),B(t,n).lift(new Dl(e))}(...t.map(t=>t.pipe(oc(1),function(...t){const e=t[t.length-1];return E(e)?(t.pop(),n=>lc(t,n,e)):e=>lc(t,e)}(Gu)))).pipe(function(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new cc(t,e,n))}}((t,e)=>{let n=!1;return e.reduce((t,r,s)=>{if(t!==Gu)return t;if(r===Gu&&(n=!0),!n){if(!1===r)return r;if(s===e.length-1||Zu(r))return r}return t},t)},Gu),$l(t=>t!==Gu),T(t=>Zu(t)?t:!0===t),oc(1)))}class Ju{constructor(t){this.segmentGroup=t||null}}class Yu{constructor(t){this.urlTree=t}}function Ku(t){return new v(e=>e.error(new Ju(t)))}function Xu(t){return new v(e=>e.error(new Yu(t)))}function th(t){return new v(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class eh{constructor(t,e,n,r,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(Qt)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Lc).pipe(T(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(hc(t=>{if(t instanceof Yu)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Ju)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Lc).pipe(T(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(hc(t=>{if(t instanceof Ju)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new Kc([],{[Lc]:t}):t;return new Yc(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(T(t=>new Kc([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Ol({});const n=[],r=[],s={};return Gc(t,(t,o)=>{const i=e(o,t).pipe(T(t=>s[o]=t));o===Lc?n.push(i):r.push(i)}),Ol.apply(null,n.concat(r)).pipe(Vl(),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?$l((e,n)=>t(e,n,r)):y,Wl(1),n?Xl(e):Ql(()=>new Ml))}(),T(()=>s))}(n.children,(n,r)=>this.expandSegmentGroup(t,e,r,n))}expandSegment(t,e,n,r,s,o){return Ol(...n).pipe(pc(i=>this.expandSegmentAgainstRoute(t,e,n,i,r,s,o).pipe(hc(t=>{if(t instanceof Ju)return Ol(null);throw t}))),gc(t=>!!t),hc((t,n)=>{if(t instanceof Ml||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,r,s))return Ol(new Kc([],{}));throw new Ju(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,r,s,o,i){return oh(r)!==o?Ku(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s):i&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,o):Ku(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Xu(s):this.lineralizeSegments(n,s).pipe(F(n=>{const s=new Kc(n,{});return this.expandSegment(t,s,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,o){const{matched:i,consumedSegments:a,lastChild:l,positionalParamSegments:c}=nh(e,r,s);if(!i)return Ku(e);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?Xu(u):this.lineralizeSegments(r,u).pipe(F(r=>this.expandSegment(t,e,n,r.concat(s.slice(l)),o,!1)))}matchSegmentAgainstRoute(t,e,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(T(t=>(n._loadedConfig=t,new Kc(r,{})))):Ol(new Kc(r,{}));const{matched:s,consumedSegments:o,lastChild:i}=nh(e,n,r);if(!s)return Ku(e);const a=r.slice(i);return this.getChildConfig(t,n,r).pipe(F(t=>{const n=t.module,r=t.routes,{segmentGroup:s,slicedSegments:i}=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some(n=>sh(t,e,n)&&oh(n)!==Lc)}(t,n,r)?{segmentGroup:rh(new Kc(e,function(t,e){const n={};n.primary=e;for(const r of t)""===r.path&&oh(r)!==Lc&&(n[oh(r)]=new Kc([],{}));return n}(r,new Kc(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>sh(t,e,n))}(t,n,r)?{segmentGroup:rh(new Kc(t.segments,function(t,e,n,r){const s={};for(const o of n)sh(t,e,o)&&!r[oh(o)]&&(s[oh(o)]=new Kc([],{}));return Object.assign(Object.assign({},r),s)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,o,a,r);return 0===i.length&&s.hasChildren()?this.expandChildren(n,r,s).pipe(T(t=>new Kc(o,t))):0===r.length&&0===i.length?Ol(new Kc(o,{})):this.expandSegment(n,s,r,i,Lc,!0).pipe(T(t=>new Kc(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Ol(new qu(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Ol(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(F(n=>n?this.configLoader.load(t.injector,e).pipe(T(t=>(e._loadedConfig=t,t))):function(t){return new v(e=>e.error($c(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Ol(new qu([],t))}runCanLoadGuards(t,e,n){const r=e.canLoad;return r&&0!==r.length?Ol(r.map(r=>{const s=t.get(r);let o;if(function(t){return t&&Wu(t.canLoad)}(s))o=s.canLoad(e,n);else{if(!Wu(s))throw new Error("Invalid CanLoad guard");o=s(e,n)}return Qc(o)})).pipe(Qu(),yc(t=>{if(!Zu(t))return;const e=$c(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),T(t=>!0===t)):Ol(!0)}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Ol(n);if(r.numberOfChildren>1||!r.children.primary)return th(t.redirectTo);r=r.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const s=this.createSegmentGroup(t,e.root,n,r);return new Yc(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Gc(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[r]=e[s]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const s=this.createSegments(t,e.segments,n,r);let o={};return Gc(e.children,(e,s)=>{o[s]=this.createSegmentGroup(t,e,n,r)}),new Kc(s,o)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function nh(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(e.matcher||zc)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function rh(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Kc(t.segments.concat(e.segments),e.children)}return t}function sh(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function oh(t){return t.outlet||Lc}class ih{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class ah{constructor(t,e){this.component=t,this.route=e}}function lh(t,e,n){const r=t._root;return function t(e,n,r,s,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=bu(n);return e.children.forEach(e=>{!function(e,n,r,s,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,a=n?n.value:null,l=r?r.getContext(e.value.outlet):null;if(a&&i.routeConfig===a.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!tu(t.url,e.url);case"pathParamsOrQueryParamsChange":return!tu(t.url,e.url)||!Bc(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ru(t,e)||!Bc(t.queryParams,e.queryParams);case"paramsChange":default:return!Ru(t,e)}}(a,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new ih(s)):(i.data=a.data,i._resolvedData=a._resolvedData),t(e,n,i.component?l?l.children:null:r,s,o),c&&l&&l.outlet&&l.outlet.isActivated&&o.canDeactivateChecks.push(new ah(l.outlet.component,a))}else a&&uh(n,l,o),o.canActivateChecks.push(new ih(s)),t(e,null,i.component?l?l.children:null:r,s,o)}(e,i[e.value.outlet],r,s.concat([e.value]),o),delete i[e.value.outlet]}),Gc(i,(t,e)=>uh(t,r.getContext(e),o)),o}(r,e?e._root:null,n,[r.value])}function ch(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function uh(t,e,n){const r=bu(t),s=t.value;Gc(r,(t,r)=>{uh(t,s.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new ah(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}function hh(t,e){return null!==t&&e&&e(new Uc(t)),Ol(!0)}function dh(t,e){return null!==t&&e&&e(new Nc(t)),Ol(!0)}function fh(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?Ol(r.map(r=>Fl(()=>{const s=ch(r,e,n);let o;if(function(t){return t&&Wu(t.canActivate)}(s))o=Qc(s.canActivate(e,t));else{if(!Wu(s))throw new Error("Invalid CanActivate guard");o=Qc(s(e,t))}return o.pipe(gc())}))).pipe(Qu()):Ol(!0)}function ph(t,e,n){const r=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Fl(()=>Ol(e.guards.map(s=>{const o=ch(s,e.node,n);let i;if(function(t){return t&&Wu(t.canActivateChild)}(o))i=Qc(o.canActivateChild(r,t));else{if(!Wu(o))throw new Error("Invalid CanActivateChild guard");i=Qc(o(r,t))}return i.pipe(gc())})).pipe(Qu())));return Ol(s).pipe(Qu())}class gh{}class mh{constructor(t,e,n,r,s,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){try{const t=_h(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Lc),n=new Tu([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Lc,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new wu(n,e),s=new ku(this.url,r);return this.inheritParamsAndData(s._root),Ol(s)}catch(t){return new v(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=Eu(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=eu(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),r=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${r}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>t.value.outlet===Lc?-1:e.value.outlet===Lc?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,r){for(const o of t)try{return this.processSegmentAgainstRoute(o,e,n,r)}catch(s){if(!(s instanceof gh))throw s}if(this.noLeftoversInUrl(e,n,r))return[];throw new gh}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo)throw new gh;if((t.outlet||Lc)!==r)throw new gh;let s,o=[],i=[];if("**"===t.path){const o=n.length>0?Zc(n).parameters:{};s=new Tu(n,o,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ch(t),r,t.component,t,yh(e),vh(e)+n.length,Sh(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new gh;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(e.matcher||zc)(n,t,e);if(!r)throw new gh;const s={};Gc(r.posParams,(t,e)=>{s[e]=t.path});const o=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(e,t,n);o=a.consumedSegments,i=n.slice(a.lastChild),s=new Tu(o,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ch(t),r,t.component,t,yh(e),vh(e)+o.length,Sh(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=_h(e,o,i,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new wu(s,t)]}if(0===a.length&&0===c.length)return[new wu(s,[])];const u=this.processSegment(a,l,c,Lc);return[new wu(s,u)]}}function yh(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function vh(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 _h(t,e,n,r,s){if(n.length>0&&function(t,e,n){return n.some(n=>wh(t,e,n)&&bh(n)!==Lc)}(t,n,r)){const s=new Kc(e,function(t,e,n,r){const s={};s.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const o of n)if(""===o.path&&bh(o)!==Lc){const n=new Kc([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[bh(o)]=n}return s}(t,e,r,new Kc(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>wh(t,e,n))}(t,n,r)){const o=new Kc(t.segments,function(t,e,n,r,s,o){const i={};for(const a of r)if(wh(t,n,a)&&!s[bh(a)]){const n=new Kc([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===o?t.segments.length:e.length,i[bh(a)]=n}return Object.assign(Object.assign({},s),i)}(t,e,n,r,t.children,s));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}const o=new Kc(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}function wh(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function bh(t){return t.outlet||Lc}function Ch(t){return t.data||{}}function Sh(t){return t.resolve||{}}function xh(t){return function(e){return e.pipe(nc(e=>{const n=t(e);return n?U(n).pipe(T(()=>e)):U([e])}))}}class Eh extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}let Th=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=le({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&mo(0,"router-outlet")},directives:function(){return[$h]},encapsulation:2}),t})();function kh(t,e=""){for(let n=0;n<t.length;n++){const r=t[n];Ah(r,Oh(e,r))}}function Ah(t,e){if(!t)throw new Error(`\n      Invalid configuration of route '${e}': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    `);if(Array.isArray(t))throw new Error(`Invalid configuration of route '${e}': Array cannot be specified`);if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&t.outlet!==Lc)throw new Error(`Invalid configuration of route '${e}': a componentless route without children or loadChildren cannot have a named outlet set`);if(t.redirectTo&&t.children)throw new Error(`Invalid configuration of route '${e}': redirectTo and children cannot be used together`);if(t.redirectTo&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': redirectTo and loadChildren cannot be used together`);if(t.children&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': children and loadChildren cannot be used together`);if(t.redirectTo&&t.component)throw new Error(`Invalid configuration of route '${e}': redirectTo and component cannot be used together`);if(t.path&&t.matcher)throw new Error(`Invalid configuration of route '${e}': path and matcher cannot be used together`);if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error(`Invalid configuration of route '${e}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===t.path&&void 0===t.matcher)throw new Error(`Invalid configuration of route '${e}': routes must have either a path or a matcher specified`);if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error(`Invalid configuration of route '${e}': path cannot start with a slash`);if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error(`Invalid configuration of route '{path: "${e}", redirectTo: "${t.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error(`Invalid configuration of route '${e}': pathMatch can only be set to 'prefix' or 'full'`);t.children&&kh(t.children,e)}function Oh(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Ih(t){const e=t.children&&t.children.map(Ih),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==Lc&&(n.component=Th),n}const Rh=new Nt("ROUTES");class Ph{constructor(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(T(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new qu(Wc(r.injector.get(Rh)).map(Ih),r)}))}loadModuleFactory(t){return"string"==typeof t?U(this.loader.load(t)):Qc(t()).pipe(F(t=>t instanceof Jt?Ol(t):U(this.compiler.compileModuleAsync(t))))}}class jh{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Nh,this.attachRef=null}}class Nh{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new jh,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Dh{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Uh(t){throw t}function Mh(t,e,n){return e.parse("/")}function Hh(t,e){return Ol(null)}let Lh=(()=>{class t{constructor(t,e,n,r,s,o,i,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new S,this.errorHandler=Uh,this.malformedUriErrorHandler=Mh,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Hh,afterPreactivation:Hh},this.urlHandlingStrategy=new Dh,this.routeReuseStrategy=new Eh,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(Qt),this.console=s.get(Mi);const l=s.get(Ji);this.isNgZoneEnabled=l instanceof Ji,this.resetConfig(a),this.currentUrlTree=new Yc(new Kc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ph(o,i,t=>this.triggerEvent(new Pc(t)),t=>this.triggerEvent(new jc(t))),this.routerState=Su(this.currentUrlTree,this.rootComponentType),this.transitions=new Il({id: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()}setupNavigations(t){const e=this.events;return t.pipe($l(t=>0!==t.id),T(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),nc(t=>{let n=!1,r=!1;return Ol(t).pipe(yc(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),nc(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Ol(t).pipe(nc(t=>{const n=this.transitions.getValue();return e.next(new Sc(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?Hl:[t]}),nc(t=>Promise.resolve(t)),(r=this.ngModule.injector,s=this.configLoader,o=this.urlSerializer,i=this.config,function(t){return t.pipe(nc(t=>function(t,e,n,r,s){return new eh(t,e,n,r,s).apply()}(r,s,o,t.extractedUrl,i).pipe(T(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),yc(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,s){return function(o){return o.pipe(F(o=>function(t,e,n,r,s="emptyOnly",o="legacy"){return new mh(t,e,n,r,s,o).recognize()}(t,e,o.urlAfterRedirects,n(o.urlAfterRedirects),r,s).pipe(T(t=>Object.assign(Object.assign({},o),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),yc(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),yc(t=>{const n=new kc(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var r,s,o,i;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:o,extras:i}=t,a=new Sc(n,this.serializeUrl(r),s,o);e.next(a);const l=Su(r,this.rootComponentType).snapshot;return Ol(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},i),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Hl}),xh(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:i}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!i})}),yc(t=>{const e=new Ac(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),T(t=>Object.assign(Object.assign({},t),{guards:lh(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(F(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:o,canDeactivateChecks:i}}=n;return 0===i.length&&0===o.length?Ol(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return U(t).pipe(F(t=>function(t,e,n,r,s){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?Ol(o.map(o=>{const i=ch(o,e,s);let a;if(function(t){return t&&Wu(t.canDeactivate)}(i))a=Qc(i.canDeactivate(t,e,n,r));else{if(!Wu(i))throw new Error("Invalid CanDeactivate guard");a=Qc(i(t,e,n,r))}return a.pipe(gc())})).pipe(Qu()):Ol(!0)}(t.component,t.route,n,e,r)),gc(t=>!0!==t,!0))}(i,r,s,t).pipe(F(n=>n&&"boolean"==typeof n?function(t,e,n,r){return U(e).pipe(pc(e=>U([dh(e.route.parent,r),hh(e.route,r),ph(t,e.path,n),fh(t,e.route,n)]).pipe(Vl(),gc(t=>!0!==t,!0))),gc(t=>!0!==t,!0))}(r,o,t,e):Ol(n)),T(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),yc(t=>{if(Zu(t.guardsResult)){const e=$c(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),yc(t=>{const e=new Oc(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),$l(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Ec(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),xh(t=>{if(t.guards.canActivateChecks.length)return Ol(t).pipe(yc(t=>{const e=new Ic(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),nc(t=>{let n=!1;return Ol(t).pipe((r=this.paramsInheritanceStrategy,s=this.ngModule.injector,function(t){return t.pipe(F(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Ol(t);let o=0;return U(n).pipe(pc(t=>function(t,e,n,r){return function(t,e,n,r){const s=Object.keys(t);if(0===s.length)return Ol({});const o={};return U(s).pipe(F(s=>function(t,e,n,r){const s=ch(t,e,r);return Qc(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,r).pipe(yc(t=>{o[s]=t}))),Wl(1),F(()=>Object.keys(o).length===s.length?Ol(o):Hl))}(t._resolve,t,e,r).pipe(T(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Eu(t,n).resolve),null)))}(t.route,e,r,s)),yc(()=>o++),Wl(1),F(e=>o===n.length?Ol(t):Hl))}))}),yc({next:()=>n=!0,complete:()=>{if(!n){const n=new Ec(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var r,s}),yc(t=>{const e=new Rc(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),xh(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:i}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!i})}),T(t=>{const e=function(t,e,n){const r=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){const s=r.value;s._futureSnapshot=n.value;const o=function(e,n,r){return n.children.map(n=>{for(const s of r.children)if(e.shouldReuseRoute(s.value.snapshot,n.value))return t(e,n,s);return t(e,n)})}(e,n,r);return new wu(s,o)}{const r=e.retrieve(n.value);if(r){const t=r.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let r=0;r<e.children.length;++r)t(e.children[r],n.children[r])}(n,t),t}{const r=new xu(new Il((s=n.value).url),new Il(s.params),new Il(s.queryParams),new Il(s.fragment),new Il(s.data),s.outlet,s.component,s),o=n.children.map(n=>t(e,n));return new wu(r,o)}}var s}(t,e._root,n?n._root:void 0);return new Cu(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),yc(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(o=this.rootContexts,i=this.routeReuseStrategy,a=t=>this.triggerEvent(t),T(t=>(new zu(i,t.targetRouterState,t.currentRouterState,a).activate(o),t))),yc({next(){n=!0},complete(){n=!0}}),(s=()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new Ec(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null},t=>t.lift(new wc(s))),hc(n=>{if(r=!0,(s=n)&&s.ngNavigationCancelingError){const r=Zu(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new Ec(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),r?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const r=new Tc(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(o){t.reject(o)}}var s;return Hl}));var s,o,i,a}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:r}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(r,t,n,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){kh(t),this.config=t.map(Ih),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:r,fragment:s,preserveQueryParams:o,queryParamsHandling:i,preserveFragment:a}=e;sr()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,c=a?this.currentUrlTree.fragment:s;let u=null;if(i)switch(i){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}else u=o?this.currentUrlTree.queryParams:r||null;return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,n,r,s){if(0===n.length)return ju(e.root,e.root,e,r,s);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Nu(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return Gc(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new Nu(n,e,r)}(n);if(o.toRoot())return ju(e.root,new Kc([],{}),e,r,s);const i=function(t,e,n){if(t.isAbsolute)return new Du(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Du(t,t===e.root,0)}const r=Pu(t.commands[0])?0:1;return function(t,e,n){let r=t,s=e,o=n;for(;o>s;){if(o-=s,r=r.parent,!r)throw new Error("Invalid number of '../'");s=r.segments.length}return new Du(r,!1,s-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),a=i.processChildren?Hu(i.segmentGroup,i.index,o.commands):Mu(i.segmentGroup,i.index,o.commands);return ju(i.segmentGroup,a,e,r,s)}(l,this.currentUrlTree,t,u,c)}navigateByUrl(t,e={skipLocationChange:!1}){sr()&&this.isNgZoneEnabled&&!Ji.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=Zu(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}navigate(t,e={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}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){if(Zu(t))return Jc(this.currentUrlTree,t,e);const n=this.parseUrl(t);return Jc(this.currentUrlTree,n,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return null!=r&&(e[n]=r),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new xc(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,r,s){const o=this.getTransition(),i="imperative"!==e&&"imperative"===(null==o?void 0:o.source),a=(this.lastSuccessfulId===o.id||this.currentNavigation?o.rawUrl:o.urlAfterRedirects).toString()===t.toString();if(i&&a)return Promise.resolve(!0);let l,c,u;s?(l=s.resolve,c=s.reject,u=s.promise):u=new Promise((t,e)=>{l=t,c=e});const h=++this.navigationId;return this.setTransition({id:h,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,r){const s=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},r),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(qt(Fs),qt(nu),qt(Nh),qt($a),qt(to),qt(ya),qt(Zi),qt(void 0))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),Fh=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new S,null==n&&r.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){sr()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:Vh(this.skipLocationChange),replaceUrl:Vh(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Vh(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Vh(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(co(Lh),co(xu),uo("tabindex"),co(Vo),co(Mo))},t.\u0275dir=pe({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&vo("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[Ae]}),t})();function Vh(t){return""===t||!!t}let $h=(()=>{class t{constructor(t,e,n,r,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ai,this.deactivateEvents=new Ai,this.name=r||Lc,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.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 t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new zh(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(co(Nh),co(ci),co(Uo),uo("name"),co(Hs))},t.\u0275dir=pe({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class zh{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===xu?this.route:t===Nh?this.childContexts:this.parent.get(t,e)}}class Bh{}class qh{preload(t,e){return Ol(null)}}let Wh=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.injector=r,this.preloadingStrategy=s,this.loader=new Ph(e,n,e=>t.triggerEvent(new Pc(e)),e=>t.triggerEvent(new jc(e)))}setUpPreloading(){this.subscription=this.router.events.pipe($l(t=>t instanceof xc),pc(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Qt);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const r of e)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const t=r._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children));return U(n).pipe(z(),T(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(F(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(qt(Lh),qt(ya),qt(Zi),qt(to),qt(Bh))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),Zh=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.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(t=>{t instanceof Sc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof xc&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Hc&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new Hc(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(qt(Lh),qt(Ka),qt(void 0))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const Gh=new Nt("ROUTER_CONFIGURATION"),Qh=new Nt("ROUTER_FORROOT_GUARD"),Jh=[$a,{provide:nu,useClass:ru},{provide:Lh,useFactory:function(t,e,n,r,s,o,i,a={},l,c){const u=new Lh(null,t,e,n,r,s,o,Wc(i));if(l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),a.errorHandler&&(u.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(u.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const t=Ta();u.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return a.onSameUrlNavigation&&(u.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(u.paramsInheritanceStrategy=a.paramsInheritanceStrategy),a.urlUpdateStrategy&&(u.urlUpdateStrategy=a.urlUpdateStrategy),a.relativeLinkResolution&&(u.relativeLinkResolution=a.relativeLinkResolution),u},deps:[nu,Nh,$a,to,ya,Zi,Rh,Gh,[class{},new nt],[class{},new nt]]},Nh,{provide:xu,useFactory:function(t){return t.routerState.root},deps:[Lh]},{provide:ya,useClass:wa},Wh,qh,class{preload(t,e){return e().pipe(hc(()=>Ol(null)))}},{provide:Gh,useValue:{enableTracing:!1}}];function Yh(){return new ua("Router",Lh)}let Kh=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Jh,nd(e),{provide:Qh,useFactory:ed,deps:[[Lh,new nt,new st]]},{provide:Gh,useValue:n||{}},{provide:Ma,useFactory:td,deps:[Aa,[new et(La),new nt],Gh]},{provide:Zh,useFactory:Xh,deps:[Lh,Ka,Gh]},{provide:Bh,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:qh},{provide:ua,multi:!0,useFactory:Yh},[rd,{provide:Oi,multi:!0,useFactory:sd,deps:[rd]},{provide:id,useFactory:od,deps:[rd]},{provide:Ui,multi:!0,useExisting:id}]]}}static forChild(e){return{ngModule:t,providers:[nd(e)]}}}return t.\u0275mod=de({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)(qt(Qh,8),qt(Lh,8))}}),t})();function Xh(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Zh(t,e,n)}function td(t,e,n={}){return n.useHash?new Va(t,e):new Fa(t,e)}function ed(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function nd(t){return[{provide:eo,multi:!0,useValue:t},{provide:Rh,multi:!0,useValue:t}]}let rd=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new S}appInitializer(){return this.injector.get(Ia,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Lh),r=this.injector.get(Gh);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))t(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Ol(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(Gh),n=this.injector.get(Wh),r=this.injector.get(Zh),s=this.injector.get(Lh),o=this.injector.get(ga);t===o.components[0]&&(this.isLegacyEnabled(e)?s.initialNavigation():this.isLegacyDisabled(e)&&s.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(qt(to))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();function sd(t){return t.appInitializer.bind(t)}function od(t){return t.bootstrapListener.bind(t)}const id=new Nt("Router Initializer");let ad=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=le({type:t,selectors:[["app-homepage"]],decls:4,vars:0,consts:[[1,"homepage-root"],["id","background-image",1,"jumbotron"]],template:function(t,e){1&t&&(po(0,"div",0),po(1,"div",1),po(2,"h3"),Ro(3," Join us in the fight to help end homelessness in Arizona. 214 families in Maricopa country are on the waiting list for shelter. "),go(),go(),go())},styles:["#background-image[_ngcontent-%COMP%]{background-image:linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,.5)),url(truck_umbrella.44f9a452fd386e63b635.jpg);background-size:cover;background-position:50%;height:30rem;width:100%;color:#fff;display:flex;justify-content:center;align-items:center;margin-bottom:2rem}"]}),t})();var ld=n("P6L6");let cd=(()=>{class t{constructor(){}ngOnInit(){}getImageSrc(){return this.cardData.imageSrc}getImgDescription(){return this.cardData.imageDescription}getMemberName(){return this.cardData.memberName}getMemberPosition(){return this.cardData.position}getMemberDesc(){return this.cardData.description}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=le({type:t,selectors:[["app-team-card"]],inputs:{cardData:["card-data","cardData"]},decls:9,vars:4,consts:[[1,"card","card-root"],["id","size-image","alt","getImgDescription()",1,"card-img-top","img-fluid",3,"src"],[1,"card-body"],[1,"card-title"],["id","need-italics"],[1,"card-text","need-wrap-text"]],template:function(t,e){1&t&&(po(0,"div",0),mo(1,"img",1),po(2,"div",2),po(3,"p",3),Ro(4),go(),po(5,"p",4),Ro(6),go(),po(7,"p",5),Ro(8),go(),go(),go()),2&t&&(Tr(1),ho("src",e.getImageSrc(),lr),Tr(3),Po(e.getMemberName()),Tr(2),Po(e.getMemberPosition()),Tr(2),Po(e.getMemberDesc()))},styles:["img[_ngcontent-%COMP%]{width:337px;height:173px;object-fit:cover}.card-root[_ngcontent-%COMP%]{margin:1rem 1rem 0 0;height:27rem}.card-title[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:700}.card-body[_ngcontent-%COMP%]{padding:1.25rem 0 1.25rem 1.25rem}.need-wrap-text[_ngcontent-%COMP%]{max-width:18rem}#need-italics[_ngcontent-%COMP%]{font-style:italic}@media only screen and (max-width:692px){footer[_ngcontent-%COMP%]{font-size:.7em}.card-root[_ngcontent-%COMP%]{margin:1rem 0 0}}"]}),t})();function ud(t,e){1&t&&mo(0,"app-team-card",5),2&t&&ho("card-data",e.$implicit)}const hd=[{path:"",component:ad},{path:"about",component:(()=>{class t{constructor(){this.items=ld,console.log(this.items.team_member_cards)}ngOnInit(){}getCardItems(){return this.items.team_member_cards}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=le({type:t,selectors:[["app-about"]],decls:25,vars:1,consts:[[1,"about-root"],[1,"jumbotron","text-center"],[1,"quotation"],[1,"team-card-root"],[3,"card-data",4,"ngFor","ngForOf"],[3,"card-data"]],template:function(t,e){1&t&&(po(0,"div",0),po(1,"div",1),po(2,"h1"),Ro(3,"Empowering Others"),go(),po(4,"h4"),Ro(5,"Direct Aid For Homeless is a 501(c)(3) nonprofit organization, with the mission to build low barrier shelters for people experiencing homelessness. Our current outreach program provides resource cards, food, water, clothing, shoes and hygiene items to people in need. "),go(),go(),po(6,"blockquote"),po(7,"p",2),Ro(8," Be not afraid of "),po(9,"strong"),Ro(10,"greatness"),go(),Ro(11,". Some are born great, some achieve "),po(12,"strong"),Ro(13,"greatness"),go(),Ro(14,", and others have "),po(15,"strong"),Ro(16,"greatness"),go(),Ro(17," thrust upon them "),go(),po(18,"footer"),Ro(19,"\u2014 William Shakespeare, Twelfth Night"),go(),go(),mo(20,"br"),po(21,"h2"),Ro(22,"Meet the Team"),go(),po(23,"div",3),function(t,e,n,r,s,o,i,a){const l=Ge(),c=Qe(),u=c.firstCreatePass?function(t,e,n,r,s,o,i,a,l){const c=e.consts,u=Mr(e,24,0,"app-team-card",ze(c,4));Zr(e,n,u,ze(c,undefined)),gn(e,u);const h=u.tViews=qr(2,u,r,1,1,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),h.queries=e.queries.embeddedTView(u)),u}(0,c,l,e):c.data[44];Ye(u,!1);const h=l[11].createComment("");Ts(c,l,h,u),cr(h,l),ls(l,l[44]=os(h,l,h,u)),xe(u)&&$r(c,l,u)}(0,ud),go(),go()),2&t&&(Tr(24),ho("ngForOf",e.getCardItems()))},directives:[Qa,cd],styles:['.about-root[_ngcontent-%COMP%]{padding:1rem}blockquote[_ngcontent-%COMP%]{font-size:30px;background:#e9ecef;border-left:10px solid #ccc;quotes:"\\201C""\\201D""\\2018""\\2019";padding:10px 20px;line-height:1.4;border-radius:.2rem}blockquote[_ngcontent-%COMP%]:before{content:open-quote;display:inline;height:0;line-height:0;left:-10px;position:relative;top:30px;color:#ccc;font-size:3em}footer[_ngcontent-%COMP%], p[_ngcontent-%COMP%]{margin:0}footer[_ngcontent-%COMP%]{text-align:right;font-size:1em;font-style:italic}.team-card-root[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}@media only screen and (max-width:428px){footer[_ngcontent-%COMP%]{font-size:.7em}}']}),t})()},{path:"volunteer",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=le({type:t,selectors:[["app-volunteer"]],decls:2,vars:0,template:function(t,e){1&t&&(po(0,"p"),Ro(1,"volunteer works!"),go())},styles:[""]}),t})()},{path:"donate",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=le({type:t,selectors:[["app-donate"]],decls:4,vars:0,consts:[[1,"donate-root"],[1,"link"],["target","_blank","href","https://www.paypal.com/fundraiser/charity/2705859"]],template:function(t,e){1&t&&(po(0,"div",0),po(1,"div",1),po(2,"a",2),Ro(3,"Donate now you filthy animal"),go(),go(),go())},styles:[".link[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;align-items:center;padding-top:3rem;font-size:1.7rem}"]}),t})()}];let dd=(()=>{class t{}return t.\u0275mod=de({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[Kh.forRoot(hd)],Kh]}),t})(),fd=(()=>{class t{constructor(t){this.location=t,this.activeButton="",this.totalButtons=1}ngOnInit(){this.totalButtons=document.getElementById("root-count").childNodes.length-1,this.activeButton=function(t){if(0===t.length)return"Home";let e=t.replace(/\//g,"");return e.charAt(0).toUpperCase()+e.slice(1)}(this.location.path())}ngAfterViewInit(){}handleActiveButton(t){let e=t.target.innerText;e!==this.activeButton&&(this.activeButton=e)}getButtonWidth(){return 100/this.totalButtons+"%"}}return t.\u0275fac=function(e){return new(e||t)(co($a))},t.\u0275cmp=le({type:t,selectors:[["app-navbar"]],decls:11,vars:16,consts:[[1,"title-bar"],["id","directaidforhomeless","src","assets/images/direct_logo.png"],["id","root-count",1,"navbar-root"],["routerLink","/",1,"navbuttons",3,"click"],["routerLink","/volunteer",1,"navbuttons",3,"click"],["routerLink","/about",1,"navbuttons",3,"click"],["routerLink","/donate",1,"navbuttons",3,"click"]],template:function(t,e){1&t&&(po(0,"div",0),mo(1,"img",1),go(),po(2,"div",2),po(3,"button",3),vo("click",(function(t){return e.handleActiveButton(t)})),Ro(4,"Home"),go(),po(5,"button",4),vo("click",(function(t){return e.handleActiveButton(t)})),Ro(6,"Volunteer"),go(),po(7,"button",5),vo("click",(function(t){return e.handleActiveButton(t)})),Ro(8,"About"),go(),po(9,"button",6),vo("click",(function(t){return e.handleActiveButton(t)})),Ro(10,"Donate"),go(),go()),2&t&&(Tr(3),xo("width",e.getButtonWidth()),Eo("active","Home"===e.activeButton),Tr(2),xo("width",e.getButtonWidth()),Eo("active","Volunteer"===e.activeButton),Tr(2),xo("width",e.getButtonWidth()),Eo("active","About"===e.activeButton),Tr(2),xo("width",e.getButtonWidth()),Eo("active","Donate"===e.activeButton))},directives:[Fh],styles:["button[_ngcontent-%COMP%]:focus{outline:0}.title-bar[_ngcontent-%COMP%]{justify-content:center;padding:1rem;background-color:#fff}.navbar-root[_ngcontent-%COMP%], .title-bar[_ngcontent-%COMP%]{display:flex;align-items:center}.navbar-root[_ngcontent-%COMP%]{justify-content:space-evenly;border-bottom:.1rem solid #000;height:6rem;background-color:#1944f4}.navbuttons[_ngcontent-%COMP%]{height:100%;background-color:initial;border:none;font-size:1.4rem;color:#fff;cursor:pointer;padding:0}.active[_ngcontent-%COMP%]{border-bottom:.5rem solid #fff}#directaidforhomeless[_ngcontent-%COMP%]{max-width:21rem;max-height:9.5rem;width:auto;height:auto}"]}),t})(),pd=(()=>{class t{constructor(){this.title="directaidforhomeless"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=le({type:t,selectors:[["app-root"]],decls:2,vars:0,template:function(t,e){1&t&&(mo(0,"app-navbar"),mo(1,"router-outlet"))},directives:[fd,$h],styles:[""]}),t})(),gd=(()=>{class t{}return t.\u0275mod=de({type:t,bootstrap:[pd]}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[],imports:[[Al,dd]]}),t})();(function(){if(rr)throw new Error("Cannot enable prod mode after platform setup.");nr=!1})(),Tl().bootstrapModule(gd).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);