{"size": 324851, "ext": "js", "max_stars_repo_path": "docs/main-es2015.134d2172f8a11b0016a2.js", "max_stars_repo_name": "agnieszka-filip/Dance-Moves-App", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "docs/main-es2015.134d2172f8a11b0016a2.js", "max_issues_repo_name": "agnieszka-filip/Dance-Moves-App", "max_issues_repo_issues_event_min_datetime": "2020-04-10T23:22:07.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-02T07:20:37.000Z", "max_forks_repo_path": "docs/main-es2015.134d2172f8a11b0016a2.js", "max_forks_repo_name": "agnieszka-filip/Dance-Moves-App", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 5, "max_forks_count": null, "avg_line_length": 324851.0, "max_line_length": 324851, "alphanum_fraction": 0.7139919532}
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},zUnb:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.r(e);let s=!1;const i={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 o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(i.useDeprecatedSynchronousErrorHandling)throw t;o(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._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:s,_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(s))try{s.call(this)}catch(o){e=o instanceof u?d(o.errors):[o]}if(l(i)){let t=-1,n=i.length;for(;++t<n;){const n=i[t];if(c(n))try{n.unsubscribe()}catch(o){e=e||[],o instanceof u?e=e.concat(d(o.errors)):e.push(o)}}}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 p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f 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 f?(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)}}[p](){return this}static create(t,e,n){const r=new f(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 f{constructor(t,e,n,s){let i;super(),this._parentSubscriber=t;let o=this;r(e)?i=e:e&&(i=e.next,n=e.error,s=e.complete,e!==a&&(o=Object.create(e),r(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;i.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}=i;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):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);i.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(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return i.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(o(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 v(t){return t}let y=(()=>{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 f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(s.add(r?r.call(s,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),i.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){i.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 f?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?v: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=i.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 f{constructor(t){super(t),this.destination=t}}let S=(()=>{class t extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){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 y;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}class k extends f{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()}}const A=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()};function O(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const T=O(),I=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function P(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const M=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(I(t))return A(t);if(P(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[T])return e=t,t=>{const n=e[T]();for(;;){const e=n.next();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 R(t,e,n,r,s=new k(t,n,r)){if(!s.closed)return e instanceof y?e.subscribe(s):M(e)(s)}class D extends f{notifyNext(t,e,n,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function V(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 N(t,e))}}class N{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new j(t,this.project,this.thisArg))}}class j extends f{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)}}function U(t,e){return new y(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 F(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 y(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(P(t))return function(t,e){return new y(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(I(t))return U(t,e);if(function(t){return t&&"function"==typeof t[T]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new y(n=>{const r=new h;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(e.schedule(()=>{s=t[T](),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 y?t:new y(M(t))}function L(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(L((n,r)=>F(t(n,r)).pipe(V((t,s)=>e(n,t,r,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new H(t,n)))}class H{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 D{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,t,n)}_innerSub(t,e,n){const r=new k(this,e,n),s=this.destination;s.add(r);const i=R(this,t,void 0,void 0,r);i!==r&&s.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,r,s){this.destination.next(e)}notifyComplete(t){const e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function q(t=Number.POSITIVE_INFINITY){return L(v,t)}function z(t,e){return e?U(t,e):new y(A(t))}function G(){return function(t){return t.lift(new B(t))}}class B{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new W(t,n),s=e.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class W extends f{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 Z extends y{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 K(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return G()(this)}}const Q=(()=>{const t=Z.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 K 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 J(){return new S}function Y(t){return{toString:t}.toString()}function X(t,e,n){return Y(()=>{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("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;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 tt=X("Inject",t=>({token:t})),et=X("Optional"),nt=X("Self"),rt=X("SkipSelf");var st=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 ot(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}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(pt)||t.hasOwnProperty(mt))?t[pt]:null}const dt=it({\u0275prov:it}),pt=it({\u0275inj:it}),ft=it({\u0275provFallback:it}),gt=it({ngInjectableDef:it}),mt=it({ngInjectorDef:it});function vt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(vt).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 yt(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 vt(this())},t}function bt(t){return Ct(t)?t():t}function Ct(t){return"function"==typeof t&&t.hasOwnProperty(_t)&&t.__forward_ref__===wt}const St="undefined"!=typeof globalThis&&globalThis,xt="undefined"!=typeof window&&window,Et="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,kt="undefined"!=typeof global&&global,At=St||kt||xt||Et,Ot=it({\u0275cmp:it}),Tt=it({\u0275dir:it}),It=it({\u0275pipe:it}),Pt=it({\u0275mod:it}),Mt=it({\u0275loc:it}),Rt=it({\u0275fac:it}),Dt=it({__NG_ELEMENT_ID__:it});class Vt{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 Nt=new Vt("INJECTOR",-1),jt={},Ut=/\n/gm,Ft=it({provide:String,useValue:it});let Lt,Ht=void 0;function $t(t){const e=Ht;return Ht=t,e}function qt(t){const e=Lt;return Lt=t,e}function zt(t,e=st.Default){if(void 0===Ht)throw new Error("inject() must be called from an injection context");return null===Ht?Bt(t,void 0,e):Ht.get(t,e&st.Optional?null:void 0,e)}function Gt(t,e=st.Default){return(Lt||zt)(bt(t),e)}function Bt(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&st.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${vt(t)}]`)}function Wt(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=st.Default;for(let e=0;e<r.length;e++){const s=r[e];s instanceof et||"Optional"===s.ngMetadataName||s===et?n|=st.Optional:s instanceof rt||"SkipSelf"===s.ngMetadataName||s===rt?n|=st.SkipSelf:s instanceof nt||"Self"===s.ngMetadataName||s===nt?n|=st.Self:t=s instanceof tt||s===tt?s.token:s}e.push(Gt(t,n))}else e.push(Gt(r))}return e}class Zt{get(t,e=jt){if(e===jt){const e=new Error(`NullInjectorError: No provider for ${vt(t)}!`);throw e.name="NullInjectorError",e}return e}}class Qt{}class Kt{}function Jt(t,e){t.forEach(t=>Array.isArray(t)?Jt(t,e):e(t))}function Yt(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),i=t[n<<1];if(e===i)return n<<1;i>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 ie={},oe=[];let ae=0;function le(t){return Y(()=>{const e=t.type,n=e.prototype,r={},s={type:e,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:r,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===re.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||oe,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||se.Emulated,id:"c",styles:t.styles||oe,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,o=t.features,a=t.pipes;return s.id+=ae++,s.inputs=pe(t.inputs,r),s.outputs=pe(t.outputs),o&&o.forEach(t=>t(s)),s.directiveDefs=i?()=>("function"==typeof i?i():i).map(ce):null,s.pipeDefs=a?()=>("function"==typeof a?a():a).map(ue):null,s})}function ce(t){return me(t)||function(t){return t[Tt]||null}(t)}function ue(t){return function(t){return t[It]||null}(t)}const he={};function de(t){const e={type:t.type,bootstrap:t.bootstrap||oe,declarations:t.declarations||oe,imports:t.imports||oe,exports:t.exports||oe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&Y(()=>{he[t.id]=t.type}),e}function pe(t,e){if(null==t)return ie;const n={};for(const r in t)if(t.hasOwnProperty(r)){let s=t[r],i=s;Array.isArray(s)&&(i=s[1],s=s[0]),n[s]=r,e&&(e[s]=i)}return n}const fe=le;function ge(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function me(t){return t[Ot]||null}function ve(t,e){return t.hasOwnProperty(Rt)?t[Rt]:null}function ye(t,e){const n=t[Pt]||null;if(!n&&!0===e)throw new Error(`Type ${vt(t)} does not have '\u0275mod' property.`);return n}function _e(t){return Array.isArray(t)&&"object"==typeof t[1]}function we(t){return Array.isArray(t)&&!0===t[1]}function be(t){return 0!=(8&t.flags)}function Ce(t){return 2==(2&t.flags)}function Se(t){return 1==(1&t.flags)}function xe(t){return null!==t.template}function Ee(t){return 0!=(512&t[2])}let ke=void 0;function Ae(t){return!!t.listen}const Oe={createRenderer:(t,e)=>void 0!==ke?ke:"undefined"!=typeof document?document:void 0};function Te(t){for(;Array.isArray(t);)t=t[0];return t}function Ie(t,e){return Te(e[t+20])}function Pe(t,e){return Te(e[t.index])}function Me(t,e){return t.data[e+20]}function Re(t,e){return t[e+20]}function De(t,e){const n=e[t];return _e(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 Ne(t){return 4==(4&t[2])}function je(t){return 128==(128&t[2])}function Ue(t,e){return null===t||null==e?null:t[e]}function Fe(t){t[18]=0}function Le(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 He={lFrame:an(null),bindingsEnabled:!0,checkNoChangesMode:!1};function $e(){return He.bindingsEnabled}function qe(){return He.lFrame.lView}function ze(){return He.lFrame.tView}function Ge(t){He.lFrame.contextLView=t}function Be(){return He.lFrame.previousOrParentTNode}function We(t,e){He.lFrame.previousOrParentTNode=t,He.lFrame.isParent=e}function Ze(){return He.lFrame.isParent}function Qe(){return He.checkNoChangesMode}function Ke(t){He.checkNoChangesMode=t}function Je(){const t=He.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ye(){return He.lFrame.bindingIndex++}function Xe(t,e){const n=He.lFrame;n.bindingIndex=n.bindingRootIndex=t,tn(e)}function tn(t){He.lFrame.currentDirectiveIndex=t}function en(){return He.lFrame.currentQueryIndex}function nn(t){He.lFrame.currentQueryIndex=t}function rn(t,e){const n=on();He.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function sn(t,e){const n=on(),r=t[1];He.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=r,n.contextLView=t,n.bindingIndex=r.bindingStartIndex}function on(){const t=He.lFrame,e=null===t?null:t.child;return null===e?an(t):e}function an(t){const e={previousOrParentTNode: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 ln(){const t=He.lFrame;return He.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const cn=ln;function un(){const t=ln();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 hn(){return He.lFrame.selectedIndex}function dn(t){He.lFrame.selectedIndex=t}function pn(){const t=He.lFrame;return Me(t.tView,t.selectedIndex)}function fn(){He.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function gn(){He.lFrame.currentNamespace=null}function mn(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const e=t.data[n];e.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(-n,e.afterContentInit),e.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(n,e.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,e.afterContentChecked)),e.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(-n,e.afterViewInit),e.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(n,e.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,e.afterViewChecked)),null!=e.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,e.onDestroy)}}function vn(t,e,n){wn(t,e,3,n)}function yn(t,e,n,r){(3&t[2])===n&&wn(t,e,n,r)}function _n(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function wn(t,e,n,r){const s=null!=r?r:-1;let i=0;for(let o=void 0!==r?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(i=e[o],null!=r&&i>=r)break}else e[o]<0&&(t[18]+=65536),(i<s||-1==s)&&(bn(t,n,e,o),t[18]=(4294901760&t[18])+o+2),o++}function bn(t,e,n,r){const s=n[r]<0,i=n[r+1],o=t[s?-n[r]:n[r]];s?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,i.call(o)):i.call(o)}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=Ae(t);let s=0;for(;s<n.length;){const i=n[s];if("number"==typeof i){if(0!==i)break;s++;const o=n[s++],a=n[s++],l=n[s++];r?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=i,a=n[++s];En(o)?r&&t.setProperty(e,o,a):r?t.setAttribute(e,o,a):e.setAttribute(o,a),s++}}return s}function xn(t){return 3===t||4===t||6===t}function En(t){return 64===t.charCodeAt(0)}function kn(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||An(t,n,s,null,-1===n||2===n?e[++r]:null)}}return t}function An(t,e,n,r,s){let i=0,o=t.length;if(-1===e)o=-1;else for(;i<t.length;){const n=t[i++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=i-1;break}}}for(;i<t.length;){const e=t[i];if("number"==typeof e)break;if(e===n){if(null===r)return void(null!==s&&(t[i+1]=s));if(r===t[i+1])return void(t[i+2]=s)}i++,null!==r&&i++,null!==s&&i++}-1!==o&&(t.splice(o,0,e),i=o+1),t.splice(i++,0,n),null!==r&&t.splice(i++,0,r),null!==s&&t.splice(i++,0,s)}function On(t){return-1!==t}function Tn(t){return 32767&t}function In(t){return t>>16}function Pn(t,e){let n=In(t),r=e;for(;n>0;)r=r[15],n--;return r}function Mn(t){return"string"==typeof t?t:null==t?"":""+t}function Rn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Mn(t)}const Dn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(At))();function Vn(t){return{name:"document",target:t.ownerDocument}}function Nn(t){return t instanceof Function?t():t}let jn=!0;function Un(t){const e=jn;return jn=t,e}let Fn=0;function Ln(t,e){const n=$n(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,Hn(r.data,t),Hn(e,null),Hn(r.blueprint,null));const s=qn(t,e),i=t.injectorIndex;if(On(s)){const t=Tn(s),n=Pn(s,e),r=n[1].data;for(let s=0;s<8;s++)e[i+s]=n[t+s]|r[t+s]}return e[i+8]=s,i}function Hn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function $n(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function qn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],r=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function zn(t,e,n){!function(t,e,n){let r="string"!=typeof n?n[Dt]:n.charCodeAt(0)||0;null==r&&(r=n[Dt]=Fn++);const s=255&r,i=1<<s,o=64&s,a=32&s,l=e.data;128&s?o?a?l[t+7]|=i:l[t+6]|=i:a?l[t+5]|=i:l[t+4]|=i:o?a?l[t+3]|=i:l[t+2]|=i:a?l[t+1]|=i:l[t]|=i}(t,e,n)}function Gn(t,e,n,r=st.Default,s){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t[Dt];return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof s){rn(e,t);try{const t=s();if(null!=t||r&st.Optional)return t;throw new Error(`No provider for ${Rn(n)}!`)}finally{cn()}}else if("number"==typeof s){if(-1===s)return new Yn(t,e);let i=null,o=$n(t,e),a=-1,l=r&st.Host?e[16][6]:null;for((-1===o||r&st.SkipSelf)&&(a=-1===o?qn(t,e):e[o+8],Jn(r,!1)?(i=e[1],o=Tn(a),e=Pn(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(Kn(s,o,t.data)){const t=Wn(o,e,n,i,r,l);if(t!==Bn)return t}Jn(r,e[1].data[o+8]===l)&&Kn(s,o,e)?(i=t,o=Tn(a),e=Pn(a,e)):o=-1}}}if(r&st.Optional&&void 0===s&&(s=null),0==(r&(st.Self|st.Host))){const t=e[9],i=qt(void 0);try{return t?t.get(n,s,r&st.Optional):Bt(n,s,r&st.Optional)}finally{qt(i)}}if(r&st.Optional)return s;throw new Error(`NodeInjector: NOT_FOUND [${Rn(n)}]`)}const Bn={};function Wn(t,e,n,r,s,i){const o=e[1],a=o.data[t+8],l=Zn(a,o,n,null==r?Ce(a)&&jn:r!=o&&3===a.type,s&st.Host&&i===a);return null!==l?Qn(e,o,l,a):Bn}function Zn(t,e,n,r,s){const i=t.providerIndexes,o=e.data,a=65535&i,l=t.directiveStart,c=i>>16,u=s?a+c:t.directiveEnd;for(let h=r?a:a+c;h<u;h++){const t=o[h];if(h<l&&n===t||h>=l&&t.type===n)return h}if(s){const t=o[l];if(t&&xe(t)&&t.type===n)return l}return null}function Qn(t,e,n,r){let s=t[n];const i=e.data;if(s instanceof Cn){const o=s;if(o.resolving)throw new Error("Circular dep for "+Rn(i[n]));const a=Un(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=qt(o.injectImpl)),rn(t,r);try{s=t[n]=o.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{onChanges:r,onInit:s,doCheck:i}=e;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)),s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,s),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{o.injectImpl&&qt(l),Un(a),o.resolving=!1,cn()}}return s}function Kn(t,e,n){const r=64&t,s=32&t;let i;return i=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],!!(i&1<<t)}function Jn(t,e){return!(t&st.Self||t&st.Host&&e)}class Yn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return Gn(this._tNode,this._lView,t,void 0,e)}}function Xn(t){const e=t;if(Ct(t))return()=>{const t=Xn(bt(e));return t?t():null};let n=ve(e);if(null===n){const t=ht(e);n=t&&t.factory}return n||null}function tr(t){return Y(()=>{const e=t.prototype.constructor,n=e[Rt]||Xn(e),r=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==r;){const t=s[Rt]||Xn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function er(t){return t.ngDebugContext}function nr(t){return t.ngOriginalError}function rr(t,...e){t.error(...e)}class sr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||rr}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?er(t)?er(t):this._findContext(nr(t)):null}_findOriginalError(t){let e=nr(t);for(;e&&nr(e);)e=nr(e);return e}}class ir{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}function or(t){return t instanceof ir?t.changingThisBreaksApplicationSecurity:t}let ar=!0,lr=!1;function cr(){return lr=!0,ar}const ur=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,hr=/^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 dr=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 pr(t){const e=function(){const t=qe();return t&&t[12]}();return e?e.sanitize(dr.URL,t)||"":function(t,e){const n=function(t){return t instanceof ir&&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")?or(t):(n=Mn(t),(n=String(n)).match(ur)||n.match(hr)?n:(cr()&&console.warn(`WARNING: sanitizing unsafe URL value ${n} (see http://g.co/ng/security#xss)`),"unsafe:"+n));var n}function fr(t,e){t.__ngContext__=e}function gr(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function mr(){throw new Error("Cannot mix multi providers and regular providers")}function vr(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}}function yr(t,e,n){let r=0;for(;r<t.length;){let s=t[r++];if(n&&"class"===s){if(s=t[r],-1!==vr(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 _r(t){return 0===t.type&&"ng-template"!==t.tagName}function wr(t,e,n){return e===(0!==t.type||n?t.tagName:"ng-template")}function br(t,e,n){let r=4;const s=t.attrs||[],i=function(t){for(let e=0;e<t.length;e++)if(xn(t[e]))return e;return t.length}(s);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&r){if(r=2|1&r,""!==l&&!wr(t,l,n)||""===l&&1===e.length){if(Cr(r))return!1;o=!0}}else{const c=8&r?l:e[++a];if(8&r&&null!==t.attrs){if(!yr(t.attrs,c,n)){if(Cr(r))return!1;o=!0}continue}const u=Sr(8&r?"class":l,s,_r(t),n);if(-1===u){if(Cr(r))return!1;o=!0;continue}if(""!==c){let t;t=u>i?"":s[u+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==vr(e,c,0)||2&r&&c!==t){if(Cr(r))return!1;o=!0}}}}else{if(!o&&!Cr(r)&&!Cr(l))return!1;if(o&&Cr(l))continue;o=!1,r=l|1&r}}return Cr(r)||o}function Cr(t){return 0==(1&t)}function Sr(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 xr(t,e,n=!1){for(let r=0;r<e.length;r++)if(br(t,e[r],n))return!0;return!1}function Er(t,e){return t?":not("+e.trim()+")":e}function kr(t){let e=t[0],n=1,r=2,s="",i=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&r){const e=t[++n];s+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&r?s+="."+o:4&r&&(s+=" "+o);else""===s||Cr(o)||(e+=Er(i,s),s=""),r=o,i=i||!Cr(r);n++}return""!==s&&(e+=Er(i,s)),e}const Ar={};function Or(t){const e=t[3];return we(e)?e[3]:e}function Tr(t){return Pr(t[13])}function Ir(t){return Pr(t[4])}function Pr(t){for(;null!==t&&!we(t);)t=t[4];return t}function Mr(t){Rr(ze(),qe(),hn()+t,Qe())}function Rr(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&vn(e,r,n)}else{const r=t.preOrderHooks;null!==r&&yn(e,r,0,n)}dn(n)}function Dr(t,e){return t<<17|e<<2}function Vr(t){return t>>17&32767}function Nr(t){return 2|t}function jr(t){return(131068&t)>>2}function Ur(t,e){return-131069&t|e<<2}function Fr(t){return 1|t}function Lr(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const s=n[r],i=n[r+1];if(-1!==i){const n=t.data[i];nn(s),n.contentQueries(2,e[i],i)}}}function Hr(t,e,n){return Ae(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function $r(t,e,n,r,s,i,o,a,l,c){const u=e.blueprint.slice();return u[0]=s,u[2]=140|r,Fe(u),u[3]=u[15]=t,u[8]=n,u[10]=o||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]=i,u[16]=2==e.type?t[16]:u,u}function qr(t,e,n,r,s,i){const o=n+20,a=t.data[o]||function(t,e,n,r,s,i){const o=Be(),a=Ze(),l=a?o:o&&o.parent,c=t.data[n]=Yr(0,l&&l!==e?l:null,r,n,s,i);return null===t.firstChild&&(t.firstChild=c),o&&(!a||null!=o.child||null===c.parent&&2!==o.type?a||(o.next=c):o.child=c),c}(t,e,o,r,s,i);return We(a,!0),a}function zr(t,e,n){sn(e,e[6]);try{const r=t.viewQuery;null!==r&&ws(1,r,n);const s=t.template;null!==s&&Wr(t,e,s,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Lr(t,e),t.staticViewQueries&&ws(2,t.viewQuery,n);const i=t.components;null!==i&&function(t,e){for(let n=0;n<e.length;n++)gs(t,e[n])}(e,i)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),r}finally{e[2]&=-5,un()}}function Gr(t,e,n,r){const s=e[2];if(256==(256&s))return;sn(e,e[6]);const i=Qe();try{Fe(e),He.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Wr(t,e,n,2,r);const o=3==(3&s);if(!i)if(o){const n=t.preOrderCheckHooks;null!==n&&vn(e,n,null)}else{const n=t.preOrderHooks;null!==n&&yn(e,n,0,null),_n(e,0)}if(function(t){for(let e=Tr(t);null!==e;e=Ir(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])&&Le(r,1),n[2]|=1024}}}(e),function(t){for(let e=Tr(t);null!==e;e=Ir(e))for(let t=10;t<e.length;t++){const n=e[t],r=n[1];je(n)&&Gr(r,n,r.template,n[8])}}(e),null!==t.contentQueries&&Lr(t,e),!i)if(o){const n=t.contentCheckHooks;null!==n&&vn(e,n)}else{const n=t.contentHooks;null!==n&&yn(e,n,1),_n(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let r=t.expandoStartIndex,s=-1,i=-1;for(let t=0;t<n.length;t++){const o=n[t];"number"==typeof o?o<=0?(i=0-o,dn(i),r+=9+n[++t],s=r):r+=o:(null!==o&&(Xe(r,s),o(2,e[s])),s++)}}}finally{dn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)fs(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&ws(2,l,r),!i)if(o){const n=t.viewCheckHooks;null!==n&&vn(e,n)}else{const n=t.viewHooks;null!==n&&yn(e,n,2),_n(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),i||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Le(e[3],-1))}finally{un()}}function Br(t,e,n,r){const s=e[10],i=!Qe(),o=Ne(e);try{i&&!o&&s.begin&&s.begin(),o&&zr(t,e,r),Gr(t,e,n,r)}finally{i&&!o&&s.end&&s.end()}}function Wr(t,e,n,r,s){const i=hn();try{dn(-1),2&r&&e.length>20&&Rr(t,e,0,Qe()),n(r,s)}finally{dn(i)}}function Zr(t,e,n){$e()&&(function(t,e,n,r){const s=n.directiveStart,i=n.directiveEnd;t.firstCreatePass||Ln(n,e),fr(r,e);const o=n.initialInputs;for(let a=s;a<i;a++){const r=t.data[a],i=xe(r);i&&us(e,n,r);const l=Qn(e,t,a,n);fr(l,e),null!==o&&hs(0,a-s,l,r,0,o),i&&(De(n.index,e)[8]=l)}}(t,e,n,Pe(n,e)),128==(128&n.flags)&&function(t,e,n){const r=n.directiveStart,s=n.directiveEnd,i=t.expandoInstructions,o=t.firstCreatePass,a=n.index-20,l=He.lFrame.currentDirectiveIndex;try{dn(a);for(let n=r;n<s;n++){const r=t.data[n],s=e[n];tn(n),null!==r.hostBindings||0!==r.hostVars||null!==r.hostAttrs?ss(r,s):o&&i.push(null)}}finally{dn(-1),tn(l)}}(t,e,n))}function Qr(t,e,n=Pe){const r=e.localNames;if(null!==r){let s=e.index+1;for(let i=0;i<r.length;i+=2){const o=r[i+1],a=-1===o?n(e,t):t[o];t[s++]=a}}}function Kr(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Jr(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Jr(t,e,n,r,s,i,o,a,l,c){const u=20+r,h=u+s,d=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:Ar);return n}(u,h);return d[1]={type:t,id:e,blueprint:d,template:n,queries:null,viewQuery:a,node:null,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 i?i():i,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:c,incompleteFirstPass:!1}}function Yr(t,e,n,r,s,i){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:i,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}}function Xr(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 ts(t,e,n,r,s,i,o,a){const l=Pe(e,n);let c,u=e.inputs;var h;!a&&null!=u&&(c=u[r])?(Es(t,n,c,r,s),Ce(e)&&function(t,e){const n=De(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===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!=o?o(s,e.tagName||"",r):s,Ae(i)?i.setProperty(l,r,s):En(r)||(l.setProperty?l.setProperty(r,s):l[r]=s))}function es(t,e,n,r){let s=!1;if($e()){const i=function(t,e,n){const r=t.directiveRegistry;let s=null;if(r)for(let i=0;i<r.length;i++){const o=r[i];xr(n,o.selectors,!1)&&(s||(s=[]),zn(Ln(n,e),t,o.type),xe(o)?(2&n.flags&&gr(n),os(t,n),s.unshift(o)):s.push(o))}return s}(t,e,n),o=null===r?null:{"":-1};if(null!==i){let r=0;s=!0,ls(n,t.data.length,i.length);for(let t=0;t<i.length;t++){const e=i[t];e.providersResolver&&e.providersResolver(e)}is(t,n,i.length);let a=!1,l=!1;for(let s=0;s<i.length;s++){const c=i[s];n.mergedAttrs=kn(n.mergedAttrs,c.hostAttrs),cs(t,e,c),as(t.data.length-1,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128),!a&&(c.onChanges||c.onInit||c.doCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-20),a=!0),l||!c.onChanges&&!c.doCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-20),l=!0),ns(t,c),r+=c.hostVars}!function(t,e){const n=e.directiveEnd,r=t.data,s=e.attrs,i=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=r[l],n=t.inputs,c=null===s||_r(e)?null:ds(n,s);i.push(c),o=Xr(n,l,o),a=Xr(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=i,e.inputs=o,e.outputs=a}(t,n),rs(t,e,r)}o&&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,o)}return n.mergedAttrs=kn(n.mergedAttrs,n.attrs),s}function ns(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function rs(t,e,n){for(let r=0;r<n;r++)e.push(Ar),t.blueprint.push(Ar),t.data.push(null)}function ss(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function is(t,e,n){const r=20-e.index,s=t.data.length-(65535&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(r,s,n)}function os(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function as(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;xe(e)&&(n[""]=t)}}function ls(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function cs(t,e,n){t.data.push(n);const r=n.factory||(n.factory=ve(n.type)),s=new Cn(r,xe(n),null);t.blueprint.push(s),e.push(s)}function us(t,e,n){const r=Pe(e,t),s=Kr(n),i=t[10],o=ms(t,$r(t,s,null,n.onPush?64:16,r,e,i,i.createRenderer(r,n)));t[e.index]=o}function hs(t,e,n,r,s,i){const o=i[e];if(null!==o){const t=r.setInput;for(let e=0;e<o.length;){const s=o[e++],i=o[e++],a=o[e++];null!==t?r.setInput(n,a,s,i):n[i]=a}}}function ds(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 ps(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}function fs(t,e){const n=De(e,t);if(je(n)){const t=n[1];80&n[2]?Gr(t,n,t.template,n[8]):n[5]>0&&function t(e){for(let r=Tr(e);null!==r;r=Ir(r))for(let e=10;e<r.length;e++){const n=r[e];if(1024&n[2]){const t=n[1];Gr(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=De(n[r],e);je(s)&&s[5]>0&&t(s)}}(n)}}function gs(t,e){const n=De(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),zr(r,n,n[8])}function ms(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function vs(t){for(;t;){t[2]|=64;const e=Or(t);if(Ee(t)&&!e)return t;t=e}return null}function ys(t,e,n){const r=e[10];r.begin&&r.begin();try{Gr(t,e,t.template,n)}catch(s){throw xs(e,s),s}finally{r.end&&r.end()}}function _s(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=Ve(n),s=r[1];Br(s,r,s.template,n)}}(t[8])}function ws(t,e,n){nn(0),e(t,n)}const bs=(()=>Promise.resolve(null))();function Cs(t){return t[7]||(t[7]=[])}function Ss(t){return t.cleanup||(t.cleanup=[])}function xs(t,e){const n=t[9],r=n?n.get(sr,null):null;r&&r.handleError(e)}function Es(t,e,n,r,s){for(let i=0;i<n.length;){const o=n[i++],a=n[i++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,s,r,a):l[a]=s}}function ks(t,e){const n=e[3];return-1===t.index?we(n)?n:null:n}function As(t,e){const n=ks(t,e);return n?Us(e[11],n[7]):null}function Os(t,e,n,r,s){if(null!=r){let i,o=!1;we(r)?i=r:_e(r)&&(o=!0,r=r[0]);const a=Te(r);0===t&&null!==n?null==s?Ns(e,n,a):Vs(e,n,a,s||null):1===t&&null!==n?Vs(e,n,a,s||null):2===t?function(t,e,n){const r=Us(t,e);r&&function(t,e,n,r){Ae(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=i&&function(t,e,n,r,s){const i=n[7];i!==Te(n)&&Os(e,t,r,i,s);for(let o=10;o<n.length;o++){const s=n[o];$s(s[1],s,t,e,r,i)}}(e,t,i,n,s)}}function Ts(t,e,n,r){const s=As(t.node,e);s&&$s(t,e,e[11],n?1:2,s,r)}function Is(t,e){const n=t[9],r=n.indexOf(e);1024&e[2]&&Le(e[3],-1),n.splice(r,1)}function Ps(t,e){if(t.length<=10)return;const n=10+e,r=t[n];if(r){const s=r[17];null!==s&&s!==t&&Is(s,r),e>0&&(t[n-1][4]=r[4]);const i=Xt(t,10+e);Ts(r[1],r,!1,null);const o=i[19];null!==o&&o.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Ms(t,e){if(!(256&e[2])){const n=e[11];Ae(n)&&n.destroyNode&&$s(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Ds(t[1],t);for(;e;){let n=null;if(_e(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)_e(e)&&Ds(e[1],e),e=Rs(e,t);null===e&&(e=t),_e(e)&&Ds(e[1],e),n=e&&e[4]}e=n}}(e)}}function Rs(t,e){let n;return _e(t)&&(n=t[6])&&2===n.type?ks(n,t):t[3]===e?null:t[3]}function Ds(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],i="function"==typeof s?s(e):Te(e[s]),o=t[n[r+2]],a=n[r+3];"boolean"==typeof a?i.removeEventListener(n[r],o,a):a>=0?t[a]():t[-a].unsubscribe(),r+=2}else n[r].call(t[n[r+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&Ae(e[11])&&e[11].destroy();const r=e[17];if(null!==r&&we(e[3])){r!==e[3]&&Is(r,e);const n=e[19];null!==n&&n.detachView(t)}}}function Vs(t,e,n,r){Ae(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function Ns(t,e,n){Ae(t)?t.appendChild(e,n):e.appendChild(n)}function js(t,e,n,r){null!==r?Vs(t,e,n,r):Ns(t,e,n)}function Us(t,e){return Ae(t)?t.parentNode(e):e.parentNode}function Fs(t,e,n,r){const s=function(t,e,n){let r=e.parent;for(;null!=r&&(4===r.type||5===r.type);)r=(e=r).parent;if(null==r){const t=n[6];return 2===t.type?As(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return Pe(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 Pe(r,n)}(t,r,e);if(null!=s){const t=e[11],i=function(t,e){if(2===t.type){const n=ks(t,e);return null===n?null:Ls(n.indexOf(e,10)-10,n)}return 4===t.type||5===t.type?Pe(t,e):null}(r.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)js(t,s,n[e],i);else js(t,s,n,i)}}function Ls(t,e){const n=10+t+1;if(n<e.length){const t=e[n],r=t[1].firstChild;if(null!==r)return function t(e,n){if(null!==n){const r=n.type;if(3===r)return Pe(n,e);if(0===r)return Ls(-1,e[n.index]);if(4===r||5===r){const r=n.child;if(null!==r)return t(e,r);{const t=e[n.index];return we(t)?Ls(-1,t):Te(t)}}{const r=e[16],s=r[6],i=Or(r),o=s.projection[n.projection];return null!=o?t(i,o):t(e,n.next)}}return null}(t,r)}return e[7]}function Hs(t,e,n,r,s,i,o){for(;null!=n;){const a=r[n.index],l=n.type;o&&0===e&&(a&&fr(Te(a),r),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(Hs(t,e,n.child,r,s,i,!1),Os(e,t,s,a,i)):1===l?qs(t,e,r,n,s,i):Os(e,t,s,a,i)),n=o?n.projectionNext:n.next}}function $s(t,e,n,r,s,i){Hs(n,r,t.node.child,e,s,i,!1)}function qs(t,e,n,r,s,i){const o=n[16],a=o[6].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)Os(e,t,s,a[l],i);else Hs(t,e,a,o[3],s,i,!0)}function zs(t,e,n){Ae(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Gs(t,e,n){Ae(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class Bs{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,r,s,i=!1){for(;null!==r;){const o=n[r.index];if(null!==o&&s.push(Te(o)),we(o))for(let e=10;e<o.length;e++){const n=o[e],r=n[1].firstChild;null!==r&&t(n[1],n,r,s)}const a=r.type;if(4===a||5===a)t(e,n,r.child,s);else if(1===a){const e=n[16],i=e[6].projection[r.projection];if(Array.isArray(i))s.push(...i);else{const n=Or(e);t(n[1],n,i,s,!0)}}r=i?r.projectionNext:r.next}return s}(t[1],t,t[6].child,[]):[]}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}Ms(this._lView[1],this._lView)}onDestroy(t){var e,n,r;e=this._lView[1],r=t,Cs(n=this._lView).push(r),e.firstCreatePass&&Ss(e).push(n[7].length-1,null)}markForCheck(){vs(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ys(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Ke(!0);try{ys(t,e,n)}finally{Ke(!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,$s(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 Ws extends Bs{constructor(t){super(t),this._view=t}detectChanges(){_s(this._view)}checkNoChanges(){!function(t){Ke(!0);try{_s(t)}finally{Ke(!1)}}(this._view)}get context(){return null}}let Zs,Qs,Ks;function Js(t,e,n){return Zs||(Zs=class extends t{}),new Zs(Pe(e,n))}function Ys(t,e,n,r){return Qs||(Qs=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=$r(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),zr(e,n,t),new Bs(n)}}),0===n.type?new Qs(r,n,Js(e,n,r)):null}function Xs(t,e,n,r){let s;Ks||(Ks=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return Js(e,this._hostTNode,this._hostView)}get injector(){return new Yn(this._hostTNode,this._hostView)}get parentInjector(){const t=qn(this._hostTNode,this._hostView),e=Pn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let r=In(t),s=e,i=e[6];for(;r>1;)s=s[15],i=s[6],r--;return i}(t,this._hostView,this._hostTNode);return On(t)&&null!=n?new Yn(n,e):new Yn(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-10}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,s){const i=n||this.parentInjector;if(!s&&null==t.ngModule&&i){const t=i.get(Qt,null);t&&(s=t)}const o=t.create(i,r,void 0,s);return this.insert(o.hostView,e),o}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(),we(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new Ks(e,e[6],e[3]);r.detach(r.indexOf(t))}}const s=this._adjustIndex(e);return function(t,e,n,r){const s=10+r,i=n.length;r>0&&(n[s-1][4]=e),r<i-10?(e[4]=n[s],Yt(n,10+r,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(r,n,this._lContainer,s),Ts(r,n,!0,Ls(s,this._lContainer)),t.attachToViewContainerRef(this),Yt(this._lContainer[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);!function(t,e){const n=Ps(t,e);n&&Ms(n[1],n)}(this._lContainer,e),Xt(this._lContainer[8],e)}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=Ps(this._lContainer,e);return n&&null!=Xt(this._lContainer[8],e)?new Bs(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const i=r[n.index];if(we(i))s=i;else{let t;if(4===n.type)t=Te(i);else if(t=r[11].createComment(""),Ee(r)){const e=r[11],s=Pe(n,r);Vs(e,Us(e,s),t,function(t,e){return Ae(t)?t.nextSibling(e):e.nextSibling}(e,s))}else Fs(r[1],r,t,n);r[n.index]=s=ps(i,r,t,n),ms(r,s)}return new Ks(s,n,r)}let ti=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ei(),t})();const ei=function(t=!1){return function(t,e,n){if(!n&&Ce(t)){const n=De(t.index,e);return new Bs(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Bs(e[16],e):null}(Be(),qe(),t)},ni=Function,ri=new Vt("Set Injector scope."),si={},ii={},oi=[];let ai=void 0;function li(){return void 0===ai&&(ai=new Zt),ai}function ci(t,e=null,n=null,r){return new ui(t,n,e||li(),r)}class ui{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&&Jt(e,n=>this.processProvider(n,t,e)),Jt([t],t=>this.processInjectorType(t,[],s)),this.records.set(Nt,pi(void 0,this));const i=this.records.get(ri);this.scope=null!=i?i.value:null,this.source=r||("object"==typeof t?null:vt(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=jt,n=st.Default){this.assertNotDestroyed();const r=$t(this);try{if(!(n&st.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Vt)&&ct(t);e=n&&this.injectableDefInScope(n)?pi(hi(t),si):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&st.Self?li():this.parent).get(t,e=n&st.Optional&&e===jt?null:e)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(vt(t)),r)throw i;return function(t,e,n,r){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=vt(e);if(Array.isArray(e))s=e.map(vt).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):vt(r)))}s=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${t.replace(Ut,"\n  ")}`}("\n"+t.message,s,n,r),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(i,t,"R3InjectorError",this.source)}throw i}finally{$t(r)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(vt(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,i=void 0===s?t:s,o=-1!==n.indexOf(i);if(void 0!==s&&(r=ht(s)),null==r)return!1;if(null!=r.imports&&!o){let t;n.push(i);try{Jt(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];Jt(r,t=>this.processProvider(t,n,r||oi))}}this.injectorDefTypes.add(i),this.records.set(i,pi(r.factory,si));const a=r.providers;if(null!=a&&!o){const e=t;Jt(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let r=gi(t=bt(t))?t:bt(t&&t.provide);const s=function(t,e,n){return fi(t)?pi(void 0,t.useValue):pi(di(t,e,n),si)}(t,e,n);if(gi(t)||!0!==t.multi){const t=this.records.get(r);t&&void 0!==t.multi&&mr()}else{let e=this.records.get(r);e?void 0===e.multi&&mr():(e=pi(void 0,si,!0),e.factory=()=>Wt(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===ii?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(vt(t)):e.value===si&&(e.value=ii,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 hi(t){const e=ct(t),n=null!==e?e.factory:ve(t);if(null!==n)return n;const r=ht(t);if(null!==r)return r.factory;if(t instanceof Vt)throw new Error(`Token ${vt(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 ${vt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[dt]||t[gt]||t[ft]&&t[ft]());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 di(t,e,n){let r=void 0;if(gi(t)){const e=bt(t);return ve(e)||hi(e)}if(fi(t))r=()=>bt(t.useValue);else if((s=t)&&s.useFactory)r=()=>t.useFactory(...Wt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>Gt(bt(t.useExisting));else{const s=bt(t&&(t.useClass||t.provide));if(s||function(t,e,n){let r="";throw t&&e&&(r=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${vt(t)}'`+r)}(e,n,t),!function(t){return!!t.deps}(t))return ve(s)||hi(s);r=()=>new s(...Wt(t.deps))}var s;return r}function pi(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function fi(t){return null!==t&&"object"==typeof t&&Ft in t}function gi(t){return"function"==typeof t}const mi=function(t,e,n){return function(t,e=null,n=null,r){const s=ci(t,e,n,r);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let vi=(()=>{class t{static create(t,e){return Array.isArray(t)?mi(t,e,""):mi(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=jt,t.NULL=new Zt,t.\u0275prov=at({token:t,providedIn:"any",factory:()=>Gt(Nt)}),t.__NG_ELEMENT_ID__=-1,t})();const yi=new Vt("AnalyzeForEntryComponents");function _i(t,e,n){let r=n?t.styles:null,s=n?t.classes:null,i=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?i=t:1==i?s=yt(s,t):2==i&&(r=yt(r,t+": "+e[++o]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=s:t.classesWithoutHost=s}let wi=null;function bi(){if(!wi){const t=At.Symbol;if(t&&t.iterator)wi=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&&(wi=n)}}}return wi}class Ci{constructor(t){this.wrapped=t}static wrap(t){return new Ci(t)}static unwrap(t){return Ci.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Ci}}function Si(t){return!!xi(t)&&(Array.isArray(t)||!(t instanceof Map)&&bi()in t)}function xi(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Ei(t,e,n){return t[e]=n}function ki(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Ai(t,e,n,r){const s=qe();return ki(s,Ye(),e)&&(ze(),function(t,e,n,r,s,i){const o=Pe(t,e),a=e[11];if(null==r)Ae(a)?a.removeAttribute(o,n,i):o.removeAttribute(n);else{const e=null==s?Mn(r):s(r,t.tagName||"",n);Ae(a)?a.setAttribute(o,n,e,i):i?o.setAttributeNS(i,n,e):o.setAttribute(n,e)}}(pn(),s,t,e,n,r)),Ai}function Oi(t,e,n,r){return ki(t,Ye(),n)?e+Mn(n)+r:Ar}function Ti(t,e,n,r,s,i,o,a){const l=qe(),c=ze(),u=t+20,h=c.firstCreatePass?function(t,e,n,r,s,i,o,a,l){const c=e.consts,u=qr(e,n[6],t,0,o||null,Ue(c,a));es(e,n,u,Ue(c,l)),mn(e,u);const h=u.tViews=Jr(2,-1,r,s,i,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c),d=Yr(0,null,2,-1,null,null);return d.injectorIndex=u.injectorIndex,h.node=d,null!==e.queries&&(e.queries.template(e,u),h.queries=e.queries.embeddedTView(u)),u}(t,c,l,e,n,r,s,i,o):c.data[u];We(h,!1);const d=l[11].createComment("");Fs(c,l,d,h),fr(d,l),ms(l,l[u]=ps(d,l,d,h)),Se(h)&&Zr(c,l,h),null!=o&&Qr(l,h,a)}function Ii(t){return Re(He.lFrame.contextLView,t)}function Pi(t,e=st.Default){const n=qe();return null==n?Gt(t,e):Gn(Be(),n,bt(t),e)}function Mi(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}(Be(),t)}function Ri(t,e,n){const r=qe();return ki(r,Ye(),e)&&ts(ze(),pn(),r,t,e,r[11],n,!1),Ri}function Di(t,e,n,r,s){const i=s?"class":"style";Es(t,n,e.inputs[i],i,r)}function Vi(t,e,n,r){const s=qe(),i=ze(),o=20+t,a=s[11],l=s[o]=Hr(e,a,He.lFrame.currentNamespace),c=i.firstCreatePass?function(t,e,n,r,s,i,o){const a=e.consts,l=Ue(a,i),c=qr(e,n[6],t,3,s,l);return es(e,n,c,Ue(a,o)),null!==c.attrs&&_i(c,c.attrs,!1),null!==c.mergedAttrs&&_i(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(t,i,s,0,e,n,r):i.data[o];We(c,!0);const u=c.mergedAttrs;null!==u&&Sn(a,l,u);const h=c.classes;null!==h&&Gs(a,l,h);const d=c.styles;null!==d&&zs(a,l,d),Fs(i,s,l,c),0===He.lFrame.elementDepthCount&&fr(l,s),He.lFrame.elementDepthCount++,Se(c)&&(Zr(i,s,c),function(t,e,n){if(be(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)}}}(i,c,s)),null!==r&&Qr(s,c)}function Ni(){let t=Be();Ze()?He.lFrame.isParent=!1:(t=t.parent,We(t,!1));const e=t;He.lFrame.elementDepthCount--;const n=ze();n.firstCreatePass&&(mn(n,t),be(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Di(n,e,qe(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Di(n,e,qe(),e.stylesWithoutHost,!1)}function ji(t,e,n,r){Vi(t,e,n,r),Ni()}function Ui(){return qe()}function Fi(t){return!!t&&"function"==typeof t.then}function Li(t){return!!t&&"function"==typeof t.subscribe}function Hi(t,e,n=!1,r){const s=qe(),i=ze(),o=Be();return function(t,e,n,r,s,i,o=!1,a){const l=Se(r),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),u=Cs(e);let h=!0;if(3===r.type){const d=Pe(r,e),p=a?a(d):ie,f=p.target||d,g=u.length,m=a?t=>a(Te(t[r.index])).target:r.index;if(Ae(n)){let o=null;if(!a&&l&&(o=function(t,e,n,r){const s=t.cleanup;if(null!=s)for(let i=0;i<s.length-1;i+=2){const t=s[i];if(t===n&&s[i+1]===r){const t=e[7],n=s[i+2];return t.length>n?t[n]:null}"string"==typeof t&&(i+=2)}return null}(t,e,s,r.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=qi(r,e,i,!1);const t=n.listen(p.name||f,s,i);u.push(i,t),c&&c.push(s,m,g,g+1)}}else i=qi(r,e,i,!0),f.addEventListener(s,i,o),u.push(i),c&&c.push(s,m,g,o)}const d=r.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(i),o=u.length;u.push(i,t),c&&c.push(s,r.index,o,-(o+1))}}}(i,s,s[11],o,t,e,n,r),Hi}function $i(t,e,n){try{return!1!==e(n)}catch(r){return xs(t,r),!1}}function qi(t,e,n,r){return function s(i){if(i===Function)return n;const o=2&t.flags?De(t.index,e):e;0==(32&e[2])&&vs(o);let a=$i(e,n,i),l=s.__ngNextListenerFn__;for(;l;)a=$i(e,l,i)&&a,l=l.__ngNextListenerFn__;return r&&!1===a&&(i.preventDefault(),i.returnValue=!1),a}}function zi(t=1){return function(t){return(He.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,He.lFrame.contextLView))[8]}(t)}function Gi(t,e,n){return Bi(t,"",e,"",n),Gi}function Bi(t,e,n,r,s){const i=qe(),o=Oi(i,e,n,r);return o!==Ar&&ts(ze(),pn(),i,t,o,i[11],s,!1),Bi}const Wi=[];function Zi(t,e,n,r,s){const i=t[n+1],o=null===e;let a=r?Vr(i):jr(i),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];Qi(t[a],e)&&(l=!0,t[a+1]=r?Fr(n):Nr(n)),a=r?Vr(n):jr(n)}l&&(t[n+1]=r?Nr(i):Fr(i))}function Qi(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 Ki(t,e){return function(t,e,n,r){const s=qe(),i=ze(),o=function(t){const e=He.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+2,n}();i.firstUpdatePass&&function(t,e,n,r){const s=t.data;if(null===s[n+1]){const r=s[hn()+20],i=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(16&t.flags)})(r)&&null===e&&!i&&(e=!1),e=function(t,e,n,r){const s=function(t){const e=He.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let i=e.residualClasses;if(null===s)0===e.classBindings&&(n=Yi(n=Ji(null,t,e,n,!0),e.attrs,!0),i=null);else{const r=e.directiveStylingLast;if(-1===r||t[r]!==s)if(n=Ji(s,t,e,n,!0),null===i){let n=function(t,e,n){const r=e.classBindings;if(0!==jr(r))return t[Vr(r)]}(t,e);void 0!==n&&Array.isArray(n)&&(n=Ji(null,t,e,n[1],!0),n=Yi(n,e.attrs,!0),function(t,e,n,r){t[Vr(e.classBindings)]=r}(t,e,0,n))}else i=function(t,e,n){let r=void 0;const s=e.directiveEnd;for(let i=1+e.directiveStylingLast;i<s;i++)r=Yi(r,t[i].hostAttrs,!0);return Yi(r,e.attrs,!0)}(t,e)}return void 0!==i&&(e.residualClasses=i),n}(s,r,e),function(t,e,n,r,s,i){let o=e.classBindings,a=Vr(o),l=jr(o);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=Vr(t[a+1]);t[r+1]=Dr(e,a),0!==e&&(t[e+1]=Ur(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=Dr(a,0),0!==a&&(t[a+1]=Ur(t[a+1],r)),a=r;else t[r+1]=Dr(l,0),0===a?a=r:t[l+1]=Ur(t[l+1],r),l=r;u&&(t[r+1]=Nr(t[r+1])),Zi(t,c,r,!0),Zi(t,c,r,!1),function(t,e,n,r,s){const i=t.residualClasses;null!=i&&"string"==typeof e&&ne(i,e)>=0&&(n[r+1]=Fr(n[r+1]))}(e,c,t,r),o=Dr(a,l),e.classBindings=o}(s,r,e,n,i)}}(i,t,o),e!==Ar&&ki(s,o,e)&&function(t,e,n,r,s,i,o,a){if(3!==e.type)return;const l=t.data,c=l[a+1];to(1==(1&c)?Xi(l,e,n,s,jr(c),!0):void 0)||(to(i)||function(t){return 2==(2&t)}(c)&&(i=Xi(l,null,n,s,a,!0)),function(t,e,n,r,s){const i=Ae(t);s?i?t.addClass(n,r):n.classList.add(r):i?t.removeClass(n,r):n.classList.remove(r)}(r,0,Ie(hn(),n),s,i))}(i,i.data[hn()+20],s,s[11],t,s[o+1]=function(t,e){return null==t||"object"==typeof t&&(t=vt(or(t))),t}(e),0,o)}(t,e),Ki}function Ji(t,e,n,r,s){let i=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(i=e[a],r=Yi(r,i.hostAttrs,s),i!==t);)a++;return null!==t&&(n.directiveStylingLast=a),r}function Yi(t,e,n){const r=n?1:2;let s=-1;if(null!==e)for(let i=0;i<e.length;i++){const o=e[i];"number"==typeof o?s=o:s===r&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),te(t,o,!!n||e[++i]))}return void 0===t?null:t}function Xi(t,e,n,r,s,i){const o=null===e;let a=void 0;for(;s>0;){const e=t[s],i=Array.isArray(e),l=i?e[1]:e,c=null===l;let u=n[s+1];u===Ar&&(u=c?Wi:void 0);let h=c?ee(u,r):l===r?u:void 0;if(i&&!to(h)&&(h=ee(e,r)),to(h)&&(a=h,o))return a;const d=t[s+1];s=o?Vr(d):jr(d)}if(null!==e){let t=i?e.residualClasses:e.residualStyles;null!=t&&(a=ee(t,r))}return a}function to(t){return void 0!==t}function eo(t,e=""){const n=qe(),r=ze(),s=t+20,i=r.firstCreatePass?qr(r,n[6],t,3,null,null):r.data[s],o=n[s]=function(t,e){return Ae(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Fs(r,n,o,i),We(i,!1)}function no(t){return ro("",t,""),no}function ro(t,e,n){const r=qe(),s=Oi(r,t,e,n);return s!==Ar&&function(t,e,n){const r=Ie(e,t),s=t[11];Ae(s)?s.setValue(r,n):r.textContent=n}(r,hn(),s),ro}function so(t,e,n){const r=qe();return ki(r,Ye(),e)&&ts(ze(),pn(),r,t,e,r[11],n,!0),so}function io(t,e){const n=Ve(t)[1],r=n.data.length-1;mn(n,{directiveStart:r,directiveEnd:r+1})}function oo(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const r=[t];for(;e;){let s=void 0;if(xe(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){r.push(s);const e=t;e.inputs=ao(t.inputs),e.declaredInputs=ao(t.declaredInputs),e.outputs=ao(t.outputs);const n=s.hostBindings;n&&uo(t,n);const i=s.viewQuery,o=s.contentQueries;if(i&&lo(t,i),o&&co(t,o),ot(t.inputs,s.inputs),ot(t.declaredInputs,s.declaredInputs),ot(t.outputs,s.outputs),xe(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}e.afterContentChecked=e.afterContentChecked||s.afterContentChecked,e.afterContentInit=t.afterContentInit||s.afterContentInit,e.afterViewChecked=t.afterViewChecked||s.afterViewChecked,e.afterViewInit=t.afterViewInit||s.afterViewInit,e.doCheck=t.doCheck||s.doCheck,e.onDestroy=t.onDestroy||s.onDestroy,e.onInit=t.onInit||s.onInit}const e=s.features;if(e)for(let r=0;r<e.length;r++){const s=e[r];s&&s.ngInherit&&s(t),s===oo&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){const s=t[r];s.hostVars=e+=s.hostVars,s.hostAttrs=kn(s.hostAttrs,n=kn(n,s.hostAttrs))}}(r)}function ao(t){return t===ie?{}:t===oe?[]:t}function lo(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function co(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,s)=>{e(t,r,s),n(t,r,s)}:e}function uo(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}class ho{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function po(t){t.type.prototype.ngOnChanges&&(t.setInput=fo,t.onChanges=function(){const t=go(this),e=t&&t.current;if(e){const n=t.previous;if(n===ie)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}})}function fo(t,e,n,r){const s=go(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:ie,current:null}),i=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];i[a]=new ho(l&&l.currentValue,e,o===ie),t[r]=e}function go(t){return t.__ngSimpleChanges__||null}function mo(t,e,n,r,s){if(t=bt(t),Array.isArray(t))for(let i=0;i<t.length;i++)mo(t[i],e,n,r,s);else{const i=ze(),o=qe();let a=gi(t)?t:bt(t.provide),l=di(t);const c=Be(),u=65535&c.providerIndexes,h=c.directiveStart,d=c.providerIndexes>>16;if(gi(t)||!t.multi){const r=new Cn(l,s,Pi),p=_o(a,e,s?u:u+d,h);-1===p?(zn(Ln(c,o),i,a),vo(i,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=65536),n.push(r),o.push(r)):(n[p]=r,o[p]=r)}else{const p=_o(a,e,u+d,h),f=_o(a,e,u,u+d),g=p>=0&&n[p],m=f>=0&&n[f];if(s&&!m||!s&&!g){zn(Ln(c,o),i,a);const u=function(t,e,n,r,s){const i=new Cn(t,n,Pi);return i.multi=[],i.index=e,i.componentProviders=0,yo(i,s,r&&!n),i}(s?bo:wo,n.length,s,r,l);!s&&m&&(n[f].providerFactory=u),vo(i,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=65536),n.push(u),o.push(u)}else vo(i,t,p>-1?p:f,yo(n[s?f:p],l,!s&&r));!s&&r&&m&&n[f].componentProviders++}}}function vo(t,e,n,r){const s=gi(e);if(s||e.useClass){const i=(e.useClass||e).prototype.ngOnDestroy;if(i){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[r,i]):o[t+1].push(r,i)}else o.push(n,i)}}}function yo(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function _o(t,e,n,r){for(let s=n;s<r;s++)if(e[s]===t)return s;return-1}function wo(t,e,n,r){return Co(this.multi,[])}function bo(t,e,n,r){const s=this.multi;let i;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=Qn(n,n[1],this.providerFactory.index,r);i=e.slice(0,t),Co(s,i);for(let n=t;n<e.length;n++)i.push(e[n])}else i=[],Co(s,i);return i}function Co(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function So(t,e=[]){return n=>{n.providersResolver=(n,r)=>function(t,e,n){const r=ze();if(r.firstCreatePass){const s=xe(t);mo(n,r.data,r.blueprint,s,!0),mo(e,r.data,r.blueprint,s,!1)}}(n,r?r(t):t,e)}}po.ngInherit=!0;class xo{}class Eo{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${vt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ko=(()=>{class t{}return t.NULL=new Eo,t})(),Ao=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>Oo(t),t})();const Oo=function(t){return Js(t,Be(),qe())};class To{}var Io=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let Po=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Mo(),t})();const Mo=function(){const t=qe(),e=De(Be().index,t);return function(t){const e=t[11];if(Ae(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(_e(e)?e:t)};let Ro=(()=>{class t{}return t.\u0275prov=at({token:t,providedIn:"root",factory:()=>null}),t})();class Do{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Vo=new Do("10.0.1");class No{constructor(){}supports(t){return Si(t)}create(t){return new Uo(t)}}const jo=(t,e)=>e;class Uo{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||jo}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 i=!n||e&&e.currentIndex<$o(n,r,s)?e:n,o=$o(i,r,s),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(e=e._next,null==i.previousIndex)r++;else{s||(s=[]);const t=o-r,e=a-r;if(t!=e){for(let n=0;n<t;n++){const r=n<s.length?s[n]:s[n]=0,i=r+n;e<=i&&i<t&&(s[n]=r+1)}s[i.previousIndex]=e-t}}o!==a&&t(i,o,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=[]),!Si(t))throw new Error(`Error trying to diff '${vt(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,i=!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)?(i&&(s=this._verifyReinsertion(s,n,r,e)),Object.is(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,r,e),i=!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[bi()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(t,t=>{r=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,t,r,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,r,e),i=!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,e;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=e)t.previousIndex=t.currentIndex,e=t._nextMoved;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 Fo(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 Ho),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 Ho),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 Fo{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 Lo{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 Ho{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Lo,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 $o(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 qo{constructor(){}supports(t){return t instanceof Map||xi(t)}create(){return new zo}}class zo{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||xi(t)))throw new Error(`Error trying to diff '${vt(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 Go(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 Go{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 Bo=(()=>{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 rt,new et]]}}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 No])}),t})(),Wo=(()=>{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 rt,new et]]}}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 qo])}),t})();const Zo=[new qo],Qo=new Bo([new No]),Ko=new Wo(Zo);let Jo=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Yo(t,Ao),t})();const Yo=function(t,e){return Ys(t,e,Be(),qe())};let Xo=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ta(t,Ao),t})();const ta=function(t,e){return Xs(t,e,Be(),qe())},ea={};class na extends ko{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=me(t);return new ia(e,this.ngModule)}}function ra(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const sa=new Vt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Dn});class ia extends xo{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(kr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return ra(this.componentDef.inputs)}get outputs(){return ra(this.componentDef.outputs)}create(t,e,n,r){const s=(r=r||this.ngModule)?function(t,e){return{get:(n,r,s)=>{const i=t.get(n,ea,s);return i!==ea||r===ea?i:e.get(n,r,s)}}}(t,r.injector):t,i=s.get(To,Oe),o=s.get(Ro,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Ae(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):Hr(l,i.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:Dn,clean:bs,playerHandler:null,flags:0},d=Jr(0,-1,null,1,0,null,null,null,null,null),p=$r(null,d,h,u,null,null,i,a,o,s);let f,g;sn(p,null);try{const t=function(t,e,n,r,s,i){const o=n[1];n[20]=t;const a=qr(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(_i(a,l,!0),null!==t&&(Sn(s,t,l),null!==a.classes&&Gs(s,t,a.classes),null!==a.styles&&zs(s,t,a.styles)));const c=r.createRenderer(t,e),u=$r(n,Kr(e),null,e.onPush?64:16,n[20],a,r,c,void 0);return o.firstCreatePass&&(zn(Ln(a,n),o,e.type),os(o,a),ls(a,n.length,1)),ms(n,u),n[20]=u}(c,this.componentDef,p,i,a);if(c)if(n)Sn(a,c,["ng-version",Vo.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,s=2;for(;r<t.length;){let i=t[r];if("string"==typeof i)2===s?""!==i&&e.push(i,t[++r]):8===s&&n.push(i);else{if(!Cr(s))break;s=i}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Sn(a,c,t),e&&e.length>0&&Gs(a,c,e.join(" "))}if(g=Me(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)}}f=function(t,e,n,r,s){const i=n[1],o=function(t,e,n){const r=Be();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),is(t,r,1),cs(t,e,n));const s=Qn(e,t,e.length-1,r);fr(s,e);const i=Pe(r,e);return i&&fr(i,e),s}(i,n,e);r.components.push(o),t[8]=o,s&&s.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=Be();if(i.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){dn(a.index-20);const t=n[1];ns(t,e),rs(t,n,e.hostVars),ss(e,o)}return o}(t,this.componentDef,p,h,[io]),zr(d,p,null)}finally{un()}const m=new oa(this.componentType,f,Js(Ao,g,p),p,g);return d.node.child=g,m}}class oa 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 Ws(r),function(t,e,n,r){let s=t.node;null==s&&(t.node=s=Yr(0,null,2,-1,null,null)),r[6]=s}(r[1],0,0,r),this.componentType=t}get injector(){return new Yn(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 aa=void 0;var la=["en",[["a","p"],["AM","PM"],aa],[["AM","PM"],aa,aa],[["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"]],aa,[["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"]],aa,[["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}",aa,"{1} 'at' {0}",aa],[".",",",";","%","+","-","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 ca={};function ua(t){return t in ca||(ca[t]=At.ng&&At.ng.common&&At.ng.common.locales&&At.ng.common.locales[t]),ca[t]}var ha=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}({});let da="en-US";function pa(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&&(da=t.toLowerCase().replace(/_/g,"-"))}const fa=new Map;class ga extends Qt{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new na(this);const n=ye(t),r=t[Mt]||null;r&&pa(r),this._bootstrapComponents=Nn(n.bootstrap),this._r3Injector=ci(t,e,[{provide:Qt,useValue:this},{provide:ko,useValue:this.componentFactoryResolver}],vt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=vi.THROW_IF_NOT_FOUND,n=st.Default){return t===vi||t===Qt||t===Nt?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 ma extends Kt{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} - ${vt(e)} vs ${vt(e.name)}`)})(t,fa.get(t),e),fa.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new ga(this.moduleType,t)}}function va(t,e,n,r){return _a(qe(),Je(),t,e,n,r)}function ya(t,e){const n=t[e];return n===Ar?void 0:n}function _a(t,e,n,r,s,i){const o=e+n;return ki(t,o,s)?Ei(t,o+1,i?r.call(i,s):r(s)):ya(t,o+1)}function wa(t,e){const n=ze();let r;const s=t+20;n.firstCreatePass?(r=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,r.onDestroy)):r=n.data[s];const i=r.factory||(r.factory=ve(r.type)),o=qt(Pi),a=Un(!1),l=i();return Un(a),qt(o),function(t,e,n,r){const s=n+20;s>=t.data.length&&(t.data[s]=null,t.blueprint[s]=null),e[s]=r}(n,qe(),t,l),l}function ba(t,e,n,r,s){const i=qe(),o=Re(i,t);return Sa(i,Ca(i,t)?function(t,e,n,r,s,i,o,a){const l=e+n;return function(t,e,n,r,s){const i=function(t,e,n,r){const s=ki(t,e,n);return ki(t,e+1,r)||s}(t,e,n,r);return ki(t,e+2,s)||i}(t,l,s,i,o)?Ei(t,l+3,a?r.call(a,s,i,o):r(s,i,o)):ya(t,l+3)}(i,Je(),e,o.transform,n,r,s,o):o.transform(n,r,s))}function Ca(t,e){return t[1].data[e+20].pure}function Sa(t,e){return Ci.isWrapped(e)&&(e=Ci.unwrap(e),t[He.lFrame.bindingIndex]=Ar),e}const xa=class extends S{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,s=t=>null,i=()=>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&&(i=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&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(r,s,i);return t instanceof h&&t.add(o),o}};function Ea(){return this._results[bi()]()}class ka{constructor(){this.dirty=!0,this._results=[],this.changes=new xa,this.length=0;const t=bi(),e=ka.prototype;e[t]||(e[t]=Ea)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let r=0;r<e.length;r++){let s=e[r];Array.isArray(s)?(n===e&&(n=e.slice(0,r)),t(s,n)):n!==e&&n.push(s)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Aa{constructor(t){this.queryList=t,this.matches=null}clone(){return new Aa(this.queryList)}setDirty(){this.queryList.setDirty()}}class Oa{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);r.push(this.queries[n.indexInDeclarationView].clone())}return new Oa(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==La(t,e).matches&&this.queries[e].setDirty()}}class Ta{constructor(t,e,n,r=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=r}}class Ia{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const r=null!==e?e.length:0,s=this.getByIndex(n).embeddedTView(t,r);s&&(s.indexInDeclarationView=n,null!==e?e.push(s):e=[s])}return null!==e?new Ia(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Pa{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new Pa(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){if(Array.isArray(this.metadata.predicate)){const n=this.metadata.predicate;for(let r=0;r<n.length;r++)this.matchTNodeWithReadOption(t,e,Ma(e,n[r]))}else{const n=this.metadata.predicate;n===Jo?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Zn(e,t,n,!1,!1))}}matchTNodeWithReadOption(t,e,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===Ao||r===Xo||r===Jo&&0===e.type)this.addMatch(e.index,-2);else{const n=Zn(e,t,r,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Ma(t,e){const n=t.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function Ra(t,e,n,r){return-1===n?function(t,e){return 3===t.type||4===t.type?Js(Ao,t,e):0===t.type?Ys(Jo,Ao,t,e):null}(e,t):-2===n?function(t,e,n){return n===Ao?Js(Ao,e,t):n===Jo?Ys(Jo,Ao,e,t):n===Xo?Xs(Xo,Ao,e,t):void 0}(t,e,r):Qn(t,t[1],n,e)}function Da(t,e,n,r){const s=e[19].queries[r];if(null===s.matches){const r=t.data,i=n.matches,o=[];for(let t=0;t<i.length;t+=2){const s=i[t];o.push(s<0?null:Ra(e,r[s],i[t+1],n.metadata.read))}s.matches=o}return s.matches}function Va(t){const e=qe(),n=ze(),r=en();nn(r+1);const s=La(n,r);if(t.dirty&&Ne(e)===s.metadata.isStatic){if(null===s.matches)t.reset([]);else{const i=s.crossesNgTemplate?function t(e,n,r,s){const i=e.queries.getByIndex(r),o=i.matches;if(null!==o){const a=Da(e,n,i,r);for(let e=0;e<o.length;e+=2){const r=o[e];if(r>0)s.push(a[e/2]);else{const i=o[e+1],a=n[-r];for(let e=10;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,i,s)}if(null!==a[9]){const e=a[9];for(let n=0;n<e.length;n++){const r=e[n];t(r[1],r,i,s)}}}}}return s}(n,e,r,[]):Da(n,e,s,r);t.reset(i),t.notifyOnChanges()}return!0}return!1}function Na(t,e,n,r){!function(t,e,n,r,s,i,o,a){t.firstCreatePass&&(Fa(t,new Ta(n,r,!1,s),o.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,a)),Ua(t,e)}(ze(),qe(),e,n,r,0,Be(),t)}function ja(){return t=qe(),e=en(),t[19].queries[e].queryList;var t,e}function Ua(t,e){const n=new ka;!function(t,e,n,r){const s=Cs(e);s.push(n),t.firstCreatePass&&Ss(t).push(r,s.length-1)}(t,e,n,n.destroy),null===e[19]&&(e[19]=new Oa),e[19].queries.push(new Aa(n))}function Fa(t,e,n){null===t.queries&&(t.queries=new Ia),t.queries.track(new Pa(e,n))}function La(t,e){return t.queries.getByIndex(e)}const Ha=new Vt("Application Initializer");let $a=(()=>{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]();Fi(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)(Gt(Ha,8))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const qa=new Vt("AppId"),za={provide:qa,useFactory:function(){return`${Ga()}${Ga()}${Ga()}`},deps:[]};function Ga(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ba=new Vt("Platform Initializer"),Wa=new Vt("Platform ID"),Za=new Vt("appBootstrapListener");let Qa=(()=>{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 Ka=new Vt("LocaleId"),Ja=new Vt("DefaultCurrencyCode");class Ya{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Xa=function(t){return new ma(t)},tl=Xa,el=function(t){return Promise.resolve(Xa(t))},nl=function(t){const e=Xa(t),n=Nn(ye(t).declarations).reduce((t,e)=>{const n=me(e);return n&&t.push(new ia(n)),t},[]);return new Ya(e,n)},rl=nl,sl=function(t){return Promise.resolve(nl(t))};let il=(()=>{class t{constructor(){this.compileModuleSync=tl,this.compileModuleAsync=el,this.compileModuleAndAllComponentsSync=rl,this.compileModuleAndAllComponentsAsync=sl}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const ol=(()=>Promise.resolve(0))();function al(t){"undefined"==typeof Zone?ol.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ll{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xa(!1),this.onMicrotaskEmpty=new xa(!1),this.onStable=new xa(!1),this.onError=new xa(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=At.requestAnimationFrame,e=At.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(At,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,dl(t),hl(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),dl(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,r,s,i,o,a)=>{try{return pl(t),n.invokeTask(s,i,o,a)}finally{e&&"eventTask"===i.type&&e(),fl(t)}},onInvoke:(e,n,r,s,i,o,a)=>{try{return pl(t),e.invoke(r,s,i,o,a)}finally{fl(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,dl(t),hl(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ll.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ll.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,i=s.scheduleEventTask("NgZoneEvent: "+r,t,ul,cl,cl);try{return s.runTask(i,e,n)}finally{s.cancelTask(i)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function cl(){}const ul={};function hl(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 dl(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function pl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function fl(t){t._nesting--,hl(t)}class gl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xa,this.onMicrotaskEmpty=new xa,this.onStable=new xa,this.onError=new xa}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 ml=(()=>{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:()=>{ll.assertNotInAngularZone(),al(()=>{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())al(()=>{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)(Gt(ll))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),vl=(()=>{class t{constructor(){this._applications=new Map,wl.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 wl.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();class yl{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let _l,wl=new yl;const bl=new Vt("AllowMultipleToken");class Cl{constructor(t,e){this.name=t,this.token=e}}function Sl(t,e,n=[]){const r="Platform: "+e,s=new Vt(r);return(e=[])=>{let i=xl();if(!i||i.injector.get(bl,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:ri,useValue:"platform"});!function(t){if(_l&&!_l.destroyed&&!_l.injector.get(bl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");_l=t.get(El);const e=t.get(Ba,null);e&&e.forEach(t=>t())}(vi.create({providers:t,name:r}))}return function(t){const e=xl();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 xl(){return _l&&!_l.destroyed?_l:null}let El=(()=>{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 gl:("zone.js"===t?void 0:t)||new ll({enableLongStackTrace:cr(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),r=[{provide:ll,useValue:n}];return n.run(()=>{const e=vi.create({providers:r,parent:this.injector,name:t.moduleType.name}),s=t.create(e),i=s.injector.get(sr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>Ol(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{i.handleError(t)}})),function(t,e,n){try{const r=n();return Fi(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(i,n,()=>{const t=s.injector.get($a);return t.runInitializers(),t.donePromise.then(()=>(pa(s.injector.get(Ka,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=kl({},e);return function(t,e,n){const r=new ma(n);return Promise.resolve(r)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Al);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${vt(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)(Gt(vi))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();function kl(t,e){return Array.isArray(e)?e.reduce(kl,t):Object.assign(Object.assign({},t),e)}let Al=(()=>{class t{constructor(t,e,n,r,s,i){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=cr(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{ll.assertNotInAngularZone(),al(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{ll.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 y?t[0]:q(e)(z(t,n))}(o,a.pipe(t=>{return G()((e=J,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 xo?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(Qt),s=n.create(vi.NULL,[],e||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const i=s.injector.get(ml,null);return i&&s.injector.get(vl).registerApplication(s.location.nativeElement,i),this._loadComponent(s),cr()&&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;Ol(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Za,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Ol(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)(Gt(ll),Gt(Qa),Gt(vi),Gt(sr),Gt(ko),Gt($a))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();function Ol(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Tl{}class Il{}const Pl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Ml=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Pl}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=>Rl(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=>Rl(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(Gt(il),Gt(Il,8))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();function Rl(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Dl=Sl(null,"core",[{provide:Wa,useValue:"unknown"},{provide:El,deps:[vi]},{provide:vl,deps:[]},{provide:Qa,deps:[]}]),Vl=[{provide:Al,useClass:Al,deps:[ll,Qa,vi,sr,ko,$a]},{provide:sa,deps:[ll],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:$a,useClass:$a,deps:[[new et,Ha]]},{provide:il,useClass:il,deps:[]},za,{provide:Bo,useFactory:function(){return Qo},deps:[]},{provide:Wo,useFactory:function(){return Ko},deps:[]},{provide:Ka,useFactory:function(t){return pa(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new tt(Ka),new et,new rt]]},{provide:Ja,useValue:"USD"}];let Nl=(()=>{class t{constructor(t){}}return t.\u0275mod=de({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)(Gt(Al))},providers:Vl}),t})(),jl=null;function Ul(){return jl}const Fl=new Vt("DocumentToken");let Ll=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({factory:Hl,token:t,providedIn:"platform"}),t})();function Hl(){return Gt(ql)}const $l=new Vt("Location Initialized");let ql=(()=>{class t extends Ll{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Ul().getLocation(),this._history=Ul().getHistory()}getBaseHrefFromDOM(){return Ul().getBaseHref(this._doc)}onPopState(t){Ul().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Ul().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){zl()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){zl()?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)(Gt(Fl))},t.\u0275prov=at({factory:Gl,token:t,providedIn:"platform"}),t})();function zl(){return!!window.history.pushState}function Gl(){return new ql(Gt(Fl))}function Bl(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 Wl(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 Zl(t){return t&&"?"!==t[0]?"?"+t:t}let Ql=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({factory:Kl,token:t,providedIn:"root"}),t})();function Kl(t){const e=Gt(Fl).location;return new Yl(Gt(Ll),e&&e.origin||"")}const Jl=new Vt("appBaseHref");let Yl=(()=>{class t extends Ql{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 Bl(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Zl(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const s=this.prepareExternalUrl(n+Zl(r));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){const s=this.prepareExternalUrl(n+Zl(r));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Gt(Ll),Gt(Jl,8))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),Xl=(()=>{class t extends Ql{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=Bl(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let s=this.prepareExternalUrl(n+Zl(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){let s=this.prepareExternalUrl(n+Zl(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)(Gt(Ll),Gt(Jl,8))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),tc=(()=>{class t{constructor(t,e){this._subject=new xa,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Wl(nc(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+Zl(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,nc(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+Zl(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Zl(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)(Gt(Ql),Gt(Ll))},t.normalizeQueryParams=Zl,t.joinWithSlash=Bl,t.stripTrailingSlash=Wl,t.\u0275prov=at({factory:ec,token:t,providedIn:"root"}),t})();function ec(){return new tc(Gt(Ql),Gt(Ll))}function nc(t){return t.replace(/\/index.html$/,"")}var rc=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 sc{}let ic=(()=>{class t extends sc{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=ua(e);if(n)return n;const r=e.split("-")[0];if(n=ua(r),n)return n;if("en"===r)return la;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[ha.PluralCase]}(e||this.locale)(t)){case rc.Zero:return"zero";case rc.One:return"one";case rc.Two:return"two";case rc.Few:return"few";case rc.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Gt(Ka))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();function oc(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}let ac=(()=>{class t{constructor(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Si(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+vt(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(Pi(Bo),Pi(Wo),Pi(Ao),Pi(Po))},t.\u0275dir=fe({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class lc{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 cc=(()=>{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){cr()&&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 lc(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new uc(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 i=new uc(t,s);e.push(i)}});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)(Pi(Xo),Pi(Jo),Pi(Bo))},t.\u0275dir=fe({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class uc{constructor(t,e){this.record=t,this.view=e}}let hc=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new dc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){pc("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){pc("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Pi(Xo),Pi(Jo))},t.\u0275dir=fe({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class dc{constructor(){this.$implicit=null,this.ngIf=null}}function pc(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${vt(e)}'.`)}let fc=(()=>{class t{}return t.\u0275mod=de({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[{provide:sc,useClass:ic}]}),t})(),gc=(()=>{class t{}return t.\u0275prov=at({token:t,providedIn:"root",factory:()=>new mc(Gt(Fl),window,Gt(sr))}),t})();class mc{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.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector("#"+t);if(e)return void this.scrollToElement(e);const n=this.document.querySelector(`[name='${t}']`);if(n)return void this.scrollToElement(n)}catch(e){this.errorHandler.handleError(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{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}class vc extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new vc,jl||(jl=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=_c||(_c=document.querySelector("base"),_c)?_c.getAttribute("href"):null;return null==e?null:(n=e,yc||(yc=document.createElement("a")),yc.setAttribute("href",n),"/"===yc.pathname.charAt(0)?yc.pathname:"/"+yc.pathname);var n}resetBaseElement(){_c=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 oc(document.cookie,t)}}let yc,_c=null;const wc=new Vt("TRANSITION_ID"),bc=[{provide:Ha,useFactory:function(t,e,n){return()=>{n.get($a).donePromise.then(()=>{const n=Ul();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[wc,Fl,vi],multi:!0}];class Cc{static init(){var t;t=new Cc,wl=t}addToWindow(t){At.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},At.getAllAngularTestabilities=()=>t.getAllTestabilities(),At.getAllAngularRootElements=()=>t.getAllRootElements(),At.frameworkStabilizers||(At.frameworkStabilizers=[]),At.frameworkStabilizers.push(t=>{const e=At.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?Ul().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const Sc=new Vt("EventManagerPlugins");let xc=(()=>{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)(Gt(Sc),Gt(ll))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();class Ec{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const r=Ul().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,n)}}let kc=(()=>{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})(),Ac=(()=>{class t extends kc{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=>Ul().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Gt(Fl))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const Oc={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/"},Tc=/%COMP%/g;function Ic(t,e,n){for(let r=0;r<e.length;r++){let s=e[r];Array.isArray(s)?Ic(t,s,n):(s=s.replace(Tc,t),n.push(s))}return n}function Pc(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Mc=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Rc(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 Dc(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 Vc(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Ic(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)(Gt(xc),Gt(Ac),Gt(qa))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();class Rc{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Oc[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=Oc[r];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=Oc[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&Io.DashCase?t.style.setProperty(e,n,r&Io.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Io.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,Pc(n)):this.eventManager.addEventListener(t,e,Pc(n))}}class Dc extends Rc{constructor(t,e,n,r){super(t),this.component=n;const s=Ic(r+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(Tc,r+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(Tc,t)}(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 Vc extends Rc{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=Ic(r.id,r.styles,[]);for(let i=0;i<s.length;i++){const t=document.createElement("style");t.textContent=s[i],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 Nc=(()=>{class t extends Ec{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)(Gt(Fl))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const jc=["alt","control","meta","shift"],Uc={"\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"},Fc={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"},Lc={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Hc=(()=>{class t extends Ec{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const s=t.parseEventName(n),i=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ul().onAndCancel(e,s.domEventName,i))}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 i="";if(jc.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=r,o.fullKey=i,o}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&&Fc.hasOwnProperty(e)&&(e=Fc[e]))}return Uc[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),jc.forEach(r=>{r!=n&&(0,Lc[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)(Gt(Fl))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const $c=Sl(Dl,"browser",[{provide:Wa,useValue:"browser"},{provide:Ba,useValue:function(){vc.makeCurrent(),Cc.init()},multi:!0},{provide:Fl,useFactory:function(){return function(t){ke=t}(document),document},deps:[]}]),qc=[[],{provide:ri,useValue:"root"},{provide:sr,useFactory:function(){return new sr},deps:[]},{provide:Sc,useClass:Nc,multi:!0,deps:[Fl,ll,Wa]},{provide:Sc,useClass:Hc,multi:!0,deps:[Fl]},[],{provide:Mc,useClass:Mc,deps:[xc,Ac,qa]},{provide:To,useExisting:Mc},{provide:kc,useExisting:Ac},{provide:Ac,useClass:Ac,deps:[Fl]},{provide:ml,useClass:ml,deps:[ll]},{provide:xc,useClass:xc,deps:[Sc,ll]},[]];let zc=(()=>{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:qa,useValue:e.appId},{provide:wc,useExisting:qa},bc]}}}return t.\u0275mod=de({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)(Gt(t,12))},providers:qc,imports:[fc,Nl]}),t})();function Gc(t,e){return new y(n=>{const r=t.length;if(0===r)return void n.complete();const s=new Array(r);let i=0,o=0;for(let a=0;a<r;a++){const l=F(t[a]);let c=!1;n.add(l.subscribe({next:t=>{c||(c=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{i++,i!==r&&c||(o===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}"undefined"!=typeof window&&window;const Bc=new Vt("NgValueAccessor"),Wc={provide:Bc,useExisting:wt(()=>Zc),multi:!0};let Zc=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Pi(Po),Pi(Ao))},t.\u0275dir=fe({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&Hi("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[So([Wc])]}),t})();const Qc={provide:Bc,useExisting:wt(()=>Jc),multi:!0},Kc=new Vt("CompositionEventMode");let Jc=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Ul()?Ul().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Pi(Po),Pi(Ao),Pi(Kc,8))},t.\u0275dir=fe({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&Hi("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[So([Qc])]}),t})(),Yc=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=fe({type:t}),t})(),Xc=(()=>{class t extends Yc{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return tu(e||t)},t.\u0275dir=fe({type:t,features:[oo]}),t})();const tu=tr(Xc);function eu(){throw new Error("unimplemented")}class nu extends Yc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return eu()}get asyncValidator(){return eu()}}class ru{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let su=(()=>{class t extends ru{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Pi(nu,2))},t.\u0275dir=fe({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Ki("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[oo]}),t})(),iu=(()=>{class t extends ru{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Pi(Xc,2))},t.\u0275dir=fe({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&Ki("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[oo]}),t})();function ou(t){return null==t||0===t.length}function au(t){return null!=t&&"number"==typeof t.length}const lu=new Vt("NgValidators"),cu=new Vt("NgAsyncValidators"),uu=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class hu{static min(t){return e=>{if(ou(e.value)||ou(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(ou(e.value)||ou(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return ou(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return ou(t.value)||uu.test(t.value)?null:{email:!0}}static minLength(t){return e=>ou(e.value)||!au(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}static maxLength(t){return e=>au(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return hu.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(ou(t.value))return null;const r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(du);return 0==e.length?null:function(t){return fu(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(du);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(l(e))return Gc(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Gc(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Gc(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(V(t=>e(...t)))}return Gc(t,null)}(function(t,e){return e.map(e=>e(t))}(t,e).map(pu)).pipe(V(fu))}}}function du(t){return null!=t}function pu(t){const e=Fi(t)?F(t):t;if(!Li(e))throw new Error("Expected validator to return Promise or Observable.");return e}function fu(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function gu(t){return t.validate?e=>t.validate(e):t}function mu(t){return t.validate?e=>t.validate(e):t}const vu={provide:Bc,useExisting:wt(()=>yu),multi:!0};let yu=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Pi(Po),Pi(Ao))},t.\u0275dir=fe({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&Hi("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[So([vu])]}),t})();const _u={provide:Bc,useExisting:wt(()=>bu),multi:!0};let wu=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),bu=(()=>{class t{constructor(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(nu),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')}}return t.\u0275fac=function(e){return new(e||t)(Pi(Po),Pi(Ao),Pi(wu),Pi(vi))},t.\u0275dir=fe({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&Hi("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[So([_u])]}),t})();const Cu={provide:Bc,useExisting:wt(()=>Su),multi:!0};let Su=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Pi(Po),Pi(Ao))},t.\u0275dir=fe({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&Hi("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[So([Cu])]}),t})();const xu='\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',Eu='\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',ku='\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>';class Au{static controlParentException(){throw new Error("formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+xu)}static ngModelGroupException(){throw new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n       that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n       Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n        ${Eu}\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        ${ku}`)}static missingFormException(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       "+xu)}static groupParentException(){throw new Error("formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+Eu)}static arrayParentException(){throw new Error('formArrayName must be used with a parent formGroup directive.  You\'ll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n        Example:\n\n        \n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });')}static disabledAttrWarning(){console.warn("\n      It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n      you. We recommend using this approach to avoid 'changed after checked' errors.\n\n      Example:\n      form = new FormGroup({\n        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n        last: new FormControl('Drew', Validators.required)\n      });\n    ")}static ngModelWarning(t){console.warn(`\n    It looks like you're using ngModel on the same form field as ${t}.\n    Support for using the ngModel input property and ngModelChange event with\n    reactive form directives has been deprecated in Angular v6 and will be removed\n    in a future version of Angular.\n\n    For more information on this, see our API docs here:\n    https://angular.io/api/forms/${"formControl"===t?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n    `)}}const Ou={provide:Bc,useExisting:wt(()=>Tu),multi:!0};let Tu=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(Pi(Po),Pi(Ao))},t.\u0275dir=fe({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&Hi("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[So([Ou])]}),t})();const Iu={provide:Bc,useExisting:wt(()=>Pu),multi:!0};let Pu=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const r=t.item(e),s=this._getOptionValue(r.value);n.push(s)}}else{const t=e.options;for(let e=0;e<t.length;e++){const r=t.item(e);if(r.selected){const t=this._getOptionValue(r.value);n.push(t)}}}this.value=n,t(n)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}return t.\u0275fac=function(e){return new(e||t)(Pi(Po),Pi(Ao))},t.\u0275dir=fe({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&Hi("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[So([Iu])]}),t})();function Mu(t,e){return[...e.path,t]}function Ru(t,e){t||ju(e,"Cannot find control with"),e.valueAccessor||ju(e,"No value accessor for form control with"),t.validator=hu.compose([t.validator,e.validator]),t.asyncValidator=hu.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Du(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Du(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function Du(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Vu(t,e){null==t&&ju(e,"Cannot find control with"),t.validator=hu.compose([t.validator,e.validator]),t.asyncValidator=hu.composeAsync([t.asyncValidator,e.asyncValidator])}function Nu(t){return ju(t,"There is no FormControl instance attached to form control element with")}function ju(t,e){let n;throw n=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${n}`)}function Uu(t){return null!=t?hu.compose(t.map(gu)):null}function Fu(t){return null!=t?hu.composeAsync(t.map(mu)):null}function Lu(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}const Hu=[Zc,Su,yu,Tu,Pu,bu];function $u(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function qu(t,e){if(!e)return null;Array.isArray(e)||ju(t,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,s=void 0;return e.forEach(e=>{var i;e.constructor===Jc?n=e:(i=e,Hu.some(t=>i.constructor===t)?(r&&ju(t,"More than one built-in value accessor matches form control with"),r=e):(s&&ju(t,"More than one custom value accessor matches form control with"),s=e))}),s||r||n||(ju(t,"No valid value accessor for form control with"),null)}function zu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function Gu(t){const e=Wu(t)?t.validators:t;return Array.isArray(e)?Uu(e):e||null}function Bu(t,e){const n=Wu(e)?e.asyncValidators:t;return Array.isArray(n)?Fu(n):n||null}function Wu(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Zu{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=Gu(t)}setAsyncValidators(t){this.asyncValidator=Bu(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=pu(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let r=t;return e.forEach(t=>{r=r instanceof Ku?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof Ju&&r.at(t)||null}),r}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new xa,this.statusChanges=new xa}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Wu(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Qu extends Zu{constructor(t=null,e,n){super(Gu(e),Bu(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Ku extends Zu{constructor(t,e,n){super(Gu(e),Bu(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof Qu?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,r)=>{n=e(n,t,r)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Ju extends Zu{constructor(t,e,n){super(Gu(e),Bu(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Qu?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Yu={provide:Xc,useExisting:wt(()=>th)},Xu=(()=>Promise.resolve(null))();let th=(()=>{class t extends Xc{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new xa,this.form=new Ku({},Uu(t),Fu(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Xu.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Ru(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Xu.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),zu(this._directives,t)})}addFormGroup(t){Xu.then(()=>{const e=this._findContainer(t.path),n=new Ku({});Vu(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Xu.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Xu.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,$u(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(Pi(lu,10),Pi(cu,10))},t.\u0275dir=fe({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Hi("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[So([Yu]),oo]}),t})(),eh=(()=>{class t extends Xc{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Mu(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Uu(this._validators)}get asyncValidator(){return Fu(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return nh(e||t)},t.\u0275dir=fe({type:t,features:[oo]}),t})();const nh=tr(eh);class rh{static modelParentException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup's partner directive "formControlName" instead.  Example:\n\n      ${xu}\n\n      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n      Example:\n\n      \n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  `)}static formGroupNameException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      ${Eu}\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      ${ku}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}static modelGroupParentException(){throw new Error(`\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      ${Eu}\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      ${ku}`)}}const sh={provide:Xc,useExisting:wt(()=>ih)};let ih=(()=>{class t extends eh{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){this._parent instanceof t||this._parent instanceof th||rh.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(Pi(Xc,5),Pi(lu,10),Pi(cu,10))},t.\u0275dir=fe({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[So([sh]),oo]}),t})();const oh={provide:nu,useExisting:wt(()=>lh)},ah=(()=>Promise.resolve(null))();let lh=(()=>{class t extends nu{constructor(t,e,n,r){super(),this.control=new Qu,this._registered=!1,this.update=new xa,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=qu(this,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Lu(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Mu(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Uu(this._rawValidators)}get asyncValidator(){return Fu(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ru(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof ih)&&this._parent instanceof eh?rh.formGroupNameException():this._parent instanceof ih||this._parent instanceof th||rh.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||rh.missingNameException()}_updateValue(t){ah.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;ah.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Pi(Xc,9),Pi(lu,10),Pi(cu,10),Pi(Bc,10))},t.\u0275dir=fe({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[So([oh]),oo,po]}),t})(),ch=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=fe({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const uh=new Vt("NgModelWithFormControlWarning"),hh={provide:Xc,useExisting:wt(()=>dh)};let dh=(()=>{class t extends Xc{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new xa}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return Ru(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){zu(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);Vu(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);Vu(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,$u(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){e.valueAccessor.registerOnChange(()=>Nu(e)),e.valueAccessor.registerOnTouched(()=>Nu(e)),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&Ru(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=Uu(this._validators);this.form.validator=hu.compose([this.form.validator,t]);const e=Fu(this._asyncValidators);this.form.asyncValidator=hu.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||Au.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(Pi(lu,10),Pi(cu,10))},t.\u0275dir=fe({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&Hi("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[So([hh]),oo,po]}),t})();const ph={provide:Xc,useExisting:wt(()=>fh)};let fh=(()=>{class t extends eh{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){vh(this._parent)&&Au.groupParentException()}}return t.\u0275fac=function(e){return new(e||t)(Pi(Xc,13),Pi(lu,10),Pi(cu,10))},t.\u0275dir=fe({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[So([ph]),oo]}),t})();const gh={provide:Xc,useExisting:wt(()=>mh)};let mh=(()=>{class t extends Xc{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Mu(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return Uu(this._validators)}get asyncValidator(){return Fu(this._asyncValidators)}_checkParentType(){vh(this._parent)&&Au.arrayParentException()}}return t.\u0275fac=function(e){return new(e||t)(Pi(Xc,13),Pi(lu,10),Pi(cu,10))},t.\u0275dir=fe({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[So([gh]),oo]}),t})();function vh(t){return!(t instanceof fh||t instanceof dh||t instanceof mh)}const yh={provide:nu,useExisting:wt(()=>_h)};let _h=(()=>{class t extends nu{constructor(t,e,n,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new xa,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=qu(this,r)}set isDisabled(t){Au.disabledAttrWarning()}ngOnChanges(e){var n,r;this._added||this._setUpControl(),Lu(e,this.viewModel)&&("formControlName",n=t,this,r=this._ngModelWarningConfig,cr()&&"never"!==r&&((null!==r&&"once"!==r||n._ngModelWarningSentOnce)&&("always"!==r||this._ngModelWarningSent)||(Au.ngModelWarning("formControlName"),n._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Mu(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Uu(this._rawValidators)}get asyncValidator(){return Fu(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof fh)&&this._parent instanceof eh?Au.ngModelGroupException():this._parent instanceof fh||this._parent instanceof dh||this._parent instanceof mh||Au.controlParentException()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(Pi(Xc,13),Pi(lu,10),Pi(cu,10),Pi(Bc,10),Pi(uh,8))},t.\u0275dir=fe({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[So([yh]),oo,po]}),t._ngModelWarningSentOnce=!1,t})();const wh={provide:lu,useExisting:wt(()=>bh),multi:!0};let bh=(()=>{class t{get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()}validate(t){return this.required?hu.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=fe({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&Ai("required",e.required?"":null)},inputs:{required:"required"},features:[So([wh])]}),t})();const Ch={provide:lu,useExisting:wt(()=>Sh),multi:!0};let Sh=(()=>{class t{set email(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}validate(t){return this._enabled?hu.email(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=fe({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[So([Ch])]}),t})();const xh={provide:lu,useExisting:wt(()=>Eh),multi:!0};let Eh=(()=>{class t{ngOnChanges(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null==this.minlength?null:this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=hu.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=fe({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&Ai("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[So([xh]),po]}),t})(),kh=(()=>{class t{}return t.\u0275mod=de({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)}}),t})(),Ah=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let r=null,s=null,i=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new Ku(n,{asyncValidators:s,updateOn:i,validators:r})}control(t,e,n){return new Qu(t,e,n)}array(t,e,n){const r=t.map(t=>this._createControl(t));return new Ju(r,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof Qu||t instanceof Ku||t instanceof Ju?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),Oh=(()=>{class t{}return t.\u0275mod=de({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[wu],imports:[kh]}),t})(),Th=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:uh,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=de({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[Ah,wu],imports:[kh]}),t})();function Ih(...t){let e=t[t.length-1];return E(e)?(t.pop(),U(t,e)):z(t)}function Ph(t,e){return L(t,e,1)}function Mh(t,e){return function(n){return n.lift(new Rh(t,e))}}class Rh{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Dh(t,this.predicate,this.thisArg))}}class Dh extends f{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)}}class Vh{}class Nh{}class jh{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),r=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof jh?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new jh;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof jh?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Uh{encodeKey(t){return Fh(t)}encodeValue(t){return Fh(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Fh(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class Lh{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Uh,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const r=t.indexOf("="),[s,i]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],o=n.get(s)||[];o.push(i),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Lh({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function Hh(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function $h(t){return"undefined"!=typeof Blob&&t instanceof Blob}function qh(t){return"undefined"!=typeof FormData&&t instanceof FormData}class zh{constructor(t,e,n,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new jh),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new Lh,this.urlWithParams=e}serializeBody(){return null===this.body?null:Hh(this.body)||$h(this.body)||qh(this.body)||"string"==typeof this.body?this.body:this.body instanceof Lh?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||qh(this.body)?null:$h(this.body)?this.body.type||null:Hh(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Lh?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,r=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,i=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new zh(e,n,s,{params:l,headers:a,reportProgress:o,responseType:r,withCredentials:i})}}var Gh=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class Bh{constructor(t,e=200,n="OK"){this.headers=t.headers||new jh,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Wh extends Bh{constructor(t={}){super(t),this.type=Gh.ResponseHeader}clone(t={}){return new Wh({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Zh extends Bh{constructor(t={}){super(t),this.type=Gh.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Zh({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Qh extends Bh{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Kh(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Jh=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof zh)r=t;else{let s=void 0;s=n.headers instanceof jh?n.headers:new jh(n.headers);let i=void 0;n.params&&(i=n.params instanceof Lh?n.params:new Lh({fromObject:n.params})),r=new zh(t,e,void 0!==n.body?n.body:null,{headers:s,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Ih(r).pipe(Ph(t=>this.handler.handle(t)));if(t instanceof zh||"events"===n.observe)return s;const i=s.pipe(Mh(t=>t instanceof Zh));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return i.pipe(V(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return i.pipe(V(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return i.pipe(V(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return i.pipe(V(t=>t.body))}case"response":return i;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Lh).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,Kh(n,e))}post(t,e,n={}){return this.request("POST",t,Kh(n,e))}put(t,e,n={}){return this.request("PUT",t,Kh(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Gt(Vh))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();class Yh{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Xh=new Vt("HTTP_INTERCEPTORS");let td=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const ed=/^\)\]\}',?\n/;class nd{}let rd=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),sd=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new y(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const r=t.serializeBody();let s=null;const i=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,r=n.statusText||"OK",i=new jh(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new Wh({headers:i,status:e,statusText:r,url:o}),s},o=()=>{let{headers:r,status:s,statusText:o,url:a}=i(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(ed,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new Zh({body:l,headers:r,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new Qh({error:l,headers:r,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:r}=i(),s=new Qh({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(s)};let l=!1;const c=r=>{l||(e.next(i()),l=!0);let s={type:Gh.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},u=t=>{let n={type:Gh.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",c),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),e.next({type:Gh.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",c),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Gt(nd))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const id=new Vt("XSRF_COOKIE_NAME"),od=new Vt("XSRF_HEADER_NAME");class ad{}let ld=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=oc(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Gt(Fl),Gt(Wa),Gt(id))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),cd=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Gt(ad),Gt(od))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),ud=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(Xh,[]);this.chain=t.reduceRight((t,e)=>new Yh(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Gt(Nh),Gt(vi))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),hd=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:cd,useClass:td}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:id,useValue:e.cookieName}:[],e.headerName?{provide:od,useValue:e.headerName}:[]]}}}return t.\u0275mod=de({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[cd,{provide:Xh,useExisting:cd,multi:!0},{provide:ad,useClass:ld},{provide:id,useValue:"XSRF-TOKEN"},{provide:od,useValue:"X-XSRF-TOKEN"}]}),t})(),dd=(()=>{class t{}return t.\u0275mod=de({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[Jh,{provide:Vh,useClass:ud},sd,{provide:Nh,useExisting:sd},rd,{provide:nd,useExisting:rd}],imports:[[hd.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),pd=(()=>{let t=class{constructor(t,e){this.document=t,this.platformId=e,this.documentIsAccessible=function(t){return"browser"===t}(this.platformId)}check(t){return!!this.documentIsAccessible&&(t=encodeURIComponent(t),this.getCookieRegExp(t).test(this.document.cookie))}get(t){if(this.documentIsAccessible&&this.check(t)){t=encodeURIComponent(t);const e=this.getCookieRegExp(t).exec(this.document.cookie);return this.safeDecodeURIComponent(e[1])}return""}getAll(){if(!this.documentIsAccessible)return{};const t={},e=this.document;return e.cookie&&""!==e.cookie&&e.cookie.split(";").forEach(e=>{const[n,r]=e.split("=");t[this.safeDecodeURIComponent(n.replace(/^ /,""))]=this.safeDecodeURIComponent(r)}),t}set(t,e,n,r,s,i,o="Lax"){if(!this.documentIsAccessible)return;let a=encodeURIComponent(t)+"="+encodeURIComponent(e)+";";n&&(a+="number"==typeof n?"expires="+new Date((new Date).getTime()+1e3*n*60*60*24).toUTCString()+";":"expires="+n.toUTCString()+";"),r&&(a+="path="+r+";"),s&&(a+="domain="+s+";"),!1===i&&"None"===o&&(i=!0,console.warn(`[ngx-cookie-service] Cookie ${t} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),i&&(a+="secure;"),a+="sameSite="+o+";",this.document.cookie=a}delete(t,e,n,r,s="Lax"){this.documentIsAccessible&&this.set(t,"",new Date("Thu, 01 Jan 1970 00:00:01 GMT"),e,n,r,s)}deleteAll(t,e,n,r="Lax"){if(!this.documentIsAccessible)return;const s=this.getAll();for(const i in s)s.hasOwnProperty(i)&&this.delete(i,t,e,n,r)}getCookieRegExp(t){const e=t.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+e+"|;\\s*"+e+")=(.*?)(?:;|$)","g")}safeDecodeURIComponent(t){try{return decodeURIComponent(t)}catch(e){return t}}};return t.\u0275fac=function(e){return new(e||t)(Gt(Fl),Gt(Wa))},t.\u0275prov=at({factory:function(){return new t(Gt(Fl),Gt(Wa))},token:t,providedIn:"root"}),t})();function fd(t){return function(e){const n=new gd(t),r=e.lift(n);return n.caught=r}}class gd{constructor(t){this.selector=t}call(t,e){return e.subscribe(new md(t,this.selector,this.caught))}}class md extends D{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 k(this,void 0,void 0);this.add(r);const s=R(this,n,void 0,void 0,r);s!==r&&this.add(s)}}}function vd(){}function yd(t,e,n){return function(r){return r.lift(new _d(t,e,n))}}class _d{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new wd(t,this.nextOrObserver,this.error,this.complete))}}class wd extends f{constructor(t,e,n,s){super(t),this._tapNext=vd,this._tapError=vd,this._tapComplete=vd,this._tapError=n||vd,this._tapComplete=s||vd,r(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||vd,this._tapError=e.error||vd,this._tapComplete=e.complete||vd)}_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 bd 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)}}function Cd(t,e){return new y(e?n=>e.schedule(Sd,0,{error:t,subscriber:n}):e=>e.error(t))}function Sd({error:t,subscriber:e}){e.error(t)}class xd{constructor(t,e,n,r){this.email=t,this.id=e,this._token=n,this._tokenExpirationDate=r}get token(){return!this._tokenExpirationDate||new Date>this._tokenExpirationDate?null:this._token}}const Ed=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),kd={};class Ad{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Od(t,this.resultSelector))}}class Od extends D{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(kd),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++){const e=t[n];this.add(R(this,e,e,n))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n,r,s){const i=this.values,o=this.toRespond?i[n]===kd?--this.toRespond:this.toRespond:0;i[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.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 Td=new y(t=>t.complete());function Id(t){return t?function(t){return new y(e=>t.schedule(()=>e.complete()))}(t):Td}function Pd(t){return new y(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?F(n):Id()).subscribe(e)})}function Md(){return q(1)}const Rd=(()=>{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 Dd(t){return function(e){return 0===t?Id():e.lift(new Vd(t))}}class Vd{constructor(t){if(this.total=t,this.total<0)throw new Rd}call(t,e){return e.subscribe(new Nd(t,this.total))}}class Nd extends f{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 jd(t=Ld){return e=>e.lift(new Ud(t))}class Ud{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Fd(t,this.errorFactory))}}class Fd extends f{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 Ld(){return new Ed}function Hd(t=null){return e=>e.lift(new $d(t))}class $d{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new qd(t,this.defaultValue))}}class qd extends f{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 zd(t){return e=>0===t?Id():e.lift(new Gd(t))}class Gd{constructor(t){if(this.total=t,this.total<0)throw new Rd}call(t,e){return e.subscribe(new Bd(t,this.total))}}class Bd extends f{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 Wd(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Mh((e,n)=>t(e,n,r)):v,zd(1),n?Hd(e):jd(()=>new Ed))}class Zd{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new Qd(t,this.predicate,this.thisArg,this.source))}}class Qd extends f{constructor(t,e,n,r){super(t),this.predicate=e,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function Kd(t,e){return"function"==typeof e?n=>n.pipe(Kd((n,r)=>F(t(n,r)).pipe(V((t,s)=>e(n,t,r,s))))):e=>e.lift(new Jd(t))}class Jd{constructor(t){this.project=t}call(t,e){return e.subscribe(new Yd(t,this.project))}}class Yd extends D{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,t,n)}_innerSub(t,e,n){const r=this.innerSubscription;r&&r.unsubscribe();const s=new k(this,e,n),i=this.destination;i.add(s),this.innerSubscription=R(this,t,void 0,void 0,s),this.innerSubscription!==s&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,r,s){this.destination.next(e)}}function Xd(...t){return Md()(Ih(...t))}class tp{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new ep(t,this.accumulator,this.seed,this.hasSeed))}}class ep extends f{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)}}class np{constructor(t){this.callback=t}call(t,e){return e.subscribe(new rp(t,this.callback))}}class rp extends f{constructor(t,e){super(t),this.add(new h(e))}}class sp{constructor(t,e){this.id=t,this.url=e}}class ip extends sp{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 op extends sp{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ap extends sp{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class lp extends sp{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class cp extends sp{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 up extends sp{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 hp extends sp{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 dp extends sp{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 pp extends sp{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 fp{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class gp{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class mp{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vp{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yp{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _p{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wp{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}')`}}let bp=(()=>{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&&ji(0,"router-outlet")},directives:function(){return[kg]},encapsulation:2}),t})();class Cp{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 Sp(t){return new Cp(t)}function xp(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Ep(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 i=0;i<r.length;i++){const e=r[i],n=t[i];if(e.startsWith(":"))s[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,r.length),posParams:s}}class kp{constructor(t,e){this.routes=t,this.module=e}}function Ap(t,e=""){for(let n=0;n<t.length;n++){const r=t[n];Op(r,Tp(e,r))}}function Op(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&&"primary"!==t.outlet)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&&Ap(t.children,e)}function Tp(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Ip(t){const e=t.children&&t.children.map(Ip),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=bp),n}function Pp(t,e){const n=Object.keys(t),r=Object.keys(e);if(!n||!r||n.length!=r.length)return!1;let s;for(let i=0;i<n.length;i++)if(s=n[i],!Mp(t[s],e[s]))return!1;return!0}function Mp(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every(t=>e.indexOf(t)>-1):t===e}function Rp(t){return Array.prototype.concat.apply([],t)}function Dp(t){return t.length>0?t[t.length-1]:null}function Vp(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Np(t){return Li(t)?t:Fi(t)?F(Promise.resolve(t)):Ih(t)}function jp(t,e,n){return n?function(t,e){return Pp(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Hp(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=>Mp(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!!Hp(n.segments.slice(0,s.length),s)&&!r.hasChildren();if(n.segments.length===s.length){if(!Hp(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),i=s.slice(n.segments.length);return!!Hp(n.segments,t)&&!!n.children.primary&&e(n.children.primary,r,i)}}(e,n,n.segments)}(t.root,e.root)}class Up{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Sp(this.queryParams)),this._queryParamMap}toString(){return Gp.serialize(this)}}class Fp{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Vp(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Bp(this)}}class Lp{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Sp(this.parameters)),this._parameterMap}toString(){return Yp(this)}}function Hp(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function $p(t,e){let n=[];return Vp(t.children,(t,r)=>{"primary"===r&&(n=n.concat(e(t,r)))}),Vp(t.children,(t,r)=>{"primary"!==r&&(n=n.concat(e(t,r)))}),n}class qp{}class zp{parse(t){const e=new rf(t);return new Up(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+function t(e,n){if(!e.hasChildren())return Bp(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",r=[];return Vp(e.children,(e,n)=>{"primary"!==n&&r.push(`${n}:${t(e,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=$p(e,(n,r)=>"primary"===r?[t(e.children.primary,!1)]:[`${r}:${t(n,!1)}`]);return`${Bp(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=>`${Zp(e)}=${Zp(t)}`).join("&"):`${Zp(e)}=${Zp(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const Gp=new zp;function Bp(t){return t.segments.map(t=>Yp(t)).join("/")}function Wp(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zp(t){return Wp(t).replace(/%3B/gi,";")}function Qp(t){return Wp(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Kp(t){return decodeURIComponent(t)}function Jp(t){return Kp(t.replace(/\+/g,"%20"))}function Yp(t){return`${Qp(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Qp(t)}=${Qp(e[t])}`).join("")}`;var e}const Xp=/^[^\/()?;=#]+/;function tf(t){const e=t.match(Xp);return e?e[0]:""}const ef=/^[^=?&#]+/,nf=/^[^?&#]+/;class rf{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Fp([],{}):new Fp([],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 Fp(t,e)),n}parseSegment(){const t=tf(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Lp(Kp(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=tf(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=tf(this.remaining);t&&(n=t,this.capture(n))}t[Kp(e)]=Kp(n)}parseQueryParam(t){const e=function(t){const e=t.match(ef);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(nf);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=Jp(e),s=Jp(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=tf(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="primary");const i=this.parseChildren();e[s]=1===Object.keys(i).length?i.primary:new Fp([],i),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 sf{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=of(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=of(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=af(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return af(t,this._root).map(t=>t.value)}}function of(t,e){if(t===e.value)return e;for(const n of e.children){const e=of(t,n);if(e)return e}return null}function af(t,e){if(t===e.value)return[e];for(const n of e.children){const r=af(t,n);if(r.length)return r.unshift(e),r}return[]}class lf{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function cf(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class uf extends sf{constructor(t,e){super(t),this.snapshot=e,mf(this,t)}toString(){return this.snapshot.toString()}}function hf(t,e){const n=function(t,e){const n=new ff([],{},{},"",{},"primary",e,null,t.root,-1,{});return new gf("",new lf(n,[]))}(t,e),r=new bd([new Lp("",{})]),s=new bd({}),i=new bd({}),o=new bd({}),a=new bd(""),l=new df(r,s,o,a,i,"primary",e,n.root);return l.snapshot=n.root,new uf(new lf(l,[]),n)}class df{constructor(t,e,n,r,s,i,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,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(V(t=>Sp(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(V(t=>Sp(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function pf(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 ff{constructor(t,e,n,r,s,i,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,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=Sp(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Sp(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class gf extends sf{constructor(t,e){super(e),this.url=t,mf(this,e)}toString(){return vf(this._root)}}function mf(t,e){e.value._routerState=t,e.children.forEach(e=>mf(t,e))}function vf(t){const e=t.children.length>0?` { ${t.children.map(vf).join(", ")} } `:"";return`${t.value}${e}`}function yf(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Pp(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Pp(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(!Pp(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Pp(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function _f(t,e){var n,r;return Pp(t.params,e.params)&&Hp(n=t.url,r=e.url)&&n.every((t,e)=>Pp(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||_f(t.parent,e.parent))}function wf(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function bf(t,e,n,r,s){let i={};return r&&Vp(r,(t,e)=>{i[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new Up(n.root===t?e:function t(e,n,r){const s={};return Vp(e.children,(e,i)=>{s[i]=e===n?r:t(e,n,r)}),new Fp(e.segments,s)}(n.root,t,e),i,s)}class Cf{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&wf(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!==Dp(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Sf{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function xf(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function Ef(t,e,n){if(t||(t=new Fp([],{})),0===t.segments.length&&t.hasChildren())return kf(t,e,n);const r=function(t,e,n){let r=0,s=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(r>=n.length)return i;const e=t.segments[s],o=xf(n[r]),a=r<n.length-1?n[r+1]:null;if(s>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!If(o,a,e))return i;r+=2}else{if(!If(o,{},e))return i;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 Fp(t.segments.slice(0,r.pathIndex),{});return e.children.primary=new Fp(t.segments.slice(r.pathIndex),t.children),kf(e,0,s)}return r.match&&0===s.length?new Fp(t.segments,{}):r.match&&!t.hasChildren()?Af(t,e,n):r.match?kf(t,0,s):Af(t,e,n)}function kf(t,e,n){if(0===n.length)return new Fp(t.segments,{});{const r=function(t){return"object"==typeof t[0]&&null!==t[0]&&t[0].outlets?t[0].outlets:{primary:t}}(n),s={};return Vp(r,(n,r)=>{null!==n&&(s[r]=Ef(t.children[r],e,n))}),Vp(t.children,(t,e)=>{void 0===r[e]&&(s[e]=t)}),new Fp(t.segments,s)}}function Af(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=Of(n[s].outlets);return new Fp(r,t)}if(0===s&&wf(n[0])){r.push(new Lp(t.segments[e].path,n[0])),s++;continue}const i=xf(n[s]),o=s<n.length-1?n[s+1]:null;i&&o&&wf(o)?(r.push(new Lp(i,Tf(o))),s+=2):(r.push(new Lp(i,{})),s++)}return new Fp(r,{})}function Of(t){const e={};return Vp(t,(t,n)=>{null!==t&&(e[n]=Af(new Fp([],{}),0,t))}),e}function Tf(t){const e={};return Vp(t,(t,n)=>e[n]=""+t),e}function If(t,e,n){return t==n.path&&Pp(e,n.parameters)}class Pf{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),yf(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=cf(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),Vp(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=cf(t),s=t.value.component?n.children:e;Vp(r,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const r=cf(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new _p(t.value.snapshot))}),t.children.length&&this.forwardEvent(new vp(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(yf(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),Mf(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 Mf(t){yf(t.value),t.children.forEach(Mf)}function Rf(t){return"function"==typeof t}function Df(t){return t instanceof Up}class Vf{constructor(t){this.segmentGroup=t||null}}class Nf{constructor(t){this.urlTree=t}}function jf(t){return new y(e=>e.error(new Vf(t)))}function Uf(t){return new y(e=>e.error(new Nf(t)))}function Ff(t){return new y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Lf{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,"primary").pipe(V(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(fd(t=>{if(t instanceof Nf)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Vf)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(V(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(fd(t=>{if(t instanceof Vf)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 Fp([],{primary:t}):t;return new Up(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(V(t=>new Fp([],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 Ih({});const n=[],r=[],s={};return Vp(t,(t,i)=>{const o=e(i,t).pipe(V(t=>s[i]=t));"primary"===i?n.push(o):r.push(o)}),Ih.apply(null,n.concat(r)).pipe(Md(),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Mh((e,n)=>t(e,n,r)):v,Dd(1),n?Hd(e):jd(()=>new Ed))}(),V(()=>s))}(n.children,(n,r)=>this.expandSegmentGroup(t,e,r,n))}expandSegment(t,e,n,r,s,i){return Ih(...n).pipe(V(o=>this.expandSegmentAgainstRoute(t,e,n,o,r,s,i).pipe(fd(t=>{if(t instanceof Vf)return Ih(null);throw t}))),Md(),Wd(t=>!!t),fd((t,n)=>{if(t instanceof Ed||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,r,s))return Ih(new Fp([],{}));throw new Vf(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,r,s,i,o){return zf(r)!==i?jf(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i):jf(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Uf(s):this.lineralizeSegments(n,s).pipe(L(n=>{const s=new Fp(n,{});return this.expandSegment(t,s,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Hf(e,r,s);if(!o)return jf(e);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?Uf(u):this.lineralizeSegments(r,u).pipe(L(r=>this.expandSegment(t,e,n,r.concat(s.slice(l)),i,!1)))}matchSegmentAgainstRoute(t,e,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(V(t=>(n._loadedConfig=t,new Fp(r,{})))):Ih(new Fp(r,{}));const{matched:s,consumedSegments:i,lastChild:o}=Hf(e,n,r);if(!s)return jf(e);const a=r.slice(o);return this.getChildConfig(t,n,r).pipe(L(t=>{const n=t.module,r=t.routes,{segmentGroup:s,slicedSegments:o}=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some(n=>qf(t,e,n)&&"primary"!==zf(n))}(t,n,r)?{segmentGroup:$f(new Fp(e,function(t,e){const n={};n.primary=e;for(const r of t)""===r.path&&"primary"!==zf(r)&&(n[zf(r)]=new Fp([],{}));return n}(r,new Fp(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>qf(t,e,n))}(t,n,r)?{segmentGroup:$f(new Fp(t.segments,function(t,e,n,r){const s={};for(const i of n)qf(t,e,i)&&!r[zf(i)]&&(s[zf(i)]=new Fp([],{}));return Object.assign(Object.assign({},r),s)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,i,a,r);return 0===o.length&&s.hasChildren()?this.expandChildren(n,r,s).pipe(V(t=>new Fp(i,t))):0===r.length&&0===o.length?Ih(new Fp(i,{})):this.expandSegment(n,s,r,o,"primary",!0).pipe(V(t=>new Fp(i.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Ih(new kp(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Ih(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(L(n=>n?this.configLoader.load(t.injector,e).pipe(V(t=>(e._loadedConfig=t,t))):function(t){return new y(e=>e.error(xp(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Ih(new kp([],t))}runCanLoadGuards(t,e,n){const r=e.canLoad;return r&&0!==r.length?F(r).pipe(V(r=>{const s=t.get(r);let i;if(function(t){return t&&Rf(t.canLoad)}(s))i=s.canLoad(e,n);else{if(!Rf(s))throw new Error("Invalid CanLoad guard");i=s(e,n)}return Np(i)})).pipe(Md(),yd(t=>{if(!Df(t))return;const e=xp(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(s=t=>!0===t,t=>t.lift(new Zd(s,void 0,t)))):Ih(!0);var s}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Ih(n);if(r.numberOfChildren>1||!r.children.primary)return Ff(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 Up(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Vp(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 i={};return Vp(e.children,(e,s)=>{i[s]=this.createSegmentGroup(t,e,n,r)}),new Fp(s,i)}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 Hf(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||Ep)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function $f(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Fp(t.segments.concat(e.segments),e.children)}return t}function qf(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function zf(t){return t.outlet||"primary"}class Gf{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Bf{constructor(t,e){this.component=t,this.route=e}}function Wf(t,e,n){const r=t._root;return function t(e,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=cf(n);return e.children.forEach(e=>{!function(e,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,a=n?n.value:null,l=r?r.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Hp(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Hp(t.url,e.url)||!Pp(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!_f(t,e)||!Pp(t.queryParams,e.queryParams);case"paramsChange":default:return!_f(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Gf(s)):(o.data=a.data,o._resolvedData=a._resolvedData),t(e,n,o.component?l?l.children:null:r,s,i),c&&i.canDeactivateChecks.push(new Bf(l&&l.outlet&&l.outlet.component||null,a))}else a&&Qf(n,l,i),i.canActivateChecks.push(new Gf(s)),t(e,null,o.component?l?l.children:null:r,s,i)}(e,o[e.value.outlet],r,s.concat([e.value]),i),delete o[e.value.outlet]}),Vp(o,(t,e)=>Qf(t,r.getContext(e),i)),i}(r,e?e._root:null,n,[r.value])}function Zf(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 Qf(t,e,n){const r=cf(t),s=t.value;Vp(r,(t,r)=>{Qf(t,s.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Bf(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}const Kf=Symbol("INITIAL_VALUE");function Jf(){return Kd(t=>function(...t){let e=null,n=null;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]),z(t,n).lift(new Ad(e))}(...t.map(t=>t.pipe(zd(1),function(...t){const e=t[t.length-1];return E(e)?(t.pop(),n=>Xd(t,n,e)):e=>Xd(t,e)}(Kf)))).pipe(function(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new tp(t,e,n))}}((t,e)=>{let n=!1;return e.reduce((t,r,s)=>{if(t!==Kf)return t;if(r===Kf&&(n=!0),!n){if(!1===r)return r;if(s===e.length-1||Df(r))return r}return t},t)},Kf),Mh(t=>t!==Kf),V(t=>Df(t)?t:!0===t),zd(1)))}function Yf(t,e){return null!==t&&e&&e(new yp(t)),Ih(!0)}function Xf(t,e){return null!==t&&e&&e(new mp(t)),Ih(!0)}function tg(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?Ih(r.map(r=>Pd(()=>{const s=Zf(r,e,n);let i;if(function(t){return t&&Rf(t.canActivate)}(s))i=Np(s.canActivate(e,t));else{if(!Rf(s))throw new Error("Invalid CanActivate guard");i=Np(s(e,t))}return i.pipe(Wd())}))).pipe(Jf()):Ih(!0)}function eg(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=>Pd(()=>Ih(e.guards.map(s=>{const i=Zf(s,e.node,n);let o;if(function(t){return t&&Rf(t.canActivateChild)}(i))o=Np(i.canActivateChild(r,t));else{if(!Rf(i))throw new Error("Invalid CanActivateChild guard");o=Np(i(r,t))}return o.pipe(Wd())})).pipe(Jf())));return Ih(s).pipe(Jf())}class ng{}class rg{constructor(t,e,n,r,s,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){try{const t=og(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new ff([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new lf(n,e),s=new gf(this.url,r);return this.inheritParamsAndData(s._root),Ih(s)}catch(t){return new y(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=pf(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=$p(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)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,r){for(const i of t)try{return this.processSegmentAgainstRoute(i,e,n,r)}catch(s){if(!(s instanceof ng))throw s}if(this.noLeftoversInUrl(e,n,r))return[];throw new ng}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo)throw new ng;if((t.outlet||"primary")!==r)throw new ng;let s,i=[],o=[];if("**"===t.path){const i=n.length>0?Dp(n).parameters:{};s=new ff(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cg(t),r,t.component,t,sg(e),ig(e)+n.length,ug(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new ng;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(e.matcher||Ep)(n,t,e);if(!r)throw new ng;const s={};Vp(r.posParams,(t,e)=>{s[e]=t.path});const i=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:i}}(e,t,n);i=a.consumedSegments,o=n.slice(a.lastChild),s=new ff(i,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cg(t),r,t.component,t,sg(e),ig(e)+i.length,ug(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=og(e,i,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new lf(s,t)]}if(0===a.length&&0===c.length)return[new lf(s,[])];const u=this.processSegment(a,l,c,"primary");return[new lf(s,u)]}}function sg(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function ig(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 og(t,e,n,r,s){if(n.length>0&&function(t,e,n){return n.some(n=>ag(t,e,n)&&"primary"!==lg(n))}(t,n,r)){const s=new Fp(e,function(t,e,n,r){const s={};s.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&"primary"!==lg(i)){const n=new Fp([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[lg(i)]=n}return s}(t,e,r,new Fp(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=>ag(t,e,n))}(t,n,r)){const i=new Fp(t.segments,function(t,e,n,r,s,i){const o={};for(const a of r)if(ag(t,n,a)&&!s[lg(a)]){const n=new Fp([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===i?t.segments.length:e.length,o[lg(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,r,t.children,s));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}const i=new Fp(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function ag(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function lg(t){return t.outlet||"primary"}function cg(t){return t.data||{}}function ug(t){return t.resolve||{}}function hg(t){return function(e){return e.pipe(Kd(e=>{const n=t(e);return n?F(n).pipe(V(()=>e)):F([e])}))}}class dg{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const pg=new Vt("ROUTES");class fg{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(V(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new kp(Rp(r.injector.get(pg)).map(Ip),r)}))}loadModuleFactory(t){return"string"==typeof t?F(this.loader.load(t)):Np(t()).pipe(L(t=>t instanceof Kt?Ih(t):F(this.compiler.compileModuleAsync(t))))}}class gg{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new mg,this.attachRef=null}}class mg{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 gg,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class vg{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function yg(t){throw t}function _g(t,e,n){return e.parse("/")}function wg(t,e){return Ih(null)}let bg=(()=>{class t{constructor(t,e,n,r,s,i,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new S,this.errorHandler=yg,this.malformedUriErrorHandler=_g,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:wg,afterPreactivation:wg},this.urlHandlingStrategy=new vg,this.routeReuseStrategy=new dg,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(Qt),this.console=s.get(Qa);const l=s.get(ll);this.isNgZoneEnabled=l instanceof ll,this.resetConfig(a),this.currentUrlTree=new Up(new Fp([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new fg(i,o,t=>this.triggerEvent(new fp(t)),t=>this.triggerEvent(new gp(t))),this.routerState=hf(this.currentUrlTree,this.rootComponentType),this.transitions=new bd({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(Mh(t=>0!==t.id),V(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Kd(t=>{let n=!1,r=!1;return Ih(t).pipe(yd(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}}),Kd(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Ih(t).pipe(Kd(t=>{const n=this.transitions.getValue();return e.next(new ip(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?Td:[t]}),Kd(t=>Promise.resolve(t)),(r=this.ngModule.injector,s=this.configLoader,i=this.urlSerializer,o=this.config,function(t){return t.pipe(Kd(t=>function(t,e,n,r,s){return new Lf(t,e,n,r,s).apply()}(r,s,i,t.extractedUrl,o).pipe(V(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),yd(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,s){return function(i){return i.pipe(L(i=>function(t,e,n,r,s="emptyOnly",i="legacy"){return new rg(t,e,n,r,s,i).recognize()}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe(V(t=>Object.assign(Object.assign({},i),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),yd(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),yd(t=>{const n=new cp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var r,s,i,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:i,extras:o}=t,a=new ip(n,this.serializeUrl(r),s,i);e.next(a);const l=hf(r,this.rootComponentType).snapshot;return Ih(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Td}),hg(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),yd(t=>{const e=new up(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),V(t=>Object.assign(Object.assign({},t),{guards:Wf(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(L(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?Ih(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return F(t).pipe(L(t=>function(t,e,n,r,s){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?Ih(i.map(i=>{const o=Zf(i,e,s);let a;if(function(t){return t&&Rf(t.canDeactivate)}(o))a=Np(o.canDeactivate(t,e,n,r));else{if(!Rf(o))throw new Error("Invalid CanDeactivate guard");a=Np(o(t,e,n,r))}return a.pipe(Wd())})).pipe(Jf()):Ih(!0)}(t.component,t.route,n,e,r)),Wd(t=>!0!==t,!0))}(o,r,s,t).pipe(L(n=>n&&"boolean"==typeof n?function(t,e,n,r){return F(e).pipe(Ph(e=>F([Xf(e.route.parent,r),Yf(e.route,r),eg(t,e.path,n),tg(t,e.route,n)]).pipe(Md(),Wd(t=>!0!==t,!0))),Wd(t=>!0!==t,!0))}(r,i,t,e):Ih(n)),V(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),yd(t=>{if(Df(t.guardsResult)){const e=xp(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),yd(t=>{const e=new hp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Mh(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new ap(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),hg(t=>{if(t.guards.canActivateChecks.length)return Ih(t).pipe(yd(t=>{const e=new dp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Kd(t=>{let n=!1;return Ih(t).pipe((r=this.paramsInheritanceStrategy,s=this.ngModule.injector,function(t){return t.pipe(L(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Ih(t);let i=0;return F(n).pipe(Ph(t=>function(t,e,n,r){return function(t,e,n,r){const s=Object.keys(t);if(0===s.length)return Ih({});const i={};return F(s).pipe(L(s=>function(t,e,n,r){const s=Zf(t,e,r);return Np(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,r).pipe(yd(t=>{i[s]=t}))),Dd(1),L(()=>Object.keys(i).length===s.length?Ih(i):Td))}(t._resolve,t,e,r).pipe(V(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),pf(t,n).resolve),null)))}(t.route,e,r,s)),yd(()=>i++),Dd(1),L(e=>i===n.length?Ih(t):Td))}))}),yd({next:()=>n=!0,complete:()=>{if(!n){const n=new ap(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}),yd(t=>{const e=new pp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),hg(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),V(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 i=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 lf(s,i)}{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 df(new bd((s=n.value).url),new bd(s.params),new bd(s.queryParams),new bd(s.fragment),new bd(s.data),s.outlet,s.component,s),i=n.children.map(n=>t(e,n));return new lf(r,i)}}var s}(t,e._root,n?n._root:void 0);return new uf(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),yd(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)}),(i=this.rootContexts,o=this.routeReuseStrategy,a=t=>this.triggerEvent(t),V(t=>(new Pf(o,t.targetRouterState,t.currentRouterState,a).activate(i),t))),yd({next(){n=!0},complete(){n=!0}}),(s=()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new ap(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 np(s))),fd(n=>{if(r=!0,(s=n)&&s.ngNavigationCancelingError){const r=Df(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new ap(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 lp(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(i){t.reject(i)}}var s;return Td}));var s,i,o,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=>{let e=this.parseUrl(t.url);const n="popstate"===t.type?"popstate":"hashchange",r=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Ap(t),this.config=t.map(Ip),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:r,fragment:s,preserveQueryParams:i,queryParamsHandling:o,preserveFragment:a}=e;cr()&&i&&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(o)switch(o){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=i?this.currentUrlTree.queryParams:r||null;return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,n,r,s){if(0===n.length)return bf(e.root,e.root,e,r,s);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Cf(!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 Vp(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 Cf(n,e,r)}(n);if(i.toRoot())return bf(e.root,new Fp([],{}),e,r,s);const o=function(t,e,n){if(t.isAbsolute)return new Sf(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Sf(t,t===e.root,0)}const r=wf(t.commands[0])?0:1;return function(t,e,n){let r=t,s=e,i=n;for(;i>s;){if(i-=s,r=r.parent,!r)throw new Error("Invalid number of '../'");s=r.segments.length}return new Sf(r,!1,s-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=o.processChildren?kf(o.segmentGroup,o.index,i.commands):Ef(o.segmentGroup,o.index,i.commands);return bf(o.segmentGroup,a,e,r,s)}(l,this.currentUrlTree,t,u,c)}navigateByUrl(t,e={skipLocationChange:!1}){cr()&&this.isNgZoneEnabled&&!ll.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=Df(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(Df(t))return jp(this.currentUrlTree,t,e);const n=this.parseUrl(t);return jp(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 op(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 i=this.getTransition();if(i&&"imperative"!==e&&"imperative"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"hashchange"==e&&"popstate"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"popstate"==e&&"hashchange"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,a,l;s?(o=s.resolve,a=s.reject,l=s.promise):l=new Promise((t,e)=>{o=t,a=e});const c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:o,reject:a,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.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)(Gt(ni),Gt(qp),Gt(mg),Gt(tc),Gt(vi),Gt(Tl),Gt(il),Gt(void 0))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),Cg=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.route=e,this.commands=[],null==n&&r.setAttribute(s.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){cr()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:xg(this.skipLocationChange),replaceUrl:xg(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:xg(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:xg(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Pi(bg),Pi(df),Mi("tabindex"),Pi(Po),Pi(Ao))},t.\u0275dir=fe({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&Hi("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),t})(),Sg=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof op&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){cr()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,r){if(0!==t||e||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:xg(this.skipLocationChange),replaceUrl:xg(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:xg(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:xg(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Pi(bg),Pi(df),Pi(Ql))},t.\u0275dir=fe({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Hi("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(so("href",e.href,pr),Ai("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[po]}),t})();function xg(t){return""===t||!!t}let Eg=(()=>{class t{constructor(t,e,n,r,s,i){this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.link=s,this.linkWithHref=i,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(t=>{t instanceof op&&this.update()})}ngAfterContentInit(){this.links.changes.subscribe(t=>this.update()),this.linksWithHrefs.changes.subscribe(t=>this.update()),this.update()}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){this.subscription.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(Pi(bg),Pi(Ao),Pi(Po),Pi(ti),Pi(Cg,8),Pi(Sg,8))},t.\u0275dir=fe({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){var r;1&t&&(Na(n,Cg,!0),Na(n,Sg,!0)),2&t&&(Va(r=ja())&&(e.links=r),Va(r=ja())&&(e.linksWithHrefs=r))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[po]}),t})(),kg=(()=>{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 xa,this.deactivateEvents=new xa,this.name=r||"primary",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 Ag(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)(Pi(mg),Pi(Xo),Pi(ko),Mi("name"),Pi(ti))},t.\u0275dir=fe({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Ag{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===df?this.route:t===mg?this.childContexts:this.parent.get(t,e)}}class Og{}class Tg{preload(t,e){return Ih(null)}}let Ig=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.injector=r,this.preloadingStrategy=s,this.loader=new fg(e,n,e=>t.triggerEvent(new fp(e)),e=>t.triggerEvent(new gp(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Mh(t=>t instanceof op),Ph(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Qt);return this.processRoutes(t,this.router.config)}ngOnDestroy(){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 F(n).pipe(q(),V(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(L(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(Gt(bg),Gt(Tl),Gt(il),Gt(vi),Gt(Og))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),Pg=(()=>{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 ip?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof op&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof wp&&(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 wp(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)(Gt(bg),Gt(gc),Gt(void 0))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const Mg=new Vt("ROUTER_CONFIGURATION"),Rg=new Vt("ROUTER_FORROOT_GUARD"),Dg=[tc,{provide:qp,useClass:zp},{provide:bg,useFactory:function(t,e,n,r,s,i,o,a={},l,c){const u=new bg(null,t,e,n,r,s,i,Rp(o));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=Ul();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:[qp,mg,tc,vi,Tl,il,pg,Mg,[class{},new et],[class{},new et]]},mg,{provide:df,useFactory:function(t){return t.routerState.root},deps:[bg]},{provide:Tl,useClass:Ml},Ig,Tg,class{preload(t,e){return e().pipe(fd(()=>Ih(null)))}},{provide:Mg,useValue:{enableTracing:!1}}];function Vg(){return new Cl("Router",bg)}let Ng=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Dg,Lg(e),{provide:Rg,useFactory:Fg,deps:[[bg,new et,new rt]]},{provide:Mg,useValue:n||{}},{provide:Ql,useFactory:Ug,deps:[Ll,[new tt(Jl),new et],Mg]},{provide:Pg,useFactory:jg,deps:[bg,gc,Mg]},{provide:Og,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Tg},{provide:Cl,multi:!0,useFactory:Vg},[Hg,{provide:Ha,multi:!0,useFactory:$g,deps:[Hg]},{provide:zg,useFactory:qg,deps:[Hg]},{provide:Za,multi:!0,useExisting:zg}]]}}static forChild(e){return{ngModule:t,providers:[Lg(e)]}}}return t.\u0275mod=de({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)(Gt(Rg,8),Gt(bg,8))}}),t})();function jg(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Pg(t,e,n)}function Ug(t,e,n={}){return n.useHash?new Xl(t,e):new Yl(t,e)}function Fg(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Lg(t){return[{provide:yi,multi:!0,useValue:t},{provide:pg,multi:!0,useValue:t}]}let Hg=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new S}appInitializer(){return this.injector.get($l,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(bg),r=this.injector.get(Mg);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?Ih(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(Mg),n=this.injector.get(Ig),r=this.injector.get(Pg),s=this.injector.get(bg),i=this.injector.get(Al);t===i.components[0]&&(this.isLegacyEnabled(e)?s.initialNavigation():this.isLegacyDisabled(e)&&s.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),s.resetRootComponentType(i.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)(Gt(vi))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();function $g(t){return t.appInitializer.bind(t)}function qg(t){return t.bootstrapListener.bind(t)}const zg=new Vt("Router Initializer");let Gg=(()=>{class t{constructor(t,e){this.http=t,this.router=e,this.user=new bd(null)}signup(t,e){return this.http.post("https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=AIzaSyAYCZt2XEjqte1FDmiShuLOELj1WtrqaVE",{email:t,password:e,returnSecureToken:!0}).pipe(fd(this.handleError),yd(t=>{this.handleAuth(t.email,t.localId,t.idToken,+t.expiresIn)}))}login(t,e){return this.http.post("https://identitytoolkit.googleapis.com/v1/accounts:signInWithPassword?key=AIzaSyAYCZt2XEjqte1FDmiShuLOELj1WtrqaVE",{email:t,password:e,returnSecureToken:!0}).pipe(fd(this.handleError),yd(t=>{this.handleAuth(t.email,t.localId,t.idToken,+t.expiresIn)}))}autoLogin(){const t=JSON.parse(localStorage.getItem("userData"));if(!t)return;const e=new xd(t.email,t.id,t._token,new Date(t._tokenExpirationDate));if(e.token){this.user.next(e);const n=new Date(t._tokenExpirationDate).getTime()-(new Date).getTime();this.autoLogout(n)}}logout(){this.user.next(null),this.router.navigate(["./auth"]),localStorage.removeItem("userData"),this.tokenExpirationTimer&&clearTimeout(this.tokenExpirationTimer),this.tokenExpirationTimer=null}autoLogout(t){this.tokenExpirationTimer=setTimeout(()=>{this.logout()},t)}handleAuth(t,e,n,r){const s=new Date((new Date).getTime()+1e3*r),i=new xd(t,e,n,s);this.user.next(i),this.autoLogout(1e3*r),localStorage.setItem("userData",JSON.stringify(i))}handleError(t){let e="An unknown error occured!";if(!t.error||!t.error.error)return Cd(e);switch(t.error.error.message){case"EMAIL_EXISTS":e="This email already exists!";break;case"EMAIL_NOT_FOUND":e="Incorrect email or password.";break;case"INVALID_PASSWORD":e="Incorrect email or password."}return Cd(e)}}return t.\u0275fac=function(e){return new(e||t)(Gt(Jh),Gt(bg))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),Bg=(()=>{class t{constructor(){this.danceMovesChanged=new S,this.danceMoves=[]}setDanceMoves(t){this.danceMoves=t,this.danceMovesChanged.next(this.danceMoves.slice())}getDanceMoves(){return this.danceMoves.slice()}getDanceMove(t){return this.danceMoves[t]}addDanceMove(t){this.danceMoves.push(t),this.danceMovesChanged.next(this.danceMoves.slice())}updateDanceMove(t,e){this.danceMoves[t]=e,this.danceMovesChanged.next(this.danceMoves.slice())}deleteDanceMove(t){this.danceMoves.splice(t,1),this.danceMovesChanged.next(this.danceMoves.slice())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),Wg=(()=>{class t{constructor(t,e){this.http=t,this.danceMovesService=e}storeDanceMoves(){const t=this.danceMovesService.getDanceMoves();this.http.put("https://dance-moves-5afda.firebaseio.com/dance-moves.json",t).subscribe()}fetchDanceMoves(){return this.http.get("https://dance-moves-5afda.firebaseio.com/dance-moves.json").pipe(V(t=>t.map(t=>Object.assign(Object.assign({},t),{requiredSkills:t.requiredSkills?t.requiredSkills:[]}))),yd(t=>{this.danceMovesService.setDanceMoves(t)}))}}return t.\u0275fac=function(e){return new(e||t)(Gt(Jh),Gt(Bg))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),Zg=(()=>{class t{constructor(t){this.elRef=t,this.isOpen=!1}toggleOpen(t){this.isOpen=!!this.elRef.nativeElement.contains(t.target)&&!this.isOpen}}return t.\u0275fac=function(e){return new(e||t)(Pi(Ao))},t.\u0275dir=fe({type:t,selectors:[["","appDropdown",""]],hostVars:2,hostBindings:function(t,e){1&t&&Hi("click",(function(t){return e.toggleOpen(t)}),!1,Vn),2&t&&Ki("show",e.isOpen)},exportAs:["appDropdown"]}),t})();const Qg=function(t){return{show:t}};function Kg(t,e){if(1&t){const t=Ui();Vi(0,"div",3,4),Vi(2,"li",5),ji(3,"a",6),Ni(),Vi(4,"div",7),Vi(5,"a",8),Hi("click",(function(){return Ge(t),zi().onSaveData()})),eo(6," Save Data "),Ni(),Vi(7,"a",8),Hi("click",(function(){return Ge(t),zi().onLogout()})),eo(8,"Logout"),Ni(),Ni(),Ni()}if(2&t){const t=Ii(1);Mr(4),Ri("ngClass",va(1,Qg,t.isOpen))}}let Jg=(()=>{class t{constructor(t,e){this.dataStorageService=t,this.authService=e,this.isAuthenticated=!1}ngOnInit(){this.userSub=this.authService.user.subscribe(t=>{this.isAuthenticated=!!t})}onSaveData(){this.dataStorageService.storeDanceMoves()}onLogout(){this.authService.logout()}ngOnDestroy(){this.userSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Pi(Wg),Pi(Gg))},t.\u0275cmp=le({type:t,selectors:[["app-header"]],decls:4,vars:1,consts:[[1,"navbar","navbar-dark","navbar-style"],["href","#",1,"navbar-brand","app-logo"],["class","app-dropdown","appDropdown","",4,"ngIf"],["appDropdown","",1,"app-dropdown"],["r","appDropdown"],[1,"nav-item","dropdown","dropdown-name"],["role","button",1,"nav-link","dropdown-toggle","dropdown-link"],[1,"dropdown-menu-right","dropdown-menu",3,"ngClass"],[1,"dropdown-item","dropdown-i-style",3,"click"]],template:function(t,e){1&t&&(Vi(0,"nav",0),Vi(1,"a",1),eo(2," Dance Moves App "),Ni(),Ti(3,Kg,9,3,"div",2),Ni()),2&t&&(Mr(3),Ri("ngIf",e.isAuthenticated))},directives:[hc,Zg,ac],styles:[".navbar-style[_ngcontent-%COMP%]{background-color:#2a3166;padding:.5%;justify-content:space-between}.navbar-style[_ngcontent-%COMP%]   .app-logo[_ngcontent-%COMP%]{color:#4ed897;font-size:30px;font-family:Fredoka One,cursive;margin-left:1%}@media (max-width:991.98px){.navbar-style[_ngcontent-%COMP%]   .app-logo[_ngcontent-%COMP%]{font-size:20px}}.navbar-style[_ngcontent-%COMP%]   .dropdown-name[_ngcontent-%COMP%]{margin-left:-25%;list-style:none;border-radius:5px;padding:0!important}.navbar-style[_ngcontent-%COMP%]   .dropdown-name[_ngcontent-%COMP%]   .dropdown-link[_ngcontent-%COMP%]{color:#f4abaa;font-size:15px;cursor:pointer}.navbar-style[_ngcontent-%COMP%]   .dropdown-i-style[_ngcontent-%COMP%]{color:#000}.navbar-style[_ngcontent-%COMP%]   .dropdown-i-style[_ngcontent-%COMP%]:hover{background-color:#4ed897;color:#fff;cursor:pointer}"]}),t})(),Yg=(()=>{class t{constructor(t,e,n){this.document=t,this.rendererFactory=e,this.cookieService=n,this.isDarkMode=!1,this.cookieValue="UNKNOWN",this.renderer2=e.createRenderer(null,null)}onSetConstrast(){this.isDarkMode?(this.renderer2.removeClass(this.document.body,t.DARK),this.cookieService.set("Mode","UNKNOWN"),this.cookieValue=this.cookieService.get("Mode")):(this.renderer2.addClass(this.document.body,t.DARK),this.cookieService.set("Mode","dark"),this.cookieValue=this.cookieService.get("Mode")),this.isDarkMode=!this.isDarkMode}}return t.DARK="dark",t.\u0275fac=function(e){return new(e||t)(Gt(Fl),Gt(To),Gt(pd))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const Xg=["modeSwitch"];let tm=(()=>{class t{constructor(t,e){this.wcagService=t,this.cookieService=e,this.cookieValue=this.wcagService.cookieValue,this.cookieValue=this.cookieService.get("Mode")}ngAfterViewInit(){"dark"===this.cookieValue&&this.triggerClick()}onSwitchContrast(){this.wcagService.onSetConstrast()}triggerClick(){this.modeSwitch.nativeElement.click()}}return t.\u0275fac=function(e){return new(e||t)(Pi(Yg),Pi(pd))},t.\u0275cmp=le({type:t,selectors:[["app-footer"]],viewQuery:function(t,e){var n,r,s,i;1&t&&(r=Xg,s=!0,function(t,e,n,r,s,i){t.firstCreatePass&&Fa(t,new Ta(n,r,!1,s),-1),Ua(t,e)}(ze(),qe(),r,s,i)),2&t&&Va(n=ja())&&(e.modeSwitch=n.first)},decls:28,vars:0,consts:[[1,"d-flex","justify-content-between"],[1,"text-left"],["href","https://icons8.com","target","_blank",1,"footer-link-pink"],["href","https://www.freepik.com/","target","_blank",1,"footer-link-green"],[1,"d-flex"],["xmlns","http://www.w3.org/2000/svg","x","0px","y","0px","width","25","height","25","viewBox","0 0 172 172",1,"day-icon",2,"fill","#000000"],["fill","none","fill-rule","nonzero","stroke","none","stroke-width","1","stroke-linecap","butt","stroke-linejoin","miter","stroke-miterlimit","10","stroke-dasharray","","stroke-dashoffset","0","font-family","none","font-weight","none","font-size","none","text-anchor","none",2,"mix-blend-mode","normal"],["d","M0,172v-172h172v172z","fill","none"],["fill","#F4ABAA"],["d","M118.25,21.5c-20.7475,\n                                        0 -32.25,14.97833 -32.25,14.97833c0,\n                                        0 -11.5025,-14.97833 -32.25,\n                                        -14.97833c-21.77233,0 -39.41667,\n                                        17.64433 -39.41667,39.41667c0,\n                                        29.89217 35.20267,58.85983 45.01383,\n                                        68.01167c11.30183,10.535 26.65283,\n                                        24.08 26.65283,24.08c0,0 15.351,\n                                        -13.545 26.65283,-24.08c9.81117,\n                                        -9.15183 45.01383,-38.1195 45.01383,\n                                        -68.01167c0,-21.77233 -17.64433,\n                                        -39.41667 -39.41667,-39.41667z"],[1,"custom-control","custom-switch","switch"],["type","checkbox","id","customSwitch1",1,"custom-control-input",3,"click"],["modeSwitch",""],["for","customSwitch1",1,"custom-control-label"],["xmlns","http://www.w3.org/2000/svg","x","0px","y","0px","width","25","height","25","viewBox","0 0 172 172",1,"night-icon",2,"fill","#000000"],["fill","#adb5bd"],["d","M118.25,21.5c-20.7475,\n                                0 -32.25,14.97833 -32.25,14.97833c0,\n                                0 -11.5025,-14.97833 -32.25,\n                                -14.97833c-21.77233,0 -39.41667,\n                                17.64433 -39.41667,39.41667c0,\n                                29.89217 35.20267,58.85983 45.01383,\n                                68.01167c11.30183,10.535 26.65283,\n                                24.08 26.65283,24.08c0,0 15.351,\n                                -13.545 26.65283,-24.08c9.81117,\n                                -9.15183 45.01383,-38.1195 45.01383,\n                                -68.01167c0,-21.77233 -17.64433,\n                                -39.41667 -39.41667,-39.41667z"]],template:function(t,e){1&t&&(Vi(0,"div",0),Vi(1,"span",1),eo(2," Icons by "),Vi(3,"a",2),eo(4," Icons8"),Ni(),eo(5,". "),ji(6,"br"),eo(7," Photos by"),Vi(8,"a",3),eo(9," Freepik"),Ni(),eo(10,". "),Ni(),Vi(11,"div",4),Vi(12,"span"),fn(),Vi(13,"svg",5),Vi(14,"g",6),ji(15,"path",7),Vi(16,"g",8),ji(17,"path",9),Ni(),Ni(),Ni(),Ni(),gn(),Vi(18,"div",10),Vi(19,"input",11,12),Hi("click",(function(){return e.onSwitchContrast()})),Ni(),Vi(21,"label",13),Vi(22,"span"),fn(),Vi(23,"svg",14),Vi(24,"g",6),ji(25,"path",7),Vi(26,"g",15),ji(27,"path",16),Ni(),Ni(),Ni(),Ni(),Ni(),Ni(),Ni(),Ni())},styles:["span[_ngcontent-%COMP%]{color:#adb5bd}.footer-link-pink[_ngcontent-%COMP%]{color:#f4abaa!important}.footer-link-green[_ngcontent-%COMP%]{color:#4ed897!important}.custom-switch[_ngcontent-%COMP%]   .custom-control-label[_ngcontent-%COMP%]:after{background-color:#4ed897}.custom-switch[_ngcontent-%COMP%]   .custom-control-label[_ngcontent-%COMP%]:before{background-color:#fff}.custom-switch[_ngcontent-%COMP%]   .custom-control-input[_ngcontent-%COMP%]:checked ~ .custom-control-label[_ngcontent-%COMP%]:before{background-color:#000;border-color:#adb5bd}.night-icon[_ngcontent-%COMP%]{margin-left:-5px}.day-icon[_ngcontent-%COMP%]{margin-right:4px}"]}),t})(),em=(()=>{class t{constructor(t){this.authService=t}ngOnInit(){this.authService.autoLogin()}}return t.\u0275fac=function(e){return new(e||t)(Pi(Gg))},t.\u0275cmp=le({type:t,selectors:[["app-root"]],decls:9,vars:0,consts:[[1,"app-body"],[1,"container"],[1,"row","mt-4"],[1,"col-md-12"],[1,"mx-4","mb-0"],[1,"app-footer","py-2","mx-5","mb-3","border-top"]],template:function(t,e){1&t&&(Vi(0,"div",0),ji(1,"app-header"),Vi(2,"div",1),Vi(3,"div",2),Vi(4,"div",3),ji(5,"router-outlet"),Ni(),Ni(),Ni(),Ni(),ji(6,"hr",4),Vi(7,"div",5),ji(8,"app-footer"),Ni())},directives:[Jg,kg,tm],styles:[".app-body[_ngcontent-%COMP%]{min-height:calc(100vh - 50px)}.app-footer[_ngcontent-%COMP%]{font-size:10px;height:30px}"]}),t})(),nm=(()=>{class t{transform(t){return t.substr(0,50)+" ..."}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ge({name:"shorten",type:t,pure:!0}),t})();const rm=function(t){return[t]};let sm=(()=>{class t{ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=le({type:t,selectors:[["app-dance-move-item"]],inputs:{danceMove:"danceMove",index:"index"},decls:9,vars:9,consts:[["routerLinkActive","active custom-active",1,"list-group-item","clearfix","dance-moves-item",2,"cursor","pointer",3,"routerLink"],[1,"pull-left"],[1,"list-group-item-heading"],[1,"list-group-item-text"],[1,"pull-right"],[1,"img-responsive",2,"max-height","60px",3,"src","alt"]],template:function(t,e){1&t&&(Vi(0,"a",0),Vi(1,"div",1),Vi(2,"h4",2),eo(3),Ni(),Vi(4,"p",3),eo(5),wa(6,"shorten"),Ni(),Ni(),Vi(7,"span",4),ji(8,"img",5),Ni(),Ni()),2&t&&(Ri("routerLink",va(7,rm,e.index)),Mr(3),no(e.danceMove.name),Mr(2),no(function(t,e,n){const r=qe(),s=Re(r,6);return Sa(r,Ca(r,6)?_a(r,Je(),5,s.transform,n,s):s.transform(n))}(0,0,e.danceMove.description)),Mr(3),Gi("alt",e.danceMove.name),Ri("src",e.danceMove.imageVideoPath,pr))},directives:[Sg,Eg],pipes:[nm],styles:[".custom-active[_ngcontent-%COMP%]{background-color:hsla(0,0%,100%,.58)!important;color:#2a3166}"]}),t})(),im=(()=>{class t{transform(t,e,n){return t?e?(e=e.toLowerCase(),t.filter(t=>t[n].toLowerCase().includes(e))):t:[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ge({name:"filter",type:t,pure:!1}),t})();function om(t,e){if(1&t&&ji(0,"app-dance-move-item",8),2&t){const t=e.index;Ri("danceMove",e.$implicit)("index",t)}}const am=function(){return{standalone:!0}};let lm=(()=>{class t{constructor(t,e,n){this.danceMovesService=t,this.router=e,this.route=n,this.searchValue=""}ngOnInit(){this.danceMoves=this.danceMovesService.getDanceMoves(),this.subscription=this.danceMovesService.danceMovesChanged.subscribe(t=>{this.danceMoves=t})}onNewDanceMove(){this.router.navigate(["new"],{relativeTo:this.route})}ngOnDestroy(){this.subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Pi(Bg),Pi(bg),Pi(df))},t.\u0275cmp=le({type:t,selectors:[["app-dance-moves-list"]],decls:16,vars:8,consts:[[1,"container",2,"margin-bottom","10%"],[1,"row"],[1,"col-xs-12"],[1,"btn","btn-pink",2,"margin-top","15%",3,"click"],[1,"col-xs","12"],[1,"form-inline","form-style"],["type","search","placeholder","Search",1,"form-control","search-form",3,"ngModel","ngModelOptions","ngModelChange"],[3,"danceMove","index",4,"ngFor","ngForOf"],[3,"danceMove","index"]],template:function(t,e){1&t&&(Vi(0,"div",0),Vi(1,"div",1),Vi(2,"div",2),Vi(3,"button",3),Hi("click",(function(){return e.onNewDanceMove()})),eo(4," Add New "),Ni(),Ni(),Ni(),ji(5,"br"),Vi(6,"div",1),Vi(7,"div",4),Vi(8,"form",5),Vi(9,"input",6),Hi("ngModelChange",(function(t){return e.searchValue=t})),Ni(),Ni(),Ni(),Ni(),ji(10,"br"),ji(11,"hr"),Vi(12,"div",1),Vi(13,"div",2),Ti(14,om,1,2,"app-dance-move-item",7),wa(15,"filter"),Ni(),Ni(),Ni()),2&t&&(Mr(9),Ri("ngModel",e.searchValue)("ngModelOptions",function(t,e,n){const r=Je()+7,s=qe();return s[r]===Ar?Ei(s,r,e()):function(t,e){return t[e]}(s,r)}(0,am)),Mr(5),Ri("ngForOf",ba(15,3,e.danceMoves,e.searchValue,"name")))},directives:[ch,iu,th,Jc,su,lh,cc,sm],pipes:[im],styles:["input[_ngcontent-%COMP%]{border:1px solid rgba(63,72,143,.24);margin-right:-10%}"]}),t})(),cm=(()=>{class t{constructor(t){this.dataStorageService=t,this.dataStorageService.fetchDanceMoves().subscribe()}}return t.\u0275fac=function(e){return new(e||t)(Pi(Wg))},t.\u0275cmp=le({type:t,selectors:[["app-dance-moves"]],decls:6,vars:0,consts:[[1,"container"],[1,"row"],[1,"col-md-5"],[1,"col-md-7"]],template:function(t,e){1&t&&(Vi(0,"div",0),Vi(1,"div",1),Vi(2,"div",2),ji(3,"app-dance-moves-list"),Ni(),Vi(4,"div",3),ji(5,"router-outlet"),Ni(),Ni(),Ni())},directives:[lm,kg],styles:[""]}),t})(),um=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=le({type:t,selectors:[["app-dance-moves-start"]],decls:2,vars:0,consts:[[1,"text-center"]],template:function(t,e){1&t&&(Vi(0,"h3",0),eo(1," Please select a dance move!\n"),Ni())},styles:["h3[_ngcontent-%COMP%]{margin:3% 5% 7% 0;font-size:3.5vh}"]}),t})(),hm=(()=>{class t{constructor(){this.confirm=new xa,this.close=new xa}onConfirm(){this.confirm.emit()}onClose(){this.close.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=le({type:t,selectors:[["app-alert"]],outputs:{confirm:"confirm",close:"close"},decls:9,vars:0,consts:[[1,"backdrop",3,"click"],["role","alert",1,"alert","alert-light","mx-5","alert-box"],[1,"alert-box-actions"],[1,"btn","btn-green",3,"click"],[1,"btn","btn-pink","btn-cancel",3,"click"]],template:function(t,e){1&t&&(Vi(0,"div",0),Hi("click",(function(){return e.onClose()})),Vi(1,"div",1),Vi(2,"p"),eo(3,"Do you really want to delete this dance move?"),Ni(),Vi(4,"div",2),Vi(5,"button",3),Hi("click",(function(){return e.onConfirm()})),eo(6,"Delete"),Ni(),Vi(7,"button",4),Hi("click",(function(){return e.onClose()})),eo(8," Cancel "),Ni(),Ni(),Ni(),Ni())},styles:[".backdrop[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,.4);z-index:50}.alert-box[_ngcontent-%COMP%]{top:35vh;z-index:100;background-color:#fff;text-align:center}@media (min-width:768px){.alert-box[_ngcontent-%COMP%]{width:45vw;left:20vw}}@media (min-width:992px){.alert-box[_ngcontent-%COMP%]{width:35vw;left:30vw}}p[_ngcontent-%COMP%]{margin-top:2vh;font-size:1.3em}.alert-box-actions[_ngcontent-%COMP%]{text-align:center}button[_ngcontent-%COMP%]{margin-top:5vh;margin-bottom:1vh}.btn-cancel[_ngcontent-%COMP%]{margin-left:5vw}"]}),t})();function dm(t,e){if(1&t&&(Vi(0,"li",20),Vi(1,"p"),eo(2),Ni(),Ni()),2&t){const t=e.$implicit;Mr(2),no(t.name)}}function pm(t,e){if(1&t){const t=Ui();Vi(0,"app-alert",21),Hi("close",(function(){return Ge(t),zi().onCloseAlert()}))("confirm",(function(){return Ge(t),zi().onDeleteDanceMove()})),Ni()}}const fm=function(t){return{show:t}};let gm=(()=>{class t{constructor(t,e,n){this.danceMovesService=t,this.route=e,this.router=n,this.delete=!1}ngOnInit(){this.route.params.subscribe(t=>{this.id=+t.id,this.danceMove=this.danceMovesService.getDanceMove(this.id)})}onEditDanceMove(){this.router.navigate(["edit"],{relativeTo:this.route})}onClickDelete(){this.delete=!0}onCloseAlert(){this.delete=!1}onDeleteDanceMove(){this.danceMovesService.deleteDanceMove(this.id),this.router.navigate(["/dance-moves"])}}return t.\u0275fac=function(e){return new(e||t)(Pi(Bg),Pi(df),Pi(bg))},t.\u0275cmp=le({type:t,selectors:[["app-dance-moves-details"]],decls:33,vars:9,consts:[[1,"cont-border","detail-box"],[1,"container"],[1,"row","move-name"],[1,"col-xs-12","offset-lg-1"],[1,"text-center"],[1,"row"],[1,"col-xs-12","col-lg-4","offset-lg-1"],[1,"par"],[1,"list-group","skills-list"],["class","indent",4,"ngFor","ngForOf"],[1,"descr"],[3,"close","confirm",4,"ngIf"],[1,"col-xs-12","col-lg-5","offset-lg-1"],["appDropdown","",1,"dropdown","text-center"],["r","appDropdown"],["type","button",1,"btn","btn-green","dropdown-toggle","mt-3","mb-1"],[1,"caret"],[1,"dropdown-menu",3,"ngClass"],[1,"dropdown-item","dropdown-i-style",3,"click"],[1,"img-responsive","details-img","mx-auto",3,"src","alt"],[1,"indent"],[3,"close","confirm"]],template:function(t,e){if(1&t&&(Vi(0,"div",0),Vi(1,"div",1),Vi(2,"div",2),Vi(3,"div",3),Vi(4,"h1",4),eo(5),Ni(),Ni(),Ni(),Vi(6,"div",5),Vi(7,"div",6),Vi(8,"p",7),Vi(9,"b"),eo(10,"Required Skills"),Ni(),Ni(),Vi(11,"ul",8),Ti(12,dm,3,1,"li",9),Ni(),Vi(13,"p",7),Vi(14,"b"),eo(15,"Description"),Ni(),Ni(),Vi(16,"p",10),eo(17),Ni(),Ni(),ji(18,"br"),Ti(19,pm,1,0,"app-alert",11),Vi(20,"div",12),Vi(21,"div",13,14),Vi(23,"button",15),eo(24," Options"),ji(25,"span",16),Ni(),Vi(26,"div",17),Vi(27,"a",18),Hi("click",(function(){return e.onEditDanceMove()})),eo(28,"Edit"),Ni(),Vi(29,"a",18),Hi("click",(function(){return e.onClickDelete()})),eo(30,"Delete"),Ni(),Ni(),Ni(),ji(31,"img",19),Ni(),Ni(),ji(32,"br"),Ni(),Ni()),2&t){const t=Ii(22);Mr(5),no(e.danceMove.name),Mr(7),Ri("ngForOf",e.danceMove.requiredSkills),Mr(5),no(e.danceMove.description),Mr(2),Ri("ngIf",e.delete),Mr(7),Ri("ngClass",va(7,fm,t.isOpen)),Mr(5),Gi("alt",e.danceMove.name),Ri("src",e.danceMove.imageVideoPath,pr)}},directives:[cc,hc,Zg,ac,hm],styles:["h1[_ngcontent-%COMP%]{font-size:2em}.details-img[_ngcontent-%COMP%]{display:block;max-height:300px;max-width:210px;margin-top:7%;border-radius:10px;border:2px solid #2a3166}@media (min-width:992px){.details-img[_ngcontent-%COMP%], button[_ngcontent-%COMP%]{float:right}}.dropdown-i-style[_ngcontent-%COMP%]{color:#000}.dropdown-i-style[_ngcontent-%COMP%]:hover{background-color:#f4abaa;color:#fff;cursor:pointer}.indent[_ngcontent-%COMP%]{margin-left:15%}.move-name[_ngcontent-%COMP%]{margin:10% 0 2%}@media (min-width:768px){.move-name[_ngcontent-%COMP%]{margin:5% 0 2%}}.par[_ngcontent-%COMP%]{margin:5% 0 1%}.cont-border[_ngcontent-%COMP%]{border:1px solid hsla(0,0%,78%,.72);border-radius:15px;margin:5% 0;background-color:hsla(0,0%,100%,.73)}"]}),t})();class mm{constructor(t,e,n,r){this.name=t,this.description=e,this.imageVideoPath=n,this.requiredSkills=r}}function vm(t,e){if(1&t){const t=Ui();Vi(0,"div",21),Vi(1,"div",22),ji(2,"input",23),Ni(),Vi(3,"div",24),Vi(4,"button",25),Hi("click",(function(){Ge(t);const n=e.index;return zi().onDeleteSkill(n)})),eo(5," X "),Ni(),Ni(),Ni()}2&t&&Ri("formGroupName",e.index)}let ym=(()=>{class t{constructor(t,e,n){this.route=t,this.danceMoveService=e,this.router=n,this.editMode=!1}ngOnInit(){this.route.params.subscribe(t=>{this.id=+t.id,this.editMode=null!=t.id,this.initForm()})}onSubmit(){const t=new mm(this.danceMoveForm.value.name,this.danceMoveForm.value.description,this.danceMoveForm.value.imageVideoPath,this.danceMoveForm.value.requiredSkills);this.editMode?this.danceMoveService.updateDanceMove(this.id,t):this.danceMoveService.addDanceMove(t),this.onCancel()}onAddSkill(){this.danceMoveForm.get("requiredSkills").push(new Ku({name:new Qu(null,hu.required)}))}onDeleteSkill(t){this.danceMoveForm.get("requiredSkills").removeAt(t)}initForm(){let t="",e="",n="",r=new Ju([]);if(this.editMode){const s=this.danceMoveService.getDanceMove(this.id);if(t=s.name,e=s.imageVideoPath,n=s.description,s.requiredSkills)for(let t of s.requiredSkills)r.push(new Ku({name:new Qu(t.name)}))}this.danceMoveForm=new Ku({name:new Qu(t,hu.required),imageVideoPath:new Qu(e,hu.required),description:new Qu(n),requiredSkills:r})}get controls(){return this.danceMoveForm.get("requiredSkills").controls}onCancel(){this.router.navigate(["../"],{relativeTo:this.route})}}return t.\u0275fac=function(e){return new(e||t)(Pi(df),Pi(Bg),Pi(bg))},t.\u0275cmp=le({type:t,selectors:[["app-dance-move-edit"]],decls:41,vars:5,consts:[[1,"container"],[1,"row"],[1,"col-xs-12"],[3,"formGroup","ngSubmit"],[1,"col-xs-12","btns-container"],["type","submit",1,"btn","btn-save",3,"disabled"],["type","button",1,"btn","btn-cancel","ml-2",3,"click"],[1,"form-group"],["for","name"],["type","text","id","name","formControlName","name",1,"form-control"],["name",""],["for","imageVideoPath"],["type","text","id","imageVideoPath","formControlName","imageVideoPath",1,"form-control"],["imageVideoPath",""],[1,"img-responsive","img-edit",3,"src","alt"],[1,"row","mt-3"],["for","description"],["type","text","id","description","rows","6","formControlName","description",1,"form-control"],["formArrayName","requiredSkills",1,"col-xs-12"],["class","row",3,"formGroupName",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-save",2,"margin","0% 0% 5vh 1.2vw",3,"click"],[1,"row",3,"formGroupName"],[1,"col-xs-10"],["type","text","formControlName","name",1,"form-control","required-skills-form"],[1,"col-xs-2"],["type","button",1,"btn","btn-danger",3,"click"]],template:function(t,e){if(1&t&&(Vi(0,"div",0),Vi(1,"div",1),Vi(2,"div",2),Vi(3,"form",3),Hi("ngSubmit",(function(){return e.onSubmit()})),Vi(4,"div",1),Vi(5,"div",4),Vi(6,"button",5),eo(7," Save "),Ni(),Vi(8,"button",6),Hi("click",(function(){return e.onCancel()})),eo(9," Cancel "),Ni(),Ni(),Ni(),Vi(10,"div",1),Vi(11,"div",2),Vi(12,"div",7),Vi(13,"label",8),eo(14," Name: "),Ni(),ji(15,"input",9,10),Ni(),Ni(),Ni(),Vi(17,"div",1),Vi(18,"div",2),Vi(19,"div",7),Vi(20,"label",11),eo(21," Image URL: "),Ni(),ji(22,"input",12,13),Ni(),Ni(),Ni(),Vi(24,"div",1),Vi(25,"div",2),ji(26,"img",14),Ni(),Ni(),Vi(27,"div",15),Vi(28,"div",2),Vi(29,"div",7),Vi(30,"label",16),eo(31," Description: "),Ni(),Vi(32,"textarea",17),eo(33,"              "),Ni(),Ni(),Ni(),Ni(),Vi(34,"div",1),Vi(35,"div",18),Ti(36,vm,6,1,"div",19),Vi(37,"div",1),Vi(38,"div",2),Vi(39,"button",20),Hi("click",(function(){return e.onAddSkill()})),eo(40," Add Skill "),Ni(),Ni(),Ni(),Ni(),Ni(),Ni(),Ni(),Ni(),Ni()),2&t){const t=Ii(16),n=Ii(23);Mr(3),Ri("formGroup",e.danceMoveForm),Mr(3),Ri("disabled",!e.danceMoveForm.valid),Mr(20),Ri("src",n.value,pr)("alt",t.value),Mr(10),Ri("ngForOf",e.controls)}},directives:[ch,iu,dh,Jc,su,_h,mh,cc,fh],styles:["input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{width:50vw;display:table}.required-skills-form[_ngcontent-%COMP%]{width:46vw;margin:0 .75vw 2% 1.2vw}.btns-container[_ngcontent-%COMP%]{margin-bottom:6%;margin-top:3%}.btn-save[_ngcontent-%COMP%]{background-color:#4ed897}.btn-cancel[_ngcontent-%COMP%]{background-color:#ee7879}input.ng-invalid.ng-touched[_ngcontent-%COMP%]{border:1px solid red}.img-edit[_ngcontent-%COMP%]{max-height:300px;border-radius:10px}"]}),t})(),_m=(()=>{class t{constructor(t,e){this.dataStorageService=t,this.danceMovesService=e}resolve(t,e){const n=this.danceMovesService.getDanceMoves();return 0===n.length?this.dataStorageService.fetchDanceMoves():n}}return t.\u0275fac=function(e){return new(e||t)(Gt(Wg),Gt(Bg))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),wm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=le({type:t,selectors:[["app-loading-spinner"]],decls:3,vars:0,consts:[[1,"text-center"],[1,"lds-heart"]],template:function(t,e){1&t&&(Vi(0,"div",0),Vi(1,"div",1),ji(2,"div"),Ni(),Ni())},styles:['.lds-heart[_ngcontent-%COMP%]{display:inline-block;position:relative;width:80px;height:80px;transform:rotate(45deg);transform-origin:40px 40px}.lds-heart[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{top:32px;left:32px;-webkit-animation:lds-heart 1.2s cubic-bezier(.215,.61,.355,1) infinite;animation:lds-heart 1.2s cubic-bezier(.215,.61,.355,1) infinite}.lds-heart[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .lds-heart[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:after, .lds-heart[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:before{position:absolute;width:32px;height:32px;background:#f4abaa}.lds-heart[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:after, .lds-heart[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:before{content:" ";display:block}.lds-heart[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:before{left:-24px;border-radius:50% 0 0 50%}.lds-heart[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:after{top:-24px;border-radius:50% 50% 0 0}@-webkit-keyframes lds-heart{0%{transform:scale(.95)}5%{transform:scale(1.1)}39%{transform:scale(.85)}45%{transform:scale(1)}60%{transform:scale(.95)}to{transform:scale(.9)}}@keyframes lds-heart{0%{transform:scale(.95)}5%{transform:scale(1.1)}39%{transform:scale(.85)}45%{transform:scale(1)}60%{transform:scale(.95)}to{transform:scale(.9)}}']}),t})();function bm(t,e){if(1&t&&(Vi(0,"div",7),Vi(1,"p",3),eo(2),Ni(),Ni()),2&t){const t=zi();Mr(2),no(t.error)}}function Cm(t,e){1&t&&(Vi(0,"div"),ji(1,"app-loading-spinner"),Ni())}function Sm(t,e){1&t&&(Vi(0,"div",18),eo(1," Feel free to use a fake one! "),ji(2,"img",19),Ni())}function xm(t,e){if(1&t){const t=Ui();Vi(0,"form",8,9),Hi("ngSubmit",(function(){Ge(t);const e=Ii(1);return zi().onSubmit(e)})),Vi(2,"div",10),Vi(3,"label",11),eo(4,"Email:"),Ni(),Vi(5,"input",12),Hi("click",(function(){return Ge(t),zi().onShowEmailAlert()})),Ni(),Ni(),Ti(6,Sm,3,0,"div",13),Vi(7,"div",10),Vi(8,"label",14),eo(9,"Password:"),Ni(),ji(10,"input",15),Ni(),ji(11,"br"),Vi(12,"div"),Vi(13,"button",16),eo(14),Ni(),eo(15," | "),Vi(16,"button",17),Hi("click",(function(){return Ge(t),zi().onSwitchMode()})),eo(17),Ni(),Ni(),Ni()}if(2&t){const t=Ii(1),e=zi();Mr(6),Ri("ngIf",e.isEmailInputClicked&&!e.isLoginMode),Mr(7),Ri("disabled",!t.valid),Mr(1),ro(" ",e.isLoginMode?"Sign In":"Sing Up"," "),Mr(3),ro(" Switch to ",e.isLoginMode?"Sign Up":"Sign In"," ")}}let Em=(()=>{class t{constructor(t,e){this.authService=t,this.router=e,this.isLoginMode=!0,this.isLoading=!1,this.error=null,this.isEmailInputClicked=!1}onSwitchMode(){this.isLoginMode=!this.isLoginMode}onShowEmailAlert(){this.isEmailInputClicked=!0}onSubmit(t){if(!t.valid)return;const e=t.value.email,n=t.value.password;let r;this.isLoading=!0,r=this.isLoginMode?this.authService.login(e,n):this.authService.signup(e,n),r.subscribe(t=>{this.isLoading=!1,this.router.navigate(["/dance-moves"])},t=>{this.error=t,this.isLoading=!1}),t.reset()}}return t.\u0275fac=function(e){return new(e||t)(Pi(Gg),Pi(bg))},t.\u0275cmp=le({type:t,selectors:[["app-auth"]],decls:10,vars:4,consts:[[1,"container","auth-container"],[1,"row"],[1,"col-xs-12","col-md-6","offset-md-3"],[1,"text-center"],["class","alert alert-danger",4,"ngIf"],[4,"ngIf"],[3,"ngSubmit",4,"ngIf"],[1,"alert","alert-danger"],[3,"ngSubmit"],["authForm","ngForm"],[1,"form-group"],["for","email"],["type","email","id","email","ngModel","","name","email","required","","email","",1,"form-control",3,"click"],["class","alert alert-secondary alert-email","role","alert",4,"ngIf"],["for","password"],["type","password","id","password","ngModel","","name","password","required","","minlength","6",1,"form-control"],["type","submit",1,"btn","btn-green",3,"disabled"],["type","button",1,"btn","btn-pink",3,"click"],["role","alert",1,"alert","alert-secondary","alert-email"],["src","https://img.icons8.com/color/48/000000/happy--v1.png"]],template:function(t,e){1&t&&(Vi(0,"div",0),Vi(1,"div",1),Vi(2,"div",2),Vi(3,"h3",3),eo(4),Ni(),ji(5,"br"),Ti(6,bm,3,1,"div",4),Ti(7,Cm,2,0,"div",5),Ti(8,xm,18,4,"form",6),ji(9,"br"),Ni(),Ni(),Ni()),2&t&&(Mr(4),ro(" ",e.isLoginMode?"Sign in":"Sing up"," to add your dance moves! "),Mr(2),Ri("ngIf",e.error),Mr(1),Ri("ngIf",e.isLoading),Mr(1),Ri("ngIf",!e.isLoading))},directives:[hc,wm,ch,iu,th,Jc,su,lh,bh,Sh,Eh],styles:[".auth-container[_ngcontent-%COMP%]{margin-top:4%}.alert-email[_ngcontent-%COMP%]{font-size:15px}.alert-email[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:25px}"]}),t})(),km=(()=>{class t{constructor(t,e){this.authService=t,this.router=e}canActivate(t,e){return this.authService.user.pipe(zd(1),V(t=>!!t||this.router.createUrlTree(["/auth"])))}}return t.\u0275fac=function(e){return new(e||t)(Gt(Gg),Gt(bg))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})();const Am=[{path:"",redirectTo:"/dance-moves",pathMatch:"full"},{path:"dance-moves",component:cm,canActivate:[km],children:[{path:"",component:um},{path:"new",component:ym},{path:":id",component:gm,resolve:[_m]},{path:":id/edit",component:ym,resolve:[_m]}]},{path:"auth",component:Em},{path:"**",component:(()=>{class t{constructor(t){this.router=t,this.timeLeft=10,t.events.subscribe(t=>{this.checkRouterEvent(t)})}checkRouterEvent(t){if(t instanceof op){const t=setInterval(()=>{this.timeLeft>0?this.timeLeft--:0===this.timeLeft&&(this.router.navigate(["/dance-moves"]),clearInterval(t))},1e3)}}}return t.\u0275fac=function(e){return new(e||t)(Pi(bg))},t.\u0275cmp=le({type:t,selectors:[["app-page-not-found"]],decls:14,vars:1,consts:[[1,"text-center"],["xmlns","http://www.w3.org/2000/svg","x","0px","y","0px","width","100","height","100","viewBox","0 0 172 172",2,"fill","#000000"],["fill","none","fill-rule","nonzero","stroke","none","stroke-width","1","stroke-linecap","butt","stroke-linejoin","miter","stroke-miterlimit","10","stroke-dasharray","","stroke-dashoffset","0","font-family","none","font-weight","none","font-size","none","text-anchor","none",2,"mix-blend-mode","normal"],["d","M0,172v-172h172v172z","fill","none"],["fill","#f4abaa"],["d","M157.66667,60.91667c0,28.165 -30.24333,55.39833 -41.71,65.64667l-1.14667,1.075c-10.24833,9.245 -24.15167,21.14167 -24.15167,21.14167l-4.65833,4.01333l-4.65833,-4.01333c0,0 -13.90333,-11.89667 -24.15167,-21.14167l-1.14667,-1.075c-11.46667,-10.24833 -41.71,-37.48167 -41.71,-65.64667c0,-22.50333 16.91333,-39.41667 39.41667,-39.41667c8.385,0 15.83833,2.86667 21.78667,6.52167l-18.20333,43.645h28.66667l-7.16667,35.83333l35.83333,-50.16667h-28.66667l13.25833,-30.88833c5.44667,-2.86667 11.825,-4.945 18.99167,-4.945c22.50333,0 39.41667,16.91333 39.41667,39.41667z"],[1,"mt-4"]],template:function(t,e){1&t&&(Vi(0,"div",0),fn(),Vi(1,"svg",1),Vi(2,"g",2),ji(3,"path",3),Vi(4,"g",4),ji(5,"path",5),Ni(),Ni(),Ni(),gn(),ji(6,"br"),Vi(7,"h2",6),eo(8,"Page not found!"),Ni(),ji(9,"br"),Vi(10,"h4"),eo(11," Redirecting in "),Vi(12,"span"),eo(13),Ni(),Ni(),Ni()),2&t&&(Mr(13),no(e.timeLeft))},styles:["div[_ngcontent-%COMP%]{margin-top:7%}span[_ngcontent-%COMP%]{color:#4ed897}"]}),t})()}];let Om=(()=>{class t{}return t.\u0275mod=de({type:t}),t.\u0275inj=lt({factory:function(e){return new(e||t)},imports:[[Ng.forRoot(Am)],Ng]}),t})();class Tm{constructor(t){this.project=t}call(t,e){return e.subscribe(new Im(t,this.project))}}class Im extends D{constructor(t,e){super(t),this.project=e,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(t){this.hasSubscription||this.tryNext(t)}tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.hasSubscription=!0,this._innerSub(e,t,n)}_innerSub(t,e,n){const r=new k(this,e,n),s=this.destination;s.add(r);const i=R(this,t,void 0,void 0,r);i!==r&&s.add(i)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,r,s){this.destination.next(e)}notifyError(t){this.destination.error(t)}notifyComplete(t){this.destination.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}let Pm=(()=>{class t{constructor(t){this.authService=t}intercept(t,e){return this.authService.user.pipe(zd(1),function t(e,n){return n?r=>r.pipe(t((t,r)=>F(e(t,r)).pipe(V((e,s)=>n(t,e,r,s))))):t=>t.lift(new Tm(e))}(n=>{if(!n)return e.handle(t);const r=t.clone({params:(new Lh).set("auth",n.token)});return e.handle(r)}))}}return t.\u0275fac=function(e){return new(e||t)(Gt(Gg))},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),Mm=(()=>{class t{constructor(){this.mockDanceMoves=[{name:"Allegra",description:"Test",imageVideoPath:"http://test.pl",requiredSkills:[]}]}fetchMockDanceMoves(){return Ih(this.mockDanceMoves).pipe(V(t=>t.map(t=>Object.assign(Object.assign({},t),{requiredSkills:t.requiredSkills?t.requiredSkills:[]}))))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=at({token:t,factory:t.\u0275fac}),t})(),Rm=(()=>{class t{}return t.\u0275mod=de({type:t,bootstrap:[em]}),t.\u0275inj=lt({factory:function(e){return new(e||t)},providers:[Bg,Wg,Yg,pd,Mm,_m,Gg,{provide:Xh,useClass:Pm,multi:!0},km],imports:[[zc,Om,Th,Oh,dd]]}),t})();(function(){if(lr)throw new Error("Cannot enable prod mode after platform setup.");ar=!1})(),$c().bootstrapModule(Rm).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]]]);