text: (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 i=!1;const o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}};function s(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(o.useDeprecatedSynchronousErrorHandling)throw t;s(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:i,_subscriptions:o}=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(i))try{i.call(this)}catch(s){e=s instanceof u?d(s.errors):[s]}if(l(o)){let t=-1,n=o.length;for(;++t<n;){const n=o[t];if(c(n))try{n.unsubscribe()}catch(s){e=e||[],s instanceof u?e=e.concat(d(s.errors)):e.push(s)}}}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 i=this._subscriptions;return null===i?this._subscriptions=[n]:i.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,i){let o;super(),this._parentSubscriber=t;let s=this;r(e)?o=e:e&&(o=e.next,n=e.error,i=e.complete,e!==a&&(s=Object.create(e),r(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=n,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;o.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=o;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):s(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;s(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);o.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),o.useDeprecatedSynchronousErrorHandling)throw n;s(n)}}__tryOrSetError(t,e,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return o.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(s(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 _(t){return t}function y(...t){return v(t)}function v(t){return 0===t.length?_:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}let b=(()=>{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,i=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(i.add(r?r.call(i,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),o.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(t){try{return this._subscribe(t)}catch(e){o.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=w(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(i){n(i),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:v(t)(this)}toPromise(t){return new(t=w(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function w(t){if(t||(t=o.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const C=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class x 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 E extends f{constructor(t){super(t),this.destination=t}}let S=(()=>{class t extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new E(this)}lift(t){const e=new O(this,this);return e.operator=t,e}next(t){if(this.closed)throw new C;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let i=0;i<n;i++)r[i].next(t)}}error(t){if(this.closed)throw new C;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,r=e.slice();for(let i=0;i<n;i++)r[i].error(t);this.observers.length=0}complete(){if(this.closed)throw new C;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 C;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new C;return this.hasError?(t.error(this.thrownError),h.EMPTY):this.isStopped?(t.complete(),h.EMPTY):(this.observers.push(t),new x(this,t))}asObservable(){const t=new b;return t.source=this,t}}return t.create=(t,e)=>new O(t,e),t})();class O 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 k(t){return t&&"function"==typeof t.schedule}class T 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 P=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()};function M(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const A=M(),I=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function N(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const R=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 P(t);if(N(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s),t);if(t&&"function"==typeof t[A])return e=t,t=>{const n=e[A]();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 D(t,e,n,r,i=new T(t,n,r)){if(!i.closed)return e instanceof b?e.subscribe(i):R(e)(i)}class V extends f{notifyNext(t,e,n,r,i){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function L(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 j(t,e))}}class j{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new U(t,this.project,this.thisArg))}}class U 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 F(t,e){return new b(n=>{const r=new h;let i=0;return r.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}function $(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 b(n=>{const r=new h;return r.add(e.schedule(()=>{const i=t[m]();r.add(i.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(N(t))return function(t,e){return new b(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 F(t,e);if(function(t){return t&&"function"==typeof t[A]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new b(n=>{const r=new h;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(e.schedule(()=>{i=t[A](),r.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=i.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 b?t:new b(R(t))}function H(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(H((n,r)=>$(t(n,r)).pipe(L((t,i)=>e(n,t,r,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new q(t,n)))}class q{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new z(t,this.project,this.concurrent))}}class z extends V{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 T(this,e,n),i=this.destination;i.add(r);const o=D(this,t,void 0,void 0,r);o!==r&&i.add(o)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,r,i){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 B(t=Number.POSITIVE_INFINITY){return H(_,t)}function G(t,e){return e?F(t,e):new b(P(t))}function W(){return function(t){return t.lift(new Z(t))}}class Z{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new Q(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class Q 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 Y extends b{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new h,t.add(this.source.subscribe(new J(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return W()(this)}}const K=(()=>{const t=Y.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class J extends E{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 X(){return new S}function tt(t){return{toString:t}.toString()}function et(t,e,n){return tt(()=>{const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function i(...t){if(this instanceof i)return r.apply(this,t),this;const e=new i(...t);return n.annotation=e,n;function n(t,n,r){const i=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(e),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}const nt=et("Inject",t=>({token:t})),rt=et("Optional"),it=et("Self"),ot=et("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 at(t){for(let e in t)if(t[e]===at)return e;throw Error("Could not find renamed property on target object.")}function lt(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ct(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ut(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function ht(t){return dt(t,t[ft])||dt(t,t[_t])}function dt(t,e){return e&&e.token===t?e:null}function pt(t){return t&&(t.hasOwnProperty(gt)||t.hasOwnProperty(yt))?t[gt]:null}const ft=at({"\u0275prov":at}),gt=at({"\u0275inj":at}),mt=at({"\u0275provFallback":at}),_t=at({ngInjectableDef:at}),yt=at({ngInjectorDef:at});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 bt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const wt=at({__forward_ref__:at});function Ct(t){return t.__forward_ref__=Ct,t.toString=function(){return vt(this())},t}function xt(t){return Et(t)?t():t}function Et(t){return"function"==typeof t&&t.hasOwnProperty(wt)&&t.__forward_ref__===Ct}const St="undefined"!=typeof globalThis&&globalThis,Ot="undefined"!=typeof window&&window,kt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Tt="undefined"!=typeof global&&global,Pt=St||Tt||Ot||kt,Mt=at({"\u0275cmp":at}),At=at({"\u0275dir":at}),It=at({"\u0275pipe":at}),Nt=at({"\u0275mod":at}),Rt=at({"\u0275loc":at}),Dt=at({"\u0275fac":at}),Vt=at({__NG_ELEMENT_ID__:at});class Lt{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=ct({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const jt=new Lt("INJECTOR",-1),Ut={},Ft=/\n/gm,$t=at({provide:String,useValue:at});let Ht,qt=void 0;function zt(t){const e=qt;return qt=t,e}function Bt(t){const e=Ht;return Ht=t,e}function Gt(t,e=st.Default){if(void 0===qt)throw new Error("inject() must be called from an injection context");return null===qt?Zt(t,void 0,e):qt.get(t,e&st.Optional?null:void 0,e)}function Wt(t,e=st.Default){return(Ht||Gt)(xt(t),e)}function Zt(t,e,n){const r=ht(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 Qt(t){const e=[];for(let n=0;n<t.length;n++){const r=xt(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 i=r[e];i instanceof rt||"Optional"===i.ngMetadataName||i===rt?n|=st.Optional:i instanceof ot||"SkipSelf"===i.ngMetadataName||i===ot?n|=st.SkipSelf:i instanceof it||"Self"===i.ngMetadataName||i===it?n|=st.Self:t=i instanceof nt||i===nt?i.token:i}e.push(Wt(t,n))}else e.push(Wt(r))}return e}class Yt{get(t,e=Ut){if(e===Ut){const e=new Error(`NullInjectorError: No provider for ${vt(t)}!`);throw e.name="NullInjectorError",e}return e}}class Kt{}class Jt{}function Xt(t,e){t.forEach(t=>Array.isArray(t)?Xt(t,e):e(t))}function te(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ee(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ne(t,e,n){let r=ie(t,e);return r>=0?t[1|r]=n:(r=~r,function(t,e,n,r){let i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function re(t,e){const n=ie(t,e);if(n>=0)return t[1|n]}function ie(t,e){return function(t,e,n){let r=0,i=t.length>>1;for(;i!==r;){const n=r+(i-r>>1),o=t[n<<1];if(e===o)return n<<1;o>e?i=n:r=n+1}return~(i<<1)}(t,e)}const oe=function(){var t={OnPush:0,Default:1};return t[t.OnPush]="OnPush",t[t.Default]="Default",t}(),se=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}(),ae={},le=[];let ce=0;function ue(t){return tt(()=>{const e=t.type,n=e.prototype,r={},i={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===oe.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||le,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||se.Emulated,id:"c",styles:t.styles||le,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,s=t.features,a=t.pipes;return i.id+=ce++,i.inputs=ge(t.inputs,r),i.outputs=ge(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(he):null,i.pipeDefs=a?()=>("function"==typeof a?a():a).map(de):null,i})}function he(t){return _e(t)||function(t){return t[At]||null}(t)}function de(t){return function(t){return t[It]||null}(t)}const pe={};function fe(t){const e={type:t.type,bootstrap:t.bootstrap||le,declarations:t.declarations||le,imports:t.imports||le,exports:t.exports||le,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&tt(()=>{pe[t.id]=t.type}),e}function ge(t,e){if(null==t)return ae;const n={};for(const r in t)if(t.hasOwnProperty(r)){let i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}const me=ue;function _e(t){return t[Mt]||null}function ye(t,e){return t.hasOwnProperty(Dt)?t[Dt]:null}function ve(t,e){const n=t[Nt]||null;if(!n&&!0===e)throw new Error(`Type ${vt(t)} does not have '\u0275mod' property.`);return n}function be(t){return Array.isArray(t)&&"object"==typeof t[1]}function we(t){return Array.isArray(t)&&!0===t[1]}function Ce(t){return 0!=(8&t.flags)}function xe(t){return 2==(2&t.flags)}function Ee(t){return 1==(1&t.flags)}function Se(t){return null!==t.template}function Oe(t){return 0!=(512&t[2])}let ke=void 0;function Te(t){return!!t.listen}const Pe={createRenderer:(t,e)=>void 0!==ke?ke:"undefined"!=typeof document?document:void 0};function Me(t){for(;Array.isArray(t);)t=t[0];return t}function Ae(t,e){return Me(e[t+19])}function Ie(t,e){return Me(e[t.index])}function Ne(t,e){return t.data[e+19]}function Re(t,e){const n=e[t];return be(n)?n:n[0]}function De(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ve(t){return 4==(4&t[2])}function Le(t){return 128==(128&t[2])}function je(t,e){return null===t||null==e?null:t[e]}function Ue(t){t[18]=0}const Fe={lFrame:an(null),bindingsEnabled:!0,checkNoChangesMode:!1};function $e(){return Fe.bindingsEnabled}function He(){return Fe.lFrame.lView}function qe(){return Fe.lFrame.tView}function ze(t){Fe.lFrame.contextLView=t}function Be(){return Fe.lFrame.previousOrParentTNode}function Ge(t,e){Fe.lFrame.previousOrParentTNode=t,Fe.lFrame.isParent=e}function We(){return Fe.lFrame.isParent}function Ze(){return Fe.checkNoChangesMode}function Qe(t){Fe.checkNoChangesMode=t}function Ye(){const t=Fe.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ke(){return Fe.lFrame.bindingIndex}function Je(){return Fe.lFrame.bindingIndex++}function Xe(t){const e=Fe.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function tn(t,e){const n=Fe.lFrame;n.bindingIndex=n.bindingRootIndex=t,n.currentDirectiveIndex=e}function en(){return Fe.lFrame.currentQueryIndex}function nn(t){Fe.lFrame.currentQueryIndex=t}function rn(t,e){const n=sn();Fe.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function on(t,e){const n=sn(),r=t[1];Fe.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=r,n.contextLView=t,n.bindingIndex=r.bindingStartIndex}function sn(){const t=Fe.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,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function ln(){const t=Fe.lFrame;return Fe.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.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function hn(){return Fe.lFrame.selectedIndex}function dn(t){Fe.lFrame.selectedIndex=t}function pn(){const t=Fe.lFrame;return Ne(t.tView,t.selectedIndex)}function fn(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 gn(t,e,n){yn(t,e,3,n)}function mn(t,e,n,r){(3&t[2])===n&&yn(t,e,n,r)}function _n(t,e){let n=t[2];(3&n)===e&&(n&=1023,n+=1,t[2]=n)}function yn(t,e,n,r){const i=null!=r?r:-1;let o=0;for(let s=void 0!==r?65535&t[18]:0;s<e.length;s++)if("number"==typeof e[s+1]){if(o=e[s],null!=r&&o>=r)break}else e[s]<0&&(t[18]+=65536),(o<i||-1==i)&&(vn(t,n,e,s),t[18]=(4294901760&t[18])+s+2),s++}function vn(t,e,n,r){const i=n[r]<0,o=n[r+1],s=t[i?-n[r]:n[r]];i?t[2]>>10<t[18]>>16&&(3&t[2])===e&&(t[2]+=1024,o.call(s)):o.call(s)}class bn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function wn(t,e,n){const r=Te(t);let i=0;for(;i<n.length;){const o=n[i];if("number"==typeof o){if(0!==o)break;i++;const s=n[i++],a=n[i++],l=n[i++];r?t.setAttribute(e,a,l,s):e.setAttributeNS(s,a,l)}else{const s=o,a=n[++i];xn(s)?r&&t.setProperty(e,s,a):r?t.setAttribute(e,s,a):e.setAttribute(s,a),i++}}return i}function Cn(t){return 3===t||4===t||6===t}function xn(t){return 64===t.charCodeAt(0)}function En(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 i=e[r];"number"==typeof i?n=i:0===n||Sn(t,n,i,null,-1===n||2===n?e[++r]:null)}}return t}function Sn(t,e,n,r,i){let o=0,s=t.length;if(-1===e)s=-1;else for(;o<t.length;){const n=t[o++];if("number"==typeof n){if(n===e){s=-1;break}if(n>e){s=o-1;break}}}for(;o<t.length;){const e=t[o];if("number"==typeof e)break;if(e===n){if(null===r)return void(null!==i&&(t[o+1]=i));if(r===t[o+1])return void(t[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,n),null!==r&&t.splice(o++,0,r),null!==i&&t.splice(o++,0,i)}function On(t){return-1!==t}function kn(t){return 32767&t}function Tn(t){return t>>16}function Pn(t,e){let n=Tn(t),r=e;for(;n>0;)r=r[15],n--;return r}function Mn(t){return"string"==typeof t?t:null==t?"":""+t}function An(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 In=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Pt))();function Nn(t){return t instanceof Function?t():t}let Rn=!0;function Dn(t){const e=Rn;return Rn=t,e}let Vn=0;function Ln(t,e){const n=Un(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,jn(r.data,t),jn(e,null),jn(r.blueprint,null));const i=Fn(t,e),o=t.injectorIndex;if(On(i)){const t=kn(i),n=Pn(i,e),r=n[1].data;for(let i=0;i<8;i++)e[o+i]=n[t+i]|r[t+i]}return e[o+8]=i,o}function jn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Un(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function Fn(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 $n(t,e,n){!function(t,e,n){let r="string"!=typeof n?n[Vt]:n.charCodeAt(0)||0;null==r&&(r=n[Vt]=Vn++);const i=255&r,o=1<<i,s=64&i,a=32&i,l=e.data;128&i?s?a?l[t+7]|=o:l[t+6]|=o:a?l[t+5]|=o:l[t+4]|=o:s?a?l[t+3]|=o:l[t+2]|=o:a?l[t+1]|=o:l[t]|=o}(t,e,n)}function Hn(t,e,n,r=st.Default,i){if(null!==t){const i=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t[Vt];return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof i){rn(e,t);try{const t=i();if(null!=t||r&st.Optional)return t;throw new Error(`No provider for ${An(n)}!`)}finally{cn()}}else if("number"==typeof i){if(-1===i)return new Qn(t,e);let o=null,s=Un(t,e),a=-1,l=r&st.Host?e[16][6]:null;for((-1===s||r&st.SkipSelf)&&(a=-1===s?Fn(t,e):e[s+8],Zn(r,!1)?(o=e[1],s=kn(a),e=Pn(a,e)):s=-1);-1!==s;){a=e[s+8];const t=e[1];if(Wn(i,s,t.data)){const t=zn(s,e,n,o,r,l);if(t!==qn)return t}Zn(r,e[1].data[s+8]===l)&&Wn(i,s,e)?(o=t,s=kn(a),e=Pn(a,e)):s=-1}}}if(r&st.Optional&&void 0===i&&(i=null),0==(r&(st.Self|st.Host))){const t=e[9],o=Bt(void 0);try{return t?t.get(n,i,r&st.Optional):Zt(n,i,r&st.Optional)}finally{Bt(o)}}if(r&st.Optional)return i;throw new Error(`NodeInjector: NOT_FOUND [${An(n)}]`)}const qn={};function zn(t,e,n,r,i,o){const s=e[1],a=s.data[t+8],l=Bn(a,s,n,null==r?xe(a)&&Rn:r!=s&&3===a.type,i&st.Host&&o===a);return null!==l?Gn(e,s,l,a):qn}function Bn(t,e,n,r,i){const o=t.providerIndexes,s=e.data,a=65535&o,l=t.directiveStart,c=o>>16,u=i?a+c:t.directiveEnd;for(let h=r?a:a+c;h<u;h++){const t=s[h];if(h<l&&n===t||h>=l&&t.type===n)return h}if(i){const t=s[l];if(t&&Se(t)&&t.type===n)return l}return null}function Gn(t,e,n,r){let i=t[n];const o=e.data;if(i instanceof bn){const s=i;if(s.resolving)throw new Error(`Circular dep for ${An(o[n])}`);const a=Dn(s.canSeeViewProviders);let l;s.resolving=!0,s.injectImpl&&(l=Bt(s.injectImpl)),rn(t,r);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{onChanges:r,onInit:i,doCheck:o}=e;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)),i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{s.injectImpl&&Bt(l),Dn(a),s.resolving=!1,cn()}}return i}function Wn(t,e,n){const r=64&t,i=32&t;let o;return o=128&t?r?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:r?i?n[e+3]:n[e+2]:i?n[e+1]:n[e],!!(o&1<<t)}function Zn(t,e){return!(t&st.Self||t&st.Host&&e)}class Qn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return Hn(this._tNode,this._lView,t,void 0,e)}}function Yn(t){return tt(()=>{const e=Object.getPrototypeOf(t.prototype).constructor,n=e[Dt]||function t(e){const n=e;if(Et(e))return()=>{const e=t(xt(n));return e?e():null};let r=ye(n);if(null===r){const t=pt(n);r=t&&t.factory}return r||null}(e);return null!==n?n:t=>new t})}function Kn(t){return t.ngDebugContext}function Jn(t){return t.ngOriginalError}function Xn(t,...e){t.error(...e)}class tr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||Xn}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?Kn(t)?Kn(t):this._findContext(Jn(t)):null}_findOriginalError(t){let e=Jn(t);for(;e&&Jn(e);)e=Jn(e);return e}}class er{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}function nr(t){return t instanceof er?t.changingThisBreaksApplicationSecurity:t}let rr=!0,ir=!1;function or(){return ir=!0,rr}const sr=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,ar=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,lr=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}();function cr(t){const e=function(){const t=He();return t&&t[12]}();return e?e.sanitize(lr.URL,t)||"":function(t,e){const n=function(t){return t instanceof er&&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")?nr(t):(n=Mn(t),(n=String(n)).match(sr)||n.match(ar)?n:(or()&&console.warn(`WARNING: sanitizing unsafe URL value ${n} (see http://g.co/ng/security#xss)`),"unsafe:"+n));var n}function ur(t,e){t.__ngContext__=e}function hr(t){throw new Error(`Multiple components match node with tagname ${t.tagName}`)}function dr(){throw new Error("Cannot mix multi providers and regular providers")}function pr(t,e,n){let r=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const n=e.length;if(i+n===r||t.charCodeAt(i+n)<=32)return i}n=i+1}}function fr(t,e,n){let r=0;for(;r<t.length;){let i=t[r++];if(n&&"class"===i){if(i=t[r],-1!==pr(i.toLowerCase(),e,0))return!0}else if(1===i){for(;r<t.length&&"string"==typeof(i=t[r++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function gr(t,e,n){return e===(0!==t.type||n?t.tagName:"ng-template")}function mr(t,e,n){let r=4;const i=t.attrs||[],o=function(t){for(let e=0;e<t.length;e++)if(Cn(t[e]))return e;return t.length}(i);let s=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!s)if(4&r){if(r=2|1&r,""!==l&&!gr(t,l,n)||""===l&&1===e.length){if(_r(r))return!1;s=!0}}else{const c=8&r?l:e[++a];if(8&r&&null!==t.attrs){if(!fr(t.attrs,c,n)){if(_r(r))return!1;s=!0}continue}const u=yr(8&r?"class":l,i,0==t.type&&"ng-template"!==t.tagName,n);if(-1===u){if(_r(r))return!1;s=!0;continue}if(""!==c){let t;t=u>o?"":i[u+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==pr(e,c,0)||2&r&&c!==t){if(_r(r))return!1;s=!0}}}}else{if(!s&&!_r(r)&&!_r(l))return!1;if(s&&_r(l))continue;s=!1,r=l|1&r}}return _r(r)||s}function _r(t){return 0==(1&t)}function yr(t,e,n,r){if(null===e)return-1;let i=0;if(r||!n){let n=!1;for(;i<e.length;){const r=e[i];if(r===t)return i;if(3===r||6===r)n=!0;else{if(1===r||2===r){let t=e[++i];for(;"string"==typeof t;)t=e[++i];continue}if(4===r)break;if(0===r){i+=4;continue}}i+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){if(t[n]===e)return n;n++}return-1}(e,t)}function vr(t,e,n=!1){for(let r=0;r<e.length;r++)if(mr(t,e[r],n))return!0;return!1}function br(t,e){return t?":not("+e.trim()+")":e}function wr(t){let e=t[0],n=1,r=2,i="",o=!1;for(;n<t.length;){let s=t[n];if("string"==typeof s)if(2&r){const e=t[++n];i+="["+s+(e.length>0?'="'+e+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""===i||_r(s)||(e+=br(o,i),i=""),r=s,o=o||!_r(r);n++}return""!==i&&(e+=br(o,i)),e}const Cr={};function xr(t){const e=t[3];return we(e)?e[3]:e}function Er(t){Sr(qe(),He(),hn()+t,Ze())}function Sr(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&gn(e,r,n)}else{const r=t.preOrderHooks;null!==r&&mn(e,r,0,n)}dn(n)}function Or(t,e){return t<<17|e<<2}function kr(t){return t>>17&32767}function Tr(t){return 2|t}function Pr(t){return(131068&t)>>2}function Mr(t,e){return-131069&t|e<<2}function Ar(t){return 1|t}function Ir(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],o=n[r+1];if(-1!==o){const n=t.data[o];nn(i),n.contentQueries(2,e[o],o)}}}function Nr(t,e,n){return Te(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Rr(t,e,n,r,i,o,s,a,l,c){const u=e.blueprint.slice();return u[0]=i,u[2]=140|r,Ue(u),u[3]=u[15]=t,u[8]=n,u[10]=s||t&&t[10],u[11]=a||t&&t[11],u[12]=l||t&&t[12]||null,u[9]=c||t&&t[9]||null,u[6]=o,u[16]=2==e.type?t[16]:u,u}function Dr(t,e,n,r,i,o){const s=n+19,a=t.data[s]||function(t,e,n,r,i,o){const s=Be(),a=We(),l=a?s:s&&s.parent,c=t.data[n]=zr(0,l&&l!==e?l:null,r,n,i,o);return null===t.firstChild&&(t.firstChild=c),s&&(!a||null!=s.child||null===c.parent&&2!==s.type?a||(s.next=c):s.child=c),c}(t,e,s,r,i,o);return Ge(a,!0),a}function Vr(t,e,n){on(e,e[6]);try{const r=t.viewQuery;null!==r&&pi(1,r,n);const i=t.template;null!==i&&Ur(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Ir(t,e),t.staticViewQueries&&pi(2,t.viewQuery,n);const o=t.components;null!==o&&function(t,e){for(let n=0;n<e.length;n++)li(t,e[n])}(e,o)}finally{e[2]&=-5,un()}}function Lr(t,e,n,r){const i=e[2];if(256==(256&i))return;on(e,e[6]);const o=Ze();try{Ue(e),Fe.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Ur(t,e,n,2,r);const s=3==(3&i);if(!o)if(s){const n=t.preOrderCheckHooks;null!==n&&gn(e,n,null)}else{const n=t.preOrderHooks;null!==n&&mn(e,n,0,null),_n(e,0)}if(function(t){let e=t[13];for(;null!==e;){let n;if(we(e)&&(n=e[2])>>1==-1){for(let t=9;t<e.length;t++){const n=e[t],r=n[1];Le(n)&&Lr(r,n,r.template,n[8])}0!=(1&n)&&si(e,t[16])}e=e[4]}}(e),null!==t.contentQueries&&Ir(t,e),!o)if(s){const n=t.contentCheckHooks;null!==n&&gn(e,n)}else{const n=t.contentHooks;null!==n&&mn(e,n,1),_n(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let r=t.expandoStartIndex,i=-1,o=-1;for(let t=0;t<n.length;t++){const s=n[t];"number"==typeof s?s<=0?(o=0-s,dn(o),r+=9+n[++t],i=r):r+=s:(null!==s&&(tn(r,i),s(2,e[i])),i++)}}}finally{dn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)ai(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&pi(2,l,r),!o)if(s){const n=t.viewCheckHooks;null!==n&&gn(e,n)}else{const n=t.viewHooks;null!==n&&mn(e,n,2),_n(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),o||(e[2]&=-73)}finally{un()}}function jr(t,e,n,r){const i=e[10],o=!Ze(),s=Ve(e);try{o&&!s&&i.begin&&i.begin(),s&&Vr(t,e,r),Lr(t,e,n,r)}finally{o&&!s&&i.end&&i.end()}}function Ur(t,e,n,r,i){const o=hn();try{dn(-1),2&r&&e.length>19&&Sr(t,e,0,Ze()),n(r,i)}finally{dn(o)}}function Fr(t,e,n){$e()&&(function(t,e,n,r){const i=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||Ln(n,e),ur(r,e);const s=n.initialInputs;for(let a=i;a<o;a++){const r=t.data[a],o=Se(r);o&&ni(e,n,r);const l=Gn(e,t,a,n);ur(l,e),null!==s&&ri(0,a-i,l,r,0,s),o&&(Re(n.index,e)[8]=l)}}(t,e,n,Ie(n,e)),128==(128&n.flags)&&function(t,e,n){const r=n.directiveStart,i=n.directiveEnd,o=t.expandoInstructions,s=t.firstCreatePass,a=n.index-19;try{dn(a);for(let n=r;n<i;n++){const r=t.data[n],i=e[n];null!==r.hostBindings||0!==r.hostVars||null!==r.hostAttrs?Yr(r,i):s&&o.push(null)}}finally{dn(-1)}}(t,e,n))}function $r(t,e,n=Ie){const r=e.localNames;if(null!==r){let i=e.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],a=-1===s?n(e,t):t[s];t[i++]=a}}}function Hr(t){return t.tView||(t.tView=qr(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts))}function qr(t,e,n,r,i,o,s,a,l,c){const u=19+r,h=u+i,d=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:Cr);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 o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:c}}function zr(t,e,n,r,i,o){return{type:n,index:r,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,residualStyles:void 0,classes:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Br(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const i=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,i):n[r]=[e,i]}return n}function Gr(t,e,n,r,i,o,s,a){const l=Ie(e,n);let c,u=e.inputs;var h;!a&&null!=u&&(c=u[r])?(yi(t,n,c,r,i),xe(e)&&function(t,e){const n=Re(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,i=null!=s?s(i,e.tagName||"",r):i,Te(o)?o.setProperty(l,r,i):xn(r)||(l.setProperty?l.setProperty(r,i):l[r]=i))}function Wr(t,e,n,r){let i=!1;if($e()){const o=function(t,e,n){const r=t.directiveRegistry;let i=null;if(r)for(let o=0;o<r.length;o++){const s=r[o];vr(n,s.selectors,!1)&&(i||(i=[]),$n(Ln(n,e),t,s.type),Se(s)?(2&n.flags&&hr(n),Jr(t,n),i.unshift(s)):i.push(s))}return i}(t,e,n),s=null===r?null:{"":-1};if(null!==o){let r=0;i=!0,ti(n,t.data.length,o.length);for(let t=0;t<o.length;t++){const e=o[t];e.providersResolver&&e.providersResolver(e)}Kr(t,n,o.length);let a=!1,l=!1;for(let i=0;i<o.length;i++){const c=o[i];n.mergedAttrs=En(n.mergedAttrs,c.hostAttrs),ei(t,e,c),Xr(t.data.length-1,c,s),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-19),a=!0),l||!c.onChanges&&!c.doCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-19),l=!0),Zr(t,c),r+=c.hostVars}!function(t,e){const n=e.directiveEnd,r=t.data,i=e.attrs,o=[];let s=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=r[l],e=t.inputs;o.push(null!==i?ii(e,i):null),s=Br(e,l,s),a=Br(t.outputs,l,a)}null!==s&&(s.hasOwnProperty("class")&&(e.flags|=16),s.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=s,e.outputs=a}(t,n),Qr(t,e,r)}s&&function(t,e,n){if(e){const r=t.localNames=[];for(let t=0;t<e.length;t+=2){const i=n[e[t+1]];if(null==i)throw new Error(`Export of name '${e[t+1]}' not found!`);r.push(e[t],i)}}}(n,r,s)}return n.mergedAttrs=En(n.mergedAttrs,n.attrs),i}function Zr(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function Qr(t,e,n){for(let r=0;r<n;r++)e.push(Cr),t.blueprint.push(Cr),t.data.push(null)}function Yr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Kr(t,e,n){const r=19-e.index,i=t.data.length-(65535&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(r,i,n)}function Jr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Xr(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Se(e)&&(n[""]=t)}}function ti(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function ei(t,e,n){t.data.push(n);const r=n.factory||(n.factory=ye(n.type)),i=new bn(r,Se(n),null);t.blueprint.push(i),e.push(i)}function ni(t,e,n){const r=Ie(e,t),i=Hr(n),o=t[10],s=ci(t,Rr(t,i,null,n.onPush?64:16,r,e,o,o.createRenderer(r,n)));t[e.index]=s}function ri(t,e,n,r,i,o){const s=o[e];if(null!==s){const t=r.setInput;for(let e=0;e<s.length;){const i=s[e++],o=s[e++],a=s[e++];null!==t?r.setInput(n,a,i,o):n[o]=a}}}function ii(t,e){let n=null,r=0;for(;r<e.length;){const i=e[r];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,t[i],e[r+1])),r+=2}else r+=2;else r+=4}return n}function oi(t,e,n,r){return new Array(t,!0,-2,e,null,null,r,n,null)}function si(t,e){const n=t[5];for(let r=0;r<n.length;r++){const t=n[r],i=t[3][3][16];if(i!==e&&0==(16&i[2])){const e=t[1];Lr(e,t,e.template,t[8])}}}function ai(t,e){const n=Re(e,t);if(Le(n)&&80&n[2]){const t=n[1];Lr(t,n,t.template,n[8])}}function li(t,e){const n=Re(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),Vr(r,n,n[8])}function ci(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function ui(t){for(;t;){t[2]|=64;const e=xr(t);if(Oe(t)&&!e)return t;t=e}return null}function hi(t,e,n){const r=e[10];r.begin&&r.begin();try{Lr(t,e,t.template,n)}catch(i){throw _i(e,i),i}finally{r.end&&r.end()}}function di(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=De(n),i=r[1];jr(i,r,i.template,n)}}(t[8])}function pi(t,e,n){nn(0),e(t,n)}const fi=(()=>Promise.resolve(null))();function gi(t){return t[7]||(t[7]=[])}function mi(t){return t.cleanup||(t.cleanup=[])}function _i(t,e){const n=t[9],r=n?n.get(tr,null):null;r&&r.handleError(e)}function yi(t,e,n,r,i){for(let o=0;o<n.length;){const s=n[o++],a=n[o++],l=e[s],c=t.data[s];null!==c.setInput?c.setInput(l,i,r,a):l[a]=i}}function vi(t,e,n){const r=Ae(e,t),i=t[11];Te(i)?i.setValue(r,n):r.textContent=n}function bi(t,e){const n=e[3];return-1===t.index?we(n)?n:null:n}function wi(t,e){const n=bi(t,e);return n?Ii(e[11],n[7]):null}function Ci(t,e,n,r,i){if(null!=r){let o,s=!1;we(r)?o=r:be(r)&&(s=!0,r=r[0]);const a=Me(r);0===t&&null!==n?null==i?Mi(e,n,a):Pi(e,n,a,i||null):1===t&&null!==n?Pi(e,n,a,i||null):2===t?function(t,e,n){const r=Ii(t,e);r&&function(t,e,n,r){Te(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=o&&function(t,e,n,r,i){const o=n[7];o!==Me(n)&&Ci(e,t,r,o,i);for(let s=9;s<n.length;s++){const i=n[s];Vi(i[1],i,t,e,r,o)}}(e,t,o,n,i)}}function xi(t,e,n,r){const i=wi(t.node,e);i&&Vi(t,e,e[11],n?1:2,i,r)}function Ei(t,e){const n=t[5],r=n.indexOf(e);n.splice(r,1)}function Si(t,e){if(t.length<=9)return;const n=9+e,r=t[n];if(r){const i=r[17];null!==i&&i!==t&&Ei(i,r),e>0&&(t[n-1][4]=r[4]);const o=ee(t,9+e);xi(r[1],r,!1,null);const s=o[5];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Oi(t,e){if(!(256&e[2])){const n=e[11];Te(n)&&n.destroyNode&&Vi(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Ti(t[1],t);for(;e;){let n=null;if(be(e))n=e[13];else{const t=e[9];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)be(e)&&Ti(e[1],e),e=ki(e,t);null===e&&(e=t),be(e)&&Ti(e[1],e),n=e&&e[4]}e=n}}(e)}}function ki(t,e){let n;return be(t)&&(n=t[6])&&2===n.type?bi(n,t):t[3]===e?null:t[3]}function Ti(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]];t instanceof bn||n[r+1].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 i=n[r+1],o="function"==typeof i?i(e):Me(e[i]),s=t[n[r+2]],a=n[r+3];"boolean"==typeof a?o.removeEventListener(n[r],s,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&&Te(e[11])&&e[11].destroy();const r=e[17];if(null!==r&&we(e[3])){r!==e[3]&&Ei(r,e);const n=e[5];null!==n&&n.detachView(t)}}}function Pi(t,e,n,r){Te(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function Mi(t,e,n){Te(t)?t.appendChild(e,n):e.appendChild(n)}function Ai(t,e,n,r){null!==r?Pi(t,e,n,r):Mi(t,e,n)}function Ii(t,e){return Te(t)?t.parentNode(e):e.parentNode}function Ni(t,e,n,r){const i=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?wi(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return Ie(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 Ie(r,n)}(t,r,e);if(null!=i){const t=e[11],o=function(t,e){if(2===t.type){const n=bi(t,e);return null===n?null:Ri(n.indexOf(e,9)-9,n)}return 4===t.type||5===t.type?Ie(t,e):null}(r.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)Ai(t,i,n[e],o);else Ai(t,i,n,o)}}function Ri(t,e){const n=9+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 Ie(n,e);if(0===r)return Ri(-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)?Ri(-1,t):Me(t)}}{const r=e[16],i=r[6],o=xr(r),s=i.projection[n.projection];return null!=s?t(o,s):t(e,n.next)}}return null}(t,r)}return e[7]}function Di(t,e,n,r,i,o,s){for(;null!=n;){const a=r[n.index],l=n.type;s&&0===e&&(a&&ur(Me(a),r),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(Di(t,e,n.child,r,i,o,!1),Ci(e,t,i,a,o)):1===l?Li(t,e,r,n,i,o):Ci(e,t,i,a,o)),n=s?n.projectionNext:n.next}}function Vi(t,e,n,r,i,o){Di(n,r,t.node.child,e,i,o,!1)}function Li(t,e,n,r,i,o){const s=n[16],a=s[6].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)Ci(e,t,i,a[l],o);else Di(t,e,a,s[3],i,o,!0)}function ji(t,e,n){Te(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Ui(t,e,n){Te(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class Fi{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,r,i,o=!1){for(;null!==r;){const s=n[r.index];if(null!==s&&i.push(Me(s)),we(s))for(let e=9;e<s.length;e++){const n=s[e],r=n[1].firstChild;null!==r&&t(n[1],n,r,i)}const a=r.type;if(4===a||5===a)t(e,n,r.child,i);else if(1===a){const e=n[16],o=e[6],s=xr(e);let a=o.projection[r.projection];null!==a&&null!==s&&t(s[1],s,a,i,!0)}r=o?r.projectionNext:r.next}return i}(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}Oi(this._lView[1],this._lView)}onDestroy(t){var e,n,r;e=this._lView[1],r=t,gi(n=this._lView).push(r),e.firstCreatePass&&mi(e).push(n[7].length-1,null)}markForCheck(){ui(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){hi(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Qe(!0);try{hi(t,e,n)}finally{Qe(!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,Vi(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 $i extends Fi{constructor(t){super(t),this._view=t}detectChanges(){di(this._view)}checkNoChanges(){!function(t){Qe(!0);try{di(t)}finally{Qe(!1)}}(this._view)}get context(){return null}}let Hi,qi,zi;function Bi(t,e,n){return Hi||(Hi=class extends t{}),new Hi(Ie(e,n))}function Gi(t,e,n,r){return qi||(qi=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=Rr(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[5];null!==r&&(n[5]=r.createEmbeddedView(e)),Vr(e,n,t);const i=new Fi(n);return i._tViewNode=n[6],i}}),0===n.type?new qi(r,n,Bi(e,n,r)):null}function Wi(t,e,n,r){let i;zi||(zi=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return Bi(e,this._hostTNode,this._hostView)}get injector(){return new Qn(this._hostTNode,this._hostView)}get parentInjector(){const t=Fn(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=Tn(t),i=e,o=e[6];for(;r>1;)i=i[15],o=i[6],r--;return o}(t,this._hostView,this._hostTNode);return On(t)&&null!=n?new Qn(n,e):new Qn(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-9}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,i){const o=n||this.parentInjector;if(!i&&null==t.ngModule&&o){const t=o.get(Kt,null);t&&(i=t)}const s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s}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 zi(e,e[6],e[3]);r.detach(r.indexOf(t))}}const i=this._adjustIndex(e);return function(t,e,n,r){const i=9+r,o=n.length;r>0&&(n[i-1][4]=e),r<o-9?(e[4]=n[i],te(n,9+r,e)):(n.push(e),e[4]=null),e[3]=n;const s=e[17];null!==s&&n!==s&&function(t,e){const n=t[5],r=e[3][3][16];16!=(16&r[2])&&e[16]!==r&&(t[2]|=1),null===n?t[5]=[e]:n.push(e)}(s,e);const a=e[5];null!==a&&a.insertView(t),e[2]|=128}(r,n,this._lContainer,i),xi(r,n,!0,Ri(i,this._lContainer)),t.attachToViewContainerRef(this),te(this._lContainer[8],i,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=Si(t,e);n&&Oi(n[1],n)})(this._lContainer,e),ee(this._lContainer[8],e)}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=Si(this._lContainer,e);return n&&null!=ee(this._lContainer[8],e)?new Fi(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const o=r[n.index];if(we(o))i=o,function(t,e){t[2]=-2}(i);else{let t;if(4===n.type)t=Me(o);else if(t=r[11].createComment(""),Oe(r)){const e=r[11],i=Ie(n,r);Pi(e,Ii(e,i),t,function(t,e){return Te(t)?t.nextSibling(e):e.nextSibling}(e,i))}else Ni(r[1],r,t,n);r[n.index]=i=oi(o,r,t,n),ci(r,i)}return new zi(i,n,r)}let Zi=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Qi(),t})();const Qi=function(t=!1){return function(t,e,n){if(!n&&xe(t)){const n=Re(t.index,e);return new Fi(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Fi(e[16],e):null}(Be(),He(),t)},Yi=new Lt("Set Injector scope."),Ki={},Ji={},Xi=[];let to=void 0;function eo(){return void 0===to&&(to=new Yt),to}function no(t,e=null,n=null,r){return new ro(t,n,e||eo(),r)}class ro{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 i=[];e&&Xt(e,n=>this.processProvider(n,t,e)),Xt([t],t=>this.processInjectorType(t,[],i)),this.records.set(jt,so(void 0,this));const o=this.records.get(Yi);this.scope=null!=o?o.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=Ut,n=st.Default){this.assertNotDestroyed();const r=zt(this);try{if(!(n&st.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(i=t)||"object"==typeof i&&i instanceof Lt)&&ht(t);e=n&&this.injectableDefInScope(n)?so(io(t),Ki):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&st.Self?eo():this.parent).get(t,e=n&st.Optional&&e===Ut?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(vt(t)),r)throw o;return function(t,e,n,r){const i=t.ngTempTokenPath;throw e.__source&&i.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 i=vt(e);if(Array.isArray(e))i=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)))}i=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(Ft,"\n  ")}`}("\n"+t.message,i,n,r),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{zt(r)}var i}_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=xt(t)))return!1;let r=pt(t);const i=null==r&&t.ngModule||void 0,o=void 0===i?t:i,s=-1!==n.indexOf(o);if(void 0!==i&&(r=pt(i)),null==r)return!1;if(null!=r.imports&&!s){let t;n.push(o);try{Xt(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];Xt(r,t=>this.processProvider(t,n,r||Xi))}}this.injectorDefTypes.add(o),this.records.set(o,so(r.factory,Ki));const a=r.providers;if(null!=a&&!s){const e=t;Xt(a,t=>this.processProvider(t,e,a))}return void 0!==i&&void 0!==t.providers}processProvider(t,e,n){let r=lo(t=xt(t))?t:xt(t&&t.provide);const i=function(t,e,n){return ao(t)?so(void 0,t.useValue):so(oo(t,e,n),Ki)}(t,e,n);if(lo(t)||!0!==t.multi){const t=this.records.get(r);t&&void 0!==t.multi&&dr()}else{let e=this.records.get(r);e?void 0===e.multi&&dr():(e=so(void 0,Ki,!0),e.factory=()=>Qt(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,i)}hydrate(t,e){var n;return e.value===Ji?function(t){throw new Error(`Cannot instantiate cyclic dependency! ${t}`)}(vt(t)):e.value===Ki&&(e.value=Ji,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 io(t){const e=ht(t),n=null!==e?e.factory:ye(t);if(null!==n)return n;const r=pt(t);if(null!==r)return r.factory;if(t instanceof Lt)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[ft]||t[_t]||t[mt]&&t[mt]());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.\n`+`This will become an error in v10. 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 oo(t,e,n){let r=void 0;if(lo(t)){const e=xt(t);return ye(e)||io(e)}if(ao(t))r=()=>xt(t.useValue);else if((i=t)&&i.useFactory)r=()=>t.useFactory(...Qt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>Wt(xt(t.useExisting));else{const i=xt(t&&(t.useClass||t.provide));if(i||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 ye(i)||io(i);r=()=>new i(...Qt(t.deps))}var i;return r}function so(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function ao(t){return null!==t&&"object"==typeof t&&$t in t}function lo(t){return"function"==typeof t}const co=function(t,e,n){return function(t,e=null,n=null,r){const i=no(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)};let uo=(()=>{class t{static create(t,e){return Array.isArray(t)?co(t,e,""):co(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Ut,t.NULL=new Yt,t.\u0275prov=ct({token:t,providedIn:"any",factory:()=>Wt(jt)}),t.__NG_ELEMENT_ID__=-1,t})();const ho=new Lt("AnalyzeForEntryComponents");let po=new Map;const fo=new Set;function go(t){return"string"==typeof t?t:t.text()}function mo(t,e){let n=t.styles,r=t.classes,i=0;for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?i=t:1==i?r=bt(r,t):2==i&&(n=bt(n,t+": "+e[++o]+";"))}null!==n&&(t.styles=n),null!==r&&(t.classes=r)}let _o=null;function yo(){if(!_o){const t=Pt.Symbol;if(t&&t.iterator)_o=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&&(_o=n)}}}return _o}function vo(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function bo(t){return!!wo(t)&&(Array.isArray(t)||!(t instanceof Map)&&yo()in t)}function wo(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Co(t,e,n){return t[e]=n}function xo(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Eo(t,e,n,r){const i=xo(t,e,n);return xo(t,e+1,r)||i}function So(t,e,n,r){const i=He();return xo(i,Je(),e)&&(qe(),function(t,e,n,r,i,o){const s=Ie(t,e),a=e[11];if(null==r)Te(a)?a.removeAttribute(s,n,o):s.removeAttribute(n);else{const e=null==i?Mn(r):i(r,t.tagName||"",n);Te(a)?a.setAttribute(s,n,e,o):o?s.setAttributeNS(o,n,e):s.setAttribute(n,e)}}(pn(),i,t,e,n,r)),So}function Oo(t,e,n,r){return xo(t,Je(),n)?e+Mn(n)+r:Cr}function ko(t,e,n,r,i,o,s,a){const l=He(),c=qe(),u=t+19,h=c.firstCreatePass?function(t,e,n,r,i,o,s,a,l){const c=e.consts,u=Dr(e,n[6],t,0,s||null,je(c,a));Wr(e,n,u,je(c,l)),fn(e,u);const h=u.tViews=qr(2,-1,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c),d=zr(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,i,o,s):c.data[u];Ge(h,!1);const d=l[11].createComment("");Ni(c,l,d,h),ur(d,l),ci(l,l[u]=oi(d,l,d,h)),Ee(h)&&Fr(c,l,h),null!=s&&$r(l,h,a)}function To(t){return function(t,e){return t[e+19]}(Fe.lFrame.contextLView,t)}function Po(t,e=st.Default){const n=He();return null==n?Wt(t,e):Hn(Be(),n,xt(t),e)}function Mo(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 i=n[r];if(Cn(i))break;if(0===i)r+=2;else if("number"==typeof i)for(r++;r<t&&"string"==typeof n[r];)r++;else{if(i===e)return n[r+1];r+=2}}}return null}(Be(),t)}function Ao(){throw new Error("invalid")}function Io(t,e,n){const r=He();return xo(r,Je(),e)&&Gr(qe(),pn(),r,t,e,r[11],n,!1),Io}function No(t,e,n,r,i){const o=i?"class":"style";yi(t,n,e.inputs[o],o,r)}function Ro(t,e,n,r){const i=He(),o=qe(),s=19+t,a=i[11],l=i[s]=Nr(e,a,Fe.lFrame.currentNamespace),c=o.firstCreatePass?function(t,e,n,r,i,o,s){const a=e.consts,l=je(a,o),c=Dr(e,n[6],t,3,i,l);return Wr(e,n,c,je(a,s)),null!==c.mergedAttrs&&mo(c,c.mergedAttrs),null!==e.queries&&e.queries.elementStart(e,c),c}(t,o,i,0,e,n,r):o.data[s];Ge(c,!0);const u=c.mergedAttrs;null!==u&&wn(a,l,u);const h=c.classes;null!==h&&Ui(a,l,h);const d=c.styles;null!==d&&ji(a,l,d),Ni(o,i,l,c),0===Fe.lFrame.elementDepthCount&&ur(l,i),Fe.lFrame.elementDepthCount++,Ee(c)&&(Fr(o,i,c),function(t,e,n){if(Ce(e)){const r=e.directiveEnd;for(let i=e.directiveStart;i<r;i++){const e=t.data[i];e.contentQueries&&e.contentQueries(1,n[i],i)}}}(o,c,i)),null!==r&&$r(i,c)}function Do(){let t=Be();We()?Fe.lFrame.isParent=!1:(t=t.parent,Ge(t,!1));const e=t;Fe.lFrame.elementDepthCount--;const n=qe();n.firstCreatePass&&(fn(n,t),Ce(t)&&n.queries.elementEnd(t)),null!==e.classes&&function(t){return 0!=(16&t.flags)}(e)&&No(n,e,He(),e.classes,!0),null!==e.styles&&function(t){return 0!=(32&t.flags)}(e)&&No(n,e,He(),e.styles,!1)}function Vo(t,e,n,r){Ro(t,e,n,r),Do()}function Lo(){return He()}function jo(t){return!!t&&"function"==typeof t.then}function Uo(t){return!!t&&"function"==typeof t.subscribe}function Fo(t,e,n=!1,r){const i=He(),o=qe(),s=Be();return function(t,e,n,r,i,o,s=!1,a){const l=Ee(r),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),u=gi(e);let h=!0;if(3===r.type){const d=Ie(r,e),p=a?a(d):ae,f=p.target||d,g=u.length,m=a?t=>a(Me(t[r.index])).target:r.index;if(Te(n)){let s=null;if(!a&&l&&(s=function(t,e,n,r){const i=t.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const t=i[o];if(t===n&&i[o+1]===r){const t=e[7],n=i[o+2];return t.length>n?t[n]:null}"string"==typeof t&&(o+=2)}return null}(t,e,i,r.index)),null!==s)(s.__ngLastListenerFn__||s).__ngNextListenerFn__=o,s.__ngLastListenerFn__=o,h=!1;else{o=Ho(r,e,o,!1);const t=n.listen(p.name||f,i,o);u.push(o,t),c&&c.push(i,m,g,g+1)}}else o=Ho(r,e,o,!0),f.addEventListener(i,o,s),u.push(o),c&&c.push(i,m,g,s)}const d=r.outputs;let p;if(h&&null!==d&&(p=d[i])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(o),s=u.length;u.push(o,t),c&&c.push(i,r.index,s,-(s+1))}}}(o,i,i[11],s,t,e,n,r),Fo}function $o(t,e,n){try{return!1!==e(n)}catch(r){return _i(t,r),!1}}function Ho(t,e,n,r){return function i(o){if(o===Function)return n;const s=2&t.flags?Re(t.index,e):e;0==(32&e[2])&&ui(s);let a=$o(e,n,o),l=i.__ngNextListenerFn__;for(;l;)a=$o(e,l,o)&&a,l=l.__ngNextListenerFn__;return r&&!1===a&&(o.preventDefault(),o.returnValue=!1),a}}function qo(t=1){return function(t){return(Fe.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Fe.lFrame.contextLView))[8]}(t)}function zo(t,e,n){return Bo(t,"",e,"",n),zo}function Bo(t,e,n,r,i){const o=He(),s=Oo(o,e,n,r);return s!==Cr&&Gr(qe(),pn(),o,t,s,o[11],i,!1),Bo}const Go=[];function Wo(t,e,n,r,i){const o=t[n+1],s=null===e;let a=r?kr(o):Pr(o),l=!1;for(;0!==a&&(!1===l||s);){const n=t[a+1];Zo(t[a],e)&&(l=!0,t[a+1]=r?Ar(n):Tr(n)),a=r?kr(n):Pr(n)}l&&(t[n+1]=r?Tr(o):Ar(o))}function Zo(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ie(t,e)>=0}function Qo(t,e){return function(t,e,n,r){const i=He(),o=qe(),s=Xe(2);if(o.firstUpdatePass&&function(t,e,n,r){const i=t.data;if(null===i[n+1]){const r=i[hn()+19],o=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(16&t.flags)})(r)&&null===e&&!o&&(e=!1),e=function(t,e,n,r){const i=function(t){const e=Fe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let o=e.residualClasses;if(null===i)0===e.classBindings&&(n=Ko(n=Yo(null,t,e,n,!0),e.attrs,!0),o=null);else{const r=e.directiveStylingLast;if(-1===r||t[r]!==i)if(n=Yo(i,t,e,n,!0),null===o){let n=function(t,e,n){const r=e.classBindings;if(0!==Pr(r))return t[kr(r)]}(t,e);void 0!==n&&Array.isArray(n)&&(n=Yo(null,t,e,n[1],!0),n=Ko(n,e.attrs,!0),function(t,e,n,r){t[kr(e.classBindings)]=r}(t,e,0,n))}else o=function(t,e,n){let r=void 0;const i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<i;o++)r=Ko(r,t[o].hostAttrs,!0);return Ko(r,e.attrs,!0)}(t,e)}return void 0!==o&&(e.residualClasses=o),n}(i,r,e),function(t,e,n,r,i,o){let s=e.classBindings,a=kr(s),l=Pr(s);t[r]=n;let c,u=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||ie(t,c)>0)&&(u=!0)}else c=n;if(i)if(0!==l){const e=kr(t[a+1]);t[r+1]=Or(e,a),0!==e&&(t[e+1]=Mr(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=Or(a,0),0!==a&&(t[a+1]=Mr(t[a+1],r)),a=r;else t[r+1]=Or(l,0),0===a?a=r:t[l+1]=Mr(t[l+1],r),l=r;u&&(t[r+1]=Tr(t[r+1])),Wo(t,c,r,!0),Wo(t,c,r,!1),function(t,e,n,r,i){const o=t.residualClasses;null!=o&&"string"==typeof e&&ie(o,e)>=0&&(n[r+1]=Ar(n[r+1]))}(e,c,t,r),s=Or(a,l),e.classBindings=s}(i,r,e,n,o)}}(o,t,s),e!==Cr&&xo(i,s,e)){let r;null==n&&(r=function(){const t=Fe.lFrame;return null===t?null:t.currentSanitizer}())&&(n=r),function(t,e,n,r,i,o,s,a){if(3!==e.type)return;const l=t.data,c=l[a+1];Xo(1==(1&c)?Jo(l,e,n,i,Pr(c),!0):void 0)||(Xo(o)||function(t){return 2==(2&t)}(c)&&(o=Jo(l,null,n,i,a,!0)),function(t,e,n,r,i){const o=Te(t);i?o?t.addClass(n,r):n.classList.add(r):o?t.removeClass(n,r):n.classList.remove(r)}(r,0,Ae(hn(),n),i,o))}(o,o.data[hn()+19],i,i[11],t,i[s+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=vt(nr(t)))),t}(e,n),0,s)}}(t,e,null),Qo}function Yo(t,e,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(o=e[a],r=Ko(r,o.hostAttrs,i),o!==t);)a++;return null!==t&&(n.directiveStylingLast=a),r}function Ko(t,e,n){const r=n?1:2;let i=-1;if(null!==e)for(let o=0;o<e.length;o++){const s=e[o];"number"==typeof s?i=s:i===r&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),ne(t,s,!!n||e[++o]))}return void 0===t?null:t}function Jo(t,e,n,r,i,o){const s=null===e;let a=void 0;for(;i>0;){const e=t[i],o=Array.isArray(e),l=o?e[1]:e,c=null===l;let u=n[i+1];u===Cr&&(u=c?Go:void 0);let h=c?re(u,r):l===r?u:void 0;if(o&&!Xo(h)&&(h=re(e,r)),Xo(h)&&(a=h,s))return a;const d=t[i+1];i=s?kr(d):Pr(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=re(t,r))}return a}function Xo(t){return void 0!==t}function ts(t,e=""){const n=He(),r=qe(),i=t+19,o=r.firstCreatePass?Dr(r,n[6],t,3,null,null):r.data[i],s=n[i]=function(t,e){return Te(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Ni(r,n,s,o),Ge(o,!1)}function es(t){return ns("",t,""),es}function ns(t,e,n){const r=He(),i=Oo(r,t,e,n);return i!==Cr&&vi(r,hn(),i),ns}function rs(t,e,n,r,i){const o=He(),s=function(t,e,n,r,i,o){const s=Eo(t,Ke(),n,i);return Xe(2),s?e+Mn(n)+r+Mn(i)+o:Cr}(o,t,e,n,r,i);return s!==Cr&&vi(o,hn(),s),rs}function is(t,e,n,r,i,o,s){const a=He(),l=function(t,e,n,r,i,o,s,a){const l=function(t,e,n,r,i){const o=Eo(t,e,n,r);return xo(t,e+2,i)||o}(t,Ke(),n,i,s);return Xe(3),l?e+Mn(n)+r+Mn(i)+o+Mn(s)+a:Cr}(a,t,e,n,r,i,o,s);return l!==Cr&&vi(a,hn(),l),is}function os(t,e,n){const r=He();return xo(r,Je(),e)&&Gr(qe(),pn(),r,t,e,r[11],n,!0),os}function ss(t,e){const n=De(t)[1],r=n.data.length-1;fn(n,{directiveStart:r,directiveEnd:r+1})}function as(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const r=[t];for(;e;){let i=void 0;if(Se(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){r.push(i);const e=t;e.inputs=ls(t.inputs),e.declaredInputs=ls(t.declaredInputs),e.outputs=ls(t.outputs);const n=i.hostBindings;n&&hs(t,n);const o=i.viewQuery,s=i.contentQueries;if(o&&cs(t,o),s&&us(t,s),lt(t.inputs,i.inputs),lt(t.declaredInputs,i.declaredInputs),lt(t.outputs,i.outputs),Se(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}e.afterContentChecked=e.afterContentChecked||i.afterContentChecked,e.afterContentInit=t.afterContentInit||i.afterContentInit,e.afterViewChecked=t.afterViewChecked||i.afterViewChecked,e.afterViewInit=t.afterViewInit||i.afterViewInit,e.doCheck=t.doCheck||i.doCheck,e.onDestroy=t.onDestroy||i.onDestroy,e.onInit=t.onInit||i.onInit}const e=i.features;if(e)for(let r=0;r<e.length;r++){const i=e[r];i&&i.ngInherit&&i(t),i===as&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){const i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=En(i.hostAttrs,n=En(n,i.hostAttrs))}}(r)}function ls(t){return t===ae?{}:t===le?[]:t}function cs(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function us(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,i)=>{e(t,r,i),n(t,r,i)}:e}function hs(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}class ds{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function ps(t){t.type.prototype.ngOnChanges&&(t.setInput=fs,t.onChanges=function(){const t=gs(this),e=t&&t.current;if(e){const n=t.previous;if(n===ae)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}})}function fs(t,e,n,r){const i=gs(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:ae,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],l=s[a];o[a]=new ds(l&&l.currentValue,e,s===ae),t[r]=e}function gs(t){return t.__ngSimpleChanges__||null}function ms(t,e,n,r,i){if(t=xt(t),Array.isArray(t))for(let o=0;o<t.length;o++)ms(t[o],e,n,r,i);else{const o=qe(),s=He();let a=lo(t)?t:xt(t.provide),l=oo(t);const c=Be(),u=65535&c.providerIndexes,h=c.directiveStart,d=c.providerIndexes>>16;if(lo(t)||!t.multi){const r=new bn(l,i,Po),p=vs(a,e,i?u:u+d,h);-1===p?($n(Ln(c,s),o,a),_s(o,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(r),s.push(r)):(n[p]=r,s[p]=r)}else{const p=vs(a,e,u+d,h),f=vs(a,e,u,u+d),g=p>=0&&n[p],m=f>=0&&n[f];if(i&&!m||!i&&!g){$n(Ln(c,s),o,a);const u=function(t,e,n,r,i){const o=new bn(t,n,Po);return o.multi=[],o.index=e,o.componentProviders=0,ys(o,i,r&&!n),o}(i?ws:bs,n.length,i,r,l);!i&&m&&(n[f].providerFactory=u),_s(o,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(u),s.push(u)}else _s(o,t,p>-1?p:f),ys(n[i?f:p],l,!i&&r);!i&&r&&m&&n[f].componentProviders++}}}function _s(t,e,n){if(lo(e)||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;r&&(t.destroyHooks||(t.destroyHooks=[])).push(n,r)}}function ys(t,e,n){t.multi.push(e),n&&t.componentProviders++}function vs(t,e,n,r){for(let i=n;i<r;i++)if(e[i]===t)return i;return-1}function bs(t,e,n,r){return Cs(this.multi,[])}function ws(t,e,n,r){const i=this.multi;let o;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=Gn(n,n[1],this.providerFactory.index,r);o=e.slice(0,t),Cs(i,o);for(let n=t;n<e.length;n++)o.push(e[n])}else o=[],Cs(i,o);return o}function Cs(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function xs(t,e=[]){return n=>{n.providersResolver=(n,r)=>function(t,e,n){const r=qe();if(r.firstCreatePass){const i=Se(t);ms(n,r.data,r.blueprint,i,!0),ms(e,r.data,r.blueprint,i,!1)}}(n,r?r(t):t,e)}}ps.ngInherit=!0;class Es{}class Ss{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 Os=(()=>{class t{}return t.NULL=new Ss,t})(),ks=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>Ts(t),t})();const Ts=function(t){return Bi(t,Be(),He())};class Ps{}const Ms=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}();let As=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Is(),t})();const Is=function(){const t=He(),e=Re(Be().index,t);return function(t){const e=t[11];if(Te(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(be(e)?e:t)};let Ns=(()=>{class t{}return t.\u0275prov=ct({token:t,providedIn:"root",factory:()=>null}),t})();class Rs{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ds=new Rs("9.1.0");class Vs{constructor(){}supports(t){return bo(t)}create(t){return new js(t)}}const Ls=(t,e)=>e;class js{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||Ls}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,i=null;for(;e||n;){const o=!n||e&&e.currentIndex<Hs(n,r,i)?e:n,s=Hs(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);const t=s-r,e=a-r;if(t!=e){for(let n=0;n<t;n++){const r=n<i.length?i[n]:i[n]=0,o=r+n;e<=o&&o<t&&(i[n]=r+1)}i[o.previousIndex]=e-t}}s!==a&&t(o,s,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=[]),!bo(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,i=this._itHead,o=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],r=this._trackByFn(e,n),null!==i&&vo(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,n,r,e)),vo(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,r,e),o=!0),i=i._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[yo()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(t,t=>{r=this._trackByFn(e,t),null!==i&&vo(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,t,r,e)),vo(i.item,t)||this._addIdentityChange(i,t)):(i=this._mismatch(i,t,r,e),o=!0),i=i._next,e++}),this.length=e;return this._truncate(i),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 i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(vo(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(vo(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new Us(e,n),i,r),t}_verifyReinsertion(t,e,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,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,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._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 $s),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 $s),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 Us{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 Fs{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)&&vo(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 $s{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Fs,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 Hs(t,e,n){const r=t.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+e+i}class qs{constructor(){}supports(t){return t instanceof Map||wo(t)}create(){return new zs}}class zs{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||wo(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,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new Bs(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){vo(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 Bs{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 Gs=(()=>{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 ot,new rt]]}}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=ct({token:t,providedIn:"root",factory:()=>new t([new Vs])}),t})(),Ws=(()=>{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 ot,new rt]]}}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=ct({token:t,providedIn:"root",factory:()=>new t([new qs])}),t})();const Zs=[new qs],Qs=new Gs([new Vs]),Ys=new Ws(Zs);let Ks=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Js(t,ks),t})();const Js=function(t,e){return Gi(t,e,Be(),He())};let Xs=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ta(t,ks),t})();const ta=function(t,e){return Wi(t,e,Be(),He())},ea={};class na extends Os{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=_e(t);return new oa(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 ia=new Lt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>In});class oa extends Es{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(wr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return ra(this.componentDef.inputs)}get outputs(){return ra(this.componentDef.outputs)}create(t,e,n,r){const i=(r=r||this.ngModule)?function(t,e){return{get:(n,r,i)=>{const o=t.get(n,ea,i);return o!==ea||r===ea?o:e.get(n,r,i)}}}(t,r.injector):t,o=i.get(Ps,Pe),s=i.get(Ns,null),a=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Te(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):Nr(l,o.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),d={components:[],scheduler:In,clean:fi,playerHandler:null,flags:0},p=qr(0,-1,null,1,0,null,null,null,null,null),f=Rr(null,p,d,u,null,null,o,a,s,i);let g,m;on(f,null);try{const t=function(t,e,n,r,i,o){const s=n[1];n[19]=t;const a=Dr(s,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(mo(a,l),null!==t&&(wn(i,t,l),null!==a.classes&&Ui(i,t,a.classes),null!==a.styles&&ji(i,t,a.styles)));const c=r.createRenderer(t,e),u=Rr(n,Hr(e),null,e.onPush?64:16,n[19],a,r,c,void 0);return s.firstCreatePass&&($n(Ln(a,n),s,e.type),Jr(s,a),ti(a,n.length,1)),ci(n,u),n[19]=u}(c,this.componentDef,f,o,a);if(c)if(n)wn(a,c,["ng-version",Ds.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,i=2;for(;r<t.length;){let o=t[r];if("string"==typeof o)2===i?""!==o&&e.push(o,t[++r]):8===i&&n.push(o);else{if(!_r(i))break;i=o}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&wn(a,c,t),e&&e.length>0&&Ui(a,c,e.join(" "))}m=Ne(f[1],0),e&&(m.projection=e.map(t=>Array.from(t))),g=function(t,e,n,r,i){const o=n[1],s=function(t,e,n){const r=Be();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Kr(t,r,1),ei(t,e,n));const i=Gn(e,t,e.length-1,r);ur(i,e);const o=Ie(r,e);return o&&ur(o,e),i}(o,n,e);r.components.push(s),t[8]=s,i&&i.forEach(t=>t(s,e)),e.contentQueries&&e.contentQueries(1,s,n.length-1);const a=Be();if(o.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){dn(a.index-19);const t=n[1];Zr(t,e),Qr(t,n,e.hostVars),Yr(e,s)}return s}(t,this.componentDef,f,d,[ss]),Vr(p,f,null)}finally{un()}const _=new sa(this.componentType,g,Bi(ks,m,f),f,m);return n&&!h||(_.hostView._tViewNode.child=m),_}}class sa extends class{}{constructor(t,e,n,r,i){super(),this.location=n,this._rootLView=r,this._tNode=i,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new $i(r),this.hostView._tViewNode=function(t,e,n,r){let i=t.node;return null==i&&(t.node=i=zr(0,null,2,-1,null,null)),r[6]=i}(r[1],0,0,r),this.componentType=t}get injector(){return new Qn(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const 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]=Pt.ng&&Pt.ng.common&&Pt.ng.common.locales&&Pt.ng.common.locales[t]),ca[t]}const ha=function(){var t={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencyCode]="CurrencyCode",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.Directionality]="Directionality",t[t.PluralCase]="PluralCase",t[t.ExtraData]="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 Kt{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new na(this);const n=ve(t),r=t[Rt]||null;r&&pa(r),this._bootstrapComponents=Nn(n.bootstrap),this._r3Injector=no(t,e,[{provide:Kt,useValue:this},{provide:Os,useValue:this.componentFactoryResolver}],vt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=uo.THROW_IF_NOT_FOUND,n=st.Default){return t===uo||t===Kt||t===jt?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 Jt{constructor(t){super(),this.moduleType=t,null!==ve(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 _a(t,e,n){const r=Ye()+t,i=He();return i[r]===Cr?Co(i,r,n?e.call(n):e()):function(t,e){return t[e]}(i,r)}function ya(t,e,n,r){return function(t,e,n,r,i,o){const s=e+n;return xo(t,s,i)?Co(t,s+1,o?r.call(o,i):r(i)):function(t,e){const n=t[e];return n===Cr?void 0:n}(t,s+1)}(He(),Ye(),t,e,n,r)}class va extends S{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,i=t=>null,o=()=>null;t&&"object"==typeof t?(r=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(i=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(o=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const s=super.subscribe(r,i,o);return t instanceof h&&t.add(s),s}}function ba(){return this._results[yo()]()}class wa{constructor(){this.dirty=!0,this._results=[],this.changes=new va,this.length=0;const t=yo(),e=wa.prototype;e[t]||(e[t]=ba)}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 i=e[r];Array.isArray(i)?(n===e&&(n=e.slice(0,r)),t(i,n)):n!==e&&n.push(i)}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 Ca{constructor(t){this.queryList=t,this.matches=null}clone(){return new Ca(this.queryList)}setDirty(){this.queryList.setDirty()}}class xa{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 xa(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!==Na(t,e).matches&&this.queries[e].setDirty()}}class Ea{constructor(t,e,n,r=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=r}}class Sa{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,i=this.getByIndex(n).embeddedTView(t,r);i&&(i.indexInDeclarationView=n,null!==e?e.push(i):e=[i])}return null!==e?new Sa(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 Oa{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 Oa(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,ka(e,n[r]))}else{const n=this.metadata.predicate;n===Ks?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Bn(e,t,n,!1,!1))}}matchTNodeWithReadOption(t,e,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===ks||r===Xs||r===Ks&&0===e.type)this.addMatch(e.index,-2);else{const n=Bn(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 ka(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 Ta(t,e,n,r){return-1===n?function(t,e){return 3===t.type||4===t.type?Bi(ks,t,e):0===t.type?Gi(Ks,ks,t,e):null}(e,t):-2===n?function(t,e,n){return n===ks?Bi(ks,e,t):n===Ks?Gi(Ks,ks,e,t):n===Xs?Wi(Xs,ks,e,t):void 0}(t,e,r):Gn(t,t[1],n,e)}function Pa(t,e,n,r){const i=e[5].queries[r];if(null===i.matches){const r=t.data,o=n.matches,s=[];for(let t=0;t<o.length;t+=2){const i=o[t];s.push(i<0?null:Ta(e,r[i],o[t+1],n.metadata.read))}i.matches=s}return i.matches}function Ma(t){const e=He(),n=qe(),r=en();nn(r+1);const i=Na(n,r);if(t.dirty&&Ve(e)===i.metadata.isStatic){if(null===i.matches)t.reset([]);else{const o=i.crossesNgTemplate?function t(e,n,r,i){const o=e.queries.getByIndex(r),s=o.matches;if(null!==s){const a=Pa(e,n,o,r);for(let e=0;e<s.length;e+=2){const r=s[e];if(r>0)i.push(a[e/2]);else{const o=s[e+1],a=n[-r];for(let e=9;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,o,i)}if(null!==a[5]){const e=a[5];for(let n=0;n<e.length;n++){const r=e[n];t(r[1],r,o,i)}}}}}return i}(n,e,r,[]):Pa(n,e,i,r);t.reset(o),t.notifyOnChanges()}return!0}return!1}function Aa(t,e,n,r){!function(t,e,n,r,i,o,s,a){t.firstCreatePass&&(function(t,e,n){null===t.queries&&(t.queries=new Sa),t.queries.track(new Oa(e,n))}(t,new Ea(n,r,!1,i),s.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)),function(t,e){const n=new wa;!function(t,e,n,r){const i=gi(e);i.push(n),t.firstCreatePass&&mi(t).push(r,i.length-1)}(t,e,n,n.destroy),null===e[5]&&(e[5]=new xa),e[5].queries.push(new Ca(n))}(t,e)}(qe(),He(),e,n,r,0,Be(),t)}function Ia(){return t=He(),e=en(),t[5].queries[e].queryList;var t,e}function Na(t,e){return t.queries.getByIndex(e)}function Ra(t,e){return Gi(Ks,ks,t,e)}const Da=new Lt("Application Initializer");let Va=(()=>{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]();jo(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)(Wt(Da,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const La=new Lt("AppId"),ja={provide:La,useFactory:function(){return`${Ua()}${Ua()}${Ua()}`},deps:[]};function Ua(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Fa=new Lt("Platform Initializer"),$a=new Lt("Platform ID"),Ha=new Lt("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=ct({token:t,factory:t.\u0275fac}),t})();const za=new Lt("LocaleId"),Ba=new Lt("DefaultCurrencyCode");class Ga{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Wa=function(t){return new ma(t)},Za=Wa,Qa=function(t){return Promise.resolve(Wa(t))},Ya=function(t){const e=Wa(t),n=Nn(ve(t).declarations).reduce((t,e)=>{const n=_e(e);return n&&t.push(new oa(n)),t},[]);return new Ga(e,n)},Ka=Ya,Ja=function(t){return Promise.resolve(Ya(t))};let Xa=(()=>{class t{constructor(){this.compileModuleSync=Za,this.compileModuleAsync=Qa,this.compileModuleAndAllComponentsSync=Ka,this.compileModuleAndAllComponentsAsync=Ja}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const tl=new Lt("compilerOptions"),el=(()=>Promise.resolve(0))();function nl(t){"undefined"==typeof Zone?el.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class rl{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new va(!1),this.onMicrotaskEmpty=new va(!1),this.onStable=new va(!1),this.onError=new va(!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=Pt.requestAnimationFrame,e=Pt.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(Pt,()=>{t.lastRequestAnimationFrameId=-1,al(t),sl(t)}),al(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,r,i,o,s,a)=>{try{return ll(t),n.invokeTask(i,o,s,a)}finally{e&&"eventTask"===o.type&&e(),cl(t)}},onInvoke:(e,n,r,i,o,s,a)=>{try{return ll(t),e.invoke(r,i,o,s,a)}finally{cl(t)}},onHasTask:(e,n,r,i)=>{e.hasTask(r,i),n===r&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,al(t),sl(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,r,i)=>(e.handleError(r,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!rl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(rl.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 i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,ol,il,il);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function il(){}const ol={};function sl(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 al(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function ll(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function cl(t){t._nesting--,sl(t)}class ul{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new va,this.onMicrotaskEmpty=new va,this.onStable=new va,this.onError=new va}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 hl=(()=>{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:()=>{rl.assertNotInAngularZone(),nl(()=>{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())nl(()=>{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)(Wt(rl))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),dl=(()=>{class t{constructor(){this._applications=new Map,gl.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 gl.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class pl{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let fl,gl=new pl,ml=function(t,e,n){const r=t.get(tl,[]).concat(e),i=new ma(n);if(0===po.size)return Promise.resolve(i);const o=function(t){const e=[];return t.forEach(t=>t&&e.push(...t)),e}(r.map(t=>t.providers));if(0===o.length)return Promise.resolve(i);const s=function(){const t=Pt.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n  - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n  - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n  - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}(),a=uo.create({providers:o}).get(s.ResourceLoader);return function(t){const e=[],n=new Map;function r(t){let e=n.get(t);if(!e){const r=(t=>Promise.resolve(a.get(t)))(t);n.set(t,e=r.then(go))}return e}return po.forEach((t,n)=>{const i=[];t.templateUrl&&i.push(r(t.templateUrl).then(e=>{t.template=e}));const o=t.styleUrls,s=t.styles||(t.styles=[]),a=t.styles.length;o&&o.forEach((e,n)=>{s.push(""),i.push(r(e).then(r=>{s[a+n]=r,o.splice(o.indexOf(e),1),0==o.length&&(t.styleUrls=void 0)}))});const l=Promise.all(i).then(()=>function(t){fo.delete(t)}(n));e.push(l)}),po=new Map,Promise.all(e).then(()=>{})}().then(()=>i)};const _l=new Lt("AllowMultipleToken");class yl{constructor(t,e){this.name=t,this.token=e}}function vl(t,e,n=[]){const r=`Platform: ${e}`,i=new Lt(r);return(e=[])=>{let o=bl();if(!o||o.injector.get(_l,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{const t=n.concat(e).concat({provide:i,useValue:!0},{provide:Yi,useValue:"platform"});!function(t){if(fl&&!fl.destroyed&&!fl.injector.get(_l,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");fl=t.get(wl);const e=t.get(Fa,null);e&&e.forEach(t=>t())}(uo.create({providers:t,name:r}))}return function(t){const e=bl();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function bl(){return fl&&!fl.destroyed?fl:null}let wl=(()=>{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 ul:("zone.js"===t?void 0:t)||new rl({enableLongStackTrace:or(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),r=[{provide:rl,useValue:n}];return n.run(()=>{const e=uo.create({providers:r,parent:this.injector,name:t.moduleType.name}),i=t.create(e),o=i.injector.get(tr,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>El(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{o.handleError(t)}})),function(t,e,n){try{const r=n();return jo(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(o,n,()=>{const t=i.injector.get(Va);return t.runInitializers(),t.donePromise.then(()=>(pa(i.injector.get(za,"en-US")||"en-US"),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,e=[]){const n=Cl({},e);return ml(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(xl);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)(Wt(uo))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Cl(t,e){return Array.isArray(e)?e.reduce(Cl,t):Object.assign(Object.assign({},t),e)}let xl=(()=>{class t{constructor(t,e,n,r,i,o){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=or(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const s=new b(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new b(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{rl.assertNotInAngularZone(),nl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{rl.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 k(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 b?t[0]:B(e)(G(t,n))}(s,a.pipe(t=>{return W()((e=X,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,K);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 Es?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(Kt),i=n.create(uo.NULL,[],e||n.selector,r);i.onDestroy(()=>{this._unloadComponent(i)});const o=i.injector.get(hl,null);return o&&i.injector.get(dl).registerApplication(i.location.nativeElement,o),this._loadComponent(i),or()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i}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;El(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ha,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),El(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)(Wt(rl),Wt(qa),Wt(uo),Wt(tr),Wt(Os),Wt(Va))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function El(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Sl{}class Ol{}const kl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Tl=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||kl}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=>Pl(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),i="NgFactory";return void 0===r&&(r="default",i=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+i]).then(t=>Pl(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(Wt(Xa),Wt(Ol,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Pl(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Ml=vl(null,"core",[{provide:$a,useValue:"unknown"},{provide:wl,deps:[uo]},{provide:dl,deps:[]},{provide:qa,deps:[]}]),Al=[{provide:xl,useClass:xl,deps:[rl,qa,uo,tr,Os,Va]},{provide:ia,deps:[rl],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Va,useClass:Va,deps:[[new rt,Da]]},{provide:Xa,useClass:Xa,deps:[]},ja,{provide:Gs,useFactory:function(){return Qs},deps:[]},{provide:Ws,useFactory:function(){return Ys},deps:[]},{provide:za,useFactory:function(t){return pa(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new nt(za),new rt,new ot]]},{provide:Ba,useValue:"USD"}];let Il=(()=>{class t{constructor(t){}}return t.\u0275mod=fe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Wt(xl))},providers:Al}),t})(),Nl=null;function Rl(){return Nl}const Dl=new Lt("DocumentToken");let Vl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:Ll,token:t,providedIn:"platform"}),t})();function Ll(){return Wt(Ul)}const jl=new Lt("Location Initialized");let Ul=(()=>{class t extends Vl{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Rl().getLocation(),this._history=Rl().getHistory()}getBaseHrefFromDOM(){return Rl().getBaseHref(this._doc)}onPopState(t){Rl().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Rl().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){Fl()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){Fl()?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)(Wt(Dl))},t.\u0275prov=ct({factory:$l,token:t,providedIn:"platform"}),t})();function Fl(){return!!window.history.pushState}function $l(){return new Ul(Wt(Dl))}function Hl(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 ql(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 Bl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:Gl,token:t,providedIn:"root"}),t})();function Gl(t){const e=Wt(Dl).location;return new Zl(Wt(Vl),e&&e.origin||"")}const Wl=new Lt("appBaseHref");let Zl=(()=>{class t extends Bl{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 Hl(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 i=this.prepareExternalUrl(n+zl(r));this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,r){const i=this.prepareExternalUrl(n+zl(r));this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Wt(Vl),Wt(Wl,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Ql=(()=>{class t extends Bl{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=Hl(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let i=this.prepareExternalUrl(n+zl(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,r){let i=this.prepareExternalUrl(n+zl(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Wt(Vl),Wt(Wl,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Yl=(()=>{class t{constructor(t,e){this._subject=new va,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=ql(Jl(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,Jl(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.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)(Wt(Bl),Wt(Vl))},t.normalizeQueryParams=zl,t.joinWithSlash=Hl,t.stripTrailingSlash=ql,t.\u0275prov=ct({factory:Kl,token:t,providedIn:"root"}),t})();function Kl(){return new Yl(Wt(Bl),Wt(Vl))}function Jl(t){return t.replace(/\/index.html$/,"")}const Xl=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}();class tc{}let ec=(()=>{class t extends tc{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 Xl.Zero:return"zero";case Xl.One:return"one";case Xl.Two:return"two";case Xl.Few:return"few";case Xl.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Wt(za))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function nc(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,i]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(i)}return null}class rc{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 ic=(()=>{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){or()&&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 rc(null,this._ngForOf,-1,-1),null===r?void 0:r),i=new oc(t,n);e.push(i)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,r);const o=new oc(t,i);e.push(o)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=r,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Po(Xs),Po(Ks),Po(Gs))},t.\u0275dir=me({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class oc{constructor(t,e){this.record=t,this.view=e}}let sc=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new ac,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){lc("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){lc("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)(Po(Xs),Po(Ks))},t.\u0275dir=me({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class ac{constructor(){this.$implicit=null,this.ngIf=null}}function lc(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${vt(e)}'.`)}let cc=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[{provide:tc,useClass:ec}]}),t})(),uc=(()=>{class t{}return t.\u0275prov=ct({token:t,providedIn:"root",factory:()=>new hc(Wt(Dl),window,Wt(tr))}),t})();class hc{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,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}class dc extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new dc,Nl||(Nl=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=fc||(fc=document.querySelector("base"),fc)?fc.getAttribute("href"):null;return null==e?null:(n=e,pc||(pc=document.createElement("a")),pc.setAttribute("href",n),"/"===pc.pathname.charAt(0)?pc.pathname:"/"+pc.pathname);var n}resetBaseElement(){fc=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 nc(document.cookie,t)}}let pc,fc=null;const gc=new Lt("TRANSITION_ID"),mc=[{provide:Da,useFactory:function(t,e,n){return()=>{n.get(Va).donePromise.then(()=>{const n=Rl();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[gc,Dl,uo],multi:!0}];class _c{static init(){var t;t=new _c,gl=t}addToWindow(t){Pt.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},Pt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Pt.getAllAngularRootElements=()=>t.getAllRootElements(),Pt.frameworkStabilizers||(Pt.frameworkStabilizers=[]),Pt.frameworkStabilizers.push(t=>{const e=Pt.getAllAngularTestabilities();let n=e.length,r=!1;const i=function(e){r=r||e,n--,0==n&&t(r)};e.forEach((function(t){t.whenStable(i)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?Rl().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const yc=new Lt("EventManagerPlugins");let vc=(()=>{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)(Wt(yc),Wt(rl))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class bc{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const r=Rl().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,n)}}let wc=(()=>{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=ct({token:t,factory:t.\u0275fac}),t})(),Cc=(()=>{class t extends wc{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=>Rl().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Wt(Dl))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const xc={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/"},Ec=/%COMP%/g;function Sc(t,e,n){for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?Sc(t,i,n):(i=i.replace(Ec,t),n.push(i))}return n}function Oc(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let kc=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Tc(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 Pc(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 Mc(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Sc(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)(Wt(vc),Wt(Cc),Wt(La))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class Tc{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(xc[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 i=xc[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=xc[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&Ms.DashCase?t.style.setProperty(e,n,r&Ms.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Ms.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,Oc(n)):this.eventManager.addEventListener(t,e,Oc(n))}}class Pc extends Tc{constructor(t,e,n,r){super(t),this.component=n;const i=Sc(r+"-"+n.id,n.styles,[]);e.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(Ec,r+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(Ec,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 Mc extends Tc{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 i=Sc(r.id,r.styles,[]);for(let o=0;o<i.length;o++){const t=document.createElement("style");t.textContent=i[o],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let Ac=(()=>{class t extends bc{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)(Wt(Dl))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Ic=["alt","control","meta","shift"],Nc={"\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"},Rc={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"},Dc={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Vc=(()=>{class t extends bc{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const i=t.parseEventName(n),o=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Rl().onAndCancel(e,i.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const i=t._normalizeKey(n.pop());let o="";if(Ic.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;const s={};return s.domEventName=r,s.fullKey=o,s}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&&Rc.hasOwnProperty(e)&&(e=Rc[e]))}return Nc[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Ic.forEach(r=>{r!=n&&(0,Dc[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return i=>{t.getEventFullKey(i)===e&&r.runGuarded(()=>n(i))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Wt(Dl))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Lc=vl(Ml,"browser",[{provide:$a,useValue:"browser"},{provide:Fa,useValue:function(){dc.makeCurrent(),_c.init()},multi:!0},{provide:Dl,useFactory:function(){return function(t){ke=t}(document),document},deps:[]}]),jc=[[],{provide:Yi,useValue:"root"},{provide:tr,useFactory:function(){return new tr},deps:[]},{provide:yc,useClass:Ac,multi:!0,deps:[Dl,rl,$a]},{provide:yc,useClass:Vc,multi:!0,deps:[Dl]},[],{provide:kc,useClass:kc,deps:[vc,Cc,La]},{provide:Ps,useExisting:kc},{provide:wc,useExisting:Cc},{provide:Cc,useClass:Cc,deps:[Dl]},{provide:hl,useClass:hl,deps:[rl]},{provide:vc,useClass:vc,deps:[yc,rl]},[]];let Uc=(()=>{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:La,useValue:e.appId},{provide:gc,useExisting:La},mc]}}}return t.\u0275mod=fe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Wt(t,12))},providers:jc,imports:[cc,Il]}),t})();function Fc(...t){let e=t[t.length-1];return k(e)?(t.pop(),F(t,e)):G(t)}function $c(t,e){return H(t,e,1)}function Hc(t,e){return function(n){return n.lift(new qc(t,e))}}"undefined"!=typeof window&&window;class qc{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new zc(t,this.predicate,this.thisArg))}}class zc 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 Bc{}class Gc{}class Wc{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(),i=t.slice(e+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(i):this.headers.set(r,[i])}})}:()=>{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 Wc?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 Wc;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Wc?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 i=t.value;if(i){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===i.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 Zc{encodeKey(t){return Qc(t)}encodeValue(t){return Qc(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Qc(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 Yc{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Zc,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("="),[i,o]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],s=n.get(i)||[];s.push(o),n.set(i,s)}),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 Yc({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 Kc(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Jc(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Xc(t){return"undefined"!=typeof FormData&&t instanceof FormData}class tu{constructor(t,e,n,r){let i;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,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new Wc),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 Yc,this.urlWithParams=e}serializeBody(){return null===this.body?null:Kc(this.body)||Jc(this.body)||Xc(this.body)||"string"==typeof this.body?this.body:this.body instanceof Yc?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||Xc(this.body)?null:Jc(this.body)?this.body.type||null:Kc(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Yc?"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,i=void 0!==t.body?t.body:this.body,o=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=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 tu(e,n,i,{params:l,headers:a,reportProgress:s,responseType:r,withCredentials:o})}}const eu=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}();class nu{constructor(t,e=200,n="OK"){this.headers=t.headers||new Wc,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 ru extends nu{constructor(t={}){super(t),this.type=eu.ResponseHeader}clone(t={}){return new ru({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 iu extends nu{constructor(t={}){super(t),this.type=eu.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new iu({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 ou extends nu{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 su(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let au=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof tu)r=t;else{let i=void 0;i=n.headers instanceof Wc?n.headers:new Wc(n.headers);let o=void 0;n.params&&(o=n.params instanceof Yc?n.params:new Yc({fromObject:n.params})),r=new tu(t,e,void 0!==n.body?n.body:null,{headers:i,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=Fc(r).pipe($c(t=>this.handler.handle(t)));if(t instanceof tu||"events"===n.observe)return i;const o=i.pipe(Hc(t=>t instanceof iu));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return o.pipe(L(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return o.pipe(L(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return o.pipe(L(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return o.pipe(L(t=>t.body))}case"response":return o;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 Yc).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,su(n,e))}post(t,e,n={}){return this.request("POST",t,su(n,e))}put(t,e,n={}){return this.request("PUT",t,su(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Wt(Bc))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class lu{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const cu=new Lt("HTTP_INTERCEPTORS");let uu=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const hu=/^\)\]\}',?\n/;class du{}let pu=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),fu=(()=>{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 b(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 i=null;const o=()=>{if(null!==i)return i;const e=1223===n.status?204:n.status,r=n.statusText||"OK",o=new Wc(n.getAllResponseHeaders()),s=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 i=new ru({headers:o,status:e,statusText:r,url:s}),i},s=()=>{let{headers:r,status:i,statusText:s,url:a}=o(),l=null;204!==i&&(l=void 0===n.response?n.responseText:n.response),0===i&&(i=l?200:0);let c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(hu,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new iu({body:l,headers:r,status:i,statusText:s,url:a||void 0})),e.complete()):e.error(new ou({error:l,headers:r,status:i,statusText:s,url:a||void 0}))},a=t=>{const{url:r}=o(),i=new ou({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(i)};let l=!1;const c=r=>{l||(e.next(o()),l=!0);let i={type:eu.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(i.total=r.total),"text"===t.responseType&&n.responseText&&(i.partialText=n.responseText),e.next(i)},u=t=>{let n={type:eu.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",s),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:eu.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",s),t.reportProgress&&(n.removeEventListener("progress",c),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Wt(du))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const gu=new Lt("XSRF_COOKIE_NAME"),mu=new Lt("XSRF_HEADER_NAME");class _u{}let yu=(()=>{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=nc(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Wt(Dl),Wt($a),Wt(gu))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),vu=(()=>{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)(Wt(_u),Wt(mu))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),bu=(()=>{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(cu,[]);this.chain=t.reduceRight((t,e)=>new lu(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Wt(Gc),Wt(uo))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),wu=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:vu,useClass:uu}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:gu,useValue:e.cookieName}:[],e.headerName?{provide:mu,useValue:e.headerName}:[]]}}}return t.\u0275mod=fe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[vu,{provide:cu,useExisting:vu,multi:!0},{provide:_u,useClass:yu},{provide:gu,useValue:"XSRF-TOKEN"},{provide:mu,useValue:"X-XSRF-TOKEN"}]}),t})(),Cu=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[au,{provide:Bc,useClass:bu},fu,{provide:Gc,useExisting:fu},pu,{provide:du,useExisting:pu}],imports:[[wu.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();class xu 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 C;return this._value}next(t){super.next(this._value=t)}}const Eu=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),Su={};class Ou{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new ku(t,this.resultSelector))}}class ku extends V{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Su),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(D(this,e,e,n))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n,r,i){const o=this.values,s=this.toRespond?o[n]===Su?--this.toRespond:this.toRespond:0;o[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.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 Tu=new b(t=>t.complete());function Pu(t){return t?function(t){return new b(e=>t.schedule(()=>e.complete()))}(t):Tu}function Mu(t){return new b(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?$(n):Pu()).subscribe(e)})}function Au(){return B(1)}const Iu=(()=>{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 Nu(t){return function(e){return 0===t?Pu():e.lift(new Ru(t))}}class Ru{constructor(t){if(this.total=t,this.total<0)throw new Iu}call(t,e){return e.subscribe(new Du(t,this.total))}}class Du 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 i=0;i<n;i++){const i=e++%n;t.next(r[i])}}t.complete()}}function Vu(t=Uu){return e=>e.lift(new Lu(t))}class Lu{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new ju(t,this.errorFactory))}}class ju 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 Uu(){return new Eu}function Fu(t=null){return e=>e.lift(new $u(t))}class $u{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Hu(t,this.defaultValue))}}class Hu 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 qu(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Hc((e,n)=>t(e,n,r)):_,Nu(1),n?Fu(e):Vu(()=>new Eu))}function zu(t){return function(e){const n=new Bu(t),r=e.lift(n);return n.caught=r}}class Bu{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Gu(t,this.selector,this.caught))}}class Gu extends V{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 T(this,void 0,void 0);this.add(r);const i=D(this,n,void 0,void 0,r);i!==r&&this.add(i)}}}function Wu(t){return e=>0===t?Pu():e.lift(new Zu(t))}class Zu{constructor(t){if(this.total=t,this.total<0)throw new Iu}call(t,e){return e.subscribe(new Qu(t,this.total))}}class Qu 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 Yu(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Hc((e,n)=>t(e,n,r)):_,Wu(1),n?Fu(e):Vu(()=>new Eu))}class Ku{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new Ju(t,this.predicate,this.thisArg,this.source))}}class Ju 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 Xu(t,e){return"function"==typeof e?n=>n.pipe(Xu((n,r)=>$(t(n,r)).pipe(L((t,i)=>e(n,t,r,i))))):e=>e.lift(new th(t))}class th{constructor(t){this.project=t}call(t,e){return e.subscribe(new eh(t,this.project))}}class eh extends V{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 i=new T(this,e,n),o=this.destination;o.add(i),this.innerSubscription=D(this,t,void 0,void 0,i),this.innerSubscription!==i&&o.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,i){this.destination.next(e)}}function nh(...t){return Au()(Fc(...t))}function rh(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new ih(t,e,n))}}class ih{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new oh(t,this.accumulator,this.seed,this.hasSeed))}}class oh 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)}}function sh(){}function ah(t,e,n){return function(r){return r.lift(new lh(t,e,n))}}class lh{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new ch(t,this.nextOrObserver,this.error,this.complete))}}class ch extends f{constructor(t,e,n,i){super(t),this._tapNext=sh,this._tapError=sh,this._tapComplete=sh,this._tapError=n||sh,this._tapComplete=i||sh,r(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||sh,this._tapError=e.error||sh,this._tapComplete=e.complete||sh)}_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 uh{constructor(t){this.callback=t}call(t,e){return e.subscribe(new hh(t,this.callback))}}class hh extends f{constructor(t,e){super(t),this.add(new h(e))}}class dh{constructor(t,e){this.id=t,this.url=e}}class ph extends dh{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 fh extends dh{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class gh extends dh{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class mh extends dh{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class _h extends dh{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 yh extends dh{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 vh extends dh{constructor(t,e,n,r,i){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class bh extends dh{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 wh extends dh{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 Ch{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class xh{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Eh{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Sh{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Oh{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kh{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Th{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 Ph=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ue({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Vo(0,"router-outlet")},directives:function(){return[Rp]},encapsulation:2}),t})();class Mh{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(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 Ah(t){return new Mh(t)}function Ih(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Nh(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 i={};for(let o=0;o<r.length;o++){const e=r[o],n=t[o];if(e.startsWith(":"))i[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}class Rh{constructor(t,e){this.routes=t,this.module=e}}function Dh(t,e=""){for(let n=0;n<t.length;n++){const r=t[n];Vh(r,Lh(e,r))}}function Vh(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&&Dh(t.children,e)}function Lh(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function jh(t){const e=t.children&&t.children.map(jh),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=Ph),n}function Uh(t,e){const n=Object.keys(t),r=Object.keys(e);if(!n||!r||n.length!=r.length)return!1;let i;for(let o=0;o<n.length;o++)if(i=n[o],!Fh(t[i],e[i]))return!1;return!0}function Fh(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every(t=>e.indexOf(t)>-1):t===e}function $h(t){return Array.prototype.concat.apply([],t)}function Hh(t){return t.length>0?t[t.length-1]:null}function qh(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function zh(t){return Uo(t)?t:jo(t)?$(Promise.resolve(t)):Fc(t)}function Bh(t,e,n){return n?function(t,e){return Uh(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Qh(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=>Fh(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,i){if(n.segments.length>i.length)return!!Qh(n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!Qh(n.segments,i))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=i.slice(0,n.segments.length),o=i.slice(n.segments.length);return!!Qh(n.segments,t)&&!!n.children.primary&&e(n.children.primary,r,o)}}(e,n,n.segments)}(t.root,e.root)}class Gh{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ah(this.queryParams)),this._queryParamMap}toString(){return Xh.serialize(this)}}class Wh{constructor(t,e){this.segments=t,this.children=e,this.parent=null,qh(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return td(this)}}class Zh{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ah(this.parameters)),this._parameterMap}toString(){return sd(this)}}function Qh(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function Yh(t,e){let n=[];return qh(t.children,(t,r)=>{"primary"===r&&(n=n.concat(e(t,r)))}),qh(t.children,(t,r)=>{"primary"!==r&&(n=n.concat(e(t,r)))}),n}class Kh{}class Jh{parse(t){const e=new hd(t);return new Gh(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,n){if(!e.hasChildren())return td(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",r=[];return qh(e.children,(e,n)=>{"primary"!==n&&r.push(`${n}:${t(e,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=Yh(e,(n,r)=>"primary"===r?[t(e.children.primary,!1)]:[`${r}:${t(n,!1)}`]);return`${td(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=>`${nd(e)}=${nd(t)}`).join("&"):`${nd(e)}=${nd(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Xh=new Jh;function td(t){return t.segments.map(t=>sd(t)).join("/")}function ed(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function nd(t){return ed(t).replace(/%3B/gi,";")}function rd(t){return ed(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function id(t){return decodeURIComponent(t)}function od(t){return id(t.replace(/\+/g,"%20"))}function sd(t){return`${rd(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${rd(t)}=${rd(e[t])}`).join("")}`;var e}const ad=/^[^\/()?;=#]+/;function ld(t){const e=t.match(ad);return e?e[0]:""}const cd=/^[^=?&#]+/,ud=/^[^?&#]+/;class hd{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Wh([],{}):new Wh([],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 Wh(t,e)),n}parseSegment(){const t=ld(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Zh(id(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=ld(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=ld(this.remaining);t&&(n=t,this.capture(n))}t[id(e)]=id(n)}parseQueryParam(t){const e=function(t){const e=t.match(cd);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(ud);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=od(e),i=od(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(i)}else t[r]=i}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=ld(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i="primary");const o=this.parseChildren();e[i]=1===Object.keys(o).length?o.primary:new Wh([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class dd{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=pd(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=pd(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=fd(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return fd(t,this._root).map(t=>t.value)}}function pd(t,e){if(t===e.value)return e;for(const n of e.children){const e=pd(t,n);if(e)return e}return null}function fd(t,e){if(t===e.value)return[e];for(const n of e.children){const r=fd(t,n);if(r.length)return r.unshift(e),r}return[]}class gd{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function md(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class _d extends dd{constructor(t,e){super(t),this.snapshot=e,xd(this,t)}toString(){return this.snapshot.toString()}}function yd(t,e){const n=function(t,e){const n=new wd([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Cd("",new gd(n,[]))}(t,e),r=new xu([new Zh("",{})]),i=new xu({}),o=new xu({}),s=new xu({}),a=new xu(""),l=new vd(r,i,s,a,o,"primary",e,n.root);return l.snapshot=n.root,new _d(new gd(l,[]),n)}class vd{constructor(t,e,n,r,i,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,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(L(t=>Ah(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(L(t=>Ah(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function bd(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 wd{constructor(t,e,n,r,i,o,s,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,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=Ah(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ah(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Cd extends dd{constructor(t,e){super(e),this.url=t,xd(this,e)}toString(){return Ed(this._root)}}function xd(t,e){e.value._routerState=t,e.children.forEach(e=>xd(t,e))}function Ed(t){const e=t.children.length>0?` { ${t.children.map(Ed).join(", ")} } `:"";return`${t.value}${e}`}function Sd(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Uh(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Uh(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(!Uh(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Uh(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Od(t,e){var n,r;return Uh(t.params,e.params)&&Qh(n=t.url,r=e.url)&&n.every((t,e)=>Uh(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Od(t.parent,e.parent))}function kd(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Td(t,e,n,r,i){let o={};return r&&qh(r,(t,e)=>{o[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Gh(n.root===t?e:function t(e,n,r){const i={};return qh(e.children,(e,o)=>{i[o]=e===n?r:t(e,n,r)}),new Wh(e.segments,i)}(n.root,t,e),o,i)}class Pd{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&kd(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!==Hh(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Md{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Ad(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:`${t}`}function Id(t,e,n){if(t||(t=new Wh([],{})),0===t.segments.length&&t.hasChildren())return Nd(t,e,n);const r=function(t,e,n){let r=0,i=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=n.length)return o;const e=t.segments[i],s=Ad(n[r]),a=r<n.length-1?n[r+1]:null;if(i>0&&void 0===s)break;if(s&&a&&"object"==typeof a&&void 0===a.outlets){if(!Ld(s,a,e))return o;r+=2}else{if(!Ld(s,{},e))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){const e=new Wh(t.segments.slice(0,r.pathIndex),{});return e.children.primary=new Wh(t.segments.slice(r.pathIndex),t.children),Nd(e,0,i)}return r.match&&0===i.length?new Wh(t.segments,{}):r.match&&!t.hasChildren()?Rd(t,e,n):r.match?Nd(t,0,i):Rd(t,e,n)}function Nd(t,e,n){if(0===n.length)return new Wh(t.segments,{});{const r=function(t){return"object"!=typeof t[0]||void 0===t[0].outlets?{primary:t}:t[0].outlets}(n),i={};return qh(r,(n,r)=>{null!==n&&(i[r]=Id(t.children[r],e,n))}),qh(t.children,(t,e)=>{void 0===r[e]&&(i[e]=t)}),new Wh(t.segments,i)}}function Rd(t,e,n){const r=t.segments.slice(0,e);let i=0;for(;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){const t=Dd(n[i].outlets);return new Wh(r,t)}if(0===i&&kd(n[0])){r.push(new Zh(t.segments[e].path,n[0])),i++;continue}const o=Ad(n[i]),s=i<n.length-1?n[i+1]:null;o&&s&&kd(s)?(r.push(new Zh(o,Vd(s))),i+=2):(r.push(new Zh(o,{})),i++)}return new Wh(r,{})}function Dd(t){const e={};return qh(t,(t,n)=>{null!==t&&(e[n]=Rd(new Wh([],{}),0,t))}),e}function Vd(t){const e={};return qh(t,(t,n)=>e[n]=`${t}`),e}function Ld(t,e,n){return t==n.path&&Uh(e,n.parameters)}class jd{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),Sd(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=md(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),qh(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,i=e?e.value:null;if(r===i)if(r.component){const i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(t,e,i.children)}else this.deactivateChildRoutes(t,e,n);else i&&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=md(t),i=t.value.component?n.children:e;qh(r,(t,e)=>this.deactivateRouteAndItsChildren(t,i)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const r=md(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new kh(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Sh(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,i=e?e.value:null;if(Sd(r),r===i)if(r.component){const i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,i.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),Ud(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),i=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=i,e.outlet&&e.outlet.activateWith(r,i),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Ud(t){Sd(t.value),t.children.forEach(Ud)}function Fd(t){return"function"==typeof t}function $d(t){return t instanceof Gh}class Hd{constructor(t){this.segmentGroup=t||null}}class qd{constructor(t){this.urlTree=t}}function zd(t){return new b(e=>e.error(new Hd(t)))}function Bd(t){return new b(e=>e.error(new qd(t)))}function Gd(t){return new b(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Wd{constructor(t,e,n,r,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(Kt)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(L(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(zu(t=>{if(t instanceof qd)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Hd)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(L(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(zu(t=>{if(t instanceof Hd)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 Wh([],{primary:t}):t;return new Gh(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(L(t=>new Wh([],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 Fc({});const n=[],r=[],i={};return qh(t,(t,o)=>{const s=e(o,t).pipe(L(t=>i[o]=t));"primary"===o?n.push(s):r.push(s)}),Fc.apply(null,n.concat(r)).pipe(Au(),qu(),L(()=>i))}(n.children,(n,r)=>this.expandSegmentGroup(t,e,r,n))}expandSegment(t,e,n,r,i,o){return Fc(...n).pipe(L(s=>this.expandSegmentAgainstRoute(t,e,n,s,r,i,o).pipe(zu(t=>{if(t instanceof Hd)return Fc(null);throw t}))),Au(),Yu(t=>!!t),zu((t,n)=>{if(t instanceof Eu||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,r,i))return Fc(new Wh([],{}));throw new Hd(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,r,i,o,s){return Kd(r)!==o?zd(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):zd(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Bd(i):this.lineralizeSegments(n,i).pipe(H(n=>{const i=new Wh(n,{});return this.expandSegment(t,i,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o){const{matched:s,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Zd(e,r,i);if(!s)return zd(e);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?Bd(u):this.lineralizeSegments(r,u).pipe(H(r=>this.expandSegment(t,e,n,r.concat(i.slice(l)),o,!1)))}matchSegmentAgainstRoute(t,e,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(L(t=>(n._loadedConfig=t,new Wh(r,{})))):Fc(new Wh(r,{}));const{matched:i,consumedSegments:o,lastChild:s}=Zd(e,n,r);if(!i)return zd(e);const a=r.slice(s);return this.getChildConfig(t,n,r).pipe(H(t=>{const n=t.module,r=t.routes,{segmentGroup:i,slicedSegments:s}=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some(n=>Yd(t,e,n)&&"primary"!==Kd(n))}(t,n,r)?{segmentGroup:Qd(new Wh(e,function(t,e){const n={};n.primary=e;for(const r of t)""===r.path&&"primary"!==Kd(r)&&(n[Kd(r)]=new Wh([],{}));return n}(r,new Wh(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>Yd(t,e,n))}(t,n,r)?{segmentGroup:Qd(new Wh(t.segments,function(t,e,n,r){const i={};for(const o of n)Yd(t,e,o)&&!r[Kd(o)]&&(i[Kd(o)]=new Wh([],{}));return Object.assign(Object.assign({},r),i)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,o,a,r);return 0===s.length&&i.hasChildren()?this.expandChildren(n,r,i).pipe(L(t=>new Wh(o,t))):0===r.length&&0===s.length?Fc(new Wh(o,{})):this.expandSegment(n,i,r,s,"primary",!0).pipe(L(t=>new Wh(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Fc(new Rh(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Fc(e._loadedConfig):function(t,e,n){const r=e.canLoad;return r&&0!==r.length?$(r).pipe(L(r=>{const i=t.get(r);let o;if(function(t){return t&&Fd(t.canLoad)}(i))o=i.canLoad(e,n);else{if(!Fd(i))throw new Error("Invalid CanLoad guard");o=i(e,n)}return zh(o)})).pipe(Au(),(i=t=>!0===t,t=>t.lift(new Ku(i,void 0,t)))):Fc(!0);var i}(t.injector,e,n).pipe(H(n=>n?this.configLoader.load(t.injector,e).pipe(L(t=>(e._loadedConfig=t,t))):function(t){return new b(e=>e.error(Ih(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Fc(new Rh([],t))}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Fc(n);if(r.numberOfChildren>1||!r.children.primary)return Gd(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 i=this.createSegmentGroup(t,e.root,n,r);return new Gh(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return qh(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const i=t.substring(1);n[r]=e[i]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const i=this.createSegments(t,e.segments,n,r);let o={};return qh(e.children,(e,i)=>{o[i]=this.createSegmentGroup(t,e,n,r)}),new Wh(i,o)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function Zd(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||Nh)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Qd(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Wh(t.segments.concat(e.segments),e.children)}return t}function Yd(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Kd(t){return t.outlet||"primary"}class Jd{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Xd{constructor(t,e){this.component=t,this.route=e}}function tp(t,e,n){const r=t._root;return function t(e,n,r,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=md(n);return e.children.forEach(e=>{!function(e,n,r,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=e.value,a=n?n.value:null,l=r?r.getContext(e.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Qh(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Qh(t.url,e.url)||!Uh(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Od(t,e)||!Uh(t.queryParams,e.queryParams);case"paramsChange":default:return!Od(t,e)}}(a,s,s.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Jd(i)):(s.data=a.data,s._resolvedData=a._resolvedData),t(e,n,s.component?l?l.children:null:r,i,o),c&&o.canDeactivateChecks.push(new Xd(l&&l.outlet&&l.outlet.component||null,a))}else a&&np(n,l,o),o.canActivateChecks.push(new Jd(i)),t(e,null,s.component?l?l.children:null:r,i,o)}(e,s[e.value.outlet],r,i.concat([e.value]),o),delete s[e.value.outlet]}),qh(s,(t,e)=>np(t,r.getContext(e),o)),o}(r,e?e._root:null,n,[r.value])}function ep(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 np(t,e,n){const r=md(t),i=t.value;qh(r,(t,r)=>{np(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Xd(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}const rp=Symbol("INITIAL_VALUE");function ip(){return Xu(t=>function(...t){let e=null,n=null;return k(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]),G(t,n).lift(new Ou(e))}(...t.map(t=>t.pipe(Wu(1),function(...t){const e=t[t.length-1];return k(e)?(t.pop(),n=>nh(t,n,e)):e=>nh(t,e)}(rp)))).pipe(rh((t,e)=>{let n=!1;return e.reduce((t,r,i)=>{if(t!==rp)return t;if(r===rp&&(n=!0),!n){if(!1===r)return r;if(i===e.length-1||$d(r))return r}return t},t)},rp),Hc(t=>t!==rp),L(t=>$d(t)?t:!0===t),Wu(1)))}function op(t,e){return null!==t&&e&&e(new Oh(t)),Fc(!0)}function sp(t,e){return null!==t&&e&&e(new Eh(t)),Fc(!0)}function ap(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?Fc(r.map(r=>Mu(()=>{const i=ep(r,e,n);let o;if(function(t){return t&&Fd(t.canActivate)}(i))o=zh(i.canActivate(e,t));else{if(!Fd(i))throw new Error("Invalid CanActivate guard");o=zh(i(e,t))}return o.pipe(Yu())}))).pipe(ip()):Fc(!0)}function lp(t,e,n){const r=e[e.length-1],i=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=>Mu(()=>Fc(e.guards.map(i=>{const o=ep(i,e.node,n);let s;if(function(t){return t&&Fd(t.canActivateChild)}(o))s=zh(o.canActivateChild(r,t));else{if(!Fd(o))throw new Error("Invalid CanActivateChild guard");s=zh(o(r,t))}return s.pipe(Yu())})).pipe(ip())));return Fc(i).pipe(ip())}class cp{}class up{constructor(t,e,n,r,i,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}recognize(){try{const t=pp(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new wd([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new gd(n,e),i=new Cd(this.url,r);return this.inheritParamsAndData(i._root),Fc(i)}catch(t){return new b(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=bd(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=Yh(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 o of t)try{return this.processSegmentAgainstRoute(o,e,n,r)}catch(i){if(!(i instanceof cp))throw i}if(this.noLeftoversInUrl(e,n,r))return[];throw new cp}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo)throw new cp;if((t.outlet||"primary")!==r)throw new cp;let i,o=[],s=[];if("**"===t.path){const o=n.length>0?Hh(n).parameters:{};i=new wd(n,o,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,mp(t),r,t.component,t,hp(e),dp(e)+n.length,_p(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new cp;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(e.matcher||Nh)(n,t,e);if(!r)throw new cp;const i={};qh(r.posParams,(t,e)=>{i[e]=t.path});const o=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(e,t,n);o=a.consumedSegments,s=n.slice(a.lastChild),i=new wd(o,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,mp(t),r,t.component,t,hp(e),dp(e)+o.length,_p(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=pp(e,o,s,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new gd(i,t)]}if(0===a.length&&0===c.length)return[new gd(i,[])];const u=this.processSegment(a,l,c,"primary");return[new gd(i,u)]}}function hp(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function dp(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 pp(t,e,n,r,i){if(n.length>0&&function(t,e,n){return n.some(n=>fp(t,e,n)&&"primary"!==gp(n))}(t,n,r)){const i=new Wh(e,function(t,e,n,r){const i={};i.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const o of n)if(""===o.path&&"primary"!==gp(o)){const n=new Wh([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,i[gp(o)]=n}return i}(t,e,r,new Wh(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>fp(t,e,n))}(t,n,r)){const o=new Wh(t.segments,function(t,e,n,r,i,o){const s={};for(const a of r)if(fp(t,n,a)&&!i[gp(a)]){const n=new Wh([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[gp(a)]=n}return Object.assign(Object.assign({},i),s)}(t,e,n,r,t.children,i));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}const o=new Wh(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}function fp(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function gp(t){return t.outlet||"primary"}function mp(t){return t.data||{}}function _p(t){return t.resolve||{}}function yp(t,e,n,r){const i=ep(t,e,r);return zh(i.resolve?i.resolve(e,n):i(e,n))}function vp(t){return function(e){return e.pipe(Xu(e=>{const n=t(e);return n?$(n).pipe(L(()=>e)):$([e])}))}}class bp{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const wp=new Lt("ROUTES");class Cp{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(L(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new Rh($h(r.injector.get(wp)).map(jh),r)}))}loadModuleFactory(t){return"string"==typeof t?$(this.loader.load(t)):zh(t()).pipe(H(t=>t instanceof Jt?Fc(t):$(this.compiler.compileModuleAsync(t))))}}class xp{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Ep(t){throw t}function Sp(t,e,n){return e.parse("/")}function Op(t,e){return Fc(null)}let kp=(()=>{class t{constructor(t,e,n,r,i,o,s,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=Ep,this.malformedUriErrorHandler=Sp,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Op,afterPreactivation:Op},this.urlHandlingStrategy=new xp,this.routeReuseStrategy=new bp,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(Kt),this.console=i.get(qa);const l=i.get(rl);this.isNgZoneEnabled=l instanceof rl,this.resetConfig(a),this.currentUrlTree=new Gh(new Wh([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Cp(o,s,t=>this.triggerEvent(new Ch(t)),t=>this.triggerEvent(new xh(t))),this.routerState=yd(this.currentUrlTree,this.rootComponentType),this.transitions=new xu({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(Hc(t=>0!==t.id),L(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Xu(t=>{let n=!1,r=!1;return Fc(t).pipe(ah(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}}),Xu(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Fc(t).pipe(Xu(t=>{const n=this.transitions.getValue();return e.next(new ph(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?Tu:[t]}),Xu(t=>Promise.resolve(t)),(r=this.ngModule.injector,i=this.configLoader,o=this.urlSerializer,s=this.config,function(t){return t.pipe(Xu(t=>function(t,e,n,r,i){return new Wd(t,e,n,r,i).apply()}(r,i,o,t.extractedUrl,s).pipe(L(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),ah(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,i){return function(o){return o.pipe(H(o=>function(t,e,n,r,i="emptyOnly",o="legacy"){return new up(t,e,n,r,i,o).recognize()}(t,e,o.urlAfterRedirects,n(o.urlAfterRedirects),r,i).pipe(L(t=>Object.assign(Object.assign({},o),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),ah(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),ah(t=>{const n=new _h(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var r,i,o,s;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:i,restoredState:o,extras:s}=t,a=new ph(n,this.serializeUrl(r),i,o);e.next(a);const l=yd(r,this.rootComponentType).snapshot;return Fc(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},s),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Tu}),vp(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!s})}),ah(t=>{const e=new yh(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),L(t=>Object.assign(Object.assign({},t),{guards:tp(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(H(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return 0===s.length&&0===o.length?Fc(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return $(t).pipe(H(t=>function(t,e,n,r,i){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?Fc(o.map(o=>{const s=ep(o,e,i);let a;if(function(t){return t&&Fd(t.canDeactivate)}(s))a=zh(s.canDeactivate(t,e,n,r));else{if(!Fd(s))throw new Error("Invalid CanDeactivate guard");a=zh(s(t,e,n,r))}return a.pipe(Yu())})).pipe(ip()):Fc(!0)}(t.component,t.route,n,e,r)),Yu(t=>!0!==t,!0))}(s,r,i,t).pipe(H(n=>n&&"boolean"==typeof n?function(t,e,n,r){return $(e).pipe($c(e=>$([sp(e.route.parent,r),op(e.route,r),lp(t,e.path,n),ap(t,e.route,n)]).pipe(Au(),Yu(t=>!0!==t,!0))),Yu(t=>!0!==t,!0))}(r,o,t,e):Fc(n)),L(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),ah(t=>{if($d(t.guardsResult)){const e=Ih(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),ah(t=>{const e=new vh(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Hc(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new gh(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),vp(t=>{if(t.guards.canActivateChecks.length)return Fc(t).pipe(ah(t=>{const e=new bh(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(e=this.paramsInheritanceStrategy,n=this.ngModule.injector,function(t){return t.pipe(H(t=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=t;return i.length?$(i).pipe($c(t=>function(t,e,n,r){return function(t,e,n,r){const i=Object.keys(t);if(0===i.length)return Fc({});if(1===i.length){const o=i[0];return yp(t[o],e,n,r).pipe(L(t=>({[o]:t})))}const o={};return $(i).pipe(H(i=>yp(t[i],e,n,r).pipe(L(t=>(o[i]=t,t))))).pipe(qu(),L(()=>o))}(t._resolve,t,e,r).pipe(L(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),bd(t,n).resolve),null)))}(t.route,r,e,n)),function(t,e){return arguments.length>=2?function(n){return y(rh(t,e),Nu(1),Fu(e))(n)}:function(e){return y(rh((e,n,r)=>t(e,n,r+1)),Nu(1))(e)}}((t,e)=>t),L(e=>t)):Fc(t)}))}),ah(t=>{const e=new wh(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,n}),vp(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!s})}),L(t=>{const e=function(t,e,n){const r=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){const i=r.value;i._futureSnapshot=n.value;const o=function(e,n,r){return n.children.map(n=>{for(const i of r.children)if(e.shouldReuseRoute(i.value.snapshot,n.value))return t(e,n,i);return t(e,n)})}(e,n,r);return new gd(i,o)}{const r=e.retrieve(n.value);if(r){const t=r.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let r=0;r<e.children.length;++r)t(e.children[r],n.children[r])}(n,t),t}{const r=new vd(new xu((i=n.value).url),new xu(i.params),new xu(i.queryParams),new xu(i.fragment),new xu(i.data),i.outlet,i.component,i),o=n.children.map(n=>t(e,n));return new gd(r,o)}}var i}(t,e._root,n?n._root:void 0);return new _d(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),ah(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(o=this.rootContexts,s=this.routeReuseStrategy,a=t=>this.triggerEvent(t),L(t=>(new jd(s,t.targetRouterState,t.currentRouterState,a).activate(o),t))),ah({next(){n=!0},complete(){n=!0}}),(i=()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new gh(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 uh(i))),zu(n=>{if(r=!0,(i=n)&&i.ngNavigationCancelingError){const r=$d(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const i=new gh(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(i),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 mh(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(o){t.reject(o)}}var i;return Tu}));var i,o,s,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){Dh(t),this.config=t.map(jh),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:i,preserveQueryParams:o,queryParamsHandling:s,preserveFragment:a}=e;or()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,c=a?this.currentUrlTree.fragment:i;let u=null;if(s)switch(s){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}else u=o?this.currentUrlTree.queryParams:r||null;return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,n,r,i){if(0===n.length)return Td(e.root,e.root,e,r,i);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Pd(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,i)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return qh(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===i?(r.split("/").forEach((r,i)=>{0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new Pd(n,e,r)}(n);if(o.toRoot())return Td(e.root,new Wh([],{}),e,r,i);const s=function(t,e,n){if(t.isAbsolute)return new Md(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new Md(n.snapshot._urlSegment,!0,0);const r=kd(t.commands[0])?0:1;return function(t,e,n){let r=t,i=e,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new Md(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),a=s.processChildren?Nd(s.segmentGroup,s.index,o.commands):Id(s.segmentGroup,s.index,o.commands);return Td(s.segmentGroup,a,e,r,i)}(l,this.currentUrlTree,t,u,c)}navigateByUrl(t,e={skipLocationChange:!1}){or()&&this.isNgZoneEnabled&&!rl.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=$d(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($d(t))return Bh(this.currentUrlTree,t,e);const n=this.parseUrl(t);return Bh(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 fh(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,i){const o=this.getTransition();if(o&&"imperative"!==e&&"imperative"===o.source&&o.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(o&&"hashchange"==e&&"popstate"===o.source&&o.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(o&&"popstate"==e&&"hashchange"===o.source&&o.rawUrl.toString()===t.toString())return Promise.resolve(!0);let s,a,l;i?(s=i.resolve,a=i.reject,l=i.promise):l=new Promise((t,e)=>{s=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:s,reject:a,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,r){const i=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(i)||e?this.location.replaceState(i,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(i,"",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(t){Ao()},t.\u0275dir=me({type:t}),t})(),Tp=(()=>{class t{constructor(t,e,n,r,i){this.router=t,this.route=e,this.commands=[],null==n&&r.setAttribute(i.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){or()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:Mp(this.skipLocationChange),replaceUrl:Mp(this.replaceUrl)};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:Mp(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Mp(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Po(kp),Po(vd),Mo("tabindex"),Po(As),Po(ks))},t.\u0275dir=me({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&Fo("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})(),Pp=(()=>{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 fh&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){or()&&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 i={skipLocationChange:Mp(this.skipLocationChange),replaceUrl:Mp(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,i),!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:Mp(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Mp(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Po(kp),Po(vd),Po(Bl))},t.\u0275dir=me({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Fo("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(os("href",e.href,cr),So("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:[ps]}),t})();function Mp(t){return""===t||!!t}let Ap=(()=>{class t{constructor(t,e,n,r,i){this.router=t,this.element=e,this.renderer=n,this.link=r,this.linkWithHref=i,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(t=>{t instanceof fh&&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.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)(Po(kp),Po(ks),Po(As),Po(Tp,8),Po(Pp,8))},t.\u0275dir=me({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){var r;1&t&&(Aa(n,Tp,!0),Aa(n,Pp,!0)),2&t&&(Ma(r=Ia())&&(e.links=r),Ma(r=Ia())&&(e.linksWithHrefs=r))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[ps]}),t})();class Ip{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Np,this.attachRef=null}}class Np{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 Ip,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let Rp=(()=>{class t{constructor(t,e,n,r,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new va,this.deactivateEvents=new va,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,i=new Dp(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Po(Np),Po(Xs),Po(Os),Mo("name"),Po(Zi))},t.\u0275dir=me({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Dp{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===vd?this.route:t===Np?this.childContexts:this.parent.get(t,e)}}class Vp{}class Lp{preload(t,e){return Fc(null)}}let jp=(()=>{class t{constructor(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i,this.loader=new Cp(e,n,e=>t.triggerEvent(new Ch(e)),e=>t.triggerEvent(new xh(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Hc(t=>t instanceof fh),$c(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Kt);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 $(n).pipe(B(),L(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(H(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(Wt(kp),Wt(Sl),Wt(Xa),Wt(uo),Wt(Vp))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Up=(()=>{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 ph?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof fh&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Th&&(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 Th(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(t){Ao()},t.\u0275dir=me({type:t}),t})();const Fp=new Lt("ROUTER_CONFIGURATION"),$p=new Lt("ROUTER_FORROOT_GUARD"),Hp=[Yl,{provide:Kh,useClass:Jh},{provide:kp,useFactory:function(t,e,n,r,i,o,s,a={},l,c){const u=new kp(null,t,e,n,r,i,o,$h(s));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=Rl();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:[Kh,Np,Yl,uo,Sl,Xa,wp,Fp,[class{},new rt],[class{},new rt]]},Np,{provide:vd,useFactory:function(t){return t.routerState.root},deps:[kp]},{provide:Sl,useClass:Tl},jp,Lp,class{preload(t,e){return e().pipe(zu(()=>Fc(null)))}},{provide:Fp,useValue:{enableTracing:!1}}];function qp(){return new yl("Router",kp)}let zp=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Hp,Zp(e),{provide:$p,useFactory:Wp,deps:[[kp,new rt,new ot]]},{provide:Fp,useValue:n||{}},{provide:Bl,useFactory:Gp,deps:[Vl,[new nt(Wl),new rt],Fp]},{provide:Up,useFactory:Bp,deps:[kp,uc,Fp]},{provide:Vp,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Lp},{provide:yl,multi:!0,useFactory:qp},[Qp,{provide:Da,multi:!0,useFactory:Yp,deps:[Qp]},{provide:Jp,useFactory:Kp,deps:[Qp]},{provide:Ha,multi:!0,useExisting:Jp}]]}}static forChild(e){return{ngModule:t,providers:[Zp(e)]}}}return t.\u0275mod=fe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Wt($p,8),Wt(kp,8))}}),t})();function Bp(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Up(t,e,n)}function Gp(t,e,n={}){return n.useHash?new Ql(t,e):new Zl(t,e)}function Wp(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Zp(t){return[{provide:ho,multi:!0,useValue:t},{provide:wp,multi:!0,useValue:t}]}let Qp=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new S}appInitializer(){return this.injector.get(jl,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(kp),r=this.injector.get(Fp);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?Fc(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(Fp),n=this.injector.get(jp),r=this.injector.get(Up),i=this.injector.get(kp),o=this.injector.get(xl);t===o.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(Wt(uo))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Yp(t){return t.appInitializer.bind(t)}function Kp(t){return t.bootstrapListener.bind(t)}const Jp=new Lt("Router Initializer");let Xp=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ue({type:t,selectors:[["app-home"]],decls:71,vars:0,consts:[["lang","en"],["charset","UTF-8"],["name","viewport","content","width=device-width, initial-scale=1.0"],[1,"center"],[1,"und"],["href","https://hidden-waters-14346.herokuapp.com/","taget","_blank"],[1,"left"],[1,"webapilinks"],["href","https://hidden-waters-14346.herokuapp.com/api/termEnglish","taget","_blank"],["href","https://hidden-waters-14346.herokuapp.com/api/termEnglish/5e8535a4180b680017efcbab","taget","_blank"],["href","https://hidden-waters-14346.herokuapp.com/api/termEnglish/word/JSON","taget","_blank"],[1,"right"],["href","https://hidden-waters-14346.herokuapp.com/api/termNonEnglish","taget","_blank"],["href","https://hidden-waters-14346.herokuapp.com/api/termNonEnglish/5e68fc8d4e66bc5c92978bfe","taget","_blank"],["href","https://hidden-waters-14346.herokuapp.com/api/termNonEnglish/word/Asynchronisme","taget","_blank"]],template:function(t,e){1&t&&(Ro(0,"html",0),Ro(1,"head"),Vo(2,"meta",1),Vo(3,"meta",2),Ro(4,"title"),ts(5,"Home"),Do(),Do(),Ro(6,"body"),Ro(7,"div",3),Ro(8,"p"),ts(9,"The app\u2019s purpose is to define or translate the English-language terminology we use in the computer programming courses in the School of SDDS, for use by all students, whether or not English is a student\u2019s first language. "),Do(),Ro(10,"p",4),ts(11,"WEB API: "),Ro(12,"a",5),ts(13,"https://hidden-waters-14346.herokuapp.com/"),Do(),Do(),Do(),Ro(14,"tr"),Ro(15,"td",6),Ro(16,"div",7),Ro(17,"h3"),ts(18,"English"),Do(),Ro(19,"p"),ts(20,"Get All English Term: "),Ro(21,"a",8),ts(22,"api/termEnglish"),Do(),Do(),Ro(23,"p"),ts(24,"Get One English Term By Id: "),Ro(25,"a",9),ts(26,"api/termEnglish/:id"),Do(),Do(),Ro(27,"p"),ts(28,"Get One English Term By Word: "),Ro(29,"a",10),ts(30,"api/termEnglish/word/:word"),Do(),Do(),Ro(31,"p"),ts(32,"Add New English Term: api/termEnglish"),Do(),Ro(33,"p"),ts(34,"Add Definition For English Term: /api/termEnglish/:id/add-defintion"),Do(),Ro(35,"p"),ts(36,"Increment Yes Counter For English Term: /api/termEnglish/yes/:id"),Do(),Ro(37,"p"),ts(38,"Increment No Counter For English Term: /api/termEnglish/no/:id"),Do(),Ro(39,"p"),ts(40,"Increment Likes Counter For English Terms Definition: /api/termEnglish/likes/:id"),Do(),Ro(41,"p"),ts(42,"Delete a English Term: /api/delete/termEnglish/:id"),Do(),Do(),Do(),Ro(43,"td",11),Ro(44,"div",7),Ro(45,"h3"),ts(46,"Non-English"),Do(),Ro(47,"p"),ts(48,"Get All Non-English Term: "),Ro(49,"a",12),ts(50,"api/termNonEnglish"),Do(),Do(),Ro(51,"p"),ts(52,"Get One Non-English Term By Id: "),Ro(53,"a",13),ts(54,"api/termNonEnglish/:id"),Do(),Do(),Ro(55,"p"),ts(56,"Get One Non-English Term By Word: "),Ro(57,"a",14),ts(58,"api/termNonEnglish/word/:word"),Do(),Do(),Ro(59,"p"),ts(60,"Add New Non-English Term: api/termNonEnglish"),Do(),Ro(61,"p"),ts(62,"Add Definition For Non-English Term: /api/termNonEnglish/:id/add-defintion"),Do(),Ro(63,"p"),ts(64,"Increment Yes Counter For Non-English Term: /api/termNonEnglish/yes/:id"),Do(),Ro(65,"p"),ts(66,"Increment No Counter For Non-English Term: /api/termNonEnglish/no/:id"),Do(),Ro(67,"p"),ts(68,"Increment Likes Counter For Non-English Terms Definition: /api/termNonEnglish/likes/:id"),Do(),Ro(69,"p"),ts(70,"Delete a Non-English Term: /api/delete/termNonEnglish/:id"),Do(),Do(),Do(),Do(),Do(),Do())},styles:[".und[_ngcontent-%COMP%], h3[_ngcontent-%COMP%]{text-decoration:underline}.und[_ngcontent-%COMP%]{font-weight:700}.center[_ngcontent-%COMP%]{padding-left:150px;padding-right:150px;text-align:center}.left[_ngcontent-%COMP%], .right[_ngcontent-%COMP%]{width:50%;padding-left:20px}.left[_ngcontent-%COMP%]{padding-right:20px}"]}),t})();function tf(t,e){return new b(n=>{const r=t.length;if(0===r)return void n.complete();const i=new Array(r);let o=0,s=0;for(let a=0;a<r;a++){const l=$(t[a]);let c=!1;n.add(l.subscribe({next:t=>{c||(c=!0,s++),i[a]=t},error:t=>n.error(t),complete:()=>{o++,o!==r&&c||(s===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=i[n],t),{}):i),n.complete())}}))}})}const ef=new Lt("NgValueAccessor"),nf={provide:ef,useExisting:Ct(()=>rf),multi:!0};let rf=(()=>{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)(Po(As),Po(ks))},t.\u0275dir=me({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&Fo("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[xs([nf])]}),t})();const of={provide:ef,useExisting:Ct(()=>af),multi:!0},sf=new Lt("CompositionEventMode");let af=(()=>{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=Rl()?Rl().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)(Po(As),Po(ks),Po(sf,8))},t.\u0275dir=me({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&&Fo("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:[xs([of])]}),t})(),lf=(()=>{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=me({type:t}),t})(),cf=(()=>{class t extends lf{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return uf(e||t)},t.\u0275dir=me({type:t,features:[as]}),t})();const uf=Yn(cf);function hf(){throw new Error("unimplemented")}class df extends lf{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return hf()}get asyncValidator(){return hf()}}class pf{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 ff=(()=>{class t extends pf{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Po(df,2))},t.\u0275dir=me({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Qo("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:[as]}),t})(),gf=(()=>{class t extends pf{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Po(cf,2))},t.\u0275dir=me({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&Qo("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:[as]}),t})();function mf(t){return null==t||0===t.length}const _f=new Lt("NgValidators"),yf=new Lt("NgAsyncValidators"),vf=/^(?=.{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 bf{static min(t){return e=>{if(mf(e.value)||mf(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(mf(e.value)||mf(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return mf(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return mf(t.value)||vf.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(mf(e.value))return null;const n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}}static maxLength(t){return e=>{const n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}}static pattern(t){if(!t)return bf.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(mf(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(wf);return 0==e.length?null:function(t){return xf(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(wf);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(l(e))return tf(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return tf(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return tf(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(L(t=>e(...t)))}return tf(t,null)}(function(t,e){return e.map(e=>e(t))}(t,e).map(Cf)).pipe(L(xf))}}}function wf(t){return null!=t}function Cf(t){const e=jo(t)?$(t):t;if(!Uo(e))throw new Error("Expected validator to return Promise or Observable.");return e}function xf(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 Ef(t){return t.validate?e=>t.validate(e):t}function Sf(t){return t.validate?e=>t.validate(e):t}const Of={provide:ef,useExisting:Ct(()=>kf),multi:!0};let kf=(()=>{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)(Po(As),Po(ks))},t.\u0275dir=me({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&Fo("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[xs([Of])]}),t})();const Tf={provide:ef,useExisting:Ct(()=>Mf),multi:!0};let Pf=(()=>{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=ct({token:t,factory:t.\u0275fac}),t})(),Mf=(()=>{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(df),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)(Po(As),Po(ks),Po(Pf),Po(uo))},t.\u0275dir=me({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&Fo("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[xs([Tf])]}),t})();const Af={provide:ef,useExisting:Ct(()=>If),multi:!0};let If=(()=>{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)(Po(As),Po(ks))},t.\u0275dir=me({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&Fo("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[xs([Af])]}),t})();const Nf='\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    });',Rf='\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>',Df={provide:ef,useExisting:Ct(()=>Lf),multi:!0};function Vf(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Lf=(()=>{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=vo}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=Vf(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)(Po(As),Po(ks))},t.\u0275dir=me({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&Fo("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[xs([Df])]}),t})(),jf=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(Vf(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Po(ks),Po(As),Po(Lf,9))},t.\u0275dir=me({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const Uf={provide:ef,useExisting:Ct(()=>$f),multi:!0};function Ff(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let $f=(()=>{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=vo}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(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const r=t.item(e),i=this._getOptionValue(r.value);n.push(i)}}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)(Po(As),Po(ks))},t.\u0275dir=me({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&Fo("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[xs([Uf])]}),t})(),Hf=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Ff(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Ff(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Po(ks),Po(As),Po($f,9))},t.\u0275dir=me({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function qf(t,e){return[...e.path,t]}function zf(t,e){t||Gf(e,"Cannot find control with"),e.valueAccessor||Gf(e,"No value accessor for form control with"),t.validator=bf.compose([t.validator,e.validator]),t.asyncValidator=bf.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&&Bf(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&&Bf(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 Bf(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Gf(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 Wf(t){return null!=t?bf.compose(t.map(Ef)):null}function Zf(t){return null!=t?bf.composeAsync(t.map(Sf)):null}const Qf=[rf,If,kf,Lf,$f,Mf];function Yf(t){const e=Jf(t)?t.validators:t;return Array.isArray(e)?Wf(e):e||null}function Kf(t,e){const n=Jf(e)?e.asyncValidators:t;return Array.isArray(n)?Zf(n):n||null}function Jf(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Xf{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=Yf(t)}setAsyncValidators(t){this.asyncValidator=Kf(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=Cf(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 eg?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof ng&&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 va,this.statusChanges=new va}_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){Jf(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class tg extends Xf{constructor(t=null,e,n){super(Yf(e),Kf(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 eg extends Xf{constructor(t,e,n){super(Yf(e),Kf(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 tg?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){let e=!1;return this._forEachChild((n,r)=>{e=e||this.contains(r)&&t(n)}),e}_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 ng extends Xf{constructor(t,e,n){super(Yf(e),Kf(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 tg?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 rg={provide:cf,useExisting:Ct(()=>og)},ig=(()=>Promise.resolve(null))();let og=(()=>{class t extends cf{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new va,this.form=new eg({},Wf(t),Zf(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){ig.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),zf(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){ig.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),function(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}(this._directives,t)})}addFormGroup(t){ig.then(()=>{const e=this._findContainer(t.path),n=new eg({});(function(t,e){null==t&&Gf(e,"Cannot find control with"),t.validator=bf.compose([t.validator,e.validator]),t.asyncValidator=bf.composeAsync([t.asyncValidator,e.asyncValidator])})(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){ig.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){ig.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e}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)(Po(_f,10),Po(yf,10))},t.\u0275dir=me({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Fo("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[xs([rg]),as]}),t})(),sg=(()=>{class t extends cf{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return qf(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Wf(this._validators)}get asyncValidator(){return Zf(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return ag(e||t)},t.\u0275dir=me({type:t,features:[as]}),t})();const ag=Yn(sg);class lg{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      \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    });\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      ${Nf}\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      ${Rf}`)}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      ${Nf}\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      ${Rf}`)}}const cg={provide:cf,useExisting:Ct(()=>ug)};let ug=(()=>{class t extends sg{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){this._parent instanceof t||this._parent instanceof og||lg.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(Po(cf,5),Po(_f,10),Po(yf,10))},t.\u0275dir=me({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[xs([cg]),as]}),t})();const hg={provide:df,useExisting:Ct(()=>pg)},dg=(()=>Promise.resolve(null))();let pg=(()=>{class t extends df{constructor(t,e,n,r){super(),this.control=new tg,this._registered=!1,this.update=new va,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||Gf(t,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,i=void 0;return e.forEach(e=>{var o;e.constructor===af?n=e:(o=e,Qf.some(t=>o.constructor===t)?(r&&Gf(t,"More than one built-in value accessor matches form control with"),r=e):(i&&Gf(t,"More than one custom value accessor matches form control with"),i=e))}),i||r||n||(Gf(t,"No valid value accessor for form control with"),null)}(this,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!vo(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?qf(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Wf(this._rawValidators)}get asyncValidator(){return Zf(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(){zf(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof ug)&&this._parent instanceof sg?lg.formGroupNameException():this._parent instanceof ug||this._parent instanceof og||lg.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||lg.missingNameException()}_updateValue(t){dg.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;dg.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Po(cf,9),Po(_f,10),Po(yf,10),Po(ef,10))},t.\u0275dir=me({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:[xs([hg]),as,ps]}),t})(),fg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const gg={provide:_f,useExisting:Ct(()=>mg),multi:!0};let mg=(()=>{class t{get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!==`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?bf.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({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&&So("required",e.required?"":null)},inputs:{required:"required"},features:[xs([gg])]}),t})();const _g={provide:_f,useExisting:Ct(()=>yg),multi:!0};let yg=(()=>{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=bf.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&So("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[xs([_g]),ps]}),t})();const vg={provide:_f,useExisting:Ct(()=>bg),multi:!0};let bg=(()=>{class t{ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null!=this.maxlength?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=bf.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&So("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[xs([vg]),ps]}),t})(),wg=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),Cg=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Pf],imports:[wg]}),t})(),xg=(()=>{class t{constructor(){this.name="",this.last="",this.email="",this.name="Manan",this.last="Patel",this.email="mpatel296@myseneca.ca"}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ue({type:t,selectors:[["app-contact"]],decls:28,vars:3,consts:[["lang","en"],["charset","UTF-8"],["name","viewport","content","width=device-width, initial-scale=1.0"],[1,"center"],[1,"topic"]],template:function(t,e){1&t&&(Ro(0,"html",0),Ro(1,"head"),Vo(2,"meta",1),Vo(3,"meta",2),Ro(4,"title"),ts(5,"contact"),Do(),Do(),Ro(6,"body"),Ro(7,"div",3),Ro(8,"h1"),ts(9,"Contact Information"),Do(),Ro(10,"p"),ts(11,"Here is contact information for the developer of this app:"),Do(),Ro(12,"form"),Ro(13,"div"),Ro(14,"label",4),ts(15," First Name: "),Do(),Ro(16,"label"),ts(17),Do(),Do(),Ro(18,"div"),Ro(19,"label",4),ts(20," Last Name: "),Do(),Ro(21,"label"),ts(22),Do(),Do(),Ro(23,"div"),Ro(24,"label",4),ts(25," Email: "),Do(),Ro(26,"label"),ts(27),Do(),Do(),Do(),Do(),Do(),Do()),2&t&&(Er(17),ns(" ",e.name,""),Er(5),ns(" ",e.last,""),Er(5),ns(" ",e.email,""))},directives:[fg,gf,og],styles:["h1[_ngcontent-%COMP%]{margin-bottom:0}p[_ngcontent-%COMP%]{margin-top:5px}.center[_ngcontent-%COMP%]{padding:10px 20px}.topic[_ngcontent-%COMP%]{font-weight:700}form[_ngcontent-%COMP%]{margin-left:80px}"]}),t})(),Eg=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ue({type:t,selectors:[["app-notfound"]],decls:2,vars:0,template:function(t,e){1&t&&(Ro(0,"p"),ts(1,"notfound works!"),Do())},styles:[""]}),t})(),Sg=(()=>{class t{constructor(t){this.http=t,this.url="https://hidden-waters-14346.herokuapp.com",this.urlLanguages="https://pam-2020-a2and3webapi.herokuapp.com/api/languages",this.httpOptions={headers:new Wc({"Content-Type":"application/json"})}}handleError(t="operation",e){return t=>(console.error(t),Fc(e))}getAllLanguages(){return this.http.get(`${this.urlLanguages}`)}getAllTermsEnglish(){return this.http.get(`${this.url}/api/termEnglish`)}getOneTermsEnglishID(t){return console.log("getting: "+t),this.http.get(`${this.url}/api/termEnglish/${t}`)}addTermEnglish(t){return console.log("addTermEnglish: "+`${this.url}/api/termEnglish`),this.http.post(`${this.url}/api/termEnglish`,t,this.httpOptions).pipe(ah(t=>console.log(`Added item ${t.wordEnglish}`)),zu(this.handleError("User add")))}addTermEnglishDefinition(t,e){return this.http.put(`${this.url}/api/termEnglish/${t}/add-defintion`,e,this.httpOptions).pipe(ah(t=>console.log(`Edited item ${t.wordEnglish}`)),zu(this.handleError("User edit")))}englishIncrementYes(t){return console.log(t),console.log(`${this.url}/api/termEnglish/yes/${t}`),this.http.put(`${this.url}/api/termEnglish/yes/${t}`,this.httpOptions)}englishIncrementNo(t){return console.log(t),console.log(`${this.url}/api/termEnglish/no/${t}`),this.http.put(`${this.url}/api/termEnglish/no/${t}`,this.httpOptions)}englishIncrementLikes(t){return console.log(t),console.log(`${this.url}/api/termEnglish/likes/${t}`),this.http.put(`${this.url}/api/termEnglish/likes/${t}`,this.httpOptions)}englishDelete(t){return console.log("in delete"),this.http.delete(`${this.url}/api/delete/termEnglish/${t}`).pipe(ah(()=>console.log(`Deleted item with id ${t}`)),zu(this.handleError("User delete")))}getAllTermsNonEnglish(){return this.http.get(`${this.url}/api/termNonEnglish`)}getOneTermsNonEnglishID(t){return this.http.get(`${this.url}/api/termNonEnglish/${t}`)}addTermNonEnglishDefinition(t,e){return this.http.put(`${this.url}/api/termNonEnglish/${t}/add-defintion`,e,this.httpOptions).pipe(ah(t=>console.log(`Edited item ${t.wordEnglish}`)),zu(this.handleError("User edit")))}addTermNonEnglish(t){return console.log("addTermNonEnglish: "+`${this.url}/api/termNonEnglish`),this.http.post(`${this.url}/api/termNonEnglish`,t,this.httpOptions).pipe(ah(t=>console.log(`Added item ${t.wordEnglish}`)),zu(this.handleError("User add")))}nonEenglishIncrementYes(t){return console.log(t),console.log(`${this.url}/api/termEnglish/yes/${t}`),this.http.put(`${this.url}/api/termNonEnglish/yes/${t}`,this.httpOptions)}nonEnglishIncrementNo(t){return console.log(t),console.log(`${this.url}/api/termEnglish/no/${t}`),this.http.put(`${this.url}/api/termNonEnglish/no/${t}`,this.httpOptions)}nonEenglishIncrementLikes(t){return console.log(t),console.log(`${this.url}/api/termEnglish/likes/${t}`),this.http.put(`${this.url}/api/termNonEnglish/likes/${t}`,this.httpOptions)}nonEnglishDelete(t){return console.log("in delete"),this.http.delete(`${this.url}/api/delet/termNonEnglish/${t}`).pipe(ah(()=>console.log(`Deleted item with id ${t}`)),zu(this.handleError("User delete")))}}return t.\u0275fac=function(e){return new(e||t)(Wt(au))},t.\u0275prov=ct({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Og(t,e){}function kg(t,e){1&t&&ko(0,Og,0,0,"ng-template")}function Tg(t,e){if(1&t&&(Ro(0,"td",19),ts(1),Do()),2&t){const t=qo().$implicit;Er(1),es(t.definitions[0].definition)}}const Pg=function(t){return["/term/english/detail",t]};function Mg(t,e){if(1&t&&(Ro(0,"tr",12),Ro(1,"td",13),ts(2),Do(),Ro(3,"td",14),ts(4),Do(),ko(5,Tg,2,1,"td",15),Ro(6,"td",16),ts(7),Do(),Ro(8,"td",17),Ro(9,"Button",18),ts(10,"Detail"),Do(),Do(),Do()),2&t){const t=e.$implicit;Er(2),es(t.wordEnglish),Er(2),es(t.authorName),Er(1),Io("ngIf",t.definitions[0]),Er(2),es(t.fieldOfStudy),Er(2),Io("routerLink",ya(5,Pg,t._id))}}function Ag(t,e){1&t&&ko(0,Mg,11,7,"tr",11),2&t&&Io("ngForOf",qo().termEnglish)}function Ig(t,e){if(1&t&&(Ro(0,"tr",12),Ro(1,"td",13),ts(2),Do(),Ro(3,"td",14),ts(4),Do(),Ro(5,"td",19),ts(6),Do(),Ro(7,"td",16),ts(8),Do(),Ro(9,"td",17),Ro(10,"Button",18),ts(11,"Detail"),Do(),Do(),Do()),2&t){const t=e.$implicit;Er(2),es(t.wordEnglish),Er(2),es(t.authorName),Er(2),es(t.definitions[0].definition),Er(2),es(t.fieldOfStudy),Er(2),Io("routerLink",ya(5,Pg,t._id))}}function Ng(t,e){1&t&&ko(0,Ig,12,7,"tr",11),2&t&&Io("ngForOf",qo().termEnglishSearch)}const Rg=function(){return["/term/english/create"]};let Dg=(()=>{class t{constructor(t,e){this.m=t,this.router=e,this.searchString=""}ngOnInit(){this.m.getAllTermsEnglish().subscribe(t=>{this.termEnglish=t})}doSearch(){if(this.termEnglishSearch=[],this.searchString.length>=3)for(let t in this.termEnglish)this.termEnglish[t].wordEnglish.toLowerCase().includes(this.searchString.toLowerCase())&&this.termEnglishSearch.push(this.termEnglish[t])}}return t.\u0275fac=function(e){return new(e||t)(Po(Sg),Po(kp))},t.\u0275cmp=ue({type:t,selectors:[["app-termenglish"]],decls:34,vars:6,consts:[["lang","en"],["charset","UTF-8"],["name","viewport","content","width=device-width, initial-scale=1.0"],[1,"header"],["type","search","placeholder","Search...",3,"ngModel","ngModelChange"],[1,"addnew",3,"routerLink"],[1,"tbl"],[1,"termtable"],[4,"ngIf","ngIfThen","ngIfElse"],["all",""],["search",""],["class","termstablerow",4,"ngFor","ngForOf"],[1,"termstablerow"],[1,"word"],[1,"author"],["class","def",4,"ngIf"],[1,"field"],[1,"detail"],[1,"btn-grad",3,"routerLink"],[1,"def"]],template:function(t,e){if(1&t&&(Ro(0,"html",0),Ro(1,"head"),Vo(2,"meta",1),Vo(3,"meta",2),Ro(4,"title"),ts(5,"Term English"),Do(),Do(),Ro(6,"body"),Ro(7,"div",3),Ro(8,"tr"),Ro(9,"td"),Ro(10,"h2"),ts(11,"List of English Terms - "),Do(),Ro(12,"label"),Ro(13,"input",4),Fo("ngModelChange",(function(t){return e.searchString=t}))("ngModelChange",(function(){return e.doSearch()})),Do(),Do(),Do(),Ro(14,"td"),Ro(15,"button",5),ts(16,"Add New"),Do(),Do(),Do(),Do(),Ro(17,"div",6),Ro(18,"tbody",7),Ro(19,"tr"),Ro(20,"th"),ts(21,"Word"),Do(),Ro(22,"th"),ts(23,"Author"),Do(),Ro(24,"th"),ts(25,"Definition"),Do(),Ro(26,"th"),ts(27,"Field Of Study"),Do(),Vo(28,"th"),Do(),ko(29,kg,1,0,void 0,8),ko(30,Ag,1,1,"ng-template",null,9,Ra),ko(32,Ng,1,1,"ng-template",null,10,Ra),Do(),Do(),Do(),Do()),2&t){const t=To(31),n=To(33);Er(13),Io("ngModel",e.searchString),Er(2),Io("routerLink",_a(5,Rg)),Er(14),Io("ngIf",e.searchString.length>2)("ngIfThen",n)("ngIfElse",t)}},directives:[af,ff,pg,Tp,sc,ic],styles:[".header[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{width:100%;padding:20px}.header[_ngcontent-%COMP%]   input[type=search][_ngcontent-%COMP%]{font-size:15px;padding-left:5px;width:200px;border-color:#8b0000;box-shadow:0 0 5px #8b0000;outline:none}.header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{display:inline}.header[_ngcontent-%COMP%]   button.k[_ngcontent-%COMP%]{position:absolute;top:0;right:0;bottom:0;font-size:16px;background-color:#40e8f9;color:grey;border:none;cursor:pointer;font-weight:700}.header[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{position:relative}.header[_ngcontent-%COMP%]   .addnew[_ngcontent-%COMP%]{padding:8px;background-color:#8b0000;width:100px;font-weight:700;font-size:14px;color:#fff;border-radius:5px;border-color:#8b0000;box-shadow:0 0 10px #8b0000;border-width:2px}.termtable[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-size:18px;text-align:left;border-bottom:3px solid #8b0000;padding-left:20px}.termstablerow[_ngcontent-%COMP%]   .def[_ngcontent-%COMP%]{max-width:550px}.termstablerow[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom:1px solid #8b0000;padding:20px}.termstablerow[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]{text-align:left;width:20%}.termstablerow[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{width:8%;padding:0}.termstablerow[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 5px #000;width:65px;padding:10px;text-align:center;font-size:14px;color:#8b0000}.termstablerow[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{box-shadow:0 0 10px #8b0000}.termstablerow[_ngcontent-%COMP%]:hover{background-color:#d3d3d3}tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}"]}),t})();function Vg(t,e){}function Lg(t,e){1&t&&ko(0,Vg,0,0,"ng-template")}const jg=function(t){return["/term/nonEnglish/detail",t]};function Ug(t,e){if(1&t&&(Ro(0,"tr",11),Ro(1,"td",12),ts(2),Do(),Ro(3,"td",13),ts(4),Do(),Ro(5,"td",14),ts(6),Do(),Ro(7,"td",15),ts(8),Do(),Ro(9,"td",16),Ro(10,"button",17),ts(11,"Detail"),Do(),Do(),Do()),2&t){const t=e.$implicit;Er(2),es(t.wordNonEnglish),Er(2),es(t.authorName),Er(2),es(t.definitions[0].definition),Er(2),es(t.fieldOfStudy),Er(2),Io("routerLink",ya(5,jg,t._id))}}function Fg(t,e){1&t&&ko(0,Ug,12,7,"tr",10),2&t&&Io("ngForOf",qo().termNonEnglish)}function $g(t,e){if(1&t&&(Ro(0,"tr",11),Ro(1,"td",12),ts(2),Do(),Ro(3,"td",13),ts(4),Do(),Ro(5,"td",14),ts(6),Do(),Ro(7,"td",15),ts(8),Do(),Ro(9,"td",16),Ro(10,"button",17),ts(11,"Detail"),Do(),Do(),Do()),2&t){const t=e.$implicit;Er(2),es(t.wordNonEnglish),Er(2),es(t.authorName),Er(2),es(t.definitions[0].definition),Er(2),es(t.fieldOfStudy),Er(2),Io("routerLink",ya(5,jg,t._id))}}function Hg(t,e){1&t&&ko(0,$g,12,7,"tr",10),2&t&&Io("ngForOf",qo().termNonEnglishSearch)}let qg=(()=>{class t{constructor(t){this.m=t,this.searchString=""}ngOnInit(){console.log("inInit"),this.m.getAllTermsNonEnglish().subscribe(t=>{console.log(t),this.termNonEnglish=t})}doSearch(){if(this.termNonEnglishSearch=[],this.searchString.length>=3)for(let t in this.termNonEnglish)this.termNonEnglish[t].wordEnglish.toLowerCase().includes(this.searchString.toLowerCase())&&this.termNonEnglishSearch.push(this.termNonEnglish[t])}}return t.\u0275fac=function(e){return new(e||t)(Po(Sg))},t.\u0275cmp=ue({type:t,selectors:[["app-termnonenglish"]],decls:32,vars:4,consts:[["lang","en"],["charset","UTF-8"],["name","viewport","content","width=device-width, initial-scale=1.0"],[1,"header"],["type","search","placeholder","Search...",3,"ngModel","ngModelChange"],[1,"tbl"],[1,"termtable"],[4,"ngIf","ngIfThen","ngIfElse"],["all",""],["search",""],["class","termstablerow",4,"ngFor","ngForOf"],[1,"termstablerow"],[1,"word"],[1,"author"],[1,"def"],[1,"field"],[1,"detail"],[1,"btn-grad",3,"routerLink"]],template:function(t,e){if(1&t&&(Ro(0,"html",0),Ro(1,"head"),Vo(2,"meta",1),Vo(3,"meta",2),Ro(4,"title"),ts(5,"Term Non-English"),Do(),Do(),Ro(6,"body"),Ro(7,"div",3),Ro(8,"tr"),Ro(9,"td"),Ro(10,"h2"),ts(11,"List of Non-English Terms - "),Do(),Ro(12,"label"),Ro(13,"input",4),Fo("ngModelChange",(function(t){return e.searchString=t}))("ngModelChange",(function(){return e.doSearch()})),Do(),Do(),Do(),Vo(14,"td"),Do(),Do(),Ro(15,"div",5),Ro(16,"tbody",6),Ro(17,"tr"),Ro(18,"th"),ts(19,"Word"),Do(),Ro(20,"th"),ts(21,"Author"),Do(),Ro(22,"th"),ts(23,"Definition"),Do(),Ro(24,"th"),ts(25,"Field Of Study"),Do(),Vo(26,"th"),Do(),ko(27,Lg,1,0,void 0,7),ko(28,Fg,1,1,"ng-template",null,8,Ra),ko(30,Hg,1,1,"ng-template",null,9,Ra),Do(),Do(),Do(),Do()),2&t){const t=To(29),n=To(31);Er(13),Io("ngModel",e.searchString),Er(14),Io("ngIf",e.searchString.length>2)("ngIfThen",n)("ngIfElse",t)}},directives:[af,ff,pg,sc,ic,Tp],styles:[".header[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{width:100%;padding:20px}.header[_ngcontent-%COMP%]   input[type=search][_ngcontent-%COMP%]{font-size:15px;padding-left:5px;width:200px;border-color:#8b0000;box-shadow:0 0 5px #8b0000;outline:none}.header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{display:inline}.header[_ngcontent-%COMP%]   button.k[_ngcontent-%COMP%]{position:absolute;top:0;right:0;bottom:0;font-size:16px;background-color:#40e8f9;color:grey;border:none;cursor:pointer;font-weight:700}.header[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{position:relative}.header[_ngcontent-%COMP%]   .addnew[_ngcontent-%COMP%]{padding:8px;background-color:#8b0000;width:100px;font-weight:700;font-size:14px;color:#fff;border-radius:5px;border-color:#8b0000;box-shadow:0 0 10px #8b0000;border-width:2px}.termtable[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-size:18px;text-align:left;border-bottom:3px solid #8b0000;padding-left:20px}.termstablerow[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom:1px solid #8b0000;padding:20px}.termstablerow[_ngcontent-%COMP%]   .def[_ngcontent-%COMP%]{max-width:550px}.termstablerow[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]{text-align:left;width:20%}.termstablerow[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{width:8%;padding:0}.termstablerow[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 5px #000;width:65px;padding:10px;text-align:center;font-size:14px;color:#8b0000}.termstablerow[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{box-shadow:0 0 10px #8b0000}.termstablerow[_ngcontent-%COMP%]:hover{background-color:#d3d3d3}tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}"]}),t})();function zg(t,e){if(1&t&&(Ro(0,"h2"),ts(1),Do()),2&t){const t=qo();Er(1),ns("(",t.termEnglish.wordExpanded,")")}}function Bg(t,e){if(1&t){const t=Lo();Ro(0,"table"),Ro(1,"tr"),Ro(2,"div",16),Ro(3,"div",17),Ro(4,"button",18),Fo("click",(function(){ze(t);const n=e.$implicit;return qo().incrementLikes(n._id)})),ts(5),Do(),Ro(6,"p",19),ts(7),Do(),Do(),Ro(8,"p",20),ts(9),Do(),Do(),Do(),Do()}if(2&t){const t=e.$implicit;Er(5),ns("Likes(",t.likes,")"),Er(2),rs("Author: ",t.authorName," on ",t.dateCreated,""),Er(2),es(t.definition)}}const Gg=function(t){return["/term/nonEnglish/detail",t]};function Wg(t,e){if(1&t&&(Ro(0,"button",23),ts(1),Do()),2&t){const t=qo().$implicit,e=qo().$implicit;Io("routerLink",ya(2,Gg,e._id)),Er(1),es(t.name)}}function Zg(t,e){if(1&t&&(Ro(0,"div",21),ko(1,Wg,2,4,"button",22),Do()),2&t){const t=e.$implicit,n=qo().$implicit,r=qo();Er(1),Io("ngIf",r.id===n.termEnglishId&&n.languageCode==t.code)}}function Qg(t,e){if(1&t&&(Ro(0,"div",21),ko(1,Zg,2,1,"div",12),Do()),2&t){const t=qo();Er(1),Io("ngForOf",t.languages)}}function Yg(t,e){if(1&t&&(Ro(0,"button",24),Ro(1,"a",25),ts(2,"Authoritative"),Do(),Do()),2&t){const t=qo();Er(1),zo("href",t.termEnglish.linkAuthoritative,cr)}}function Kg(t,e){if(1&t&&(Ro(0,"button",24),Ro(1,"a",25),ts(2,"Wikipedia"),Do(),Do()),2&t){const t=qo();Er(1),zo("href",t.termEnglish.linkWikipedia,cr)}}function Jg(t,e){if(1&t&&(Ro(0,"button",24),Ro(1,"a",25),ts(2,"YouTube"),Do(),Do()),2&t){const t=qo();Er(1),zo("href",t.termEnglish.linkYouTube,cr)}}const Xg=function(t){return["/term/english/add-definition",t]},tm=function(t){return["/term/nonEnglish/add-translation/",t]},em=function(){return["/term/english"]};let nm=(()=>{class t{constructor(t,e,n){this.m=t,this.route=e,this.router=n,this.lks=void 0}ngOnInit(){this.id=this.route.snapshot.paramMap.get("id"),this.m.getOneTermsEnglishID(this.id).subscribe(t=>{this.termEnglish=t,console.log(this.termEnglish.wordEnglish)}),this.m.getAllTermsNonEnglish().subscribe(t=>{this.termNonEnglish=t}),this.m.getAllLanguages().subscribe(t=>{this.languages=t})}incrementYes(){console.log(this.id),this.m.englishIncrementYes(this.id).subscribe(t=>this.termEnglish=t),console.log(this.termEnglish.helpYes)}incrementNo(){console.log(this.id),this.m.englishIncrementNo(this.id).subscribe(t=>this.termEnglish=t),console.log(this.termEnglish.helpNo)}incrementLikes(t){console.log(t),this.m.englishIncrementLikes(t).subscribe(t=>this.termEnglish=t),console.log(this.termEnglish.definitions[0].likes)}deleteTerm(){this.m.englishDelete(this.id).subscribe(),setTimeout(()=>{this.router.navigate(["/term/english"])},2e3)}}return t.\u0275fac=function(e){return new(e||t)(Po(Sg),Po(vd),Po(kp))},t.\u0275cmp=ue({type:t,selectors:[["app-detail"]],decls:74,vars:21,consts:[["lang","en"],["charset","UTF-8"],["name","viewport","content","width=device-width, initial-scale=1.0"],[4,"ngIf"],[1,"body"],[1,"category"],[1,"definitionCell"],[4,"ngFor","ngForOf"],[1,"last"],[3,"routerLink"],[1,"middle"],[1,"addTranslation",3,"routerLink"],["class","diffLang",4,"ngFor","ngForOf"],["class","links",4,"ngIf"],[1,"helpful",3,"click"],[1,"del",3,"click"],[1,"def"],[1,"hd"],[3,"click"],[1,"hdp"],[1,"defdef"],[1,"diffLang"],["class","translation",3,"routerLink",4,"ngIf"],[1,"translation",3,"routerLink"],[1,"links"],["target","_blank",3,"href"]],template:function(t,e){1&t&&(Ro(0,"html",0),Ro(1,"head"),Vo(2,"meta",1),Vo(3,"meta",2),Ro(4,"title"),ts(5,"Detail"),Do(),Do(),Ro(6,"body"),Ro(7,"header"),Ro(8,"h2"),ts(9),Do(),ko(10,zg,2,1,"h2",3),Ro(11,"h2"),ts(12," - Term Detail"),Do(),Do(),Ro(13,"div",4),Ro(14,"tbody"),Ro(15,"tr"),Ro(16,"td",5),ts(17,"Definition: "),Do(),Ro(18,"td",6),ko(19,Bg,10,4,"table",7),Do(),Ro(20,"td",8),Ro(21,"button",9),ts(22,"Add Definition"),Do(),Do(),Do(),Ro(23,"tr"),Ro(24,"td",5),ts(25,"Field of Study: "),Do(),Ro(26,"td",10),ts(27),Do(),Do(),Ro(28,"tr"),Ro(29,"td",5),ts(30,"Author's Name: "),Do(),Ro(31,"td",10),ts(32),Do(),Do(),Ro(33,"tr"),Ro(34,"td",5),ts(35,"Date Created: "),Do(),Ro(36,"td",10),ts(37),Do(),Do(),Ro(38,"tr"),Ro(39,"td",5),ts(40,"Date Revised: "),Do(),Ro(41,"td",10),ts(42),Do(),Do(),Ro(43,"tr"),Ro(44,"td",5),ts(45,"Translation: "),Do(),Ro(46,"td",10),Ro(47,"button",11),ts(48,"Add Translation"),Do(),ko(49,Qg,2,1,"div",12),Do(),Do(),Ro(50,"tr"),Ro(51,"td",5),ts(52,"Links: "),Do(),Ro(53,"td",10),ko(54,Yg,3,1,"button",13),ko(55,Kg,3,1,"button",13),ko(56,Jg,3,1,"button",13),Do(),Do(),Ro(57,"tr"),Ro(58,"td",5),ts(59,"Helpful: "),Do(),Ro(60,"td",10),Ro(61,"button",14),Fo("click",(function(){return e.incrementYes()})),ts(62),Do(),Ro(63,"button",14),Fo("click",(function(){return e.incrementNo()})),ts(64),Do(),Do(),Do(),Ro(65,"tr"),Vo(66,"td"),Vo(67,"td"),Ro(68,"td"),Ro(69,"button",15),Fo("click",(function(){return e.deleteTerm()})),ts(70,"Delete"),Do(),Do(),Do(),Do(),Do(),Ro(71,"footer"),Ro(72,"button",9),ts(73,"Back to English List"),Do(),Do(),Do(),Do()),2&t&&(Er(9),es(e.termEnglish.wordEnglish),Er(1),Io("ngIf",e.termEnglish.wordExpanded),Er(9),Io("ngForOf",e.termEnglish.definitions),Er(2),Io("routerLink",ya(16,Xg,e.id)),Er(6),es(e.termEnglish.fieldOfStudy),Er(5),es(e.termEnglish.authorName),Er(5),es(e.termEnglish.dateCreated),Er(5),es(e.termEnglish.dateRevised),Er(5),Io("routerLink",ya(18,tm,e.id)),Er(2),Io("ngForOf",e.termNonEnglish),Er(5),Io("ngIf",e.termEnglish.linkAuthoritative),Er(1),Io("ngIf",e.termEnglish.linkWikipedia),Er(1),Io("ngIf",e.termEnglish.linkYouTube),Er(6),ns("Yes (",e.termEnglish.helpYes,")"),Er(2),ns("No (",e.termEnglish.helpNo,")"),Er(8),Io("routerLink",_a(20,em)))},directives:[sc,ic,Tp],styles:["header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0;display:inline}footer[_ngcontent-%COMP%]{margin-top:30px;border-top:1px solid #8b0000}footer[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 5px #000;width:150px;padding:10px;margin-top:10px;margin-left:10px;text-align:center;font-size:14px;color:#8b0000}footer[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{box-shadow:0 0 10px #8b0000}.def[_ngcontent-%COMP%]   .hd[_ngcontent-%COMP%]   .hdp[_ngcontent-%COMP%], button[_ngcontent-%COMP%]{display:inline;font-size:14px;margin-right:10px}.category[_ngcontent-%COMP%]{text-align:right;vertical-align:center;margin-left:10px;font-weight:700;padding:10px}.def[_ngcontent-%COMP%]{border:1px solid #8b0000;border-radius:5px;margin:20px;width:90%}.def[_ngcontent-%COMP%]   .defdef[_ngcontent-%COMP%]{padding:0 10px}.def[_ngcontent-%COMP%]   .hd[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid #8b0000;background-color:#8b0000;color:#fff}.last[_ngcontent-%COMP%]{text-align:center}.last[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:8px;background-color:#8b0000;width:120px;font-weight:700;font-size:14px;color:#fff;border-radius:5px;border-color:#8b0000;box-shadow:0 0 10px #8b0000;border-width:2px}td[_ngcontent-%COMP%]{width:10%}.definitionCell[_ngcontent-%COMP%]{width:50%}.middle[_ngcontent-%COMP%]{padding-left:20px}.addTranslation[_ngcontent-%COMP%]{padding:6px;background-color:#8b0000;width:120px;font-weight:700;font-size:12px;color:#fff;border-radius:5px;border-width:2px}.addTranslation[_ngcontent-%COMP%]:hover{border-color:#8b0000;box-shadow:0 0 10px #8b0000}.links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none}.links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited{color:#000}.diffLang[_ngcontent-%COMP%]{display:inline}.del[_ngcontent-%COMP%]{padding:6px;background-color:#000;width:120px;font-weight:700;font-size:16px;color:#fff;border-radius:5px;border-width:2px;display:center;float:right}.del[_ngcontent-%COMP%]:hover{border-color:#fff;box-shadow:0 0 10px #000}"]}),t})();function rm(t,e){1&t&&(Ro(0,"div"),ts(1,"Definition is required, 50 to 5000 characters"),Do())}function im(t,e){1&t&&(Ro(0,"div"),ts(1,"Definition must be at least 50 characters"),Do())}function om(t,e){if(1&t&&(Ro(0,"div",20),ko(1,rm,2,0,"div",21),ko(2,im,2,0,"div",21),Do()),2&t){qo();const t=To(26);Er(1),Io("ngIf",null==t.errors?null:t.errors.required),Er(1),Io("ngIf",null==t.errors?null:t.errors.minlength)}}function sm(t,e){if(1&t&&(Ro(0,"table"),Ro(1,"tr"),Ro(2,"div",22),Ro(3,"div",23),Ro(4,"button"),ts(5),Do(),Ro(6,"p",24),ts(7),Do(),Do(),Ro(8,"p",25),ts(9),Do(),Do(),Do(),Do()),2&t){const t=e.$implicit;Er(5),ns("Likes(",t.likes,")"),Er(2),rs("Author: ",t.authorName," on ",t.dateCreated,""),Er(2),es(t.definition)}}const am=function(t){return["/term/english/detail",t]},lm=function(){return["/term/english"]};let cm=(()=>{class t{constructor(t,e){this.m=t,this.route=e,this.date=(new Date).toISOString(),this.newDate=new Date(this.date)}ngOnInit(){this.newDefinition={authorName:"",dateCreated:this.newDate,definition:"",quality:0,likes:0},this.id=this.route.snapshot.paramMap.get("id"),this.m.getOneTermsEnglishID(this.id).subscribe(t=>{this.termEnglish=t})}addDefinition(){console.log(this.newDefinition.authorName),console.log(this.newDefinition.definition),this.m.addTermEnglishDefinition(this.id,this.newDefinition).subscribe(t=>this.termEnglish=t)}}return t.\u0275fac=function(e){return new(e||t)(Po(Sg),Po(vd))},t.\u0275cmp=ue({type:t,selectors:[["app-add-definition"]],decls:46,vars:12,consts:[["lang","en"],["charset","UTF-8"],["name","viewport","content","width=device-width, initial-scale=1.0"],[1,"body"],[1,"category"],[1,"getInfo"],[1,"getInfoTable"],[1,"desc"],["name","authorName",1,"ttl"],[1,"in1"],["type","text","name","authorName","required","",3,"ngModel","ngModelChange"],["name","definition",1,"ttl"],[1,"in2"],["rows","10","name","definition","minlength","50","maxlength","5000","required","","autofocus","",1,"tarea2",3,"ngModel","ngModelChange"],["definition","ngModel"],["class","a-d",4,"ngIf"],[1,"btn"],[3,"click"],[3,"routerLink"],[4,"ngFor","ngForOf"],[1,"a-d"],[4,"ngIf"],[1,"def"],[1,"hd"],[1,"hdp"],[1,"defdef"]],template:function(t,e){if(1&t&&(Ro(0,"html",0),Ro(1,"head"),Vo(2,"meta",1),Vo(3,"meta",2),Ro(4,"title"),ts(5,"Add Definition"),Do(),Do(),Ro(6,"body"),Ro(7,"header"),Ro(8,"h2"),ts(9),Do(),Do(),Ro(10,"div",3),Ro(11,"tr"),Ro(12,"td",4),ts(13,"New definition: "),Do(),Ro(14,"td",5),Ro(15,"table",6),Ro(16,"tr",7),ts(17,"Enter data, and click/tap the Save button"),Do(),Ro(18,"tr",8),ts(19,"Author's Name:"),Do(),Ro(20,"tr",9),Ro(21,"input",10),Fo("ngModelChange",(function(t){return e.newDefinition.authorName=t})),Do(),Do(),Ro(22,"tr",11),ts(23,"Definition:"),Do(),Ro(24,"tr",12),Ro(25,"textarea",13,14),Fo("ngModelChange",(function(t){return e.newDefinition.definition=t})),Do(),ko(27,om,3,2,"div",15),Do(),Ro(28,"tr",16),Ro(29,"button",17),Fo("click",(function(){return e.addDefinition()})),ts(30,"Save"),Do(),Ro(31,"button",18),ts(32,"Cancel"),Do(),Do(),Do(),Do(),Do(),Ro(33,"tr"),Ro(34,"td",4),ts(35),Do(),Ro(36,"td"),ko(37,sm,10,4,"table",19),Do(),Do(),Ro(38,"tr"),Ro(39,"td",4),ts(40,"Field of Study: "),Do(),Ro(41,"td",7),ts(42),Do(),Do(),Do(),Ro(43,"footer"),Ro(44,"button",18),ts(45,"Back to List"),Do(),Do(),Do(),Do()),2&t){const t=To(26);Er(9),ns("Add another definition to ",e.termEnglish.wordEnglish,""),Er(12),Io("ngModel",e.newDefinition.authorName),Er(4),Io("ngModel",e.newDefinition.definition),Er(2),Io("ngIf",t.invalid&&(t.dirty||t.touched)),Er(4),Io("routerLink",ya(9,am,e.id)),Er(4),ns("Existing definitions (",e.termEnglish.definitions.length,"): "),Er(2),Io("ngForOf",e.termEnglish.definitions),Er(5),es(e.termEnglish.fieldOfStudy),Er(2),Io("routerLink",_a(11,lm))}},directives:[af,mg,ff,pg,yg,bg,sc,Tp,ic],styles:["header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0;padding-top:10px;display:inline}footer[_ngcontent-%COMP%]{margin-top:30px;border-top:1px solid #8b0000}footer[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 5px #000;width:100px;padding:10px;margin-top:10px;margin-left:10px;text-align:center;font-size:14px;color:#8b0000}footer[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{box-shadow:0 0 10px #8b0000}.desc[_ngcontent-%COMP%]{padding:20px}.ttl[_ngcontent-%COMP%]{font-weight:700;padding-top:5px}.in1[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%]{width:98%}.in1[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%], .in2[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{border-left:4px solid #8b0000;margin:10px 0;font-size:14px;padding:3px 2px}.in2[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%;height:150px;box-sizing:border-box}.btn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background-color:#8a0000;box-shadow:0 0 5px #fff;width:80px;padding:10px;margin-top:10px;text-align:center;font-size:14px;color:#fff}.btn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{box-shadow:0 0 5px #8b0000}.def[_ngcontent-%COMP%]   .hd[_ngcontent-%COMP%]   .hdp[_ngcontent-%COMP%], button[_ngcontent-%COMP%]{display:inline;font-size:14px;margin-right:10px}.category[_ngcontent-%COMP%]{text-align:right;vertical-align:center;margin-left:10px;font-weight:700;padding:10px;width:20%}.getInfo[_ngcontent-%COMP%]{padding:20px;width:80%}.getInfo[_ngcontent-%COMP%]   .getInfoTable[_ngcontent-%COMP%]{width:100%}.def[_ngcontent-%COMP%]{border:1px solid #8b0000;border-radius:5px;margin:20px;width:90%}.def[_ngcontent-%COMP%]   .defdef[_ngcontent-%COMP%]{padding:0 10px}.def[_ngcontent-%COMP%]   .hd[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid #8b0000;background-color:#8b0000;color:#fff}.a-d[_ngcontent-%COMP%]{background-color:#f8d7da;color:#8b0000;margin-top:0;padding:10px 0 10px 10px;border-radius:3px}.tarea2[_ngcontent-%COMP%]{margin-bottom:0}"]}),t})();function um(t,e){if(1&t&&(Ro(0,"option",34),ts(1),Do()),2&t){const t=e.$implicit;Io("value",t.code),Er(1),es(t.name)}}function hm(t,e){1&t&&(Ro(0,"div"),ts(1,"Name is required, 3 to 100 characters"),Do())}function dm(t,e){1&t&&(Ro(0,"div"),ts(1,"Name must be at least 3 characters"),Do())}function pm(t,e){if(1&t&&(Ro(0,"div",35),ko(1,hm,2,0,"div",36),ko(2,dm,2,0,"div",36),Do()),2&t){qo();const t=To(25);Er(1),Io("ngIf",null==t.errors?null:t.errors.required),Er(1),Io("ngIf",null==t.errors?null:t.errors.minlength)}}function fm(t,e){1&t&&(Ro(0,"div"),ts(1,"Term is required, 3 to 100 characters"),Do())}function gm(t,e){1&t&&(Ro(0,"div"),ts(1,"Term must be at least 3 characters"),Do())}function mm(t,e){if(1&t&&(Ro(0,"div",35),ko(1,fm,2,0,"div",36),ko(2,gm,2,0,"div",36),Do()),2&t){qo();const t=To(31);Er(1),Io("ngIf",null==t.errors?null:t.errors.required),Er(1),Io("ngIf",null==t.errors?null:t.errors.minlength)}}function _m(t,e){1&t&&(Ro(0,"div"),ts(1,"Field of Study is required, 3 to 100 characters"),Do())}function ym(t,e){1&t&&(Ro(0,"div"),ts(1,"Field of Study must be at least 3 characters"),Do())}function vm(t,e){if(1&t&&(Ro(0,"div",35),ko(1,_m,2,0,"div",36),ko(2,ym,2,0,"div",36),Do()),2&t){qo();const t=To(37);Er(1),Io("ngIf",null==t.errors?null:t.errors.required),Er(1),Io("ngIf",null==t.errors?null:t.errors.minlength)}}function bm(t,e){1&t&&(Ro(0,"div"),ts(1,"Definition is required, 50 to 5000 characters"),Do())}function wm(t,e){1&t&&(Ro(0,"div"),ts(1,"Definition must be at least 50 characters"),Do())}function Cm(t,e){if(1&t&&(Ro(0,"div",35),ko(1,bm,2,0,"div",36),ko(2,wm,2,0,"div",36),Do()),2&t){qo();const t=To(43);Er(1),Io("ngIf",null==t.errors?null:t.errors.required),Er(1),Io("ngIf",null==t.errors?null:t.errors.minlength)}}const xm=function(){return["/term/english"]};let Em=(()=>{class t{constructor(t,e,n){this.m=t,this.route=e,this.router=n,this.date=(new Date).toISOString(),this.newDate=new Date(this.date)}ngOnInit(){this.id=this.route.snapshot.paramMap.get("id"),this.m.getOneTermsEnglishID(this.id).subscribe(t=>{this.termEnglish=t}),this.m.getAllLanguages().subscribe(t=>{this.languages=t}),this.d={authorName:"",dateCreated:this.newDate,definition:"",quality:0,likes:0},this.termNonEnglish={termEnglishId:this.id,wordEnglish:"",wordNonEnglish:"",wordExpanded:"",languageCode:"",image:"",imageType:"",audio:"",audioType:"",linkAuthoritative:"",linkWikipedia:"",linkYouTube:"",authorName:"",dateCreated:this.newDate,dateRevised:this.newDate,fieldOfStudy:"",helpYes:0,helpNo:0,definitions:[this.d]}}langChange(t){console.log(this.lang)}createTranslation(){console.log("createTranslation()"),this.d.authorName=this.termNonEnglish.authorName,this.termNonEnglish.definitions.push(this.d),this.termNonEnglish.definitions.pop(),this.termNonEnglish.wordEnglish=this.termEnglish.wordEnglish,this.termNonEnglish.languageCode=this.lang,this.m.addTermNonEnglish(this.termNonEnglish).subscribe(t=>this.termNonEnglish=t),setTimeout(()=>{this.router.navigate([`/term/english/detail/${this.id}`])},2e3)}}return t.\u0275fac=function(e){return new(e||t)(Po(Sg),Po(vd),Po(kp))},t.\u0275cmp=ue({type:t,selectors:[["app-add-translation"]],decls:71,vars:19,consts:[["lang","en"],["charset","UTF-8"],["name","viewport","content","width=device-width, initial-scale=1.0"],[1,"body"],[3,"ngSubmit"],["f","ngForm"],[1,"form-group"],["for","lang",1,"control-label"],["disable","","name","lang","autofocus","",1,"form-control",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["for","authorName",1,"control-label"],["type","text","name","authorName","minlength","3","maxlength","100","required","","autofocus","",1,"form-control","s",3,"ngModel","ngModelChange"],["authorName","ngModel"],["class","a-d",4,"ngIf"],["for","wordNonEnglish",1,"control-label"],["type","text","name","wordNonEnglish","minlength","3","maxlength","100","required","","autofocus","",1,"form-control","s",3,"ngModel","ngModelChange"],["wordNonEnglish","ngModel"],["for","fieldOfStudy",1,"control-label"],["type","text","name","fieldOfStudy","minlength","3","maxlength","100","placeholder","e.g. Computer Programming","required","","autofocus","",1,"form-control","s",3,"ngModel","ngModelChange"],["fieldOfStudy","ngModel"],["for","definition",1,"control-label"],["rows","10","name","definition","minlength","50","maxlength","5000","required","","autofocus","",1,"form-control",3,"ngModel","ngModelChange"],["definition","ngModel"],["for","linkAuthoritative",1,"control-label"],["type","text","cols","100%","rows","10","name","linkAuthoritative","autofocus","",1,"form-control",3,"ngModel","ngModelChange"],["for","linkWikipedia",1,"control-label"],["type","text","name","linkWikipedia","autofocus","",1,"form-control",3,"ngModel","ngModelChange"],["for","linkYouTube",1,"control-label"],["type","text","name","linkYouTube","autofocus","",1,"form-control",3,"ngModel","ngModelChange"],[1,"date"],["for","dateCreated",1,"field"],["for","dateRevised",1,"field"],["type","submit",1,"btnS",3,"disabled"],[1,"btnB",3,"routerLink"],[3,"value"],[1,"a-d"],[4,"ngIf"]],template:function(t,e){if(1&t&&(Ro(0,"html",0),Ro(1,"head"),Vo(2,"meta",1),Vo(3,"meta",2),Ro(4,"title"),ts(5,"Add Translation"),Do(),Do(),Ro(6,"body"),Ro(7,"header"),Ro(8,"h2"),ts(9),Do(),Ro(10,"p"),ts(11,"Enter data, and click/tap the Save button"),Do(),Do(),Ro(12,"div",3),Ro(13,"form",4,5),Fo("ngSubmit",(function(){return e.createTranslation()})),Ro(15,"div",6),Ro(16,"label",7),ts(17,"Language:"),Do(),Ro(18,"select",8),Fo("ngModelChange",(function(t){return e.lang=t}))("ngModelChange",(function(t){return e.langChange(t)})),Vo(19,"option"),ko(20,um,2,2,"option",9),Do(),Do(),Ro(21,"div",6),Ro(22,"label",10),ts(23,"Author's Name:"),Do(),Ro(24,"input",11,12),Fo("ngModelChange",(function(t){return e.termNonEnglish.authorName=t})),Do(),ko(26,pm,3,2,"div",13),Do(),Ro(27,"div",6),Ro(28,"label",14),ts(29,"Term or Word:"),Do(),Ro(30,"input",15,16),Fo("ngModelChange",(function(t){return e.termNonEnglish.wordNonEnglish=t})),Do(),ko(32,mm,3,2,"div",13),Do(),Ro(33,"div",6),Ro(34,"label",17),ts(35,"Field of Study:"),Do(),Ro(36,"input",18,19),Fo("ngModelChange",(function(t){return e.termNonEnglish.fieldOfStudy=t})),Do(),ko(38,vm,3,2,"div",13),Do(),Ro(39,"div",6),Ro(40,"label",20),ts(41,"Definition:"),Do(),Ro(42,"textarea",21,22),Fo("ngModelChange",(function(t){return e.d.definition=t})),Do(),ko(44,Cm,3,2,"div",13),Do(),Ro(45,"div",6),Ro(46,"label",23),ts(47,"Link (URL), Authoritative:"),Do(),Ro(48,"input",24),Fo("ngModelChange",(function(t){return e.termNonEnglish.linkAuthoritative=t})),Do(),Do(),Ro(49,"div",6),Ro(50,"label",25),ts(51,"Link (URL) on Wikipedia:"),Do(),Ro(52,"input",26),Fo("ngModelChange",(function(t){return e.termNonEnglish.linkWikipedia=t})),Do(),Do(),Ro(53,"div",6),Ro(54,"label",27),ts(55,"Link (URL) on YouTube:"),Do(),Ro(56,"input",28),Fo("ngModelChange",(function(t){return e.termNonEnglish.linkYouTube=t})),Do(),Do(),Ro(57,"div",29),Ro(58,"label",30),ts(59,"Date Created: "),Do(),Ro(60,"label"),ts(61),Do(),Do(),Ro(62,"div",29),Ro(63,"label",31),ts(64,"Date Revised: "),Do(),Ro(65,"label"),ts(66),Do(),Do(),Ro(67,"button",32),ts(68,"Save"),Do(),Ro(69,"button",33),ts(70,"Back to List"),Do(),Do(),Do(),Do(),Do()),2&t){const t=To(14),n=To(25),r=To(31),i=To(37),o=To(43);Er(9),ns("Create A New Translation For ",e.termEnglish.wordEnglish,""),Er(9),Io("ngModel",e.lang),Er(2),Io("ngForOf",e.languages),Er(4),Io("ngModel",e.termNonEnglish.authorName),Er(2),Io("ngIf",n.invalid&&(n.dirty||n.touched)),Er(4),Io("ngModel",e.termNonEnglish.wordNonEnglish),Er(2),Io("ngIf",r.invalid&&(r.dirty||r.touched)),Er(4),Io("ngModel",e.termNonEnglish.fieldOfStudy),Er(2),Io("ngIf",i.invalid&&(i.dirty||i.touched)),Er(4),Io("ngModel",e.d.definition),Er(2),Io("ngIf",o.invalid&&(o.dirty||o.touched)),Er(4),Io("ngModel",e.termNonEnglish.linkAuthoritative),Er(4),Io("ngModel",e.termNonEnglish.linkWikipedia),Er(4),Io("ngModel",e.termNonEnglish.linkYouTube),Er(5),es(e.date),Er(5),es(e.date),Er(1),Io("disabled",!t.form.valid),Er(2),Io("routerLink",_a(18,xm))}},directives:[fg,gf,og,Lf,ff,pg,jf,Hf,ic,af,yg,bg,mg,sc,Tp],styles:[".form-group[_ngcontent-%COMP%]{display:grid}.form-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-weight:700;padding-top:20px;font-size:16px}.form-group[_ngcontent-%COMP%]   select[_ngcontent-%COMP%], option[_ngcontent-%COMP%]{margin-top:10px;width:50%;font-size:14px;padding:3px 2px}.form-group[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{border-left:5px solid #8b0000}.form-group[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .form-group[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{margin-top:10px;width:50%;font-size:14px;padding:3px 2px;border-radius:5px}.s[_ngcontent-%COMP%]{border-left:5px solid #8b0000}.sg[_ngcontent-%COMP%]{border-left:5px solid green}.btnS[_ngcontent-%COMP%]{margin-top:30px;margin-right:15px;padding:8px;background-color:#8b0000;width:80px;font-weight:700;font-size:14px;color:#fff;border-radius:5px;border-color:#8b0000;border-width:2px}.btnS[_ngcontent-%COMP%]:hover{box-shadow:0 0 10px #8b0000}.btnS[_ngcontent-%COMP%]:disabled, .btnS[_ngcontent-%COMP%]:disabled:hover{background-color:#f3c6c6;color:#f5f5f5;border:1px solid #f3c6c6}.btnS[_ngcontent-%COMP%]:disabled:hover{box-shadow:0 0 0 #fff}.btnB[_ngcontent-%COMP%]{margin-top:30px;margin-right:10px;padding:8px;background-color:#fff;width:150px;font-weight:700;font-size:14px;color:#8b0000;border-radius:5px;border-color:#8b0000;border-width:2px}.btnB[_ngcontent-%COMP%]:hover{box-shadow:0 0 10px #000}.date[_ngcontent-%COMP%], .date[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]{padding-top:20px}.date[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]{font-weight:700;font-size:16px}.ng-valid.required[_ngcontent-%COMP%], .ng-valid[required][_ngcontent-%COMP%]{border-left:5px solid green}.a-d[_ngcontent-%COMP%]{background-color:#f8d7da;color:#8b0000;padding:10px 0 10px 10px;width:50%;border-radius:3px}"]}),t})();function Sm(t,e){1&t&&(Ro(0,"div"),ts(1,"Name is required, 3 to 100 characters"),Do())}function Om(t,e){1&t&&(Ro(0,"div"),ts(1,"Name must be at least 3 characters"),Do())}function km(t,e){if(1&t&&(Ro(0,"div",26),ko(1,Sm,2,0,"div",27),ko(2,Om,2,0,"div",27),Do()),2&t){qo();const t=To(19);Er(1),Io("ngIf",null==t.errors?null:t.errors.required),Er(1),Io("ngIf",null==t.errors?null:t.errors.minlength)}}function Tm(t,e){1&t&&(Ro(0,"div"),ts(1,"Term is required, 3 to 100 characters"),Do())}function Pm(t,e){1&t&&(Ro(0,"div"),ts(1,"Term must be at least 3 characters"),Do())}function Mm(t,e){if(1&t&&(Ro(0,"div",26),ko(1,Tm,2,0,"div",27),ko(2,Pm,2,0,"div",27),Do()),2&t){qo();const t=To(25);Er(1),Io("ngIf",null==t.errors?null:t.errors.required),Er(1),Io("ngIf",null==t.errors?null:t.errors.minlength)}}function Am(t,e){1&t&&(Ro(0,"div"),ts(1,"Field of Study is required, 3 to 100 characters"),Do())}function Im(t,e){1&t&&(Ro(0,"div"),ts(1,"Field of Study must be at least 3 characters"),Do())}function Nm(t,e){if(1&t&&(Ro(0,"div",26),ko(1,Am,2,0,"div",27),ko(2,Im,2,0,"div",27),Do()),2&t){qo();const t=To(35);Er(1),Io("ngIf",null==t.errors?null:t.errors.required),Er(1),Io("ngIf",null==t.errors?null:t.errors.minlength)}}function Rm(t,e){1&t&&(Ro(0,"div"),ts(1,"Definition is required, 50 to 5000 characters"),Do())}function Dm(t,e){1&t&&(Ro(0,"div"),ts(1,"Definition must be at least 50 characters"),Do())}function Vm(t,e){if(1&t&&(Ro(0,"div",26),ko(1,Rm,2,0,"div",27),ko(2,Dm,2,0,"div",27),Do()),2&t){qo();const t=To(41);Er(1),Io("ngIf",null==t.errors?null:t.errors.required),Er(1),Io("ngIf",null==t.errors?null:t.errors.minlength)}}const Lm=function(){return["/term/english"]};let jm=(()=>{class t{constructor(t,e,n){this.m=t,this.route=e,this.router=n,this.date=(new Date).toISOString(),this.newDate=new Date(this.date)}ngOnInit(){this.d={authorName:"",dateCreated:this.newDate,definition:"",quality:0,likes:0},this.termEnglish={wordEnglish:"",wordNonEnglish:"",wordExpanded:"",languageCode:"",image:"",imageType:"",audio:"",audioType:"",linkAuthoritative:"",linkWikipedia:"",linkYouTube:"",authorName:"",dateCreated:this.newDate,dateRevised:this.newDate,fieldOfStudy:"",helpYes:0,helpNo:0,definitions:[this.d]}}createTerm(){console.log("createTranslation()"),this.termEnglish.languageCode="en-ca",this.d.authorName=this.termEnglish.authorName,this.termEnglish.definitions.push(this.d),this.termEnglish.definitions.pop(),console.log("Adding"),this.m.addTermEnglish(this.termEnglish).subscribe(t=>this.termEnglish=t),console.log("Added"),setTimeout(()=>{this.router.navigate(["/term/english"])},2e3)}}return t.\u0275fac=function(e){return new(e||t)(Po(Sg),Po(vd),Po(kp))},t.\u0275cmp=ue({type:t,selectors:[["app-add-new-term"]],decls:69,vars:17,consts:[["lang","en"],["charset","UTF-8"],["name","viewport","content","width=device-width, initial-scale=1.0"],[1,"body"],[3,"ngSubmit"],["f","ngForm"],[1,"form-group"],["for","name",1,"control-label"],["type","text","name","authorName","minlength","3","maxlength","100","required","","autofocus","",1,"form-control","s",3,"ngModel","ngModelChange"],["authorName","ngModel"],["class","a-d",4,"ngIf"],["type","text","name","wordEnglish","minlength","3","maxlength","100","required","","autofocus","",1,"form-control","s",3,"ngModel","ngModelChange"],["wordEnglish","ngModel"],["type","text","name","wordExpanded","autofocus","",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","fieldOfStudy","minlength","3","maxlength","100","placeholder","e.g. Computer Programming","required","","autofocus","",1,"form-control","s",3,"ngModel","ngModelChange"],["fieldOfStudy","ngModel"],["rows","10","name","definition","minlength","50","maxlength","5000","required","","autofocus","",1,"form-control",3,"ngModel","ngModelChange"],["definition","ngModel"],["type","text","cols","100%","rows","10","name","linkAuthoritative","autofocus","",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","linkWikipedia","autofocus","",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","linkYouTube","autofocus","",1,"form-control",3,"ngModel","ngModelChange"],[1,"date"],["for","dateCreated",1,"field"],["for","dateRevised",1,"field"],["type","submit",1,"btnS",3,"disabled"],[1,"btnB",3,"routerLink"],[1,"a-d"],[4,"ngIf"]],template:function(t,e){if(1&t&&(Ro(0,"html",0),Ro(1,"head"),Vo(2,"meta",1),Vo(3,"meta",2),Ro(4,"title"),ts(5,"Add Term"),Do(),Do(),Ro(6,"body"),Ro(7,"header"),Ro(8,"h2"),ts(9,"Create A New English Term"),Do(),Ro(10,"p"),ts(11,"Enter data, and click/tap the Save button"),Do(),Do(),Ro(12,"div",3),Ro(13,"form",4,5),Fo("ngSubmit",(function(){return e.createTerm()})),Ro(15,"div",6),Ro(16,"label",7),ts(17,"Author's Name:"),Do(),Ro(18,"input",8,9),Fo("ngModelChange",(function(t){return e.termEnglish.authorName=t})),Do(),ko(20,km,3,2,"div",10),Do(),Ro(21,"div",6),Ro(22,"label",7),ts(23,"Term in English:"),Do(),Ro(24,"input",11,12),Fo("ngModelChange",(function(t){return e.termEnglish.wordEnglish=t})),Do(),ko(26,Mm,3,2,"div",10),Do(),Ro(27,"div",6),Ro(28,"label",7),ts(29,"Expansion, if Term is an Acronym or Initialism:"),Do(),Ro(30,"input",13),Fo("ngModelChange",(function(t){return e.termEnglish.wordExpanded=t})),Do(),Do(),Ro(31,"div",6),Ro(32,"label",7),ts(33,"Field of Study:"),Do(),Ro(34,"input",14,15),Fo("ngModelChange",(function(t){return e.termEnglish.fieldOfStudy=t})),Do(),ko(36,Nm,3,2,"div",10),Do(),Ro(37,"div",6),Ro(38,"label",7),ts(39,"Definition:"),Do(),Ro(40,"textarea",16,17),Fo("ngModelChange",(function(t){return e.d.definition=t})),Do(),ko(42,Vm,3,2,"div",10),Do(),Ro(43,"div",6),Ro(44,"label",7),ts(45,"Link (URL), Authoritative:"),Do(),Ro(46,"input",18),Fo("ngModelChange",(function(t){return e.termEnglish.linkAuthoritative=t})),Do(),Do(),Ro(47,"div",6),Ro(48,"label",7),ts(49,"Link (URL) on Wikipedia:"),Do(),Ro(50,"input",19),Fo("ngModelChange",(function(t){return e.termEnglish.linkWikipedia=t})),Do(),Do(),Ro(51,"div",6),Ro(52,"label",7),ts(53,"Link (URL) on YouTube:"),Do(),Ro(54,"input",20),Fo("ngModelChange",(function(t){return e.termEnglish.linkYouTube=t})),Do(),Do(),Ro(55,"div",21),Ro(56,"label",22),ts(57,"Date Created: "),Do(),Ro(58,"label"),ts(59),Do(),Do(),Ro(60,"div",21),Ro(61,"label",23),ts(62,"Date Revised: "),Do(),Ro(63,"label"),ts(64),Do(),Do(),Ro(65,"button",24),ts(66,"Save"),Do(),Ro(67,"button",25),ts(68,"Back to List"),Do(),Do(),Do(),Do(),Do()),2&t){const t=To(14),n=To(19),r=To(25),i=To(35),o=To(41);Er(18),Io("ngModel",e.termEnglish.authorName),Er(2),Io("ngIf",n.invalid&&(n.dirty||n.touched)),Er(4),Io("ngModel",e.termEnglish.wordEnglish),Er(2),Io("ngIf",r.invalid&&(r.dirty||r.touched)),Er(4),Io("ngModel",e.termEnglish.wordExpanded),Er(4),Io("ngModel",e.termEnglish.fieldOfStudy),Er(2),Io("ngIf",i.invalid&&(i.dirty||i.touched)),Er(4),Io("ngModel",e.d.definition),Er(2),Io("ngIf",o.invalid&&(o.dirty||o.touched)),Er(4),Io("ngModel",e.termEnglish.linkAuthoritative),Er(4),Io("ngModel",e.termEnglish.linkWikipedia),Er(4),Io("ngModel",e.termEnglish.linkYouTube),Er(5),es(e.date),Er(5),es(e.date),Er(1),Io("disabled",!t.form.valid),Er(2),Io("routerLink",_a(16,Lm))}},directives:[fg,gf,og,af,yg,bg,mg,ff,pg,sc,Tp],styles:[".form-group[_ngcontent-%COMP%]{display:grid}.form-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-weight:700;padding-top:20px;font-size:16px}.form-group[_ngcontent-%COMP%]   select[_ngcontent-%COMP%], option[_ngcontent-%COMP%]{margin-top:10px;width:50%;font-size:14px;padding:3px 2px}.form-group[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{border-left:5px solid #8b0000}.form-group[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .form-group[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{margin-top:10px;width:50%;font-size:14px;padding:3px 2px;border-radius:5px}.s[_ngcontent-%COMP%]{border-left:5px solid #8b0000}.sg[_ngcontent-%COMP%]{border-left:5px solid green}.btnS[_ngcontent-%COMP%]{margin-top:30px;margin-right:15px;padding:8px;background-color:#8b0000;width:80px;font-weight:700;font-size:14px;color:#fff;border-radius:5px;border-color:#8b0000;border-width:2px}.btnS[_ngcontent-%COMP%]:hover{box-shadow:0 0 10px #8b0000}.btnS[_ngcontent-%COMP%]:disabled, .btnS[_ngcontent-%COMP%]:disabled:hover{background-color:#f3c6c6;color:#f5f5f5;border:1px solid #f3c6c6}.btnS[_ngcontent-%COMP%]:disabled:hover{box-shadow:0 0 0 #fff}.btnB[_ngcontent-%COMP%]{margin-top:30px;margin-right:10px;padding:8px;background-color:#fff;width:150px;font-weight:700;font-size:14px;color:#8b0000;border-radius:5px;border-color:#8b0000;border-width:2px}.btnB[_ngcontent-%COMP%]:hover{box-shadow:0 0 10px #000}.date[_ngcontent-%COMP%], .date[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]{padding-top:20px}.date[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]{font-weight:700;font-size:16px}.ng-valid.required[_ngcontent-%COMP%], .ng-valid[required][_ngcontent-%COMP%]{border-left:5px solid green}.a-d[_ngcontent-%COMP%]{background-color:#f8d7da;color:#8b0000;padding:10px 0 10px 10px;width:50%;border-radius:3px}"]}),t})();function Um(t,e){if(1&t){const t=Lo();Ro(0,"table"),Ro(1,"tr"),Ro(2,"div",13),Ro(3,"div",14),Ro(4,"button",15),Fo("click",(function(){ze(t);const n=e.$implicit;return qo().incrementLikes(n._id)})),ts(5),Do(),Ro(6,"p",16),ts(7),Do(),Do(),Ro(8,"p",17),ts(9),Do(),Do(),Do(),Do()}if(2&t){const t=e.$implicit;Er(5),ns("Likes(",t.likes,")"),Er(2),rs("Author: ",t.authorName," on ",t.dateCreated,""),Er(2),es(t.definition)}}function Fm(t,e){if(1&t&&(Ro(0,"button",18),Ro(1,"a",19),ts(2,"Authoritative"),Do(),Do()),2&t){const t=qo();Er(1),zo("href",t.termNonEnglish.linkAuthoritative,cr)}}function $m(t,e){if(1&t&&(Ro(0,"button",18),Ro(1,"a",19),ts(2,"Wikipedia"),Do(),Do()),2&t){const t=qo();Er(1),zo("href",t.termNonEnglish.linkWikipedia,cr)}}function Hm(t,e){if(1&t&&(Ro(0,"button",18),Ro(1,"a",19),ts(2,"YouTube"),Do(),Do()),2&t){const t=qo();Er(1),zo("href",t.termNonEnglish.linkYouTube,cr)}}const qm=function(t){return["/term/nonEnglish/add-definition/",t]},zm=function(){return["/term/nonEnglish"]};function Bm(t,e){1&t&&(Ro(0,"div"),ts(1,"Definition is required, 50 to 5000 characters"),Do())}function Gm(t,e){1&t&&(Ro(0,"div"),ts(1,"Definition must be at least 50 characters"),Do())}function Wm(t,e){if(1&t&&(Ro(0,"div",20),ko(1,Bm,2,0,"div",21),ko(2,Gm,2,0,"div",21),Do()),2&t){qo();const t=To(26);Er(1),Io("ngIf",null==t.errors?null:t.errors.required),Er(1),Io("ngIf",null==t.errors?null:t.errors.minlength)}}function Zm(t,e){if(1&t&&(Ro(0,"table"),Ro(1,"tr"),Ro(2,"div",22),Ro(3,"div",23),Ro(4,"button"),ts(5),Do(),Ro(6,"p",24),ts(7),Do(),Do(),Ro(8,"p",25),ts(9),Do(),Do(),Do(),Do()),2&t){const t=e.$implicit;Er(5),ns("Likes(",t.likes,")"),Er(2),rs("Author: ",t.authorName," on ",t.dateCreated,""),Er(2),es(t.definition)}}const Qm=function(t){return["/term/nonEnglish/detail",t]},Ym=function(){return["/term/nonEnglish"]},Km=[{path:"",component:Xp},{path:"home",component:Xp},{path:"contact",component:xg},{path:"term/english",component:Dg},{path:"term/nonEnglish",component:qg},{path:"term/english/detail/:id",component:nm},{path:"term/nonEnglish/detail/:id",component:(()=>{class t{constructor(t,e,n){this.m=t,this.route=e,this.router=n}ngOnInit(){this.id=this.route.snapshot.paramMap.get("id"),this.m.getOneTermsNonEnglishID(this.id).subscribe(t=>{this.termNonEnglish=t,console.log(this.termNonEnglish.wordEnglish)}),this.m.getAllLanguages().subscribe(t=>{console.log(this.termNonEnglish.languageCode);for(let e=0;e<t.length;e++)this.termNonEnglish.languageCode.includes(t[e].code)&&(this.lang=t[e].name);this.languages=t})}incrementYes(){console.log(this.id),this.m.nonEenglishIncrementYes(this.id).subscribe(t=>this.termNonEnglish=t),console.log(this.termNonEnglish.helpYes)}incrementNo(){console.log(this.id),this.m.nonEnglishIncrementNo(this.id).subscribe(t=>this.termNonEnglish=t),console.log(this.termNonEnglish.helpNo)}incrementLikes(t){console.log(t),this.m.nonEenglishIncrementLikes(t).subscribe(t=>this.termNonEnglish=t),console.log(this.termNonEnglish.definitions[0].likes)}deleteTerm(){this.m.nonEnglishDelete(this.id).subscribe(),setTimeout(()=>{this.router.navigate(["/term/english"])},2e3)}}return t.\u0275fac=function(e){return new(e||t)(Po(Sg),Po(vd),Po(kp))},t.\u0275cmp=ue({type:t,selectors:[["app-detail-non-english"]],decls:67,vars:19,consts:[["lang","en"],["charset","UTF-8"],["name","viewport","content","width=device-width, initial-scale=1.0"],[1,"body"],[1,"category"],[1,"definitionCell"],[4,"ngFor","ngForOf"],[1,"last"],[3,"routerLink"],[1,"middle"],["class","links",4,"ngIf"],[1,"helpful",3,"click"],[1,"del",3,"click"],[1,"def"],[1,"hd"],[3,"click"],[1,"hdp"],[1,"defdef"],[1,"links"],["target","_blank",3,"href"]],template:function(t,e){1&t&&(Ro(0,"html",0),Ro(1,"head"),Vo(2,"meta",1),Vo(3,"meta",2),Ro(4,"title"),ts(5,"Detail"),Do(),Do(),Ro(6,"body"),Ro(7,"header"),Ro(8,"h2"),ts(9),Do(),Ro(10,"div"),Ro(11,"h3"),ts(12),Do(),Do(),Do(),Ro(13,"div",3),Ro(14,"tbody"),Ro(15,"tr"),Ro(16,"td",4),ts(17,"Definition: "),Do(),Ro(18,"td",5),ko(19,Um,10,4,"table",6),Do(),Ro(20,"td",7),Ro(21,"button",8),ts(22,"Add Definition"),Do(),Do(),Do(),Ro(23,"tr"),Ro(24,"td",4),ts(25,"Field of Study: "),Do(),Ro(26,"td",9),ts(27),Do(),Do(),Ro(28,"tr"),Ro(29,"td",4),ts(30,"Author's Name: "),Do(),Ro(31,"td",9),ts(32),Do(),Do(),Ro(33,"tr"),Ro(34,"td",4),ts(35,"Date Created: "),Do(),Ro(36,"td",9),ts(37),Do(),Do(),Ro(38,"tr"),Ro(39,"td",4),ts(40,"Date Revised: "),Do(),Ro(41,"td",9),ts(42),Do(),Do(),Ro(43,"tr"),Ro(44,"td",4),ts(45,"Links: "),Do(),Ro(46,"td",9),ko(47,Fm,3,1,"button",10),ko(48,$m,3,1,"button",10),ko(49,Hm,3,1,"button",10),Do(),Do(),Ro(50,"tr"),Ro(51,"td",4),ts(52,"Helpful: "),Do(),Ro(53,"td",9),Ro(54,"button",11),Fo("click",(function(){return e.incrementYes()})),ts(55),Do(),Ro(56,"button",11),Fo("click",(function(){return e.incrementNo()})),ts(57),Do(),Do(),Do(),Ro(58,"tr"),Vo(59,"td"),Vo(60,"td"),Ro(61,"td"),Ro(62,"button",12),Fo("click",(function(){return e.deleteTerm()})),ts(63,"Delete"),Do(),Do(),Do(),Do(),Do(),Ro(64,"footer"),Ro(65,"button",8),ts(66,"Back to Non-English List"),Do(),Do(),Do(),Do()),2&t&&(Er(9),ns("Non-English term detail for ",e.termNonEnglish.wordNonEnglish,""),Er(3),is("(",e.lang,"(",e.termNonEnglish.languageCode,") for ",e.termNonEnglish.wordEnglish,")"),Er(7),Io("ngForOf",e.termNonEnglish.definitions),Er(2),Io("routerLink",ya(16,qm,e.id)),Er(6),es(e.termNonEnglish.fieldOfStudy),Er(5),es(e.termNonEnglish.authorName),Er(5),es(e.termNonEnglish.dateCreated),Er(5),es(e.termNonEnglish.dateRevised),Er(5),Io("ngIf",e.termNonEnglish.linkAuthoritative),Er(1),Io("ngIf",e.termNonEnglish.linkWikipedia),Er(1),Io("ngIf",e.termNonEnglish.linkYouTube),Er(6),ns("Yes (",e.termNonEnglish.helpYes,")"),Er(2),ns("No (",e.termNonEnglish.helpNo,")"),Er(8),Io("routerLink",_a(18,zm)))},directives:[ic,Tp,sc],styles:["header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0;display:inline}footer[_ngcontent-%COMP%]{margin-top:30px;border-top:1px solid #8b0000}footer[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 5px #000;width:200px;padding:10px;margin-top:10px;margin-left:10px;text-align:center;font-size:14px;color:#8b0000}footer[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{box-shadow:0 0 10px #8b0000}.def[_ngcontent-%COMP%]   .hd[_ngcontent-%COMP%]   .hdp[_ngcontent-%COMP%], button[_ngcontent-%COMP%]{display:inline;font-size:14px;margin-right:10px}.category[_ngcontent-%COMP%]{text-align:right;vertical-align:center;margin-left:10px;font-weight:700;padding:10px}.def[_ngcontent-%COMP%]{border:1px solid #8b0000;border-radius:5px;margin:20px;width:90%}.def[_ngcontent-%COMP%]   .defdef[_ngcontent-%COMP%]{padding:0 10px}.def[_ngcontent-%COMP%]   .hd[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid #8b0000;background-color:#8b0000;color:#fff}.last[_ngcontent-%COMP%]{text-align:center}.last[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:8px;background-color:#8b0000;width:120px;font-weight:700;font-size:14px;color:#fff;border-radius:5px;border-color:#8b0000;box-shadow:0 0 10px #8b0000;border-width:2px}td[_ngcontent-%COMP%]{width:10%}.definitionCell[_ngcontent-%COMP%]{width:50%}.middle[_ngcontent-%COMP%]{padding-left:20px}.addTranslation[_ngcontent-%COMP%]{padding:6px;background-color:#8b0000;width:120px;font-weight:700;font-size:12px;color:#fff;border-radius:5px;border-width:2px}.addTranslation[_ngcontent-%COMP%]:hover{border-color:#8b0000;box-shadow:0 0 10px #8b0000}.links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none}.links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited{color:#000}.diffLang[_ngcontent-%COMP%]{display:inline}.del[_ngcontent-%COMP%]{padding:6px;background-color:#000;width:120px;font-weight:700;font-size:16px;color:#fff;border-radius:5px;border-width:2px;display:center;float:right}.del[_ngcontent-%COMP%]:hover{border-color:#fff;box-shadow:0 0 10px #000}"]}),t})()},{path:"term/english/create",component:jm},{path:"term/nonEnglish/add-translation/:id",component:Em},{path:"term/english/add-definition/:id",component:cm},{path:"term/nonEnglish/add-definition/:id",component:(()=>{class t{constructor(t,e){this.m=t,this.route=e,this.date=(new Date).toISOString(),this.newDate=new Date(this.date)}ngOnInit(){this.newDefinition={authorName:"",dateCreated:this.newDate,definition:"",quality:0,likes:0},this.id=this.route.snapshot.paramMap.get("id"),this.m.getOneTermsNonEnglishID(this.id).subscribe(t=>{this.termNonEnglish=t})}addDefinition(){console.log(this.newDefinition.authorName),console.log(this.newDefinition.definition),this.m.addTermNonEnglishDefinition(this.id,this.newDefinition).subscribe(t=>this.termNonEnglish=t)}}return t.\u0275fac=function(e){return new(e||t)(Po(Sg),Po(vd))},t.\u0275cmp=ue({type:t,selectors:[["app-non-english-add-definition"]],decls:46,vars:12,consts:[["lang","en"],["charset","UTF-8"],["name","viewport","content","width=device-width, initial-scale=1.0"],[1,"body"],[1,"category"],[1,"getInfo"],[1,"getInfoTable"],[1,"desc"],["name","authorName",1,"ttl"],[1,"in1"],["type","text","name","authorName","required","",3,"ngModel","ngModelChange"],["name","definition",1,"ttl"],[1,"in2"],["rows","10","name","definition","minlength","50","maxlength","5000","required","","autofocus","",1,"tarea2",3,"ngModel","ngModelChange"],["definition","ngModel"],["class","a-d",4,"ngIf"],[1,"btn"],[3,"click"],[3,"routerLink"],[4,"ngFor","ngForOf"],[1,"a-d"],[4,"ngIf"],[1,"def"],[1,"hd"],[1,"hdp"],[1,"defdef"]],template:function(t,e){if(1&t&&(Ro(0,"html",0),Ro(1,"head"),Vo(2,"meta",1),Vo(3,"meta",2),Ro(4,"title"),ts(5,"Add Definition"),Do(),Do(),Ro(6,"body"),Ro(7,"header"),Ro(8,"h2"),ts(9),Do(),Do(),Ro(10,"div",3),Ro(11,"tr"),Ro(12,"td",4),ts(13,"New definition: "),Do(),Ro(14,"td",5),Ro(15,"table",6),Ro(16,"tr",7),ts(17,"Enter data, and click/tap the Save button"),Do(),Ro(18,"tr",8),ts(19,"Author's Name:"),Do(),Ro(20,"tr",9),Ro(21,"input",10),Fo("ngModelChange",(function(t){return e.newDefinition.authorName=t})),Do(),Do(),Ro(22,"tr",11),ts(23,"Definition:"),Do(),Ro(24,"tr",12),Ro(25,"textarea",13,14),Fo("ngModelChange",(function(t){return e.newDefinition.definition=t})),Do(),ko(27,Wm,3,2,"div",15),Do(),Ro(28,"tr",16),Ro(29,"button",17),Fo("click",(function(){return e.addDefinition()})),ts(30,"Save"),Do(),Ro(31,"button",18),ts(32,"Cancel"),Do(),Do(),Do(),Do(),Do(),Ro(33,"tr"),Ro(34,"td",4),ts(35),Do(),Ro(36,"td"),ko(37,Zm,10,4,"table",19),Do(),Do(),Ro(38,"tr"),Ro(39,"td",4),ts(40,"Field of Study: "),Do(),Ro(41,"td",7),ts(42),Do(),Do(),Do(),Ro(43,"footer"),Ro(44,"button",18),ts(45,"Back to List"),Do(),Do(),Do(),Do()),2&t){const t=To(26);Er(9),ns("Add another definition to ",e.termNonEnglish.wordEnglish,""),Er(12),Io("ngModel",e.newDefinition.authorName),Er(4),Io("ngModel",e.newDefinition.definition),Er(2),Io("ngIf",t.invalid&&(t.dirty||t.touched)),Er(4),Io("routerLink",ya(9,Qm,e.id)),Er(4),ns("Existing definitions (",e.termNonEnglish.definitions.length,"): "),Er(2),Io("ngForOf",e.termNonEnglish.definitions),Er(5),es(e.termNonEnglish.fieldOfStudy),Er(2),Io("routerLink",_a(11,Ym))}},directives:[af,mg,ff,pg,yg,bg,sc,Tp,ic],styles:["header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0;padding-top:10px;display:inline}footer[_ngcontent-%COMP%]{margin-top:30px;border-top:1px solid #8b0000}footer[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 0 5px #000;width:100px;padding:10px;margin-top:10px;margin-left:10px;text-align:center;font-size:14px;color:#8b0000}footer[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{box-shadow:0 0 10px #8b0000}.desc[_ngcontent-%COMP%]{padding:20px}.ttl[_ngcontent-%COMP%]{font-weight:700;padding-top:5px}.in1[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%]{width:98%}.in1[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%], .in2[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{border-left:4px solid #8b0000;margin:10px 0;font-size:14px;padding:3px 2px}.in2[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%;height:150px;box-sizing:border-box}.btn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background-color:#8a0000;box-shadow:0 0 5px #fff;width:80px;padding:10px;margin-top:10px;text-align:center;font-size:14px;color:#fff}.btn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{box-shadow:0 0 5px #8b0000}.def[_ngcontent-%COMP%]   .hd[_ngcontent-%COMP%]   .hdp[_ngcontent-%COMP%], button[_ngcontent-%COMP%]{display:inline;font-size:14px;margin-right:10px}.category[_ngcontent-%COMP%]{text-align:right;vertical-align:center;margin-left:10px;font-weight:700;padding:10px;width:20%}.getInfo[_ngcontent-%COMP%]{padding:20px;width:80%}.getInfo[_ngcontent-%COMP%]   .getInfoTable[_ngcontent-%COMP%]{width:100%}.def[_ngcontent-%COMP%]{border:1px solid #8b0000;border-radius:5px;margin:20px;width:90%}.def[_ngcontent-%COMP%]   .defdef[_ngcontent-%COMP%]{padding:0 10px}.def[_ngcontent-%COMP%]   .hd[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid #8b0000;background-color:#8b0000;color:#fff}.a-d[_ngcontent-%COMP%]{background-color:#f8d7da;color:#8b0000;margin-top:0;padding:10px 0 10px 10px;border-radius:3px}.tarea2[_ngcontent-%COMP%]{margin-bottom:0}"]}),t})()},{path:"",redirectTo:"/home",pathMatch:"full"},{path:"**",component:Eg}];let Jm=(()=>{class t{}return t.\u0275mod=fe({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[zp.forRoot(Km)],zp]}),t})(),Xm=(()=>{class t{constructor(){this.title="a2-app"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ue({type:t,selectors:[["app-root"]],decls:24,vars:0,consts:[["lang","en"],["charset","UTF-8"],["name","viewport","content","width=device-width, initial-scale=1.0"],["classname","bigD"],[1,"topnav"],["routerLink","/home","routerLinkActive","active-list-item"],["routerLink","/contact","routerLinkActive","active-list-item"],["routerLink","/term/english","routerLinkActive","active-list-item"],["routerLink","/term/nonEnglish","routerLinkActive","active-list-item"],[1,"container"]],template:function(t,e){1&t&&(Ro(0,"html",0),Ro(1,"head"),Vo(2,"meta",1),Vo(3,"meta",2),Ro(4,"title"),ts(5,"Assignment 2"),Do(),Do(),Ro(6,"body"),Ro(7,"div",3),Ro(8,"header"),Ro(9,"h1"),ts(10,"The Dictionary"),Do(),Ro(11,"div",4),Ro(12,"a",5),ts(13,"Home"),Do(),Ro(14,"a",6),ts(15,"Contact"),Do(),Ro(16,"a",7),ts(17,"Terms in English"),Do(),Ro(18,"a",8),ts(19,"Terms in Non English"),Do(),Do(),Do(),Ro(20,"div",9),Vo(21,"router-outlet"),Do(),Ro(22,"footer"),ts(23," \xa9 Manan Patel "),Do(),Do(),Do(),Do())},directives:[Pp,Ap,Rp],styles:[".bigD[_ngcontent-%COMP%]{margin-left:15px;margin-right:15px}h1[_ngcontent-%COMP%]{text-align:center;font-size:35px;margin:5px}.topnav[_ngcontent-%COMP%]{background-color:#333;overflow:hidden}.topnav[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{float:left;color:#d3d3d3;text-align:center;padding:14px 16px;text-decoration:none;font-size:17px}.topnav[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#fff}.topnav[_ngcontent-%COMP%]   a.active-list-item[_ngcontent-%COMP%]{background-color:#8b0000;color:#fff}footer[_ngcontent-%COMP%]{margin-top:100px;padding:10px;border-top:solid;border-color:#d3d3d3;border-width:1px}"]}),t})(),t_=(()=>{class t{}return t.\u0275mod=fe({type:t,bootstrap:[Xm]}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[Uc,Cu,Jm,Cg]]}),t})();(function(){if(ir)throw new Error("Cannot enable prod mode after platform setup.");rr=!1})(),Lc().bootstrapModule(t_).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]]]);