(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},zUnb:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.r(e);let s=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(i.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const u=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let h=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:s,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.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 m(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new m(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 m extends f{constructor(t,e,n,s){let i;super(),this._parentSubscriber=t;let o=this;r(e)?i=e:e&&(i=e.next,n=e.error,s=e.complete,e!==a&&(o=Object.create(e),r(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return i.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(o(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(t){return t}function v(...t){return _(t)}function _(t){return 0===t.length?y:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}let w=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:r}=this,s=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(s.add(r?r.call(s,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),i.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){i.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=b(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(s){n(s),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[g](){return this}pipe(...t){return 0===t.length?this:_(t)(this)}toPromise(t){return new(t=b(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function b(t){if(t||(t=i.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 S 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 x extends f{constructor(t){super(t),this.destination=t}}let E=(()=>{class t extends w{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new x(this)}lift(t){const e=new k(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 s=0;snew k(t,e),t})();class k extends E{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 T(t){return t&&"function"==typeof t.schedule}class A 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 I=t=>e=>{for(let n=0,r=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function V(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const P=t=>{if(t&&"function"==typeof t[g])return r=t,t=>{const e=r[g]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(N(t))return I(t);if(V(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[R])return e=t,t=>{const n=e[R]();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 M(t,e,n,r,s=new A(t,n,r)){if(!s.closed)return e instanceof w?e.subscribe(s):P(e)(s)}class D extends f{notifyNext(t,e,n,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function j(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 F(t,e))}}class F{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 L(t,e){return new w(n=>{const r=new h;let s=0;return r.add(e.schedule((function(){s!==t.length?(n.next(t[s++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}function H(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new w(n=>{const r=new h;return r.add(e.schedule(()=>{const s=t[g]();r.add(s.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(V(t))return function(t,e){return new w(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(N(t))return L(t,e);if(function(t){return t&&"function"==typeof t[R]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new w(n=>{const r=new h;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(e.schedule(()=>{s=t[R](),r.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())})))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof w?t:new w(P(t))}function $(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe($((n,r)=>H(t(n,r)).pipe(j((t,s)=>e(n,t,r,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new z(t,n)))}class z{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new q(t,this.project,this.concurrent))}}class q extends D{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function B(t=Number.POSITIVE_INFINITY){return $(y,t)}function W(t,e){return e?L(t,e):new w(I(t))}function G(){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 K(t,n),s=e.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class K 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 Q extends w{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 Y(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return G()(this)}}const J=(()=>{const t=Q.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 Y extends x{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 E}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 s(...t){if(this instanceof s)return r.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,r){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const nt=et("Inject",t=>({token:t})),rt=et("Optional"),st=et("Self"),it=et("SkipSelf");var ot=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function 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[yt])}function dt(t,e){return e&&e.token===t?e:null}function pt(t){return t&&(t.hasOwnProperty(mt)||t.hasOwnProperty(vt))?t[mt]:null}const ft=at({"\u0275prov":at}),mt=at({"\u0275inj":at}),gt=at({"\u0275provFallback":at}),yt=at({ngInjectableDef:at}),vt=at({ngInjectorDef:at});function _t(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(_t).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 wt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const bt=at({__forward_ref__:at});function Ct(t){return t.__forward_ref__=Ct,t.toString=function(){return _t(this())},t}function St(t){return xt(t)?t():t}function xt(t){return"function"==typeof t&&t.hasOwnProperty(bt)&&t.__forward_ref__===Ct}const Et="undefined"!=typeof globalThis&&globalThis,kt="undefined"!=typeof window&&window,Tt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,At="undefined"!=typeof global&&global,It=Et||At||kt||Tt,Ot=at({"\u0275cmp":at}),Rt=at({"\u0275dir":at}),Nt=at({"\u0275pipe":at}),Vt=at({"\u0275mod":at}),Pt=at({"\u0275loc":at}),Mt=at({"\u0275fac":at}),Dt=at({__NG_ELEMENT_ID__:at});class jt{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 Ft=new jt("INJECTOR",-1),Ut={},Lt=/\n/gm,Ht=at({provide:String,useValue:at});let $t,zt=void 0;function qt(t){const e=zt;return zt=t,e}function Bt(t){const e=$t;return $t=t,e}function Wt(t,e=ot.Default){if(void 0===zt)throw new Error("inject() must be called from an injection context");return null===zt?Zt(t,void 0,e):zt.get(t,e&ot.Optional?null:void 0,e)}function Gt(t,e=ot.Default){return($t||Wt)(St(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&ot.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${_t(t)}]`)}function Kt(t){const e=[];for(let n=0;nArray.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){const n=[];for(let r=0;r=0?t[1|r]=n:(r=~r,function(t,e,n,r){let s=t.length;if(s==e)t.push(n,r);else if(1===s)t.push(r,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function se(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,s=t.length>>1;for(;s!==r;){const n=r+(s-r>>1),i=t[n<<1];if(e===i)return n<<1;i>e?s=n:r=n+1}return~(s<<1)}(t,e)}const oe=function(){var t={OnPush:0,Default:1};return t[t.OnPush]="OnPush",t[t.Default]="Default",t}(),ae=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}(),le={},ce=[];let ue=0;function he(t){return tt(()=>{const e=t.type,n=e.prototype,r={},s={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===oe.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ce,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ae.Emulated,id:"c",styles:t.styles||ce,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,o=t.features,a=t.pipes;return s.id+=ue++,s.inputs=ge(t.inputs,r),s.outputs=ge(t.outputs),o&&o.forEach(t=>t(s)),s.directiveDefs=i?()=>("function"==typeof i?i():i).map(de):null,s.pipeDefs=a?()=>("function"==typeof a?a():a).map(pe):null,s})}function de(t){return _e(t)||function(t){return t[Rt]||null}(t)}function pe(t){return function(t){return t[Nt]||null}(t)}const fe={};function me(t){const e={type:t.type,bootstrap:t.bootstrap||ce,declarations:t.declarations||ce,imports:t.imports||ce,exports:t.exports||ce,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&tt(()=>{fe[t.id]=t.type}),e}function ge(t,e){if(null==t)return le;const n={};for(const r in t)if(t.hasOwnProperty(r)){let s=t[r],i=s;Array.isArray(s)&&(i=s[1],s=s[0]),n[s]=r,e&&(e[s]=i)}return n}const ye=he;function ve(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function _e(t){return t[Ot]||null}function we(t,e){return t.hasOwnProperty(Mt)?t[Mt]:null}function be(t,e){const n=t[Vt]||null;if(!n&&!0===e)throw new Error(`Type ${_t(t)} does not have '\u0275mod' property.`);return n}function Ce(t){return Array.isArray(t)&&"object"==typeof t[1]}function Se(t){return Array.isArray(t)&&!0===t[1]}function xe(t){return 0!=(8&t.flags)}function Ee(t){return 2==(2&t.flags)}function ke(t){return 1==(1&t.flags)}function Te(t){return null!==t.template}function Ae(t){return 0!=(512&t[2])}let Ie=void 0;function Oe(){return void 0!==Ie?Ie:"undefined"!=typeof document?document:void 0}function Re(t){return!!t.listen}const Ne={createRenderer:(t,e)=>Oe()};function Ve(t){for(;Array.isArray(t);)t=t[0];return(t)}function Pe(t,e){return Ve(e[t+19])}function Me(t,e){return Ve(e[t.index])}function De(t,e){return t.data[e+19]}function je(t,e){return t[e+19]}function Fe(t,e){const n=e[t];return Ce(n)?n:n[0]}function Ue(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Le(t){return 4==(4&t[2])}function He(t){return 128==(128&t[2])}function $e(t,e){return null===t||null==e?null:t[e]}function ze(t){t[18]=0}const qe={lFrame:hn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Be(){return qe.bindingsEnabled}function We(){return qe.lFrame.lView}function Ge(){return qe.lFrame.tView}function Ze(){return qe.lFrame.previousOrParentTNode}function Ke(t,e){qe.lFrame.previousOrParentTNode=t,qe.lFrame.isParent=e}function Qe(){return qe.lFrame.isParent}function Je(){qe.lFrame.isParent=!1}function Ye(){return qe.checkNoChangesMode}function Xe(t){qe.checkNoChangesMode=t}function tn(){const t=qe.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function en(){return qe.lFrame.bindingIndex}function nn(){return qe.lFrame.bindingIndex++}function rn(t){const e=qe.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function sn(t,e){const n=qe.lFrame;n.bindingIndex=n.bindingRootIndex=t,n.currentDirectiveIndex=e}function on(){return qe.lFrame.currentQueryIndex}function an(t){qe.lFrame.currentQueryIndex=t}function ln(t,e){const n=un();qe.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function cn(t,e){const n=un(),r=t[1];qe.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=r,n.contextLView=t,n.bindingIndex=r.bindingStartIndex}function un(){const t=qe.lFrame,e=null===t?null:t.child;return null===e?hn(t):e}function hn(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 dn(){const t=qe.lFrame;return qe.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const pn=dn;function fn(){const t=dn();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 mn(){return qe.lFrame.selectedIndex}function gn(t){qe.lFrame.selectedIndex=t}function yn(){const t=qe.lFrame;return De(t.tView,t.selectedIndex)}function vn(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[o]<0&&(t[18]+=65536),(i>10>16&&(3&t[2])===e&&(t[2]+=1024,i.call(o)):i.call(o)}class xn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function En(t,e,n){const r=Re(t);let s=0;for(;se){o=i-1;break}}}for(;i>16}function Vn(t,e){let n=Nn(t),r=e;for(;n>0;)r=r[15],n--;return r}function Pn(t){return"string"==typeof t?t:null==t?"":""+t}function Mn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Pn(t)}const Dn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(It))();function jn(t){return t instanceof Function?t():t}let Fn=!0;function Un(t){const e=Fn;return Fn=t,e}let Ln=0;function Hn(t,e){const n=zn(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,$n(r.data,t),$n(e,null),$n(r.blueprint,null));const s=qn(t,e),i=t.injectorIndex;if(On(s)){const t=Rn(s),n=Vn(s,e),r=n[1].data;for(let s=0;s<8;s++)e[i+s]=n[t+s]|r[t+s]}return e[i+8]=s,i}function $n(t,e){t.push(0,0,0,0,0,0,0,0,e)}function zn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function qn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],r=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function Bn(t,e,n){!function(t,e,n){let r="string"!=typeof n?n[Dt]:n.charCodeAt(0)||0;null==r&&(r=n[Dt]=Ln++);const s=255&r,i=1<0?255&e:e}(n);if("function"==typeof s){ln(e,t);try{const t=s();if(null!=t||r&ot.Optional)return t;throw new Error(`No provider for ${Mn(n)}!`)}finally{pn()}}else if("number"==typeof s){if(-1===s)return new Xn(t,e);let i=null,o=zn(t,e),a=-1,l=r&ot.Host?e[16][6]:null;for((-1===o||r&ot.SkipSelf)&&(a=-1===o?qn(t,e):e[o+8],Yn(r,!1)?(i=e[1],o=Rn(a),e=Vn(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(Jn(s,o,t.data)){const t=Zn(o,e,n,i,r,l);if(t!==Gn)return t}Yn(r,e[1].data[o+8]===l)&&Jn(s,o,e)?(i=t,o=Rn(a),e=Vn(a,e)):o=-1}}}if(r&ot.Optional&&void 0===s&&(s=null),0==(r&(ot.Self|ot.Host))){const t=e[9],i=Bt(void 0);try{return t?t.get(n,s,r&ot.Optional):Zt(n,s,r&ot.Optional)}finally{Bt(i)}}if(r&ot.Optional)return s;throw new Error(`NodeInjector: NOT_FOUND [${Mn(n)}]`)}const Gn={};function Zn(t,e,n,r,s,i){const o=e[1],a=o.data[t+8],l=Kn(a,o,n,null==r?Ee(a)&&Fn:r!=o&&3===a.type,s&ot.Host&&i===a);return null!==l?Qn(e,o,l,a):Gn}function Kn(t,e,n,r,s){const i=t.providerIndexes,o=e.data,a=65535&i,l=t.directiveStart,c=i>>16,u=s?a+c:t.directiveEnd;for(let h=r?a:a+c;h=l&&t.type===n)return h}if(s){const t=o[l];if(t&&Te(t)&&t.type===n)return l}return null}function Qn(t,e,n,r){let s=t[n];const i=e.data;if(s instanceof xn){const o=s;if(o.resolving)throw new Error(`Circular dep for ${Mn(i[n])}`);const a=Un(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=Bt(o.injectImpl)),ln(t,r);try{s=t[n]=o.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{onChanges:r,onInit:s,doCheck:i}=e;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)),s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,s),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{o.injectImpl&&Bt(l),Un(a),o.resolving=!1,pn()}}return s}function Jn(t,e,n){const r=64&t,s=32&t;let i;return i=128&t?r?s?n[e+7]:n[e+6]:s?n[e+5]:n[e+4]:r?s?n[e+3]:n[e+2]:s?n[e+1]:n[e],!!(i&1<{const e=Object.getPrototypeOf(t.prototype).constructor,n=e[Mt]||function t(e){const n=e;if(xt(e))return()=>{const e=t(St(n));return e?e():null};let r=we(n);if(null===r){const t=pt(n);r=t&&t.factory}return r||null}(e);return null!==n?n:t=>new t})}function er(t){return t.ngDebugContext}function nr(t){return t.ngOriginalError}function rr(t,...e){t.error(...e)}class sr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||rr}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?er(t)?er(t):this._findContext(nr(t)):null}_findOriginalError(t){let e=nr(t);for(;e&&nr(e);)e=nr(e);return e}}class ir{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}function or(t){return t instanceof ir?t.changingThisBreaksApplicationSecurity:t}let ar=!1;function lr(){return ar=!0,!0}class cr{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");let e=this.inertDocument.body;if(null==e){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),e=this.inertDocument.createElement("body"),t.appendChild(e)}e.innerHTML='',!e.querySelector||e.querySelector("svg")?(e.innerHTML='

',this.getInertBodyElement=e.querySelector&&e.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(t){t=""+t+"";try{t=encodeURI(t)}catch(r){return null}const e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);const n=e.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(t){t=""+t+"";try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}getInertBodyElement_InertDocument(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0dr(t.trim())).join(", ")),this.buf.push(" ",e,'="',Tr(o),'"')}var r;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();_r.hasOwnProperty(e)&&!mr.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(Tr(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const Er=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kr=/([^\#-~ |!])/g;function Tr(t){return t.replace(/&/g,"&").replace(Er,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(kr,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}let Ar;function Ir(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}const Or=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 Rr(t){const e=function(){const t=We();return t&&t[12]}();return e?e.sanitize(Or.HTML,t)||"":function(t,e){const n=function(t){return t instanceof ir&&t.getTypeName()||null}(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}(t,"HTML")?or(t):function(t,e){let n=null;try{Ar=Ar||new cr(t);let r=e?String(e):"";n=Ar.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=n.innerHTML,n=Ar.getInertBodyElement(r)}while(r!==i);const o=new xr,a=o.sanitizeChildren(Ir(n)||n);return lr()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=Ir(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}(Oe(),Pn(t))}function Nr(t,e){t.__ngContext__=e}function Vr(t){throw new Error(`Multiple components match node with tagname ${t.tagName}`)}function Pr(){throw new Error("Cannot mix multi providers and regular providers")}function Mr(t,e,n){let r=t.length;for(;;){const s=t.indexOf(e,n);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const n=e.length;if(s+n===r||t.charCodeAt(s+n)<=32)return s}n=s+1}}function Dr(t,e,n){let r=0;for(;ri?"":s[u+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==Mr(e,c,0)||2&r&&c!==t){if(Ur(r))return!1;o=!0}}}}else{if(!o&&!Ur(r)&&!Ur(l))return!1;if(o&&Ur(l))continue;o=!1,r=l|1&r}}return Ur(r)||o}function Ur(t){return 0==(1&t)}function Lr(t,e,n,r){if(null===e)return-1;let s=0;if(r||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&r?s+="."+o:4&r&&(s+=" "+o);else""===s||Ur(o)||(e+=$r(i,s),s=""),r=o,i=i||!Ur(r);n++}return""!==s&&(e+=$r(i,s)),e}const qr={};function Br(t){const e=t[3];return Se(e)?e[3]:e}function Wr(t){Gr(Ge(),We(),mn()+t,Ye())}function Gr(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&_n(e,r,n)}else{const r=t.preOrderHooks;null!==r&&wn(e,r,0,n)}gn(n)}function Zr(t,e){return t<<17|e<<2}function Kr(t){return t>>17&32767}function Qr(t){return 2|t}function Jr(t){return(131068&t)>>2}function Yr(t,e){return-131069&t|e<<2}function Xr(t){return 1|t}function ts(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r>1==-1){for(let t=9;t19&&Gr(t,e,0,Ye()),n(r,s)}finally{gn(i)}}function ls(t,e,n){Be()&&(function(t,e,n,r){const s=n.directiveStart,i=n.directiveEnd;t.firstCreatePass||Hn(n,e),Nr(r,e);const o=n.initialInputs;for(let a=s;aPromise.resolve(null))();function js(t){return t[7]||(t[7]=[])}function Fs(t){return t.cleanup||(t.cleanup=[])}function Us(t,e){const n=t[9],r=n?n.get(sr,null):null;r&&r.handleError(e)}function Ls(t,e,n,r,s){for(let i=0;i0&&(t[n-1][4]=r[4]);const i=ee(t,9+e);Bs(r[1],r,!1,null);const o=i[5];null!==o&&o.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Zs(t,e){if(!(256&e[2])){const n=e[11];Re(n)&&n.destroyNode&&oi(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Qs(t[1],t);for(;e;){let n=null;if(Ce(e))n=e[13];else{const t=e[9];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Ce(e)&&Qs(e[1],e),e=Ks(e,t);null===e&&(e=t),Ce(e)&&Qs(e[1],e),n=e&&e[4]}e=n}}(e)}}function Ks(t,e){let n;return Ce(t)&&(n=t[6])&&2===n.type?$s(n,t):t[3]===e?null:t[3]}function Qs(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=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&&Re(e[11])&&e[11].destroy();const r=e[17];if(null!==r&&Se(e[3])){r!==e[3]&&Ws(r,e);const n=e[5];null!==n&&n.detachView(t)}}}function Js(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?zs(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return Me(e,n).parentNode;if(2&r.flags){const e=t.data,n=e[e[r.index].directiveStart].encapsulation;if(n!==ae.ShadowDom&&n!==ae.Native)return null}return(Me(r,n))}function Ys(t,e,n,r){Re(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function Xs(t,e,n){Re(t)?t.appendChild(e,n):e.appendChild(n)}function ti(t,e,n,r){null!==r?Ys(t,e,n,r):Xs(t,e,n)}function ei(t,e){return Re(t)?t.parentNode(e):e.parentNode}function ni(t,e){if(2===t.type){const n=$s(t,e);return null===n?null:si(n.indexOf(e,9)-9,n)}return 4===t.type||5===t.type?Me(t,e):null}function ri(t,e,n,r){const s=Js(t,r,e);if(null!=s){const t=e[11],i=ni(r.parent||e[6],e);if(Array.isArray(n))for(let e=0;e-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Zs(this._lView[1],this._lView)}onDestroy(t){var e,n,r;e=this._lView[1],r=t,js(n=this._lView).push(r),e.firstCreatePass&&Fs(e).push(n[7].length-1,null)}markForCheck(){Ns(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Vs(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Xe(!0);try{Vs(t,e,n)}finally{Xe(!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,oi(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 hi extends ui{constructor(t){super(t),this._view=t}detectChanges(){Ps(this._view)}checkNoChanges(){!function(t){Xe(!0);try{Ps(t)}finally{Xe(!1)}}(this._view)}get context(){return null}}let di,pi,fi;function mi(t,e,n){return di||(di=class extends t{}),new di(Me(e,n))}function gi(t,e,n,r){return pi||(pi=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=ns(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)),ss(e,n,t);const s=new ui(n);return s._tViewNode=n[6],s}}),0===n.type?new pi(r,n,mi(e,n,r)):null}function yi(t,e,n,r){let s;fi||(fi=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return mi(e,this._hostTNode,this._hostView)}get injector(){return new Xn(this._hostTNode,this._hostView)}get parentInjector(){const t=qn(this._hostTNode,this._hostView),e=Vn(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=Nn(t),s=e,i=e[6];for(;r>1;)s=s[15],i=s[6],r--;return i}(t,this._hostView,this._hostTNode);return On(t)&&null!=n?new Xn(n,e):new Xn(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,s){const i=n||this.parentInjector;if(!s&&null==t.ngModule&&i){const t=i.get(Jt,null);t&&(s=t)}const o=t.create(i,r,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,r=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Se(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new fi(e,e[6],e[3]);r.detach(r.indexOf(t))}}const s=this._adjustIndex(e);return function(t,e,n,r){const s=9+r,i=n.length;r>0&&(n[s-1][4]=e),r{class t{}return t.__NG_ELEMENT_ID__=()=>wi(),t})();const wi=vi,bi=new jt("Set Injector scope."),Ci={},Si={},xi=[];let Ei=void 0;function ki(){return void 0===Ei&&(Ei=new Qt),Ei}function Ti(t,e=null,n=null,r){return new Ai(t,n,e||ki(),r)}class Ai{constructor(t,e,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&Xt(e,n=>this.processProvider(n,t,e)),Xt([t],t=>this.processInjectorType(t,[],s)),this.records.set(Ft,Ri(void 0,this));const i=this.records.get(bi);this.scope=null!=i?i.value:null,this.source=r||("object"==typeof t?null:_t(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Ut,n=ot.Default){this.assertNotDestroyed();const r=qt(this);try{if(!(n&ot.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof jt)&&ht(t);e=n&&this.injectableDefInScope(n)?Ri(Ii(t),Ci):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&ot.Self?ki():this.parent).get(t,e=n&ot.Optional&&e===Ut?null:e)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(_t(t)),r)throw i;return function(t,e,n,r){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=_t(e);if(Array.isArray(e))s=e.map(_t).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):_t(r)))}s=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${t.replace(Lt,"\n ")}`}("\n"+t.message,s,n,r),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(i,t,"R3InjectorError",this.source)}throw i}finally{qt(r)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(_t(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=St(t)))return!1;let r=pt(t);const s=null==r&&t.ngModule||void 0,i=void 0===s?t:s,o=-1!==n.indexOf(i);if(void 0!==s&&(r=pt(s)),null==r)return!1;if(null!=r.imports&&!o){let t;n.push(i);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;ethis.processProvider(t,n,r||xi))}}this.injectorDefTypes.add(i),this.records.set(i,Ri(r.factory,Ci));const a=r.providers;if(null!=a&&!o){const e=t;Xt(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let r=Vi(t=St(t))?t:St(t&&t.provide);const s=function(t,e,n){return Ni(t)?Ri(void 0,t.useValue):Ri(Oi(t,e,n),Ci)}(t,e,n);if(Vi(t)||!0!==t.multi){const t=this.records.get(r);t&&void 0!==t.multi&&Pr()}else{let e=this.records.get(r);e?void 0===e.multi&&Pr():(e=Ri(void 0,Ci,!0),e.factory=()=>Kt(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,s)}hydrate(t,e){var n;return e.value===Si?function(t){throw new Error(`Cannot instantiate cyclic dependency! ${t}`)}(_t(t)):e.value===Ci&&(e.value=Si,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 Ii(t){const e=ht(t),n=null!==e?e.factory:we(t);if(null!==n)return n;const r=pt(t);if(null!==r)return r.factory;if(t instanceof jt)throw new Error(`Token ${_t(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=ne(e,"?");throw new Error(`Can't resolve all parameters for ${_t(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[ft]||t[yt]||t[gt]&&t[gt]());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 Oi(t,e,n){let r=void 0;if(Vi(t)){const e=St(t);return we(e)||Ii(e)}if(Ni(t))r=()=>St(t.useValue);else if((s=t)&&s.useFactory)r=()=>t.useFactory(...Kt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>Gt(St(t.useExisting));else{const s=St(t&&(t.useClass||t.provide));if(s||function(t,e,n){let r="";throw t&&e&&(r=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${_t(t)}'`+r)}(e,n,t),!function(t){return!!t.deps}(t))return we(s)||Ii(s);r=()=>new s(...Kt(t.deps))}var s;return r}function Ri(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Ni(t){return null!==t&&"object"==typeof t&&Ht in t}function Vi(t){return"function"==typeof t}const Pi=function(t,e,n){return function(t,e=null,n=null,r){const s=Ti(t,e,n,r);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let Mi=(()=>{class t{static create(t,e){return Array.isArray(t)?Pi(t,e,""):Pi(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Ut,t.NULL=new Qt,t.\u0275prov=ct({token:t,providedIn:"any",factory:()=>Gt(Ft)}),t.__NG_ELEMENT_ID__=-1,t})();const Di=new jt("AnalyzeForEntryComponents");let ji=new Map;const Fi=new Set;function Ui(t){return"string"==typeof t?t:t.text()}function Li(t,e){let n=t.styles,r=t.classes,s=0;for(let i=0;ia(Ve(t[r.index])).target:r.index;if(Re(n)){let o=null;if(!a&&l&&(o=function(t,e,n,r){const s=t.cleanup;if(null!=s)for(let i=0;in?t[n]:null}"string"==typeof t&&(i+=2)}return null}(t,e,s,r.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=uo(r,e,i,!1);const t=n.listen(p.name||f,s,i);u.push(i,t),c&&c.push(s,g,m,m+1)}}else i=uo(r,e,i,!0),f.addEventListener(s,i,o),u.push(i),c&&c.push(s,g,m,o)}const d=r.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,qe.lFrame.contextLView))[8]}(t)}function po(t,e,n){return fo(t,"",e,"",n),po}function fo(t,e,n,r,s){const i=We(),o=Ji(i,e,n,r);return o!==qr&&fs(Ge(),yn(),i,t,o,i[11],s,!1),fo}const mo=[];function go(t,e,n,r,s){const i=t[n+1],o=null===e;let a=r?Kr(i):Jr(i),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];yo(t[a],e)&&(l=!0,t[a+1]=r?Xr(n):Qr(n)),a=r?Kr(n):Jr(n)}l&&(t[n+1]=r?Qr(i):Xr(i))}function yo(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ie(t,e)>=0}const vo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function _o(t){return t.substring(vo.key,vo.keyEnd)}function wo(t,e){const n=vo.textEnd;return n===e?-1:(e=vo.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,vo.key=e,n),bo(t,e,n))}function bo(t,e,n){for(;e=0;n=wo(e,n))re(t,_o(e),!0)}function ko(t,e,n,r){const s=We(),i=Ge(),o=rn(2);if(i.firstUpdatePass&&Ao(i,t,o,r),e!==qr&&Zi(s,o,e)){let a;null==n&&(a=function(){const t=qe.lFrame;return null===t?null:t.currentSanitizer}())&&(n=a),Ro(i,i.data[mn()+19],s,s[11],t,s[o+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=_t(or(t)))),t}(e,n),r,o)}}function To(t,e){return e>=t.expandoStartIndex}function Ao(t,e,n,r){const s=t.data;if(null===s[n+1]){const i=s[mn()+19],o=To(t,n);Po(i,r)&&null===e&&!o&&(e=!1),e=function(t,e,n,r){const s=function(t){const e=qe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let i=r?e.residualClasses:e.residualStyles;if(null===s)0===(r?e.classBindings:e.styleBindings)&&(n=Oo(n=Io(null,t,e,n,r),e.attrs,r),i=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=Io(s,t,e,n,r),null===i){let n=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==Jr(r))return t[Kr(r)]}(t,e,r);void 0!==n&&Array.isArray(n)&&(n=Io(null,t,e,n[1],r),n=Oo(n,e.attrs,r),function(t,e,n,r){t[Kr(n?e.classBindings:e.styleBindings)]=r}(t,e,r,n))}else i=function(t,e,n){let r=void 0;const s=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0)&&(u=!0)}else c=n;if(s)if(0!==l){const e=Kr(t[a+1]);t[r+1]=Zr(e,a),0!==e&&(t[e+1]=Yr(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=Zr(a,0),0!==a&&(t[a+1]=Yr(t[a+1],r)),a=r;else t[r+1]=Zr(l,0),0===a?a=r:t[l+1]=Yr(t[l+1],r),l=r;u&&(t[r+1]=Qr(t[r+1])),go(t,c,r,!0),go(t,c,r,!1),function(t,e,n,r,s){const i=s?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof e&&ie(i,e)>=0&&(n[r+1]=Xr(n[r+1]))}(e,c,t,r,i),o=Zr(a,l),i?e.classBindings=o:e.styleBindings=o}(s,i,e,n,o,r)}}function Io(t,e,n,r,s){let i=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],i=Array.isArray(e),l=i?e[1]:e,c=null===l;let u=n[s+1];u===qr&&(u=c?mo:void 0);let h=c?se(u,r):l===r?u:void 0;if(i&&!Vo(h)&&(h=se(e,r)),Vo(h)&&(a=h,o))return a;const d=t[s+1];s=o?Kr(d):Jr(d)}if(null!==e){let t=i?e.residualClasses:e.residualStyles;null!=t&&(a=se(t,r))}return a}function Vo(t){return void 0!==t}function Po(t,e){return 0!=(t.flags&(e?16:32))}function Mo(t,e=""){const n=We(),r=Ge(),s=t+19,i=r.firstCreatePass?rs(r,n[6],t,3,null,null):r.data[s],o=n[s]=function(t,e){return Re(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);ri(r,n,o,i),Ke(i,!1)}function Do(t){return jo("",t,""),Do}function jo(t,e,n){const r=We(),s=Ji(r,t,e,n);return s!==qr&&Hs(r,mn(),s),jo}function Fo(t,e,n,r,s){const i=We(),o=function(t,e,n,r,s,i){const o=Ki(t,en(),n,s);return rn(2),o?e+Pn(n)+r+Pn(s)+i:qr}(i,t,e,n,r,s);return o!==qr&&Hs(i,mn(),o),Fo}function Uo(t,e){const n=Ue(t)[1],r=n.data.length-1;vn(n,{directiveStart:r,directiveEnd:r+1})}function Lo(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const r=[t];for(;e;){let s=void 0;if(Te(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){r.push(s);const e=t;e.inputs=Ho(t.inputs),e.declaredInputs=Ho(t.declaredInputs),e.outputs=Ho(t.outputs);const n=s.hostBindings;n&&qo(t,n);const i=s.viewQuery,o=s.contentQueries;if(i&&$o(t,i),o&&zo(t,o),lt(t.inputs,s.inputs),lt(t.declaredInputs,s.declaredInputs),lt(t.outputs,s.outputs),Te(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}e.afterContentChecked=e.afterContentChecked||s.afterContentChecked,e.afterContentInit=t.afterContentInit||s.afterContentInit,e.afterViewChecked=t.afterViewChecked||s.afterViewChecked,e.afterViewInit=t.afterViewInit||s.afterViewInit,e.doCheck=t.doCheck||s.doCheck,e.onDestroy=t.onDestroy||s.onDestroy,e.onInit=t.onInit||s.onInit}const e=s.features;if(e)for(let r=0;r=0;r--){const s=t[r];s.hostVars=e+=s.hostVars,s.hostAttrs=An(s.hostAttrs,n=An(n,s.hostAttrs))}}(r)}function Ho(t){return t===le?{}:t===ce?[]:t}function $o(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function zo(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,s)=>{e(t,r,s),n(t,r,s)}:e}function qo(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}class Bo{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Wo(t){t.type.prototype.ngOnChanges&&(t.setInput=Go,t.onChanges=function(){const t=Zo(this),e=t&&t.current;if(e){const n=t.previous;if(n===le)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}})}function Go(t,e,n,r){const s=Zo(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:le,current:null}),i=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];i[a]=new Bo(l&&l.currentValue,e,o===le),t[r]=e}function Zo(t){return t.__ngSimpleChanges__||null}function Ko(t,e,n,r,s){if(t=St(t),Array.isArray(t))for(let i=0;i>16;if(Vi(t)||!t.multi){const r=new xn(l,s,Xi),p=Yo(a,e,s?u:u+d,h);-1===p?(Bn(Hn(c,o),i,a),Qo(i,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=65536),n.push(r),o.push(r)):(n[p]=r,o[p]=r)}else{const p=Yo(a,e,u+d,h),f=Yo(a,e,u,u+d),m=p>=0&&n[p],g=f>=0&&n[f];if(s&&!g||!s&&!m){Bn(Hn(c,o),i,a);const u=function(t,e,n,r,s){const i=new xn(t,n,Xi);return i.multi=[],i.index=e,i.componentProviders=0,Jo(i,s,r&&!n),i}(s?ta:Xo,n.length,s,r,l);!s&&g&&(n[f].providerFactory=u),Qo(i,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=65536),n.push(u),o.push(u)}else Qo(i,t,p>-1?p:f),Jo(n[s?f:p],l,!s&&r);!s&&r&&g&&n[f].componentProviders++}}}function Qo(t,e,n){if(Vi(e)||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;r&&(t.destroyHooks||(t.destroyHooks=[])).push(n,r)}}function Jo(t,e,n){t.multi.push(e),n&&t.componentProviders++}function Yo(t,e,n,r){for(let s=n;s{n.providersResolver=(n,r)=>function(t,e,n){const r=Ge();if(r.firstCreatePass){const s=Te(t);Ko(n,r.data,r.blueprint,s,!0),Ko(e,r.data,r.blueprint,s,!1)}}(n,r?r(t):t,e)}}Wo.ngInherit=!0;class ra{}class sa{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${_t(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ia=(()=>{class t{}return t.NULL=new sa,t})(),oa=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>aa(t),t})();const aa=function(t){return mi(t,Ze(),We())};class la{}const ca=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}();let ua=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ha(),t})();const ha=function(){const t=We(),e=Fe(Ze().index,t);return function(t){const e=t[11];if(Re(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Ce(e)?e:t)};let da=(()=>{class t{}return t.\u0275prov=ct({token:t,providedIn:"root",factory:()=>null}),t})();class pa{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const fa=new pa("9.0.7");class ma{constructor(){}supports(t){return Bi(t)}create(t){return new ya(t)}}const ga=(t,e)=>e;class ya{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||ga}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,s=null;for(;e||n;){const i=!n||e&&e.currentIndex{r=this._trackByFn(e,t),null!==s&&zi(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,t,r,e)),zi(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,r,e),i=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(zi(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(zi(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):t=this._addAfter(new va(e,n),s,r),t}_verifyReinsertion(t,e,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new wa),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?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new wa),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 va{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 _a{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)&&zi(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 wa{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new _a,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 ba(t,e,n){const r=t.previousIndex;if(null===r)return r;let s=0;return n&&r{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new xa(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){zi(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 xa{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 Ea=(()=>{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 it,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 ma])}),t})(),ka=(()=>{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 it,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 Ca])}),t})();const Ta=[new Ca],Aa=new Ea([new ma]),Ia=new ka(Ta);let Oa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ra(t,oa),t})();const Ra=function(t,e){return gi(t,e,Ze(),We())};let Na=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Va(t,oa),t})();const Va=function(t,e){return yi(t,e,Ze(),We())},Pa={};class Ma extends ia{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=_e(t);return new Fa(e,this.ngModule)}}function Da(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const ja=new jt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Dn});class Fa extends ra{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(zr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Da(this.componentDef.inputs)}get outputs(){return Da(this.componentDef.outputs)}create(t,e,n,r){const s=(r=r||this.ngModule)?function(t,e){return{get:(n,r,s)=>{const i=t.get(n,Pa,s);return i!==Pa||r===Pa?i:e.get(n,r,s)}}}(t,r.injector):t,i=s.get(la,Ne),o=s.get(da,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Re(t))return t.selectRootElement(e,n===ae.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):es(l,i.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),d={components:[],scheduler:Dn,clean:Ds,playerHandler:null,flags:0},p=hs(0,-1,null,1,0,null,null,null,null,null),f=ns(null,p,d,u,null,null,i,a,o,s);let m,g;cn(f,null);try{const t=function(t,e,n,r,s,i){const o=n[1];n[19]=t;const a=rs(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Li(a,l),null!==t&&(En(s,t,l),null!==a.classes&&ci(s,t,a.classes),null!==a.styles&&li(s,t,a.styles)));const c=r.createRenderer(t,e),u=ns(n,us(e),null,e.onPush?64:16,n[19],a,r,c,void 0);return o.firstCreatePass&&(Bn(Hn(a,n),o,e.type),ws(o,a),Cs(a,n.length,1)),Rs(n,u),n[19]=u}(c,this.componentDef,f,i,a);if(c)if(n)En(a,c,["ng-version",fa.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,s=2;for(;r0&&ci(a,c,e.join(" "))}g=De(f[1],0),e&&(g.projection=e.map(t=>Array.from(t))),m=function(t,e,n,r,s){const i=n[1],o=function(t,e,n){const r=Ze();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),_s(t,r,1),Ss(t,e,n));const s=Qn(e,t,e.length-1,r);Nr(s,e);const i=Me(r,e);return i&&Nr(i,e),s}(i,n,e);r.components.push(o),t[8]=o,s&&s.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=Ze();if(i.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){gn(a.index-19);const t=n[1];gs(t,e),ys(t,n,e.hostVars),vs(e,o)}return o}(t,this.componentDef,f,d,[Uo]),ss(p,f,null)}finally{fn()}const y=new Ua(this.componentType,m,mi(oa,g,f),f,g);return n&&!h||(y.hostView._tViewNode.child=g),y}}class Ua extends class{}{constructor(t,e,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new hi(r),this.hostView._tViewNode=function(t,e,n,r){let s=t.node;return null==s&&(t.node=s=ds(0,null,2,-1,null,null)),r[6]=s}(r[1],0,0,r),this.componentType=t}get injector(){return new Xn(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 La=void 0;var Ha=["en",[["a","p"],["AM","PM"],La],[["AM","PM"],La,La],[["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"]],La,[["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"]],La,[["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}",La,"{1} 'at' {0}",La],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let $a={};function za(t){return t in $a||($a[t]=It.ng&&It.ng.common&&It.ng.common.locales&&It.ng.common.locales[t]),$a[t]}const qa=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,PluralCase:19,ExtraData:20};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.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}();let Ba="en-US";function Wa(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&&(Ba=t.toLowerCase().replace(/_/g,"-"))}const Ga=new Map;class Za extends Jt{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ma(this);const n=be(t),r=t[Pt]||null;r&&Wa(r),this._bootstrapComponents=jn(n.bootstrap),this._r3Injector=Ti(t,e,[{provide:Jt,useValue:this},{provide:ia,useValue:this.componentFactoryResolver}],_t(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Mi.THROW_IF_NOT_FOUND,n=ot.Default){return t===Mi||t===Jt||t===Ft?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 Ka extends Yt{constructor(t){super(),this.moduleType=t,null!==be(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} - ${_t(e)} vs ${_t(e.name)}`)})(t,Ga.get(t),e),Ga.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new Za(this.moduleType,t)}}function Qa(t,e){const n=t[e];return n===qr?void 0:n}function Ja(t,e){const n=Ge();let r;const s=t+19;n.firstCreatePass?(r=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,r.onDestroy)):r=n.data[s];const i=r.factory||(r.factory=we(r.type)),o=Bt(Xi),a=i();return Bt(o),function(t,e,n,r){const s=n+19;s>=t.data.length&&(t.data[s]=null,t.blueprint[s]=null),e[s]=r}(n,We(),t,a),a}function Ya(t,e,n){const r=We(),s=je(r,t);return tl(r,Xa(r,t)?function(t,e,n,r,s,i){const o=e+n;return Zi(t,o,s)?Gi(t,o+1,i?r.call(i,s):r(s)):Qa(t,o+1)}(r,tn(),e,s.transform,n,s):s.transform(n))}function Xa(t,e){return t[1].data[e+19].pure}function tl(t,e){return qi.isWrapped(e)&&(e=qi.unwrap(e),t[en()]=qr),e}class el extends E{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,s=t=>null,i=()=>null;t&&"object"==typeof t?(r=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(i=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(r,s,i);return t instanceof h&&t.add(o),o}}function nl(){return this._results[$i()]()}class rl{constructor(){this.dirty=!0,this._results=[],this.changes=new el,this.length=0;const t=$i(),e=rl.prototype;e[t]||(e[t]=nl)}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;r0)s.push(a[e/2]);else{const i=o[e+1],a=n[-r];for(let e=9;e{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{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Gt(gl,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const vl=new jt("AppId"),_l={provide:vl,useFactory:function(){return`${wl()}${wl()}${wl()}`},deps:[]};function wl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const bl=new jt("Platform Initializer"),Cl=new jt("Platform ID"),Sl=new jt("appBootstrapListener");let xl=(()=>{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 El=new jt("LocaleId"),kl=new jt("DefaultCurrencyCode");class Tl{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Al=function(t){return new Ka(t)},Il=Al,Ol=function(t){return Promise.resolve(Al(t))},Rl=function(t){const e=Al(t),n=jn(be(t).declarations).reduce((t,e)=>{const n=_e(e);return n&&t.push(new Fa(n)),t},[]);return new Tl(e,n)},Nl=Rl,Vl=function(t){return Promise.resolve(Rl(t))};let Pl=(()=>{class t{constructor(){this.compileModuleSync=Il,this.compileModuleAsync=Ol,this.compileModuleAndAllComponentsSync=Nl,this.compileModuleAndAllComponentsAsync=Vl}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Ml=new jt("compilerOptions"),Dl=(()=>Promise.resolve(0))();function jl(t){"undefined"==typeof Zone?Dl.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Fl{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new el(!1),this.onMicrotaskEmpty=new el(!1),this.onStable=new el(!1),this.onError=new el(!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=It.requestAnimationFrame,e=It.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(It,()=>{t.lastRequestAnimationFrameId=-1,$l(t),Hl(t)}),$l(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,r,s,i,o,a)=>{try{return zl(t),n.invokeTask(s,i,o,a)}finally{e&&"eventTask"===i.type&&e(),ql(t)}},onInvoke:(e,n,r,s,i,o,a)=>{try{return zl(t),e.invoke(r,s,i,o,a)}finally{ql(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,$l(t),Hl(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Fl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Fl.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,t,Ll,Ul,Ul);try{return s.runTask(i,e,n)}finally{s.cancelTask(i)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Ul(){}const Ll={};function Hl(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function $l(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function zl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function ql(t){t._nesting--,Hl(t)}class Bl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new el,this.onMicrotaskEmpty=new el,this.onStable=new el,this.onError=new el}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 Wl=(()=>{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:()=>{Fl.assertNotInAngularZone(),jl(()=>{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())jl(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Gt(Fl))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Gl=(()=>{class t{constructor(){this._applications=new Map,Ql.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 Ql.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class Zl{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Kl,Ql=new Zl,Jl=function(t,e,n){const r=new Ka(n);if(0===ji.size)return Promise.resolve(r);const s=function(t){const e=[];return t.forEach(t=>t&&e.push(...t)),e}(t.get(Ml,[]).concat(e).map(t=>t.providers));if(0===s.length)return Promise.resolve(r);const i=function(){const t=It.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}(),o=Mi.create({providers:s}).get(i.ResourceLoader);return function(t){const e=[],n=new Map;function r(t){let e=n.get(t);if(!e){const r=(t=>Promise.resolve(o.get(t)))(t);n.set(t,e=r.then(Ui))}return e}return ji.forEach((t,n)=>{const s=[];t.templateUrl&&s.push(r(t.templateUrl).then(e=>{t.template=e}));const i=t.styleUrls,o=t.styles||(t.styles=[]),a=t.styles.length;i&&i.forEach((e,n)=>{o.push(""),s.push(r(e).then(r=>{o[a+n]=r,i.splice(i.indexOf(e),1),0==i.length&&(t.styleUrls=void 0)}))});const l=Promise.all(s).then(()=>function(t){Fi.delete(t)}(n));e.push(l)}),ji=new Map,Promise.all(e).then(()=>{})}().then(()=>r)};const Yl=new jt("AllowMultipleToken");class Xl{constructor(t,e){this.name=t,this.token=e}}function tc(t,e,n=[]){const r=`Platform: ${e}`,s=new jt(r);return(e=[])=>{let i=ec();if(!i||i.injector.get(Yl,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:bi,useValue:"platform"});!function(t){if(Kl&&!Kl.destroyed&&!Kl.injector.get(Yl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Kl=t.get(nc);const e=t.get(bl,null);e&&e.forEach(t=>t())}(Mi.create({providers:t,name:r}))}return function(t){const e=ec();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function ec(){return Kl&&!Kl.destroyed?Kl:null}let nc=(()=>{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 Bl:("zone.js"===t?void 0:t)||new Fl({enableLongStackTrace:lr(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),r=[{provide:Fl,useValue:n}];return n.run(()=>{const e=Mi.create({providers:r,parent:this.injector,name:t.moduleType.name}),s=t.create(e),i=s.injector.get(sr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>ic(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{i.handleError(t)}})),function(t,e,n){try{const r=n();return oo(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(i,n,()=>{const t=s.injector.get(yl);return t.runInitializers(),t.donePromise.then(()=>(Wa(s.injector.get(El,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=rc({},e);return Jl(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(sc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${_t(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Gt(Mi))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function rc(t,e){return Array.isArray(e)?e.reduce(rc,t):Object.assign(Object.assign({},t),e)}let sc=(()=>{class t{constructor(t,e,n,r,s,i){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=lr(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new w(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new w(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Fl.assertNotInAngularZone(),jl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Fl.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 T(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 w?t[0]:B(e)(W(t,n))}(o,a.pipe(t=>{return G()((e=X,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,J);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 ra?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(Jt),s=n.create(Mi.NULL,[],e||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const i=s.injector.get(Wl,null);return i&&s.injector.get(Gl).registerApplication(s.location.nativeElement,i),this._loadComponent(s),lr()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;ic(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Sl,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),ic(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Gt(Fl),Gt(xl),Gt(Mi),Gt(sr),Gt(ia),Gt(yl))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function ic(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class oc{}class ac{}const lc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let cc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||lc}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=>uc(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+s]).then(t=>uc(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(Gt(Pl),Gt(ac,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function uc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const hc=tc(null,"core",[{provide:Cl,useValue:"unknown"},{provide:nc,deps:[Mi]},{provide:Gl,deps:[]},{provide:xl,deps:[]}]),dc=[{provide:sc,useClass:sc,deps:[Fl,xl,Mi,sr,ia,yl]},{provide:ja,deps:[Fl],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:yl,useClass:yl,deps:[[new rt,gl]]},{provide:Pl,useClass:Pl,deps:[]},_l,{provide:Ea,useFactory:function(){return Aa},deps:[]},{provide:ka,useFactory:function(){return Ia},deps:[]},{provide:El,useFactory:function(t){return Wa(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new nt(El),new rt,new it]]},{provide:kl,useValue:"USD"}];let pc=(()=>{class t{constructor(t){}}return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Gt(sc))},providers:dc}),t})();const fc="https://ciz77jef06.execute-api.us-east-2.amazonaws.com/uat";let mc=null;function gc(){return mc}const yc=new jt("DocumentToken");let vc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:_c,token:t,providedIn:"platform"}),t})();function _c(){return Gt(bc)}const wc=new jt("Location Initialized");let bc=(()=>{class t extends vc{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=gc().getLocation(),this._history=gc().getHistory()}getBaseHrefFromDOM(){return gc().getBaseHref(this._doc)}onPopState(t){gc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){gc().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){Cc()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){Cc()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Gt(yc))},t.\u0275prov=ct({factory:Sc,token:t,providedIn:"platform"}),t})();function Cc(){return!!window.history.pushState}function Sc(){return new bc(Gt(yc))}function xc(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 Ec(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 kc(t){return t&&"?"!==t[0]?"?"+t:t}let Tc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:Ac,token:t,providedIn:"root"}),t})();function Ac(t){const e=Gt(yc).location;return new Oc(Gt(vc),e&&e.origin||"")}const Ic=new jt("appBaseHref");let Oc=(()=>{class t extends Tc{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 xc(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+kc(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const s=this.prepareExternalUrl(n+kc(r));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){const s=this.prepareExternalUrl(n+kc(r));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Gt(vc),Gt(Ic,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Rc=(()=>{class t extends Tc{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=xc(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let s=this.prepareExternalUrl(n+kc(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){let s=this.prepareExternalUrl(n+kc(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Gt(vc),Gt(Ic,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Nc=(()=>{class t{constructor(t,e){this._subject=new el,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Ec(Pc(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+kc(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Pc(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+kc(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+kc(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)(Gt(Tc),Gt(vc))},t.normalizeQueryParams=kc,t.joinWithSlash=xc,t.stripTrailingSlash=Ec,t.\u0275prov=ct({factory:Vc,token:t,providedIn:"root"}),t})();function Vc(){return new Nc(Gt(Tc),Gt(vc))}function Pc(t){return t.replace(/\/index.html$/,"")}const Mc=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 Dc{}let jc=(()=>{class t extends Dc{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=za(e);if(n)return n;const r=e.split("-")[0];if(n=za(r),n)return n;if("en"===r)return Ha;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[qa.PluralCase]}(e||this.locale)(t)){case Mc.Zero:return"zero";case Mc.One:return"one";case Mc.Two:return"two";case Mc.Few:return"few";case Mc.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Gt(El))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Fc(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}class Uc{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 Lc=(()=>{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){lr()&&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 Uc(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new Hc(t,n);e.push(s)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const i=new Hc(t,s);e.push(i)}});for(let n=0;n{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)(Xi(Na),Xi(Oa),Xi(Ea))},t.\u0275dir=ye({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Hc{constructor(t,e){this.record=t,this.view=e}}let $c=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new zc,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){qc("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){qc("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)(Xi(Na),Xi(Oa))},t.\u0275dir=ye({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class zc{constructor(){this.$implicit=null,this.ngIf=null}}function qc(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${_t(e)}'.`)}let Bc=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[{provide:Dc,useClass:jc}]}),t})();function Wc(t){return"browser"===t}let Gc=(()=>{class t{}return t.\u0275prov=ct({token:t,providedIn:"root",factory:()=>new Zc(Gt(yc),window,Gt(sr))}),t})();class Zc{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector(`#${t}`);if(e)return void this.scrollToElement(e);const n=this.document.querySelector(`[name='${t}']`);if(n)return void this.scrollToElement(n)}catch(e){this.errorHandler.handleError(e)}}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}class Kc extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Kc,mc||(mc=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=Jc||(Jc=document.querySelector("base"),Jc)?Jc.getAttribute("href"):null;return null==e?null:(n=e,Qc||(Qc=document.createElement("a")),Qc.setAttribute("href",n),"/"===Qc.pathname.charAt(0)?Qc.pathname:"/"+Qc.pathname);var n}resetBaseElement(){Jc=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 Fc(document.cookie,t)}}let Qc,Jc=null;const Yc=new jt("TRANSITION_ID"),Xc=[{provide:gl,useFactory:function(t,e,n){return()=>{n.get(yl).donePromise.then(()=>{const n=gc();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[Yc,yc,Mi],multi:!0}];class tu{static init(){var t;t=new tu,Ql=t}addToWindow(t){It.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},It.getAllAngularTestabilities=()=>t.getAllTestabilities(),It.getAllAngularRootElements=()=>t.getAllRootElements(),It.frameworkStabilizers||(It.frameworkStabilizers=[]),It.frameworkStabilizers.push(t=>{const e=It.getAllAngularTestabilities();let n=e.length,r=!1;const s=function(e){r=r||e,n--,0==n&&t(r)};e.forEach((function(t){t.whenStable(s)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?gc().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const eu=new jt("EventManagerPlugins");let nu=(()=>{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{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})(),iu=(()=>{class t extends su{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=>gc().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Gt(yc))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const ou={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/"},au=/%COMP%/g;function lu(t,e,n){for(let r=0;r{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let uu=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new hu(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case ae.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new du(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case ae.Native:case ae.ShadowDom:return new pu(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=lu(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Gt(nu),Gt(iu),Gt(vl))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class hu{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(ou[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const s=ou[r];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=ou[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&ca.DashCase?t.style.setProperty(e,n,r&ca.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&ca.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,cu(n)):this.eventManager.addEventListener(t,e,cu(n))}}class du extends hu{constructor(t,e,n,r){super(t),this.component=n;const s=lu(r+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(au,r+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(au,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 pu extends hu{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===ae.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=lu(r.id,r.styles,[]);for(let i=0;i{class t extends ru{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(Gt(yc))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const mu=["alt","control","meta","shift"],gu={"\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"},yu={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"},vu={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let _u=(()=>{class t extends ru{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const s=t.parseEventName(n),i=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>gc().onAndCancel(e,s.domEventName,i))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=t._normalizeKey(n.pop());let i="";if(mu.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=r,o.fullKey=i,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&yu.hasOwnProperty(e)&&(e=yu[e]))}return gu[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),mu.forEach(r=>{r!=n&&(0,vu[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return s=>{t.getEventFullKey(s)===e&&r.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Gt(yc))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const wu=tc(hc,"browser",[{provide:Cl,useValue:"browser"},{provide:bl,useValue:function(){Kc.makeCurrent(),tu.init()},multi:!0},{provide:yc,useFactory:function(){return function(t){Ie=t}(document),document},deps:[]}]),bu=[[],{provide:bi,useValue:"root"},{provide:sr,useFactory:function(){return new sr},deps:[]},{provide:eu,useClass:fu,multi:!0,deps:[yc,Fl,Cl]},{provide:eu,useClass:_u,multi:!0,deps:[yc]},[],{provide:uu,useClass:uu,deps:[nu,iu,vl]},{provide:la,useExisting:uu},{provide:su,useExisting:iu},{provide:iu,useClass:iu,deps:[yc]},{provide:Wl,useClass:Wl,deps:[Fl]},{provide:nu,useClass:nu,deps:[eu,Fl]},[]];let Cu=(()=>{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:vl,useValue:e.appId},{provide:Yc,useExisting:vl},Xc]}}}return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Gt(t,12))},providers:bu,imports:[Bc,pc]}),t})();function Su(...t){if(1===t.length){const e=t[0];if(l(e))return xu(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return xu(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return xu(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(j(t=>e(...t)))}return xu(t,null)}function xu(t,e){return new w(n=>{const r=t.length;if(0===r)return void n.complete();const s=new Array(r);let i=0,o=0;for(let a=0;a{c||(c=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{i++,i!==r&&c||(o===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}"undefined"!=typeof window&&window;const Eu=new jt("NgValueAccessor"),ku={provide:Eu,useExisting:Ct(()=>Tu),multi:!0};let Tu=(()=>{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)(Xi(ua),Xi(oa))},t.\u0275dir=ye({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&lo("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[na([ku])]}),t})();const Au={provide:Eu,useExisting:Ct(()=>Ou),multi:!0},Iu=new jt("CompositionEventMode");let Ou=(()=>{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=gc()?gc().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)(Xi(ua),Xi(oa),Xi(Iu,8))},t.\u0275dir=ye({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&&lo("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:[na([Au])]}),t})(),Ru=(()=>{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=ye({type:t}),t})(),Nu=(()=>{class t extends Ru{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return Vu(e||t)},t.\u0275dir=ye({type:t,features:[Lo]}),t})();const Vu=tr(Nu);function Pu(){throw new Error("unimplemented")}class Mu extends Ru{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return Pu()}get asyncValidator(){return Pu()}}class Du{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 ju=(()=>{class t extends Du{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Xi(Mu,2))},t.\u0275dir=ye({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&So("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:[Lo]}),t})(),Fu=(()=>{class t extends Du{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Xi(Nu,2))},t.\u0275dir=ye({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&So("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:[Lo]}),t})();function Uu(t){return null==t||0===t.length}const Lu=new jt("NgValidators"),Hu=new jt("NgAsyncValidators"),$u=/^(?=.{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 zu{static min(t){return e=>{if(Uu(e.value)||Uu(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(Uu(e.value)||Uu(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return Uu(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return Uu(t.value)?null:$u.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(Uu(e.value))return null;const n=e.value?e.value.length:0;return n{const n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}}static pattern(t){if(!t)return zu.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(Uu(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(qu);return 0==e.length?null:function(t){return Wu(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(qu);return 0==e.length?null:function(t){return Su(function(t,e){return e.map(e=>e(t))}(t,e).map(Bu)).pipe(j(Wu))}}}function qu(t){return null!=t}function Bu(t){const e=oo(t)?H(t):t;if(!ao(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Wu(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Gu(t){return t.validate?e=>t.validate(e):t}function Zu(t){return t.validate?e=>t.validate(e):t}const Ku={provide:Eu,useExisting:Ct(()=>Qu),multi:!0};let Qu=(()=>{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)(Xi(ua),Xi(oa))},t.\u0275dir=ye({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&lo("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[na([Ku])]}),t})();const Ju={provide:Eu,useExisting:Ct(()=>Xu),multi:!0};let Yu=(()=>{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})(),Xu=(()=>{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(Mu),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: \n ')}}return t.\u0275fac=function(e){return new(e||t)(Xi(ua),Xi(oa),Xi(Yu),Xi(Mi))},t.\u0275dir=ye({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&lo("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[na([Ju])]}),t})();const th={provide:Eu,useExisting:Ct(()=>eh),multi:!0};let eh=(()=>{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)(Xi(ua),Xi(oa))},t.\u0275dir=ye({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&lo("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[na([th])]}),t})();const nh='\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',rh='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });';class sh{static controlParentException(){throw new Error(`formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${nh}`)}static ngModelGroupException(){throw new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n ${rh}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n \n
\n
\n \n
\n
`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${nh}`)}static groupParentException(){throw new Error(`formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${rh}`)}static arrayParentException(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')}static disabledAttrWarning(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}static ngModelWarning(t){console.warn(`\n It looks like you're using ngModel on the same form field as ${t}. \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/${"formControl"===t?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n `)}}const ih={provide:Eu,useExisting:Ct(()=>ah),multi:!0};function oh(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let ah=(()=>{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=zi}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=oh(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)(Xi(ua),Xi(oa))},t.\u0275dir=ye({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&lo("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[na([ih])]}),t})(),lh=(()=>{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(oh(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)(Xi(oa),Xi(ua),Xi(ah,9))},t.\u0275dir=ye({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const ch={provide:Eu,useExisting:Ct(()=>hh),multi:!0};function uh(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let hh=(()=>{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=zi}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{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(uh(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(uh(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)(Xi(oa),Xi(ua),Xi(hh,9))},t.\u0275dir=ye({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function ph(t,e){return[...e.path,t]}function fh(t,e){t||vh(e,"Cannot find control with"),e.valueAccessor||vh(e,"No value accessor for form control with"),t.validator=zu.compose([t.validator,e.validator]),t.asyncValidator=zu.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&&mh(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&&mh(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 mh(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function gh(t,e){null==t&&vh(e,"Cannot find control with"),t.validator=zu.compose([t.validator,e.validator]),t.asyncValidator=zu.composeAsync([t.asyncValidator,e.asyncValidator])}function yh(t){return vh(t,"There is no FormControl instance attached to form control element with")}function vh(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 _h(t){return null!=t?zu.compose(t.map(Gu)):null}function wh(t){return null!=t?zu.composeAsync(t.map(Zu)):null}function bh(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!zi(e,n.currentValue)}const Ch=[Tu,eh,Qu,ah,hh,Xu];function Sh(t,e){if(!e)return null;Array.isArray(e)||vh(t,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,s=void 0;return e.forEach(e=>{var i;e.constructor===Ou?n=e:(i=e,Ch.some(t=>i.constructor===t)?(r&&vh(t,"More than one built-in value accessor matches form control with"),r=e):(s&&vh(t,"More than one custom value accessor matches form control with"),s=e))}),s||r||n||(vh(t,"No valid value accessor for form control with"),null)}function xh(t,e,n,r){lr()&&"never"!==r&&((null!==r&&"once"!==r||e._ngModelWarningSentOnce)&&("always"!==r||n._ngModelWarningSent)||(sh.ngModelWarning(t),e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function Eh(t){const e=Th(t)?t.validators:t;return Array.isArray(e)?_h(e):e||null}function kh(t,e){const n=Th(e)?e.asyncValidators:t;return Array.isArray(n)?wh(n):n||null}function Th(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Ah{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=Eh(t)}setAsyncValidators(t){this.asyncValidator=kh(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=Bu(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 Oh?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof Rh&&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 el,this.statusChanges=new el}_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){Th(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Ih extends Ah{constructor(t=null,e,n){super(Eh(e),kh(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 Oh extends Ah{constructor(t,e,n){super(Eh(e),kh(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 Ih?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 Rh extends Ah{constructor(t,e,n){super(Eh(e),kh(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 Ih?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)}}let Nh=(()=>{class t extends Nu{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ph(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return _h(this._validators)}get asyncValidator(){return wh(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return Vh(e||t)},t.\u0275dir=ye({type:t,features:[Lo]}),t})();const Vh=tr(Nh);let Ph=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ye({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const Mh=new jt("NgModelWithFormControlWarning"),Dh={provide:Mu,useExisting:Ct(()=>jh)};let jh=(()=>{class t extends Mu{constructor(t,e,n,r){super(),this._ngModelWarningConfig=r,this.update=new el,this._ngModelWarningSent=!1,this._rawValidators=t||[],this._rawAsyncValidators=e||[],this.valueAccessor=Sh(this,n)}set isDisabled(t){sh.disabledAttrWarning()}ngOnChanges(e){this._isControlChanged(e)&&(fh(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),bh(e,this.viewModel)&&(xh("formControl",t,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return _h(this._rawValidators)}get asyncValidator(){return wh(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(Xi(Lu,10),Xi(Hu,10),Xi(Eu,10),Xi(Mh,8))},t.\u0275dir=ye({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[na([Dh]),Lo,Wo]}),t._ngModelWarningSentOnce=!1,t})();const Fh={provide:Nu,useExisting:Ct(()=>Uh)};let Uh=(()=>{class t extends Nu{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new el}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return fh(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){!function(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);gh(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);gh(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,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}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){e.valueAccessor.registerOnChange(()=>yh(e)),e.valueAccessor.registerOnTouched(()=>yh(e)),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&fh(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=_h(this._validators);this.form.validator=zu.compose([this.form.validator,t]);const e=wh(this._asyncValidators);this.form.asyncValidator=zu.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||sh.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(Xi(Lu,10),Xi(Hu,10))},t.\u0275dir=ye({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&lo("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[na([Fh]),Lo,Wo]}),t})();const Lh={provide:Nu,useExisting:Ct(()=>Hh)};let Hh=(()=>{class t extends Nh{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){qh(this._parent)&&sh.groupParentException()}}return t.\u0275fac=function(e){return new(e||t)(Xi(Nu,13),Xi(Lu,10),Xi(Hu,10))},t.\u0275dir=ye({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[na([Lh]),Lo]}),t})();const $h={provide:Nu,useExisting:Ct(()=>zh)};let zh=(()=>{class t extends Nu{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return ph(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return _h(this._validators)}get asyncValidator(){return wh(this._asyncValidators)}_checkParentType(){qh(this._parent)&&sh.arrayParentException()}}return t.\u0275fac=function(e){return new(e||t)(Xi(Nu,13),Xi(Lu,10),Xi(Hu,10))},t.\u0275dir=ye({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[na([$h]),Lo]}),t})();function qh(t){return!(t instanceof Hh||t instanceof Uh||t instanceof zh)}const Bh={provide:Mu,useExisting:Ct(()=>Wh)};let Wh=(()=>{class t extends Mu{constructor(t,e,n,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new el,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=Sh(this,r)}set isDisabled(t){sh.disabledAttrWarning()}ngOnChanges(e){this._added||this._setUpControl(),bh(e,this.viewModel)&&(xh("formControlName",t,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return ph(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return _h(this._rawValidators)}get asyncValidator(){return wh(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof Hh)&&this._parent instanceof Nh?sh.ngModelGroupException():this._parent instanceof Hh||this._parent instanceof Uh||this._parent instanceof zh||sh.controlParentException()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(Xi(Nu,13),Xi(Lu,10),Xi(Hu,10),Xi(Eu,10),Xi(Mh,8))},t.\u0275dir=ye({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[na([Bh]),Lo,Wo]}),t._ngModelWarningSentOnce=!1,t})();const Gh={provide:Lu,useExisting:Ct(()=>Zh),multi:!0};let Zh=(()=>{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?zu.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ye({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&&Qi("required",e.required?"":null)},inputs:{required:"required"},features:[na([Gh])]}),t})(),Kh=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),Qh=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let r=null,s=null,i=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new Oh(n,{asyncValidators:s,updateOn:i,validators:r})}control(t,e,n){return new Ih(t,e,n)}array(t,e,n){const r=t.map(t=>this._createControl(t));return new Rh(r,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof Ih||t instanceof Oh||t instanceof Rh?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Jh=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Yu],imports:[Kh]}),t})(),Yh=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Mh,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Qh,Yu],imports:[Kh]}),t})();function Xh(...t){let e=t[t.length-1];return T(e)?(t.pop(),L(t,e)):W(t)}function td(t,e){return $(t,e,1)}function ed(t,e){return function(n){return n.lift(new nd(t,e))}}class nd{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new rd(t,this.predicate,this.thisArg))}}class rd 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 sd{}class id{}class od{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),r=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof od?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 od;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof od?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class ad{encodeKey(t){return ld(t)}encodeValue(t){return ld(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function ld(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 cd{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new ad,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const r=t.indexOf("="),[s,i]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],o=n.get(s)||[];o.push(i),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return(this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&"))}).filter(t=>""!==t).join("&")}clone(t){const e=new cd({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 ud(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function hd(t){return"undefined"!=typeof Blob&&t instanceof Blob}function dd(t){return"undefined"!=typeof FormData&&t instanceof FormData}class pd{constructor(t,e,n,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new od),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new pd(e,n,s,{params:l,headers:a,reportProgress:o,responseType:r,withCredentials:i})}}const fd=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 md{constructor(t,e=200,n="OK"){this.headers=t.headers||new od,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 gd extends md{constructor(t={}){super(t),this.type=fd.ResponseHeader}clone(t={}){return new gd({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 yd extends md{constructor(t={}){super(t),this.type=fd.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new yd({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 vd extends md{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 _d(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let wd=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof pd)r=t;else{let s=void 0;s=n.headers instanceof od?n.headers:new od(n.headers);let i=void 0;n.params&&(i=n.params instanceof cd?n.params:new cd({fromObject:n.params})),r=new pd(t,e,void 0!==n.body?n.body:null,{headers:s,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Xh(r).pipe(td(t=>this.handler.handle(t)));if(t instanceof pd||"events"===n.observe)return s;const i=s.pipe(ed(t=>t instanceof yd));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return i.pipe(j(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return i.pipe(j(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return i.pipe(j(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return i.pipe(j(t=>t.body))}case"response":return i;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new cd).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,_d(n,e))}post(t,e,n={}){return this.request("POST",t,_d(n,e))}put(t,e,n={}){return this.request("PUT",t,_d(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Gt(sd))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class bd{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Cd=new jt("HTTP_INTERCEPTORS");let Sd=(()=>{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 xd=/^\)\]\}',?\n/;class Ed{}let kd=(()=>{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})(),Td=(()=>{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 w(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const r=t.serializeBody();let s=null;const i=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,r=n.statusText||"OK",i=new od(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new gd({headers:i,status:e,statusText:r,url:o}),s},o=()=>{let{headers:r,status:s,statusText:o,url:a}=i(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(xd,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new yd({body:l,headers:r,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new vd({error:l,headers:r,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:r}=i(),s=new vd({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(s)};let l=!1;const c=r=>{l||(e.next(i()),l=!0);let s={type:fd.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},u=t=>{let n={type:fd.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",c),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),e.next({type:fd.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",c),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Gt(Ed))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Ad=new jt("XSRF_COOKIE_NAME"),Id=new jt("XSRF_HEADER_NAME");class Od{}let Rd=(()=>{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=Fc(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Gt(yc),Gt(Cl),Gt(Ad))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Nd=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Gt(Od),Gt(Id))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Vd=(()=>{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(Cd,[]);this.chain=t.reduceRight((t,e)=>new bd(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Gt(id),Gt(Mi))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Pd=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Nd,useClass:Sd}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Ad,useValue:e.cookieName}:[],e.headerName?{provide:Id,useValue:e.headerName}:[]]}}}return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Nd,{provide:Cd,useExisting:Nd,multi:!0},{provide:Od,useClass:Rd},{provide:Ad,useValue:"XSRF-TOKEN"},{provide:Id,useValue:"X-XSRF-TOKEN"}]}),t})(),Md=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[wd,{provide:sd,useClass:Vd},Td,{provide:id,useExisting:Td},kd,{provide:Ed,useExisting:kd}],imports:[[Pd.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();class Dd extends E{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 jd={};class Fd{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Ud(t,this.resultSelector))}}class Ud extends D{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(jd),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{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class zd extends $d{constructor(t,e=$d.now){super(t,()=>zd.delegate&&zd.delegate!==this?zd.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return zd.delegate&&zd.delegate!==this?zd.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}function qd(){}function Bd(t,e,n,s){return r(n)&&(s=n,n=void 0),s?Bd(t,e,n).pipe(j(t=>l(t)?s(...t):s(t))):new w(r=>{!function t(e,n,r,s,i){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,r,i),o=()=>t.removeEventListener(n,r,i)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,r),o=()=>t.off(n,r)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,r),o=()=>t.removeListener(n,r)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o1?Array.prototype.slice.call(arguments):t)}),r,n)})}function Wd(){return B(1)}function Gd(...t){return Wd()(Xh(...t))}function Zd(t,e){return"function"==typeof e?n=>n.pipe(Zd((n,r)=>H(t(n,r)).pipe(j((t,s)=>e(n,t,r,s))))):e=>e.lift(new Kd(t))}class Kd{constructor(t){this.project=t}call(t,e){return e.subscribe(new Qd(t,this.project))}}class Qd extends D{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)}_innerSub(t,e,n){const r=this.innerSubscription;r&&r.unsubscribe();const s=new A(this,e,n),i=this.destination;i.add(s),this.innerSubscription=M(this,t,void 0,void 0,s),this.innerSubscription!==s&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,r,s){this.destination.next(e)}}function Jd(t){return e=>e.lift(new Yd(t))}class Yd{constructor(t){this.notifier=t}call(t,e){const n=new Xd(t),r=M(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}class Xd extends D{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,r,s){this.seenValue=!0,this.complete()}notifyComplete(){}}const tp=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})(),ep=new w(t=>t.complete());function np(t){return t?function(t){return new w(e=>t.schedule(()=>e.complete()))}(t):ep}function rp(t){return e=>0===t?np():e.lift(new sp(t))}class sp{constructor(t){if(this.total=t,this.total<0)throw new tp}call(t,e){return e.subscribe(new ip(t,this.total))}}class ip 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 op(t,e,n){return function(r){return r.lift(new ap(t,e,n))}}class ap{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new lp(t,this.nextOrObserver,this.error,this.complete))}}class lp extends f{constructor(t,e,n,s){super(t),this._tapNext=qd,this._tapError=qd,this._tapComplete=qd,this._tapError=n||qd,this._tapComplete=s||qd,r(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||qd,this._tapError=e.error||qd,this._tapComplete=e.complete||qd)}_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()}}function cp(...t){return e=>{let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new up(t,n))}}class up{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new hp(t,this.observables,this.project))}}class hp extends D{constructor(t,e,n){super(t),this.observables=e,this.project=n,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let s=0;s0){const t=i.indexOf(n);-1!==t&&i.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}let dp=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Xh(this.value);case"E":return t=this.error,new w(e=>e.error(t));case"C":return np()}var t;throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();$localize`:@@ngb.alert.close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;const pp=["*"];$localize`:@@ngb.carousel.previous␟680d5c75b7fd8d37961083608b9fcdc4167b4c43␟4452427314943113135:Previous`,$localize`:@@ngb.carousel.next␟f732c304c7433e5a83ffcd862c3dce709a0f4982␟3885497195825665706:Next`,$localize`:@@ngb.datepicker.previous-month␟c3b08b07b5ab98e7cdcf18df39355690ab7d3884␟8586908745456864217:Previous month`,$localize`:@@ngb.datepicker.previous-month␟c3b08b07b5ab98e7cdcf18df39355690ab7d3884␟8586908745456864217:Previous month`,$localize`:@@ngb.datepicker.next-month␟4bd046985cfe13040d5ef0cd881edce0968a111a␟3628374603023447227:Next month`,$localize`:@@ngb.datepicker.next-month␟4bd046985cfe13040d5ef0cd881edce0968a111a␟3628374603023447227:Next month`,$localize`:@@ngb.datepicker.select-month␟1dbc84807f35518112f62e5775d1daebd3d8462b␟2253869508135064750:Select month`,$localize`:@@ngb.datepicker.select-month␟1dbc84807f35518112f62e5775d1daebd3d8462b␟2253869508135064750:Select month`,$localize`:@@ngb.datepicker.select-year␟8ceb09d002bf0c5d1cac171dfbffe1805d2b3962␟8852264961585484321:Select year`,$localize`:@@ngb.datepicker.select-year␟8ceb09d002bf0c5d1cac171dfbffe1805d2b3962␟8852264961585484321:Select year`;const fp=["dialog"];function mp(t){return null!=t}$localize`:@@ngb.pagination.first␟656506dfd46380956a655f919f1498d018f75ca0␟6867721956102594380:««`,$localize`:@@ngb.pagination.previous␟6e52b6ee77a4848d899dd21b591c6fd499e3aef3␟6479320895410098858:«`,$localize`:@@ngb.pagination.next␟ba9cbb4ff311464308a3627e4f1c3345d9fe6d7d␟5458177150283468089:»`,$localize`:@@ngb.pagination.last␟49f27a460bc97e7e00be5b37098bfa79884fc7d9␟5277020320267646988:»»`,$localize`:@@ngb.pagination.first-aria␟f2f852318759c6396b5d3d17031d53817d7b38cc␟2241508602425256033:First`,$localize`:@@ngb.pagination.previous-aria␟680d5c75b7fd8d37961083608b9fcdc4167b4c43␟4452427314943113135:Previous`,$localize`:@@ngb.pagination.next-aria␟f732c304c7433e5a83ffcd862c3dce709a0f4982␟3885497195825665706:Next`,$localize`:@@ngb.pagination.last-aria␟5c729788ba138508aca1bec050b610f7bf81db3e␟4882268002141858767:Last`,$localize`:@@ngb.progressbar.value␟f8e9a947b9db4252c0e9905765338712f2fd032f␟3720830768741091151:${"\ufffd0\ufffd"}:INTERPOLATION:`,$localize`:@@ngb.timepicker.HH␟ce676ab1d6d98f85c836381cf100a4a91ef95a1f␟4043638465245303811:HH`,$localize`:@@ngb.timepicker.hours␟3bbce5fef7e1151da052a4e529453edb340e3912␟8070396816726827304:Hours`,$localize`:@@ngb.timepicker.MM␟72c8edf6a50068a05bde70991e36b1e881f4ca54␟1647282246509919852:MM`,$localize`:@@ngb.timepicker.minutes␟41e62daa962947c0d23ded0981975d1bddf0bf38␟5531237363767747080:Minutes`,$localize`:@@ngb.timepicker.increment-hours␟cb74bc1d625a6c1742f0d7d47306cf495780c218␟5939278348542933629:Increment hours`,$localize`:@@ngb.timepicker.decrement-hours␟147c7a19429da7d999e247d22e33fee370b1691b␟3651829882940481818:Decrement hours`,$localize`:@@ngb.timepicker.increment-minutes␟f5a4a3bc05e053f6732475d0e74875ec01c3a348␟180147720391025024:Increment minutes`,$localize`:@@ngb.timepicker.decrement-minutes␟c1a6899e529c096da5b660385d4e77fe1f7ad271␟7447789825403243588:Decrement minutes`,$localize`:@@ngb.timepicker.SS␟ebe38d36a40a2383c5fefa9b4608ffbda08bd4a3␟3628127143071124194:SS`,$localize`:@@ngb.timepicker.seconds␟4f2ed9e71a7c981db3e50ae2fedb28aff2ec4e6c␟8874012390997067175:Seconds`,$localize`:@@ngb.timepicker.increment-seconds␟912322ecee7d659d04dcf494a70e22e49d334b26␟5364772110539092174:Increment seconds`,$localize`:@@ngb.timepicker.decrement-seconds␟5db47ac104294243a70eb9124fbea9d0004ddf69␟753633511487974857:Decrement seconds`,$localize`:@@ngb.timepicker.PM␟8d6e691e10306c1b34c6b26805151aaea320ef7f␟3564199131264287502:${"\ufffd0\ufffd"}:INTERPOLATION:`,$localize`:@@ngb.timepicker.AM␟69a1f176a93998876952adac57c3bc3863b6105e␟4592818992509942761:${"\ufffd0\ufffd"}:INTERPOLATION:`,$localize`:@@ngb.toast.close-aria␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});let gp=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Bc]]}),t})(),yp=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Bc]]}),t})(),vp=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),_p=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Bc]]}),t})(),wp=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();var bp=function(t){return t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown",t}({});const Cp=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Sp(t){const e=Array.from(t.querySelectorAll(Cp)).filter(t=>-1!==t.tabIndex);return[e[0],e[e.length-1]]}let xp=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Bc,Jh]]}),t})(),Ep=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),kp=(()=>{let t=class{constructor(){this.backdrop=!0,this.keyboard=!0}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:function(){return new t},token:t,providedIn:"root"}),t})();class Tp{constructor(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}const Ap=()=>{};let Ip=(()=>{let t=class{constructor(t){this._document=t}compensate(){const t=this._getWidth();return this._isPresent(t)?this._adjustBody(t):Ap}_adjustBody(t){const e=this._document.body,n=e.style.paddingRight,r=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]=`${r+t}px`,()=>e.style["padding-right"]=n}_isPresent(t){const e=this._document.body.getBoundingClientRect();return window.innerWidth-(e.left+e.right)>=t-.1*t}_getWidth(){const t=this._document.createElement("div");t.className="modal-scrollbar-measure";const e=this._document.body;e.appendChild(t);const n=t.getBoundingClientRect().width-t.clientWidth;return e.removeChild(t),n}};return t.\u0275fac=function(e){return new(e||t)(Gt(yc))},t.\u0275prov=ct({factory:function(){return new t(Gt(yc))},token:t,providedIn:"root"}),t})(),Op=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=he({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:2,hostBindings:function(t,e){2&t&&xo("modal-backdrop fade show"+(e.backdropClass?" "+e.backdropClass:""))},inputs:{backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})();class Rp{close(t){}dismiss(t){}}class Np{constructor(t,e,n,r){this._windowCmptRef=t,this._contentRef=e,this._backdropCmptRef=n,this._beforeDismiss=r,t.instance.dismissEvent.subscribe(t=>{this.dismiss(t)}),this.result=new Promise((t,e)=>{this._resolve=t,this._reject=e}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}close(t){this._windowCmptRef&&(this._resolve(t),this._removeModalElements())}_dismiss(t){this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(e=>{!1!==e&&this._dismiss(t)},()=>{}):!1!==e&&this._dismiss(t)}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.location.nativeElement;if(t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._backdropCmptRef){const t=this._backdropCmptRef.location.nativeElement;t.parentNode.removeChild(t),this._backdropCmptRef.destroy()}this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._backdropCmptRef=null,this._contentRef=null}}var Vp=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}({});let Pp=(()=>{let t=class{constructor(t,e,n){this._document=t,this._elRef=e,this._zone=n,this._closed$=new E,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new el}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){const{nativeElement:t}=this._elRef;if(this._zone.runOutsideAngular(()=>{Bd(t,"keydown").pipe(Jd(this._closed$),ed(t=>t.which===bp.Escape&&this.keyboard)).subscribe(t=>requestAnimationFrame(()=>{t.defaultPrevented||this._zone.run(()=>this.dismiss(Vp.ESC))}));let e=!1;Bd(this._dialogEl.nativeElement,"mousedown").pipe(Jd(this._closed$),op(()=>e=!1),Zd(()=>Bd(t,"mouseup").pipe(Jd(this._closed$),rp(1))),ed(({target:e})=>t===e)).subscribe(()=>{e=!0}),Bd(t,"click").pipe(Jd(this._closed$)).subscribe(({target:n})=>{!0!==this.backdrop||t!==n||e||this._zone.run(()=>this.dismiss(Vp.BACKDROP_CLICK)),e=!1})}),!t.contains(document.activeElement)){const e=t.querySelector("[ngbAutofocus]"),n=Sp(t)[0];(e||n||t).focus()}}ngOnDestroy(){const t=this._document.body,e=this._elWithFocus;let n;n=e&&e.focus&&t.contains(e)?e:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null}),this._closed$.next()}};return t.\u0275fac=function(e){return new(e||t)(Xi(yc),Xi(oa),Xi(Fl))},t.\u0275cmp=he({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(t,e){var n,r;1&t&&(r=fp,!0,pl(Ge(),We(),r,!0,void 0,!0)),2&t&&dl(n=fl())&&(e._dialogEl=n.first)},hostAttrs:["role","dialog","tabindex","-1"],hostVars:5,hostBindings:function(t,e){2&t&&(Qi("aria-modal",!0)("aria-labelledby",e.ariaLabelledBy)("aria-describedby",e.ariaDescribedBy),xo("modal fade show d-block"+(e.windowClass?" "+e.windowClass:"")))},inputs:{backdrop:"backdrop",keyboard:"keyboard",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:pp,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,e){1&t&&(function(t){const e=We()[16][6];if(!e.projection){const t=e.projection=ne(1,null),n=t.slice();let r=e.child;for(;null!==r;){const e=0;null!==e&&(n[e]?n[e].projectionNext=r:t[e]=r,n[e]=r),r=r.next}}}(),ro(0,"div",0,1),ro(2,"div",2),function(t,e=0,n){const r=We(),s=Ge(),i=rs(s,r[6],t,1,null,n||null);null===i.projection&&(i.projection=e),Je(),function(t,e,n){ai(e[11],0,e,n,Js(t,n,e),ni(n.parent||e[6],e))}(s,r,i)}(3),so(),so()),2&t&&xo("modal-dialog"+(e.size?" modal-"+e.size:"")+(e.centered?" modal-dialog-centered":"")+(e.scrollable?" modal-dialog-scrollable":""))},styles:["ngb-modal-window .component-host-scrollable{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}"],encapsulation:2}),t})(),Mp=(()=>{let t=class{constructor(t,e,n,r,s,i){this._applicationRef=t,this._injector=e,this._document=n,this._scrollBar=r,this._rendererFactory=s,this._ngZone=i,this._activeWindowCmptHasChanged=new E,this._ariaHiddenValues=new Map,this._backdropAttributes=["backdropClass"],this._modalRefs=[],this._windowAttributes=["ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeInstances=new el,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const t=this._windowCmpts[this._windowCmpts.length-1];((t,e,n,r=!1)=>{this._ngZone.runOutsideAngular(()=>{const t=Bd(e,"focusin").pipe(Jd(n),j(t=>t.target));Bd(e,"keydown").pipe(Jd(n),ed(t=>t.which===bp.Tab),cp(t)).subscribe(([t,n])=>{const[r,s]=Sp(e);n!==r&&n!==e||!t.shiftKey||(s.focus(),t.preventDefault()),n!==s||t.shiftKey||(r.focus(),t.preventDefault())}),r&&Bd(e,"click").pipe(Jd(n),cp(t),j(t=>t[1])).subscribe(t=>t.focus())})})(0,t.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(t.location.nativeElement)}})}open(t,e,n,r){const s=r.container instanceof HTMLElement?r.container:mp(r.container)?this._document.querySelector(r.container):this._document.body,i=this._rendererFactory.createRenderer(null,null),o=this._scrollBar.compensate(),a=()=>{this._modalRefs.length||(i.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!s)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);const l=new Rp,c=this._getContentRef(t,r.injector||e,n,l,r);let u=!1!==r.backdrop?this._attachBackdrop(t,s):void 0,h=this._attachWindowComponent(t,s,c),d=new Np(h,c,u,r.beforeDismiss);return this._registerModalRef(d),this._registerWindowCmpt(h),d.result.then(o,o),d.result.then(a,a),l.close=t=>{d.close(t)},l.dismiss=t=>{d.dismiss(t)},this._applyWindowOptions(h.instance,r),1===this._modalRefs.length&&i.addClass(this._document.body,"modal-open"),u&&u.instance&&this._applyBackdropOptions(u.instance,r),d}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(e=>e.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t,e){let n=t.resolveComponentFactory(Op).create(this._injector);return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n}_attachWindowComponent(t,e,n){let r=t.resolveComponentFactory(Pp).create(this._injector,n.nodes);return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r}_applyWindowOptions(t,e){this._windowAttributes.forEach(n=>{mp(e[n])&&(t[n]=e[n])})}_applyBackdropOptions(t,e){this._backdropAttributes.forEach(n=>{mp(e[n])&&(t[n]=e[n])})}_getContentRef(t,e,n,r,s){return n?n instanceof Oa?this._createFromTemplateRef(n,r):"string"==typeof n?this._createFromString(n):this._createFromComponent(t,e,n,r,s):new Tp([])}_createFromTemplateRef(t,e){const n=t.createEmbeddedView({$implicit:e,close(t){e.close(t)},dismiss(t){e.dismiss(t)}});return this._applicationRef.attachView(n),new Tp([n.rootNodes],n)}_createFromString(t){const e=this._document.createTextNode(`${t}`);return new Tp([[e]])}_createFromComponent(t,e,n,r,s){const i=t.resolveComponentFactory(n),o=Mi.create({providers:[{provide:Rp,useValue:r}],parent:e}),a=i.create(o),l=a.location.nativeElement;return s.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(a.hostView),new Tp([[l]],a.hostView,a)}_setAriaHidden(t){const e=t.parentElement;e&&t!==this._document.body&&(Array.from(e.children).forEach(e=>{e!==t&&"SCRIPT"!==e.nodeName&&(this._ariaHiddenValues.set(e,e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}),this._setAriaHidden(e))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const e=()=>{const e=this._modalRefs.indexOf(t);e>-1&&(this._modalRefs.splice(e,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(e,e)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const e=this._windowCmpts.indexOf(t);e>-1&&(this._windowCmpts.splice(e,1),this._activeWindowCmptHasChanged.next())})}};return t.\u0275fac=function(e){return new(e||t)(Gt(sc),Gt(Mi),Gt(yc),Gt(Ip),Gt(la),Gt(Fl))},t.\u0275prov=ct({factory:function(){return new t(Gt(sc),Gt(Ft),Gt(yc),Gt(Ip),Gt(la),Gt(Fl))},token:t,providedIn:"root"}),t})(),Dp=(()=>{let t=class{constructor(t,e,n,r){this._moduleCFR=t,this._injector=e,this._modalStack=n,this._config=r}open(t,e={}){const n=Object.assign({},this._config,e);return this._modalStack.open(this._moduleCFR,this._injector,t,n)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}};return t.\u0275fac=function(e){return new(e||t)(Gt(ia),Gt(Mi),Gt(Mp),Gt(kp))},t.\u0275prov=ct({factory:function(){return new t(Gt(ia),Gt(Ft),Gt(Mp),Gt(kp))},token:t,providedIn:"root"}),t})(),jp=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Dp]}),t})(),Fp=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Bc]]}),t})(),Up=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Bc]]}),t})(),Lp=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Bc]]}),t})(),Hp=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Bc]]}),t})(),$p=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Bc]]}),t})(),zp=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Bc]]}),t})(),qp=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Bc]]}),t})(),Bp=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Bc]]}),t})(),Wp=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),Gp=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Bc]]}),t})();const Zp=[gp,yp,vp,_p,wp,xp,Ep,jp,Fp,Up,Lp,Hp,$p,qp,Bp,Wp,Gp,zp];let Kp=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[Zp,gp,yp,vp,_p,wp,xp,Ep,jp,Fp,Up,Lp,Hp,$p,qp,Bp,Wp,Gp,zp]}),t})();function Qp(t){return!!t&&(t instanceof w||"function"==typeof t.lift&&"function"==typeof t.subscribe)}function Jp(t){return new w(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?H(n):np()).subscribe(e)})}class Yp extends Hd{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}class Xp extends zd{}const tf=new Xp(Yp);class ef extends f{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(ef.dispatch,this.delay,new nf(t,this.destination)))}_next(t){this.scheduleMessage(dp.createNext(t))}_error(t){this.scheduleMessage(dp.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(dp.createComplete()),this.unsubscribe()}}class nf{constructor(t,e){this.notification=t,this.destination=e}}class rf extends E{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new sf(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=n.length;let i;if(this.closed)throw new C;if(this.isStopped||this.hasError?i=h.EMPTY:(this.observers.push(t),i=new S(this,t)),r&&t.add(t=new ef(t,r)),e)for(let o=0;oe&&(i=Math.max(i,s-e)),i>0&&r.splice(0,i),r}}class sf{constructor(t,e){this.time=t,this.value=e}}function of(t,e,n){let r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:r}){let s,i,o=0,a=!1,l=!1;return function(c){o++,s&&!a||(a=!1,s=new rf(t,e,r),i=c.subscribe({next(t){s.next(t)},error(t){a=!0,s.error(t)},complete(){l=!0,i=void 0,s.complete()}}));const u=s.subscribe(this);this.add(()=>{o--,u.unsubscribe(),i&&!l&&n&&0===o&&(i.unsubscribe(),i=void 0,s=void 0)})}}(r))}class af{}let lf=(()=>{class t extends af{getTranslation(t){return Xh({})}}return t.\u0275fac=function(e){return cf(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const cf=tr(lf);class uf{}let hf=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function df(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let n,r,s,i=typeof t;if(i==typeof e&&"object"==i){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(r in s=Object.create(null),t){if(!df(t[r],e[r]))return!1;s[r]=!0}for(r in e)if(!(r in s)&&void 0!==e[r])return!1;return!0}if(!Array.isArray(e))return!1;if((n=t.length)==e.length){for(r=0;r{class t extends mf{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let n;return n="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,n}getValue(t,e){let n="string"==typeof e?e.split("."):[e];e="";do{e+=n.shift(),!pf(t)||!pf(t[e])||"object"!=typeof t[e]&&n.length?n.length?e+=".":t=void 0:(t=t[e],e="")}while(n.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,n)=>{let r=this.getValue(e,n);return pf(r)?r:t}):t}}return t.\u0275fac=function(e){return yf(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const yf=tr(gf);class vf{}let _f=(()=>{class t extends vf{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(e){return wf(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const wf=tr(_f);class bf{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new el,this.onLangChange=new el,this.onDefaultLangChange=new el}}const Cf=new jt("USE_STORE"),Sf=new jt("USE_DEFAULT_LANG"),xf=new jt("DEFAULT_LANGUAGE"),Ef=new jt("USE_EXTEND");let kf=(()=>{class t{constructor(t,e,n,r,s,i=!0,o=!1,a=!1,l){this.store=t,this.currentLoader=e,this.compiler=n,this.parser=r,this.missingTranslationHandler=s,this.useDefaultLang=i,this.isolate=o,this.extend=a,this.pending=!1,this._onTranslationChange=new el,this._onLangChange=new el,this._onDefaultLangChange=new el,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe(rp(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return Xh(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe(rp(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),Xh(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(of(1),rp(1));return this.loadingTranslations=e.pipe(j(e=>this.compiler.compileTranslations(e,t)),of(1),rp(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,n=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(n||this.extend)&&this.translations[t]?function t(e,n){let r=Object.assign({},e);return ff(e)&&ff(n)&&Object.keys(n).forEach(s=>{ff(n[s])&&s in e?r[s]=t(e[s],n[s]):Object.assign(r,{[s]:n[s]})}),r}(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,n){let r;if(e instanceof Array){let r={},s=!1;for(let i of e)r[i]=this.getParsedResult(t,i,n),Qp(r[i])&&(s=!0);return s?Su(e.map(t=>Qp(r[t])?r[t]:Xh(r[t]))).pipe(j(t=>{let n={};return t.forEach((t,r)=>{n[e[r]]=t}),n})):r}if(t&&(r=this.parser.interpolate(this.parser.getValue(t,e),n)),void 0===r&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),n)),void 0===r){let t={key:e,translateService:this};void 0!==n&&(t.interpolateParams=n),r=this.missingTranslationHandler.handle(t)}return void 0!==r?r:e}get(t,e){if(!pf(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(td(n=>Qp(n=this.getParsedResult(n,t,e))?n:Xh(n)));{let n=this.getParsedResult(this.translations[this.currentLang],t,e);return Qp(n)?n:Xh(n)}}getStreamOnTranslationChange(t,e){if(!pf(t)||!t.length)throw new Error('Parameter "key" required');return Gd(Jp(()=>this.get(t,e)),this.onTranslationChange.pipe(Zd(n=>{const r=this.getParsedResult(n.translations,t,e);return"function"==typeof r.subscribe?r:Xh(r)})))}stream(t,e){if(!pf(t)||!t.length)throw new Error('Parameter "key" required');return Gd(Jp(()=>this.get(t,e)),this.onLangChange.pipe(Zd(n=>{const r=this.getParsedResult(n.translations,t,e);return Qp(r)?r:Xh(r)})))}instant(t,e){if(!pf(t)||!t.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],t,e);if(Qp(n)){if(t instanceof Array){let e={};return t.forEach((n,r)=>{e[t[r]]=t[r]}),e}return t}return n}set(t,e,n=this.currentLang){this.translations[n][t]=this.compiler.compile(e,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(Gt(bf),Gt(af),Gt(vf),Gt(mf),Gt(uf),Gt(Sf),Gt(Cf),Gt(Ef),Gt(xf))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Tf=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,n){let r=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(n){let s=this.translate.getParsedResult(n,t,e);Qp(s.subscribe)?s.subscribe(r):r(s)}this.translate.get(t,e).subscribe(r)}transform(t,...e){if(!t||!t.length)return t;if(df(t,this.lastKey)&&df(e,this.lastParams))return this.value;let n;if(pf(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{n=JSON.parse(t)}catch(r){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${e[0]}`)}}else"object"!=typeof e[0]||Array.isArray(e[0])||(n=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,n),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(Xi(kf),function(t=ot.Default){const e=vi(!0);if(null!=e||t&ot.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=ve({name:"translate",type:t,pure:!1}),t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Af=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:af,useClass:lf},e.compiler||{provide:vf,useClass:_f},e.parser||{provide:mf,useClass:gf},e.missingTranslationHandler||{provide:uf,useClass:hf},bf,{provide:Cf,useValue:e.isolate},{provide:Sf,useValue:e.useDefaultLang},{provide:Ef,useValue:e.extend},{provide:xf,useValue:e.defaultLanguage},kf]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:af,useClass:lf},e.compiler||{provide:vf,useClass:_f},e.parser||{provide:mf,useClass:gf},e.missingTranslationHandler||{provide:uf,useClass:hf},{provide:Cf,useValue:e.isolate},{provide:Sf,useValue:e.useDefaultLang},{provide:Ef,useValue:e.extend},{provide:xf,useValue:e.defaultLanguage},kf]}}}return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();class If{constructor(t,e="/assets/i18n/",n=".json"){this.http=t,this.prefix=e,this.suffix=n}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}let Of=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Bc,Jh,Yh]]}),t})(),Rf=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Bc,Jh,Yh]]}),t})(),Nf=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Bc,Jh,Yh]]}),t})(),Vf=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Bc,Jh,Yh]]}),t})();const Pf=new jt("config"),Mf=new jt("NEW_CONFIG"),Df=new jt("INITIAL_CONFIG"),jf={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:".",clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},Ff=["Hh:m0:s0","Hh:m0","m0:s0"],Uf=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let Lf=(()=>{class t{constructor(t){this._config=t,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=(t,e,n,r)=>{const s=t.split(n),i=s.length>1?`${n}${s[1]}`:"";let o=s[0];const a=this.separatorLimit.replace(/\s/g,"");a&&+a&&(o="-"===o[0]?`-${o.slice(1,o.length).slice(0,a.length)}`:o.slice(0,a.length));const l=/(\d+)(\d{3})/;for(;e&&l.test(o);)o=o.replace(l,"$1"+e+"$2");return void 0===r?o+i:0===r?o:o+i.substr(0,r+1)},this.percentage=t=>Number(t)>=0&&Number(t)<=100,this.getPrecision=t=>{const e=t.split(".");return e.length>1?Number(e[e.length-1]):1/0},this.checkAndRemoveSuffix=t=>{var e,n,r;for(let s=(null===(e=this.suffix)||void 0===e?void 0:e.length)-1;s>=0;s--){const e=this.suffix.substr(s,null===(n=this.suffix)||void 0===n?void 0:n.length);if(t.includes(e)&&(s-1<0||!t.includes(this.suffix.substr(s-1,null===(r=this.suffix)||void 0===r?void 0:r.length))))return t.replace(e,"")}return t},this.checkInputPrecision=(t,e,n)=>{if(e<1/0){const r=new RegExp(this._charToRegExpExpression(n)+`\\d{${e}}.*$`),s=t.match(r);s&&s[0].length-1>e&&(t=t.substring(0,t.length-(s[0].length-1-e))),0===e&&t.endsWith(n)&&(t=t.substring(0,t.length-1))}return t},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.hiddenInput=this._config.hiddenInput,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime}applyMaskWithPattern(t,e){const[n,r]=e;return this.customPattern=r,this.applyMask(t,n)}applyMask(t,e,n=0,r=!1,s=!1,i=(()=>{})){if(null==t||void 0===e)return"";let o=0,a="",l=!1,c=!1,u=1,h=!1;t.slice(0,this.prefix.length)===this.prefix&&(t=t.slice(this.prefix.length,t.length)),this.suffix&&(null==t?void 0:t.length)>0&&(t=this.checkAndRemoveSuffix(t));const d=t.toString().split("");"IP"===e&&(this.ipError=!!(d.filter(t=>"."===t).length<3&&d.length<7),e="099.099.099.099");const p=[];for(let v=0;v11?"00.000.000/0000-00":"000.000.000-00"),e.startsWith("percent")){if(t.match("[a-z]|[A-Z]")||t.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)){t=this._stripToDecimal(t);const n=this.getPrecision(e);t=this.checkInputPrecision(t,n,this.decimalMarker)}if(t.indexOf(".")>0&&!this.percentage(t.substring(0,t.indexOf(".")))){const e=t.substring(0,t.indexOf(".")-1);t=`${e}${t.substring(t.indexOf("."),t.length)}`}a=this.percentage(t)?t:t.substring(0,t.length-1)}else if(e.startsWith("separator")){(t.match("[w\u0430-\u044f\u0410-\u042f]")||t.match("[\u0401\u0451\u0410-\u044f]")||t.match("[a-z]|[A-Z]")||t.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/)||t.match("[^A-Za-z0-9,]"))&&(t=this._stripToDecimal(t)),t=t.length>1&&"0"===t[0]&&t[1]!==this.decimalMarker?t.slice(1,t.length):t;const r=this._charToRegExpExpression(this.thousandSeparator),s=this._charToRegExpExpression(this.decimalMarker),i='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(r,"").replace(s,""),o=new RegExp("["+i+"]");t.match(o)&&(t=t.substring(0,t.length-1));const l=this.getPrecision(e),h=(t=this.checkInputPrecision(t,l,this.decimalMarker)).replace(new RegExp(r,"g"),"");a=this._formatWithSeparators(h,this.thousandSeparator,this.decimalMarker,l);const d=a.indexOf(",")-t.indexOf(","),p=a.length-t.length;if(p>0&&","!==a[n]){c=!0;let t=0;do{this._shift.add(n+t),t++}while(t0&&!(a.indexOf(",")>=n&&n>3)||!(a.indexOf(".")>=n&&n>3)&&p<=0?(this._shift.clear(),c=!0,u=p,this._shift.add(n+=p)):this._shift.clear()}else for(let v=0,_=d[0];v2){o+=1,this._shiftStep(e,o,d.length),v--,this.leadZeroDateTime&&(a+="0");continue}if("h"===e[o]&&"2"===a&&Number(_)>3){o+=1,v--;continue}if("m"===e[o]&&Number(_)>5){o+=1,this._shiftStep(e,o,d.length),v--,this.leadZeroDateTime&&(a+="0");continue}if("s"===e[o]&&Number(_)>5){o+=1,this._shiftStep(e,o,d.length),v--,this.leadZeroDateTime&&(a+="0");continue}const n=31;if("d"===e[o]&&(Number(_)>3&&this.leadZeroDateTime||Number(t.slice(o,o+2))>n||"/"===t[o+1])){o+=1,this._shiftStep(e,o,d.length),v--,this.leadZeroDateTime&&(a+="0");continue}if("M"===e[o]){const r=12,s=0===o&&(Number(_)>2||Number(t.slice(o,o+2))>r||"/"===t[o+1]),i=t.slice(o-3,o-1).includes("/")&&("/"===t[o-2]&&Number(t.slice(o-1,o+1))>r&&"/"!==t[o]||"/"===t[o]||"/"===t[o-3]&&Number(t.slice(o-2,o))>r&&"/"!==t[o-1]||"/"===t[o-1]),l=Number(t.slice(o-3,o-1))<=n&&!t.slice(o-3,o-1).includes("/")&&"/"===t[o-1]&&(Number(t.slice(o,o+2))>r||"/"===t[o+1]),c=Number(t.slice(o-3,o-1))>n&&!t.slice(o-3,o-1).includes("/")&&!t.slice(o-2,o).includes("/")&&Number(t.slice(o-2,o))>r,u=Number(t.slice(o-3,o-1))<=n&&!t.slice(o-3,o-1).includes("/")&&"/"!==t[o-1]&&Number(t.slice(o-1,o+1))>r;if(Number(_)>1&&this.leadZeroDateTime||s||i||l||c||u){o+=1,this._shiftStep(e,o,d.length),v--,this.leadZeroDateTime&&(a+="0");continue}}a+=_,o++}else-1!==this.maskSpecialCharacters.indexOf(e[o])?(a+=e[o],o++,this._shiftStep(e,o,d.length),v--):this.maskSpecialCharacters.indexOf(_)>-1&&this.maskAvailablePatterns[e[o]]&&this.maskAvailablePatterns[e[o]].optional?(d[o]&&"099.099.099.099"!==e&&"000.000.000-00"!==e&&"00.000.000/0000-00"!==e&&(a+=d[o]),o++,v--):"*"===this.maskExpression[o+1]&&this._findSpecialChar(this.maskExpression[o+2])&&this._findSpecialChar(_)===this.maskExpression[o+2]&&l?(o+=3,a+=_):"?"===this.maskExpression[o+1]&&this._findSpecialChar(this.maskExpression[o+2])&&this._findSpecialChar(_)===this.maskExpression[o+2]&&l?(o+=3,a+=_):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(_)<0&&_!==this.placeHolderCharacter&&(h=!0);a.length+1===e.length&&-1!==this.maskSpecialCharacters.indexOf(e[e.length-1])&&(a+=e[e.length-1]);let f=n+1;for(;this._shift.has(f);)u++,f++;let m=r?o:this._shift.has(n)?u:0;h&&m--,i(m,c),u<0&&this._shift.clear();let g=!1;s&&(g=d.every(t=>this.maskSpecialCharacters.includes(t)));let y=`${this.prefix}${g?"":a}${this.suffix}`;return 0===a.length&&(y=`${this.prefix}${a}`),y}_findSpecialChar(t){return this.maskSpecialCharacters.find(e=>e===t)}_checkSymbolMask(t,e){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[e]&&this.maskAvailablePatterns[e].pattern&&this.maskAvailablePatterns[e].pattern.test(t)}_stripToDecimal(t){return t.split("").filter((t,e)=>t.match("^-?\\d")||t.match("\\s")||"."===t||","===t||"-"===t&&0===e&&this.allowNegativeNumbers).join("")}_charToRegExpExpression(t){if(t){const e="[\\^$.|?*+()";return" "===t?"\\s":e.indexOf(t)>=0?"\\"+t:t}return t}_shiftStep(t,e,n){const r=/[*?]/g.test(t.slice(0,e))?n:e;this._shift.add(r+this.prefix.length||0)}}return t.\u0275fac=function(e){return new(e||t)(Gt(Pf))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Hf=(()=>{class t extends Lf{constructor(t,e,n,r){super(e),this.document=t,this._config=e,this._elementRef=n,this._renderer=r,this.maskExpression="",this.isNumberValue=!1,this.placeHolderCharacter="_",this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.onChange=t=>{}}applyMask(t,e,n=0,r=!1,s=!1,i=(()=>{})){if(!e)return t;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),!t&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const o=t&&"number"==typeof this.selStart?t[this.selStart]:"";let a="";if(this.hiddenInput&&!this.writingValue){let e=this.actualValue.split("");""!==t&&e.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(t.length>e.length?e.splice(this.selStart,0,o):t.lengtht!==this.decimalMarker)),this.formControlResult(l),!this.showMaskTyped)return this.hiddenInput&&l&&l.length?this.hideInput(l,this.maskExpression):l;const c=l.length,u=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const t=this._numberSkipedSymbols(l);return l+u.slice(c+t)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?l+u:l+u.slice(c)}_numberSkipedSymbols(t){const e=/(^|\D)(\d\D)/g;let n=e.exec(t),r=0;for(;null!=n;)r+=1,n=e.exec(t);return r}applyValueChanges(t=0,e,n,r=(()=>{})){const s=this._elementRef.nativeElement;s.value=this.applyMask(s.value,this.maskExpression,t,e,n,r),s!==this.document.activeElement&&this.clearIfNotMatchFn()}hideInput(t,e){return t.split("").map((t,n)=>this.maskAvailablePatterns&&this.maskAvailablePatterns[e[n]]&&this.maskAvailablePatterns[e[n]].symbol?this.maskAvailablePatterns[e[n]].symbol:t).join("")}getActualValue(t){const e=t.split("").filter((t,e)=>this._checkSymbolMask(t,this.maskExpression[e])||this.maskSpecialCharacters.includes(this.maskExpression[e])&&t===this.maskExpression[e]);return e.join("")===t?e.join(""):t}shiftTypedSymbols(t){let e="";return(t&&t.split("").map((n,r)=>{if(this.maskSpecialCharacters.includes(t[r+1])&&t[r+1]!==this.maskExpression[r+1])return e=n,t[r+1];if(e.length){const t=e;return e="",t}return n})||[]).join("")}showMaskInInput(t){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}if(this.showMaskTyped){if(t){if("IP"===this.maskExpression)return this._checkForIp(t);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(t)}return this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const t=this._elementRef.nativeElement;this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==t.value.replace(/_/g,"").length&&(this.formElementProperty=["value",""],this.applyMask(t.value,this.maskExpression))}set formElementProperty([t,e]){Promise.resolve().then(()=>this._renderer.setProperty(this._elementRef.nativeElement,t,e))}checkSpecialCharAmount(t){return t.split("").filter(t=>this._findSpecialChar(t)).length}removeMask(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(t){if("#"===t)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const e=[];for(let n=0;n3&&e.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:e.length>6&&e.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(t){const e=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}`+`.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}`+`.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}`+`-${this.placeHolderCharacter}${this.placeHolderCharacter}`,n=`${this.placeHolderCharacter}${this.placeHolderCharacter}`+`.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}`+`.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}`+`/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}`+`-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if("#"===t)return e;const r=[];for(let s=0;s3&&r.length<=6?e.slice(r.length+1,e.length):r.length>6&&r.length<=9?e.slice(r.length+2,e.length):r.length>9&&r.length<11?e.slice(r.length+3,e.length):11===r.length?"":12===r.length?n.slice(17===t.length?16:15,n.length):r.length>12&&r.length<=14?n.slice(r.length+4,n.length):""}formControlResult(t){this.writingValue||(Array.isArray(this.dropSpecialCharacters)?this.onChange(this._toNumber(this._removeMask(this._removeSuffix(this._removePrefix(t)),this.dropSpecialCharacters))):this.onChange(this.dropSpecialCharacters?this._toNumber(this._checkSymbols(t)):this._removeSuffix(t)))}_toNumber(t){if(!this.isNumberValue||""===t)return t;const e=Number(t);return Number.isNaN(e)?t:e}_removeMask(t,e){return t?t.replace(this._regExpForRemove(e),""):t}_removePrefix(t){return this.prefix&&t?t.replace(this.prefix,""):t}_removeSuffix(t){return this.suffix&&t?t.replace(this.suffix,""):t}_retrieveSeparatorValue(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters)}_regExpForRemove(t){return new RegExp(t.map(t=>`\\${t}`).join("|"),"gi")}_checkSymbols(t){if(""===t)return t;const e=this._retrieveSeparatorPrecision(this.maskExpression);let n=this._retrieveSeparatorValue(t);return"."!==this.decimalMarker&&(n=n.replace(this.decimalMarker,".")),this.isNumberValue?e?t===this.decimalMarker?null:this._checkPrecision(this.maskExpression,n):Number(n):n}_retrieveSeparatorPrecision(t){const e=t.match(new RegExp("^separator\\.([^d]*)"));return e?Number(e[1]):null}_checkPrecision(t,e){return t.indexOf("2")>0?Number(e).toFixed(2):Number(e)}}return t.\u0275fac=function(e){return new(e||t)(Gt(yc),Gt(Pf),Gt(oa),Gt(ua))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),$f=(()=>{class t{constructor(t,e,n){this.document=t,this._maskService=e,this._config=n,this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this.leadZeroDateTime=null,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this.onChange=t=>{},this.onTouch=()=>{}}ngOnChanges(t){const{maskExpression:e,specialCharacters:n,patterns:r,prefix:s,suffix:i,thousandSeparator:o,decimalMarker:a,dropSpecialCharacters:l,hiddenInput:c,showMaskTyped:u,placeHolderCharacter:h,shownMaskExpression:d,showTemplate:p,clearIfNotMatch:f,validation:m,separatorLimit:g,allowNegativeNumbers:y,leadZeroDateTime:v}=t;if(e&&(this._maskValue=e.currentValue||"",e.currentValue&&e.currentValue.split("||").length>1&&(this._maskExpressionArray=e.currentValue.split("||").sort((t,e)=>t.length-e.length),this._maskValue=this._maskExpressionArray[0],this.maskExpression=this._maskExpressionArray[0],this._maskService.maskExpression=this._maskExpressionArray[0])),n){if(!n.currentValue||!Array.isArray(n.currentValue))return;this._maskService.maskSpecialCharacters=n.currentValue||[]}r&&r.currentValue&&(this._maskService.maskAvailablePatterns=r.currentValue),s&&(this._maskService.prefix=s.currentValue),i&&(this._maskService.suffix=i.currentValue),o&&(this._maskService.thousandSeparator=o.currentValue),a&&(this._maskService.decimalMarker=a.currentValue),l&&(this._maskService.dropSpecialCharacters=l.currentValue),c&&(this._maskService.hiddenInput=c.currentValue),u&&(this._maskService.showMaskTyped=u.currentValue),h&&(this._maskService.placeHolderCharacter=h.currentValue),d&&(this._maskService.shownMaskExpression=d.currentValue),p&&(this._maskService.showTemplate=p.currentValue),f&&(this._maskService.clearIfNotMatch=f.currentValue),m&&(this._maskService.validation=m.currentValue),g&&(this._maskService.separatorLimit=g.currentValue),y&&(this._maskService.allowNegativeNumbers=y.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.maskSpecialCharacters=this._maskService.maskSpecialCharacters.filter(t=>"-"!==t))),v&&(this._maskService.leadZeroDateTime=v.currentValue),this._applyMask()}validate({value:t}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(t);if(this._maskService.cpfCnpjError)return this._createValidationError(t);if(this._maskValue.startsWith("separator"))return null;if(Uf.includes(this._maskValue))return null;if(this._maskService.clearIfNotMatch)return null;if(Ff.includes(this._maskValue))return this._validateTime(t);if(t&&t.toString().length>=1){let e=0;for(const n in this._maskService.maskAvailablePatterns)if(this._maskService.maskAvailablePatterns[n].optional&&!0===this._maskService.maskAvailablePatterns[n].optional){if(this._maskValue.indexOf(n)!==this._maskValue.lastIndexOf(n)?e+=this._maskValue.split("").filter(t=>t===n).join("").length:-1!==this._maskValue.indexOf(n)&&e++,-1!==this._maskValue.indexOf(n)&&t.toString().length>=this._maskValue.indexOf(n))return null;if(e===this._maskValue.length)return null}if(1===this._maskValue.indexOf("{")&&t.toString().length===this._maskValue.length+Number(this._maskValue.split("{")[1].split("}")[0])-4)return null;if(1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null;if(this._maskValue.indexOf("*")>1&&t.toString().length1&&t.toString().length{this._justPasted=!1,r=t,s=e}),this.document.activeElement!==e)return;this._position=1===this._position&&1===this._inputValue.length?null:this._position;let i=this._position?this._inputValue.length+n+r:n+("Backspace"!==this._code||s?r:0);i>this._getActualInputLength()&&(i=this._getActualInputLength()),e.setSelectionRange(i,i),this._position=null}onBlur(){this._maskValue&&this._maskService.clearIfNotMatchFn(),this.onTouch()}onFocus(t){if(!this._maskValue)return;const e=t.target;null!==e&&null!==e.selectionStart&&e.selectionStart===e.selectionEnd&&e.selectionStart>this._maskService.prefix.length&&38!==t.keyCode&&this._maskService.showMaskTyped&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),e.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===e.value?(e.focus(),e.setSelectionRange(0,0)):e.selectionStart>this._maskService.actualValue.length&&e.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const n=e.value&&e.value!==this._maskService.prefix?e.value:this._maskService.prefix+this._maskService.maskIsShown;e.value!==n&&(e.value=n),(e.selectionStart||e.selectionEnd)<=this._maskService.prefix.length?e.selectionStart=this._maskService.prefix.length:e.selectionEnd>this._getActualInputLength()&&(e.selectionEnd=this._getActualInputLength())}onKeyDown(t){var e;if(!this._maskValue)return;this._code=t.code?t.code:t.key;const n=t.target;if(this._inputValue=n.value,this._setMask(),38===t.keyCode&&t.preventDefault(),37===t.keyCode||8===t.keyCode||46===t.keyCode){if(8===t.keyCode&&0===n.value.length&&(n.selectionStart=n.selectionEnd),8===t.keyCode&&0!==n.selectionStart)if(this.specialCharacters=(null===(e=this.specialCharacters)||void 0===e?void 0:e.length)?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&n.selectionStart<=this.prefix.length)n.setSelectionRange(this.prefix.length,this.prefix.length);else{if(this._inputValue.length!==n.selectionStart&&1!==n.selectionStart)for(;this.specialCharacters.includes(this._inputValue[n.selectionStart-1].toString())&&(this.prefix.length>=1&&n.selectionStart>this.prefix.length||0===this.prefix.length);)n.setSelectionRange(n.selectionStart-1,n.selectionStart-1);this.suffixCheckOnPressDelete(t.keyCode,n)}this.suffixCheckOnPressDelete(t.keyCode,n),this._maskService.prefix.length&&n.selectionStart<=this._maskService.prefix.length&&n.selectionEnd<=this._maskService.prefix.length&&t.preventDefault();const r=n.selectionStart;8!==t.keyCode||n.readOnly||0!==r||n.selectionEnd!==n.value.length||0===n.value.length||(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length0&&this._inputValue.length-this.suffix.length<=e.selectionStart&&e.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),8===t&&(this.suffix.length>1&&this._inputValue.length-this.suffix.length{if(this._start="{"===n?r:this._start,"}"!==n)return this._maskService._findSpecialChar(n)?e+n:e;this._end=r;const s=Number(t.slice(this._start+1,this._end));return e+new Array(s+1).join(t[this._start-1])},"")||t}_applyMask(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(t){const e=this._maskValue.split("").filter(t=>":"!==t).length;return null===t||0===t.length?null:0==+t[t.length-1]&&t.length0&&this._maskExpressionArray.some(t=>{const e=this._maskService.removeMask(this._inputValue).length<=this._maskService.removeMask(t).length;if(this._inputValue&&e)return this._maskValue=t,this.maskExpression=t,this._maskService.maskExpression=t,e;this._maskValue=this._maskExpressionArray[this._maskExpressionArray.length-1],this.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1],this._maskService.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1]})}}return t.\u0275fac=function(e){return new(e||t)(Xi(yc),Xi(Hf),Xi(Pf))},t.\u0275dir=ye({type:t,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(t,e){1&t&&lo("paste",(function(){return e.onPaste()}))("input",(function(t){return e.onInput(t)}))("blur",(function(){return e.onBlur()}))("click",(function(t){return e.onFocus(t)}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{maskExpression:["mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers",leadZeroDateTime:"leadZeroDateTime"},features:[na([{provide:Eu,useExisting:Ct(()=>t),multi:!0},{provide:Lu,useExisting:Ct(()=>t),multi:!0},Hf]),Wo]}),t})(),zf=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:Mf,useValue:e},{provide:Df,useValue:jf},{provide:Pf,useFactory:qf,deps:[Df,Mf]},Lf]}}static forChild(){return{ngModule:t}}}return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();function qf(t,e){return Object.assign(Object.assign({},t),e instanceof Function?e():e)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;let Bf=(()=>{class t{constructor(){this.spinnerBehaviour=new Dd(!1),this.hide=()=>this.spinnerBehaviour.next(!1)}show(){this.spinnerBehaviour.next(!0)}getSpinner(){return this.spinnerBehaviour.asObservable()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Wf=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Bf]}),t})();const Gf=new jt("recaptcha-language"),Zf=new jt("recaptcha-base-url"),Kf=new jt("recaptcha-nonce-tag");let Qf=(()=>{let t=Jf=class{constructor(t,e,n,r){this.platformId=t,this.language=e,this.baseUrl=n,this.nonce=r,this.init(),this.ready=Wc(this.platformId)?Jf.ready.asObservable():Xh()}init(){if(!Jf.ready&&Wc(this.platformId)){const t=new Dd(null);Jf.ready=t,function(e,n,r,s,i){window.ng2recaptchaloaded=()=>{(e=>{t.next(e)})(grecaptcha)};const o=document.createElement("script");o.innerHTML="",o.src=`${s||"https://www.google.com/recaptcha/api.js"}?render=explicit&onload=ng2recaptchaloaded${r}`,i&&(o.nonce=i),o.async=!0,o.defer=!0,document.head.appendChild(o)}(0,0,this.language?"&hl="+this.language:"",this.baseUrl,this.nonce)}}};return t.\u0275fac=function(e){return new(e||t)(Gt(Cl),Gt(Gf,8),Gt(Zf,8),Gt(Kf,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t.ready=null,t})();var Jf;const Yf=new jt("recaptcha-settings");let Xf=0,tm=(()=>{let t=class{constructor(t,e,n,r){this.elementRef=t,this.loader=e,this.zone=n,this.id=`ngrecaptcha-${Xf++}`,this.resolved=new el,r&&(this.siteKey=r.siteKey,this.theme=r.theme,this.type=r.type,this.size=r.size,this.badge=r.badge)}ngAfterViewInit(){this.subscription=this.loader.ready.subscribe(t=>{null!=t&&t.render instanceof Function&&(this.grecaptcha=t,this.renderRecaptcha())})}ngOnDestroy(){this.grecaptchaReset(),this.subscription&&this.subscription.unsubscribe()}execute(){"invisible"===this.size&&(null!=this.widget?this.grecaptcha.execute(this.widget):this.executeRequested=!0)}reset(){null!=this.widget&&(this.grecaptcha.getResponse(this.widget)&&this.resolved.emit(null),this.grecaptchaReset())}expired(){this.resolved.emit(null)}captchaResponseCallback(t){this.resolved.emit(t)}grecaptchaReset(){null!=this.widget&&this.zone.runOutsideAngular(()=>this.grecaptcha.reset(this.widget))}renderRecaptcha(){this.widget=this.grecaptcha.render(this.elementRef.nativeElement,{badge:this.badge,callback:t=>{this.zone.run(()=>this.captchaResponseCallback(t))},"expired-callback":()=>{this.zone.run(()=>this.expired())},sitekey:this.siteKey,size:this.size,tabindex:this.tabIndex,theme:this.theme,type:this.type}),!0===this.executeRequested&&(this.executeRequested=!1,this.execute())}};return t.\u0275fac=function(e){return new(e||t)(Xi(oa),Xi(Qf),Xi(Fl),Xi(Yf,8))},t.\u0275cmp=he({type:t,selectors:[["re-captcha"]],hostVars:1,hostBindings:function(t,e){2&t&&Qi("id",e.id)},inputs:{id:"id",siteKey:"siteKey",theme:"theme",type:"type",size:"size",badge:"badge",tabIndex:"tabIndex"},outputs:{resolved:"resolved"},exportAs:["reCaptcha"],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})(),em=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),nm=(()=>{let t=rm=class{static forRoot(){return rm}};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Qf],imports:[[em]]}),t})();var rm;let sm=(()=>{let t=im=class{constructor(t){this.host=t}writeValue(t){t||this.host.reset()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}onResolve(t){this.onChange&&this.onChange(t),this.onTouched&&this.onTouched()}};return t.\u0275fac=function(e){return new(e||t)(Xi(tm))},t.\u0275dir=ye({type:t,selectors:[["re-captcha","formControlName",""],["re-captcha","formControl",""],["re-captcha","ngModel",""]],hostBindings:function(t,e){1&t&&lo("resolved",(function(t){return e.onResolve(t)}))},features:[na([{multi:!0,provide:Eu,useExisting:Ct(()=>im)}])]}),t})();var im;let om=(()=>{let t=class{};return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Jh,em]]}),t})(),am=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Bc,Yh]]}),t})();const lm=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function cm(t){return function(e){return 0===t?np():e.lift(new um(t))}}class um{constructor(t){if(this.total=t,this.total<0)throw new tp}call(t,e){return e.subscribe(new hm(t,this.total))}}class hm 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.length0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;se.lift(new pm(t))}class pm{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new fm(t,this.errorFactory))}}class fm 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 mm(){return new lm}function gm(t=null){return e=>e.lift(new ym(t))}class ym{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new vm(t,this.defaultValue))}}class vm 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 _m(t,e){const n=arguments.length>=2;return r=>r.pipe(t?ed((e,n)=>t(e,n,r)):y,cm(1),n?gm(e):dm(()=>new lm))}function wm(t){return function(e){const n=new bm(t),r=e.lift(n);return n.caught=r}}class bm{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Cm(t,this.selector,this.caught))}}class Cm extends D{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new A(this,void 0,void 0);this.add(r);const s=M(this,n,void 0,void 0,r);s!==r&&this.add(s)}}}function Sm(t,e){const n=arguments.length>=2;return r=>r.pipe(t?ed((e,n)=>t(e,n,r)):y,rp(1),n?gm(e):dm(()=>new lm))}class xm{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new Em(t,this.predicate,this.thisArg,this.source))}}class Em 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 km(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Tm(t,e,n))}}class Tm{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new Am(t,this.accumulator,this.seed,this.hasSeed))}}class Am extends f{constructor(t,e,n,r){super(t),this.accumulator=e,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}class Im{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Om(t,this.callback))}}class Om extends f{constructor(t,e){super(t),this.add(new h(e))}}class Rm{constructor(t,e){this.id=t,this.url=e}}class Nm extends Rm{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 Vm extends Rm{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Pm extends Rm{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Mm extends Rm{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Dm extends Rm{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 jm extends Rm{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 Fm extends Rm{constructor(t,e,n,r,s){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Um extends Rm{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 Lm extends Rm{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 Hm{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class $m{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class zm{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qm{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Bm{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wm{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gm{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 Zm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=he({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&io(0,"router-outlet")},directives:function(){return[Ky]},encapsulation:2}),t})();class Km{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 Qm(t){return new Km(t)}function Jm(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Ym(t,e,n){const r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.lengthe.indexOf(t)>-1):t===e}function og(t){return Array.prototype.concat.apply([],t)}function ag(t){return t.length>0?t[t.length-1]:null}function lg(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function cg(t){return ao(t)?t:oo(t)?H(Promise.resolve(t)):Xh(t)}function ug(t,e,n){return n?function(t,e){return sg(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!fg(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=>ig(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,s){if(n.segments.length>s.length)return!!fg(n.segments.slice(0,s.length),s)&&!r.hasChildren();if(n.segments.length===s.length){if(!fg(n.segments,s))return!1;for(const e in r.children){if(!n.children[e])return!1;if(!t(n.children[e],r.children[e]))return!1}return!0}{const t=s.slice(0,n.segments.length),i=s.slice(n.segments.length);return!!fg(n.segments,t)&&!!n.children.primary&&e(n.children.primary,r,i)}}(e,n,n.segments)}(t.root,e.root)}class hg{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qm(this.queryParams)),this._queryParamMap}toString(){return vg.serialize(this)}}class dg{constructor(t,e){this.segments=t,this.children=e,this.parent=null,lg(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return _g(this)}}class pg{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Qm(this.parameters)),this._parameterMap}toString(){return Eg(this)}}function fg(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function mg(t,e){let n=[];return lg(t.children,(t,r)=>{"primary"===r&&(n=n.concat(e(t,r)))}),lg(t.children,(t,r)=>{"primary"!==r&&(n=n.concat(e(t,r)))}),n}class gg{}class yg{parse(t){const e=new Og(t);return new hg(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,n){if(!e.hasChildren())return _g(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",r=[];return lg(e.children,(e,n)=>{"primary"!==n&&r.push(`${n}:${t(e,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=mg(e,(n,r)=>"primary"===r?[t(e.children.primary,!1)]:[`${r}:${t(n,!1)}`]);return`${_g(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=>`${bg(e)}=${bg(t)}`).join("&"):`${bg(e)}=${bg(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const vg=new yg;function _g(t){return t.segments.map(t=>Eg(t)).join("/")}function wg(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function bg(t){return wg(t).replace(/%3B/gi,";")}function Cg(t){return wg(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Sg(t){return decodeURIComponent(t)}function xg(t){return Sg(t.replace(/\+/g,"%20"))}function Eg(t){return`${Cg(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Cg(t)}=${Cg(e[t])}`).join("")}`;var e}const kg=/^[^\/()?;=#]+/;function Tg(t){const e=t.match(kg);return e?e[0]:""}const Ag=/^[^=?&#]+/,Ig=/^[^?&#]+/;class Og{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new dg([],{}):new dg([],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 dg(t,e)),n}parseSegment(){const t=Tg(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new pg(Sg(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Tg(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Tg(this.remaining);t&&(n=t,this.capture(n))}t[Sg(e)]=Sg(n)}parseQueryParam(t){const e=function(t){const e=t.match(Ag);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(Ig);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=xg(e),s=xg(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Tg(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const i=this.parseChildren();e[s]=1===Object.keys(i).length?i.primary:new dg([],i),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Rg{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=Ng(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Ng(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Vg(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Vg(t,this._root).map(t=>t.value)}}function Ng(t,e){if(t===e.value)return e;for(const n of e.children){const e=Ng(t,n);if(e)return e}return null}function Vg(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Vg(t,n);if(r.length)return r.unshift(e),r}return[]}class Pg{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Mg(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Dg extends Rg{constructor(t,e){super(t),this.snapshot=e,$g(this,t)}toString(){return this.snapshot.toString()}}function jg(t,e){const n=function(t,e){const n=new Lg([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Hg("",new Pg(n,[]))}(t,e),r=new Dd([new pg("",{})]),s=new Dd({}),i=new Dd({}),o=new Dd({}),a=new Dd(""),l=new Fg(r,s,o,a,i,"primary",e,n.root);return l.snapshot=n.root,new Dg(new Pg(l,[]),n)}class Fg{constructor(t,e,n,r,s,i,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(j(t=>Qm(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(j(t=>Qm(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ug(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 Lg{constructor(t,e,n,r,s,i,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Qm(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qm(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Hg extends Rg{constructor(t,e){super(e),this.url=t,$g(this,e)}toString(){return zg(this._root)}}function $g(t,e){e.value._routerState=t,e.children.forEach(e=>$g(t,e))}function zg(t){const e=t.children.length>0?` { ${t.children.map(zg).join(", ")} } `:"";return`${t.value}${e}`}function qg(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,sg(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),sg(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nsg(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Bg(t.parent,e.parent))}function Wg(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Gg(t,e,n,r,s){let i={};return r&&lg(r,(t,e)=>{i[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new hg(n.root===t?e:function t(e,n,r){const s={};return lg(e.children,(e,i)=>{s[i]=e===n?r:t(e,n,r)}),new dg(e.segments,s)}(n.root,t,e),i,s)}class Zg{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Wg(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!==ag(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Kg{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Qg(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:`${t}`}function Jg(t,e,n){if(t||(t=new dg([],{})),0===t.segments.length&&t.hasChildren())return Yg(t,e,n);const r=function(t,e,n){let r=0,s=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return i;const e=t.segments[s],o=Qg(n[r]),a=r0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!ny(o,a,e))return i;r+=2}else{if(!ny(o,{},e))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(t,e,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex{null!==n&&(s[r]=Jg(t.children[r],e,n))}),lg(t.children,(t,e)=>{void 0===r[e]&&(s[e]=t)}),new dg(t.segments,s)}}function Xg(t,e,n){const r=t.segments.slice(0,e);let s=0;for(;s{null!==t&&(e[n]=Xg(new dg([],{}),0,t))}),e}function ey(t){const e={};return lg(t,(t,n)=>e[n]=`${t}`),e}function ny(t,e,n){return t==n.path&&sg(e,n.parameters)}class ry{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),qg(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=Mg(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),lg(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const r=Mg(t),s=t.value.component?n.children:e;lg(r,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const r=Mg(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new Wm(t.value.snapshot))}),t.children.length&&this.forwardEvent(new qm(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(qg(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),sy(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(r.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=s,e.outlet&&e.outlet.activateWith(r,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function sy(t){qg(t.value),t.children.forEach(sy)}function iy(t){return"function"==typeof t}function oy(t){return t instanceof hg}class ay{constructor(t){this.segmentGroup=t||null}}class ly{constructor(t){this.urlTree=t}}function cy(t){return new w(e=>e.error(new ay(t)))}function uy(t){return new w(e=>e.error(new ly(t)))}function hy(t){return new w(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class dy{constructor(t,e,n,r,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(Jt)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(j(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(wm(t=>{if(t instanceof ly)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof ay)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(j(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(wm(t=>{if(t instanceof ay)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 dg([],{primary:t}):t;return new hg(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(j(t=>new dg([],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 Xh({});const n=[],r=[],s={};return lg(t,(t,i)=>{const o=e(i,t).pipe(j(t=>s[i]=t));"primary"===i?n.push(o):r.push(o)}),Xh.apply(null,n.concat(r)).pipe(Wd(),_m(),j(()=>s))}(n.children,(n,r)=>this.expandSegmentGroup(t,e,r,n))}expandSegment(t,e,n,r,s,i){return Xh(...n).pipe(j(o=>this.expandSegmentAgainstRoute(t,e,n,o,r,s,i).pipe(wm(t=>{if(t instanceof ay)return Xh(null);throw t}))),Wd(),Sm(t=>!!t),wm((t,n)=>{if(t instanceof lm||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,r,s))return Xh(new dg([],{}));throw new ay(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,r,s,i,o){return gy(r)!==i?cy(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i):cy(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?uy(s):this.lineralizeSegments(n,s).pipe($(n=>{const s=new dg(n,{});return this.expandSegment(t,s,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=py(e,r,s);if(!o)return cy(e);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?uy(u):this.lineralizeSegments(r,u).pipe($(r=>this.expandSegment(t,e,n,r.concat(s.slice(l)),i,!1)))}matchSegmentAgainstRoute(t,e,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(j(t=>(n._loadedConfig=t,new dg(r,{})))):Xh(new dg(r,{}));const{matched:s,consumedSegments:i,lastChild:o}=py(e,n,r);if(!s)return cy(e);const a=r.slice(o);return this.getChildConfig(t,n,r).pipe($(t=>{const n=t.module,r=t.routes,{segmentGroup:s,slicedSegments:o}=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some(n=>my(t,e,n)&&"primary"!==gy(n))}(t,n,r)?{segmentGroup:fy(new dg(e,function(t,e){const n={};n.primary=e;for(const r of t)""===r.path&&"primary"!==gy(r)&&(n[gy(r)]=new dg([],{}));return n}(r,new dg(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>my(t,e,n))}(t,n,r)?{segmentGroup:fy(new dg(t.segments,function(t,e,n,r){const s={};for(const i of n)my(t,e,i)&&!r[gy(i)]&&(s[gy(i)]=new dg([],{}));return Object.assign(Object.assign({},r),s)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,i,a,r);return 0===o.length&&s.hasChildren()?this.expandChildren(n,r,s).pipe(j(t=>new dg(i,t))):0===r.length&&0===o.length?Xh(new dg(i,{})):this.expandSegment(n,s,r,o,"primary",!0).pipe(j(t=>new dg(i.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Xh(new Xm(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Xh(e._loadedConfig):function(t,e,n){const r=e.canLoad;return r&&0!==r.length?H(r).pipe(j(r=>{const s=t.get(r);let i;if(function(t){return t&&iy(t.canLoad)}(s))i=s.canLoad(e,n);else{if(!iy(s))throw new Error("Invalid CanLoad guard");i=s(e,n)}return cg(i)})).pipe(Wd(),(s=t=>!0===t,t=>t.lift(new xm(s,void 0,t)))):Xh(!0);var s}(t.injector,e,n).pipe($(n=>n?this.configLoader.load(t.injector,e).pipe(j(t=>(e._loadedConfig=t,t))):function(t){return new w(e=>e.error(Jm(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Xh(new Xm([],t))}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Xh(n);if(r.numberOfChildren>1||!r.children.primary)return hy(t.redirectTo);r=r.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const s=this.createSegmentGroup(t,e.root,n,r);return new hg(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return lg(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[r]=e[s]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const s=this.createSegments(t,e.segments,n,r);let i={};return lg(e.children,(e,s)=>{i[s]=this.createSegmentGroup(t,e,n,r)}),new dg(s,i)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function py(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||Ym)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function fy(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new dg(t.segments.concat(e.segments),e.children)}return t}function my(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function gy(t){return t.outlet||"primary"}class yy{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class vy{constructor(t,e){this.component=t,this.route=e}}function _y(t,e,n){const r=t._root;return function t(e,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=Mg(n);return e.children.forEach(e=>{!function(e,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,a=n?n.value:null,l=r?r.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!fg(t.url,e.url);case"pathParamsOrQueryParamsChange":return!fg(t.url,e.url)||!sg(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Bg(t,e)||!sg(t.queryParams,e.queryParams);case"paramsChange":default:return!Bg(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new yy(s)):(o.data=a.data,o._resolvedData=a._resolvedData),t(e,n,o.component?l?l.children:null:r,s,i),c&&i.canDeactivateChecks.push(new vy(l&&l.outlet&&l.outlet.component||null,a))}else a&&by(n,l,i),i.canActivateChecks.push(new yy(s)),t(e,null,o.component?l?l.children:null:r,s,i)}(e,o[e.value.outlet],r,s.concat([e.value]),i),delete o[e.value.outlet]}),lg(o,(t,e)=>by(t,r.getContext(e),i)),i}(r,e?e._root:null,n,[r.value])}function wy(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 by(t,e,n){const r=Mg(t),s=t.value;lg(r,(t,r)=>{by(t,s.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new vy(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}const Cy=Symbol("INITIAL_VALUE");function Sy(){return Zd(t=>function(...t){let e=null,n=null;return T(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]),W(t,n).lift(new Fd(e))}(...t.map(t=>t.pipe(rp(1),function(...t){const e=t[t.length-1];return T(e)?(t.pop(),n=>Gd(t,n,e)):e=>Gd(t,e)}(Cy)))).pipe(km((t,e)=>{let n=!1;return e.reduce((t,r,s)=>{if(t!==Cy)return t;if(r===Cy&&(n=!0),!n){if(!1===r)return r;if(s===e.length-1||oy(r))return r}return t},t)},Cy),ed(t=>t!==Cy),j(t=>oy(t)?t:!0===t),rp(1)))}function xy(t,e){return null!==t&&e&&e(new Bm(t)),Xh(!0)}function Ey(t,e){return null!==t&&e&&e(new zm(t)),Xh(!0)}function ky(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?Xh(r.map(r=>Jp(()=>{const s=wy(r,e,n);let i;if(function(t){return t&&iy(t.canActivate)}(s))i=cg(s.canActivate(e,t));else{if(!iy(s))throw new Error("Invalid CanActivate guard");i=cg(s(e,t))}return i.pipe(Sm())}))).pipe(Sy()):Xh(!0)}function Ty(t,e,n){const r=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Jp(()=>Xh(e.guards.map(s=>{const i=wy(s,e.node,n);let o;if(function(t){return t&&iy(t.canActivateChild)}(i))o=cg(i.canActivateChild(r,t));else{if(!iy(i))throw new Error("Invalid CanActivateChild guard");o=cg(i(r,t))}return o.pipe(Sm())})).pipe(Sy())));return Xh(s).pipe(Sy())}class Ay{}class Iy{constructor(t,e,n,r,s,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){try{const t=Ny(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new Lg([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Pg(n,e),s=new Hg(this.url,r);return this.inheritParamsAndData(s._root),Xh(s)}catch(t){return new w(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=Ug(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=mg(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),r=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${r}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,r){for(const i of t)try{return this.processSegmentAgainstRoute(i,e,n,r)}catch(s){if(!(s instanceof Ay))throw s}if(this.noLeftoversInUrl(e,n,r))return[];throw new Ay}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo)throw new Ay;if((t.outlet||"primary")!==r)throw new Ay;let s,i=[],o=[];if("**"===t.path){const i=n.length>0?ag(n).parameters:{};s=new Lg(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,My(t),r,t.component,t,Oy(e),Ry(e)+n.length,Dy(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Ay;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(e.matcher||Ym)(n,t,e);if(!r)throw new Ay;const s={};lg(r.posParams,(t,e)=>{s[e]=t.path});const i=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(e,t,n);i=a.consumedSegments,o=n.slice(a.lastChild),s=new Lg(i,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,My(t),r,t.component,t,Oy(e),Ry(e)+i.length,Dy(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Ny(e,i,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new Pg(s,t)]}if(0===a.length&&0===c.length)return[new Pg(s,[])];const u=this.processSegment(a,l,c,"primary");return[new Pg(s,u)]}}function Oy(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Ry(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 Ny(t,e,n,r,s){if(n.length>0&&function(t,e,n){return n.some(n=>Vy(t,e,n)&&"primary"!==Py(n))}(t,n,r)){const s=new dg(e,function(t,e,n,r){const s={};s.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&"primary"!==Py(i)){const n=new dg([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Py(i)]=n}return s}(t,e,r,new dg(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Vy(t,e,n))}(t,n,r)){const i=new dg(t.segments,function(t,e,n,r,s,i){const o={};for(const a of r)if(Vy(t,n,a)&&!s[Py(a)]){const n=new dg([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===i?t.segments.length:e.length,o[Py(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,r,t.children,s));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}const i=new dg(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function Vy(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Py(t){return t.outlet||"primary"}function My(t){return t.data||{}}function Dy(t){return t.resolve||{}}function jy(t,e,n,r){const s=wy(t,e,r);return cg(s.resolve?s.resolve(e,n):s(e,n))}function Fy(t){return function(e){return e.pipe(Zd(e=>{const n=t(e);return n?H(n).pipe(j(()=>e)):H([e])}))}}class Uy{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const Ly=new jt("ROUTES");class Hy{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(j(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new Xm(og(r.injector.get(Ly)).map(rg),r)}))}loadModuleFactory(t){return"string"==typeof t?H(this.loader.load(t)):cg(t()).pipe($(t=>t instanceof Yt?Xh(t):H(this.compiler.compileModuleAsync(t))))}}class $y{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function zy(t){throw t}function qy(t,e,n){return e.parse("/")}function By(t,e){return Xh(null)}let Wy=(()=>{class t{constructor(t,e,n,r,s,i,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new E,this.errorHandler=zy,this.malformedUriErrorHandler=qy,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:By,afterPreactivation:By},this.urlHandlingStrategy=new $y,this.routeReuseStrategy=new Uy,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(Jt),this.console=s.get(xl);const l=s.get(Fl);this.isNgZoneEnabled=l instanceof Fl,this.resetConfig(a),this.currentUrlTree=new hg(new dg([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Hy(i,o,t=>this.triggerEvent(new Hm(t)),t=>this.triggerEvent(new $m(t))),this.routerState=jg(this.currentUrlTree,this.rootComponentType),this.transitions=new Dd({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(ed(t=>0!==t.id),j(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Zd(t=>{let n=!1,r=!1;return Xh(t).pipe(op(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}}),Zd(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Xh(t).pipe(Zd(t=>{const n=this.transitions.getValue();return e.next(new Nm(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?ep:[t]}),Zd(t=>Promise.resolve(t)),(r=this.ngModule.injector,s=this.configLoader,i=this.urlSerializer,o=this.config,function(t){return t.pipe(Zd(t=>function(t,e,n,r,s){return new dy(t,e,n,r,s).apply()}(r,s,i,t.extractedUrl,o).pipe(j(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),op(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,s){return function(i){return i.pipe($(i=>function(t,e,n,r,s="emptyOnly",i="legacy"){return new Iy(t,e,n,r,s,i).recognize()}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe(j(t=>Object.assign(Object.assign({},i),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),op(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),op(t=>{const n=new Dm(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var r,s,i,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:i,extras:o}=t,a=new Nm(n,this.serializeUrl(r),s,i);e.next(a);const l=jg(r,this.rootComponentType).snapshot;return Xh(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),ep}),Fy(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),op(t=>{const e=new jm(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),j(t=>Object.assign(Object.assign({},t),{guards:_y(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe($(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?Xh(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return H(t).pipe($(t=>function(t,e,n,r,s){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?Xh(i.map(i=>{const o=wy(i,e,s);let a;if(function(t){return t&&iy(t.canDeactivate)}(o))a=cg(o.canDeactivate(t,e,n,r));else{if(!iy(o))throw new Error("Invalid CanDeactivate guard");a=cg(o(t,e,n,r))}return a.pipe(Sm())})).pipe(Sy()):Xh(!0)}(t.component,t.route,n,e,r)),Sm(t=>!0!==t,!0))}(o,r,s,t).pipe($(n=>n&&"boolean"==typeof n?function(t,e,n,r){return H(e).pipe(td(e=>H([Ey(e.route.parent,r),xy(e.route,r),Ty(t,e.path,n),ky(t,e.route,n)]).pipe(Wd(),Sm(t=>!0!==t,!0))),Sm(t=>!0!==t,!0))}(r,i,t,e):Xh(n)),j(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),op(t=>{if(oy(t.guardsResult)){const e=Jm(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),op(t=>{const e=new Fm(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),ed(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Pm(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Fy(t=>{if(t.guards.canActivateChecks.length)return Xh(t).pipe(op(t=>{const e=new Um(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($(t=>{const{targetSnapshot:r,guards:{canActivateChecks:s}}=t;return s.length?H(s).pipe(td(t=>function(t,e,n,r){return function(t,e,n,r){const s=Object.keys(t);if(0===s.length)return Xh({});if(1===s.length){const i=s[0];return jy(t[i],e,n,r).pipe(j(t=>({[i]:t})))}const i={};return H(s).pipe($(s=>jy(t[s],e,n,r).pipe(j(t=>(i[s]=t,t))))).pipe(_m(),j(()=>i))}(t._resolve,t,e,r).pipe(j(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Ug(t,n).resolve),null)))}(t.route,r,e,n)),function(t,e){return arguments.length>=2?function(n){return v(km(t,e),cm(1),gm(e))(n)}:function(e){return v(km((e,n,r)=>t(e,n,r+1)),cm(1))(e)}}((t,e)=>t),j(e=>t)):Xh(t)}))}),op(t=>{const e=new Lm(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,n}),Fy(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),j(t=>{const e=function(t,e,n){const r=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){const s=r.value;s._futureSnapshot=n.value;const i=function(e,n,r){return n.children.map(n=>{for(const s of r.children)if(e.shouldReuseRoute(s.value.snapshot,n.value))return t(e,n,s);return t(e,n)})}(e,n,r);return new Pg(s,i)}{const r=e.retrieve(n.value);if(r){const t=r.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let r=0;rt(e,n));return new Pg(r,i)}}var s}(t,e._root,n?n._root:void 0);return new Dg(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),op(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(i=this.rootContexts,o=this.routeReuseStrategy,a=t=>this.triggerEvent(t),j(t=>(new ry(o,t.targetRouterState,t.currentRouterState,a).activate(i),t))),op({next(){n=!0},complete(){n=!0}}),(s=()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new Pm(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 Im(s))),wm(n=>{if(r=!0,(s=n)&&s.ngNavigationCancelingError){const r=oy(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new Pm(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),r?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const r=new Mm(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(i){t.reject(i)}}var s;return ep}));var s,i,o,a})))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const n="popstate"===t.type?"popstate":"hashchange",r=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){tg(t),this.config=t.map(rg),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:r,fragment:s,preserveQueryParams:i,queryParamsHandling:o,preserveFragment:a}=e;lr()&&i&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,c=a?this.currentUrlTree.fragment:s;let u=null;if(o)switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}else u=i?this.currentUrlTree.queryParams:r||null;return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,n,r,s){if(0===n.length)return Gg(e.root,e.root,e,r,s);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Zg(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return lg(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new Zg(n,e,r)}(n);if(i.toRoot())return Gg(e.root,new dg([],{}),e,r,s);const o=function(t,e,n){if(t.isAbsolute)return new Kg(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new Kg(n.snapshot._urlSegment,!0,0);const r=Wg(t.commands[0])?0:1;return function(t,e,n){let r=t,s=e,i=n;for(;i>s;){if(i-=s,r=r.parent,!r)throw new Error("Invalid number of '../'");s=r.segments.length}return new Kg(r,!1,s-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=o.processChildren?Yg(o.segmentGroup,o.index,i.commands):Jg(o.segmentGroup,o.index,i.commands);return Gg(o.segmentGroup,a,e,r,s)}(l,this.currentUrlTree,t,u,c)}navigateByUrl(t,e={skipLocationChange:!1}){lr()&&this.isNgZoneEnabled&&!Fl.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=oy(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{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 Vm(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,r,s){const i=this.getTransition();if(i&&"imperative"!==e&&"imperative"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"hashchange"==e&&"popstate"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"popstate"==e&&"hashchange"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,a,l;s?(o=s.resolve,a=s.reject,l=s.promise):l=new Promise((t,e)=>{o=t,a=e});const c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:o,reject:a,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,r){const s=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},r),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(t){to()},t.\u0275dir=ye({type:t}),t})();class Gy{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Zy,this.attachRef=null}}class Zy{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 Gy,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let Ky=(()=>{class t{constructor(t,e,n,r,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new el,this.deactivateEvents=new el,this.name=r||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return(this._activatedRoute)}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new Qy(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Xi(Zy),Xi(Na),Xi(ia),("name",function(t,e){const n=t.attrs;if(n){const t=n.length;let e=0;for(;e{class t{constructor(t,e,n,r,s){this.router=t,this.injector=r,this.preloadingStrategy=s,this.loader=new Hy(e,n,e=>t.triggerEvent(new Hm(e)),e=>t.triggerEvent(new $m(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(ed(t=>t instanceof Vm),td(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Jt);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 H(n).pipe(B(),j(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe($(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(Gt(Wy),Gt(oc),Gt(Pl),Gt(Mi),Gt(Jy))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),tv=(()=>{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 Nm?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Vm&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Gm&&(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 Gm(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){to()},t.\u0275dir=ye({type:t}),t})();const ev=new jt("ROUTER_CONFIGURATION"),nv=new jt("ROUTER_FORROOT_GUARD"),rv=[Nc,{provide:gg,useClass:yg},{provide:Wy,useFactory:function(t,e,n,r,s,i,o,a={},l,c){const u=new Wy(null,t,e,n,r,s,i,og(o));if(l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),a.errorHandler&&(u.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(u.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const t=gc();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:[gg,Zy,Nc,Mi,oc,Pl,Ly,ev,[class{},new rt],[class{},new rt]]},Zy,{provide:Fg,useFactory:function(t){return t.routerState.root},deps:[Wy]},{provide:oc,useClass:cc},Xy,Yy,class{preload(t,e){return e().pipe(wm(()=>Xh(null)))}},{provide:ev,useValue:{enableTracing:!1}}];function sv(){return new Xl("Router",Wy)}let iv=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[rv,cv(e),{provide:nv,useFactory:lv,deps:[[Wy,new rt,new it]]},{provide:ev,useValue:n||{}},{provide:Tc,useFactory:av,deps:[vc,[new nt(Ic),new rt],ev]},{provide:tv,useFactory:ov,deps:[Wy,Gc,ev]},{provide:Jy,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Yy},{provide:Xl,multi:!0,useFactory:sv},[uv,{provide:gl,multi:!0,useFactory:hv,deps:[uv]},{provide:pv,useFactory:dv,deps:[uv]},{provide:Sl,multi:!0,useExisting:pv}]]}}static forChild(e){return{ngModule:t,providers:[cv(e)]}}}return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Gt(nv,8),Gt(Wy,8))}}),t})();function ov(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new tv(t,e,n)}function av(t,e,n={}){return n.useHash?new Rc(t,e):new Oc(t,e)}function lv(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function cv(t){return[{provide:Di,multi:!0,useValue:t},{provide:Ly,multi:!0,useValue:t}]}let uv=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new E}appInitializer(){return this.injector.get(wc,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Wy),r=this.injector.get(ev);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?Xh(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(ev),n=this.injector.get(Xy),r=this.injector.get(tv),s=this.injector.get(Wy),i=this.injector.get(sc);t===i.components[0]&&(this.isLegacyEnabled(e)?s.initialNavigation():this.isLegacyDisabled(e)&&s.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),s.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(Gt(Mi))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function hv(t){return t.appInitializer.bind(t)}function dv(t){return t.bootstrapListener.bind(t)}const pv=new jt("Router Initializer");let fv=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=he({type:t,selectors:[["app-dashboard"]],decls:2,vars:0,template:function(t,e){1&t&&(ro(0,"p"),Mo(1,"dashboard works!"),so())},styles:[""]}),t})();class mv{constructor(t,e,n,r,s,i,o,a){this.employer=t,this.firstName=e,this.lastName=n,this.email=r,this.phone=s,this.preference=i,this.state=o,this.fipsCode=a}}let gv=(()=>{class t{constructor(t){this.httpClient=t,this.memberUrl=`${fc}`+"/member",this.unsubscribeUrl=`${fc}`+"/notification/email/unsubscribe"}enroll(t){return console.log("enroll: "+JSON.stringify(t)),this.httpClient.post(this.memberUrl,t).pipe(wm(t=>Xh(t)))}unsubscribe(t){return console.log("enroll: "+JSON.stringify(t)),this.httpClient.post(this.unsubscribeUrl,t).pipe(wm(t=>Xh(t)))}}return t.\u0275fac=function(e){return new(e||t)(Gt(wd))},t.\u0275prov=ct({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),yv=(()=>{class t{constructor(t){this.http=t}getAll(){return this.http.get("../../../assets/states.json")}}return t.\u0275fac=function(e){return new(e||t)(Gt(wd))},t.\u0275prov=ct({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vv=(()=>{class t{constructor(t){this.http=t}checkAlreadyExists(t){return Xh("asdf@asdf.asdf"===t)}}return t.\u0275fac=function(e){return new(e||t)(Gt(wd))},t.\u0275prov=ct({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_v=(()=>{class t{constructor(t){this.http=t}checkAlreadyExists(t){return Xh("1234567890"===t)}}return t.\u0275fac=function(e){return new(e||t)(Gt(wd))},t.\u0275prov=ct({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),wv=(()=>{class t{constructor(t){this.http=t}checkCaptcha(t){return this.http.post(fc+"/recaptcha",t)}onDestroy(){tm.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()}}}return t.\u0275fac=function(e){return new(e||t)(Gt(wd))},t.\u0275prov=ct({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function bv(t,e){if(1&t&&(ro(0,"label",5),Mo(1),so()),2&t){const t=ho();eo("for",t.name),Wr(1),Do(t.labelName)}}function Cv(t,e){if(1&t&&(ro(0,"option",6),Mo(1),so()),2&t){const t=e.$implicit;eo("value",t),Wr(1),Do(t)}}function Sv(t,e){if(1&t&&(ro(0,"small",8),Mo(1),so()),2&t){const t=ho(2);eo("id",t.name+"Error"),Wr(1),jo("",t.name," is required. ")}}function xv(t,e){if(1&t&&(ro(0,"div"),Yi(1,Sv,2,2,"small",7),so()),2&t){const t=ho();Wr(1),eo("ngIf",t.control.invalid&&t.control.dirty&&t.control.errors.required)}}let Ev=(()=>{class t{constructor(){this.showColon=!0,this.required=!1,this.showValidation=!1}ngOnInit(){}get labelName(){return this.showColon?this.label+":":this.label}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=he({type:t,selectors:[["app-dropdown"]],inputs:{control:"control",options:"options",label:"label",name:"name",validationName:"validationName",showColon:"showColon",required:"required",showValidation:"showValidation"},decls:6,vars:11,consts:[["class","col-form-label font-weight-bold",3,"for",4,"ngIf"],[1,"custom-select",3,"id","formControl","required"],["value",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"col-form-label","font-weight-bold",3,"for"],[3,"value"],["class","text-danger","aria-live","assertive","translate","",3,"id",4,"ngIf"],["aria-live","assertive","translate","",1,"text-danger",3,"id"]],template:function(t,e){1&t&&(Yi(0,bv,2,2,"label",0),ro(1,"select",1),ro(2,"option",2),Mo(3),so(),Yi(4,Cv,2,2,"option",3),so(),Yi(5,xv,2,1,"div",4)),2&t&&(eo("ngIf",e.label),Wr(1),So("is-invalid",e.control.invalid&&e.control.dirty),eo("id",e.name)("formControl",e.control)("required",e.required),Qi("aria-describedby",e.name+"Error")("aria-labelledby",e.name+"Error"),Wr(2),Do(e.name),Wr(1),eo("ngForOf",e.options),Wr(1),eo("ngIf",e.showValidation))},directives:[$c,ah,ju,jh,Zh,lh,dh,Lc],styles:[".ng-pristine[required][_ngcontent-%COMP%], .ng-valid.required[_ngcontent-%COMP%], .ng-valid[required][_ngcontent-%COMP%]{border-left:5px solid #42a948}.ng-invalid[_ngcontent-%COMP%]:not(form){border-left:5px solid #a94442}.custom-select.is-invalid[_ngcontent-%COMP%]{background-image:none}"]}),t})();function kv(t,e){1&t&&(ro(0,"div"),Mo(1),Ja(2,"translate"),so()),2&t&&(Wr(1),Do(Ya(2,1,"loginComponent.signUpForm.firstName.required")))}function Tv(t,e){1&t&&(ro(0,"div"),Mo(1),Ja(2,"translate"),so()),2&t&&(Wr(1),Do(Ya(2,1,"loginComponent.signUpForm.firstName.maxLength")))}function Av(t,e){1&t&&(ro(0,"div"),Mo(1),Ja(2,"translate"),so()),2&t&&(Wr(1),Do(Ya(2,1,"loginComponent.signUpForm.lastName.required")))}function Iv(t,e){1&t&&(ro(0,"div"),Mo(1),Ja(2,"translate"),so()),2&t&&(Wr(1),Do(Ya(2,1,"loginComponent.signUpForm.lastName.maxLength")))}function Ov(t,e){1&t&&(ro(0,"div"),Mo(1),Ja(2,"translate"),so()),2&t&&(Wr(1),Do(Ya(2,1,"loginComponent.signUpForm.phone.required")))}function Rv(t,e){1&t&&(ro(0,"div"),Mo(1),Ja(2,"translate"),so()),2&t&&(Wr(1),Do(Ya(2,1,"loginComponent.signUpForm.phone.taken")))}function Nv(t,e){1&t&&(ro(0,"div"),Mo(1),Ja(2,"translate"),so()),2&t&&(Wr(1),Do(Ya(2,1,"loginComponent.signUpForm.phone.mask")))}function Vv(t,e){1&t&&(ro(0,"div"),Mo(1),Ja(2,"translate"),so()),2&t&&(Wr(1),Do(Ya(2,1,"loginComponent.signUpForm.phone.mask")))}function Pv(t,e){1&t&&(ro(0,"div"),Mo(1),Ja(2,"translate"),so()),2&t&&(Wr(1),Do(Ya(2,1,"loginComponent.signUpForm.phone.invalid")))}function Mv(t,e){1&t&&(ro(0,"div"),Mo(1),Ja(2,"translate"),so()),2&t&&(Wr(1),Do(Ya(2,1,"loginComponent.signUpForm.email.required")))}function Dv(t,e){1&t&&(ro(0,"div"),Mo(1),Ja(2,"translate"),so()),2&t&&(Wr(1),Do(Ya(2,1,"loginComponent.signUpForm.email.maxLength")))}function jv(t,e){1&t&&(ro(0,"div"),Mo(1),Ja(2,"translate"),so()),2&t&&(Wr(1),Do(Ya(2,1,"loginComponent.signUpForm.email.pattern")))}function Fv(t,e){1&t&&(ro(0,"div"),Mo(1),Ja(2,"translate"),so()),2&t&&(Wr(1),Do(Ya(2,1,"loginComponent.signUpForm.email.taken")))}function Uv(t,e){1&t&&(ro(0,"div"),Mo(1),Ja(2,"translate"),so()),2&t&&(Wr(1),Do(Ya(2,1,"loginComponent.signUpForm.state.required")))}function Lv(t,e){1&t&&(ro(0,"div"),Mo(1),Ja(2,"translate"),so()),2&t&&(Wr(1),jo(" ",Ya(2,1,"loginComponent.signUpForm.county.required")," "))}function Hv(t,e){if(1&t&&(ro(0,"div",10),ro(1,"div",17),io(2,"app-dropdown",36),ro(3,"div",19),Yi(4,Lv,3,3,"div",13),so(),so(),so()),2&t){const t=ho();Wr(2),eo("control",t.signUpForm.controls.county)("options",t.countyOptions),Wr(1),eo("hidden","VALID"===t.signUpForm.controls.county.status||t.signUpForm.controls.county.pristine||t.signUpForm.controls.county.disabled),Wr(1),eo("ngIf",null==t.signUpForm.controls.county.errors?null:t.signUpForm.controls.county.errors.required)}}function $v(t,e){1&t&&(ro(0,"h4"),Mo(1),Ja(2,"translate"),so()),2&t&&(Wr(1),Do(Ya(2,1,"loginComponent.thankYou")))}function zv(t,e){if(1&t&&(ro(0,"h4"),Mo(1),Ja(2,"translate"),so()),2&t){const t=ho();Wr(1),jo("",function(t,e,n,r){const s=We(),i=je(s,t);return tl(s,Xa(s,t)?function(t,e,n,r,s,i,o){const a=e+n;return Ki(t,a,s,i)?Gi(t,a+2,o?r.call(o,s,i):r(s,i)):Qa(t,a+2)}(s,tn(),e,i.transform,n,r,i):i.transform(n,r))}(2,1,"loginComponent.restartSmsMessage",t.param)," ")}}class qv{constructor(t,e,n,r,s,i,o,a){this.employer=t,this.firstName=e,this.lastName=n,this.email=r,this.phone=s,this.preference=i,this.state=o,this.registrationDate=a}}const Bv=[{path:"",redirectTo:"/register",pathMatch:"full"},{path:"register",component:(()=>{class t{constructor(t,e,n,r,s,i,o,a){this.service=t,this.fb=e,this.stateService=n,this.emailService=r,this.phoneService=s,this.httpClient=i,this.spinnerService=o,this.captchaService=a,this.checkCaptchaSubscription=null,this.siteKey="6LdFn8oaAAAAAJfE-spYyvWDeELP1PT5v9lLHfnC",this.RECAPTCHA_ERROR="Recaptcha is invalid",this.nameMaxLength=50,this.emailMaxLength=256,this.emailPattern="^.{1,64}@[^.].*[.].*$",this.isMemberDuplicate=!1,this.signUpForm=this.fb.group({firstName:this.fb.control([""],[zu.required,zu.maxLength(this.nameMaxLength)]),lastName:this.fb.control([""],[zu.required,zu.maxLength(this.nameMaxLength)]),email:this.fb.control([""],[zu.required,zu.maxLength(this.emailMaxLength),zu.pattern(this.emailPattern)]),phone:this.fb.control("",[zu.required]),state:this.fb.control(["Mississippi"],[zu.required]),county:this.fb.control("Adams",[zu.required]),preference:this.fb.control("",[zu.required]),recaptcha:this.fb.control("",[zu.required])}),this.stateOptions=[],this.countyOptions=[],this.stateValue="MS",this.countyValue="28001",this.model=new mv("MDES","","","","","","",""),this.param={},this.isResubscribed=!1,this.submitted=!1}ngOnDestroy(){this.checkCaptchaSubscription&&this.checkCaptchaSubscription.unsubscribe()}ngOnInit(){this.param={startPhoneNumber:"0(000)000-0000"},this.stateService.getAll().subscribe(t=>{this.states=t,this.stateOptions=t.map(t=>t.description);const e=t.filter(t=>t.code===this.stateValue).pop();this.countyOptions=e?e.counties.map(t=>t.description):[]}),this.onFormChanges()}onFormChanges(){this.signUpForm.controls.state.valueChanges.subscribe(t=>{this.isMemberDuplicate=!1,this.updateStateValue()}),this.signUpForm.controls.county.valueChanges.subscribe(t=>{this.updateCountyValue()})}updateStateValue(){this.states.forEach(t=>{t.description==this.signUpForm.controls.state.value&&(this.stateValue=t.code,t.hasOwnProperty("counties")?(this.signUpForm.controls.county.disabled&&this.signUpForm.controls.county.enable(),this.countyOptions=t.counties.map(t=>t.description)):(this.signUpForm.controls.county.enabled&&this.signUpForm.controls.county.disable(),this.countyOptions=[],this.countyValue=t.fipsCode))})}updateCountyValue(){let t;for(const e in this.states)this.states[e].description==this.signUpForm.controls.state.value&&(t=this.states[e]);t&&(t.hasOwnProperty("counties")&&t.counties.length>0?t.counties.forEach(t=>{t.description==this.signUpForm.controls.county.value&&(this.countyValue=t.fipsCode)}):this.countyValue=t.fipsCode)}onSubmit(){let t=this.signUpForm.value;t.phone="+1"+t.phone,this.da=new mv("MDES",t.firstName.toUpperCase(),t.lastName.toUpperCase(),t.email,t.phone,t.preference,this.stateValue,this.countyValue);let e={validationData:this.recaptchaResponse};this.da.url="https://talent.mdes.uat.nsparc.com",this.spinnerService.show(),this.checkCaptchaSubscription=this.captchaService.checkCaptcha(e).subscribe(t=>{!0===t.success?this.doSignup():this.resetCaptcha()})}doSignup(){try{this.service.enroll(this.da).subscribe(t=>{t.error?(t.error.message.includes("The member is already taken")&&(console.log("MEMBER TAKEN"),this.isMemberDuplicate=!0,this.submitted=!1),t.error.message.includes("The email is already taken")&&(console.log("EMAIL TAKEN"),this.signUpForm.controls.email.setErrors({taken:!0}),this.submitted=!1),t.error.message.includes("The phone is already taken")&&(console.log("PHONE TAKEN"),this.signUpForm.controls.phone.setErrors({taken:!0}),this.submitted=!1),t.error.message.includes("Invalid Phone Number")&&(console.log("Invalid phone number"),this.signUpForm.controls.phone.setErrors({invalid:!0})),t.error.message.includes("Invalid Phone Format")&&(console.log("Invalid phone format"),this.signUpForm.controls.phone.setErrors({invalidFormat:!0}))):(this.submitted=!0,this.isResubscribed=!0===t.isResubscribed,this.resetForm()),this.resetCaptcha(),this.spinnerService.hide()})}catch(t){this.resetCaptcha()}}resetCaptcha(){this.recaptchaComponent&&(this.recaptchaComponent.reset(),this.recaptchaResponse=null)}resetForm(){Object.keys(this.signUpForm.controls).forEach(t=>{"phone"==t?(this.signUpForm.controls.phone.setValue(""),this.signUpForm.controls.phone.markAsUntouched(),this.signUpForm.controls.phone.markAsPristine()):this.signUpForm.controls[t].reset()}),this.signUpForm.controls.state.setValue("Mississippi"),this.signUpForm.controls.county.setValue("Adams")}resolvedRecaptcha(t){this.recaptchaResponse=t,this.errorMessage=this.errorMessage===this.RECAPTCHA_ERROR?"":this.errorMessage}newHero(){this.model=new mv("MDES","","","","","","","")}}return t.\u0275fac=function(e){return new(e||t)(Xi(gv),Xi(Qh),Xi(yv),Xi(vv),Xi(_v),Xi(wd),Xi(Bf),Xi(wv))},t.\u0275cmp=he({type:t,selectors:[["app-login"]],viewQuery:function(t,e){var n,r;1&t&&(r=tm,!0,pl(Ge(),We(),r,!0,void 0,!1)),2&t&&dl(n=fl())&&(e.recaptchaComponent=n.first)},decls:108,vars:80,consts:[[1,"container","main-content"],[1,"row"],[1,"col-md-7","signup-form"],[1,"container"],[3,"innerHtml"],[1,"col-md-5","signup-form"],[1,"container",3,"hidden"],[1,"col"],[1,"container",3,"formGroup","ngSubmit"],[1,"alert","alert-danger",3,"hidden"],[1,"form-group","row"],["type","text","id","name","required","","formControlName","firstName",1,"form-control",3,"placeholder"],[1,"alert","alert-danger","col","mb-0",3,"hidden"],[4,"ngIf"],["type","text","id","name","required","","formControlName","lastName",1,"form-control",3,"placeholder"],["type","tel","id","phone","required","","formControlName","phone","mask","(000)000-0000",1,"form-control",3,"placeholder"],["type","email","id","email","required","","formControlName","email",1,"form-control",3,"placeholder"],[1,"col","pl-0","pr-0"],["name","State","required","true",3,"control","options","validationName"],[1,"alert","alert-danger","mb-0",3,"hidden"],["class","form-group row",4,"ngIf"],["for","preference",1,"pt-3"],[1,"mb-1"],[1,"custom-control","custom-radio","custom-control-inline"],["type","radio","name","preference","id","preference1","required","","formControlName","preference","value","E",1,"custom-control-input","align-middle"],["for","preference1",1,"custom-control-label","align-middle"],["type","radio","name","preference","id","preference2","required","","formControlName","preference","value","S",1,"custom-control-input"],["for","preference2",1,"custom-control-label"],["type","radio","name","preference","id","preference3","required","","formControlName","preference","value","B",1,"custom-control-input"],["for","preference3",1,"custom-control-label"],[1,"login-recaptcha","mb-2"],["name","recaptcha","formControlName","recaptcha",3,"siteKey","resolved"],[1,"row","float-right"],["type","submit",1,"btn","btn-success",3,"disabled"],[1,"float-right"],[1,"btn","btn-primary",3,"click"],["name","County","required","true",3,"control","options"]],template:function(t,e){1&t&&(ro(0,"div",0),ro(1,"div",1),ro(2,"div",2),ro(3,"div",3),ro(4,"div",1),ro(5,"h1"),Mo(6),Ja(7,"translate"),so(),so(),ro(8,"div",1),io(9,"p",4),Ja(10,"translate"),so(),ro(11,"div",1),ro(12,"p"),Mo(13),Ja(14,"translate"),so(),so(),so(),so(),ro(15,"div",5),ro(16,"div",6),ro(17,"div",1),ro(18,"div",7),ro(19,"h1"),Mo(20),Ja(21,"translate"),so(),so(),so(),ro(22,"div",1),ro(23,"div",7),ro(24,"form",8),lo("ngSubmit",(function(){return e.onSubmit()})),ro(25,"div",1),ro(26,"div",7),ro(27,"div",9),ro(28,"div"),Mo(29),Ja(30,"translate"),so(),so(),so(),so(),ro(31,"div",10),io(32,"input",11),Ja(33,"translate"),ro(34,"div",12),Yi(35,kv,3,3,"div",13),Yi(36,Tv,3,3,"div",13),so(),so(),ro(37,"div",10),io(38,"input",14),Ja(39,"translate"),ro(40,"div",12),Yi(41,Av,3,3,"div",13),Yi(42,Iv,3,3,"div",13),so(),so(),ro(43,"div",10),io(44,"input",15),Ja(45,"translate"),ro(46,"div",12),Yi(47,Ov,3,3,"div",13),Yi(48,Rv,3,3,"div",13),Yi(49,Nv,3,3,"div",13),Yi(50,Vv,3,3,"div",13),Yi(51,Pv,3,3,"div",13),so(),so(),ro(52,"div",10),io(53,"input",16),Ja(54,"translate"),ro(55,"div",12),Yi(56,Mv,3,3,"div",13),Yi(57,Dv,3,3,"div",13),Yi(58,jv,3,3,"div",13),Yi(59,Fv,3,3,"div",13),so(),so(),ro(60,"div",10),ro(61,"div",17),io(62,"app-dropdown",18),ro(63,"div",19),Yi(64,Uv,3,3,"div",13),so(),so(),so(),Yi(65,Hv,5,4,"div",20),ro(66,"div",1),ro(67,"label",21),Mo(68),Ja(69,"translate"),so(),ro(70,"div",22),ro(71,"div",23),io(72,"input",24),ro(73,"label",25),Mo(74),Ja(75,"translate"),so(),so(),ro(76,"div",23),io(77,"input",26),ro(78,"label",27),Mo(79),Ja(80,"translate"),so(),so(),ro(81,"div",23),io(82,"input",28),ro(83,"label",29),Mo(84),Ja(85,"translate"),so(),so(),so(),ro(86,"div",9),Mo(87),Ja(88,"translate"),so(),so(),ro(89,"div",1),ro(90,"div",30),ro(91,"re-captcha",31),lo("resolved",(function(t){return e.resolvedRecaptcha(t)})),so(),so(),so(),ro(92,"div",32),ro(93,"button",33),Mo(94),Ja(95,"translate"),so(),so(),so(),so(),so(),so(),ro(96,"div",6),ro(97,"div",1),ro(98,"div",7),Yi(99,$v,3,3,"h4",13),Yi(100,zv,3,4,"h4",13),so(),so(),io(101,"br"),ro(102,"div",1),ro(103,"div",7),ro(104,"div",34),ro(105,"button",35),lo("click",(function(){return e.submitted=!e.submitted})),Mo(106),Ja(107,"translate"),so(),so(),so(),so(),so(),so(),so(),so()),2&t&&(Wr(6),Do(Ya(7,48,"loginComponent.employerSection.heading")),Wr(3),eo("innerHtml",Ya(10,50,"loginComponent.employerSection.paragraph1"),Rr),Wr(4),Do(Ya(14,52,"loginComponent.employerSection.paragraph2")),Wr(3),eo("hidden",e.submitted),Wr(4),Do(Ya(21,54,"loginComponent.signUpForm.title")),Wr(4),eo("formGroup",e.signUpForm),Wr(3),eo("hidden",!e.isMemberDuplicate),Wr(2),Do(Ya(30,56,"loginComponent.signUpForm.duplicateUser")),Wr(3),po("placeholder",Ya(33,58,"loginComponent.signUpForm.firstName.placeholder")),Wr(2),eo("hidden","VALID"===e.signUpForm.controls.firstName.status||e.signUpForm.controls.firstName.pristine),Wr(1),eo("ngIf",null==e.signUpForm.controls.firstName.errors?null:e.signUpForm.controls.firstName.errors.required),Wr(1),eo("ngIf",null==e.signUpForm.controls.firstName.errors?null:e.signUpForm.controls.firstName.errors.maxlength),Wr(2),po("placeholder",Ya(39,60,"loginComponent.signUpForm.lastName.placeholder")),Wr(2),eo("hidden","VALID"===e.signUpForm.controls.lastName.status||e.signUpForm.controls.lastName.pristine),Wr(1),eo("ngIf",null==e.signUpForm.controls.lastName.errors?null:e.signUpForm.controls.lastName.errors.required),Wr(1),eo("ngIf",null==e.signUpForm.controls.lastName.errors?null:e.signUpForm.controls.lastName.errors.maxlength),Wr(2),po("placeholder",Ya(45,62,"loginComponent.signUpForm.phone.placeholder")),Wr(2),eo("hidden","VALID"===e.signUpForm.controls.phone.status||e.signUpForm.controls.phone.pristine),Wr(1),eo("ngIf",null==e.signUpForm.controls.phone.errors?null:e.signUpForm.controls.phone.errors.required),Wr(1),eo("ngIf",null==e.signUpForm.controls.phone.errors?null:e.signUpForm.controls.phone.errors.taken),Wr(1),eo("ngIf",null==e.signUpForm.controls.phone.errors?null:e.signUpForm.controls.phone.errors.mask),Wr(1),eo("ngIf",null==e.signUpForm.controls.phone.errors?null:e.signUpForm.controls.phone.errors.invalidFormat),Wr(1),eo("ngIf",null==e.signUpForm.controls.phone.errors?null:e.signUpForm.controls.phone.errors.invalid),Wr(2),po("placeholder",Ya(54,64,"loginComponent.signUpForm.email.placeholder")),Wr(2),eo("hidden","VALID"===e.signUpForm.controls.email.status||e.signUpForm.controls.email.pristine),Wr(1),eo("ngIf",null==e.signUpForm.controls.email.errors?null:e.signUpForm.controls.email.errors.required),Wr(1),eo("ngIf",null==e.signUpForm.controls.email.errors?null:e.signUpForm.controls.email.errors.maxlength),Wr(1),eo("ngIf",null==e.signUpForm.controls.email.errors?null:e.signUpForm.controls.email.errors.pattern),Wr(1),eo("ngIf",null==e.signUpForm.controls.email.errors?null:e.signUpForm.controls.email.errors.taken),Wr(3),eo("control",e.signUpForm.controls.state)("options",e.stateOptions)("validationName","required"),Wr(1),eo("hidden","VALID"===e.signUpForm.controls.state.status||e.signUpForm.controls.state.pristine),Wr(1),eo("ngIf",null==e.signUpForm.controls.state.errors?null:e.signUpForm.controls.state.errors.required),Wr(1),eo("ngIf",e.signUpForm.controls.county.enabled),Wr(3),Do(Ya(69,66,"loginComponent.signUpForm.preference.question")),Wr(6),Do(Ya(75,68,"loginComponent.signUpForm.preference.emailOption")),Wr(5),Do(Ya(80,70,"loginComponent.signUpForm.preference.smsOption")),Wr(5),Do(Ya(85,72,"loginComponent.signUpForm.preference.bothOption")),Wr(2),eo("hidden","VALID"===e.signUpForm.controls.preference.status||e.signUpForm.controls.preference.pristine),Wr(1),Do(Ya(88,74,"loginComponent.signUpForm.preference.required")),Wr(4),po("siteKey",e.siteKey),Wr(2),eo("disabled","INVALID"===e.signUpForm.status),Wr(1),Do(Ya(95,76,"loginComponent.signUpForm.submitButton")),Wr(2),eo("hidden",!e.submitted),Wr(3),eo("ngIf",!e.isResubscribed),Wr(1),eo("ngIf",e.isResubscribed),Wr(6),jo(" ",Ya(107,78,"loginComponent.goBackButton")," "))},directives:[Ph,Fu,Uh,Ou,Zh,ju,Wh,$c,$f,Ev,Xu,tm,sm],pipes:[Tf],styles:[".main-content[_ngcontent-%COMP%]{margin-top:20px}.main-descrip[_ngcontent-%COMP%], .signup-form[_ngcontent-%COMP%]{background-color:#ebf8fd;padding:30px}.main-descrip[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-transform:uppercase}.main-descrip[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .signup-form[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-family:BenchNine,sans-serif;font-size:40px;color:#26475f}.signup-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-family:BenchNine,sans-serif}.ng-pristine[required][_ngcontent-%COMP%], .ng-valid.required[_ngcontent-%COMP%], .ng-valid[required][_ngcontent-%COMP%]{border-left:5px solid #42a948}.ng-invalid[_ngcontent-%COMP%]:not(form):not(re-captcha){border-left:5px solid #a94442}"]}),t})()},{path:"unsubscribe/:member",component:(()=>{class t{constructor(t,e,n){this.activatedRoute=t,this.service=e,this.spinnerService=n,this.encodedMember="",this.member=new qv("","","","","","","",""),this.confirmed=!1,this.employer=""}ngOnInit(){this.encodedMember=this.activatedRoute.snapshot.params.member,this.member=JSON.parse(atob(this.encodedMember)),console.log(this.member),this.employer=this.member.employer.split("_").join(" ")}unsubscribe(){console.log("clicked");try{this.da=new qv(this.member.employer,this.member.firstName.toUpperCase(),this.member.lastName.toUpperCase(),this.member.email,this.member.phone,this.member.preference,this.member.state,this.member.registrationDate),this.service.unsubscribe(this.da).subscribe(t=>{t.error?t.error.message.message.includes("conditional request")?(console.log("This member is already unsubscribed from email notifications"),this.confirmed=!0):console.log("Something went wrong"):this.confirmed=!0,this.spinnerService.hide()})}catch(t){this.confirmed=!1,console.log("Call failed")}}get copyright(){return"2020-"+(new Date).getFullYear()}}return t.\u0275fac=function(e){return new(e||t)(Xi(Fg),Xi(gv),Xi(Bf))},t.\u0275cmp=he({type:t,selectors:[["app-unsubscribe"]],decls:23,vars:7,consts:[[1,"container","main-content"],[1,"main-descrip",3,"hidden"],[1,"row"],[1,"col-md-12"],[1,"h2","text-center"],[1,"unsubcontent"],[1,"col-md-12","text-center"],["type","button",1,"btn","btn-primary",3,"click"],[1,"container","main-content","main-descrip","w-100",3,"hidden"],[1,"h4","text-center"],[1,"app-white","mt-3","d-flex","justify-content-center","mx-auto","copyright-div","text-center"],[1,"copyright"]],template:function(t,e){1&t&&(ro(0,"div",0),ro(1,"div",1),ro(2,"div",2),ro(3,"div",3),ro(4,"div",4),Mo(5),so(),ro(6,"div",5),ro(7,"p"),Mo(8),so(),io(9,"br"),io(10,"br"),so(),so(),so(),ro(11,"div",2),ro(12,"div",6),ro(13,"button",7),lo("click",(function(){return e.unsubscribe()})),Mo(14,"UNSUBSCRIBE"),so(),so(),so(),so(),ro(15,"div",8),ro(16,"div",2),ro(17,"div",3),ro(18,"div",9),Mo(19),so(),so(),so(),so(),ro(20,"div",10),ro(21,"span",11),Mo(22),so(),so(),so()),2&t&&(Wr(1),eo("hidden",e.confirmed),Wr(4),jo("Are you sure you no longer wish to receive email updates from ",e.employer,"?"),Wr(3),Do(e.member.email),Wr(7),eo("hidden",!e.confirmed),Wr(4),jo("You are no longer receiving email updates from ",e.employer,". We are sorry to see you go!"),Wr(3),Fo(" Copyright \xa9 ",e.copyright,", ",e.employer,". All Rights Reserved "))},styles:[".main-descrip[_ngcontent-%COMP%]{background-color:#fff;opacity:.6;padding:30px}.app-white[_ngcontent-%COMP%]{color:#fff}.unsubcontent[_ngcontent-%COMP%]{text-align:center}p[_ngcontent-%COMP%]{border-bottom:grey;border-bottom-width:thin;border-bottom-style:dotted;display:inline}"]}),t})(),pathMatch:"full"},{path:"dashboard",component:fv}];let Wv=(()=>{class t{}return t.\u0275mod=me({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[iv.forRoot(Bv)],iv]}),t})();var Gv=function(){return(Gv=Object.assign||function(t){for(var e,n=1,r=arguments.length;n{class t{constructor(t,e,n){this.spinnerElement=t,this.spinnerService=e,this.cdr=n,this.show=!1,this.element=null,this.subscription=null,this.lines=12,this.length=26,this.width=10,this.radius=50,this.scale=1,this.corners=1,this.color="#000",this.opacity=.25,this.rotate=0,this.direction=1,this.speed=.8,this.trail=60,this.fps=20,this.className="spinner",this.top="50%",this.left="50%",this.shadow=!0,this.hwaccel=!0,this.position="absolute",this.element=t.nativeElement}ngOnInit(){this.initSpinner(),this.createServiceSubscription()}initSpinner(){this.spinner=new Kv({lines:this.lines,length:this.length,width:this.width,radius:this.radius,scale:this.scale,corners:this.corners,color:this.color,opacity:this.opacity,rotate:this.rotate,direction:this.direction,speed:this.speed,trail:this.trail,fps:this.fps,zIndex:2e9,className:this.className,top:this.top,left:this.left,shadow:this.shadow,hwaccel:this.hwaccel,position:this.position})}createServiceSubscription(){this.subscription=this.spinnerService.getSpinner().subscribe(t=>{t?this.startSpinner():this.stopSpinner(),this.cdr.detectChanges()})}ngOnDestroy(){this.cdr.detach(),this.subscription.unsubscribe()}startSpinner(){this.show=!0,this.spinner.spin(this.element.firstChild)}stopSpinner(){this.show=!1,this.spinner.stop()}}return t.\u0275fac=function(e){return new(e||t)(Xi(oa),Xi(Bf),Xi(_i))},t.\u0275cmp=he({type:t,selectors:[["spinner"]],inputs:{lines:"lines",length:"length",width:"width",radius:"radius",scale:"scale",corners:"corners",color:"color",opacity:"opacity",rotate:"rotate",direction:"direction",speed:"speed",trail:"trail",fps:"fps",className:"className",top:"top",left:"left",shadow:"shadow",hwaccel:"hwaccel",position:"position"},decls:1,vars:2,consts:[[1,"spinner"]],template:function(t,e){1&t&&io(0,"div",0),2&t&&Co("display",1==e.show?"inherit":"none")},styles:[".spinner[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;z-index:9999}","@keyframes spinner-line-fade-more{0%,to{opacity:0}1%{opacity:1}}@keyframes spinner-line-fade-quick{0%,39%,to{opacity:.25}40%{opacity:1}}@keyframes spinner-line-fade-default{0%,to{opacity:.22}1%{opacity:1}}@keyframes spinner-line-shrink{0%,25%,to{transform:scale(.5);opacity:.25}26%{transform:scale(1);opacity:1}}"],changeDetection:0}),t})(),e_=(()=>{class t{constructor(t){this.title="microsite",t.setDefaultLang("en"),t.use("en")}ngOnInit(){console.log("environment: uat")}}return t.\u0275fac=function(e){return new(e||t)(Xi(kf))},t.\u0275cmp=he({type:t,selectors:[["app-root"]],decls:15,vars:0,consts:[[1,"toolbar"],[1,"spacer"],[1,"container"],[1,"row"],[1,"col"],["href","https://mdes.ms.gov/"],["src","/assets/mdes-logo-294-92.png","alt","MDES","width","294",1,"logo"],["role","main",1,"row"],["id","footer",1,"row"],[1,"text-center"],["href","https://www.mississippiworks.org/","target","_blank"],["height","100px","width","auto","src","/assets/images/msworks-footer-logo.png","alt","Mississippi Works",1,"py-2"]],template:function(t,e){1&t&&(ro(0,"div",0),io(1,"div",1),so(),ro(2,"div",2),ro(3,"div",3),ro(4,"div",4),ro(5,"a",5),io(6,"img",6),so(),so(),so(),ro(7,"div",7),io(8,"spinner"),io(9,"router-outlet"),so(),ro(10,"div",8),ro(11,"div",4),ro(12,"div",9),ro(13,"a",10),io(14,"img",11),so(),so(),so(),so(),so())},directives:[t_,Ky],styles:["#footer[_ngcontent-%COMP%]{height:100px}"]}),t})(),n_=(()=>{class t{}return t.\u0275mod=me({type:t,bootstrap:[e_]}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[],imports:[[Cu,Wv,Jh,Yh,Md,Kp,Of,am,Rf,Nf,Vf,zf.forRoot(),Wf,nm,om,Af.forRoot({loader:{provide:af,useFactory:r_,deps:[wd]},defaultLanguage:"en"})]]}),t})();function r_(t){return new If(t,"./assets/i18n/",".json")}wu().bootstrapModule(n_).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]]]);